|
@@ -378,7 +378,7 @@
|
|
添加链接
|
|
添加链接
|
|
</button>
|
|
</button>
|
|
<button class="info_btn" @click="pasteLine(itemTaskIndex)">
|
|
<button class="info_btn" @click="pasteLine(itemTaskIndex)">
|
|
- 粘贴链接
|
|
|
|
|
|
+ 嵌入代码
|
|
</button>
|
|
</button>
|
|
<button class="info_btn" @click="openSource(itemTaskIndex)">
|
|
<button class="info_btn" @click="openSource(itemTaskIndex)">
|
|
添加资源
|
|
添加资源
|
|
@@ -816,7 +816,7 @@
|
|
添加链接
|
|
添加链接
|
|
</button>
|
|
</button>
|
|
<button class="info_btn" @click="pasteLine(itemTaskIndex)">
|
|
<button class="info_btn" @click="pasteLine(itemTaskIndex)">
|
|
- 粘贴链接
|
|
|
|
|
|
+ 嵌入代码
|
|
</button>
|
|
</button>
|
|
<button class="info_btn" @click="openSource(itemTaskIndex)">
|
|
<button class="info_btn" @click="openSource(itemTaskIndex)">
|
|
添加资源
|
|
添加资源
|
|
@@ -2113,7 +2113,7 @@
|
|
">
|
|
">
|
|
返回课程
|
|
返回课程
|
|
</button>
|
|
</button>
|
|
- <button class="info_btn" @click="nextSteps">
|
|
|
|
|
|
+ <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
|
|
确认上传
|
|
确认上传
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@@ -3203,6 +3203,16 @@ export default {
|
|
task: "",
|
|
task: "",
|
|
taskDetail: "",
|
|
taskDetail: "",
|
|
chapterData: [],
|
|
chapterData: [],
|
|
|
|
+ toolChoose: [
|
|
|
|
+ {
|
|
|
|
+ tool: [],
|
|
|
|
+ toolDetail: "",
|
|
|
|
+ toolType: 0,
|
|
|
|
+ askCount: 1,
|
|
|
|
+ askTitle: "",
|
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
toolText: "",
|
|
toolText: "",
|
|
isShowTools: false,
|
|
isShowTools: false,
|
|
askCount: 1,
|
|
askCount: 1,
|
|
@@ -3456,14 +3466,14 @@ export default {
|
|
this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
|
|
this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
|
|
// document.querySelector('.course_left').scrollHeight
|
|
// document.querySelector('.course_left').scrollHeight
|
|
// document.querySelector('.stepsBottom2').scrollHeight
|
|
// document.querySelector('.stepsBottom2').scrollHeight
|
|
- let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
|
|
|
+ let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
let client = $(".course_left")[0].clientHeight - stepsBottom2
|
|
let client = $(".course_left")[0].clientHeight - stepsBottom2
|
|
- let top = $(".rightBox")[0].scrollTop - 400
|
|
|
|
- if(top > client){
|
|
|
|
|
|
+ let top = $(".rightBox")[0].scrollTop - 400
|
|
|
|
+ if (top > client) {
|
|
$('.stepsBottom2')[0].style.top = client + 'px'
|
|
$('.stepsBottom2')[0].style.top = client + 'px'
|
|
- }else if(top > 0){
|
|
|
|
|
|
+ } else if (top > 0) {
|
|
$('.stepsBottom2')[0].style.top = top + 'px'
|
|
$('.stepsBottom2')[0].style.top = top + 'px'
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$('.stepsBottom2')[0].style.top = '0px'
|
|
$('.stepsBottom2')[0].style.top = '0px'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -3699,19 +3709,19 @@ export default {
|
|
);
|
|
);
|
|
_this.$message.success("删除成功");
|
|
_this.$message.success("删除成功");
|
|
|
|
|
|
- this.$nextTick(()=>{
|
|
|
|
- $('.stepsBottom2')[0].style.transition = 'unset'
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
|
- let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
|
|
|
|
- let top = $('.stepsBottom2')[0].offsetTop - 20
|
|
|
|
- if(top > client){
|
|
|
|
- $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
|
- }
|
|
|
|
- $('.stepsBottom2')[0].style.transition = 'all .5s'
|
|
|
|
- this.$forceUpdate()
|
|
|
|
- },500)
|
|
|
|
- })
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ $('.stepsBottom2')[0].style.transition = 'unset'
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
|
+ let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
|
|
|
|
+ let top = $('.stepsBottom2')[0].offsetTop - 20
|
|
|
|
+ if (top > client) {
|
|
|
|
+ $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
|
+ }
|
|
|
|
+ $('.stepsBottom2')[0].style.transition = 'all .5s'
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ }, 500)
|
|
|
|
+ })
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
return;
|
|
return;
|
|
@@ -3787,7 +3797,7 @@ export default {
|
|
i
|
|
i
|
|
].chapterData.push({
|
|
].chapterData.push({
|
|
name: "链接",
|
|
name: "链接",
|
|
- title: "粘贴链接",
|
|
|
|
|
|
+ title: "嵌入代码",
|
|
url: match[1],
|
|
url: match[1],
|
|
type: 8,
|
|
type: 8,
|
|
});
|
|
});
|
|
@@ -4502,6 +4512,16 @@ export default {
|
|
task: "",
|
|
task: "",
|
|
taskDetail: "",
|
|
taskDetail: "",
|
|
chapterData: [],
|
|
chapterData: [],
|
|
|
|
+ toolChoose: [
|
|
|
|
+ {
|
|
|
|
+ tool: [],
|
|
|
|
+ toolDetail: "",
|
|
|
|
+ toolType: 0,
|
|
|
|
+ askCount: 1,
|
|
|
|
+ askTitle: "",
|
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
toolText: "",
|
|
toolText: "",
|
|
isShowTools: false,
|
|
isShowTools: false,
|
|
askCount: 1,
|
|
askCount: 1,
|
|
@@ -4670,7 +4690,7 @@ export default {
|
|
) {
|
|
) {
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
|
|
-
|
|
|
|
|
|
+
|
|
if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
|
|
if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
|
|
this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
|
|
i
|
|
i
|
|
@@ -7364,7 +7384,7 @@ export default {
|
|
this.selectCourseDetail();
|
|
this.selectCourseDetail();
|
|
}, 500);
|
|
}, 500);
|
|
},
|
|
},
|
|
- mounted () {
|
|
|
|
|
|
+ mounted() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
//监听这个dom的scroll事件
|
|
//监听这个dom的scroll事件
|
|
$('.rightBox')[0].addEventListener("scroll", this.scrollChange);
|
|
$('.rightBox')[0].addEventListener("scroll", this.scrollChange);
|
|
@@ -9107,7 +9127,7 @@ ol {
|
|
align-items: center;
|
|
align-items: center;
|
|
width: calc(100% - 40px);
|
|
width: calc(100% - 40px);
|
|
padding: 20px 0;
|
|
padding: 20px 0;
|
|
- margin:0 auto;
|
|
|
|
|
|
+ margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
|
|
.stepsNav {
|
|
.stepsNav {
|
|
@@ -9881,9 +9901,9 @@ ol {
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
|
|
-.course_left{
|
|
|
|
- width:300px;
|
|
|
|
- height:auto;
|
|
|
|
|
|
+.course_left {
|
|
|
|
+ width: 300px;
|
|
|
|
+ height: auto;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
|