|
@@ -108,6 +108,13 @@
|
|
|
icon="el-icon-view"
|
|
|
@click="handlePreview(scope.row)"
|
|
|
>预览</el-button>
|
|
|
+ <el-button
|
|
|
+
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-view"
|
|
|
+ @click="handleToProject(scope.row)"
|
|
|
+ >生成到项目</el-button>
|
|
|
<el-button
|
|
|
|
|
|
type="text"
|
|
@@ -150,7 +157,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listTable, previewTable, delTable } from '@/api/tools/gen'
|
|
|
+import { listTable, previewTable, delTable, toProjectTable } from '@/api/tools/gen'
|
|
|
import importTable from './importTable'
|
|
|
import { downLoadFile } from '@/utils/zipdownload'
|
|
|
export default {
|
|
@@ -244,6 +251,11 @@ export default {
|
|
|
this.preview.open = true
|
|
|
})
|
|
|
},
|
|
|
+ handleToProject(row) {
|
|
|
+ toProjectTable(row.tableId).then(response => {
|
|
|
+ this.msgSuccess(response.msg)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.tableId)
|