|
@@ -54,6 +54,13 @@
|
|
|
end-placeholder="End" style="width: 400px;">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item :label="this.$t('htcommunity.loginType')" prop="loginType">
|
|
|
+ <el-checkbox-group v-model="newActivity.loginType" >
|
|
|
+ <el-checkbox v-for="item in loginTypeOptions" :label="item.value" :key="item.value">{{item.name}}</el-checkbox>
|
|
|
+ <!-- <el-checkbox label="tmdId">醍摩豆帳號登入</el-checkbox>
|
|
|
+ <el-checkbox label="eduId">教育雲登入</el-checkbox> -->
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
<div class="form-right">
|
|
|
<!-- 組別表格 -->
|
|
@@ -228,6 +235,7 @@ export default {
|
|
|
planContent: [
|
|
|
{id:'', step: 1, schedule: [], name: this.$t("htcommunity.jointTime"), location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
],
|
|
|
+ loginType: [],
|
|
|
|
|
|
},
|
|
|
// 表單驗證
|
|
@@ -240,11 +248,20 @@ export default {
|
|
|
required: true, message: this.$t("htcommunity.pleaseEnterSchedule")
|
|
|
}
|
|
|
],
|
|
|
+ loginType: [
|
|
|
+ {
|
|
|
+ required: true, message: this.$t("htcommunity.pleaseEnterloginType")
|
|
|
+ }
|
|
|
+ ],
|
|
|
},
|
|
|
showJoinModal: false, //報名狀況子視窗
|
|
|
teacherCourseLoading: false,
|
|
|
joinTeacherCourseArr: [],
|
|
|
joinModalTitle: '', //報名狀態視窗標題
|
|
|
+ loginTypeOptions : [
|
|
|
+ {name:'醍摩豆帳號登入', value: 'tmdId'},
|
|
|
+ {name:'教育雲登入', value: 'eduId'}
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -284,7 +301,8 @@ export default {
|
|
|
name: item.name,
|
|
|
time: this.$jsFn.secondTimeFormat(item.startTime) + "~" + this.$jsFn.secondTimeFormat(item.endTime),
|
|
|
admin: item.admin[0],
|
|
|
- originalData:item,
|
|
|
+ originalData:item,
|
|
|
+ loginType: item.loginType
|
|
|
}
|
|
|
this.activities.push(activity);
|
|
|
index++;
|
|
@@ -395,6 +413,7 @@ export default {
|
|
|
requireOrderCompletion: false,
|
|
|
planContent: [
|
|
|
],
|
|
|
+ loginType: activity.loginType
|
|
|
};
|
|
|
// #endregion
|
|
|
// #region 設定活動分組
|
|
@@ -594,7 +613,8 @@ export default {
|
|
|
countryId: "TW",
|
|
|
cityId: this.newActivity.region.toString()
|
|
|
},
|
|
|
- admin: [tmdid],
|
|
|
+ admin: [tmdid],
|
|
|
+ loginType: this.newActivity.loginType
|
|
|
};
|
|
|
|
|
|
try {
|
|
@@ -724,7 +744,8 @@ export default {
|
|
|
requireOrderCompletion: false,
|
|
|
planContent: [
|
|
|
{id:'', step: 1, schedule: [], name: this.$t('htcommunity.jointTime'), location: '', description: '', blobs: '', type: true, examType: false, evaluation: false }
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ loginType: []
|
|
|
};
|
|
|
},
|
|
|
//增加分組
|