|
@@ -269,6 +269,15 @@ export default {
|
|
|
tableInfo(data).then((response) => {
|
|
|
console.log(response);
|
|
|
this.experienceData = response.data;
|
|
|
+ // 初始化校验规则
|
|
|
+ this.experienceData.forEach((val, index) => {
|
|
|
+ this.handleSelected(
|
|
|
+ this.dict.type[this.databaseType + "_data_type"].find(
|
|
|
+ (item) => item.label === val.fieldType
|
|
|
+ ),
|
|
|
+ { $index: index, row: val }
|
|
|
+ );
|
|
|
+ });
|
|
|
this.form.tableName = tableName;
|
|
|
this.form.tableComment = tableComment;
|
|
|
});
|