diff --git a/src/views/pages/deploy/application-config/config/app/app-config-tree.vue b/src/views/pages/deploy/application-config/config/app/app-config-tree.vue index 7bef7b0ce658341957e0680e166f3585fad15f59..88c050c756377049f676e23661a60e6c2c66d90f 100644 --- a/src/views/pages/deploy/application-config/config/app/app-config-tree.vue +++ b/src/views/pages/deploy/application-config/config/app/app-config-tree.vue @@ -163,7 +163,7 @@ export default { }; this.$api.deploy.applicationConfig.getEnvTreeList(params).then(res => { if (res && res.Status == 'OK') { - const envList = res.Return || []; + const envList = res.Return.tbodyList || []; let children = []; children = envList.map(item => { return { title: item.name, appSystemId: currentNode.appSystemId, appModuleId: currentNode.appModuleId, envId: item.id, isConfig: currentNode.isConfig, configType: 'env', path: `${currentNode.path}/${item.name}`, isDeletable: item.isDeletable, isHasAllAuthority: currentNode.isHasAllAuthority, isConfigAuthority: currentNode.isConfigAuthority, authActionSet: currentNode.authActionSet || []}; @@ -401,7 +401,7 @@ export default { }; this.$api.deploy.applicationConfig.getEnvTreeList(params).then(res => { if (res && res.Status == 'OK') { - const envList = res.Return || []; + const envList = res.Return.tbodyList || []; let children = []; let selectedTreeNode = {}; children = envList.map(item => { @@ -482,7 +482,7 @@ export default { }; this.$api.deploy.applicationConfig.getEnvTreeList(params).then(res => { if (res && res.Status == 'OK') { - const envList = res.Return || []; + const envList = res.Return.tbodyList || []; let children = []; children = envList.map(item => { return { title: item.name, appSystemId: appSystemId, appModuleId: appModuleId, envId: item.id, isConfig: isConfig, configType: 'env', path: `${path}/${item.name}`, isDeletable: item.isDeletable}; diff --git a/src/views/pages/deploy/application-config/config/app/app-module-list.vue b/src/views/pages/deploy/application-config/config/app/app-module-list.vue index 27cb48189b92ca90f36d8c8647d6a5c8609db64b..6d175d7b065420d2fde4fd5d4e34787b8b5d0087 100644 --- a/src/views/pages/deploy/application-config/config/app/app-module-list.vue +++ b/src/views/pages/deploy/application-config/config/app/app-module-list.vue @@ -413,7 +413,7 @@ export default { .getEnvTreeList(params) .then(res => { if (res && res.Status == 'OK') { - const envList = res.Return || []; + const envList = res.Return.tbodyList || []; this.$set(module, 'envList', envList); this.$set(module, 'isExpand', true); } diff --git a/src/views/pages/deploy/application-config/config/app/components/env-tree-edit.vue b/src/views/pages/deploy/application-config/config/app/components/env-tree-edit.vue index fde6ff6e05a9225d0ccba1f372866eab89a85271..b705c928252b10ef155889531e5f90370966ec1d 100644 --- a/src/views/pages/deploy/application-config/config/app/components/env-tree-edit.vue +++ b/src/views/pages/deploy/application-config/config/app/components/env-tree-edit.vue @@ -50,11 +50,12 @@ export default { label: this.$t('page.environment'), type: 'select', validateList: ['required'], + rootName: 'tbodyList', valueName: 'id', textName: 'name', multiple: true, transfer: true, - params: {...this.params, isHasEnv: 0}, + params: {...this.params, isHasEnv: 0, needPage: true}, dynamicUrl: 'api/rest/deploy/app/config/env/list' } } diff --git a/src/views/pages/deploy/application-config/config/env/copy-config-env.vue b/src/views/pages/deploy/application-config/config/env/copy-config-env.vue index 7eb41291137fc37973599236a8015560eeb19ccc..86fa0b82f7ad2118b69c7f0da15ffaabed219db3 100644 --- a/src/views/pages/deploy/application-config/config/env/copy-config-env.vue +++ b/src/views/pages/deploy/application-config/config/env/copy-config-env.vue @@ -82,10 +82,11 @@ export default { validateList: ['required'], multiple: true, transfer: true, + rootName: 'tbodyList', valueName: 'id', textName: 'name', - params: {...this.params, isHasEnv: 0}, - url: '/api/rest/deploy/app/config/env/list' + params: {...this.params, isHasEnv: 0, needPage: true}, + dynamicUrl: '/api/rest/deploy/app/config/env/list' } ], existingFormList: [ // 现有环境