|
|
|
@ -11,7 +11,8 @@
|
|
|
|
|
<view class="indexcontentbttom-item-text">
|
|
|
|
|
{{Objitem.title}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-top-icon" v-if="tabscurrentShow || (!tabscurrentShow && Objitem.titleBefore)" @click="biaotishow">
|
|
|
|
|
<view class="indexcontentbttom-item-top-icon"
|
|
|
|
|
v-if="tabscurrentShow || (!tabscurrentShow && Objitem.titleBefore)" @click="biaotishow">
|
|
|
|
|
<u-icon name="edit-pen" size="18" color="#4379D6" class="icon"></u-icon>
|
|
|
|
|
<view class="">
|
|
|
|
|
{{tabscurrentShow ? '修改标题' : '查看原标题' }}
|
|
|
|
@ -89,7 +90,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-bottom" v-show="tabscurrentShow ">
|
|
|
|
|
<view class="indexcontentbttom-item-bottom-left">
|
|
|
|
|
审核数量:
|
|
|
|
|
已标记:
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-bottom-rigth">
|
|
|
|
|
{{$store.state.tijiaoList.shijianList.length}}
|
|
|
|
@ -104,15 +105,21 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="LieBIaoList" :class="!tabscurrentShow ? 'lieBiaoListTwo':''">
|
|
|
|
|
<LieBIaoList ref="LieBIaoListis" ></LieBIaoList>
|
|
|
|
|
<view class="LieBIaoList" :class="!tabscurrentShow ? 'lieBiaoListTwo':''" v-if="navbarValue != '紧急事件'">
|
|
|
|
|
<LieBIaoList ref="LieBIaoListis"></LieBIaoList>
|
|
|
|
|
</view>
|
|
|
|
|
<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'">
|
|
|
|
|
{{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'重新上报驾驶舱':'已禁用'}}
|
|
|
|
|
</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'">
|
|
|
|
|
{{Objitem.title!=Objitem.oldTitle || $store.state.tijiaoList.shijianList.length!=0 ?'退回算法重训练':'已禁用'}}
|
|
|
|
|
</view>
|
|
|
|
|
<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>
|
|
|
|
|
<!-- 修改标题 -->
|
|
|
|
@ -189,16 +196,17 @@
|
|
|
|
|
if (this.tabscurrentShow) {
|
|
|
|
|
if (this.textareavalue2 != "" && this.textareavalue2 != this.Objitem.title) {
|
|
|
|
|
this.Objitem.title = this.textareavalue2
|
|
|
|
|
massEventsedit(this.Objitem).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.getByInnerEventIdmy()
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '修改成功',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.Objitem);
|
|
|
|
|
// massEventsedit(this.Objitem).then(res => {
|
|
|
|
|
// if (res.code == 200) {
|
|
|
|
|
// this.getByInnerEventIdmy()
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// title: '修改成功',
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
// duration: 1000
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
let title = ""
|
|
|
|
@ -234,47 +242,89 @@
|
|
|
|
|
this.listtotle = res.data.total
|
|
|
|
|
this.ObjitemTow = res.data.records[0]
|
|
|
|
|
})
|
|
|
|
|
this.$nextTick(res=>{
|
|
|
|
|
let obj ={
|
|
|
|
|
tabscurrent:this.tabscurrent,
|
|
|
|
|
innerEventId:this.innerEventId
|
|
|
|
|
this.$nextTick(res => {
|
|
|
|
|
let obj = {
|
|
|
|
|
tabscurrent: this.tabscurrent,
|
|
|
|
|
innerEventId: this.innerEventId
|
|
|
|
|
}
|
|
|
|
|
this.$refs.LieBIaoListis.open(obj)
|
|
|
|
|
// console.log(this.$refs.LieBIaoListis);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 获取详情
|
|
|
|
|
getByInnerEventIdmy() {
|
|
|
|
|
getByInnerEventId(this.innerEventId).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.Objitem = res.data
|
|
|
|
|
this.Objitem.oldTitle = res.data.title
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 退回或者提交
|
|
|
|
|
Chongxinshangbao(isReport) {
|
|
|
|
|
if (this.Objitem.msgTypeName == "紧急事件") {
|
|
|
|
|
let mykey = this.ObjitemTow.caseSerial
|
|
|
|
|
this.$store.state.tijiaoList.shijianList = [mykey]
|
|
|
|
|
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.$store.state.tijiaoList.shijianList.length == 0) {
|
|
|
|
|
if (isReport != 3 && (this.Objitem.title == this.Objitem.oldTitle && this.$store.state.tijiaoList
|
|
|
|
|
.shijianList.length == 0)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "请选择工单上报!",
|
|
|
|
|
title: "按钮已禁用!",
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.Objitem.msgTypeName == "紧急事件") {
|
|
|
|
|
let mykey = this.ObjitemTow.caseSerial
|
|
|
|
|
this.$store.state.tijiaoList.shijianList = [mykey]
|
|
|
|
|
}
|
|
|
|
|
let obj = null;
|
|
|
|
|
if (isReport != 3) {
|
|
|
|
|
if (this.$store.state.tijiaoList.shijianList.length == 0) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "请选择工单上报!",
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let obj = {
|
|
|
|
|
caseSerial: this.$store.state.tijiaoList.shijianList,
|
|
|
|
|
innerEventId: this.innerEventId,
|
|
|
|
|
isReport,
|
|
|
|
|
msgType: this.Objitem.msgType
|
|
|
|
|
if (this.Objitem.title == this.Objitem.oldTitle) {
|
|
|
|
|
obj = {
|
|
|
|
|
caseSerial: this.$store.state.tijiaoList.shijianList,
|
|
|
|
|
innerEventId: this.innerEventId,
|
|
|
|
|
isReport,
|
|
|
|
|
msgType: this.Objitem.msgType,
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
obj = {
|
|
|
|
|
caseSerial: this.$store.state.tijiaoList.shijianList,
|
|
|
|
|
innerEventId: this.innerEventId,
|
|
|
|
|
isReport,
|
|
|
|
|
msgType: this.Objitem.msgType,
|
|
|
|
|
newTitle: this.Objitem.title,
|
|
|
|
|
oldTitle: this.Objitem.oldTitle
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
obj = {
|
|
|
|
|
innerEventId: this.innerEventId,
|
|
|
|
|
isReport,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eventChangeIsReport(obj).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
let title = ""
|
|
|
|
@ -284,6 +334,10 @@
|
|
|
|
|
if (isReport == 2) {
|
|
|
|
|
title = "退回算法重训练成功"
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (isReport == 3) {
|
|
|
|
|
title = "审核通过"
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title,
|
|
|
|
@ -310,7 +364,7 @@
|
|
|
|
|
this.innerEventId = opcent.innerEventId
|
|
|
|
|
this.getByInnerEventIdmy()
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.getByInnerEventIdmy()
|
|
|
|
@ -328,6 +382,7 @@
|
|
|
|
|
.indexcontent-bottom {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
|
|
|
|
|
.indexcontentbttom-item {
|
|
|
|
@ -335,12 +390,13 @@
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #f7f7f7fa;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
margin: 10rpx 0;
|
|
|
|
|
|
|
|
|
|
.indexcontentbttom-item-top {
|
|
|
|
|
// display: grid;
|
|
|
|
|
// grid-template-columns: 75% 25%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.indexcontentbttom-item-text {
|
|
|
|
|
text-align: left;
|
|
|
|
|
font-weight: 500;
|
|
|
|
@ -368,7 +424,7 @@
|
|
|
|
|
.indexcontentbttom-item-bottom {
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 18% auto;
|
|
|
|
|
grid-template-columns: 20% 82%;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
font-size: 25rpx;
|
|
|
|
@ -412,7 +468,7 @@
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
|
grid-column-gap: 20rpx;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
@ -431,6 +487,15 @@
|
|
|
|
|
.dibuaBtn-hongse {
|
|
|
|
|
background-color: #E72C2C;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dibuaBtn-lvse {
|
|
|
|
|
background-color: #00c200;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.jinyong {
|
|
|
|
|
background-color: #444444;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -459,11 +524,12 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.LieBIaoList {
|
|
|
|
|
padding: 10rpx;
|
|
|
|
|
height: 49vh;
|
|
|
|
|
padding: 5rpx 10rpx;
|
|
|
|
|
height: 58vh;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #f7f7f7fa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lieBiaoListTwo {
|
|
|
|
|
height: 64vh;
|
|
|
|
|
}
|
|
|
|
|