融合服务,能力集市详情返回

This commit is contained in:
guoyue 2022-09-13 09:38:26 +08:00
parent 7996d8a701
commit 1cba78f8e1
11 changed files with 945 additions and 1335 deletions

View File

@ -13,62 +13,56 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN' import zhCN from 'ant-design-vue/es/locale/zh_CN'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import { onBeforeUnmount } from 'vue' import { onBeforeUnmount } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
const router = useRouter() const router = useRouter()
// export default { const locale = zhCN
// name: 'App', const token = Cookies.get('ucsToken')
// data() { console.log('token=================>', token)
// return { let ws = new WebSocket(
// ,
// }
// },
// }
const locale = zhCN
const token = Cookies.get('ucsToken')
console.log('token=================>', token)
let ws = new WebSocket(
`ws://${window.SITE_CONFIG['websocketURL']}/websocket?token=${token}` `ws://${window.SITE_CONFIG['websocketURL']}/websocket?token=${token}`
) )
// ws.send() // ws.send()
// onmessage // onmessage
ws.onmessage = function (e) { ws.onmessage = function (e) {
console.log('WebSocket服务器返回的信息: ' + e.data) console.log('WebSocket服务器返回的信息: ' + e.data)
mybus.emit('getMynotice') mybus.emit('getMynotice')
// //
if (router.currentRoute.value.name === 'mynoticeView') { if (router.currentRoute.value.name === 'mynoticeView') {
mybus.emit('noticeListInit') mybus.emit('noticeListInit')
} }
} }
ws.onerror = function (e) { ws.onerror = function (e) {
console.log('WebSocket连接异常============================>', e) console.log('WebSocket连接异常============================>', e)
ws = new WebSocket( ws = new WebSocket(
`ws://${window.SITE_CONFIG['websocketURL']}/websocket?token=${token}` `ws://${window.SITE_CONFIG['websocketURL']}/websocket?token=${token}`
) )
} }
ws.onclose = function (e) { ws.onclose = function (e) {
console.log('WebSocket连接断开============================>', e) console.log('WebSocket连接断开============================>', e)
} }
onBeforeUnmount(() => { onBeforeUnmount(() => {
// 4., // 4.,
ws.close() ws.close()
}) })
</script> </script>
<style lang="less"> <style lang="less">
@import '~@/vab/styles/vab.less'; @import '~@/vab/styles/vab.less';
#vue-admin-beautiful {
#vue-admin-beautiful {
max-width: 1920px; max-width: 1920px;
// max-height: 1080px; // max-height: 1080px;
margin: auto; margin: auto;
height: 100%; height: 100%;
position: relative; position: relative;
background-color: #fff; background-color: #fff;
} }
body {
body {
font-size: 0.14rem; font-size: 0.14rem;
} }
</style> </style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -44,10 +44,10 @@
</template> </template>
<script setup> <script setup>
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle' import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
import { ref, defineProps, watch } from 'vue' import { ref, defineProps, watch } from 'vue'
const iconImg = require('@/assets/detailsAll/layer-service/layer-icon.png') const iconImg = require('@/assets/detailsAll/layer-service/layer-icon.png')
const dataFromLeft = ref({ const dataFromLeft = ref({
content: [ content: [
{ {
type: '服务类型', type: '服务类型',
@ -62,8 +62,8 @@
values: '', values: '',
}, },
], ],
}) })
const dataFromCenter = ref({ const dataFromCenter = ref({
content: [ content: [
{ {
type: '坐标系', type: '坐标系',
@ -78,8 +78,8 @@
values: '', values: '',
}, },
], ],
}) })
const dataFromRight = ref({ const dataFromRight = ref({
content: [ content: [
{ {
type: '图层名称', type: '图层名称',
@ -90,13 +90,13 @@
values: '', values: '',
}, },
], ],
}) })
// //
const props = defineProps({ const props = defineProps({
dataList: { type: Object, default: null }, dataList: { type: Object, default: null },
}) })
const flag = ref(true) const flag = ref(true)
if (props.dataList.infoList) { if (props.dataList.infoList) {
let obj = props.dataList.infoList.filter( let obj = props.dataList.infoList.filter(
(item) => (item) =>
item.attrType === '服务类型' || item.attrType === '服务类型' ||
@ -116,6 +116,11 @@
// dataFrom.value.content[0].facilitator.value = props.dataList.deptContacts // dataFrom.value.content[0].facilitator.value = props.dataList.deptContacts
console.log('dataList', props.dataList) console.log('dataList', props.dataList)
props.dataList.infoList.map((item) => { props.dataList.infoList.map((item) => {
handleInfoList(item)
})
}
}
const handleInfoList = (item) => {
if (item.attrType === '服务类型') { if (item.attrType === '服务类型') {
dataFromLeft.value.content[0].values = item.attrValue || '123' dataFromLeft.value.content[0].values = item.attrValue || '123'
} else if (item.attrType === '覆盖区域') { } else if (item.attrType === '覆盖区域') {
@ -133,12 +138,12 @@
} else if (item.attrType === '图层类型') { } else if (item.attrType === '图层类型') {
dataFromRight.value.content[1].values = item.attrValue || '--' dataFromRight.value.content[1].values = item.attrValue || '--'
} else if (item.attrType === '最大级别') { } else if (item.attrType === '最大级别') {
if (dataFromRight.value.content && dataFromRight.value.content[2]) {
dataFromRight.value.content[2].values = item.attrValue || '--' dataFromRight.value.content[2].values = item.attrValue || '--'
} }
})
} }
} }
watch( watch(
() => props.dataList, () => props.dataList,
(val) => { (val) => {
if (val) { if (val) {
@ -157,45 +162,48 @@
if (!obj) { if (!obj) {
flag.value = false flag.value = false
} else { } else {
// dataFrom.value.content[0].link.value = val.apiUrl
// dataFrom.value.content[0].facilitator.value = val.deptContacts
console.log('dataList', val) console.log('dataList', val)
val.infoList.map((item) => { val.infoList.map((item) => {
if (item.attrType === '服务类型') { handleInfoList(item)
dataFromLeft.value.content[0].values = item.attrValue || '123' // if (item.attrType === '') {
} else if (item.attrType === '覆盖区域') { // dataFromLeft.value.content[0].values = item.attrValue || '123'
dataFromLeft.value.content[1].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '切片策略') { // dataFromLeft.value.content[1].values = item.attrValue || '--'
dataFromLeft.value.content[2].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '坐标系') { // dataFromLeft.value.content[2].values = item.attrValue || '--'
dataFromCenter.value.content[0].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '切片尺寸') { // dataFromCenter.value.content[0].values = item.attrValue || '--'
dataFromCenter.value.content[1].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '最小级别') { // dataFromCenter.value.content[1].values = item.attrValue || '--'
dataFromCenter.value.content[2].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '数据范围') { // dataFromCenter.value.content[2].values = item.attrValue || '--'
dataFromRight.value.content[0].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '图层类型') { // dataFromRight.value.content[0].values = item.attrValue || '--'
dataFromRight.value.content[1].values = item.attrValue || '--' // } else if (item.attrType === '') {
} else if (item.attrType === '最大级别') { // dataFromRight.value.content[1].values = item.attrValue || '--'
dataFromRight.value.content[2].values = item.attrValue || '--' // } else if (item.attrType === '') {
} // if (dataFromRight.value.content && dataFromRight.value.content[2]) {
// dataFromRight.value.content[2].values = item.attrValue || '--'
// }
// }
}) })
} }
} }
} }
) )
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.usage-mode { .usage-mode {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 0.8rem 0; padding: 0.8rem 0;
.content { .content {
margin-top: 0.3rem; margin-top: 0.3rem;
display: flex; display: flex;
.content-left { .content-left {
height: 2.8rem; height: 2.8rem;
width: 13rem; width: 13rem;
@ -216,10 +224,12 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
ul { ul {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
ul li { ul li {
list-style: none; list-style: none;
display: flex; display: flex;
@ -227,11 +237,13 @@
margin-bottom: 0.3rem; margin-bottom: 0.3rem;
line-height: 0.25rem; line-height: 0.25rem;
} }
img { img {
margin: 0 0.2rem 0 0; margin: 0 0.2rem 0 0;
width: 0.15rem; width: 0.15rem;
height: 0.15rem; height: 0.15rem;
} }
span { span {
font-size: 0.2rem; font-size: 0.2rem;
color: #666666; color: #666666;
@ -239,6 +251,7 @@
margin-right: 0.5rem; margin-right: 0.5rem;
width: 120px; width: 120px;
} }
p { p {
width: 2rem; width: 2rem;
margin-bottom: 0; margin-bottom: 0;
@ -253,5 +266,5 @@
} }
} }
} }
} }
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,15 @@
<template> <template>
<ul class="integrationServiceOrder"> <ul class="integrationServiceOrder">
<li <li v-for="(item, i) in integrationOrderList" :key="i" @click="
v-for="(item, i) in integrationOrderList"
:key="i"
@click="
changeOrder(i, item.value, item.orderType == 'DESC' ? 'ASC' : 'DESC') changeOrder(i, item.value, item.orderType == 'DESC' ? 'ASC' : 'DESC')
" ">
>
{{ item.name }} {{ item.name }}
<span <span class="arrow" :class="
class="arrow"
:class="
integrationOrder.orderType == 'ASC' && integrationOrder.orderType == 'ASC' &&
integrationOrder.orderField == item.value integrationOrder.orderField == item.value
? 'down' ? 'down'
: '' : ''
" "></span>
></span>
</li> </li>
</ul> </ul>
</template> </template>
@ -54,13 +47,17 @@ const integrationOrder = reactive({
// -- // --
const changeOrder = (i, val, type) => { const changeOrder = (i, val, type) => {
let newType = type console.log('i, val, type------------>', i, val, type);
integrationOrder.orderField = val integrationOrder.orderField = val
integrationOrder.orderType = newType integrationOrder.orderType = type;
integrationOrderList.value[i].orderType = newType // 0 apply_count ASC
let _index = integrationOrderList.value.findIndex(x => x.value = val)
if (_index > -1) {
integrationOrderList.value[_index].orderType = type
}
mybus.emit('changeCondition', { mybus.emit('changeCondition', {
orderField: val, orderField: val,
orderType: newType, orderType: type,
}) })
} }

View File

@ -9,78 +9,55 @@
}} }}
</div> </div>
<div class="condition" :key="showKey"> <div class="condition" :key="showKey">
<IntegrationServiceOrder <IntegrationServiceOrder ref="integrationServiceOrderDom" v-if="
ref="integrationServiceOrderDom"
v-if="
selectCardsname === '融合服务' || selectCardsname === '赋能场景' selectCardsname === '融合服务' || selectCardsname === '赋能场景'
" "></IntegrationServiceOrder>
></IntegrationServiceOrder>
<ul v-else> <ul v-else>
<li <li v-for="(item, i) in selList" :key="i" @click="changeCondition(item)" v-show="
v-for="item in selList"
:key="item.value"
@click="changeCondition(item.value)"
v-show="
item.show && item.show &&
item.name !== '评分' && item.name !== '评分' &&
selectCardsname !== '数据资源' selectCardsname !== '数据资源'
" ">
>
{{ item.name }} {{ item.name }}
<span <!-- {{orderObj.orderType}}{{orderObj.orderField}} -->
class="arrow" <!-- <span class="arrow" :class="item.value == selData ? 'down' : ''"></span> -->
:class="item.value == selData ? 'down' : ''" <!-- {{orderObj.orderType == 'ASC' ? '11' : '22'}} -->
></span> <!-- {{orderObj.orderField == item.value ? '11' : '22'}} -->
<span class="arrow" :class="
orderObj.orderType == 'ASC' &&
orderObj.orderField == item.value
? 'down'
: ''
"></span>
</li> </li>
</ul> </ul>
<!-- {{JSON.stringify(orderObj)}} -->
</div> </div>
</div> </div>
<div <div class="result-list" v-for="(item, index) in resourceList.data" :key="item.index">
class="result-list"
v-for="(item, index) in resourceList.data"
:key="item.index"
>
<div class="item" :key="showKey"> <div class="item" :key="showKey">
<div <div class="left" style="display: flex; align-items: center" v-if="
class="left"
style="display: flex; align-items: center"
v-if="
item.type === '应用资源' && item.type === '应用资源' &&
item.infoList && item.infoList &&
item.infoList.filter((val) => val.attrType == '应用图片')[0] item.infoList.filter((val) => val.attrType == '应用图片')[0]
" ">
> <a-image :width="106" :preview="false" :src="
<a-image
:width="106"
:preview="false"
:src="
item.infoList.filter((val) => val.attrType == '应用图片')[0] item.infoList.filter((val) => val.attrType == '应用图片')[0]
.attrValue .attrValue
" " />
/>
</div> </div>
<div <div class="left" style="display: flex; align-items: center" v-else-if="
class="left"
style="display: flex; align-items: center"
v-else-if="
(selectCardsname === '融合服务' || (selectCardsname === '融合服务' ||
selectCardsname === '赋能场景') && selectCardsname === '赋能场景') &&
item.fuseAttrList && item.fuseAttrList &&
item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0] item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0]
" ">
> <a-image :width="106" :preview="false" :src="
<a-image
:width="106"
:preview="false"
:src="
item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0] item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0]
.attrValue .attrValue
" " />
/>
</div> </div>
<div <div class="left" :class="
class="left"
:class="
item.type == '应用资源' item.type == '应用资源'
? 'yyzy' ? 'yyzy'
: !item.type : !item.type
@ -105,80 +82,49 @@
.attrValue == '业务组件' .attrValue == '业务组件'
? 'ywzj' ? 'ywzj'
: '' : ''
" " @click="toView('details', item)" v-else-if="
@click="toView('details', item)"
v-else-if="
selectCardsname !== '基础设施' && selectCardsname !== '基础设施' &&
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
selectCardsname !== '赋能场景' selectCardsname !== '赋能场景'
" "></div>
></div>
<div class="left jcss" v-else-if="selectCardsname === '基础设施'"></div> <div class="left jcss" v-else-if="selectCardsname === '基础设施'"></div>
<div <div class="left rhfw" v-else-if="
class="left rhfw"
v-else-if="
selectCardsname === '融合服务' || selectCardsname === '赋能场景' selectCardsname === '融合服务' || selectCardsname === '赋能场景'
" "></div>
></div>
<div class="right" @click="toView('details', item)"> <div class="right" @click="toView('details', item)">
<div class="header"> <div class="header">
<span style="display: flex; align-items: center; width: 680px"> <span style="display: flex; align-items: center; width: 680px">
{{ item.name }} {{ item.name }}
<!-- 已申请--通过 --> <!-- 已申请--通过 -->
<svg <svg t="1652322568870" class="icon" viewBox="0 0 3072 1024" version="1.1"
t="1652322568870" xmlns="http://www.w3.org/2000/svg" p-id="3062" width="40" height="40" v-if="
class="icon"
viewBox="0 0 3072 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
p-id="3062"
width="40"
height="40"
v-if="
item.applyState == '已申请' && item.approveStatus == '通过' item.applyState == '已申请' && item.approveStatus == '通过'
" " style="margin-left: 10px; min-width: 40px">
style="margin-left: 10px; min-width: 40px"
>
<path <path
d="M2958.222222 0a113.777778 113.777778 0 0 1 113.777778 113.777778v796.444444a113.777778 113.777778 0 0 1-113.777778 113.777778H500.053333a113.777778 113.777778 0 0 1-85.617777-38.798222L32.824889 549.432889a56.888889 56.888889 0 0 1 0-74.922667L414.435556 38.798222A113.777778 113.777778 0 0 1 499.996444 0H2958.222222z m0 56.888889H500.053333a56.888889 56.888889 0 0 0-42.837333 19.399111L75.605333 512l381.610667 435.712a56.888889 56.888889 0 0 0 42.780444 19.399111H2958.222222a56.888889 56.888889 0 0 0 56.888889-56.888889V113.777778a56.888889 56.888889 0 0 0-56.888889-56.888889z" d="M2958.222222 0a113.777778 113.777778 0 0 1 113.777778 113.777778v796.444444a113.777778 113.777778 0 0 1-113.777778 113.777778H500.053333a113.777778 113.777778 0 0 1-85.617777-38.798222L32.824889 549.432889a56.888889 56.888889 0 0 1 0-74.922667L414.435556 38.798222A113.777778 113.777778 0 0 1 499.996444 0H2958.222222z m0 56.888889H500.053333a56.888889 56.888889 0 0 0-42.837333 19.399111L75.605333 512l381.610667 435.712a56.888889 56.888889 0 0 0 42.780444 19.399111H2958.222222a56.888889 56.888889 0 0 0 56.888889-56.888889V113.777778a56.888889 56.888889 0 0 0-56.888889-56.888889z"
fill="#d81e06" fill="#d81e06" p-id="3063"></path>
p-id="3063"
></path>
<path <path
d="M398.222222 398.222222a113.777778 113.777778 0 1 1 0 227.555556 113.777778 113.777778 0 0 1 0-227.555556z m0 56.888889a56.888889 56.888889 0 1 0 0 113.777778 56.888889 56.888889 0 0 0 0-113.777778z" d="M398.222222 398.222222a113.777778 113.777778 0 1 1 0 227.555556 113.777778 113.777778 0 0 1 0-227.555556z m0 56.888889a56.888889 56.888889 0 1 0 0 113.777778 56.888889 56.888889 0 0 0 0-113.777778z"
fill="#d81e06" fill="#d81e06" p-id="3064"></path>
p-id="3064"
></path>
<path <path
d="M1309.582222 491.064889v-273.066667h-505.173333v47.786667h455.338667v178.176h-378.88V342.926222h-49.152v358.4c0 55.978667 27.306667 84.650667 82.602666 84.650667h370.005334c28.672-1.365333 51.2-8.874667 66.218666-23.210667 16.384-17.749333 27.989333-68.266667 34.816-152.917333l-47.786666-15.018667-1.706667 26.737778c-4.664889 58.766222-12.970667 93.582222-24.917333 104.334222-10.24 8.192-23.893333 12.288-40.277334 12.288h-342.698666c-31.402667 0-47.104-15.701333-47.104-45.738666v-201.386667h428.714666z m430.08-307.2v102.4h-219.136v386.389333h48.469334v-46.421333h170.666666v178.858667h50.517334v-178.858667h167.936v41.642667h48.469333V286.264889h-216.405333v-102.4h-50.517334z m-170.666666 395.946667v-102.4h170.666666v102.4h-170.666666z m221.184 0v-102.4h167.936v102.4h-167.936z m-221.184-146.773334V332.003556h170.666666v101.034666h-170.666666z m221.184 0V332.003556h167.936v101.034666h-167.936z m733.866666-251.221333v44.373333h-165.205333v40.277334h165.205333v45.738666h-137.898666v39.594667h137.898666V398.222222h-184.32v40.96h417.792V398.222222h-186.368v-46.421333h144.725334v-39.594667h-144.725334v-45.738666h169.301334v-40.277334h-169.301334v-44.373333h-47.104z m-85.333333 429.397333h220.501333v49.834667h-220.501333v-49.834667z m220.501333-38.229333h-220.501333v-50.517333h220.501333v50.517333z m-220.501333 126.293333h220.501333v38.912c0 15.701333-8.874667 23.893333-25.258666 23.893334l-54.613334-2.048 11.605334 43.690666h57.344c38.229333 0 58.026667-18.432 58.026666-55.296v-266.24H2391.608889V807.822222h47.104v-108.544z m-222.549333-509.952l-34.816 33.450667c49.152 36.864 88.064 71.68 116.736 104.448l33.450666-34.133333a795.079111 795.079111 0 0 0-115.370666-103.765334z m-82.602667 201.386667h144.725333v299.690667c20.48-19.114667 41.642667-40.277333 64.853334-64.170667l12.970666 51.882667a923.932444 923.932444 0 0 1-121.514666 105.813333l-19.114667-43.690667c10.24-9.557333 15.701333-19.797333 15.701333-31.402666V437.816889h-97.621333v-47.104z" d="M1309.582222 491.064889v-273.066667h-505.173333v47.786667h455.338667v178.176h-378.88V342.926222h-49.152v358.4c0 55.978667 27.306667 84.650667 82.602666 84.650667h370.005334c28.672-1.365333 51.2-8.874667 66.218666-23.210667 16.384-17.749333 27.989333-68.266667 34.816-152.917333l-47.786666-15.018667-1.706667 26.737778c-4.664889 58.766222-12.970667 93.582222-24.917333 104.334222-10.24 8.192-23.893333 12.288-40.277334 12.288h-342.698666c-31.402667 0-47.104-15.701333-47.104-45.738666v-201.386667h428.714666z m430.08-307.2v102.4h-219.136v386.389333h48.469334v-46.421333h170.666666v178.858667h50.517334v-178.858667h167.936v41.642667h48.469333V286.264889h-216.405333v-102.4h-50.517334z m-170.666666 395.946667v-102.4h170.666666v102.4h-170.666666z m221.184 0v-102.4h167.936v102.4h-167.936z m-221.184-146.773334V332.003556h170.666666v101.034666h-170.666666z m221.184 0V332.003556h167.936v101.034666h-167.936z m733.866666-251.221333v44.373333h-165.205333v40.277334h165.205333v45.738666h-137.898666v39.594667h137.898666V398.222222h-184.32v40.96h417.792V398.222222h-186.368v-46.421333h144.725334v-39.594667h-144.725334v-45.738666h169.301334v-40.277334h-169.301334v-44.373333h-47.104z m-85.333333 429.397333h220.501333v49.834667h-220.501333v-49.834667z m220.501333-38.229333h-220.501333v-50.517333h220.501333v50.517333z m-220.501333 126.293333h220.501333v38.912c0 15.701333-8.874667 23.893333-25.258666 23.893334l-54.613334-2.048 11.605334 43.690666h57.344c38.229333 0 58.026667-18.432 58.026666-55.296v-266.24H2391.608889V807.822222h47.104v-108.544z m-222.549333-509.952l-34.816 33.450667c49.152 36.864 88.064 71.68 116.736 104.448l33.450666-34.133333a795.079111 795.079111 0 0 0-115.370666-103.765334z m-82.602667 201.386667h144.725333v299.690667c20.48-19.114667 41.642667-40.277333 64.853334-64.170667l12.970666 51.882667a923.932444 923.932444 0 0 1-121.514666 105.813333l-19.114667-43.690667c10.24-9.557333 15.701333-19.797333 15.701333-31.402666V437.816889h-97.621333v-47.104z"
fill="#d81e06" fill="#d81e06" p-id="3065"></path>
p-id="3065"
></path>
</svg> </svg>
</span> </span>
<div class="header-right"> <div class="header-right">
<div <div v-if="
v-if="
selectCardsname === '融合服务' || selectCardsname === '融合服务' ||
selectCardsname === '赋能场景' selectCardsname === '赋能场景'
" " class="label-content">
class="label-content" <template v-if="
>
<template
v-if="
item.fuseAttrList && item.fuseAttrList &&
item.fuseAttrList.filter( item.fuseAttrList.filter(
(val) => val.attrType == '应用领域' (val) => val.attrType == '应用领域'
)[0] )[0]
" ">
> <span class="label" v-for="(data, index) in item.fuseAttrList
<span
class="label"
v-for="(data, index) in item.fuseAttrList
.filter((val) => val.attrType == '应用领域')[0] .filter((val) => val.attrType == '应用领域')[0]
.attrValue.split(';')" .attrValue.split(';')" :key="index">
:key="index"
>
{{ data }} {{ data }}
</span> </span>
</template> </template>
@ -196,21 +142,15 @@
</div> </div>
</div> </div>
<div class="dec"> <div class="dec">
<div <div v-if="
v-if="
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
selectCardsname !== '赋能场景' && selectCardsname !== '赋能场景' &&
selectCardsname !== '基础设施' selectCardsname !== '基础设施'
" ">
>
<span>{{ item.deptName || '--' }}</span> <span>{{ item.deptName || '--' }}</span>
</div> </div>
</div> </div>
<div <div v-if="selectCardsname !== '基础设施'" style="margin-top: 0.1rem" class="description">
v-if="selectCardsname !== '基础设施'"
style="margin-top: 0.1rem"
class="description"
>
<a-tooltip> <a-tooltip>
<template #title>{{ item.description }}</template> <template #title>{{ item.description }}</template>
{{ item.description || '--' }} {{ item.description || '--' }}
@ -228,22 +168,18 @@
> >
浏览量{{ item.visits || 0 }} 浏览量{{ item.visits || 0 }}
</div> --> </div> -->
<div <div v-if="
v-if="
selectCardsname !== '数据资源' && selectCardsname !== '数据资源' &&
selectCardsname !== '赋能场景' && selectCardsname !== '赋能场景' &&
(selectCardsname !== '应用资源' || whoShow1.itShowQingDao) (selectCardsname !== '应用资源' || whoShow1.itShowQingDao)
" ">
>
申请量{{ item.applyCount || 0 }} 申请量{{ item.applyCount || 0 }}
</div> </div>
<div <div v-if="
v-if="
selectCardsname === '数据资源' && selectCardsname === '数据资源' &&
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
selectCardsname !== '赋能场景' selectCardsname !== '赋能场景'
" ">
>
数据量{{ item.sjlCount || 0 }} 数据量{{ item.sjlCount || 0 }}
</div> </div>
<div v-if="selectCardsname !== '数据资源'"> <div v-if="selectCardsname !== '数据资源'">
@ -253,75 +189,39 @@
</div> </div>
<div class="right" v-if="selectCardsname !== '基础设施'"> <div class="right" v-if="selectCardsname !== '基础设施'">
<div class="shopping" :key="shoppingKey"> <div class="shopping" :key="shoppingKey">
<template <template v-if="
v-if="
(selectCardsname == '组件服务' && (selectCardsname == '组件服务' &&
item.infoList.filter( item.infoList.filter(
(val) => val.attrType == '外部服务地址' (val) => val.attrType == '外部服务地址'
).length === 0) || ).length === 0) ||
(selectCardsname == '应用资源' && whoShow1.itShowQingDao) (selectCardsname == '应用资源' && whoShow1.itShowQingDao)
" ">
> <span class="shopping-down" v-if="item.isInShoppingCart"></span>
<span <span class="shopping-on" v-else @click.stop="addShoppingCart(item, index)"></span>
class="shopping-down"
v-if="item.isInShoppingCart"
></span>
<span
class="shopping-on"
v-else
@click.stop="addShoppingCart(item, index)"
></span>
</template> </template>
</div> </div>
<div class="sc"> <div class="sc">
<span <span class="sc-down" v-if="item.isCollect == 'false'" @click.stop="addCollect(item)"></span>
class="sc-down" <span class="sc-on" v-if="item.isCollect == 'true'" @click.stop="addCollect(item)"></span>
v-if="item.isCollect == 'false'"
@click.stop="addCollect(item)"
></span>
<span
class="sc-on"
v-if="item.isCollect == 'true'"
@click.stop="addCollect(item)"
></span>
</div> </div>
<div <div class="shopping pk" :key="pk" v-show="
class="shopping pk"
:key="pk"
v-show="
cardType == '组件服务' && findComponentName(item, '智能算法') cardType == '组件服务' && findComponentName(item, '智能算法')
" ">
> <span class="pk-on" @click.stop="goComparePk(item, index)"></span>
<span
class="pk-on"
@click.stop="goComparePk(item, index)"
></span>
</div> </div>
<a-button <a-button type="primary" @click.stop="toView('details', item)" v-if="!whoShow1.itShowBaoTou">
type="primary"
@click.stop="toView('details', item)"
v-if="!whoShow1.itShowBaoTou"
>
查看详情 查看详情
</a-button> </a-button>
<a-button <a-button style="margin-left: 10px" v-show="
style="margin-left: 10px"
v-show="
selectCardsname === '融合服务' || selectCardsname === '融合服务' ||
selectCardsname === '赋能场景' selectCardsname === '赋能场景'
" " @click.stop="handleAKeyApplication(item)">
@click.stop="handleAKeyApplication(item)"
>
一键申请 一键申请
</a-button> </a-button>
<a-button <a-button type="primary" @click.stop="toView('apply', item)" v-show="
type="primary"
@click.stop="toView('apply', item)"
v-show="
cardType == '组件服务' || cardType == '组件服务' ||
(cardType == '应用资源' && whoShow1.itShowQingDao) (cardType == '应用资源' && whoShow1.itShowQingDao)
" ">
>
{{ {{
item.shareCondition == '免批申请' ? '免批申请' : '立即申请' item.shareCondition == '免批申请' ? '免批申请' : '立即申请'
}} }}
@ -336,12 +236,7 @@
</div> </div>
</div> </div>
</div> </div>
<a-modal <a-modal v-model:visible="visible" title="视频预览" :width="750" destroyOnClose>
v-model:visible="visible"
title="视频预览"
:width="750"
destroyOnClose
>
<template #footer></template> <template #footer></template>
<div style="width: 100%; display: flex; justify-content: center"> <div style="width: 100%; display: flex; justify-content: center">
<div style="width: 100%; height: 100%"> <div style="width: 100%; height: 100%">
@ -352,7 +247,7 @@
</div> </div>
</template> </template>
<script> <script>
import { ref, reactive, nextTick } from 'vue' import { ref, reactive, nextTick, defineEmits, defineExpose, getCurrentInstance } from 'vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { getUser, sgcInsert } from '@/api/home' import { getUser, sgcInsert } from '@/api/home'
@ -365,7 +260,7 @@ export default {
props: { props: {
resourceList: { resourceList: {
type: Object, type: Object,
default: () => {}, default: () => { },
}, },
resourceTotal: { resourceTotal: {
type: String, type: String,
@ -458,18 +353,24 @@ export default {
components: { components: {
IntegrationServiceOrder, IntegrationServiceOrder,
}, },
setup(props) { setup(props, context) {
const whoShow1 = whoShow const whoShow1 = whoShow
const showKey = ref(0) const showKey = ref(0)
let shoppingKey = ref(1) let shoppingKey = ref(1)
const integrationServiceOrderDom = ref(null); let orderObj = reactive({
// orderField: 'tdr.create_date',
// orderType: 'ASC',
orderField: '',
orderType: '',
})
const integrationServiceOrderDom = ref(null)
// id // id
const selList = ref([ const selList = ref([
{ name: '发布时间', value: 'tdr.create_date', show: true }, { name: '发布时间', value: 'tdr.create_date', show: true, orderType: 'DESC' },
{ name: '浏览量', value: 'visits', show: true }, { name: '浏览量', value: 'visits', show: true, orderType: 'DESC' },
{ name: '申请量', value: 'applyCount', show: true }, { name: '申请量', value: 'applyCount', show: true, orderType: 'DESC' },
{ name: '收藏量', value: 'collectCount', show: true }, { name: '收藏量', value: 'collectCount', show: true, orderType: 'DESC' },
{ name: '评分', value: 'score', show: true }, { name: '评分', value: 'score', show: true, orderType: 'DESC' },
]) ])
if (props.selectCardsname === '基础设施') { if (props.selectCardsname === '基础设施') {
selList.value.map((val) => (val.show = false)) selList.value.map((val) => (val.show = false))
@ -513,6 +414,7 @@ export default {
}) })
showKey.value++ showKey.value++
const selData = ref('total') const selData = ref('total')
const flag = ref(true) const flag = ref(true)
// userId // userId
const userId = ref('') const userId = ref('')
@ -527,8 +429,9 @@ export default {
console.log('use value', searchValue) console.log('use value', searchValue)
console.log('or use this.value', searchValue.value) console.log('or use this.value', searchValue.value)
} }
function toView(type, item) { function toView(type, item) {
debugger // debugger
if (props.selectCardsname == '数据资源') { if (props.selectCardsname == '数据资源') {
if (whoShow1.itShowQingDao) { if (whoShow1.itShowQingDao) {
window.open( window.open(
@ -539,6 +442,7 @@ export default {
window.open('http://10.134.135.24:30090/#/home?id=' + item.serviceId) window.open('http://10.134.135.24:30090/#/home?id=' + item.serviceId)
} }
} else if (props.selectCardsname === '融合服务') { } else if (props.selectCardsname === '融合服务') {
context.emit('saveSearchCodition')
// //
router.push({ router.push({
path: '/packagingDetails', path: '/packagingDetails',
@ -605,6 +509,7 @@ export default {
}) })
} }
} else { } else {
context.emit('saveSearchCodition')
router.push({ router.push({
path: '/details', path: '/details',
query: { query: {
@ -665,15 +570,29 @@ export default {
} }
} }
} }
//
const changeCondition = (val) => { /**
selData.value = selData.value == val ? 'total' : val * val: 排序字段值
const orderType = selData.value == val ? 'ASC' : 'DESC' * isFromFather: 是否来自父组件传值
mybus.emit('changeCondition', { */
orderField: val, const changeCondition = (item, isFromFather = false) => {
orderType: orderType, console.log('item, isFromFather------------>', item, isFromFather);
let newType = item.orderType == 'DESC' ? 'ASC' : 'DESC';
if (isFromFather) {
newType = item.orderType;
}
orderObj.orderField = item.value;
orderObj.orderType = newType;
let _index = selList.value.findIndex(x => x.value == item.value)
if (_index > -1) {
selList.value[_index].orderType = newType
}
selList.value = selList.value.splice(0);
nextTick(() => {
console.log('orderObj------------>', orderObj);
console.log('selList------------>', selList.value);
}) })
console.log('选择===========》', val, selData.value) mybus.emit('changeCondition', orderObj)
} }
// -- // --
@ -724,10 +643,8 @@ export default {
_applyList.push(obj) _applyList.push(obj)
}) })
_applyList = jcss.concat(_applyList) _applyList = jcss.concat(_applyList)
console.log('_applyList------------>', _applyList)
localStorage.setItem('applyList', JSON.stringify(_applyList)) localStorage.setItem('applyList', JSON.stringify(_applyList))
// item //
localStorage.setItem('integrationServicesItemInfo', JSON.stringify(item)) localStorage.setItem('integrationServicesItemInfo', JSON.stringify(item))
router.push({ router.push({
path: '/apply', path: '/apply',
@ -735,7 +652,6 @@ export default {
} }
mybus.on('chongzhi', (typeObj) => { mybus.on('chongzhi', (typeObj) => {
console.log('typeObj------------>', typeObj)
if (!typeObj) { if (!typeObj) {
selData.value = 'total' selData.value = 'total'
} }
@ -743,7 +659,8 @@ export default {
typeObj && typeObj &&
(typeObj.type === '融合服务' || typeObj.type === '打包模式') (typeObj.type === '融合服务' || typeObj.type === '打包模式')
) { ) {
integrationServiceOrderDom.value.reset && integrationServiceOrderDom.value.reset() integrationServiceOrderDom.value.reset &&
integrationServiceOrderDom.value.reset()
} }
}) })
let videoUrl = ref('') let videoUrl = ref('')
@ -819,6 +736,7 @@ export default {
showKey, showKey,
handleAKeyApplication, handleAKeyApplication,
integrationServiceOrderDom, integrationServiceOrderDom,
orderObj,
} }
}, },
beforeUnmount() { beforeUnmount() {
@ -1062,7 +980,6 @@ export default {
font-size: 14px; font-size: 14px;
margin: 5px 0; margin: 5px 0;
.right { .right {
flex: 1; flex: 1;
display: flex; display: flex;
@ -1149,11 +1066,11 @@ export default {
margin-top: 10px; margin-top: 10px;
align-items: center; align-items: center;
& > div { &>div {
display: flex; display: flex;
align-items: center; align-items: center;
& > div { &>div {
margin: 0 10px; margin: 0 10px;
} }
} }

View File

@ -0,0 +1,34 @@
<template>
<div class="detail-back" @click="previousPage" :style="{ color: textColor }">
</div>
</template>
<script setup>
import { reactive, ref, watch, defineProps } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
console.log('router------------>', router)
const props = defineProps({
textColor: { type: String, default: '' },
})
const previousPage = () => {
window.history.go(-1)
}
</script>
<style scoped lang="less">
.detail-back {
position: absolute;
top: 0.85rem;
left: 100px;
font-size: 0.18rem;
color: #fff;
cursor: pointer;
width: 50px;
height: 50px;
background-image: url('~@/assets/detailsAll/back.png');
background-size: 100% 100%;
}
</style>

View File

@ -9,6 +9,7 @@
<div> <div>
<div id="apply-container"> <div id="apply-container">
<home-header :showView="showView"></home-header> <home-header :showView="showView"></home-header>
<detail-back></detail-back>
<details-view v-if="showView === 'details-view'"></details-view> <details-view v-if="showView === 'details-view'"></details-view>
<algorithm-details <algorithm-details
v-else-if="showView === 'algorithm-details'" v-else-if="showView === 'algorithm-details'"
@ -38,6 +39,7 @@
import DeveloperComponents from '@/views/detailsAll/DeveloperComponents' import DeveloperComponents from '@/views/detailsAll/DeveloperComponents'
import BusinessDetails from '@/views/detailsAll/BusinessDetails' import BusinessDetails from '@/views/detailsAll/BusinessDetails'
import LayerService from '@/views/detailsAll/LayerService' import LayerService from '@/views/detailsAll/LayerService'
import detailBack from '@/views/home/detailBack.vue'
import { selectOne } from '@/api/home' import { selectOne } from '@/api/home'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
export default defineComponent({ export default defineComponent({
@ -52,6 +54,7 @@
DeveloperComponents, DeveloperComponents,
BusinessDetails, BusinessDetails,
LayerService, LayerService,
detailBack
}, },
setup() { setup() {
const formState = reactive({ const formState = reactive({
@ -163,6 +166,7 @@
} }
} }
init() init()
return { return {
formState, formState,
options, options,

View File

@ -432,7 +432,7 @@
placeholder="请输入关键词" placeholder="请输入关键词"
enter-button="搜索" enter-button="搜索"
size="large" size="large"
@change="getCamera" @change="(e) => getCamera(true, e.target.value)"
/> />
<a-button <a-button
type="primary" type="primary"
@ -1697,6 +1697,7 @@
// } // }
const wrjFlag = ref(false) const wrjFlag = ref(false)
const getCamera = (flag, str) => { const getCamera = (flag, str) => {
console.log('mapSearchParam.value.cameraName------------>', mapSearchParam.value.cameraName);
if (flag) { if (flag) {
mapSearchParam.value.cameraName = str mapSearchParam.value.cameraName = str
console.log('赋值===============》', str, mapSearchParam.value) console.log('赋值===============》', str, mapSearchParam.value)
@ -1710,6 +1711,8 @@
pagination.value.total = res.data.count pagination.value.total = res.data.count
}) })
} else { } else {
console.log('mapSearchParam------------>', mapSearchParam);
let params = { let params = {
regionId: regionId:
mapSearchParam.value.parentId || '70be8c5b664f4bcf869d82f2e8335051', mapSearchParam.value.parentId || '70be8c5b664f4bcf869d82f2e8335051',
@ -1720,6 +1723,7 @@
latitude: mapSearchParam.value.gpsY || '', latitude: mapSearchParam.value.gpsY || '',
radius: mapSearchParam.value.radius || '', radius: mapSearchParam.value.radius || '',
status: 1, status: 1,
name: mapSearchParam.value.cameraName
} }
if ( if (
params.regionId === '70be8c5b664f4bcf869d82f2e8335051' && params.regionId === '70be8c5b664f4bcf869d82f2e8335051' &&

View File

@ -5,13 +5,8 @@
<div class="top"> <div class="top">
<div class="top-title"> <div class="top-title">
全部 全部
<div <div v-for="(item, index) in titleName" :key="index" class="tabAll" @click="changeCards(index)"
v-for="(item, index) in titleName" :class="{ sel: index == number }">
:key="index"
class="tabAll"
@click="changeCards(index)"
:class="{ sel: index == number }"
>
<span> <span>
{{ item.name === '赋能场景' ? '典型赋能场景' : '打包模式' }} {{ item.name === '赋能场景' ? '典型赋能场景' : '打包模式' }}
</span> </span>
@ -20,52 +15,25 @@
<div class="resultListSearchInput-father" v-if="number === 0"> <div class="resultListSearchInput-father" v-if="number === 0">
<div class="resultListSearchInput-son"> <div class="resultListSearchInput-son">
模糊搜索 模糊搜索
<a-input-search <a-input-search v-model:value="searchValue" placeholder="请输入关键词" enter-button="搜索" size="large"
v-model:value="searchValue" @search="getIntegrationList" @change="onSearch" class="resultListSearchInput" />
placeholder="请输入关键词" <button class="button-reset" @click="resetAction()">重置</button>
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
<button class="button-reset" @click="chongzhi()">重置</button>
<div class="hengxian"></div> <div class="hengxian"></div>
</div> </div>
</div> </div>
<div v-loading="loadingData"> <div v-loading="loadingData">
<searchResultList <searchResultList v-if="number === 0" v-show="resourceList.data && resourceList.data.length > 0"
v-if="number === 0" :resourceList="resourceList" :resourceTotal="resourceTotal" @saveSearchCodition="saveSearchCodition"
v-show="resourceList.data && resourceList.data.length > 0" ref="searchResultListDom" :selectCardsname="number == 0 ? '融合服务' : '赋能场景'" />
:resourceList="resourceList" <CanAssignCase v-else v-show="resourceList.data && resourceList.data.length > 0" :resourceList="resourceList"
:resourceTotal="resourceTotal" :resourceTotal="resourceTotal" :selectCardsname="number == 0 ? '融合服务' : '赋能场景'" />
:selectCardsname="number == 0 ? '融合服务' : '赋能场景'"
/>
<CanAssignCase
v-else
v-show="resourceList.data && resourceList.data.length > 0"
:resourceList="resourceList"
:resourceTotal="resourceTotal"
:selectCardsname="number == 0 ? '融合服务' : '赋能场景'"
/>
<div class="pagination"> <div class="pagination">
<a-pagination <a-pagination v-if="resourceList.data && resourceList.data.length > 0" v-model:current="currentPage"
v-if="resourceList.data && resourceList.data.length > 0" v-model:pageSize="currentPageSize" show-size-changer show-less-items show-quick-jumper
v-model:current="currentPage" :total="resourceTotal" :page-size-options="pageSizeOptions" @change="pageChange"
v-model:pageSize="currentPageSize" @showSizeChange="onShowSizeChange" />
show-size-changer
show-less-items
show-quick-jumper
:total="resourceTotal"
:page-size-options="pageSizeOptions"
@change="pageChange"
@showSizeChange="onShowSizeChange"
/>
</div> </div>
<div <div v-if="resourceList.data && resourceList.data.length <= 0" style="margin-top: 2rem">
v-if="resourceList.data && resourceList.data.length <= 0"
style="margin-top: 2rem"
>
<a-empty /> <a-empty />
</div> </div>
</div> </div>
@ -76,8 +44,7 @@
<script> <script>
import HomeFooter from '@/views/newHome/components/Footer' import HomeFooter from '@/views/newHome/components/Footer'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
import { defineComponent, reactive, ref, toRefs, onMounted, watch } from 'vue' import { defineComponent, reactive, ref, toRefs, onMounted, nextTick } from 'vue'
import { getIntegrationServicesList } from '@/api/home.js' import { getIntegrationServicesList } from '@/api/home.js'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import HomeHeader from '@/views/home/components/header' import HomeHeader from '@/views/home/components/header'
@ -86,19 +53,38 @@ import CanAssignCase from '@/views/home/components/CanAssignCase.vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
export default defineComponent({ export default defineComponent({
beforeRouteEnter(to, from, next) {
console.log('to---integrationServices--beforeRouteEnter------->', to)
console.log('from---integrationServices--beforeRouteEnter------->', from)
console.log('next---integrationServices--beforeRouteEnter------->', next)
// from.nameundefined
// if (from.name || from.name !== 'details') {
// console.log('------------>')
// localStorage.removeItem('DetailsPageconetent')
// }
next()
},
beforeRouteLeave(to, from, next) {
console.log('to---integrationServices--beforeRouteLeave------->', to)
console.log('from---integrationServices--beforeRouteLeave------->', from)
console.log('next---integrationServices--beforeRouteLeave------->', next)
if (to.name !== 'packagingDetails') {
localStorage.removeItem('integrationServices')
}
next()
},
setup() { setup() {
// //
const loading = ref(true) const loading = ref(true)
const currentPage = ref(1) const currentPage = ref(1)
const currentPageSize = ref(5) const currentPageSize = ref(5)
const pageSizeOptions = ref(['5', '10', '20', '50']) const pageSizeOptions = ref(['2','5', '10', '20', '50'])
const router = useRouter() const router = useRouter()
const select = router.currentRoute.value.query.select const select = router.currentRoute.value.query.select
const searchValue = ref('') const searchValue = ref('')
const Cardsname = ref(select) const Cardsname = ref(select)
const resourceList = reactive({ data: [] }) const resourceList = reactive({ data: [] })
const resourceTotal = ref(0) const resourceTotal = ref(0)
const current = ref(1)
const loadingData = ref(false) const loadingData = ref(false)
// //
const titleName = ref([ const titleName = ref([
@ -109,49 +95,73 @@ export default defineComponent({
name: '赋能场景', name: '赋能场景',
}, },
]) ])
const searchData = null;
const number = ref(0) const number = ref(0)
// //
const paramsGetResources = { const paramsGetResources = {
pageNum: 1, page: currentPage.value,
pageSize: currentPageSize.value, limit: currentPageSize.value,
type: titleName.value[number.value].name, type: titleName.value[number.value].name,
name: '', name: searchValue.value,
orderField: 'create_date', // total visits 访 applyCount score collectCount orderField: 'create_date',
orderType: 'DESC', // ASC DESC orderType: 'DESC', // ASC DESC
} }
const searchResultListDom = ref(null)
const storageSearchInfo = JSON.parse(localStorage.getItem('integrationServices'))
//
const handleSetSearchData = () => {
console.log('storageSearchInfo------------>', storageSearchInfo)
if (storageSearchInfo) {
//
searchValue.value = storageSearchInfo.name;
currentPage.value = storageSearchInfo.page;
currentPageSize.value = storageSearchInfo.limit;
titleName.value[number.value].name = storageSearchInfo.type;;
paramsGetResources.limit = storageSearchInfo.limit;
paramsGetResources.page = storageSearchInfo.page;
paramsGetResources.type = storageSearchInfo.type;
// 使
nextTick(() => {
searchResultListDom.value.changeCondition({
value: storageSearchInfo.orderField,
orderType: storageSearchInfo.orderType,
}, true)
})
console.log('paramsGetResources------------>', paramsGetResources);
return;
getIntegrationList()
}
}
const changeCards = (val) => { const changeCards = (val) => {
console.log(val) console.log(val)
number.value = val number.value = val
chongzhi() resetAction()
} }
// //
const onSearch = () => { const onSearch = () => {
loading.value = true
currentPage.value = 1 currentPage.value = 1
getIntegrationList()
} }
// //
const chongzhi = () => { const resetAction = () => {
loading.value = true
// //
searchValue.value = '' searchValue.value = ''
// //
currentPage.value = 1 currentPage.value = 1
currentPageSize.value = 5 currentPageSize.value = 5
// //
paramsGetResources.pageNum = 1 paramsGetResources.page = 1
paramsGetResources.pageSize = 5 paramsGetResources.limit = 5
paramsGetResources.orderField = 'create_date' paramsGetResources.orderField = 'create_date'
paramsGetResources.orderType = 'DESC' paramsGetResources.orderType = 'DESC'
mybus.emit('chongzhi', {
mybus.emit('resetAction', {
type: titleName.value[number.value].name, type: titleName.value[number.value].name,
}) })
getAppResources()
}
const getAppResources = () => {
getIntegrationList() getIntegrationList()
} }
@ -159,16 +169,9 @@ export default defineComponent({
const getIntegrationList = () => { const getIntegrationList = () => {
loadingData.value = true loadingData.value = true
console.log('获取融合服务列表------------>') console.log('获取融合服务列表------------>')
let postData = { paramsGetResources.name = searchValue.value;
limit: currentPageSize.value, console.log('paramsGetResources------------>', paramsGetResources);
page: currentPage.value, getIntegrationServicesList(paramsGetResources).then(
orderField: paramsGetResources.orderField,
orderType: paramsGetResources.orderType,
name: searchValue.value,
type: titleName.value[number.value].name,
}
getIntegrationServicesList(postData).then(
(res) => { (res) => {
loadingData.value = false loadingData.value = false
if (res.data.code !== 0) { if (res.data.code !== 0) {
@ -190,52 +193,66 @@ export default defineComponent({
} else { } else {
delete paramsGetResources.deptIds delete paramsGetResources.deptIds
} }
getAppResources() getIntegrationList()
console.log('paramsGetResources', paramsGetResources) console.log('paramsGetResources-----paramsGetResources------->', paramsGetResources);
}) })
mybus.on('changePage', (page) => { mybus.on('changePage', (page) => {
paramsGetResources.pageNum = page paramsGetResources.page = page
getAppResources('分页查询') console.log('paramsGetResources----changePage-------->', paramsGetResources);
getIntegrationList('分页查询')
}) })
mybus.on('changeSelcted', () => { mybus.on('changeSelcted', () => {
getAppResources() getIntegrationList()
}) })
mybus.on('refresh', () => { mybus.on('refresh', () => {
paramsGetResources.pageNum = 1 paramsGetResources.page = 1
currentPage.value = 1 currentPage.value = 1
getAppResources() getIntegrationList()
}) })
mybus.on('changeCondition', (condition) => { mybus.on('changeCondition', (condition) => {
console.log('------>', condition) console.log('changeCondition------>', condition)
paramsGetResources.orderField = condition.orderField paramsGetResources.orderField = condition.orderField
paramsGetResources.orderType = condition.orderType paramsGetResources.orderType = condition.orderType
getAppResources() getIntegrationList()
}) })
const pageChange = (val) => { const pageChange = (val) => {
console.log(val) console.log('val-----pageChange------->', val);
loading.value = true
currentPage.value = val currentPage.value = val
paramsGetResources.pageNum = val paramsGetResources.page = val
let params = '分页查询' // getIntegrationList() //
getAppResources(params) console.log('paramsGetResources----pageChange-------->', paramsGetResources);
}
onMounted(() => { }
getAppResources()
})
// //
const onShowSizeChange = (current, pageSize) => { const onShowSizeChange = (current, pageSize) => {
currentPage.value = current currentPage.value = current
currentPageSize.value = pageSize currentPageSize.value = pageSize
paramsGetResources.pageNum = current paramsGetResources.page = current
paramsGetResources.pageSize = pageSize paramsGetResources.limit = pageSize
getAppResources() getIntegrationList()
} }
watch(currentPageSize, () => {
console.log('pageSize', currentPageSize.value) //
const saveSearchCodition = () => {
console.log('融合服务------------>', searchData);
localStorage.setItem(
'integrationServices',
JSON.stringify(paramsGetResources)
)
}
onMounted(() => {
if (storageSearchInfo) {
handleSetSearchData()
} else {
getIntegrationList()
}
}) })
return { return {
@ -245,17 +262,20 @@ export default defineComponent({
resourceTotal, resourceTotal,
pageChange, pageChange,
Cardsname, Cardsname,
getAppResources, getIntegrationList,
chongzhi, resetAction,
onSearch, onSearch,
currentPageSize, currentPageSize,
pageSizeOptions, pageSizeOptions,
current,
loading, loading,
titleName, titleName,
changeCards, changeCards,
number, number,
loadingData, loadingData,
onShowSizeChange,
saveSearchCodition,
searchResultListDom,
} }
}, },
components: { components: {
@ -277,8 +297,6 @@ export default defineComponent({
background: #f3f5f9; background: #f3f5f9;
padding: 0.2rem; padding: 0.2rem;
// padding-left: 0.2rem;
// padding-top: 0.2rem;
.resultListSearchInput-son { .resultListSearchInput-son {
background: #fff; background: #fff;
padding: 0.2rem 0.2rem 0rem 0.3rem; padding: 0.2rem 0.2rem 0rem 0.3rem;

View File

@ -2,6 +2,7 @@
<!-- 青岛 --> <!-- 青岛 -->
<div class="details-pageconetent"> <div class="details-pageconetent">
<home-header></home-header> <home-header></home-header>
<detail-back></detail-back>
<div class="content-box" v-loading="loadingPage"> <div class="content-box" v-loading="loadingPage">
<div class="package-title">打包模式</div> <div class="package-title">打包模式</div>
<div class="basic-info"> <div class="basic-info">
@ -70,6 +71,7 @@ import { message } from 'ant-design-vue'
import { getIntegrationDetail } from '@/api/home' import { getIntegrationDetail } from '@/api/home'
import HomeHeader from '@/views/home/components/header' import HomeHeader from '@/views/home/components/header'
import { scInsert, scDel } from '@/api/personalCenter' import { scInsert, scDel } from '@/api/personalCenter'
import detailBack from '@/views/home/detailBack.vue'
const router = useRouter() const router = useRouter()
const id = router.currentRoute.value.query.id const id = router.currentRoute.value.query.id
@ -110,7 +112,6 @@ const getIntegrationServicesDeatil = (id) => {
} }
detailInfoObj.value = res.data.data || {} detailInfoObj.value = res.data.data || {}
console.log('detailInfoObj------------>', detailInfoObj); console.log('detailInfoObj------------>', detailInfoObj);
let fuseResourceList = detailInfoObj.value.fuseResourceList || [] let fuseResourceList = detailInfoObj.value.fuseResourceList || []
abilityList.value.map(v => { abilityList.value.map(v => {
let list = fuseResourceList.filter(x => x.type == v.name) || []; let list = fuseResourceList.filter(x => x.type == v.name) || [];
@ -197,7 +198,6 @@ const addCollect = () => {
} }
}) })
.catch(err => { .catch(err => {
console.log('err------------>', err);
message.success(err) message.success(err)
}) })
} else { } else {
@ -216,16 +216,13 @@ const addCollect = () => {
} }
}) })
.catch(err => { .catch(err => {
console.log('err------------>', err);
message.success(err) message.success(err)
}) })
} }
} }
} }
getIntegrationServicesDeatil(id) getIntegrationServicesDeatil(id)
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex-row-start { .flex-row-start {