|
@@ -137,12 +137,12 @@
|
|
|
|
|
|
<div class="memberlist-wrap" v-if="customMemberlist!=''">
|
|
|
<div class="listitems">
|
|
|
- <div class="listitem" v-for="(list, index) in customMemberlist" :key="list.listName + index" @click="setCurrentMemberList(list)" :class="{ 'listitem-light': currentMemberList.listID == list.listID&&!isUseIES5studentList }">
|
|
|
- {{ list.listName }}
|
|
|
+ <div class="listitem" v-for="(list,index) in customMemberlist" :key="'initList'+index" @click="setCurrentMemberList(list)" :class="{ 'listitem-light': currentMemberList.id == list.id&&!isUseIES5studentList }">
|
|
|
+ {{ list.name }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="listDetail">
|
|
|
- <div class="list-stu" v-show="Object.keys(currentMemberList).length >= 0" v-for="(stu, index) in currentMemberList.list" :key="index + stu.seatID + stu.memberName">{{ stu.seatID }} {{ stu.memberName }}</div>
|
|
|
+ <div class="list-stu" v-show="Object.keys(currentMemberList).length >= 0" v-for="(stu, index) in currentMemberList.list" :key="index + stu.irs">{{ stu.irs }}{{ stu.name }}</div>
|
|
|
<div class="list-info" v-show="Object.keys(currentMemberList).length == 0">
|
|
|
<p>{{ $t("memberlist['點選左側指定可加入的學生名單']") }}</p>
|
|
|
<p>{{ $t("memberlist['點選Hi進行編輯']") }}</p>
|
|
@@ -6870,7 +6870,6 @@ export default {
|
|
|
IRSBlockSize: this.$store.state.tempIRSBlockSize, // IRS Block 大小
|
|
|
pens: this.$store.state.tempPenstate,
|
|
|
gptActionList:this.$store.state.tempGptActionList,
|
|
|
- memberListIDs:this.customMemberlist.map(item=>item.listID)
|
|
|
};
|
|
|
this.$Spin.show(); // 畫面loading表現你可以自己調整
|
|
|
await this.$store.dispatch("preferences/updProfilePREF", data).then(() => {
|
|
@@ -7046,7 +7045,7 @@ export default {
|
|
|
else if (isPureAccount && this.classInfo.isIES5) type = 2;
|
|
|
else if (!isPureAccount && this.classInfo.isIES5) type = 3;
|
|
|
console.log(type,'AuthType',this.$store.state.loginType)
|
|
|
- return type;
|
|
|
+ return 3;
|
|
|
},
|
|
|
isAuthOpenAIAccount(){
|
|
|
return this.getFunc("aigpt")?.active
|
|
@@ -7445,7 +7444,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
// 初始植
|
|
|
this.activityRecordNumberS = this.classInfo.activityRecordNumber;
|
|
|
|
|
@@ -7513,8 +7512,24 @@ export default {
|
|
|
if (sessionStorage.getItem("currentAnsOption")) this.setAnsOption(sessionStorage.getItem("currentAnsOption"));
|
|
|
else this.setAnsOption(this.getPREFMCQType);
|
|
|
|
|
|
- //帶入自訂名單偏好設定
|
|
|
- this.customMemberlist=this.getPREFMemberList?this.getPREFMemberList.length!=0?await this.$refs.editMemberList.fetchCCroster():[]:[]
|
|
|
+ //帶入自訂名單偏好設定20250523 先註解
|
|
|
+ // this.customMemberlist=this.getPREFMemberList?this.getPREFMemberList.length!=0?await this.$refs.editMemberList.fetchCCroster():[]:[]
|
|
|
+ const res=await this.$api.ies5Api.getIES5TeacherInfo()
|
|
|
+
|
|
|
+ if (res.courses && Array.isArray(res.courses)) {
|
|
|
+ this.customMemberlist = [];
|
|
|
+ res.courses.forEach(course => {
|
|
|
+ if (course.classes && Array.isArray(course.classes)) {
|
|
|
+ const classItems = course.classes.map(classItem => ({
|
|
|
+ id: classItem.stuListId,
|
|
|
+ name: `${course.name || ''}-${classItem.name || ''}`
|
|
|
+ }));
|
|
|
+ this.customMemberlist = [...this.customMemberlist, ...classItems];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log(this.customMemberlist, "7519");
|
|
|
|
|
|
|
|
|
this.getStorageSize("session");
|