From 94152361e48cf51597fc1760a03f9610f9664340 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 13 六月 2025 13:55:58 +0800
Subject: [PATCH] 优化生产对话框及接口配置
---
src/views/basicInformation/index.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/views/basicInformation/index.vue b/src/views/basicInformation/index.vue
index 9f5927e..fda5d65 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>
@@ -314,7 +314,7 @@
}
},
{ prop: "contactAddress", label: "鑱旂郴浜鸿缁嗗湴鍧�", minWidth: 120 },
- { prop: "createTime", label: "缁存姢鏃ユ湡", minWidth: 120 },
+ { prop: "updateTime", label: "缁存姢鏃ユ湡", minWidth: 120 },
]);
/**
@@ -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