|
@@ -17,9 +17,10 @@
|
|
<el-button type="text" @click="viewDetails(scope.row)">{{$t("htcommunity.view")}}</el-button>
|
|
<el-button type="text" @click="viewDetails(scope.row)">{{$t("htcommunity.view")}}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column :label="this.$t('htcommunity.joinStatus')">
|
|
|
|
|
|
+ <el-table-column :label="this.$t('htcommunity.participantList')">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" @click="viewJoinStatus(scope.row)">{{$t("htcommunity.view")}}</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="viewJoinStatus(scope.row)">{{$t("htcommunity.joinStatus")}}</el-button>
|
|
|
|
+ <el-button type="text" @click="viewFinalJoinStatus(scope.row)">{{$t("htcommunity.joinStatusFinal")}}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :label="this.$t('htcommunity.eventExam')">
|
|
<el-table-column :label="this.$t('htcommunity.eventExam')">
|
|
@@ -168,7 +169,7 @@
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 報名狀況彈出視窗 -->
|
|
<!-- 報名狀況彈出視窗 -->
|
|
- <el-dialog :title="this.$t('htcommunity.joinStatus')" :visible.sync="showJoinModal" width="75%">
|
|
|
|
|
|
+ <el-dialog :title="joinModalTitle" :visible.sync="showJoinModal" width="75%">
|
|
<el-button type="primary" class="btn-new" size="small" style="margin-top: 0; margin-bottom: 10px; margin-left: 0; " @click="exportExcel('teacherCourse')">{{this.$t("htcommunity.export")}}</el-button>
|
|
<el-button type="primary" class="btn-new" size="small" style="margin-top: 0; margin-bottom: 10px; margin-left: 0; " @click="exportExcel('teacherCourse')">{{this.$t("htcommunity.export")}}</el-button>
|
|
<el-table :data="joinTeacherCourseArr" border v-loading="teacherCourseLoading" @sort-change="onSortChangeCourse">
|
|
<el-table :data="joinTeacherCourseArr" border v-loading="teacherCourseLoading" @sort-change="onSortChangeCourse">
|
|
<el-table-column prop="jointGroupName" :label="this.$t('htcommunity.jointGroup')" sortable="custom" min-width="50"></el-table-column>
|
|
<el-table-column prop="jointGroupName" :label="this.$t('htcommunity.jointGroup')" sortable="custom" min-width="50"></el-table-column>
|
|
@@ -243,12 +244,12 @@ export default {
|
|
showJoinModal: false, //報名狀況子視窗
|
|
showJoinModal: false, //報名狀況子視窗
|
|
teacherCourseLoading: false,
|
|
teacherCourseLoading: false,
|
|
joinTeacherCourseArr: [],
|
|
joinTeacherCourseArr: [],
|
|
|
|
+ joinModalTitle: '', //報名狀態視窗標題
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 時程編輯的啟用及關閉 以及 動態切換活動布置及評量可重複啟用及關閉
|
|
// 時程編輯的啟用及關閉 以及 動態切換活動布置及評量可重複啟用及關閉
|
|
scheduleDisabled(scope, column) {
|
|
scheduleDisabled(scope, column) {
|
|
- console.log('scheduleDisabled scope:', scope)
|
|
|
|
if (scope.row.progress === "going") {
|
|
if (scope.row.progress === "going") {
|
|
return true;
|
|
return true;
|
|
} else {
|
|
} else {
|
|
@@ -423,7 +424,6 @@ export default {
|
|
location: item.location,
|
|
location: item.location,
|
|
blobs: item.blobs === null ? "" : item.blobs[0].blob,
|
|
blobs: item.blobs === null ? "" : item.blobs[0].blob,
|
|
}
|
|
}
|
|
- console.log('activity.originalData.schedule', schedule);
|
|
|
|
this.newActivity.planContent.push(schedule);
|
|
this.newActivity.planContent.push(schedule);
|
|
});
|
|
});
|
|
|
|
|
|
@@ -432,16 +432,24 @@ export default {
|
|
//查看報名狀況
|
|
//查看報名狀況
|
|
viewJoinStatus(activity) {
|
|
viewJoinStatus(activity) {
|
|
this.showJoinModal = true;
|
|
this.showJoinModal = true;
|
|
- this.getJoinList(activity);
|
|
|
|
|
|
+ this.joinModalTitle = this.$t('htcommunity.joinStatus');
|
|
|
|
+ this.getJoinList(activity, 'regular');
|
|
|
|
+ },
|
|
|
|
+ //查看決賽名單
|
|
|
|
+ viewFinalJoinStatus(activity) {
|
|
|
|
+ this.showJoinModal = true;
|
|
|
|
+ this.joinModalTitle = this.$t('htcommunity.joinStatusFinal');
|
|
|
|
+ this.getJoinList(activity, 'custom');
|
|
},
|
|
},
|
|
// 取得報名老師資料
|
|
// 取得報名老師資料
|
|
- getJoinList(activity) {
|
|
|
|
|
|
+ getJoinList(activity, type) {
|
|
this.teacherCourseLoading = true;
|
|
this.teacherCourseLoading = true;
|
|
//先清除列表
|
|
//先清除列表
|
|
this.joinTeacherCourseArr.splice(0, this.joinTeacherCourseArr.length);
|
|
this.joinTeacherCourseArr.splice(0, this.joinTeacherCourseArr.length);
|
|
try {
|
|
try {
|
|
let param = {
|
|
let param = {
|
|
- jointEventId: activity.id
|
|
|
|
|
|
+ jointEventId: activity.id,
|
|
|
|
+ type: type
|
|
};
|
|
};
|
|
// 取得報名老師資料API
|
|
// 取得報名老師資料API
|
|
this.$api.htcommunity.jointCourseFind(param).then(
|
|
this.$api.htcommunity.jointCourseFind(param).then(
|