西海岸问题修复

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

View File

@ -1619,19 +1619,24 @@
}
// -西
const getXiHaiAn = (res) => {
;((res.data && res.data.data && res.data.data.list) || []).forEach(
(val) => {
val.id = val.serviceId // id
val.name = val.serviceName //
val.sjlCount = val.requestQuantity //
val.applyCount = val.requestCount //
val.deptName = val.departmentName //
val.createTime = val.createTime.split('.')[0]
val.createDate = val.createTime //
}
)
resourceList.data = res.data.data.list || []
resourceTotal.value = res.data.data.total || ''
debugger
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.name = val.serviceName //
val.sjlCount = val.requestQuantity //
val.applyCount = val.requestCount //
val.deptName = val.departmentName //
val.createTime = val.createTime.split('.')[0]
val.createDate = val.createTime //
})
console.log('接口数据', data)
resourceList.data = data || []
console.log('接口数据2', resourceList.data)
resourceTotal.value = total
console.log()
}
let shoppingCartList = ref([])
//

View File

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

View File

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