|
@@ -99,10 +99,10 @@
|
|
|
box-shadow: 0px 9px 0 0 #f2f2f2;
|
|
|
" :class="{ navLeftCss: !mlDialog }">
|
|
|
<div class="courseIndex">
|
|
|
- <div>第{{ courseType - 0 + 1 }}阶段</div>
|
|
|
- <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
|
|
|
+ <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task">{{chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task}}</div>
|
|
|
+ <!-- <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
|
|
|
<div>{{ chapInfoList[courseType].dyName }}</div>
|
|
|
- </el-tooltip>
|
|
|
+ </el-tooltip> -->
|
|
|
<div>任务{{ taskCount + 1 }}</div>
|
|
|
</div>
|
|
|
<div class="btnAll">
|
|
@@ -161,43 +161,22 @@
|
|
|
.taskDetail != '' ||
|
|
|
vChapterData[taskCount].length > 0
|
|
|
">
|
|
|
- <div class="checkbox">
|
|
|
+ <!-- <div class="checkbox">
|
|
|
<div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
|
|
|
">
|
|
|
学一学
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="student_head" v-if="vChapterData.length > 0 ||
|
|
|
chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
.taskDetail != ''
|
|
|
">
|
|
|
- <div class="taskBox">
|
|
|
- <div style="
|
|
|
- display: flex;
|
|
|
- flex-wrap: nowrap;
|
|
|
- flex-direction: column;
|
|
|
- position: relative;
|
|
|
- ">
|
|
|
- <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
- taskCount
|
|
|
- ].taskDetail != ''
|
|
|
- " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
- taskCount
|
|
|
- ].taskDetail
|
|
|
- ? chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
- taskCount
|
|
|
- ].taskDetail
|
|
|
- : '暂无描述'
|
|
|
- "></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div class="vedioTaskBox">
|
|
|
<div :class="contentDialog == false
|
|
|
? 'box_course isContentCss'
|
|
|
: 'box_course'
|
|
|
" v-if="vChapterData.length > 0 && vChapterData[taskCount] && showType !== ''">
|
|
|
- <div class="wheel" style="height: auto;" v-if="
|
|
|
- showType === 0
|
|
|
+ <div class="wheel" style="height: auto;" v-if="showType === 0
|
|
|
">
|
|
|
<div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
|
|
|
<video-player class="video-player vjs-custom-skin"
|
|
@@ -312,15 +291,36 @@
|
|
|
<div style="width: 81%">
|
|
|
<div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
|
|
|
<el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
|
|
|
- <el-button type="primary" @click="downloadFile(pptImgUrl1)"
|
|
|
- v-if="showType != 2">文件下载</el-button>
|
|
|
- <el-button v-if="showType == 2 && pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') == -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
|
|
|
+ <el-button type="primary" @click="downloadFile(pptImgUrl1)" v-if="showType != 2">文件下载</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="showType == 2 && pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') == -1"
|
|
|
+ type="primary" @click="openLine(pptImgUrl1)">打开链接
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
|
|
|
<el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="taskBox">
|
|
|
+ <div style="
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ flex-direction: column;
|
|
|
+ position: relative;
|
|
|
+ ">
|
|
|
+ <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
+ taskCount
|
|
|
+ ].taskDetail != ''
|
|
|
+ " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
+ taskCount
|
|
|
+ ].taskDetail
|
|
|
+ ? chapInfoList[courseType].chapterInfo[0].taskJson[
|
|
|
+ taskCount
|
|
|
+ ].taskDetail
|
|
|
+ : '暂无描述'
|
|
|
+ "></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -836,6 +836,8 @@
|
|
|
<div class="bzBox">
|
|
|
<div></div>
|
|
|
<div>步骤{{ toolIndex + 1 }}</div>
|
|
|
+ <div style="margin: 0 72px 0 auto;" v-if="courseDetail.userid == userid"><el-button type="primary" size="mini" @click="updateToolDetail">{{!isUpdateToolDetail ? '编辑' : '修改'}}</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="toolBox">
|
|
@@ -846,52 +848,52 @@
|
|
|
<div>
|
|
|
<div class="noiframeBox">
|
|
|
<div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
|
|
|
- <div v-if="tooC == 1">
|
|
|
+ <div v-show="tooC == 1">
|
|
|
<img src="../../assets/icon/secondToolList/whiteBoard.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">电子白板</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 3">
|
|
|
+ <div v-show="tooC == 3">
|
|
|
<img src="../../assets/icon/secondToolList/mindMapping.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">思维导图</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 6">
|
|
|
+ <div v-show="tooC == 6">
|
|
|
<img src="../../assets/icon/secondToolList/doc.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">协同文档</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 7">
|
|
|
+ <div v-show="tooC == 7">
|
|
|
<img src="../../assets/icon/secondToolList/mindNetwork.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">思维网格</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 8">
|
|
|
+ <div v-show="tooC == 8">
|
|
|
<img src="../../assets/icon/secondToolList/library.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">素材库</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 17">
|
|
|
+ <div v-show="tooC == 17">
|
|
|
<img src="../../assets/icon/secondToolList/library.png" alt
|
|
|
@click="addTools(tooC, toolIndex, taskCount)" />
|
|
|
<div style="margin: 5px 0">学习资料</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 2">
|
|
|
+ <div v-show="tooC == 2">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/note.png" alt />
|
|
|
<div style="margin: 5px 0">便签</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 4">
|
|
|
+ <div v-show="tooC == 4">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/ask.png" alt />
|
|
|
<div style="margin: 5px 0">问卷调查</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 45">
|
|
|
+ <div v-show="tooC == 45">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/choose.png" alt />
|
|
|
<div style="margin: 5px 0">选择题</div>
|
|
|
</div>
|
|
|
- <!-- <div v-if="tooC == 5">
|
|
|
+ <!-- <div v-show="tooC == 5">
|
|
|
<img
|
|
|
@click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/score.png"
|
|
@@ -899,87 +901,87 @@
|
|
|
/>
|
|
|
<div style="margin: 5px 0">量规评分</div>
|
|
|
</div> -->
|
|
|
- <div v-if="tooC == 10">
|
|
|
+ <div v-show="tooC == 10">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/time.png" alt />
|
|
|
<div style="margin: 5px 0">倒计时</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 15">
|
|
|
+ <div v-show="tooC == 15">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/answer.png" alt />
|
|
|
<div style="margin: 5px 0">问答工具</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 26">
|
|
|
+ <div v-show="tooC == 26">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/courseDesign.png" alt />
|
|
|
<div style="margin: 5px 0">课程设计</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 18">
|
|
|
+ <div v-show="tooC == 18">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
|
|
|
<div style="margin: 5px 0">训练服务器</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 16">
|
|
|
+ <div v-show="tooC == 16">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/work.png" alt />
|
|
|
<div style="margin: 5px 0">作业提交</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 50">
|
|
|
+ <div v-show="tooC == 50">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/plwork.png" alt />
|
|
|
<div style="margin: 5px 0">批量上传</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 21">
|
|
|
+ <div v-show="tooC == 21">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/program.png" alt />
|
|
|
<div style="margin: 5px 0">编程平台</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 22">
|
|
|
+ <div v-show="tooC == 22">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/program.png" alt />
|
|
|
<div style="margin: 5px 0">AI体验</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 23">
|
|
|
+ <div v-show="tooC == 23">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
|
|
|
<div style="margin: 5px 0">Python</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 24">
|
|
|
+ <div v-show="tooC == 24">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/AIprogram.png" alt />
|
|
|
<div style="margin: 5px 0">AI平台</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 25">
|
|
|
+ <div v-show="tooC == 25">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/evalua.png" alt />
|
|
|
<div style="margin: 5px 0">目标管理</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 31">
|
|
|
+ <div v-show="tooC == 31">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/networkPanel.png" alt />
|
|
|
<div style="margin: 5px 0">数学画板</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 28">
|
|
|
+ <div v-show="tooC == 28">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/translation.png" alt />
|
|
|
<div style="margin: 5px 0">翻译</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 37">
|
|
|
+ <div v-show="tooC == 37">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/mohe.png" alt />
|
|
|
<div style="margin: 5px 0">魔盒识字</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 38">
|
|
|
+ <div v-show="tooC == 38">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/24game.png" alt />
|
|
|
<div style="margin: 5px 0">24点</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 39">
|
|
|
+ <div v-show="tooC == 39">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/GeoGebra.png" alt />
|
|
|
<div style="margin: 5px 0">GeoGebra</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 32">
|
|
|
+ <div v-show="tooC == 32">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/code.png" alt />
|
|
|
<div style="margin: 5px 0">源码编辑</div>
|
|
@@ -990,72 +992,72 @@
|
|
|
@change="beforeUpload1($event, 7, toolIndex)" />
|
|
|
</div> -->
|
|
|
</div>
|
|
|
- <div v-if="tooC == 40">
|
|
|
+ <div v-show="tooC == 40">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/secondToolList/eval.png" alt />
|
|
|
<div style="margin: 5px 0">个人评价</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 41">
|
|
|
+ <div v-show="tooC == 41">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/select.png" alt />
|
|
|
<div style="margin: 5px 0">选择填空</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 44">
|
|
|
+ <div v-show="tooC == 44">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/thirdToolList/hanClass.png" alt />
|
|
|
<div style="margin: 5px 0">汉字宫</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 47">
|
|
|
+ <div v-show="tooC == 47">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/conSentences.png" alt />
|
|
|
<div style="margin: 5px 0">连词成句</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 48">
|
|
|
+ <div v-show="tooC == 48">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/table.png" alt />
|
|
|
<div style="margin: 5px 0">表格</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 52">
|
|
|
+ <div v-show="tooC == 52">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/text.png" alt />
|
|
|
<div style="margin: 5px 0">文档</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 49">
|
|
|
+ <div v-show="tooC == 49">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/group.png" alt />
|
|
|
<div style="margin: 5px 0">学生分组</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 57">
|
|
|
+ <div v-show="tooC == 57">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/cocopi.png" alt />
|
|
|
<div style="margin: 5px 0">CocoPi</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 58">
|
|
|
+ <div v-show="tooC == 58">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/car.png" alt />
|
|
|
<div style="margin: 5px 0">模拟驾驶</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 59">
|
|
|
+ <div v-show="tooC == 59">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/lineSearch.png" alt />
|
|
|
<div style="margin: 5px 0">路径搜索</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 60">
|
|
|
+ <div v-show="tooC == 60">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/deepLearning.png" alt />
|
|
|
<div style="margin: 5px 0">深度学习</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 61">
|
|
|
+ <div v-show="tooC == 61">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/allHistory.png" alt />
|
|
|
<div style="margin: 5px 0">全历史</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 62">
|
|
|
+ <div v-show="tooC == 62">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/interVideo.png" alt />
|
|
|
<div style="margin: 5px 0">交互视频</div>
|
|
|
</div>
|
|
|
- <div v-if="tooC == 63">
|
|
|
+ <div v-show="tooC == 63">
|
|
|
<img @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
src="../../assets/icon/fourthToolList/Wood.png" alt />
|
|
|
<div style="margin: 5px 0">海龟编程</div>
|
|
@@ -1065,7 +1067,10 @@
|
|
|
</div>
|
|
|
<div class="tooldetail">
|
|
|
<!-- <div class="toolTitle">工具描述</div> -->
|
|
|
- <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
|
|
|
+ <div style="height:100%" v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')" v-if="!isUpdateToolDetail" @click="updateToolDetail"></div>
|
|
|
+ <div v-else>
|
|
|
+ <el-input type="textarea" :rows="3" resize="none" v-model="updateToolDetailInner" placeholder="请输入任务描述"></el-input>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-button type="primary" v-if="tool.tool[0] == 32" style="
|
|
|
position: absolute;
|
|
@@ -4437,7 +4442,7 @@
|
|
|
|
|
|
<div>
|
|
|
<textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
|
|
|
- placeholder="请输入对该学生的评价"></textarea>
|
|
|
+ placeholder="请输入评论"></textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -5848,6 +5853,8 @@ export default {
|
|
|
toolType: 0,
|
|
|
checktoolArray: [],
|
|
|
vChapterData: [],
|
|
|
+ isUpdateToolDetail:false,
|
|
|
+ updateToolDetailInner:''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -6817,7 +6824,7 @@ export default {
|
|
|
},
|
|
|
addComment(wid, uid, t) {
|
|
|
if (this.commentText == "") {
|
|
|
- this.$message.error("请输入对该学生的评价");
|
|
|
+ this.$message.error("请输入评论");
|
|
|
return;
|
|
|
}
|
|
|
let params2 = [
|
|
@@ -8359,6 +8366,7 @@ export default {
|
|
|
checkBz(index) {
|
|
|
this.toolIndex = index
|
|
|
this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
|
|
|
+ this.isUpdateToolDetail = false
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
nextOrpreSteps(t) {
|
|
@@ -8673,7 +8681,7 @@ export default {
|
|
|
},
|
|
|
getCourseDetail(type, gindex) {
|
|
|
let loading;
|
|
|
- if (type != 2) {
|
|
|
+ if (type != 2 && type != 3) {
|
|
|
loading = this.$loading.service({
|
|
|
background: "rgba(255, 255, 255, 0.7)",
|
|
|
target: document.querySelector(".student_table"),
|
|
@@ -8686,7 +8694,7 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
|
.then((res) => {
|
|
|
- if (type != 2) {
|
|
|
+ if (type != 2 && type != 3) {
|
|
|
loading.close();
|
|
|
if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
|
|
|
this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
|
|
@@ -8801,7 +8809,7 @@ export default {
|
|
|
_chapterData[this.taskCount].length > 0
|
|
|
) {
|
|
|
let _url =
|
|
|
- _chapterData[this.taskCount][0].url;
|
|
|
+ _chapterData[this.taskCount][0].url;
|
|
|
if (
|
|
|
_chapterData[this.taskCount][0].type == 8
|
|
|
) {
|
|
@@ -8847,7 +8855,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.isClickNav = 0;
|
|
|
- if(!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12){
|
|
|
+ if (!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12) {
|
|
|
this.isClickNav = '';
|
|
|
this.showType = ''
|
|
|
}
|
|
@@ -8858,7 +8866,7 @@ export default {
|
|
|
this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
|
|
|
}
|
|
|
|
|
|
- } else {
|
|
|
+ } else if (type != 3) {
|
|
|
var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
|
|
|
.chapterInfo[0].taskJson;
|
|
|
var b = [
|
|
@@ -8944,7 +8952,7 @@ export default {
|
|
|
_chapterData[this.taskCount].length > 0
|
|
|
) {
|
|
|
let _url =
|
|
|
- _chapterData[this.taskCount][0].url;
|
|
|
+ _chapterData[this.taskCount][0].url;
|
|
|
if (
|
|
|
_chapterData[this.taskCount][0].type == 8
|
|
|
) {
|
|
@@ -8990,14 +8998,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.isClickNav = 0;
|
|
|
- if(!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12){
|
|
|
+ if (!_chapterData[this.taskCount].length || _chapterData[this.taskCount][0].type == 12) {
|
|
|
this.isClickNav = '';
|
|
|
this.showType = ''
|
|
|
}
|
|
|
this.vChapterData = _chapterData
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
-
|
|
|
+ this.isUpdateToolDetail = false
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
|
this.checkEva();
|
|
@@ -11114,7 +11122,7 @@ export default {
|
|
|
let params = [
|
|
|
{
|
|
|
cid: this.id,
|
|
|
- chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
|
|
|
+ chapters: JSON.stringify(this.chapInfoList),
|
|
|
uid: this.userid,
|
|
|
unitIndex: this.courseType,
|
|
|
},
|
|
@@ -11408,13 +11416,46 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.checktoolArray = []
|
|
|
- this.refreshCourse()
|
|
|
+ this.getCourseDetail(3)
|
|
|
+ this.checkBz(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length-1)
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error(err);
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ updateToolDetail(){
|
|
|
+ if(!this.isUpdateToolDetail){
|
|
|
+ this.isUpdateToolDetail = true
|
|
|
+ this.updateToolDetailInner = JSON.parse(JSON.stringify(this.tool.toolDetail))
|
|
|
+ }else{
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex].toolDetail = JSON.parse(JSON.stringify(this.updateToolDetailInner))
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ cid: this.id,
|
|
|
+ chapters: JSON.stringify(this.chapInfoList),
|
|
|
+ uid: this.userid,
|
|
|
+ unitIndex: this.courseType,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "updateWorkNew4", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.isUpdateToolDetail = false
|
|
|
+ this.$message({
|
|
|
+ message: "修改成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.updateToolDetailInner = ''
|
|
|
+ this.getCourseDetail(3)
|
|
|
+ this.$forceUpdate()
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
},
|
|
|
directives: {
|
|
|
// 使用局部注册指令的方式
|
|
@@ -11563,7 +11604,7 @@ export default {
|
|
|
.student_head {
|
|
|
width: 100%;
|
|
|
margin: 0 auto;
|
|
|
- padding-bottom: 20px;
|
|
|
+ padding: 20px 0 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
flex-wrap: nowrap;
|
|
@@ -12219,24 +12260,27 @@ export default {
|
|
|
margin: 0 20px;
|
|
|
padding-left: 5px;
|
|
|
font-size: 24px;
|
|
|
- min-width: 100px;
|
|
|
+ /* min-width: 100px; */
|
|
|
+ max-width: calc(100% - 180px);
|
|
|
font-weight: bold;
|
|
|
border-left: 4px solid #3363b9;
|
|
|
height: 35px;
|
|
|
text-align: center;
|
|
|
line-height: 35px;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
-.courseIndex>div:nth-child(2) {
|
|
|
+/* .courseIndex>div:nth-child(2) {
|
|
|
font-size: 23px;
|
|
|
- /* width: 300px; */
|
|
|
max-width: calc(100% - 180px);
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
-}
|
|
|
+} */
|
|
|
|
|
|
-.courseIndex>div:nth-child(3) {
|
|
|
+.courseIndex>div:nth-child(2) {
|
|
|
border-bottom: 1px solid #d7d7d7;
|
|
|
padding-bottom: 5px;
|
|
|
background: #49a0f0;
|
|
@@ -12248,7 +12292,7 @@ export default {
|
|
|
height: 20px;
|
|
|
line-height: 26px;
|
|
|
font-size: 14px;
|
|
|
- margin: 0 0 0 10px;
|
|
|
+ /* margin: 0 0 0 10px; */
|
|
|
}
|
|
|
|
|
|
.course_text {
|