|
@@ -9,7 +9,7 @@
|
|
|
@click="backVersion"
|
|
@click="backVersion"
|
|
|
class="Version"
|
|
class="Version"
|
|
|
>
|
|
>
|
|
|
- {{ lang.Returnoldversion }}
|
|
|
|
|
|
|
+ {{ cocoNoteType ? lang.interlearning : lang.Returnoldversion }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="lp_r_box" v-loading="nextStepsLoading">
|
|
<div class="lp_r_box" v-loading="nextStepsLoading">
|
|
|
<div class="lp_r_b_logo">
|
|
<div class="lp_r_b_logo">
|
|
@@ -35,10 +35,11 @@
|
|
|
<span style="margin: 0" v-else>{{ lang.KekeleboPlatform }}</span>
|
|
<span style="margin: 0" v-else>{{ lang.KekeleboPlatform }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="steps == 2">
|
|
<div v-if="steps == 2">
|
|
|
- <div style="margin-left: 10px">{{ codeRes.school }} - {{ codeClassName }}</div>
|
|
|
|
|
|
|
+ <div style="margin-left: 10px" v-if="!cocoNoteCid">{{ codeRes.school }} - {{ codeClassName }}</div>
|
|
|
|
|
+ <div style="margin-left: 10px" v-if="cocoNoteCid && cocoNoteName">{{ cocoNoteName }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
- v-if="steps == 2"
|
|
|
|
|
|
|
+ v-if="steps == 2 && !cocoNoteCid"
|
|
|
style="cursor: pointer"
|
|
style="cursor: pointer"
|
|
|
@click="(steps = 1), (stuInfoCode = {})"
|
|
@click="(steps = 1), (stuInfoCode = {})"
|
|
|
>
|
|
>
|
|
@@ -51,7 +52,7 @@
|
|
|
v-if="['default', 'weChat', 'orgL', 'code','code2'].includes(loginType)"
|
|
v-if="['default', 'weChat', 'orgL', 'code','code2'].includes(loginType)"
|
|
|
style="display: flex;justify-content: space-between;align-items: first baseline;"
|
|
style="display: flex;justify-content: space-between;align-items: first baseline;"
|
|
|
>
|
|
>
|
|
|
- {{ lang.login }}
|
|
|
|
|
|
|
+ {{ cocoNoteType ? lang.interlearning : lang.login }}
|
|
|
<!-- 返回到选择身份 -->
|
|
<!-- 返回到选择身份 -->
|
|
|
<div v-if="logIdentity != 0" @click="backIDyData" class="backIDy">{{ lang.Reidentity }}</div>
|
|
<div v-if="logIdentity != 0" @click="backIDyData" class="backIDy">{{ lang.Reidentity }}</div>
|
|
|
</span>
|
|
</span>
|
|
@@ -434,9 +435,9 @@
|
|
|
:class="[stuInfoCode.userid == i.userid ? 'stuback' : '','nameModule']"
|
|
:class="[stuInfoCode.userid == i.userid ? 'stuback' : '','nameModule']"
|
|
|
@click="selAcc(i)"
|
|
@click="selAcc(i)"
|
|
|
>
|
|
>
|
|
|
- <el-tooltip effect="dark" :content="i.name" placement="top">
|
|
|
|
|
|
|
+ <el-tooltip effect="dark" :content="i.username" placement="top">
|
|
|
<span>
|
|
<span>
|
|
|
- {{ i.name }}
|
|
|
|
|
|
|
+ {{ i.username }}
|
|
|
</span>
|
|
</span>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
</div>
|
|
</div>
|
|
@@ -521,6 +522,15 @@ export default {
|
|
|
showName: "",
|
|
showName: "",
|
|
|
oloading: false,
|
|
oloading: false,
|
|
|
openid: "",
|
|
openid: "",
|
|
|
|
|
+ cocoNoteType: this.$route.query["type"],
|
|
|
|
|
+ cocoNoteCid: this.$route.query["courseid"],
|
|
|
|
|
+ // cocoNoteCid: "da5aa5b7-a98c-11f0-84cf-005056924926",
|
|
|
|
|
+ cocoNoteCon: {
|
|
|
|
|
+ banner: require('../../assets/login/image.png'),
|
|
|
|
|
+ logo: '',
|
|
|
|
|
+ name: '跨学科学习'
|
|
|
|
|
+ },
|
|
|
|
|
+ cocoNoteName:'',
|
|
|
uppercaseAlphabet:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'],
|
|
uppercaseAlphabet:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'],
|
|
|
allowOrgList: [
|
|
allowOrgList: [
|
|
|
{
|
|
{
|
|
@@ -568,6 +578,10 @@ export default {
|
|
|
_result.banner = _obj.banner;
|
|
_result.banner = _obj.banner;
|
|
|
_result.name = _obj.name;
|
|
_result.name = _obj.name;
|
|
|
_result.logo = _obj.logo;
|
|
_result.logo = _obj.logo;
|
|
|
|
|
+ } else if (this.cocoNoteType == 'coconote') {
|
|
|
|
|
+ _result.banner = this.cocoNoteCon.banner;
|
|
|
|
|
+ _result.name = this.cocoNoteCon.name;
|
|
|
|
|
+ _result.logo = this.cocoNoteCon.logo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return _result;
|
|
return _result;
|
|
@@ -588,6 +602,28 @@ export default {
|
|
|
login: "user/login",
|
|
login: "user/login",
|
|
|
logout: "user/logout",
|
|
logout: "user/logout",
|
|
|
}),
|
|
}),
|
|
|
|
|
+ // coconote学生登录
|
|
|
|
|
+ async cocostulog(){
|
|
|
|
|
+ this.steps = 2
|
|
|
|
|
+ let params = [
|
|
|
|
|
+ {
|
|
|
|
|
+ functionName: API_CONFIG.selectSCourseStudents.functionName,
|
|
|
|
|
+ cid: this.cocoNoteCid
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await this.$ajax.post(API_CONFIG.baseUrl, params);
|
|
|
|
|
+ console.log("data", res.data);
|
|
|
|
|
+ if (res.data[0].length) {
|
|
|
|
|
+ this.cocoNoteName = res.data[0][0].title
|
|
|
|
|
+ }
|
|
|
|
|
+ this.classJuri = this.groupByName(res.data[0])
|
|
|
|
|
+ this.nextStepsLoading = false
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ this.nextStepsLoading = false
|
|
|
|
|
+ console.log('error',error);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 返回身份登录页后清除数据
|
|
// 返回身份登录页后清除数据
|
|
|
backIDyData(){
|
|
backIDyData(){
|
|
|
this.password = '';
|
|
this.password = '';
|
|
@@ -627,6 +663,8 @@ export default {
|
|
|
// 返回旧版本
|
|
// 返回旧版本
|
|
|
backVersion() {
|
|
backVersion() {
|
|
|
console.log(this.$region);
|
|
console.log(this.$region);
|
|
|
|
|
+ if (this.cocoNoteType == 'coconote') return console.log('不能返回');
|
|
|
|
|
+
|
|
|
this.$confirm(this.lang.backoldversion, this.lang.tip, {
|
|
this.$confirm(this.lang.backoldversion, this.lang.tip, {
|
|
|
confirmButtonText: this.lang.confirm,
|
|
confirmButtonText: this.lang.confirm,
|
|
|
cancelButtonText: this.lang.Cancel,
|
|
cancelButtonText: this.lang.Cancel,
|
|
@@ -882,7 +920,10 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
this.$router.push({ path: "/kanban" });
|
|
this.$router.push({ path: "/kanban" });
|
|
|
} else {
|
|
} else {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
|
|
|
|
+ this.$router.push(
|
|
|
|
|
+ { path: this.redirect || "/",
|
|
|
|
|
+ query: { cocoNoteType: this.cocoNoteType },
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
this.addOp3(
|
|
this.addOp3(
|
|
|
"1",
|
|
"1",
|
|
@@ -987,7 +1028,10 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
this.$router.push({ path: "/kanban" });
|
|
this.$router.push({ path: "/kanban" });
|
|
|
} else {
|
|
} else {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: this.redirect || "/",
|
|
|
|
|
+ query: { cocoNoteType: this.cocoNoteType }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(this.lang.Bindingfailed);
|
|
this.$message.error(this.lang.Bindingfailed);
|
|
@@ -1012,12 +1056,18 @@ export default {
|
|
|
const hasToken = this.$store.getters.token;
|
|
const hasToken = this.$store.getters.token;
|
|
|
if (hasToken) {
|
|
if (hasToken) {
|
|
|
// 如果已登录,直接重定向
|
|
// 如果已登录,直接重定向
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: this.redirect || "/",
|
|
|
|
|
+ query: { cocoNoteType: this.cocoNoteType }
|
|
|
|
|
+ });
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
const userid = await this.login();
|
|
const userid = await this.login();
|
|
|
if (userid) {
|
|
if (userid) {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: this.redirect || "/",
|
|
|
|
|
+ cocoNoteType: this.cocoNoteType
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// async inpGetAccOrgName(){
|
|
// async inpGetAccOrgName(){
|
|
@@ -1339,7 +1389,10 @@ export default {
|
|
|
) {
|
|
) {
|
|
|
this.$router.push({ path: "/kanban" });
|
|
this.$router.push({ path: "/kanban" });
|
|
|
} else {
|
|
} else {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: this.redirect || "/",
|
|
|
|
|
+ cocoNoteType: this.cocoNoteType
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
this.$message.success(this.lang.Loginsuccessful);
|
|
this.$message.success(this.lang.Loginsuccessful);
|
|
|
|
|
|
|
@@ -1420,7 +1473,7 @@ export default {
|
|
|
// 随机码2登录
|
|
// 随机码2登录
|
|
|
nextSteps2() {
|
|
nextSteps2() {
|
|
|
if (this.SuffixData.length < 5) {
|
|
if (this.SuffixData.length < 5) {
|
|
|
- this.$message.error('请输入正确课程识别码');
|
|
|
|
|
|
|
+ this.$message.error(this.lang.enterCorrectcode);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1625,7 +1678,10 @@ export default {
|
|
|
|
|
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: this.redirect || "/",
|
|
path: this.redirect || "/",
|
|
|
- query: { courseId: this.courseId },
|
|
|
|
|
|
|
+ query: {
|
|
|
|
|
+ courseId: this.cocoNoteType ? this.cocoNoteCid : this.courseId,
|
|
|
|
|
+ cocoNoteType: this.cocoNoteType
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
this.addOp3(
|
|
this.addOp3(
|
|
|
"1",
|
|
"1",
|
|
@@ -1689,11 +1745,15 @@ export default {
|
|
|
if (e.data.code == 200) {
|
|
if (e.data.code == 200) {
|
|
|
_this.getOpenId(e.data.data.openid);
|
|
_this.getOpenId(e.data.data.openid);
|
|
|
} else {
|
|
} else {
|
|
|
- _this.$message.error("扫码登录失败请重新扫码");
|
|
|
|
|
|
|
+ _this.$message.error(this.lang.Scanagain);
|
|
|
_this.wechatLogin();
|
|
_this.wechatLogin();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ if (this.cocoNoteCid) {
|
|
|
|
|
+ this.nextStepsLoading = true
|
|
|
|
|
+ this.cocostulog()
|
|
|
|
|
+ }
|
|
|
this.getLoading();
|
|
this.getLoading();
|
|
|
this.getOrdOidData();
|
|
this.getOrdOidData();
|
|
|
},
|
|
},
|