From a11039d4d1fa73cce07283087c1d59f77d310fd2 Mon Sep 17 00:00:00 2001 From: xyc <3422692813@qq.com> Date: Tue, 27 May 2025 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection/businessChannel/api/index.js | 52 ++++ .../inspection/businessChannel/index.vue | 284 ++++++++++++++++++ src/views/inspection/staff/index.vue | 4 +- 3 files changed, 338 insertions(+), 2 deletions(-) create mode 100644 src/views/inspection/businessChannel/api/index.js create mode 100644 src/views/inspection/businessChannel/index.vue diff --git a/src/views/inspection/businessChannel/api/index.js b/src/views/inspection/businessChannel/api/index.js new file mode 100644 index 0000000..ba4ba61 --- /dev/null +++ b/src/views/inspection/businessChannel/api/index.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询菜单列表 +export function listBusiness(query) { + return request({ + url: '/channel/tree', + method: 'get', + params: query + }) +} + +// 查询菜单(精简)列表 +export function listSimpleMenus() { + return request({ + url: '/system/menu/list-all-simple', + method: 'get' + }) +} + +// 查询菜单详细 +export function getBusiness(id) { + return request({ + url: '/channel/' + id, + method: 'get' + }) +} + +// 新增菜单 +export function addBusiness(data) { + return request({ + url: '/channel/add', + method: 'post', + data: data + }) +} + +// 修改菜单 +export function updateBusiness(data) { + return request({ + url: '/channel/update', + method: 'put', + data: data + }) +} + +// 删除菜单 +export function delBusiness(id) { + return request({ + url: '/channel/delete/' + id, + method: 'delete' + }) +} diff --git a/src/views/inspection/businessChannel/index.vue b/src/views/inspection/businessChannel/index.vue new file mode 100644 index 0000000..d143486 --- /dev/null +++ b/src/views/inspection/businessChannel/index.vue @@ -0,0 +1,284 @@ + + + diff --git a/src/views/inspection/staff/index.vue b/src/views/inspection/staff/index.vue index d100a60..2a1a04b 100644 --- a/src/views/inspection/staff/index.vue +++ b/src/views/inspection/staff/index.vue @@ -571,10 +571,10 @@ export default { if (!this.form.folderId) { addFolder(this.form.id).then(response => { this.form.folderId = response.data - this.$router.push({path: '/jc/shop/partner/file/file', query: {"folderId": this.form.folderId}}) + this.$router.push({path: '/jc/shop/nbgl/partner/file/file', query: {"folderId": this.form.folderId}}) }) } else { - this.$router.push({path: '/jc/shop/partner/file/file', query: {"folderId": this.form.folderId}}) + this.$router.push({path: '/jc/shop/nbgl/partner/file/file', query: {"folderId": this.form.folderId}}) } }, // 查询驾驶证类型