This commit is contained in:
jiangyinzhi
2024-11-14 11:27:16 +08:00
parent da36f860ca
commit 455c8b58da
19 changed files with 182 additions and 43 deletions
+9 -1
View File
@@ -97,7 +97,7 @@
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div>
</div>
<div class="footer-btn" @click="save">
<div class="footer-btn" @click="handleClick">
<div>保存</div>
</div>
</div>
@@ -120,6 +120,7 @@ import { Notify } from "vant";
import Uploader from '@/views/facilityManage/common-vue/uploader.vue'
import { downloadUrl } from '@/settings'
import {debounce} from '@/utils/common.js'
// import Header from "@/components/headerNew";
export default {
@@ -155,6 +156,7 @@ export default {
img1:'0,0,0',
img2:'0,0,0',
img4:'0,0,0',
doDebounce: null,
}
},
created() {
@@ -166,6 +168,9 @@ export default {
this.getid = msg2.id
}
this.getList();
this.doDebounce = debounce(function () {
this.save()
}, 5000, true)
},
// activated() {
@@ -398,6 +403,9 @@ export default {
})
},
handleClick(){
this.doDebounce()
},
save() {
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return