From ea988a2af199f0aa73a9d841c0566dff2144e46b Mon Sep 17 00:00:00 2001 From: bibi <541660090@qq.com> Date: Thu, 24 Feb 2022 11:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/operation/activity/organizer.js | 4 +- src/components/searchForm/index.vue | 13 +- src/router/operation.js | 42 +++- .../Activity/_activityManage/depend/config.js | 43 ++-- .../Activity/_activityManage/depend/form.js | 1 + .../Activity/_activityManage/index.vue | 8 +- .../Activity/_organizers/depend/config.js | 65 ++++++ .../Activity/_organizers/depend/form.js | 25 +++ .../Activity/_organizers/depend/form.vue | 196 ++++++++++++++++++ .../Operation/Activity/_organizers/index.vue | 169 ++++++++++++++- .../Announcement/_announcementItem/index.vue | 0 .../_announcementManage/index.vue | 0 src/views/Operation/Announcement/index.vue | 13 ++ src/views/Operation/News/index.vue | 13 ++ 14 files changed, 568 insertions(+), 24 deletions(-) create mode 100644 src/views/Operation/Activity/_organizers/depend/config.js create mode 100644 src/views/Operation/Activity/_organizers/depend/form.js create mode 100644 src/views/Operation/Activity/_organizers/depend/form.vue create mode 100644 src/views/Operation/Announcement/_announcementItem/index.vue create mode 100644 src/views/Operation/Announcement/_announcementManage/index.vue create mode 100644 src/views/Operation/Announcement/index.vue create mode 100644 src/views/Operation/News/index.vue diff --git a/src/api/operation/activity/organizer.js b/src/api/operation/activity/organizer.js index 392b3b8..54947b1 100644 --- a/src/api/operation/activity/organizer.js +++ b/src/api/operation/activity/organizer.js @@ -11,14 +11,14 @@ export function organizerList(params) { export function organizerInfo(params) { return httpService({ url: `/user/activityOrganizer/findById`, - method: 'post', + method: 'get', params: params, }) } export function organizerInsert(params) { return httpService({ url: `/user/activityOrganizer/insert`, - method: 'get', + method: 'post', data: params, }) } diff --git a/src/components/searchForm/index.vue b/src/components/searchForm/index.vue index a50b537..6b15489 100644 --- a/src/components/searchForm/index.vue +++ b/src/components/searchForm/index.vue @@ -21,6 +21,7 @@ >{{ option.name }} +
查询 @@ -41,7 +42,12 @@ export default { this.itemList = val let obj = {} for(let k of val){ - obj[k.prop] = undefined; + if(k.type==='time'){ + obj[k.start] = undefined + obj[k.end] = undefined + }else{ + obj[k.prop] = undefined; + } } this.form = obj; }, @@ -63,6 +69,11 @@ export default { this.$refs.ruleForm.resetFields(); this.$emit('getSearch', this.form) }, + changeTime(data,start,end){ + this.$emit('changeTime', data,start,end) + this.form[start] = data[0] + this.form[end] = data[1] + } }, }; diff --git a/src/router/operation.js b/src/router/operation.js index 12c3eb0..8662d07 100644 --- a/src/router/operation.js +++ b/src/router/operation.js @@ -20,7 +20,7 @@ export default [ path: '/Activity', name: "Activity", title: "活动", - icon: 'form', + icon: 'notification', hide: false, component: resolve => require(['@/views/Operation/Activity'], resolve), redirect: '/Activity/ActivityManage', @@ -44,6 +44,46 @@ export default [ }, ] }, + { + path: '/Announcement', + name: "Announcement", + title: "公告", + icon: 'file-search', + hide: false, + component: resolve => require(['@/views/Operation/Announcement'], resolve), + redirect: '/Announcement/AnnouncementManage', + meta: {title: '公告'}, + children: [ + { + path: '/Announcement/AnnouncementManage', + name: "AnnouncementManage", + title: "公告管理", + hide: false, + component: resolve => require(['@/views/Operation/Announcement/_announcementManage'], resolve), + meta: {title: '公告管理'}, + }, + { + path: '/Announcement/AnnouncementItem', + name: "AnnouncementItem", + title: "公告分类", + hide: false, + component: resolve => require(['@/views/Operation/Announcement/_announcementItem'], resolve), + meta: {title: '公告分类'}, + }, + ] + }, + { + path: '/News', + name: "News", + title: "资讯", + icon: 'global', + hide: false, + component: resolve => require(['@/views/Operation/News'], resolve), + redirect: '/News/', + meta: {title: '活动'}, + children: [ + ] + }, { path: '/TaskManage', name: "TaskManage", diff --git a/src/views/Operation/Activity/_activityManage/depend/config.js b/src/views/Operation/Activity/_activityManage/depend/config.js index 4246630..d8aa496 100644 --- a/src/views/Operation/Activity/_activityManage/depend/config.js +++ b/src/views/Operation/Activity/_activityManage/depend/config.js @@ -1,24 +1,43 @@ export const formItem = [ - { - type: 'input', - label:'话题标题', - prop:'title', - placeholder:'请输入标题' - }, + { type: 'select', label:'状态', prop:'status', - option:[{ id:1,name:'启用中'},{ id:2,name:'禁用中'}], + option:[{ id:1,name:'报名未开始'},{ id:2,name:'报名进行中'},{ id:3,name:'活动未开始'},{ id:4,name:'活动进行中'},{ id:5,name:'活动已结束'}], placeholder:'请选择状态' }, { - type: 'select', - label:'是否公开', - prop:'isPublic', - placeholder:'请选择', - option:[{ id:1,name:'是'},{ id:0,name:'否'}] + type: 'time', + label:'报名时间', + start: 'registrationStartTime', + end:'registrationEndTime', + }, + { + type: 'time', + label:'活动时间', + start: 'activityStartTime', + end:'activityEndTime', + }, + { + type: 'input', + label:'活动标题', + prop:'title', + placeholder:'请输入' + }, + { + type: 'input', + label:'主办方', + prop:'organizerName', + placeholder:'请输入' + }, + { + type: 'input', + label:'活动联系人', + prop:'activityContact', + placeholder:'请输入' }, + ] export const columns = [ { diff --git a/src/views/Operation/Activity/_activityManage/depend/form.js b/src/views/Operation/Activity/_activityManage/depend/form.js index 3756e94..4038b9a 100644 --- a/src/views/Operation/Activity/_activityManage/depend/form.js +++ b/src/views/Operation/Activity/_activityManage/depend/form.js @@ -1,4 +1,5 @@ export const form = { + id:undefined, title:undefined, organizerId:undefined, isShow:false, diff --git a/src/views/Operation/Activity/_activityManage/index.vue b/src/views/Operation/Activity/_activityManage/index.vue index ff2218c..c8d9f2f 100644 --- a/src/views/Operation/Activity/_activityManage/index.vue +++ b/src/views/Operation/Activity/_activityManage/index.vue @@ -1,7 +1,7 @@