Commit 4ef48267 authored by 胡占生's avatar 胡占生 🇨🇳

Merge branch 'develop' of http://git.censoft.com.cn/rongtong/rongtong-app into develop

parents df6b0334 e4100747
...@@ -154,7 +154,6 @@ export default { ...@@ -154,7 +154,6 @@ export default {
postFun( postFun(
`/risk/plan/submit/${this.planId}/${this.buildingId}` `/risk/plan/submit/${this.planId}/${this.buildingId}`
).then(res => { ).then(res => {
console.log(res.msg,'lllll')
Dialog.alert({ Dialog.alert({
title: '任务执行结束', title: '任务执行结束',
message: res.msg, message: res.msg,
...@@ -240,12 +239,12 @@ export default { ...@@ -240,12 +239,12 @@ export default {
}, },
async changeFloor() { async changeFloor() {
let room = await this.roomList(this.value1); let room = await this.roomList(this.value1);
let risk = await this.riskList(this.planId, this.active, this.value1); let risk = await this.riskList(this.planId,this.buildingId, this.value1,this.value2);
}, },
async changeRoom() { async changeRoom() {
let risk = await this.riskList( let risk = await this.riskList(
this.planId, this.planId,
this.active, this.buildingId,
this.value1, this.value1,
this.value2 this.value2
); );
......
...@@ -169,28 +169,25 @@ ...@@ -169,28 +169,25 @@
justify="space-between" justify="space-between"
style="margin-top:10px;" style="margin-top:10px;"
> >
<van-col span="22" @click="toRiskDetail(item)"> <van-col span="20" @click="toRiskDetail(item)">
<van-col span="5"> <van-col span="5">
<van-image <van-image
width="46" width="46"
height="46" height="46"
src="https://img01.yzcdn.cn/vant/cat.jpeg" src="https://img01.yzcdn.cn/vant/cat.jpeg"
/> />
<van-image width="46" height="46" :src="item.avatar" /> <!-- <van-image width="46" height="46" :src="item.avatar" /> -->
</van-col> </van-col>
<van-col span="17"> <van-col span="15">
<van-row gutter=""> <van-row gutter="">
<van-col span="9">风险名称:</van-col> <van-col span="9">风险名称:</van-col>
<van-col span="15">{{ item.name }}</van-col> <van-col span="15">{{ item.name }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
</van-col> </van-col>
<van-col span="2"> <van-col span="4">
<van-row <van-row type="flex">
:style="{ 详情
color: '#03b615'
}"
>
<van-icon name="arrow" size="26px" @click="goColorDetail" /> <van-icon name="arrow" size="26px" @click="goColorDetail" />
</van-row> </van-row>
</van-col> </van-col>
...@@ -514,6 +511,7 @@ export default { ...@@ -514,6 +511,7 @@ export default {
searchValue: "", searchValue: "",
messageText: "", messageText: "",
checkValue: [], checkValue: [],
isAll: false,
plan: 0, plan: 0,
showIndex: false, showIndex: false,
isShowAppvoreList: false, isShowAppvoreList: false,
...@@ -560,6 +558,7 @@ export default { ...@@ -560,6 +558,7 @@ export default {
}, },
//执行任务 //执行任务
performTasks() { performTasks() {
console.log( this.messageList,'LLLL')
sessionStorage.setItem( sessionStorage.setItem(
"buildingId", "buildingId",
this.messageList.riskBuildingListDtos[0].buildingId this.messageList.riskBuildingListDtos[0].buildingId
...@@ -603,10 +602,10 @@ export default { ...@@ -603,10 +602,10 @@ export default {
}, },
//审批否决 //审批否决
unApproveTask() { unApproveTask() {
if (this.status == 2) { if (this.isAll) {
this.lookdetail(this.planId);
} else if (this.status == 3) {
this.approveTask(0); this.approveTask(0);
} else {
this.lookdetail(this.planId);
} }
//TODO 审批否决 //TODO 审批否决
...@@ -667,20 +666,25 @@ export default { ...@@ -667,20 +666,25 @@ export default {
switch (this.messageList.statusKey) { switch (this.messageList.statusKey) {
case "CREATE_TASK": case "CREATE_TASK":
case "WAIT_START": case "WAIT_START":
case "WAIT_RETURN":
this.status = 0; this.status = 0;
break; break;
case "CREATE_TASK": case "RUNNING":
case "WAIT_LEADER_RETURN": case "WAIT_RETURN":
case "PROJECT_REPORT":
this.status = 1; this.status = 1;
break; break;
case "WAIT_LEADER_APPROVE":
case "WAIT_LEADER_RETURN":
this.status = 2;
this.isAll = false;
break;
case "WAIT_APPROVE": case "WAIT_APPROVE":
case "FINISH":
this.status = 2; this.status = 2;
this.isAll = true;
break; break;
case "REVOKE": case "REVOKE":
case "FINISH": case "FINISH":
case "PROJECT_REPORT":
this.status = 3; this.status = 3;
break; break;
default: default:
......
...@@ -277,6 +277,7 @@ export default { ...@@ -277,6 +277,7 @@ export default {
buildingId: item.buildingId buildingId: item.buildingId
} }
}); });
sessionStorage.setItem("pathAuth", "riskExecution");
sessionStorage.setItem("planId", item.id); sessionStorage.setItem("planId", item.id);
sessionStorage.setItem("buildingId", item.buildingId); sessionStorage.setItem("buildingId", item.buildingId);
this.showIndex = false; this.showIndex = false;
......
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