Przeglądaj źródła

修正代码生成编辑页面单词拼写错误

RuoYi 4 lat temu
rodzic
commit
f7ae7e29d1
1 zmienionych plików z 10 dodań i 10 usunięć
  1. 10 10
      ruoyi-ui/src/views/tool/gen/editTable.vue

+ 10 - 10
ruoyi-ui/src/views/tool/gen/editTable.vue

@@ -4,8 +4,8 @@
4
       <el-tab-pane label="基本信息" name="basic">
4
       <el-tab-pane label="基本信息" name="basic">
5
         <basic-info-form ref="basicInfo" :info="info" />
5
         <basic-info-form ref="basicInfo" :info="info" />
6
       </el-tab-pane>
6
       </el-tab-pane>
7
-      <el-tab-pane label="字段信息" name="cloum">
8
-        <el-table ref="dragTable" :data="cloumns" row-key="columnId" :max-height="tableHeight">
7
+      <el-tab-pane label="字段信息" name="columnInfo">
8
+        <el-table ref="dragTable" :data="columns" row-key="columnId" :max-height="tableHeight">
9
           <el-table-column label="序号" type="index" min-width="5%" class-name="allowDrag" />
9
           <el-table-column label="序号" type="index" min-width="5%" class-name="allowDrag" />
10
           <el-table-column
10
           <el-table-column
11
             label="字段列名"
11
             label="字段列名"
@@ -141,13 +141,13 @@ export default {
141
   data() {
141
   data() {
142
     return {
142
     return {
143
       // 选中选项卡的 name
143
       // 选中选项卡的 name
144
-      activeName: "cloum",
144
+      activeName: "columnInfo",
145
       // 表格的高度
145
       // 表格的高度
146
       tableHeight: document.documentElement.scrollHeight - 245 + "px",
146
       tableHeight: document.documentElement.scrollHeight - 245 + "px",
147
       // 表信息
147
       // 表信息
148
       tables: [],
148
       tables: [],
149
       // 表列信息
149
       // 表列信息
150
-      cloumns: [],
150
+      columns: [],
151
       // 字典信息
151
       // 字典信息
152
       dictOptions: [],
152
       dictOptions: [],
153
       // 菜单信息
153
       // 菜单信息
@@ -161,7 +161,7 @@ export default {
161
     if (tableId) {
161
     if (tableId) {
162
       // 获取表详细信息
162
       // 获取表详细信息
163
       getGenTable(tableId).then(res => {
163
       getGenTable(tableId).then(res => {
164
-        this.cloumns = res.data.rows;
164
+        this.columns = res.data.rows;
165
         this.info = res.data.info;
165
         this.info = res.data.info;
166
         this.tables = res.data.tables;
166
         this.tables = res.data.tables;
167
       });
167
       });
@@ -184,7 +184,7 @@ export default {
184
         const validateResult = res.every(item => !!item);
184
         const validateResult = res.every(item => !!item);
185
         if (validateResult) {
185
         if (validateResult) {
186
           const genTable = Object.assign({}, basicForm.model, genForm.model);
186
           const genTable = Object.assign({}, basicForm.model, genForm.model);
187
-          genTable.columns = this.cloumns;
187
+          genTable.columns = this.columns;
188
           genTable.params = {
188
           genTable.params = {
189
             treeCode: genTable.treeCode,
189
             treeCode: genTable.treeCode,
190
             treeName: genTable.treeName,
190
             treeName: genTable.treeName,
@@ -220,10 +220,10 @@ export default {
220
     const sortable = Sortable.create(el, {
220
     const sortable = Sortable.create(el, {
221
       handle: ".allowDrag",
221
       handle: ".allowDrag",
222
       onEnd: evt => {
222
       onEnd: evt => {
223
-        const targetRow = this.cloumns.splice(evt.oldIndex, 1)[0];
224
-        this.cloumns.splice(evt.newIndex, 0, targetRow);
225
-        for (let index in this.cloumns) {
226
-          this.cloumns[index].sort = parseInt(index) + 1;
223
+        const targetRow = this.columns.splice(evt.oldIndex, 1)[0];
224
+        this.columns.splice(evt.newIndex, 0, targetRow);
225
+        for (let index in this.columns) {
226
+          this.columns[index].sort = parseInt(index) + 1;
227
         }
227
         }
228
       }
228
       }
229
     });
229
     });