Commit 75013f21 authored by kaitly205422@163.com's avatar kaitly205422@163.com

添加风险评估模板

parent 594e9fa2
...@@ -22,18 +22,18 @@ ...@@ -22,18 +22,18 @@
<div>开始时间:</div> <div>开始时间:</div>
<div> <div>
{{ {{
timestampToTimes(messageList.startTime, "DT2") || timestampToTimes(messageList.startTime, "DT2") ||
messageList.startTime 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") || timestampToTimes(messageList.endTime, "DT2") ||
messageList.endTime messageList.endTime
}} }}
</div> </div>
</van-grid-item> </van-grid-item>
</van-grid> </van-grid>
...@@ -69,14 +69,14 @@ ...@@ -69,14 +69,14 @@
input-align="right" :rules="[{ required: true, message: '评估成员不能为空' }]" /> input-align="right" :rules="[{ required: true, message: '评估成员不能为空' }]" />
<van-field v-model="form.startTime" readonly name="location" label="任务开始时间" input-align="right" :formatter="() => { <van-field v-model="form.startTime" readonly name="location" label="任务开始时间" input-align="right" :formatter="() => {
return timestampToTimes(form.startTime, 'DT2'); return timestampToTimes(form.startTime, 'DT2');
} }
" :rules="[{ required: true, message: '任务开始时间不能为空' }]" /> " :rules="[{ required: true, message: '任务开始时间不能为空' }]" />
<van-field v-model="form.endTime" readonly name="location" label="任务结束时间" :formatter="() => { <van-field v-model="form.endTime" readonly name="location" label="任务结束时间" :formatter="() => {
return timestampToTimes(form.endTime, 'DT2'); return timestampToTimes(form.endTime, 'DT2');
} }
" input-align="right" :rules="[{ required: true, message: '任务结束时间不能为空' }]" /> " input-align="right" :rules="[{ required: true, message: '任务结束时间不能为空' }]" />
</van-form> </van-form>
</van-tab> </van-tab>
<van-tab title="风险清单"> <van-tab title="风险清单">
...@@ -99,21 +99,21 @@ ...@@ -99,21 +99,21 @@
<van-col> <van-col>
<van-image style="vertical-align: middle;margin-right: 15px;margin-left: 10px;" width="58" height="58" <van-image style="vertical-align: middle;margin-right: 15px;margin-left: 10px;" width="58" height="58"
:src="item.level == '重大风险' :src="item.level == '重大风险'
? require('@/assets/imgs/redInherent.png') ? require('@/assets/imgs/redInherent.png')
: item.level == '较大风险' : item.level == '较大风险'
? require('@/assets/imgs/inherentOrange.png') ? require('@/assets/imgs/inherentOrange.png')
: item.level === '一般风险' : item.level === '一般风险'
? require('@/assets/imgs/yellowInherent.png') ? require('@/assets/imgs/yellowInherent.png')
: require('@/assets/imgs/blueInherent.png') : require('@/assets/imgs/blueInherent.png')
" /> " />
<!-- <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="17">
<van-row gutter="0"> <van-row gutter="0">
<van-col span="10" style="font-weight: bold;color:#000;font-size: 16px;">风险名称:</van-col> <van-col span="10" style="font-weight: bold;color:#000;font-size: 16px;">风险名称:</van-col>
<van-col span="14" style="color: #000;font-size: 16px;">{{ <van-col span="14" style="color: #000;font-size: 16px;">{{
item.name item.name
}}</van-col> }}</van-col>
</van-row> </van-row>
<van-row gutter="0"> <van-row gutter="0">
<van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">风险等级:</van-col> <van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">风险等级:</van-col>
...@@ -121,14 +121,15 @@ ...@@ -121,14 +121,15 @@
</van-row> </van-row>
<van-row gutter="0"> <van-row gutter="0">
<van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">上报时间:</van-col> <van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">上报时间:</van-col>
<van-col span="15" style="color: #9d9d9d;font-size: 12px;">{{ timestampToTimes(item.createTime, "DT2") <van-col span="15" style="color: #9d9d9d;font-size: 12px;">{{ timestampToTimes(item.createTime,
}}</van-col> "DT2")
}}</van-col>
</van-row> </van-row>
<van-row gutter="0"> <van-row gutter="0">
<van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">所属房间:</van-col> <van-col span="9" style="font-weight: bold;color:#666666;font-size: 12px;">所属房间:</van-col>
<van-col span="15" style="color: #9d9d9d;font-size: 12px;">{{ <van-col span="15" style="color: #9d9d9d;font-size: 12px;">{{
item.buildingName + item.floorName + item.roomName item.buildingName + item.floorName + item.roomName
}}</van-col> }}</van-col>
</van-row> </van-row>
</van-col> </van-col>
<van-col span="4" class="list-right"> <van-col span="4" class="list-right">
...@@ -163,13 +164,13 @@ ...@@ -163,13 +164,13 @@
<van-row> <van-row>
<van-col span="7"><span class="field-title">任务节点:</span></van-col> <van-col span="7"><span class="field-title">任务节点:</span></van-col>
<van-col span="17">{{ item.taskName <van-col span="17">{{ item.taskName
}}{{ }}{{
item.taskResult item.taskResult
? item.taskResult == 1 ? item.taskResult == 1
? "(审批通过)" ? "(审批通过)"
: "(审批否决)" : "(审批否决)"
: "" : ""
}}</van-col> }}</van-col>
</van-row> </van-row>
<van-row v-show="item.taskResult"> <van-row v-show="item.taskResult">
<van-col span="7"><span class="field-title">审批意见:</span></van-col> <van-col span="7"><span class="field-title">审批意见:</span></van-col>
...@@ -191,38 +192,23 @@ ...@@ -191,38 +192,23 @@
</div> </div>
</van-tab> </van-tab>
<van-tab title="评估报告"> <van-tab title="评估报告">
<div style="height: 1.5rem; <a style="height: 1.5rem;
background-color: #fff; background-color: #fff;
border-bottom: 1px solid #97999a; border-bottom: 1px solid #97999a;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
line-height: 1.5rem; line-height: 1.5rem;
"> color:#010101;
" :href="fileUrl()" target="_blank">
<div><van-icon name="column" size="26px" /></div> <div><van-icon name="column" size="26px" /></div>
<div style="flex-grow:1;line-height: 0.6rem"> <div style="flex-grow:1;line-height: 0.6rem">
<div>风险评估报告.PDF</div> <div>风险评估报告模板.docx</div>
<div>2019-3-21 10:23 100KB</div> <div>2019-3-21 10:23 154KB</div>
</div> </div>
<div> <div>
<van-icon name="arrow" size="26px" /> <van-icon name="arrow" size="26px" />
</div> </div>
</div> </a>
<div style="height: 1.5rem;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
">
<div><van-icon name="column" size="26px" /></div>
<div style="flex-grow:1;line-height: 0.6rem">
<div>风险评估报告.PDF</div>
<div>2019-3-21 10:23 100KB</div>
</div>
<div>
<van-icon name="arrow" size="26px" />
</div>
</div>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
</div> </div>
...@@ -306,19 +292,19 @@ ...@@ -306,19 +292,19 @@
</van-col> </van-col>
<van-col span="14">{{ item.buildingName }}</van-col> <van-col span="14">{{ item.buildingName }}</van-col>
<van-col span="8" :style="{ <van-col span="8" :style="{
color: color:
item.status == 'wait' item.status == 'wait'
? '#F79648' ? '#F79648'
: item.status == 'finish' : item.status == 'finish'
? '#03B615' ? '#03B615'
: '#FF041D' : '#FF041D'
}">{{ }">{{
item.status == "wait" item.status == "wait"
? "待评估" ? "待评估"
: item.status == "finish" : item.status == "finish"
? "已完成" ? "已完成"
: "已退回" : "已退回"
}}</van-col> }}</van-col>
</van-row> </van-row>
<van-row> <van-row>
...@@ -343,10 +329,10 @@ ...@@ -343,10 +329,10 @@
<van-row> <van-row>
<van-button type="info" size="mini" @click=" <van-button type="info" size="mini" @click="
{ {
checkValue = [item.buildingId]; checkValue = [item.buildingId];
approveTask(0); approveTask(0);
} }
">审批否决</van-button> ">审批否决</van-button>
</van-row></van-col> </van-row></van-col>
</van-row> </van-row>
</van-cell-group> </van-cell-group>
...@@ -363,10 +349,10 @@ ...@@ -363,10 +349,10 @@
bottom: 0;"> bottom: 0;">
<div @click=" <div @click="
{ {
checkValue = []; checkValue = [];
isShowAppvoreList = false; isShowAppvoreList = false;
} }
" style="color: #FB6260;font-size: 14px;font-weight: 600;"> " style="color: #FB6260;font-size: 14px;font-weight: 600;">
<div style="font-size: 22px;"><van-icon name="cross" /></div> <div style="font-size: 22px;"><van-icon name="cross" /></div>
<div>返回</div> <div>返回</div>
</div> </div>
...@@ -452,7 +438,10 @@ export default { ...@@ -452,7 +438,10 @@ export default {
timestampToTimes(time, type) { timestampToTimes(time, type) {
return timestampToTime(new Date(time), type, true); return timestampToTime(new Date(time), type, true);
}, },
fileUrl() {
// return window.location.origin + '/dev-api/profile/upload/report/风险评估报告模板.docx'
return 'http://rongtongpc.censoft.com.cn/dev-api/profile/upload/report/风险评估报告模板.docx'
},
/* swp add 风险清单筛选 */ /* swp add 风险清单筛选 */
changeData(arr) { changeData(arr) {
if (Array.isArray(arr)) { if (Array.isArray(arr)) {
......
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