From 2b22943a1e2a8b8ddc1f7afd99af8c0a891c196f Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 12 Sep 2024 16:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E6=A1=88=E4=BE=8B=E5=BA=93?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E5=B9=B2=E6=89=B0=E6=BA=90=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=B0=E8=B4=A6=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wangEditor/index.vue | 37 ++++++++-------- .../pqs/database/case/components/form.vue | 44 ++++++++++--------- src/views/pqs/database/case/index.vue | 37 ++++++---------- .../components/interferenceUserTable.vue | 32 +++++++++++++- 4 files changed, 88 insertions(+), 62 deletions(-) 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) => { // 二次确认