去除上报/退回校验

main
吕天方 3 months ago
parent 94f65e35a0
commit 299a202c0e

@ -1,7 +1,7 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
// baseUrl: 'https://vue.ruoyi.vip/prod-api', // baseUrl: 'http://192.168.0.109:9102',
baseUrl: 'http://localhost:9002/api', baseUrl: location.origin, // 'http://202.102.20.34:9002'
// 应用信息 // 应用信息
appInfo: { appInfo: {
// 应用名称 // 应用名称

@ -87,6 +87,7 @@
</u-tabbar-item> </u-tabbar-item>
</u-tabbar> </u-tabbar>
</scroll-view> </scroll-view>
<!-- <audio id="myAudio" src="../static/dingdong.mp3" preload="auto" style="display: none;"></audio> -->
</view> </view>
</template> </template>
@ -125,14 +126,16 @@
lable: 2, lable: 2,
} }
}, { },
name: '审核通过', // {
badge: { // name: '',
value: 0, // badge: {
lable: 3, // value: 0,
} // lable: 3,
// }
}, ], // },
],
massEventsObj: { massEventsObj: {
msgType: "1", //12345 msgType: "1", //12345
isReport: null, // 2 3 isReport: null, // 2 3
@ -153,6 +156,19 @@
}, { }, {
count: 0 count: 0
}, ], }, ],
msgTypecountTwo: [{
count: 0
}, {
count: 0
}, {
count: 0
}, {
count: 0
}, {
count: 0
}, ],
innerAudioContext:null,
Time:null,
} }
}, },
@ -164,6 +180,10 @@
this.massEventsObj.current = 1 this.massEventsObj.current = 1
this.massEventsObj.title = "" this.massEventsObj.title = ""
this.getList() this.getList()
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
// console.log(e); // console.log(e);
}, },
// //
@ -182,6 +202,10 @@
//navbarValue //navbarValue
//tabscurrent 0, 1 2 //tabscurrent 0, 1 2
// item // item
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
uni.navigateTo({ uni.navigateTo({
url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}` url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}`
}) })
@ -203,7 +227,11 @@
this.tabscurrent = 0 this.tabscurrent = 0
this.geteventPageCount() this.geteventPageCount()
await this.getList(); await this.getList();
this.goTop() this.goTop();
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
}, },
scroll(e) { scroll(e) {
//scroll //scroll
@ -262,16 +290,40 @@
// console.log(res); // console.log(res);
this.list1[0].badge.value = res.data this.list1[0].badge.value = res.data
}) })
fiveEventCount().then(res => { fiveEventCount().then(res => {
this.msgTypecount = res.data this.msgTypecount = [...res.data]
this.msgTypecount = this.msgTypecount.sort((a, b) => { this.msgTypecount = this.msgTypecount.sort((a, b) => {
return a.msgType - b.msgType; return a.msgType - b.msgType;
}); });
this.isDingdong()
}) })
},
isDingdong(){
if(this.msgTypecountTwo[0].count == 0) {
this.msgTypecountTwo = [...this.msgTypecount]
this.msgTypecountTwo = this.msgTypecountTwo.sort((a, b) => {
return a.msgType - b.msgType;
});
} else {
console.log(this.msgTypecountTwo,"msgTypecountTwo");
console.log(this.msgTypecount,"msgTypecount");
// const isDD = this.msgTypecount.some((obj1, index) => obj1.count !== this.msgTypecountTwo[index].count)
let arr = []
for (let i = 0; i < this.msgTypecount.length; i++) {
if (this.msgTypecount[i].count > this.msgTypecountTwo[i].count) {
arr.push({index:i})
} }
}
if(arr.length > 0) {
this.msgTypecountTwo = [...this.msgTypecount]
this.msgTypecountTwo = this.msgTypecountTwo.sort((a, b) => {
return a.msgType - b.msgType;
});
this.innerAudioContext.play()
}
}
},
}, },
// onLoad: function() { // onLoad: function() {
@ -284,12 +336,25 @@
// }, // },
onShow() { onShow() {
login("admin","Suanfa@2024//**...").then(res=>{ login("admin","Suanfa@2024//**...").then(res=>{
setToken(res.token) setToken(res.token);
let src = require("../static/dingdong.mp3")
this.innerAudioContext = uni.createInnerAudioContext();
this.innerAudioContext.autoplay = true;
this.innerAudioContext.src = require("../static/dingdong.mp3");
this.getList() this.getList()
this.geteventPageCount() this.geteventPageCount()
this.$store.dispatch("Deletestate") this.$store.dispatch("Deletestate")
}) })
},
beforeDestroy() {
//
if (this.innerAudioContext) {
this.innerAudioContext.destroy();
} }
if(this.Time) {
clearInterval(this.Time)
}
},
} }
</script> </script>

Binary file not shown.

@ -110,20 +110,21 @@
</view> </view>
<view class="dibuaBtn" v-show="tabscurrentShow"> <view class="dibuaBtn" v-show="tabscurrentShow">
<view class="dibuaBtn-lanse" @click="Chongxinshangbao(1)" <view class="dibuaBtn-lanse" @click="Chongxinshangbao(1)"
:class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ? '' : 'jinyong'"> >
<!-- :class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ? '' : 'jinyong'" -->
<!-- {{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'重新上报驾驶舱':'重新上报驾驶舱'}} --> <!-- {{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'重新上报驾驶舱':'重新上报驾驶舱'}} -->
重新上报驾驶舱 重新上报驾驶舱
</view> </view>
<view class="dibuaBtn-hongse" @click="Chongxinshangbao(2)" <view class="dibuaBtn-hongse" @click="Chongxinshangbao(2)"
:class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ? '' : 'jinyong'"> >
<!-- :class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ? '' : 'jinyong'" -->
<!-- {{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'退回算法重训练':'退回算法重训练'}} --> <!-- {{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'退回算法重训练':'退回算法重训练'}} -->
退回算法重训练 退回算法重训练
</view> </view>
<view class="dibuaBtn-lvse" @click="Chongxinshangbao(3)" <!-- <view class="dibuaBtn-lvse" @click="Chongxinshangbao(3)"
:class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'jinyong':''"> :class="Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'jinyong':''">
<!-- {{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'审核通过':'审核通过'}} -->
审核通过 审核通过
</view> </view> -->
</view> </view>
<!-- 修改标题 --> <!-- 修改标题 -->
<u-modal :show="popupshow" :title="tabscurrentShow?'修改标题':'查看标题'" showCancelButton @cancel="close" <u-modal :show="popupshow" :title="tabscurrentShow?'修改标题':'查看标题'" showCancelButton @cancel="close"
@ -270,24 +271,24 @@
// 退 // 退
Chongxinshangbao(isReport) { Chongxinshangbao(isReport) {
// isReport 1: 2: 3: // isReport 1: 2: 3:
if (isReport == 3 && (this.Objitem.title != this.Objitem.oldTitle || this.$store.state.tijiaoList // if (isReport == 3 && (this.Objitem.title != this.Objitem.oldTitle || this.$store.state.tijiaoList
.shijianList.length != 0)) { // .shijianList.length != 0)) {
uni.showToast({ // uni.showToast({
title: "按钮已禁用!", // title: "!",
icon: 'none', // icon: 'none',
duration: 1000 // duration: 1000
}); // });
return // return
} // }
if (isReport != 3 && (this.Objitem.title == this.Objitem.oldTitle && this.$store.state.tijiaoList // if (isReport != 3 && (this.Objitem.title == this.Objitem.oldTitle && this.$store.state.tijiaoList
.shijianList.length == 0)) { // .shijianList.length == 0)) {
uni.showToast({ // uni.showToast({
title: "按钮已禁用!", // title: "!",
icon: 'none', // icon: 'none',
duration: 1000 // duration: 1000
}); // });
return // return
} // }
if (this.Objitem.msgTypeName == "紧急事件") { if (this.Objitem.msgTypeName == "紧急事件") {
let mykey = this.ObjitemTow.caseSerial let mykey = this.ObjitemTow.caseSerial
@ -295,14 +296,14 @@
} }
let obj = null; let obj = null;
if (isReport != 3) { if (isReport != 3) {
if (this.$store.state.tijiaoList.shijianList.length == 0) { // if (this.$store.state.tijiaoList.shijianList.length == 0) {
uni.showToast({ // uni.showToast({
title: "请选择工单上报!", // title: "!",
icon: 'none', // icon: 'none',
duration: 1000 // duration: 1000
}); // });
return // return
} // }
if (this.Objitem.title == this.Objitem.oldTitle) { if (this.Objitem.title == this.Objitem.oldTitle) {
obj = { obj = {
@ -474,7 +475,7 @@
height: 120rpx; height: 120rpx;
padding: 30rpx; padding: 30rpx;
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-column-gap: 20rpx; grid-column-gap: 20rpx;
color: #ffffff; color: #ffffff;
background-color: #ffffff; background-color: #ffffff;

Loading…
Cancel
Save