去除上报/退回校验

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

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

@ -87,6 +87,7 @@
</u-tabbar-item>
</u-tabbar>
</scroll-view>
<!-- <audio id="myAudio" src="../static/dingdong.mp3" preload="auto" style="display: none;"></audio> -->
</view>
</template>
@ -125,14 +126,16 @@
lable: 2,
}
}, {
name: '审核通过',
badge: {
value: 0,
lable: 3,
}
},
// {
// name: '',
// badge: {
// value: 0,
// lable: 3,
// }
}, ],
// },
],
massEventsObj: {
msgType: "1", //12345
isReport: null, // 2 3
@ -153,6 +156,19 @@
}, {
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.title = ""
this.getList()
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
// console.log(e);
},
//
@ -182,6 +202,10 @@
//navbarValue
//tabscurrent 0, 1 2
// item
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
uni.navigateTo({
url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}`
})
@ -203,7 +227,11 @@
this.tabscurrent = 0
this.geteventPageCount()
await this.getList();
this.goTop()
this.goTop();
clearInterval(this.Time)
this.Time = setInterval(()=>{
this.geteventPageCount()
},5000)
},
scroll(e) {
//scroll
@ -262,16 +290,40 @@
// console.log(res);
this.list1[0].badge.value = res.data
})
fiveEventCount().then(res => {
this.msgTypecount = res.data
this.msgTypecount = [...res.data]
this.msgTypecount = this.msgTypecount.sort((a, b) => {
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() {
@ -284,12 +336,25 @@
// },
onShow() {
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.geteventPageCount()
this.$store.dispatch("Deletestate")
})
},
beforeDestroy() {
//
if (this.innerAudioContext) {
this.innerAudioContext.destroy();
}
if(this.Time) {
clearInterval(this.Time)
}
},
}
</script>

Binary file not shown.

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

Loading…
Cancel
Save