@@ -141,7 +157,8 @@ export default {
activity_start_time: '',
activity_end_time: '',
activity_content: '',
- activity_location: ''
+ activity_location: '',
+ activity_type: null,
},
addMode: false,
isEdit: false,
@@ -163,6 +180,7 @@ export default {
list: [],
columns: [
{colKey: 'activity_name', title: '活动标题', align: 'center'},
+ {colKey: 'activity_type', title: '活动类别', align: 'center'},
{colKey: 'activity_desc', title: '活动简介', align: 'center'},
{colKey: 'activity_image', title: '活动图片', align: 'center'},
{colKey: 'activity_start_time', title: '活动开始时间', align: 'center'},
@@ -276,6 +294,17 @@ export default {
add() {
this.addMode = true;
this.isEdit = false;
+ this.addForm = {
+ activity_name: '',
+ activity_desc: '',
+ activity_image_show: [],
+ activity_image: '',
+ activity_start_time: '',
+ activity_end_time: '',
+ activity_content: '',
+ activity_location: '',
+ activity_type: null,
+ };
},
edit(d) {
console.log(d);
@@ -288,6 +317,7 @@ export default {
this.addForm.activity_end_time = d.activity_end_time;
this.addForm.activity_location = d.activity_location;
this.addForm.activity_content = d.activity_content;
+ this.addForm.activity_type = d.activity_type;
this.addMode = true;
this.isEdit = true;
},
@@ -316,6 +346,10 @@ export default {
this.$message.error('活动简介不能为空');
return;
}
+ if (this.addForm.activity_type == null) {
+ this.$message.error('活动类别不能为空');
+ return;
+ }
if (this.addForm.activity_image == '') {
this.$message.error('活动图片不能为空');
return;
diff --git a/src/pages/association/carousel.vue b/src/pages/association/carousel.vue
new file mode 100644
index 0000000..894121a
--- /dev/null
+++ b/src/pages/association/carousel.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/association/index.vue b/src/pages/association/index.vue
index f723fbc..18f9366 100644
--- a/src/pages/association/index.vue
+++ b/src/pages/association/index.vue
@@ -45,7 +45,7 @@
/>