diff --git a/epmet-oper-web/src/views/modules/customer/customize/StartPage.vue b/epmet-oper-web/src/views/modules/customer/customize/StartPage.vue index 7c68960..233fe65 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/StartPage.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/StartPage.vue @@ -276,16 +276,25 @@ export default { // 重置图片 changeDefault (type) { - let params = {} - if (type === 'resi') { - this.resiForm.url = this.resiForm.defUrl - params = this.resiForm - } else { - this.workForm.url = this.workForm.defUrl - params = this.workForm - } + this.$confirm('确认恢复默认', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(async () => { + let params = {} + if (type === 'resi') { + this.resiForm.url = this.resiForm.defUrl + this.resiForm.time = this.resiForm.defTime + params = this.resiForm + } else { + this.workForm.url = this.workForm.defUrl + this.workForm.time = this.workForm.defTime + params = this.workForm + } + + this.saveImage(params) + }) - this.saveImage(params) }, handelBack () {