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) {