addCourse.vue 146 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  7. <div>
  8. <img src="../../assets/icon/first.png" alt />
  9. </div>
  10. <div>填写基本信息</div>
  11. </div>
  12. <div v-else class="firstNo" @click="navSteps(1)">
  13. <div>
  14. <img src="../../assets/icon/firstNo.png" alt />
  15. </div>
  16. <div>填写基本信息</div>
  17. </div>
  18. <div v-show="cid == ''" class="secondNo">
  19. <div v-if="steps == 2" class="newSteps second" @click="navSteps(2)">
  20. <div style="margin: 5px 10px 0 0; width: 2rem">
  21. <img src="../../assets/icon/second.png" alt />
  22. </div>
  23. <div>选择课程框架</div>
  24. </div>
  25. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  26. <div>
  27. <img src="../../assets/icon/secondNo.png" alt />
  28. </div>
  29. <div>选择课程框架</div>
  30. </div>
  31. </div>
  32. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  33. <div>
  34. <img src="../../assets/icon/third.png" alt />
  35. </div>
  36. <div>上传课程内容</div>
  37. </div>
  38. <div v-else class="thirdNo" @click="navSteps(3)">
  39. <div>
  40. <img src="../../assets/icon/thirdNo.png" alt />
  41. </div>
  42. <div>上传课程内容</div>
  43. </div>
  44. <div v-if="steps == 4" class="four">
  45. <div>
  46. <img src="../../assets/icon/four.png" alt />
  47. </div>
  48. <div>上传完成</div>
  49. </div>
  50. <div v-else class="fourNo">
  51. <div>
  52. <img src="../../assets/icon/fourNo.png" alt />
  53. </div>
  54. <div>上传完成</div>
  55. </div>
  56. </div>
  57. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  58. <div style="width: 100%; height: 100%; overflow: auto">
  59. <div class="courseTop">
  60. <div class="stepsNav">
  61. <h3 class="info_title" v-if="steps == 1">课程内容填写</h3>
  62. <h3 class="info_title" v-if="steps == 2">请选择课程框架</h3>
  63. <h3 class="info_title" v-if="steps == 3">课程内容填写</h3>
  64. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  65. <el-breadcrumb
  66. separator-class="el-icon-arrow-right"
  67. style="margin-top: 15px"
  68. >
  69. <el-breadcrumb-item
  70. :to="{ path: '/course?userid=' + userid + '&oid=' + oid }"
  71. >课程管理</el-breadcrumb-item
  72. >
  73. <el-breadcrumb-item
  74. ><span style="color: rgb(15, 126, 255)"
  75. >添加课程</span
  76. ></el-breadcrumb-item
  77. >
  78. </el-breadcrumb>
  79. </div>
  80. <div
  81. v-if="steps == 1 || steps == 2 || steps == 3"
  82. class="stepsWord"
  83. >
  84. {{
  85. steps == 1
  86. ? "第一步"
  87. : steps == 2
  88. ? "第二步"
  89. : steps == 3
  90. ? "第三步"
  91. : ""
  92. }}
  93. </div>
  94. </div>
  95. <div class="rightBox" v-if="this.steps == 1">
  96. <div class="whiteBg">
  97. <div class="right_title">课程基本信息</div>
  98. <div class="basic_box">
  99. <div class="big_box">
  100. <div class="left_first">
  101. <div>
  102. <div>
  103. <div class="bInfo_title" style="margin-bottom: 15px">
  104. <!-- <span style="color: red">*</span> -->
  105. 课程名称
  106. </div>
  107. <div style="display: flex">
  108. <img
  109. src="../../assets/icon/projectName.png"
  110. alt
  111. style="margin-right: 8px"
  112. />
  113. <input
  114. type="text"
  115. placeholder="请输入课程名称"
  116. class="binfo_input"
  117. v-model="courseName"
  118. />
  119. </div>
  120. </div>
  121. <div class="both">
  122. <div class="choose">
  123. <div
  124. class="all_choose"
  125. v-for="(item, index) in CourseType[0]"
  126. :key="index"
  127. >
  128. <span>{{ item.name }}</span>
  129. <el-checkbox-group v-model="courseTypeId">
  130. <el-checkbox
  131. v-for="item1 in CourseTypeJson[item.id]"
  132. :key="item1.id"
  133. :label="item1.id"
  134. >{{ item1.name }}</el-checkbox
  135. >
  136. </el-checkbox-group>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="whiteBg" style="border-radius: 0">
  146. <div class="right_first">
  147. <div class="right_title">上传封面与成员</div>
  148. <div
  149. style="
  150. padding: 0 0 50px 0;
  151. display: flex;
  152. align-items: baseline;
  153. justify-content: flex-start;
  154. width: 95%;
  155. margin: 0 auto;
  156. "
  157. >
  158. <div>
  159. <div class="bInfo_title" style="margin-top: 0 !important">
  160. 课程封面
  161. </div>
  162. <el-upload
  163. :class="{ disUoloadSty: noneBtnImg }"
  164. class="upCss"
  165. action="#"
  166. list-type="picture"
  167. v-loading="uploadLoading1"
  168. :http-request="beforeUpload1"
  169. ref="upload1"
  170. :on-preview="handlePictureCardPreview"
  171. :on-remove="handle_remove1"
  172. :show-file-list="true"
  173. :file-list="cover"
  174. accept="image/*"
  175. :limit="1"
  176. :on-exceed="onExceed"
  177. >
  178. <i class="el-icon-plus"></i>
  179. </el-upload>
  180. </div>
  181. <div
  182. style="
  183. display: flex;
  184. flex-flow: row nowrap;
  185. flex-direction: row;
  186. align-items: baseline;
  187. margin: 0 30px;
  188. "
  189. >
  190. <!-- <div style="margin: 0 80px">
  191. <div class="bInfo_title">
  192. 选择项目成员
  193. </div>
  194. <div
  195. class="addPeople"
  196. @click="addPP"
  197. v-if="this.checkboxList.length == 0"
  198. >添加成员</div>
  199. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  200. </div> -->
  201. <div style="margin: 0 30px 0 0">
  202. <div class="bInfo_title">添加权限</div>
  203. <div class="addPeople" @click="dialogVisibleClass = true">
  204. 添加权限
  205. </div>
  206. </div>
  207. <!-- <div style="flex: 0.5 1 0%; margin: 0">
  208. <div class="bInfo_title">协同编辑</div>
  209. <div
  210. class="addPeople"
  211. @click="isNoFinsh"
  212. style="background: #6b92c9"
  213. >
  214. 添加协同成员
  215. </div>
  216. </div> -->
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  222. <div class="right_title">课程简要描述</div>
  223. <div style="width: 95%; margin: 15px auto">
  224. <div style="width: 55%">
  225. <textarea
  226. rows="8"
  227. class="binfo_input"
  228. cols
  229. v-model="courseText"
  230. ></textarea>
  231. </div>
  232. </div>
  233. <div style="width: 95%; margin: 15px auto">
  234. <el-switch
  235. v-model="isTeacherSee"
  236. active-text="允许给其他老师查看"
  237. style="padding-bottom: 30px"
  238. ></el-switch>
  239. </div>
  240. </div>
  241. </div>
  242. <div class="rightBox" v-if="this.steps == 2">
  243. <div
  244. class="basic_box"
  245. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  246. >
  247. <!-- <div
  248. style="
  249. color: #b8b8b8;
  250. background: #fff;
  251. width: 26%;
  252. height: 40px;
  253. border-radius: 15px;
  254. padding-left: 20px;
  255. line-height: 40px;
  256. font-size: 17px;
  257. box-shadow: 0px 1px 2px 2px #e0e0e0;
  258. "
  259. > -->
  260. <div
  261. class="right_title"
  262. style="border: none; margin: 0; padding: 0"
  263. >
  264. 请选择合适的课程模板
  265. </div>
  266. <div class="wordbox">
  267. <div
  268. class="wordTeacher"
  269. v-for="(aa, indexF) in templateArray"
  270. :key="indexF"
  271. @click="checkTemplate(aa)"
  272. >
  273. <div class="wordPic">
  274. <img src="../../assets/icon/wordMub.png" alt />
  275. </div>
  276. <div
  277. style="
  278. margin-top: 10px;
  279. line-height: 19px;
  280. overflow: hidden;
  281. text-overflow: ellipsis;
  282. white-space: nowrap;
  283. padding: 0 20px;
  284. "
  285. >
  286. {{ aa.title }}
  287. </div>
  288. </div>
  289. <div class="wordTeacher" @click="checkTemplate2()">
  290. <div class="wordPic">
  291. <img src="../../assets/icon/wordMub.png" alt />
  292. </div>
  293. <div
  294. style="
  295. margin-top: 10px;
  296. line-height: 19px;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. white-space: nowrap;
  300. padding: 0 20px;
  301. "
  302. >
  303. 新建课程
  304. </div>
  305. </div>
  306. <div class="wordTeacher" @click="checkTemplate1()">
  307. <div class="wordPic">
  308. <img src="../../assets/icon/wordMub.png" alt />
  309. </div>
  310. <div
  311. style="
  312. margin-top: 10px;
  313. line-height: 19px;
  314. overflow: hidden;
  315. text-overflow: ellipsis;
  316. white-space: nowrap;
  317. padding: 0 20px;
  318. "
  319. >
  320. 我的课程
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. <div class="rightBox" v-if="this.steps == 3">
  327. <div class="basic_box" style="margin: 0px 0 0 30px">
  328. <div
  329. style="display: flex; flex-direction: row; align-items: center"
  330. >
  331. <div class="cru_selectBox">
  332. <div
  333. v-for="(item, index) in unitJson"
  334. :key="index"
  335. class="cru_select"
  336. :class="unitIndex == index ? 'cru_selected' : ''"
  337. @click="unitSet(index)"
  338. >
  339. 第{{ index + 1 }}阶段
  340. </div>
  341. <img
  342. src="../../assets/line.png"
  343. class="cru_line"
  344. :style="{
  345. left: offsetLetfPx + 'px',
  346. }"
  347. />
  348. </div>
  349. <div class="addStageImg" @click="addunit()">
  350. <img src="../../assets/icon/add.png" alt />
  351. </div>
  352. </div>
  353. <div
  354. style="margin: 0 0 40px 0"
  355. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  356. :key="index"
  357. >
  358. <div>
  359. <div class="chapter_contentbox">
  360. <div>第{{ unitIndex + 1 }}阶段</div>
  361. <div>
  362. <input
  363. type="text"
  364. placeholder="阶段标题"
  365. class="binfo_input"
  366. v-model="unitJson[unitIndex].dyName"
  367. />
  368. </div>
  369. <div
  370. v-if="unitJson.length > 1"
  371. @click="deleteUnit(unitIndex)"
  372. ></div>
  373. </div>
  374. </div>
  375. <div
  376. style="
  377. margin: 50px 0px 10px;
  378. font-size: 1.5em;
  379. font-weight: 700;
  380. color: #0f7eff;
  381. "
  382. >
  383. 添加任务
  384. </div>
  385. <div
  386. class="taskBorder"
  387. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  388. :key="itemTaskIndex"
  389. >
  390. <div>
  391. <div>
  392. <div
  393. class="chapter_contentbox"
  394. style="
  395. flex-direction: row;
  396. justify-content: flex-start;
  397. align-items: center;
  398. "
  399. >
  400. <div style="">任务名称</div>
  401. <div>
  402. <input
  403. type="text"
  404. placeholder="输入任务名称"
  405. class="binfo_input"
  406. style="border-radius: 4px"
  407. v-model="
  408. unitJson[unitIndex].chapterInfo[0].taskJson[
  409. itemTaskIndex
  410. ].task
  411. "
  412. />
  413. </div>
  414. <div
  415. class="remove"
  416. v-if="item.taskJson.length > 1"
  417. @click="deleteTask(itemTaskIndex)"
  418. style="position: absolute; right: 55px"
  419. ></div>
  420. </div>
  421. <div
  422. style="
  423. display: flex;
  424. margin: 0 0 20px 0;
  425. flex-direction: row;
  426. justify-content: flex-start;
  427. align-items: center;
  428. width: 70.5% !important;
  429. padding-top: 30px;
  430. "
  431. >
  432. <div class="lineTitle">任务描述</div>
  433. <div class="line"></div>
  434. </div>
  435. <div>
  436. <editor-bar
  437. style="width: 70.5% !important; margin: 0"
  438. placeholder="请输入任务描述"
  439. v-model="
  440. unitJson[unitIndex].chapterInfo[0].taskJson[
  441. itemTaskIndex
  442. ].taskDetail
  443. "
  444. @change="change"
  445. ></editor-bar>
  446. <!-- <textarea
  447. rows="6"
  448. class="binfo_input"
  449. placeholder="请输入任务描述"
  450. cols
  451. style="width: 70.5% !important; height: 120px"
  452. v-model="
  453. unitJson[unitIndex].chapterInfo[0].taskJson[
  454. itemTaskIndex
  455. ].taskDetail
  456. "
  457. ></textarea> -->
  458. </div>
  459. </div>
  460. </div>
  461. <div
  462. class="basic_box"
  463. style="
  464. margin: 0;
  465. min-height: 0;
  466. width: 66% !important;
  467. paddint-top: 10px !important;
  468. "
  469. >
  470. <div
  471. style="
  472. display: flex;
  473. margin: 0 0 20px 0;
  474. flex-direction: row;
  475. justify-content: flex-start;
  476. align-items: center;
  477. "
  478. >
  479. <div class="lineTitle">学习内容</div>
  480. <div class="line"></div>
  481. </div>
  482. <div>
  483. <div
  484. class="add_chapters_box"
  485. v-if="
  486. itemTask.chapterData &&
  487. itemTask.chapterData.length == 0
  488. "
  489. style="height: 185px"
  490. ></div>
  491. <div
  492. v-else
  493. class="add_chapters_box"
  494. style="display: flex; flex-direction: column"
  495. >
  496. <div
  497. class="chapter_upload"
  498. v-for="(item1, index1) in itemTask.chapterData"
  499. :key="item1.id"
  500. @click="
  501. getChapterData(
  502. $event,
  503. unitIndex,
  504. index,
  505. index1,
  506. item1.type
  507. )
  508. "
  509. >
  510. <div
  511. class="chapter_upload_t"
  512. style="width: 100%"
  513. ></div>
  514. <div
  515. class="chapter_upload_o"
  516. style="
  517. position: relative;
  518. display: flex;
  519. align-items: center;
  520. "
  521. >
  522. <div
  523. class="chapter_upload_l"
  524. style="padding: 1px 0 0 10px"
  525. >
  526. <div
  527. v-if="item1.type == 2"
  528. class="chapter_upload_l_i1"
  529. ></div>
  530. <div
  531. v-if="
  532. item1.type == 3 ||
  533. item1.type == 6 ||
  534. item1.type == 7
  535. "
  536. class="chapter_upload_l_i5"
  537. style="margin-left: 1px"
  538. ></div>
  539. <div
  540. v-if="item1.type == 8"
  541. class="chapter_upload_l_i8"
  542. style="margin-left: 1px"
  543. ></div>
  544. </div>
  545. <div
  546. class="chapter_upload_ic"
  547. style="
  548. cursor: pointer;
  549. position: absolute;
  550. width: 45px;
  551. right: 0;
  552. top: 0;
  553. "
  554. >
  555. <div class="chapter_upload_ic_l"></div>
  556. <div
  557. class="chapter_upload_ic_r"
  558. style="position: absolute"
  559. @click.stop="
  560. deleteChapterData(
  561. $event,
  562. unitIndex,
  563. index,
  564. index1,
  565. itemTaskIndex
  566. )
  567. "
  568. >
  569. <div></div>
  570. </div>
  571. </div>
  572. <div class="chapter_upload_n">
  573. <input
  574. v-if="
  575. item1.type == 2 ||
  576. item1.type == 3 ||
  577. item1.type == 7
  578. "
  579. :placeholder="item1.name"
  580. @change="
  581. updataVideoT(
  582. $event,
  583. unitIndex,
  584. chapterIndex,
  585. index1
  586. )
  587. "
  588. style="
  589. border: none;
  590. outline: none;
  591. width: 55%;
  592. minwidth: 215px;
  593. z-index: 99;
  594. font-size: 14px;
  595. "
  596. />
  597. <input
  598. :placeholder="item1.name"
  599. v-if="item1.type == 6"
  600. style="
  601. border: none;
  602. outline: none;
  603. width: 55%;
  604. minwidth: 215px;
  605. "
  606. readonly="true"
  607. @click="selectAttText(itemTaskIndex, index1)"
  608. />
  609. <input
  610. :placeholder="item1.name"
  611. v-if="item1.type == 8"
  612. style="
  613. border: none;
  614. outline: none;
  615. width: 55%;
  616. minwidth: 215px;
  617. "
  618. readonly="true"
  619. @click="selectLine(itemTaskIndex, index1)"
  620. />
  621. <div
  622. class="chapter_upload_ud"
  623. style="z-index: 99"
  624. >
  625. <div
  626. class="chapter_upload_up"
  627. @click="
  628. upCd($event, unitIndex, index, index1)
  629. "
  630. ></div>
  631. <div
  632. class="chapter_upload_down"
  633. @click="
  634. downCd($event, unitIndex, index, index1)
  635. "
  636. ></div>
  637. </div>
  638. </div>
  639. </div>
  640. </div>
  641. </div>
  642. </div>
  643. <div class="add_info_box">
  644. <button class="info_btn" @click="addImg($event)">
  645. 添加教学视频
  646. <input
  647. type="file"
  648. accept="video/mp4, video/quicktime, video/x-msvideo"
  649. style="display: none"
  650. v-if="inputShow"
  651. @change="
  652. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  653. "
  654. />
  655. </button>
  656. <button class="info_btn" @click="addImg($event)">
  657. 添加教学附件
  658. <input
  659. type="file"
  660. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  661. style="display: none"
  662. v-if="inputShow"
  663. @change="
  664. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  665. "
  666. />
  667. </button>
  668. <button
  669. class="info_btn"
  670. @click="addAttText(itemTaskIndex)"
  671. >
  672. 添加图文
  673. </button>
  674. <button class="info_btn" @click="openLine(itemTaskIndex)">
  675. 添加链接
  676. </button>
  677. </div>
  678. </div>
  679. <div
  680. style="
  681. flex-direction: row;
  682. justify-content: flex-start;
  683. align-items: center;
  684. padding: 0 0 0 30px;
  685. paddint-top: 10px !important;
  686. "
  687. >
  688. <div
  689. style="
  690. display: flex;
  691. flex-direction: row;
  692. align-items: center;
  693. margin-bottom: 20px;
  694. "
  695. >
  696. <div class="lineTitle">练习内容</div>
  697. <div class="line" style="width: 90%"></div>
  698. </div>
  699. </div>
  700. <div class="toolChoose" style="padding: 0 0 0 30px">
  701. <div class="tools">
  702. <div
  703. class="leftTools"
  704. style="
  705. width: 95%;
  706. padding: 0 0 15px 0;
  707. border-bottom: 1px solid #efefef;
  708. margin-bottom: 15px;
  709. "
  710. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  711. :key="toolIndex"
  712. >
  713. <div>
  714. <textarea
  715. rows="3"
  716. type="text"
  717. placeholder="添加工具描述"
  718. class="binfo_input"
  719. style="margin: 0 0 20px 0; width: 71.5% !important"
  720. v-model="itemTool.toolDetail"
  721. ></textarea>
  722. </div>
  723. <div
  724. style="
  725. display: flex;
  726. flex-direction: row;
  727. align-items: baseline;
  728. flex-wrap: nowrap;
  729. justify-content: flex-start;
  730. position: relative;
  731. "
  732. >
  733. <div style="margin-right: 20px; font-weight: bold">
  734. 工具 {{ toolIndex + 1 }} :
  735. </div>
  736. <div class="chooseWho">
  737. <div
  738. :class="
  739. itemTool.toolType == 0 ? 'isChooseActive' : ''
  740. "
  741. @click="itemTool.toolType = 0"
  742. >
  743. 展示类
  744. </div>
  745. <div
  746. :class="
  747. itemTool.toolType == 1 ? 'isChooseActive' : ''
  748. "
  749. @click="itemTool.toolType = 1"
  750. >
  751. 思维类
  752. </div>
  753. <div
  754. :class="
  755. itemTool.toolType == 2 ? 'isChooseActive' : ''
  756. "
  757. @click="itemTool.toolType = 2"
  758. >
  759. 评价类
  760. </div>
  761. <div
  762. :class="
  763. itemTool.toolType == 3 ? 'isChooseActive' : ''
  764. "
  765. @click="itemTool.toolType = 3"
  766. >
  767. 创作类
  768. </div>
  769. </div>
  770. <div
  771. class="remove"
  772. @click="deleteTool(itemTaskIndex, toolIndex)"
  773. v-if="itemTask.toolChoose.length > 1"
  774. style="position: absolute; right: 55px"
  775. ></div>
  776. </div>
  777. <div style="min-height: 163px">
  778. <div class="toolSort" v-if="itemTool.toolType == 0">
  779. <!-- <div class="tool">
  780. <div
  781. class="whiteBIcon"
  782. @click="addTools(8, itemTaskIndex, toolIndex)"
  783. >
  784. <img src="../../assets/icon/secondToolList/library.png" alt />
  785. <div style="margin: 5px 0">素材库</div>
  786. </div>
  787. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  788. <img
  789. src="../../assets/icon/checkNo.png"
  790. alt
  791. v-if="itemTool.tool.indexOf(8) == -1"
  792. />
  793. <img src="../../assets/icon/checkedIs.png" alt v-else />
  794. </div>
  795. </div>-->
  796. <div class="tool">
  797. <div
  798. class="whiteBIcon"
  799. @click="addTools(17, itemTaskIndex, toolIndex)"
  800. >
  801. <img
  802. src="../../assets/icon/secondToolList/library.png"
  803. alt
  804. />
  805. <div style="margin: 5px 0">学习资料</div>
  806. </div>
  807. <div
  808. class="check"
  809. @click="addTools(17, itemTaskIndex, toolIndex)"
  810. >
  811. <img
  812. src="../../assets/icon/checkNo.png"
  813. alt
  814. v-if="itemTool.tool.indexOf(17) == -1"
  815. />
  816. <img
  817. src="../../assets/icon/checkedIs.png"
  818. alt
  819. v-else
  820. />
  821. </div>
  822. </div>
  823. <div class="tool">
  824. <div
  825. class="whiteBIcon"
  826. @click="addTools(10, itemTaskIndex, toolIndex)"
  827. >
  828. <img
  829. src="../../assets/icon/thirdToolList/time.png"
  830. alt
  831. />
  832. <div style="margin: 5px 0">倒计时</div>
  833. </div>
  834. <div
  835. class="check"
  836. @click="addTools(10, itemTaskIndex, toolIndex)"
  837. >
  838. <img
  839. src="../../assets/icon/checkNo.png"
  840. alt
  841. v-if="itemTool.tool.indexOf(10) == -1"
  842. />
  843. <img
  844. src="../../assets/icon/checkedIs.png"
  845. alt
  846. v-else
  847. />
  848. </div>
  849. </div>
  850. </div>
  851. <div class="toolSort" v-if="itemTool.toolType == 1">
  852. <div class="tool">
  853. <div
  854. class="whiteBIcon"
  855. @click="addTools(7, itemTaskIndex, toolIndex)"
  856. >
  857. <img
  858. src="../../assets/icon/secondToolList/mindNetwork.png"
  859. alt
  860. />
  861. <div style="margin: 5px 0">思维网格</div>
  862. </div>
  863. <div
  864. class="check"
  865. @click="addTools(7, itemTaskIndex, toolIndex)"
  866. >
  867. <img
  868. src="../../assets/icon/checkNo.png"
  869. alt
  870. v-if="itemTool.tool.indexOf(7) == -1"
  871. />
  872. <img
  873. src="../../assets/icon/checkedIs.png"
  874. alt
  875. v-else
  876. />
  877. </div>
  878. </div>
  879. <div class="tool">
  880. <div
  881. class="whiteBIcon"
  882. @click="addTools(1, itemTaskIndex, toolIndex)"
  883. >
  884. <img
  885. src="../../assets/icon/secondToolList/whiteBoard.png"
  886. alt
  887. />
  888. <div style="margin: 5px 0">电子白板</div>
  889. </div>
  890. <div
  891. class="check"
  892. @click="addTools(1, itemTaskIndex, toolIndex)"
  893. >
  894. <img
  895. src="../../assets/icon/checkNo.png"
  896. alt
  897. v-if="itemTool.tool.indexOf(1) == -1"
  898. />
  899. <img
  900. src="../../assets/icon/checkedIs.png"
  901. alt
  902. v-else
  903. />
  904. </div>
  905. </div>
  906. <div class="tool">
  907. <div
  908. class="whiteBIcon"
  909. @click="addTools(2, itemTaskIndex, toolIndex)"
  910. >
  911. <img
  912. src="../../assets/icon/secondToolList/note.png"
  913. alt
  914. />
  915. <div style="margin: 5px 0">便签</div>
  916. </div>
  917. <div
  918. class="check"
  919. @click="addTools(2, itemTaskIndex, toolIndex)"
  920. >
  921. <img
  922. src="../../assets/icon/checkNo.png"
  923. alt
  924. v-if="itemTool.tool.indexOf(2) == -1"
  925. />
  926. <img
  927. src="../../assets/icon/checkedIs.png"
  928. alt
  929. v-else
  930. />
  931. </div>
  932. </div>
  933. <div class="tool">
  934. <div
  935. class="whiteBIcon"
  936. @click="addTools(6, itemTaskIndex, toolIndex)"
  937. >
  938. <img
  939. src="../../assets/icon/secondToolList/doc.png"
  940. alt
  941. />
  942. <div style="margin: 5px 0">协同文档</div>
  943. </div>
  944. <div
  945. class="check"
  946. @click="addTools(6, itemTaskIndex, toolIndex)"
  947. >
  948. <img
  949. src="../../assets/icon/checkNo.png"
  950. alt
  951. v-if="itemTool.tool.indexOf(6) == -1"
  952. />
  953. <img
  954. src="../../assets/icon/checkedIs.png"
  955. alt
  956. v-else
  957. />
  958. </div>
  959. </div>
  960. <div class="tool">
  961. <div
  962. class="whiteBIcon"
  963. @click="addTools(3, itemTaskIndex, toolIndex)"
  964. >
  965. <img
  966. src="../../assets/icon/secondToolList/mindMapping.png"
  967. alt
  968. />
  969. <div style="margin: 5px 0">思维导图</div>
  970. </div>
  971. <div
  972. class="check"
  973. @click="addTools(3, itemTaskIndex, toolIndex)"
  974. >
  975. <img
  976. src="../../assets/icon/checkNo.png"
  977. alt
  978. v-if="itemTool.tool.indexOf(3) == -1"
  979. />
  980. <img
  981. src="../../assets/icon/checkedIs.png"
  982. alt
  983. v-else
  984. />
  985. </div>
  986. </div>
  987. </div>
  988. <div class="toolSort" v-if="itemTool.toolType == 2">
  989. <!-- <div class="tool">
  990. <div
  991. class="whiteBIcon"
  992. @click="addTools(5, itemTaskIndex, toolIndex)"
  993. >
  994. <img
  995. src="../../assets/icon/thirdToolList/score.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">量规评分</div>
  999. </div>
  1000. <div
  1001. class="check"
  1002. @click="addTools(5, itemTaskIndex, toolIndex)"
  1003. >
  1004. <img
  1005. src="../../assets/icon/checkNo.png"
  1006. alt
  1007. v-if="itemTool.tool.indexOf(5) == -1"
  1008. />
  1009. <img
  1010. src="../../assets/icon/checkedIs.png"
  1011. alt
  1012. v-else
  1013. />
  1014. </div>
  1015. </div>-->
  1016. <div class="tool">
  1017. <div
  1018. class="whiteBIcon"
  1019. @click="openTools(itemTaskIndex, 4, toolIndex)"
  1020. >
  1021. <img
  1022. src="../../assets/icon/thirdToolList/ask.png"
  1023. alt
  1024. />
  1025. <div style="margin: 5px 0">问卷调查</div>
  1026. </div>
  1027. <div
  1028. class="check"
  1029. @click="addTools(4, itemTaskIndex, toolIndex)"
  1030. >
  1031. <img
  1032. src="../../assets/icon/checkNo.png"
  1033. alt
  1034. v-if="itemTool.tool.indexOf(4) == -1"
  1035. />
  1036. <img
  1037. src="../../assets/icon/checkedIs.png"
  1038. alt
  1039. v-else
  1040. />
  1041. </div>
  1042. </div>
  1043. <div class="tool">
  1044. <div
  1045. class="whiteBIcon"
  1046. @click="openTools(itemTaskIndex, 15, toolIndex)"
  1047. >
  1048. <img
  1049. src="../../assets/icon/thirdToolList/answer.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">问答工具</div>
  1053. </div>
  1054. <div
  1055. class="check"
  1056. @click="addTools(15, itemTaskIndex, toolIndex)"
  1057. >
  1058. <img
  1059. src="../../assets/icon/checkNo.png"
  1060. alt
  1061. v-if="itemTool.tool.indexOf(15) == -1"
  1062. />
  1063. <img
  1064. src="../../assets/icon/checkedIs.png"
  1065. alt
  1066. v-else
  1067. />
  1068. </div>
  1069. </div>
  1070. <div class="tool">
  1071. <div
  1072. class="whiteBIcon"
  1073. @click="addTools(16, itemTaskIndex, toolIndex)"
  1074. >
  1075. <img
  1076. src="../../assets/icon/thirdToolList/work.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">作业提交</div>
  1080. </div>
  1081. <div
  1082. class="check"
  1083. @click="addTools(16, itemTaskIndex, toolIndex)"
  1084. >
  1085. <img
  1086. src="../../assets/icon/checkNo.png"
  1087. alt
  1088. v-if="itemTool.tool.indexOf(16) == -1"
  1089. />
  1090. <img
  1091. src="../../assets/icon/checkedIs.png"
  1092. alt
  1093. v-else
  1094. />
  1095. </div>
  1096. </div>
  1097. </div>
  1098. <div class="toolSort" v-if="itemTool.toolType == 3">
  1099. <div class="tool">
  1100. <div
  1101. class="whiteBIcon"
  1102. @click="addTools(18, itemTaskIndex, toolIndex)"
  1103. >
  1104. <img
  1105. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">训练平台</div>
  1109. </div>
  1110. <div
  1111. class="check"
  1112. @click="addTools(18, itemTaskIndex, toolIndex)"
  1113. >
  1114. <img
  1115. src="../../assets/icon/checkNo.png"
  1116. alt
  1117. v-if="itemTool.tool.indexOf(18) == -1"
  1118. />
  1119. <img
  1120. src="../../assets/icon/checkedIs.png"
  1121. alt
  1122. v-else
  1123. />
  1124. </div>
  1125. </div>
  1126. <div class="tool">
  1127. <div
  1128. class="whiteBIcon"
  1129. @click="addTools(21, itemTaskIndex, toolIndex)"
  1130. >
  1131. <img
  1132. src="../../assets/icon/fourthToolList/program.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">编程平台</div>
  1136. </div>
  1137. <div
  1138. class="check"
  1139. @click="addTools(21, itemTaskIndex, toolIndex)"
  1140. >
  1141. <img
  1142. src="../../assets/icon/checkNo.png"
  1143. alt
  1144. v-if="itemTool.tool.indexOf(21) == -1"
  1145. />
  1146. <img
  1147. src="../../assets/icon/checkedIs.png"
  1148. alt
  1149. v-else
  1150. />
  1151. </div>
  1152. </div>
  1153. <div class="tool">
  1154. <div
  1155. class="whiteBIcon"
  1156. @click="addTools(22, itemTaskIndex, toolIndex)"
  1157. >
  1158. <img
  1159. src="../../assets/icon/fourthToolList/AIprogram2.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">AI体验</div>
  1163. </div>
  1164. <div
  1165. class="check"
  1166. @click="addTools(22, itemTaskIndex, toolIndex)"
  1167. >
  1168. <img
  1169. src="../../assets/icon/checkNo.png"
  1170. alt
  1171. v-if="itemTool.tool.indexOf(22) == -1"
  1172. />
  1173. <img
  1174. src="../../assets/icon/checkedIs.png"
  1175. alt
  1176. v-else
  1177. />
  1178. </div>
  1179. </div>
  1180. <div class="tool">
  1181. <div
  1182. class="whiteBIcon"
  1183. @click="addTools(23, itemTaskIndex, toolIndex)"
  1184. >
  1185. <img
  1186. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">Python</div>
  1190. </div>
  1191. <div
  1192. class="check"
  1193. @click="addTools(23, itemTaskIndex, toolIndex)"
  1194. >
  1195. <img
  1196. src="../../assets/icon/checkNo.png"
  1197. alt
  1198. v-if="itemTool.tool.indexOf(23) == -1"
  1199. />
  1200. <img
  1201. src="../../assets/icon/checkedIs.png"
  1202. alt
  1203. v-else
  1204. />
  1205. </div>
  1206. </div>
  1207. <div class="tool">
  1208. <div
  1209. class="whiteBIcon"
  1210. @click="addTools(24, itemTaskIndex, toolIndex)"
  1211. >
  1212. <img
  1213. src="../../assets/icon/fourthToolList/program.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">AI平台</div>
  1217. </div>
  1218. <div
  1219. class="check"
  1220. @click="addTools(24, itemTaskIndex, toolIndex)"
  1221. >
  1222. <img
  1223. src="../../assets/icon/checkNo.png"
  1224. alt
  1225. v-if="itemTool.tool.indexOf(24) == -1"
  1226. />
  1227. <img
  1228. src="../../assets/icon/checkedIs.png"
  1229. alt
  1230. v-else
  1231. />
  1232. </div>
  1233. </div>
  1234. </div>
  1235. </div>
  1236. </div>
  1237. <div
  1238. class="addToolFun"
  1239. @click="addToolFun(itemTaskIndex)"
  1240. >
  1241. <div class="addToolImg">
  1242. <img src="../../assets/icon/add.png" alt />
  1243. </div>
  1244. <div>添加工具</div>
  1245. </div>
  1246. </div>
  1247. </div>
  1248. <div class="elist_css">
  1249. <div class="elist_title">
  1250. <div
  1251. style="
  1252. display: flex;
  1253. flex-direction: row;
  1254. align-items: center;
  1255. margin-bottom: 20px;
  1256. "
  1257. >
  1258. <div class="lineTitle">评价设置</div>
  1259. <div class="line" style="width: 90%"></div>
  1260. </div>
  1261. </div>
  1262. <div
  1263. v-if="itemTask.eList && itemTask.eList.length"
  1264. class="elist_input"
  1265. >
  1266. <div
  1267. v-for="(eItem, eIndex) in itemTask.eList"
  1268. :key="eIndex"
  1269. class="elist_input_box"
  1270. >
  1271. <span>评价名称:</span>
  1272. <input
  1273. type="input"
  1274. v-model="itemTask.eList[eIndex].value"
  1275. placeholder="填写评价名称"
  1276. />
  1277. <span>评星等级:</span>
  1278. <el-rate
  1279. v-model="itemTask.eList[eIndex].score"
  1280. @change="setEListStar()"
  1281. disabled
  1282. ></el-rate>
  1283. <div
  1284. class="remove"
  1285. @click="deletEList(unitIndex, itemTaskIndex, eIndex)"
  1286. ></div>
  1287. <div class="elist_inptu_text">
  1288. <span>评价描述:</span>
  1289. <input
  1290. type="input"
  1291. v-model="itemTask.eList[eIndex].detail"
  1292. placeholder="填写评价描述"
  1293. />
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <div
  1298. class="addToolFun"
  1299. @click="addEList(unitIndex, itemTaskIndex)"
  1300. >
  1301. <div class="addToolImg">
  1302. <img src="../../assets/icon/add.png" alt />
  1303. </div>
  1304. <div>添加</div>
  1305. </div>
  1306. </div>
  1307. <div class="funBlock" style="padding: 0">
  1308. <div class="fold">
  1309. <div @click="fold(itemTaskIndex, $event, 1)">折叠</div>
  1310. <div class="arrow">
  1311. <img src="../../assets/icon/fold.png" alt />
  1312. </div>
  1313. </div>
  1314. <div class="fold">
  1315. <div @click="fold(itemTaskIndex, $event, 0)">展开</div>
  1316. <div class="arrow">
  1317. <img src="../../assets/icon/expand.png" alt />
  1318. </div>
  1319. </div>
  1320. </div>
  1321. </div>
  1322. <div class="addTaskBorder" @click="addTaskBorder">
  1323. <div>
  1324. <img src="../../assets/icon/addHw.png" alt />
  1325. <span>添加任务</span>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. <div
  1332. style="
  1333. width: calc(100% - 20px);
  1334. background: rgb(255, 255, 255);
  1335. border-radius: 10px;
  1336. min-height: 550px;
  1337. min-width: 800px;
  1338. "
  1339. v-if="this.steps == 4"
  1340. >
  1341. <div class="basic_box_success">
  1342. <div class="right_img">
  1343. <img src="../../assets/icon/right.png" alt />
  1344. </div>
  1345. <div style="font-weight: bold">成功</div>
  1346. <!-- <div>您的课程编号</div>
  1347. <div class="number">{{ number }}</div> -->
  1348. <div class="success_button">
  1349. <div class="look_course" @click="isNoFinsh">
  1350. 邀请老师协同编辑
  1351. </div>
  1352. <div class="attend_others" @click="goCourse">预览课程</div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. <div class="info_btnBox">
  1357. <button
  1358. class="info_btn"
  1359. v-if="steps == 1"
  1360. @click="goTo('/course?userid=' + userid + '&oid=' + oid)"
  1361. >
  1362. 返回课程
  1363. </button>
  1364. <button
  1365. class="info_btn"
  1366. v-if="steps > 1 && steps != 5"
  1367. @click="lastSteps"
  1368. >
  1369. {{ steps == 4 ? "返回首页" : "上一步" }}
  1370. </button>
  1371. <button class="info_btn" v-if="steps < 5" @click="nextSteps">
  1372. {{ steps == 3 ? "确认上传" : "下一步" }}
  1373. </button>
  1374. </div>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. <el-dialog
  1379. title="提示"
  1380. :visible.sync="dialogVisible"
  1381. :append-to-body="true"
  1382. width="25%"
  1383. :before-close="handleClose"
  1384. class="dialog_diy2 customWidth"
  1385. >
  1386. <div>请复制该链接邀请协同编辑</div>
  1387. <div>http://www.boomyon.com/index-zhang.com</div>
  1388. <span slot="footer" class="dialog-footer">
  1389. <el-button type="primary">复制链接分享</el-button>
  1390. <el-button @click="dialogVisible = false">取消</el-button>
  1391. </span>
  1392. </el-dialog>
  1393. <el-dialog
  1394. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  1395. :visible.sync="dialogVisible1"
  1396. :append-to-body="true"
  1397. width="25%"
  1398. :before-close="handleClose"
  1399. class="dialog_diy2 customWidth"
  1400. >
  1401. <el-form>
  1402. <el-form-item label="文档标题">
  1403. <el-input
  1404. v-model="tTitle"
  1405. auto-complete="off"
  1406. placeholder="请输入文档标题名..."
  1407. ></el-input>
  1408. </el-form-item>
  1409. <div>文档简介</div>
  1410. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1411. </el-form>
  1412. <span slot="footer" class="dialog-footer">
  1413. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1414. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  1415. >添加</el-button
  1416. >
  1417. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1418. </span>
  1419. </el-dialog>
  1420. <el-dialog
  1421. title="添加文档"
  1422. :visible.sync="dialogVisible2"
  1423. :append-to-body="true"
  1424. width="500px"
  1425. :before-close="handleClose"
  1426. class="dialog_diy"
  1427. >
  1428. <el-form>
  1429. <el-form-item label="文档标题">
  1430. <el-input
  1431. v-model="templateC.title"
  1432. auto-complete="off"
  1433. placeholder="请输入文档标题名..."
  1434. ></el-input>
  1435. </el-form-item>
  1436. <div>文档内容</div>
  1437. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1438. </el-form>
  1439. <span slot="footer" class="dialog-footer">
  1440. <el-button @click="clearChoose">取 消</el-button>
  1441. <el-button type="primary" @click="wordNext()">确定</el-button>
  1442. </span>
  1443. </el-dialog>
  1444. <el-dialog
  1445. title="添加富文本"
  1446. :visible.sync="dialogVisible6"
  1447. :append-to-body="true"
  1448. width="500px"
  1449. :before-close="handleClose"
  1450. class="dialog_diy"
  1451. >
  1452. <el-form>
  1453. <el-form-item label="文本标题">
  1454. <el-input
  1455. v-model="AttText.title"
  1456. auto-complete="off"
  1457. placeholder="请输入文本标题..."
  1458. ></el-input>
  1459. </el-form-item>
  1460. <div>富文本内容</div>
  1461. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  1462. </el-form>
  1463. <span slot="footer" class="dialog-footer">
  1464. <el-button @click="clearAttText">取 消</el-button>
  1465. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1466. </span>
  1467. </el-dialog>
  1468. <el-dialog
  1469. title="添加链接"
  1470. :visible.sync="dialogVisible7"
  1471. :append-to-body="true"
  1472. width="500px"
  1473. :before-close="handleClose"
  1474. class="dialog_diy lineCss"
  1475. >
  1476. <el-form>
  1477. <el-form-item label="链接" :label-width="formLabelWidth">
  1478. <span>
  1479. <el-input
  1480. placeholder="请输入链接"
  1481. clearable
  1482. v-model="line"
  1483. class="add_input"
  1484. ></el-input>
  1485. </span>
  1486. </el-form-item>
  1487. </el-form>
  1488. <span slot="footer" class="dialog-footer">
  1489. <el-button @click="clearLine">取 消</el-button>
  1490. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1491. </span>
  1492. </el-dialog>
  1493. <el-dialog
  1494. title="添加课程成员"
  1495. :visible.sync="dialogVisible3"
  1496. :append-to-body="true"
  1497. width="25%"
  1498. height="80%"
  1499. :before-close="handleClose"
  1500. class="addNewPP customWidth"
  1501. >
  1502. <div class="people">
  1503. <div class="people_top">
  1504. <div class="people_nav">选择成员</div>
  1505. <div class="people_top_right">
  1506. <div class="people_search">
  1507. <el-input
  1508. placeholder="搜索成员"
  1509. v-model="searchPeople"
  1510. ></el-input>
  1511. <div class="search_img" @click="searchStudent">
  1512. <img src="../../assets/icon/search.png" alt />
  1513. </div>
  1514. </div>
  1515. </div>
  1516. </div>
  1517. <el-checkbox-group v-model="checkboxList" class="people_name">
  1518. <el-checkbox
  1519. v-for="item in studentJuri"
  1520. :key="item.userid"
  1521. :label="item.userid"
  1522. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  1523. >
  1524. </el-checkbox-group>
  1525. </div>
  1526. <span slot="footer" class="dialog-footer">
  1527. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1528. <el-button type="primary" @click="isAddPP">确定</el-button>
  1529. </span>
  1530. </el-dialog>
  1531. <el-dialog
  1532. title="添加权限"
  1533. :visible.sync="dialogVisibleClass"
  1534. :append-to-body="true"
  1535. width="400px"
  1536. height="80%"
  1537. :before-close="handleClose"
  1538. class="addNewPP"
  1539. >
  1540. <div class="people" style="height: 300px">
  1541. <div class="people_top">
  1542. <div class="people_nav">选择班级</div>
  1543. </div>
  1544. <el-checkbox-group v-model="checkboxList2" class="people_name">
  1545. <el-checkbox v-for="item in grade" :key="item.id" :label="item.id">{{
  1546. item.name ? item.name : "暂无班级可选"
  1547. }}</el-checkbox>
  1548. </el-checkbox-group>
  1549. </div>
  1550. <span slot="footer" class="dialog-footer">
  1551. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1552. <el-button type="primary" @click="isAddClass">确定</el-button>
  1553. </span>
  1554. </el-dialog>
  1555. <el-dialog
  1556. title="创建问卷调查"
  1557. :visible.sync="dialogVisible5"
  1558. :append-to-body="true"
  1559. width="800px"
  1560. :before-close="handleClose"
  1561. class="dialog_diy"
  1562. >
  1563. <div>
  1564. <div
  1565. class="a_add_title"
  1566. style="
  1567. display: flex;
  1568. flex-direction: row;
  1569. align-items: center;
  1570. justify-content: center;
  1571. "
  1572. >
  1573. <div style="margin-right: 20px; font-size: 20px">问卷标题:</div>
  1574. <el-input
  1575. v-model="askJson.askTitle"
  1576. placeholder="请输入问卷标题"
  1577. style="width: 400px"
  1578. ></el-input>
  1579. </div>
  1580. <div class="a_addBox">
  1581. <div style="font-size: 16px; color: #c7c7c7">请输入问卷内容</div>
  1582. <div
  1583. class="a_add_box"
  1584. v-for="(item1, index1) in askJson.askCount"
  1585. :key="index1"
  1586. >
  1587. <div class="a_add_head">
  1588. <div>
  1589. {{ index1 + 1 + "、" }}
  1590. <el-input
  1591. class="a_add_head_input"
  1592. v-model="askJson.askJson[index1].askstitle"
  1593. placeholder="请输入问卷题目..."
  1594. ></el-input>
  1595. </div>
  1596. <div class="a_add_head_div">
  1597. <el-button type="primary" size="small" @click="addAskList()"
  1598. >添加</el-button
  1599. >
  1600. <el-button
  1601. type="primary"
  1602. size="small"
  1603. @click="deleteAskList()"
  1604. v-if="index1 != 0"
  1605. >删除</el-button
  1606. >
  1607. </div>
  1608. </div>
  1609. <div class="a_add_body">
  1610. <div class="a_add_input">
  1611. <el-input
  1612. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  1613. :key="checkIndex"
  1614. v-model="askJson.askJson[index1].checkList[checkIndex]"
  1615. placeholder="请输入选项..."
  1616. style="width: 150px; margin: 10px 10px 0 0"
  1617. ></el-input>
  1618. </div>
  1619. <div class="a_add_body_div">
  1620. <el-button
  1621. style="margin: 10px 0px 0 0"
  1622. type="primary"
  1623. size="small"
  1624. @click="addcheckList(askJson.askJson[index1])"
  1625. v-if="askJson.askJson[index1].askItem < 4"
  1626. >添加</el-button
  1627. >
  1628. <el-button
  1629. type="primary"
  1630. size="small"
  1631. style="margin: 10px 0 0 0"
  1632. @click="deletecheckList(askJson.askJson[index1])"
  1633. v-if="askJson.askJson[index1].askItem != 1"
  1634. >删除</el-button
  1635. >
  1636. </div>
  1637. </div>
  1638. </div>
  1639. </div>
  1640. </div>
  1641. <span slot="footer" class="dialog-footer">
  1642. <el-button @click="dialogVisible5 = false">取 消</el-button>
  1643. <el-button type="primary" @click="addAsk">确 定</el-button>
  1644. </span>
  1645. </el-dialog>
  1646. <el-dialog
  1647. title="添加工具"
  1648. :visible.sync="dialogVisible4"
  1649. :append-to-body="true"
  1650. width="600px"
  1651. :before-close="handleClose"
  1652. class="dialog_diy addToolsDia"
  1653. >
  1654. <div class="toolChoose" style="padding: 0 0 0 30px">
  1655. <div class="tools">
  1656. <div
  1657. class="leftTools"
  1658. style="
  1659. width: 95%;
  1660. padding: 0 0 15px 0;
  1661. border-bottom: 1px solid #efefef;
  1662. margin-bottom: 15px;
  1663. "
  1664. v-for="(itemTools, itemToolsIndex) in chapTools"
  1665. :key="itemToolsIndex"
  1666. >
  1667. <div
  1668. style="
  1669. display: flex;
  1670. flex-direction: row;
  1671. align-items: baseline;
  1672. flex-wrap: nowrap;
  1673. justify-content: flex-start;
  1674. position: relative;
  1675. "
  1676. >
  1677. <div class="chooseWho">
  1678. <div
  1679. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  1680. @click="chapToolsType = 0"
  1681. >
  1682. 展示类
  1683. </div>
  1684. <div
  1685. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  1686. @click="chapToolsType = 1"
  1687. >
  1688. 思维类
  1689. </div>
  1690. <div
  1691. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  1692. @click="chapToolsType = 2"
  1693. >
  1694. 评价类
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div style="min-height: 163px">
  1699. <div class="toolSort" v-if="chapToolsType == 0">
  1700. <div class="tool">
  1701. <div class="whiteBIcon" @click="chapAddTools(8)">
  1702. <img
  1703. src="../../assets/icon/secondToolList/library.png"
  1704. alt
  1705. />
  1706. <div style="margin: 5px 0">素材库</div>
  1707. </div>
  1708. <div class="check" @click="chapAddTools(8)">
  1709. <img
  1710. src="../../assets/icon/checkNo.png"
  1711. alt
  1712. v-if="itemTools.tools.indexOf(8) == -1"
  1713. />
  1714. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1715. </div>
  1716. </div>
  1717. </div>
  1718. <div class="toolSort" v-if="chapToolsType == 1">
  1719. <div class="tool">
  1720. <div class="whiteBIcon" @click="chapAddTools(7)">
  1721. <img
  1722. src="../../assets/icon/secondToolList/mindNetwork.png"
  1723. alt
  1724. />
  1725. <div style="margin: 5px 0">思维网格</div>
  1726. </div>
  1727. <div class="check" @click="chapAddTools(7)">
  1728. <img
  1729. src="../../assets/icon/checkNo.png"
  1730. alt
  1731. v-if="itemTools.tools.indexOf(7) == -1"
  1732. />
  1733. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1734. </div>
  1735. </div>
  1736. <div class="tool">
  1737. <div class="whiteBIcon" @click="chapAddTools(1)">
  1738. <img
  1739. src="../../assets/icon/secondToolList/whiteBoard.png"
  1740. alt
  1741. />
  1742. <div style="margin: 5px 0">电子白板</div>
  1743. </div>
  1744. <div class="check" @click="chapAddTools(1)">
  1745. <img
  1746. src="../../assets/icon/checkNo.png"
  1747. alt
  1748. v-if="itemTools.tools.indexOf(1) == -1"
  1749. />
  1750. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1751. </div>
  1752. </div>
  1753. <div class="tool">
  1754. <div class="whiteBIcon" @click="chapAddTools(2)">
  1755. <img src="../../assets/icon/secondToolList/note.png" alt />
  1756. <div style="margin: 5px 0">便签</div>
  1757. </div>
  1758. <div class="check" @click="chapAddTools(2)">
  1759. <img
  1760. src="../../assets/icon/checkNo.png"
  1761. alt
  1762. v-if="itemTools.tools.indexOf(2) == -1"
  1763. />
  1764. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1765. </div>
  1766. </div>
  1767. <div class="tool">
  1768. <div class="whiteBIcon" @click="chapAddTools(6)">
  1769. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1770. <div style="margin: 5px 0">协同文档</div>
  1771. </div>
  1772. <div class="check" @click="chapAddTools(6)">
  1773. <img
  1774. src="../../assets/icon/checkNo.png"
  1775. alt
  1776. v-if="itemTools.tools.indexOf(6) == -1"
  1777. />
  1778. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1779. </div>
  1780. </div>
  1781. <div class="tool">
  1782. <div class="whiteBIcon" @click="chapAddTools(3)">
  1783. <img
  1784. src="../../assets/icon/secondToolList/mindMapping.png"
  1785. alt
  1786. />
  1787. <div style="margin: 5px 0">思维导图</div>
  1788. </div>
  1789. <div class="check" @click="chapAddTools(3)">
  1790. <img
  1791. src="../../assets/icon/checkNo.png"
  1792. alt
  1793. v-if="itemTools.tools.indexOf(3) == -1"
  1794. />
  1795. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1796. </div>
  1797. </div>
  1798. </div>
  1799. <div class="toolSort" v-if="chapToolsType == 2">
  1800. <div class="tool">
  1801. <div class="whiteBIcon" @click="chapAddTools(5)">
  1802. <img src="../../assets/icon/thirdToolList/score.png" alt />
  1803. <div style="margin: 5px 0">量规评分</div>
  1804. </div>
  1805. <div class="check" @click="chapAddTools(5)">
  1806. <img
  1807. src="../../assets/icon/checkNo.png"
  1808. alt
  1809. v-if="itemTools.tools.indexOf(5) == -1"
  1810. />
  1811. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1812. </div>
  1813. </div>
  1814. <div class="tool">
  1815. <div
  1816. class="whiteBIcon"
  1817. @click="openTools(chapCount, 4, null)"
  1818. >
  1819. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1820. <div style="margin: 5px 0">问卷调查</div>
  1821. </div>
  1822. <div class="check" @click="chapAddTools(4)">
  1823. <img
  1824. src="../../assets/icon/checkNo.png"
  1825. alt
  1826. v-if="itemTools.tools.indexOf(4) == -1"
  1827. />
  1828. <img src="../../assets/icon/checkedIs.png" alt v-else />
  1829. </div>
  1830. </div>
  1831. </div>
  1832. </div>
  1833. <div>
  1834. <input
  1835. type="text"
  1836. placeholder="添加工具描述"
  1837. class="binfo_input"
  1838. style="margin: 20px 0; width: 71.5% !important"
  1839. v-model="itemTools.toolDetail"
  1840. />
  1841. </div>
  1842. </div>
  1843. </div>
  1844. </div>
  1845. <span slot="footer" class="dialog-footer">
  1846. <el-button @click="dialogVisible4 = false">取 消</el-button>
  1847. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  1848. </span>
  1849. </el-dialog>
  1850. <el-dialog
  1851. title="添加问答"
  1852. :visible.sync="dialogVisible8"
  1853. :append-to-body="true"
  1854. width="500px"
  1855. :before-close="handleClose"
  1856. class="dialog_diy"
  1857. >
  1858. <div>
  1859. <div
  1860. class="a_add_title"
  1861. style="
  1862. display: flex;
  1863. flex-direction: column;
  1864. align-items: flex-start;
  1865. justify-content: center;
  1866. "
  1867. >
  1868. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  1869. <el-input
  1870. v-model="answerQ"
  1871. placeholder="请输入您要问的问题"
  1872. ></el-input>
  1873. </div>
  1874. </div>
  1875. <span slot="footer" class="dialog-footer">
  1876. <el-button @click="dialogVisible8 = false">取 消</el-button>
  1877. <el-button type="primary" @click="addAnswer">确 定</el-button>
  1878. </span>
  1879. </el-dialog>
  1880. </div>
  1881. </template>
  1882. <script>
  1883. import "../../common/aws-sdk-2.235.1.min.js";
  1884. import $ from "jquery";
  1885. import EditorBar from "../../components/tools/wangEnduit";
  1886. export default {
  1887. components: { EditorBar },
  1888. data() {
  1889. return {
  1890. checkAll: false,
  1891. checkedCities: [],
  1892. isIndeterminate: true,
  1893. steps: 1,
  1894. nbOrder: 0,
  1895. courseId: "",
  1896. chapToolsType: 0,
  1897. chapTools: [
  1898. {
  1899. tools: [],
  1900. toolDetail: "",
  1901. },
  1902. ],
  1903. line: "",
  1904. lineCount: 0,
  1905. lineType: 0,
  1906. chapCount: 0,
  1907. courseName: "",
  1908. isTeacherSee: false,
  1909. courseText: "",
  1910. formLabelWidth: "100px",
  1911. uploadLoading1: false,
  1912. noneBtnImg: false,
  1913. updateBoolean2: false,
  1914. unitIndex: 0,
  1915. taskCount: 0,
  1916. dialogVisible: false,
  1917. dialogVisible1: false,
  1918. dialogVisible2: false,
  1919. dialogVisible3: false,
  1920. dialogVisible4: false,
  1921. dialogVisible5: false,
  1922. dialogVisible6: false,
  1923. dialogVisible7: false,
  1924. dialogVisible8: false,
  1925. dialogVisibleClass: false,
  1926. publicTool: 0,
  1927. searchPeople: "",
  1928. userid: this.$route.query.userid,
  1929. oid: this.$route.query.oid,
  1930. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  1931. cover: [], //课程封面
  1932. myWord: [],
  1933. askJson: {
  1934. askCount: 1,
  1935. askTitle: "",
  1936. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1937. },
  1938. unitJson: [
  1939. {
  1940. dyName: "", //单元标题
  1941. chapterInfo: [
  1942. {
  1943. isread: false,
  1944. chapterid: this.guid(),
  1945. title: "",
  1946. courseName: "",
  1947. taskJson: [
  1948. {
  1949. task: "",
  1950. taskDetail: "",
  1951. chapterData: [],
  1952. toolText: "",
  1953. toolChoose: [
  1954. {
  1955. tool: [],
  1956. toolDetail: "",
  1957. toolType: 0,
  1958. askCount: 1,
  1959. askTitle: "",
  1960. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1961. },
  1962. ],
  1963. isShowTools: false,
  1964. askCount: 1,
  1965. isFold: 0,
  1966. askTitle: "",
  1967. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  1968. checkJson: [{ checkCount: [], checkPerent: [] }],
  1969. homeworkList: [],
  1970. },
  1971. ],
  1972. itemCount: 1,
  1973. fileList1: [],
  1974. video: [],
  1975. testData: [],
  1976. pData: [],
  1977. templateArray: [],
  1978. },
  1979. ],
  1980. },
  1981. ],
  1982. studentJuri: [],
  1983. checkboxList: [],
  1984. checkboxList2: [],
  1985. number: "",
  1986. tTitle: "",
  1987. tdetail: "",
  1988. templateC: {},
  1989. AttText: {},
  1990. AttTextType: 0,
  1991. AttTextIndex: 0,
  1992. cTemplate: "",
  1993. CourseType: [],
  1994. CourseTypeJson: {},
  1995. courseTypeId: [],
  1996. courseTypeSon: [],
  1997. clearArray: [],
  1998. loading: false,
  1999. toolType: 0,
  2000. inputShow: true,
  2001. toolIndex: 0,
  2002. cidType: 0,
  2003. answerQ: "",
  2004. grade: [],
  2005. };
  2006. },
  2007. computed: {
  2008. offsetLetfPx: function () {
  2009. //addnum可以直接在模板语法里面用,相当于data内的值
  2010. return (
  2011. $(".cru_select")[this.unitIndex] &&
  2012. $(".cru_select")[this.unitIndex].offsetLeft
  2013. );
  2014. },
  2015. },
  2016. methods: {
  2017. handleCheckAllChange(val) {
  2018. this.checkedCities = val ? cityOptions : [];
  2019. this.isIndeterminate = false;
  2020. },
  2021. handleCheckedCitiesChange(value) {
  2022. let checkedCount = value.length;
  2023. this.checkAll = checkedCount === this.cities.length;
  2024. this.isIndeterminate =
  2025. checkedCount > 0 && checkedCount < this.cities.length;
  2026. },
  2027. addHw(e) {
  2028. var el = e.currentTarget;
  2029. el.getElementsByTagName("input")[0].click();
  2030. },
  2031. change(val) {
  2032. console.log(val);
  2033. },
  2034. handleClose(done) {
  2035. done();
  2036. },
  2037. imgChange1(file, fileList, type, itemTaskIndex) {
  2038. if (type == 1) {
  2039. var _tmp = this.cover;
  2040. } else if (
  2041. type == 2 ||
  2042. type == 3 ||
  2043. type == 6 ||
  2044. type == 7 ||
  2045. type == 8
  2046. ) {
  2047. var _tmp =
  2048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  2049. .chapterData;
  2050. } else if (type == 4) {
  2051. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  2052. } else {
  2053. var _tmp =
  2054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  2055. .homeworkList;
  2056. }
  2057. this.noneBtnImg = _tmp.length >= 1;
  2058. },
  2059. goTo(path) {
  2060. this.$router.push(path);
  2061. },
  2062. guid() {
  2063. var _num,
  2064. i,
  2065. _guid = "";
  2066. for (i = 0; i < 32; i++) {
  2067. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  2068. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  2069. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  2070. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  2071. _guid += "-";
  2072. }
  2073. }
  2074. return _guid;
  2075. },
  2076. lastSteps() {
  2077. if (this.steps == 4) {
  2078. this.goTo("/course?userid=" + this.userid + "&oid=" + this.oid);
  2079. } else {
  2080. if (this.cidType == 0) {
  2081. this.steps--;
  2082. } else {
  2083. if (this.steps == 3) {
  2084. this.steps = 1;
  2085. }
  2086. }
  2087. }
  2088. },
  2089. navSteps(s) {
  2090. if (this.cidType == 0) {
  2091. if (s == 1) {
  2092. this.steps = 1;
  2093. }
  2094. if (s == 2) {
  2095. this.steps = 2;
  2096. }
  2097. if (s == 3) {
  2098. this.cTemplate = this.templateC.content;
  2099. this.dialogVisible2 = false;
  2100. this.steps = 3;
  2101. }
  2102. } else {
  2103. if (s == 1) {
  2104. this.steps = 1;
  2105. }
  2106. if (s == 3) {
  2107. this.cTemplate = this.templateC.content;
  2108. this.dialogVisible2 = false;
  2109. this.steps = 3;
  2110. }
  2111. }
  2112. },
  2113. nextSteps() {
  2114. if (this.cidType == 1) {
  2115. if (this.steps == 1) {
  2116. if (this.courseName != "") {
  2117. this.steps = 3;
  2118. } else {
  2119. this.$message.error("请将信息填写完整");
  2120. return;
  2121. }
  2122. } else if (this.steps == 3) {
  2123. if (this.cid == "" || this.cid == undefined) {
  2124. if (this.courseName == "") {
  2125. this.$message.error("请将信息填写完整");
  2126. return;
  2127. } else {
  2128. this.addWork();
  2129. this.steps++;
  2130. }
  2131. } else {
  2132. if (this.courseName == "") {
  2133. this.$message.error("请将信息填写完整");
  2134. return;
  2135. } else {
  2136. this.updateWork();
  2137. this.steps++;
  2138. }
  2139. }
  2140. }
  2141. } else {
  2142. if (this.steps == 1) {
  2143. if (this.courseName != "") {
  2144. this.steps++;
  2145. } else {
  2146. this.$message.error("请将信息填写完整");
  2147. return;
  2148. }
  2149. } else if (this.steps == 2) {
  2150. if (this.templateC.id != "" || this.templateC.id != undefined) {
  2151. this.cTemplate = this.templateC.content;
  2152. }
  2153. this.dialogVisible2 = false;
  2154. this.steps++;
  2155. } else if (this.steps == 3) {
  2156. if (this.cid == "" || this.cid == undefined) {
  2157. if (this.courseName == "") {
  2158. this.$message.error("请将信息填写完整");
  2159. return;
  2160. } else {
  2161. this.addWork();
  2162. this.steps++;
  2163. }
  2164. } else {
  2165. if (this.courseName == "") {
  2166. this.$message.error("请将信息填写完整");
  2167. return;
  2168. } else {
  2169. this.updateWork();
  2170. this.steps++;
  2171. }
  2172. }
  2173. }
  2174. }
  2175. },
  2176. unitSet(i) {
  2177. this.unitIndex = i;
  2178. },
  2179. time() {
  2180. if (!this.now) {
  2181. this.now = new Date().getTime();
  2182. return true;
  2183. } else {
  2184. let time = new Date().getTime();
  2185. if (time - this.now > 3000) {
  2186. this.now = time;
  2187. return true;
  2188. } else {
  2189. return false;
  2190. }
  2191. }
  2192. },
  2193. deleteUnit(i) {
  2194. var _this = this;
  2195. if (_this.time()) {
  2196. _this
  2197. .$confirm("确定删除此单元吗?", "提示", {
  2198. confirmButtonText: "确定",
  2199. cancelButtonText: "取消",
  2200. type: "warning",
  2201. })
  2202. .then(() => {
  2203. _this.unitJson.splice(i, 1);
  2204. this.unitIndex = this.unitIndex - 1;
  2205. _this.$message.success("删除成功");
  2206. })
  2207. .catch(() => {
  2208. return;
  2209. });
  2210. }
  2211. },
  2212. deleteTool(itemTaskIndex, i) {
  2213. var _this = this;
  2214. if (_this.time()) {
  2215. _this
  2216. .$confirm("确定删除此工具吗?", "提示", {
  2217. confirmButtonText: "确定",
  2218. cancelButtonText: "取消",
  2219. type: "warning",
  2220. })
  2221. .then(() => {
  2222. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  2223. itemTaskIndex
  2224. ].toolChoose.splice(i, 1);
  2225. _this.$message.success("删除成功");
  2226. })
  2227. .catch(() => {
  2228. return;
  2229. });
  2230. }
  2231. },
  2232. deleteTask(i) {
  2233. var _this = this;
  2234. if (_this.time()) {
  2235. _this
  2236. .$confirm("确定删除此任务吗?", "提示", {
  2237. confirmButtonText: "确定",
  2238. cancelButtonText: "取消",
  2239. type: "warning",
  2240. })
  2241. .then(() => {
  2242. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  2243. i,
  2244. 1
  2245. );
  2246. _this.$message.success("删除成功");
  2247. })
  2248. .catch(() => {
  2249. return;
  2250. });
  2251. }
  2252. },
  2253. handlePictureCardPreview(file) {
  2254. this.dialogImageUrl = file.url;
  2255. },
  2256. clean(i, c) {
  2257. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  2258. },
  2259. handle_remove1(file, fileList, type) {
  2260. var _tmp = this.cover;
  2261. for (var i = 0, len = _tmp.length; i < len; i++) {
  2262. if (_tmp[i].uid == file.uid) {
  2263. _tmp.splice(i, 1);
  2264. break;
  2265. }
  2266. this.cover = _tmp;
  2267. }
  2268. this.noneBtnImg = _tmp.length >= 1;
  2269. },
  2270. addImg(e) {
  2271. var el = e.currentTarget;
  2272. el.getElementsByTagName("input")[0].click();
  2273. },
  2274. addChaptersTools(i) {
  2275. this.chapTools = [
  2276. {
  2277. tools: [],
  2278. toolDetail: "",
  2279. },
  2280. ];
  2281. this.chapCount = i;
  2282. this.dialogVisible4 = true;
  2283. },
  2284. isNoFinsh() {
  2285. this.$message.warning("功能正在开发中");
  2286. },
  2287. addAttText(i) {
  2288. this.AttText = {
  2289. title: "",
  2290. text: "",
  2291. };
  2292. this.taskCount = i;
  2293. this.AttTextType = 0;
  2294. this.$forceUpdate();
  2295. this.dialogVisible6 = true;
  2296. },
  2297. openLine(i) {
  2298. this.line = "";
  2299. this.lineCount = i;
  2300. this.lineType = 0;
  2301. this.$forceUpdate();
  2302. this.dialogVisible7 = true;
  2303. },
  2304. beforeUpload1(event, type) {
  2305. const loading = this.openLoading();
  2306. var file = event.file;
  2307. var credentials = {
  2308. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2309. secretAccessKey: "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",
  2310. }; //秘钥形式的登录上传
  2311. window.AWS.config.update(credentials);
  2312. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2313. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2314. var _this = this;
  2315. if (file) {
  2316. var params = {
  2317. Key:
  2318. file.name.split(".")[0] +
  2319. new Date().getTime() +
  2320. "." +
  2321. file.name.split(".")[1],
  2322. ContentType: file.type,
  2323. Body: file,
  2324. "Access-Control-Allow-Credentials": "*",
  2325. ACL: "public-read",
  2326. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2327. var options = {
  2328. partSize: 2048 * 1024 * 1024,
  2329. queueSize: 2,
  2330. leavePartsOnError: true,
  2331. };
  2332. bucket
  2333. .upload(params, options)
  2334. .on("httpUploadProgress", function (evt) {
  2335. //这里可以写进度条
  2336. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2337. })
  2338. .send(function (err, data) {
  2339. loading.close();
  2340. if (err) {
  2341. var a = _this.$refs.upload1.uploadFiles;
  2342. a.splice(a.length - 1, a.length);
  2343. _this.$message.error("上传失败");
  2344. } else {
  2345. _this.cover.push({
  2346. name: file.name,
  2347. url: data.Location,
  2348. uid: file.uid,
  2349. });
  2350. _this.imgChange1(null, null, 1, null);
  2351. console.log(data.Location);
  2352. }
  2353. });
  2354. }
  2355. },
  2356. beforeUpload(data) {
  2357. this.$refs.upload1.uploadFiles;
  2358. this.uploadLoading1 = true;
  2359. var file = data.file;
  2360. var credentials = {
  2361. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2362. secretAccessKey: "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",
  2363. }; //秘钥形式的登录上传
  2364. window.AWS.config.update(credentials);
  2365. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2366. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2367. var _this = this;
  2368. if (file) {
  2369. var params = {
  2370. Key:
  2371. file.name.split(".")[0] +
  2372. new Date().getTime() +
  2373. "." +
  2374. file.name.split(".")[1],
  2375. ContentType: file.type,
  2376. Body: file,
  2377. "Access-Control-Allow-Credentials": "*",
  2378. ACL: "public-read",
  2379. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2380. var options = {
  2381. partSize: 2048 * 1024 * 1024,
  2382. queueSize: 2,
  2383. leavePartsOnError: true,
  2384. };
  2385. bucket
  2386. .upload(params, options)
  2387. .on("httpUploadProgress", function (evt) {
  2388. //这里可以写进度条
  2389. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2390. })
  2391. .send(function (err, data) {
  2392. _this.uploadLoading1 = false;
  2393. if (err) {
  2394. var a = _this.$refs.upload1.uploadFiles;
  2395. a.splice(a.length - 1, a.length);
  2396. _this.$message.error("上传失败");
  2397. } else {
  2398. //上传成功处理
  2399. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  2400. name: file.name,
  2401. url: data.Location,
  2402. uid: file.uid,
  2403. });
  2404. _this.imgChange();
  2405. console.log(data.Location);
  2406. }
  2407. });
  2408. }
  2409. },
  2410. onExceed() {
  2411. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  2412. },
  2413. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  2414. const loading = this.openLoading();
  2415. var file = event.target.files[0];
  2416. this.inputShow = false;
  2417. var credentials = {
  2418. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  2419. secretAccessKey: "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",
  2420. }; //秘钥形式的登录上传
  2421. window.AWS.config.update(credentials);
  2422. window.AWS.config.region = "cn-northwest-1"; //设置区域
  2423. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  2424. var _this = this;
  2425. if (file) {
  2426. var params = {
  2427. Key:
  2428. file.name.split(".")[0] +
  2429. new Date().getTime() +
  2430. "." +
  2431. file.name.split(".")[1],
  2432. ContentType: file.type,
  2433. Body: file,
  2434. "Access-Control-Allow-Credentials": "*",
  2435. ACL: "public-read",
  2436. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  2437. var options = {
  2438. partSize: 2048 * 1024 * 1024,
  2439. queueSize: 2,
  2440. leavePartsOnError: true,
  2441. };
  2442. bucket
  2443. .upload(params, options)
  2444. .on("httpUploadProgress", function (evt) {
  2445. //这里可以写进度条
  2446. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  2447. })
  2448. .send(function (err, data) {
  2449. loading.close();
  2450. _this.inputShow = true;
  2451. if (err) {
  2452. var a = _this.$refs.upload1.uploadFiles;
  2453. a.splice(a.length - 1, a.length);
  2454. _this.$message.error("上传失败");
  2455. } else {
  2456. if (type == 2 || type == 3) {
  2457. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  2458. itemTaskIndex
  2459. ].chapterData.push({
  2460. name: file.name,
  2461. url: data.Location,
  2462. uid: file.uid,
  2463. type: type,
  2464. });
  2465. _this.imgChange1(null, null, type, itemTaskIndex);
  2466. } else if (type == 4) {
  2467. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  2468. itemTaskIndex
  2469. ].fileList1.push({
  2470. name: file.name,
  2471. url: data.Location,
  2472. uid: file.uid,
  2473. });
  2474. _this.imgChange1(null, null, type, itemTaskIndex);
  2475. } else if (type == 5) {
  2476. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  2477. itemTaskIndex
  2478. ].homeworkList.push({
  2479. name: file.name,
  2480. url: data.Location,
  2481. uid: file.uid,
  2482. });
  2483. _this.imgChange1(null, null, type, itemTaskIndex);
  2484. }
  2485. console.log(data.Location);
  2486. }
  2487. });
  2488. }
  2489. },
  2490. addunit() {
  2491. this.unitJson.push({
  2492. dyName: "", //单元标题
  2493. chapterInfo: [
  2494. {
  2495. isread: false,
  2496. chapterid: this.guid(),
  2497. title: "",
  2498. courseName: "",
  2499. taskJson: [
  2500. {
  2501. task: "",
  2502. taskDetail: "",
  2503. chapterData: [],
  2504. toolText: "",
  2505. toolChoose: [
  2506. {
  2507. tool: [],
  2508. toolDetail: "",
  2509. toolType: 0,
  2510. askCount: 1,
  2511. askTitle: "",
  2512. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2513. },
  2514. ],
  2515. isShowTools: false,
  2516. askCount: 1,
  2517. isFold: 0,
  2518. askTitle: "",
  2519. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2520. checkJson: [{ checkCount: [], checkPerent: [] }],
  2521. homeworkList: [],
  2522. },
  2523. ],
  2524. itemCount: 1,
  2525. fileList1: [],
  2526. video: [],
  2527. testData: [],
  2528. pData: [],
  2529. templateArray: [],
  2530. },
  2531. ],
  2532. });
  2533. setTimeout(() => {
  2534. this.unitIndex = this.unitJson.length - 1;
  2535. this.unitSet(this.unitIndex);
  2536. }, 0);
  2537. },
  2538. addToolFun(itemTaskIndex) {
  2539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2540. itemTaskIndex
  2541. ].toolChoose.push({
  2542. tool: [],
  2543. toolDetail: "",
  2544. toolType: 0,
  2545. askCount: 1,
  2546. askTitle: "",
  2547. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2548. });
  2549. },
  2550. addTaskBorder() {
  2551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  2552. task: "",
  2553. taskDetail: "",
  2554. chapterData: [],
  2555. toolText: "",
  2556. toolChoose: [
  2557. {
  2558. tool: [],
  2559. toolDetail: "",
  2560. toolType: 0,
  2561. askCount: 1,
  2562. askTitle: "",
  2563. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2564. },
  2565. ],
  2566. isShowTools: false,
  2567. askCount: 1,
  2568. isFold: 0,
  2569. askTitle: "",
  2570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2571. checkJson: [{ checkCount: [], checkPerent: [] }],
  2572. homeworkList: [],
  2573. });
  2574. },
  2575. add(e, i) {
  2576. var el = e.currentTarget;
  2577. el.getElementsByTagName("input")[0].click();
  2578. },
  2579. fold(i, e, type) {
  2580. var a = e.path[3];
  2581. var b = e.path[2];
  2582. if (type == 1) {
  2583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  2584. a.className += " smallTaskBorder";
  2585. b.className += " funBlockTop";
  2586. } else {
  2587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  2588. a.className = "taskBorder";
  2589. b.className = "funBlock";
  2590. }
  2591. console.log(e);
  2592. },
  2593. deleteHomeworkBox(unitIndex, index, i) {
  2594. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  2595. this.taskCount
  2596. ].homeworkList.splice(i, 1);
  2597. },
  2598. getStudent() {
  2599. let params = {
  2600. oid: this.oid,
  2601. cu: "",
  2602. cn: this.searchPeople,
  2603. };
  2604. this.ajax
  2605. .get(this.$store.state.api + "selectStudentAdd", params)
  2606. .then((res) => {
  2607. this.studentJuri = res.data[0];
  2608. })
  2609. .catch((err) => {
  2610. this.isLoading = false;
  2611. console.error(err);
  2612. });
  2613. },
  2614. searchStudent() {
  2615. this.getStudent();
  2616. },
  2617. //获取班级列表
  2618. getClass() {
  2619. let params = {
  2620. oid: this.oid,
  2621. };
  2622. this.ajax
  2623. .get(this.$store.state.api + "selectClassBySchool", params)
  2624. .then((res) => {
  2625. this.grade = res.data[0];
  2626. })
  2627. .catch((err) => {
  2628. this.isLoading = false;
  2629. console.error(err);
  2630. });
  2631. },
  2632. getChapterData(e, i, j, ic, type) {
  2633. e.stopPropagation();
  2634. this.updataC = true;
  2635. this.icc = ic;
  2636. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  2637. console.log("还不能下载图片喔");
  2638. }
  2639. },
  2640. deleteChapterData(e, i, j, ic, taskI) {
  2641. e.stopPropagation();
  2642. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  2643. },
  2644. updataVideoT(e, i, j, ic) {
  2645. e.stopPropagation();
  2646. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2647. ic
  2648. ].name = e.target.value;
  2649. },
  2650. upCd(e, i, j, ic) {
  2651. e.stopPropagation();
  2652. if (ic == 0) {
  2653. return;
  2654. }
  2655. var a =
  2656. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2657. ic - 1
  2658. ];
  2659. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2660. ic - 1
  2661. ] =
  2662. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2663. ic
  2664. ];
  2665. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  2666. a;
  2667. },
  2668. downCd(e, i, j, ic) {
  2669. e.stopPropagation();
  2670. if (ic == this.unitJson[i].chapterInfo[j].chapterData.length - 1) {
  2671. return;
  2672. }
  2673. var a =
  2674. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2675. ic + 1
  2676. ];
  2677. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2678. ic + 1
  2679. ] =
  2680. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  2681. ic
  2682. ];
  2683. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[ic] =
  2684. a;
  2685. },
  2686. addWork() {
  2687. for (var i = 0; i < this.unitJson.length; i++) {
  2688. for (
  2689. var j = 0;
  2690. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  2691. j++
  2692. ) {
  2693. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  2694. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  2695. i
  2696. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  2697. return ele.value != "";
  2698. });
  2699. }
  2700. }
  2701. }
  2702. let params = [
  2703. {
  2704. uid: this.userid,
  2705. title: this.courseName,
  2706. brief: this.courseText.replace(/%/g, "%25"),
  2707. cover:
  2708. this.cover.length > 0
  2709. ? JSON.stringify(this.cover)
  2710. : JSON.stringify([
  2711. {
  2712. name: "noBanner.jpg",
  2713. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/noBanner1656409780264.jpg",
  2714. uid: 1656409780264,
  2715. status: "success",
  2716. },
  2717. ]),
  2718. astudent:
  2719. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  2720. see: this.isTeacherSee == true ? 0 : 1,
  2721. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  2722. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  2723. courseType: JSON.stringify(this.courseTypeId),
  2724. },
  2725. ];
  2726. this.ajax
  2727. .post(this.$store.state.api + "addWorkNew2", params)
  2728. .then((res) => {
  2729. this.$message({
  2730. message: "新增成功",
  2731. type: "success",
  2732. });
  2733. this.number = res.data.ordernumber;
  2734. this.courseId = res.data.courseId;
  2735. this.islogin = true;
  2736. })
  2737. .catch((err) => {
  2738. this.$message.error("新增失败");
  2739. console.error(err);
  2740. });
  2741. },
  2742. goCourse() {
  2743. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  2744. },
  2745. updateWork() {
  2746. for (var i = 0; i < this.unitJson.length; i++) {
  2747. for (
  2748. var j = 0;
  2749. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  2750. j++
  2751. ) {
  2752. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  2753. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  2754. i
  2755. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  2756. return ele.value != "";
  2757. });
  2758. }
  2759. }
  2760. }
  2761. let params = [
  2762. {
  2763. cid: this.cid,
  2764. title: this.courseName,
  2765. brief: this.courseText.replace(/%/g, "%25"),
  2766. cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",
  2767. astudent:
  2768. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  2769. see: this.isTeacherSee == true ? 0 : 1,
  2770. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  2771. template: this.myWord != "undefined" ? this.myWord : [],
  2772. uid: this.userid,
  2773. courseType: JSON.stringify(this.courseTypeId),
  2774. },
  2775. ];
  2776. this.ajax
  2777. .post(this.$store.state.api + "updateWorkNew2", params)
  2778. .then((res) => {
  2779. this.$message({
  2780. message: "修改成功",
  2781. type: "success",
  2782. });
  2783. this.number = this.nbOrder;
  2784. this.courseId = this.cid;
  2785. })
  2786. .catch((err) => {
  2787. this.$message.error("修改失败");
  2788. console.error(err);
  2789. });
  2790. },
  2791. guid() {
  2792. var _num,
  2793. i,
  2794. _guid = "";
  2795. for (i = 0; i < 32; i++) {
  2796. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  2797. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  2798. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  2799. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  2800. _guid += "-";
  2801. }
  2802. }
  2803. return _guid;
  2804. },
  2805. insertWord() {
  2806. this.dialogVisible1 = true;
  2807. this.updateBoolean2 = false;
  2808. this.tTitle = "";
  2809. this.tdetail = "";
  2810. },
  2811. addWord() {
  2812. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  2813. name: this.tTitle,
  2814. content: this.tdetail,
  2815. uid: this.guid(),
  2816. });
  2817. this.dialogVisible1 = false;
  2818. },
  2819. upWord() {},
  2820. selectWord(uid, i, c) {
  2821. this.dialogVisible1 = true;
  2822. this.updateBoolean2 = true;
  2823. if (
  2824. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  2825. ) {
  2826. this.tTitle =
  2827. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  2828. this.tdetail =
  2829. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  2830. }
  2831. },
  2832. isAddPP() {
  2833. if (this.checkboxList.length > 0) {
  2834. this.$message({
  2835. message: "添加成功",
  2836. type: "success",
  2837. });
  2838. this.dialogVisible3 = false;
  2839. } else {
  2840. this.$message({
  2841. message: "请添加课程成员",
  2842. type: "error",
  2843. });
  2844. }
  2845. },
  2846. isAddClass() {
  2847. this.dialogVisibleClass = false;
  2848. },
  2849. getTemplate() {
  2850. this.ajax
  2851. .get(this.$store.state.api + "getCourseTemplateT", "")
  2852. .then((res) => {
  2853. this.templateArray = res.data[0];
  2854. })
  2855. .catch((err) => {});
  2856. },
  2857. clearChoose() {
  2858. this.clearArray.splice(this.templateC.id, 1);
  2859. this.dialogVisible2 = false;
  2860. },
  2861. clearAttText() {
  2862. this.AttText = {
  2863. title: "",
  2864. text: "",
  2865. };
  2866. this.dialogVisible6 = false;
  2867. },
  2868. clearLine() {
  2869. this.line = "";
  2870. this.dialogVisible7 = false;
  2871. },
  2872. checkTemplate(res) {
  2873. let _this = this;
  2874. _this
  2875. .$confirm("确定选择此模板吗?", "提示", {
  2876. confirmButtonText: "确定",
  2877. cancelButtonText: "取消",
  2878. type: "warning",
  2879. })
  2880. .then(() => {
  2881. _this.unitJson = JSON.parse(res.chapters);
  2882. _this.steps++;
  2883. })
  2884. .catch(() => {
  2885. return;
  2886. });
  2887. },
  2888. checkTemplate1(w) {
  2889. this.steps++;
  2890. },
  2891. checkTemplate2() {
  2892. let _this = this;
  2893. _this
  2894. .$confirm("确定选择空模板吗?", "提示", {
  2895. confirmButtonText: "确定",
  2896. cancelButtonText: "取消",
  2897. type: "warning",
  2898. })
  2899. .then(() => {
  2900. _this.unitJson = [
  2901. {
  2902. dyName: "", //单元标题
  2903. chapterInfo: [
  2904. {
  2905. isread: false,
  2906. chapterid: this.guid(),
  2907. title: "",
  2908. courseName: "",
  2909. taskJson: [
  2910. {
  2911. task: "",
  2912. taskDetail: "",
  2913. chapterData: [],
  2914. toolText: "",
  2915. toolChoose: [
  2916. {
  2917. tool: [],
  2918. toolDetail: "",
  2919. toolType: 0,
  2920. askCount: 1,
  2921. askTitle: "",
  2922. askJson: [
  2923. { askstitle: "", askItem: 1, checkList: [] },
  2924. ],
  2925. },
  2926. ],
  2927. isShowTools: false,
  2928. askCount: 1,
  2929. isFold: 0,
  2930. askTitle: "",
  2931. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2932. checkJson: [{ checkCount: [], checkPerent: [] }],
  2933. homeworkList: [],
  2934. },
  2935. ],
  2936. itemCount: 1,
  2937. fileList1: [],
  2938. video: [],
  2939. testData: [],
  2940. pData: [],
  2941. templateArray: [],
  2942. },
  2943. ],
  2944. },
  2945. ];
  2946. this.steps++;
  2947. })
  2948. .catch(() => {
  2949. return;
  2950. });
  2951. },
  2952. wordNext() {
  2953. this.dialogVisible2 = false;
  2954. },
  2955. isAddOrUpdateAttText() {
  2956. if (this.AttTextType == 0) {
  2957. this.addAttTextMessage();
  2958. } else {
  2959. this.updateAttText();
  2960. }
  2961. },
  2962. isAddOrUpdateLine() {
  2963. if (this.lineType == 0) {
  2964. this.addLine();
  2965. } else {
  2966. this.updateLine();
  2967. }
  2968. },
  2969. addAttTextMessage() {
  2970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2971. this.taskCount
  2972. ].chapterData.push({
  2973. name: this.AttText.title,
  2974. url: this.AttText.text,
  2975. type: 6,
  2976. });
  2977. this.imgChange1(null, null, 6, this.taskCount);
  2978. this.dialogVisible6 = false;
  2979. },
  2980. selectAttText(itemTaskIndex, i) {
  2981. this.AttText.title =
  2982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2983. itemTaskIndex
  2984. ].chapterData[i].name;
  2985. this.AttText.text =
  2986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2987. itemTaskIndex
  2988. ].chapterData[i].url;
  2989. this.taskCount = itemTaskIndex;
  2990. this.AttTextIndex = i;
  2991. this.AttTextType = 1;
  2992. this.dialogVisible6 = true;
  2993. },
  2994. updateAttText() {
  2995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2996. this.taskCount
  2997. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  2998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  2999. this.taskCount
  3000. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  3001. this.dialogVisible6 = false;
  3002. },
  3003. addLine() {
  3004. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3005. this.lineCount
  3006. ].chapterData.push({
  3007. name: "链接",
  3008. url: this.line,
  3009. type: 8,
  3010. });
  3011. this.imgChange1(null, null, 8, this.lineCount);
  3012. this.dialogVisible7 = false;
  3013. },
  3014. selectLine(itemTaskIndex, i) {
  3015. this.line =
  3016. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3017. itemTaskIndex
  3018. ].chapterData[i].url;
  3019. this.taskCount = itemTaskIndex;
  3020. this.lineCount = i;
  3021. this.lineType = 1;
  3022. this.dialogVisible7 = true;
  3023. },
  3024. updateLine() {
  3025. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3026. this.taskCount
  3027. ].chapterData[this.lineCount].url = this.line;
  3028. this.dialogVisible7 = false;
  3029. },
  3030. addPP() {
  3031. this.dialogVisible3 = true;
  3032. },
  3033. goTo(path) {
  3034. this.$router.push(path);
  3035. },
  3036. openTools(itemTaskIndex, i, toolIndex) {
  3037. this.toolIndex = toolIndex;
  3038. this.taskCount = itemTaskIndex;
  3039. if (i == 4) {
  3040. if (toolIndex == null) {
  3041. var a =
  3042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3043. .chapterData;
  3044. for (var i = 0; i < a.length; i++) {
  3045. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  3046. this.askJson =
  3047. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3048. itemTaskIndex
  3049. ].chapterData[i].askJson;
  3050. }
  3051. }
  3052. } else {
  3053. this.askJson = JSON.parse(
  3054. JSON.stringify(
  3055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3056. itemTaskIndex
  3057. ].toolChoose[toolIndex]
  3058. )
  3059. );
  3060. }
  3061. this.dialogVisible5 = true;
  3062. } else if (i == 15) {
  3063. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3064. itemTaskIndex
  3065. ].toolChoose[toolIndex].answerQ
  3066. ? JSON.parse(
  3067. JSON.stringify(
  3068. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3069. itemTaskIndex
  3070. ].toolChoose[toolIndex].answerQ
  3071. )
  3072. )
  3073. : "";
  3074. this.dialogVisible8 = true;
  3075. }
  3076. },
  3077. chapAddTools(i) {
  3078. if (this.chapTools[0].tools.length == 0) {
  3079. this.chapTools[0].tools.push(i);
  3080. } else {
  3081. if (this.chapTools[0].tools.indexOf(i) != -1) {
  3082. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  3083. } else {
  3084. this.chapTools[0].tools.push(i);
  3085. }
  3086. }
  3087. this.$forceUpdate();
  3088. },
  3089. addChaptersDataTools() {
  3090. if (this.chapTools[0].tools.indexOf(4) != -1) {
  3091. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3092. this.chapCount
  3093. ].chapterData.push({
  3094. name: this.chapTools[0].toolDetail,
  3095. url: this.chapTools[0].tools,
  3096. type: 7,
  3097. askJson: this.askJson,
  3098. });
  3099. } else {
  3100. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3101. this.chapCount
  3102. ].chapterData.push({
  3103. name: this.chapTools[0].toolDetail,
  3104. url: this.chapTools[0].tools,
  3105. type: 7,
  3106. });
  3107. }
  3108. this.imgChange1(null, null, 7, this.chapCount);
  3109. this.dialogVisible4 = false;
  3110. },
  3111. addTools(i, itemTaskIndex, toolIndex) {
  3112. // if (
  3113. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3114. // .toolChoose[toolIndex].tool.length == 0
  3115. // ) {
  3116. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3117. // itemTaskIndex
  3118. // ].toolChoose[toolIndex].tool.push(i);
  3119. // } else {
  3120. // if (
  3121. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3122. // itemTaskIndex
  3123. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  3124. // ) {
  3125. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3126. // itemTaskIndex
  3127. // ].toolChoose[toolIndex].tool.splice(
  3128. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3129. // itemTaskIndex
  3130. // ].toolChoose[toolIndex].tool.indexOf(i),
  3131. // 1
  3132. // );
  3133. // } else {
  3134. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3135. // itemTaskIndex
  3136. // ].toolChoose[toolIndex].tool.push(i);
  3137. // }
  3138. // console.log(
  3139. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3140. // .toolChoose[toolIndex].tool
  3141. // );
  3142. // }
  3143. if (i == 4) {
  3144. if (
  3145. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3146. .toolChoose[toolIndex].askJson.askTitle == "" ||
  3147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3148. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  3149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3150. .toolChoose[toolIndex].askJson[0].checkList < 2
  3151. ) {
  3152. this.$message({
  3153. message: "请填写完整问卷内容",
  3154. type: "error",
  3155. });
  3156. return;
  3157. }
  3158. }
  3159. if (i == 15) {
  3160. if (
  3161. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3162. .toolChoose[toolIndex].answerQ ||
  3163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3164. .toolChoose[toolIndex].answerQ == ""
  3165. ) {
  3166. this.$message({
  3167. message: "请填写问答内容",
  3168. type: "error",
  3169. });
  3170. return;
  3171. }
  3172. }
  3173. if (
  3174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3175. .toolChoose[toolIndex].tool.length > 0
  3176. ) {
  3177. if (
  3178. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3179. itemTaskIndex
  3180. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  3181. ) {
  3182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3183. itemTaskIndex
  3184. ].toolChoose[toolIndex].tool.splice(
  3185. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3186. itemTaskIndex
  3187. ].toolChoose[toolIndex].tool.indexOf(i),
  3188. 1
  3189. );
  3190. } else {
  3191. this.$message({
  3192. message: "每个工具只能添加一个",
  3193. type: "error",
  3194. });
  3195. }
  3196. } else {
  3197. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3198. itemTaskIndex
  3199. ].toolChoose[toolIndex].tool.push(i);
  3200. }
  3201. this.$forceUpdate();
  3202. },
  3203. addAskList() {
  3204. this.askJson.askJson.push({
  3205. askstitle: "",
  3206. askItem: 1,
  3207. checkList: [],
  3208. });
  3209. this.askJson.askCount++;
  3210. },
  3211. deleteAskList() {
  3212. this.askJson.askJson.splice(-1);
  3213. this.askJson.askCount--;
  3214. },
  3215. addcheckList(json) {
  3216. json.checkList.length++;
  3217. json.askItem++;
  3218. },
  3219. deletecheckList(json) {
  3220. json.checkList.length--;
  3221. json.askItem--;
  3222. },
  3223. addAsk() {
  3224. if (this.askJson.askTitle === "") {
  3225. this.$message.error("问卷调查标题不能为空!");
  3226. return;
  3227. }
  3228. var aj = this.askJson.askJson;
  3229. var b = 1;
  3230. for (var i = 0; i < aj.length; i++) {
  3231. if (aj[i].askstitle === "") {
  3232. var a = 1;
  3233. for (let index = 0; index < aj[i].askItem; index++) {
  3234. const element = aj[i].checkList[index]
  3235. ? aj[i].checkList[index]
  3236. : "";
  3237. if (element != "") {
  3238. b++;
  3239. this.$message.error("填写了问卷调查选项,问卷调查题目不能为空!");
  3240. return;
  3241. } else {
  3242. a++;
  3243. }
  3244. }
  3245. if (b == 1) {
  3246. this.$message.error("至少填写一个问题");
  3247. return;
  3248. }
  3249. } else if (aj[i].askstitle != "") {
  3250. for (let index = 0; index < aj[i].askItem; index++) {
  3251. const element = aj[i].checkList[index]
  3252. ? aj[i].checkList[index]
  3253. : "";
  3254. var index = 0;
  3255. for (var z = 0; z < aj[i].checkList.length; z++) {
  3256. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  3257. if (checkC != "") {
  3258. index++;
  3259. } else {
  3260. this.$message.error("问卷调查选项不能为空!");
  3261. return;
  3262. }
  3263. }
  3264. b++;
  3265. if (index < 2) {
  3266. this.$message.error(
  3267. "填写了问卷调查的题目,问卷调查选项至少要有两项!"
  3268. );
  3269. return;
  3270. }
  3271. }
  3272. }
  3273. }
  3274. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  3275. var elc = el.checkList.filter((element) => {
  3276. return element != "";
  3277. });
  3278. return el.askstitle != "" && elc.length != 0;
  3279. });
  3280. if (!this.dialogVisible4) {
  3281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3282. this.taskCount
  3283. ].toolChoose[this.toolIndex] = this.askJson;
  3284. }
  3285. this.dialogVisible5 = false;
  3286. },
  3287. addAnswer() {
  3288. if (this.answerQ == "") {
  3289. this.$message.error("请输入您想要问的问题");
  3290. return;
  3291. }
  3292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3293. this.taskCount
  3294. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  3295. this.dialogVisible8 = false;
  3296. },
  3297. selectCourseDetail() {
  3298. if (this.cid == "" || this.cid == undefined) {
  3299. console.log("这是新增课程");
  3300. } else {
  3301. this.cidType = 1;
  3302. let params = {
  3303. cid: this.cid,
  3304. };
  3305. this.ajax
  3306. .get(this.$store.state.api + "select_course_detail", params)
  3307. .then((res) => {
  3308. this.loading = true;
  3309. this.unitJson = JSON.parse(res.data[0][0].chapters);
  3310. for (var j in this.unitJson) {
  3311. for (var i in this.unitJson[j].chapterInfo) {
  3312. this.unitJson[j].chapterInfo[i].taskJson[
  3313. this.taskCount
  3314. ].toolChoose = this.unitJson[j].chapterInfo[i].taskJson[
  3315. this.taskCount
  3316. ].toolChoose
  3317. ? this.unitJson[j].chapterInfo[i].taskJson[this.taskCount]
  3318. .toolChoose
  3319. : [];
  3320. }
  3321. }
  3322. this.courseName = res.data[0][0].title;
  3323. this.courseText = res.data[0][0].brief;
  3324. this.cover = JSON.parse(res.data[0][0].cover);
  3325. this.noneBtnImg = this.cover.length >= 1;
  3326. // this.checkboxList =
  3327. // res.data[0][0].course_student.length > 0
  3328. // ? JSON.parse(res.data[0][0].course_student)
  3329. // : [];
  3330. this.checkboxList2 =
  3331. res.data[0][0].juri ? res.data[0][0].juri.split(",") : [];
  3332. this.isTeacherSee =
  3333. res.data[0][0].is_teacher_look == 0 ? true : false;
  3334. this.myWord = res.data[0][0].template;
  3335. this.templateC.id = "123";
  3336. this.nbOrder = res.data[0][0].ordernumber;
  3337. for (var i = 0; i < res.data[1].length; i++) {
  3338. this.courseTypeId.push(res.data[1][i].typeid);
  3339. }
  3340. console.log(this.courseTypeId);
  3341. this.$forceUpdate();
  3342. })
  3343. .catch((err) => {
  3344. console.error(err);
  3345. });
  3346. }
  3347. },
  3348. getTypeName() {
  3349. console.log(this.courseTypeId);
  3350. this.$forceUpdate();
  3351. },
  3352. selectType() {
  3353. this.ajax
  3354. .get(this.$store.state.api + "selectType")
  3355. .then((res) => {
  3356. this.CourseType = res.data;
  3357. for (var i = 0; i < res.data[0].length; i++) {
  3358. if (!this.cid) {
  3359. this.courseTypeId[res.data[0][i].id] = "";
  3360. }
  3361. for (var j = 0; j < res.data[1].length; j++) {
  3362. if (res.data[0][i].id == res.data[1][j].pid) {
  3363. if (!this.CourseTypeJson[res.data[0][i].id]) {
  3364. this.CourseTypeJson[res.data[0][i].id] = [];
  3365. }
  3366. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  3367. }
  3368. }
  3369. }
  3370. })
  3371. .catch((err) => {
  3372. console.error(err);
  3373. });
  3374. },
  3375. /*添加评价 */
  3376. addEList(index, tIndex) {
  3377. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  3378. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  3379. value: "",
  3380. detail: "",
  3381. score: 5,
  3382. })
  3383. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  3384. { value: "", detail: "", score: 5 },
  3385. ]);
  3386. this.$forceUpdate();
  3387. },
  3388. deletEList(index, tIndex, eIndex) {
  3389. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  3390. eIndex,
  3391. 1
  3392. );
  3393. this.$forceUpdate();
  3394. },
  3395. setEListStar() {
  3396. this.$forceUpdate();
  3397. },
  3398. },
  3399. created() {
  3400. this.getStudent();
  3401. this.getClass();
  3402. this.getTemplate();
  3403. this.selectType();
  3404. this.loading = false;
  3405. setTimeout(() => {
  3406. this.selectCourseDetail();
  3407. }, 500);
  3408. },
  3409. };
  3410. </script>
  3411. <style scoped>
  3412. .dialog_diy >>> .el-dialog__header {
  3413. background: #3d67bc !important;
  3414. padding: 15px 20px;
  3415. }
  3416. .dialog_diy >>> .el-dialog__title {
  3417. color: #fff;
  3418. }
  3419. .dialog_diy >>> .el-dialog__headerbtn {
  3420. top: 19px;
  3421. }
  3422. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  3423. color: #fff;
  3424. }
  3425. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  3426. color: #fff;
  3427. }
  3428. .dialog_diy >>> .el-dialog__body,
  3429. .dialog_diy >>> .el-dialog__footer {
  3430. background: #fafafa;
  3431. }
  3432. .left {
  3433. border-right: 1px solid rgb(60, 94, 143);
  3434. display: flex;
  3435. flex-direction: column;
  3436. align-items: center;
  3437. min-height: 600px;
  3438. width: 385px;
  3439. height: 80%;
  3440. }
  3441. .tips {
  3442. color: rgb(128, 128, 128);
  3443. font-size: 12px;
  3444. width: 270px;
  3445. margin: 40px;
  3446. }
  3447. .pb_content {
  3448. height: 100% !important;
  3449. /* margin: 0 20px 0 20px; */
  3450. }
  3451. .pb_content_body {
  3452. width: 100% !important;
  3453. height: 100%;
  3454. }
  3455. .info_solid {
  3456. width: 270px;
  3457. height: 30px;
  3458. border-left: 1px solid #bdbdbd;
  3459. margin: 10px 0px 10px 30px;
  3460. }
  3461. .info_steps {
  3462. width: 270px;
  3463. font-size: 0.875rem;
  3464. display: flex;
  3465. align-items: center;
  3466. }
  3467. .info_steps span:nth-child(1) {
  3468. width: 30px;
  3469. height: 30px;
  3470. background: rgba(0, 0, 0, 0.38);
  3471. display: block;
  3472. color: #fff;
  3473. border-radius: 40px;
  3474. text-align: center;
  3475. line-height: 30px;
  3476. }
  3477. .steps_active {
  3478. background: #3d67bc !important;
  3479. }
  3480. .info_steps span:nth-child(2) {
  3481. margin-left: 5px;
  3482. }
  3483. .right {
  3484. height: 100%;
  3485. width: 100%;
  3486. display: flex;
  3487. }
  3488. .basic_box {
  3489. width: 95%;
  3490. margin: 0 auto;
  3491. position: relative;
  3492. }
  3493. .basic_box_success {
  3494. width: 100%;
  3495. min-height: 455px;
  3496. padding: 50px 0;
  3497. position: relative;
  3498. text-align: center;
  3499. border-bottom: 1px solid #bfbfbf;
  3500. box-sizing: border-box;
  3501. }
  3502. .info_title {
  3503. font-size: 1.5em;
  3504. margin-right: 25px;
  3505. /* margin: 20px 30px 20px 30px; */
  3506. }
  3507. .bInfo_title {
  3508. /* font-size: 20px; */
  3509. text-align: left;
  3510. margin-top: 10px;
  3511. margin-bottom: 10px;
  3512. /* font-weight: 700; */
  3513. }
  3514. .small_title {
  3515. font-size: 14px;
  3516. line-height: 40px;
  3517. }
  3518. .chapter_beizhu {
  3519. font-size: 12px;
  3520. font-weight: bold;
  3521. float: right;
  3522. color: rgb(128, 128, 128);
  3523. margin-top: 5px;
  3524. }
  3525. .chapter_uploadBox1 {
  3526. text-align: left;
  3527. background-color: rgb(242, 242, 242);
  3528. width: 100%;
  3529. height: 67px;
  3530. padding: 0px 15px;
  3531. border-radius: 8px;
  3532. overflow: hidden;
  3533. font-size: 16px;
  3534. box-sizing: border-box;
  3535. position: relative;
  3536. }
  3537. .chapter_add {
  3538. width: 100%;
  3539. height: 32px;
  3540. margin-top: 15px;
  3541. cursor: pointer;
  3542. }
  3543. .chapter_add_l {
  3544. margin-left: 5px;
  3545. width: 30px;
  3546. height: 30px;
  3547. float: left;
  3548. border: 1px solid #aaa;
  3549. color: #aaa;
  3550. border-radius: 50%;
  3551. font-size: 25px;
  3552. text-align: center;
  3553. }
  3554. .chapter_add_r {
  3555. font-size: 18px;
  3556. height: 40px;
  3557. line-height: 30px;
  3558. text-indent: 10px;
  3559. color: #aaa;
  3560. }
  3561. .chapter_add_r span {
  3562. font-size: 12px;
  3563. color: rgb(204, 204, 204);
  3564. }
  3565. .chapter_add_input {
  3566. display: none;
  3567. }
  3568. .line {
  3569. width: 85%;
  3570. margin: 0 auto;
  3571. border-top: 1px solid #e5e5e5;
  3572. margin-top: 20px;
  3573. }
  3574. .info_btnBox {
  3575. width: 100%;
  3576. display: flex;
  3577. justify-content: space-evenly;
  3578. margin: 20px 0 25px 0;
  3579. }
  3580. .info_btn,
  3581. .teacherWord {
  3582. color: #fff;
  3583. background-color: #0f7eff;
  3584. padding: 8px 24px;
  3585. font-size: 0.9375rem;
  3586. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  3587. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  3588. min-width: 64px;
  3589. font-weight: 500;
  3590. border-radius: 4px;
  3591. box-sizing: border-box;
  3592. border: none;
  3593. cursor: pointer;
  3594. }
  3595. .teacherWord {
  3596. width: 105px !important;
  3597. text-align: center !important;
  3598. line-height: 36px !important;
  3599. padding: 0 !important;
  3600. font-size: 14px !important;
  3601. margin: 10px 0 !important;
  3602. }
  3603. .wordTeacher {
  3604. display: flex;
  3605. flex-direction: column;
  3606. width: 20%;
  3607. text-align: center;
  3608. font-size: 14px;
  3609. margin: 30px 30px 0 10px;
  3610. background: #fff;
  3611. position: relative;
  3612. border-radius: 5px;
  3613. padding: 25px 0px;
  3614. }
  3615. .wordPic {
  3616. margin: 0 auto;
  3617. width: 60px;
  3618. height: 60px;
  3619. cursor: pointer;
  3620. }
  3621. .deleteWord {
  3622. width: 22px;
  3623. height: 22px;
  3624. position: absolute;
  3625. right: 20px;
  3626. top: -10px;
  3627. cursor: pointer;
  3628. }
  3629. .wordPic > img,
  3630. .deleteWord > img,
  3631. .addToolImg > img {
  3632. width: 100%;
  3633. height: 100%;
  3634. }
  3635. .info_btn:hover {
  3636. background-color: #4f7cd5 !important;
  3637. }
  3638. .cru_selectBox {
  3639. display: flex;
  3640. margin: 24px 0 10px;
  3641. flex-wrap: nowrap;
  3642. white-space: nowrap;
  3643. overflow: auto;
  3644. position: relative;
  3645. height: 47px;
  3646. }
  3647. .cru_selectBox::-webkit-scrollbar {
  3648. /*滚动条整体样式*/
  3649. width: 6px;
  3650. /*高宽分别对应横竖滚动条的尺寸*/
  3651. height: 6px;
  3652. }
  3653. /*定义滚动条轨道 内阴影+圆角*/
  3654. .cru_selectBox::-webkit-scrollbar-track {
  3655. border-radius: 10px;
  3656. background-color: #eee;
  3657. }
  3658. /*定义滑块 内阴影+圆角*/
  3659. .cru_selectBox::-webkit-scrollbar-thumb {
  3660. border-radius: 10px;
  3661. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  3662. background-color: rgba(0, 0, 0, 0.1);
  3663. }
  3664. .cru_line {
  3665. position: absolute;
  3666. bottom: 0px;
  3667. transition: all 0.5s;
  3668. left: 0px;
  3669. width: 125px;
  3670. margin-left: -25px;
  3671. }
  3672. .cru_select {
  3673. font-size: 21px;
  3674. margin-right: 37px;
  3675. margin-left: 5px;
  3676. cursor: pointer;
  3677. color: #a6a6a6;
  3678. }
  3679. .cru_selected {
  3680. color: #0b7fc2 !important;
  3681. }
  3682. .chapter_contentbox {
  3683. display: flex;
  3684. align-items: center;
  3685. margin-top: 15px;
  3686. }
  3687. .chapter_contentbox div:nth-child(1) {
  3688. /* width: 150px; */
  3689. margin: 0px;
  3690. /* font-size: 2em; */
  3691. color: black;
  3692. display: block;
  3693. white-space: nowrap;
  3694. overflow: hidden;
  3695. text-overflow: ellipsis;
  3696. /* font-weight: 600; */
  3697. margin-right: 20px;
  3698. }
  3699. .chapter_contentbox div:nth-child(2) {
  3700. width: 380px;
  3701. }
  3702. .chapter_contentbox div:nth-child(3),
  3703. .remove {
  3704. background-image: url(../../assets/remove.png);
  3705. cursor: pointer;
  3706. opacity: 0.5;
  3707. width: 40px;
  3708. height: 50px;
  3709. background-repeat: no-repeat;
  3710. background-position: 5px 10px;
  3711. }
  3712. .binfo_input {
  3713. font: inherit;
  3714. color: currentColor;
  3715. width: 100%;
  3716. margin: 0;
  3717. /* padding: 15px 14px; */
  3718. padding: 8px 14px;
  3719. display: block;
  3720. min-width: 0;
  3721. outline: none;
  3722. box-sizing: content-box;
  3723. background: none;
  3724. border: 1px solid rgba(0, 0, 0, 0.23);
  3725. border-radius: 4px;
  3726. box-sizing: border-box;
  3727. background: #fff;
  3728. }
  3729. .binfo_input:focus-visible {
  3730. border: 1px solid rgba(61, 103, 188);
  3731. }
  3732. .time {
  3733. display: flex;
  3734. margin: 35px 0 80px 0;
  3735. }
  3736. .chapter_btnbox {
  3737. width: 160px;
  3738. border-radius: 5px;
  3739. border: 2px dashed gray;
  3740. display: flex;
  3741. padding: 8px 50px;
  3742. align-items: center;
  3743. justify-content: center;
  3744. margin: 30px auto 0;
  3745. cursor: pointer;
  3746. }
  3747. .icon_add {
  3748. position: relative;
  3749. width: 24px;
  3750. padding-top: 20px;
  3751. border-radius: 100%;
  3752. border-width: 2px;
  3753. border-style: solid;
  3754. border-color: gray;
  3755. }
  3756. .icon_add i:nth-child(1) {
  3757. position: absolute;
  3758. left: 50%;
  3759. top: 50%;
  3760. height: 60%;
  3761. transform: translate(-50%, -50%);
  3762. border-width: 1px;
  3763. border-style: solid;
  3764. border-color: inherit;
  3765. }
  3766. .icon_add i:nth-child(2) {
  3767. position: absolute;
  3768. top: 50%;
  3769. left: 50%;
  3770. width: 60%;
  3771. transform: translate(-50%, -50%);
  3772. border-width: 1px;
  3773. border-style: solid;
  3774. border-color: inherit;
  3775. }
  3776. .chapter_btn_w {
  3777. font-size: 0.9375rem;
  3778. font-weight: bold;
  3779. color: gray;
  3780. margin-left: 20px;
  3781. }
  3782. .disUoloadSty >>> .el-icon-plus {
  3783. display: none !important; /* 上传按钮隐藏 */
  3784. }
  3785. .imgLeft {
  3786. margin: 15px 0;
  3787. }
  3788. .add_info_box {
  3789. margin: 20px 0;
  3790. }
  3791. .add_info_box button {
  3792. margin: 0 10px 10px 0;
  3793. }
  3794. .add_chapters_box {
  3795. text-align: left;
  3796. background-color: rgb(232 234 237);
  3797. width: 100%;
  3798. padding: 0px 15px;
  3799. border-radius: 15px;
  3800. font-size: 16px;
  3801. box-sizing: border-box;
  3802. position: relative;
  3803. padding: 0 10px 5px 10px;
  3804. height: 185px;
  3805. overflow-y: auto;
  3806. overflow-x: hidden;
  3807. }
  3808. .homework_box {
  3809. display: flex;
  3810. align-items: flex-start;
  3811. flex-wrap: wrap;
  3812. margin: 15px 0 0 0;
  3813. flex-direction: column;
  3814. align-content: flex-start;
  3815. }
  3816. .course_homework {
  3817. display: flex;
  3818. justify-content: center;
  3819. flex-direction: row;
  3820. align-items: center;
  3821. margin: 0 10px 0 0;
  3822. }
  3823. .course_homework >>> .el-input__inner {
  3824. width: 140px;
  3825. margin-left: 15px;
  3826. }
  3827. .chapter_upload_move {
  3828. position: relative;
  3829. background-color: #fff;
  3830. position: absolute;
  3831. width: 100%;
  3832. top: 0px;
  3833. left: 0px;
  3834. border: 1px solid #eee;
  3835. border-radius: 5px;
  3836. transition: width 2s;
  3837. -moz-transition: width 2s;
  3838. -webkit-transition: width 2s;
  3839. -o-transition: width 2s;
  3840. }
  3841. .chapter_upload_l_i {
  3842. background-image: url("../../assets/icon.png");
  3843. background-position: 3px -165px;
  3844. width: 30px;
  3845. height: 30px;
  3846. margin: 10px auto 0 auto;
  3847. }
  3848. .left_first {
  3849. display: flex;
  3850. flex-direction: column;
  3851. flex-wrap: nowrap;
  3852. width: 65%;
  3853. }
  3854. .right_first {
  3855. width: 100%;
  3856. height: 100%;
  3857. margin-top: 15px;
  3858. }
  3859. .right_title {
  3860. height: 30px;
  3861. padding: 15px 0;
  3862. border-bottom: 1px solid #f2f2f2;
  3863. font-size: 1.5em;
  3864. font-weight: bold;
  3865. color: #0f7eff;
  3866. width: 95%;
  3867. margin: 0 auto;
  3868. }
  3869. .people {
  3870. border: 1px solid rgb(229 229 229);
  3871. height: 495px;
  3872. border-radius: 5px;
  3873. width: 100%;
  3874. overflow: auto;
  3875. }
  3876. .people_top {
  3877. display: flex;
  3878. width: 100%;
  3879. justify-content: space-between;
  3880. align-items: center;
  3881. }
  3882. .people_nav,
  3883. .people_top_right {
  3884. padding: 20px 0 0 20px;
  3885. }
  3886. .people_search {
  3887. display: flex;
  3888. position: relative;
  3889. }
  3890. .people_search >>> .el-input__inner {
  3891. height: 25px;
  3892. width: 95%;
  3893. }
  3894. .search_img {
  3895. width: 20px;
  3896. height: 20px;
  3897. position: absolute;
  3898. right: 15px;
  3899. top: 3px;
  3900. }
  3901. .search_img > img {
  3902. width: 100%;
  3903. height: 100%;
  3904. }
  3905. .people_name {
  3906. display: flex;
  3907. justify-content: flex-start;
  3908. padding: 20px 0 0 25px;
  3909. flex-direction: column;
  3910. flex-wrap: wrap;
  3911. }
  3912. .people_name >>> .el-checkbox {
  3913. width: 100%;
  3914. display: flex;
  3915. align-items: center;
  3916. margin-bottom: 10px;
  3917. }
  3918. .people_name >>> .el-checkbox__label {
  3919. text-overflow: ellipsis;
  3920. overflow: hidden;
  3921. width: 100%;
  3922. }
  3923. .right_img {
  3924. width: 150px;
  3925. height: 150px;
  3926. margin: 0 auto;
  3927. }
  3928. .right_img > img {
  3929. width: 100%;
  3930. height: 100%;
  3931. }
  3932. .number {
  3933. margin-top: 20px;
  3934. color: #4aa6ff;
  3935. text-decoration: underline;
  3936. }
  3937. .success_button {
  3938. display: flex;
  3939. text-align: center;
  3940. margin: 5% 0 auto;
  3941. flex-direction: row;
  3942. justify-content: center;
  3943. }
  3944. .look_course {
  3945. margin-right: 40px;
  3946. background: #3d67bc;
  3947. width: 200px;
  3948. height: 35px;
  3949. line-height: 35px;
  3950. color: #fff;
  3951. text-align: center;
  3952. font-size: 14px;
  3953. border-radius: 5px;
  3954. cursor: pointer;
  3955. }
  3956. .attend_others {
  3957. width: 250px;
  3958. background: #4fb13c;
  3959. height: 35px;
  3960. line-height: 35px;
  3961. color: #fff;
  3962. text-align: center;
  3963. font-size: 14px;
  3964. border-radius: 5px;
  3965. cursor: pointer;
  3966. }
  3967. .dialog_diy2 >>> .el-dialog__body {
  3968. text-align: center;
  3969. }
  3970. .write_togother {
  3971. position: absolute;
  3972. right: 45px;
  3973. display: flex;
  3974. top: 5%;
  3975. }
  3976. .write_people {
  3977. font-size: 14px;
  3978. line-height: 50px;
  3979. padding-right: 10px;
  3980. }
  3981. .end_write {
  3982. background: #3d67bc;
  3983. color: #fff;
  3984. width: 100px;
  3985. height: 35px;
  3986. line-height: 35px;
  3987. text-align: center;
  3988. font-size: 14px;
  3989. border-radius: 5px;
  3990. cursor: pointer;
  3991. }
  3992. .chapter_upload {
  3993. height: 50px;
  3994. margin-top: 12px;
  3995. position: relative;
  3996. display: flex;
  3997. align-items: center;
  3998. width: 100%;
  3999. min-height: 50px;
  4000. }
  4001. .chapter_upload_t {
  4002. background-color: #fff;
  4003. position: absolute;
  4004. height: 100%;
  4005. top: 0px;
  4006. left: 0px;
  4007. border-radius: 40px;
  4008. box-sizing: border-box;
  4009. box-shadow: 0 0 3px 3px #dfdfdf;
  4010. }
  4011. .chapter_upload_o {
  4012. width: 100%;
  4013. height: 100%;
  4014. position: relative;
  4015. z-index: 1;
  4016. }
  4017. .chapter_upload_ic {
  4018. height: 30px;
  4019. float: right;
  4020. }
  4021. .chapter_upload_ic_l {
  4022. width: 50px;
  4023. height: 50px;
  4024. float: left;
  4025. }
  4026. .chapter_upload_ic_l div {
  4027. width: 30px;
  4028. height: 35px;
  4029. background: url("../../assets/icon/icon.png");
  4030. }
  4031. .chapter_upload_ic_r {
  4032. width: 50px;
  4033. height: 50px;
  4034. float: left;
  4035. margin-left: 0px;
  4036. display: flex;
  4037. align-items: center;
  4038. }
  4039. .chapter_upload_ic_r div {
  4040. width: 25px;
  4041. height: 25px;
  4042. background-image: url("../../assets/delete.png");
  4043. background-size: 100% 100%;
  4044. }
  4045. .chapter_upload_n {
  4046. display: flex;
  4047. text-indent: 10px;
  4048. text-decoration: none;
  4049. text-overflow: ellipsis;
  4050. white-space: nowrap;
  4051. overflow: hidden;
  4052. width: 55%;
  4053. margin-left: 10px;
  4054. cursor: pointer;
  4055. margin-top: 2px;
  4056. }
  4057. .chapter_upload_l_i1 {
  4058. background-image: url("../../assets/icon/video.png");
  4059. width: 28px;
  4060. height: 28px;
  4061. background-size: 100% 100%;
  4062. }
  4063. .chapter_upload_l_i5 {
  4064. background-image: url("../../assets/icon/word.png");
  4065. width: 24px;
  4066. height: 24px;
  4067. background-size: 100% 100%;
  4068. }
  4069. .chapter_upload_l_i8 {
  4070. background-image: url("../../assets/icon/line.png");
  4071. width: 24px;
  4072. height: 24px;
  4073. background-size: 100% 100%;
  4074. }
  4075. .chapter_upload_ud {
  4076. display: flex;
  4077. flex-direction: column;
  4078. margin-left: 5px;
  4079. justify-content: center;
  4080. }
  4081. .chapter_upload_up {
  4082. background-image: url("../../assets/icon/up.png");
  4083. width: 17px;
  4084. height: 15px;
  4085. background-size: 100% 100%;
  4086. cursor: pointer;
  4087. }
  4088. .chapter_upload_down {
  4089. background-image: url("../../assets/icon/down.png");
  4090. width: 17px;
  4091. height: 15px;
  4092. margin: 2px auto 0 auto;
  4093. background-size: 100% 100%;
  4094. cursor: pointer;
  4095. }
  4096. .addWordStyle {
  4097. display: flex;
  4098. flex-direction: row;
  4099. justify-content: flex-start;
  4100. overflow-x: auto;
  4101. white-space: nowrap;
  4102. flex-wrap: wrap;
  4103. }
  4104. /* table 样式 */
  4105. .cont >>> table {
  4106. border-top: 1px solid #ccc;
  4107. border-left: 1px solid #ccc;
  4108. }
  4109. .cont >>> table td,
  4110. .cont >>> table th {
  4111. border-bottom: 1px solid #ccc;
  4112. border-right: 1px solid #ccc;
  4113. padding: 3px 5px;
  4114. }
  4115. .cont >>> table th {
  4116. border-bottom: 2px solid #ccc;
  4117. text-align: center;
  4118. }
  4119. /* blockquote 样式 */
  4120. .cont >>> blockquote {
  4121. display: block;
  4122. border-left: 8px solid #d0e5f2;
  4123. padding: 5px 10px;
  4124. margin: 10px 0;
  4125. line-height: 1.4;
  4126. font-size: 100%;
  4127. background-color: #f1f1f1;
  4128. }
  4129. /* code 样式 */
  4130. .cont >>> code {
  4131. display: inline-block;
  4132. *display: inline;
  4133. *zoom: 1;
  4134. background-color: #f1f1f1;
  4135. border-radius: 3px;
  4136. padding: 3px 5px;
  4137. margin: 0 3px;
  4138. }
  4139. .cont >>> pre code {
  4140. display: block;
  4141. }
  4142. /* ul ol 样式 */
  4143. .cont >>> ul,
  4144. ol {
  4145. margin: 10px 0 10px 20px;
  4146. }
  4147. .wordbox {
  4148. display: flex;
  4149. flex-wrap: wrap;
  4150. cursor: pointer;
  4151. width: 100%;
  4152. }
  4153. .checkword {
  4154. width: 22px;
  4155. height: 22px;
  4156. margin: 10px auto 0;
  4157. cursor: pointer;
  4158. }
  4159. .checkword img {
  4160. width: 100%;
  4161. }
  4162. .stepBg {
  4163. margin: 0 25px 0 0;
  4164. /* width: 17%; */
  4165. min-width: 300px;
  4166. width: 300px;
  4167. /* border-radius: 10px; */
  4168. display: flex;
  4169. flex-direction: column;
  4170. justify-content: flex-start;
  4171. align-items: center;
  4172. flex-wrap: nowrap;
  4173. background: #fff;
  4174. min-height: 700px;
  4175. height: 100%;
  4176. /* top: 18%; */
  4177. }
  4178. .stepBg > div {
  4179. height: 80px;
  4180. width: 85%;
  4181. cursor: pointer;
  4182. margin: 10px 0;
  4183. border-radius: 10px;
  4184. }
  4185. .first,
  4186. .second,
  4187. .third,
  4188. .four {
  4189. background: #4a83d0;
  4190. height: 90px;
  4191. color: #fff;
  4192. display: flex;
  4193. flex-direction: row;
  4194. align-items: center;
  4195. justify-content: center;
  4196. }
  4197. .first > div:nth-child(1),
  4198. .second > div:nth-child(1),
  4199. .third > div:nth-child(1),
  4200. .four > div:nth-child(1) {
  4201. margin: 5px 10px 0 0;
  4202. width: 2rem;
  4203. }
  4204. .firstNo,
  4205. .secondNo,
  4206. .thirdNo,
  4207. .fourNo {
  4208. background: #e7e7e7;
  4209. color: #adadad;
  4210. display: flex;
  4211. flex-direction: row;
  4212. align-items: center;
  4213. justify-content: center;
  4214. }
  4215. .firstNo > div:nth-child(1),
  4216. .secondNo > div:nth-child(1),
  4217. .thirdNo > div:nth-child(1),
  4218. .fourNo > div:nth-child(1) {
  4219. margin: 5px 10px 0 0;
  4220. width: 2rem;
  4221. }
  4222. .uploadWidth >>> .el-upload {
  4223. width: 60px;
  4224. height: 60px;
  4225. position: relative;
  4226. }
  4227. .addPeople {
  4228. background: #fa6060;
  4229. width: 135px;
  4230. height: 40px;
  4231. color: #fff;
  4232. border-radius: 5px;
  4233. text-align: center;
  4234. line-height: 40px;
  4235. font-size: 15px;
  4236. cursor: pointer;
  4237. margin-top: 20px;
  4238. }
  4239. .kcImg {
  4240. width: 60px;
  4241. margin-left: 10px;
  4242. }
  4243. .zyImg {
  4244. width: 55px;
  4245. margin: 0 10px;
  4246. }
  4247. .deleteZy {
  4248. width: 20px;
  4249. position: absolute;
  4250. top: 5px;
  4251. right: 5px;
  4252. cursor: pointer;
  4253. }
  4254. .kcImg > img,
  4255. .zyImg > img,
  4256. .deleteZy > img {
  4257. width: 100%;
  4258. height: 100%;
  4259. }
  4260. .zyBox {
  4261. display: flex;
  4262. flex-direction: row;
  4263. align-items: center;
  4264. background: #67d37d;
  4265. color: #fff;
  4266. width: 210px;
  4267. margin: 20px 20px 0 0;
  4268. border-radius: 10px;
  4269. height: 70px;
  4270. position: relative;
  4271. }
  4272. .upCss {
  4273. display: flex;
  4274. flex-direction: row;
  4275. justify-content: flex-start;
  4276. }
  4277. .upCss >>> .el-icon-plus {
  4278. position: none !important;
  4279. width: 200px;
  4280. height: 100px;
  4281. display: flex;
  4282. flex-wrap: nowrap;
  4283. flex-direction: column;
  4284. align-items: center;
  4285. justify-content: center;
  4286. border: 1px dashed #ccc;
  4287. min-width: 78px;
  4288. min-height: 100px;
  4289. z-index: 999;
  4290. }
  4291. .addStageImg {
  4292. min-width: 25px;
  4293. min-height: 25px;
  4294. width: 25px;
  4295. height: 25px;
  4296. cursor: pointer;
  4297. }
  4298. .addHW {
  4299. width: 28px;
  4300. height: 28px;
  4301. cursor: pointer;
  4302. }
  4303. .addStageImg > img,
  4304. .addHW > img {
  4305. width: 100%;
  4306. height: 100%;
  4307. }
  4308. .addNewPP >>> .el-dialog__body {
  4309. padding: 5px 20px;
  4310. }
  4311. .isHeight {
  4312. height: 680px;
  4313. }
  4314. .toolChoose {
  4315. display: flex;
  4316. /* width: 100%; */
  4317. flex-direction: row;
  4318. flex-wrap: wrap;
  4319. }
  4320. .tool {
  4321. display: flex;
  4322. flex-direction: column;
  4323. flex-wrap: nowrap;
  4324. width: fit-content;
  4325. margin: 10px 0 10px 0;
  4326. align-items: center;
  4327. }
  4328. .tool + .tool {
  4329. margin-right: 45px;
  4330. }
  4331. .whiteBIcon {
  4332. width: 80px;
  4333. cursor: pointer;
  4334. display: flex;
  4335. flex-direction: column;
  4336. flex-wrap: nowrap;
  4337. align-items: center;
  4338. }
  4339. .whiteBIcon > img,
  4340. .check > img,
  4341. .toolIcon > img,
  4342. .arrow > img {
  4343. width: 100%;
  4344. height: 100%;
  4345. }
  4346. .whiteBIcon > img {
  4347. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  4348. border-radius: 15px;
  4349. }
  4350. .check {
  4351. width: 20px;
  4352. height: 20px;
  4353. cursor: pointer;
  4354. margin: 10px 0;
  4355. }
  4356. .customWidth >>> .el-dialog {
  4357. min-width: 500px !important;
  4358. }
  4359. .a_addBox {
  4360. margin: 10px 0;
  4361. background: #fff;
  4362. padding: 15px;
  4363. max-height: 400px;
  4364. overflow: auto;
  4365. }
  4366. .a_add_box {
  4367. border-bottom: 2px solid #eee;
  4368. padding-bottom: 10px;
  4369. }
  4370. .a_add_head {
  4371. display: flex;
  4372. align-items: center;
  4373. justify-content: space-between;
  4374. margin: 10px 0;
  4375. font-size: 18px;
  4376. }
  4377. .a_add_head .a_add_head_input {
  4378. width: 300px;
  4379. }
  4380. .a_add_head .a_add_head_div {
  4381. display: flex;
  4382. align-items: center;
  4383. justify-content: space-between;
  4384. }
  4385. .a_add_body {
  4386. display: flex;
  4387. align-items: center;
  4388. }
  4389. .a_add_input {
  4390. display: flex;
  4391. align-items: center;
  4392. flex-wrap: wrap;
  4393. }
  4394. .width100 {
  4395. width: 100%;
  4396. }
  4397. .a_add_input .a_add_persent {
  4398. width: 100%;
  4399. }
  4400. .a_add_persent_div {
  4401. width: 100%;
  4402. display: flex;
  4403. align-items: center;
  4404. }
  4405. .a_add_persent_div span {
  4406. margin: 5px 0;
  4407. }
  4408. .a_add_persent_div span:nth-child(1) {
  4409. width: 30%;
  4410. }
  4411. .a_add_persent_div span:nth-child(2) {
  4412. width: 7%;
  4413. }
  4414. .a_add_persent_div span:nth-child(3) {
  4415. width: 40%;
  4416. }
  4417. .a_add_body_div {
  4418. display: flex;
  4419. align-items: center;
  4420. justify-content: center;
  4421. flex-direction: column;
  4422. }
  4423. .all_choose {
  4424. display: flex;
  4425. flex-direction: row;
  4426. align-items: flex-start;
  4427. }
  4428. .all_choose > span {
  4429. width: 80px;
  4430. display: block;
  4431. letter-spacing: 14px;
  4432. }
  4433. .all_choose >>> .el-checkbox-group {
  4434. display: flex;
  4435. flex-direction: row;
  4436. width: 820px;
  4437. flex-wrap: wrap;
  4438. align-content: center;
  4439. justify-content: flex-start;
  4440. align-items: center;
  4441. margin-top: 3px;
  4442. }
  4443. .all_choose > .el-checkbox-group >>> .el-checkbox {
  4444. margin-bottom: 10px;
  4445. display: flex;
  4446. flex-direction: row;
  4447. align-items: center;
  4448. }
  4449. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  4450. min-width: 80px;
  4451. overflow: hidden;
  4452. width: 80px;
  4453. text-overflow: ellipsis;
  4454. white-space: nowrap;
  4455. }
  4456. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  4457. width: auto;
  4458. }
  4459. .choose > div:nth-child(3) > span {
  4460. letter-spacing: 0 !important;
  4461. }
  4462. .choose {
  4463. display: flex;
  4464. flex-direction: column;
  4465. flex-wrap: nowrap;
  4466. height: 100%;
  4467. justify-content: space-evenly;
  4468. align-items: flex-start;
  4469. }
  4470. .both {
  4471. display: flex;
  4472. flex-direction: row;
  4473. flex-wrap: wrap;
  4474. width: 100%;
  4475. height: 350px;
  4476. align-items: center;
  4477. justify-content: flex-start;
  4478. }
  4479. .notice >>> .el-dialog {
  4480. width: 500px !important;
  4481. text-align: center;
  4482. }
  4483. .notice >>> .el-button {
  4484. margin-top: 20px;
  4485. }
  4486. .whiteBg {
  4487. background: #fff;
  4488. border-radius: 10px;
  4489. min-width: 800px;
  4490. }
  4491. .chooseWho {
  4492. display: flex;
  4493. width: 250px;
  4494. flex-direction: row;
  4495. flex-wrap: nowrap;
  4496. justify-content: space-between;
  4497. padding-bottom: 10px;
  4498. }
  4499. .chooseWho > div {
  4500. cursor: pointer;
  4501. padding-bottom: 10px;
  4502. font-weight: bold;
  4503. }
  4504. .isChooseActive {
  4505. color: #3e88f4;
  4506. border-bottom: 2px solid #2f80f3;
  4507. }
  4508. .toolSort {
  4509. display: flex;
  4510. flex-direction: row;
  4511. flex-wrap: wrap;
  4512. justify-content: flex-start;
  4513. align-items: flex-start;
  4514. min-width: 685px;
  4515. }
  4516. .toolSort > div {
  4517. margin-right: 45px;
  4518. }
  4519. .tools {
  4520. width: 100%;
  4521. display: flex;
  4522. flex-direction: column;
  4523. flex-wrap: nowrap;
  4524. align-items: flex-start;
  4525. }
  4526. .leftTools,
  4527. .rightTools {
  4528. width: 50%;
  4529. }
  4530. .rightTools {
  4531. display: flex;
  4532. flex-direction: row;
  4533. flex-wrap: nowrap;
  4534. justify-content: space-around;
  4535. }
  4536. .firstToolList {
  4537. display: flex;
  4538. flex-direction: column;
  4539. flex-wrap: nowrap;
  4540. align-items: center;
  4541. }
  4542. .iconList {
  4543. display: flex;
  4544. flex-direction: row;
  4545. flex-wrap: wrap;
  4546. justify-content: flex-start;
  4547. align-items: center;
  4548. margin: 20px 0 5px 0;
  4549. width: 240px;
  4550. min-width: 240px;
  4551. }
  4552. .iconTool {
  4553. display: flex;
  4554. flex-direction: column;
  4555. flex-wrap: nowrap;
  4556. align-items: center;
  4557. justify-content: flex-start;
  4558. margin: 15px 10px;
  4559. }
  4560. .toolIcon {
  4561. width: 50px;
  4562. }
  4563. .taskBorder {
  4564. border: 1px solid #e1e1e1;
  4565. border-radius: 10px;
  4566. margin-top: 20px;
  4567. min-height: 1160px;
  4568. position: relative;
  4569. background: #fbfbfb;
  4570. }
  4571. .smallTaskBorder {
  4572. height: 170px;
  4573. min-height: 170px !important;
  4574. overflow: hidden;
  4575. }
  4576. .taskBorder > div {
  4577. padding: 30px 0 10px 30px;
  4578. }
  4579. .addTaskBorder {
  4580. border: 2px solid #e1e1e1;
  4581. border-radius: 10px;
  4582. margin-top: 25px;
  4583. cursor: pointer;
  4584. }
  4585. .addTaskBorder > div {
  4586. margin: 0 auto;
  4587. display: flex;
  4588. align-items: center;
  4589. justify-content: center;
  4590. }
  4591. .addTaskBorder > div > img {
  4592. width: 100px;
  4593. }
  4594. .addTaskBorder > div > span {
  4595. font-size: 23px;
  4596. color: #dbdbdb;
  4597. }
  4598. .funBlock {
  4599. display: flex;
  4600. padding: 15px 0;
  4601. flex-direction: row;
  4602. justify-content: flex-end;
  4603. align-items: center;
  4604. position: absolute;
  4605. right: 15px;
  4606. bottom: 35px;
  4607. }
  4608. .fold {
  4609. display: flex;
  4610. margin: 0 10px;
  4611. flex-direction: row;
  4612. align-items: center;
  4613. cursor: pointer;
  4614. }
  4615. .arrow {
  4616. width: 15px;
  4617. height: 15px;
  4618. margin-left: 10px;
  4619. }
  4620. .addToolFun {
  4621. display: flex;
  4622. width: 150px;
  4623. flex-direction: row;
  4624. align-items: center;
  4625. justify-content: center;
  4626. border: 1px dashed;
  4627. border-radius: 5px;
  4628. height: 50px;
  4629. margin: 35px auto 0;
  4630. cursor: pointer;
  4631. }
  4632. .addToolImg {
  4633. width: 30px;
  4634. height: 30px;
  4635. margin-right: 20px;
  4636. }
  4637. .addToolsDia >>> .el-dialog__body {
  4638. padding: 20px;
  4639. }
  4640. .addToolsDia >>> .el-dialog__body > .toolChoose {
  4641. padding: 0;
  4642. }
  4643. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  4644. padding: 0;
  4645. border-bottom: none;
  4646. margin-bottom: 0;
  4647. }
  4648. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  4649. width: 100%;
  4650. }
  4651. .lineCss >>> .el-form-item__label {
  4652. width: auto !important;
  4653. }
  4654. .lineCss >>> .el-form-item__content {
  4655. margin-left: 50px !important;
  4656. }
  4657. .newSteps {
  4658. display: flex;
  4659. width: 100% !important;
  4660. height: 80px;
  4661. cursor: pointer;
  4662. margin: 10px 0;
  4663. border-radius: 10px;
  4664. flex-direction: row;
  4665. align-content: center;
  4666. justify-content: center;
  4667. align-items: center;
  4668. margin: 0 !important;
  4669. }
  4670. /* 评价样式 */
  4671. .elist_css {
  4672. padding-bottom: 60px !important;
  4673. }
  4674. .elist_title {
  4675. margin-bottom: 10px;
  4676. }
  4677. .elist_input {
  4678. }
  4679. .elist_input_box {
  4680. display: flex;
  4681. align-items: center;
  4682. flex-wrap: wrap;
  4683. }
  4684. .elist_input_box + .elist_input_box {
  4685. margin-top: 30px;
  4686. }
  4687. .elist_input .elist_input_box input {
  4688. font: inherit;
  4689. color: currentColor;
  4690. width: 200px;
  4691. padding: 8px 14px;
  4692. display: block;
  4693. min-width: 0;
  4694. outline: none;
  4695. border: 1px solid rgba(0, 0, 0, 0.23);
  4696. border-radius: 4px;
  4697. box-sizing: border-box;
  4698. background: #fff;
  4699. margin: 0 20px 0 0;
  4700. }
  4701. .elist_input .elist_input_box span {
  4702. height: 36px;
  4703. line-height: 36px;
  4704. color: rgb(82, 82, 82);
  4705. }
  4706. .elist_input .elist_input_box .remove {
  4707. height: 20px;
  4708. width: 20px;
  4709. background-size: 100% 100%;
  4710. background-position: unset;
  4711. margin-left: 5px;
  4712. }
  4713. .elist_input_box >>> .el-rate {
  4714. display: flex;
  4715. height: 36px;
  4716. align-items: center;
  4717. }
  4718. .elist_input_box .elist_inptu_text {
  4719. width: 100%;
  4720. display: flex;
  4721. align-items: center;
  4722. margin-top: 10px;
  4723. }
  4724. .elist_input_box .elist_inptu_text input {
  4725. width: 500px;
  4726. }
  4727. .elist_input_box >>> .el-rate__icon {
  4728. font-size: 24px;
  4729. }
  4730. .elist_btn {
  4731. margin-top: 10px;
  4732. }
  4733. .lineTitle {
  4734. /* font-size: 1.5em; */
  4735. /* font-weight: bold; */
  4736. margin-top: 15px;
  4737. /* width: 110px; */
  4738. /* min-width: 110px; */
  4739. }
  4740. .courseTop {
  4741. display: flex;
  4742. flex-direction: row;
  4743. justify-content: flex-start;
  4744. align-items: center;
  4745. /* width: 100%; */
  4746. width: calc(100% - 20px);
  4747. /* background: rgb(255, 255, 255); */
  4748. /* border-radius: 10px; */
  4749. padding: 20px 0;
  4750. }
  4751. .stepsNav {
  4752. display: flex;
  4753. flex-direction: row;
  4754. justify-content: flex-start;
  4755. align-items: center;
  4756. /* border-radius: 80px; */
  4757. /* box-shadow: 0px 1px 2px 3px #f2f2f2; */
  4758. /* margin: 30px 20px 20px 45px; */
  4759. min-width: 420px;
  4760. }
  4761. .stepsWord {
  4762. font-size: 18px;
  4763. color: #fff;
  4764. font-weight: bold;
  4765. margin-left: auto;
  4766. background: rgb(15, 126, 255);
  4767. border-radius: 5px;
  4768. padding: 3px 25px;
  4769. box-sizing: border-box;
  4770. }
  4771. .rightBox {
  4772. /* width: calc(83% - 25px); */
  4773. width: calc(100% - 20px);
  4774. background: rgb(255, 255, 255);
  4775. border-radius: 10px;
  4776. min-height: 550px;
  4777. /* min-width: 700px; */
  4778. /* height: 700px; */
  4779. overflow: auto;
  4780. }
  4781. </style>