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 @@ -