From 9c1360b6716b46771b7e712c7285302db5dc8430 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 12 六月 2025 16:18:49 +0800 Subject: [PATCH] 1.图标修改 --- src/views/basicInformation/index.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/basicInformation/index.vue b/src/views/basicInformation/index.vue index 9f5927e..f399bc0 100644 --- a/src/views/basicInformation/index.vue +++ b/src/views/basicInformation/index.vue @@ -23,16 +23,16 @@ <div> <data-table :loading="loading" :table-data="tableData" :columns="columns" @selection-change="handleSelectionChange" @edit="handleEdit" :show-selection="true" :border="true"> <!-- 瀛楁鍚嶇О鍒楃殑鑷畾涔夋彃妲� - 鏄剧ず涓烘爣绛� --> - <template v-if="tabName === 'coalQualityMaintenance'" #coalFields="{ row }"> - <template v-if="typeof row.coalFields === 'string' && row.coalFields.includes(',')"> - <el-tag v-for="(field, index) in row.coalFields.split(',')" :key="index" type="primary" size="small" + <template v-if="tabName === 'coalQualityMaintenance'" #fieldIds="{ row }"> + <template v-if="typeof row.fieldIds === 'string' && row.fieldIds.includes(',')"> + <el-tag v-for="(field, index) in row.fieldIds.split(',')" :key="index" type="primary" size="small" style="margin-right: 4px; margin-bottom: 2px;"> {{ getFieldDisplayName(field.trim()) }} </el-tag> </template> <template v-else> <el-tag type="primary" size="small"> - {{ getFieldDisplayName(row.coalFields) || '--' }} + {{ getFieldDisplayName(row.fieldIds) || '--' }} </el-tag> </template> </template> @@ -380,7 +380,7 @@ const coalQualityMaintenanceColumns = ref([ { prop: "plan", label: "鏂规鍚嶇О", minWidth: 100 }, { - prop: "coalFields", + prop: "fieldIds", label: "瀛楁鍚嶇О", minWidth: 200, showOverflowTooltip: true, @@ -416,7 +416,10 @@ loading.value = true; tabName.value = tab.props.name; tableData.value = []; - + pageNum.value = 1; + pageSizes.value = 10; + total.value = 0; + queryParams.searchAll = ""; // 鏍规嵁鏍囩椤电被鍨嬭缃搴旂殑鍒楅厤缃� const tabConfig = { supplier: () => { @@ -615,7 +618,7 @@ ElMessage.error("鍒犻櫎鎺ュ彛鏈厤缃�"); return; } - + console.log(deleteIds) const res = await deleteApi(deleteIds); if (res.code !== 200 && res.msg !== "鎿嶄綔鎴愬姛") { -- Gitblit v1.9.3