| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120 |
- <template>
- <div class="pb_content">
- <div class="pb_content_body" style="height: 100%">
- <div class="body_student">
- <div class="student_head">
- <div
- v-if="screenType != 2 && screenType != 5"
- class="return"
- @click.stop="
- goTo(
- '/index?userid=' +
- userid +
- '&oid=' +
- oid +
- '&org=' +
- org +
- '&cid=' +
- classId +
- '&tType=' +
- tType +
- '&screenType=' +
- screenType
- )
- "
- >
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/returnIndex.png" alt="" />
- </div>
- <div>返回</div>
- <!-- <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" v-if="courseType.length">
- <div
- class="all_choose"
- v-for="(item, index) in courseType"
- :key="index"
- >
- <span style="color: #717c8d; font-weight: 400">{{
- "分类" + ":"
- }}</span>
- <span
- class="type_children"
- v-for="(item2, index2) in courseTypeJson[item]"
- :key="index2"
- >{{ item2 }}</span
- >
- </div>
- </div>
- <div class="cType" style="align-items: flex-start">
- <div
- style="
- min-width: fit-content;
- color: #717c8d;
- font-weight: 400;
- "
- >
- 创建者:<span style="font-weight: bold; color: #0e1e33">{{
- courseDetail.username
- }}</span>
- </div>
- <div
- style="display: flex; align-items: center; margin-left: 32px"
- >
- <div style="color: #717c8d; font-weight: 400">参与人数:</div>
- <!-- <div class="man">
- <img src="../assets/people.png" alt />
- </div> -->
- <div class="person" style="font-weight: bold; color: #0e1e33">
- {{
- courseDetail.vcount != null ? courseDetail.vcount : 0
- }}人
- </div>
- </div>
- </div>
- <div class="cType" style="color: #6c6c6c">
- <div
- class="Tname"
- v-if="Tname.length > 0"
- @click="TnameCheck = !TnameCheck"
- style="color: #717c8d; font-weight: 400"
- >
- 协同成员:<span
- v-for="(tname, tIndex) in TnameCheck
- ? Tname
- : Tname.slice(0, 6)"
- :key="tIndex"
- style="margin: 0 5px; font-weight: 400; color: #0e1e33"
- >{{ tname }}</span
- ><span
- style="margin: 0 5px; font-weight: 400; color: #b2b2b2"
- v-if="!TnameCheck && Tname.length > 6"
- >展开</span
- ><span style="margin: 0 5px; font-weight: 400; color: #b2b2b2" v-else-if="TnameCheck && Tname.length > 6">收起</span>
- </div>
- </div>
- <!-- <div
- class="cType"
- style="font-size: 18px; color: #6c6c6c"
- v-if="classList.length && tType != 2"
- >
- <div class="teaClass">
- <div>授课班级:</div>
- <div>
- <el-button
- @click="gotoCourse('')"
- style="background: #4a9eed; color: #fff; margin: 0 5px"
- v-if="classList.length != 1"
- >全部</el-button
- ><el-button
- @click="gotoCourse(item.id)"
- v-for="(item, index) in classList"
- :key="index"
- style="background: #4a9eed; color: #fff; margin: 0 5px"
- >{{ item.name }}</el-button
- >
- </div>
- </div>
- </div> -->
- <div class="btnBox" v-if="screenType != 5">
- <!-- <div class="now_study" @click="dialogVisible = true">
- 立即学习
- </div> -->
- <div
- class="now_study"
- @click="setQr(courseDetail.courseId)"
- v-if="tType != 2"
- >
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/codeIcon.png" alt="" />
- </div>
- <div>生成二维码</div>
- </div>
- <div
- class="now_study"
- @click="dialogVisibleGroup = true"
- v-if="courseDetail.state == 1"
- >
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/groupIcon.png" alt="" />
- </div>
- <div>
- {{
- courseDetail.userid != userid &&
- courseDetail.course_teacher &&
- courseDetail.course_teacher.indexOf(userid) == -1
- ? "加入分组"
- : "设置分组"
- }}
- </div>
- </div>
- <div class="now_study" @click="exportCourse" v-if="tType != 2">
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/CourseInfo.png" alt="" />
- </div>
- <div>导出信息</div>
- </div>
- <!-- -->
- <div class="now_study" @click="uploadCourse" v-if="tType != 2">
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
- </div>
- <div>导出文件</div>
- </div>
- <!-- <div
- class="now_group"
- v-if="groupInfo && courseDetail.state == 1"
- >
- <span>所在分组:</span>{{ groupInfo.name }}
- </div> -->
- </div>
- <div
- v-if="tType != 2 && (classList.length || courseDetail.userid == userid)"
- class="goToStudy"
- @click="goToStudyOrDia(classList)"
- >
- <div class="returnIndexImg">
- <img src="../assets/icon/newIcon/people.png" alt="" />
- </div>
- <div>以班级授课</div>
- </div>
- </div>
- </div>
- </div>
- <div class="student_body">
- <div class="sLeft" v-if="courseDetail.brief">
- <div class="courseT">课程详情</div>
- <div class="courseTd" v-html="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"
- >阶段选择
- <div v-show="false">
- {{
- courseDetail.state == 1
- ? "阶段模式"
- : courseDetail.state == 2
- ? "任务模式"
- : courseDetail.state == 3
- ? "极简模式"
- : "AI模式"
- }}
- </div></span
- >
- <span :class="{ active: type == 1 }" @click="getCTwo"
- >课程分析</span
- >
- <span :class="{ active: type == 3 }" @click="getCThree"
- >课程评价</span
- >
- </div>
- <div
- v-if="((tType == 1 || tType == 4) && type == 2) || tType == 2"
- :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
- style="width: 100%; padding-top: 20px"
- >
- <div
- class="courseItem"
- v-for="(item, index) in chapInfo"
- :key="index"
- @click="goToStudyRate(index)"
- :class="{
- disabled: isFollow == 2 && tType == 2 && followC != index,
- }"
- >
- <div class="jdAndTask">
- <div>第{{ index + 1 }}阶段</div>
- <div
- v-if="courseDetail.state == 2 || courseDetail.state == 3 || courseDetail.state == 4 || courseDetail.state == 5"
- >
- 任务查看
- </div>
- <div :title="item.dyName">
- {{ item.dyName }}
- </div>
- </div>
- <div style="font-size: 14px; font-weight: 400; color: 3681FC">
- {{ item.chapterInfo[0].taskJson.length }}个任务
- </div>
- </div>
- <!-- <div
- class="blue_box_one"
- v-for="(item, index) in chapInfo"
- :key="index"
- @click="addUserRate(index)"
- :class="{
- disabled: isFollow == 2 && tType == 2 && followC != index,
- }"
- >
- <div v-if="courseDetail.state == 1">第{{ index + 1 }}阶段</div>
- <div v-if="courseDetail.state == 2 || courseDetail.state == 3">
- 任务查看
- </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 style="color: #fe9999">{{
- 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="stageCss" @click="addUserRate(index)">
- <div
- style="
- width: 95%;
- height: 60px;
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- "
- >
- <el-tooltip
- class="item"
- effect="light"
- :content="item.name"
- placement="top"
- >
- <div
- class="titleCss"
- style="width: 80%; max-width: unset"
- >
- 第{{ index + 1 }}阶段 {{ item.name }}
- </div>
- </el-tooltip>
- <!-- <div
- style="
- font-size: 14px;
- font-weight: 400;
- color: #3681fc;
- min-width: 30px;
- "
- >
- 查看
- </div> -->
- </div>
- </div>
- <!-- {{ chaptersJson.chapterState[index].isFinsh ? '已完成' : '进行中' }} -->
- <div class="task">
- <div
- v-for="(item2, index2) in item.array"
- :key="index + '-' + index2"
- class="taskBox"
- :class="item.array.length > 1 ? 'borderRight' : ''"
- >
- <div class="taskName">
- <div class="navIndex">任务{{ index2 + 1 }}:</div>
- <div>
- <el-tooltip
- class="item"
- effect="light"
- :content="item2.name"
- placement="top"
- >
- <div
- class="titleCss"
- style="
- font-size: 14px;
- font-weight: 400;
- color: #717c8d;
- "
- >
- {{ item2.name }}
- </div>
- </el-tooltip>
- </div>
- </div>
- <div class="p_tool_box">
- <span
- v-for="(item3, index3) in item2.array"
- :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>AIoT Blockly</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>AI Python</div>
- </div>
- <div v-if="item3.tool == 24">
- <img
- src="../assets/icon/fourthToolList/AIprogram.png"
- alt
- />
- <div>AI Blockly</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/table.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 == 50">
- <img
- src="../assets/icon/thirdToolList/plwork.png"
- alt
- />
- <div>批量上传</div>
- </div>
- <div v-if="item3.tool == 57">
- <img
- src="../assets/icon/fourthToolList/cocopi.png"
- alt
- />
- <div>CocoPi</div>
- </div>
- <div v-if="item3.tool == 58">
- <img
- src="../assets/icon/fourthToolList/car.png"
- alt
- />
- <div>模拟驾驶</div>
- </div>
- <div v-if="item3.tool == 59">
- <img
- src="../assets/icon/fourthToolList/lineSearch.png"
- alt
- />
- <div>路径搜索</div>
- </div>
- <div v-if="item3.tool == 60">
- <img
- src="../assets/icon/fourthToolList/deepLearning.png"
- alt
- />
- <div>深度学习</div>
- </div>
- <div v-if="item3.tool == 61">
- <img
- src="../assets/icon/fourthToolList/allHistory.png"
- alt
- />
- <div>深度学习</div>
- </div>
- <div v-if="item3.tool == 62">
- <img
- src="../assets/icon/fourthToolList/interVideo.png"
- alt
- />
- <div>交互视频</div>
- </div>
- <div v-if="item3.tool == 63">
- <img
- src="../assets/icon/fourthToolList/Wood.png"
- alt
- />
- <div>海龟编程</div>
- </div>
- <div v-if="item3.tool == 65">
- <img
- src="../assets/icon/firstToolList/pickPeople.png"
- alt
- />
- <div>挑人</div>
- </div>
- <div v-if="item3.tool == 66">
- <img
- src="../assets/icon/secondToolList/formulaEdi.png"
- alt
- />
- <div>公式编辑</div>
- </div>
- <div v-if="item3.tool == 67">
- <img
- src="../assets/icon/secondToolList/molStr.png"
- alt
- />
- <div>分子结构</div>
- </div>
- <div v-if="item3.tool == 68">
- <img
- src="../assets/icon/secondToolList/timeAxis.png"
- alt
- />
- <div>时间轴</div>
- </div>
- <div v-if="item3.tool == 69">
- <img
- src="../assets/icon/secondToolList/english.png"
- alt
- />
- <div>英语写作</div>
- </div>
- <div v-if="item3.tool == 70">
- <img
- src="../assets/icon/thirdToolList/englishVoice.png"
- alt
- />
- <div>英语口语</div>
- </div>
- <div v-if="item3.tool == 71">
- <img
- src="../assets/icon/fourthToolList/chatgpt.png"
- alt
- />
- <div>AI智能体</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;
- font-weight: 700;
- "
- >
- {{ 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"
- :class="
- (item.chapter.length == 1 ||
- item.chapter.length > 1) &&
- (item.chapter[0].task.length == 1 ||
- item.chapter[0].task.length > 1) &&
- item.chapter[0].task[0].works.length == 0
- ? 'bgCss'
- : ''
- "
- ></div>
- <div
- class="stage"
- :style="{
- background:
- (item.chapter.length == 1 ||
- item.chapter.length > 1) &&
- (item.chapter[0].task.length == 1 ||
- item.chapter[0].task.length > 1) &&
- item.chapter[0].task[0].works.length == 0
- ? '#ccc'
- : '',
- }"
- >
- 第{{ index + 1 }}阶段 {{ item.name }}
- </div>
- <div
- class="s_up"
- :style="{
- display:
- (item.chapter.length == 1 ||
- item.chapter.length > 1) &&
- (item.chapter[0].task.length == 1 ||
- item.chapter[0].task.length > 1) &&
- item.chapter[0].task[0].works.length == 0
- ? 'none'
- : '',
- }"
- :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;
- "
- v-if="
- item2.task[0].tool != undefined && item2.isWork
- "
- >
- <div
- style="
- width: 13px;
- height: 13px;
- background: #5a82cb 100%;
- border-radius: 50%;
- margin-right: 10px;
- "
- ></div>
- <div style="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">
- AIoT Blockly
- </div>
- <div v-if="item3.tool == 22">AI体验</div>
- <div v-if="item3.tool == 23">AI Python</div>
- <div v-if="item3.tool == 24">
- AI Blockly
- </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 v-if="item3.tool == 50">批量上传</div>
- <div v-if="item3.tool == 57">CocoPi</div>
- <div v-if="item3.tool == 58">模拟驾驶</div>
- <div v-if="item3.tool == 59">路径搜索</div>
- <div v-if="item3.tool == 60">深度学习</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) > 100.0
- ? 100 + "%"
- : (
- (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
- v-if="(type == 3)"
- :class="courseDetail.brief != '' ? 'rightTd' : 'noBRight'"
- style="width: 100%; padding-top: 20px"
- >
- <scoreZong :courseid="id" :title="courseDetail.title"></scoreZong>
- </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>
- <Group
- :dialogVisibleGroup.sync="dialogVisibleGroup"
- :classList="classList"
- :cid="id"
- :courseDetail="courseDetail"
- :userid="userid"
- :oid="oid"
- :type="tType"
- :classId="classId"
- @getGroup="getGroup"
- ></Group>
- </div>
- </div>
- <el-dialog title="课程二维码" :visible.sync="dialogVisibleQR" width="400px">
- <div class="qrcode" ref="qrCodeUrl"></div>
- </el-dialog>
- <el-dialog
- title="选择授课班级"
- :visible.sync="dialogVisibleSk"
- width="626px"
- class="diy_sk"
- >
- <div class="classBox">
- <div @click="gotoCourse('')">全部</div>
- <div
- @click="gotoCourse(item.id)"
- v-for="(item, index) in classList"
- :key="index"
- >
- {{ item.name }}
- </div>
- </div>
- <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
- </el-dialog>
- </div>
- </template>
- <script>
- import Heatmap from "./tools/heatmap.vue";
- import Group from "./group/group.vue";
- import QRCode from "qrcodejs2";
- import { tools } from "../common/tools";
- import axios from "axios";
- import JSZip from "jszip";
- import FileSaver from "file-saver";
- import scoreZong from './scoreZong/get.vue'
- var OpenCC = require("opencc-js");
- let converter = OpenCC.Converter({
- from:'hk',
- to:'cn'
- })
- const getFile = (url) => {
- return new Promise((resolve, reject) => {
- var credentials = {
- accessKeyId: "AKIATLPEDU37QV5CHLMH",
- secretAccessKey: "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",
- }; //秘钥形式的登录上传
- window.AWS.config.update(credentials);
- window.AWS.config.region = "cn-northwest-1"; //设置区域
- let url2 = url;
- let _url2 = "";
- if (
- url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
- ) {
- _url2 = url2.split(
- "https://view.officeapps.live.com/op/view.aspx?src="
- )[1];
- } else {
- _url2 = url2;
- }
- var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
- let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
- var params = {
- Bucket: "ccrb",
- Key: name
- };
- s3.getObject(params, function (err, data) {
- if (err) {
- console.log(err, err.stack)
- resolve({ data: 1 });
- }else {
- resolve({ data: data.Body });
- console.log(data);
- } // sxuccessful response
- });
- // axios({
- // method: "get",
- // url,
- // responseType: "blob",
- // })
- // .then((data) => {
- // resolve({ data: data.data });
- // })
- // .catch((error) => {
- // resolve({ data: 1 });
- // // reject(error.toString());
- // });
- });
- };
- export default {
- components: {
- Heatmap,
- Group,
- scoreZong
- },
- data() {
- return {
- choose: 0,
- dialogVisibleSk: false,
- dialogVisible: false,
- dialogVisibleGroup: 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: {},
- classList: [],
- aStudentName: [],
- chapInfo: [],
- courseType: [],
- Tname: [],
- TnameCheck: false,
- courseTypeJson: {},
- userinfo: [],
- mr: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
- rw: 0,
- chaptersJson: {},
- type: 2,
- inviteCode: [],
- groupInfo: "",
- isFollow: "",
- followC: "",
- dialogVisibleQR: false,
- checkStage: 0,
- tools: JSON.parse(converter(JSON.stringify(tools))),
- };
- },
- methods: {
- handleClose(done) {
- done();
- },
- setQr(cid) {
- this.dialogVisibleQR = true;
- setTimeout(() => {
- this.$refs.qrCodeUrl.innerHTML = "";
- var qrcode = new QRCode(this.$refs.qrCodeUrl, {
- text: "https://beta.cloud.cocorobo.cn/#/course?courseid=" + cid, // 需要转换为二维码的内容
- width: 350,
- height: 350,
- colorDark: "#000000",
- colorLight: "#ffffff",
- correctLevel: QRCode.CorrectLevel.H,
- });
- }, 500);
- },
- goTo(path) {
- this.$router.push(path);
- },
- gotoCourse(id) {
- if (this.courseDetail.state == 1) {
- if (this.classList.length) {
- this.goTo(
- "/studyStudent?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType +
- "&tcid=" +
- id
- );
- } else {
- this.goTo(
- "/studyStudent?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- }
- } else if (this.courseDetail.state == 2 || this.courseDetail.state == 5) {
- if (this.classList.length) {
- this.goTo(
- "/studystudentE2?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType +
- "&tcid=" +
- id
- );
- } else {
- this.goTo(
- "/studystudentE2?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- }
- } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
- if (this.classList.length) {
- this.goTo(
- "/studystudentE3?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType +
- "&tcid=" +
- id
- );
- } else {
- this.goTo(
- "/studystudentE3?type=" +
- this.checkStage +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- }
- }
- },
- goToStudyOrDia(l) {
- if (l.length > 0) {
- this.dialogVisibleSk = true;
- } else {
- this.getCourseDetail1().then(_=>{
- if(this.classList.length<=0){
- this.$confirm("该课程尚未指定授课班级,请放回首页,使用修改功能添加授课班级。","提示",{
- confirmButtonText: '去修改',
- cancelButtonText: '取消',
- type:"error",
- }).then(() => {
- if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
- window.parent.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
- }else if(this.courseDetail.state == 3){
- window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
- }else if(this.courseDetail.state == 4 || this.courseDetail.state == 5){
- window.parent.postMessage({ tools: "openCourseAiUpdate",cid:this.id }, "*");
- }
- })
- }else{
- this.dialogVisibleSk = true;
- }
- })
- // this.addUserRate(0);
- }
- },
- goToStudyRate(i) {
- this.checkStage = i;
- if (this.tType == 2) {
- this.addUserRate(i);
- } else {
- if (this.classList.length > 0) {
- this.dialogVisibleSk = true;
- } else {
- this.addUserRate(i);
- }
- }
- },
- 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;
- // }
- // }
- // }
- if (this.isFollow == 2 && this.tType == 2 && this.followC != i) {
- return;
- }
- let params = {
- uid: this.userid,
- cid: this.id,
- };
- this.ajax
- .get(this.$store.state.api + "addUserR", params)
- .then((res) => {
- this.updateVc();
- if (this.tType == 1 || this.tType == 4) {
- if (this.courseDetail.state == 1) {
- 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 if (this.courseDetail.state == 2 || this.courseDetail.state == 5) {
- this.goTo(
- "/studystudentE2?type=" +
- i +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- } else if (this.courseDetail.state == 3 || this.courseDetail.state == 4) {
- this.goTo(
- "/studystudentE3?type=" +
- i +
- "&courseId=" +
- this.id +
- "&userid=" +
- this.userid +
- "&oid=" +
- this.oid +
- "&org=" +
- this.org +
- "&cid=" +
- this.classId +
- "&tType=" +
- this.tType +
- "&screenType=" +
- this.screenType
- );
- }
- } else if (this.tType == 2) {
- 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
- );
- // this.gotoCourse(this.classId);
- } 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);
- });
- },
- async getCourseDetail1() {
- const loading = this.$loading.service({
- background: "rgba(255, 255, 255, 0.7)",
- target: document.querySelector(".student_table"),
- });
- let params = {
- courseId: this.id,
- };
- let res = await this.ajax.get(
- this.$store.state.api + "selectCourseDetail2",
- params
- );
- loading.close();
- // this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
- this.courseDetail = res.data[0][0];
- this.isFollow = res.data[0][0].follow;
- this.followC = res.data[0][0].followC
- ? res.data[0][0].followC.split("-")[0]
- : "";
- this.classList = res.data[3];
- let groupData = res.data[5];
- 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);
- }
- }
- }
- this.Tname = [];
- 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);
- this.rw = 0
- for (var z = 0; z < this.chapInfo.length; z++) {
- this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
- }
- this.inviteCode = [];
- for (var i = 0; i < res.data[4].length; i++) {
- this.inviteCode.push({
- cid: res.data[4][i].classid,
- ic: res.data[4][i].code,
- });
- }
- if (res.data[3].length != this.inviteCode.length) {
- let classArray = [];
- let noClassArray = [];
- for (var i = 0; i < res.data[3].length; i++) {
- classArray.push(res.data[3][i].id);
- noClassArray.push(res.data[3][i].id);
- }
- this.inviteCode = this.inviteCode.filter((el) => {
- if (classArray.indexOf(el.cid) != -1) {
- noClassArray.splice(noClassArray.indexOf(el.cid), 1);
- return el;
- }
- });
- for (var i = 0; i < noClassArray.length; i++) {
- await this.getInviteCode(noClassArray[i]);
- }
- let a = this.inviteCode;
- console.log(this.inviteCode);
- this.addInviteCode();
- }
- this.groupInfo = "";
- if (groupData.length) {
- gp: for (var g = 0; g < groupData.length; g++) {
- if (groupData[g].userid == this.userid) {
- let gid = groupData[g].groupCid;
- let groupA = JSON.parse(groupData[g].group).group;
- for (var gA = 0; gA < groupA.length; gA++) {
- if (groupA[gA].id == gid) {
- this.groupInfo = {
- name: groupA[gA].name,
- };
- break gp;
- }
- }
- }
- }
- }
- // debugger
- },
- addInviteCode() {
- let params = [
- {
- courseId: this.id,
- inviteCode: JSON.stringify(this.inviteCode),
- },
- ];
- this.ajax
- .post(this.$store.state.api + "addInviteCode", params)
- .then((res) => {})
- .catch((err) => {
- console.error(err);
- });
- },
- getCTwo() {
- this.type = 1;
- this.getCourseDetail2();
- },
- getCThree(){
- this.type = 3
- },
- getCourseDetail2() {
- 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];
- var d = res.data[3];
- 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);
- }
- }
- }
- this.Tname = [];
- 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);
- this.rw = 0
- 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.tool[i] = { array: [], name: _chapters[i].dyName };
- _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.tool[i].array[z] = { array: [], name: el[z].task };
- _chaptersJson.chapter[i][z] = [];
- _chaptersJson.work[i].chapter[z] = {
- name: el[z].task,
- task: [],
- isWork: false,
- };
- if (d.length > 0) {
- _chaptersJson.work[i].chapter[z].isWork = true;
- }
- _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.tool[i].array[z].array[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);
- });
- },
- getGroup() {
- this.getCourseDetail1();
- },
- 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);
- // });
- // },
- async getInviteCode(cid) {
- let code = this.randomNumber();
- // let params = {
- // code: code,
- // oid: this.oid,
- // }
- // let type = 1
- // for (var i = 0; i < this.inviteCode.length; i++) {
- // if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
- // type = 2
- // }
- // }
- // if (type == 2) {
- // this.getInviteCode(cid)
- // return;
- // }
- // const res = await this.ajax.get(this.$store.state.api + "selectInviteCode2", params)
- // if (res.data.length && res.data[0].length && res.data[0][0].courseId != this.cid) {
- // this.getInviteCode(cid)
- // return;
- // }
- let array = [];
- for (var i = 0; i < this.inviteCode.length; i++) {
- array.push(this.inviteCode[i].cid);
- }
- if (array.indexOf(cid) != -1) {
- this.inviteCode[array.indexOf(cid)].ic = code;
- } else {
- this.inviteCode.push({ cid: cid, ic: code });
- }
- },
- randomNumber() {
- // 随机生成两位数
- // let num = Math.floor(Math.random() * 900) + 100;
- // 生成 0 到 99 之间的随机整数
- const randomNumber = Math.floor(Math.random() * 100);
- // 如果随机数小于 10,补上前导零
- const num =
- randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
- // 随机生成两个大写字母
- let letters = "";
- let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- for (let i = 0; i < 3; i++) {
- letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
- }
- // 随机生成两位数字和字母的组合
- let mix = "";
- let chars =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- for (let i = 0; i < 3; i++) {
- let char = chars.charAt(Math.floor(Math.random() * chars.length));
- mix += char;
- }
- // 随机选择一种类型
- let type = Math.floor(Math.random() * 3);
- return num;
- // 根据类型输出结果
- switch (type) {
- case 0:
- console.log(num); // 输出两位数
- return num;
- case 1:
- console.log(letters); // 输出两个大写字母
- return letters;
- case 2:
- console.log(mix); // 输出两位数字和字母的组合
- return mix;
- }
- },
- exportCourse() {
- let _title = `<div style="font-size:50px;font-weight:bold;">${this.courseDetail.title}</div>`;
- let _type = "";
- if (this.courseType.length) {
- _type = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">分类:</span><span>${
- this.courseTypeJson[Object.keys(this.courseTypeJson)[0]]
- }</span></div>`;
- }
- let _user = `<div style="font-size:30px;margin-top:10px;"><span style="color: rgb(113, 124, 141); font-weight: 400;">创建者:</span><span>${this.courseDetail.username}</span></div>`;
- const _chapInfo = this.chapInfo;
- let _chap = "";
- for (let i = 0; i < _chapInfo.length; i++) {
- _chap += `<div style="font-size:40px;margin-top:70px;"><span>第${
- i + 1
- }阶段:${_chapInfo[i].dyName}</span></div>`;
- let _task = _chapInfo[i].chapterInfo[0].taskJson;
- for (let j = 0; j < _task.length; j++) {
- _chap += `<div style="font-size:30px;margin-top:50px;"><span>任务${
- j + 1
- }:${_task[j].task}</span></div>`;
- if (_task[j].taskDetail) {
- _chap += `<div style="font-size:25px;margin-top:40px;">任务描述</div>`;
- _chap += `<div style="font-size:25px;margin-top:10px;">${_task[j].taskDetail}</div>`;
- }
- let _tool = _task[j].toolChoose;
- if (_tool[0].tool.length) {
- for (let z = 0; z < _tool.length; z++) {
- _chap += `<div style="font-size:23px;margin-top:30px;"><span>步骤${
- z + 1
- }:</span><span>${
- tools[_tool[z].tool[0]] ? tools[_tool[z].tool[0]].name : ""
- }</span></div>`;
- if (_tool[z].toolDetail) {
- _chap += `<div style="font-size:23px;margin-top:20px;">工具描述</div>`;
- _chap += `<div style="font-size:23px;margin-top:10px;">${_tool[z].toolDetail}</div>`;
- }
- }
- }
- }
- }
- let _html = _title + _type + _user + _chap;
- this.generate(this.courseDetail, _html);
- },
- async generate(a, html) {
- // 将html文件中需要用到的数据挂载到store上
- const content = `<!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>${a.title}</title>
- <style>
- </style>
- </head>
- <body>
- ${html}
- </body>
- </html>`;
- // debugger
- // 生成报告
- const link = document.createElement("a");
- let dname = a.title + ".doc";
- // link.download = "报告.html"; // 文件名
- link.download = dname; // 文件名
- link.style.display = "none";
- // 创建文件流
- // 创建bolb实例时,内容一定要放在[]中
- const blob = new Blob([content], {
- type: "text/plain;charset='utf-8'",
- });
- link.href = window.URL.createObjectURL(blob);
- document.body.appendChild(link);
- link.click();
- document.body.removeChild(link);
- // saveAs(
- // htmlDocx.asBlob(content, {
- // orientation: "landscape", //跨域设置
- // }),
- // //文件名
- // "报告.doc"
- // );
- },
- uploadCourse() {
- // this.$confirm("确定导出课件吗?", "提示", {
- // confirmButtonText: "确定",
- // cancelButtonText: "取消",
- // type: "warning",
- // })
- // .then(() => {
- const loading = this.$loading.service({
- background: "rgba(255, 255, 255, 0.7)",
- target: document.body,
- text: "文件加载中...",
- });
- const _chapInfo = this.chapInfo;
- let url = [];
- for (let i = 0; i < _chapInfo.length; i++) {
- let _task = _chapInfo[i].chapterInfo[0].taskJson;
- for (let j = 0; j < _task.length; j++) {
- let _chapterData = _task[j].chapterData;
- for (let k = 0; k < _chapterData.length; k++) {
- if (
- _chapterData[k].url.indexOf(
- "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
- ) !== -1 &&
- _chapterData[k].url.indexOf("img") === -1
- ) {
- let _point = _chapterData[k].url.split(".")[_chapterData[k].url.split(".").length - 1]
- url.push({
- name: _chapterData[k].name.indexOf(_point) == -1 ? (_chapterData[k].name + '.' + _point) : _chapterData[k].name,
- url: _chapterData[k].url,
- });
- }
- }
- }
- }
- console.log(url);
- this.downLoadAll(url, loading);
- // })
- // .catch(() => {});
- },
- downLoadAll(url, loading) {
- const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
- const zip = new JSZip();
- const cache = {};
- const promises = [];
- data.forEach((item) => {
- const promise = getFile(item.url).then((data) => {
- if (data.data != 1) {
- // 下载文件, 并存成ArrayBuffer对象
- const file_name = item.name; // 获取文件名
- zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
- cache[file_name] = data.data;
- }
- });
- promises.push(promise);
- });
- Promise.all(promises).then(() => {
- zip.generateAsync({ type: "blob" }).then((content) => {
- // 生成二进制流
- FileSaver.saveAs(content, this.courseDetail.title + ".zip"); // 利用file-saver保存文件 自定义文件名
- setTimeout(() => {
- loading.close();
- }, 2000);
- });
- });
- },
- },
- created() {
- // if(this.tType == 1 || this.tType == 4){
- // this.getCourseDetail2();
- // }else{
- // this.getCourseDetail1();
- // }
- this.getCourseDetail1();
- 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;
- }
- .returnIndexImg {
- width: 18px;
- margin: 0 7px 0 0;
- height: auto;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- }
- .returnIndexImg > img {
- width: 100%;
-
- }
- .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: 20px;
- font-weight: bold;
- max-width: calc(100% - 250px);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .people {
- display: flex;
- margin-top: 20px;
- }
- .person {
- margin-left: 10px;
- /* line-height: 18px; */
- }
- .btnBox {
- display: flex;
- margin-top: 20px;
- }
- .now_study {
- /* width: 120px; */
- padding: 0 10px;
- height: 45px;
- color: #fff;
- background: #3681fc;
- text-align: center;
- line-height: 45px;
- border-radius: 8px;
- font-size: 16px;
- cursor: pointer;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: center;
- }
- .now_study + .now_study {
- margin-left: 10px;
- }
- .goToStudy {
- /* width: 120px; */
- padding: 0 10px;
- height: 45px;
- background: #3681fc;
- border-radius: 8px;
- color: #fff;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: center;
- position: absolute;
- right: 25px;
- bottom: 25px;
- font-size: 16px;
- cursor: pointer;
- }
- .now_group {
- height: 35px;
- font-size: 14px;
- line-height: 35px;
- margin-left: 32px;
- }
- .now_group > span:nth-child(1) {
- color: rgb(108, 108, 108);
- }
- .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;
- }
- .courseItem {
- width: 299px;
- height: 70px;
- background: #ddebf8;
- border-radius: 8px;
- margin-right: 16px;
- margin-bottom: 16px;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: flex-start;
- justify-content: center;
- padding-top: 20px;
- cursor: pointer;
- }
- .jdAndTask {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: flex-start;
- }
- .jdAndTask > div:nth-child(1) {
- font-size: 18px;
- font-weight: bold;
- color: #000;
- margin-bottom: 10px;
- }
- .jdAndTask > div:nth-child(2) {
- font-size: 14px;
- font-weight: 400;
- color: #000;
- max-width: 180px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-word;
- width: 180px;
- }
- .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: #f0f4fa;
- width: 75px;
- height: 36px;
- color: #000;
- text-align: center;
- line-height: 36px;
- margin-right: 20px;
- cursor: pointer;
- border-radius: 5px;
- position: absolute;
- right: 10px;
- top: 24px;
- font-size: 14px;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- }
- .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-weight: 400;
- color: #717c8d;
- }
- .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: #f0f0f0;
- margin-left: 12px;
- border-radius: 4px;
- font-size: 14px;
- color: #3d3d3d;
- width: 90px;
- height: 28px;
- text-align: center;
- line-height: 28px;
- }
- .sLeft {
- width: 343px;
- margin-right: 10px;
- background: rgb(255, 255, 255);
- padding: 20px 20px 0 20px;
- box-sizing: border-box;
- border-radius: 12px;
- }
- .courseT {
- border-left: 3px solid #3681fc;
- padding-left: 5px;
- font-weight: bold;
- }
- .courseTd {
- padding-top: 15px;
- height: 700px;
- overflow: auto;
- word-break: break-word;
- white-space: pre-line;
- }
- .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: calc(100% - 28% - 10px);
- background: #fff;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-content: flex-start;
- align-items: center;
- justify-content: flex-start;
- border-radius: 12px;
- padding-left: 17px;
- }
- .rightTd:nth-child(5n),
- .noBRight:nth-child(5n) {
- margin-right: 0;
- }
- .noBRight {
- width: 100%;
- }
- .Tname {
- word-break: break-all;
- width: auto;
- /* overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis; */
- }
- /* .TnameC{
- width:auto;
- overflow: unset;
- white-space: unset;
- text-overflow: unset;
- } */
- .Tname > span {
- cursor: pointer;
- color: #1463eb;
- margin-left: 10px;
- }
- .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;
- height: 46px;
- line-height: 46px;
- box-sizing: border-box;
- }
- .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;
- /* color: #fff; */
- padding: 0 15px 10px;
- align-items: center;
- justify-content: space-evenly;
- border-radius: 5px;
- height: 200px;
- overflow: auto;
- max-width: 150px;
- }
- .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: #61a0f5;
- 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: 16px;
- font-weight: bold;
- }
- .checkBox {
- display: flex;
- padding: 20px 0 0 20px;
- box-sizing: border-box;
- width: 100%;
- }
- .checkBox span {
- padding: 0 5px 5px;
- cursor: pointer;
- font-size: 18px;
- font-weight: 400;
- }
- .checkBox span + span {
- margin-left: 20px;
- }
- .checkBox .active {
- border-bottom: 3px solid #3681fc;
- color: #3681fc;
- font-weight: bold;
- }
- .detail_box {
- background-color: #f0f4fa;
- padding: 15px 20px;
- box-sizing: border-box;
- width: 100%;
- border-radius: 12px;
- }
- .detail_box + .detail_box {
- margin-top: 20px;
- }
- .detail_box .title {
- display: flex;
- align-items: center;
- }
- .detail_box .title > span:nth-child(1) {
- font-size: 18px;
- display: flex;
- align-items: center;
- font-weight: 400;
- color: #0e1e33;
- }
- .detail_box .box {
- margin-top: 20px;
- border-radius: 5px;
- /* width: 100%; */
- box-sizing: border-box;
- overflow: auto;
- }
- .progress {
- display: -webkit-box;
- display: -ms-flexbox;
- width: 100%;
- overflow: auto;
- }
- .chapter {
- margin-right: 30px;
- min-width: 180px;
- background-color: #fff;
- border-radius: 12px;
- }
- .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;
- min-width: 180px;
- }
- .chapter .task {
- display: flex;
- width: 100%;
- min-width: 180px;
- padding-top: 15px;
- }
- .chapter .task .taskBox {
- min-width: 180px;
- height: 100%;
- }
- .borderRight {
- border-right: 1px solid #eceef7;
- }
- .chapter .task .taskBox + .taskBox {
- margin-left: 10px;
- }
- .chapter .task .taskBox .taskName {
- text-align: center;
- margin: 10px 0 10px 10px;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- min-width: 180px;
- width: 100%;
- }
- /* .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 {
- color: #fe9999;
- }
- /* .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;
- }
- .bgCss::before {
- background: #ccc !important;
- }
- .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, #478bff, #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;
- }
- .titleCss {
- max-width: 100px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-word;
- margin-left: 10px;
- font-size: 16px;
- font-weight: bold;
- color: #0e1e33;
- }
- .navIndex {
- font-weight: bold;
- color: #0e1e33;
- font-size: 14px;
- }
- .stageCss {
- cursor: pointer;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- border-bottom: 1px solid #e7ebf1;
- }
- .disabled {
- background: rgba(210, 210, 210, 1);
- }
- .teaClass {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- }
- .teaClass > div:nth-child(1) {
- min-width: 90px;
- }
- .diy_sk >>> .el-dialog {
- box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
- border-radius: 18px 18px 18px 18px;
- }
- .diy_sk >>> .el-dialog__title {
- font-size: 16px;
- font-weight: bold;
- color: #0e1e33;
- }
- .diy_sk >>> .el-dialog__body {
- padding: 0 20px 15px 20px;
- }
- .classBox {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: flex-start;
- align-items: flex-start;
- min-height: 300px;
- max-height: 500px;
- overflow: auto;
- align-content: flex-start;
- margin-bottom: 15px;
- }
- .classBox > div {
- width: 106px;
- height: 32px;
- background: #3681fc;
- border-radius: 4px;
- font-weight: 400;
- color: #fff;
- font-size: 14px;
- text-align: center;
- line-height: 32px;
- margin: 0 8px 8px 0;
- cursor: pointer;
- }
- .cancelDiy {
- width: 102px;
- height: 36px;
- background: #e7ebf1;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 400;
- color: #717c8d;
- text-align: center;
- line-height: 32px;
- margin: 0 auto;
- cursor: pointer;
- }
- .confirmButtonClass{
- background-color: #1463eb !important;
- border-color: #1463eb !important;
- }
- </style>
|