main
李劲龙 9 months ago
parent 87f1f88212
commit 466b20ce23

@ -19,7 +19,7 @@
</view> --> </view> -->
<view class="LieBIaoListindexcontentbttom-item-bottom"> <view class="LieBIaoListindexcontentbttom-item-bottom">
<view class="LieBIaoListindexcontentbttom-item-bottom-left"> <view class="LieBIaoListindexcontentbttom-item-bottom-left">
<u-icon name="map" size="18" color="#595F66" class="icon"></u-icon> <u-icon name="map" size="14" color="#595F66" class="icon"></u-icon>
</view> </view>
<view class="LieBIaoListindexcontentbttom-item-bottom-rigth"> <view class="LieBIaoListindexcontentbttom-item-bottom-rigth">
{{item.caseAddress}} {{item.caseAddress}}
@ -27,29 +27,45 @@
</view> </view>
<view class="LieBIaoListindexcontentbttom-item-bottom"> <view class="LieBIaoListindexcontentbttom-item-bottom">
<view class="LieBIaoListindexcontentbttom-item-bottom-left"> <view class="LieBIaoListindexcontentbttom-item-bottom-left">
<u-icon name="clock" size="18" color="#595F66" class="icon"></u-icon> <u-icon name="clock" size="14" color="#595F66" class="icon"></u-icon>
</view> </view>
<view class="LieBIaoListindexcontentbttom-item-bottom-rigth"> <view class="LieBIaoListindexcontentbttom-item-bottom-rigth">
{{item.caseDate}} {{item.caseDate}}
</view> </view>
</view> </view>
<view class=""> <view class="" v-if="tabscurrent == 0">
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom chengse" @click.stop="nextblack(item)" <view class="LieBIaoListindexcontentbttom-item-bottom-bottom " :class="" v-show="!item.isReport">
v-show="item.isReport"> <!-- <u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
不符合
</view>
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom " :class="" @click.stop="nextblack(item)"
v-show="!item.isReport">
<!-- <u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show="item.caseSerialShow"> v-show="item.caseSerialShow">
</u-icon> --> </u-icon> -->
<view class="bufuhe" v-if="item.caseSerialShow" :class=""> <!-- v-if="item.caseSerialShow" -->
<view class="fuhe" :class="item.caseSerialShow?'huise':''" @click.stop="nextblack(item,false)">
符合
</view>
<view class="bufuhe" :class="item.caseSerialShow?'hongse':''"
@click.stop="nextblack(item,true)">
不符合 不符合
</view> </view>
<view class="fuhe" v-else>
</view>
</view>
<view class="" v-else>
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom chengse" v-if="item.isReport">
<view class="bufuhe">
不符合
</view>
</view>
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom chengse" :class=""
v-show="!item.isReport">
<!-- <u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show="item.caseSerialShow">
</u-icon> -->
<!-- v-if="item.caseSerialShow" -->
<view class="fuhe">
符合 符合
</view> </view>
</view> </view>
</view> </view>
</view> </view>
@ -58,7 +74,7 @@
</template> </template>
<script> <script>
import { import {
massEventsinfoTow massEventsinfoTow
} from '@/api/system/ApiList.js' } from '@/api/system/ApiList.js'
export default { export default {
@ -91,12 +107,12 @@ import {
// } // }
// }, // },
methods: { methods: {
open(opent){ open(opent) {
this.innerEventId = opent.innerEventId this.innerEventId = opent.innerEventId
this.tabscurrent = opent.tabscurrent this.tabscurrent = opent.tabscurrent
this.getList() this.getList()
}, },
gotoXiangqing(item){ gotoXiangqing(item) {
uni.navigateTo({ uni.navigateTo({
url: `/views/Xiangqing/Xiangqing?caseSerial=${item.caseSerial}&innerEventId=${this.innerEventId}` url: `/views/Xiangqing/Xiangqing?caseSerial=${item.caseSerial}&innerEventId=${this.innerEventId}`
}) })
@ -107,12 +123,16 @@ import {
// 2 caseSerialShowleft // 2 caseSerialShowleft
//3 caseSerialShowRight //3 caseSerialShowRight
item.caseSerialShow = !item.caseSerialShow item.caseSerialShow = type
console.log(item.caseSerialShow);
if (!item.caseSerialShow) { if (!item.caseSerialShow) {
this.shijianList = this.shijianList.filter((obj) => { this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial; return obj != item.caseSerial;
}); });
} else { } else {
this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial;
});
this.shijianList.push(item.caseSerial) this.shijianList.push(item.caseSerial)
} }
@ -153,25 +173,27 @@ import {
<style lang="scss" scoped> <style lang="scss" scoped>
.LieBIaoListindexcontent { .LieBIaoListindexcontent {
width: 100%; width: 100%;
margin: 25rpx 0; margin: 0rpx 0;
height: calc(100% - 50rpx); height: 100%;
padding-bottom: 80rpx;
overflow-y: scroll; overflow-y: scroll;
.LieBIaoListindexcontent-bottom { .LieBIaoListindexcontent-bottom {
width: 100%; width: 100%;
padding: 20rpx; padding: 10rpx;
border-radius: 10rpx; border-radius: 10rpx;
.LieBIaoListindexcontentbttom-item { .LieBIaoListindexcontentbttom-item {
padding: 25rpx; padding: 15rpx;
width: 100%; width: 100%;
background: #f1f1f1fa; background: #f1f1f1fa;
border-radius: 10rpx; border-radius: 10rpx;
margin: 20rpx 0; margin: 5rpx 0;
.LieBIaoListindexcontentbttom-item-top { .LieBIaoListindexcontentbttom-item-top {
text-align: left; text-align: left;
font-weight: 500; font-weight: 500;
font-size: 30rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: #35393D; color: #35393D;
overflow: hidden; overflow: hidden;
@ -180,14 +202,14 @@ import {
.LieBIaoListindexcontentbttom-item-bottom { .LieBIaoListindexcontentbttom-item-bottom {
margin: 20rpx 0; margin: 10rpx 0;
display: grid; display: grid;
grid-template-columns: 8% auto; grid-template-columns: 5% auto;
view { view {
font-size: 25rpx; font-size: 25rpx;
color: #35393D; color: #35393D;
line-height: 30rpx; line-height: 25rpx;
} }
.LieBIaoListindexcontentbttom-item-bottom-left { .LieBIaoListindexcontentbttom-item-bottom-left {
@ -207,33 +229,65 @@ import {
.LieBIaoListindexcontentbttom-item-bottom-bottom { .LieBIaoListindexcontentbttom-item-bottom-bottom {
border-radius: 10rpx; border-radius: 10rpx;
width: 100%; width: 100%;
height: 59rpx; height: 50rpx;
text-align: center; text-align: center;
line-height: 59rpx; line-height: 50rpx;
display: flex;
align-items: center;
justify-content: space-between;
.fuhe {
width: 49%;
background: rgba(0, 170, 0, 0.1);
color: #2baa04;
}
.bufuhe {
width: 49%;
background: rgba(245, 154, 35, 0.1);
color: #F59A23;
}
.huise {
width: 49%;
background: rgba(126, 123, 121, 0.1);
color: #999999;
}
.hongse {
width: 49%;
background: rgba(255, 0, 0, 0.1);
color: red;
}
}
.chengse {
border-radius: 10rpx;
width: 100%;
height: 50rpx;
text-align: center;
line-height: 50rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.fuhe{
.fuhe {
width: 100%; width: 100%;
background: rgba(0, 170, 0, 0.1); background: rgba(0, 170, 0, 0.1);
color: #2baa04; color: #2baa04;
} }
.bufuhe { .bufuhe {
width: 100%; width: 100%;
background: rgba(245, 154, 35, 0.1); background: rgba(245, 154, 35, 0.1);
color: #F59A23; color: #F59A23;
} }
} }
.chengse{
width: 100%;
background: rgba(245, 154, 35, 0.1);
color: #F59A23;
}
.LieBIaoListindexcontentbttom-item-bottom-bottomTRTS { .LieBIaoListindexcontentbttom-item-bottom-bottomTRTS {
background: #ffffff; background: #ffffff;
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr;
grid-column-gap: 20rpx; grid-column-gap: 20rpx;
view { view {
@ -255,6 +309,7 @@ import {
} }
} }
.dibuaBtn { .dibuaBtn {
position: sticky; position: sticky;
bottom: 0; bottom: 0;

@ -10,20 +10,11 @@
<u-tabs :list="list1" :scrollable="false" lineWidth="30" @change="utabschange" <u-tabs :list="list1" :scrollable="false" lineWidth="30" @change="utabschange"
:current='tabscurrent'></u-tabs> :current='tabscurrent'></u-tabs>
</view> </view>
<view class="indexcontent-bottom"> <scroll-view class="indexcontent-box" @scrolltolower="lowerBottom" scroll-y="true" :scroll-top="scrollTop"
@scroll="scroll">
</view>
<scroll-view class="indexcontent-box" @scrolltolower="lowerBottom" scroll-y="true" :scroll-top="scrollTop">
<view class="indexcontent-bottom"> <view class="indexcontent-bottom">
<u-search <u-search placeholder="请输入搜索内容" v-model="massEventsObj.title" @search="searchSou" @clear="qingkong"
placeholder="请输入搜索内容" showAction animation @custom="searchSou"></u-search>
v-model="massEventsObj.title"
@search="searchSou"
@clear="qingkong"
showAction
animation
@custom="searchSou"
></u-search>
<template class="" v-if="contentList.length !=0"> <template class="" v-if="contentList.length !=0">
<view class="indexcontentbttom-item" v-for="item in contentList"> <view class="indexcontentbttom-item" v-for="item in contentList">
<view class="indexcontentbttom-item-left"> <view class="indexcontentbttom-item-left">
@ -61,40 +52,41 @@
</u-empty> </u-empty>
</view> </view>
<u-tabbar :value="tabValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
<u-tabbar-item text="群体事件" name="群体事件-1" :badge="msgTypecount[0].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-0.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-0.png"></image>
</u-tabbar-item>
<u-tabbar-item text="同人同诉" name="同人同诉-2" :badge="msgTypecount[1].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-3.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-3.png"></image>
</u-tabbar-item>
<u-tabbar-item text="紧急事件" name="紧急事件-3" :badge="msgTypecount[2].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-1.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-1.png"></image>
</u-tabbar-item>
<u-tabbar-item text="重点人员" name="重点人员-4" :badge="msgTypecount[3].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-4.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-4.png"></image>
</u-tabbar-item>
<u-tabbar-item text="一人多诉" name="一人多诉-5" :badge="msgTypecount[4].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-2.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-2.png"></image>
</u-tabbar-item>
</u-tabbar>
</scroll-view> </scroll-view>
<u-tabbar :value="tabValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
<u-tabbar-item text="群体事件" name="群体事件-1" :badge="msgTypecount[0].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-0.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-0.png"></image>
</u-tabbar-item>
<u-tabbar-item text="同人同诉" name="同人同诉-2" :badge="msgTypecount[1].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-3.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-3.png"></image>
</u-tabbar-item>
<u-tabbar-item text="紧急事件" name="紧急事件-3" :badge="msgTypecount[2].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-1.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-1.png"></image>
</u-tabbar-item>
<u-tabbar-item text="重点人员" name="重点人员-4" :badge="msgTypecount[3].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-4.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-4.png"></image>
</u-tabbar-item>
<u-tabbar-item text="一人多诉" name="一人多诉-5" :badge="msgTypecount[4].count">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-2.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-2.png"></image>
</u-tabbar-item>
</u-tabbar>
</view> </view>
</template> </template>
@ -114,18 +106,28 @@
list1: [{ list1: [{
name: '待审核', name: '待审核',
badge: { badge: {
value: 5, value: 0,
lable: 0,
} }
}, { }, {
name: '已上报', name: '已上报',
badge: { badge: {
value: 0, value: 0,
lable: 1,
} }
}, { }, {
name: '重训练', name: '重训练',
badge: { badge: {
value: 0, value: 0,
lable: 2,
}
}, {
name: '审核通过',
badge: {
value: 0,
lable: 3,
} }
}, ], }, ],
@ -138,7 +140,17 @@
}, },
pagesLogin: "", pagesLogin: "",
contentList: [], contentList: [],
msgTypecount: [{count:0},{count:0},{count:0},{count:0},{count:0},], msgTypecount: [{
count: 0
}, {
count: 0
}, {
count: 0
}, {
count: 0
}, {
count: 0
}, ],
} }
}, },
@ -146,7 +158,7 @@
// //
utabschange(e) { utabschange(e) {
this.tabscurrent = e.index this.tabscurrent = e.badge.lable
this.massEventsObj.current = 1 this.massEventsObj.current = 1
this.massEventsObj.title = "" this.massEventsObj.title = ""
this.getList() this.getList()
@ -189,10 +201,21 @@
this.tabscurrent = 0 this.tabscurrent = 0
this.geteventPageCount() this.geteventPageCount()
await this.getList(); await this.getList();
this.$nextTick(function() { this.goTop()
},
scroll(e) {
//scroll
this.oldScrollTop = e.detail.scrollTop
},
goTop(e) {
//
this.scrollTop = this.oldScrollTop
// 0
this.$nextTick(() => {
this.scrollTop = 0 this.scrollTop = 0
}); });
}, },
// //
// //
lowerBottom() { lowerBottom() {
@ -215,14 +238,11 @@
if (this.tabscurrent == 0) { if (this.tabscurrent == 0) {
this.massEventsObj.isReport = 4 this.massEventsObj.isReport = 4
this.massEventsObj.toBeReviewed = 0
} else { } else {
this.massEventsObj.toBeReviewed = null
this.massEventsObj.isReport = this.tabscurrent this.massEventsObj.isReport = this.tabscurrent
} }
massEventsList(this.massEventsObj).then(res => { massEventsList(this.massEventsObj).then(res => {
if (type == "触底") { if (type == "触底") {
this.contentList = this.contentList.concat(res.data.records) this.contentList = this.contentList.concat(res.data.records)
this.pagesLogin = res.data.pages this.pagesLogin = res.data.pages
@ -276,21 +296,22 @@
position: sticky; position: sticky;
top: 0; top: 0;
left: 0; left: 0;
::v-deep .u-tabs__wrapper__nav__item { ::v-deep .u-tabs__wrapper__nav__item {
position: relative; position: relative;
.u-badge { .u-badge {
position: absolute; position: absolute;
right: 15rpx; right: -10rpx;
top: 30rpx; top: 30rpx;
} }
} }
} }
.indexcontent-box { .indexcontent-box {
padding: 20rpx 20rpx 0 20rpx; padding: 20rpx 20rpx 0 20rpx;
height: 85vh; height: 85vh;
overflow: auto;
.indexcontent-bottom { .indexcontent-bottom {
width: 100%; width: 100%;

@ -1945,7 +1945,7 @@ button.cuIcon.lg {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; /* display: none; */
} }
.nav .cu-item { .nav .cu-item {

@ -19,9 +19,9 @@ uni-toast .uni-toast {
// scroll-view // scroll-view
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; // display: none;
width: 0 !important; // width: 0 !important;
height: 0 !important; // height: 0 !important;
-webkit-appearance: none; // -webkit-appearance: none;
background: transparent; // background: transparent;
} }

@ -149,12 +149,12 @@
.indexcontentbttom-item-bottom { .indexcontentbttom-item-bottom {
margin: 20rpx 0; margin: 20rpx 0;
display: grid; display: grid;
grid-template-columns: 25% 73%; grid-template-columns: 19% 73%;
view { view {
font-size: 35rpx; font-size: 26rpx;
color: #35393D; color: #35393D;
line-height: 50rpx; line-height: 30rpx;
} }
.indexcontentbttom-item-bottom-left { .indexcontentbttom-item-bottom-left {
@ -174,7 +174,7 @@
} }
.indexcontentbttom-item-bottomLog{ .indexcontentbttom-item-bottomLog{
grid-template-columns: 33% auto; grid-template-columns: 25% auto;
} }
.indexcontentbttom-item-bottom-bottom { .indexcontentbttom-item-bottom-bottom {

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

Loading…
Cancel
Save