Michael Wang 5 жил өмнө
parent
commit
d0270080b1

+ 7 - 3
src/components/MainLayout/MainLayout.vue

@@ -28,7 +28,7 @@
             </div>
             <div class="hr info-row">
               <div>学号</div>
-              <div>{{ user.studentCode }}</div>
+              <div>{{ user.studentCodeList.join(",") }}</div>
             </div>
             <div class="hr info-row">
               <div>身份证号</div>
@@ -120,8 +120,12 @@ export default {
       return this.siteMessages.filter(v => v.hasRead === false).length;
     },
     qrValue() {
-      const { rootOrgId, studentCode, identityNumber } = this.user;
-      return JSON.stringify({ rootOrgId, studentCode, identityNumber });
+      const { rootOrgId, studentCodeList, identityNumber } = this.user;
+      return JSON.stringify({
+        rootOrgId,
+        studentCode: studentCodeList.join(","),
+        identityNumber,
+      });
     },
     ifShowQr() {
       const domain = localStorage.getItem("domain") || "";

+ 1 - 1
src/features/Login/Login.vue

@@ -209,7 +209,7 @@ export default {
     if (localStorage.getItem("user-for-reload")) {
       this.loginForm.accountValue = JSON.parse(
         localStorage.getItem("user-for-reload")
-      ).studentCode;
+      ).studentCodeList[0];
       this.loginForm.password =
         process.env.NODE_ENV === "production" ? "" : "180613";
     }

+ 1 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -5,7 +5,7 @@
       <OverallProgress :exam-question-list="examQuestionList"></OverallProgress>
       <div>
         {{ this.$store.state.user.displayName }} -&nbsp;
-        {{ this.$store.state.user.studentCode }}
+        {{ this.$store.state.user.studentCodeList.join(",") }}
       </div>
       <QuestionFilters :exam-question-list="examQuestionList"></QuestionFilters>
       <i-button class="qm-primary-button" @click="submitPaper">交卷</i-button>

+ 1 - 1
src/features/OnlineExam/OnlineExamHome.vue

@@ -51,7 +51,7 @@ export default {
                 </div>
                 <div style="font-weight:bold; line-height: 25px;">
                   姓名:{this.$store.state.user.name} -{" "}
-                  {this.$store.state.user.studentCode}
+                  {this.$store.state.user.studentCodeList.join(",")}
                 </div>
                 <div style="font-weight:bold; line-height: 25px;">
                   专业:{this.$store.state.user.specialty}