You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

470 lines
12 KiB

2 months ago
<template>
<view class="indexcontent">
<u-navbar :leftText="'驾驶舱'+navbarValue+'审核'" :safeAreaInsetTop="false" @rightClick="rightClick" :autoBack="true"
:placeholder="true" leftIconColor="#ffffff">
</u-navbar>
<view class="indexcontent-box">
<view class="indexcontent-bottom">
2 months ago
<view class="indexcontentbttom-item">
2 months ago
<view class="indexcontentbttom-item-top">
<view class="indexcontentbttom-item-text">
2 months ago
{{Objitem.title}}
2 months ago
</view>
2 months ago
<view class="indexcontentbttom-item-top-icon" v-if="tabscurrentShow || (!tabscurrentShow && Objitem.titleBefore)" @click="biaotishow">
2 months ago
<u-icon name="edit-pen" size="18" color="#4379D6" class="icon"></u-icon>
<view class="">
2 months ago
{{tabscurrentShow ? '修改标题' : '查看原标题' }}
2 months ago
</view>
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
预警时间:
</view>
<view class="indexcontentbttom-item-bottom-rigth">
2 months ago
{{Objitem.eventTime}}
2 months ago
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
预警因素:
</view>
<view class="indexcontentbttom-item-bottom-rigth">
2 months ago
{{Objitem.warnFactor}}
2 months ago
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
预警类别:
</view>
<view class="indexcontentbttom-item-bottom-rigth leibie">
2 months ago
{{Objitem.msgTypeName}}
2 months ago
</view>
</view>
2 months ago
<view class="" v-show="Objitem.msgTypeName=='紧急事件'">
2 months ago
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
事件来源:
</view>
<view class="indexcontentbttom-item-bottom-rigth ">
{{Objitem.scenceName}}
</view>
2 months ago
</view>
2 months ago
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
案件类型:
</view>
<view class="indexcontentbttom-item-bottom-rigth ">
{{ObjitemTow.caseType}}
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
位置描述:
</view>
<view class="indexcontentbttom-item-bottom-rigth ">
{{ObjitemTow.caseAddress}}
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
诉求内容:
</view>
<view class="indexcontentbttom-item-bottom-rigth ">
{{ObjitemTow.caseContent}}
</view>
2 months ago
</view>
</view>
2 months ago
<view class="" v-show="Objitem.msgTypeName!='紧急事件'">
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
事件数量:
</view>
<view class="indexcontentbttom-item-bottom-rigth">
{{listtotle}}
</view>
</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}}
</view>
</view>
2 months ago
<!-- <view class="indexcontentbttom-item-bottom-bottom" @click="nextblack">
2 months ago
事件逐条审核{{"("+listtotle+")"}}
2 months ago
</view> -->
2 months ago
</view>
2 months ago
</view>
</view>
2 months ago
2 months ago
</view>
2 months ago
<view class="LieBIaoList" :class="!tabscurrentShow ? 'lieBiaoListTwo':''">
2 months ago
<LieBIaoList ref="LieBIaoListis" ></LieBIaoList>
</view>
2 months ago
<view class="dibuaBtn" v-show="tabscurrentShow">
<view class="dibuaBtn-lanse" @click="Chongxinshangbao(1)">
2 months ago
重新上报驾驶舱
</view>
2 months ago
<view class="dibuaBtn-hongse" @click="Chongxinshangbao(2)">
2 months ago
退回算法重训练
</view>
</view>
2 months ago
<!-- 修改标题 -->
<u-modal :show="popupshow" :title="tabscurrentShow?'修改标题':'查看标题'" showCancelButton @cancel="close"
@confirm="confirm">
<view class="slot-content">
<view class="popup-box" v-show="tabscurrentShow">
<u--textarea v-model="textareavalue2" placeholder="请输入内容" count
class="popup-box-textarea"></u--textarea>
</view>
<view class="lishi-box" v-show="!tabscurrentShow">
<view class="">
当前标题
</view>
<view class="lishi-box-jiacu">
2 months ago
{{Objitem.title}}
2 months ago
</view>
2 months ago
<view class="" v-show="Objitem.titleBefore">
2 months ago
历史标题
</view>
2 months ago
<view class="lishi-box-jiacu" v-show="Objitem.titleBefore">
{{Objitem.titleBefore}}
2 months ago
</view>
</view>
</view>
</u-modal>
<!-- <u-popup :show="popupshow" @close="close" @open="open" round="10" :closeable="true" mode="center">
</u-popup> -->
<!-- 查看标题 -->
2 months ago
</view>
</template>
<script>
2 months ago
import {
massEventsinfo,
getByInnerEventId,
massEventsedit,
eventChangeIsReport
} from '@/api/system/ApiList.js'
2 months ago
export default {
data() {
return {
navbarValue: "群体事件",
2 months ago
tabscurrent: 0,
popupshow: false,
textareavalue2: "",
innerEventId: "",
Objitem: {},
ObjitemTow: {},
listtotle: ""
2 months ago
}
},
2 months ago
computed: {
tabscurrentShow() {
return this.tabscurrent == 0
},
},
2 months ago
methods: {
// 跳转
nextblack(item) {
uni.navigateTo({
url: `/views/yemianxianqging/yemianxianqging?innerEventId=${this.innerEventId}&tabscurrent=${this.tabscurrent}&navbarValue=${this.navbarValue}`
2 months ago
})
},
2 months ago
// 查看修改标题
biaotishow(item) {
this.popupshow = true
this.textareavalue2 = this.Objitem.title
},
// 弹出层确定
confirm() {
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
});
}
})
} else {
let title = ""
if (this.textareavalue2 == "") {
title = "标题不能为空"
}
if (this.textareavalue2 == this.Objitem.title) {
title = "请修改标题后提交"
}
uni.showToast({
title,
icon: 'none',
duration: 1000
});
}
this.popupshow = false
} else {
//查看
this.popupshow = false
}
},
// 打开弹窗
close() {
this.popupshow = false
this.textareavalue2 = ""
// console.log('close');
},
// 获取个数
getList() {
massEventsinfo(this.innerEventId).then(res => {
this.listtotle = res.data.total
this.ObjitemTow = res.data.records[0]
})
2 months ago
this.$nextTick(res=>{
let obj ={
tabscurrent:this.tabscurrent,
innerEventId:this.innerEventId
}
this.$refs.LieBIaoListis.open(obj)
2 months ago
// console.log(this.$refs.LieBIaoListis);
2 months ago
})
2 months ago
},
// 获取详情
getByInnerEventIdmy() {
getByInnerEventId(this.innerEventId).then(res => {
if (res.code == 200) {
this.Objitem = res.data
}
2 months ago
2 months ago
})
},
// 退回或者提交
Chongxinshangbao(isReport) {
if (this.Objitem.msgTypeName == "紧急事件") {
let mykey = this.ObjitemTow.caseSerial
this.$store.state.tijiaoList.shijianList = [mykey]
}
if (this.$store.state.tijiaoList.shijianList.length == 0) {
2 months ago
uni.showToast({
title: "请选择工单上报!",
2 months ago
icon: 'none',
duration: 1000
});
return
}
2 months ago
2 months ago
let obj = {
2 months ago
caseSerial: this.$store.state.tijiaoList.shijianList,
2 months ago
innerEventId: this.innerEventId,
isReport,
msgType: this.Objitem.msgType
2 months ago
}
eventChangeIsReport(obj).then(res => {
if (res.code == 200) {
let title = ""
if (isReport == 1) {
title = "重新上报驾驶舱成功"
}
if (isReport == 2) {
title = "退回算法重训练成功"
}
uni.showToast({
title,
icon: 'none',
duration: 1000
});
this.$store.dispatch("Deletestate")
setTimeout(function() {
uni.navigateBack({
delta: 2
});
}, 1000);
}
})
}
2 months ago
},
2 months ago
2 months ago
onLoad: function(opcent) {
2 months ago
//navbarValue 区分事件类型
//tabscurrent 0已退回 1已提及 2重训练
2 months ago
this.navbarValue = opcent.navbarValue
2 months ago
this.tabscurrent = opcent.tabscurrent
this.innerEventId = opcent.innerEventId
this.getByInnerEventIdmy()
this.getList()
2 months ago
2 months ago
},
onShow() {
this.getByInnerEventIdmy()
this.getList()
2 months ago
}
}
</script>
<style lang="scss" scoped>
.indexcontent {
width: 100%;
height: 100%;
2 months ago
2 months ago
.indexcontent-box {
.indexcontent-bottom {
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
2 months ago
2 months ago
.indexcontentbttom-item {
padding: 25rpx;
width: 100%;
background: #f7f7f7fa;
border-radius: 10rpx;
margin: 20rpx 0;
.indexcontentbttom-item-top {
2 months ago
// display: grid;
// grid-template-columns: 75% 25%;
display: flex;
2 months ago
.indexcontentbttom-item-text {
text-align: left;
font-weight: 500;
font-size: 30rpx;
font-weight: bold;
color: #35393D;
overflow: hidden;
2 months ago
flex: 1;
2 months ago
}
.indexcontentbttom-item-top-icon {
2 months ago
height: 50rpx;
2 months ago
display: flex;
align-items: center;
justify-content: center;
font-size: 20rpx;
border-radius: 5rpx;
color: #4379D6;
background-color: #e5e3e8;
}
}
.indexcontentbttom-item-bottom {
margin: 20rpx 0;
display: grid;
grid-template-columns: 18% auto;
2 months ago
view {
2 months ago
font-size: 25rpx;
color: #35393D;
line-height: 30rpx;
}
2 months ago
.indexcontentbttom-item-bottom-left {
2 months ago
color: #595F66;
text-align: left;
}
2 months ago
.indexcontentbttom-item-bottom-rigth {
2 months ago
font-weight: bold;
}
2 months ago
.leibie {
2 months ago
color: #E72C2C;
}
}
2 months ago
.indexcontentbttom-item-bottom-bottom {
background: rgba(67, 121, 214, 0.1);
border-radius: 10rpx;
2 months ago
width: 100%;
height: 69rpx;
text-align: center;
line-height: 69rpx;
color: #4379D6;
}
}
}
}
2 months ago
.dibuaBtn {
2 months ago
position: fixed;
2 months ago
bottom: 0;
left: 0;
width: 100%;
height: 120rpx;
padding: 30rpx;
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 20rpx;
color: #ffffff;
background-color: #ffffff;
2 months ago
view {
2 months ago
text-align: center;
line-height: 60rpx;
height: 60rpx;
border-radius: 10rpx;
}
2 months ago
.dibuaBtn-lanse {
2 months ago
background-color: #4379D6;
}
2 months ago
.dibuaBtn-hongse {
2 months ago
background-color: #E72C2C;
}
}
}
2 months ago
.popup-box {
width: 600rpx;
}
.lishi-box {
width: 600rpx;
display: grid;
grid-template-columns: 25% 70%;
2 months ago
grid-row-gap: 20rpx;
2 months ago
}
2 months ago
.u-nav-slot {
font-size: 22rpx;
}
.u-page__item__slot-icon {
width: 50rpx;
height: 50rpx;
}
2 months ago
.lishi-box-jiacu {
font-weight: bold;
}
2 months ago
.LieBIaoList {
padding: 10rpx;
2 months ago
height: 49vh;
2 months ago
width: 100%;
background-color: #f7f7f7fa;
}
2 months ago
.lieBiaoListTwo {
height: 64vh;
}
2 months ago
</style>