diff --git a/webs/ams-web/src/services/cmdb/module.js b/webs/ams-web/src/services/cmdb/module.js index eab03b2..fc23888 100644 --- a/webs/ams-web/src/services/cmdb/module.js +++ b/webs/ams-web/src/services/cmdb/module.js @@ -3,6 +3,7 @@ */ import { request } from '@cmp/cmp-element' import { wrapperParams } from 'utils' +import { getSelectPosition } from '@/views/usePostion' export function getPropertiesByCode(code) { return request.get('/ims/v1/properties', { params: wrapperParams({ code }), @@ -70,7 +71,7 @@ export function getModuleGroupRoot() { } export function getModuleGroupChildren(groupId, params) { - return request.get(`${baseUrl}/group/${groupId}/children`, { params }) + return request.get(`${baseUrl}/group/${groupId}/children`, { params: { positionKey: getSelectPosition(), ...params } }) } export function getRootGroups(groupId) { diff --git a/webs/ams-web/src/services/index.ts b/webs/ams-web/src/services/index.ts index 9cd7f3f..5d9d207 100644 --- a/webs/ams-web/src/services/index.ts +++ b/webs/ams-web/src/services/index.ts @@ -1,4 +1,5 @@ import { request } from '@cmp/cmp-element' +import { getSelectPosition } from '@/views/usePostion' export function getValidateRules(type: string) { return request.get('/ams/v1/regexps', { @@ -7,7 +8,11 @@ export function getValidateRules(type: string) { } export function getPropertyByModule(moduleId: number) { - return request.get(`/ams/v1/module/${moduleId}/properties`) + return request.get(`/ams/v1/module/${moduleId}/properties`, { + params: { + positionKey: getSelectPosition(), + }, + }) } export function getModuleRelation(params: { sourceId: number; targetId: number; relationCategoryId: number }) { diff --git a/webs/ams-web/src/services/resource/moduleInstance.ts b/webs/ams-web/src/services/resource/moduleInstance.ts index 22ac9a9..0dcd030 100644 --- a/webs/ams-web/src/services/resource/moduleInstance.ts +++ b/webs/ams-web/src/services/resource/moduleInstance.ts @@ -1,8 +1,9 @@ import { request, downloadFile } from '@cmp/cmp-element' +import { getSelectPosition } from '@/views/usePostion' const baseUrl = '/ams/v1/instances' export function getInstance(params: Base.IListParams) { - return request.get(baseUrl, { params }) + return request.get(baseUrl, { params: { positionKey: getSelectPosition(), ...params } }) } export function getInstanceDetail(id: number) { return request.get(`${baseUrl}/${id}`) diff --git a/webs/ams-web/src/views/module/attribute-pool/components/index.js b/webs/ams-web/src/views/module/attribute-pool/components/index.js index 56f935d..6663009 100644 --- a/webs/ams-web/src/views/module/attribute-pool/components/index.js +++ b/webs/ams-web/src/views/module/attribute-pool/components/index.js @@ -19,7 +19,6 @@ const codeMap = new Map([ ['MULTILINETABLE', 'table-module'], ]) const vueFiles = require.context('./', true, /\.vue$/) -console.log(vueFiles) export const components = getModules(vueFiles) export function getCurrentComponent(type) { diff --git a/webs/ams-web/src/views/resource/menu/List.vue b/webs/ams-web/src/views/resource/menu/List.vue index 3b504f6..a252092 100644 --- a/webs/ams-web/src/views/resource/menu/List.vue +++ b/webs/ams-web/src/views/resource/menu/List.vue @@ -1,7 +1,7 @@