|
@@ -504,7 +504,7 @@
|
|
|
.taskDetail
|
|
.taskDetail
|
|
|
? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
taskCount
|
|
taskCount
|
|
|
- ].taskDetail)
|
|
|
|
|
|
|
+ ].taskDetail)
|
|
|
: lang.ssNoDesc
|
|
: lang.ssNoDesc
|
|
|
"
|
|
"
|
|
|
></div>
|
|
></div>
|
|
@@ -1116,7 +1116,7 @@
|
|
|
alt
|
|
alt
|
|
|
/>
|
|
/>
|
|
|
<div style="margin: 5px 0">{{ lang.ssQa }}</div>
|
|
<div style="margin: 5px 0">{{ lang.ssQa }}</div>
|
|
|
- <div class="upload_toolBtn" v-if="tType == 1"
|
|
|
|
|
|
|
+ <div class="upload_toolBtn" v-if="tType == 1"
|
|
|
:style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
|
|
:style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
|
|
|
@click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
|
|
@click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
|
|
|
style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
|
|
style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
|
|
@@ -7590,7 +7590,7 @@
|
|
|
</div>-->
|
|
</div>-->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div
|
|
<div
|
|
|
class="vedioBox"
|
|
class="vedioBox"
|
|
|
style="margin-top: 10px; border-radius: 20px"
|
|
style="margin-top: 10px; border-radius: 20px"
|
|
@@ -10990,7 +10990,7 @@
|
|
|
groupStudent[toolindex][gindex][0]
|
|
groupStudent[toolindex][gindex][0]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][0].name
|
|
groupStudent[toolindex][gindex][0].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 4">
|
|
<div v-if="groupJson.number > 4">
|
|
@@ -11020,7 +11020,7 @@
|
|
|
groupStudent[toolindex][gindex][4]
|
|
groupStudent[toolindex][gindex][4]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][4].name
|
|
groupStudent[toolindex][gindex][4].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 8">
|
|
<div v-if="groupJson.number > 8">
|
|
@@ -11083,7 +11083,7 @@
|
|
|
groupStudent[toolindex][gindex][2]
|
|
groupStudent[toolindex][gindex][2]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][2].name
|
|
groupStudent[toolindex][gindex][2].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 6">
|
|
<div v-if="groupJson.number > 6">
|
|
@@ -11113,7 +11113,7 @@
|
|
|
groupStudent[toolindex][gindex][6]
|
|
groupStudent[toolindex][gindex][6]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][6].name
|
|
groupStudent[toolindex][gindex][6].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -11185,7 +11185,7 @@
|
|
|
groupStudent[toolindex][gindex][3]
|
|
groupStudent[toolindex][gindex][3]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][3].name
|
|
groupStudent[toolindex][gindex][3].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 7">
|
|
<div v-if="groupJson.number > 7">
|
|
@@ -11215,7 +11215,7 @@
|
|
|
groupStudent[toolindex][gindex][7]
|
|
groupStudent[toolindex][gindex][7]
|
|
|
? groupStudent[toolindex][gindex] &&
|
|
? groupStudent[toolindex][gindex] &&
|
|
|
groupStudent[toolindex][gindex][7].name
|
|
groupStudent[toolindex][gindex][7].name
|
|
|
- : lang.ssEmptyPosition
|
|
|
|
|
|
|
+ : lang.ssEmptyPosition
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -12789,7 +12789,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
|
- (this.courseDetail.course_teacher &&
|
|
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
|
|
|
this.IsFollow) {
|
|
this.IsFollow) {
|
|
|
this.setCTask();
|
|
this.setCTask();
|
|
@@ -16473,7 +16473,7 @@ export default {
|
|
|
this.getCourseDetail(2);
|
|
this.getCourseDetail(2);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
|
- (this.courseDetail.course_teacher &&
|
|
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
this.setCTask();
|
|
this.setCTask();
|
|
|
}
|
|
}
|
|
@@ -16594,7 +16594,7 @@ export default {
|
|
|
this.getHomeWork();
|
|
this.getHomeWork();
|
|
|
this.getCourseDetail(2);
|
|
this.getCourseDetail(2);
|
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
|
- (this.courseDetail.course_teacher &&
|
|
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
this.setCTask();
|
|
this.setCTask();
|
|
|
}
|
|
}
|
|
@@ -16728,7 +16728,7 @@ export default {
|
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
if ((this.courseDetail.userid == this.userid ||
|
|
|
- (this.courseDetail.course_teacher &&
|
|
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
|
}
|
|
}
|
|
@@ -17141,9 +17141,9 @@ export default {
|
|
|
console.log('this.courseDetail.userid',this.courseDetail.userid);
|
|
console.log('this.courseDetail.userid',this.courseDetail.userid);
|
|
|
console.log('this.userid',this.userid);
|
|
console.log('this.userid',this.userid);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (this.courseDetail.userid == this.userid) {
|
|
if (this.courseDetail.userid == this.userid) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 开局关闭学生查看内容
|
|
// 开局关闭学生查看内容
|
|
|
this.StulookMode(true)
|
|
this.StulookMode(true)
|
|
|
// 开局打开跟随模式
|
|
// 开局打开跟随模式
|
|
@@ -17319,7 +17319,7 @@ export default {
|
|
|
let params = [
|
|
let params = [
|
|
|
{
|
|
{
|
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
|
- cid: this.id,
|
|
|
|
|
|
|
+ cid: this.id + (this.tcid2 || ''),
|
|
|
type: "2",
|
|
type: "2",
|
|
|
time: time,
|
|
time: time,
|
|
|
},
|
|
},
|
|
@@ -17564,7 +17564,7 @@ export default {
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "updateCourseStulook", params)
|
|
.post(this.$store.state.api + "updateCourseStulook", params)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (this.IsStulook == true) {
|
|
if (this.IsStulook == true) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: this.lang.ssStuViewPermOn,
|
|
message: this.lang.ssStuViewPermOn,
|
|
@@ -21007,9 +21007,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
doSyncClassData(){
|
|
doSyncClassData(){
|
|
|
if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
|
|
if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
|
|
|
- let endTime = new Date().toLocaleString("zh-CN", {
|
|
|
|
|
- hour12: false,
|
|
|
|
|
- timeZone: "Asia/Shanghai"
|
|
|
|
|
|
|
+ let endTime = new Date().toLocaleString("zh-CN", {
|
|
|
|
|
+ hour12: false,
|
|
|
|
|
+ timeZone: "Asia/Shanghai"
|
|
|
}).replace(/\//g, "-")
|
|
}).replace(/\//g, "-")
|
|
|
let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
|
|
let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
|
|
|
this.syncClassData({
|
|
this.syncClassData({
|
|
@@ -21077,12 +21077,12 @@ export default {
|
|
|
if (this.lang.lang == 'com') {
|
|
if (this.lang.lang == 'com') {
|
|
|
return val;
|
|
return val;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 处理换行符和HTML实体
|
|
// 处理换行符和HTML实体
|
|
|
const normalized = val
|
|
const normalized = val
|
|
|
.replace(/&/g, '&')
|
|
.replace(/&/g, '&')
|
|
|
.replace(/<br\/?>/g, '\n');
|
|
.replace(/<br\/?>/g, '\n');
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 匹配行内公式($...$)和块级公式($$...$$)
|
|
// 匹配行内公式($...$)和块级公式($$...$$)
|
|
|
return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
|
|
return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
|
|
|
try {
|
|
try {
|
|
@@ -21273,9 +21273,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.setoTime("1");
|
|
this.setoTime("1");
|
|
|
- this.startTime = new Date().toLocaleString("zh-CN", {
|
|
|
|
|
- hour12: false,
|
|
|
|
|
- timeZone: "Asia/Shanghai"
|
|
|
|
|
|
|
+ this.startTime = new Date().toLocaleString("zh-CN", {
|
|
|
|
|
+ hour12: false,
|
|
|
|
|
+ timeZone: "Asia/Shanghai"
|
|
|
}).replace(/\//g, "-");
|
|
}).replace(/\//g, "-");
|
|
|
|
|
|
|
|
// if (this.tType == 1) {
|
|
// if (this.tType == 1) {
|