Commit c1d986a4 authored by 陈晓晋's avatar 陈晓晋

待办任务和待办消息修改20240516

parent d5dbfecd
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
let formData let formData
if (this.activeIndex == 0) { if (this.activeIndex == 0) {
formData = new FormData(); formData = new FormData();
formData.append("status", 0); formData.append("status", 0);
} else if (this.activeIndex == 1) { } else if (this.activeIndex == 1) {
formData = new FormData(); formData = new FormData();
formData.append("status", 1); formData.append("status", 1);
...@@ -196,7 +196,15 @@ export default { ...@@ -196,7 +196,15 @@ export default {
this.showIndex = null; this.showIndex = null;
this.$router.push({ this.$router.push({
path: item.appUrl, path: item.appUrl,
params: {
id: item.pid,
buildingId: item.mainId
}
}); });
sessionStorage.setItem("planId", item.pid);
sessionStorage.setItem("pathAuth", "");
sessionStorage.setItem("buildingId", item.mainId);
}) })
}, },
touchstart(index, item) { touchstart(index, item) {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div class="bot_but" v-if=" item.theme != '检查'"> <div class="bot_but" v-if=" item.theme != '检查'">
<van-button color="#33CCFF" size="mini">{{ <van-button color="#33CCFF" size="mini">{{
item.status == 0 ? "立即处理" : "待办事项" item.status == 0 ? "立即处理" : "查看详情"
}}</van-button> }}</van-button>
</div> </div>
</div> </div>
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
let formData let formData
if (this.activeIndex == 0) { if (this.activeIndex == 0) {
formData = new FormData(); formData = new FormData();
formData.append("status", 0); formData.append("status", 0);
} else if (this.activeIndex == 1) { } else if (this.activeIndex == 1) {
formData = new FormData(); formData = new FormData();
formData.append("status", 1); formData.append("status", 1);
...@@ -169,17 +169,36 @@ export default { ...@@ -169,17 +169,36 @@ export default {
} }
// this.$parent.$parent.$parent.$parent.getBadgeNumber(); // this.$parent.$parent.$parent.$parent.getBadgeNumber();
}) })
}, },
touchstart(index, item) { touchstart(index, item) {
console.log('==========================',item)
//return
let formData=new FormData() let formData=new FormData()
formData.append('id',item.id) formData.append('id',item.id)
postFun("messageInfo/changeRead", formData) postFun("backlogInfo/changeRead", formData)
.then(res => { .then(res => {
this.showIndex = null; this.showIndex = null;
this.$router.push({ this.$router.push({
path: item.appUrl, name: item.appUrl,
}); params: {
id: item.pid,
buildingId: item.mainId
}
}
);
sessionStorage.setItem("planId", item.pid);
if(item.menuName=='风险审批'){
sessionStorage.setItem("pathAuth", "riskApprove0");
sessionStorage.setItem("status", "2");
}else{
sessionStorage.setItem("pathAuth", "riskAssess");
}
if(item.status==1){//已办查看详情
sessionStorage.setItem("pathAuth", "");
}
sessionStorage.setItem("buildingId", item.mainId);
}) })
// if (this.showIndex != null) { // if (this.showIndex != null) {
// this.showIndex = null; // this.showIndex = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment