逻辑修改

This commit is contained in:
a0049873 2023-01-06 17:00:21 +08:00
parent f7b79f6ae8
commit 3cfaf14b37
1 changed files with 797 additions and 710 deletions

View File

@ -2,16 +2,27 @@
<template> <template>
<div class="IntegrationServicesDetails" :class="{ fixed2: scrollTop >= 600 }"> <div class="IntegrationServicesDetails" :class="{ fixed2: scrollTop >= 600 }">
<home-header></home-header> <home-header></home-header>
<detail-back v-show="!hiddenBackFlag" :returnType="returnType" :districtType="districtType"></detail-back> <detail-back
v-show="!hiddenBackFlag"
:returnType="returnType"
:districtType="districtType"
></detail-back>
<template v-if="districtType == 0 || returnType == '打包模式'"> <template v-if="districtType == 0 || returnType == '打包模式'">
<!-- 头部基本信息 --> <!-- 头部基本信息 -->
<application-top-details :dataList="detailInfoObj" :navList="navList"></application-top-details> <application-top-details
:dataList="detailInfoObj"
:navList="navList"
></application-top-details>
<!-- 导航 --> <!-- 导航 -->
<div :class="{ fixed: scrollTop >= 600 }" style="z-index: 10012"> <div :class="{ fixed: scrollTop >= 600 }" style="z-index: 10012">
<div class="application-navigation"> <div class="application-navigation">
<template v-for="nav in navList" :key="nav.key"> <template v-for="nav in navList" :key="nav.key">
<div class="nav" :class="{ selectNow: nav.key == selectNow }" @click="selectNav(nav.key)"> <div
class="nav"
:class="{ selectNow: nav.key == selectNow }"
@click="selectNav(nav.key)"
>
{{ nav.name }} {{ nav.name }}
<span class="line"></span> <span class="line"></span>
</div> </div>
@ -30,11 +41,16 @@
</div> </div>
<div class="content" style="margin-left: 0.5rem"> <div class="content" style="margin-left: 0.5rem">
<div class="content-item" v-for="(item, i) in painPoint" :key="i" style=" <div
class="content-item"
v-for="(item, i) in painPoint"
:key="i"
style="
margin-bottom: 0.2rem; margin-bottom: 0.2rem;
font-size: 0.18rem; font-size: 0.18rem;
line-height: 0.3rem; line-height: 0.3rem;
"> "
>
{{ i + 1 + '、' + item.description }} {{ i + 1 + '、' + item.description }}
</div> </div>
</div> </div>
@ -42,17 +58,26 @@
</div> </div>
<!-- 解决方案 --> <!-- 解决方案 -->
<div id="integration-solution" class="solution scrollBox" style="background: #eee"> <div
id="integration-solution"
class="solution scrollBox"
style="background: #eee"
>
<div class="title-1"> <div class="title-1">
<DetalsTitle title="解决方案" type="SOLUTION"></DetalsTitle> <DetalsTitle title="解决方案" type="SOLUTION"></DetalsTitle>
</div> </div>
<div class="flex-row-center"> <div class="flex-row-center">
<div class="content" style="background: #fff; margin-top: 0.2rem"> <div class="content" style="background: #fff; margin-top: 0.2rem">
<div class="content-item" v-for="(item, i) in solution" :key="i" style=" <div
class="content-item"
v-for="(item, i) in solution"
:key="i"
style="
margin-bottom: 0.2rem; margin-bottom: 0.2rem;
font-size: 0.18rem; font-size: 0.18rem;
line-height: 0.3rem; line-height: 0.3rem;
"> "
>
{{ i + 1 + '、' + item.description }} {{ i + 1 + '、' + item.description }}
</div> </div>
</div> </div>
@ -64,11 +89,26 @@
<div class="title-1"> <div class="title-1">
<DetalsTitle title="使用能力" type="ABILITY"></DetalsTitle> <DetalsTitle title="使用能力" type="ABILITY"></DetalsTitle>
</div> </div>
<div class="flex-row-center combine-content" v-for="(item, i) in combineList" :key="i" style="display: block"> <div
<div class="top" style="font-size: 0.24rem; text-align: center; margin-bottom: 0.3rem"> class="flex-row-center combine-content"
v-for="(item, i) in combineList"
:key="i"
style="display: block"
>
<div
class="top"
style="
font-size: 0.24rem;
text-align: center;
margin-bottom: 0.3rem;
"
>
{{ i == 0 ? '基础设施' : i == 1 ? '组件服务' : '数据资源' }} {{ i == 0 ? '基础设施' : i == 1 ? '组件服务' : '数据资源' }}
</div> </div>
<div class="data-count" style="font-size: 0.14rem; text-align: right; margin-bottom: 0.2rem"> <div
class="data-count"
style="font-size: 0.14rem; text-align: right; margin-bottom: 0.2rem"
>
<span style="color: #909399"> <span style="color: #909399">
{{ {{
@ -83,23 +123,63 @@
<div class="bottom" style="display: flex; align-items: flex-start"> <div class="bottom" style="display: flex; align-items: flex-start">
<div class="title" :class="'title' + i"></div> <div class="title" :class="'title' + i"></div>
<div class="table-box" v-if="returnType == '典型赋能场景'"> <div class="table-box" v-if="returnType == '典型赋能场景'">
<el-table class="table" :data="item.list" stripe :header-cell-style="{ 'text-align': 'center' }"> <el-table
<el-table-column prop="name" label="资源名称" align="center" width="200" class="table"
show-overflow-tooltip="true"></el-table-column> :data="item.list"
<el-table-column prop="type" label="资源类型" align="center" width="100" stripe
show-overflow-tooltip="true"></el-table-column> :header-cell-style="{ 'text-align': 'center' }"
<el-table-column prop="dept" label="来源部门" align="center" width="300" >
show-overflow-tooltip="true"></el-table-column> <el-table-column
prop="name"
label="资源名称"
align="center"
width="200"
show-overflow-tooltip="true"
></el-table-column>
<el-table-column
prop="type"
label="资源类型"
align="center"
width="100"
show-overflow-tooltip="true"
></el-table-column>
<el-table-column
prop="dept"
label="来源部门"
align="center"
width="300"
show-overflow-tooltip="true"
></el-table-column>
</el-table> </el-table>
</div> </div>
<div class="table-box" v-else> <div class="table-box" v-else>
<el-table class="table" :data="item.list" stripe :header-cell-style="{ 'text-align': 'center' }"> <el-table
<el-table-column prop="name" label="资源名称" align="center" width="200" class="table"
show-overflow-tooltip="true"></el-table-column> :data="item.list"
<el-table-column prop="platform" label="资源类型" align="center" width="100" stripe
show-overflow-tooltip="true"></el-table-column> :header-cell-style="{ 'text-align': 'center' }"
<el-table-column prop="dept" label="能力来源" align="center" width="300" >
show-overflow-tooltip="true"></el-table-column> <el-table-column
prop="name"
label="资源名称"
align="center"
width="200"
show-overflow-tooltip="true"
></el-table-column>
<el-table-column
prop="platform"
label="资源类型"
align="center"
width="100"
show-overflow-tooltip="true"
></el-table-column>
<el-table-column
prop="dept"
label="能力来源"
align="center"
width="300"
show-overflow-tooltip="true"
></el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -107,7 +187,11 @@
</div> </div>
<!-- 构建步骤 --> <!-- 构建步骤 -->
<div id="integration-step" class="step scrollBox" style="background: #eee"> <div
id="integration-step"
class="step scrollBox"
style="background: #eee"
>
<div class="title-1"> <div class="title-1">
<DetalsTitle title="构建步骤" type="STEP"></DetalsTitle> <DetalsTitle title="构建步骤" type="STEP"></DetalsTitle>
</div> </div>
@ -132,31 +216,43 @@
<div class="li1" v-for="(item, i) in step" :key="i"> <div class="li1" v-for="(item, i) in step" :key="i">
<div> <div>
<div class="node"> <div class="node">
<div class="step-span">{{ i + 1 }}</div> <div class="step-span">{{ i + 1 }}</div>
<div> <div>
<div class="step-question">{{ i+ 1}}:{{ item.question }}</div> <div class="step-question">
<div class="question-son" v-for="(itemson, i) in item.answer" :key="i"> {{ i + 1 }}:{{ item.question }}
<img src="~@/assets/home/arrow.png" style="margin-right:8px" />{{ i+ 1}}>{{ itemson.answer }} </div>
<div
class="question-son"
v-for="(itemson, i) in item.answer"
:key="i"
>
<img
src="~@/assets/home/arrow.png"
style="margin-right: 8px"
/>
{{ i + 1 }}>{{ itemson.answer }}
</div> </div>
</div> </div>
</div> </div>
<div class="borderLeft"></div> <div class="borderLeft"></div>
</div> </div>
<div class="advice"></div> <div class="advice"></div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="area"> <div class="area">
<a-image style="width:615px;height:345px" :preview="false" :src="bgImg || imgSrcYyzy" /> <a-image
<div class="label-name">{{ detailInfoObj.name }} <span class="label"> style="width: 615px; height: 345px"
:preview="false"
:src="bgImg || imgSrcYyzy"
/>
<div class="label-name">
{{ detailInfoObj.name }}
<span class="label">
{{ detailInfoObj.type }} {{ detailInfoObj.type }}
</span> </span>
<span class="label1"> <span class="label1">
@ -294,6 +390,10 @@ onMounted(() => {
}) })
}) })
//
const openScene = (val) => {
window.open(val, '_blank')
}
const selectNav = (key) => { const selectNav = (key) => {
selectNow.value = key selectNow.value = key
mybus.emit('flyToView', selectNow.value) mybus.emit('flyToView', selectNow.value)
@ -340,7 +440,6 @@ const getIntegrationServicesDeatil = (id) => {
let fuseResourceList = res.data.data.fuseAttrList || [] let fuseResourceList = res.data.data.fuseAttrList || []
combineList.value.forEach((item) => { combineList.value.forEach((item) => {
let arr = [] let arr = []
let resource = fuseResourceList.filter( let resource = fuseResourceList.filter(
(v) => v.attrType == item.title (v) => v.attrType == item.title
@ -349,16 +448,13 @@ const getIntegrationServicesDeatil = (id) => {
// let a=resource[0].attrValue // let a=resource[0].attrValue
let resourceArrList = JSON.parse(resource[0].attrValue) let resourceArrList = JSON.parse(resource[0].attrValue)
if (resourceArrList.length > 0) { if (resourceArrList.length > 0) {
arr = resourceArrList.map((res) => ({ arr = resourceArrList.map((res) => ({
name: res.name, name: res.name,
dept: res.dept, dept: res.dept,
type: res.type, type: res.type,
})) }))
item.list = arr item.list = arr
} }
}) })
} else { } else {
// //
@ -404,7 +500,6 @@ const getIntegrationServicesDeatil = (id) => {
}) })
} }
detailInfoObj.value.infoList = [] detailInfoObj.value.infoList = []
detailInfoObj.value.infoList.push(questionObj) detailInfoObj.value.infoList.push(questionObj)
detailInfoObj.value.infoList.push(areaObj) detailInfoObj.value.infoList.push(areaObj)
@ -450,7 +545,6 @@ onBeforeUnmount(() => {
margin-top: 32px; margin-top: 32px;
} }
.label { .label {
padding: 0.01rem 0.1rem; padding: 0.01rem 0.1rem;
margin-right: 0.1rem; margin-right: 0.1rem;
@ -477,9 +571,7 @@ onBeforeUnmount(() => {
height: 32px; height: 32px;
border-radius: 2px; border-radius: 2px;
border: 1px #0058e1 solid; border: 1px #0058e1 solid;
} }
} }
.area-desc { .area-desc {
@ -602,9 +694,11 @@ onBeforeUnmount(() => {
height: 1.5rem; height: 1.5rem;
width: 6.2rem; width: 6.2rem;
border-radius: 0.2rem; border-radius: 0.2rem;
background: linear-gradient(to right, background: linear-gradient(
to right,
rgba(113, 132, 252, 0.4), rgba(113, 132, 252, 0.4),
rgba(148, 163, 252, 0.4)); rgba(148, 163, 252, 0.4)
);
padding: 0 0.3rem; padding: 0 0.3rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -698,7 +792,6 @@ onBeforeUnmount(() => {
background: #fff; background: #fff;
.left-process { .left-process {
padding-left: 18px; padding-left: 18px;
padding-top: 24px; padding-top: 24px;
@ -719,7 +812,6 @@ onBeforeUnmount(() => {
left: -1px; left: -1px;
} }
.step-question { .step-question {
color: #0058e1; color: #0058e1;
font-weight: bold; font-weight: bold;
@ -739,7 +831,6 @@ onBeforeUnmount(() => {
} }
.node { .node {
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
line-height: 22.5px; line-height: 22.5px;
@ -763,8 +854,6 @@ onBeforeUnmount(() => {
background-color: #fff; background-color: #fff;
} }
.advice { .advice {
font-size: 10px; font-size: 10px;
color: #0058e1; color: #0058e1;
@ -775,10 +864,7 @@ onBeforeUnmount(() => {
.li1:last-child .borderLeft { .li1:last-child .borderLeft {
display: none; display: none;
} }
} }
} }
} }
@ -837,7 +923,8 @@ onBeforeUnmount(() => {
font-size: 16px; font-size: 16px;
} }
.data-count {} .data-count {
}
} }
.name-box { .name-box {