@@ -472,7 +472,7 @@ export default {
}
.container-body2{
- width:420px;
+ width:640px;
height:250px;
background-color: #ffffff;
margin-right:20px;
@@ -480,7 +480,7 @@ export default {
padding-left: 20px;
}
.container-body3{
- width:420px;
+ width:640px;
height:250px;
background-color: #ffffff;
padding-top:20px;
diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue
index ba73d740..ac0dd287 100644
--- a/back/src/views/modules/abilityStatistics/index.vue
+++ b/back/src/views/modules/abilityStatistics/index.vue
@@ -36,7 +36,7 @@
部门发布情况
-
+
部门使用情况
@@ -178,7 +178,7 @@ export default {
titleList:[
{name:'组件服务',key:1}, {name:'应用资源',key:2}, {name:'基础设施',key:3}, {name:'数据资源',key:3}, {name:'知识库',key:3},
],
- tableData: []
+ tableData: [{deptName:'部门',resourceNum:222}]
}
},
created(){
@@ -216,7 +216,7 @@ export default {
// pageSize: 20
}
}).then(res => {
- this.tableData =res.data.data
+ // this.tableData =res.data.data
})
},
// // 获取部门列表
@@ -244,7 +244,7 @@ export default {
resourceType:'组件服务'
}
}).then(res => {
- this.tableData =res.data.data.list
+ // this.tableData =res.data.data.list
this.total = res.data.data.total
})
},
@@ -258,7 +258,7 @@ export default {
resourceType:'组件服务'
}
}).then(res => {
- this.tableData =res.data.data.list
+ // this.tableData =res.data.data.list
})
},
@@ -272,7 +272,7 @@ export default {
resourceType:'应用资源'
}
}).then(res => {
- this.tableData =res.data.data.list
+ // this.tableData =res.data.data.list
this.total = res.data.data.total
})
@@ -287,22 +287,31 @@ export default {
resourceType:'应用资源'
}
}).then(res => {
- this.tableData =res.data.data.list
+ // this.tableData =res.data.data.list
})
},
handleClick(row) {
if(this.choseId===0){
- this.homeIsShow=false
- this.servicesIsShow=true
- this.tableId=row.deptId
- this.fatherId=1
- }else if(this.choseId===1){
- this.homeIsShow=false
- this.resourcesIsShow=true
- this.tableId=row.deptId
- this.fatherId=2
- }
+ if(this.departmentId===1){
+ this.homeIsShow=false
+ this.servicesIsShow=true
+ this.tableId=row.deptId
+ this.fatherId=1
+ }else if(this.departmentId===2){
+ this.homeIsShow=false
+ this.UsedIsShow=true
+ this.tableId=row.deptId
+ this.fatherId=1
+ }
+ else if(this.choseId===1){
+ this.homeIsShow=false
+ this.resourcesIsShow=true
+ this.tableId=row.deptId
+ this.fatherId=2
+ }
+ }
+
},
//选择组件
From aff2ebda88737d4aece09011e8a89b92422144cb Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Fri, 1 Jul 2022 10:33:11 +0800
Subject: [PATCH 2/4] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../myAgent/demo/competency-application.vue | 30 ++++++++++++-----
.../components/AtlasResources.vue | 32 +++++++++----------
2 files changed, 37 insertions(+), 25 deletions(-)
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 @@