Commit eedec47c authored by wei's avatar wei

审批

parent 2538d488
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
<van-button <van-button
type="info" type="info"
size="mini" size="mini"
@click="lookdetail(index, item)" @click="todetail(index, item)"
>执行情况</van-button >{{ active == 2 ? '去处理' :'去审批' }}</van-button
> >
</van-row> </van-row>
</van-col> </van-col>
...@@ -76,90 +76,6 @@ ...@@ -76,90 +76,6 @@
<!-- {{messageList}} --> <!-- {{messageList}} -->
</van-tab> </van-tab>
</van-tabs> </van-tabs>
<!-- 长按显示遮罩层 -->
<van-popup
v-model="showIndex"
closeable
round
position="right"
:style="{ width: '90%', height: '100%' }"
>
<van-cell-group title="执行情况">
<!-- 内容列表 -->
<div class="con-list">
<van-cell-group
inset
v-for="(item, index) in buildingList"
:key="index"
>
<van-row gutter="">
<van-col span="16">{{ item.buildingName }}</van-col>
<van-col
span="8"
:style="{
color:
item.status == 'wait'
? '#F79648'
: item.status == 'finish'
? '#03B615'
: '#FF041D'
}"
>{{
item.status == "wait"
? "待评估"
: item.status == "finish"
? "已完成"
: "已退回"
}}</van-col
>
</van-row>
<van-row>
<van-col span="18">
<van-row gutter="">
<van-col span="8">创 建 人:</van-col>
<van-col span="16">{{ item.createUserName }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="8">处理人员:</van-col>
<van-col span="16">{{ item.workUserNames }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="8">发起时间:</van-col>
<van-col span="16"
>{{ timestampToTimes(item.startTime) }}
</van-col>
</van-row>
</van-col>
<van-col span="6">
<van-row>
<van-button
type="info"
size="mini"
@click="todetail(index, item)"
>查看详情</van-button
>
</van-row></van-col
>
</van-row>
</van-cell-group>
<div
style="
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
"
v-if="buildingList['length'] == 0"
>
暂无数据
</div>
</div>
</van-cell-group>
</van-popup>
</div> </div>
</template> </template>
...@@ -186,7 +102,6 @@ export default { ...@@ -186,7 +102,6 @@ export default {
} }
], ],
Loop: "", // 定时器 Loop: "", // 定时器
showIndex: false, // 是否显示遮罩层,
active: 0, active: 0,
// 状态 wait 待评估,running 执行中,finish 已完成 // 状态 wait 待评估,running 执行中,finish 已完成
tabs: [ tabs: [
...@@ -251,57 +166,18 @@ export default { ...@@ -251,57 +166,18 @@ export default {
}); });
}, },
onSearch(val) {
this.postList(this.searchValue);
},
//执行情况
lookdetail(index, item) {
this.showIndex = true;
console.log(item);
getFun("/risk/plan/allocation/building/list/" + item.id)
.then(res => {
console.log(res);
this.buildingList = res.data;
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("加载失败,请稍后再试");
});
},
//查看详情 //查看详情
todetail(index, item) { todetail(index, item) {
this.$router.push({ this.$router.push({
name: "riskTaskList", name: "riskTaskList",
params: { params: {
id: item.id, id: item.id,
buildingId: item.buildingId // buildingId: item.buildingId
} }
}); });
sessionStorage.setItem("planId", item.id); sessionStorage.setItem("planId", item.id);
sessionStorage.setItem("buildingId", item.buildingId); sessionStorage.setItem("buildingId", '');
this.showIndex = false;;
},
// 详情
goDetail(data) {
this.$router.push({
name: "risk-big-detail",
params: {
id: data.businessId || data.id
}
});
this.showIndex = false;
}, },
// 确认
goConfirm(data) {
this.$router.push({
name: "risk-affirm",
params: {
data: data
}
});
this.showIndex = false;
}
} }
}; };
</script> </script>
......
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