修改技术监督删除功能
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
<Table ref="tableRef"></Table>
|
||||
<!-- 弹框 -->
|
||||
<PopupEdit ref="popupEditRef" @onSubmit="tableStore.index()" />
|
||||
<!-- 简介详情 -->
|
||||
<el-dialog v-model="dialogVisible" title="事件简介" width="60%">
|
||||
<span v-html="summary"></span>
|
||||
</el-dialog>
|
||||
<!-- 抽屉 -->
|
||||
<drawer ref="drawerRef"/>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
@@ -18,14 +24,17 @@ import TableHeader from '@/components/table/header/index.vue'
|
||||
import Table from '@/components/table/index.vue'
|
||||
import PopupEdit from './components/form.vue'
|
||||
import { libcaseBeleteyById } from '@/api/supervision-boot/database/index'
|
||||
import drawer from './components/drawer.vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
defineOptions({
|
||||
name: 'database/case'
|
||||
})
|
||||
|
||||
const popupEditRef = ref()
|
||||
|
||||
const drawerRef = ref()
|
||||
const TableHeaderRef = ref()
|
||||
const dialogVisible = ref(false)
|
||||
const summary = ref('')
|
||||
|
||||
const tableStore = new TableStore({
|
||||
url: '/supervision-boot/libcase/pageQuery',
|
||||
@@ -36,10 +45,7 @@ const tableStore = new TableStore({
|
||||
title: '发生事件',
|
||||
field: 'type'
|
||||
},
|
||||
{
|
||||
title: '事件简介',
|
||||
field: 'summary'
|
||||
},
|
||||
|
||||
{
|
||||
title: '事件经过',
|
||||
field: 'process'
|
||||
@@ -56,6 +62,38 @@ const tableStore = new TableStore({
|
||||
title: '治理效果',
|
||||
field: 'effect'
|
||||
},
|
||||
// {
|
||||
// title: '事件简介',
|
||||
// field: 'summary'
|
||||
// },
|
||||
{
|
||||
title: '事件简介',
|
||||
width: '140',
|
||||
render: 'buttons',
|
||||
buttons: [
|
||||
{
|
||||
name: 'view',
|
||||
title: '查看',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Plus',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
dialogVisible.value = true
|
||||
summary.value = row.summary
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'view',
|
||||
title: '抽屉',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Plus',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
drawerRef.value.open(row)
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '140',
|
||||
|
||||
Reference in New Issue
Block a user