diff --git a/src/components/wangEditor/index.vue b/src/components/wangEditor/index.vue index fc9ca22d..f07b045c 100644 --- a/src/components/wangEditor/index.vue +++ b/src/components/wangEditor/index.vue @@ -1,21 +1,21 @@ - \ No newline at end of file + diff --git a/src/views/pqs/database/case/components/form.vue b/src/views/pqs/database/case/components/form.vue index 1f6a4832..d5aed2cb 100644 --- a/src/views/pqs/database/case/components/form.vue +++ b/src/views/pqs/database/case/components/form.vue @@ -6,23 +6,15 @@ - + - + - - - - Click to upload - + 添加附件 + +
+
事件简介
+ +
- +
@@ -52,6 +53,7 @@ import { useRouter } from 'vue-router' import { downloadSensitiveReportTemplate } from '@/api/supervision-boot/userReport/form' import DetailInfo from '../../interfere/components/undocumented/detail.vue' import { cancelFormData } from '@/api/supervision-boot/interfere/index' +import { deleteUserReport } from '@/api/supervision-boot/delete/index' const addForms = ref() const dictData = useDictData() const sensitiveUserPopup = ref() @@ -66,6 +68,10 @@ const tableStore = new TableStore({ publicHeight: 65, method: 'POST', column: [ + { + width: '60', + type: 'checkbox' + }, { title: '序号', type: 'seq', width: 80 }, { field: 'city', title: '所在地市', minWidth: 80 }, { field: 'substation', title: '厂站名称', minWidth: 100 }, @@ -240,6 +246,30 @@ provide('tableStore', tableStore) onMounted(() => { tableStore.index() }) +// 禁止点击 +const checkboxConfig = reactive({ + checkMethod: ({ row }) => { + return adminInfo.roleCode.includes('delete_info') + ? true + : row.createBy == adminInfo.$state.id && row.status == 0 + } +}) +const deleteEven = () => { + if (tableStore.table.selection.length == 0) { + ElMessage({ + type: 'warning', + message: '请选择要删除的数据' + }) + } else { + deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => { + ElMessage({ + type: 'success', + message: '删除成功!' + }) + tableStore.index() + }) + } +} /**取消流程操作*/ const cancelLeave = async (row: any) => { // 二次确认