From 4878d9c12f690aa9077908052c9e1b9b5e121b21 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Fri, 12 Sep 2025 14:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E7=B1=BB=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-collect/data-class-manage/config.js | 2 +- .../data-class-manage/prop/dataClassForm.vue | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/data-collect/data-class-manage/config.js b/src/views/data-collect/data-class-manage/config.js index 32ab991..3175772 100644 --- a/src/views/data-collect/data-class-manage/config.js +++ b/src/views/data-collect/data-class-manage/config.js @@ -9,7 +9,7 @@ export const formLabel = [ ] export const columnsList = [ - { t_props: 'dataTypeName', t_label: '数据分类类型' }, + { t_props: 'pName', t_label: '数据分类类型' }, { t_props: 'dataTypeName', t_label: '数据类型名称' }, { t_props: 'updateUserName', t_label: '更新人' }, { t_props: 'updateTime', t_label: '更新时间' }, diff --git a/src/views/data-collect/data-class-manage/prop/dataClassForm.vue b/src/views/data-collect/data-class-manage/prop/dataClassForm.vue index 5f46eda..64b7a67 100644 --- a/src/views/data-collect/data-class-manage/prop/dataClassForm.vue +++ b/src/views/data-collect/data-class-manage/prop/dataClassForm.vue @@ -4,11 +4,11 @@ :closeOnClickModal="false" @close="handleClose" :append-to-body="true">
- - + + :value="item.value"> @@ -44,13 +44,13 @@ export default { dialogVisible: true, isDisabled: true, form: { - dataClassType: null, + pid: null, dataTypeName: '', remark: '', }, loading: null, rules: { - dataClassType: [ + pid: [ { required: true, message: '请选择数据分类类型', trigger: 'change' } ], dataTypeName: [ @@ -69,14 +69,14 @@ export default { // 编辑模式:填充表单数据 this.form = { id: this.rowData.id, - dataClassType: this.rowData.dataClassType || '', + pid: this.rowData.pid || null, dataTypeName: this.rowData.dataTypeName || '', remark: this.rowData.remark || '', }; } else { // 新增模式:重置表单 this.form = { - dataClassType: null, + pid: null, dataTypeName: '', remark: '', }; @@ -102,7 +102,7 @@ export default { reset() { this.form = { id: null, - dataClassType: null, + pid: null, dataTypeName: '', remark: '', }; @@ -139,6 +139,7 @@ export default { // this.$modal.msgError('提交失败,请重试'); }); } else { + updateDataClassAPI(params).then(res => { this.loading.close(); if (res.code === 200) {