修改
This commit is contained in:
@@ -71,7 +71,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"
|
||||
@@ -81,9 +81,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"
|
||||
@@ -93,6 +94,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">
|
||||
@@ -396,7 +398,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 text4 = this.fomattPic()
|
||||
|
||||
Reference in New Issue
Block a user