diff --git a/back/src/views/modules/myAgent/demo/competency-application.vue b/back/src/views/modules/myAgent/demo/competency-application.vue index 74fc2a7c..709f0fcc 100644 --- a/back/src/views/modules/myAgent/demo/competency-application.vue +++ b/back/src/views/modules/myAgent/demo/competency-application.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-29 15:59:51 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-29 18:17:07 + * @LastEditTime: 2022-07-01 09:29:57 * @Description: 告诉大家这是什么 --> @@ -183,16 +183,30 @@ export default { }) } this.dataForm.content = res.data.tAbilityApplicationDTOList[0] + const obj = { + name: '申请摄像头列表', + type: '基础设施', + describe: '' + } + let flag = false res.data.tAbilityApplicationDTOList.map(val => { - this.$http.get('/resource/' + val.resourceId).then(res1 => { - console.log(res1.data.data, '1111111111111111111111111111111111') - this.dataList.push({ - name: res1.data.data.name, - type: res1.data.data.type, - describe: res1.data.data.description + if (val.cameraList) { + flag = true + obj.describe += val.system + } else { + this.$http.get('/resource/' + val.resourceId).then(res1 => { + // console.log(res1.data.data, '1111111111111111111111111111111111') + this.dataList.push({ + name: res1.data.data.name, + type: res1.data.data.type, + describe: res1.data.data.description + }) }) - }) + } }) + if (flag) { + this.dataList.push(obj) + } }) .catch(() => {}) }, diff --git a/front/src/views/abilityStatistics/components/AtlasResources.vue b/front/src/views/abilityStatistics/components/AtlasResources.vue index 375b6f73..4c93e14a 100644 --- a/front/src/views/abilityStatistics/components/AtlasResources.vue +++ b/front/src/views/abilityStatistics/components/AtlasResources.vue @@ -121,6 +121,7 @@