|
@ -294,6 +294,7 @@ export default { |
|
|
props: {}, |
|
|
props: {}, |
|
|
watch: { |
|
|
watch: { |
|
|
"dataForm.serviceTime": function (val) { |
|
|
"dataForm.serviceTime": function (val) { |
|
|
|
|
|
console.log("watch start"+val+'_'+Array.isArray(val)) |
|
|
if (Array.isArray(val) && val.length == 2) { |
|
|
if (Array.isArray(val) && val.length == 2) { |
|
|
this.dataForm.serviceStartTime = val[0]; |
|
|
this.dataForm.serviceStartTime = val[0]; |
|
|
this.dataForm.serviceEndTime = val[1]; |
|
|
this.dataForm.serviceEndTime = val[1]; |
|
@ -440,7 +441,7 @@ export default { |
|
|
async loadAgency() { |
|
|
async loadAgency() { |
|
|
const url = "/epmetuser/customerstaff/staffbasicinfo"; |
|
|
const url = "/epmetuser/customerstaff/staffbasicinfo"; |
|
|
let params = {}; |
|
|
let params = {}; |
|
|
|
|
|
console.log("======loadAgency") |
|
|
const {data, code, msg} = await requestPost(url, params); |
|
|
const {data, code, msg} = await requestPost(url, params); |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
@ -490,6 +491,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async submit() { |
|
|
async submit() { |
|
|
|
|
|
|
|
|
let url = ""; |
|
|
let url = ""; |
|
|
if (this.formType === "add") { |
|
|
if (this.formType === "add") { |
|
|
url = "/heart/societyorg/add"; |
|
|
url = "/heart/societyorg/add"; |
|
@ -522,6 +524,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
resetData() { |
|
|
resetData() { |
|
|
this.societyId = ""; //小区ID |
|
|
this.societyId = ""; //小区ID |
|
|
|
|
|
this.$refs.ref_form.resetFields(); |
|
|
|
|
|
this.propertyFormShow = false; |
|
|
|
|
|
/* |
|
|
this.dataForm = { |
|
|
this.dataForm = { |
|
|
societyName: "", |
|
|
societyName: "", |
|
|
serviceMatters: "", |
|
|
serviceMatters: "", |
|
@ -534,8 +539,9 @@ export default { |
|
|
address: "", |
|
|
address: "", |
|
|
longitude: "", |
|
|
longitude: "", |
|
|
latitude: "", |
|
|
latitude: "", |
|
|
}; |
|
|
imageList:[] |
|
|
this.propertyFormShow = false; |
|
|
};*/ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 开启加载动画 |
|
|
// 开启加载动画 |
|
|
startLoading() { |
|
|
startLoading() { |
|
|