1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762 |
- <template>
- <div class="pb_content">
- <div class="pb_content_body" style="height: 100%">
- <div class="body_student">
- <div class="student_head">
- <div
- v-if="tType != 4"
- class="return"
- @click.stop="
- goTo(
- '/index?userid=' +
- userid +
- '&oid=' +
- oid +
- '&org=' +
- org +
- '&cid=' +
- classId +
- '&tType=' +
- tType +
- '&screenType=' +
- screenType
- )
- "
- >
- 返回
- <!-- <img src="../assets/icon/return.png" alt="" /> -->
- </div>
- <div class="box_course">
- <div class="wheel">
- <img
- style="object-fit: cover"
- :src="
- this.courseDetail.cover != null &&
- this.courseDetail.cover != ''
- ? JSON.parse(this.courseDetail.cover).length > 0
- ? JSON.parse(this.courseDetail.cover)[0].url
- : mr
- : mr
- "
- alt
- />
- </div>
- <div class="right_box">
- <div class="rightT">
- <div class="right_box_title">{{ courseDetail.title }}</div>
- <div class="jd">{{ chapInfo.length }}阶段</div>
- <div class="jd">{{ rw }}任务</div>
- </div>
- <div class="cType">
- <div
- class="all_choose"
- v-for="(item, index) in courseType"
- :key="index"
- >
- <span style="color: #6c6c6c">{{ item + ":" }}</span>
- <span
- class="type_children"
- v-for="(item2, index2) in courseTypeJson[item]"
- :key="index2"
- >{{ item2 }}</span
- >
- </div>
- </div>
- <div class="cType" style="font-size: 18px; color: #6c6c6c">
- <div style="min-width: 150px">
- 创建者:<span style="color: #000">{{
- courseDetail.username
- }}</span>
- </div>
- <div class="Tname" v-if="Tname.length > 0">
- 协同人员:<span
- v-for="(tname, tIndex) in Tname"
- :key="tIndex"
- style="margin: 0 5px; color: #000"
- >{{ tname }}</span
- >
- </div>
- </div>
- <div class="cType" style="font-size: 18px; color: #6c6c6c">
- <div style="display: flex; align-items: center">
- <div>参与人数:</div>
- <div class="man">
- <img src="../assets/people.png" alt />
- </div>
- <div class="person" style="color: #000">
- {{
- courseDetail.vcount != null ? courseDetail.vcount : 0
- }}人
- </div>
- </div>
- <div class="Tname" v-if="courseDetail.classname">
- 授课班级:<span style="margin: 0 5px; color: #000">{{
- courseDetail.classname
- }}</span>
- </div>
- </div>
- <div class="now_study" @click="dialogVisible = true">
- 立即学习
- </div>
- </div>
- </div>
- </div>
- <div class="student_body">
- <div class="sLeft" v-if="courseDetail.brief">
- <div class="courseT">项目详情</div>
- <div class="courseTd">{{ courseDetail.brief }}</div>
- </div>
- <div :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'">
- <div v-if="tType == 1 || tType == 4" class="checkBox">
- <span :class="{ active: type == 2 }" @click="type = 2"
- >阶段选择</span
- >
- <span :class="{ active: type == 1 }" @click="type = 1"
- >课程分析</span
- >
- </div>
- <div
- v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
- :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
- >
- <div
- class="blue_box_one"
- v-for="(item, index) in chapInfo"
- :key="index"
- @click="addUserRate(index)"
- >
- <div>第{{ index + 1 }}阶段</div>
- <div :title="item.dyName">{{ item.dyName }}</div>
- <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
- </div>
- </div>
- <div
- v-if="
- (tType == 1 || tType == 4) &&
- Object.keys(chaptersJson).length &&
- type == 1
- "
- class="detail"
- >
- <div class="detail_box">
- <div class="title">
- <span class="toolIcon">工具分析</span>
- <div class="statebox">
- <div>
- <span class="taskIcon">全部阶段:</span
- ><span>{{ chaptersJson.state.stage }}</span>
- </div>
- <div>
- <span class="finishIcon">已进行:</span
- ><span>{{ chaptersJson.state.finish }}</span>
- </div>
- <div>
- <span class="learningIcon">未进行:</span
- ><span>{{ chaptersJson.state.learing }}</span>
- </div>
- </div>
- </div>
- <div class="box" v-if="chaptersJson.tool.length">
- <div class="progress">
- <div
- v-for="(item, index) in chaptersJson.tool"
- :key="index"
- class="chapter"
- >
- <div
- class="stage"
- style="cursor: pointer"
- @click="addUserRate(index)"
- >
- 第{{ index + 1 }}阶段
- </div>
- <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
- <div class="task">
- <div
- v-for="(item2, index2) in item"
- :key="index + '-' + index2"
- class="taskBox"
- >
- <div class="taskName">任务{{ index2 + 1 }}</div>
- <div class="p_tool_box">
- <span
- v-for="(item3, index3) in item2"
- :key="index + '-' + index2 + '-' + index3"
- class="p_tool"
- >
- <div v-if="item3.tool == 1">
- <img
- src="../assets/icon/secondToolList/whiteBoard.png"
- alt
- />
- <div>电子白板</div>
- </div>
- <div v-if="item3.tool == 3">
- <img
- src="../assets/icon/secondToolList/mindMapping.png"
- alt
- />
- <div>思维导图</div>
- </div>
- <div v-if="item3.tool == 6">
- <img
- src="../assets/icon/secondToolList/doc.png"
- alt
- />
- <div>协同文档</div>
- </div>
- <div v-if="item3.tool == 7">
- <img
- src="../assets/icon/secondToolList/mindNetwork.png"
- alt
- />
- <div>思维网格</div>
- </div>
- <div v-if="item3.tool == 8">
- <img
- src="../assets/icon/secondToolList/library.png"
- alt
- />
- <div>素材库</div>
- </div>
- <div v-if="item3.tool == 17">
- <img
- src="../assets/icon/secondToolList/library.png"
- alt
- />
- <div>学习资料</div>
- </div>
- <div v-if="item3.tool == 2">
- <img
- src="../assets/icon/secondToolList/note.png"
- alt
- />
- <div>便签</div>
- </div>
- <div v-if="item3.tool == 4">
- <img
- src="../assets/icon/thirdToolList/ask.png"
- alt
- />
- <div>问卷调查</div>
- </div>
- <div v-if="item3.tool == 45">
- <img
- src="../assets/icon/thirdToolList/choose.png"
- alt
- />
- <div>选择题</div>
- </div>
- <!-- <div v-if="item3.tool == 5">
- <img
-
- src="../assets/icon/thirdToolList/score.png"
- alt
- />
- <div >量规评分</div>
- </div> -->
- <div v-if="item3.tool == 10">
- <img
- src="../assets/icon/thirdToolList/time.png"
- alt
- />
- <div>倒计时</div>
- </div>
- <div v-if="item3.tool == 15">
- <img
- src="../assets/icon/thirdToolList/answer.png"
- alt
- />
- <div>问答工具</div>
- </div>
- <div v-if="item3.tool == 26">
- <img
- src="../assets/icon/thirdToolList/courseDesign.png"
- alt
- />
- <div>课程设计</div>
- </div>
- <div v-if="item3.tool == 18">
- <img
- src="../assets/icon/thirdToolList/trainPlatform.png"
- alt
- />
- <div>训练服务器</div>
- </div>
- <div v-if="item3.tool == 16">
- <img
- src="../assets/icon/thirdToolList/work.png"
- alt
- />
- <div>作业提交</div>
- </div>
- <div v-if="item3.tool == 21">
- <img
- src="../assets/icon/fourthToolList/program.png"
- alt
- />
- <div>编程平台</div>
- </div>
- <div v-if="item3.tool == 22">
- <img
- src="../assets/icon/fourthToolList/program.png"
- alt
- />
- <div>AI体验</div>
- </div>
- <div v-if="item3.tool == 23">
- <img
- src="../assets/icon/fourthToolList/program.png"
- alt
- />
- <div>Python</div>
- </div>
- <div v-if="item3.tool == 24">
- <img
- src="../assets/icon/fourthToolList/AIprogram.png"
- alt
- />
- <div>AI平台</div>
- </div>
- <div v-if="item3.tool == 25">
- <img
- src="../assets/icon/thirdToolList/evalua.png"
- alt
- />
- <div>目标管理</div>
- </div>
- <div v-if="item3.tool == 31">
- <img
- src="../assets/icon/secondToolList/networkPanel.png"
- alt
- />
- <div>数学画板</div>
- </div>
- <div v-if="item3.tool == 28">
- <img
- src="../assets/icon/secondToolList/translation.png"
- alt
- />
- <div>翻译</div>
- </div>
- <div v-if="item3.tool == 37">
- <img
- src="../assets/icon/secondToolList/mohe.png"
- alt
- />
- <div>魔盒识字</div>
- </div>
- <div v-if="item3.tool == 38">
- <img
- src="../assets/icon/secondToolList/24game.png"
- alt
- />
- <div>24点</div>
- </div>
- <div v-if="item3.tool == 39">
- <img
- src="../assets/icon/secondToolList/GeoGebra.png"
- alt
- />
- <div>GeoGebra</div>
- </div>
- <div v-if="item3.tool == 32">
- <img
- src="../assets/icon/thirdToolList/code.png"
- alt
- />
- <div>源码编辑</div>
- </div>
- <div v-if="item3.tool == 40">
- <img
- src="../assets/icon/secondToolList/eval.png"
- alt
- />
- <div>学生评价</div>
- </div>
- <div v-if="item3.tool == 41">
- <img
- src="../assets/icon/thirdToolList/select.png"
- alt
- />
- <div>选择填空</div>
- </div>
- <div v-if="item3.tool == 44">
- <img
- src="../assets/icon/thirdToolList/hanClass.png"
- alt
- />
- <div>汉字宫</div>
- </div>
- <div v-if="item3.tool == 47">
- <img
- src="../assets/icon/fourthToolList/conSentences.png"
- alt
- />
- <div>连词成句</div>
- </div>
- <div v-if="item3.tool == 48">
- <img
- src="../assets/icon/fourthToolList/conSentences.png"
- alt
- />
- <div>表格</div>
- </div>
- <div v-if="item3.tool == 49">
- <img
- src="../assets/icon/fourthToolList/group.png"
- alt
- />
- <div>学生分组</div>
- </div>
- <div v-if="item3.tool == undefined">
- <img
- src="../assets/icon/empytool.png"
- alt
- style="width: 64px; height: 75px"
- />
- </div>
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div
- class="detail_box"
- v-if="Object.keys(chaptersJson.time).length"
- >
- <div class="title">
- <span class="frequencyIcon">作业频率</span>
- </div>
- <div class="box">
- <div>
- <Heatmap
- :Josn="chaptersJson.time"
- :num="chaptersJson.studentCount"
- ></Heatmap>
- </div>
- </div>
- </div>
- <div class="detail_box">
- <div class="title"><span class="timeIcon">实施时间</span></div>
- <div class="box">
- <div style="font-size: 22px; margin: 15px 0 45px">
- {{ courseDetail.title }}
- </div>
- <div class="chapter_time_box" style="margin-left: 170px">
- <div
- v-for="(item, index) in chaptersJson.work"
- :key="index"
- class="c_box"
- >
- <div class="stage_box" style="left: -195px">
- <div
- style="
- min-width: 150px;
- position: relative;
- left: -5px;
- "
- >
- {{ item.time }}
- </div>
- <div class="yuan"></div>
- <div class="stage">
- 第{{ index + 1 }}阶段 {{ item.name }}
- </div>
- <div
- class="s_up"
- :class="{ s_up2: !item.is }"
- @click="item.is = !item.is"
- >
- <img src="../assets/icon/up.png" alt="" />
- </div>
- </div>
- <div v-show="item.is">
- <div
- v-for="(item2, index2) in item.chapter"
- :key="index + '-' + index2"
- >
- <div
- style="
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- "
- >
- <div
- style="
- width: 13px;
- height: 13px;
- background: #5a82cb 100%;
- border-radius: 50%;
- margin-right: 10px;
- "
- ></div>
- <div
- style="
- color: #4376c3;
- font-size: 20px;
- font-weight: bold;
- "
- >
- 任务{{ index2 + 1 }}:{{ item2.name }}
- </div>
- </div>
- <div class="p_tool_box2">
- <span
- v-for="(item3, index3) in item2.task"
- :key="index + '-' + index2 + '-' + index3"
- class="p_tool2"
- >
- <div
- class="toolBigBox"
- style="
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- "
- v-if="item3.works.length"
- >
- <div
- style="
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-end;
- min-width: 140px;
- "
- >
- <div class="lineBox"></div>
- <div class="toolbox">
- <div
- style="font-size: 16px; font-weight: bold"
- >
- 步骤{{ index3 + 1 }}:
- </div>
- <div v-if="item3.tool == 1">电子白板</div>
- <div v-if="item3.tool == 3">思维导图</div>
- <div v-if="item3.tool == 6">协同文档</div>
- <div v-if="item3.tool == 7">思维网格</div>
- <div v-if="item3.tool == 8">素材库</div>
- <div v-if="item3.tool == 17">学习资料</div>
- <div v-if="item3.tool == 2">便签</div>
- <div v-if="item3.tool == 4">问卷调查</div>
- <div v-if="item3.tool == 45">选择题</div>
- <div v-if="item3.tool == 10">倒计时</div>
- <div v-if="item3.tool == 15">问答工具</div>
- <div v-if="item3.tool == 26">课程设计</div>
- <div v-if="item3.tool == 18">
- 训练服务器
- </div>
- <div v-if="item3.tool == 16">作业提交</div>
- <div v-if="item3.tool == 21">编程平台</div>
- <div v-if="item3.tool == 22">AI体验</div>
- <div v-if="item3.tool == 23">Python</div>
- <div v-if="item3.tool == 24">AI平台</div>
- <div v-if="item3.tool == 25">目标管理</div>
- <div v-if="item3.tool == 31">数学画板</div>
- <div v-if="item3.tool == 28">翻译</div>
- <div v-if="item3.tool == 37">魔盒识字</div>
- <div v-if="item3.tool == 38">24点</div>
- <div v-if="item3.tool == 39">GeoGebra</div>
- <div v-if="item3.tool == 32">源码编辑</div>
- <div v-if="item3.tool == 40">学生评价</div>
- <div v-if="item3.tool == 41">选择填空</div>
- <div v-if="item3.tool == 44">汉字宫</div>
- <div v-if="item3.tool == 47">连词成句</div>
- <div v-if="item3.tool == 48">表格</div>
- <div v-if="item3.tool == 49">学生分组</div>
- </div>
- </div>
- <div
- v-if="item3.works.length"
- style="
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- margin-left: 10px;
- "
- >
- <!-- works:[],likeCount: 0, commentCount: 0, score: 0, isScore: 0 -->
- <div class="disCss">
- <div class="blueBtn">
- 作业数量:{{ item3.works.length }}
- </div>
- <div
- v-if="chaptersJson.studentCount"
- class="blueBtn"
- >
- 任务完成率:{{
- (
- (item3.works.length /
- chaptersJson.studentCount) *
- 100
- ).toFixed(2) + "%"
- }}
- </div>
- <div class="blueBtn">
- <div>点赞:{{ item3.likeCount }}</div>
- <div style="margin-left: 15px;">评论:{{ item3.commentCount }}</div>
- </div>
- </div>
- <div v-if="item3.isScore">
- <div class="disCss">
- <div class="blueBtn">
- 作业评价量:{{ item3.isScore }}
- </div>
- <div class="blueBtn">
- 评价平均分:{{
- (item3.score / item3.isScore).toFixed(
- 2
- )
- }}分
- </div>
- </div>
- </div>
- </div>
- </div>
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <div v-for="(item, index) in Object.keys(chaptersJson.time)" :key="index">
- {{ '时间:' + item + '次数:' + chaptersJson.time[item] }}</div> -->
- <!-- <div>实施时间:{{ chaptersJson.startTime }}</div> -->
- </div>
- </div>
- </div>
- <!-- <div
- style="
- text-align: center;
- padding: 30px 0 20px 0;
- box-sizing: border-box;
- "
- >
- 此处滚动加载..
- </div>-->
- <el-dialog
- title="阶段选择"
- :visible.sync="dialogVisible"
- :append-to-body="true"
- width="700px"
- :before-close="handleClose"
- class="dialog_change"
- >
- <div style="font-size: 20px">请选择阶段</div>
- <div
- style="
- padding: 20px 30px;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- "
- >
- <div
- class="blue_box"
- v-for="(item, index) in chapInfo"
- :key="index"
- @click="addUserRate(index)"
- >
- <div>第{{ index + 1 }}阶段</div>
- <div>{{ item.dyName }}</div>
- <div>{{ item.chapterInfo[0].taskJson.length }}个任务</div>
- </div>
- </div>
- </el-dialog>
- </div>
- </div>
- </div>
- </template>
- <script>
- import Heatmap from "./tools/heatmap.vue";
- export default {
- components: {
- Heatmap,
- },
- data() {
- return {
- choose: 0,
- dialogVisible: false,
- id: this.$route.query.courseId,
- userid: this.$route.query.userid,
- oid: this.$route.query.oid,
- org: this.$route.query.org,
- classId: this.$route.query.cid,
- tType: this.$route.query.tType,
- screenType: this.$route.query.screenType,
- courseDetail: {},
- aStudentName: [],
- chapInfo: [],
- courseType: [],
- Tname: [],
- courseTypeJson: {},
- userinfo: [],
- mr: require("../assets/icon/wheel.png"),
- rw: 0,
- chaptersJson: {},
- type: 2,
- };
- },
- methods: {
- handleClose(done) {
- done();
- },
- goTo(path) {
- this.$router.push(path);
- },
- addUserRate(i) {
- // var suid = this.userid;
- // if (
- // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1 &&
- // JSON.parse(this.courseDetail.userid) != suid
- // ) {
- // this.$message.error("你没有该权限");
- // return;
- // }
- // var a =
- // this.courseDetail.course_student != ""
- // ? JSON.parse(this.courseDetail.course_student)
- // : "";
- // if (this.courseDetail.userid != suid) {
- // if (this.userinfo.type == 2) {
- // if (a != "") {
- // if (
- // JSON.parse(this.courseDetail.course_student).indexOf(suid) == -1
- // ) {
- // this.$message.error("你没有该权限");
- // return;
- // }
- // } else {
- // this.$message.error("暂无项目学员,请联系老师添加项目学员!");
- // return;
- // }
- // }
- // }
- let params = {
- uid: this.userid,
- cid: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "addUserR", params)
- .then((res) => {
- console.log(res.data);
- this.updateVc();
- if (this.tType == 1 || this.tType == 2 || this.tType == 4) {
- this.goTo(
- "/studyStudent?type=" +
- i +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- } else {
- this.goTo(
- "/study?type=" +
- i +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- }
- })
- .catch((err) => {
- console.error(err);
- });
- },
- updateVc() {
- let params = {
- cid: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "updateVc", params)
- .then((res) => {
- console.log(res.data);
- })
- .catch((err) => {
- console.error(err);
- });
- },
- getCourseDetail() {
- const loading = this.$loading.service({
- background: "rgba(255, 255, 255, 0.7)",
- target: document.querySelector(".student_table"),
- });
- let params = {
- courseId: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "selectCourseDetail", params)
- .then((res) => {
- loading.close();
- // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.courseDetail = res.data[0][0];
- var a = res.data[0];
- var b = res.data[1];
- var c = res.data[2];
- for (var i = 0; i < b.length; i++) {
- // if (!this.id) {
- // this.courseType[b[i].id] = [];
- // }
- for (var j = 0; j < a.length; j++) {
- if (b[i].id == a[j].pid) {
- if (!this.courseTypeJson[b[i].name]) {
- this.courseType.push(b[i].name);
- this.courseTypeJson[b[i].name] = [];
- }
- this.courseTypeJson[b[i].name].push(a[j].name);
- }
- }
- }
- for (var k = 0; k < c.length; k++) {
- this.Tname.push(c[k].name);
- }
- console.log(this.courseTypeJson.length);
- this.aStudentName = res.data[2];
- this.chapInfo = JSON.parse(this.courseDetail.chapters);
- for (var z = 0; z < this.chapInfo.length; z++) {
- this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
- }
- let _chapters = JSON.parse(a[0].chapters);
- let _works = res.data[3];
- let _sCont = res.data[4];
- let _comment = res.data[5];
- let _chaptersJson = {
- chapterState: _chapters,
- state: {
- stage: _chapters.length,
- finish: 0,
- learing: 0,
- },
- tool: [],
- chapter: [],
- time: {},
- startTime: _works.length ? _works[0].time : "",
- work: [],
- studentCount: _sCont[0].usercount,
- };
- let timeAarry = [];
- for (var j = 0; j < _works.length; j++) {
- timeAarry.push(_works[j].vtime);
- }
- timeAarry.forEach((item) => {
- _chaptersJson.time[item] = _chaptersJson.time[item] + 1 || 1;
- });
- for (var i = 0; i < _chapters.length; i++) {
- _chaptersJson.chapterState[i].isFinsh = false;
- _chaptersJson.tool[i] = [];
- _chaptersJson.chapter[i] = [];
- _chaptersJson.work[i] = {
- name: _chapters[i].dyName,
- chapter: [],
- time: "",
- };
- for (var j = 0; j < _works.length; j++) {
- if (i == _works[j].stage) {
- _chaptersJson.chapterState[i].isFinsh = true;
- _chaptersJson.work[i].time = _works[j].time;
- _chaptersJson.state.finish++;
- break;
- }
- }
- let el = _chapters[i].chapterInfo[0].taskJson;
- for (var z = 0; z < el.length; z++) {
- _chaptersJson.tool[i][z] = [];
- _chaptersJson.chapter[i][z] = [];
- _chaptersJson.work[i].chapter[z] = { name: el[z].task, task: [] };
- _chaptersJson.work[i].is = false;
- let tools = el[z].toolChoose;
- for (var k = 0; k < tools.length; k++) {
- _chaptersJson.work[i].chapter[z].task[k] = {
- tool: tools[k].tool[0],
- works: [],
- likeCount: 0,
- commentCount: 0,
- score: 0,
- isScore: 0,
- };
- for (var j = 0; j < _works.length; j++) {
- if (
- i == _works[j].stage &&
- z == _works[j].task &&
- k == _works[j].tool
- ) {
- _chaptersJson.work[i].chapter[z].task[k].works.push(
- _works[j]
- );
- if (_works[j].score) {
- _chaptersJson.work[i].chapter[z].task[k].score +=
- JSON.parse(_works[j].score).wScore;
- _chaptersJson.work[i].chapter[z].task[k].isScore++;
- }
- }
- }
- for (var j = 0; j < _comment.length; j++) {
- if (
- i == _comment[j].stage &&
- z == _comment[j].task &&
- k == _comment[j].tool
- ) {
- if (_comment[j].cType == 1) {
- _chaptersJson.work[i].chapter[z].task[k].likeCount++;
- }
- if (_comment[j].cType == 2) {
- _chaptersJson.work[i].chapter[z].task[k].commentCount++;
- }
- }
- }
- // if (_chaptersJson.chapter[i][z].indexOf(tools[k].tool[0]) == -1) {
- // _chaptersJson.tool[i][z].push(tools[k].tool[0])
- // }
- _chaptersJson.chapter[i][z][k] = { tool: tools[k].tool[0] };
- _chaptersJson.tool[i][z][k] = { tool: tools[k].tool[0] };
- }
- }
- }
- _chaptersJson.state.learing =
- _chaptersJson.state.stage - _chaptersJson.state.finish;
- this.chaptersJson = _chaptersJson;
- // debugger
- })
- .catch((err) => {
- loading.close();
- console.error(err);
- });
- },
- getUser() {
- let params = { uid: this.userid };
- this.ajax
- .get(this.$store.state.api + "getUser", params)
- .then((res) => {
- this.userinfo = res.data[0][0];
- })
- .catch((err) => {
- console.error(err);
- });
- },
- // getSName() {
- // let params = {
- // uid: JSON.stringify(this.courseDetail.course_student),
- // };
- // this.ajax
- // .get(this.$store.state.api + "selectSName", params)
- // .then((res) => {
- // this.aStudentName = res.data[0];
- // })
- // .catch((err) => {
- // console.error(err);
- // });
- // },
- },
- created() {
- this.getCourseDetail();
- this.getUser();
- document.scrollingElement.scrollTop = 0;
- // this.getSName();
- },
- };
- </script>
- <style scoped>
- @media screen and (max-width: 1024px) {
- .Tname {
- width: 500px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- .body_student {
- margin: 10px auto;
- width: 98%;
- height: 100%;
- }
- .student_head {
- width: 100%;
- background: #fff;
- height: 30%;
- position: relative;
- }
- .wheel {
- width: 250px;
- max-height: 146px;
- display: flex;
- align-items: center;
- }
- .man {
- width: 16px;
- height: 16px;
- }
- .wheel > img,
- .man > img {
- width: 100%;
- height: 100%;
- }
- .box_course {
- display: flex;
- padding: 25px 0 20px 60px;
- }
- .right_box {
- display: flex;
- flex-direction: column;
- margin-left: 30px;
- align-items: flex-start;
- width: calc(100% - 350px);
- }
- .right_box_title {
- font-size: 23px;
- max-width: calc(100% - 190px);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .people {
- display: flex;
- margin-top: 20px;
- }
- .person {
- margin-left: 10px;
- /* line-height: 18px; */
- }
- .now_study {
- width: 150px;
- height: 35px;
- color: #fff;
- background: #4a9eed;
- text-align: center;
- line-height: 35px;
- border-radius: 5px;
- font-size: 13px;
- cursor: pointer;
- margin-top: 30px;
- }
- .choose_who {
- display: flex;
- margin: 15px 0 0 25px;
- }
- .who_choose {
- height: 28px;
- cursor: pointer;
- }
- .choose_who > div:nth-child(2) {
- margin-left: 35px;
- }
- .choose {
- border-bottom: 5px solid #4a9eed;
- color: #4a9eed;
- }
- .student_body {
- display: flex;
- }
- .student_body,
- .right {
- width: 100%;
- margin: 10px auto;
- min-height: 688px;
- }
- .nav {
- margin: auto 25px;
- width: 80%;
- padding-top: 5px;
- text-indent: 25px;
- }
- .pic {
- width: 100%;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- height: 100%;
- justify-content: space-evenly;
- }
- .Img {
- /*width: 30%; */
- width: 300px;
- margin: 20px 50px;
- margin: 20px 10px;
- border: 1px solid #dbdbdb;
- border-radius: 5px;
- overflow: hidden;
- }
- .Img > img {
- width: 100%;
- height: 100%;
- }
- .student_body_one,
- .right_one {
- width: 100%;
- margin: 0 auto;
- background: #fff;
- margin-top: 10px;
- min-height: 688px;
- }
- .student {
- width: 85%;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: flex-start;
- margin: auto 10px;
- }
- .student > div {
- width: 12%;
- height: 35px;
- background: #e3759a;
- text-align: center;
- border: 1px solid #e3759a;
- border-radius: 5px;
- color: #fff;
- line-height: 35px;
- margin: 10px;
- }
- .dialog_change >>> .el-dialog {
- border-radius: 5px;
- }
- .dialog_change >>> .el-dialog__header {
- background: #303030;
- height: 36px;
- line-height: 36px;
- padding-left: 10px;
- padding: 0px 10px 0px;
- }
- .dialog_change >>> .el-dialog__headerbtn {
- top: 10px !important;
- right: 10px !important;
- }
- .dialog_change >>> .el-dialog__title {
- color: #fff;
- font-size: 14px;
- line-height: 5px;
- }
- .dialog_change >>> .el-dialog__body {
- background: #f5f5f5;
- }
- .blue_box {
- align-items: center;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .blue_box,
- .blue_box_one {
- width: 30%;
- height: 100px;
- text-align: center;
- color: #fff;
- background-image: linear-gradient(90deg, #477cd7, #65b9fc);
- border-radius: 15px;
- margin: 15px 0 15px 15px;
- cursor: pointer;
- }
- .blue_box_one {
- width: 200px;
- height: 200px;
- background-image: linear-gradient(90deg, #477cd7, #65b9fc);
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: center;
- }
- .blue_box_one > div {
- margin: 5px 0;
- }
- .blue_box_one > div:nth-child(1) {
- font-size: 20px;
- font-weight: bold;
- }
- .blue_box > div:nth-child(2) {
- margin-top: 10px;
- }
- .blue_box_one > div:nth-child(2) {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- width: 100%;
- text-align: center;
- max-width: calc(100% - 85px);
- margin: 0 auto;
- }
- .return {
- background: #205cc6;
- width: 70px;
- height: 30px;
- color: #fff;
- text-align: center;
- line-height: 32px;
- margin-right: 20px;
- cursor: pointer;
- border-radius: 5px;
- position: absolute;
- right: 0;
- top: 24px;
- font-size: 14px;
- }
- .return > img {
- width: 100%;
- height: 100%;
- }
- .cType {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- margin-top: 20px;
- }
- .cType > div > span {
- font-size: 18px;
- }
- .type_children + .type_children {
- margin-left: 10px;
- }
- .all_choose {
- margin-right: 10px;
- max-width: 250px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .rightT {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- width: calc(100% - 20px);
- }
- .jd {
- background: #4a9eed;
- margin-left: 15px;
- border-radius: 10px;
- color: #fff;
- width: 70px;
- height: 25px;
- text-align: center;
- line-height: 25px;
- }
- .sLeft {
- width: 14%;
- margin-right: 10px;
- background: rgb(255, 255, 255);
- padding: 20px 15px 0 15px;
- box-sizing: border-box;
- border-radius: 10px;
- }
- .courseT {
- border-left: 3px solid #2e66c9;
- padding-left: 5px;
- color: #2e66c9;
- font-weight: bold;
- }
- .courseTd {
- padding-top: 15px;
- height: 700px;
- overflow: auto;
- word-break: break-word;
- }
- .courseTd::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 6px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 6px;
- }
- /*定义滚动条轨道 内阴影+圆角*/
- .courseTd::-webkit-scrollbar {
- border-radius: 10px;
- background-color: #eee;
- }
- /*定义滑块 内阴影+圆角*/
- .courseTd::-webkit-scrollbar-thumb {
- border-radius: 10px;
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
- background-color: rgba(0, 0, 0, 0.1);
- }
- .rightTd,
- .noBRight {
- width: 84%;
- background: #fff;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-content: flex-start;
- align-items: center;
- justify-content: flex-start;
- }
- .noBRight {
- width: 100%;
- }
- .Tname {
- margin-left: 40px;
- word-break: break-all;
- }
- .detail {
- width: 100%;
- padding: 15px;
- box-sizing: border-box;
- }
- .statebox {
- display: flex;
- align-items: center;
- box-sizing: border-box;
- margin-left: 30px;
- }
- .statebox div {
- padding: 10px 20px;
- border-radius: 5px;
- background: #fff;
- display: flex;
- align-items: center;
- }
- .statebox div + div {
- margin-left: 20px;
- }
- .statebox div span {
- font-size: 16px;
- display: flex;
- align-items: center;
- }
- .statebox div span + span {
- margin-left: 10px;
- color: #1463eb;
- }
- .p_tool_box {
- display: flex;
- flex-wrap: wrap;
- background: rgb(217, 227, 239);
- /* color: #fff; */
- padding: 0 15px 10px;
- align-items: center;
- justify-content: space-evenly;
- border-radius: 5px;
- height: 200px;
- overflow: auto;
- }
- .p_tool {
- display: flex;
- margin-top: 10px;
- }
- .p_tool > div {
- display: flex;
- flex-direction: column;
- align-items: center;
- min-width: 60px;
- }
- .p_tool > div img {
- width: 50px;
- height: 50px;
- }
- .p_tool > div > div {
- margin-top: 5px;
- font-size: 12px;
- }
- .p_tool_box2 {
- padding: 10px 15px;
- }
- .p_tool2 {
- margin-right: 20px;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- /* margin-bottom: 10px; */
- }
- .p_tool2 > div:nth-child(1) {
- margin-bottom: 10px;
- }
- .toolBigBox {
- display: flex;
- flex-direction: column;
- }
- .toolSta {
- display: flex;
- margin: 20px 0 0;
- }
- .toolSta > div {
- display: flex;
- }
- .toolSta > div + div {
- margin-left: 50px;
- }
- .toolSta > div > div:nth-child(1) {
- margin: 10px 10px 0 0;
- }
- .blueBtn {
- background: rgb(79, 140, 223);
- color: #fff;
- display: flex;
- padding: 10px 15px;
- /* min-width: 150px; */
- min-width: 165px;
- font-size: 16px;
- align-items: center;
- border-radius: 5px;
- }
- .toolSta > div > div:nth-child(2) > div + div {
- margin-top: 10px;
- }
- .toolSta > div > div:nth-child(2) > div > div + div {
- margin: 0 20px;
- }
- .p_tool2 .toolbox {
- display: flex;
- align-items: center;
- margin-top: 10px;
- }
- .p_tool2 .toolbox > div {
- font-size: 18px;
- font-weight: bold;
- }
- .checkBox {
- display: flex;
- padding: 20px 0 0 20px;
- box-sizing: border-box;
- width: 100%;
- }
- .checkBox span {
- padding: 0 10px 5px;
- cursor: pointer;
- font-size: 18px;
- }
- .checkBox span + span {
- margin-left: 20px;
- }
- .checkBox .active {
- border-bottom: 2px solid rgb(75, 151, 229);
- cursor: pointer;
- }
- .detail_box {
- background-color: rgb(231, 240, 247);
- padding: 15px 20px;
- box-sizing: border-box;
- width: 100%;
- }
- .detail_box + .detail_box {
- margin-top: 20px;
- }
- .detail_box .title {
- display: flex;
- align-items: center;
- }
- .detail_box .title > span:nth-child(1) {
- font-size: 20px;
- display: flex;
- align-items: center;
- }
- .detail_box .box {
- margin-top: 20px;
- background-color: #fff;
- padding: 15px 20px;
- border-radius: 5px;
- /* width: 100%; */
- box-sizing: border-box;
- overflow: auto;
- }
- .progress {
- display: -webkit-box;
- display: -ms-flexbox;
- width: 100%;
- overflow: auto;
- padding: 15px 0;
- }
- .chapter {
- margin-right: 10px;
- }
- .chapter + .chapter {
- padding-left: 10px;
- border-left: 1px solid rgb(220, 220, 220);
- }
- .chapter .stage {
- width: 100%;
- color: #fff;
- background: linear-gradient(90deg, #477cd7, #65b9fc);
- border-radius: 5px;
- height: 50px;
- line-height: 50px;
- font-size: 18px;
- text-align: center;
- }
- .chapter .task {
- display: flex;
- width: 100%;
- }
- .chapter .task .taskBox {
- min-width: 110px;
- max-width: 180px;
- height: 100%;
- }
- .chapter .task .taskBox + .taskBox {
- margin-left: 10px;
- }
- .chapter .task .taskBox .taskName {
- text-align: center;
- margin: 10px;
- }
- .toolIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/toolion.png);
- background-size: 100% 100%;
- }
- .toolIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/toolion.png);
- background-size: 100% 100%;
- }
- .taskIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/task.png);
- background-size: 100% 100%;
- }
- .finishIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/finish.png);
- background-size: 100% 100%;
- }
- .learningIcon::before {
- content: "";
- width: 22px;
- height: 22px;
- display: inline-block;
- background-image: url(../assets/icon/learning.png);
- background-size: 100% 100%;
- }
- .frequencyIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/frequency.png);
- background-size: 100% 100%;
- }
- .timeIcon::before {
- content: "";
- width: 26px;
- height: 26px;
- display: inline-block;
- background-image: url(../assets/icon/time.png);
- background-size: 100% 100%;
- }
- .chapter_time_box {
- border-left: 5px solid #f0f0f0;
- padding: 0 30px;
- box-sizing: border-box;
- margin-top: 35px;
- }
- .c_box {
- padding-top: 40px;
- position: relative;
- margin-top: 45px;
- }
- .c_box .stage_box {
- display: flex;
- align-items: center;
- position: absolute;
- top: -20px;
- left: -45px;
- }
- .c_box .stage_box .yuan {
- width: 25px;
- height: 25px;
- background: rgb(244, 244, 244);
- border-radius: 25px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 10px;
- }
- .c_box .stage_box .yuan::before {
- content: "";
- width: 15px;
- height: 15px;
- background: rgb(59, 149, 238);
- border-radius: 25px;
- }
- .c_box .stage_box .stage {
- background: linear-gradient(90deg, #477cd7, #65b9fc);
- border-radius: 5px;
- height: 50px;
- line-height: 50px;
- font-size: 18px;
- color: #fff;
- width: fit-content;
- padding: 0 20px;
- }
- .s_up {
- cursor: pointer;
- transition: all 0.5s;
- }
- .s_up img {
- width: 35px;
- }
- .s_up2 {
- transform: rotate(90deg);
- }
- .lineBox {
- width: 5px;
- height: 20px;
- background-image: linear-gradient(180deg, #3c65ba, #a1c6ec);
- margin-right: 5px;
- }
- .disCss {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- }
- .disCss > div {
- margin: 10px 10px 0 0;
- }
- </style>
|