Commit 76665a98 authored by kaitly205422@163.com's avatar kaitly205422@163.com

新增下载附件填写意见接口

parent 25f5f2f3
<template>
<div>
<LHeader text="备注"></LHeader>
<van-field
v-model="messageText"
rows="10"
autosize
label="备注信息"
type="textarea"
maxlength="500"
placeholder="请输入备注信息"
show-word-limit
/>
<div
style="display: flex;
<van-field v-model="messageText" rows="10" autosize label="备注信息" type="textarea" maxlength="500"
placeholder="请输入备注信息" show-word-limit />
<div style="display: flex;
justify-content: space-around;
background-color: #fff;
border-top: 1px solid #e3e3e3;
......@@ -20,12 +11,8 @@
width: 100%;
text-align: center;
position: fixed;
bottom: 0;"
>
<div
@click="appvore"
style="color: #4bced0;font-size: 14px;font-weight: 600;"
>
bottom: 0;">
<div @click="appvore" style="color: #4bced0;font-size: 14px;font-weight: 600;">
<div style="font-size: 22px;"><van-icon name="success" /></div>
<div>保存</div>
</div>
......@@ -74,15 +61,17 @@ export default {
buildingDtos: buildingDtos
};
postFun("/risk/plan/approve", params)
.then(res => {})
.then(res => {
this.$router.replace({
name: "riskApprove",
params: {}
});
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("加载失败,请稍后再试");
});
this.$router.replace({
name: "riskApprove",
params: {}
});
}
},
watch: {}
......
......@@ -192,23 +192,23 @@
</div>
</van-tab>
<van-tab title="评估报告">
<a style="height: 1.5rem;
<div style="height: 1.5rem;
background-color: #fff;
border-bottom: 1px solid #97999a;
display: flex;
justify-content: space-between;
line-height: 1.5rem;
color:#010101;
" :href="fileUrl()" target="_blank">
" @click="adviceOpen">
<div><van-icon name="column" size="26px" /></div>
<div style="flex-grow:1;line-height: 0.6rem">
<div>风险评估报告模板.docx</div>
<div>2019-3-21 10:23 154KB</div>
<div>2019-3-21 10:23</div>
</div>
<div>
<van-icon name="arrow" size="26px" />
</div>
</a>
</div>
</van-tab>
</van-tabs>
</div>
......@@ -373,6 +373,11 @@
</div>
</van-cell-group>
</van-popup>
<van-dialog v-model="advice.visible" title="标题" show-cancel-button :before-close="isCloseAdvice"
@cancel="cancelAdvice">
<van-field class="advice-field" required v-model="advice.value" type="textarea" label="风险管控建议"
placeholder="请输入风险管控建议" />
</van-dialog>
</div>
</template>
......@@ -387,6 +392,12 @@ export default {
},
data() {
return {
advice: {
visible: false,
value: '',
open: this.adviceOpen,
close: this.adviceClose
},
text: "任务单",
searchValue: "",
messageText: "",
......@@ -435,6 +446,32 @@ export default {
this.getBuildingFList()
},
methods: {
adviceOpen() {
this.advice.visible = true;
},
adviceClose() {
this.advice.visible = false;
},
isCloseAdvice(action, done) {
if (action === 'confirm') {
if (this.advice.value.trim() == "") {
this.$toast.fail("请输入风险管控建议");
done(false);
return;
} else {
postFun(`/risk/advise`, {
value: this.advice.value,
id: this.planId
}).then(res => {
done();
window.open(res.data);
})
}
} else {
this.advice.value = "";
done();
}
},
timestampToTimes(time, type) {
return timestampToTime(new Date(time), type, true);
},
......@@ -781,4 +818,11 @@ p {
text-overflow: ellipsis;
overflow: hidden;
}
.advice-field {
::v-deep .van-field__body {
background: #f5f5f5;
padding: 3px 10px;
}
}
</style>
......@@ -4,21 +4,11 @@
<van-sticky offset-top="0">
<LHeader :text="text"></LHeader>
</van-sticky>
<van-tabs
v-model="active"
@change="postList"
color="#2980f7"
animated
:sticky="true"
>
<van-tabs v-model="active" @change="postList" color="#2980f7" animated :sticky="true">
<van-tab v-for="item in tabs" :key="item.key" :title="item.title">
<!-- 内容列表 -->
<div class="con-list">
<van-cell-group
inset
v-for="(item, index) in messageList"
:key="index"
>
<van-cell-group inset v-for="(item, index) in messageList" :key="index">
<div style="font-size: 0.45rem;padding: 5px 0;">
{{ item.name }}
</div>
......@@ -31,44 +21,35 @@
<van-row gutter="">
<van-col span="9">发起时间:</van-col>
<van-col span="15">{{
timestampToTimes(item.startTime)
}}</van-col>
timestampToTimes(item.startTime)
}}</van-col>
</van-row>
</van-col>
<van-col span="7">
<van-row
:style="{
color:
active == 0
? '#f79648'
: active == 1
? '#0069e5'
: '#03b615'
}"
>
<van-row :style="{
color:
active == 0
? '#f79648'
: active == 1
? '#0069e5'
: '#03b615'
}">
{{ item.state }}
</van-row>
<van-row>
<van-button
type="info"
size="mini"
@click="todetail(index, item)"
>{{ active == 0 ? "去审批" : "查看详情" }}</van-button
>
<van-button type="info" size="mini" @click="todetail(index, item)">{{ active == 0 ? "去审批" : "查看详情"
}}</van-button>
</van-row>
</van-col>
</van-row>
</van-cell-group>
<div
style="
<div style="
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
"
v-if="messageList['length'] == 0"
>
" v-if="messageList['length'] == 0">
暂无数据
</div>
</div>
......
......@@ -10,8 +10,8 @@ module.exports = {
proxy: {
//配置跨域
"/app-api": {
target: "http://192.168.4.232:8080/", //这里是后台的地址
// target: "http://192.168.15.230:8080/", //这里是晓晋的地址
// target: "http://192.168.4.232:8080/", //这里是后台的地址
target: "http://192.168.15.230:8080/", //这里是晓晋的地址
ws: true,
changOrigin: true, //允许跨域
// logLevel: 'debug', // 显示代理调试信息
......
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