This commit is contained in:
jiangyinzhi
2024-07-26 10:33:01 +08:00
parent e19c6fa4ea
commit ec2f27d196
18 changed files with 258 additions and 119 deletions
+5 -3
View File
@@ -75,7 +75,7 @@
</div>
</div> -->
<div class="picStyle borderBot">
<div class="title">设备铭牌</div>
<van-cell class="title" title="设备铭牌" :required="$store.getters.cityType"/>
<div class="pic">
<Uploader
type="text2"
@@ -85,9 +85,10 @@
@onUpload="onUpload"
/>
</div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text2.length<1">请上传设备铭牌</div>
</div>
<div class="picStyle">
<div class="title">设备能效标识</div>
<van-cell class="title" title="设备能效标识" :required="$store.getters.cityType"/>
<div class="pic">
<Uploader
type="text3"
@@ -97,6 +98,7 @@
@onUpload="onUpload"
/>
</div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div>
</div>
<div class="footer-btn" @click="save">
@@ -394,7 +396,7 @@ export default {
save() {
if(this.showForm||(this.$store.getters.cityType&&this.text1.length<1)) {
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return
}
const text2 = this.fomattPic()