Explorar o código

初始化数据表编辑的校验结果

lph hai 1 ano
pai
achega
25e33fe074
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      ruoyi-ui/src/views/tool/datasheet/index.vue

+ 9 - 0
ruoyi-ui/src/views/tool/datasheet/index.vue

@@ -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;
       });