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