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()
+2 -2
View File
@@ -93,12 +93,12 @@
<van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" />
<!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> -->
</div>
<div class="little-title">位置信息</div>
<!-- <div class="little-title">位置信息</div>
<van-field v-model="address" center disabled clearable label="" placeholder="位置信息" class="location">
<template #button>
<van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button>
</template>
</van-field>
</van-field> -->
</div>
</van-tab>
<van-tab title="能源管理信息" class="padding">
+5 -3
View File
@@ -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">
@@ -397,7 +399,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 text3 = this.fomattPic()
+7 -3
View File
@@ -75,7 +75,8 @@
</div>
</div> -->
<div class="picStyle borderBot">
<div class="title">设备铭牌</div>
<van-cell class="img-box box1" title="设备铭牌" :required="$store.getters.cityType"/>
<!-- <div class="title">设备铭牌</div> -->
<div class="pic">
<Uploader
type="text2"
@@ -85,9 +86,11 @@
@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="img-box box1" title="设备能效标识" :required="$store.getters.cityType"/>
<!-- <div class="title">设备能效标识</div> -->
<div class="pic">
<Uploader
type="text3"
@@ -97,6 +100,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">
@@ -382,7 +386,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 text1 = this.fomattPic()
+5 -3
View File
@@ -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()