过滤限制增加防止报错 #252

Merged
xiaomeng merged 1 commits from pc-master into portal 2025-06-14 06:40:30 +00:00
2 changed files with 47 additions and 37 deletions

View File

@ -332,7 +332,7 @@ var iccidList=[]
data.forEach((el,index)=>{
if(this.validateIccid(el.iccid)){
this.api.qibenGeticcid(el).then(res=>{
if(res.data.code==200){
if(res.data.code==200&&res.data.data){
iccidList.push(res.data.data)
this.$store.state.iccidList=iccidList
if(res1.data.data&&res.data.data.expired){

View File

@ -654,11 +654,11 @@
</template>
<script>
import EZUIKit from 'ezuikit-js';
// import EZUIKit from 'ezuikit-js';
import { getnowtime } from '../../assets/js/nowTime'
import { realTimeLine, statusCharts } from '@/assets/js/charts'
import videojs from 'video.js';
import video_zhCN from 'video.js/dist/lang/zh-CN.json'
// import videojs from 'video.js';
// import video_zhCN from 'video.js/dist/lang/zh-CN.json'
import vueSeamless from 'vue-seamless-scroll'
export default {
@ -798,12 +798,22 @@ export default {
},
methods: {
getPackageTime(){
var item= this.$store.state.iccidList.find(item=>item.iccid==this.$store.state.equipmentList[this.indexs - 1].iccidcode)
var item= this.$store.state.iccidList.find(item=>{
if(item){
item.iccid==this.$store.state.equipmentList[this.indexs - 1].iccidcode
}
})
return item? item.packageTime:'无数据'
},
getPackageTimeColor(){
var item= this.$store.state.iccidList.find(item=>item.iccid==this.$store.state.equipmentList[this.indexs - 1].iccidcode)
var item= this.$store.state.iccidList.find(item=>{
if(item){
item.iccid==this.$store.state.equipmentList[this.indexs - 1].iccidcode
}
})
return item? item.expired:false
},
@ -929,24 +939,24 @@ export default {
padString(str, length) {
return str.padStart(length, '0');
},
createVideoNew(accessToken) {
// divWdivH 使div
let divW = this.$refs.monitor.clientWidth
let divH = this.$refs.monitor.clientHeight
this.player = new EZUIKit.EZUIKitPlayer({
id: 'video-js', // ID
accessToken: accessToken,
url: this.url,
// urlezopen://open.ys7.com/G39444019/1.live .live GitHub
// simple-; standard-; security-; voice-; GitHub
template: 'security',
useHardDev: true,// 7.7.x 2023.11.7 7.7.6
plugin: ["talk"], // talk-
width: divW, // 1920 px
height: divH, // 1080 px
})
// createVideoNew(accessToken) {
// // divWdivH 使div
// let divW = this.$refs.monitor.clientWidth
// let divH = this.$refs.monitor.clientHeight
// this.player = new EZUIKit.EZUIKitPlayer({
// id: 'video-js', // ID
// accessToken: accessToken,
// url: this.url,
// // urlezopen://open.ys7.com/G39444019/1.live .live GitHub
// // simple-; standard-; security-; voice-; GitHub
// template: 'security',
// useHardDev: true,// 7.7.x 2023.11.7 7.7.6
// plugin: ["talk"], // talk-
// width: divW, // 1920 px
// height: divH, // 1080 px
// })
},
// },
getIcon(item) {
var index = item.index
if (item.type == 3) {
@ -1047,21 +1057,21 @@ export default {
}
}
},
createVideo() {
// createVideo() {
//
videojs.addLanguage('zh-CN', video_zhCN)
this.player = videojs(this.$refs.videoPlayer, {
techOrder: ['html5', 'hls'], // 使HTML5使HLS
sources: [{
src: this.url, // .m3u8
type: 'application/x-mpegURL'
}],
autoplay: true, //
controls: true, //
language: 'zh-CN'
});
},
// //
// videojs.addLanguage('zh-CN', video_zhCN)
// this.player = videojs(this.$refs.videoPlayer, {
// techOrder: ['html5', 'hls'], // 使HTML5使HLS
// sources: [{
// src: this.url, // .m3u8
// type: 'application/x-mpegURL'
// }],
// autoplay: true, //
// controls: true, //
// language: 'zh-CN'
// });
// },
countData100(data) {
var num = 0
if (data) {