Browse Source

tpl:update table info

zhangwenjian 5 years ago
parent
commit
778dee78e4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/tools/gen/editTable.vue

+ 5 - 5
src/views/tools/gen/editTable.vue

@@ -116,14 +116,14 @@
           </el-table-column>
           <el-table-column label="关系表" width="160">
             <template slot-scope="scope">
-              <el-select v-model="scope.row.fkTableNameClass" clearable filterable placeholder="请选择" @change="handleChangeConfig(scope.row,scope.$index)">
+              <el-select v-model="scope.row.fkTableName" clearable filterable placeholder="请选择" @change="handleChangeConfig(scope.row,scope.$index)">
                 <el-option
                   v-for="table in tableTree"
-                  :key="table.className"
-                  :label="table.className"
-                  :value="table.className"
+                  :key="table.tableName"
+                  :label="table.tableName"
+                  :value="table.tableName"
                 >
-                  <span style="float: left">{{ table.className }}</span>
+                  <span style="float: left">{{ table.tableName }}</span>
                   <span style="float: right; color: #8492a6; font-size: 13px">{{ table.tableComment }}</span>
                 </el-option>
               </el-select>