From 69b6b9cb7d066d88a4a90963ad6d8d4a80e90af9 Mon Sep 17 00:00:00 2001 From: From-wh Date: Mon, 10 Apr 2023 18:40:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90/?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=9D=83=E9=99=90/=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/src/api/systemBackendRouting.js | 108 ++ .../admin/src/assets/iconfont/iconfont.js | 1 - .../admin/src/components/goodsList/index.vue | 7 - .../src/components/systemStore/index.vue | 38 +- template/admin/src/layout/component/aside.vue | 2 - .../src/layout/component/columnsAside.vue | 9 - template/admin/src/layout/index.vue | 2 - .../layout/navBars/breadcrumb/breadcrumb.vue | 8 - .../src/layout/navBars/breadcrumb/index.vue | 1 - .../src/layout/navBars/breadcrumb/setings.vue | 11 - .../src/layout/navBars/tagsView/tagsView.vue | 9 - .../admin/src/layout/navMenu/vertical.vue | 1 - .../admin/src/layout/routerView/parent.vue | 1 - .../admin/src/pages/account/login/index.vue | 2 - .../src/pages/cms/articleCategory/index.vue | 14 +- .../components/MonacoEditor.vue | 75 ++ .../setting/systemOutInterface/debugging.vue | 465 +++++++ .../setting/systemOutInterface/index.vue | 23 +- .../setting/systemOutInterface/request.js | 121 ++ .../components/MonacoEditor.vue | 75 ++ .../pages/system/backendRouting/debugging.vue | 467 +++++++ .../src/pages/system/backendRouting/index.vue | 1102 +++++++++++++++++ .../pages/system/backendRouting/request.js | 121 ++ .../codeGeneration/components/Field.vue | 119 ++ .../codeGeneration/components/FormItem.vue | 123 ++ .../components/FoundationForm.vue | 56 + .../codeGeneration/components/StorageLoc.vue | 45 + .../src/pages/system/codeGeneration/index.vue | 76 ++ template/admin/src/router/modules/system.js | 22 +- 29 files changed, 3017 insertions(+), 87 deletions(-) create mode 100644 template/admin/src/api/systemBackendRouting.js create mode 100644 template/admin/src/pages/setting/systemOutInterface/components/MonacoEditor.vue create mode 100644 template/admin/src/pages/setting/systemOutInterface/debugging.vue create mode 100644 template/admin/src/pages/setting/systemOutInterface/request.js create mode 100644 template/admin/src/pages/system/backendRouting/components/MonacoEditor.vue create mode 100644 template/admin/src/pages/system/backendRouting/debugging.vue create mode 100644 template/admin/src/pages/system/backendRouting/index.vue create mode 100644 template/admin/src/pages/system/backendRouting/request.js create mode 100644 template/admin/src/pages/system/codeGeneration/components/Field.vue create mode 100644 template/admin/src/pages/system/codeGeneration/components/FormItem.vue create mode 100644 template/admin/src/pages/system/codeGeneration/components/FoundationForm.vue create mode 100644 template/admin/src/pages/system/codeGeneration/components/StorageLoc.vue create mode 100644 template/admin/src/pages/system/codeGeneration/index.vue diff --git a/template/admin/src/api/systemBackendRouting.js b/template/admin/src/api/systemBackendRouting.js new file mode 100644 index 000000000..7b844390e --- /dev/null +++ b/template/admin/src/api/systemBackendRouting.js @@ -0,0 +1,108 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +import request from '@/libs/request'; + +/** + * 同步路由权限 + */ +export function syncRoute(appName) { + return request({ + url: `system/route/sync_route/${appName}`, + method: 'get', + }); +} +/** + * 新增路由分类 + */ +export function routeCate(appName) { + return request({ + url: `system/route_cate/create?app_name=${appName}`, + method: 'get', + }); +} +/** + * 路由树 + */ +export function routeList() { + return request({ + url: `system/route/tree`, + method: 'get', + }); +} + +/** + * 添加/编辑接口 + * @param {*} data + * @returns + */ +export function routeSave(data) { + return request({ + url: `system/route/${data.id}`, + method: 'post', + data, + }); +} + +/** + * 接口信息详情 + * @param {*} data + * @returns + */ +export function routeDet(id) { + return request({ + url: `system/route/${id}`, + method: 'get', + }); +} + +/** + * @description 修改名称 + * @param {Object} data data {Object} 传值 + */ +export function interfaceEditName(data) { + return request({ + url: `setting/system_out_interface/edit_name`, + method: 'PUT', + data, + }); +} + +/** + * @description 删除 + */ +export function routeDel(id) { + return request({ + url: 'system/route/' + id, + method: 'delete', + }); +} +/** + * @description 删除 + */ +export function routeCateDel(id) { + return request({ + url: 'system/route_cate/' + id, + method: 'delete', + }); +} + +/** + * 接口信息详情 + * @param {*} data + * @returns + */ +export function textOutUrl(data) { + return request({ + url: `setting/system_out_account/text_out_url`, + method: 'post', + data, + }); +} diff --git a/template/admin/src/assets/iconfont/iconfont.js b/template/admin/src/assets/iconfont/iconfont.js index bc60480d0..eea622007 100644 --- a/template/admin/src/assets/iconfont/iconfont.js +++ b/template/admin/src/assets/iconfont/iconfont.js @@ -17,7 +17,6 @@ '', ); } catch (a) { - console && console.log(a); } } function t() { diff --git a/template/admin/src/components/goodsList/index.vue b/template/admin/src/components/goodsList/index.vue index 994d4a0fb..2e8bd8cb3 100644 --- a/template/admin/src/components/goodsList/index.vue +++ b/template/admin/src/components/goodsList/index.vue @@ -272,7 +272,6 @@ export default { } else { this.getList(); } - console.log(this.diy); }, methods: { productList() { @@ -338,15 +337,12 @@ export default { } changeListApi(this.formValidate) .then(async (res) => { - console.log(this.selectIds); - let data = res.data; if (this.selectIds.length) { let arr = []; this.selectIds.map((item) => { data.list.map((i) => { if (i.id == item) { - console.log(i); i._checked = true; arr.push(i); } @@ -376,13 +372,10 @@ export default { data.list.forEach((el) => { el.image = el.cover_img; }); - - console.log(this.selectIds); if (this.selectIds.length) { this.selectIds.map((item) => { data.list.map((i) => { if (i.id == item) { - console.log(i); i._checked = true; } }); diff --git a/template/admin/src/components/systemStore/index.vue b/template/admin/src/components/systemStore/index.vue index 1cecc3c50..bbf3a63aa 100644 --- a/template/admin/src/components/systemStore/index.vue +++ b/template/admin/src/components/systemStore/index.vue @@ -178,8 +178,8 @@ diff --git a/template/admin/src/layout/routerView/parent.vue b/template/admin/src/layout/routerView/parent.vue index b3e86b5df..f4b8d1461 100644 --- a/template/admin/src/layout/routerView/parent.vue +++ b/template/admin/src/layout/routerView/parent.vue @@ -22,7 +22,6 @@ export default { created() { this.keepAliveNameList = this.getKeepAliveNames(); this.bus.$on('onTagsViewRefreshRouterView', (path) => { - console.log(path); if (this.$route.path !== path) return false; this.keepAliveNameList = this.getKeepAliveNames().filter((name) => this.$route.name !== name); this.refreshRouterViewKey = this.$route.path; diff --git a/template/admin/src/pages/account/login/index.vue b/template/admin/src/pages/account/login/index.vue index 1ff664dff..ded98324e 100644 --- a/template/admin/src/pages/account/login/index.vue +++ b/template/admin/src/pages/account/login/index.vue @@ -258,7 +258,6 @@ export default { }, formatTwoStageRoutes(arr) { if (arr.length <= 0) return false; - console.log(arr, 'arr'); const newArr = []; const cacheList = []; arr.forEach((v) => { @@ -268,7 +267,6 @@ export default { this.$store.dispatch('keepAliveNames/setCacheKeepAlive', cacheList); } }); - console.log(newArr, 'newArr'); return newArr; }, // 多级嵌套数组处理成一维数组 diff --git a/template/admin/src/pages/cms/articleCategory/index.vue b/template/admin/src/pages/cms/articleCategory/index.vue index bf296f1a1..f7c62a88f 100644 --- a/template/admin/src/pages/cms/articleCategory/index.vue +++ b/template/admin/src/pages/cms/articleCategory/index.vue @@ -79,10 +79,16 @@ - - - - +
+ +
diff --git a/template/admin/src/pages/setting/systemOutInterface/components/MonacoEditor.vue b/template/admin/src/pages/setting/systemOutInterface/components/MonacoEditor.vue new file mode 100644 index 000000000..aa3197799 --- /dev/null +++ b/template/admin/src/pages/setting/systemOutInterface/components/MonacoEditor.vue @@ -0,0 +1,75 @@ + + + + diff --git a/template/admin/src/pages/setting/systemOutInterface/debugging.vue b/template/admin/src/pages/setting/systemOutInterface/debugging.vue new file mode 100644 index 000000000..1cb2b1aaf --- /dev/null +++ b/template/admin/src/pages/setting/systemOutInterface/debugging.vue @@ -0,0 +1,465 @@ + + + + + diff --git a/template/admin/src/pages/setting/systemOutInterface/index.vue b/template/admin/src/pages/setting/systemOutInterface/index.vue index 838b75747..0af83f869 100644 --- a/template/admin/src/pages/setting/systemOutInterface/index.vue +++ b/template/admin/src/pages/setting/systemOutInterface/index.vue @@ -67,7 +67,7 @@ -