From 7e476b941e2729bf65439e4d67483a3886f69481 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 14 十二月 2020 09:27:27 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue --- ruoyi-ui/src/views/tool/gen/index.vue | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/views/tool/gen/index.vue b/ruoyi-ui/src/views/tool/gen/index.vue index 7e95bfa..a5792bf 100644 --- a/ruoyi-ui/src/views/tool/gen/index.vue +++ b/ruoyi-ui/src/views/tool/gen/index.vue @@ -91,21 +91,21 @@ align="center" prop="tableName" :show-overflow-tooltip="true" - width="130" + width="120" /> <el-table-column label="琛ㄦ弿杩�" align="center" prop="tableComment" :show-overflow-tooltip="true" - width="130" + width="120" /> <el-table-column label="瀹炰綋" align="center" prop="className" :show-overflow-tooltip="true" - width="130" + width="120" /> <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" width="160" /> <el-table-column label="鏇存柊鏃堕棿" align="center" prop="updateTime" width="160" /> @@ -165,7 +165,7 @@ :name="key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))" :key="key" > - <pre>{{ value }}</pre> + <highlightjs autodetect :code="value" /> </el-tab-pane> </el-tabs> </el-dialog> @@ -177,6 +177,7 @@ import { listTable, previewTable, delTable, genCode, synchDb } from "@/api/tool/gen"; import importTable from "./importTable"; import { downLoadZip } from "@/utils/zipdownload"; + export default { name: "Gen", components: { importTable }, @@ -270,7 +271,7 @@ return synchDb(tableName); }).then(() => { this.msgSuccess("鍚屾鎴愬姛"); - }).catch(function() {}); + }) }, /** 鎵撳紑瀵煎叆琛ㄥ脊绐� */ openImportTable() { @@ -313,8 +314,8 @@ }).then(() => { this.getList(); this.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(function() {}); + }) } } }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3