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