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

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

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