study.vue 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative"
  6. >
  7. <div class="pb_left">
  8. <div class="courseTitle">{{ courseDetail.title }}</div>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div
  18. class="navChild"
  19. v-for="(nav, navIndex) in item.task"
  20. :key="navIndex"
  21. >
  22. <div
  23. class="navTask"
  24. @click="openTask(stageIndex, navIndex, nav.id)"
  25. :class="{
  26. openTaskActive:
  27. navIndex == taskCount &&
  28. nav.id == navId &&
  29. stageIndex == courseType,
  30. }"
  31. >
  32. <div
  33. class="vedioNav"
  34. style="
  35. margin: 0;
  36. background: #aee3d2;
  37. color: #32a77a;
  38. width: 50px;
  39. min-width: 50px;
  40. "
  41. >
  42. 任务{{ navIndex + 1 }}
  43. </div>
  44. <div class="navTaskname">{{ nav.taskName }}</div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="body_student">
  52. <div
  53. class="new_top"
  54. style="position: fixed; top: 0; width: 77%; z-index: 999"
  55. >
  56. <div class="before"></div>
  57. <div class="courseIndex">
  58. <div>第{{ courseType - 0 + 1 }}阶段</div>
  59. <div>{{ chapInfoList[courseType].dyName }}</div>
  60. </div>
  61. <div class="btnAll">
  62. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  63. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  64. <div class="returnBtn" @click="allScrell">全屏</div>
  65. <div
  66. class="returnBtn"
  67. @click.stop="
  68. goTo(
  69. '/courseDetail?userid=' +
  70. userid +
  71. '&oid=' +
  72. oid +
  73. '&courseId=' +
  74. id
  75. )
  76. "
  77. >
  78. 返回
  79. </div>
  80. </div>
  81. </div>
  82. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  83. .taskJson"
  84. :key="index" -->
  85. <div class="study_top">
  86. <div
  87. class="vedioBox"
  88. v-if="
  89. vedio[taskCount].length > 0 ||
  90. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  91. .taskDetail != ''
  92. "
  93. >
  94. <div class="checkbox">
  95. <div
  96. class="check"
  97. style="font-size: 25px"
  98. :id="
  99. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  100. "
  101. >
  102. <!-- {{ taskCount + 1 }}
  103. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }} -->
  104. 学一学
  105. </div>
  106. </div>
  107. <!-- 有视频 -->
  108. <div class="student_head" v-if="vedio[taskCount].length > 0">
  109. <div class="vedioTaskBox">
  110. <div class="taskBox">
  111. <div
  112. style="
  113. display: flex;
  114. flex-wrap: nowrap;
  115. flex-direction: column;
  116. position: relative;
  117. "
  118. >
  119. <div
  120. style="
  121. padding: 20px;
  122. line-height: 30px;
  123. max-height: 105px;
  124. overflow: auto;
  125. "
  126. v-if="
  127. chapInfoList[courseType].chapterInfo[0].taskJson[
  128. taskCount
  129. ].taskDetail != ''
  130. "
  131. >
  132. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  133. {{
  134. chapInfoList[courseType].chapterInfo[0].taskJson[
  135. taskCount
  136. ].taskDetail
  137. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  138. taskCount
  139. ].taskDetail
  140. : "暂无描述"
  141. }}
  142. </div>
  143. </div>
  144. </div>
  145. <div
  146. class="box_course"
  147. :class="vedio[taskCount].length == 0 ? 'noVedio' : ''"
  148. >
  149. <div
  150. class="wheel"
  151. v-if="
  152. vedio.length &&
  153. vedio[taskCount] &&
  154. vedio[taskCount].length > 0 &&
  155. showType == 0
  156. "
  157. >
  158. <div class="workd_media" style="height: 100%">
  159. <video-player
  160. class="video-player vjs-custom-skin"
  161. :playsinline="true"
  162. :options="playerO[taskCount]"
  163. @play="onPlayerPlay($event)"
  164. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  165. ></video-player>
  166. </div>
  167. </div>
  168. <div
  169. class="wheel"
  170. v-if="showType == 1"
  171. style="
  172. box-shadow: 0 0 6px 1px #f2f2f2;
  173. width: 90%;
  174. margin: 0 0 20px 30px;
  175. background: #f1f1f1;
  176. "
  177. >
  178. <div class="title">查看文档</div>
  179. <el-form class="textBox">
  180. <el-form-item label="文档标题" class="textTitle">
  181. <div style="font-size: 22px">{{ text.name }}</div>
  182. </el-form-item>
  183. <div>文档内容</div>
  184. <div v-html="text.url" class="textContent"></div>
  185. </el-form>
  186. </div>
  187. <div
  188. class="wheel"
  189. v-if="showType == 2"
  190. style="height: 520px; width: 90%; margin: 0 0 20px 30px"
  191. >
  192. <iframe
  193. style="width: 100%; height: 100%; border: none"
  194. :src="pptImgUrl"
  195. ></iframe>
  196. </div>
  197. </div>
  198. </div>
  199. <div
  200. class="vedioList"
  201. :class="vedio[taskCount].length == 0 ? 'listNoVedio' : ''"
  202. v-if="
  203. (vedio.length &&
  204. vedio[taskCount] &&
  205. vedio[taskCount].length > 0) ||
  206. (textList.length &&
  207. textList[taskCount] &&
  208. textList[taskCount].length > 0) ||
  209. (chapToolList.length &&
  210. chapToolList[taskCount] &&
  211. chapToolList[taskCount].length > 0) ||
  212. (lineList.length &&
  213. lineList[taskCount] &&
  214. lineList[taskCount].length > 0)
  215. "
  216. >
  217. <div style="padding: 15px 0 5px 15px">内容列表:</div>
  218. <div class="navBox">
  219. <div
  220. v-show="
  221. vedio.length &&
  222. vedio[taskCount] &&
  223. vedio[taskCount].length > 0
  224. "
  225. >
  226. <div class="vedioNav">视频</div>
  227. <div
  228. class="vedioTimeBox"
  229. v-for="(media, vedioIndex) in vedio[taskCount]"
  230. :key="vedioIndex + '1'"
  231. >
  232. <div
  233. class="media"
  234. style="width: 90px; height: 60px; position: relative"
  235. >
  236. <img
  237. style="height: 90px; width: 160px"
  238. :src="
  239. media.cover != null && media.cover != ''
  240. ? JSON.parse(media.cover).length > 0
  241. ? JSON.parse(media.cover)[0].url
  242. : mr
  243. : mr
  244. "
  245. alt
  246. @click="lookVedio(media.url)"
  247. />
  248. <div class="vedioTime">{{ vedioTime }}</div>
  249. <!-- <div class="vedioName">{{ media.name }}</div> -->
  250. </div>
  251. <div class="vedioName">{{ media.name }}</div>
  252. </div>
  253. </div>
  254. <div
  255. v-show="
  256. textList.length &&
  257. textList[taskCount] &&
  258. textList[taskCount].length > 0
  259. "
  260. class="newNav"
  261. v-for="(text, textIndex) in textList[taskCount]"
  262. :key="textIndex + '2'"
  263. >
  264. <div class="vedioNav" style="width: 70px">文档</div>
  265. <div>
  266. <div
  267. class="navText"
  268. @click="lookText(taskCount, textIndex)"
  269. >
  270. {{
  271. textList[taskCount].length > 0 ? text.name : ""
  272. }}.doc
  273. </div>
  274. </div>
  275. </div>
  276. <div
  277. v-show="
  278. chapInfoList.length &&
  279. chapToolList[taskCount] &&
  280. chapToolList[taskCount].length > 0
  281. "
  282. class="newNav"
  283. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  284. :key="toolsIndex + '3'"
  285. >
  286. <div class="vedioNav">工具</div>
  287. <div>
  288. <div
  289. class="navText"
  290. @click="lookTools(taskCount, toolsIndex)"
  291. >
  292. {{
  293. chapToolList[taskCount].length > 0 ? tools.name : ""
  294. }}
  295. </div>
  296. </div>
  297. </div>
  298. <div
  299. v-show="
  300. lineList.length &&
  301. lineList[taskCount] &&
  302. lineList[taskCount].length > 0
  303. "
  304. class="newNav"
  305. v-for="(lines, lineIndex) in lineList[taskCount]"
  306. :key="lineIndex + '4'"
  307. >
  308. <div class="vedioNav">链接</div>
  309. <div>
  310. <div class="navText">
  311. <a
  312. style="text-decoration: none; color: #000"
  313. target="_Blank"
  314. :href="'https://' + lines.url"
  315. >{{ lines.url }}</a
  316. >
  317. </div>
  318. </div>
  319. </div>
  320. <div
  321. class="newNav"
  322. v-show="
  323. file.length &&
  324. file[taskCount] &&
  325. file[taskCount].length > 0
  326. "
  327. v-for="(f, fileIndex) in file[taskCount]"
  328. :key="fileIndex"
  329. >
  330. <div class="vedioNav">附件</div>
  331. <div>
  332. <div class="navText" @click="downFile(f, fileIndex)">
  333. {{ f.name }}
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. <!-- 没视频 -->
  341. <div class="student_head" style="display: block" v-else>
  342. <div class="taskBox">
  343. <div
  344. style="
  345. display: flex;
  346. flex-wrap: nowrap;
  347. flex-direction: column;
  348. position: relative;
  349. "
  350. >
  351. <div
  352. style="
  353. padding: 20px;
  354. line-height: 30px;
  355. max-height: 105px;
  356. overflow: auto;
  357. "
  358. v-if="
  359. chapInfoList[courseType].chapterInfo[0].taskJson[
  360. taskCount
  361. ].taskDetail != ''
  362. "
  363. >
  364. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  365. {{
  366. chapInfoList[courseType].chapterInfo[0].taskJson[
  367. taskCount
  368. ].taskDetail
  369. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  370. taskCount
  371. ].taskDetail
  372. : "暂无描述"
  373. }}
  374. </div>
  375. </div>
  376. </div>
  377. <div
  378. class="box_course hangVedio"
  379. v-if="
  380. (vedio.length &&
  381. vedio[taskCount] &&
  382. vedio[taskCount].length > 0) ||
  383. (textList.length &&
  384. textList[taskCount] &&
  385. textList[taskCount].length > 0) ||
  386. (chapToolList.length &&
  387. chapToolList[taskCount] &&
  388. chapToolList[taskCount].length > 0) ||
  389. (lineList.length &&
  390. lineList[taskCount] &&
  391. lineList[taskCount].length > 0)
  392. "
  393. >
  394. <div class="vedioList hangVedioList">
  395. <!-- <div
  396. v-if="
  397. vedio.length &&
  398. vedio[taskCount] &&
  399. vedio[taskCount].length > 0
  400. "
  401. >
  402. <div class="vedioNav">视频</div>
  403. <div
  404. class="media"
  405. style="
  406. width: 160px;
  407. margin: 10px auto;
  408. position: relative;
  409. "
  410. v-for="(media, vedioIndex) in vedio[taskCount]"
  411. :key="vedioIndex + '1'"
  412. >
  413. <img
  414. style="height: 90px; width: 160px"
  415. :src="
  416. media.cover != null && media.cover != ''
  417. ? JSON.parse(media.cover).length > 0
  418. ? JSON.parse(media.cover)[0].url
  419. : mr
  420. : mr
  421. "
  422. alt
  423. @click="lookVedio(media.url)"
  424. />
  425. <div class="vedioName">{{ media.name }}</div>
  426. </div>
  427. </div> -->
  428. <div
  429. v-show="
  430. textList.length &&
  431. textList[taskCount] &&
  432. textList[taskCount].length > 0
  433. "
  434. class="newNav"
  435. v-for="(text, textIndex) in textList[taskCount]"
  436. :key="textIndex + '2'"
  437. >
  438. <div class="vedioNav" style="width: 70px">文档</div>
  439. <div>
  440. <div
  441. class="noNavText"
  442. @click="lookText(taskCount, textIndex)"
  443. >
  444. {{
  445. textList[taskCount].length > 0 ? text.name : ""
  446. }}.doc
  447. </div>
  448. </div>
  449. </div>
  450. <div
  451. v-show="
  452. chapInfoList.length &&
  453. chapToolList[taskCount] &&
  454. chapToolList[taskCount].length > 0
  455. "
  456. class="newNav"
  457. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  458. :key="toolsIndex + '3'"
  459. >
  460. <div class="vedioNav">工具</div>
  461. <div>
  462. <div
  463. class="noNavText"
  464. @click="lookTools(taskCount, toolsIndex)"
  465. >
  466. {{
  467. chapToolList[taskCount].length > 0 ? tools.name : ""
  468. }}
  469. </div>
  470. </div>
  471. </div>
  472. <div
  473. v-show="
  474. lineList.length &&
  475. lineList[taskCount] &&
  476. lineList[taskCount].length > 0
  477. "
  478. class="newNav"
  479. v-for="(lines, lineIndex) in lineList[taskCount]"
  480. :key="lineIndex + '4'"
  481. >
  482. <div class="vedioNav">链接</div>
  483. <div>
  484. <div class="noNavText">
  485. <a
  486. style="text-decoration: none; color: #000"
  487. target="_Blank"
  488. :href="'https://' + lines.url"
  489. >{{ lines.url }}</a
  490. >
  491. </div>
  492. </div>
  493. </div>
  494. <div
  495. class="newNav"
  496. v-show="
  497. file.length &&
  498. file[taskCount] &&
  499. file[taskCount].length > 0
  500. "
  501. v-for="(f, fileIndex) in file[taskCount]"
  502. :key="fileIndex"
  503. >
  504. <div class="vedioNav">附件</div>
  505. <div>
  506. <div class="navText" @click="downFile(f, fileIndex)">
  507. {{ f.name }}
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. <div class="student_body">
  516. <!-- <div
  517. class="vedioBox"
  518. v-if="
  519. file.length && file[taskCount] && file[taskCount].length > 0
  520. "
  521. >
  522. <div class="queTop">
  523. <div class="question" style="width: 30px; margin-top: 5px">
  524. <img src="../assets/icon/fileIcon.png" alt />
  525. </div>
  526. <div class="queTitle">
  527. <div>附件</div>
  528. </div>
  529. </div>
  530. <div class="filebox" style="width: 100%">
  531. <div
  532. class="file"
  533. v-for="(f, fileIndex) in file[taskCount]"
  534. :key="fileIndex"
  535. @click="downFile(f, fileIndex)"
  536. >
  537. <img :src="require('../assets/file.png')" alt />
  538. <div>{{ f.name }}</div>
  539. </div>
  540. </div>
  541. <div class="upFile" v-if="type == 3">提交</div>
  542. </div> -->
  543. <div
  544. class="vedioBox"
  545. v-if="
  546. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  547. .toolChoose[0].tool &&
  548. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  549. .toolChoose[0].tool.length &&
  550. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  551. .toolChoose[0].tool.length > 0
  552. "
  553. >
  554. <div
  555. class="queTop"
  556. style="
  557. font-size: 25px;
  558. padding: 20px 0 20px 30px;
  559. font-weight: bold;
  560. "
  561. >
  562. <!-- <div class="question" style="width: 30px">
  563. <img src="../assets/icon/toolIcon.png" alt />
  564. </div>
  565. <div class="queTitle">
  566. <div>工具</div>
  567. </div> -->
  568. 练一练
  569. </div>
  570. <div class="toolHeng2" style="position: relative">
  571. <div
  572. class="filebox"
  573. style="flex-wrap: nowrap; margin: 0 20px"
  574. v-for="(tool, toolIndex) in chapInfoList[courseType]
  575. .chapterInfo[0].taskJson[taskCount].toolChoose"
  576. :key="toolIndex"
  577. >
  578. <div
  579. style="
  580. font-size: 20px;
  581. font-weight: bold;
  582. padding: 0 0 10px 10px;
  583. "
  584. >
  585. 步骤{{ toolIndex + 1 }}
  586. </div>
  587. <div class="toolBox">
  588. <div>
  589. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  590. :key="indexTool"-->
  591. <!-- <div class="iframeBox">
  592. <div
  593. class="addPoint isBorder"
  594. v-for="(tooC, toolCIndex) in tool.tool"
  595. :key="toolCIndex"
  596. >
  597. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  598. <div
  599. class="iframeName"
  600. >
  601. 电子白板
  602. </div>
  603. <iframe
  604. src="https://iwb.cocorobo.cn/"
  605. ref="whiteBoard"
  606. ></iframe>
  607. </div>
  608. </div>
  609. </div> -->
  610. <div class="noiframeBox">
  611. <div
  612. class="addPoint"
  613. v-for="(tooC, toolCIndex) in tool.tool"
  614. :key="toolCIndex"
  615. >
  616. <div v-if="tooC == 1">
  617. <img
  618. src="../assets/icon/secondToolList/whiteBoard.png"
  619. alt
  620. @click="addTools(tooC, toolIndex, taskCount)"
  621. />
  622. <div style="margin: 5px 0">电子白板</div>
  623. </div>
  624. <div v-if="tooC == 3">
  625. <img
  626. src="../assets/icon/secondToolList/mindMapping.png"
  627. alt
  628. @click="addTools(tooC, toolIndex, taskCount)"
  629. />
  630. <div style="margin: 5px 0">思维导图</div>
  631. </div>
  632. <div v-if="tooC == 6">
  633. <img
  634. src="../assets/icon/secondToolList/doc.png"
  635. alt
  636. @click="addTools(tooC, toolIndex, taskCount)"
  637. />
  638. <div style="margin: 5px 0">协同文档</div>
  639. </div>
  640. <div v-if="tooC == 7">
  641. <img
  642. src="../assets/icon/secondToolList/mindNetwork.png"
  643. alt
  644. @click="addTools(tooC, toolIndex, taskCount)"
  645. />
  646. <div style="margin: 5px 0">思维网格</div>
  647. </div>
  648. <div v-if="tooC == 8">
  649. <img
  650. src="../assets/icon/secondToolList/library.png"
  651. alt
  652. @click="addTools(tooC, toolIndex, taskCount)"
  653. />
  654. <div style="margin: 5px 0">素材库</div>
  655. </div>
  656. <div v-if="tooC == 17">
  657. <img
  658. src="../assets/icon/secondToolList/library.png"
  659. alt
  660. @click="addTools(tooC, toolIndex, taskCount)"
  661. />
  662. <div style="margin: 5px 0">学习资料</div>
  663. </div>
  664. <div v-if="tooC == 2">
  665. <img
  666. @click="addTools(tooC, toolIndex, taskCount)"
  667. src="../assets/icon/secondToolList/note.png"
  668. alt
  669. />
  670. <div style="margin: 5px 0">便签</div>
  671. </div>
  672. <div v-if="tooC == 4">
  673. <img
  674. @click="addTools(tooC, toolIndex, taskCount)"
  675. src="../assets/icon/thirdToolList/ask.png"
  676. alt
  677. />
  678. <div style="margin: 5px 0">问卷调查</div>
  679. </div>
  680. <div v-if="tooC == 5">
  681. <img
  682. @click="addTools(tooC, toolIndex, taskCount)"
  683. src="../assets/icon/thirdToolList/score.png"
  684. alt
  685. />
  686. <div style="margin: 5px 0">量规评分</div>
  687. </div>
  688. <div v-if="tooC == 10">
  689. <img
  690. @click="addTools(tooC, toolIndex, taskCount)"
  691. src="../assets/icon/thirdToolList/time.png"
  692. alt
  693. />
  694. <div style="margin: 5px 0">倒计时</div>
  695. </div>
  696. <div v-if="tooC == 15">
  697. <img
  698. @click="addTools(tooC, toolIndex, taskCount)"
  699. src="../assets/icon/thirdToolList/answer.png"
  700. alt
  701. />
  702. <div style="margin: 5px 0">问答工具</div>
  703. </div>
  704. <div v-if="tooC == 18">
  705. <img
  706. @click="addTools(tooC, toolIndex, taskCount)"
  707. src="../assets/icon/thirdToolList/trainPlatform.png"
  708. alt
  709. />
  710. <div style="margin: 5px 0">训练服务器</div>
  711. </div>
  712. <div v-if="tooC == 16">
  713. <img
  714. @click="addTools(tooC, toolIndex, taskCount)"
  715. src="../assets/icon/thirdToolList/work.png"
  716. alt
  717. />
  718. <div style="margin: 5px 0">作业提交</div>
  719. </div>
  720. </div>
  721. </div>
  722. </div>
  723. <div class="tooldetail" v-if="tool.toolDetail != ''">
  724. <!-- <div class="toolTitle">工具描述</div> -->
  725. <div>
  726. {{ tool.toolDetail }}
  727. </div>
  728. </div>
  729. </div>
  730. <div
  731. v-if="tType && tType == 1 && tool.tool.indexOf(16) != -1"
  732. class="worksBox"
  733. >
  734. <div
  735. class="worksBTitle"
  736. v-if="worksStudent[toolIndex].length > 0"
  737. >
  738. <div class="greenBox"></div>
  739. 作业提交情况
  740. </div>
  741. <div
  742. style="padding-top: 15px; font-size: 18px"
  743. v-if="worksStudent[toolIndex].length > 0"
  744. >
  745. 作业预览
  746. </div>
  747. <div
  748. class="worksDetailBox"
  749. v-if="worksStudent[toolIndex].length > 0"
  750. >
  751. <div
  752. class="works"
  753. v-for="(w, wIndex) in worksStudent[toolIndex]"
  754. :key="wIndex"
  755. >
  756. <div class="workImg">
  757. <img
  758. :src="w.works"
  759. @click="previewImg(w.works)"
  760. alt=""
  761. />
  762. </div>
  763. <div class="worksName">
  764. 姓名:<span>{{ w.sName }}</span>
  765. </div>
  766. </div>
  767. </div>
  768. <div
  769. style="
  770. padding-top: 15px;
  771. padding-bottom: 15px;
  772. border-bottom: 1px solid #eeeeee;
  773. font-size: 18px;
  774. "
  775. >
  776. 未提交
  777. </div>
  778. <div class="noWorksS">
  779. <div
  780. v-for="(s, sIndex) in noWorksS[toolIndex]"
  781. :key="sIndex"
  782. class="noWorksName"
  783. >
  784. {{ s.student }}
  785. </div>
  786. </div>
  787. </div>
  788. <div
  789. v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
  790. class="worksBox"
  791. >
  792. <div
  793. class="worksBTitle"
  794. v-if="worksStudent[toolIndex].length > 0"
  795. >
  796. <div class="greenBox"></div>
  797. 作业提交情况
  798. </div>
  799. <div
  800. style="padding-top: 15px; font-size: 18px"
  801. v-if="worksStudent[toolIndex].length > 0"
  802. >
  803. 作业预览
  804. </div>
  805. <div
  806. class="worksDetailBox"
  807. v-if="worksStudent[toolIndex].length > 0"
  808. >
  809. <div
  810. class="works"
  811. v-for="(w, wIndex) in worksStudent[toolIndex]"
  812. :key="wIndex"
  813. >
  814. <!-- @click="previewImg(w.works)" -->
  815. <div class="workImg">
  816. <img
  817. src="../assets/icon/works/noImg.png"
  818. @click="openTools(4, toolIndex, taskCount, w.works)"
  819. alt=""
  820. />
  821. </div>
  822. <div class="worksName">
  823. 姓名:<span>{{ w.sName }}</span>
  824. </div>
  825. </div>
  826. </div>
  827. <div
  828. style="
  829. padding-top: 15px;
  830. padding-bottom: 15px;
  831. border-bottom: 1px solid #eeeeee;
  832. font-size: 18px;
  833. "
  834. >
  835. 未提交
  836. </div>
  837. <div class="noWorksS">
  838. <div
  839. v-for="(s, sIndex) in noWorksS[toolIndex]"
  840. :key="sIndex"
  841. class="noWorksName"
  842. >
  843. {{ s.student }}
  844. </div>
  845. </div>
  846. </div>
  847. <div
  848. v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
  849. class="worksBox"
  850. >
  851. <div
  852. class="worksBTitle"
  853. v-if="worksStudent[toolIndex].length > 0"
  854. >
  855. <div class="greenBox"></div>
  856. 作业提交情况
  857. </div>
  858. <div
  859. style="padding-top: 15px; font-size: 18px"
  860. v-if="worksStudent[toolIndex].length > 0"
  861. >
  862. 作业预览
  863. </div>
  864. <div
  865. class="worksDetailBox"
  866. v-if="worksStudent[toolIndex].length > 0"
  867. >
  868. <div
  869. class="works"
  870. v-for="(w, wIndex) in worksStudent[toolIndex]"
  871. :key="wIndex"
  872. >
  873. <!-- @click="previewImg(w.works)" -->
  874. <div class="workImg">
  875. <!-- <img
  876. src="../assets/icon/works/noImg.png"
  877. @click="
  878. openTools(15, toolIndex, taskCount, w.works)
  879. "
  880. alt=""
  881. /> -->
  882. <div class="answerBg">
  883. <div>{{ w.sName }}</div>
  884. <div class="answerContent">
  885. {{ JSON.parse(w.works)[0].answer }}
  886. </div>
  887. </div>
  888. <!-- <div>{{ JSON.parse(w.works)[0].answer }}</div> -->
  889. </div>
  890. <!-- <div class="worksName">
  891. 姓名:<span>{{ w.sName }}</span>
  892. </div> -->
  893. </div>
  894. </div>
  895. <div
  896. style="
  897. padding-top: 15px;
  898. padding-bottom: 15px;
  899. border-bottom: 1px solid #eeeeee;
  900. font-size: 18px;
  901. "
  902. >
  903. 未提交
  904. </div>
  905. <div class="noWorksS">
  906. <div
  907. v-for="(s, sIndex) in noWorksS[toolIndex]"
  908. :key="sIndex"
  909. class="noWorksName"
  910. >
  911. {{ s.student }}
  912. </div>
  913. </div>
  914. </div>
  915. <div
  916. v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
  917. class="worksBox"
  918. >
  919. <div
  920. class="worksBTitle"
  921. v-if="worksStudent[toolIndex].length > 0"
  922. >
  923. <div class="greenBox"></div>
  924. 作业提交情况
  925. </div>
  926. <div
  927. style="padding-top: 15px; font-size: 18px"
  928. v-if="worksStudent[toolIndex].length > 0"
  929. >
  930. 作业预览
  931. </div>
  932. <div
  933. class="worksDetailBox"
  934. v-if="worksStudent[toolIndex].length > 0"
  935. >
  936. <div
  937. class="works"
  938. v-for="(w, wIndex) in worksStudent[toolIndex]"
  939. :key="wIndex"
  940. >
  941. <!-- @click="previewImg(w.works)" -->
  942. <div class="workImg">
  943. <img
  944. :src="w.works"
  945. @click="previewImg(w.works)"
  946. alt=""
  947. />
  948. </div>
  949. <div class="worksName">
  950. 姓名:<span>{{ w.sName }}</span>
  951. </div>
  952. </div>
  953. </div>
  954. <div
  955. style="
  956. padding-top: 15px;
  957. padding-bottom: 15px;
  958. border-bottom: 1px solid #eeeeee;
  959. font-size: 18px;
  960. "
  961. >
  962. 未提交
  963. </div>
  964. <div class="noWorksS">
  965. <div
  966. v-for="(s, sIndex) in noWorksS[toolIndex]"
  967. :key="sIndex"
  968. class="noWorksName"
  969. >
  970. {{ s.student }}
  971. </div>
  972. </div>
  973. </div>
  974. <div
  975. v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
  976. class="worksBox"
  977. >
  978. <div
  979. class="worksBTitle"
  980. v-if="worksStudent[toolIndex].length > 0"
  981. >
  982. <div class="greenBox"></div>
  983. 作业提交情况
  984. </div>
  985. <div
  986. style="padding-top: 15px; font-size: 18px"
  987. v-if="worksStudent[toolIndex].length > 0"
  988. >
  989. 作业预览
  990. </div>
  991. <div
  992. class="worksDetailBox"
  993. v-if="worksStudent[toolIndex].length > 0"
  994. >
  995. <div
  996. class="works"
  997. v-for="(w, wIndex) in worksStudent[toolIndex]"
  998. :key="wIndex"
  999. >
  1000. <!-- @click="previewImg(w.works)" -->
  1001. <div class="workImg">
  1002. <img
  1003. :src="w.works"
  1004. @click="previewImg(w.works)"
  1005. alt=""
  1006. />
  1007. </div>
  1008. <div class="worksName">
  1009. 姓名:<span>{{ w.sName }}</span>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <div
  1014. style="
  1015. padding-top: 15px;
  1016. padding-bottom: 15px;
  1017. border-bottom: 1px solid #eeeeee;
  1018. font-size: 18px;
  1019. "
  1020. >
  1021. 未提交
  1022. </div>
  1023. <div class="noWorksS">
  1024. <div
  1025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1026. :key="sIndex"
  1027. class="noWorksName"
  1028. >
  1029. {{ s.student }}
  1030. </div>
  1031. </div>
  1032. </div>
  1033. <div
  1034. v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
  1035. class="worksBox"
  1036. >
  1037. <div
  1038. class="worksBTitle"
  1039. v-if="worksStudent[toolIndex].length > 0"
  1040. >
  1041. <div class="greenBox"></div>
  1042. 作业提交情况
  1043. </div>
  1044. <div
  1045. style="padding-top: 15px; font-size: 18px"
  1046. v-if="worksStudent[toolIndex].length > 0"
  1047. >
  1048. 作业预览
  1049. </div>
  1050. <div
  1051. class="worksDetailBox"
  1052. v-if="worksStudent[toolIndex].length > 0"
  1053. >
  1054. <div
  1055. class="works"
  1056. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1057. :key="wIndex"
  1058. >
  1059. <!-- @click="previewImg(w.works)" -->
  1060. <div class="workImg">
  1061. <img
  1062. :src="w.works"
  1063. @click="previewImg(w.works)"
  1064. alt=""
  1065. />
  1066. </div>
  1067. <div class="worksName">
  1068. 姓名:<span>{{ w.sName }}</span>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. <div
  1073. style="
  1074. padding-top: 15px;
  1075. padding-bottom: 15px;
  1076. border-bottom: 1px solid #eeeeee;
  1077. font-size: 18px;
  1078. "
  1079. >
  1080. 未提交
  1081. </div>
  1082. <div class="noWorksS">
  1083. <div
  1084. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1085. :key="sIndex"
  1086. class="noWorksName"
  1087. >
  1088. {{ s.student }}
  1089. </div>
  1090. </div>
  1091. </div>
  1092. <div
  1093. v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
  1094. class="worksBox"
  1095. >
  1096. <div
  1097. class="worksBTitle"
  1098. v-if="worksStudent[toolIndex].length > 0"
  1099. >
  1100. <div class="greenBox"></div>
  1101. 作业提交情况
  1102. </div>
  1103. <div
  1104. style="padding-top: 15px; font-size: 18px"
  1105. v-if="worksStudent[toolIndex].length > 0"
  1106. >
  1107. 作业预览
  1108. </div>
  1109. <div
  1110. class="worksDetailBox"
  1111. v-if="worksStudent[toolIndex].length > 0"
  1112. >
  1113. <div
  1114. class="works"
  1115. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1116. :key="wIndex"
  1117. >
  1118. <!-- @click="previewImg(w.works)" -->
  1119. <div class="workImg">
  1120. <img
  1121. :src="w.works"
  1122. @click="previewImg(w.works)"
  1123. alt=""
  1124. />
  1125. </div>
  1126. <div class="worksName">
  1127. 姓名:<span>{{ w.sName }}</span>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. <div
  1132. style="
  1133. padding-top: 15px;
  1134. padding-bottom: 15px;
  1135. border-bottom: 1px solid #eeeeee;
  1136. font-size: 18px;
  1137. "
  1138. >
  1139. 未提交
  1140. </div>
  1141. <div class="noWorksS">
  1142. <div
  1143. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1144. :key="sIndex"
  1145. class="noWorksName"
  1146. >
  1147. {{ s.student }}
  1148. </div>
  1149. </div>
  1150. </div>
  1151. </div>
  1152. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1153. 上传文件
  1154. <input
  1155. type="file"
  1156. accept="image/png, image/gif, image/jpeg"
  1157. style="display: none"
  1158. @change="beforeUpload1($event, 2, index)"
  1159. />
  1160. </div> -->
  1161. </div>
  1162. </div>
  1163. <!-- <div
  1164. class="project_box"
  1165. style="margin-top: 15px; padding-bottom: 30px"
  1166. >
  1167. <div
  1168. style="
  1169. display: flex;
  1170. flex-wrap: nowrap;
  1171. flex-direction: column;
  1172. position: relative;
  1173. "
  1174. >
  1175. <div class="queTop">
  1176. <div class="question">
  1177. <img src="../assets/icon/homeWork.png" alt="" />
  1178. </div>
  1179. <div class="queTitle">
  1180. <div>作业提交<span>(提交图文视频等)</span></div>
  1181. <div>:任务:{{ task.task }}</div>
  1182. </div>
  1183. </div>
  1184. <div class="ediBottom">
  1185. <div
  1186. class="addEditor"
  1187. style="margin-top: 23px"
  1188. @click="openAddWork"
  1189. v-if="!isNoHomeWork"
  1190. >
  1191. 选择文件
  1192. </div>
  1193. <div
  1194. class="addEditor"
  1195. style="margin-top: 23px"
  1196. @click="openAddWork"
  1197. v-else
  1198. >
  1199. 已提交
  1200. </div>
  1201. </div>
  1202. </div>
  1203. </div>-->
  1204. </div>
  1205. </div>
  1206. <el-dialog
  1207. title="提交实践作业"
  1208. :visible.sync="dialogVisible"
  1209. :append-to-body="true"
  1210. width="500px"
  1211. :before-close="handleClose"
  1212. class="dialog_change"
  1213. >
  1214. <div class="marginT">
  1215. <div>上传图片</div>
  1216. <div
  1217. class="chapter_add"
  1218. @click="addImg($event)"
  1219. v-if="studyJuri[0].cover.length == 0"
  1220. >
  1221. <div class="up_photo">
  1222. <img src="../assets/icon/uploadImg.png" alt />
  1223. </div>
  1224. <input
  1225. type="file"
  1226. accept="image/png, image/gif, image/jpeg"
  1227. style="display: none"
  1228. @change="beforeUpload1($event, 1)"
  1229. />
  1230. </div>
  1231. <div
  1232. class="chapter_add"
  1233. style="
  1234. display: flex;
  1235. width: 100%;
  1236. flex-direction: row;
  1237. flex-wrap: wrap;
  1238. justify-content: flex-start;
  1239. padding: 15px 0;
  1240. "
  1241. v-if="studyJuri[0].cover.length > 0"
  1242. >
  1243. <div class="upCover">
  1244. <img :src="studyJuri[0].cover[0].url" alt />
  1245. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1246. <div class="deleteWord" @click="clean(1)">
  1247. <img src="../assets/icon/deleteWorks.png" alt />
  1248. </div>
  1249. </div>
  1250. </div>
  1251. </div>
  1252. <!-- <div class="first">
  1253. <div>作业名称:</div>
  1254. <div>{{ chapInfoList[courseType].dyName }}</div>
  1255. </div>
  1256. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  1257. <el-input
  1258. type="textarea"
  1259. resize="none"
  1260. rows="7"
  1261. placeholder="输入文字描述..."
  1262. v-model="studyJuri[0].content"
  1263. ></el-input>
  1264. <div class="marginT">
  1265. <div>上传图片</div>
  1266. <div class="chapter_add" @click="addImg($event)">
  1267. <div class="up_photo">
  1268. <img src="../assets/photo.png" alt />
  1269. </div>
  1270. <input
  1271. type="file"
  1272. accept="image/png, image/gif, image/jpeg"
  1273. style="display: none"
  1274. @change="beforeUpload1($event, 1)"
  1275. />
  1276. </div>
  1277. <div
  1278. class="chapter_add"
  1279. style="
  1280. display: flex;
  1281. width: 100%;
  1282. flex-direction: row;
  1283. flex-wrap: wrap;
  1284. justify-content: flex-start;
  1285. "
  1286. v-if="studyJuri[0].cover.length > 0"
  1287. >
  1288. <div
  1289. v-for="(c, cIndex) in studyJuri[0].cover"
  1290. :key="cIndex"
  1291. class="upCover"
  1292. >
  1293. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  1294. <span class="picName">{{ c.name }}</span>
  1295. <div class="deleteWord" @click="clean(1)">
  1296. <img src="../assets/icon/delete.png" alt />
  1297. </div>
  1298. </div>
  1299. </div>
  1300. </div>
  1301. <div class="marginT">
  1302. <div>上传视频</div>
  1303. <div class="chapter_add" @click="addImg($event)">
  1304. <div class="up_photo">
  1305. <img src="../assets/vidio.png" alt />
  1306. </div>
  1307. <input
  1308. type="file"
  1309. accept="video/mp4, video/quicktime, video/x-msvideo"
  1310. style="display: none"
  1311. @change="beforeUpload2($event, 2)"
  1312. />
  1313. </div>
  1314. <div
  1315. class="chapter_add"
  1316. style="
  1317. display: flex;
  1318. flex-direction: row;
  1319. flex-wrap: wrap;
  1320. width: 100%;
  1321. justify-content: flex-start;
  1322. "
  1323. v-if="studyJuri[0].upVedio.length > 0"
  1324. >
  1325. <div
  1326. style="
  1327. width: 100%;
  1328. display: flex;
  1329. flex-direction: row;
  1330. flex-wrap: wrap;
  1331. align-content: flex-start;
  1332. justify-content: flex-start;
  1333. align-items: center;
  1334. "
  1335. >
  1336. <div
  1337. class="uploadVedio isAddThings"
  1338. v-for="(v, vIndex) in studyJuri[0].upVedio"
  1339. :key="vIndex"
  1340. >
  1341. <img src="../assets/uploadMp4.png" alt />
  1342. <span>{{ v.name }}</span>
  1343. <div class="deleteWord" @click="clean(2)">
  1344. <img src="../assets/icon/delete.png" alt />
  1345. </div>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div> -->
  1350. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  1351. </el-dialog>
  1352. </div>
  1353. </div>
  1354. <div v-if="proVisible" class="mask">
  1355. <div class="progressBox">
  1356. <div class="lbox">
  1357. <img src="../assets/loading.gif" />上传中,请稍后
  1358. </div>
  1359. <el-progress
  1360. :text-inside="true"
  1361. :stroke-width="20"
  1362. :percentage="progress"
  1363. style="width: 80%"
  1364. ></el-progress>
  1365. </div>
  1366. </div>
  1367. <el-dialog :visible.sync="pictureDialog" size="tiny">
  1368. <img width="100%" :src="dialogImageUrl" alt />
  1369. </el-dialog>
  1370. <el-dialog
  1371. title="查看问卷调查"
  1372. :visible.sync="dialogVisible5"
  1373. :append-to-body="true"
  1374. width="800px"
  1375. :before-close="handleClose"
  1376. class="dialog_diy"
  1377. >
  1378. <div>
  1379. <div
  1380. class="a_add_title"
  1381. style="
  1382. display: flex;
  1383. flex-direction: row;
  1384. align-items: center;
  1385. justify-content: center;
  1386. "
  1387. >
  1388. <div style="margin-right: 20px; font-size: 20px">问卷标题:</div>
  1389. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1390. </div>
  1391. <div class="a_addBox">
  1392. <div style="font-size: 16px; color: #c7c7c7">问卷内容</div>
  1393. <div
  1394. class="a_add_box"
  1395. v-for="(item1, index1) in askJson.askCount"
  1396. :key="index1"
  1397. >
  1398. <div class="a_add_head">
  1399. <div style="display: flex">
  1400. {{ index1 + 1 + "、" }}
  1401. <div>问卷题目:{{ askJson.askJson[index1].askstitle }}</div>
  1402. </div>
  1403. </div>
  1404. <div class="a_add_body" v-if="!isAnswer">
  1405. <div class="a_add_input">
  1406. <el-radio-group v-model="radio[index1]">
  1407. <el-radio
  1408. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1409. .checkList"
  1410. :key="checkIndex"
  1411. :label="checkIndex"
  1412. class="redioStyle"
  1413. >{{ item2 }}</el-radio
  1414. >
  1415. </el-radio-group>
  1416. </div>
  1417. </div>
  1418. <div class="a_add_body" v-else>
  1419. <div class="a_add_input">
  1420. <el-radio-group v-model="radio[index1]">
  1421. <el-radio
  1422. v-for="(item2, checkIndex) in askJson.askJson[index1]
  1423. .checkList"
  1424. :key="checkIndex"
  1425. :label="checkIndex"
  1426. disabled
  1427. class="redioStyle"
  1428. >{{ item2 }}</el-radio
  1429. >
  1430. </el-radio-group>
  1431. </div>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. <span slot="footer" class="dialog-footer">
  1437. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1438. <el-button type="primary" @click="addStudentAsk" v-if="!isAnswer"
  1439. >确 定</el-button
  1440. >
  1441. <el-button type="primary" @click="dialogVisible5 = false" v-else
  1442. >确 定</el-button
  1443. >
  1444. </span>
  1445. </el-dialog>
  1446. <el-dialog
  1447. title="查看富文本"
  1448. :visible.sync="dialogVisible1"
  1449. :append-to-body="true"
  1450. width="500px"
  1451. :before-close="handleClose"
  1452. class="dialog_diy textCss"
  1453. >
  1454. <el-form style="font-size: 20px">
  1455. <el-form-item label="文本标题" class="textTitle">
  1456. <div style="font-size: 20px">{{ text.name }}</div>
  1457. </el-form-item>
  1458. <div>富文本内容</div>
  1459. <div
  1460. v-html="text.url"
  1461. style="font-size: 18px; padding: 40px 0 0 0"
  1462. ></div>
  1463. </el-form>
  1464. <span slot="footer" class="dialog-footer">
  1465. <el-button type="primary" @click="dialogVisible1 = false"
  1466. >确定</el-button
  1467. >
  1468. </span>
  1469. </el-dialog>
  1470. <el-dialog
  1471. title="文件预览"
  1472. :visible.sync="dialogVisible3"
  1473. width="50%"
  1474. :before-close="handleClose"
  1475. class="dialog_diy"
  1476. >
  1477. <iframe
  1478. :src="pptImgUrl"
  1479. frameborder="0"
  1480. width="100%"
  1481. height="600"
  1482. ></iframe>
  1483. </el-dialog>
  1484. <el-dialog
  1485. title="提示"
  1486. :visible.sync="dialogVisible4"
  1487. :append-to-body="true"
  1488. width="800px"
  1489. :before-close="handleClose"
  1490. class="dialog_diy notice"
  1491. >
  1492. <div>此功能暂未开放!</div>
  1493. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1494. </el-dialog>
  1495. <el-dialog
  1496. title="问答"
  1497. :visible.sync="answerDialogVisible"
  1498. :append-to-body="true"
  1499. width="800px"
  1500. :before-close="handleClose"
  1501. class="dialog_diy"
  1502. >
  1503. <div>
  1504. <div
  1505. style="
  1506. display: flex;
  1507. flex-wrap: nowrap;
  1508. flex-direction: column;
  1509. position: relative;
  1510. "
  1511. >
  1512. <div class="queTop" style="padding: 20px 0 20px 0">
  1513. <div class="question">
  1514. <img src="../assets/icon/question.png" alt />
  1515. </div>
  1516. <div class="queTitle">
  1517. <div>提问:</div>
  1518. <div>{{ answerQ }}</div>
  1519. </div>
  1520. </div>
  1521. <div class="ediBottom">
  1522. <textarea
  1523. rows="6"
  1524. class="binfo_input"
  1525. cols
  1526. style="width: 95%; height: 120px"
  1527. v-model="questionAnswer"
  1528. ></textarea>
  1529. </div>
  1530. </div>
  1531. </div>
  1532. <div slot="footer">
  1533. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1534. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1535. </div>
  1536. </el-dialog>
  1537. <el-dialog
  1538. title="倒计时"
  1539. :visible.sync="timeDialogVisible"
  1540. :append-to-body="true"
  1541. width="800px"
  1542. :before-close="handleClose"
  1543. class="dialog_diy"
  1544. >
  1545. <div>
  1546. <Time v-if="timeDialogVisible"></Time>
  1547. </div>
  1548. <div slot="footer">
  1549. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1550. </div>
  1551. </el-dialog>
  1552. </div>
  1553. </template>
  1554. <script>
  1555. import "../common/aws-sdk-2.235.1.min.js";
  1556. import EditorBar from "../components/tools/wangEnduit.vue";
  1557. import Time from "../components/tools/time.vue";
  1558. export default {
  1559. components: { EditorBar, Time },
  1560. data() {
  1561. return {
  1562. dialogVisible: false,
  1563. id: this.$route.query.courseId,
  1564. userid: this.$route.query.userid,
  1565. courseTypeLine: this.$route.query.type,
  1566. oid: this.$route.query.oid,
  1567. tType: this.$route.query.tType,
  1568. courseType: 0,
  1569. pptImgUrl: "",
  1570. type: 1,
  1571. vedio: [],
  1572. text: [],
  1573. textList: [],
  1574. line: [],
  1575. lineList: [],
  1576. chapTools: [],
  1577. chapToolList: [],
  1578. file: [],
  1579. vedioTime: "",
  1580. upToolImg: "",
  1581. rateList: {
  1582. ca: 0,
  1583. },
  1584. rateParams: [],
  1585. colors: ["#000", "#000", "#000"],
  1586. studyJuri: [
  1587. {
  1588. content: "",
  1589. cover: [],
  1590. upVedio: [],
  1591. upFile: [],
  1592. },
  1593. ],
  1594. mr: require("../assets/vedioPic.png"),
  1595. courseDetail: {},
  1596. chapInfo: [],
  1597. chapInfoList: [],
  1598. taskCount: 0,
  1599. imgList: [],
  1600. noImgList: [],
  1601. navId: "",
  1602. playerOptions: {
  1603. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  1604. autoplay: false, //如果true,浏览器准备好时开始回放。
  1605. muted: false, // 默认情况下将会消除任何音频。
  1606. loop: false, // 导致视频一结束就重新开始。
  1607. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  1608. language: "zh-CN",
  1609. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  1610. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  1611. sources: [
  1612. {
  1613. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  1614. src: "", //url地址require("../../assets/media/aaa.mp4")
  1615. },
  1616. ],
  1617. // poster: require("../../assets/tu31.png"), //你的封面地址
  1618. // poster: dataRes.imgUrl, //你的封面地址
  1619. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  1620. controlBar: {
  1621. timeDivider: true, //当前时间和持续时间的分隔符
  1622. durationDisplay: true, //显示持续时间
  1623. remainingTimeDisplay: false, //是否显示剩余时间功能
  1624. fullscreenToggle: true, //全屏按钮
  1625. },
  1626. },
  1627. playerO: {},
  1628. noneBtnImg: false,
  1629. proVisible: false,
  1630. progress: 0,
  1631. questionAnswer: "",
  1632. answerQ: "", //问答标题
  1633. wbCount: 0,
  1634. wordCount: 0,
  1635. mindCount: 0,
  1636. askCount: 0,
  1637. noteCount: 0,
  1638. mindNetWorkCount: 0,
  1639. libraryCount: 0,
  1640. workCount: 0,
  1641. timeCount: 0,
  1642. answerCount: 0,
  1643. trainCount: 0,
  1644. dialogImageUrl: "",
  1645. pictureDialog: false,
  1646. toolTypeList: [],
  1647. dialogVisible1: false,
  1648. dialogVisible2: false,
  1649. dialogVisible3: false,
  1650. dialogVisible4: false,
  1651. isNoHomeWork: false,
  1652. dialogVisible5: false,
  1653. answerDialogVisible: false,
  1654. timeDialogVisible: false,
  1655. radio: [],
  1656. isAsk: false,
  1657. askJson: {
  1658. askCount: 1,
  1659. askTitle: "",
  1660. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1661. },
  1662. askList: [],
  1663. answerList: [],
  1664. navList: [],
  1665. worksStudent: [],
  1666. noWorksS: [],
  1667. isWorksS: [],
  1668. toolindex: 0,
  1669. workTypeA: false,
  1670. workTypeB: false,
  1671. workTypeC: false,
  1672. isAnswer: false,
  1673. timer: null,
  1674. showType: 0,
  1675. };
  1676. },
  1677. methods: {
  1678. previewImg(url) {
  1679. this.$hevueImgPreview(url);
  1680. },
  1681. change(val) {
  1682. console.log(val);
  1683. },
  1684. goTo(path) {
  1685. this.$router.push(path);
  1686. },
  1687. handlePictureCardPreview(url) {
  1688. this.dialogImageUrl = url;
  1689. this.pictureDialog = true;
  1690. },
  1691. clean(type) {
  1692. if (type == 1) {
  1693. this.studyJuri[0].cover.splice(0, 1);
  1694. } else if (type == 2) {
  1695. this.studyJuri[0].upVedio.splice(0, 1);
  1696. } else {
  1697. this.studyJuri[0].upFile.splice(0, 1);
  1698. }
  1699. },
  1700. handleClose(done) {
  1701. done();
  1702. },
  1703. imgChange(file, fileList, type) {
  1704. if (type == 1) {
  1705. var _tmp = this.studyJuri[0].cover;
  1706. } else if (type == 2) {
  1707. var _tmp = this.studyJuri[0].upVedio;
  1708. } else {
  1709. var _tmp = this.studyJuri[0].upFile;
  1710. }
  1711. this.noneBtnImg = _tmp.length >= 1;
  1712. },
  1713. addImg(e) {
  1714. var el = e.currentTarget;
  1715. el.getElementsByTagName("input")[0].click();
  1716. },
  1717. addCourseWorks(i) {
  1718. if (this.workTypeA == true) {
  1719. this.$confirm(
  1720. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  1721. "提示",
  1722. {
  1723. confirmButtonText: "确定",
  1724. cancelButtonText: "取消",
  1725. type: "warning",
  1726. }
  1727. )
  1728. .then(() => {
  1729. let params = [
  1730. {
  1731. uid: this.userid,
  1732. cid: this.id,
  1733. stage: this.courseType,
  1734. task: i,
  1735. tool: this.toolindex,
  1736. content: this.studyJuri[0].cover[0].url,
  1737. type: 1,
  1738. },
  1739. ];
  1740. this.ajax
  1741. .post(this.$store.state.api + "addCourseWorks", params)
  1742. .then((res) => {
  1743. this.$message({
  1744. message: "提交成功",
  1745. type: "success",
  1746. });
  1747. this.studyJuri[0].cover = [];
  1748. this.dialogVisible = false;
  1749. this.getCourseDetail();
  1750. })
  1751. .catch((err) => {
  1752. this.$message.error("提交失败");
  1753. console.error(err);
  1754. });
  1755. })
  1756. .catch(() => {});
  1757. } else {
  1758. let params = [
  1759. {
  1760. uid: this.userid,
  1761. cid: this.id,
  1762. stage: this.courseType,
  1763. task: i,
  1764. tool: this.toolindex,
  1765. content: this.studyJuri[0].cover[0].url,
  1766. type: 1,
  1767. },
  1768. ];
  1769. this.ajax
  1770. .post(this.$store.state.api + "addCourseWorks", params)
  1771. .then((res) => {
  1772. this.$message({
  1773. message: "提交成功",
  1774. type: "success",
  1775. });
  1776. this.studyJuri[0].cover = [];
  1777. this.dialogVisible = false;
  1778. this.getCourseDetail();
  1779. })
  1780. .catch((err) => {
  1781. this.$message.error("提交失败");
  1782. console.error(err);
  1783. });
  1784. }
  1785. },
  1786. selectWorksStudent() {
  1787. let params = {
  1788. oid: this.oid,
  1789. };
  1790. this.ajax
  1791. .get(this.$store.state.api + "selectWorksStudent", params)
  1792. .then((res) => {
  1793. var a = res.data[0];
  1794. for (var i = 0; i < this.isWorksS.length; i++) {
  1795. this.noWorksS[i] = [];
  1796. if (this.isWorksS[i].length > 0) {
  1797. var a2 = JSON.parse(JSON.stringify(a));
  1798. for (var j = 0; j < a.length; j++) {
  1799. for (var z = 0; z < this.isWorksS[i].length; z++) {
  1800. if (this.isWorksS[i][z].sName == a[j].name) {
  1801. a2.splice(j, 1);
  1802. }
  1803. }
  1804. }
  1805. for (var f = 0; f < a2.length; f++) {
  1806. this.noWorksS[i].push({ student: a2[f].name });
  1807. }
  1808. } else {
  1809. for (var k = 0; k < a.length; k++) {
  1810. this.noWorksS[i].push({ student: a[k].name });
  1811. }
  1812. }
  1813. }
  1814. this.$forceUpdate();
  1815. })
  1816. .catch((err) => {
  1817. console.error(err);
  1818. });
  1819. },
  1820. selectSWorks() {
  1821. let params = {
  1822. cid: this.id,
  1823. s: this.courseType,
  1824. t: this.taskCount,
  1825. };
  1826. this.ajax
  1827. .get(this.$store.state.api + "selectSWorks", params)
  1828. .then((res) => {
  1829. var a =
  1830. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  1831. this.taskCount
  1832. ].toolChoose;
  1833. var b = res.data[0];
  1834. for (var i = 0; i < a.length; i++) {
  1835. this.worksStudent[i] = [];
  1836. this.isWorksS[i] = [];
  1837. for (var j = 0; j < b.length; j++) {
  1838. if (i == b[j].tool) {
  1839. this.worksStudent[i].push({
  1840. works: b[j].content,
  1841. sName: b[j].name,
  1842. });
  1843. this.isWorksS[i].push({ sName: b[j].name });
  1844. }
  1845. }
  1846. }
  1847. this.selectWorksStudent();
  1848. })
  1849. .catch((err) => {
  1850. console.error(err);
  1851. });
  1852. },
  1853. beforeUpload1(event, type, i) {
  1854. var file = event.target.files[0];
  1855. var credentials = {
  1856. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1857. secretAccessKey: "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",
  1858. }; //秘钥形式的登录上传
  1859. window.AWS.config.update(credentials);
  1860. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1861. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1862. var _this = this;
  1863. _this.progress = 0;
  1864. _this.proVisible = true;
  1865. if (file) {
  1866. var params = {
  1867. Key:
  1868. file.name.split(".")[0] +
  1869. new Date().getTime() +
  1870. "." +
  1871. file.name.split(".")[1],
  1872. ContentType: file.type,
  1873. Body: file,
  1874. "Access-Control-Allow-Credentials": "*",
  1875. ACL: "public-read",
  1876. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1877. var options = {
  1878. partSize: 2048 * 1024 * 1024,
  1879. queueSize: 2,
  1880. leavePartsOnError: true,
  1881. };
  1882. bucket
  1883. .upload(params, options)
  1884. .on("httpUploadProgress", function (evt) {
  1885. //这里可以写进度条
  1886. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1887. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  1888. })
  1889. .send(function (err, data) {
  1890. _this.progress = 100;
  1891. setTimeout(() => {
  1892. _this.proVisible = false;
  1893. }, 1000);
  1894. if (err) {
  1895. var a = _this.$refs.upload1.uploadFiles;
  1896. a.splice(a.length - 1, a.length);
  1897. _this.$message.error("上传失败");
  1898. } else {
  1899. if (type == 1) {
  1900. _this.studyJuri[0].cover.push({
  1901. name: file.name,
  1902. url: data.Location,
  1903. uid: file.uid,
  1904. });
  1905. _this.imgChange(null, null, type);
  1906. } else if (type == 2) {
  1907. _this.upToolImg = data.Location;
  1908. _this.imgChange(null, null, type);
  1909. _this.addCourseWorks(i);
  1910. }
  1911. _this.imgChange(null, null, type);
  1912. console.log(data.Location);
  1913. }
  1914. });
  1915. }
  1916. },
  1917. beforeUpload2(event, type) {
  1918. var file = event.target.files[0];
  1919. var credentials = {
  1920. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1921. secretAccessKey: "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",
  1922. }; //秘钥形式的登录上传
  1923. window.AWS.config.update(credentials);
  1924. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1925. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1926. var _this = this;
  1927. _this.progress = 0;
  1928. _this.proVisible = true;
  1929. if (file) {
  1930. var params = {
  1931. Key:
  1932. file.name.split(".")[0] +
  1933. new Date().getTime() +
  1934. "." +
  1935. file.name.split(".")[1],
  1936. ContentType: file.type,
  1937. Body: file,
  1938. "Access-Control-Allow-Credentials": "*",
  1939. ACL: "public-read",
  1940. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1941. var options = {
  1942. partSize: 2048 * 1024 * 1024,
  1943. queueSize: 2,
  1944. leavePartsOnError: true,
  1945. };
  1946. bucket
  1947. .upload(params, options)
  1948. .on("httpUploadProgress", function (evt) {
  1949. //这里可以写进度条
  1950. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  1951. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  1952. })
  1953. .send(function (err, data) {
  1954. _this.progress = 100;
  1955. setTimeout(() => {
  1956. _this.proVisible = false;
  1957. }, 1000);
  1958. if (err) {
  1959. var a = _this.$refs.upload1.uploadFiles;
  1960. a.splice(a.length - 1, a.length);
  1961. _this.$message.error("上传失败");
  1962. } else {
  1963. if (type == 2) {
  1964. _this.studyJuri[0].upVedio.push({
  1965. name: file.name,
  1966. url: data.Location,
  1967. uid: file.uid,
  1968. });
  1969. _this.imgChange(null, null, type);
  1970. } else if (type == 3) {
  1971. _this.studyJuri[0].upFile.push({
  1972. name: file.name,
  1973. url: data.Location,
  1974. uid: file.uid,
  1975. });
  1976. _this.imgChange(null, null, type);
  1977. }
  1978. console.log(data.Location);
  1979. }
  1980. });
  1981. }
  1982. },
  1983. allScrell() {
  1984. window.parent.postMessage({ allScreen: "1" }, "*");
  1985. },
  1986. nextOrpreSteps(t) {
  1987. this.showType = 0;
  1988. var b = this.chapInfoList.length - 1;
  1989. if (t == 0) {
  1990. if (this.courseType == 0) {
  1991. if (this.taskCount == 0) {
  1992. this.navList[this.courseType].isOpen = false;
  1993. this.courseType = b;
  1994. this.taskCount =
  1995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  1996. .length - 1;
  1997. this.navList[this.courseType].isOpen = true;
  1998. } else {
  1999. this.taskCount--;
  2000. }
  2001. } else {
  2002. if (this.taskCount == 0) {
  2003. this.navList[this.courseType].isOpen = false;
  2004. this.courseType--;
  2005. this.taskCount =
  2006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  2007. .length - 1;
  2008. this.navList[this.courseType].isOpen = true;
  2009. } else {
  2010. this.taskCount--;
  2011. }
  2012. }
  2013. } else {
  2014. var b = this.chapInfoList.length - 1;
  2015. if (this.courseType == b) {
  2016. if (
  2017. this.taskCount ==
  2018. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2019. 1
  2020. ) {
  2021. this.navList[this.courseType].isOpen = false;
  2022. this.courseType = 0;
  2023. this.taskCount = 0;
  2024. this.navList[this.courseType].isOpen = true;
  2025. } else {
  2026. this.taskCount++;
  2027. }
  2028. } else {
  2029. if (
  2030. this.taskCount ==
  2031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  2032. 1
  2033. ) {
  2034. this.navList[this.courseType].isOpen = false;
  2035. this.courseType++;
  2036. this.taskCount = 0;
  2037. this.navList[this.courseType].isOpen = true;
  2038. } else {
  2039. this.taskCount++;
  2040. }
  2041. }
  2042. // if (
  2043. // this.taskCount ==
  2044. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  2045. // ) {
  2046. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  2047. // } else {
  2048. // this.taskCount++;
  2049. // }
  2050. }
  2051. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  2052. if (this.vedio[this.taskCount].length > 0) {
  2053. var a =
  2054. document.getElementsByClassName("vedioTaskBox")[this.taskCount]
  2055. .offsetHeight;
  2056. document.getElementsByClassName("vedioList")[
  2057. this.taskCount
  2058. ].style.height = a - 15 + "px";
  2059. document.getElementsByClassName("navBox")[this.taskCount].style.height =
  2060. a - 100 + "px";
  2061. }
  2062. this.isNoHomeWork = false;
  2063. (this.studyJuri = [
  2064. {
  2065. content: "",
  2066. cover: [],
  2067. upVedio: [],
  2068. upFile: [],
  2069. },
  2070. ]),
  2071. (this.radio = []);
  2072. this.getHomeWork();
  2073. this.getCourseDetail();
  2074. },
  2075. openTask(s, n, i) {
  2076. this.courseType = s;
  2077. this.navId = i;
  2078. this.taskCount = n;
  2079. this.showType = 0;
  2080. this.isNoHomeWork = false;
  2081. (this.studyJuri = [
  2082. {
  2083. content: "",
  2084. cover: [],
  2085. upVedio: [],
  2086. upFile: [],
  2087. },
  2088. ]),
  2089. (this.radio = []);
  2090. setTimeout(() => {
  2091. let a = document.getElementById(i);
  2092. if (a.offsetTop - 110 == 0) {
  2093. window.scrollTo(0, 0);
  2094. } else {
  2095. window.scrollTo(0, a.offsetTop);
  2096. }
  2097. }, 0);
  2098. this.getHomeWork();
  2099. this.getCourseDetail();
  2100. this.vedioTime = document.getElementsByClassName(
  2101. "vjs-duration-display"
  2102. )[0].textContent;
  2103. },
  2104. get(i) {
  2105. this.navList[i].isOpen = !this.navList[i].isOpen;
  2106. },
  2107. addQuestion() {
  2108. this.answerList.push({
  2109. answerTitle: this.answerQ,
  2110. answer: this.questionAnswer,
  2111. });
  2112. let params = [
  2113. {
  2114. uid: this.userid,
  2115. cid: this.id,
  2116. stage: this.courseType,
  2117. task: this.taskCount,
  2118. tool: this.toolindex,
  2119. content: JSON.stringify(this.answerList),
  2120. type: 3,
  2121. },
  2122. ];
  2123. this.ajax
  2124. .post(this.$store.state.api + "addCourseWorks", params)
  2125. .then((res) => {
  2126. this.$message({
  2127. message: "提交成功",
  2128. type: "success",
  2129. });
  2130. this.answerList = [];
  2131. this.answerDialogVisible = false;
  2132. })
  2133. .catch((err) => {
  2134. this.$message.error("提交失败");
  2135. console.error(err);
  2136. });
  2137. },
  2138. getCourseDetail() {
  2139. const loading = this.$loading.service({
  2140. background: "rgba(255, 255, 255, 0.7)",
  2141. target: document.querySelector(".student_table"),
  2142. });
  2143. var t = this.courseType;
  2144. let params = {
  2145. courseId: this.id,
  2146. };
  2147. this.ajax
  2148. .get(this.$store.state.api + "selectCourseDetail", params)
  2149. .then((res) => {
  2150. loading.close();
  2151. var a = JSON.parse(res.data[0][0].chapters)[t].chapterInfo[0]
  2152. .taskJson;
  2153. var b = [
  2154. "AVI",
  2155. "NAVI",
  2156. "MPEG",
  2157. "ASF",
  2158. "MOV",
  2159. "WMV",
  2160. "3GP",
  2161. "RM",
  2162. "RMVB",
  2163. "FLV",
  2164. "F4V",
  2165. "H.264",
  2166. "H.265",
  2167. "REAL VIDEO",
  2168. "MKV",
  2169. "WebM",
  2170. "HDDVD",
  2171. "MP4",
  2172. "MPG",
  2173. "M4V",
  2174. "MGV",
  2175. "OGV",
  2176. "QTM",
  2177. "STR",
  2178. "AMC",
  2179. "DVX",
  2180. "EVO",
  2181. "DAT",
  2182. "OGG",
  2183. "OGM",
  2184. ];
  2185. for (var i = 0; i < a.length; i++) {
  2186. var c = a[i].chapterData;
  2187. this.vedio[i] = [];
  2188. this.textList[i] = [];
  2189. this.lineList[i] = [];
  2190. this.chapToolList[i] = [];
  2191. this.file[i] = [];
  2192. for (var j = 0; j < c.length; j++) {
  2193. if (c[j].type == 7) {
  2194. this.chapToolList[i].push(c[j]);
  2195. } else if (c[j].type == 8) {
  2196. this.lineList[i].push(c[j]);
  2197. } else if (c[j].type == 6) {
  2198. this.textList[i].push(c[j]);
  2199. } else {
  2200. if (
  2201. b.indexOf(
  2202. c[j].url
  2203. .split(".")
  2204. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  2205. ) != -1
  2206. ) {
  2207. this.vedio[i].push(c[j]);
  2208. } else {
  2209. this.file[i].push(c[j]);
  2210. }
  2211. }
  2212. }
  2213. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2214. d.sources[0].src =
  2215. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  2216. this.playerO[i] = d;
  2217. }
  2218. this.courseDetail = res.data[0][0];
  2219. this.chapInfo = JSON.parse(this.courseDetail.chapters)[t];
  2220. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  2221. if (this.navList.length == 0) {
  2222. this.navList = [];
  2223. for (var l = 0; l < this.chapInfoList.length; l++) {
  2224. var q = this.chapInfoList[l].dyName;
  2225. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2226. var e;
  2227. this.navList.push({
  2228. dyName: q,
  2229. isOpen: l === 0 ? true : false,
  2230. task: [],
  2231. });
  2232. for (var r = 0; r < w.length; r++) {
  2233. e = w[r].task;
  2234. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  2235. this.navId = this.navId ? this.navId : l + "-" + r;
  2236. }
  2237. }
  2238. }
  2239. for (var l = 0; l < this.chapInfoList.length; l++) {
  2240. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  2241. for (var m = 0; m < w.length; m++) {
  2242. w[m].id = l + "-" + m;
  2243. }
  2244. }
  2245. this.$nextTick(function () {
  2246. setTimeout(() => {
  2247. // for (
  2248. // var i = 0;
  2249. // i < document.getElementsByClassName("video-player").length;
  2250. // i++
  2251. // ) {
  2252. // var a =
  2253. // document.getElementsByClassName("video-player")[i]
  2254. // .offsetHeight;
  2255. // document.getElementsByClassName("vedioList")[i].style.height =
  2256. // a + "px";
  2257. // }
  2258. var a =
  2259. document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2260. document.getElementsByClassName("vedioList")[0].style.height =
  2261. a - 15 + "px";
  2262. document.getElementsByClassName("navBox")[0].style.height =
  2263. a - 100 + "px";
  2264. }, 500);
  2265. });
  2266. this.selectSWorks();
  2267. let _this = this;
  2268. _this.timer = setInterval(function () {
  2269. _this.selectSWorks();
  2270. }, 5000);
  2271. })
  2272. .catch((err) => {
  2273. loading.close();
  2274. console.error(err);
  2275. });
  2276. },
  2277. getHomeWork() {
  2278. let params = {
  2279. cid: this.id,
  2280. stage: this.courseType,
  2281. task: this.taskCount,
  2282. uid: this.userid,
  2283. };
  2284. this.ajax
  2285. .get(this.$store.state.api + "selectWork", params)
  2286. .then((res) => {
  2287. if (res.data[0].length > 0) {
  2288. this.studyJuri = JSON.parse(res.data[0][0].content);
  2289. this.isNoHomeWork = true;
  2290. }
  2291. })
  2292. .catch((err) => {
  2293. console.error(err);
  2294. });
  2295. },
  2296. isAssetTypeAnImage(ext) {
  2297. return (
  2298. [
  2299. "png",
  2300. "jpg",
  2301. "jpeg",
  2302. "bmp",
  2303. "gif",
  2304. "webp",
  2305. "psd",
  2306. "svg",
  2307. "tiff",
  2308. ].indexOf(ext) !== -1
  2309. );
  2310. },
  2311. switchVideo(media) {
  2312. this.playerO = {};
  2313. this.playerOptions.poster = "";
  2314. this.playerOptions.sources[0].src = media;
  2315. this.playerO = this.playerOptions;
  2316. },
  2317. onPlayerPlay() {},
  2318. lookVedio(u) {
  2319. // this.playerOptions.sources[0].src = u;
  2320. var d = JSON.parse(JSON.stringify(this.playerOptions));
  2321. d.sources[0].src = u;
  2322. this.playerO[0] = d;
  2323. this.showType = 0;
  2324. },
  2325. lookText(i, t) {
  2326. this.text = this.textList[i][t];
  2327. // this.dialogVisible1 = true;
  2328. this.showType = 1;
  2329. },
  2330. lookTools(i, t) {
  2331. this.chapTools = this.chapToolList[i][t];
  2332. this.dialogVisible2 = true;
  2333. },
  2334. downFile(f, i) {
  2335. this.pptImgUrl = "";
  2336. var a = ["PPT", "PPTX", "PDF", "XLSX", "XLS", "DOC", "DOCX"];
  2337. if (
  2338. a.indexOf(
  2339. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  2340. ) != -1
  2341. ) {
  2342. this.pptImgUrl =
  2343. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  2344. // this.dialogVisible3 = true;
  2345. this.showType = 2;
  2346. } else {
  2347. window.open(this.file[i].url);
  2348. }
  2349. },
  2350. downFileList(i) {
  2351. window.open(this.noImgList[i].url);
  2352. },
  2353. openAddWork() {
  2354. this.dialogVisible = true;
  2355. },
  2356. addStudentAsk() {
  2357. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  2358. let params = [
  2359. {
  2360. uid: this.userid,
  2361. cid: this.id,
  2362. stage: this.courseType,
  2363. task: this.taskCount,
  2364. tool: this.toolindex,
  2365. content: JSON.stringify(this.askList),
  2366. type: 2,
  2367. },
  2368. ];
  2369. this.ajax
  2370. .post(this.$store.state.api + "addCourseWorks", params)
  2371. .then((res) => {
  2372. this.$message({
  2373. message: "提交成功",
  2374. type: "success",
  2375. });
  2376. this.askList = [];
  2377. this.dialogVisible5 = false;
  2378. })
  2379. .catch((err) => {
  2380. this.$message.error("提交失败");
  2381. console.error(err);
  2382. });
  2383. },
  2384. addWork() {
  2385. if (this.studyJuri[0].content == "") {
  2386. this.$message.error("请将信息填写完整");
  2387. return;
  2388. } else if (this.studyJuri[0].cover.length == 0) {
  2389. this.$message.error("请将信息填写完整");
  2390. return;
  2391. } else if (this.studyJuri[0].upVedio.length == 0) {
  2392. this.$message.error("请将信息填写完整");
  2393. return;
  2394. }
  2395. if (this.isNoHomeWork) {
  2396. this.$confirm(
  2397. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  2398. "提示",
  2399. {
  2400. confirmButtonText: "确定",
  2401. cancelButtonText: "取消",
  2402. type: "warning",
  2403. }
  2404. )
  2405. .then(() => {
  2406. let params = [
  2407. {
  2408. uid: this.userid,
  2409. cid: this.id,
  2410. stage: this.courseType,
  2411. task: this.taskCount,
  2412. content: JSON.stringify(this.studyJuri),
  2413. },
  2414. ];
  2415. this.ajax
  2416. .post(this.$store.state.api + "addWorks", params)
  2417. .then((res) => {
  2418. this.$message({
  2419. message: "提交成功",
  2420. type: "success",
  2421. });
  2422. this.isNoHomeWork = true;
  2423. this.dialogVisible = false;
  2424. })
  2425. .catch((err) => {
  2426. this.$message.error("提交失败");
  2427. console.error(err);
  2428. });
  2429. })
  2430. .catch(() => {});
  2431. } else {
  2432. let params = [
  2433. {
  2434. uid: this.userid,
  2435. cid: this.id,
  2436. stage: this.courseType,
  2437. task: this.taskCount,
  2438. content: JSON.stringify(this.studyJuri),
  2439. },
  2440. ];
  2441. this.ajax
  2442. .post(this.$store.state.api + "addWorks", params)
  2443. .then((res) => {
  2444. this.$message({
  2445. message: "提交成功",
  2446. type: "success",
  2447. });
  2448. this.isNoHomeWork = true;
  2449. this.dialogVisible = false;
  2450. })
  2451. .catch((err) => {
  2452. this.$message.error("提交失败");
  2453. console.error(err);
  2454. });
  2455. }
  2456. },
  2457. selectCount() {
  2458. let params = {
  2459. cid: this.id,
  2460. chid: this.courseType,
  2461. uid: this.userid,
  2462. };
  2463. this.ajax
  2464. .get(this.$store.state.api + "selectToolsCount", params)
  2465. .then((res) => {
  2466. for (var i = 0; i < res.data[0].length; i++) {
  2467. if (res.data[0][i].tools == 1) {
  2468. this.wbCount = res.data[0][i].count;
  2469. } else if (res.data[0][i].tools == 2) {
  2470. this.wordCount = res.data[0][i].count;
  2471. } else if (res.data[0][i].tools == 3) {
  2472. this.mindCount = res.data[0][i].count;
  2473. } else if (res.data[0][i].tools == 4) {
  2474. this.askCount = res.data[0][i].count;
  2475. } else if (res.data[0][i].tools == 6) {
  2476. this.noteCount = res.data[0][i].count;
  2477. } else if (res.data[0][i].tools == 7) {
  2478. this.mindNetWorkCount = res.data[0][i].count;
  2479. } else if (res.data[0][i].tools == 8) {
  2480. this.libraryCount = res.data[0][i].count;
  2481. } else if (res.data[0][i].tools == 16) {
  2482. this.workCount = res.data[0][i].count;
  2483. } else if (res.data[0][i].tools == 10) {
  2484. this.timeCount = res.data[0][i].count;
  2485. } else if (res.data[0][i].tools == 15) {
  2486. this.answerCount = res.data[0][i].count;
  2487. } else if (res.data[0][i].tools == 18) {
  2488. this.trainCount = res.data[0][i].count;
  2489. }
  2490. }
  2491. })
  2492. .catch((err) => {
  2493. console.error(err);
  2494. });
  2495. },
  2496. openTools(t, i, index, c) {
  2497. var z = JSON.parse(c);
  2498. if (t == 4) {
  2499. this.radio = [];
  2500. this.isAnswer = false;
  2501. for (var i = 0; i < z.length; i++) {
  2502. let a = z[i];
  2503. let b = a.anwer.split(",");
  2504. let d = [];
  2505. for (var j = 0; j < b.length; j++) {
  2506. d.push(parseInt(b[j]));
  2507. }
  2508. this.radio = d;
  2509. this.askJson = a.askJson;
  2510. }
  2511. this.isAnswer = true;
  2512. this.dialogVisible5 = true;
  2513. } else if (t == 15) {
  2514. this.answerQ = "";
  2515. this.questionAnswer = "";
  2516. this.answerQ = z[0].answerTitle;
  2517. this.questionAnswer = z[0].answer;
  2518. this.answerDialogVisible = true;
  2519. }
  2520. },
  2521. addTools(t, i, index) {
  2522. var a = 0;
  2523. // this.taskCount = index;
  2524. this.toolindex = i;
  2525. if (t == 1) {
  2526. if (this.wbCount > 0) {
  2527. this.updateCount(this.wbCount, t);
  2528. } else {
  2529. this.wbCount++;
  2530. a = this.wbCount;
  2531. this.toolsCount(a, t);
  2532. }
  2533. window.parent.postMessage(
  2534. {
  2535. tools: "1",
  2536. cid: this.id,
  2537. stage: this.courseType,
  2538. task: this.taskCount,
  2539. tool: i,
  2540. },
  2541. "*"
  2542. );
  2543. } else if (t == 2) {
  2544. if (this.wordCount > 0) {
  2545. this.updateCount(this.wordCount, t);
  2546. } else {
  2547. this.wordCount++;
  2548. a = this.wordCount;
  2549. this.toolsCount(a, t);
  2550. }
  2551. window.parent.postMessage({ tools: "2" }, "*");
  2552. } else if (t == 3) {
  2553. if (this.mindCount > 0) {
  2554. this.updateCount(this.mindCount, t);
  2555. } else {
  2556. this.mindCount++;
  2557. a = this.mindCount;
  2558. this.toolsCount(a, t);
  2559. }
  2560. window.parent.postMessage(
  2561. {
  2562. tools: "3",
  2563. cid: this.id,
  2564. stage: this.courseType,
  2565. task: this.taskCount,
  2566. tool: i,
  2567. },
  2568. "*"
  2569. );
  2570. } else if (t == 4) {
  2571. this.radio = [];
  2572. this.isAnswer = false;
  2573. if (this.askCount > 0) {
  2574. this.updateCount(this.askCount, t);
  2575. } else {
  2576. this.askCount++;
  2577. a = this.askCount;
  2578. this.toolsCount(a, t);
  2579. }
  2580. if (!this.dialogVisible2) {
  2581. this.askJson.askJson =
  2582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2583. index
  2584. ].toolChoose[i].askJson;
  2585. this.askJson.askTitle =
  2586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2587. index
  2588. ].toolChoose[i].askTitle;
  2589. this.askJson.askCount =
  2590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2591. index
  2592. ].toolChoose[i].askCount;
  2593. } else {
  2594. this.askJson.askJson = this.chapTools.askJson.askJson;
  2595. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  2596. this.askJson.askCount = this.chapTools.askJson.askCount;
  2597. }
  2598. this.dialogVisible5 = true;
  2599. // window.parent.postMessage({ tools: "4" }, "*");
  2600. } else if (t == 5) {
  2601. if (this.scoreCount > 0) {
  2602. this.updateCount(this.scoreCount, t);
  2603. } else {
  2604. this.scoreCount++;
  2605. a = this.scoreCount;
  2606. this.toolsCount(a, t);
  2607. }
  2608. this.dialogVisible4 = true;
  2609. // window.parent.postMessage({ tools: "5" }, "*");
  2610. } else if (t == 6) {
  2611. if (this.noteCount > 0) {
  2612. this.updateCount(this.noteCount, t);
  2613. } else {
  2614. this.noteCount++;
  2615. a = this.noteCount;
  2616. this.toolsCount(a, t);
  2617. }
  2618. window.parent.postMessage(
  2619. {
  2620. tools: "6",
  2621. cid: this.id,
  2622. stage: this.courseType,
  2623. task: this.taskCount,
  2624. tool: i,
  2625. },
  2626. "*"
  2627. );
  2628. } else if (t == 7) {
  2629. if (this.mindNetWorkCount > 0) {
  2630. this.updateCount(this.mindNetWorkCount, t);
  2631. } else {
  2632. this.mindNetWorkCount++;
  2633. a = this.mindNetWorkCount;
  2634. this.toolsCount(a, t);
  2635. }
  2636. window.parent.postMessage(
  2637. {
  2638. tools: "7",
  2639. cid: this.id,
  2640. stage: this.courseType,
  2641. task: this.taskCount,
  2642. tool: i,
  2643. },
  2644. "*"
  2645. );
  2646. } else if (t == 16) {
  2647. if (this.workCount > 0) {
  2648. this.updateCount(this.workCount, t);
  2649. } else {
  2650. this.workCount++;
  2651. a = this.workCount;
  2652. this.toolsCount(a, t);
  2653. }
  2654. this.dialogVisible = true;
  2655. } else if (t == 8) {
  2656. if (this.libraryCount > 0) {
  2657. this.updateCount(this.libraryCount, t);
  2658. } else {
  2659. this.libraryCount++;
  2660. a = this.libraryCount;
  2661. this.toolsCount(a, t);
  2662. }
  2663. window.parent.postMessage({ tools: "8" }, "*");
  2664. } else if (t == 17) {
  2665. if (this.libraryCount > 0) {
  2666. this.updateCount(this.libraryCount, t);
  2667. } else {
  2668. this.libraryCount++;
  2669. a = this.libraryCount;
  2670. this.toolsCount(a, t);
  2671. }
  2672. window.parent.postMessage({ tools: "17" }, "*");
  2673. } else if (t == 18) {
  2674. if (this.trainCount > 0) {
  2675. this.updateCount(this.trainCount, t);
  2676. } else {
  2677. this.trainCount++;
  2678. a = this.trainCount;
  2679. this.toolsCount(a, t);
  2680. }
  2681. window.parent.postMessage({ tools: "18" }, "*");
  2682. } else if (t == 10) {
  2683. if (this.timeCount > 0) {
  2684. this.updateCount(this.timeCount, t);
  2685. } else {
  2686. this.timeCount++;
  2687. a = this.timeCount;
  2688. this.toolsCount(a, t);
  2689. }
  2690. this.timeDialogVisible = true;
  2691. } else if (t == 15) {
  2692. this.answerQ = "";
  2693. this.questionAnswer = "";
  2694. if (this.answerCount > 0) {
  2695. this.updateCount(this.answerCount, t);
  2696. } else {
  2697. this.answerCount++;
  2698. a = this.answerCount;
  2699. this.toolsCount(a, t);
  2700. }
  2701. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  2702. .taskJson[index].toolChoose[i].answerQ
  2703. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  2704. .toolChoose[i].answerQ
  2705. : "";
  2706. this.answerDialogVisible = true;
  2707. }
  2708. },
  2709. toolsCount(a, t) {
  2710. let params = {
  2711. cid: this.id,
  2712. chid: this.courseType,
  2713. uid: this.userid,
  2714. tid: t,
  2715. count: a,
  2716. };
  2717. this.ajax
  2718. .get(this.$store.state.api + "insertToolsCount", params)
  2719. .then((res) => {
  2720. this.selectCount();
  2721. })
  2722. .catch((err) => {
  2723. console.error(err);
  2724. });
  2725. },
  2726. updateCount(c, t) {
  2727. c++;
  2728. let params = {
  2729. cid: this.id,
  2730. chid: this.courseType,
  2731. uid: this.userid,
  2732. tid: t,
  2733. count: c,
  2734. };
  2735. this.ajax
  2736. .get(this.$store.state.api + "updateToolsCount", params)
  2737. .then((res) => {
  2738. this.selectCount();
  2739. })
  2740. .catch((err) => {
  2741. console.error(err);
  2742. });
  2743. },
  2744. },
  2745. destroyed() {
  2746. window.onresize = null;
  2747. },
  2748. created() {
  2749. this.getCourseDetail();
  2750. this.selectCount();
  2751. this.getHomeWork();
  2752. document.scrollingElement.scrollTop = 0;
  2753. window.addEventListener("resize", () => {
  2754. var a = document.getElementsByClassName("vedioTaskBox")[0].offsetHeight;
  2755. document.getElementsByClassName("vedioList")[0].style.height =
  2756. a - 15 + "px";
  2757. document.getElementsByClassName("navBox")[0].style.height =
  2758. a - 100 + "px";
  2759. });
  2760. setTimeout(() => {
  2761. this.vedioTime = document.getElementsByClassName(
  2762. "vjs-duration-display"
  2763. )[0].textContent;
  2764. }, 1000);
  2765. },
  2766. };
  2767. </script>
  2768. <style scoped>
  2769. .body_student {
  2770. width: 77%;
  2771. height: 100%;
  2772. position: absolute;
  2773. left: 22%;
  2774. top: 0;
  2775. }
  2776. .student_head {
  2777. width: 100%;
  2778. margin: 0 auto;
  2779. padding-bottom: 50px;
  2780. display: flex;
  2781. flex-direction: row;
  2782. flex-wrap: nowrap;
  2783. align-items: flex-start;
  2784. justify-content: flex-start;
  2785. }
  2786. .pb_left {
  2787. width: 20%;
  2788. margin-right: 10px;
  2789. background: rgb(255, 255, 255);
  2790. padding-right: 10px;
  2791. position: fixed;
  2792. height: 100%;
  2793. }
  2794. .wheel > img,
  2795. .project > img,
  2796. .star > img,
  2797. .evaluate > img,
  2798. .up_photo > img,
  2799. .chapter_add > img,
  2800. .upCover > img,
  2801. .deleteWord > img,
  2802. .question > img,
  2803. .homework > img {
  2804. width: 100%;
  2805. height: 100%;
  2806. }
  2807. .upCover {
  2808. width: calc(100% / 3.5);
  2809. position: relative;
  2810. margin: 0 15px 10px 0;
  2811. display: flex;
  2812. flex-direction: column;
  2813. flex-wrap: nowrap;
  2814. justify-content: center;
  2815. align-content: center;
  2816. align-items: center;
  2817. }
  2818. .chapter_add {
  2819. width: 120px;
  2820. position: relative;
  2821. text-align: center;
  2822. }
  2823. .isAddThings {
  2824. margin-top: 20px;
  2825. position: relative;
  2826. text-align: center;
  2827. background: #f7f8fa;
  2828. height: 90px;
  2829. width: 90px;
  2830. display: flex;
  2831. flex-direction: column;
  2832. justify-content: center;
  2833. }
  2834. .deleteWord {
  2835. width: 22px;
  2836. height: 22px;
  2837. position: absolute;
  2838. right: -5px;
  2839. top: -5px;
  2840. cursor: pointer;
  2841. }
  2842. .box_course {
  2843. display: flex;
  2844. flex-direction: row;
  2845. justify-content: flex-start;
  2846. align-items: center;
  2847. }
  2848. .wheel {
  2849. width: 100%;
  2850. height: 100%;
  2851. }
  2852. .right_box {
  2853. display: flex;
  2854. flex-direction: column;
  2855. margin-left: 30px;
  2856. justify-content: space-around;
  2857. }
  2858. .right_box_title {
  2859. font-size: 23px;
  2860. }
  2861. .people {
  2862. display: flex;
  2863. }
  2864. .student_body {
  2865. width: 100%;
  2866. margin: 0 auto;
  2867. margin-top: 20px;
  2868. padding: 0 0 20px;
  2869. }
  2870. .study_top {
  2871. margin-top: 90px;
  2872. width: 100%;
  2873. overflow: auto;
  2874. height: auto;
  2875. }
  2876. .study_top .checkbox {
  2877. display: flex;
  2878. align-items: center;
  2879. padding: 20px 0 20px 30px;
  2880. flex: 0 0 auto;
  2881. font-weight: bold;
  2882. border-bottom: 1px solid #eee;
  2883. }
  2884. .study_top .check {
  2885. padding-bottom: 5px;
  2886. text-align: center;
  2887. cursor: pointer;
  2888. height: 30px;
  2889. box-sizing: border-box;
  2890. display: flex;
  2891. }
  2892. .study_top .checked {
  2893. border-bottom: 4px solid #3fc6a0;
  2894. padding-bottom: 5px;
  2895. color: #3fc6a0;
  2896. display: flex;
  2897. height: 35px;
  2898. }
  2899. .study_top .checked > div,
  2900. .study_top .check > div {
  2901. margin-right: 5px;
  2902. }
  2903. .videoTop {
  2904. display: flex;
  2905. flex-direction: row;
  2906. justify-content: space-between;
  2907. background: #fff;
  2908. align-items: center;
  2909. width: 95%;
  2910. padding: 20px;
  2911. }
  2912. .upbtn {
  2913. margin: 25px;
  2914. background: #70afdb;
  2915. color: #fff;
  2916. width: 120px;
  2917. text-align: center;
  2918. height: 30px;
  2919. line-height: 30px;
  2920. font-size: 13px;
  2921. border-radius: 5px;
  2922. cursor: pointer;
  2923. }
  2924. .filebox {
  2925. display: flex;
  2926. flex-wrap: wrap;
  2927. flex-direction: column;
  2928. padding: 15px 0 25px;
  2929. }
  2930. .filebox .tooldetail {
  2931. width: 100%;
  2932. margin: 0px 12px;
  2933. background: rgb(247, 247, 247);
  2934. padding: 20px;
  2935. line-height: 30px;
  2936. max-height: 105px;
  2937. overflow: auto;
  2938. height: 70px;
  2939. }
  2940. .file {
  2941. display: flex;
  2942. flex-direction: column;
  2943. align-items: center;
  2944. justify-content: center;
  2945. cursor: pointer;
  2946. width: 200px;
  2947. }
  2948. .file div {
  2949. margin-top: 10px;
  2950. width: 150px;
  2951. text-align: center;
  2952. overflow: hidden;
  2953. white-space: nowrap;
  2954. text-overflow: ellipsis;
  2955. }
  2956. .media {
  2957. display: flex;
  2958. flex-direction: column;
  2959. align-items: center;
  2960. justify-content: center;
  2961. margin: 0 20px 20px 0;
  2962. cursor: pointer;
  2963. margin: 12px 0 5px 15px;
  2964. overflow: hidden;
  2965. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  2966. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  2967. box-sizing: border-box;
  2968. }
  2969. .media img {
  2970. height: 90px;
  2971. width: 160px;
  2972. object-fit: cover;
  2973. }
  2974. .media .title {
  2975. padding: 5px;
  2976. text-align: left;
  2977. width: 100%;
  2978. box-sizing: border-box;
  2979. }
  2980. .media .btn {
  2981. width: 100%;
  2982. height: 35px;
  2983. line-height: 35px;
  2984. color: #fff;
  2985. background: #606060;
  2986. text-align: center;
  2987. overflow: hidden;
  2988. white-space: nowrap;
  2989. text-overflow: ellipsis;
  2990. }
  2991. .detail_content_top {
  2992. width: 100%;
  2993. padding: 25px 0 25px 0;
  2994. }
  2995. .detail_title {
  2996. text-align: center;
  2997. font-size: 24px;
  2998. }
  2999. .detail_time {
  3000. font-size: 13px;
  3001. padding: 15px 0 0 40px;
  3002. }
  3003. .detail_content {
  3004. line-height: 2pc;
  3005. width: 90%;
  3006. margin: 0 auto;
  3007. padding-top: 30px;
  3008. text-indent: 30px;
  3009. overflow: auto;
  3010. height: 200px;
  3011. }
  3012. .score_box >>> .el-rate {
  3013. margin-left: 10px;
  3014. }
  3015. .dialog_change >>> .el-dialog {
  3016. border-radius: 5px;
  3017. }
  3018. .dialog_change >>> .el-dialog__header {
  3019. background: #f2f2f2;
  3020. text-align: center;
  3021. }
  3022. .dialog_change >>> .el-dialog__title {
  3023. line-height: 5px;
  3024. }
  3025. .dialog_change >>> .el-dialog__body {
  3026. background: #fff;
  3027. padding: 10px 20px;
  3028. }
  3029. .score_box {
  3030. display: flex;
  3031. align-items: center;
  3032. margin-bottom: 18px;
  3033. margin-top: 20px;
  3034. }
  3035. .up_photo {
  3036. width: 120px;
  3037. cursor: pointer;
  3038. margin-top: 10px;
  3039. }
  3040. .upload_send {
  3041. margin: 200px auto 30px;
  3042. width: 60%;
  3043. background: #169bd6;
  3044. text-align: center;
  3045. height: 35px;
  3046. line-height: 35px;
  3047. color: #fff;
  3048. border-radius: 5px;
  3049. cursor: pointer;
  3050. }
  3051. .marginT {
  3052. margin-top: 20px;
  3053. }
  3054. .cd_content_steps {
  3055. display: flex;
  3056. width: 90%;
  3057. justify-content: space-around;
  3058. border-top: 1px solid #eeeeee;
  3059. }
  3060. .cd_steps_box {
  3061. display: flex;
  3062. justify-content: center;
  3063. align-items: center;
  3064. flex-direction: column;
  3065. cursor: pointer;
  3066. }
  3067. .first {
  3068. display: flex;
  3069. align-items: center;
  3070. margin: 15px 0 20px 0;
  3071. font-size: 20px;
  3072. }
  3073. .first > div:nth-child(2) {
  3074. font-size: 16px !important;
  3075. padding-left: 10px;
  3076. line-height: 26px;
  3077. box-sizing: border-box;
  3078. }
  3079. .blue_box_one {
  3080. text-align: center;
  3081. color: #fff;
  3082. background-image: linear-gradient(to right, #30c499, #75ceba);
  3083. border-radius: 7px;
  3084. margin: 10px;
  3085. cursor: pointer;
  3086. width: 95%;
  3087. height: 45px;
  3088. display: flex;
  3089. flex-direction: row;
  3090. justify-content: flex-start;
  3091. align-items: center;
  3092. }
  3093. .blue_box_one > div:nth-child(1) {
  3094. line-height: 65px;
  3095. margin: 0 5px 0 10px;
  3096. width: 30%;
  3097. min-width: 70px;
  3098. }
  3099. .blue_box_one > div:nth-child(2) {
  3100. white-space: nowrap;
  3101. text-overflow: ellipsis;
  3102. overflow: hidden;
  3103. word-break: break-all;
  3104. width: 70%;
  3105. text-align: left;
  3106. max-width: calc(100% - 85px);
  3107. }
  3108. .blue_box_one > div:nth-child(2):hover {
  3109. overflow: hidden;
  3110. text-overflow: ellipsis;
  3111. white-space: nowrap;
  3112. cursor: pointer;
  3113. }
  3114. .upFile {
  3115. margin: 0 auto;
  3116. width: 120px;
  3117. background: #70afdb;
  3118. color: #fff;
  3119. height: 30px;
  3120. text-align: center;
  3121. line-height: 30px;
  3122. border-radius: 5px;
  3123. font-size: 14px;
  3124. cursor: pointer;
  3125. }
  3126. .courseTitle {
  3127. background: #329c74;
  3128. width: 95%;
  3129. margin: 10px auto;
  3130. height: 40px;
  3131. color: #fff;
  3132. line-height: 40px;
  3133. text-indent: 15px;
  3134. }
  3135. .ml {
  3136. margin-left: 15px;
  3137. color: #d1d1d1;
  3138. }
  3139. .return {
  3140. width: 2rem;
  3141. height: 2rem;
  3142. cursor: pointer;
  3143. }
  3144. .return > img {
  3145. width: 100%;
  3146. height: 100%;
  3147. }
  3148. .returnBtn {
  3149. background: rgb(238, 238, 238);
  3150. width: 58px;
  3151. height: 30px;
  3152. color: rgb(22, 22, 22);
  3153. text-align: center;
  3154. line-height: 32px;
  3155. margin-right: 20px;
  3156. cursor: pointer;
  3157. }
  3158. .tool {
  3159. display: flex;
  3160. flex-direction: column;
  3161. flex-wrap: nowrap;
  3162. width: 13%;
  3163. margin: 0 30px;
  3164. align-items: center;
  3165. }
  3166. .whiteBIcon {
  3167. width: 150px;
  3168. cursor: pointer;
  3169. }
  3170. .whiteBIcon > img {
  3171. width: 100%;
  3172. height: 100%;
  3173. }
  3174. .mask {
  3175. background-color: rgba(0, 0, 0, 0);
  3176. position: fixed;
  3177. top: 0;
  3178. left: 0;
  3179. width: 100%;
  3180. height: 100%;
  3181. z-index: 20000;
  3182. display: flex;
  3183. align-items: center;
  3184. justify-content: center;
  3185. }
  3186. .progressBox {
  3187. width: 500px;
  3188. height: 180px;
  3189. background: #fff;
  3190. border-radius: 10px;
  3191. box-shadow: 0 0 6px 1px #bfbfbf;
  3192. display: flex;
  3193. align-items: center;
  3194. justify-content: center;
  3195. flex-direction: column;
  3196. }
  3197. .progressBox .lbox {
  3198. height: 100px;
  3199. font-size: 19px;
  3200. display: flex;
  3201. align-items: center;
  3202. }
  3203. .progressBox .lbox img {
  3204. width: 40px;
  3205. margin-right: 20px;
  3206. }
  3207. .progressBox >>> .el-progress-bar__outer {
  3208. background-color: #d1dfff !important;
  3209. }
  3210. .progressBox .lbox {
  3211. height: 100px;
  3212. font-size: 19px;
  3213. display: flex;
  3214. align-items: center;
  3215. }
  3216. .progressBox .lbox img {
  3217. width: 40px;
  3218. margin-right: 20px;
  3219. }
  3220. .uploadVedio {
  3221. display: flex;
  3222. flex-direction: column;
  3223. flex-wrap: nowrap;
  3224. justify-content: center;
  3225. align-items: center;
  3226. margin: 0 15px 10px 0;
  3227. }
  3228. .uploadVedio > img {
  3229. width: 30px;
  3230. height: 30px;
  3231. }
  3232. .uploadVedio > span {
  3233. white-space: nowrap;
  3234. overflow: hidden;
  3235. text-overflow: ellipsis;
  3236. width: 75px;
  3237. margin-top: 7px;
  3238. }
  3239. .picName {
  3240. white-space: nowrap;
  3241. overflow: hidden;
  3242. text-overflow: ellipsis;
  3243. width: 75px;
  3244. margin-top: 7px;
  3245. }
  3246. .new_top {
  3247. display: flex;
  3248. background: #fff;
  3249. flex-direction: row;
  3250. justify-content: flex-start;
  3251. align-items: center;
  3252. height: 60px;
  3253. position: relative;
  3254. }
  3255. .before {
  3256. position: absolute;
  3257. background: #c3dad4;
  3258. width: 6px;
  3259. height: 100%;
  3260. }
  3261. .courseIndex {
  3262. display: flex;
  3263. flex-direction: row;
  3264. align-items: baseline;
  3265. }
  3266. .courseIndex > div:nth-child(1) {
  3267. margin: 0 20px;
  3268. padding-bottom: 5px;
  3269. color: #288a6e;
  3270. font-size: 20px;
  3271. width: 80px;
  3272. font-weight: bold;
  3273. border-bottom: 4px solid #41c4a4;
  3274. text-align: center;
  3275. }
  3276. .courseIndex > div:nth-child(2) {
  3277. font-size: 23px;
  3278. }
  3279. .course_text {
  3280. padding: 20px 0 0 15px;
  3281. text-indent: 30px;
  3282. width: 80%;
  3283. min-height: 20px;
  3284. }
  3285. .vedioList {
  3286. background: #f2f2f2;
  3287. border: 1px solid #ececec;
  3288. width: 213px;
  3289. height: 530px;
  3290. border-radius: 10px;
  3291. margin-top: 15px;
  3292. }
  3293. .vedioNav {
  3294. margin: 10px 0 0 15px;
  3295. border-bottom: 1px solid #d7d7d7;
  3296. padding-bottom: 5px;
  3297. background: #d2e3ff;
  3298. width: 60px;
  3299. border-radius: 5px;
  3300. color: #4d97d6;
  3301. text-align: center;
  3302. height: 20px;
  3303. line-height: 26px;
  3304. font-size: 14px;
  3305. }
  3306. .queTop {
  3307. display: flex;
  3308. padding: 20px 0 20px 30px;
  3309. width: 100%;
  3310. flex-direction: row;
  3311. justify-content: flex-start;
  3312. align-items: center;
  3313. border-bottom: 1px solid #eeeeee;
  3314. box-sizing: border-box;
  3315. }
  3316. .question {
  3317. width: 40px;
  3318. margin-right: 10px;
  3319. margin-top: 7px;
  3320. }
  3321. .queTitle {
  3322. margin-left: 5px;
  3323. font-size: 25px;
  3324. display: flex;
  3325. align-items: center;
  3326. }
  3327. .addEditor {
  3328. width: 100px;
  3329. height: 30px;
  3330. background: #42cda6;
  3331. color: #fff;
  3332. border-radius: 5px;
  3333. text-align: center;
  3334. line-height: 30px;
  3335. box-shadow: 1px 3px 6px 1px #bfbfbf;
  3336. cursor: pointer;
  3337. }
  3338. .vedioName {
  3339. width: 90px;
  3340. text-overflow: ellipsis;
  3341. position: absolute;
  3342. top: 8px;
  3343. font-size: 14px;
  3344. left: 110px;
  3345. height: 60px;
  3346. }
  3347. .vedioTime {
  3348. width: 35px;
  3349. position: absolute;
  3350. color: #fff;
  3351. bottom: 0px;
  3352. right: 0px;
  3353. text-align: center;
  3354. background: #46411f;
  3355. height: 20px;
  3356. font-size: 14px;
  3357. line-height: 20px;
  3358. }
  3359. .homework {
  3360. width: 200px;
  3361. display: flex;
  3362. flex-direction: column;
  3363. flex-wrap: nowrap;
  3364. align-items: center;
  3365. cursor: pointer;
  3366. }
  3367. .homebox {
  3368. display: flex;
  3369. flex-wrap: wrap;
  3370. flex-direction: row;
  3371. justify-content: flex-start;
  3372. align-items: center;
  3373. padding: 15px 0;
  3374. }
  3375. .isChooseActive {
  3376. color: #3e88f4;
  3377. border-bottom: 2px solid #2f80f3;
  3378. }
  3379. .chooseWho {
  3380. display: flex;
  3381. width: 100%;
  3382. flex-direction: row;
  3383. flex-wrap: nowrap;
  3384. justify-content: flex-start;
  3385. padding-bottom: 10px;
  3386. }
  3387. .chooseWho > div {
  3388. cursor: pointer;
  3389. padding-bottom: 10px;
  3390. margin: 0 30px;
  3391. }
  3392. .addPoint > div > img {
  3393. cursor: pointer;
  3394. margin: 0 10px;
  3395. width: 85px;
  3396. }
  3397. .addPoint > div {
  3398. display: flex;
  3399. flex-direction: column;
  3400. flex-wrap: nowrap;
  3401. align-items: center;
  3402. }
  3403. .isBorder > div {
  3404. margin: 0 0 10px 0;
  3405. align-items: flex-start !important;
  3406. }
  3407. .noiframeBox {
  3408. display: flex;
  3409. flex-wrap: wrap;
  3410. }
  3411. .iframeBox {
  3412. }
  3413. .iframeBox iframe {
  3414. width: 100%;
  3415. height: 800px;
  3416. border: none;
  3417. margin-bottom: 20px;
  3418. border: 1px solid #ccc;
  3419. }
  3420. .upload_toolBtn {
  3421. background: #6b92c9;
  3422. color: #fff;
  3423. width: 110px;
  3424. text-align: center;
  3425. height: 35px;
  3426. line-height: 35px;
  3427. font-size: 14px;
  3428. border-radius: 5px;
  3429. cursor: pointer;
  3430. position: absolute;
  3431. right: 10px;
  3432. bottom: 0;
  3433. }
  3434. .binfo_input {
  3435. font: inherit;
  3436. color: currentColor;
  3437. width: 100%;
  3438. margin: 0;
  3439. padding: 15px 14px;
  3440. display: block;
  3441. min-width: 0;
  3442. outline: none;
  3443. box-sizing: content-box;
  3444. background: none;
  3445. -webkit-tap-highlight-color: transparent;
  3446. border: 1px solid rgba(0, 0, 0, 0.23);
  3447. border-radius: 4px;
  3448. box-sizing: border-box;
  3449. resize: none;
  3450. }
  3451. .binfo_input:focus-visible {
  3452. border: 1px solid rgba(61, 103, 188);
  3453. }
  3454. .dialog_diy >>> .el-dialog__header {
  3455. background: #484848 !important;
  3456. padding: 15px 20px;
  3457. }
  3458. .dialog_diy >>> .el-dialog__title {
  3459. color: #fff;
  3460. }
  3461. .dialog_diy >>> .el-dialog__headerbtn {
  3462. top: 19px;
  3463. }
  3464. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  3465. color: #fff;
  3466. }
  3467. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  3468. color: #fff;
  3469. }
  3470. .dialog_diy >>> .el-dialog__body,
  3471. .dialog_diy >>> .el-dialog__footer {
  3472. background: #fafafa;
  3473. }
  3474. .a_addBox {
  3475. margin: 10px 0;
  3476. background: #fff;
  3477. padding: 15px;
  3478. max-height: 400px;
  3479. overflow: auto;
  3480. }
  3481. .a_add_box {
  3482. border-bottom: 2px solid #eee;
  3483. padding-bottom: 10px;
  3484. }
  3485. .a_add_head {
  3486. display: flex;
  3487. align-items: center;
  3488. justify-content: space-between;
  3489. margin: 10px 0;
  3490. font-size: 18px;
  3491. }
  3492. .a_add_head .a_add_head_input {
  3493. width: 300px;
  3494. }
  3495. .a_add_head .a_add_head_div {
  3496. display: flex;
  3497. align-items: center;
  3498. justify-content: space-between;
  3499. }
  3500. .a_add_body {
  3501. display: flex;
  3502. align-items: center;
  3503. }
  3504. .a_add_input {
  3505. display: flex;
  3506. align-items: center;
  3507. flex-wrap: wrap;
  3508. }
  3509. .a_add_input >>> el-radio-group {
  3510. margin: 10px 0;
  3511. }
  3512. .a_add_input >>> .el-radio {
  3513. margin-bottom: 10px;
  3514. }
  3515. .redioStyle >>> .el-radio__label {
  3516. font-size: 18px;
  3517. }
  3518. .toolHeng2 {
  3519. width: 100%;
  3520. }
  3521. .toolHeng {
  3522. display: flex;
  3523. flex-direction: row;
  3524. flex-wrap: wrap;
  3525. justify-content: flex-start;
  3526. align-items: center;
  3527. width: 100%;
  3528. }
  3529. .toolHeng > div {
  3530. padding-left: 20px;
  3531. }
  3532. .isWidth {
  3533. width: 20%;
  3534. }
  3535. .textTitle {
  3536. display: flex;
  3537. flex-direction: row;
  3538. flex-wrap: nowrap;
  3539. align-items: center;
  3540. }
  3541. .textTitle >>> .el-form-item__label {
  3542. font-size: 22px;
  3543. color: #918f8f;
  3544. }
  3545. .textCss >>> .el-dialog {
  3546. width: 800px !important;
  3547. height: 400px;
  3548. background: #fafafa;
  3549. }
  3550. .textCss >>> .el-dialog__body {
  3551. margin: 55px 8% 0 8%;
  3552. padding: 0 !important;
  3553. }
  3554. .textCss >>> .el-dialog__footer {
  3555. padding-top: 38px;
  3556. }
  3557. .toolsCss >>> .el-dialog__body {
  3558. padding: 20px;
  3559. }
  3560. .lineCss >>> .el-dialog__body {
  3561. display: flex;
  3562. flex-direction: row;
  3563. align-items: center;
  3564. justify-content: center;
  3565. }
  3566. .newNav {
  3567. display: flex;
  3568. flex-direction: row;
  3569. align-items: baseline;
  3570. justify-content: flex-start;
  3571. }
  3572. .navText {
  3573. cursor: pointer;
  3574. margin: 0px 0px 10px 5px;
  3575. width: 112px;
  3576. white-space: nowrap;
  3577. overflow: hidden;
  3578. text-overflow: ellipsis;
  3579. }
  3580. .noVedio {
  3581. display: flex;
  3582. flex-direction: row;
  3583. justify-content: center;
  3584. align-content: center;
  3585. }
  3586. .noNavText {
  3587. cursor: pointer;
  3588. margin: 0px 0px 10px 5px;
  3589. width: 112px;
  3590. }
  3591. .listNoVedio {
  3592. margin-top: 10px;
  3593. }
  3594. .video-player >>> .video-js {
  3595. height: 100%;
  3596. }
  3597. .hangVedioList {
  3598. width: 90% !important;
  3599. height: 150px !important;
  3600. margin: 20px 0 0 30px;
  3601. }
  3602. .hangVedio {
  3603. width: 100%;
  3604. height: 170px !important;
  3605. align-items: flex-start !important;
  3606. }
  3607. .hangHand {
  3608. height: 150px !important;
  3609. }
  3610. .twoChild {
  3611. width: 95%;
  3612. margin: 10px;
  3613. border-radius: 5px;
  3614. background: #f2f2f2;
  3615. display: flex;
  3616. flex-direction: column;
  3617. flex-wrap: nowrap;
  3618. justify-content: flex-start;
  3619. align-items: flex-start;
  3620. transition: all 0.5s;
  3621. overflow: hidden;
  3622. height: 0;
  3623. }
  3624. .twoChild > div:nth-child(1) {
  3625. margin-top: 5px;
  3626. }
  3627. .navChild {
  3628. width: 100%;
  3629. cursor: pointer;
  3630. margin-bottom: 10px;
  3631. }
  3632. .navActive {
  3633. height: auto;
  3634. }
  3635. .navTask {
  3636. display: flex;
  3637. flex-direction: row;
  3638. flex-wrap: nowrap;
  3639. align-items: center;
  3640. align-content: flex-start;
  3641. height: 40px;
  3642. justify-content: flex-start;
  3643. padding: 0 10px;
  3644. width: 100%;
  3645. }
  3646. .navTaskname {
  3647. white-space: nowrap;
  3648. text-overflow: ellipsis;
  3649. overflow: hidden;
  3650. word-break: break-all;
  3651. padding-left: 5px;
  3652. }
  3653. .openTaskActive {
  3654. color: #43a078;
  3655. background: #e8e8e8;
  3656. }
  3657. .iframeName {
  3658. margin: 5px 0;
  3659. border-left: 4px solid #41c4a4;
  3660. padding-left: 4px;
  3661. }
  3662. .toolTitle {
  3663. margin: 0px 0px 20px;
  3664. font-size: 20px;
  3665. font-weight: 500;
  3666. border-left: 4px solid #41c4a4;
  3667. padding-left: 4px;
  3668. }
  3669. .cru_selectBox {
  3670. overflow: auto;
  3671. height: calc(100% - 40px - 21px - 20px);
  3672. }
  3673. .cru_selectBox::-webkit-scrollbar,
  3674. .study_top::-webkit-scrollbar,
  3675. .answerContent::-webkit-scrollbar {
  3676. /*滚动条整体样式*/
  3677. width: 6px;
  3678. /*高宽分别对应横竖滚动条的尺寸*/
  3679. height: 6px;
  3680. }
  3681. /*定义滚动条轨道 内阴影+圆角*/
  3682. .cru_selectBox::-webkit-scrollbar-track,
  3683. .study_top::-webkit-scrollbar-track,
  3684. .answerContent::-webkit-scrollbar {
  3685. border-radius: 10px;
  3686. background-color: #eee;
  3687. }
  3688. /*定义滑块 内阴影+圆角*/
  3689. .cru_selectBox::-webkit-scrollbar-thumb,
  3690. .study_top::-webkit-scrollbar-thumb,
  3691. .answerContent::-webkit-scrollbar-thumb {
  3692. border-radius: 10px;
  3693. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  3694. background-color: rgba(0, 0, 0, 0.1);
  3695. }
  3696. .vedioBox {
  3697. border-radius: 20px;
  3698. background: #fff;
  3699. margin-bottom: 10px;
  3700. }
  3701. .taskBox {
  3702. margin: 15px 0 20px 30px;
  3703. background: #f7f7f7;
  3704. width: 90%;
  3705. border-radius: 5px;
  3706. }
  3707. .vedioTaskBox {
  3708. width: 70%;
  3709. }
  3710. .toolBox {
  3711. padding: 20px 0 0 0;
  3712. display: flex;
  3713. }
  3714. .btnAll {
  3715. position: absolute;
  3716. right: 0;
  3717. display: flex;
  3718. flex-direction: row;
  3719. flex-wrap: nowrap;
  3720. align-items: center;
  3721. }
  3722. .vedioTimeBox {
  3723. display: flex;
  3724. flex-direction: row;
  3725. align-items: center;
  3726. flex-wrap: nowrap;
  3727. position: relative;
  3728. }
  3729. .navBox {
  3730. background: rgb(255, 255, 255);
  3731. margin: 10px 0 0 0;
  3732. height: 530px;
  3733. padding: 5px 1px 0 1px;
  3734. overflow: auto;
  3735. }
  3736. .worksBox {
  3737. padding: 80px 0 15px 10px;
  3738. }
  3739. .worksBTitle {
  3740. font-size: 20px;
  3741. padding-bottom: 15px;
  3742. border-bottom: 1px solid #eeeeee;
  3743. display: flex;
  3744. align-items: center;
  3745. }
  3746. .greenBox {
  3747. width: 5px;
  3748. height: 30px;
  3749. background: #41c4a4;
  3750. margin-right: 5px;
  3751. }
  3752. .worksDetailBox {
  3753. display: flex;
  3754. width: 100%;
  3755. flex-direction: row;
  3756. flex-wrap: wrap;
  3757. align-items: center;
  3758. justify-content: flex-start;
  3759. }
  3760. .works {
  3761. padding: 15px 10px 15px 0;
  3762. display: flex;
  3763. flex-direction: column;
  3764. flex-wrap: nowrap;
  3765. align-items: flex-start;
  3766. justify-content: flex-start;
  3767. align-content: center;
  3768. width: 260px;
  3769. height: 140px;
  3770. margin-right: 10px;
  3771. }
  3772. .workImg {
  3773. width: 100%;
  3774. height: 100%;
  3775. }
  3776. .worksName {
  3777. margin: 5px 0 0 0;
  3778. }
  3779. .noWorksS {
  3780. padding: 15px 0;
  3781. display: flex;
  3782. flex-direction: row;
  3783. flex-wrap: wrap;
  3784. align-items: center;
  3785. justify-content: flex-start;
  3786. }
  3787. .noWorksName {
  3788. background: #efefef;
  3789. width: 90px;
  3790. height: 25px;
  3791. text-align: center;
  3792. line-height: 25px;
  3793. border-radius: 5px;
  3794. margin: 10px 15px 10px 0;
  3795. white-space: nowrap;
  3796. overflow: hidden;
  3797. padding: 5px;
  3798. text-overflow: ellipsis;
  3799. }
  3800. .noWorksName:hover {
  3801. background: #e7e7e7 !important;
  3802. }
  3803. .title {
  3804. background: rgb(72, 72, 72);
  3805. width: 98%;
  3806. height: 45px;
  3807. color: #fff;
  3808. line-height: 45px;
  3809. padding-left: 20px;
  3810. }
  3811. .textBox {
  3812. font-size: 20px;
  3813. margin: 15px 0px 20px 30px;
  3814. width: 90%;
  3815. padding: 30px 0 0 50px;
  3816. }
  3817. .textContent {
  3818. font-size: 18px;
  3819. padding: 40px 0px 0px;
  3820. height: 300px;
  3821. width: 85%;
  3822. overflow: auto;
  3823. line-height: 30px;
  3824. }
  3825. .answerBg {
  3826. background: url(/static/img/answerBg.93bcd2c.png) no-repeat;
  3827. background-size: 100% 100%;
  3828. width: 100%;
  3829. height: 100%;
  3830. color: #fff;
  3831. text-align: center;
  3832. display: flex;
  3833. flex-direction: column;
  3834. flex-wrap: nowrap;
  3835. align-items: center;
  3836. }
  3837. .answerBg > div:nth-child(1) {
  3838. font-size: 22px;
  3839. padding: 25px 0 10px;
  3840. }
  3841. .answerContent {
  3842. font-size: 18px;
  3843. width: 215px;
  3844. height: 60px;
  3845. overflow-y: auto;
  3846. word-break: break-all;
  3847. text-align: left;
  3848. }
  3849. </style>