合并版本v0.8.3.2

This commit is contained in:
wuhongjian 2022-07-29 09:12:15 +08:00
commit dbb6d55bce
24 changed files with 2262 additions and 1731 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-11 10:11:40 * @Date: 2022-04-11 10:11:40
* @LastEditors: hisense.wuhongjian * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-07-26 20:23:13 * @LastEditTime: 2022-07-28 20:14:40
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<!DOCTYPE html> <!DOCTYPE html>
@ -45,9 +45,9 @@
// window.SITE_CONFIG['apiURL'] = 'http://15.2.21.166:8888/renren-admin'; // 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://124.222.94.39:8888/renren-admin';
// window.SITE_CONFIG['apiURL'] = 'http://10.16.5.35: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['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地址 // WebSocket地址
window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket'; window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket';
</script> </script>

View File

@ -5,10 +5,9 @@ import { isURL } from '@/utils/validate'
import store from '@/store' import store from '@/store'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 // 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
const originalPush = Router.prototype.push 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) return originalPush.call(this, location).catch(err => err)
} }
@ -42,7 +41,8 @@ export const moduleRoutes = {
meta: { title: '主入口布局' }, meta: { title: '主入口布局' },
children: [ children: [
// todos 临时调整,后期去掉 // 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 } } { path: '/iframe', component: null, name: 'iframe', meta: { title: 'iframe', isTab: true } }
] ]
} }

View File

@ -801,6 +801,8 @@ export default {
} }
) )
this.submitFrom.infoList = newArr this.submitFrom.infoList = newArr
//
this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue)
this.$http this.$http
.put('/resource/update', this.submitFrom) .put('/resource/update', this.submitFrom)
.then(({ data: res }) => { .then(({ data: res }) => {

View File

@ -709,6 +709,8 @@ export default {
} }
}) })
console.log('编辑===============>', this.submitFrom) console.log('编辑===============>', this.submitFrom)
//
this.submitFrom.infoList = this.submitFrom.infoList.filter(item => item.attrValue)
this.$http this.$http
.put('/resource/update', this.submitFrom) .put('/resource/update', this.submitFrom)
.then(({ data: res }) => { .then(({ data: res }) => {

View File

@ -117,6 +117,7 @@
<ren-process-detail></ren-process-detail> <ren-process-detail></ren-process-detail>
<el-dialog <el-dialog
title="审批意见" title="审批意见"
:close-on-click-modal="false"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="30%" width="30%"
:before-close="handleClose" :before-close="handleClose"

View File

@ -65,6 +65,7 @@
<ren-process-detail></ren-process-detail> <ren-process-detail></ren-process-detail>
<el-dialog <el-dialog
title="审批意见" title="审批意见"
:close-on-click-modal="false"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="30%" width="30%"
:before-close="handleClose" :before-close="handleClose"

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51 * @Date: 2022-06-29 15:59:51
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-25 09:42:46 * @LastEditTime: 2022-07-28 17:23:05
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<!-- 流程业务表单 --> <!-- 流程业务表单 -->
@ -109,6 +109,7 @@
<ren-process-detail></ren-process-detail> <ren-process-detail></ren-process-detail>
<el-dialog <el-dialog
title="审批意见" title="审批意见"
:close-on-click-modal="false"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="30%" width="30%"
:before-close="handleClose" :before-close="handleClose"

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-07-08 09:54:50 * @Date: 2022-07-08 09:54:50
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-25 11:20:25 * @LastEditTime: 2022-07-28 20:09:53
* @Description: 多条数据特殊处理 * @Description: 多条数据特殊处理
--> -->
<template> <template>
@ -164,9 +164,10 @@ export default {
}, },
del (title, index) { del (title, index) {
this.data.splice(index, 1) this.data.splice(index, 1)
const str = this.data.length > 0 ? JSON.stringify(this.data) : ''
this.$emit('changeInfoList', { this.$emit('changeInfoList', {
attrType: title, attrType: title,
attrValue: JSON.stringify(this.data), attrValue: str,
delFlag: 0 delFlag: 0
}) })
}, },

View File

@ -6,14 +6,14 @@
<img src="~@/assets/img/CapabilityOperationMonitoring/API-allNum.png" /> <img src="~@/assets/img/CapabilityOperationMonitoring/API-allNum.png" />
<div> <div>
<h4>API总数</h4> <h4>API总数</h4>
<p>99999</p> <p>{{ Apisnum }}</p>
</div> </div>
</div> </div>
<div class="ApiBox"> <div class="ApiBox">
<img src="~@/assets/img/CapabilityOperationMonitoring/API-badNum.png" /> <img src="~@/assets/img/CapabilityOperationMonitoring/API-badNum.png" />
<div> <div>
<h4>异常API总数</h4> <h4>异常API总数</h4>
<p>99999</p> <p>{{ ApisnumShiBai }}</p>
</div> </div>
</div> </div>
</div> </div>
@ -24,12 +24,23 @@
<div class="RankingList"> <div class="RankingList">
<h4 class="title">API异常次数排行TOP10</h4> <h4 class="title">API异常次数排行TOP10</h4>
<ul> <ul>
<li class="RankingListData" v-for="(item, index) in RankingData" :key="index"> <li
<i><b>{{ index + 1 }}</b></i> class="RankingListData"
<el-tooltip class="item" effect="dark" :content="item.name" placement="top"> v-for="(item, index) in RankingData"
:key="index"
>
<i
><b>{{ index + 1 }}</b></i
>
<el-tooltip
class="item"
effect="dark"
:content="item.name"
placement="top"
>
<h6>{{ item.name }}</h6> <h6>{{ item.name }}</h6>
</el-tooltip> </el-tooltip>
<span>{{ item.num }}</span> <span>{{ item.count }}</span>
</li> </li>
</ul> </ul>
</div> </div>
@ -45,24 +56,62 @@
<h4 class="title">API异常次数统计</h4> <h4 class="title">API异常次数统计</h4>
<div class="AnomalyStatisticsTable"> <div class="AnomalyStatisticsTable">
<el-table :data="AnomalyStatisticsTable" border style="width: 100%"> <el-table :data="AnomalyStatisticsTable" border style="width: 100%">
<el-table-column prop="name" label="接口名称" width="80" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="name"
label="接口名称"
width="80"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="接口地址" width="200" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="address"
label="接口地址"
width="200"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="method" label="调用方法" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="method"
label="调用方法"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="type" label="组件类型" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="type"
label="组件类型"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="provider" label="提供商" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="provider"
label="提供商"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="state" label="监控状态" :resizable="false" :show-overflow-tooltip="true"> <el-table-column
prop="state"
label="监控状态"
:resizable="false"
:show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="tablePagination"> <div class="tablePagination">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" <el-pagination
:current-page="currentPage4" :page-size="5" layout="total, prev, pager, next, jumper" :total="total"> @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage4"
:page-size="5"
layout="total, prev, pager, next, jumper"
:total="total"
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
@ -72,55 +121,26 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
import * as moment from 'moment'
export default { export default {
// components: {}, // components: {},
// props: {}, props: {
callTheTrendData: {
type: Object,
default: () => {}
},
timeSwitchindex: {
type: String,
default: () => {}
}
},
data () { data () {
return { return {
endAndstartTime: {},
ApisnumShiBai: '',
Apisnum: '',
// //
RankingData: [ RankingData: [],
{
name: '能力名称一能力名称一能力名称一能力名称一能力名称一',
num: '239'
},
{
name: '能力名称二',
num: '222'
},
{
name: '能力名称三',
num: '123'
},
{
name: '能力名称四',
num: '88'
},
{
name: '能力名称五',
num: '88'
},
{
name: '能力名称六',
num: '88'
},
{
name: '能力名称七',
num: '88'
},
{
name: '能力名称八',
num: '88'
},
{
name: '能力名称九',
num: '88'
},
{
name: '能力名称十',
num: '88'
}
],
// //
AnomalyStatisticsTable: [ AnomalyStatisticsTable: [
{ {
@ -174,6 +194,181 @@ export default {
// //
this.total = this.AnomalyStatisticsTable.length this.total = this.AnomalyStatisticsTable.length
}, },
watch: {
callTheTrendData: {
deep: true,
handler () {
this.endAndstartTime = this.callTheTrendData
if (this.endAndstartTime.end !== this.endAndstartTime.start) {
if (this.timeSwitchindex === '周') {
// API
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status[7d]))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.Apisnum = parseInt(res.data.data.result[0].value[1])
// API()
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}[7d]))&time=${this.callTheTrendData.end}`
)
.then((resSon) => {
this.ApisnumShiBai = parseInt(
this.Apisnum - resSon.data.data.result[0].value[1]
)
})
})
// API()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[7d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.RankingData = res.data.data
})
// // API()
// this.$http
// .get(
// `/metrics/api/v1/query?query=topk(10, sum(increase(apigateway_http_status{code != "200"}[7d])) by (matched_uri))&time=${this.callTheTrendData.end}`
// )
// .then((res) => {
// debugger
// })
} else if (this.timeSwitchindex === '月') {
// API
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status[30d]))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.Apisnum = parseInt(res.data.data.result[0].value[1])
// API()
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}[30d]))&time=${this.callTheTrendData.end}`
)
.then((resSon) => {
this.ApisnumShiBai = parseInt(
this.Apisnum - resSon.data.data.result[0].value[1]
)
})
})
// API()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[30d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.RankingData = res.data.data
})
} else if (this.timeSwitchindex === '时间段') {
// API
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.Apisnum = parseInt(res.data.data.result[0].value[1])
// API()
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]))&time=${this.callTheTrendData.end}`
)
.then((resSon) => {
this.ApisnumShiBai = parseInt(
this.Apisnum - resSon.data.data.result[0].value[1]
)
})
})
// API()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${
this.callTheTrendData.end
}`
)
.then((res) => {
this.RankingData = res.data.data
})
}
} else {
// API
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status[1d]))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.Apisnum = parseInt(res.data.data.result[0].value[1])
// API()
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}[1d]))&time=${this.callTheTrendData.end}`
)
.then((resSon) => {
this.ApisnumShiBai = parseInt(
this.Apisnum - resSon.data.data.result[0].value[1]
)
})
})
// API()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[1d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.RankingData = res.data.data
})
}
}
},
timeSwitchindex: {
handler () {
if (this.timeSwitchindex === '时间段') {
// API
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.Apisnum = parseInt(res.data.data.result[0].value[1])
// API()
this.$http
.get(
`/metrics/api/v1/query?query=sum(increase(apigateway_http_status{code=~"^2.."}[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]))&time=${this.callTheTrendData.end}`
)
.then((resSon) => {
this.ApisnumShiBai = parseInt(
this.Apisnum - resSon.data.data.result[0].value[1]
)
})
})
// API()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${
this.callTheTrendData.end
}`
)
.then((res) => {
this.RankingData = res.data.data
})
}
}
}
},
methods: { methods: {
// //
handleSizeChange (val) { handleSizeChange (val) {
@ -276,7 +471,7 @@ export default {
} }
.ApiBox { .ApiBox {
background: url("~@/assets/img/CapabilityOperationMonitoring/bg-blue.png") background: url('~@/assets/img/CapabilityOperationMonitoring/bg-blue.png')
no-repeat; no-repeat;
background-size: 100%; background-size: 100%;
width: 22.5rem; width: 22.5rem;
@ -314,7 +509,7 @@ export default {
} }
.ApiBox:last-of-type { .ApiBox:last-of-type {
background: url("~@/assets/img/CapabilityOperationMonitoring/bg-yellow.png") background: url('~@/assets/img/CapabilityOperationMonitoring/bg-yellow.png')
no-repeat; no-repeat;
background-size: 100%; background-size: 100%;

View File

@ -81,7 +81,7 @@
> >
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
</el-tooltip> </el-tooltip>
<div>{{ item.snum }}</div> <div>{{ item.count }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -98,6 +98,10 @@ export default {
callTheTrendData: { callTheTrendData: {
type: Object, type: Object,
default: () => {} default: () => {}
},
timeSwitchindex: {
type: String,
default: () => {}
} }
}, },
data () { data () {
@ -151,56 +155,93 @@ export default {
}, },
abilityListTabData: ['请求次数', '请求失败次数', '平均延时'], // tab abilityListTabData: ['请求次数', '请求失败次数', '平均延时'], // tab
newTab: '请求次数', newTab: '请求次数',
abilityListData: [ abilityListData: [] //
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一222222222222222222222222',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
},
{
name: '能里名称一',
snum: '239'
}
] //
} }
}, },
watch: { watch: {
callTheTrendData: { dataRange: {
deep: true, deep: true,
handler () { handler () {
this.endAndstartTime = this.callTheTrendData this.endAndstartTime = this.callTheTrendData
if (this.endAndstartTime.end != this.endAndstartTime.start) { if (this.endAndstartTime.end != this.endAndstartTime.start) {
if (this.timeSwitchindex === '周') {
if (this.newTab === '请求次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status[7d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
this.abilityListData.forEach((item) => {
item.count = parseInt(item.count)
})
})
} else if (this.newTab === '请求失败次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[7d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
})
}
} else if (this.timeSwitchindex === '月') {
if (this.newTab === '请求次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status[30d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
this.abilityListData.forEach((item) => {
item.count = parseInt(item.count)
})
})
} else if (this.newTab === '请求失败次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[30d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
})
}
} else if (this.timeSwitchindex === '时间段') {
if (this.newTab === '请求次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${
this.callTheTrendData.end
}`
)
.then((res) => {
this.abilityListData = res.data.data
this.abilityListData.forEach((item) => {
item.count = parseInt(item.count)
})
})
} else if (this.newTab === '请求失败次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${
this.callTheTrendData.end
}`
)
.then((res) => {
this.abilityListData = res.data.data
})
}
}
this.$http this.$http
.get( .get(
'/metrics/api/v1/query?' + '/metrics/api/v1/query?' +
@ -240,6 +281,29 @@ export default {
} }
}) })
} else { } else {
if (this.newTab === '请求次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status[1d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
this.abilityListData.forEach((item) => {
item.count = parseInt(item.count)
})
})
} else if (this.newTab === '请求失败次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status{code!='200'}[1d]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${this.callTheTrendData.end}`
)
.then((res) => {
this.abilityListData = res.data.data
})
}
this.$http this.$http
.get( .get(
'/metrics/api/v1/query?query=sum(apigateway_http_status)&time=' + '/metrics/api/v1/query?query=sum(apigateway_http_status)&time=' +
@ -282,7 +346,6 @@ export default {
) )
.then((res) => { .then((res) => {
if (res.data.data.result[0]) { if (res.data.data.result[0]) {
debugger
this.requestOverviewData[3].tatol = parseInt( this.requestOverviewData[3].tatol = parseInt(
res.data.data.result[0].value[1] res.data.data.result[0].value[1]
) )
@ -406,7 +469,6 @@ export default {
86400 86400
) )
.then((res) => { .then((res) => {
debugger
if (res.data.data.result[0]) { if (res.data.data.result[0]) {
res.data.data.result[0].values.map((item, index) => { res.data.data.result[0].values.map((item, index) => {
this.shuJuLiuLiang.ruvalue.push( this.shuJuLiuLiang.ruvalue.push(
@ -422,9 +484,39 @@ export default {
} }
console.log('this.endAndstartTime', this.endAndstartTime) console.log('this.endAndstartTime', this.endAndstartTime)
} }
},
timeSwitchindex: {
handler () {
if (this.timeSwitchindex === '时间段' && this.newTab === '请求次数') {
// ()
this.$http
.get(
`/gateway-monitor/queryGroupByAbility?query=topk(10, sum(label_replace(increase(apigateway_http_status[${
this.callTheTrendData.end - this.callTheTrendData.start
}s:1s]), "groupInfo", "$2", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (groupInfo))&time=${
this.callTheTrendData.end
}`
)
.then((res) => {
this.abilityListData = res.data.data
this.abilityListData.forEach((item) => {
item.count = parseInt(item.count)
})
})
}
}
}
},
computed: {
dataRange () {
const { timeSwitchindex, callTheTrendData, newTab } = this
return {
timeSwitchindex,
callTheTrendData,
newTab
}
} }
}, },
computed: {},
methods: { methods: {
// echarts // echarts
// //

View File

@ -40,16 +40,22 @@
:picker-options="pickerOptions1" :picker-options="pickerOptions1"
> >
</el-date-picker> </el-date-picker>
<el-button type="primary" round>确定</el-button> <el-button type="primary" round @click="switchTimeFunction()"
>确定</el-button
>
</div> </div>
</div> </div>
</div> </div>
<div class="capability-operation-monitoring-center"> <div class="capability-operation-monitoring-center">
<abnormal-situation></abnormal-situation> <abnormal-situation
:callTheTrendData="callTheTrendData"
:timeSwitchindex="timeSwitchindex"
></abnormal-situation>
</div> </div>
<div class="capability-operation-monitoring-bottom"> <div class="capability-operation-monitoring-bottom">
<analysis-of-the-request <analysis-of-the-request
:callTheTrendData="callTheTrendData" :callTheTrendData="callTheTrendData"
:timeSwitchindex="timeSwitchindex"
></analysis-of-the-request> ></analysis-of-the-request>
</div> </div>
</div> </div>
@ -67,8 +73,9 @@ export default {
data () { data () {
return { return {
timeSwitchindex: '日', timeSwitchindex: '日',
timeStart: '', timeStart: new Date(),
timeEnd: '', leftAndrightTime: 0,
timeEnd: new Date(),
pickerOptions0: { pickerOptions0: {
disabledDate: (time) => { disabledDate: (time) => {
if (this.timeEnd != '') { if (this.timeEnd != '') {
@ -87,29 +94,53 @@ export default {
} }
} }
}, },
watch: {}, watch: {
timeSwitchindex: {
handler () {
var time = new Date()
switch (this.timeSwitchindex) {
case '日':
this.timeStart = time
this.timeEnd = time
break
case '周':
this.timeStart = new Date(time.getTime() - 168 * 60 * 60 * 1000)
this.timeEnd = time
break
case '月':
this.timeStart = new Date(time.getTime() - 720 * 60 * 60 * 1000)
this.timeEnd = time
}
}
},
timeStart: {
handler () {
this.callTheTrendData.start = parseInt(this.timeStart / 1000)
}
},
timeEnd: {
handler () {
this.callTheTrendData.end = parseInt(this.timeEnd / 1000)
}
}
},
computed: {}, computed: {},
methods: { methods: {
switchTimeFunction () {
this.timeSwitchindex = '时间段'
},
timeSwitch (name) { timeSwitch (name) {
this.timeSwitchindex = name this.timeSwitchindex = name
if (name == '周') { if (name === '周') {
const start = parseInt( const start = parseInt(
(Date.parse(new Date()) - 168 * 60 * 60 * 1000) / 1000 (Date.parse(new Date()) - 168 * 60 * 60 * 1000) / 1000
) )
this.callTheTrendData.start = start this.callTheTrendData.start = start
console.log( } else if (name === '月') {
'this.callTheTrendData',
parseInt((Date.parse(new Date()) - 168 * 60 * 60 * 1000) / 1000)
)
} else if (name == '月') {
const start = parseInt( const start = parseInt(
(Date.parse(new Date()) - 720 * 60 * 60 * 1000) / 1000 (Date.parse(new Date()) - 720 * 60 * 60 * 1000) / 1000
) )
this.callTheTrendData.start = start this.callTheTrendData.start = start
console.log(
'this.callTheTrendData',
parseInt((Date.parse(new Date()) - 720 * 60 * 60 * 1000) / 1000)
)
} else { } else {
this.callTheTrendData.start = Date.parse(new Date()) / 1000 this.callTheTrendData.start = Date.parse(new Date()) / 1000
this.callTheTrendData.end = Date.parse(new Date()) / 1000 this.callTheTrendData.end = Date.parse(new Date()) / 1000

View File

@ -56,6 +56,7 @@ import { isEmail, isMobile } from '@/utils/validate'
export default { export default {
data () { data () {
return { return {
submitFlag: true,
visible: false, visible: false,
roleList: [], roleList: [],
roleIdListDefault: [], roleIdListDefault: [],
@ -170,6 +171,22 @@ export default {
]).then(() => { ]).then(() => {
if (this.dataForm.id) { if (this.dataForm.id) {
this.getInfo() this.getInfo()
} else {
this.dataForm = {
id: '',
username: '',
deptId: '',
deptName: '',
password: '',
confirmPassword: '',
realName: '',
gender: 0,
email: '',
mobile: '',
roleIdList: [],
postIdList: [],
status: 1
}
} }
}) })
}) })
@ -219,6 +236,8 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
if (this.submitFlag) {
this.submitFlag = false
this.dataForm.password = Encrypt(this.dataForm.password) this.dataForm.password = Encrypt(this.dataForm.password)
if (this.dataForm.id) { if (this.dataForm.id) {
delete this.dataForm.password delete this.dataForm.password
@ -242,7 +261,9 @@ export default {
this.$emit('refreshDataList') this.$emit('refreshDataList')
} }
}) })
this.submitFlag = true
}).catch(() => {}) }).catch(() => {})
}
}) })
}, 1000, { leading: true, trailing: false }) }, 1000, { leading: true, trailing: false })
} }

View File

@ -1,10 +1,10 @@
// /resource/getByDept // /resource/getByDept
import http from '@/utils/request'; import http from '@/utils/request'
function Request({ function Request({
methods, url, data, success, fali methods, url, data, success, fali
}) { }) {
let _key = methods == 'get' ? 'params' : 'data'; const _key = methods == 'get' ? 'params' : 'data'
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
http[methods](url, { http[methods](url, {
[_key]: data [_key]: data
@ -14,7 +14,6 @@ function Request({
reject(err) reject(err)
}) })
}) })
} }
function RequestPost({ function RequestPost({
methods, url, data, success, fali methods, url, data, success, fali
@ -28,7 +27,6 @@ function RequestPost({
reject(err) reject(err)
}) })
}) })
} }
// /resource/getByDept:获取当前登录用户所在部门发布的资源 // /resource/getByDept:获取当前登录用户所在部门发布的资源
@ -72,7 +70,6 @@ export const getTotalByDept = (data, success, fail) => {
}) })
} }
// 部门申请 // 部门申请
export const getApply = (data, success, fail) => { export const getApply = (data, success, fail) => {
Request({ Request({
@ -141,9 +138,8 @@ export const getApplyByDept = (data, success, fail) => {
// 部门发布能力被调用趋势 // 部门发布能力被调用趋势
export const getByDept = (data, success, fail) => { export const getByDept = (data, success, fail) => {
RequestPost({ RequestPost({
methods: 'post', methods: 'get',
url: '/resource/trafficDeptResource', url: `/gateway-monitor/queryGroupByDeptInRange?query=sum(label_replace(increase(apigateway_http_status[1d]), "deptInfo", "$1", "matched_uri", "/juapi/(.*?)/(.*?)/.*")) by (deptInfo)&start=${data.startDate}&end=${data.endDate}&step=86400`
data
}).then(res => { }).then(res => {
success && success(res) success && success(res)
}).catch(err => { }).catch(err => {

View File

@ -1,42 +1,41 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
//折线图 // 折线图
export const trendLineChart = (id, chartData, _option) => { export const trendLineChart = (id, chartData, _option) => {
const { xaxis = [], ydata = [] } = chartData
let { xaxis = [], ydata = [], } = chartData;
let option = { let option = {
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis'
}, },
grid: { grid: {
top: '16%', top: '16%',
left: '7%', left: '7%',
right: '7%', right: '7%',
bottom: '10%', bottom: '10%'
}, },
xAxis: [{ xAxis: [{
type: 'category', type: 'category',
boundaryGap: true, boundaryGap: true,
axisLine: { //坐标轴轴线相关设置。数学上的x轴 axisLine: { // 坐标轴轴线相关设置。数学上的x轴
show: true, show: true,
lineStyle: { lineStyle: {
color: 'rgba(138,178,241)' color: 'rgba(138,178,241)'
}
}, },
}, axisLabel: { // 坐标轴刻度标签的相关设置
axisLabel: { //坐标轴刻度标签的相关设置
textStyle: { textStyle: {
color: '#2b2b2b', color: '#2b2b2b',
margin: 15, margin: 15,
fontSize: '14' fontSize: '14'
}, }
}, },
axisTick: { axisTick: {
show: false, show: false
}, },
data: xaxis, data: xaxis
}], }],
yAxis: [{ yAxis: [{
name: '使用量(万次)', name: '使用量(万次)',
nameTextStyle:{color:"#2b2b2b"}, nameTextStyle: { color: '#2b2b2b' },
type: 'value', type: 'value',
min: 0, min: 0,
max: 100, max: 100,
@ -51,7 +50,7 @@ export const trendLineChart = (id, chartData, _option) => {
show: true, show: true,
lineStyle: { lineStyle: {
color: 'rgba(138,178,241)' color: 'rgba(138,178,241)'
}, }
}, },
axisLabel: { axisLabel: {
show: true, show: true,
@ -59,12 +58,12 @@ export const trendLineChart = (id, chartData, _option) => {
color: '#2b2b2b', color: '#2b2b2b',
margin: 15, margin: 15,
fontSize: '14' fontSize: '14'
}, }
}, },
axisTick: { axisTick: {
show: false, show: false
}, }
}], }],
series: [{ series: [{
name: '使用量', name: '使用量',
@ -72,7 +71,7 @@ export const trendLineChart = (id, chartData, _option) => {
showAllSymbol: true, showAllSymbol: true,
symbolSize: 0, symbolSize: 0,
symbol: 'circle', symbol: 'circle',
symbolSize: 5, //设定实心点的大小 symbolSize: 5, // 设定实心点的大小
lineStyle: { lineStyle: {
normal: { normal: {
@ -87,17 +86,17 @@ export const trendLineChart = (id, chartData, _option) => {
borderColor: '#f0f' borderColor: '#f0f'
}, },
label: { label: {
show: false, show: false
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: "#0058ee", color: '#0058ee'
} }
}, },
// 区域填充样式 // 区域填充样式
areaStyle: { areaStyle: {
normal: { normal: {
//线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是true则该四个值是绝对像素位置。 // 线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是true则该四个值是绝对像素位置。
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0, offset: 0,
color: 'rgba(0,88,225,0.16)' color: 'rgba(0,88,225,0.16)'
@ -107,23 +106,23 @@ export const trendLineChart = (id, chartData, _option) => {
color: 'rgba(0,88,225,0)' color: 'rgba(0,88,225,0)'
} }
], false), ], false),
shadowColor: 'rgba(53,142,215, 0.9)', //阴影颜色 shadowColor: 'rgba(53,142,215, 0.9)', // 阴影颜色
shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。 shadowBlur: 20 // shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
} }
}, },
data: ydata data: ydata
}] }]
}; }
if (_option !== undefined) { if (_option !== undefined) {
option = Object.assign({}, option, _option) option = Object.assign({}, option, _option)
} }
const client = document.getElementById(id); const client = document.getElementById(id)
let myChart = echarts.init(client); const myChart = echarts.init(client)
const clientWidth = client.clientWidth; const clientWidth = client.clientWidth
const clientHeight = client.clientHeight; const clientHeight = client.clientHeight
myChart.clear(); myChart.clear()
myChart.resize({ width: clientWidth, height: clientHeight }); myChart.resize({ width: clientWidth, height: clientHeight })
myChart.setOption(option); myChart.setOption(option)
} }

View File

@ -8,108 +8,132 @@
@click="handleTitleSwitch(idx)" @click="handleTitleSwitch(idx)"
class="top-title" class="top-title"
:class="{ active: idx == selectedTitle }" :class="{ active: idx == selectedTitle }"
>{{ item }}</div> >
{{ item }}
</div>
</div> </div>
</content-title> </content-title>
<div id="trendId" class="trend-echart"></div> <div id="trendId" class="trend-echart"></div>
</div> </div>
</template> </template>
<script> <script>
import { trendLineChart } from "./lineOption"; import { trendLineChart } from './lineOption'
import contentTitle from "./content-title"; import contentTitle from './content-title'
import * as Apis from "../api"; import * as Apis from '../api'
import moment from 'moment'
export default { export default {
data() { data () {
return { return {
titles: ["近七日", "月度"], titles: ['近七日', '月度'],
selectedTitle: 0, selectedTitle: 0,
trendChartData: {}, trendChartData: {},
startDate: "", startDate: '',
endDate: endDate: Math.round(new Date() / 1000),
new Date().getFullYear() + ydata: [],
"-" + xaxis: []
(new Date().getMonth() + 1) + }
"-" +
new Date().getDate()
};
}, },
components: { components: {
contentTitle contentTitle
}, },
mounted() { mounted () {
this.initChart(); this.initChart()
}, },
watch: { watch: {
selectedTitle: { selectedTitle: {
handler: function(newVal, oldVal) { handler: function (newVal, oldVal) {
this.startDate = this.getData(newVal == 0 ? 7 : 30); this.startDate = this.getData(newVal == 0 ? 7 : 30)
this.ydata = this.getday2(this.selectedTitle === 0 ? 7 : 30)
this.ydata.map((item) => {
this.xaxis.push(0)
})
}, },
deep: true, deep: true,
immediate: true immediate: true
} }
}, },
methods: { methods: {
// //
initChart() { getday2 (index) {
const days = []
var Dates = new Date()
for (let i = 0; i <= 24 * (index - 1); i += 24) {
// 6
const dateItem = new Date(Dates.getTime() - i * 60 * 60 * 1000) // 使***
const y = dateItem.getFullYear() //
let m = dateItem.getMonth() + 1 // js0+1
let d = dateItem.getDate() //
m = this.addDate0(m) //
d = this.addDate0(d) //
const valueItem = y + '-' + m + '-' + d //
days.unshift(valueItem) //
}
console.log('最近七天日期:', days)
return days
},
// 0
addDate0 (time) {
if (time.toString().length == 1) {
time = '0' + time.toString()
}
return time
},
//
initChart () {
Apis.getByDept( Apis.getByDept(
{ {
startDate: this.startDate, startDate: this.startDate,
endDate: this.endDate endDate: this.endDate
}, },
res => { (res) => {
if (res.data.code !== 0) { // if (res.data.code !== 0) {
return; // return
// }
this.data = res.data.data[0].values
this.data.map((item) => {
const time = moment(item[0] * 1000).format('YYYY-MM-DD')
this.ydata.map((itemSon, indexSon) => {
if (itemSon === time) {
this.xaxis[indexSon] = parseInt(item[1])
} }
this.data = res.data.data.browseDayList || []; })
let xaxis = [], })
ydata = [];
this.data.forEach(v => {
Object.keys(v).map((key, value) => {
xaxis.push(key);
ydata.push(value);
});
});
console.log(xaxis)
console.log(ydata)
this.trendChartData = { this.trendChartData = {
xaxis: xaxis, xaxis: this.ydata,
ydata: ydata ydata: this.xaxis
}; }
this.$nextTick(() => { this.$nextTick(() => {
trendLineChart("trendId", this.trendChartData); trendLineChart('trendId', this.trendChartData)
}); })
}, },
err => { (err) => {
console.log("err", err); console.log('err', err)
} }
); )
}, },
handleTitleSwitch(idx) { handleTitleSwitch (idx) {
this.selectedTitle = idx; this.selectedTitle = idx
this.startDate = this.getData(this.selectedTitle == 0 ? 7 : 30); this.startDate = this.getData(this.selectedTitle == 0 ? 7 : 30)
console.log(this.startDate); console.log(this.startDate)
this.initChart(); this.initChart()
}, },
getData(aa) { getData (aa) {
let date1 = new Date(), const date1 = new Date()
time1 = const time1 =
date1.getFullYear() + date1.getFullYear() +
"-" + '-' +
(date1.getMonth() + 1) + (date1.getMonth() + 1) +
"-" + '-' +
date1.getDate(); //time1 date1.getDate() // time1
let date2 = new Date(date1); const date2 = new Date(date1)
date2.setDate(date1.getDate() - aa); date2.setDate(date1.getDate() - aa)
let time2 = const time2 = Math.round(date2 / 1000)
date2.getFullYear() + return time2
"-" +
(date2.getMonth() + 1) +
"-" +
date2.getDate();
return time2;
} }
} }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.trend { .trend {

View File

@ -97,8 +97,15 @@ export function callTheTrendPort(start, end, params) {
export function totalCallsSnum(params) { export function totalCallsSnum(params) {
return request({ return request({
url: url:
'/metrics/api/v1/query?query=sum(apigateway_http_status)&time=1655793262.495' + `metrics/api/v1/query?query=sum(increase(apigateway_http_status))&time=${params}`,
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', method: 'get',
}) })
} }

View File

@ -453,6 +453,15 @@ export const constantRoutes = [
icon: 'error-warning-line', icon: 'error-warning-line',
}, },
}, },
{
path: '/packagingDetails',
name: 'packagingDetails',
component: () => import('@/views/home/packagingDetails'),
meta: {
title: '打包模式详情',
icon: 'error-warning-line',
},
},
{ {
path: '/integrationServices', path: '/integrationServices',
name: 'integrationServices', name: 'integrationServices',

View File

@ -119,6 +119,7 @@
componentServiceRank, componentServiceRank,
callTheTrendPort, callTheTrendPort,
totalCallsSnum, totalCallsSnum,
totalCallsSnum2,
} from '@/api/capabilityCloud' } from '@/api/capabilityCloud'
import * as moment from 'moment' import * as moment from 'moment'
let xinhaianIsShow = whoShow.itShowXiHaiAn //西 let xinhaianIsShow = whoShow.itShowXiHaiAn //西
@ -410,6 +411,13 @@
if (!xinhaianIsShow) { if (!xinhaianIsShow) {
totalCallsSnum(end).then((res) => { totalCallsSnum(end).then((res) => {
snum.value[1].num = res.data.data.result[0].value[1] 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 +
'%'
})
}) })
} }
} }

View File

@ -11,75 +11,42 @@
</div> </div>
<div class="condition" :key="showKey"> <div class="condition" :key="showKey">
<ul v-if="selectCardsname === '融合服务'"> <ul v-if="selectCardsname === '融合服务'">
<li <li v-for="(item, i) in orderList" :key="item.value" @click="changeOrder(i, item.value, item.orderType)">
v-for="(item, i) in orderList"
:key="item.value"
@click="changeOrder(i, item.value, item.orderType)"
>
{{ item.name }} {{ item.name }}
<span <span class="arrow" :class="item.orderType == 'ASC' ? 'down' : ''"></span>
class="arrow"
:class="item.orderType == 'ASC' ? 'down' : ''"
></span>
</li> </li>
</ul> </ul>
<ul v-else> <ul v-else>
<li <li v-for="item in selList" :key="item.value" @click="changeCondition(item.value)" 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 <span class="arrow" :class="item.value == selData ? 'down' : ''"></span>
class="arrow"
:class="item.value == selData ? 'down' : ''"
></span>
</li> </li>
</ul> </ul>
</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 class="left" <div class="left" style="display: flex;
style="display: flex;
align-items: center" align-items: center"
v-else-if="selectCardsname === '融合服务' && item.fuseAttrList && item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0]"> v-else-if="selectCardsname === '融合服务' && item.fuseAttrList && item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0]">
<a-image <a-image :width="106" :preview="false"
:width="106" :src="item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0].attrValue" />
:preview="false"
:src="item.fuseAttrList.filter((val) => val.attrType == '服务图片')[0].attrValue"
/>
</div> </div>
<div <div class="left" :class="
class="left"
:class="
item.type == '应用资源' item.type == '应用资源'
? 'yyzy' ? 'yyzy'
: !item.type : !item.type
@ -104,55 +71,36 @@
.attrValue == '业务组件' .attrValue == '业务组件'
? 'ywzj' ? 'ywzj'
: '' : ''
" " v-else-if="
v-else-if="
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 class="left rhfw" v-else-if="selectCardsname === '融合服务'"></div> <div class="left rhfw" v-else-if="selectCardsname === '融合服务'"></div>
<div class="right"> <div class="right">
<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="item.applyState == '通过'"
class="icon" style="margin-left: 10px">
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 == '通过'"
style="margin-left: 10px"
>
<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 v-if="selectCardsname === '融合服务'" <div v-if="selectCardsname === '融合服务'" class="label-content">
class="label-content"> <template v-if="item.fuseAttrList && item.fuseAttrList.filter((val) => val.attrType == '应用领域')[0]">
<template v-if="item.fuseAttrList && item.fuseAttrList.filter((val)=>val.attrType=='应用领域')[0]">
<span class="label" <span class="label"
v-for="(data, index) in item.fuseAttrList.filter((val)=>val.attrType=='应用领域')[0].attrValue.split(';')" v-for="(data, index) in item.fuseAttrList.filter((val) => val.attrType == '应用领域')[0].attrValue.split(';')"
:key="index" :key="index">
> {{ data }}
{{data}}
</span> </span>
</template> </template>
</div> </div>
@ -183,19 +131,13 @@
> >
<span>{{ item.shareType || '--' }}</span> <span>{{ item.shareType || '--' }}</span>
</div> --> </div> -->
<div <div v-if="
v-if="
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 || '--' }}
@ -204,29 +146,23 @@
<div class="btn"> <div class="btn">
<div class="bottom" v-if="selectCardsname !== '基础设施'"> <div class="bottom" v-if="selectCardsname !== '基础设施'">
<div> <div>
<div <div v-if="
v-if="
selectCardsname !== '数据资源' && selectCardsname !== '数据资源' &&
selectCardsname !== '融合服务' selectCardsname !== '融合服务'
" ">
>
浏览量{{ 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 !== '融合服务'
" ">
>
数据量{{ item.sjlCount || 0 }} 数据量{{ item.sjlCount || 0 }}
</div> </div>
<div v-if="selectCardsname !== '数据资源'"> <div v-if="selectCardsname !== '数据资源'">
@ -245,56 +181,28 @@
</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 == '组件服务' ||
(selectCardsname == '应用资源' && whoShow1.itShowQingDao) (selectCardsname == '应用资源' && whoShow1.itShowQingDao)
" ">
> <span class="shopping-down" v-if="item.isInShoppingCart"></span>
<span <span class="shopping-on" v-else @click="addShoppingCart(item, index)"></span>
class="shopping-down"
v-if="item.isInShoppingCart"
></span>
<span
class="shopping-on"
v-else
@click="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="addCollect(item)"></span>
class="sc-down" <span class="sc-on" v-if="item.isCollect == 'true'" @click="addCollect(item)"></span>
v-if="item.isCollect == 'false'"
@click="addCollect(item)"
></span>
<span
class="sc-on"
v-if="item.isCollect == 'true'"
@click="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="goComparePk(item, index)"></span> <span class="pk-on" @click="goComparePk(item, index)"></span>
</div> </div>
<a-button <a-button type="primary" @click="toView('details', item)" v-if="!whoShow1.itShowBaoTou">
type="primary"
@click="toView('details', item)"
v-if="!whoShow1.itShowBaoTou"
>
查看详情 查看详情
</a-button> </a-button>
<a-button <a-button style="margin-left: 10px" v-show="selectCardsname === '融合服务'"
style="margin-left: 10px" @click="handleAKeyApplication(item)">
v-show="selectCardsname === '融合服务'"
@click="handleAKeyApplication(item)"
>
一键申请 一键申请
</a-button> </a-button>
<!-- <a-button <!-- <a-button
@ -305,14 +213,10 @@
> >
免费试用 免费试用
</a-button> --> </a-button> -->
<a-button <a-button type="primary" @click="toView('apply', item)" v-show="
type="primary"
@click="toView('apply', item)"
v-show="
cardType == '组件服务' || cardType == '组件服务' ||
(cardType == '应用资源' && whoShow1.itShowQingDao) (cardType == '应用资源' && whoShow1.itShowQingDao)
" ">
>
{{ {{
item.shareCondition == '免批申请' ? '免批申请' : '立即申请' item.shareCondition == '免批申请' ? '免批申请' : '立即申请'
}} }}
@ -327,12 +231,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%">
@ -343,20 +242,20 @@
</div> </div>
</template> </template>
<script> <script>
import { ref, reactive } from 'vue' import { ref, reactive } 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'
import { scInsert, scDel } from '@/api/personalCenter' import { scInsert, scDel } from '@/api/personalCenter'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
import { getHls } from '@/api/home.js' import { getHls } from '@/api/home.js'
export default { export default {
name: '', name: '',
// props: ['resourceList', 'resourceTotal', 'selectCardsname'], // props: ['resourceList', 'resourceTotal', 'selectCardsname'],
props: { props: {
resourceList: { resourceList: {
type: Object, type: Object,
default: () => {}, default: () => { },
}, },
resourceTotal: { resourceTotal: {
type: String, type: String,
@ -553,6 +452,14 @@
) )
} }
} else if (props.selectCardsname === '融合服务') { } else if (props.selectCardsname === '融合服务') {
//
router.push({
path: '/packagingDetails',
query: {
id: item.id,
},
})
} else if (props.selectCardsname === '赋能场景') {
router.push({ router.push({
path: '/integrationServicesDetails', path: '/integrationServicesDetails',
query: { query: {
@ -683,7 +590,7 @@
// -- // --
const handleAKeyApplication = (item) => { const handleAKeyApplication = (item) => {
let _applyList = [] let _applyList = []
;(item.fuseResourceList || []).map((v) => { ; (item.fuseResourceList || []).map((v) => {
let resource = v.resource || {} let resource = v.resource || {}
let obj = { let obj = {
arr: [ arr: [
@ -812,13 +719,14 @@
mybus.off('chongzhi') mybus.off('chongzhi')
// mybus.emit('changeSelcted') // mybus.emit('changeSelcted')
}, },
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
#search-result-list-container { #search-result-list-container {
width: 1088px; width: 1088px;
padding: 0 20px; padding: 0 20px;
background: #f3f5f9; background: #f3f5f9;
.detail-content { .detail-content {
// //
white-space: nowrap; white-space: nowrap;
@ -827,6 +735,7 @@
width: 130px; width: 130px;
display: inline-block; display: inline-block;
} }
.shai-xuan { .shai-xuan {
width: 1047px; width: 1047px;
height: 36px; height: 36px;
@ -836,6 +745,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
.circle { .circle {
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -846,24 +756,30 @@
line-height: 16px; line-height: 16px;
margin-right: 21px; margin-right: 21px;
} }
.result { .result {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #212121; color: #212121;
span { span {
font-size: 18px; font-size: 18px;
color: #0087ff; color: #0087ff;
} }
} }
.condition { .condition {
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 10px; top: 10px;
ul li { ul li {
list-style-type: none; list-style-type: none;
} }
ul { ul {
display: flex; display: flex;
li { li {
width: 90px; width: 90px;
height: 12px; height: 12px;
@ -872,6 +788,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.arrow { .arrow {
display: inline-block; display: inline-block;
width: 12px; width: 12px;
@ -879,6 +796,7 @@
background: url('~@/assets/newHome/arrow.png'); background: url('~@/assets/newHome/arrow.png');
margin-left: 10px; margin-left: 10px;
} }
.down { .down {
background: url('~@/assets/newHome/down.png'); background: url('~@/assets/newHome/down.png');
margin-top: 6px; margin-top: 6px;
@ -887,6 +805,7 @@
} }
} }
} }
.result-list { .result-list {
width: 1048px; width: 1048px;
display: flex; display: flex;
@ -895,72 +814,89 @@
border-bottom: 1px rgba(150, 144, 144, 0.3) solid; border-bottom: 1px rgba(150, 144, 144, 0.3) solid;
border-top: 1px rgba(150, 144, 144, 0.3) solid; border-top: 1px rgba(150, 144, 144, 0.3) solid;
padding: 10px 0; padding: 10px 0;
.item { .item {
width: 100%; width: 100%;
margin-top: 10px; margin-top: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
.left { .left {
display: inline-block; display: inline-block;
width: 120px; width: 120px;
height: 110px; height: 110px;
margin-right: 16px; margin-right: 16px;
} }
.right { .right {
width: 100%; width: 100%;
} }
.yyzy { .yyzy {
background: url('~@/assets/home/yyzy_square.png') no-repeat; background: url('~@/assets/home/yyzy_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.sjzy { .sjzy {
background: url('~@/assets/home/sjzy_square.png') no-repeat; background: url('~@/assets/home/sjzy_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.znsf { .znsf {
background: url('~@/assets/home/znsf_square.png') no-repeat; background: url('~@/assets/home/znsf_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.tcfw { .tcfw {
background: url('~@/assets/home/tcfw_square.png') no-repeat; background: url('~@/assets/home/tcfw_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.kfzj { .kfzj {
background: url('~@/assets/home/kfzj_square.png') no-repeat; background: url('~@/assets/home/kfzj_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.ywzj { .ywzj {
background: url('~@/assets/home/ywzj_square.png') no-repeat; background: url('~@/assets/home/ywzj_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.rhfw { .rhfw {
background: url('~@/assets/home/rhfw_square.png') no-repeat; background: url('~@/assets/home/rhfw_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.jcss { .jcss {
background: url('~@/assets/home/sxt_square.png') no-repeat; background: url('~@/assets/home/sxt_square.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 10px 0 0; margin: 0 10px 0 0;
.header-right { .header-right {
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: #212121; color: #212121;
span { span {
font-size: 14px; font-size: 14px;
color: #212121; color: #212121;
} }
div { div {
margin-right: 24px; margin-right: 24px;
} }
.label-content { .label-content {
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
.label { .label {
padding: 0.01rem 0.1rem; padding: 0.01rem 0.1rem;
margin-right: 0.1rem; margin-right: 0.1rem;
@ -969,17 +905,20 @@
} }
} }
} }
.header-right:last-child { .header-right:last-child {
div { div {
margin-right: 16px; margin-right: 16px;
} }
} }
span { span {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
// color: #0087ff; // color: #0087ff;
} }
} }
.dec { .dec {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -987,12 +926,14 @@
color: #0058e1; color: #0058e1;
display: flex; display: flex;
margin-top: 10px; margin-top: 10px;
div { div {
margin-right: 10px; margin-right: 10px;
background: rgba(0, 88, 225, 0.1); background: rgba(0, 88, 225, 0.1);
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
} }
div:nth-child(2) { div:nth-child(2) {
max-width: 200px; max-width: 200px;
display: -webkit-box; display: -webkit-box;
@ -1007,11 +948,13 @@
word-break: break-all; word-break: break-all;
} }
} }
.btn { .btn {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
margin: 5px 0; margin: 5px 0;
// .left { // .left {
// width: 600px; // width: 600px;
// display: flex; // display: flex;
@ -1031,6 +974,7 @@
justify-content: flex-end; justify-content: flex-end;
margin: 0 10px; margin: 0 10px;
align-items: center; align-items: center;
.shopping { .shopping {
span { span {
display: inline-block; display: inline-block;
@ -1039,14 +983,17 @@
margin-right: 10px; margin-right: 10px;
margin-top: 5px; margin-top: 5px;
} }
.shopping-on { .shopping-on {
background: url('~@/assets/newHome/shopping-on.png'); background: url('~@/assets/newHome/shopping-on.png');
cursor: pointer; cursor: pointer;
} }
.shopping-down { .shopping-down {
background: url('~@/assets/newHome/shopping-down.png'); background: url('~@/assets/newHome/shopping-down.png');
} }
} }
.pk-on { .pk-on {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
@ -1057,17 +1004,20 @@
background: url('~@/assets/newHome/pk-on.png'); background: url('~@/assets/newHome/pk-on.png');
cursor: pointer; cursor: pointer;
} }
.sc { .sc {
// margin-top: 4px; // margin-top: 4px;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
.sc-down { .sc-down {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
width: 32px; width: 32px;
background: url('~@/assets/newHome/sc-down.png'); background: url('~@/assets/newHome/sc-down.png');
} }
.sc-on { .sc-on {
display: inline-block; display: inline-block;
height: 32px; height: 32px;
@ -1075,6 +1025,7 @@
background: url('~@/assets/newHome/sc-on.png'); background: url('~@/assets/newHome/sc-on.png');
} }
} }
.ant-btn { .ant-btn {
background: transparent; background: transparent;
background: #0058e1; background: #0058e1;
@ -1089,31 +1040,38 @@
justify-content: center; justify-content: center;
margin-left: 10px; margin-left: 10px;
} }
.ant-btn:last-child { .ant-btn:last-child {
background: #0058e1; background: #0058e1;
color: white; color: white;
} }
} }
} }
.bottom { .bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
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;
} }
} }
.pingfen { .pingfen {
:deep(span) { :deep(span) {
display: flex; display: flex;
align-items: center; align-items: center;
:deep(ul) { :deep(ul) {
display: flex; display: flex;
align-items: center; align-items: center;
:deep(.ant-rate-star:not(:last-child)) { :deep(.ant-rate-star:not(:last-child)) {
margin-right: 4px; margin-right: 4px;
} }
@ -1122,12 +1080,14 @@
} }
} }
} }
.item:nth-of-type(1) { .item:nth-of-type(1) {
margin-top: 0; margin-top: 0;
} }
} }
} }
.description {
.description {
max-width: 990px; max-width: 990px;
height: 52px; height: 52px;
font-size: 14px; font-size: 14px;
@ -1141,5 +1101,5 @@
/*超出显示为省略号*/ /*超出显示为省略号*/
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
word-break: break-all; word-break: break-all;
} }
</style> </style>

View File

@ -447,7 +447,7 @@
pageSize: mapSearchParam.value.pageSize, pageSize: mapSearchParam.value.pageSize,
name: mapSearchParam.value.cameraName || '', name: mapSearchParam.value.cameraName || '',
longitude: mapSearchParam.value.gpsX || '', longitude: mapSearchParam.value.gpsX || '',
atitude: mapSearchParam.value.gpsY || '', latitude: mapSearchParam.value.gpsY || '',
radius: mapSearchParam.value.radius || '', radius: mapSearchParam.value.radius || '',
} }
let paramsFather = '' let paramsFather = ''

View File

@ -5,11 +5,7 @@
<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"
:key="index"
class="tabAll"
@click="changeCards(index)"
:class="{ sel: index == number }"> :class="{ sel: index == number }">
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</div> </div>
@ -17,44 +13,20 @@
<div class="resultListSearchInput-father"> <div class="resultListSearchInput-father">
<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="getAppResources" @change="onSearch" class="resultListSearchInput" />
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
<button class="button-reset" @click="chongzhi()">重置</button> <button class="button-reset" @click="chongzhi()">重置</button>
<div class="hengxian"></div> <div class="hengxian"></div>
</div> </div>
</div> </div>
<searchResultList <searchResultList v-show="resourceList.data && resourceList.data.length > 0" :key="listKey2"
v-show="resourceList.data && resourceList.data.length > 0" :resourceList="resourceList" :resourceTotal="resourceTotal" :selectCardsname="number == 0 ? '融合服务' : '赋能场景'" />
:key="listKey2"
:resourceList="resourceList"
:resourceTotal="resourceTotal"
selectCardsname="融合服务"
/>
<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 :total="resourceTotal"
v-model:current="currentPage" :page-size-options="pageSizeOptions" @change="pageChange" @showSizeChange="onShowSizeChange" />
v-model:pageSize="currentPageSize"
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>
@ -62,17 +34,17 @@
<home-footer></home-footer> <home-footer></home-footer>
</template> </template>
<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, watch } 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'
import searchResultList from '@/views/home/components/searchResultList.vue' import searchResultList from '@/views/home/components/searchResultList.vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
export default defineComponent({ export default defineComponent({
setup() { setup() {
// //
const loading = ref(true) const loading = ref(true)
@ -256,10 +228,10 @@
mybus.off('refresh') mybus.off('refresh')
mybus.off('changePage') mybus.off('changePage')
}, },
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.resultListSearchInput-father { .resultListSearchInput-father {
background: #f3f5f9; background: #f3f5f9;
padding: 0.2rem; padding: 0.2rem;
@ -276,9 +248,9 @@
margin-top: 0.2rem; margin-top: 0.2rem;
} }
} }
} }
.resultListSearchInput { .resultListSearchInput {
margin-left: 0.1rem; margin-left: 0.1rem;
:deep(.ant-input) { :deep(.ant-input) {
@ -303,9 +275,9 @@
:deep(.ant-input-group-addon) { :deep(.ant-input-group-addon) {
left: 0 !important; left: 0 !important;
} }
} }
.button-reset { .button-reset {
border: 0; border: 0;
outline: none; outline: none;
width: 0.8rem; width: 0.8rem;
@ -318,9 +290,9 @@
line-height: 0.34rem; line-height: 0.34rem;
margin-left: 2.5rem; margin-left: 2.5rem;
cursor: pointer; cursor: pointer;
} }
.details-pageconetent { .details-pageconetent {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
@ -359,16 +331,19 @@
.top-title { .top-title {
padding: 0.2rem; padding: 0.2rem;
display: flex; display: flex;
font-size: 22px; font-size: 18px;
.tabAll { .tabAll {
font-size: 22px; font-size: 18px;
color: #000000; color: #000000;
margin-right: 35px; margin-right: 35px;
cursor: pointer; cursor: pointer;
} }
.tabAll:nth-child(1) { .tabAll:nth-child(1) {
margin-left: 20px; margin-left: 20px;
} }
.sel { .sel {
font-weight: 600; font-weight: 600;
color: #0087ff; color: #0087ff;
@ -376,13 +351,13 @@
} }
} }
} }
} }
:deep(.ant-card-grid) { :deep(.ant-card-grid) {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
word-break: break-all; word-break: break-all;
} }
</style> </style>

View File

@ -23,13 +23,44 @@
</div> </div>
</div> </div>
<!-- 组合能力 --> <!-- 场景痛点 -->
<div
id="integration-pain-point"
class="pain-point scrollBox"
>
<div class="title-1">
<DetalsTitle title="场景痛点" type="PAIN POINT"></DetalsTitle>
</div>
<div class="flex-row-center">
<div class="bg"></div>
<div class="content">
<div class="content-item" v-for="(item, i) in painPoint" :key="i">{{i+1}}.{{item.description}}</div>
</div>
</div>
</div>
<!-- 解决方案 -->
<div
id="integration-solution"
class="solution scrollBox"
>
<div class="title-1">
<DetalsTitle title="解决方案" type="SOLUTION"></DetalsTitle>
</div>
<div class="flex-row-center">
<div class="content">
<div class="content-item" v-for="(item, i) in solution" :key="i">{{i+1}}.{{item.description}}</div>
</div>
</div>
</div>
<!-- 使用能力 -->
<div <div
id="integration-combination-ability" id="integration-combination-ability"
class="combination-ability scrollBox" class="combination-ability scrollBox"
> >
<div class="title-1"> <div class="title-1">
<DetalsTitle title="组合能力" type="COMBINATION ABILITY"></DetalsTitle> <DetalsTitle title="使用能力" type="COMBINATION ABILITY"></DetalsTitle>
</div> </div>
<div class="flex-row-center combine-content"> <div class="flex-row-center combine-content">
<div class="combine-item" v-for="(item, i) in combineList" :key="i"> <div class="combine-item" v-for="(item, i) in combineList" :key="i">
@ -43,47 +74,22 @@
</div> </div>
</div> </div>
<!-- 使用方式 --> <!-- 构建步骤 -->
<div id="integration-use-way" class="use-way scrollBox"> <div
id="integration-step"
class="step scrollBox"
>
<div class="title-1"> <div class="title-1">
<DetalsTitle title="使用方式" type="USE WAY"></DetalsTitle> <DetalsTitle title="构建步骤" type="STEP"></DetalsTitle>
</div> </div>
<div class="content"> <div class="flex-row-center">
<div class="content-card flex-row-between left word-bg"> <div style="height: 300px;">
<div class="content-card-item left-item"> <el-steps direction="vertical" :active="step.length">
<div class="card-title">文档</div> <el-step v-for="(item, i) in step" :key="i" :title="item.question" :description="item.answer"></el-step>
<!-- <div class="card-text">文档描述文档描述文档描述文档描述</div> --> </el-steps>
</div>
<div class="content-card-item btn-box">
<div class="btn" @click="handleOpenUrl('技术文档')">技术文档</div>
<div class="btn" @click="handleOpenUrl('使用手册')">使用手册</div>
</div>
</div>
<div class="content-card flex-row-start">
<div
class="right-item content-card-item"
v-for="(use, i) in useWayShowList"
:key="i"
>
<div class="card-title title">{{ use.title }}</div>
<div
class="card-text"
v-for="(d, k) in Object.keys(use.info)"
:key="k"
>
{{ use.info[d] }}:{{ detailInfoObj[d] || '--' }}
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<!-- 常见问题-->
<application-common-problem
:dataList="detailInfoObj"
id="common-problem"
class="scrollBox"
></application-common-problem>
<home-footer></home-footer> <home-footer></home-footer>
</div> </div>
@ -102,6 +108,9 @@
const router = useRouter() const router = useRouter()
const scrollTop = ref(0) const scrollTop = ref(0)
const domArr = ref([]) const domArr = ref([])
const painPoint = ref([])
const solution = ref([])
const step=ref([])
const id = router.currentRoute.value.query.id const id = router.currentRoute.value.query.id
document.documentElement.style.transition = 'all 0.3s ease' document.documentElement.style.transition = 'all 0.3s ease'
document.documentElement.scrollTop = 0 document.documentElement.scrollTop = 0
@ -117,20 +126,24 @@
const navList = ref([ const navList = ref([
{ {
name: '组合能力', name: '场景痛点',
key: 'integration-pain-point',
},
{
name: '解决方案',
key: 'integration-solution',
},
{
name: '使用能力',
key: 'integration-combination-ability', key: 'integration-combination-ability',
}, },
{ {
name: '使用方式', name: '构建步骤',
key: 'integration-use-way', key: 'integration-step',
},
{
name: '常见问题',
key: 'common-problem',
}, },
]) ])
const selectNow = ref('integration-combination-ability') const selectNow = ref('integration-pain-point')
const useWayShowList = ref([ const useWayShowList = ref([
{ {
@ -214,9 +227,12 @@
attrType: '常见问题', attrType: '常见问题',
attrValue: questionValue.attrValue || '[]', 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 = { let areaObj = {
attrType: '应用领域', attrType: '应用领域',
attrValue: detailInfoObj.value.applicationArea, attrValue: fuseAttrList.find((v) => v.attrType === '应用领域').attrValue,
} }
combineList.value.map((item) => { combineList.value.map((item) => {
let arr = ( 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 { .combination-ability {
padding: 0.8rem 0; padding: 0.8rem 0;
background: rgb(247, 248, 250); background: rgb(247, 248, 250);

View File

@ -0,0 +1,153 @@
<template>
<!-- 青岛 -->
<div class="details-pageconetent">
<home-header></home-header>
<div></div>
<home-footer></home-footer>
</div>
</template>
<script setup>
import HomeFooter from '@/views/newHome/components/Footer'
import mybus from '@/myplugins/mybus'
import { defineComponent, reactive, ref, toRefs, onMounted, watch } from 'vue'
import { getIntegrationServicesList } from '@/api/home.js'
import { useRouter } from 'vue-router'
import HomeHeader from '@/views/home/components/header'
import searchResultList from '@/views/home/components/searchResultList.vue'
import { message } from 'ant-design-vue'
</script>
<style lang="less" scoped>
.resultListSearchInput-father {
background: #f3f5f9;
padding: 0.2rem;
// padding-left: 0.2rem;
// padding-top: 0.2rem;
.resultListSearchInput-son {
background: #fff;
padding: 0.2rem 0.2rem 0rem 0.3rem;
.hengxian {
width: 100%;
height: 0.01rem;
background: rgba(150, 144, 144, 0.3);
margin-top: 0.2rem;
}
}
}
.resultListSearchInput {
margin-left: 0.1rem;
:deep(.ant-input) {
width: 4rem;
height: 0.36rem;
background: #fff;
border-radius: 0.04rem;
}
:deep(.ant-input-search-button) {
width: 0.8rem;
height: 0.36rem;
background: #0087ff;
border-radius: 0.04rem !important;
font-size: 0.14rem;
font-weight: 400;
color: #fff;
line-height: 0.34rem;
margin-left: 0.1rem;
}
:deep(.ant-input-group-addon) {
left: 0 !important;
}
}
.button-reset {
border: 0;
outline: none;
width: 0.8rem;
height: 0.36rem;
background: #e1edfa;
border-radius: 0.04rem;
font-size: 0.14rem;
font-weight: 400;
color: #0087ff;
line-height: 0.34rem;
margin-left: 2.5rem;
cursor: pointer;
}
.details-pageconetent {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 0.67rem;
position: relative;
background: rgba(245, 243, 243, 0.3);
.details-pageconetent-left {
max-height: 6.9rem;
position: absolute;
width: 2.5rem;
top: 0.17rem;
left: 2.5rem;
margin-right: 0.17rem;
overflow: auto;
}
.top {
min-height: 7.2rem;
position: relative;
width: 11.5rem;
display: flex;
padding-top: 0.2rem;
flex-direction: column;
font-size: 0.16rem;
justify-content: left;
background: #f3f5f9;
.pagination {
background: #f3f5f9;
padding-bottom: 0.6rem;
}
.top-title {
padding: 0.2rem;
display: flex;
font-size: 18px;
.tabAll {
font-size: 18px;
color: #000000;
margin-right: 35px;
cursor: pointer;
}
.tabAll:nth-child(1) {
margin-left: 20px;
}
.sel {
font-weight: 600;
color: #0087ff;
border-bottom: 0.02rem solid #0087ff;
}
}
}
}
:deep(.ant-card-grid) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
word-break: break-all;
}
</style>

View File

@ -224,7 +224,7 @@
pageSize: this.mapSearchParam.pageSize, pageSize: this.mapSearchParam.pageSize,
name: this.mapSearchParam.cameraName || '', name: this.mapSearchParam.cameraName || '',
longitude: this.mapSearchParam.gpsX || '', longitude: this.mapSearchParam.gpsX || '',
atitude: this.mapSearchParam.gpsY || '', latitude: this.mapSearchParam.gpsY || '',
radius: this.mapSearchParam.radius || '', radius: this.mapSearchParam.radius || '',
} }
let paramsFather = '' let paramsFather = ''