From 75a56eec3a44f95fcee92f37f47c5e68f9fe63a7 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 14:40:38 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BA=91=E5=9B=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capabilityCloud/components/ComponentServices.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index 4003bd3b..f2dd031d 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -180,7 +180,11 @@ callTheTrendPort(start, end, 86400).then((res) => { if (res.data.data.result) { // res.data.data.result.splice(0, 1) + callTheTrendData.value.snum = [] res.data.data.result[0].values.map((item) => { + callTheTrendData.value.snum.push( + moment(item[0] * 1000).format('MM-DD') + ) callTheTrendData.value.snum.push(parseInt(item[1])) }) callTheTrend(callTheTrendData.value) From bcaddcd4faf221ab0195f1e5ca51a8ffa6c1c616 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 14:50:29 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/workBench/api.js | 3 +- .../workBench/components/bottom-view.vue | 178 ++++++++++++++++-- .../workBench/components/dynamic-view.vue | 69 ------- .../components/frequency-top5-view.vue | 14 +- .../workBench/components/recommend-view.vue | 98 ---------- .../src/views/modules/workBench/workBench.vue | 2 + 6 files changed, 179 insertions(+), 185 deletions(-) delete mode 100644 back/src/views/modules/workBench/components/dynamic-view.vue delete mode 100644 back/src/views/modules/workBench/components/recommend-view.vue diff --git a/back/src/views/modules/workBench/api.js b/back/src/views/modules/workBench/api.js index da7c16a2..38aad1e9 100644 --- a/back/src/views/modules/workBench/api.js +++ b/back/src/views/modules/workBench/api.js @@ -116,7 +116,8 @@ export const getFrequence = (data, success, fail) => { export const getResourceByDept = (data, success, fail) => { Request({ methods: 'get', - url: '/resource/getByDept', + // url: '/resource/getByDept', + url: '/workdynamics/getDeptWork', data }).then(res => { success && success(res) diff --git a/back/src/views/modules/workBench/components/bottom-view.vue b/back/src/views/modules/workBench/components/bottom-view.vue index cf6da540..35aed927 100644 --- a/back/src/views/modules/workBench/components/bottom-view.vue +++ b/back/src/views/modules/workBench/components/bottom-view.vue @@ -1,53 +1,132 @@ \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/dynamic-view.vue b/back/src/views/modules/workBench/components/dynamic-view.vue deleted file mode 100644 index fea8cda8..00000000 --- a/back/src/views/modules/workBench/components/dynamic-view.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - \ No newline at end of file diff --git a/back/src/views/modules/workBench/components/frequency-top5-view.vue b/back/src/views/modules/workBench/components/frequency-top5-view.vue index 9764f74e..49938ded 100644 --- a/back/src/views/modules/workBench/components/frequency-top5-view.vue +++ b/back/src/views/modules/workBench/components/frequency-top5-view.vue @@ -4,15 +4,22 @@
-
{{ no2Obj.name || '--' }}
+ +
{{ no2Obj.name || '--' }}
+
{{ formatCount(no2Obj.count) }}
-
{{ no1Obj.name || '--' }}
+ +
{{ no1Obj.name || '--' }}
+
{{ formatCount(no1Obj.count) }}
-
{{ no3Obj.name || '--' }}
+ +
{{ no3Obj.name || '--' }}
+
+
{{ formatCount(no3Obj.count) }}
@@ -174,6 +181,7 @@ export default { margin-bottom: 10px; margin-top: 70px; width: 150px; + text-align: center; } .count { diff --git a/back/src/views/modules/workBench/components/recommend-view.vue b/back/src/views/modules/workBench/components/recommend-view.vue deleted file mode 100644 index c07032b0..00000000 --- a/back/src/views/modules/workBench/components/recommend-view.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - \ No newline at end of file diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index 95b6f0f8..04cb45a4 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -212,6 +212,8 @@ export default { } .work-brnch-box { + padding-bottom: 20px; + .top { height: 284px; margin-bottom: 16px; From 8809317979877aa3e143ccbe2ba142d06c9b1d22 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 14:53:40 +0800 Subject: [PATCH 03/16] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/workBench/components/bottom-view.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/back/src/views/modules/workBench/components/bottom-view.vue b/back/src/views/modules/workBench/components/bottom-view.vue index 35aed927..98acdc7a 100644 --- a/back/src/views/modules/workBench/components/bottom-view.vue +++ b/back/src/views/modules/workBench/components/bottom-view.vue @@ -149,7 +149,6 @@ export default { box-sizing: border-box; display: flex; justify-content: space-between; - margin-bottom: 20px; .container { background: #fff; From 5c5a3b497f86219fe1ae235b31e9de11ecb995d9 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 14:54:57 +0800 Subject: [PATCH 04/16] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/workBench/workBench.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index 04cb45a4..c86fe596 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -212,7 +212,6 @@ export default { } .work-brnch-box { - padding-bottom: 20px; .top { height: 284px; From cacb9ec52e5fc677e1005276ee79ad13d59a2658 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 15:43:13 +0800 Subject: [PATCH 05/16] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0:=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E5=B7=B2=E5=8A=9E=E8=B7=AF=E7=94=B1=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/workBench/components/dept-todo-view.vue | 9 +++++++-- back/src/views/modules/workBench/workBench.vue | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/back/src/views/modules/workBench/components/dept-todo-view.vue b/back/src/views/modules/workBench/components/dept-todo-view.vue index 2ee0baca..3864a583 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -22,7 +22,7 @@
-
+
查看更多 >
@@ -51,7 +51,12 @@ export default { methods: { formatNum(num) { return num || num === 0 ? num : '--' - } + }, + goPage(url) { + this.$router.push({ + path: url + }); + }, } } diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index c86fe596..95f5bca3 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -54,7 +54,8 @@ export default { textColor: '#f86f01', num: 0, list: [], - nameStr: 'taskName' + nameStr: 'taskName', + url: 'activiti-my-todo-task' }, // 部门已办 hasToDodoData: { @@ -66,7 +67,8 @@ export default { textColor: '#21b107', num: 0, list: [], - nameStr: 'processDefinitionName' + nameStr: 'processDefinitionName', + url: 'activiti-my-join-task' }, // 部门申请 resourceData: [], From d347e274c549962c3587e08e589303f861f263f7 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 15:53:16 +0800 Subject: [PATCH 06/16] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=BB=84=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/detailsAll/DeveloperComponents.vue | 1 + .../Developer/DeveloperAssociatedAbility.vue | 3 ++- .../Developer/DeveloperNavigation.vue | 17 +++++++++++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/front/src/views/detailsAll/DeveloperComponents.vue b/front/src/views/detailsAll/DeveloperComponents.vue index d4cf3941..2047bcbd 100644 --- a/front/src/views/detailsAll/DeveloperComponents.vue +++ b/front/src/views/detailsAll/DeveloperComponents.vue @@ -12,6 +12,7 @@ diff --git a/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue b/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue index a584b464..9853e728 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperAssociatedAbility.vue @@ -41,9 +41,10 @@ }, }) } - if (props.associatedComponents) { + if (props.associatedComponents[0].dataList.length != 0) { flag.value = true dataFrom.value = props.associatedComponents + debugger console.log('dataFrom.value', dataFrom.value) } else { flag.value = false diff --git a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue index dc751b18..6e3d9926 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue @@ -60,6 +60,7 @@ const props = defineProps({ selectNow: { type: String, default: '' }, dataList: { type: Object, default: null }, + associatedComponents: { type: Array, default: null }, }) const select = ref('algorithm-display') const list = ref([]) @@ -84,7 +85,13 @@ navList.value.forEach((item) => { console.log(item) if (list.value.indexOf(item.name) > -1) { - item.show = true + if (item.name == '关联能力') { + if (props.associatedComponents[0].dataList.length != 0) { + item.show = true + } + } else { + item.show = true + } } }) select.value = navList.value.filter( @@ -121,7 +128,13 @@ navList.value.forEach((item) => { console.log(item) if (list.value.indexOf(item.name) > -1) { - item.show = true + if (item.name == '关联能力') { + if (props.associatedComponents[0].dataList.length != 0) { + item.show = true + } + } else { + item.show = true + } } }) if (list.value.length > 0) { From e5ea56b29fa829d1782c6a95d41e903226e2c68b Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Fri, 1 Jul 2022 15:58:59 +0800 Subject: [PATCH 07/16] =?UTF-8?q?bug=20=E5=85=83--=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Algorithm/AlgorithmChargingStandard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue index 455161db..2768387e 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmChargingStandard.vue @@ -46,7 +46,7 @@ title: item.type, content: item.desc, value: item.price, - time: '', + time: '元', unit: '¥', } break @@ -103,7 +103,7 @@ title: item.type, content: item.desc, value: item.price, - time: '', + time: '元', unit: '¥', } break From 418b5f1de78c411015b896d13304a63388249148 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Fri, 1 Jul 2022 17:03:15 +0800 Subject: [PATCH 08/16] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 33 ++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index c59b84f9..e357fa94 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -5,7 +5,7 @@
{{ item.title }} - + { res.data.data.forEach((val) => { @@ -281,10 +288,21 @@ }) }) }) + // 改变查询摄像头接口的labelCode数组 + mapSearchParam.value.labelCodes = [] + clickList.value[1].content.map((item) => { + mapSearchParam.value.labelCodes.push(item.labelCode) + }) + console.log('选中的标签code', mapSearchParam.value) + mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' + getCamera() } else if (name == '云资源') { tableHeight.value = 600 showMap.value = false + dataSource.value = [] + pagination.value.total = 0 clickList.value[1].content = [] + tabList.value[1].title = '云资源分类' clickList.value[indexFather].content[0] = name tabList.value[1].content = [ '云主机', @@ -300,20 +318,15 @@ tableHeight.value = 330 showMap.value = true clickList.value[1].content = [] + pagination.value.total = 0 + tabList.value[1].title = '感知资源分类' clickList.value[indexFather].content[0] = name tabList.value[1].content = [] + dataSource.value = [] } else { clickList.value[indexFather].content.push(name) } } - // 改变查询摄像头接口的labelCode数组 - mapSearchParam.value.labelCodes = [] - clickList.value[1].content.map((item) => { - mapSearchParam.value.labelCodes.push(item.labelCode) - }) - console.log('选中的标签code', mapSearchParam.value) - mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' - getCamera() } // 清空 const nullClick = () => { From d0bbe8d90922f45b9fa4fb4d5faf7dfbf55f98da Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 17:05:15 +0800 Subject: [PATCH 09/16] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BA=91=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/capabilityCloud/components/DataResources.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/front/src/views/capabilityCloud/components/DataResources.vue b/front/src/views/capabilityCloud/components/DataResources.vue index 77d4e9eb..b4dba74f 100644 --- a/front/src/views/capabilityCloud/components/DataResources.vue +++ b/front/src/views/capabilityCloud/components/DataResources.vue @@ -144,7 +144,11 @@ const object = res.data.data.filter((item) => item.type === val.name)[0] console.log('object', object) if (object) { - val.num = object.amount + if (object.type == '满足率') { + val.num = object.amount * 100 + '%' + } else { + val.num = object.amount + } } }) const arr = res.data.data.filter((item) => item.resourceTop5)[0] From fe1c1931f060766c37bcb2ea97ef8b059997b9f5 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 17:22:37 +0800 Subject: [PATCH 10/16] =?UTF-8?q?=E5=9B=BE=E5=B1=82=E6=9C=8D=E5=8A=A1-?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=BB=84=E4=BB=B6-=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=BB=84=E4=BB=B6bug406=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/detailsAll/AlgorithmDetails.vue | 1 + .../src/views/detailsAll/BusinessDetails.vue | 13 +++++---- front/src/views/detailsAll/LayerService.vue | 13 +++++---- .../Algorithm/AlgorithmNavigation.vue | 22 ++++++++------ .../Business/BusinessAssociatedAbility.vue | 5 ++-- .../Business/BusinessNavigation.vue | 27 ++++++++++++----- .../Developer/DeveloperAssociatedAbility.vue | 2 +- .../Developer/DeveloperNavigation.vue | 10 +++---- .../LayerServiceAssociatedAbility.vue | 5 ++-- .../LayerService/LayerServiceNavigation.vue | 29 ++++++++++++++----- 10 files changed, 81 insertions(+), 46 deletions(-) diff --git a/front/src/views/detailsAll/AlgorithmDetails.vue b/front/src/views/detailsAll/AlgorithmDetails.vue index f215bd10..581c3bf0 100644 --- a/front/src/views/detailsAll/AlgorithmDetails.vue +++ b/front/src/views/detailsAll/AlgorithmDetails.vue @@ -11,6 +11,7 @@ - - + + + + - - { + // 根据能力id查询是否存在关联应用 + queryPartAppByKeyId2({ keyId: keyId }).then((res) => { console.log('ressssssss', res) if (res.data.data.length > 0) { // 存在关联应用时在导航栏加入关联应用 navList.value.unshift({ name: '关联应用', key: 'algorithm-associated-ability', - show: true + show: true, }) // list.value.push('关联应用') console.log('navList', navList) @@ -82,8 +81,7 @@ const props = defineProps({ selectNow: { type: String, default: '' }, dataList: { type: Object, default: null }, - } - ) + }) const select = ref('algorithm-display') @@ -163,11 +161,17 @@ } }) if (list.value.length > 0) { + console.log( + '11111111111111111111111111', + (select.value = navList.value.filter( + (item) => item.name === list.value[0] + )[0]) + ) + debugger select.value = navList.value.filter( (item) => item.name === list.value[0] )[0].key } - console.log('11111111111111111111111111', list.value, navList.value) } } ) diff --git a/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue b/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue index 95e54415..0173725e 100644 --- a/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue +++ b/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue @@ -1,6 +1,6 @@