|
@@ -22,6 +22,7 @@
|
|
'qm-big-text',
|
|
'qm-big-text',
|
|
'login-type',
|
|
'login-type',
|
|
loginType === 'STUDENT_CODE' && 'active-type',
|
|
loginType === 'STUDENT_CODE' && 'active-type',
|
|
|
|
+ allowLoginType.length === 1 && 'single-login-type',
|
|
]"
|
|
]"
|
|
@click="loginType = 'STUDENT_CODE'"
|
|
@click="loginType = 'STUDENT_CODE'"
|
|
style="border-top-left-radius: 6px"
|
|
style="border-top-left-radius: 6px"
|
|
@@ -34,12 +35,18 @@
|
|
'qm-big-text',
|
|
'qm-big-text',
|
|
'login-type',
|
|
'login-type',
|
|
loginType !== 'STUDENT_CODE' && 'active-type',
|
|
loginType !== 'STUDENT_CODE' && 'active-type',
|
|
|
|
+ allowLoginType.length === 1 && 'single-login-type',
|
|
]"
|
|
]"
|
|
@click="loginType = 'STUDENT_IDENTITY_NUMBER'"
|
|
@click="loginType = 'STUDENT_IDENTITY_NUMBER'"
|
|
style="border-top-right-radius: 6px"
|
|
style="border-top-right-radius: 6px"
|
|
>
|
|
>
|
|
身份证号登录
|
|
身份证号登录
|
|
</a>
|
|
</a>
|
|
|
|
+ <a
|
|
|
|
+ v-if="allowLoginType.length === 0"
|
|
|
|
+ :class="['qm-big-text', 'login-type']"
|
|
|
|
+ >loading...</a
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="qm-title-text" style="margin: 40px 0 20px 0">
|
|
<div class="qm-title-text" style="margin: 40px 0 20px 0">
|
|
@@ -99,6 +106,7 @@
|
|
<div style="position: absolute; right: 20px; bottom: 20px;">
|
|
<div style="position: absolute; right: 20px; bottom: 20px;">
|
|
版本: {{ VUE_APP_GIT_REPO_VERSION }}
|
|
版本: {{ VUE_APP_GIT_REPO_VERSION }}
|
|
</div>
|
|
</div>
|
|
|
|
+ <DevTools />
|
|
</footer>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -107,6 +115,7 @@
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
import { mapMutations } from "vuex";
|
|
import { mapMutations } from "vuex";
|
|
import { FACE_API_MODEL_PATH } from "@/constants/constants";
|
|
import { FACE_API_MODEL_PATH } from "@/constants/constants";
|
|
|
|
+import DevTools from "./DevTools.vue";
|
|
/**
|
|
/**
|
|
* 在任何组件需要强制退出,做以下步骤
|
|
* 在任何组件需要强制退出,做以下步骤
|
|
* 1. this.$Message.info()
|
|
* 1. this.$Message.info()
|
|
@@ -536,7 +545,10 @@ export default {
|
|
return this.QECSConfig.OE_STUDENT_SYS_NAME || "远程教育网络考试";
|
|
return this.QECSConfig.OE_STUDENT_SYS_NAME || "远程教育网络考试";
|
|
},
|
|
},
|
|
allowLoginType() {
|
|
allowLoginType() {
|
|
- return this.QECSConfig.LOGIN_TYPE || [];
|
|
|
|
|
|
+ return (
|
|
|
|
+ (this.QECSConfig.LOGIN_TYPE && this.QECSConfig.LOGIN_TYPE.split(",")) ||
|
|
|
|
+ []
|
|
|
|
+ );
|
|
},
|
|
},
|
|
schoolDomain() {
|
|
schoolDomain() {
|
|
const domain = this.domainInUrl;
|
|
const domain = this.domainInUrl;
|
|
@@ -564,6 +576,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ DevTools,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -620,6 +635,10 @@ export default {
|
|
.active-type {
|
|
.active-type {
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
}
|
|
}
|
|
|
|
+.single-login-type {
|
|
|
|
+ border-top-left-radius: 6px;
|
|
|
|
+ border-top-right-radius: 6px;
|
|
|
|
+}
|
|
|
|
|
|
.close {
|
|
.close {
|
|
position: absolute;
|
|
position: absolute;
|