addCourse.vue 131 KB

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