| | |
| | |
|
| | | <el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
|
| | | <el-table-column type="selection" width="55"></el-table-column>
|
| | | <el-table-column label="序号" align="center" prop="tableId" width="60px" />
|
| | | <el-table-column label="序号" type="index" width="50" align="center">
|
| | | <template slot-scope="scope">
|
| | | <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | label="表名称"
|
| | | align="center"
|
| | |
| | | @pagination="getList"
|
| | | />
|
| | | <!-- 预览界面 -->
|
| | | <el-dialog :title="preview.title" :visible.sync="preview.open" width="80%" top="5vh">
|
| | | <el-dialog :title="preview.title" :visible.sync="preview.open" width="80%" top="5vh" append-to-body>
|
| | | <el-tabs v-model="preview.activeName">
|
| | | <el-tab-pane
|
| | | v-for="(value, key) in preview.data"
|
| | |
| | | /** 修改按钮操作 */
|
| | | handleEditTable(row) {
|
| | | const tableId = row.tableId || this.ids[0];
|
| | | this.$router.push({ path: "/gen/edit", query: { tableId: tableId } });
|
| | | this.$router.push("/gen/edit/" + tableId);
|
| | | },
|
| | | /** 删除按钮操作 */
|
| | | handleDelete(row) {
|