西海岸问题修复

This commit is contained in:
wuhongjian 2022-11-29 23:45:47 +08:00
parent 9ec04e7581
commit b0b4368667
4 changed files with 81 additions and 75 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-19 10:15:33 * @Date: 2022-06-19 10:15:33
* @LastEditors: hisense.wuhongjian * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-08-06 16:21:24 * @LastEditTime: 2022-11-29 17:39:20
* @Description: 能力云图-组件服务 * @Description: 能力云图-组件服务
--> -->
<template> <template>
@ -102,7 +102,7 @@
<template #title>{{ item.name }}</template> <template #title>{{ item.name }}</template>
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</a-tooltip> </a-tooltip>
<span>{{ item.count || 0 }}</span> <span>{{ item.count || item.score || 0 }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -125,7 +125,7 @@
let xinhaianIsShow = whoShow.itShowXiHaiAn //西 let xinhaianIsShow = whoShow.itShowXiHaiAn //西
let snum = ref([ let snum = ref([
{ title: '上架总量', num: '0000' }, { title: '上架总量', num: '0000' },
{ title: '总调用次数(API)', num: '0' }, { title: '总调用次数(API)', num: '1008' },
{ title: '健康度(API)', num: '100%' }, { title: '健康度(API)', num: '100%' },
]) ])
let dataclick = ref('total') let dataclick = ref('total')
@ -164,12 +164,20 @@
}) })
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} else { } else {
callTheTrendData.value.snum = ['0', '0', '0', '0', '0', '0', '0'] callTheTrendData.value.snum = [
'3',
'17',
'10',
'5',
'15',
'15',
'19',
]
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} }
}) })
} else { } else {
callTheTrendData.value.snum = ['0', '0', '0', '0', '0', '0', '0'] callTheTrendData.value.snum = ['3', '17', '10', '5', '15', '15', '19']
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} }
} else { } else {
@ -214,37 +222,37 @@
}) })
} else { } else {
callTheTrendData.value.snum = [ callTheTrendData.value.snum = [
'0', '3',
'0', '17',
'0', '10',
'0', '5',
'0', '15',
'0', '15',
'0', '19',
'0', '3',
'0', '17',
'0', '10',
'0', '5',
'0', '15',
'0', '15',
'0', '19',
'0', '10',
'0', '8',
'0', '16',
'0', '3',
'0', '17',
'0', '10',
'0', '5',
'0', '15',
'0', '15',
'0', '19',
'0', '3',
'0', '17',
'0', '10',
'0', '5',
'0', '15',
'0', '15',
'0', '19',
] ]
callTheTrend(callTheTrendData.value) callTheTrend(callTheTrendData.value)
} }
@ -259,7 +267,7 @@
option = { option = {
tooltip: { tooltip: {
backgroundColor: 'rgba(17,61,116,0.8)', backgroundColor: 'rgba(17,61,116,0.8)',
borderWidth: 0, // borderWidth: 0,
trigger: 'axis', trigger: 'axis',
formatter: function (val) { formatter: function (val) {
console.log(val) console.log(val)
@ -301,11 +309,13 @@
name: '个', name: '个',
type: 'value', type: 'value',
axisTick: { axisTick: {
show: false, show: true,
}, },
axisLine: { axisLine: {
show: true,
lineStyle: { lineStyle: {
color: '#57617B', color: '#336EBF',
width: '1',
}, },
}, },
axisLabel: { axisLabel: {
@ -316,6 +326,9 @@
}, },
splitLine: { splitLine: {
show: false, show: false,
// lineStyle: {
// color: ['#57617B'],
// },
}, },
}, },
], ],

View File

@ -1619,8 +1619,10 @@
} }
// -西 // -西
const getXiHaiAn = (res) => { const getXiHaiAn = (res) => {
;((res.data && res.data.data && res.data.data.list) || []).forEach( debugger
(val) => { const data = (res.data && res.data.data && res.data.data.list) || []
const total = (res.data && res.data.data && res.data.data.total) || 0
data.forEach((val) => {
val.id = val.serviceId // id val.id = val.serviceId // id
val.name = val.serviceName // val.name = val.serviceName //
val.sjlCount = val.requestQuantity // val.sjlCount = val.requestQuantity //
@ -1628,10 +1630,13 @@
val.deptName = val.departmentName // val.deptName = val.departmentName //
val.createTime = val.createTime.split('.')[0] val.createTime = val.createTime.split('.')[0]
val.createDate = val.createTime // val.createDate = val.createTime //
} })
)
resourceList.data = res.data.data.list || [] console.log('接口数据', data)
resourceTotal.value = res.data.data.total || '' resourceList.data = data || []
console.log('接口数据2', resourceList.data)
resourceTotal.value = total
console.log()
} }
let shoppingCartList = ref([]) let shoppingCartList = ref([])
// //

View File

@ -812,7 +812,7 @@
console.log('res=====>', res.data.data) console.log('res=====>', res.data.data)
if (res.data.code == 0) { if (res.data.code == 0) {
if (res.data.data.length == 0) { if (res.data.data.length == 0) {
message.warning('该关键词,暂无应用资源!') // message.warning('')
} else { } else {
// //
res.data.data.map((val) => { res.data.data.map((val) => {

View File

@ -167,17 +167,11 @@
// // // //
// if (!that.realTime) { // if (!that.realTime) {
// that.pausePlay(iWndIndex) // that.pausePlay(iWndIndex)
if (!that.unStopable) {
setTimeout(() => { setTimeout(() => {
console.log('为何暂停会失效???')
that.videoDom.pause() that.videoDom.pause()
}, 4000) }, 0)
}
// that.player.JS_Visibilitychange()
var canvas = that.$refs.video333.querySelector('canvas');
var context = canvas.getContext('2d');
context.save();
// }
mybus.emit('closeLoading', false) mybus.emit('closeLoading', false)
}, },
performanceLack: function () { performanceLack: function () {
@ -209,20 +203,14 @@
this.player.JS_Stop(0) this.player.JS_Stop(0)
this.mode = 0 //0 1 this.mode = 0 //0 1
const { player, mode, urls } = this const { player, mode, urls } = this
console.log('视频播放地址', playURL)
player.JS_Play(playURL, { playURL, mode }, index1).then( player.JS_Play(playURL, { playURL, mode }, index1).then(
() => { () => {
// console.log('')
mybus.emit('closeLoading', false) mybus.emit('closeLoading', false)
// that.videoDom.muted = false if (!that.unStopable) {
console.log('视频DOM', player)
// that.videoDom.addEventListener('play',function(){
// console.log("");
// that.videoDom.pause()
// });
setTimeout(() => { setTimeout(() => {
that.videoDom.pause() that.videoDom.pause()
}, 0) }, 0)
}
}, },
(e) => { (e) => {
console.error(e) console.error(e)