Commit 9f8b168e authored by 何鹏程's avatar 何鹏程

完成功能

parent 758ef089
......@@ -3,6 +3,7 @@
:title="title"
:visible.sync="dialogVisible"
width="1000px"
append-to-body
@closed="closedHandler"
:close-on-click-modal="false"
class="emergencyCarDialog"
......@@ -509,6 +510,8 @@ export default {
if (type === 'update' || type === 'detail') {
if (!id) {
this.$message.error('救护车id不能为空')
this.dialogVisible = false
this.loading = false
return
}
queryTeamEmergencyCarInfo({ id: id }).then(res => {
......
......@@ -2,7 +2,8 @@
<el-dialog
:title="title + '救护车信息明细'"
:visible.sync="dialogVisible"
width="1200px"
append-to-body
width="1300px"
:close-on-click-modal="false"
class="detailDialog"
>
......@@ -50,17 +51,38 @@
<span v-else>{{ scope.row[scope.column.property] }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="left"
width="auto"
min-width="100px"
>
<template slot-scope="scope">
<el-link
type="primary"
@click="showEmergencyCarDialog('detail',scope.row.id)"
>查看详情</el-link>
</template>
</el-table-column>
</el-table>
</table-mixin>
<EmergencyCarDialog
ref="emergencyCarDialog"
@subsucc="search"
/>
</el-dialog>
</template>
<script>
import { queryTotalCarInfoByHospital } from '@/api/emergencyCar'
import { tableDataMixin } from '../../../common/js/mixin'
import EmergencyCarDialog from '../../emergencyCar/components/emergencyCarDialog.vue'
export default {
name: 'detailDialog',
mixins: [tableDataMixin],
components: {
EmergencyCarDialog
},
data() {
return {
dialogVisible: false,
......@@ -172,6 +194,12 @@ export default {
}
})
},
showEmergencyCarDialog(type = 'add', id = '') {
this.$refs.emergencyCarDialog.init(type, id)
},
search() {
}
}
}
</script>
......
......@@ -140,11 +140,11 @@ const dist = {
val: 3,
id: 3
},
{
name: '已删除',
val: 4,
id: 4
},
// {
// name: '已删除',
// val: 4,
// id: 4
// },
{
name: '删除审核中',
val: 5,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment