|
|
|
@ -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 () { |
|
|
|
|