|
@@ -94,11 +94,6 @@
|
|
|
<span>{{ parseTime(scope.row.createdAt) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="更新时间" align="center" prop="updatedAt" width="165">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.updatedAt) }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -115,6 +110,13 @@
|
|
|
icon="el-icon-view"
|
|
|
@click="handleToProject(scope.row)"
|
|
|
>生成到项目</el-button>
|
|
|
+ <el-button
|
|
|
+
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-view"
|
|
|
+ @click="handleToDB(scope.row)"
|
|
|
+ >生成菜单到DB</el-button>
|
|
|
<el-button
|
|
|
|
|
|
type="text"
|
|
@@ -157,7 +159,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listTable, previewTable, delTable, toProjectTable } from '@/api/tools/gen'
|
|
|
+import { listTable, previewTable, delTable, toProjectTable, toDBTable } from '@/api/tools/gen'
|
|
|
import importTable from './importTable'
|
|
|
import { downLoadFile } from '@/utils/zipdownload'
|
|
|
export default {
|
|
@@ -256,6 +258,11 @@ export default {
|
|
|
this.msgSuccess(response.msg)
|
|
|
})
|
|
|
},
|
|
|
+ handleToDB(row) {
|
|
|
+ toDBTable(row.tableId).then(response => {
|
|
|
+ this.msgSuccess(response.msg)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.tableId)
|