Browse Source

社会组织bug

feature
jianjun 3 years ago
parent
commit
e2f43eabaa
  1. 12
      src/views/modules/communityService/shzz/cpts/edit.vue
  2. 1
      src/views/modules/communityService/shzz/index.vue

12
src/views/modules/communityService/shzz/cpts/edit.vue

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

1
src/views/modules/communityService/shzz/index.vue

@ -258,6 +258,7 @@ export default {
}, },
watch: { watch: {
"fmData.serviceTime": function (val) { "fmData.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.fmData.serviceStartTime = val[0]; this.fmData.serviceStartTime = val[0];
this.fmData.serviceEndTime = val[1]; this.fmData.serviceEndTime = val[1];

Loading…
Cancel
Save