Commit fb4aeeb7 authored by 罗新东's avatar 罗新东

修改了文件上传默认的展示图片

parent 144b31e7
Pipeline #7104 passed with stage
in 11 seconds
...@@ -228,7 +228,29 @@ ...@@ -228,7 +228,29 @@
upload-text="最多上传五个" upload-text="最多上传五个"
v-model="uploaderVideo" v-model="uploaderVideo"
accept="video/*" accept="video/*"
/> >
<template slot="default">
<!-- 11111111111 -->
<div
style="
width: 88px;
height: 88px;
background: #f7f8fa;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
"
>
<img
src="@/assets/upload/video.png"
alt=""
style="width: 0.64rem; height: 0.64rem"
/>
<span class="van-uploader__upload-text">最多上传五个</span>
</div>
</template>
</van-uploader>
</template> </template>
</van-field> </van-field>
<van-field <van-field
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
readonly readonly
clickable clickable
required required
label="事故定级"
name="setRank" name="setRank"
:value="setRank" :value="setRank"
placeholder="请选择" placeholder="请选择"
...@@ -170,7 +171,11 @@ ...@@ -170,7 +171,11 @@
upload-text="最多上传五个" upload-text="最多上传五个"
v-model="setRankModeImg" v-model="setRankModeImg"
accept="file" accept="file"
/> >
<!-- <template slot="default">
11111111111
</template> -->
</van-uploader>
</template> </template>
</van-field> </van-field>
...@@ -261,7 +266,29 @@ ...@@ -261,7 +266,29 @@
upload-text="最多上传五个" upload-text="最多上传五个"
v-model="technologyImg" v-model="technologyImg"
accept="file" accept="file"
/> >
<template slot="default">
<!-- 11111111111 -->
<div
style="
width: 88px;
height: 88px;
background: #f7f8fa;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
"
>
<img
src="@/assets/upload/file.png"
alt=""
style="width: 0.64rem; height: 0.64rem"
/>
<span class="van-uploader__upload-text">最多上传五个</span>
</div>
</template>
</van-uploader>
</template> </template>
</van-field> </van-field>
...@@ -282,7 +309,29 @@ ...@@ -282,7 +309,29 @@
upload-text="最多上传五个" upload-text="最多上传五个"
v-model="administrationImg" v-model="administrationImg"
accept="file" accept="file"
/> >
<template slot="default">
<!-- 11111111111 -->
<div
style="
width: 88px;
height: 88px;
background: #f7f8fa;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
"
>
<img
src="@/assets/upload/file.png"
alt=""
style="width: 0.64rem; height: 0.64rem"
/>
<span class="van-uploader__upload-text">最多上传五个</span>
</div>
</template>
</van-uploader>
</template> </template>
</van-field> </van-field>
...@@ -295,6 +344,7 @@ ...@@ -295,6 +344,7 @@
autosize autosize
placeholder="请输入" placeholder="请输入"
/> />
<van-field name="urgentFile" label=" "> <van-field name="urgentFile" label=" ">
<template #input> <template #input>
<van-uploader <van-uploader
...@@ -303,7 +353,29 @@ ...@@ -303,7 +353,29 @@
upload-text="最多上传五个" upload-text="最多上传五个"
v-model="urgentImg" v-model="urgentImg"
accept="file" accept="file"
/> >
<template slot="default">
<!-- 11111111111 -->
<div
style="
width: 88px;
height: 88px;
background: #f7f8fa;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
"
>
<img
src="@/assets/upload/file.png"
alt=""
style="width: 0.64rem; height: 0.64rem"
/>
<span class="van-uploader__upload-text">最多上传五个</span>
</div>
</template>
</van-uploader>
</template> </template>
</van-field> </van-field>
...@@ -583,12 +655,12 @@ export default { ...@@ -583,12 +655,12 @@ export default {
this.urgent = data.emergencyMeasure; this.urgent = data.emergencyMeasure;
this.mainDutyPeopLe = data.mainDutyPeopLe; this.mainDutyPeopLe = data.mainDutyPeopLe;
this.mainDutyDept = data1.dept.deptName; this.mainDutyDept = data1.dept.deptName;
this.technology=data.technicalMeasures; this.technology = data.technicalMeasures;
// urgentImg administrationImg technologyImg // urgentImg administrationImg technologyImg
data.riskFileList4 = data.riskFileList4 || []; data.riskFileList4 = data.riskFileList4 || [];
data.riskFileList3 = data.riskFileList3 || []; data.riskFileList3 = data.riskFileList3 || [];
data.riskFileList2 = data.riskFileList2 || []; data.riskFileList2 = data.riskFileList2 || [];
data.riskFileList1= data.riskFileList1 || []; data.riskFileList1 = data.riskFileList1 || [];
this.technologyFile = data.riskFileList1.map(() => { this.technologyFile = data.riskFileList1.map(() => {
return { return {
...item, ...item,
...@@ -618,9 +690,9 @@ export default { ...@@ -618,9 +690,9 @@ export default {
formdata.append("organizationId", data.responsibilityDept); formdata.append("organizationId", data.responsibilityDept);
postHdPeople(`/riskMain/getUserList`, formdata).then((res) => { postHdPeople(`/riskMain/getUserList`, formdata).then((res) => {
this.columnsMainDutyPeopLe = res.data; this.columnsMainDutyPeopLe = res.data;
this.mainDutyPeopLe=this.columnsMainDutyPeopLe.filter(item=>{ this.mainDutyPeopLe = this.columnsMainDutyPeopLe.filter((item) => {
return item['userId']==data.responsibilityMember return item["userId"] == data.responsibilityMember;
})[0]['userName'] })[0]["userName"];
}); });
// console.log(data) // console.log(data)
this.$toast.clear(); this.$toast.clear();
......
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