From e7eea7aa4b41a72bd0f5981027792c07b0ec6e46 Mon Sep 17 00:00:00 2001
From: gongdi <410827992@qq.com>
Date: Thu, 28 Apr 2022 17:42:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B4=8B=E6=B5=A6=E5=AD=A6=E6=A0=A1=20?=
=?UTF-8?q?=E5=85=AB=E5=A4=A7=E4=B8=AD=E5=BF=83=E5=90=8E=E5=8F=B0=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=20=E5=BF=83=E8=82=B2=E6=B4=BB=E5=8A=A8=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=89=8D=E7=AB=AF=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../moralEducation/heartActivityInfo.vue | 332 ++++++++++++++++++
.../moralEducation/heartActivityList.vue | 94 ++---
2 files changed, 364 insertions(+), 62 deletions(-)
create mode 100644 src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/heartActivityInfo.vue
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
}
}