数据分类管理修改
This commit is contained in:
parent
2fac1cdf61
commit
4878d9c12f
|
|
@ -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: '更新时间' },
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
|
||||
<div>
|
||||
<el-form :model="form" :rules="rules" ref="ruleForm" label-width="110px">
|
||||
<el-form-item label="数据分类类型" prop="dataClassType">
|
||||
<el-select class="form-item" v-model="form.dataClassType" filterable clearable
|
||||
<el-form-item label="数据分类类型" prop="pid">
|
||||
<el-select class="form-item" v-model="form.pid" filterable clearable
|
||||
placeholder="请选择数据分类类型">
|
||||
<el-option v-for="item in dict.type.data_class_type" :key="item.value" :label="item.label"
|
||||
:value="item.label"></el-option>
|
||||
:value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="数据类型名称" prop="dataTypeName">
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue