修改提交方式

main
李劲龙 11 hours ago
parent 79af94321e
commit 32c14dc9b9

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

@ -43,7 +43,7 @@
</view> </view>
</view> </view>
<view class="" v-show="Objitem.msgTypeName=='紧急事件'"> <view class="" v-show="Objitem.msgTypeName=='紧急事件'">
<view class="indexcontentbttom-item-bottom"> <view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left"> <view class="indexcontentbttom-item-bottom-left">
事件来源: 事件来源:
@ -77,7 +77,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="" v-show="Objitem.msgTypeName!='紧急事件'"> <view class="" v-show="Objitem.msgTypeName!='紧急事件'">
<view class="indexcontentbttom-item-bottom"> <view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left"> <view class="indexcontentbttom-item-bottom-left">
@ -99,7 +99,7 @@
事件逐条审核{{"("+listtotle+")"}} 事件逐条审核{{"("+listtotle+")"}}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
@ -178,7 +178,7 @@
nextblack(item) { nextblack(item) {
console.log(item); console.log(item);
uni.navigateTo({ uni.navigateTo({
url: `/views/yemianxianqging/yemianxianqging?innerEventId=${this.innerEventId}&tabscurrent=${this.tabscurrent}` url: `/views/yemianxianqging/yemianxianqging?innerEventId=${this.innerEventId}&tabscurrent=${this.tabscurrent}&navbarValue=${this.navbarValue}`
}) })
}, },
// //
@ -248,21 +248,34 @@
}, },
// 退 // 退
Chongxinshangbao(isReport) { Chongxinshangbao(isReport) {
if(this.Objitem.msgTypeName == "紧急事件"){ if (this.Objitem.msgTypeName == "紧急事件") {
this.$store.state.tijiaoList.shijianList = [this.ObjitemTow.caseSerial] let mykey = this.ObjitemTow.caseSerial
} this.$store.state.tijiaoList.shijianList = [mykey]
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
} }
let caseSerialData = {}
if (this.navbarValue == "同人同诉") {
this.$store.state.tijiaoList.shijianList.forEach(res => {
caseSerialData[res.key] = res.value
})
} else {
this.$store.state.tijiaoList.shijianList.forEach(res => {
caseSerialData[res] = 1
})
}
let obj = { let obj = {
caseSerial: this.$store.state.tijiaoList.shijianList, caseSerial: caseSerialData,
innerEventId: this.innerEventId, innerEventId: this.innerEventId,
isReport isReport,
msgType: this.Objitem.msgType
} }
eventChangeIsReport(obj).then(res => { eventChangeIsReport(obj).then(res => {
if (res.code == 200) { if (res.code == 200) {

@ -36,15 +36,50 @@
</view> </view>
</view> </view>
<view class="indexcontentbttom-item-bottom-bottom" @click="nextblack(item)" v-show="item.isReport"> <view class="" v-if="navbarValue == '同人同诉'">
非同一事件 <template class="" v-if="tabscurrent !=0">
<view class="indexcontentbttom-item-bottom-bottom lvse" v-show="!item.isReport">
同人同诉事件
</view>
<view class="indexcontentbttom-item-bottom-bottom " v-show="item.isReport == 2">
非同人事件
</view>
<view class="indexcontentbttom-item-bottom-bottom " v-show="item.isReport == 3">
非同诉事件
</view>
</template>
<view class="indexcontentbttom-item-bottom-bottom lvse indexcontentbttom-item-bottom-bottomTRTS"
:class="" v-show="tabscurrent == 0">
<view class="" @click="nextblack(item,2)">
<u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show='item.caseSerialShowleft'>
</u-icon>
非同人事件
</view>
<view class="" @click="nextblack(item,3)">
<u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show='item.caseSerialShowRight'>
</u-icon>
非同诉事件
</view>
</view>
</view> </view>
<view class="indexcontentbttom-item-bottom-bottom lvse" :class="" @click="nextblack(item)" <view class="" v-else>
v-show="!item.isReport"> <view class="indexcontentbttom-item-bottom-bottom" @click="nextblack(item)"
<u-icon name="tags" size="24" color="#2baa04" class="" class="icon" v-show="item.isReport">
v-show="item.caseSerialShow"></u-icon> {{navbarValue=='重点人员'?'非重点事件':navbarValue=='一人多诉'?'非同一人事件':'非同一事件'}}
同一事件 </view>
<view class="indexcontentbttom-item-bottom-bottom lvse" :class="" @click="nextblack(item)"
v-show="!item.isReport">
<u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show="item.caseSerialShow">
</u-icon>
{{navbarValue=='重点人员'?'重点事件':navbarValue=='一人多诉'?'同一人事件':'同一事件'}}
</view>
</view> </view>
</view> </view>
</view> </view>
@ -71,24 +106,68 @@
}, },
shijianList: [], shijianList: [],
innerEventId: "", innerEventId: "",
tabscurrent:"" // 0 1 2
tabscurrent: "",
navbarValue: ""
} }
}, },
methods: { methods: {
nextblack(item) { nextblack(item, type) {
if(this.tabscurrent != 0) return if (this.tabscurrent != 0) return
item.caseSerialShow = !item.caseSerialShow
if (!item.caseSerialShow) { // 2 caseSerialShowleft
this.shijianList = this.shijianList.filter((obj) => { //3 caseSerialShowRight
return obj != item.caseSerial; if (this.navbarValue == '同人同诉') {
}); let obj = {
key: item.caseSerial,
value: type
}
if (type == 2) {
item.caseSerialShowleft = !item.caseSerialShowleft
item.caseSerialShowRight = false
if (!item.caseSerialShowleft) {
//
this.shijianList = this.shijianList.filter((obj) => {
return obj.key != item.caseSerial;
});
} else {
this.shijianList = this.shijianList.filter((obj) => {
return obj.key != item.caseSerial;
});
this.shijianList.push(obj)
}
} else if (type == 3) {
item.caseSerialShowRight = !item.caseSerialShowRight
item.caseSerialShowleft = false
if (!item.caseSerialShowRight) {
//
this.shijianList = this.shijianList.filter((obj) => {
return obj.key != item.caseSerial;
});
} else {
this.shijianList = this.shijianList.filter((obj) => {
return obj.key != item.caseSerial;
});
this.shijianList.push(obj)
}
}
} else { } else {
this.shijianList.push(item.caseSerial) item.caseSerialShow = !item.caseSerialShow
if (!item.caseSerialShow) {
this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial;
});
} else {
this.shijianList.push(item.caseSerial)
}
} }
this.$store.dispatch("setstate", this.shijianList) this.$store.dispatch("setstate", this.shijianList)
console.log(this.shijianList); console.log(this.shijianList);
console.log(this.$store.state.tijiaoList.shijianList); console.log(this.$store.state.tijiaoList.shijianList);
}, },
getList() { getList() {
massEventsinfoTow(this.innerEventId, this.massEventsObj).then(res => { massEventsinfoTow(this.innerEventId, this.massEventsObj).then(res => {
@ -96,14 +175,30 @@
this.shijianList = storeList this.shijianList = storeList
this.tiaoshu = res.data.total this.tiaoshu = res.data.total
this.contentList = res.data.records this.contentList = res.data.records
this.contentList = this.contentList.map((obj) => { if (this.navbarValue == '同人同诉') {
const caseSerialShow = storeList.includes(obj.caseSerial); this.contentList = this.contentList.map((obj) => {
return {
...obj, const caseSerialShowleft = storeList.some(res => res.key == obj.caseSerial &&
caseSerialShow res.value == 2);
}; const caseSerialShowRight = storeList.some(res => res.key == obj.caseSerial &&
}); res.value == 3);
return {
...obj,
caseSerialShowleft,
caseSerialShowRight
};
});
} else {
this.contentList = this.contentList.map((obj) => {
const caseSerialShow = storeList.includes(obj.caseSerial);
return {
...obj,
caseSerialShow
};
});
}
}) })
}, },
@ -111,6 +206,7 @@
onLoad(opent) { onLoad(opent) {
this.innerEventId = opent.innerEventId this.innerEventId = opent.innerEventId
this.tabscurrent = opent.tabscurrent this.tabscurrent = opent.tabscurrent
this.navbarValue = opent.navbarValue
this.getList() this.getList()
} }
} }
@ -196,6 +292,29 @@
color: #2baa04; color: #2baa04;
} }
.indexcontentbttom-item-bottom-bottomTRTS {
background: #ffffff;
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 20rpx;
view {
background: rgba(0, 170, 0, .1);
border-radius: 10rpx;
text-align: center;
line-height: 69rpx;
display: flex;
align-items: center;
justify-content: center;
.icon {
background: rgba(0, 170, 0, 0);
}
}
}
} }
} }
} }

Loading…
Cancel
Save