|
|
|
@ -294,7 +294,6 @@ export default { |
|
|
|
props: {}, |
|
|
|
watch: { |
|
|
|
"dataForm.serviceTime": function (val) { |
|
|
|
console.log("watch start"+val+'_'+Array.isArray(val)) |
|
|
|
if (Array.isArray(val) && val.length == 2) { |
|
|
|
this.dataForm.serviceStartTime = val[0]; |
|
|
|
this.dataForm.serviceEndTime = val[1]; |
|
|
|
@ -391,25 +390,20 @@ export default { |
|
|
|
return isPNG && isLt1M |
|
|
|
}, |
|
|
|
handleProgress(event, file, fileList) { |
|
|
|
console.log('percentage', event, file.percentage) |
|
|
|
this.uploading = true |
|
|
|
this.unloadPencent = Number(file.percentage.toFixed(0)) |
|
|
|
}, |
|
|
|
handleImgSuccess(res, file) { |
|
|
|
if (res.code === 0 && res.msg === 'success') { |
|
|
|
|
|
|
|
console.log('res.data.url', res.data.url) |
|
|
|
this.uploading = false |
|
|
|
this.unloadPencent = 0 |
|
|
|
this.dataForm.imageList.push(res.data.url) |
|
|
|
console.log('handleImgSuccess after',this.dataForm.imageList) |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleDelimg(item, index) { |
|
|
|
this.dataForm.imageList.splice(index, 1) |
|
|
|
console.log('handleDelimg after',this.dataForm.imageList) |
|
|
|
}, |
|
|
|
handleMoveCenter() { |
|
|
|
//修改地图中心点 |
|
|
|
@ -425,7 +419,6 @@ export default { |
|
|
|
this.$refs.ref_form.resetFields(); |
|
|
|
|
|
|
|
this.formType = type; |
|
|
|
console.log(row); |
|
|
|
this.dataForm.imageList = [] |
|
|
|
if (row) { |
|
|
|
this.dataForm = {...this.dataForm, ...row}; |
|
|
|
@ -443,7 +436,6 @@ export default { |
|
|
|
async loadAgency() { |
|
|
|
const url = "/epmetuser/customerstaff/staffbasicinfo"; |
|
|
|
let params = {}; |
|
|
|
console.log("======loadAgency") |
|
|
|
const {data, code, msg} = await requestPost(url, params); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|