Commit 6dd99586 authored by 杨帆's avatar 杨帆

Merge branch 'dev-yf'' into 'develop'

Dev yf'

See merge request !11
parents 82c13bd1 4ac88765
...@@ -22,14 +22,18 @@ ...@@ -22,14 +22,18 @@
<div>开始时间:</div> <div>开始时间:</div>
<div> <div>
{{ {{
timestampToTimes(messageList.startTime,'DT2') || messageList.startTime timestampToTimes(messageList.startTime, "DT2") ||
messageList.startTime
}} }}
</div> </div>
</van-grid-item> </van-grid-item>
<van-grid-item> <van-grid-item>
<div>结束时间:</div> <div>结束时间:</div>
<div> <div>
{{ timestampToTimes(messageList.endTime,'DT2') || messageList.endTime }} {{
timestampToTimes(messageList.endTime, "DT2") ||
messageList.endTime
}}
</div> </div>
</van-grid-item> </van-grid-item>
</van-grid> </van-grid>
...@@ -130,7 +134,7 @@ ...@@ -130,7 +134,7 @@
input-align="right" input-align="right"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.startTime,'DT2'); return timestampToTimes(form.startTime, 'DT2');
} }
" "
:rules="[{ required: true, message: '任务开始时间不能为空' }]" :rules="[{ required: true, message: '任务开始时间不能为空' }]"
...@@ -143,7 +147,7 @@ ...@@ -143,7 +147,7 @@
label="任务结束时间" label="任务结束时间"
:formatter=" :formatter="
() => { () => {
return timestampToTimes(form.endTime,'DT2') return timestampToTimes(form.endTime, 'DT2');
} }
" "
input-align="right" input-align="right"
...@@ -171,7 +175,7 @@ ...@@ -171,7 +175,7 @@
style="margin-top:10px;" style="margin-top:10px;"
@click="toRiskDetail(item)" @click="toRiskDetail(item)"
> >
<van-col span="20" > <van-col span="20">
<van-col span="5"> <van-col span="5">
<van-image <van-image
width="46" width="46"
...@@ -210,7 +214,7 @@ ...@@ -210,7 +214,7 @@
<van-row> <van-row>
<van-col span="24"> <van-col span="24">
<div class="info-title"> <div class="info-title">
{{ timestampToTimes(item.startTime,"DT1") }} {{ timestampToTimes(item.startTime, "DT1") }}
</div> </div>
</van-col> </van-col>
</van-row> </van-row>
...@@ -222,15 +226,17 @@ ...@@ -222,15 +226,17 @@
</van-row> </van-row>
<van-row> <van-row>
<van-col span="7" <van-col span="7"
><span class="field-title">审批结果</span></van-col ><span class="field-title">任务节点</span></van-col
> >
<van-col span="17">{{ item.taskName }}</van-col> <van-col span="17">{{ item.taskName }}</van-col>
</van-row> </van-row>
<van-row> <van-row v-show="item.taskResult">
<van-col span="7" <van-col span="7"
><span class="field-title">岗位</span></van-col ><span class="field-title">审批结果</span></van-col
> >
<van-col span="17">{{ item.taskResult }}</van-col> <van-col span="17">{{
item.taskResult == 1 ? "审批通过" : "审批否决"
}}</van-col>
</van-row> </van-row>
<!-- <van-row> <!-- <van-row>
<van-col span="7" <van-col span="7"
...@@ -341,7 +347,7 @@ ...@@ -341,7 +347,7 @@
</div> </div>
</div> </div>
<div <div
v-show="pathAuth == 'riskApprove' && status == 2" v-show="pathAuth == 'riskApprove0' && status == 2"
style="display: flex; style="display: flex;
justify-content: space-around; justify-content: space-around;
background-color: #fff; background-color: #fff;
...@@ -426,7 +432,7 @@ ...@@ -426,7 +432,7 @@
<van-row gutter=""> <van-row gutter="">
<van-col span="8">发起时间:</van-col> <van-col span="8">发起时间:</van-col>
<van-col span="16" <van-col span="16"
>{{ timestampToTimes(item.startTime,"DT2") }} >{{ timestampToTimes(item.startTime, "DT2") }}
</van-col> </van-col>
</van-row> </van-row>
</van-col> </van-col>
...@@ -555,12 +561,12 @@ export default { ...@@ -555,12 +561,12 @@ export default {
this.getRiskTaskList(this.planId, buildingId); this.getRiskTaskList(this.planId, buildingId);
}, },
methods: { methods: {
timestampToTimes(time,type) { timestampToTimes(time, type) {
return timestampToTime(new Date(time), type, true); return timestampToTime(new Date(time), type, true);
}, },
//执行任务 //执行任务
performTasks() { performTasks() {
console.log( this.messageList,'LLLL') console.log(this.messageList, "LLLL");
sessionStorage.setItem( sessionStorage.setItem(
"buildingId", "buildingId",
this.messageList.riskBuildingListDtos[0].buildingId this.messageList.riskBuildingListDtos[0].buildingId
...@@ -642,7 +648,7 @@ export default { ...@@ -642,7 +648,7 @@ export default {
console.log(res.data, "lll"); console.log(res.data, "lll");
this.riskList = res.data; this.riskList = res.data;
}); });
}else{ } else {
getFun(`/risk/plan/inherent/list/${planId}`).then(res => { getFun(`/risk/plan/inherent/list/${planId}`).then(res => {
console.log(res.data, "lll"); console.log(res.data, "lll");
this.riskList = res.data; this.riskList = res.data;
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
type="info" type="info"
size="mini" size="mini"
@click="todetail(index, item)" @click="todetail(index, item)"
>{{ active == 2 ? "去处理" : "去审批" }}</van-button >{{ active == 0 ? "去审批" : "查看详情" }}</van-button
> >
</van-row> </van-row>
</van-col> </van-col>
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
buildingList: [] buildingList: []
}; };
}, },
created() { mounted() {
this.postList(0); this.postList(0);
}, },
methods: { methods: {
...@@ -144,9 +144,9 @@ export default { ...@@ -144,9 +144,9 @@ export default {
duration: 0 duration: 0
}); });
let url = `/risk/plan/approve/list?status=running`; let url = `/risk/plan/approve/list?status=running`;
if (name == 0) { if (this.active == 0) {
url = `/risk/plan/approve/list?status=running`; url = `/risk/plan/approve/list?status=running`;
} else if (name == 1) { } else if (this.active == 1) {
url = `/risk/plan/approve/list?status=completed`; url = `/risk/plan/approve/list?status=completed`;
} else { } else {
url = `/risk/plan/approve/list?status=return`; url = `/risk/plan/approve/list?status=return`;
...@@ -175,7 +175,8 @@ export default { ...@@ -175,7 +175,8 @@ export default {
// buildingId: item.buildingId // buildingId: item.buildingId
} }
}); });
sessionStorage.setItem("pathAuth", "riskApprove"); if (this.active == 0) sessionStorage.setItem("pathAuth", "riskApprove0");
else sessionStorage.setItem("pathAuth", "riskApprove1");
sessionStorage.setItem("planId", item.id); sessionStorage.setItem("planId", item.id);
sessionStorage.setItem("buildingId", ""); sessionStorage.setItem("buildingId", "");
} }
......
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