-
@@ -160,26 +160,13 @@ export default {
advertisingTag(){
},
async initForm(typeid,row) {
- console.log(row,typeid,'row');
-
this.startLoading();
- this.formData = JSON.parse(JSON.stringify(row));
+ if(row!=null){
+ this.formData = JSON.parse(JSON.stringify(row));
+ }
+
this.formType=typeid
console.log(this.formData);
- // console.log(this.formData,'this.formData');
- // // this.initLoading = true;
- // // // console.log('this.formData,',this.formData);
-
- // // let { latitude, longitude } = this.$store.state.user;
- // // console.log("lat" + latitude + ",lon" + longitude);
- // // if (this.formData.latitude && this.formData.longitude) {
- // // latitude = this.formData.latitude;
- // // longitude = this.formData.longitude;
- // // }
- // // if (!latitude || latitude == "" || latitude == "0") {
- // // latitude = 39.9088810666821;
- // // longitude = 116.39743841556731;
- // // }
this.endLoading();
},
async advertisingTag () {
diff --git a/src/views/modules/communityParty/comPromotion/event.vue b/src/views/modules/communityParty/comPromotion/event.vue
index 6820df6f0..1cf3ed53e 100644
--- a/src/views/modules/communityParty/comPromotion/event.vue
+++ b/src/views/modules/communityParty/comPromotion/event.vue
@@ -21,7 +21,7 @@
发布时间:
- {{ formData.releaseTime || "--" }}至{{ formData.endTime || "--" }}
+ {{ formData.releaseTime || "--" }}
状态:
diff --git a/src/views/modules/communityParty/comPromotion/index.vue b/src/views/modules/communityParty/comPromotion/index.vue
index 51eac7a7a..8f7ba9a07 100644
--- a/src/views/modules/communityParty/comPromotion/index.vue
+++ b/src/views/modules/communityParty/comPromotion/index.vue
@@ -202,14 +202,6 @@
}
this.tableLoading = false
},
- handleAdd () {
- this.formTitle = '新增'
-
- this.formShow = true
- this.$nextTick(() => {
- // this.$refs.ref_form.initForm('add', null)
- })
- },
diaClose () {
// this.$refs.ref_form.resetData()
@@ -234,10 +226,9 @@
handleAdd () {
this.formTitle = '新增'
-
this.formShow = true
this.$nextTick(() => {
- // this.$refs.ref_form.initForm('add', null)
+ this.$refs.ref_form.initForm('add',null)
})
},
handleEdit (row) {