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 @@
活动管理
-
+
新增活动
@@ -127,6 +127,12 @@ export default {
this.pagination.total = res.data.total;
this.selectedRowKeys=[]
},
+ changeTime(data,start,end){
+ console.log(start);
+ this.searchForm[start] = data[0]
+ this.searchForm[end] = data[1]
+ console.log(this.searchForm);
+ },
edit(id) {
this.editId = id;
this.drawer.show = true;
diff --git a/src/views/Operation/Activity/_organizers/depend/config.js b/src/views/Operation/Activity/_organizers/depend/config.js
new file mode 100644
index 0000000..0fa2353
--- /dev/null
+++ b/src/views/Operation/Activity/_organizers/depend/config.js
@@ -0,0 +1,65 @@
+export const formItem = [
+ {
+ type: 'input',
+ label:'话题标题',
+ prop:'title',
+ placeholder:'请输入标题'
+ },
+ {
+ type: 'select',
+ label:'状态',
+ prop:'status',
+ option:[{ id:1,name:'启用中'},{ id:2,name:'禁用中'}],
+ placeholder:'请选择状态'
+ },
+ {
+ type: 'select',
+ label:'是否公开',
+ prop:'isPublic',
+ placeholder:'请选择',
+ option:[{ id:1,name:'是'},{ id:0,name:'否'}]
+ },
+]
+export const columns = [
+ {
+ title: "主办方单位",
+ dataIndex: "unit",
+ width: "16%",
+ },
+ {
+ title: "联系人",
+ dataIndex: "contact",
+ width: "12%",
+ },
+ {
+ title: "联系方式",
+ dataIndex: "tel",
+ width: "15%",
+ },
+ {
+ title: "举办次数",
+ dataIndex: "holdNum",
+ width: "12%",
+ },
+ {
+ title: "创建时间",
+ dataIndex: "createDate",
+ width: "20%",
+ },
+ {
+ title: "操作",
+ dataIndex: "action",
+ key: "action",
+ width: "180",
+ fixed: "right",
+ scopedSlots: { customRender: "action" },
+ },
+]
+export const pagination = {
+ current: 1,
+ total: 0,
+ pageSize: 10,
+ showTotal: (total) => `共 ${total} 条`,
+ showSizeChanger: true,
+ showQuickJumper: true,
+}
\ No newline at end of file
diff --git a/src/views/Operation/Activity/_organizers/depend/form.js b/src/views/Operation/Activity/_organizers/depend/form.js
new file mode 100644
index 0000000..fae4cef
--- /dev/null
+++ b/src/views/Operation/Activity/_organizers/depend/form.js
@@ -0,0 +1,25 @@
+export const form = {
+ id:undefined,
+ unit:undefined,
+ contact:undefined,
+ tel:undefined,
+ idType:undefined,
+ idNumber:undefined,
+ remarks:undefined,
+ imgUrls:[],
+}
+export const rules = {
+ unit:[{required:true,message:'请输入标题',trigger:'blur'}],
+ contact:[{required:true,message:'请输入标题',trigger:'blur'}],
+ tel:[{required:true,message:'请输入标题',trigger:'blur'}],
+ idType:[{required:true,message:'请选择',trigger:'change'}],
+ idNumber:[{required:true,message:'请输入标题',trigger:'blur'}],
+ remarks:[{required:true,message:'请输入标题',trigger:'blur'}],
+}
+export const options = {
+ idType:[
+ { id:1, name:'身份证' },
+ { id:2, name:'营业执照' },
+ ],
+
+}
\ No newline at end of file
diff --git a/src/views/Operation/Activity/_organizers/depend/form.vue b/src/views/Operation/Activity/_organizers/depend/form.vue
new file mode 100644
index 0000000..28f0255
--- /dev/null
+++ b/src/views/Operation/Activity/_organizers/depend/form.vue
@@ -0,0 +1,196 @@
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 主办方图片
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Operation/Activity/_organizers/index.vue b/src/views/Operation/Activity/_organizers/index.vue
index dd7092b..68689c9 100644
--- a/src/views/Operation/Activity/_organizers/index.vue
+++ b/src/views/Operation/Activity/_organizers/index.vue
@@ -1,13 +1,168 @@
-
+
+
活动主办方
+
+
新增主办方
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+ 批量删除
+
+ 批量操作
+
+
+
+ {{ `已选择 ${selectedRowKeys.length} 条` }}
+
+
+
+
+
-
-
\ No newline at end of file
+
diff --git a/src/views/Operation/Announcement/_announcementItem/index.vue b/src/views/Operation/Announcement/_announcementItem/index.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/Operation/Announcement/_announcementManage/index.vue b/src/views/Operation/Announcement/_announcementManage/index.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/Operation/Announcement/index.vue b/src/views/Operation/Announcement/index.vue
new file mode 100644
index 0000000..b0561c2
--- /dev/null
+++ b/src/views/Operation/Announcement/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Operation/News/index.vue b/src/views/Operation/News/index.vue
new file mode 100644
index 0000000..b0561c2
--- /dev/null
+++ b/src/views/Operation/News/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
\ No newline at end of file