diff --git a/src/api/inquiryMachine/column.js b/src/api/inquiryMachine/column.js index 561c009..7c631ab 100644 --- a/src/api/inquiryMachine/column.js +++ b/src/api/inquiryMachine/column.js @@ -1,5 +1,6 @@ import request from '@/utils/request' +// 查询机栏目管理 export function FetchInitQueryTopic() { return request({ url: 'api/queryMachine/initQueryTopic', @@ -7,6 +8,14 @@ export function FetchInitQueryTopic() { }) } +// 查询机栏目管理树 +export function FetchQueryTopicTree() { + return request({ + url: 'api/queryMachine/getQueryTopicTree', + method: 'get' + }) +} + export function add(data) { return request({ url: 'api/queryMachine/editQueryTopic', @@ -39,4 +48,4 @@ export function FetchQueryTopicStatus(data) { }) } -export default { FetchInitQueryTopic, add, edit, del, FetchQueryTopicStatus } +export default { FetchInitQueryTopic, FetchQueryTopicTree, add, edit, del, FetchQueryTopicStatus } diff --git a/src/api/inquiryMachine/menu.js b/src/api/inquiryMachine/menu.js index a3d3fc7..0340aaf 100644 --- a/src/api/inquiryMachine/menu.js +++ b/src/api/inquiryMachine/menu.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -// 获取门类树状菜单 +// 获取菜单树状菜单 export function FetchCategoryMenu() { return request({ url: 'api/category/menu', @@ -8,15 +8,7 @@ export function FetchCategoryMenu() { }) } -// 获取门类下的子门类 -export function FetchCategoryMenuChildren(cid) { - return request({ - url: 'api/category/getChildren?categoryId=' + cid, - method: 'get' - }) -} - -// 新增门类 +// 新增菜单 export function add(data) { return request({ url: 'api/queryMachine/editQueryMenu', @@ -25,7 +17,7 @@ export function add(data) { }) } -// 编辑门类 +// 编辑菜单 export function edit(data) { return request({ url: 'api/queryMachine/editQueryMenu', @@ -34,108 +26,22 @@ export function edit(data) { }) } -// 删除门类 -export function del(ids) { - const params = { id: ids[0] } - return request({ - url: 'api/category/delete', - method: 'delete', - params - }) -} - -// 修改门类树状菜单 -export function sort(data) { - return request({ - url: 'api/category/sort', - method: 'put', - data - }) -} - -// 获取归档章版式 -export function FetchGetFilingsealFormat() { - return request({ - url: 'api/category/getFilingsealFormat', - method: 'get' - }) -} - -// 获取归档章详情 -export function FetchGetFilingsealFormatDtails(filingId) { +// 删除菜单 +export function del(data) { return request({ - url: 'api/category/getFilingsealFormatDtails?filingId=' + filingId, - method: 'get' - }) -} - -// 保存归档章 -export function FetchEditCategoryFilingseal(data) { - return request({ - url: 'api/category/editCategoryFilingseal', + url: 'api/queryMachine/deleteQueryMenu', method: 'post', data }) } -// 启用 / 关闭归档章 -export function FetchEnabledFilingseal(data) { - return request({ - url: 'api/category/enabledFilingseal', - method: 'post', - data - }) -} - -// 门类下得字段 -export function FetchInitCategoryField(params) { - return request({ - url: 'api/category/initCategoryField', - method: 'get', - params - }) -} - -export function FetchCategoryFieldManage(params) { - return request({ - url: 'api/category/categoryFieldManage', - method: 'get', - params - }) -} - -// 著录界面排序 -export function FetchUpardicSort(data) { +// 修改菜单树状菜单 +export function sort(data) { return request({ - url: 'api/category/upardicSort', + url: 'api/category/sort', method: 'put', data }) } -// 根据父级门类id获取门类字段 -export function FetchInitCategoryFieldByPid(params) { - return request({ - url: 'api/category/initCategoryFieldByPid', - method: 'get', - params - }) -} - -export function FetchInitCategoryInputFieldByPid(params) { - return request({ - url: 'api/category/initCategoryInputFieldByPid', - method: 'get', - params - }) -} - -export function FetchMenuByFondsId(params) { - return request({ - url: 'api/category/menuByFondsId', - method: 'get', - params - }) -} - -export default { add, edit, del, FetchCategoryMenu, FetchInitCategoryField, FetchCategoryFieldManage, FetchUpardicSort, FetchInitCategoryFieldByPid, FetchInitCategoryInputFieldByPid, FetchMenuByFondsId } +export default { add, edit, del, FetchCategoryMenu } diff --git a/src/views/inquiryMachine/form.vue b/src/views/inquiryMachine/form.vue index dde620d..dd7bc26 100644 --- a/src/views/inquiryMachine/form.vue +++ b/src/views/inquiryMachine/form.vue @@ -4,31 +4,33 @@
- + - + - - + + - - + + + + - - + + - - + +