From 4a716a9b964f760ee414f48a6998f6728b3a5c8d Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 01 七月 2025 16:39:41 +0800 Subject: [PATCH] 1.巡检管理频次选择逻辑修改 --- src/views/inspectionManagement/index.vue | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/views/inspectionManagement/index.vue b/src/views/inspectionManagement/index.vue index e0ba31f..028a3f5 100644 --- a/src/views/inspectionManagement/index.vue +++ b/src/views/inspectionManagement/index.vue @@ -1,9 +1,9 @@ <template> <div class="app-container"> <el-form :inline="true" :model="queryParams" class="search-form"> - <el-form-item label="鏃堕棿"> + <el-form-item label="浠诲姟鍚嶇О"> <el-input - v-model="queryParams.supplierName" + v-model="queryParams.taskName" placeholder="璇疯緭鍏�" clearable :style="{ width: '100%' }" @@ -11,7 +11,7 @@ </el-form-item> <el-form-item label="璁惧鍚嶇О"> <el-input - v-model="queryParams.coal" + v-model="queryParams.deviceName" placeholder="璇疯緭鍏�" clearable :style="{ width: '100%' }" @@ -127,8 +127,8 @@ const viewQrCodeFiles = ref() // 鏌ヨ鍙傛暟 const queryParams = reactive({ - supplierName: "", - coal: "", + taskName: "", + deviceName: "", }) // 褰撳墠鏍囩 const activeTab = ref("task"); @@ -156,11 +156,22 @@ const pageSize = ref(10); const columns = ref([ { prop: "taskName", label: "宸℃浠诲姟鍚嶇О", minWidth: 160 }, - { prop: "port", label: "鍦扮偣", minWidth: 120 }, + { prop: "inspectionLocation", label: "鍦扮偣", minWidth: 120 }, { prop: "remarks", label: "澶囨敞", minWidth: 150 }, { prop: "inspector", label: "鎵ц宸℃浜�", minWidth: 150 }, - { prop: "inspector", label: "棰戞", minWidth: 150 }, - { prop: "inspector", label: "寮�濮嬫棩鏈�", minWidth: 150 }, + { prop: "frequencyType", label: "棰戞", minWidth: 150, + formatter: (row, column, cellValue) => { + if (cellValue === 'DAILY') { + return '姣忔棩'; + } else if (cellValue === 'MONTHLY') { + return '姣忔湀'; + } else if (cellValue === 'WEEKLY') { + return '姣忓懆'; + } else { + return '瀛e害' + } + }}, + { prop: "frequencyDetail", label: "寮�濮嬫棩鏈熶笌鏃堕棿", minWidth: 150 }, { prop: "registrant", label: "鐧昏浜�", minWidth: 100 }, { prop: "createTime", label: "鐧昏鏃ユ湡", minWidth: 100 }, ]); @@ -181,12 +192,15 @@ getList(); }; const radioChange = (value) => { - if (value !== "task") { + if (value === "taskManage") { tableColumns.value = columns.value; operationsArr.value = ['edit'] + } else if (value === "task") { + tableColumns.value = columns.value; + operationsArr.value = ['viewFile'] } else { tableColumns.value = columns1.value; - operationsArr.value = ['viewFile'] + operationsArr.value = ['edit'] } getList(); } -- Gitblit v1.9.3