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}}) } }, // 查询驾驶证类型