From 425b8de7c663af5cbe0c5ea39bcbf98555e0e5f8 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 15 Jul 2022 16:47:06 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=98=AF=E5=90=A6=E7=AD=89=E4=BF=9D?= =?UTF-8?q?=E5=A4=87=E6=A1=88bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/ApplicationDeploymentAndSecurity.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue index 3fbc894b..a53d2825 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue @@ -121,6 +121,11 @@ item.attrType === '等保定级' ) { dataFrom.value.content[1].childrenContent.push(item) + let isAndNo = { + attrType: '是否等保备案', + attrValue: '是', + } + dataFrom.value.content[1].childrenContent.push(isAndNo) } else if (item.attrType === '访问地址') { let obj = { attrType: '访问地址', @@ -133,7 +138,7 @@ let data = [ { attrType: '是否等保备案', - attrValue: '------', + attrValue: '否', }, { attrType: '等保定级', From d36a5fc3a0a953334c7b7384bb9d34e7fb0344d4 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 15 Jul 2022 16:55:13 +0800 Subject: [PATCH 2/6] bug564 --- .../components/Business/BusinessUsageMode.vue | 18 +++++++------- ...operOwningDepartmentAndServiceProvider.vue | 24 +++++++++---------- .../LayerService/LayerServiceUsageMode.vue | 18 +++++++------- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue index 42799119..09512ec4 100644 --- a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue +++ b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue @@ -138,10 +138,12 @@ flag.value = false } else { // eslint-disable-next-line vue/no-setup-props-destructure - dataFrom.value.content[0].link.value = props.dataList.apiUrl - dataFrom.value.content[0].facilitator.value = props.dataList.deptName - dataFrom.value.content[0].people.value = props.dataList.deptContacts - dataFrom.value.content[0].phone.value = props.dataList.deptPhone + dataFrom.value.content[0].link.value = props.dataList.apiUrl || '--' + dataFrom.value.content[0].facilitator.value = + props.dataList.deptName || '--' + dataFrom.value.content[0].people.value = + props.dataList.deptContacts || '--' + dataFrom.value.content[0].phone.value = props.dataList.deptPhone || '--' console.log('dataList', props.dataList) props.dataList.infoList.map((item) => { if (item.attrType === '组件地址') { @@ -173,10 +175,10 @@ if (!obj) { flag.value = false } else { - dataFrom.value.content[0].link.value = val.apiUrl - dataFrom.value.content[0].facilitator.value = val.deptName - dataFrom.value.content[0].people.value = val.deptContacts - dataFrom.value.content[0].phone.value = val.deptPhone + dataFrom.value.content[0].link.value = val.apiUrl || '--' + dataFrom.value.content[0].facilitator.value = val.deptName || '--' + dataFrom.value.content[0].people.value = val.deptContacts || '--' + dataFrom.value.content[0].phone.value = val.deptPhone || '--' console.log('dataList', val) val.infoList.map((item) => { if (item.attrType === '组件地址') { diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index 56036349..8d08732f 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -103,23 +103,23 @@ flag.value = false } else { dataFrom.value.content[0].childrenContent[1].attrValue = - props.dataList.deptContacts + props.dataList.deptContacts || '--' dataFrom.value.content[0].childrenContent[2].attrValue = - props.dataList.deptPhone + props.dataList.deptPhone || '--' dataFrom.value.content[0].childrenContent[0].attrValue = - props.dataList.deptName + props.dataList.deptName || '--' props.dataList.infoList.map((item) => { if (item.attrType == '组件地址') { dataFrom.value.link = item.attrValue } else if (item.attrType == '服务商联系人') { dataFrom.value.content[1].childrenContent[1].attrValue = - item.attrValue + item.attrValue || '--' } else if (item.attrType == '服务商联系电话') { dataFrom.value.content[1].childrenContent[2].attrValue = - item.attrValue + item.attrValue || '--' } else if (item.attrType == '服务商' || item.attrType == '服务商名') { dataFrom.value.content[1].childrenContent[0].attrValue = - item.attrValue + item.attrValue || '--' } }) } @@ -165,26 +165,26 @@ flag.value = false } else { dataFrom.value.content[0].childrenContent[1].attrValue = - props.dataList.deptContacts + props.dataList.deptContacts || '--' dataFrom.value.content[0].childrenContent[2].attrValue = - props.dataList.deptPhone + props.dataList.deptPhone || '--' dataFrom.value.content[0].childrenContent[0].attrValue = - props.dataList.deptName + props.dataList.deptName || '--' props.dataList.infoList.map((item) => { if (item.attrType == '组件地址') { dataFrom.value.link = item.attrValue } else if (item.attrType == '服务商联系人') { dataFrom.value.content[1].childrenContent[1].attrValue = - item.attrValue + item.attrValue || '--' } else if (item.attrType == '服务商联系电话') { dataFrom.value.content[1].childrenContent[2].attrValue = - item.attrValue + item.attrValue || '--' } else if ( item.attrType == '服务商' || item.attrType == '服务商名' ) { dataFrom.value.content[1].childrenContent[0].attrValue = - item.attrValue + item.attrValue || '--' } }) } diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue index dfc321e3..b3148f0d 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue @@ -142,10 +142,12 @@ flag.value = false } else { // eslint-disable-next-line vue/no-setup-props-destructure - dataFrom.value.content[0].link.value = props.dataList.apiUrl - dataFrom.value.content[0].facilitator.value = props.dataList.deptName - dataFrom.value.content[0].people.value = props.dataList.deptContacts - dataFrom.value.content[0].phone.value = props.dataList.deptPhone + dataFrom.value.content[0].link.value = props.dataList.apiUrl || '--' + dataFrom.value.content[0].facilitator.value = + props.dataList.deptName || '--' + dataFrom.value.content[0].people.value = + props.dataList.deptContacts || '--' + dataFrom.value.content[0].phone.value = props.dataList.deptPhone || '--' console.log('dataList', props.dataList) props.dataList.infoList.map((item) => { if (item.attrType === '服务地址') { @@ -179,10 +181,10 @@ if (!obj) { flag.value = false } else { - dataFrom.value.content[0].link.value = val.apiUrl - dataFrom.value.content[0].facilitator.value = val.deptName - dataFrom.value.content[0].people.value = val.deptContacts - dataFrom.value.content[0].phone.value = val.deptPhone + dataFrom.value.content[0].link.value = val.apiUrl || '--' + dataFrom.value.content[0].facilitator.value = val.deptName || '--' + dataFrom.value.content[0].people.value = val.deptContacts || '--' + dataFrom.value.content[0].phone.value = val.deptPhone || '--' console.log('dataList', val) val.infoList.map((item) => { if (item.attrType === '服务地址') { From 8213a9761dc9686b252fd217bd5047471e5ffec8 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Fri, 15 Jul 2022 16:57:51 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=B8=8A=E6=9E=B6=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E5=BD=92=E5=B1=9E=E9=83=A8=E9=97=A8=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/user.js | 11 +++- .../components/PutOnTheShelf.vue | 51 ++++++++++++++++++- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/front/src/api/user.js b/front/src/api/user.js index 734cf298..a39992be 100644 --- a/front/src/api/user.js +++ b/front/src/api/user.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-04-12 10:07:15 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-15 16:42:22 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -30,6 +30,13 @@ export function getUserInfo() { method: 'get', }) } +export function getDeptAll() { + //此处为了兼容mock.js使用data传递accessToken,如果使用mock可以走headers + return request({ + url: '/sys/dept/all', + method: 'get', + }) +} export function logout() { return request({ diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index f585d36a..f4be3412 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-17 14:11:08 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-15 16:21:41 + * @LastEditTime: 2022-07-15 16:56:49 * @Description: 上架 -->