|
|
@ -40,7 +40,7 @@
|
|
|
|
是否确定删除此条信息?
|
|
|
|
是否确定删除此条信息?
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
<template v-if="pageType === 1">
|
|
|
|
<template v-if="pageType === 1">
|
|
|
|
|
|
|
|
<HeartActivityInfo @cancel="cancel" :courseId="courseId"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -50,6 +50,7 @@
|
|
|
|
import Upload from '../../../../../../components/common/uploader/Upload.vue';
|
|
|
|
import Upload from '../../../../../../components/common/uploader/Upload.vue';
|
|
|
|
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
|
|
|
|
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
|
|
import HeartActivityInfo from './heartActivityInfo.vue';
|
|
|
|
const tableColumn = [
|
|
|
|
const tableColumn = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataIndex: 'index',
|
|
|
|
dataIndex: 'index',
|
|
|
@ -106,77 +107,41 @@
|
|
|
|
tableColumn: tableColumn,
|
|
|
|
tableColumn: tableColumn,
|
|
|
|
dataList: [],
|
|
|
|
dataList: [],
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
activityId:"",//活动ID
|
|
|
|
courseId:"",//课程ID
|
|
|
|
clubId: "",
|
|
|
|
|
|
|
|
clubList:[],
|
|
|
|
|
|
|
|
activityName:"",
|
|
|
|
|
|
|
|
courseDate:"",//课程日期
|
|
|
|
courseDate:"",//课程日期
|
|
|
|
coursePlace:"",//课程地点
|
|
|
|
coursePlace:"",//课程地点
|
|
|
|
courseSpeaker:"",//主讲人
|
|
|
|
courseSpeaker:"",//主讲人
|
|
|
|
attendees:"",//参与人员名单
|
|
|
|
attendees:"",//参与人员名单
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
pageNumber: 1,
|
|
|
|
pageNumber: 1,
|
|
|
|
pageSize: 3,
|
|
|
|
pageSize: 10,
|
|
|
|
totalPage: 0,
|
|
|
|
totalPage: 0,
|
|
|
|
totalNum: 0,
|
|
|
|
totalNum: 0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created(){
|
|
|
|
created(){
|
|
|
|
this.getClubList();
|
|
|
|
this.getPsychologyList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
mounted(){
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getClubList:function(){
|
|
|
|
getPsychologyList:function(){
|
|
|
|
let param = {
|
|
|
|
|
|
|
|
bureau_id: this.BaseConfig.person_info_my.bureau_id,
|
|
|
|
|
|
|
|
club_name: "",
|
|
|
|
|
|
|
|
page_number: 1,
|
|
|
|
|
|
|
|
page_size: 1000000,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
|
|
|
|
url: InterConfig.getClublist.url,
|
|
|
|
|
|
|
|
params: param,
|
|
|
|
|
|
|
|
method: InterConfig.getClublist.method,
|
|
|
|
|
|
|
|
isTestLogin: InterConfig.getClublist.isTestLogin,
|
|
|
|
|
|
|
|
}], (result) => {
|
|
|
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
|
|
|
let dataList = resData.data.list;
|
|
|
|
|
|
|
|
if(dataList && dataList.length > 0){
|
|
|
|
|
|
|
|
this.clubList = dataList;
|
|
|
|
|
|
|
|
this.clubId = dataList[0].club_id;
|
|
|
|
|
|
|
|
this.getClubActivityList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onChange(value, dateString) {
|
|
|
|
|
|
|
|
this.activityDate = dateString;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
search:function () {
|
|
|
|
|
|
|
|
this.getClubActivityList();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
clubChange:function(value){
|
|
|
|
|
|
|
|
this.clubId = value;
|
|
|
|
|
|
|
|
this.getClubActivityList();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getClubActivityList: function () {
|
|
|
|
|
|
|
|
let param = {
|
|
|
|
let param = {
|
|
|
|
bureau_id: this.BaseConfig.person_info_my.bureau_id,
|
|
|
|
bureau_id: this.BaseConfig.person_info_my.bureau_id,
|
|
|
|
club_id: this.clubId,
|
|
|
|
course_name: this.courseName,
|
|
|
|
activity_name:this.activityName,
|
|
|
|
course_date:this.courseDate,
|
|
|
|
activity_date:this.activityDate,
|
|
|
|
course_place:this.coursePlace,
|
|
|
|
activity_place:this.activityPlace,
|
|
|
|
course_speaker:this.courseSpeaker,
|
|
|
|
|
|
|
|
attendees:this.attendees,
|
|
|
|
page_number: this.pageNumber,
|
|
|
|
page_number: this.pageNumber,
|
|
|
|
page_size: this.pageSize,
|
|
|
|
page_size: this.pageSize,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
url: InterConfig.getClubActivityList.url,
|
|
|
|
url: InterConfig.getPsychologyList.url,
|
|
|
|
params: param,
|
|
|
|
params: param,
|
|
|
|
method: InterConfig.getClubActivityList.method,
|
|
|
|
method: InterConfig.getPsychologyList.method,
|
|
|
|
isTestLogin: InterConfig.getClubActivityList.isTestLogin,
|
|
|
|
isTestLogin: InterConfig.getPsychologyList.isTestLogin,
|
|
|
|
}], (result) => {
|
|
|
|
}], (result) => {
|
|
|
|
let resData = result[0].data;
|
|
|
|
let resData = result[0].data;
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
if (resData.code === 2000) {
|
|
|
@ -192,38 +157,43 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onChange(value, dateString) {
|
|
|
|
|
|
|
|
this.courseDate = dateString;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
search:function () {
|
|
|
|
|
|
|
|
this.getPsychologyList();
|
|
|
|
|
|
|
|
},
|
|
|
|
onPageChange: function (page) {
|
|
|
|
onPageChange: function (page) {
|
|
|
|
this.pageNumber = page;
|
|
|
|
this.pageNumber = page;
|
|
|
|
this.getClubActivityList();
|
|
|
|
this.getPsychologyList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toAdd: function () {
|
|
|
|
toAdd: function () {
|
|
|
|
this.activityId = "";
|
|
|
|
this.courseId = "";
|
|
|
|
this.pageType = 1;
|
|
|
|
this.pageType = 1;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toEdit: function (record) {
|
|
|
|
toEdit: function (record) {
|
|
|
|
this.pageType = 1;
|
|
|
|
this.pageType = 1;
|
|
|
|
this.activityId = record.activity_id + "";
|
|
|
|
this.courseId = record.course_id + "";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toDelete: function (record) {
|
|
|
|
toDelete: function (record) {
|
|
|
|
this.activityId = record.activity_id + "";
|
|
|
|
this.courseId = record.course_id + "";
|
|
|
|
this.visible = true;
|
|
|
|
this.visible = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cancel: function () {
|
|
|
|
cancel: function () {
|
|
|
|
this.pageType = 0;
|
|
|
|
this.pageType = 0;
|
|
|
|
this.getClubList();
|
|
|
|
this.getPsychologyList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//确定删除
|
|
|
|
//确定删除
|
|
|
|
handleOk: function () {
|
|
|
|
handleOk: function () {
|
|
|
|
let param = {
|
|
|
|
let param = {
|
|
|
|
activity_ids: this.activityId,
|
|
|
|
course_ids: this.courseId,
|
|
|
|
club_id:this.clubId,
|
|
|
|
|
|
|
|
bureau_id: this.BaseConfig.person_info_my.bureau_id,
|
|
|
|
bureau_id: this.BaseConfig.person_info_my.bureau_id,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
url: InterConfig.deleteClubActivity.url,
|
|
|
|
url: InterConfig.deletePsychology.url,
|
|
|
|
params: param,
|
|
|
|
params: param,
|
|
|
|
method: InterConfig.deleteClubActivity.method,
|
|
|
|
method: InterConfig.deletePsychology.method,
|
|
|
|
isTestLogin: InterConfig.deleteClubActivity.isTestLogin,
|
|
|
|
isTestLogin: InterConfig.deletePsychology.isTestLogin,
|
|
|
|
}], (result) => {
|
|
|
|
}], (result) => {
|
|
|
|
let resData = result[0].data;
|
|
|
|
let resData = result[0].data;
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
if (resData.code === 2000) {
|
|
|
@ -233,13 +203,13 @@
|
|
|
|
centered: true
|
|
|
|
centered: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.handleCancel();
|
|
|
|
this.handleCancel();
|
|
|
|
this.getClubActivityList();
|
|
|
|
this.getPsychologyList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//取消
|
|
|
|
//取消
|
|
|
|
handleCancel: function () {
|
|
|
|
handleCancel: function () {
|
|
|
|
this.activityId = "";
|
|
|
|
this.courseId = "";
|
|
|
|
this.visible = false;
|
|
|
|
this.visible = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -255,7 +225,7 @@
|
|
|
|
ASelect: Select,
|
|
|
|
ASelect: Select,
|
|
|
|
ASelectOption: Select.Option,
|
|
|
|
ASelectOption: Select.Option,
|
|
|
|
Upload,
|
|
|
|
Upload,
|
|
|
|
ActivityInfo,
|
|
|
|
HeartActivityInfo,
|
|
|
|
ADatePicker:DatePicker
|
|
|
|
ADatePicker:DatePicker
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|