From b430f8f2759129e86034d13bb7f4582fbfe708a1 Mon Sep 17 00:00:00 2001 From: zhang_12370 <z2864490065@outlook.com> Date: 星期二, 01 七月 2025 18:07:45 +0800 Subject: [PATCH] 修改文档管理 开发设备管理模块 --- src/views/inspectionManagement/index.vue | 44 +++++++++++++++++++++++++------------------- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/src/views/inspectionManagement/index.vue b/src/views/inspectionManagement/index.vue index e0ba31f..4b42e60 100644 --- a/src/views/inspectionManagement/index.vue +++ b/src/views/inspectionManagement/index.vue @@ -1,18 +1,10 @@ <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" - placeholder="璇疯緭鍏�" - clearable - :style="{ width: '100%' }" - /> - </el-form-item> - <el-form-item label="璁惧鍚嶇О"> - <el-input - v-model="queryParams.coal" - placeholder="璇疯緭鍏�" + v-model="queryParams.searchAll" + placeholder="璇疯緭鍏ュ叧閿瓧" clearable :style="{ width: '100%' }" /> @@ -45,7 +37,7 @@ </el-radio-group> <!-- 鎿嶄綔鎸夐挳鍖� --> <el-space v-if="activeRadio !== 'task'"> - <el-button type="primary" :icon="Plus" @click="handleAdd">鏂板缓</el-button> + <el-button type="primary" :icon="Plus" @click="handleAdd(undefined)">鏂板缓</el-button> <el-button type="danger" :icon="Delete" @click="handleDelete">鍒犻櫎</el-button> <!-- <el-button type="info" plain :icon="Download">瀵煎嚭</el-button> --> </el-space> @@ -127,8 +119,7 @@ const viewQrCodeFiles = ref() // 鏌ヨ鍙傛暟 const queryParams = reactive({ - supplierName: "", - coal: "", + searchAll: "", }) // 褰撳墠鏍囩 const activeTab = ref("task"); @@ -156,11 +147,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 +183,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(); } @@ -240,6 +245,7 @@ // 鏂板銆佺紪杈� const handleAdd = (row) => { + console.log(row) const type = row === undefined ? 'add' : 'edit' nextTick(() => { if (tabName.value === 'task') { -- Gitblit v1.9.3