From c0bb1422b108900859e4a18082f778790e31ad11 Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Thu, 5 Jan 2023 16:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/assets/home/arrow.png | Bin 0 -> 552 bytes front/src/assets/home/step.png | Bin 0 -> 475 bytes .../home/components/ApplicationTopDetails.vue | 68 +++-- .../views/home/components/CanAssignCase.vue | 1 + front/src/views/home/detailBack.vue | 12 +- front/src/views/home/integrationServices.vue | 14 +- .../views/home/integrationServicesDetails.vue | 272 ++++++++++++++++-- 7 files changed, 313 insertions(+), 54 deletions(-) create mode 100644 front/src/assets/home/arrow.png create mode 100644 front/src/assets/home/step.png diff --git a/front/src/assets/home/arrow.png b/front/src/assets/home/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..92b33a394922607e121a5e8af0519b228ca84f19 GIT binary patch literal 552 zcmeAS@N?(olHy`uVBq!ia0vp@K+Mm<3?w=JZgmAxEa{HEjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBC~+XbC&V>v-dDfA4{v{B{I7u%KBmt7(zo*uL}kdNkL_E31Jwg{wQl}h zwdN;KW7fj25WPTMy*vK^O#sRQQTO&gK%;;Rpi$IC6L`sfb4F$XCN+^*=hHx;I!_nJ5RU7vCqu=W z9Ryr1zN>KcRCp&){(atGeQkp?GWWvo28ZYfF1MI_@|nf?kaZ#1oiY=v4sR{870le$ zvqLvq~zLoZ7BzCY!X qy*p)>{XB!Jz4q}pG=3<) literal 0 HcmV?d00001 diff --git a/front/src/assets/home/step.png b/front/src/assets/home/step.png new file mode 100644 index 0000000000000000000000000000000000000000..ba6a00ec205b9de8994a0be6e4f91b999e9508cc GIT binary patch literal 475 zcmeAS@N?(olHy`uVBq!ia0vp^xVqjQw zmGcPDaH*0YzhDLyUI9LKHc2TSMloR~2@ZZ%PH_=tK~XNDV-@c^fT|diyxm=-O4FYh z0Xgg?p1!W^&l#Bon8b`)iqnBYhdo^!Lo7~Dy?RsZkOB`&0M}NZ@VD#!|6g2HwPvc5 zqVf6fj7*+WtR`hXR^PuefvY>=l)$=I25o1Vb{z?olHY!J>9M<)`?Gs?Sv{27I7k1M zOX+p13J05GEAP#?@Z$d#zeFGQdAUK!KVGW#8omqFVUf5Hzqf14T=PF7i3vAXUFS6I z>OZ$sV)dG;>b4WxzkOCREf;z>EroUGb;bC3e?sr{tL|=mZL+C*C+ET|BJ1Z_*Pb}J s%!j2qc=DVRcebdTb8cU%BK?6kb*|3z7Z&M7K<_Yky85}Sb4q9e07-bPX#fBK literal 0 HcmV?d00001 diff --git a/front/src/views/home/components/ApplicationTopDetails.vue b/front/src/views/home/components/ApplicationTopDetails.vue index 26495f16..7b2a1e9a 100644 --- a/front/src/views/home/components/ApplicationTopDetails.vue +++ b/front/src/views/home/components/ApplicationTopDetails.vue @@ -9,7 +9,7 @@
- + {{ props.dataList.name }} @@ -47,24 +47,21 @@
场景描述: {{ props.dataList.description.slice(0, 183) }}... - + {{ dowmOrUp }}
场景描述: {{ props.dataList.description }} - + {{ dowmOrUp }}
- 场景入口: + + 进入场景 + +
@@ -200,24 +197,24 @@ function toView() { // 融合服务--一键申请 const handleAKeyApplication = () => { let _applyList = [] - ;(props.dataList.fuseResourceList || []).map((v) => { - let resource = v.resource || {} - let obj = { - arr: [ - { - delFlag: resource.delFlag, - description: resource.description, - resourceId: resource.id, - resourceName: resource.name, - time: resource.createDate, - type: resource.type, - }, - ], - deptId: resource.deptId, - deptName: resource.deptName, - } - _applyList.push(obj) - }) + ; (props.dataList.fuseResourceList || []).map((v) => { + let resource = v.resource || {} + let obj = { + arr: [ + { + delFlag: resource.delFlag, + description: resource.description, + resourceId: resource.id, + resourceName: resource.name, + time: resource.createDate, + type: resource.type, + }, + ], + deptId: resource.deptId, + deptName: resource.deptName, + } + _applyList.push(obj) + }) localStorage.setItem('applyList', JSON.stringify(_applyList)) router.push({ @@ -339,6 +336,17 @@ watch( } .main { + + .rukou { + margin-top:24px; + background: #0058e1; + color: #ffffff; + width: 90px; + height: 32px; + border-radius: 2px; + border: 1px #0058e1 solid; + + } .bottomdesc { display: -webkit-box; /*设置为弹性盒子*/ @@ -353,12 +361,14 @@ watch( width: 800px; font-size: 16px; } + .bottomdesc1 { overflow: auto; width: 800px; font-size: 16px; height: 200px; } + margin-top: 0.2rem; font-size: 0.18rem; line-height: 0.34rem; diff --git a/front/src/views/home/components/CanAssignCase.vue b/front/src/views/home/components/CanAssignCase.vue index e98300f9..09111189 100644 --- a/front/src/views/home/components/CanAssignCase.vue +++ b/front/src/views/home/components/CanAssignCase.vue @@ -58,6 +58,7 @@ function toView(item) { path: '/integrationServicesDetails', query: { id: item.id, + districtType:item.district, type:'典型赋能场景' }, }) diff --git a/front/src/views/home/detailBack.vue b/front/src/views/home/detailBack.vue index 6caeb975..374130ab 100644 --- a/front/src/views/home/detailBack.vue +++ b/front/src/views/home/detailBack.vue @@ -26,16 +26,26 @@ const oldValue1 = ref('') const props = defineProps({ textColor: { type: String, default: '' }, returnType: { type: String, default: '' }, + districtType:{ type: Number, default: 0 }, }) const returnType = props.returnType +const districtType = props.districtType const previousPage = () => { - if (returnType =='典型赋能场景'|| returnType =='打包模式') { + if (returnType =='打包模式') { router.push({ path: '/integrationServices', query: { returnType: returnType, }, }) + }else if(returnType =='典型赋能场景'){ + router.push({ + path: '/integrationServices', + query: { + returnType: returnType, + districtType:districtType, + }, + }) } else { if (window.history.state.back) { window.history.go(-1) diff --git a/front/src/views/home/integrationServices.vue b/front/src/views/home/integrationServices.vue index 1ad8a158..87a13232 100644 --- a/front/src/views/home/integrationServices.vue +++ b/front/src/views/home/integrationServices.vue @@ -124,6 +124,7 @@ export default defineComponent({ const router = useRouter() const select = router.currentRoute.value.query.select const returnType = router.currentRoute.value.query.returnType + const districtType = router.currentRoute.value.query.districtType const searchValue = ref('') const Cardsname = ref(select) const resourceList = reactive({ data: [] }) @@ -350,11 +351,17 @@ export default defineComponent({ } onMounted(() => { - searchAreas() + searchAreas() if (returnType == '典型赋能场景') { + + if(districtType==0){ + cityOrArea.value=0 + }else{ + cityOrArea.value=1 + } changeCards(0) - - } else if (returnType == '打包模式') { + } + else if (returnType == '打包模式') { changeCards(1) } else { if (storageSearchInfo) { @@ -390,6 +397,7 @@ export default defineComponent({ titleName, changeCards, returnType, + districtType, number, loadingData, cityOrArea, diff --git a/front/src/views/home/integrationServicesDetails.vue b/front/src/views/home/integrationServicesDetails.vue index 7c43fa36..ce801196 100644 --- a/front/src/views/home/integrationServicesDetails.vue +++ b/front/src/views/home/integrationServicesDetails.vue @@ -5,13 +5,15 @@ - - + + -
@@ -116,7 +118,37 @@
-
+
+ + + + + +
+
-
- +
+ + +
+
+
+
+ +
{{i+1}}
+
+
第{{i+1}}步:{{item.question}}
+
+ {{i+1}}>{{itemson.answer}} +
+
+ +
+ +
+
+
+
+ +
+
+
+ +
@@ -194,7 +279,9 @@ const componentCount = ref(0) const id = router.currentRoute.value.query.id const returnType = router.currentRoute.value.query.type + const districtType= router.currentRoute.value.query.districtType const hiddenBackFlag = router.currentRoute.value.query.hiddenBackFlag + const imgSrcYyzy = ref(require('@/assets/newHome/empty.png')) document.documentElement.style.transition = 'all 0.3s ease' document.documentElement.scrollTop = 0 document.body.style.transition = 'all 0.3s ease' @@ -311,8 +398,7 @@ componentCount.value = res.data.data.componentCount || 0 // 资源属性 let fuseAttrList = res.data.data.fuseAttrList || [] - // 融合关系 - let fuseResourceList = res.data.data.fuseResourceList || [] + let questionValue = fuseAttrList.find((v) => v.attrType === '常见问题') || {} let questionObj = { @@ -321,14 +407,43 @@ } painPoint.value = getAttrValue(fuseAttrList, '场景痛点') solution.value = getAttrValue(fuseAttrList, '解决方案') - step.value = getAttrValue(fuseAttrList, '使用步骤') + + step.value = getAttrValue(fuseAttrList, '构建步骤') + bgImg.value = fuseAttrList.find((v) => v.attrType === '服务图片').attrValue || '' let areaObj = { attrType: '应用领域', attrValue: '', } - combineList.value.forEach((item) => { + if(returnType==='典型赋能场景'){ + let fuseResourceList = res.data.data.fuseAttrList || [] + +combineList.value.forEach((item) => { + +let arr = [] +let resource = fuseResourceList.filter( + (v) => v.attrType == item.title +) + +// let a=resource[0].attrValue +let resourceArrList=JSON.parse(resource[0].attrValue) +if (resourceArrList.length > 0) { + + arr = resourceArrList.map((res) => ({ + name: res.name, + dept: res.dept, + type: res.type, + + })) + item.list = arr + } + +}) + }else{ + // 融合关系 + let fuseResourceList = res.data.data.fuseResourceList || [] + combineList.value.forEach((item) => { let arr = [] let resource = fuseResourceList.filter( (v) => v.resource && v.type == item.title @@ -367,6 +482,9 @@ item.list = arr }) + } + + detailInfoObj.value.infoList = [] detailInfoObj.value.infoList.push(questionObj) detailInfoObj.value.infoList.push(areaObj) @@ -400,6 +518,53 @@