Commit 82de89d7 authored by wei's avatar wei

timestampToTimes

parent 52960c74
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<van-row type="flex" justify="space-between" style="margin-top:10px;"> <van-row type="flex" justify="space-between" style="margin-top:10px;">
<van-col span="22" @click="toRiskDetail(item)"> <van-col span="22" @click="toRiskDetail(item)">
<van-col span="5"> <van-col span="5">
<van-image width="46" height="46" src="https://img01.yzcdn.cn/vant/cat.jpeg" /> <van-image width="46" height="46" :src="item.avatar" />
</van-col> </van-col>
<van-col span="17"> <van-col span="17">
<van-row gutter=""> <van-row gutter="">
...@@ -98,9 +98,7 @@ ...@@ -98,9 +98,7 @@
</van-col> </van-col>
</van-col> </van-col>
<van-col span="2"> <van-col span="2">
<van-row :style="{ <van-row>
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>
......
...@@ -4,50 +4,54 @@ ...@@ -4,50 +4,54 @@
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
</van-sticky> </van-sticky>
<div class="section"> <div class="section">
<van-tabs v-model="activeName" color="#2980f7" animated > <van-tabs v-model="activeName" color="#2980f7" animated>
<van-tab title="固有风险信息" name="a"> <van-tab title="固有风险信息" name="a">
</van-tab> </van-tab>
<van-tab title="现状风险" name="b"> <van-tab title="现状风险" name="b">
<van-cell-group <div class="quolist">
inset <van-cell-group style="padding: 10px;box-sizing: border-box;background-color: #fff;margin: 8px;border-radius: 10px;" v-for="(item, index) in quoRiskList" :key="index">
v-for="(item, index) in quoRiskList" <div style="font-size: 0.45rem;padding: 5px 0;">
:key="index" {{ item.name }}
> </div>
<div style="font-size: 0.45rem;padding: 5px 0;"> <van-row gutter="4">
{{ item.name }} <van-col span="17">
</div> <van-row gutter="">
<van-row gutter=""> <van-col span="9">风险系数:</van-col>
<van-col span="17"> <van-col span="15">{{ item.coefficient }}</van-col>
<van-row gutter=""> </van-row>
<van-col span="9">创建人:</van-col> <van-row gutter="">
<van-col span="15">{{ item.leaderUserName }}</van-col> <van-col span="9">创建时间:</van-col>
</van-row> <van-col span="15">{{
<van-row gutter=""> timestampToTimes(item.createTime)
<van-col span="9">发起时间:</van-col> }}</van-col>
<van-col span="15">{{ </van-row>
timestampToTimes(item.startTime) <van-row gutter="">
}}</van-col> <van-col span="9">风险描述:</van-col>
</van-row> <van-col span="15">{{
</van-col> item.describe
<van-col span="7"> }}</van-col>
<van-row> </van-row>
{{ item.state }} </van-col>
</van-row> <van-col span="7">
<van-row> <van-row>
<van-button {{ item.state }}
type="info" </van-row>
size="mini" <van-row type="flex" style="flex-direction: column;align-items: center;">
@click="todetail(index, item)" <van-col>
>{{ active == 2 ? "去处理" : "去审批" }}</van-button <van-image round width="34" height="34" src="https://img01.yzcdn.cn/vant/cat.jpeg" />
> </van-col>
</van-row> <van-col>
</van-col> {{ item.userName }}
</van-row> </van-col>
</van-cell-group> </van-row>
</van-col>
</van-row>
</van-cell-group>
</div>
</van-tab> </van-tab>
<van-tab title="四色图" name="c"> <van-tab title="四色图" name="c">
<drawCanvas/> <drawCanvas />
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
...@@ -58,33 +62,37 @@ ...@@ -58,33 +62,37 @@
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
import drawCanvas from '@/views/drawCanvas/riskView.vue' import drawCanvas from '@/views/drawCanvas/riskView.vue'
import { getFun, postFun } from "@/service/table.js"; import { getFun, postFun } from "@/service/table.js";
import { timestampToTime } from "@/utils/format";
export default { export default {
name: 'taskDetail', name: 'taskDetail',
data() { data() {
return { return {
text: "固有风险列表", text: "固有风险列表",
activeName: 'a', activeName: 'a',
quoRiskList:[],//现状风险列表 quoRiskList: [],//现状风险列表
InherentRisk:[],//固有风险 InherentRisk: [],//固有风险
inherentId:'' inherentId: ''
} }
}, },
components: { components: {
LHeader, LHeader,
drawCanvas drawCanvas
}, },
created(){ created() {
this.inherentId = this.$route.params.id this.inherentId = this.$route.params.id
}, },
mounted() { mounted() {
this.getQuoRiskList(this.$route.params.id) this.getQuoRiskList(this.$route.params.id)
}, },
methods: { methods: {
getQuoRiskList(inherentId){ getQuoRiskList(inherentId) {
getFun(`/risk/plan/existing/list/${inherentId}`).then(res=>{ getFun(`/risk/plan/existing/list/${inherentId}`).then(res => {
this.quoRiskList = res.data this.quoRiskList = res.data
}) })
} },
timestampToTimes(time) {
return timestampToTime(new Date(time), "DT2", true);
},
}, },
} }
</script> </script>
...@@ -100,4 +108,8 @@ export default { ...@@ -100,4 +108,8 @@ export default {
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
} }
.quolist{
padding: 10px;
box-sizing: border-box;
}
</style> </style>
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