From fc524a6b4305a93fd858ccec142bf8a50bcd2378 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 28 Jul 2022 17:12:30 +0800 Subject: [PATCH 01/10] =?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 --- back/src/router/index.js | 6 +- .../views/modules/sys/user-add-or-update.vue | 65 ++++++++++++------- 2 files changed, 46 insertions(+), 25 deletions(-) diff --git a/back/src/router/index.js b/back/src/router/index.js index b2f3777e..c386dc1b 100644 --- a/back/src/router/index.js +++ b/back/src/router/index.js @@ -5,10 +5,9 @@ import { isURL } from '@/utils/validate' import store from '@/store' import Cookies from 'js-cookie' - // 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 const originalPush = Router.prototype.push -Router.prototype.push = function push(location) { +Router.prototype.push = function push (location) { return originalPush.call(this, location).catch(err => err) } @@ -42,7 +41,8 @@ export const moduleRoutes = { meta: { title: '主入口布局' }, children: [ // todos 临时调整,后期去掉 - { path: '/home', redirect: '/bscatalogue-bscatalogue', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页', isTab: true } }, + // { path: '/home', redirect: '/bscatalogue-bscatalogue', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页', isTab: true } }, + { path: '/home', redirect: '/workBench-workBench', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页', isTab: true } }, { path: '/iframe', component: null, name: 'iframe', meta: { title: 'iframe', isTab: true } } ] } diff --git a/back/src/views/modules/sys/user-add-or-update.vue b/back/src/views/modules/sys/user-add-or-update.vue index e8537498..c366c760 100644 --- a/back/src/views/modules/sys/user-add-or-update.vue +++ b/back/src/views/modules/sys/user-add-or-update.vue @@ -56,6 +56,7 @@ import { isEmail, isMobile } from '@/utils/validate' export default { data () { return { + submitFlag: true, visible: false, roleList: [], roleIdListDefault: [], @@ -170,6 +171,22 @@ export default { ]).then(() => { if (this.dataForm.id) { this.getInfo() + } else { + this.dataForm = { + id: '', + username: '', + deptId: '', + deptName: '', + password: '', + confirmPassword: '', + realName: '', + gender: 0, + email: '', + mobile: '', + roleIdList: [], + postIdList: [], + status: 1 + } } }) }) @@ -219,30 +236,34 @@ export default { if (!valid) { return false } - this.dataForm.password = Encrypt(this.dataForm.password) - if (this.dataForm.id) { - delete this.dataForm.password - } - this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', { - ...this.dataForm, - roleIdList: [ - ...this.dataForm.roleIdList, - ...this.roleIdListDefault - ] - }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) + if (this.submitFlag) { + this.submitFlag = false + this.dataForm.password = Encrypt(this.dataForm.password) + if (this.dataForm.id) { + delete this.dataForm.password } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') + this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', { + ...this.dataForm, + roleIdList: [ + ...this.dataForm.roleIdList, + ...this.roleIdListDefault + ] + }).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) } - }) - }).catch(() => {}) + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.submitFlag = true + }).catch(() => {}) + } }) }, 1000, { leading: true, trailing: false }) } From ea3f4b3da1f4dbf38de092473f0cc936836d121a Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 28 Jul 2022 17:23:57 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=81=AE=E7=BD=A9=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/activiti/demo/putaway-process3.vue | 1 + back/src/views/modules/myAgent/demo/ability-resource-shelf.vue | 1 + back/src/views/modules/myAgent/demo/competency-application.vue | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/back/src/views/modules/activiti/demo/putaway-process3.vue b/back/src/views/modules/activiti/demo/putaway-process3.vue index 9837ee1a..4f1e12cc 100644 --- a/back/src/views/modules/activiti/demo/putaway-process3.vue +++ b/back/src/views/modules/activiti/demo/putaway-process3.vue @@ -117,6 +117,7 @@ @@ -109,6 +109,7 @@ Date: Thu, 28 Jul 2022 17:36:23 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E8=B5=8B=E8=83=BD=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E8=AF=A6=E6=83=85-=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/home/integrationServicesDetails.vue | 147 ++++++++++++------ 1 file changed, 100 insertions(+), 47 deletions(-) diff --git a/front/src/views/home/integrationServicesDetails.vue b/front/src/views/home/integrationServicesDetails.vue index fe18730d..ca2033eb 100644 --- a/front/src/views/home/integrationServicesDetails.vue +++ b/front/src/views/home/integrationServicesDetails.vue @@ -23,13 +23,44 @@ - + +
+
+ +
+
+
+
+
{{i+1}}.{{item.description}}
+
+
+
+ + +
+
+ +
+
+
+
{{i+1}}.{{item.description}}
+
+
+
+ +
- +
@@ -43,48 +74,23 @@
- -
+ +
- +
-
-
-
-
文档
- -
-
-
技术文档
-
使用手册
-
-
-
-
-
{{ use.title }}
-
- {{ use.info[d] }}:{{ detailInfoObj[d] || '--' }} -
-
+
+
+ + +
- - -
@@ -102,6 +108,9 @@ const router = useRouter() const scrollTop = ref(0) const domArr = ref([]) + const painPoint = ref([]) + const solution = ref([]) + const step=ref([]) const id = router.currentRoute.value.query.id document.documentElement.style.transition = 'all 0.3s ease' document.documentElement.scrollTop = 0 @@ -117,20 +126,24 @@ const navList = ref([ { - name: '组合能力', + name: '场景痛点', + key: 'integration-pain-point', + }, + { + name: '解决方案', + key: 'integration-solution', + }, + { + name: '使用能力', key: 'integration-combination-ability', }, { - name: '使用方式', - key: 'integration-use-way', - }, - { - name: '常见问题', - key: 'common-problem', + name: '构建步骤', + key: 'integration-step', }, ]) - const selectNow = ref('integration-combination-ability') + const selectNow = ref('integration-pain-point') const useWayShowList = ref([ { @@ -214,9 +227,12 @@ attrType: '常见问题', attrValue: questionValue.attrValue || '[]', } + painPoint.value = JSON.parse(fuseAttrList.find((v) => v.attrType === '场景痛点').attrValue) || [] + solution.value = JSON.parse(fuseAttrList.find((v) => v.attrType === '解决方案').attrValue) || [] + step.value = JSON.parse(fuseAttrList.find((v) => v.attrType === '使用步骤').attrValue) || [] let areaObj = { attrType: '应用领域', - attrValue: detailInfoObj.value.applicationArea, + attrValue: fuseAttrList.find((v) => v.attrType === '应用领域').attrValue, } combineList.value.map((item) => { let arr = ( @@ -409,6 +425,43 @@ } } + .pain-point { + padding: 0.8rem 0; + background: rgb(247, 248, 250); + .bg { + height: 2rem; + width: 2rem; + background: url('~@/assets/home/rhfw_square.png') no-repeat; + background-size: 100%; + margin-top: 0.3rem; + } + .content { + height: 2rem; + width: 6rem; + .content-item { + margin: 0.1rem; + } + } + } + + .solution { + padding: 0.8rem 0; + background: rgb(247, 248, 250); + .content { + height: 2rem; + width: 8rem; + .content-item { + margin: 0.3rem; + } + } + } + + .step { + padding: 0.8rem 0; + background: rgb(247, 248, 250); + + } + .combination-ability { padding: 0.8rem 0; background: rgb(247, 248, 250); From 816d07495ceb1acda6cb1baa595b7330cecdc592 Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 28 Jul 2022 17:52:31 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E6=89=93=E5=8C=85=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/router/index.js | 9 + .../home/components/searchResultList.vue | 1784 ++++++++--------- front/src/views/home/integrationServices.vue | 615 +++--- front/src/views/home/packagingDetails.vue | 153 ++ 4 files changed, 1329 insertions(+), 1232 deletions(-) create mode 100644 front/src/views/home/packagingDetails.vue diff --git a/front/src/router/index.js b/front/src/router/index.js index 8a34d071..729ba193 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -453,6 +453,15 @@ export const constantRoutes = [ icon: 'error-warning-line', }, }, + { + path: '/packagingDetails', + name: 'packagingDetails', + component: () => import('@/views/home/packagingDetails'), + meta: { + title: '打包模式详情', + icon: 'error-warning-line', + }, + }, { path: '/integrationServices', name: 'integrationServices', diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index e7510cd5..531885ad 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -6,153 +6,101 @@ 检测结果: {{ resourceTotal || '' }} 个{{ - cardType == '组件服务' ? '组件' : cardType == '应用资源' ? '应用' : '' + cardType == '组件服务' ? '组件' : cardType == '应用资源' ? '应用' : '' }}
    -
  • +
  • {{ item.name }} - +
    -
  • +
  • {{ item.name }} - +
-
+
-
+ - + .attrValue + " />
-
- +
-
+ ? 'znsf' + : item.infoList && + item.infoList.filter((val) => val.attrType == '组件类型')[0] + .attrValue == '智能算法' + ? 'znsf' + : item.infoList && + item.infoList.filter((val) => val.attrType == '组件类型')[0] + .attrValue == '图层服务' + ? 'tcfw' + : item.infoList && + item.infoList.filter((val) => val.attrType == '组件类型')[0] + .attrValue == '开发组件' + ? 'kfzj' + : item.infoList && + item.infoList.filter((val) => val.attrType == '组件类型')[0] + .attrValue == '业务组件' + ? 'ywzj' + : '' + " v-else-if=" + selectCardsname !== '基础设施' && selectCardsname !== '融合服务' +">
{{ item.name }} - + + fill="#d81e06" p-id="3063"> + fill="#d81e06" p-id="3064"> + fill="#d81e06" p-id="3065">
-
- diff --git a/front/src/views/home/packagingDetails.vue b/front/src/views/home/packagingDetails.vue new file mode 100644 index 00000000..da672d45 --- /dev/null +++ b/front/src/views/home/packagingDetails.vue @@ -0,0 +1,153 @@ + + + From fabd0da877109e8e9fb2a8c65fa0c2291eaee6e1 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 28 Jul 2022 19:35:42 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20=E8=A5=BF=E6=B5=B7?= =?UTF-8?q?=E5=B2=B8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 2 +- front/src/views/home/videoSurveillance/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 75040aca..837b1700 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -447,7 +447,7 @@ pageSize: mapSearchParam.value.pageSize, name: mapSearchParam.value.cameraName || '', longitude: mapSearchParam.value.gpsX || '', - atitude: mapSearchParam.value.gpsY || '', + latitude: mapSearchParam.value.gpsY || '', radius: mapSearchParam.value.radius || '', } let paramsFather = '' diff --git a/front/src/views/home/videoSurveillance/index.vue b/front/src/views/home/videoSurveillance/index.vue index 54b2653d..32097d52 100644 --- a/front/src/views/home/videoSurveillance/index.vue +++ b/front/src/views/home/videoSurveillance/index.vue @@ -224,7 +224,7 @@ pageSize: this.mapSearchParam.pageSize, name: this.mapSearchParam.cameraName || '', longitude: this.mapSearchParam.gpsX || '', - atitude: this.mapSearchParam.gpsY || '', + latitude: this.mapSearchParam.gpsY || '', radius: this.mapSearchParam.radius || '', } let paramsFather = '' From 1c7bdef115c1e332eff95973d1338d8c94f67754 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 28 Jul 2022 20:12:50 +0800 Subject: [PATCH 06/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/putOnTheShelf/components/special.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/back/src/views/modules/putOnTheShelf/components/special.vue b/back/src/views/modules/putOnTheShelf/components/special.vue index e6806199..bf515d18 100644 --- a/back/src/views/modules/putOnTheShelf/components/special.vue +++ b/back/src/views/modules/putOnTheShelf/components/special.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-07-08 09:54:50 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-25 11:20:25 + * @LastEditTime: 2022-07-28 20:09:53 * @Description: 多条数据特殊处理 --> \ No newline at end of file + diff --git a/front/src/api/capabilityCloud.js b/front/src/api/capabilityCloud.js index 8c72303b..d6e2e151 100644 --- a/front/src/api/capabilityCloud.js +++ b/front/src/api/capabilityCloud.js @@ -97,8 +97,15 @@ export function callTheTrendPort(start, end, params) { export function totalCallsSnum(params) { return request({ url: - '/metrics/api/v1/query?query=sum(apigateway_http_status)&time=1655793262.495' + - params, + `metrics/api/v1/query?query=sum(increase(apigateway_http_status))&time=${params}`, + method: 'get', + }) +} +//能力云图-调用成功次数 +export function totalCallsSnum2(params) { + return request({ + url: + `metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}))&time=${params}`, method: 'get', }) } diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index 799722d6..b3359fd0 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -119,6 +119,7 @@ componentServiceRank, callTheTrendPort, totalCallsSnum, + totalCallsSnum2, } from '@/api/capabilityCloud' import * as moment from 'moment' let xinhaianIsShow = whoShow.itShowXiHaiAn //判断是否是西海岸版本 @@ -410,6 +411,13 @@ if (!xinhaianIsShow) { totalCallsSnum(end).then((res) => { snum.value[1].num = res.data.data.result[0].value[1] + totalCallsSnum2(end).then((resSon) => { + snum.value[2].num = + ((snum.value[1].num - resSon.data.data.result[0].value[1]) / + snum.value[1].num) * + 100 + + '%' + }) }) } } From 428af8b74f7b654966f5e4d8d24f95030e933421 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Fri, 29 Jul 2022 09:08:06 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/public/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/back/public/index.html b/back/public/index.html index c8f9e70b..5ba2148d 100644 --- a/back/public/index.html +++ b/back/public/index.html @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-04-11 10:11:40 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-26 20:23:13 + * @LastEditTime: 2022-07-28 20:14:40 * @Description: 告诉大家这是什么 --> @@ -45,9 +45,9 @@ // window.SITE_CONFIG['apiURL'] = 'http://15.2.21.166:8888/renren-admin'; // window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin'; // window.SITE_CONFIG['apiURL'] = 'http://10.16.5.35:8888/renren-admin'; - window.SITE_CONFIG['apiURL'] = 'http://15.2.21.236:8888/renren-admin'; + // window.SITE_CONFIG['apiURL'] = 'http://15.2.21.236:8888/renren-admin'; window.SITE_CONFIG['previewUrl'] = 'http://localhost:8080/'; - // window.SITE_CONFIG['apiURL'] = 'http://15.2.23.141:8000/renren-admin'; + window.SITE_CONFIG['apiURL'] = 'http://10.134.135.9:8888/renren-admin'; // WebSocket地址 window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket';