From cb535e60b78dc476b1ece232e4bb871af48b9750 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Thu, 7 Jan 2021 14:44:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20ElementProCrud=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=B30.8.0-2=20=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8=E8=A1=A8=E6=A0=BC=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=99=A8name=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/index.html | 2 ++ src/router/index.ts | 8 ++++---- .../devTools/{FormDesigner.vue => FormDesignerModule.vue} | 6 +++--- .../{TableDesigner.vue => TableDesignerModule.vue} | 6 +++--- 5 files changed, 13 insertions(+), 11 deletions(-) rename src/views/devTools/{FormDesigner.vue => FormDesignerModule.vue} (94%) rename src/views/devTools/{TableDesigner.vue => TableDesignerModule.vue} (95%) diff --git a/package.json b/package.json index 88869ec..317eac5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "axios": "^0.19.2", "core-js": "3.6.5", "dayjs": "1.8.20", - "element-pro-crud": "^0.8.0-1", + "element-pro-crud": "^0.8.0-2", "element-ui": "^2.13.2", "inquirer": "^6.5.2", "lodash": "^4.17.14", diff --git a/public/index.html b/public/index.html index edbce59..dca91b2 100644 --- a/public/index.html +++ b/public/index.html @@ -43,5 +43,7 @@ <% } %> <% if (htmlWebpackPlugin.options.devServer) { %> <% } %> + + diff --git a/src/router/index.ts b/src/router/index.ts index c90291a..e7bb172 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -114,14 +114,14 @@ const asyncRouter:RouteConfig[] = [ children: [ { path: 'form-designer', - name: 'FormDesigner', - component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/FormDesigner.vue'), + name: 'FormDesignerModule', + component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/FormDesignerModule.vue'), meta: { title: '表单设计' }, }, { path: 'table-designer', - name: 'TableDesigner', - component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/TableDesigner.vue'), + name: 'TableDesignerModule', + component: () => import(/* webpackChunkName: "dev" */ '@/views/devTools/TableDesignerModule.vue'), meta: { title: '表格设计' }, }, { diff --git a/src/views/devTools/FormDesigner.vue b/src/views/devTools/FormDesignerModule.vue similarity index 94% rename from src/views/devTools/FormDesigner.vue rename to src/views/devTools/FormDesignerModule.vue index 0257091..eed0bf1 100644 --- a/src/views/devTools/FormDesigner.vue +++ b/src/views/devTools/FormDesignerModule.vue @@ -24,7 +24,7 @@ @click="btnCopyOnClick(row)">复制 - @@ -37,9 +37,9 @@ import { getTables } from '@/api/system/form'; import { Vue, Component } from 'vue-property-decorator'; @Component({ - name: 'FormDesigner', + name: 'FormDesignerModule', }) -export default class FormDesigner extends Vue { +export default class FormDesignerModule extends Vue { // 添加按钮点击事件 btnAddOnClick() { this.$refs.dialog.showDialog(); diff --git a/src/views/devTools/TableDesigner.vue b/src/views/devTools/TableDesignerModule.vue similarity index 95% rename from src/views/devTools/TableDesigner.vue rename to src/views/devTools/TableDesignerModule.vue index df19260..316195f 100644 --- a/src/views/devTools/TableDesigner.vue +++ b/src/views/devTools/TableDesignerModule.vue @@ -24,7 +24,7 @@ @click="btnCopyOnClick(scope.row)">复制 - @@ -37,9 +37,9 @@ import { getTables } from '@/api/system/form'; import { Vue, Component } from 'vue-property-decorator'; @Component({ - name: 'TableDesigner', + name: 'TableDesignerModule', }) -export default class TableDesigner extends Vue { +export default class TableDesignerModule extends Vue { remoteFuncs = { getTablesOfDB(resolve) { // 请求表名列表