diff --git a/src/api/inquiryMachine/column.js b/src/api/inquiryMachine/column.js index b8afe46..561c009 100644 --- a/src/api/inquiryMachine/column.js +++ b/src/api/inquiryMachine/column.js @@ -1,8 +1,15 @@ import request from '@/utils/request' +export function FetchInitQueryTopic() { + return request({ + url: 'api/queryMachine/initQueryTopic', + method: 'get' + }) +} + export function add(data) { return request({ - url: 'api/fonds/editFonds', + url: 'api/queryMachine/editQueryTopic', method: 'post', data }) @@ -10,7 +17,7 @@ export function add(data) { export function edit(data) { return request({ - url: 'api/fonds/editFonds', + url: 'api/queryMachine/editQueryTopic', method: 'post', data }) @@ -18,18 +25,18 @@ export function edit(data) { export function del(data) { return request({ - url: 'api/fonds/delFonds', + url: 'api/queryMachine/deleteQueryTopic', method: 'post', data }) } -export function FetchUpdateFondsStatus(data) { +export function FetchQueryTopicStatus(data) { return request({ - url: 'api/fonds/updateFondsStatus', + url: 'api/queryMachine/changeQueryTopicStatus', method: 'post', data }) } -export default { add, edit, del, FetchUpdateFondsStatus } +export default { FetchInitQueryTopic, add, edit, del, FetchQueryTopicStatus } diff --git a/src/api/inquiryMachine/content.js b/src/api/inquiryMachine/content.js index b8afe46..9be9a13 100644 --- a/src/api/inquiryMachine/content.js +++ b/src/api/inquiryMachine/content.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import qs from 'qs' export function add(data) { return request({ @@ -24,12 +25,11 @@ export function del(data) { }) } -export function FetchUpdateFondsStatus(data) { +export function FetchQueryTopicTree(params) { return request({ - url: 'api/fonds/updateFondsStatus', - method: 'post', - data + url: 'api/queryMachine/getQueryTopicTree' + '?' + qs.stringify(params, { indices: false }), + method: 'get' }) } -export default { add, edit, del, FetchUpdateFondsStatus } +export default { add, edit, del, FetchQueryTopicTree } diff --git a/src/api/inquiryMachine/menu.js b/src/api/inquiryMachine/menu.js new file mode 100644 index 0000000..a3d3fc7 --- /dev/null +++ b/src/api/inquiryMachine/menu.js @@ -0,0 +1,141 @@ +import request from '@/utils/request' + +// 获取门类树状菜单 +export function FetchCategoryMenu() { + return request({ + url: 'api/category/menu', + method: 'get' + }) +} + +// 获取门类下的子门类 +export function FetchCategoryMenuChildren(cid) { + return request({ + url: 'api/category/getChildren?categoryId=' + cid, + method: 'get' + }) +} + +// 新增门类 +export function add(data) { + return request({ + url: 'api/queryMachine/editQueryMenu', + method: 'post', + data + }) +} + +// 编辑门类 +export function edit(data) { + return request({ + url: 'api/queryMachine/editQueryMenu', + method: 'post', + 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) { + return request({ + url: 'api/category/getFilingsealFormatDtails?filingId=' + filingId, + method: 'get' + }) +} + +// 保存归档章 +export function FetchEditCategoryFilingseal(data) { + return request({ + url: 'api/category/editCategoryFilingseal', + 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) { + return request({ + url: 'api/category/upardicSort', + 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 } diff --git a/src/views/inquiryMachine/column.vue b/src/views/inquiryMachine/column.vue index 5daea67..b4e0ae2 100644 --- a/src/views/inquiryMachine/column.vue +++ b/src/views/inquiryMachine/column.vue @@ -4,14 +4,16 @@
{{ node.label }}
+{{ node.label }}
+