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
@@ -102,7 +102,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>
@@ -128,6 +128,7 @@ import Uploader from '@/views/facilityManage/common-vue/uploader.vue'
import { downloadUrl } from '@/settings'
// import Header from "@/components/headerNew";
import {debounce} from '@/utils/common.js'
export default {
components: {
// Header,
@@ -161,6 +162,7 @@ export default {
img1:'0,0,0',
img3:'0,0,0',
img4:'0,0,0',
doDebounce: null,
}
},
created() {
@@ -172,6 +174,9 @@ export default {
this.getid = msg2.id
}
this.getList();
this.doDebounce = debounce(function () {
this.save()
}, 5000, true)
},
activated() {
@@ -395,6 +400,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))) {