From 3b8d5643064efaca339947a916e11641f50aa51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 28 Aug 2024 18:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/volunteer/activityArchive/add.vue | 42 ++-- .../volunteer/activityArchive/index.vue | 4 +- .../volunteer/activityArchive/realselect.vue | 202 ++++++++---------- .../volunteer/activityArchive/select.vue | 38 ++-- 4 files changed, 149 insertions(+), 137 deletions(-) diff --git a/src/views/modules/volunteer/activityArchive/add.vue b/src/views/modules/volunteer/activityArchive/add.vue index 735a39651..2ded9e146 100644 --- a/src/views/modules/volunteer/activityArchive/add.vue +++ b/src/views/modules/volunteer/activityArchive/add.vue @@ -57,7 +57,7 @@ -
+
@@ -104,17 +104,7 @@ - - - - -
-
- -
- - - +
+ + + + + + + + + + @@ -192,7 +192,10 @@ export default { latitude: this.$store.state.user.latitude,//纬度 type:"", online:0, - sponsors:[ + sponsors:[{ + name:"", + phone:"" + } ] }, @@ -258,6 +261,19 @@ export default { }, methods: { + //删除动态 + removeDomain(item) { + var index = this.formData.sponsors.indexOf(item) + if (index !== -1) { + this.formData.sponsors.splice(index, 1) + } + }, + //动态列表 + addDomain() { + console.log(this.formData.sponsors,this.tableDate,); + this.formData.sponsors.push(this.tableDate); + console.log(this.formData.sponsors,this.tableDate,); + }, //控制活动时间 actcontrolTime(){ console.log("dislfj"); diff --git a/src/views/modules/volunteer/activityArchive/index.vue b/src/views/modules/volunteer/activityArchive/index.vue index 026302cdd..37149c6db 100644 --- a/src/views/modules/volunteer/activityArchive/index.vue +++ b/src/views/modules/volunteer/activityArchive/index.vue @@ -124,10 +124,10 @@ import ActivityCountshow from "./Administration.vue" import Points from "./Points.vue" import selecthande from "./select.vue" - import realselect from "./realselect.vue" + import realselect from "./realselect.vue" export default { - components: {add,ActivityCountshow,Points,selecthande }, + components: {add,ActivityCountshow,Points,realselect }, data() { return { diff --git a/src/views/modules/volunteer/activityArchive/realselect.vue b/src/views/modules/volunteer/activityArchive/realselect.vue index be429c203..0a4c15db5 100644 --- a/src/views/modules/volunteer/activityArchive/realselect.vue +++ b/src/views/modules/volunteer/activityArchive/realselect.vue @@ -1,128 +1,116 @@ + + +