addCourse.vue 484 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  10. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  11. <el-breadcrumb
  12. separator-class="el-icon-arrow-right"
  13. style="margin-top: 15px"
  14. >
  15. <el-breadcrumb-item
  16. :to="{
  17. path:
  18. '/course?userid=' +
  19. userid +
  20. '&oid=' +
  21. oid +
  22. '&org=' +
  23. org +
  24. '&role=' +
  25. role,
  26. }"
  27. >课程管理</el-breadcrumb-item
  28. >
  29. <el-breadcrumb-item>
  30. <span style="color: rgb(15, 126, 255)">添加课程</span>
  31. </el-breadcrumb-item>
  32. </el-breadcrumb>
  33. </div>
  34. </div>
  35. <div
  36. class="rightBox"
  37. v-if="this.steps == 1"
  38. @mousewheel="scrollChange"
  39. >
  40. <div
  41. class="updateMask"
  42. :style="{
  43. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  44. }"
  45. v-if="cid && userid != courseUserid && role != '1'"
  46. ></div>
  47. <div class="whiteBg">
  48. <div
  49. class="right_title"
  50. :class="{
  51. updateTips: cid && userid != courseUserid && role != '1',
  52. }"
  53. >
  54. 课程基本信息
  55. </div>
  56. <div class="basic_box">
  57. <div class="big_box">
  58. <div class="left_first">
  59. <div>
  60. <div>
  61. <div class="bInfo_title" style="margin-bottom: 15px">
  62. <!-- <span style="color: red">*</span> -->
  63. 课程名称
  64. </div>
  65. <div style="display: flex; margin-right: 20px">
  66. <img
  67. src="../../../assets/icon/projectName.png"
  68. alt
  69. style="margin-right: 8px"
  70. />
  71. <input
  72. type="text"
  73. placeholder="请输入课程名称"
  74. class="binfo_input"
  75. v-model="courseName"
  76. />
  77. </div>
  78. </div>
  79. <div
  80. class="pType_box all_choose"
  81. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  82. >
  83. <span>类型</span>
  84. <!-- 学科+ 主题+ 未来+ -->
  85. <el-radio-group
  86. @change="CourseType2Change"
  87. v-model="pTypeCheckName"
  88. style="display: flex; align-items: center"
  89. >
  90. <div
  91. class="all_choose"
  92. style="width: 100px"
  93. v-for="(item, index) in CourseType2"
  94. :key="index"
  95. >
  96. <el-radio :label="item.name">{{
  97. item.name
  98. }}</el-radio>
  99. </div>
  100. </el-radio-group>
  101. </div>
  102. <div class="both">
  103. <div class="choose">
  104. <div
  105. class="all_choose"
  106. v-for="(item, index) in CourseType[0]"
  107. :key="index"
  108. >
  109. <span
  110. v-if="
  111. CourseTypeJson[item.id].length > 0 &&
  112. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  113. ? pTypeCheck.indexOf(item.id) != -1
  114. : true)
  115. "
  116. >{{ item.name }}</span
  117. >
  118. <el-checkbox-group
  119. v-model="courseTypeId"
  120. v-if="
  121. CourseTypeJson[item.id].length > 0 &&
  122. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  123. ? pTypeCheck.indexOf(item.id) != -1
  124. : true)
  125. "
  126. >
  127. <el-checkbox
  128. v-for="item1 in CourseTypeJson[item.id]"
  129. :key="item1.id"
  130. :label="item1.id"
  131. >{{ item1.name }}</el-checkbox
  132. >
  133. </el-checkbox-group>
  134. <!-- <div
  135. v-else
  136. style="font-size: 14px; margin-left: -8px"
  137. >
  138. 暂无
  139. </div> -->
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="whiteBg" style="border-radius: 0">
  149. <div class="right_first">
  150. <div class="right_title">上传封面</div>
  151. <div
  152. style="
  153. padding: 0 0 50px 20px;
  154. display: flex;
  155. align-items: baseline;
  156. justify-content: flex-start;
  157. margin: 0 auto;
  158. "
  159. >
  160. <div>
  161. <div class="bInfo_title" style="margin-top: 0 !important">
  162. 课程封面
  163. </div>
  164. <div
  165. class="uploadFm"
  166. @click="choosePicVisible = true"
  167. v-if="cover.length == 0"
  168. >
  169. <img src="../../../assets/icon/addPoster.png" alt="" />
  170. </div>
  171. <el-upload
  172. :class="{ disUoloadSty: noneBtnImg }"
  173. class="upCss"
  174. action="#"
  175. list-type="picture"
  176. v-loading="uploadLoading1"
  177. :http-request="beforeUpload1"
  178. ref="upload1"
  179. :on-preview="handlePictureCardPreview"
  180. :on-remove="handle_remove1"
  181. :show-file-list="true"
  182. :file-list="cover"
  183. accept="image/*"
  184. :limit="1"
  185. :on-exceed="onExceed"
  186. v-else
  187. >
  188. <i class="el-icon-plus"></i>
  189. </el-upload>
  190. </div>
  191. <div
  192. style="
  193. display: flex;
  194. flex-flow: row nowrap;
  195. flex-direction: row;
  196. flex-wrap: wrap;
  197. align-items: baseline;
  198. margin: 0 30px;
  199. "
  200. >
  201. <div style="margin: 0 30px 0 0; width: 150px">
  202. <div class="bInfo_title">添加班级</div>
  203. <div
  204. class="addPeople"
  205. @click="
  206. (dialogVisibleClass = true),
  207. (classSearch = ''),
  208. getClass()
  209. "
  210. >
  211. 添加班级
  212. </div>
  213. <div
  214. v-if="checkboxList2.length"
  215. style="
  216. max-width: 100%;
  217. word-break: break-all;
  218. overflow: hidden;
  219. margin-top: 10px;
  220. font-size: 14px;
  221. color: #6e6e6e;
  222. "
  223. >
  224. <span
  225. :class="{ tcMember: getClassC(tc) }"
  226. v-for="(tc, tcIndex) in checkboxList2"
  227. :key="tcIndex"
  228. >{{ getClassC(tc) }}</span
  229. >
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <div style="width: 95%; padding: 15px 0px 15px 20px">
  235. <el-switch
  236. v-model="isTeacherSee"
  237. active-text="是否公开此课程"
  238. style="padding-bottom: 30px"
  239. ></el-switch>
  240. </div>
  241. </div>
  242. </div>
  243. <div
  244. class="whiteBg"
  245. style="border-radius: 0; margin-top: 15px"
  246. v-if="false"
  247. >
  248. <div class="right_title">课程简要描述</div>
  249. <div style="width: 95%; padding: 15px 0px 15px 20px">
  250. <div style="width: 55%">
  251. <textarea
  252. rows="8"
  253. class="binfo_input"
  254. cols
  255. v-model="courseText"
  256. :placeholder="
  257. '1、课程内容说明' +
  258. '\n' +
  259. '2、课程学习知识目标' +
  260. '\n' +
  261. '3、课程学习技能目标'
  262. "
  263. ></textarea>
  264. </div>
  265. </div>
  266. </div>
  267. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  268. <div class="right_title">
  269. <span>上传课程内容</span>
  270. <el-button type="primary" @click="pasteTask" size="mini" style="margin-left:10px"
  271. >智能粘贴</el-button
  272. >
  273. </div>
  274. <div style="padding: 0 0 50px 20px; display: flex">
  275. <div class="course_left">
  276. <div class="stepsBottom2">
  277. <div class="navTop">辅助导航</div>
  278. <div class="navBottom">
  279. <div
  280. class="navTask"
  281. :class="{
  282. isNavTask:
  283. isClickColor > 0 && isClickColor == tIndex + 1,
  284. }"
  285. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  286. .taskJson"
  287. :key="tIndex"
  288. @click="goToTask(tIndex)"
  289. >
  290. <div>任务{{ tIndex + 1 }}</div>
  291. <div>
  292. <el-tooltip
  293. effect="light"
  294. :content="t.task"
  295. placement="top"
  296. >
  297. <span>{{ t.task }}</span>
  298. </el-tooltip>
  299. </div>
  300. <div
  301. class="moveBtn"
  302. v-if="
  303. unitJson[unitIndex].chapterInfo[0].taskJson.length >
  304. 1
  305. "
  306. >
  307. <div
  308. class="chapter_upload_up"
  309. style="width: 15px; height: 15px"
  310. @click.stop="taskMove(1, tIndex)"
  311. ></div>
  312. <div
  313. class="chapter_upload_down"
  314. style="width: 15px; height: 15px; margin: 2px 0 0"
  315. @click.stop="taskMove(2, tIndex)"
  316. ></div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="basic_box2">
  323. <div
  324. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  325. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  326. :key="index"
  327. >
  328. <div
  329. class="taskBorder"
  330. :style="{
  331. minHeight: unitJson[unitIndex].easy && 'unset',
  332. }"
  333. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  334. :key="itemTaskIndex"
  335. >
  336. <div v-if="unitJson[unitIndex].easy != 1">
  337. <div
  338. :style="{
  339. marginBottom:
  340. unitJson[unitIndex].easy == 3 ||
  341. (unitJson[unitIndex].easy == 5 &&
  342. itemTask.taskType == 1)
  343. ? '75px'
  344. : '0',
  345. }"
  346. >
  347. <div
  348. style="font-size: 22px; color: #8e8e8e"
  349. :id="'task' + itemTaskIndex"
  350. >
  351. 任务{{ itemTaskIndex + 1 }}
  352. </div>
  353. <div
  354. class="chapter_contentbox"
  355. style="
  356. flex-direction: row;
  357. justify-content: flex-start;
  358. align-items: center;
  359. "
  360. >
  361. <div
  362. style="
  363. border-left: 6px solid #5699e8;
  364. height: 20px;
  365. padding-left: 10px;
  366. line-height: 22px;
  367. "
  368. >
  369. 任务名称
  370. </div>
  371. <div>
  372. <input
  373. type="text"
  374. placeholder="输入任务名称"
  375. class="binfo_input"
  376. style="border-radius: 4px"
  377. v-model="
  378. unitJson[unitIndex].chapterInfo[0].taskJson[
  379. itemTaskIndex
  380. ].task
  381. "
  382. />
  383. </div>
  384. <div
  385. class="remove"
  386. v-if="item.taskJson.length > 1"
  387. @click="deleteTask(itemTaskIndex)"
  388. style="position: absolute; right: 55px"
  389. ></div>
  390. </div>
  391. </div>
  392. </div>
  393. <div style="padding: 25px 0 10px 30px">
  394. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  395. itemTaskIndex
  396. ].taskDetail
  397. " @change="change"></editor-bar> -->
  398. <textarea
  399. rows="2"
  400. class="binfo_input"
  401. placeholder="请输入任务描述"
  402. cols
  403. style="width: 90% !important; resize: none"
  404. v-model="
  405. unitJson[unitIndex].chapterInfo[0].taskJson[
  406. itemTaskIndex
  407. ].taskDetail
  408. "
  409. ></textarea>
  410. </div>
  411. <div
  412. class="basic_box"
  413. style="
  414. margin: 0;
  415. min-height: 0;
  416. width: 90% !important;
  417. padding-top: 10px !important;
  418. "
  419. >
  420. <div
  421. style="
  422. display: flex;
  423. margin: 0 0 20px 0;
  424. flex-direction: row;
  425. justify-content: flex-start;
  426. align-items: center;
  427. "
  428. >
  429. <div class="lineTitle">学习内容</div>
  430. <div class="line"></div>
  431. </div>
  432. <div>
  433. <div
  434. class="add_chapters_box"
  435. v-if="
  436. itemTask.chapterData &&
  437. itemTask.chapterData.length == 0
  438. "
  439. style="height: 185px"
  440. ></div>
  441. <div
  442. v-else
  443. class="add_chapters_box"
  444. style="display: flex; flex-direction: column"
  445. >
  446. <div
  447. class="chapter_upload"
  448. v-for="(item1, index1) in itemTask.chapterData"
  449. :key="item1.id"
  450. @click="
  451. getChapterData(
  452. $event,
  453. unitIndex,
  454. index,
  455. index1,
  456. item1.type
  457. )
  458. "
  459. >
  460. <div
  461. class="chapter_upload_t"
  462. style="width: 100%"
  463. ></div>
  464. <div
  465. class="chapter_upload_o"
  466. style="
  467. position: relative;
  468. display: flex;
  469. align-items: center;
  470. "
  471. >
  472. <div
  473. class="chapter_upload_l"
  474. style="padding: 1px 0 0 10px"
  475. >
  476. <div
  477. v-if="item1.type == 2"
  478. class="chapter_upload_l_i1"
  479. ></div>
  480. <div
  481. v-if="
  482. item1.type == 3 ||
  483. item1.type == 12 ||
  484. item1.type == 13 ||
  485. item1.type == 6 ||
  486. item1.type == 7
  487. "
  488. class="chapter_upload_l_i5"
  489. style="margin-left: 1px"
  490. ></div>
  491. <div
  492. v-if="item1.type == 8"
  493. class="chapter_upload_l_i8"
  494. style="margin-left: 1px"
  495. ></div>
  496. </div>
  497. <div
  498. class="chapter_upload_ic"
  499. style="
  500. cursor: pointer;
  501. position: absolute;
  502. width: 45px;
  503. right: 0;
  504. top: 0;
  505. "
  506. >
  507. <div class="chapter_upload_ic_l"></div>
  508. <div
  509. class="chapter_upload_ic_r"
  510. style="position: absolute"
  511. @click.stop="
  512. deleteChapterData(
  513. $event,
  514. unitIndex,
  515. index,
  516. index1,
  517. itemTaskIndex
  518. )
  519. "
  520. >
  521. <div></div>
  522. </div>
  523. </div>
  524. <div class="chapter_upload_n">
  525. <input
  526. v-if="
  527. item1.type == 2 ||
  528. item1.type == 3 ||
  529. item1.type == 12 ||
  530. item1.type == 13 ||
  531. item1.type == 7
  532. "
  533. :placeholder="item1.name"
  534. @change="
  535. updataVideoT(
  536. $event,
  537. unitIndex,
  538. chapterIndex,
  539. index1
  540. )
  541. "
  542. style="
  543. border: none;
  544. outline: none;
  545. width: 80%;
  546. minwidth: 215px;
  547. z-index: 99;
  548. font-size: 14px;
  549. white-space: nowrap;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. "
  553. />
  554. <input
  555. :placeholder="item1.name"
  556. v-if="item1.type == 6"
  557. style="
  558. border: none;
  559. outline: none;
  560. width: 80%;
  561. white-space: nowrap;
  562. overflow: hidden;
  563. text-overflow: ellipsis;
  564. "
  565. readonly="true"
  566. @click="
  567. selectAttText(itemTaskIndex, index1)
  568. "
  569. />
  570. <input
  571. :placeholder="
  572. item1.title ? item1.title : '链接'
  573. "
  574. v-if="item1.type == 8"
  575. style="
  576. border: none;
  577. outline: none;
  578. width: 80%;
  579. white-space: nowrap;
  580. overflow: hidden;
  581. text-overflow: ellipsis;
  582. "
  583. readonly="true"
  584. @click="selectLine(itemTaskIndex, index1)"
  585. />
  586. <div
  587. class="chapter_upload_ud"
  588. style="z-index: 99"
  589. >
  590. <div
  591. class="chapter_upload_up"
  592. @click="
  593. upCd(
  594. $event,
  595. unitIndex,
  596. index,
  597. itemTaskIndex,
  598. index1
  599. )
  600. "
  601. ></div>
  602. <div
  603. class="chapter_upload_down"
  604. @click="
  605. downCd(
  606. $event,
  607. unitIndex,
  608. index,
  609. itemTaskIndex,
  610. index1
  611. )
  612. "
  613. ></div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. </div>
  620. <div class="add_info_box">
  621. <button class="info_btn" @click="addImg($event)">
  622. 添加文件
  623. <input
  624. type="file"
  625. accept="*"
  626. style="display: none"
  627. v-if="inputShow"
  628. @change="
  629. beforeUpload2(
  630. $event,
  631. unitIndex,
  632. 13,
  633. itemTaskIndex
  634. )
  635. "
  636. />
  637. </button>
  638. <!-- <button class="info_btn" @click="addImg($event)">
  639. 添加视频
  640. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  641. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  642. " />
  643. </button>
  644. <button class="info_btn" @click="addImg($event)">
  645. 添加文档
  646. <input type="file"
  647. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  648. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  649. " />
  650. </button> -->
  651. <button
  652. class="info_btn"
  653. @click="addAttText(itemTaskIndex)"
  654. >
  655. 添加图文
  656. </button>
  657. <button
  658. class="info_btn"
  659. @click="openLine(itemTaskIndex)"
  660. >
  661. 添加链接
  662. </button>
  663. <button
  664. class="info_btn"
  665. @click="pasteLine(itemTaskIndex)"
  666. >
  667. 嵌入代码
  668. </button>
  669. <button
  670. class="info_btn"
  671. @click="openSource(itemTaskIndex)"
  672. >
  673. 添加资源
  674. </button>
  675. <!-- <button class="info_btn" @click="addImg($event)">
  676. 其他附件
  677. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  678. " />
  679. </button> -->
  680. </div>
  681. <div
  682. v-if="
  683. unitJson[unitIndex].chapterInfo[0].taskJson[
  684. itemTaskIndex
  685. ].proVisible
  686. "
  687. class="mask"
  688. >
  689. <div class="progressBox">
  690. <!-- <div id="closePro" class="closeCss">
  691. <img src="../../../../assets/icon/close.png" alt />
  692. </div> -->
  693. <div class="lbox">
  694. <img
  695. src="../../../assets/loading.gif"
  696. />上传中,请稍后
  697. </div>
  698. <div style="margin-bottom: 10px">
  699. <span
  700. >{{
  701. unitJson[unitIndex].chapterInfo[0].taskJson[
  702. itemTaskIndex
  703. ].isFinishSize
  704. }}M</span
  705. >
  706. /
  707. <span
  708. >{{
  709. unitJson[unitIndex].chapterInfo[0].taskJson[
  710. itemTaskIndex
  711. ].isAllSize
  712. }}M</span
  713. >
  714. </div>
  715. <el-progress
  716. :text-inside="true"
  717. :stroke-width="20"
  718. :percentage="
  719. unitJson[unitIndex].chapterInfo[0].taskJson[
  720. itemTaskIndex
  721. ].progress
  722. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  723. itemTaskIndex
  724. ].progress
  725. : 0
  726. "
  727. style="width: 80%"
  728. ></el-progress>
  729. </div>
  730. </div>
  731. </div>
  732. <div class="toolChoose" style="padding: 0 0 0 30px">
  733. <div class="tools">
  734. <div
  735. class="leftTools"
  736. style="
  737. width: 95%;
  738. padding: 0 0 15px 0;
  739. border-bottom: 1px solid #efefef;
  740. margin-bottom: 15px;
  741. "
  742. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  743. :key="toolIndex"
  744. >
  745. <div>
  746. <textarea
  747. rows="3"
  748. type="text"
  749. placeholder="添加工具描述"
  750. class="binfo_input"
  751. style="
  752. margin: 0 0 20px 0;
  753. width: 71.5% !important;
  754. "
  755. v-model="itemTool.toolDetail"
  756. ></textarea>
  757. </div>
  758. <div
  759. style="
  760. display: flex;
  761. flex-direction: row;
  762. align-items: baseline;
  763. flex-wrap: nowrap;
  764. justify-content: flex-start;
  765. position: relative;
  766. "
  767. >
  768. <div
  769. style="margin-right: 20px; font-weight: bold"
  770. >
  771. 步骤 {{ toolIndex + 1 }} :
  772. </div>
  773. <div class="chooseWho">
  774. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  775. " @click="(itemTool.toolType = 0), $forceUpdate()">
  776. 互动类
  777. </div> -->
  778. <div
  779. :class="
  780. itemTool.toolType == 1
  781. ? 'isChooseActive'
  782. : ''
  783. "
  784. @click="
  785. (itemTool.toolType = 1), $forceUpdate()
  786. "
  787. >
  788. 思维类
  789. </div>
  790. <div
  791. :class="
  792. itemTool.toolType == 6
  793. ? 'isChooseActive'
  794. : ''
  795. "
  796. @click="
  797. (itemTool.toolType = 6), $forceUpdate()
  798. "
  799. >
  800. 协作类
  801. </div>
  802. <div
  803. :class="
  804. itemTool.toolType == 2
  805. ? 'isChooseActive'
  806. : ''
  807. "
  808. @click="
  809. (itemTool.toolType = 2), $forceUpdate()
  810. "
  811. >
  812. 测评类
  813. </div>
  814. <div
  815. :class="
  816. itemTool.toolType == 7
  817. ? 'isChooseActive'
  818. : ''
  819. "
  820. @click="
  821. (itemTool.toolType = 7), $forceUpdate()
  822. "
  823. >
  824. 评价类
  825. </div>
  826. <div
  827. :class="
  828. itemTool.toolType == 3
  829. ? 'isChooseActive'
  830. : ''
  831. "
  832. @click="
  833. (itemTool.toolType = 3), $forceUpdate()
  834. "
  835. >
  836. 学科类
  837. </div>
  838. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  839. " @click="(itemTool.toolType = 5), $forceUpdate()">
  840. 学科类
  841. </div>
  842. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  843. " @click="(itemTool.toolType = 4), $forceUpdate()">
  844. 其他
  845. </div> -->
  846. </div>
  847. <div
  848. class="remove"
  849. @click="deleteTool(itemTaskIndex, toolIndex)"
  850. v-if="itemTask.toolChoose.length > 1"
  851. style="position: absolute; right: 55px"
  852. ></div>
  853. </div>
  854. <div style="min-height: 163px">
  855. <div
  856. class="toolSort"
  857. v-if="itemTool.toolType == 0"
  858. >
  859. <!-- <div class="tool">
  860. <div
  861. class="whiteBIcon"
  862. @click="addTools(8, itemTaskIndex, toolIndex)"
  863. >
  864. <img src="../../../assets/icon/secondToolList/library.png" alt />
  865. <div style="margin: 5px 0">素材库</div>
  866. </div>
  867. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  868. <img
  869. src="../../../assets/icon/checkNo.png"
  870. alt
  871. v-if="itemTool.tool.indexOf(8) == -1"
  872. />
  873. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  874. alt /><span>已选择</span></div>
  875. </div>
  876. </div>-->
  877. <!-- <div class="tool">
  878. <div
  879. class="whiteBIcon"
  880. @click="addTools(17, itemTaskIndex, toolIndex)"
  881. >
  882. <img
  883. src="../../../assets/icon/secondToolList/library.png"
  884. alt
  885. />
  886. <div style="margin: 5px 0">学习资料</div>
  887. </div>
  888. <div
  889. class="check"
  890. @click="addTools(17, itemTaskIndex, toolIndex)"
  891. >
  892. <img
  893. src="../../../assets/icon/checkNo.png"
  894. alt
  895. v-if="itemTool.tool.indexOf(17) == -1"
  896. />
  897. <img
  898. src="../../../assets/icon/checkedIs.png"
  899. alt
  900. v-else
  901. />
  902. </div>10
  903. </div> -->
  904. <div class="tool">
  905. <div
  906. class="whiteBIcon"
  907. @click="
  908. openTools(itemTaskIndex, 10, toolIndex)
  909. "
  910. >
  911. <img
  912. src="../../../assets/icon/thirdToolList/time.png"
  913. alt
  914. />
  915. <div style="margin: 5px 0">倒计时</div>
  916. </div>
  917. <div
  918. class="check"
  919. @click="
  920. addTools(10, itemTaskIndex, toolIndex)
  921. "
  922. >
  923. <img
  924. src="../../../assets/icon/checkNo.png"
  925. alt
  926. v-if="itemTool.tool.indexOf(10) == -1"
  927. />
  928. <div class="checkDiv" v-else>
  929. <img
  930. src="../../../assets/icon/checkedIs.png"
  931. alt
  932. /><span>已选择</span>
  933. </div>
  934. </div>
  935. </div>
  936. <!-- <div class="tool">
  937. <div
  938. class="whiteBIcon"
  939. @click="
  940. openTools(itemTaskIndex, 49, toolIndex)
  941. "
  942. >
  943. <img
  944. src="../../../assets/icon/fourthToolList/group.png"
  945. alt
  946. />
  947. <div style="margin: 5px 0">学生分组</div>
  948. </div>
  949. <div
  950. class="check"
  951. @click="
  952. addTools(49, itemTaskIndex, toolIndex)
  953. "
  954. >
  955. <img
  956. src="../../../assets/icon/checkNo.png"
  957. alt
  958. v-if="itemTool.tool.indexOf(49) == -1"
  959. />
  960. <div class="checkDiv" v-else>
  961. <img
  962. src="../../../assets/icon/checkedIs.png"
  963. alt
  964. /><span>已选择</span>
  965. </div>
  966. </div>
  967. </div> -->
  968. <div class="tool">
  969. <div
  970. class="whiteBIcon"
  971. @click="
  972. openTools(itemTaskIndex, 62, toolIndex)
  973. "
  974. >
  975. <img
  976. src="../../../assets/icon/fourthToolList/interVideo.png"
  977. alt
  978. />
  979. <div style="margin: 5px 0">交互视频</div>
  980. </div>
  981. <div
  982. class="check"
  983. @click="
  984. addTools(62, itemTaskIndex, toolIndex)
  985. "
  986. >
  987. <img
  988. src="../../../assets/icon/checkNo.png"
  989. alt
  990. v-if="itemTool.tool.indexOf(62) == -1"
  991. />
  992. <div class="checkDiv" v-else>
  993. <img
  994. src="../../../assets/icon/checkedIs.png"
  995. alt
  996. /><span>已选择</span>
  997. </div>
  998. </div>
  999. </div>
  1000. </div>
  1001. <div
  1002. class="toolSort"
  1003. v-if="itemTool.toolType == 1"
  1004. >
  1005. <div class="tool">
  1006. <div
  1007. class="whiteBIcon"
  1008. @click="
  1009. addTools(7, itemTaskIndex, toolIndex)
  1010. "
  1011. >
  1012. <img
  1013. src="../../../assets/icon/secondToolList/mindNetwork.png"
  1014. alt
  1015. />
  1016. <div style="margin: 5px 0">思维网格</div>
  1017. </div>
  1018. <div
  1019. class="check"
  1020. @click="
  1021. addTools(7, itemTaskIndex, toolIndex)
  1022. "
  1023. >
  1024. <img
  1025. src="../../../assets/icon/checkNo.png"
  1026. alt
  1027. v-if="itemTool.tool.indexOf(7) == -1"
  1028. />
  1029. <div class="checkDiv" v-else>
  1030. <img
  1031. src="../../../assets/icon/checkedIs.png"
  1032. alt
  1033. /><span>已选择</span>
  1034. </div>
  1035. </div>
  1036. </div>
  1037. <div class="tool">
  1038. <div
  1039. class="whiteBIcon"
  1040. @click="
  1041. openTools(itemTaskIndex, 1, toolIndex)
  1042. "
  1043. >
  1044. <img
  1045. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">电子白板</div>
  1049. </div>
  1050. <div
  1051. class="check"
  1052. @click="
  1053. addTools(1, itemTaskIndex, toolIndex)
  1054. "
  1055. >
  1056. <img
  1057. src="../../../assets/icon/checkNo.png"
  1058. alt
  1059. v-if="itemTool.tool.indexOf(1) == -1"
  1060. />
  1061. <div class="checkDiv" v-else>
  1062. <img
  1063. src="../../../assets/icon/checkedIs.png"
  1064. alt
  1065. /><span>已选择</span>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. <!-- <div class="tool">
  1070. <div
  1071. class="whiteBIcon"
  1072. @click="addTools(2, itemTaskIndex, toolIndex)"
  1073. >
  1074. <img
  1075. src="../../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div
  1081. class="check"
  1082. @click="addTools(2, itemTaskIndex, toolIndex)"
  1083. >
  1084. <img
  1085. src="../../../assets/icon/checkNo.png"
  1086. alt
  1087. v-if="itemTool.tool.indexOf(2) == -1"
  1088. />
  1089. <div class="checkDiv" v-else>
  1090. <img
  1091. src="../../../assets/icon/checkedIs.png"
  1092. alt
  1093. /><span>已选择</span>
  1094. </div>
  1095. </div>
  1096. </div> -->
  1097. <!-- <div class="tool">
  1098. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1099. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1100. <div style="margin: 5px 0">协同文档</div>
  1101. </div>
  1102. <div
  1103. class="check"
  1104. @click="addTools(6, itemTaskIndex, toolIndex)"
  1105. >
  1106. <img
  1107. src="../../../assets/icon/checkNo.png"
  1108. alt
  1109. v-if="itemTool.tool.indexOf(6) == -1"
  1110. />
  1111. <div class="checkDiv" v-else>
  1112. <img
  1113. src="../../../assets/icon/checkedIs.png"
  1114. alt
  1115. /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div> -->
  1119. <div class="tool">
  1120. <div
  1121. class="whiteBIcon"
  1122. @click="
  1123. openTools(itemTaskIndex, 52, toolIndex)
  1124. "
  1125. >
  1126. <img
  1127. src="../../../assets/icon/fourthToolList/text.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">文档</div>
  1131. </div>
  1132. <div
  1133. class="check"
  1134. @click="
  1135. addTools(52, itemTaskIndex, toolIndex)
  1136. "
  1137. >
  1138. <img
  1139. src="../../../assets/icon/checkNo.png"
  1140. alt
  1141. v-if="itemTool.tool.indexOf(52) == -1"
  1142. />
  1143. <div class="checkDiv" v-else>
  1144. <img
  1145. src="../../../assets/icon/checkedIs.png"
  1146. alt
  1147. /><span>已选择</span>
  1148. </div>
  1149. </div>
  1150. </div>
  1151. <div class="tool">
  1152. <div
  1153. class="whiteBIcon"
  1154. @click="
  1155. openTools(itemTaskIndex, 3, toolIndex)
  1156. "
  1157. >
  1158. <img
  1159. src="../../../assets/icon/secondToolList/mindMapping.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">思维导图</div>
  1163. </div>
  1164. <div
  1165. class="check"
  1166. @click="
  1167. addTools(3, itemTaskIndex, toolIndex)
  1168. "
  1169. >
  1170. <img
  1171. src="../../../assets/icon/checkNo.png"
  1172. alt
  1173. v-if="itemTool.tool.indexOf(3) == -1"
  1174. />
  1175. <div class="checkDiv" v-else>
  1176. <img
  1177. src="../../../assets/icon/checkedIs.png"
  1178. alt
  1179. /><span>已选择</span>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <div class="tool">
  1184. <div
  1185. class="whiteBIcon"
  1186. @click="
  1187. openTools(itemTaskIndex, 48, toolIndex)
  1188. "
  1189. >
  1190. <img
  1191. src="../../../assets/icon/fourthToolList/table.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">表格</div>
  1195. </div>
  1196. <div
  1197. class="check"
  1198. @click="
  1199. addTools(48, itemTaskIndex, toolIndex)
  1200. "
  1201. >
  1202. <img
  1203. src="../../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="itemTool.tool.indexOf(48) == -1"
  1206. />
  1207. <div class="checkDiv" v-else>
  1208. <img
  1209. src="../../../assets/icon/checkedIs.png"
  1210. alt
  1211. /><span>已选择</span>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. </div>
  1216. <div
  1217. class="toolSort"
  1218. v-if="itemTool.toolType == 6"
  1219. >
  1220. <div class="tool">
  1221. <div
  1222. class="whiteBIcon"
  1223. @click="
  1224. openTools(itemTaskIndex, 49, toolIndex)
  1225. "
  1226. >
  1227. <img
  1228. src="../../../assets/icon/fourthToolList/group.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">学生分组</div>
  1232. </div>
  1233. <div
  1234. class="check"
  1235. @click="
  1236. addTools(49, itemTaskIndex, toolIndex)
  1237. "
  1238. >
  1239. <img
  1240. src="../../../assets/icon/checkNo.png"
  1241. alt
  1242. v-if="itemTool.tool.indexOf(49) == -1"
  1243. />
  1244. <div class="checkDiv" v-else>
  1245. <img
  1246. src="../../../assets/icon/checkedIs.png"
  1247. alt
  1248. /><span>已选择</span>
  1249. </div>
  1250. </div>
  1251. </div>
  1252. </div>
  1253. <div
  1254. class="toolSort"
  1255. v-if="itemTool.toolType == 2"
  1256. >
  1257. <!-- <div class="tool">
  1258. <div
  1259. class="whiteBIcon"
  1260. @click="addTools(5, itemTaskIndex, toolIndex)"
  1261. >
  1262. <img
  1263. src="../../../assets/icon/thirdToolList/score.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">量规评分</div>
  1267. </div>
  1268. <div
  1269. class="check"
  1270. @click="addTools(5, itemTaskIndex, toolIndex)"
  1271. >
  1272. <img
  1273. src="../../../assets/icon/checkNo.png"
  1274. alt
  1275. v-if="itemTool.tool.indexOf(5) == -1"
  1276. />
  1277. <img
  1278. src="../../../assets/icon/checkedIs.png"
  1279. alt
  1280. v-else
  1281. />
  1282. </div>
  1283. </div>-->
  1284. <div class="tool">
  1285. <div
  1286. class="whiteBIcon"
  1287. @click="
  1288. openTools(itemTaskIndex, 4, toolIndex)
  1289. "
  1290. >
  1291. <img
  1292. src="../../../assets/icon/thirdToolList/ask.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">问卷调查</div>
  1296. </div>
  1297. <div
  1298. class="check"
  1299. @click="
  1300. addTools(4, itemTaskIndex, toolIndex)
  1301. "
  1302. >
  1303. <img
  1304. src="../../../assets/icon/checkNo.png"
  1305. alt
  1306. v-if="itemTool.tool.indexOf(4) == -1"
  1307. />
  1308. <div class="checkDiv" v-else>
  1309. <img
  1310. src="../../../assets/icon/checkedIs.png"
  1311. alt
  1312. /><span>已选择</span>
  1313. </div>
  1314. </div>
  1315. </div>
  1316. <div class="tool">
  1317. <div
  1318. class="whiteBIcon"
  1319. @click="
  1320. openTools(itemTaskIndex, 45, toolIndex)
  1321. "
  1322. >
  1323. <img
  1324. src="../../../assets/icon/thirdToolList/choose.png"
  1325. alt
  1326. />
  1327. <div style="margin: 5px 0">选择题</div>
  1328. </div>
  1329. <div
  1330. class="check"
  1331. @click="
  1332. addTools(45, itemTaskIndex, toolIndex)
  1333. "
  1334. >
  1335. <img
  1336. src="../../../assets/icon/checkNo.png"
  1337. alt
  1338. v-if="itemTool.tool.indexOf(45) == -1"
  1339. />
  1340. <div class="checkDiv" v-else>
  1341. <img
  1342. src="../../../assets/icon/checkedIs.png"
  1343. alt
  1344. /><span>已选择</span>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. <div class="tool">
  1349. <div
  1350. class="whiteBIcon"
  1351. @click="
  1352. openTools(itemTaskIndex, 15, toolIndex)
  1353. "
  1354. >
  1355. <img
  1356. src="../../../assets/icon/thirdToolList/answer.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">问答工具</div>
  1360. </div>
  1361. <div
  1362. class="check"
  1363. @click="
  1364. addTools(15, itemTaskIndex, toolIndex)
  1365. "
  1366. >
  1367. <img
  1368. src="../../../assets/icon/checkNo.png"
  1369. alt
  1370. v-if="itemTool.tool.indexOf(15) == -1"
  1371. />
  1372. <div class="checkDiv" v-else>
  1373. <img
  1374. src="../../../assets/icon/checkedIs.png"
  1375. alt
  1376. /><span>已选择</span>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. <div class="tool">
  1381. <div
  1382. class="whiteBIcon"
  1383. @click="
  1384. addTools(16, itemTaskIndex, toolIndex)
  1385. "
  1386. >
  1387. <img
  1388. src="../../../assets/icon/thirdToolList/work.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">作业提交</div>
  1392. </div>
  1393. <div
  1394. class="check"
  1395. @click="
  1396. addTools(16, itemTaskIndex, toolIndex)
  1397. "
  1398. >
  1399. <img
  1400. src="../../../assets/icon/checkNo.png"
  1401. alt
  1402. v-if="itemTool.tool.indexOf(16) == -1"
  1403. />
  1404. <div class="checkDiv" v-else>
  1405. <img
  1406. src="../../../assets/icon/checkedIs.png"
  1407. alt
  1408. /><span>已选择</span>
  1409. </div>
  1410. </div>
  1411. </div>
  1412. <div class="tool">
  1413. <div
  1414. class="whiteBIcon"
  1415. @click="
  1416. addTools(50, itemTaskIndex, toolIndex)
  1417. "
  1418. >
  1419. <img
  1420. src="../../../assets/icon/thirdToolList/plwork.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">批量上传</div>
  1424. </div>
  1425. <div
  1426. class="check"
  1427. @click="
  1428. addTools(50, itemTaskIndex, toolIndex)
  1429. "
  1430. >
  1431. <img
  1432. src="../../../assets/icon/checkNo.png"
  1433. alt
  1434. v-if="itemTool.tool.indexOf(50) == -1"
  1435. />
  1436. <div class="checkDiv" v-else>
  1437. <img
  1438. src="../../../assets/icon/checkedIs.png"
  1439. alt
  1440. /><span>已选择</span>
  1441. </div>
  1442. </div>
  1443. </div>
  1444. <!-- <div class="tool">
  1445. <div
  1446. class="whiteBIcon"
  1447. @click="
  1448. openTools(itemTaskIndex, 40, toolIndex)
  1449. "
  1450. >
  1451. <img
  1452. src="../../../assets/icon/thirdToolList/eval.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">个人评价</div>
  1456. </div>
  1457. <div
  1458. class="check"
  1459. @click="
  1460. addTools(40, itemTaskIndex, toolIndex)
  1461. "
  1462. >
  1463. <img
  1464. src="../../../assets/icon/checkNo.png"
  1465. alt
  1466. v-if="itemTool.tool.indexOf(40) == -1"
  1467. />
  1468. <div class="checkDiv" v-else>
  1469. <img
  1470. src="../../../assets/icon/checkedIs.png"
  1471. alt
  1472. /><span>已选择</span>
  1473. </div>
  1474. </div>
  1475. </div> -->
  1476. <div class="tool">
  1477. <div
  1478. class="whiteBIcon"
  1479. @click="
  1480. openTools(itemTaskIndex, 41, toolIndex)
  1481. "
  1482. >
  1483. <img
  1484. src="../../../assets/icon/thirdToolList/select.png"
  1485. alt
  1486. />
  1487. <div style="margin: 5px 0">选择填空</div>
  1488. </div>
  1489. <div
  1490. class="check"
  1491. @click="
  1492. addTools(41, itemTaskIndex, toolIndex)
  1493. "
  1494. >
  1495. <img
  1496. src="../../../assets/icon/checkNo.png"
  1497. alt
  1498. v-if="itemTool.tool.indexOf(41) == -1"
  1499. />
  1500. <div class="checkDiv" v-else>
  1501. <img
  1502. src="../../../assets/icon/checkedIs.png"
  1503. alt
  1504. /><span>已选择</span>
  1505. </div>
  1506. </div>
  1507. </div>
  1508. <div class="tool">
  1509. <div
  1510. class="whiteBIcon"
  1511. @click="
  1512. openTools(itemTaskIndex, 47, toolIndex)
  1513. "
  1514. >
  1515. <img
  1516. src="../../../assets/icon/fourthToolList/conSentences.png"
  1517. alt
  1518. />
  1519. <div style="margin: 5px 0">连词成句</div>
  1520. </div>
  1521. <div
  1522. class="check"
  1523. @click="
  1524. addTools(47, itemTaskIndex, toolIndex)
  1525. "
  1526. >
  1527. <img
  1528. src="../../../assets/icon/checkNo.png"
  1529. alt
  1530. v-if="itemTool.tool.indexOf(47) == -1"
  1531. />
  1532. <div class="checkDiv" v-else>
  1533. <img
  1534. src="../../../assets/icon/checkedIs.png"
  1535. alt
  1536. /><span>已选择</span>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. <!-- <div class="tool">
  1541. <div
  1542. class="whiteBIcon"
  1543. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1544. >
  1545. <img
  1546. src="../../../assets/icon/thirdToolList/mp3.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">上传音频</div>
  1550. </div>
  1551. <div
  1552. class="check"
  1553. @click="addTools(42, itemTaskIndex, toolIndex)"
  1554. >
  1555. <img
  1556. src="../../../assets/icon/checkNo.png"
  1557. alt
  1558. v-if="itemTool.tool.indexOf(42) == -1"
  1559. />
  1560. <img
  1561. src="../../../assets/icon/checkedIs.png"
  1562. alt
  1563. v-else
  1564. />
  1565. </div>
  1566. </div> -->
  1567. </div>
  1568. <div
  1569. class="toolSort"
  1570. v-if="itemTool.toolType == 3"
  1571. >
  1572. <div class="tool">
  1573. <div
  1574. class="whiteBIcon"
  1575. @click="
  1576. addTools(18, itemTaskIndex, toolIndex)
  1577. "
  1578. >
  1579. <img
  1580. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1581. alt
  1582. />
  1583. <div style="margin: 5px 0">训练平台</div>
  1584. </div>
  1585. <div
  1586. class="check"
  1587. @click="
  1588. addTools(18, itemTaskIndex, toolIndex)
  1589. "
  1590. >
  1591. <img
  1592. src="../../../assets/icon/checkNo.png"
  1593. alt
  1594. v-if="itemTool.tool.indexOf(18) == -1"
  1595. />
  1596. <div class="checkDiv" v-else>
  1597. <img
  1598. src="../../../assets/icon/checkedIs.png"
  1599. alt
  1600. /><span>已选择</span>
  1601. </div>
  1602. </div>
  1603. </div>
  1604. <div class="tool">
  1605. <div
  1606. class="whiteBIcon"
  1607. @click="
  1608. addTools(21, itemTaskIndex, toolIndex)
  1609. "
  1610. >
  1611. <img
  1612. src="../../../assets/icon/fourthToolList/program.png"
  1613. alt
  1614. />
  1615. <div style="margin: 5px 0">编程平台</div>
  1616. </div>
  1617. <div
  1618. class="check"
  1619. @click="
  1620. addTools(21, itemTaskIndex, toolIndex)
  1621. "
  1622. >
  1623. <img
  1624. src="../../../assets/icon/checkNo.png"
  1625. alt
  1626. v-if="itemTool.tool.indexOf(21) == -1"
  1627. />
  1628. <div class="checkDiv" v-else>
  1629. <img
  1630. src="../../../assets/icon/checkedIs.png"
  1631. alt
  1632. /><span>已选择</span>
  1633. </div>
  1634. </div>
  1635. </div>
  1636. <div class="tool">
  1637. <div
  1638. class="whiteBIcon"
  1639. @click="
  1640. addTools(22, itemTaskIndex, toolIndex)
  1641. "
  1642. >
  1643. <img
  1644. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">AI体验</div>
  1648. </div>
  1649. <div
  1650. class="check"
  1651. @click="
  1652. addTools(22, itemTaskIndex, toolIndex)
  1653. "
  1654. >
  1655. <img
  1656. src="../../../assets/icon/checkNo.png"
  1657. alt
  1658. v-if="itemTool.tool.indexOf(22) == -1"
  1659. />
  1660. <div class="checkDiv" v-else>
  1661. <img
  1662. src="../../../assets/icon/checkedIs.png"
  1663. alt
  1664. /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="tool">
  1669. <div
  1670. class="whiteBIcon"
  1671. @click="
  1672. addTools(23, itemTaskIndex, toolIndex)
  1673. "
  1674. >
  1675. <img
  1676. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">Python</div>
  1680. </div>
  1681. <div
  1682. class="check"
  1683. @click="
  1684. addTools(23, itemTaskIndex, toolIndex)
  1685. "
  1686. >
  1687. <img
  1688. src="../../../assets/icon/checkNo.png"
  1689. alt
  1690. v-if="itemTool.tool.indexOf(23) == -1"
  1691. />
  1692. <div class="checkDiv" v-else>
  1693. <img
  1694. src="../../../assets/icon/checkedIs.png"
  1695. alt
  1696. /><span>已选择</span>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. <div class="tool">
  1701. <div
  1702. class="whiteBIcon"
  1703. @click="
  1704. addTools(24, itemTaskIndex, toolIndex)
  1705. "
  1706. >
  1707. <img
  1708. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1709. alt
  1710. />
  1711. <div style="margin: 5px 0">AI平台</div>
  1712. </div>
  1713. <div
  1714. class="check"
  1715. @click="
  1716. addTools(24, itemTaskIndex, toolIndex)
  1717. "
  1718. >
  1719. <img
  1720. src="../../../assets/icon/checkNo.png"
  1721. alt
  1722. v-if="itemTool.tool.indexOf(24) == -1"
  1723. />
  1724. <div class="checkDiv" v-else>
  1725. <img
  1726. src="../../../assets/icon/checkedIs.png"
  1727. alt
  1728. /><span>已选择</span>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div class="tool">
  1733. <div
  1734. class="whiteBIcon"
  1735. @click="
  1736. addTools(32, itemTaskIndex, toolIndex)
  1737. "
  1738. >
  1739. <img
  1740. src="../../../assets/icon/thirdToolList/code.png"
  1741. alt
  1742. />
  1743. <div style="margin: 5px 0">源码编辑</div>
  1744. </div>
  1745. <div
  1746. class="check"
  1747. @click="
  1748. addTools(32, itemTaskIndex, toolIndex)
  1749. "
  1750. >
  1751. <img
  1752. src="../../../assets/icon/checkNo.png"
  1753. alt
  1754. v-if="itemTool.tool.indexOf(32) == -1"
  1755. />
  1756. <div class="checkDiv" v-else>
  1757. <img
  1758. src="../../../assets/icon/checkedIs.png"
  1759. alt
  1760. /><span>已选择</span>
  1761. </div>
  1762. </div>
  1763. </div>
  1764. <div class="tool">
  1765. <div
  1766. class="whiteBIcon"
  1767. @click="openTools(itemTaskIndex, 57, toolIndex)"
  1768. >
  1769. <img
  1770. src="../../../assets/icon/fourthToolList/cocopi.png"
  1771. alt
  1772. />
  1773. <div style="margin: 5px 0">CocoPi</div>
  1774. </div>
  1775. <div
  1776. class="check"
  1777. @click="
  1778. addTools(57, itemTaskIndex, toolIndex)
  1779. "
  1780. >
  1781. <img
  1782. src="../../../assets/icon/checkNo.png"
  1783. alt
  1784. v-if="itemTool.tool.indexOf(57) == -1"
  1785. />
  1786. <div class="checkDiv" v-else>
  1787. <img
  1788. src="../../../assets/icon/checkedIs.png"
  1789. alt
  1790. /><span>已选择</span>
  1791. </div>
  1792. </div>
  1793. </div>
  1794. <div class="tool">
  1795. <div
  1796. class="whiteBIcon"
  1797. @click="
  1798. addTools(63, itemTaskIndex, toolIndex)
  1799. "
  1800. >
  1801. <img
  1802. src="../../../assets/icon/fourthToolList/Wood.png"
  1803. alt
  1804. />
  1805. <div style="margin: 5px 0">海龟编程</div>
  1806. </div>
  1807. <div
  1808. class="check"
  1809. @click="
  1810. addTools(63, itemTaskIndex, toolIndex)
  1811. "
  1812. >
  1813. <img
  1814. src="../../../assets/icon/checkNo.png"
  1815. alt
  1816. v-if="itemTool.tool.indexOf(63) == -1"
  1817. />
  1818. <div class="checkDiv" v-else>
  1819. <img
  1820. src="../../../assets/icon/checkedIs.png"
  1821. alt
  1822. /><span>已选择</span>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. <div
  1828. class="toolSort"
  1829. v-if="itemTool.toolType == 5"
  1830. >
  1831. <div class="tool">
  1832. <div
  1833. class="whiteBIcon"
  1834. @click="
  1835. addTools(28, itemTaskIndex, toolIndex)
  1836. "
  1837. >
  1838. <img
  1839. src="../../../assets/icon/secondToolList/translation.png"
  1840. alt
  1841. />
  1842. <div style="margin: 5px 0">翻译</div>
  1843. </div>
  1844. <div
  1845. class="check"
  1846. @click="
  1847. addTools(28, itemTaskIndex, toolIndex)
  1848. "
  1849. >
  1850. <img
  1851. src="../../../assets/icon/checkNo.png"
  1852. alt
  1853. v-if="itemTool.tool.indexOf(28) == -1"
  1854. />
  1855. <div class="checkDiv" v-else>
  1856. <img
  1857. src="../../../assets/icon/checkedIs.png"
  1858. alt
  1859. /><span>已选择</span>
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div class="tool">
  1864. <div
  1865. class="whiteBIcon"
  1866. @click="
  1867. addTools(37, itemTaskIndex, toolIndex)
  1868. "
  1869. >
  1870. <img
  1871. src="../../../assets/icon/secondToolList/mohe.png"
  1872. alt
  1873. />
  1874. <div style="margin: 5px 0">魔盒识字</div>
  1875. </div>
  1876. <div
  1877. class="check"
  1878. @click="
  1879. addTools(37, itemTaskIndex, toolIndex)
  1880. "
  1881. >
  1882. <img
  1883. src="../../../assets/icon/checkNo.png"
  1884. alt
  1885. v-if="itemTool.tool.indexOf(37) == -1"
  1886. />
  1887. <div class="checkDiv" v-else>
  1888. <img
  1889. src="../../../assets/icon/checkedIs.png"
  1890. alt
  1891. /><span>已选择</span>
  1892. </div>
  1893. </div>
  1894. </div>
  1895. <div class="tool">
  1896. <div
  1897. class="whiteBIcon"
  1898. @click="
  1899. addTools(38, itemTaskIndex, toolIndex)
  1900. "
  1901. >
  1902. <img
  1903. src="../../../assets/icon/secondToolList/24game.png"
  1904. alt
  1905. />
  1906. <div style="margin: 5px 0">24点</div>
  1907. </div>
  1908. <div
  1909. class="check"
  1910. @click="
  1911. addTools(38, itemTaskIndex, toolIndex)
  1912. "
  1913. >
  1914. <img
  1915. src="../../../assets/icon/checkNo.png"
  1916. alt
  1917. v-if="itemTool.tool.indexOf(38) == -1"
  1918. />
  1919. <div class="checkDiv" v-else>
  1920. <img
  1921. src="../../../assets/icon/checkedIs.png"
  1922. alt
  1923. /><span>已选择</span>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. <div class="tool">
  1928. <div
  1929. class="whiteBIcon"
  1930. @click="
  1931. addTools(31, itemTaskIndex, toolIndex)
  1932. "
  1933. >
  1934. <img
  1935. src="../../../assets/icon/secondToolList/networkPanel.png"
  1936. alt
  1937. />
  1938. <div style="margin: 5px 0">数学画板</div>
  1939. </div>
  1940. <div
  1941. class="check"
  1942. @click="
  1943. addTools(31, itemTaskIndex, toolIndex)
  1944. "
  1945. >
  1946. <img
  1947. src="../../../assets/icon/checkNo.png"
  1948. alt
  1949. v-if="itemTool.tool.indexOf(31) == -1"
  1950. />
  1951. <div class="checkDiv" v-else>
  1952. <img
  1953. src="../../../assets/icon/checkedIs.png"
  1954. alt
  1955. /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. <div class="tool">
  1960. <div
  1961. class="whiteBIcon"
  1962. @click="
  1963. addTools(39, itemTaskIndex, toolIndex)
  1964. "
  1965. >
  1966. <img
  1967. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1968. alt
  1969. />
  1970. <div style="margin: 5px 0">GeoGebra</div>
  1971. </div>
  1972. <div
  1973. class="check"
  1974. @click="
  1975. addTools(39, itemTaskIndex, toolIndex)
  1976. "
  1977. >
  1978. <img
  1979. src="../../../assets/icon/checkNo.png"
  1980. alt
  1981. v-if="itemTool.tool.indexOf(39) == -1"
  1982. />
  1983. <div class="checkDiv" v-else>
  1984. <img
  1985. src="../../../assets/icon/checkedIs.png"
  1986. alt
  1987. /><span>已选择</span>
  1988. </div>
  1989. </div>
  1990. </div>
  1991. <div class="tool">
  1992. <div
  1993. class="whiteBIcon"
  1994. @click="
  1995. addTools(58, itemTaskIndex, toolIndex)
  1996. "
  1997. >
  1998. <img
  1999. src="../../../assets/icon/fourthToolList/car.png"
  2000. alt
  2001. />
  2002. <div style="margin: 5px 0">模拟驾驶</div>
  2003. </div>
  2004. <div
  2005. class="check"
  2006. @click="
  2007. addTools(58, itemTaskIndex, toolIndex)
  2008. "
  2009. >
  2010. <img
  2011. src="../../../assets/icon/checkNo.png"
  2012. alt
  2013. v-if="itemTool.tool.indexOf(58) == -1"
  2014. />
  2015. <div class="checkDiv" v-else>
  2016. <img
  2017. src="../../../assets/icon/checkedIs.png"
  2018. alt
  2019. /><span>已选择</span>
  2020. </div>
  2021. </div>
  2022. </div>
  2023. <div class="tool">
  2024. <div
  2025. class="whiteBIcon"
  2026. @click="
  2027. addTools(59, itemTaskIndex, toolIndex)
  2028. "
  2029. >
  2030. <img
  2031. src="../../../assets/icon/fourthToolList/lineSearch.png"
  2032. alt
  2033. />
  2034. <div style="margin: 5px 0">路径搜索</div>
  2035. </div>
  2036. <div
  2037. class="check"
  2038. @click="
  2039. addTools(59, itemTaskIndex, toolIndex)
  2040. "
  2041. >
  2042. <img
  2043. src="../../../assets/icon/checkNo.png"
  2044. alt
  2045. v-if="itemTool.tool.indexOf(59) == -1"
  2046. />
  2047. <div class="checkDiv" v-else>
  2048. <img
  2049. src="../../../assets/icon/checkedIs.png"
  2050. alt
  2051. /><span>已选择</span>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <div class="tool">
  2056. <div
  2057. class="whiteBIcon"
  2058. @click="
  2059. addTools(60, itemTaskIndex, toolIndex)
  2060. "
  2061. >
  2062. <img
  2063. src="../../../assets/icon/fourthToolList/deepLearning.png"
  2064. alt
  2065. />
  2066. <div style="margin: 5px 0">深度学习</div>
  2067. </div>
  2068. <div
  2069. class="check"
  2070. @click="
  2071. addTools(60, itemTaskIndex, toolIndex)
  2072. "
  2073. >
  2074. <img
  2075. src="../../../assets/icon/checkNo.png"
  2076. alt
  2077. v-if="itemTool.tool.indexOf(60) == -1"
  2078. />
  2079. <div class="checkDiv" v-else>
  2080. <img
  2081. src="../../../assets/icon/checkedIs.png"
  2082. alt
  2083. /><span>已选择</span>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. <div class="tool">
  2088. <div
  2089. class="whiteBIcon"
  2090. @click="
  2091. addTools(61, itemTaskIndex, toolIndex)
  2092. "
  2093. >
  2094. <img
  2095. src="../../../assets/icon/fourthToolList/allHistory.png"
  2096. alt
  2097. />
  2098. <div style="margin: 5px 0">全历史</div>
  2099. </div>
  2100. <div
  2101. class="check"
  2102. @click="
  2103. addTools(61, itemTaskIndex, toolIndex)
  2104. "
  2105. >
  2106. <img
  2107. src="../../../assets/icon/checkNo.png"
  2108. alt
  2109. v-if="itemTool.tool.indexOf(61) == -1"
  2110. />
  2111. <div class="checkDiv" v-else>
  2112. <img
  2113. src="../../../assets/icon/checkedIs.png"
  2114. alt
  2115. /><span>已选择</span>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. <div
  2121. class="toolSort"
  2122. v-if="itemTool.toolType == 7"
  2123. >
  2124. <div class="tool">
  2125. <div
  2126. class="whiteBIcon"
  2127. @click="
  2128. openTools(itemTaskIndex, 40, toolIndex)
  2129. "
  2130. >
  2131. <img
  2132. src="../../../assets/icon/thirdToolList/eval.png"
  2133. alt
  2134. />
  2135. <div style="margin: 5px 0">个人评价</div>
  2136. </div>
  2137. <div
  2138. class="check"
  2139. @click="
  2140. addTools(40, itemTaskIndex, toolIndex)
  2141. "
  2142. >
  2143. <img
  2144. src="../../../assets/icon/checkNo.png"
  2145. alt
  2146. v-if="itemTool.tool.indexOf(40) == -1"
  2147. />
  2148. <div class="checkDiv" v-else>
  2149. <img
  2150. src="../../../assets/icon/checkedIs.png"
  2151. alt
  2152. /><span>已选择</span>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. <div
  2158. class="toolSort"
  2159. v-if="itemTool.toolType == 4"
  2160. >
  2161. <div class="tool">
  2162. <div
  2163. class="whiteBIcon"
  2164. @click="
  2165. addTools(26, itemTaskIndex, toolIndex)
  2166. "
  2167. >
  2168. <img
  2169. src="../../../assets/icon/thirdToolList/courseDesign.png"
  2170. alt
  2171. />
  2172. <div style="margin: 5px 0">课程设计</div>
  2173. </div>
  2174. <div
  2175. class="check"
  2176. @click="
  2177. addTools(26, itemTaskIndex, toolIndex)
  2178. "
  2179. >
  2180. <img
  2181. src="../../../assets/icon/checkNo.png"
  2182. alt
  2183. v-if="itemTool.tool.indexOf(26) == -1"
  2184. />
  2185. <div class="checkDiv" v-else>
  2186. <img
  2187. src="../../../assets/icon/checkedIs.png"
  2188. alt
  2189. /><span>已选择</span>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. <div class="tool">
  2194. <div
  2195. class="whiteBIcon"
  2196. @click="
  2197. addTools(25, itemTaskIndex, toolIndex)
  2198. "
  2199. >
  2200. <img
  2201. src="../../../assets/icon/thirdToolList/evalua.png"
  2202. alt
  2203. />
  2204. <div style="margin: 5px 0">目标管理</div>
  2205. </div>
  2206. <div
  2207. class="check"
  2208. @click="
  2209. addTools(25, itemTaskIndex, toolIndex)
  2210. "
  2211. >
  2212. <img
  2213. src="../../../assets/icon/checkNo.png"
  2214. alt
  2215. v-if="itemTool.tool.indexOf(25) == -1"
  2216. />
  2217. <div class="checkDiv" v-else>
  2218. <img
  2219. src="../../../assets/icon/checkedIs.png"
  2220. alt
  2221. /><span>已选择</span>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <!-- <div class="tool">
  2226. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2227. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2228. <div style="margin: 5px 0">汉字宫</div>
  2229. </div>
  2230. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2231. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2232. <div class="checkDiv" v-else>
  2233. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2234. </div>
  2235. </div>
  2236. </div> -->
  2237. </div>
  2238. </div>
  2239. </div>
  2240. <div
  2241. class="addToolFun"
  2242. @click="addToolFun(itemTaskIndex)"
  2243. >
  2244. <div class="addToolImg">
  2245. <img src="../../../assets/icon/add.png" alt />
  2246. </div>
  2247. <div>添加工具</div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. </div>
  2252. <div
  2253. class="addTaskBorder"
  2254. @click="addTaskBorder"
  2255. v-if="!unitJson[unitIndex].easy"
  2256. >
  2257. <div>
  2258. <img src="../../../assets/icon/addHw.png" alt />
  2259. <span>添加任务</span>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. </div>
  2264. </div>
  2265. </div>
  2266. </div>
  2267. <div class="rightBox" v-if="this.steps == 2">
  2268. <div
  2269. class="basic_box"
  2270. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2271. >
  2272. <div
  2273. class="right_title"
  2274. style="border: none; margin: 0; padding: 0"
  2275. >
  2276. 请选择合适的课程模板
  2277. </div>
  2278. <div class="wordbox">
  2279. <div
  2280. class="wordTeacher"
  2281. v-for="(aa, indexF) in templateArray"
  2282. :key="indexF"
  2283. @click="checkTemplate(aa)"
  2284. >
  2285. <div class="wordPic">
  2286. <img src="../../../assets/icon/wordMub.png" alt />
  2287. </div>
  2288. <div
  2289. style="
  2290. margin-top: 10px;
  2291. line-height: 19px;
  2292. overflow: hidden;
  2293. text-overflow: ellipsis;
  2294. white-space: nowrap;
  2295. padding: 0 20px;
  2296. "
  2297. >
  2298. {{ aa.title }}
  2299. </div>
  2300. </div>
  2301. <div class="wordTeacher" @click="checkTemplate2()">
  2302. <div class="wordPic">
  2303. <img src="../../../assets/icon/wordMub.png" alt />
  2304. </div>
  2305. <div
  2306. style="
  2307. margin-top: 10px;
  2308. line-height: 19px;
  2309. overflow: hidden;
  2310. text-overflow: ellipsis;
  2311. white-space: nowrap;
  2312. padding: 0 20px;
  2313. "
  2314. >
  2315. 任务模式
  2316. </div>
  2317. </div>
  2318. <div class="wordTeacher" @click="checkTemplate3()">
  2319. <div class="wordPic">
  2320. <img src="../../../assets/icon/wordMub.png" alt />
  2321. </div>
  2322. <div
  2323. style="
  2324. margin-top: 10px;
  2325. line-height: 19px;
  2326. overflow: hidden;
  2327. text-overflow: ellipsis;
  2328. white-space: nowrap;
  2329. padding: 0 20px;
  2330. "
  2331. >
  2332. 简易模式
  2333. </div>
  2334. </div>
  2335. <div class="wordTeacher" @click="pasteStage()">
  2336. <div class="wordPic">
  2337. <img src="../../../assets/icon/wordMub.png" alt />
  2338. </div>
  2339. <div
  2340. style="
  2341. margin-top: 10px;
  2342. line-height: 19px;
  2343. overflow: hidden;
  2344. text-overflow: ellipsis;
  2345. white-space: nowrap;
  2346. padding: 0 20px;
  2347. "
  2348. >
  2349. 智能粘贴模式
  2350. </div>
  2351. </div>
  2352. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2353. <div class="wordPic">
  2354. <img src="../../../assets/icon/wordMub.png" alt />
  2355. </div>
  2356. <div style="
  2357. margin-top: 10px;
  2358. line-height: 19px;
  2359. overflow: hidden;
  2360. text-overflow: ellipsis;
  2361. white-space: nowrap;
  2362. padding: 0 20px;
  2363. ">
  2364. 未来小学课程设计
  2365. </div>
  2366. </div> -->
  2367. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2368. <div class="wordPic">
  2369. <img src="../../../assets/icon/wordMub.png" alt />
  2370. </div>
  2371. <div style="
  2372. margin-top: 10px;
  2373. line-height: 19px;
  2374. overflow: hidden;
  2375. text-overflow: ellipsis;
  2376. white-space: nowrap;
  2377. padding: 0 20px;
  2378. ">
  2379. 我的课程
  2380. </div>
  2381. </div> -->
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2386. <div class="basic_box">
  2387. <div
  2388. style="
  2389. display: flex;
  2390. flex-direction: row;
  2391. align-items: center;
  2392. position: sticky;
  2393. top: 0;
  2394. background: #fff;
  2395. z-index: 99;
  2396. width: 100%;
  2397. padding: 0 20px 0 20px;
  2398. box-sizing: border-box;
  2399. "
  2400. >
  2401. <div class="cru_selectBox">
  2402. <div
  2403. v-for="(item, index) in unitJson"
  2404. :key="index"
  2405. class="cru_select"
  2406. :class="unitIndex == index ? 'cru_selected' : ''"
  2407. @click="unitSet(index)"
  2408. >
  2409. <!-- item.dyName ? item.dyName : -->
  2410. {{ "第" + (index + 1) + "阶段" }}
  2411. </div>
  2412. <img
  2413. src="../../../assets/line.png"
  2414. class="cru_line"
  2415. :style="{
  2416. left: offsetLetfPx + 'px',
  2417. }"
  2418. />
  2419. </div>
  2420. <div
  2421. class="addStageImg"
  2422. @click="addunit()"
  2423. v-if="
  2424. !(unitJson[unitJson.length - 1].easy == 4) &&
  2425. !(unitJson[unitJson.length - 1].easy == 6)
  2426. "
  2427. >
  2428. <img src="../../../assets/icon/add.png" alt />
  2429. </div>
  2430. </div>
  2431. <div
  2432. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2433. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2434. :key="index"
  2435. >
  2436. <div>
  2437. <div class="chapter_contentbox">
  2438. <div>第{{ unitIndex + 1 }}阶段</div>
  2439. <div>
  2440. <input
  2441. type="text"
  2442. placeholder="阶段标题"
  2443. class="binfo_input"
  2444. v-model="unitJson[unitIndex].dyName"
  2445. />
  2446. </div>
  2447. <div
  2448. v-if="
  2449. unitJson.length > 1 &&
  2450. !(unitJson[unitJson.length - 1].easy == 4) &&
  2451. !(unitJson[unitJson.length - 1].easy == 6)
  2452. "
  2453. @click="deleteUnit(unitIndex)"
  2454. ></div>
  2455. </div>
  2456. </div>
  2457. <div
  2458. v-if="!unitJson[unitIndex].easy"
  2459. style="
  2460. margin: 50px 0px 10px;
  2461. font-size: 1.5em;
  2462. font-weight: 700;
  2463. color: #0f7eff;
  2464. "
  2465. >
  2466. 添加任务
  2467. </div>
  2468. <div
  2469. class="taskBorder"
  2470. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2471. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2472. :key="itemTaskIndex"
  2473. >
  2474. <div v-if="unitJson[unitIndex].easy != 1">
  2475. <div
  2476. :style="{
  2477. marginBottom:
  2478. unitJson[unitIndex].easy == 3 ||
  2479. (unitJson[unitIndex].easy == 5 &&
  2480. itemTask.taskType == 1)
  2481. ? '75px'
  2482. : '0',
  2483. }"
  2484. >
  2485. <div
  2486. style="font-size: 22px; color: #8e8e8e"
  2487. :id="'task' + itemTaskIndex"
  2488. >
  2489. 任务{{ itemTaskIndex + 1 }}
  2490. </div>
  2491. <div
  2492. class="chapter_contentbox"
  2493. style="
  2494. flex-direction: row;
  2495. justify-content: flex-start;
  2496. align-items: center;
  2497. "
  2498. >
  2499. <div
  2500. style="
  2501. border-left: 6px solid #5699e8;
  2502. height: 20px;
  2503. padding-left: 10px;
  2504. line-height: 22px;
  2505. "
  2506. >
  2507. 任务名称
  2508. </div>
  2509. <div>
  2510. <input
  2511. type="text"
  2512. placeholder="输入任务名称"
  2513. class="binfo_input"
  2514. style="border-radius: 4px"
  2515. v-model="
  2516. unitJson[unitIndex].chapterInfo[0].taskJson[
  2517. itemTaskIndex
  2518. ].task
  2519. "
  2520. />
  2521. </div>
  2522. <div
  2523. class="remove"
  2524. v-if="
  2525. item.taskJson.length > 1 &&
  2526. (!unitJson[unitIndex].easy ||
  2527. unitJson[unitIndex].easy == 6)
  2528. "
  2529. @click="deleteTask(itemTaskIndex)"
  2530. style="position: absolute; right: 55px"
  2531. ></div>
  2532. </div>
  2533. <div
  2534. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2535. style="
  2536. display: flex;
  2537. margin: 0 0 20px 0;
  2538. flex-direction: row;
  2539. justify-content: flex-start;
  2540. align-items: center;
  2541. width: 70.5% !important;
  2542. padding-top: 30px;
  2543. "
  2544. >
  2545. <div class="lineTitle">任务描述</div>
  2546. <div class="line"></div>
  2547. </div>
  2548. <div
  2549. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2550. >
  2551. <editor-bar
  2552. style="width: 90% !important; margin: 0"
  2553. placeholder="请输入任务描述"
  2554. v-model="
  2555. unitJson[unitIndex].chapterInfo[0].taskJson[
  2556. itemTaskIndex
  2557. ].taskDetail
  2558. "
  2559. @change="change"
  2560. ></editor-bar>
  2561. <!-- <textarea
  2562. rows="6"
  2563. class="binfo_input"
  2564. placeholder="请输入任务描述"
  2565. cols
  2566. style="width: 70.5% !important; height: 120px"
  2567. v-model="
  2568. unitJson[unitIndex].chapterInfo[0].taskJson[
  2569. itemTaskIndex
  2570. ].taskDetail
  2571. "
  2572. ></textarea>-->
  2573. </div>
  2574. </div>
  2575. </div>
  2576. <div
  2577. v-if="
  2578. !unitJson[unitIndex].easy ||
  2579. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2580. "
  2581. class="basic_box"
  2582. style="
  2583. margin: 0;
  2584. min-height: 0;
  2585. width: 90% !important;
  2586. padding-top: 10px !important;
  2587. "
  2588. >
  2589. <div
  2590. style="
  2591. display: flex;
  2592. margin: 0 0 20px 0;
  2593. flex-direction: row;
  2594. justify-content: flex-start;
  2595. align-items: center;
  2596. "
  2597. >
  2598. <div class="lineTitle">学习内容</div>
  2599. <div class="line"></div>
  2600. </div>
  2601. <div>
  2602. <div
  2603. class="add_chapters_box"
  2604. v-if="
  2605. itemTask.chapterData &&
  2606. itemTask.chapterData.length == 0
  2607. "
  2608. style="height: 185px"
  2609. ></div>
  2610. <div
  2611. v-else
  2612. class="add_chapters_box"
  2613. style="display: flex; flex-direction: column"
  2614. >
  2615. <div
  2616. class="chapter_upload"
  2617. v-for="(item1, index1) in itemTask.chapterData"
  2618. :key="item1.id"
  2619. @click="
  2620. getChapterData(
  2621. $event,
  2622. unitIndex,
  2623. index,
  2624. index1,
  2625. item1.type
  2626. )
  2627. "
  2628. >
  2629. <div
  2630. class="chapter_upload_t"
  2631. style="width: 100%"
  2632. ></div>
  2633. <div
  2634. class="chapter_upload_o"
  2635. style="
  2636. position: relative;
  2637. display: flex;
  2638. align-items: center;
  2639. "
  2640. >
  2641. <div
  2642. class="chapter_upload_l"
  2643. style="padding: 1px 0 0 10px"
  2644. >
  2645. <div
  2646. v-if="item1.type == 2"
  2647. class="chapter_upload_l_i1"
  2648. ></div>
  2649. <div
  2650. v-if="
  2651. item1.type == 3 ||
  2652. item1.type == 12 ||
  2653. item1.type == 13 ||
  2654. item1.type == 6 ||
  2655. item1.type == 7
  2656. "
  2657. class="chapter_upload_l_i5"
  2658. style="margin-left: 1px"
  2659. ></div>
  2660. <div
  2661. v-if="item1.type == 8"
  2662. class="chapter_upload_l_i8"
  2663. style="margin-left: 1px"
  2664. ></div>
  2665. </div>
  2666. <div
  2667. class="chapter_upload_ic"
  2668. style="
  2669. cursor: pointer;
  2670. position: absolute;
  2671. width: 45px;
  2672. right: 0;
  2673. top: 0;
  2674. "
  2675. >
  2676. <div class="chapter_upload_ic_l"></div>
  2677. <div
  2678. class="chapter_upload_ic_r"
  2679. style="position: absolute"
  2680. @click.stop="
  2681. deleteChapterData(
  2682. $event,
  2683. unitIndex,
  2684. index,
  2685. index1,
  2686. itemTaskIndex
  2687. )
  2688. "
  2689. >
  2690. <div></div>
  2691. </div>
  2692. </div>
  2693. <div class="chapter_upload_n">
  2694. <input
  2695. v-if="
  2696. item1.type == 2 ||
  2697. item1.type == 3 ||
  2698. item1.type == 12 ||
  2699. item1.type == 13 ||
  2700. item1.type == 7
  2701. "
  2702. :placeholder="item1.name"
  2703. @change="
  2704. updataVideoT(
  2705. $event,
  2706. unitIndex,
  2707. chapterIndex,
  2708. index1
  2709. )
  2710. "
  2711. style="
  2712. border: none;
  2713. outline: none;
  2714. width: 80%;
  2715. minwidth: 215px;
  2716. z-index: 99;
  2717. font-size: 14px;
  2718. white-space: nowrap;
  2719. overflow: hidden;
  2720. text-overflow: ellipsis;
  2721. "
  2722. />
  2723. <input
  2724. :placeholder="item1.name"
  2725. v-if="item1.type == 6"
  2726. style="
  2727. border: none;
  2728. outline: none;
  2729. width: 80%;
  2730. white-space: nowrap;
  2731. overflow: hidden;
  2732. text-overflow: ellipsis;
  2733. "
  2734. readonly="true"
  2735. @click="selectAttText(itemTaskIndex, index1)"
  2736. />
  2737. <input
  2738. :placeholder="
  2739. item1.title ? item1.title : '链接'
  2740. "
  2741. v-if="item1.type == 8"
  2742. style="
  2743. border: none;
  2744. outline: none;
  2745. width: 80%;
  2746. white-space: nowrap;
  2747. overflow: hidden;
  2748. text-overflow: ellipsis;
  2749. "
  2750. readonly="true"
  2751. @click="selectLine(itemTaskIndex, index1)"
  2752. />
  2753. <div
  2754. class="chapter_upload_ud"
  2755. style="z-index: 99"
  2756. >
  2757. <div
  2758. class="chapter_upload_up"
  2759. @click="
  2760. upCd(
  2761. $event,
  2762. unitIndex,
  2763. index,
  2764. itemTaskIndex,
  2765. index1
  2766. )
  2767. "
  2768. ></div>
  2769. <div
  2770. class="chapter_upload_down"
  2771. @click="
  2772. downCd(
  2773. $event,
  2774. unitIndex,
  2775. index,
  2776. itemTaskIndex,
  2777. index1
  2778. )
  2779. "
  2780. ></div>
  2781. </div>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. <div class="add_info_box">
  2788. <button class="info_btn" @click="addImg($event)">
  2789. 添加文件
  2790. <input
  2791. type="file"
  2792. accept="*"
  2793. style="display: none"
  2794. v-if="inputShow"
  2795. @change="
  2796. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2797. "
  2798. />
  2799. </button>
  2800. <!-- <button class="info_btn" @click="addImg($event)">
  2801. 添加视频
  2802. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2803. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2804. " />
  2805. </button>
  2806. <button class="info_btn" @click="addImg($event)">
  2807. 添加文档
  2808. <input type="file"
  2809. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2810. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2811. " />
  2812. </button> -->
  2813. <button
  2814. class="info_btn"
  2815. @click="addAttText(itemTaskIndex)"
  2816. >
  2817. 添加图文
  2818. </button>
  2819. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2820. 添加链接
  2821. </button>
  2822. <button
  2823. class="info_btn"
  2824. @click="pasteLine(itemTaskIndex)"
  2825. >
  2826. 嵌入代码
  2827. </button>
  2828. <button
  2829. class="info_btn"
  2830. @click="openSource(itemTaskIndex)"
  2831. >
  2832. 添加资源
  2833. </button>
  2834. <!-- <button class="info_btn" @click="addImg($event)">
  2835. 其他附件
  2836. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2837. " />
  2838. </button> -->
  2839. </div>
  2840. <div
  2841. v-if="
  2842. unitJson[unitIndex].chapterInfo[0].taskJson[
  2843. itemTaskIndex
  2844. ].proVisible
  2845. "
  2846. class="mask"
  2847. >
  2848. <div class="progressBox">
  2849. <!-- <div id="closePro" class="closeCss">
  2850. <img src="../../../../assets/icon/close.png" alt />
  2851. </div> -->
  2852. <div class="lbox">
  2853. <img
  2854. src="../../../assets/loading.gif"
  2855. />上传中,请稍后
  2856. </div>
  2857. <div style="margin-bottom: 10px">
  2858. <span
  2859. >{{
  2860. unitJson[unitIndex].chapterInfo[0].taskJson[
  2861. itemTaskIndex
  2862. ].isFinishSize
  2863. }}M</span
  2864. >
  2865. /
  2866. <span
  2867. >{{
  2868. unitJson[unitIndex].chapterInfo[0].taskJson[
  2869. itemTaskIndex
  2870. ].isAllSize
  2871. }}M</span
  2872. >
  2873. </div>
  2874. <el-progress
  2875. :text-inside="true"
  2876. :stroke-width="20"
  2877. :percentage="
  2878. unitJson[unitIndex].chapterInfo[0].taskJson[
  2879. itemTaskIndex
  2880. ].progress
  2881. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2882. itemTaskIndex
  2883. ].progress
  2884. : 0
  2885. "
  2886. style="width: 80%"
  2887. ></el-progress>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. <div
  2892. v-if="
  2893. unitJson[unitIndex].easy == 1 ||
  2894. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2895. "
  2896. class="basic_box"
  2897. style="
  2898. margin: 0 auto;
  2899. min-height: 0;
  2900. width: 95% !important;
  2901. padding: 20px 10px 10px;
  2902. "
  2903. >
  2904. <div>
  2905. <div
  2906. class="add_chapters_box"
  2907. v-if="
  2908. itemTask.chapterData &&
  2909. itemTask.chapterData.length == 0
  2910. "
  2911. style="height: 185px"
  2912. ></div>
  2913. <div
  2914. v-else
  2915. class="add_chapters_box"
  2916. style="display: flex; flex-direction: column"
  2917. >
  2918. <div
  2919. v-for="(item1, index1) in itemTask.chapterData"
  2920. :key="item1.id"
  2921. >
  2922. <div
  2923. class="chapter_upload"
  2924. @click="
  2925. getChapterData(
  2926. $event,
  2927. unitIndex,
  2928. index,
  2929. index1,
  2930. item1.type
  2931. )
  2932. "
  2933. >
  2934. <div
  2935. class="chapter_upload_t"
  2936. style="width: 100%"
  2937. ></div>
  2938. <div
  2939. class="chapter_upload_o"
  2940. style="
  2941. position: relative;
  2942. display: flex;
  2943. align-items: center;
  2944. "
  2945. >
  2946. <div
  2947. class="chapter_upload_l"
  2948. style="padding: 1px 0 0 10px"
  2949. >
  2950. <div
  2951. v-if="item1.type == 2"
  2952. class="chapter_upload_l_i1"
  2953. ></div>
  2954. <div
  2955. v-if="
  2956. item1.type == 3 ||
  2957. item1.type == 6 ||
  2958. item1.type == 7
  2959. "
  2960. class="chapter_upload_l_i5"
  2961. style="margin-left: 1px"
  2962. ></div>
  2963. <div
  2964. v-if="item1.type == 8"
  2965. class="chapter_upload_l_i8"
  2966. style="margin-left: 1px"
  2967. ></div>
  2968. </div>
  2969. <div
  2970. class="chapter_upload_ic"
  2971. style="
  2972. cursor: pointer;
  2973. position: absolute;
  2974. width: 45px;
  2975. right: 0;
  2976. top: 0;
  2977. "
  2978. >
  2979. <div class="chapter_upload_ic_l"></div>
  2980. <div
  2981. class="chapter_upload_ic_r"
  2982. style="position: absolute"
  2983. @click.stop="
  2984. deleteChapterData(
  2985. $event,
  2986. unitIndex,
  2987. index,
  2988. index1,
  2989. itemTaskIndex
  2990. )
  2991. "
  2992. >
  2993. <div></div>
  2994. </div>
  2995. </div>
  2996. <div class="chapter_upload_n">
  2997. <span
  2998. style="
  2999. font-size: 14px;
  3000. color: rgb(109, 109, 109);
  3001. height: 14px;
  3002. line-height: 12px;
  3003. "
  3004. v-if="
  3005. item1.type == 2 ||
  3006. item1.type == 3 ||
  3007. item1.type == 7
  3008. "
  3009. >{{ item1.text }}-</span
  3010. >
  3011. <input
  3012. v-if="
  3013. item1.type == 2 ||
  3014. item1.type == 3 ||
  3015. item1.type == 7
  3016. "
  3017. :placeholder="item1.name"
  3018. @change="
  3019. updataVideoT(
  3020. $event,
  3021. unitIndex,
  3022. chapterIndex,
  3023. index1
  3024. )
  3025. "
  3026. style="
  3027. border: none;
  3028. outline: none;
  3029. width: 80%;
  3030. minwidth: 215px;
  3031. z-index: 99;
  3032. font-size: 14px;
  3033. white-space: nowrap;
  3034. overflow: hidden;
  3035. text-overflow: ellipsis;
  3036. "
  3037. />
  3038. <input
  3039. :placeholder="item1.name"
  3040. v-if="item1.type == 6"
  3041. style="
  3042. border: none;
  3043. outline: none;
  3044. width: 80%;
  3045. white-space: nowrap;
  3046. overflow: hidden;
  3047. text-overflow: ellipsis;
  3048. "
  3049. readonly="true"
  3050. @click="selectAttText(itemTaskIndex, index1)"
  3051. />
  3052. <input
  3053. :placeholder="
  3054. item1.title ? item1.title : '链接'
  3055. "
  3056. v-if="item1.type == 8"
  3057. style="
  3058. border: none;
  3059. outline: none;
  3060. width: 80%;
  3061. white-space: nowrap;
  3062. overflow: hidden;
  3063. text-overflow: ellipsis;
  3064. "
  3065. readonly="true"
  3066. @click="selectLine(itemTaskIndex, index1)"
  3067. />
  3068. <div
  3069. class="chapter_upload_ud"
  3070. style="z-index: 99"
  3071. >
  3072. <div
  3073. class="chapter_upload_up"
  3074. @click="
  3075. upCd(
  3076. $event,
  3077. unitIndex,
  3078. index,
  3079. itemTaskIndex,
  3080. index1
  3081. )
  3082. "
  3083. ></div>
  3084. <div
  3085. class="chapter_upload_down"
  3086. @click="
  3087. downCd(
  3088. $event,
  3089. unitIndex,
  3090. index,
  3091. itemTaskIndex,
  3092. index1
  3093. )
  3094. "
  3095. ></div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. </div>
  3103. <div class="add_info_box" style="margin: 10px 0 0">
  3104. <button class="info_btn" @click="addImg($event)">
  3105. <span style="color: red">*</span>
  3106. 教学设计
  3107. <input
  3108. type="file"
  3109. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3110. style="display: none"
  3111. v-if="inputShow"
  3112. @change="
  3113. beforeUpload3(
  3114. $event,
  3115. unitIndex,
  3116. 3,
  3117. itemTaskIndex,
  3118. '教学设计'
  3119. )
  3120. "
  3121. />
  3122. </button>
  3123. <button class="info_btn" @click="addImg($event)">
  3124. <span style="color: red">*</span>
  3125. 教学课件
  3126. <input
  3127. type="file"
  3128. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3129. style="display: none"
  3130. v-if="inputShow"
  3131. @change="
  3132. beforeUpload3(
  3133. $event,
  3134. unitIndex,
  3135. 3,
  3136. itemTaskIndex,
  3137. '教学课件'
  3138. )
  3139. "
  3140. />
  3141. </button>
  3142. <button class="info_btn" @click="addImg($event)">
  3143. 教学视频
  3144. <input
  3145. type="file"
  3146. accept="video/mp4, video/quicktime, video/x-msvideo"
  3147. style="display: none"
  3148. v-if="inputShow"
  3149. @change="
  3150. beforeUpload3(
  3151. $event,
  3152. unitIndex,
  3153. 2,
  3154. itemTaskIndex,
  3155. '教学视频'
  3156. )
  3157. "
  3158. />
  3159. </button>
  3160. <button class="info_btn" @click="addImg($event)">
  3161. 教学音频
  3162. <input
  3163. type="file"
  3164. accept="audio/*"
  3165. style="display: none"
  3166. v-if="inputShow"
  3167. @change="
  3168. beforeUpload3(
  3169. $event,
  3170. unitIndex,
  3171. 2,
  3172. itemTaskIndex,
  3173. '教学音频'
  3174. )
  3175. "
  3176. />
  3177. </button>
  3178. <button class="info_btn" @click="addImg($event)">
  3179. 学习单
  3180. <input
  3181. type="file"
  3182. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3183. style="display: none"
  3184. v-if="inputShow"
  3185. @change="
  3186. beforeUpload3(
  3187. $event,
  3188. unitIndex,
  3189. 3,
  3190. itemTaskIndex,
  3191. '学习单'
  3192. )
  3193. "
  3194. />
  3195. </button>
  3196. </div>
  3197. <div
  3198. v-if="
  3199. unitJson[unitIndex].chapterInfo[0].taskJson[
  3200. itemTaskIndex
  3201. ].proVisible
  3202. "
  3203. class="mask"
  3204. >
  3205. <div class="progressBox">
  3206. <!-- <div id="closePro" class="closeCss">
  3207. <img src="../../../../assets/icon/close.png" alt />
  3208. </div> -->
  3209. <div class="lbox">
  3210. <img
  3211. src="../../../assets/loading.gif"
  3212. />上传中,请稍后
  3213. </div>
  3214. <div style="margin-bottom: 10px">
  3215. <span
  3216. >{{
  3217. unitJson[unitIndex].chapterInfo[0].taskJson[
  3218. itemTaskIndex
  3219. ].isFinishSize
  3220. }}M</span
  3221. >
  3222. /
  3223. <span
  3224. >{{
  3225. unitJson[unitIndex].chapterInfo[0].taskJson[
  3226. itemTaskIndex
  3227. ].isAllSize
  3228. }}M</span
  3229. >
  3230. </div>
  3231. <el-progress
  3232. :text-inside="true"
  3233. :stroke-width="20"
  3234. :percentage="
  3235. unitJson[unitIndex].chapterInfo[0].taskJson[
  3236. itemTaskIndex
  3237. ].progress
  3238. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3239. itemTaskIndex
  3240. ].progress
  3241. : 0
  3242. "
  3243. style="width: 80%"
  3244. ></el-progress>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. unitJson[unitIndex].easy != 3 &&
  3251. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3252. "
  3253. style="
  3254. flex-direction: row;
  3255. justify-content: flex-start;
  3256. align-items: center;
  3257. padding: 0 0 0 30px;
  3258. paddint-top: 10px !important;
  3259. "
  3260. >
  3261. <div
  3262. style="
  3263. display: flex;
  3264. flex-direction: row;
  3265. align-items: center;
  3266. margin-bottom: 20px;
  3267. "
  3268. >
  3269. <div class="lineTitle">
  3270. {{
  3271. !unitJson[unitIndex].easy ||
  3272. unitJson[unitIndex].easy == 6 ||
  3273. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3274. ? "练习内容"
  3275. : "评价内容"
  3276. }}
  3277. </div>
  3278. <div class="line" style="width: 90%"></div>
  3279. </div>
  3280. </div>
  3281. <div
  3282. v-if="
  3283. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3284. "
  3285. class="toolChoose"
  3286. style="padding: 0 0 0 30px"
  3287. >
  3288. <div class="tools">
  3289. <div
  3290. class="leftTools"
  3291. style="
  3292. width: 95%;
  3293. padding: 0 0 15px 0;
  3294. border-bottom: 1px solid #efefef;
  3295. margin-bottom: 15px;
  3296. "
  3297. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3298. :key="toolIndex"
  3299. >
  3300. <div>
  3301. <textarea
  3302. rows="3"
  3303. type="text"
  3304. placeholder="添加工具描述"
  3305. class="binfo_input"
  3306. style="margin: 0 0 20px 0; width: 71.5% !important"
  3307. v-model="itemTool.toolDetail"
  3308. ></textarea>
  3309. </div>
  3310. <div
  3311. style="
  3312. display: flex;
  3313. flex-direction: row;
  3314. align-items: baseline;
  3315. flex-wrap: nowrap;
  3316. justify-content: flex-start;
  3317. position: relative;
  3318. "
  3319. >
  3320. <div style="margin-right: 20px; font-weight: bold">
  3321. 步骤 {{ toolIndex + 1 }} :
  3322. </div>
  3323. <div class="chooseWho">
  3324. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3325. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3326. 互动类
  3327. </div> -->
  3328. <div
  3329. :class="
  3330. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3331. "
  3332. @click="(itemTool.toolType = 1), $forceUpdate()"
  3333. >
  3334. 思维类
  3335. </div>
  3336. <div
  3337. :class="
  3338. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3339. "
  3340. @click="(itemTool.toolType = 6), $forceUpdate()"
  3341. >
  3342. 协作类
  3343. </div>
  3344. <div
  3345. :class="
  3346. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3347. "
  3348. @click="(itemTool.toolType = 2), $forceUpdate()"
  3349. >
  3350. 测评类
  3351. </div>
  3352. <div
  3353. :class="
  3354. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3355. "
  3356. @click="(itemTool.toolType = 7), $forceUpdate()"
  3357. >
  3358. 评价类
  3359. </div>
  3360. <div
  3361. :class="
  3362. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3363. "
  3364. @click="(itemTool.toolType = 3), $forceUpdate()"
  3365. >
  3366. 学科类
  3367. </div>
  3368. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3369. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3370. 学科类
  3371. </div>
  3372. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3373. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3374. 其他
  3375. </div> -->
  3376. </div>
  3377. <div
  3378. class="remove"
  3379. @click="deleteTool(itemTaskIndex, toolIndex)"
  3380. v-if="itemTask.toolChoose.length > 1"
  3381. style="position: absolute; right: 55px"
  3382. ></div>
  3383. </div>
  3384. <div style="min-height: 163px">
  3385. <div class="toolSort" v-if="itemTool.toolType == 0">
  3386. <!-- <div class="tool">
  3387. <div
  3388. class="whiteBIcon"
  3389. @click="addTools(8, itemTaskIndex, toolIndex)"
  3390. >
  3391. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3392. <div style="margin: 5px 0">素材库</div>
  3393. </div>
  3394. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3395. <img
  3396. src="../../../assets/icon/checkNo.png"
  3397. alt
  3398. v-if="itemTool.tool.indexOf(8) == -1"
  3399. />
  3400. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3401. alt /><span>已选择</span></div>
  3402. </div>
  3403. </div>-->
  3404. <!-- <div class="tool">
  3405. <div
  3406. class="whiteBIcon"
  3407. @click="addTools(17, itemTaskIndex, toolIndex)"
  3408. >
  3409. <img
  3410. src="../../../assets/icon/secondToolList/library.png"
  3411. alt
  3412. />
  3413. <div style="margin: 5px 0">学习资料</div>
  3414. </div>
  3415. <div
  3416. class="check"
  3417. @click="addTools(17, itemTaskIndex, toolIndex)"
  3418. >
  3419. <img
  3420. src="../../../assets/icon/checkNo.png"
  3421. alt
  3422. v-if="itemTool.tool.indexOf(17) == -1"
  3423. />
  3424. <img
  3425. src="../../../assets/icon/checkedIs.png"
  3426. alt
  3427. v-else
  3428. />
  3429. </div>10
  3430. </div> -->
  3431. <div class="tool">
  3432. <div
  3433. class="whiteBIcon"
  3434. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3435. >
  3436. <img
  3437. src="../../../assets/icon/thirdToolList/time.png"
  3438. alt
  3439. />
  3440. <div style="margin: 5px 0">倒计时</div>
  3441. </div>
  3442. <div
  3443. class="check"
  3444. @click="addTools(10, itemTaskIndex, toolIndex)"
  3445. >
  3446. <img
  3447. src="../../../assets/icon/checkNo.png"
  3448. alt
  3449. v-if="itemTool.tool.indexOf(10) == -1"
  3450. />
  3451. <div class="checkDiv" v-else>
  3452. <img
  3453. src="../../../assets/icon/checkedIs.png"
  3454. alt
  3455. /><span>已选择</span>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. <!-- <div class="tool">
  3460. <div
  3461. class="whiteBIcon"
  3462. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3463. >
  3464. <img
  3465. src="../../../assets/icon/fourthToolList/group.png"
  3466. alt
  3467. />
  3468. <div style="margin: 5px 0">学生分组</div>
  3469. </div>
  3470. <div
  3471. class="check"
  3472. @click="addTools(49, itemTaskIndex, toolIndex)"
  3473. >
  3474. <img
  3475. src="../../../assets/icon/checkNo.png"
  3476. alt
  3477. v-if="itemTool.tool.indexOf(49) == -1"
  3478. />
  3479. <div class="checkDiv" v-else>
  3480. <img
  3481. src="../../../assets/icon/checkedIs.png"
  3482. alt
  3483. /><span>已选择</span>
  3484. </div>
  3485. </div>
  3486. </div> -->
  3487. <div class="tool">
  3488. <div
  3489. class="whiteBIcon"
  3490. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3491. >
  3492. <img
  3493. src="../../../assets/icon/fourthToolList/interVideo.png"
  3494. alt
  3495. />
  3496. <div style="margin: 5px 0">交互视频</div>
  3497. </div>
  3498. <div
  3499. class="check"
  3500. @click="addTools(62, itemTaskIndex, toolIndex)"
  3501. >
  3502. <img
  3503. src="../../../assets/icon/checkNo.png"
  3504. alt
  3505. v-if="itemTool.tool.indexOf(62) == -1"
  3506. />
  3507. <div class="checkDiv" v-else>
  3508. <img
  3509. src="../../../assets/icon/checkedIs.png"
  3510. alt
  3511. /><span>已选择</span>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. <div class="toolSort" v-if="itemTool.toolType == 1">
  3517. <div class="tool">
  3518. <div
  3519. class="whiteBIcon"
  3520. @click="addTools(7, itemTaskIndex, toolIndex)"
  3521. >
  3522. <img
  3523. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3524. alt
  3525. />
  3526. <div style="margin: 5px 0">思维网格</div>
  3527. </div>
  3528. <div
  3529. class="check"
  3530. @click="addTools(7, itemTaskIndex, toolIndex)"
  3531. >
  3532. <img
  3533. src="../../../assets/icon/checkNo.png"
  3534. alt
  3535. v-if="itemTool.tool.indexOf(7) == -1"
  3536. />
  3537. <div class="checkDiv" v-else>
  3538. <img
  3539. src="../../../assets/icon/checkedIs.png"
  3540. alt
  3541. /><span>已选择</span>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. <div class="tool">
  3546. <div
  3547. class="whiteBIcon"
  3548. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3549. >
  3550. <img
  3551. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3552. alt
  3553. />
  3554. <div style="margin: 5px 0">电子白板</div>
  3555. </div>
  3556. <div
  3557. class="check"
  3558. @click="addTools(1, itemTaskIndex, toolIndex)"
  3559. >
  3560. <img
  3561. src="../../../assets/icon/checkNo.png"
  3562. alt
  3563. v-if="itemTool.tool.indexOf(1) == -1"
  3564. />
  3565. <div class="checkDiv" v-else>
  3566. <img
  3567. src="../../../assets/icon/checkedIs.png"
  3568. alt
  3569. /><span>已选择</span>
  3570. </div>
  3571. </div>
  3572. </div>
  3573. <!-- <div class="tool">
  3574. <div
  3575. class="whiteBIcon"
  3576. @click="addTools(2, itemTaskIndex, toolIndex)"
  3577. >
  3578. <img
  3579. src="../../../assets/icon/secondToolList/note.png"
  3580. alt
  3581. />
  3582. <div style="margin: 5px 0">便签</div>
  3583. </div>
  3584. <div
  3585. class="check"
  3586. @click="addTools(2, itemTaskIndex, toolIndex)"
  3587. >
  3588. <img
  3589. src="../../../assets/icon/checkNo.png"
  3590. alt
  3591. v-if="itemTool.tool.indexOf(2) == -1"
  3592. />
  3593. <div class="checkDiv" v-else>
  3594. <img
  3595. src="../../../assets/icon/checkedIs.png"
  3596. alt
  3597. /><span>已选择</span>
  3598. </div>
  3599. </div>
  3600. </div> -->
  3601. <!-- <div class="tool">
  3602. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3603. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3604. <div style="margin: 5px 0">协同文档</div>
  3605. </div>
  3606. <div
  3607. class="check"
  3608. @click="addTools(6, itemTaskIndex, toolIndex)"
  3609. >
  3610. <img
  3611. src="../../../assets/icon/checkNo.png"
  3612. alt
  3613. v-if="itemTool.tool.indexOf(6) == -1"
  3614. />
  3615. <div class="checkDiv" v-else>
  3616. <img
  3617. src="../../../assets/icon/checkedIs.png"
  3618. alt
  3619. /><span>已选择</span>
  3620. </div>
  3621. </div>
  3622. </div> -->
  3623. <div class="tool">
  3624. <div
  3625. class="whiteBIcon"
  3626. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3627. >
  3628. <img
  3629. src="../../../assets/icon/fourthToolList/text.png"
  3630. alt
  3631. />
  3632. <div style="margin: 5px 0">文档</div>
  3633. </div>
  3634. <div
  3635. class="check"
  3636. @click="addTools(52, itemTaskIndex, toolIndex)"
  3637. >
  3638. <img
  3639. src="../../../assets/icon/checkNo.png"
  3640. alt
  3641. v-if="itemTool.tool.indexOf(52) == -1"
  3642. />
  3643. <div class="checkDiv" v-else>
  3644. <img
  3645. src="../../../assets/icon/checkedIs.png"
  3646. alt
  3647. /><span>已选择</span>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div class="tool">
  3652. <div
  3653. class="whiteBIcon"
  3654. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3655. >
  3656. <img
  3657. src="../../../assets/icon/secondToolList/mindMapping.png"
  3658. alt
  3659. />
  3660. <div style="margin: 5px 0">思维导图</div>
  3661. </div>
  3662. <div
  3663. class="check"
  3664. @click="addTools(3, itemTaskIndex, toolIndex)"
  3665. >
  3666. <img
  3667. src="../../../assets/icon/checkNo.png"
  3668. alt
  3669. v-if="itemTool.tool.indexOf(3) == -1"
  3670. />
  3671. <div class="checkDiv" v-else>
  3672. <img
  3673. src="../../../assets/icon/checkedIs.png"
  3674. alt
  3675. /><span>已选择</span>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. <div class="tool">
  3680. <div
  3681. class="whiteBIcon"
  3682. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3683. >
  3684. <img
  3685. src="../../../assets/icon/fourthToolList/table.png"
  3686. alt
  3687. />
  3688. <div style="margin: 5px 0">表格</div>
  3689. </div>
  3690. <div
  3691. class="check"
  3692. @click="addTools(48, itemTaskIndex, toolIndex)"
  3693. >
  3694. <img
  3695. src="../../../assets/icon/checkNo.png"
  3696. alt
  3697. v-if="itemTool.tool.indexOf(48) == -1"
  3698. />
  3699. <div class="checkDiv" v-else>
  3700. <img
  3701. src="../../../assets/icon/checkedIs.png"
  3702. alt
  3703. /><span>已选择</span>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div class="toolSort" v-if="itemTool.toolType == 6">
  3709. <div class="tool">
  3710. <div
  3711. class="whiteBIcon"
  3712. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3713. >
  3714. <img
  3715. src="../../../assets/icon/fourthToolList/group.png"
  3716. alt
  3717. />
  3718. <div style="margin: 5px 0">学生分组</div>
  3719. </div>
  3720. <div
  3721. class="check"
  3722. @click="addTools(49, itemTaskIndex, toolIndex)"
  3723. >
  3724. <img
  3725. src="../../../assets/icon/checkNo.png"
  3726. alt
  3727. v-if="itemTool.tool.indexOf(49) == -1"
  3728. />
  3729. <div class="checkDiv" v-else>
  3730. <img
  3731. src="../../../assets/icon/checkedIs.png"
  3732. alt
  3733. /><span>已选择</span>
  3734. </div>
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <div class="toolSort" v-if="itemTool.toolType == 2">
  3739. <!-- <div class="tool">
  3740. <div
  3741. class="whiteBIcon"
  3742. @click="addTools(5, itemTaskIndex, toolIndex)"
  3743. >
  3744. <img
  3745. src="../../../assets/icon/thirdToolList/score.png"
  3746. alt
  3747. />
  3748. <div style="margin: 5px 0">量规评分</div>
  3749. </div>
  3750. <div
  3751. class="check"
  3752. @click="addTools(5, itemTaskIndex, toolIndex)"
  3753. >
  3754. <img
  3755. src="../../../assets/icon/checkNo.png"
  3756. alt
  3757. v-if="itemTool.tool.indexOf(5) == -1"
  3758. />
  3759. <img
  3760. src="../../../assets/icon/checkedIs.png"
  3761. alt
  3762. v-else
  3763. />
  3764. </div>
  3765. </div>-->
  3766. <div class="tool">
  3767. <div
  3768. class="whiteBIcon"
  3769. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3770. >
  3771. <img
  3772. src="../../../assets/icon/thirdToolList/ask.png"
  3773. alt
  3774. />
  3775. <div style="margin: 5px 0">问卷调查</div>
  3776. </div>
  3777. <div
  3778. class="check"
  3779. @click="addTools(4, itemTaskIndex, toolIndex)"
  3780. >
  3781. <img
  3782. src="../../../assets/icon/checkNo.png"
  3783. alt
  3784. v-if="itemTool.tool.indexOf(4) == -1"
  3785. />
  3786. <div class="checkDiv" v-else>
  3787. <img
  3788. src="../../../assets/icon/checkedIs.png"
  3789. alt
  3790. /><span>已选择</span>
  3791. </div>
  3792. </div>
  3793. </div>
  3794. <div class="tool">
  3795. <div
  3796. class="whiteBIcon"
  3797. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3798. >
  3799. <img
  3800. src="../../../assets/icon/thirdToolList/choose.png"
  3801. alt
  3802. />
  3803. <div style="margin: 5px 0">选择题</div>
  3804. </div>
  3805. <div
  3806. class="check"
  3807. @click="addTools(45, itemTaskIndex, toolIndex)"
  3808. >
  3809. <img
  3810. src="../../../assets/icon/checkNo.png"
  3811. alt
  3812. v-if="itemTool.tool.indexOf(45) == -1"
  3813. />
  3814. <div class="checkDiv" v-else>
  3815. <img
  3816. src="../../../assets/icon/checkedIs.png"
  3817. alt
  3818. /><span>已选择</span>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. <div class="tool">
  3823. <div
  3824. class="whiteBIcon"
  3825. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3826. >
  3827. <img
  3828. src="../../../assets/icon/thirdToolList/answer.png"
  3829. alt
  3830. />
  3831. <div style="margin: 5px 0">问答工具</div>
  3832. </div>
  3833. <div
  3834. class="check"
  3835. @click="addTools(15, itemTaskIndex, toolIndex)"
  3836. >
  3837. <img
  3838. src="../../../assets/icon/checkNo.png"
  3839. alt
  3840. v-if="itemTool.tool.indexOf(15) == -1"
  3841. />
  3842. <div class="checkDiv" v-else>
  3843. <img
  3844. src="../../../assets/icon/checkedIs.png"
  3845. alt
  3846. /><span>已选择</span>
  3847. </div>
  3848. </div>
  3849. </div>
  3850. <div class="tool">
  3851. <div
  3852. class="whiteBIcon"
  3853. @click="addTools(16, itemTaskIndex, toolIndex)"
  3854. >
  3855. <img
  3856. src="../../../assets/icon/thirdToolList/work.png"
  3857. alt
  3858. />
  3859. <div style="margin: 5px 0">作业提交</div>
  3860. </div>
  3861. <div
  3862. class="check"
  3863. @click="addTools(16, itemTaskIndex, toolIndex)"
  3864. >
  3865. <img
  3866. src="../../../assets/icon/checkNo.png"
  3867. alt
  3868. v-if="itemTool.tool.indexOf(16) == -1"
  3869. />
  3870. <div class="checkDiv" v-else>
  3871. <img
  3872. src="../../../assets/icon/checkedIs.png"
  3873. alt
  3874. /><span>已选择</span>
  3875. </div>
  3876. </div>
  3877. </div>
  3878. <div class="tool">
  3879. <div
  3880. class="whiteBIcon"
  3881. @click="addTools(50, itemTaskIndex, toolIndex)"
  3882. >
  3883. <img
  3884. src="../../../assets/icon/thirdToolList/plwork.png"
  3885. alt
  3886. />
  3887. <div style="margin: 5px 0">批量上传</div>
  3888. </div>
  3889. <div
  3890. class="check"
  3891. @click="addTools(50, itemTaskIndex, toolIndex)"
  3892. >
  3893. <img
  3894. src="../../../assets/icon/checkNo.png"
  3895. alt
  3896. v-if="itemTool.tool.indexOf(50) == -1"
  3897. />
  3898. <div class="checkDiv" v-else>
  3899. <img
  3900. src="../../../assets/icon/checkedIs.png"
  3901. alt
  3902. /><span>已选择</span>
  3903. </div>
  3904. </div>
  3905. </div>
  3906. <!-- <div class="tool">
  3907. <div
  3908. class="whiteBIcon"
  3909. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3910. >
  3911. <img
  3912. src="../../../assets/icon/thirdToolList/eval.png"
  3913. alt
  3914. />
  3915. <div style="margin: 5px 0">个人评价</div>
  3916. </div>
  3917. <div
  3918. class="check"
  3919. @click="addTools(40, itemTaskIndex, toolIndex)"
  3920. >
  3921. <img
  3922. src="../../../assets/icon/checkNo.png"
  3923. alt
  3924. v-if="itemTool.tool.indexOf(40) == -1"
  3925. />
  3926. <div class="checkDiv" v-else>
  3927. <img
  3928. src="../../../assets/icon/checkedIs.png"
  3929. alt
  3930. /><span>已选择</span>
  3931. </div>
  3932. </div>
  3933. </div> -->
  3934. <div class="tool">
  3935. <div
  3936. class="whiteBIcon"
  3937. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3938. >
  3939. <img
  3940. src="../../../assets/icon/thirdToolList/select.png"
  3941. alt
  3942. />
  3943. <div style="margin: 5px 0">选择填空</div>
  3944. </div>
  3945. <div
  3946. class="check"
  3947. @click="addTools(41, itemTaskIndex, toolIndex)"
  3948. >
  3949. <img
  3950. src="../../../assets/icon/checkNo.png"
  3951. alt
  3952. v-if="itemTool.tool.indexOf(41) == -1"
  3953. />
  3954. <div class="checkDiv" v-else>
  3955. <img
  3956. src="../../../assets/icon/checkedIs.png"
  3957. alt
  3958. /><span>已选择</span>
  3959. </div>
  3960. </div>
  3961. </div>
  3962. <div class="tool">
  3963. <div
  3964. class="whiteBIcon"
  3965. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3966. >
  3967. <img
  3968. src="../../../assets/icon/fourthToolList/conSentences.png"
  3969. alt
  3970. />
  3971. <div style="margin: 5px 0">连词成句</div>
  3972. </div>
  3973. <div
  3974. class="check"
  3975. @click="addTools(47, itemTaskIndex, toolIndex)"
  3976. >
  3977. <img
  3978. src="../../../assets/icon/checkNo.png"
  3979. alt
  3980. v-if="itemTool.tool.indexOf(47) == -1"
  3981. />
  3982. <div class="checkDiv" v-else>
  3983. <img
  3984. src="../../../assets/icon/checkedIs.png"
  3985. alt
  3986. /><span>已选择</span>
  3987. </div>
  3988. </div>
  3989. </div>
  3990. <!-- <div class="tool">
  3991. <div
  3992. class="whiteBIcon"
  3993. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3994. >
  3995. <img
  3996. src="../../../assets/icon/thirdToolList/mp3.png"
  3997. alt
  3998. />
  3999. <div style="margin: 5px 0">上传音频</div>
  4000. </div>
  4001. <div
  4002. class="check"
  4003. @click="addTools(42, itemTaskIndex, toolIndex)"
  4004. >
  4005. <img
  4006. src="../../../assets/icon/checkNo.png"
  4007. alt
  4008. v-if="itemTool.tool.indexOf(42) == -1"
  4009. />
  4010. <img
  4011. src="../../../assets/icon/checkedIs.png"
  4012. alt
  4013. v-else
  4014. />
  4015. </div>
  4016. </div> -->
  4017. </div>
  4018. <div class="toolSort" v-if="itemTool.toolType == 3">
  4019. <div class="tool">
  4020. <div
  4021. class="whiteBIcon"
  4022. @click="addTools(18, itemTaskIndex, toolIndex)"
  4023. >
  4024. <img
  4025. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  4026. alt
  4027. />
  4028. <div style="margin: 5px 0">训练平台</div>
  4029. </div>
  4030. <div
  4031. class="check"
  4032. @click="addTools(18, itemTaskIndex, toolIndex)"
  4033. >
  4034. <img
  4035. src="../../../assets/icon/checkNo.png"
  4036. alt
  4037. v-if="itemTool.tool.indexOf(18) == -1"
  4038. />
  4039. <div class="checkDiv" v-else>
  4040. <img
  4041. src="../../../assets/icon/checkedIs.png"
  4042. alt
  4043. /><span>已选择</span>
  4044. </div>
  4045. </div>
  4046. </div>
  4047. <div class="tool">
  4048. <div
  4049. class="whiteBIcon"
  4050. @click="addTools(21, itemTaskIndex, toolIndex)"
  4051. >
  4052. <img
  4053. src="../../../assets/icon/fourthToolList/program.png"
  4054. alt
  4055. />
  4056. <div style="margin: 5px 0">编程平台</div>
  4057. </div>
  4058. <div
  4059. class="check"
  4060. @click="addTools(21, itemTaskIndex, toolIndex)"
  4061. >
  4062. <img
  4063. src="../../../assets/icon/checkNo.png"
  4064. alt
  4065. v-if="itemTool.tool.indexOf(21) == -1"
  4066. />
  4067. <div class="checkDiv" v-else>
  4068. <img
  4069. src="../../../assets/icon/checkedIs.png"
  4070. alt
  4071. /><span>已选择</span>
  4072. </div>
  4073. </div>
  4074. </div>
  4075. <div class="tool">
  4076. <div
  4077. class="whiteBIcon"
  4078. @click="addTools(22, itemTaskIndex, toolIndex)"
  4079. >
  4080. <img
  4081. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  4082. alt
  4083. />
  4084. <div style="margin: 5px 0">AI体验</div>
  4085. </div>
  4086. <div
  4087. class="check"
  4088. @click="addTools(22, itemTaskIndex, toolIndex)"
  4089. >
  4090. <img
  4091. src="../../../assets/icon/checkNo.png"
  4092. alt
  4093. v-if="itemTool.tool.indexOf(22) == -1"
  4094. />
  4095. <div class="checkDiv" v-else>
  4096. <img
  4097. src="../../../assets/icon/checkedIs.png"
  4098. alt
  4099. /><span>已选择</span>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div class="tool">
  4104. <div
  4105. class="whiteBIcon"
  4106. @click="addTools(23, itemTaskIndex, toolIndex)"
  4107. >
  4108. <img
  4109. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  4110. alt
  4111. />
  4112. <div style="margin: 5px 0">Python</div>
  4113. </div>
  4114. <div
  4115. class="check"
  4116. @click="addTools(23, itemTaskIndex, toolIndex)"
  4117. >
  4118. <img
  4119. src="../../../assets/icon/checkNo.png"
  4120. alt
  4121. v-if="itemTool.tool.indexOf(23) == -1"
  4122. />
  4123. <div class="checkDiv" v-else>
  4124. <img
  4125. src="../../../assets/icon/checkedIs.png"
  4126. alt
  4127. /><span>已选择</span>
  4128. </div>
  4129. </div>
  4130. </div>
  4131. <div class="tool">
  4132. <div
  4133. class="whiteBIcon"
  4134. @click="addTools(24, itemTaskIndex, toolIndex)"
  4135. >
  4136. <img
  4137. src="../../../assets/icon/fourthToolList/AIprogram.png"
  4138. alt
  4139. />
  4140. <div style="margin: 5px 0">AI平台</div>
  4141. </div>
  4142. <div
  4143. class="check"
  4144. @click="addTools(24, itemTaskIndex, toolIndex)"
  4145. >
  4146. <img
  4147. src="../../../assets/icon/checkNo.png"
  4148. alt
  4149. v-if="itemTool.tool.indexOf(24) == -1"
  4150. />
  4151. <div class="checkDiv" v-else>
  4152. <img
  4153. src="../../../assets/icon/checkedIs.png"
  4154. alt
  4155. /><span>已选择</span>
  4156. </div>
  4157. </div>
  4158. </div>
  4159. <div class="tool">
  4160. <div
  4161. class="whiteBIcon"
  4162. @click="addTools(32, itemTaskIndex, toolIndex)"
  4163. >
  4164. <img
  4165. src="../../../assets/icon/thirdToolList/code.png"
  4166. alt
  4167. />
  4168. <div style="margin: 5px 0">源码编辑</div>
  4169. </div>
  4170. <div
  4171. class="check"
  4172. @click="addTools(32, itemTaskIndex, toolIndex)"
  4173. >
  4174. <img
  4175. src="../../../assets/icon/checkNo.png"
  4176. alt
  4177. v-if="itemTool.tool.indexOf(32) == -1"
  4178. />
  4179. <div class="checkDiv" v-else>
  4180. <img
  4181. src="../../../assets/icon/checkedIs.png"
  4182. alt
  4183. /><span>已选择</span>
  4184. </div>
  4185. </div>
  4186. </div>
  4187. <div class="tool">
  4188. <div
  4189. class="whiteBIcon"
  4190. @click="openTools(itemTaskIndex, 57, toolIndex)"
  4191. >
  4192. <img
  4193. src="../../../assets/icon/fourthToolList/cocopi.png"
  4194. alt
  4195. />
  4196. <div style="margin: 5px 0">CocoPi</div>
  4197. </div>
  4198. <div
  4199. class="check"
  4200. @click="addTools(57, itemTaskIndex, toolIndex)"
  4201. >
  4202. <img
  4203. src="../../../assets/icon/checkNo.png"
  4204. alt
  4205. v-if="itemTool.tool.indexOf(57) == -1"
  4206. />
  4207. <div class="checkDiv" v-else>
  4208. <img
  4209. src="../../../assets/icon/checkedIs.png"
  4210. alt
  4211. /><span>已选择</span>
  4212. </div>
  4213. </div>
  4214. </div>
  4215. <div class="tool">
  4216. <div
  4217. class="whiteBIcon"
  4218. @click="addTools(63, itemTaskIndex, toolIndex)"
  4219. >
  4220. <img
  4221. src="../../../assets/icon/fourthToolList/Wood.png"
  4222. alt
  4223. />
  4224. <div style="margin: 5px 0">海龟编程</div>
  4225. </div>
  4226. <div
  4227. class="check"
  4228. @click="addTools(63, itemTaskIndex, toolIndex)"
  4229. >
  4230. <img
  4231. src="../../../assets/icon/checkNo.png"
  4232. alt
  4233. v-if="itemTool.tool.indexOf(63) == -1"
  4234. />
  4235. <div class="checkDiv" v-else>
  4236. <img
  4237. src="../../../assets/icon/checkedIs.png"
  4238. alt
  4239. /><span>已选择</span>
  4240. </div>
  4241. </div>
  4242. </div>
  4243. </div>
  4244. <div class="toolSort" v-if="itemTool.toolType == 7">
  4245. <div class="tool">
  4246. <div
  4247. class="whiteBIcon"
  4248. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4249. >
  4250. <img
  4251. src="../../../assets/icon/thirdToolList/eval.png"
  4252. alt
  4253. />
  4254. <div style="margin: 5px 0">个人评价</div>
  4255. </div>
  4256. <div
  4257. class="check"
  4258. @click="addTools(40, itemTaskIndex, toolIndex)"
  4259. >
  4260. <img
  4261. src="../../../assets/icon/checkNo.png"
  4262. alt
  4263. v-if="itemTool.tool.indexOf(40) == -1"
  4264. />
  4265. <div class="checkDiv" v-else>
  4266. <img
  4267. src="../../../assets/icon/checkedIs.png"
  4268. alt
  4269. /><span>已选择</span>
  4270. </div>
  4271. </div>
  4272. </div>
  4273. </div>
  4274. <div class="toolSort" v-if="itemTool.toolType == 5">
  4275. <div class="tool">
  4276. <div
  4277. class="whiteBIcon"
  4278. @click="addTools(28, itemTaskIndex, toolIndex)"
  4279. >
  4280. <img
  4281. src="../../../assets/icon/secondToolList/translation.png"
  4282. alt
  4283. />
  4284. <div style="margin: 5px 0">翻译</div>
  4285. </div>
  4286. <div
  4287. class="check"
  4288. @click="addTools(28, itemTaskIndex, toolIndex)"
  4289. >
  4290. <img
  4291. src="../../../assets/icon/checkNo.png"
  4292. alt
  4293. v-if="itemTool.tool.indexOf(28) == -1"
  4294. />
  4295. <div class="checkDiv" v-else>
  4296. <img
  4297. src="../../../assets/icon/checkedIs.png"
  4298. alt
  4299. /><span>已选择</span>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div class="tool">
  4304. <div
  4305. class="whiteBIcon"
  4306. @click="addTools(37, itemTaskIndex, toolIndex)"
  4307. >
  4308. <img
  4309. src="../../../assets/icon/secondToolList/mohe.png"
  4310. alt
  4311. />
  4312. <div style="margin: 5px 0">魔盒识字</div>
  4313. </div>
  4314. <div
  4315. class="check"
  4316. @click="addTools(37, itemTaskIndex, toolIndex)"
  4317. >
  4318. <img
  4319. src="../../../assets/icon/checkNo.png"
  4320. alt
  4321. v-if="itemTool.tool.indexOf(37) == -1"
  4322. />
  4323. <div class="checkDiv" v-else>
  4324. <img
  4325. src="../../../assets/icon/checkedIs.png"
  4326. alt
  4327. /><span>已选择</span>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. <div class="tool">
  4332. <div
  4333. class="whiteBIcon"
  4334. @click="addTools(38, itemTaskIndex, toolIndex)"
  4335. >
  4336. <img
  4337. src="../../../assets/icon/secondToolList/24game.png"
  4338. alt
  4339. />
  4340. <div style="margin: 5px 0">24点</div>
  4341. </div>
  4342. <div
  4343. class="check"
  4344. @click="addTools(38, itemTaskIndex, toolIndex)"
  4345. >
  4346. <img
  4347. src="../../../assets/icon/checkNo.png"
  4348. alt
  4349. v-if="itemTool.tool.indexOf(38) == -1"
  4350. />
  4351. <div class="checkDiv" v-else>
  4352. <img
  4353. src="../../../assets/icon/checkedIs.png"
  4354. alt
  4355. /><span>已选择</span>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="tool">
  4360. <div
  4361. class="whiteBIcon"
  4362. @click="addTools(31, itemTaskIndex, toolIndex)"
  4363. >
  4364. <img
  4365. src="../../../assets/icon/secondToolList/networkPanel.png"
  4366. alt
  4367. />
  4368. <div style="margin: 5px 0">数学画板</div>
  4369. </div>
  4370. <div
  4371. class="check"
  4372. @click="addTools(31, itemTaskIndex, toolIndex)"
  4373. >
  4374. <img
  4375. src="../../../assets/icon/checkNo.png"
  4376. alt
  4377. v-if="itemTool.tool.indexOf(31) == -1"
  4378. />
  4379. <div class="checkDiv" v-else>
  4380. <img
  4381. src="../../../assets/icon/checkedIs.png"
  4382. alt
  4383. /><span>已选择</span>
  4384. </div>
  4385. </div>
  4386. </div>
  4387. <div class="tool">
  4388. <div
  4389. class="whiteBIcon"
  4390. @click="addTools(39, itemTaskIndex, toolIndex)"
  4391. >
  4392. <img
  4393. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4394. alt
  4395. />
  4396. <div style="margin: 5px 0">GeoGebra</div>
  4397. </div>
  4398. <div
  4399. class="check"
  4400. @click="addTools(39, itemTaskIndex, toolIndex)"
  4401. >
  4402. <img
  4403. src="../../../assets/icon/checkNo.png"
  4404. alt
  4405. v-if="itemTool.tool.indexOf(39) == -1"
  4406. />
  4407. <div class="checkDiv" v-else>
  4408. <img
  4409. src="../../../assets/icon/checkedIs.png"
  4410. alt
  4411. /><span>已选择</span>
  4412. </div>
  4413. </div>
  4414. </div>
  4415. <div class="tool">
  4416. <div
  4417. class="whiteBIcon"
  4418. @click="addTools(58, itemTaskIndex, toolIndex)"
  4419. >
  4420. <img
  4421. src="../../../assets/icon/fourthToolList/car.png"
  4422. alt
  4423. />
  4424. <div style="margin: 5px 0">模拟驾驶</div>
  4425. </div>
  4426. <div
  4427. class="check"
  4428. @click="addTools(58, itemTaskIndex, toolIndex)"
  4429. >
  4430. <img
  4431. src="../../../assets/icon/checkNo.png"
  4432. alt
  4433. v-if="itemTool.tool.indexOf(58) == -1"
  4434. />
  4435. <div class="checkDiv" v-else>
  4436. <img
  4437. src="../../../assets/icon/checkedIs.png"
  4438. alt
  4439. /><span>已选择</span>
  4440. </div>
  4441. </div>
  4442. </div>
  4443. <div class="tool">
  4444. <div
  4445. class="whiteBIcon"
  4446. @click="addTools(59, itemTaskIndex, toolIndex)"
  4447. >
  4448. <img
  4449. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4450. alt
  4451. />
  4452. <div style="margin: 5px 0">路径搜索</div>
  4453. </div>
  4454. <div
  4455. class="check"
  4456. @click="addTools(59, itemTaskIndex, toolIndex)"
  4457. >
  4458. <img
  4459. src="../../../assets/icon/checkNo.png"
  4460. alt
  4461. v-if="itemTool.tool.indexOf(59) == -1"
  4462. />
  4463. <div class="checkDiv" v-else>
  4464. <img
  4465. src="../../../assets/icon/checkedIs.png"
  4466. alt
  4467. /><span>已选择</span>
  4468. </div>
  4469. </div>
  4470. </div>
  4471. <div class="tool">
  4472. <div
  4473. class="whiteBIcon"
  4474. @click="addTools(60, itemTaskIndex, toolIndex)"
  4475. >
  4476. <img
  4477. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4478. alt
  4479. />
  4480. <div style="margin: 5px 0">深度学习</div>
  4481. </div>
  4482. <div
  4483. class="check"
  4484. @click="addTools(60, itemTaskIndex, toolIndex)"
  4485. >
  4486. <img
  4487. src="../../../assets/icon/checkNo.png"
  4488. alt
  4489. v-if="itemTool.tool.indexOf(60) == -1"
  4490. />
  4491. <div class="checkDiv" v-else>
  4492. <img
  4493. src="../../../assets/icon/checkedIs.png"
  4494. alt
  4495. /><span>已选择</span>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. <div class="tool">
  4500. <div
  4501. class="whiteBIcon"
  4502. @click="addTools(61, itemTaskIndex, toolIndex)"
  4503. >
  4504. <img
  4505. src="../../../assets/icon/fourthToolList/allHistory.png"
  4506. alt
  4507. />
  4508. <div style="margin: 5px 0">全历史</div>
  4509. </div>
  4510. <div
  4511. class="check"
  4512. @click="addTools(61, itemTaskIndex, toolIndex)"
  4513. >
  4514. <img
  4515. src="../../../assets/icon/checkNo.png"
  4516. alt
  4517. v-if="itemTool.tool.indexOf(61) == -1"
  4518. />
  4519. <div class="checkDiv" v-else>
  4520. <img
  4521. src="../../../assets/icon/checkedIs.png"
  4522. alt
  4523. /><span>已选择</span>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. <div class="toolSort" v-if="itemTool.toolType == 4">
  4529. <div class="tool">
  4530. <div
  4531. class="whiteBIcon"
  4532. @click="addTools(26, itemTaskIndex, toolIndex)"
  4533. >
  4534. <img
  4535. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4536. alt
  4537. />
  4538. <div style="margin: 5px 0">课程设计</div>
  4539. </div>
  4540. <div
  4541. class="check"
  4542. @click="addTools(26, itemTaskIndex, toolIndex)"
  4543. >
  4544. <img
  4545. src="../../../assets/icon/checkNo.png"
  4546. alt
  4547. v-if="itemTool.tool.indexOf(26) == -1"
  4548. />
  4549. <div class="checkDiv" v-else>
  4550. <img
  4551. src="../../../assets/icon/checkedIs.png"
  4552. alt
  4553. /><span>已选择</span>
  4554. </div>
  4555. </div>
  4556. </div>
  4557. <div class="tool">
  4558. <div
  4559. class="whiteBIcon"
  4560. @click="addTools(25, itemTaskIndex, toolIndex)"
  4561. >
  4562. <img
  4563. src="../../../assets/icon/thirdToolList/evalua.png"
  4564. alt
  4565. />
  4566. <div style="margin: 5px 0">目标管理</div>
  4567. </div>
  4568. <div
  4569. class="check"
  4570. @click="addTools(25, itemTaskIndex, toolIndex)"
  4571. >
  4572. <img
  4573. src="../../../assets/icon/checkNo.png"
  4574. alt
  4575. v-if="itemTool.tool.indexOf(25) == -1"
  4576. />
  4577. <div class="checkDiv" v-else>
  4578. <img
  4579. src="../../../assets/icon/checkedIs.png"
  4580. alt
  4581. /><span>已选择</span>
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <!-- <div class="tool">
  4586. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4587. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4588. <div style="margin: 5px 0">汉字宫</div>
  4589. </div>
  4590. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4591. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4592. <div class="checkDiv" v-else>
  4593. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4594. </div>
  4595. </div>
  4596. </div> -->
  4597. </div>
  4598. </div>
  4599. </div>
  4600. <div
  4601. class="addToolFun"
  4602. @click="addToolFun(itemTaskIndex)"
  4603. >
  4604. <div class="addToolImg">
  4605. <img src="../../../assets/icon/add.png" alt />
  4606. </div>
  4607. <div>添加工具</div>
  4608. </div>
  4609. </div>
  4610. </div>
  4611. <div
  4612. v-else-if="
  4613. unitJson[unitIndex].easy == 2 ||
  4614. unitJson[unitIndex].easy == 4
  4615. "
  4616. class="toolChoose"
  4617. style="padding: 0 0 0 30px"
  4618. >
  4619. <div class="tools">
  4620. <div
  4621. class="leftTools"
  4622. style="width: 95%"
  4623. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4624. :key="toolIndex"
  4625. >
  4626. <div>
  4627. <textarea
  4628. rows="3"
  4629. type="text"
  4630. placeholder="添加工具描述"
  4631. class="binfo_input"
  4632. style="margin: 0 0 20px 0; width: 71.5% !important"
  4633. v-model="itemTool.toolDetail"
  4634. ></textarea>
  4635. </div>
  4636. <div
  4637. style="
  4638. display: flex;
  4639. flex-direction: row;
  4640. align-items: baseline;
  4641. flex-wrap: nowrap;
  4642. justify-content: flex-start;
  4643. position: relative;
  4644. "
  4645. >
  4646. <div style="margin-right: 20px; font-weight: bold">
  4647. 步骤 {{ toolIndex + 1 }} :
  4648. </div>
  4649. <div
  4650. class="remove"
  4651. @click="deleteTool(itemTaskIndex, toolIndex)"
  4652. v-if="itemTask.toolChoose.length > 1"
  4653. style="position: absolute; right: 55px"
  4654. ></div>
  4655. </div>
  4656. <div style="min-height: 163px">
  4657. <div class="toolSort">
  4658. <div class="tool">
  4659. <div
  4660. class="whiteBIcon"
  4661. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4662. >
  4663. <img
  4664. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4665. alt
  4666. />
  4667. <div style="margin: 5px 0">电子白板</div>
  4668. </div>
  4669. <div
  4670. class="check"
  4671. @click="addTools(1, itemTaskIndex, toolIndex)"
  4672. >
  4673. <img
  4674. src="../../../assets/icon/checkNo.png"
  4675. alt
  4676. v-if="itemTool.tool.indexOf(1) == -1"
  4677. />
  4678. <div class="checkDiv" v-else>
  4679. <img
  4680. src="../../../assets/icon/checkedIs.png"
  4681. alt
  4682. /><span>已选择</span>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. <div class="tool">
  4687. <div
  4688. class="whiteBIcon"
  4689. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4690. >
  4691. <img
  4692. src="../../../assets/icon/fourthToolList/text.png"
  4693. alt
  4694. />
  4695. <div style="margin: 5px 0">文档</div>
  4696. </div>
  4697. <div
  4698. class="check"
  4699. @click="addTools(52, itemTaskIndex, toolIndex)"
  4700. >
  4701. <img
  4702. src="../../../assets/icon/checkNo.png"
  4703. alt
  4704. v-if="itemTool.tool.indexOf(52) == -1"
  4705. />
  4706. <div class="checkDiv" v-else>
  4707. <img
  4708. src="../../../assets/icon/checkedIs.png"
  4709. alt
  4710. /><span>已选择</span>
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div class="tool">
  4715. <div
  4716. class="whiteBIcon"
  4717. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4718. >
  4719. <img
  4720. src="../../../assets/icon/secondToolList/mindMapping.png"
  4721. alt
  4722. />
  4723. <div style="margin: 5px 0">思维导图</div>
  4724. </div>
  4725. <div
  4726. class="check"
  4727. @click="addTools(3, itemTaskIndex, toolIndex)"
  4728. >
  4729. <img
  4730. src="../../../assets/icon/checkNo.png"
  4731. alt
  4732. v-if="itemTool.tool.indexOf(3) == -1"
  4733. />
  4734. <div class="checkDiv" v-else>
  4735. <img
  4736. src="../../../assets/icon/checkedIs.png"
  4737. alt
  4738. /><span>已选择</span>
  4739. </div>
  4740. </div>
  4741. </div>
  4742. <div class="tool">
  4743. <div
  4744. class="whiteBIcon"
  4745. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4746. >
  4747. <img
  4748. src="../../../assets/icon/thirdToolList/ask.png"
  4749. alt
  4750. />
  4751. <div style="margin: 5px 0">问卷调查</div>
  4752. </div>
  4753. <div
  4754. class="check"
  4755. @click="addTools(4, itemTaskIndex, toolIndex)"
  4756. >
  4757. <img
  4758. src="../../../assets/icon/checkNo.png"
  4759. alt
  4760. v-if="itemTool.tool.indexOf(4) == -1"
  4761. />
  4762. <div class="checkDiv" v-else>
  4763. <img
  4764. src="../../../assets/icon/checkedIs.png"
  4765. alt
  4766. /><span>已选择</span>
  4767. </div>
  4768. </div>
  4769. </div>
  4770. <div class="tool">
  4771. <div
  4772. class="whiteBIcon"
  4773. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4774. >
  4775. <img
  4776. src="../../../assets/icon/thirdToolList/choose.png"
  4777. alt
  4778. />
  4779. <div style="margin: 5px 0">选择题</div>
  4780. </div>
  4781. <div
  4782. class="check"
  4783. @click="addTools(45, itemTaskIndex, toolIndex)"
  4784. >
  4785. <img
  4786. src="../../../assets/icon/checkNo.png"
  4787. alt
  4788. v-if="itemTool.tool.indexOf(45) == -1"
  4789. />
  4790. <div class="checkDiv" v-else>
  4791. <img
  4792. src="../../../assets/icon/checkedIs.png"
  4793. alt
  4794. /><span>已选择</span>
  4795. </div>
  4796. </div>
  4797. </div>
  4798. <div class="tool">
  4799. <div
  4800. class="whiteBIcon"
  4801. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4802. >
  4803. <img
  4804. src="../../../assets/icon/thirdToolList/answer.png"
  4805. alt
  4806. />
  4807. <div style="margin: 5px 0">问答工具</div>
  4808. </div>
  4809. <div
  4810. class="check"
  4811. @click="addTools(15, itemTaskIndex, toolIndex)"
  4812. >
  4813. <img
  4814. src="../../../assets/icon/checkNo.png"
  4815. alt
  4816. v-if="itemTool.tool.indexOf(15) == -1"
  4817. />
  4818. <div class="checkDiv" v-else>
  4819. <img
  4820. src="../../../assets/icon/checkedIs.png"
  4821. alt
  4822. /><span>已选择</span>
  4823. </div>
  4824. </div>
  4825. </div>
  4826. <div class="tool">
  4827. <div
  4828. class="whiteBIcon"
  4829. @click="addTools(16, itemTaskIndex, toolIndex)"
  4830. >
  4831. <img
  4832. src="../../../assets/icon/thirdToolList/work.png"
  4833. alt
  4834. />
  4835. <div style="margin: 5px 0">作业提交</div>
  4836. </div>
  4837. <div
  4838. class="check"
  4839. @click="addTools(16, itemTaskIndex, toolIndex)"
  4840. >
  4841. <img
  4842. src="../../../assets/icon/checkNo.png"
  4843. alt
  4844. v-if="itemTool.tool.indexOf(16) == -1"
  4845. />
  4846. <div class="checkDiv" v-else>
  4847. <img
  4848. src="../../../assets/icon/checkedIs.png"
  4849. alt
  4850. /><span>已选择</span>
  4851. </div>
  4852. </div>
  4853. </div>
  4854. <div class="tool">
  4855. <div
  4856. class="whiteBIcon"
  4857. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4858. >
  4859. <img
  4860. src="../../../assets/icon/thirdToolList/plwork.png"
  4861. alt
  4862. />
  4863. <div style="margin: 5px 0">批量上传</div>
  4864. </div>
  4865. <div
  4866. class="check"
  4867. @click="addTools(50, itemTaskIndex, toolIndex)"
  4868. >
  4869. <img
  4870. src="../../../assets/icon/checkNo.png"
  4871. alt
  4872. v-if="itemTool.tool.indexOf(50) == -1"
  4873. />
  4874. <div class="checkDiv" v-else>
  4875. <img
  4876. src="../../../assets/icon/checkedIs.png"
  4877. alt
  4878. /><span>已选择</span>
  4879. </div>
  4880. </div>
  4881. </div>
  4882. <div class="tool">
  4883. <div
  4884. class="whiteBIcon"
  4885. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4886. >
  4887. <img
  4888. src="../../../assets/icon/thirdToolList/select.png"
  4889. alt
  4890. />
  4891. <div style="margin: 5px 0">选择填空</div>
  4892. </div>
  4893. <div
  4894. class="check"
  4895. @click="addTools(41, itemTaskIndex, toolIndex)"
  4896. >
  4897. <img
  4898. src="../../../assets/icon/checkNo.png"
  4899. alt
  4900. v-if="itemTool.tool.indexOf(41) == -1"
  4901. />
  4902. <div class="checkDiv" v-else>
  4903. <img
  4904. src="../../../assets/icon/checkedIs.png"
  4905. alt
  4906. /><span>已选择</span>
  4907. </div>
  4908. </div>
  4909. </div>
  4910. <div class="tool">
  4911. <div
  4912. class="whiteBIcon"
  4913. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4914. >
  4915. <img
  4916. src="../../../assets/icon/fourthToolList/conSentences.png"
  4917. alt
  4918. />
  4919. <div style="margin: 5px 0">连词成句</div>
  4920. </div>
  4921. <div
  4922. class="check"
  4923. @click="addTools(47, itemTaskIndex, toolIndex)"
  4924. >
  4925. <img
  4926. src="../../../assets/icon/checkNo.png"
  4927. alt
  4928. v-if="itemTool.tool.indexOf(47) == -1"
  4929. />
  4930. <div class="checkDiv" v-else>
  4931. <img
  4932. src="../../../assets/icon/checkedIs.png"
  4933. alt
  4934. /><span>已选择</span>
  4935. </div>
  4936. </div>
  4937. </div>
  4938. <div class="tool">
  4939. <div
  4940. class="whiteBIcon"
  4941. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4942. >
  4943. <img
  4944. src="../../../assets/icon/fourthToolList/table.png"
  4945. alt
  4946. />
  4947. <div style="margin: 5px 0">表格</div>
  4948. </div>
  4949. <div
  4950. class="check"
  4951. @click="addTools(48, itemTaskIndex, toolIndex)"
  4952. >
  4953. <img
  4954. src="../../../assets/icon/checkNo.png"
  4955. alt
  4956. v-if="itemTool.tool.indexOf(48) == -1"
  4957. />
  4958. <div class="checkDiv" v-else>
  4959. <img
  4960. src="../../../assets/icon/checkedIs.png"
  4961. alt
  4962. /><span>已选择</span>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. </div>
  4969. <div
  4970. class="addToolFun"
  4971. style="margin-bottom: 20px"
  4972. @click="addToolFun(itemTaskIndex)"
  4973. >
  4974. <div class="addToolImg">
  4975. <img src="../../../assets/icon/add.png" alt />
  4976. </div>
  4977. <div>添加工具</div>
  4978. </div>
  4979. </div>
  4980. </div>
  4981. <div
  4982. v-else-if="
  4983. unitJson[unitIndex].easy == 1 ||
  4984. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4985. "
  4986. class="toolChoose"
  4987. style="padding: 0 0 0 30px"
  4988. >
  4989. <div class="tools">
  4990. <div
  4991. class="leftTools"
  4992. style="
  4993. width: 95%;
  4994. padding: 0 0 15px 0;
  4995. margin-bottom: 15px;
  4996. "
  4997. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4998. :key="toolIndex"
  4999. >
  5000. <div style="min-height: 163px">
  5001. <div class="toolSort">
  5002. <div class="tool">
  5003. <div
  5004. class="whiteBIcon"
  5005. @click="openTools(itemTaskIndex, 50, toolIndex)"
  5006. >
  5007. <img
  5008. src="../../../assets/icon/thirdToolList/plwork.png"
  5009. alt
  5010. />
  5011. <div style="margin: 5px 0">批量上传</div>
  5012. </div>
  5013. <div
  5014. class="check"
  5015. @click="addTools(50, itemTaskIndex, toolIndex)"
  5016. >
  5017. <img
  5018. src="../../../assets/icon/checkNo.png"
  5019. alt
  5020. v-if="itemTool.tool.indexOf(50) == -1"
  5021. />
  5022. <div class="checkDiv" v-else>
  5023. <img
  5024. src="../../../assets/icon/checkedIs.png"
  5025. alt
  5026. /><span>已选择</span>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. </div>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. </div>
  5035. <div
  5036. class="elist_css"
  5037. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  5038. >
  5039. <div class="elist_title">
  5040. <div
  5041. style="
  5042. display: flex;
  5043. flex-direction: row;
  5044. align-items: center;
  5045. margin-bottom: 20px;
  5046. "
  5047. >
  5048. <div class="lineTitle">评价设置</div>
  5049. <div class="line" style="width: 90%"></div>
  5050. </div>
  5051. </div>
  5052. <div class="mbCss">
  5053. <div class="pjCss">
  5054. <div
  5055. v-if="itemTask.eList && itemTask.eList.length"
  5056. class="elist_input"
  5057. >
  5058. <div
  5059. v-for="(eItem, eIndex) in itemTask.eList"
  5060. :key="eIndex"
  5061. class="elist_input_box"
  5062. >
  5063. <span>评价名称:</span>
  5064. <input
  5065. type="input"
  5066. v-model="itemTask.eList[eIndex].value"
  5067. placeholder="填写评价名称"
  5068. />
  5069. <span>评星等级:</span>
  5070. <el-rate
  5071. v-model="itemTask.eList[eIndex].score"
  5072. @change="setEListStar()"
  5073. disabled
  5074. ></el-rate>
  5075. <div
  5076. class="remove"
  5077. @click="
  5078. deletEList(unitIndex, itemTaskIndex, eIndex)
  5079. "
  5080. ></div>
  5081. <div class="elist_inptu_text">
  5082. <span>评价描述:</span>
  5083. <input
  5084. type="input"
  5085. v-model="itemTask.eList[eIndex].detail"
  5086. placeholder="填写评价描述"
  5087. />
  5088. </div>
  5089. <div class="elist_inptu_text" v-if="evalua">
  5090. <span>目标:</span>
  5091. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  5092. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  5093. @change="forceUpdate()">
  5094. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  5095. :value="e.name">
  5096. </el-option>
  5097. </el-select> -->
  5098. <el-cascader
  5099. :options="targetArray"
  5100. v-model="itemTask.eList[eIndex].target"
  5101. :props="{ checkStrictly: true }"
  5102. :show-all-levels="false"
  5103. clearable
  5104. ></el-cascader>
  5105. </div>
  5106. </div>
  5107. </div>
  5108. <div
  5109. class="addToolFun"
  5110. @click="addEList(unitIndex, itemTaskIndex)"
  5111. style="margin: 35px 35px 0 0"
  5112. >
  5113. <div class="addToolImg">
  5114. <img src="../../../assets/icon/add.png" alt />
  5115. </div>
  5116. <div>添加</div>
  5117. </div>
  5118. </div>
  5119. <div
  5120. v-if="evalua"
  5121. style="
  5122. border: 1px solid #e5e5e5;
  5123. width: 55%;
  5124. margin-top: 20px;
  5125. box-shadow: 3px 1px 15px 3px #e0e0e0;
  5126. "
  5127. class="evaCss"
  5128. >
  5129. <div class="e_add_top">
  5130. <div class="e_add_title">
  5131. <span>当前使用目标管理</span>
  5132. <span>{{ eTitle }}</span>
  5133. <img
  5134. src="../../../assets/line.png"
  5135. class="cru_line"
  5136. style="
  5137. width: 125px;
  5138. height: 20px;
  5139. bottom: -10px;
  5140. left: 155px;
  5141. "
  5142. />
  5143. </div>
  5144. </div>
  5145. <div class="e_add_content" style="width: 100%">
  5146. <div class="e_add_list_pbox" style="width: 100%">
  5147. <div class="e_add_list_pbox_title">
  5148. <span class="type_title">切换模式</span>
  5149. <div class="type_content">
  5150. <span
  5151. :class="{ active: typeMode == 1 }"
  5152. @click="OtherMb(1)"
  5153. >目标树</span
  5154. >
  5155. <span
  5156. :class="{ active: typeMode == 2 }"
  5157. @click="OtherMb(2)"
  5158. >目标罗盘</span
  5159. >
  5160. <span
  5161. :class="{ active: typeMode == 3 }"
  5162. @click="OtherMb(3)"
  5163. >目标看板</span
  5164. >
  5165. </div>
  5166. </div>
  5167. <div class="e_add_list_pbox_content">
  5168. <Mind
  5169. :showBar="false"
  5170. :mindData="data"
  5171. style="width: 100%"
  5172. :jsmindId="
  5173. unitIndex + '-' + itemTaskIndex + 'mind'
  5174. "
  5175. v-if="typeMode == 1"
  5176. ></Mind>
  5177. <Sunburst
  5178. :Josn="eJson"
  5179. :num="eJSONNum"
  5180. style="width: 100%"
  5181. v-if="typeMode == 2"
  5182. >
  5183. </Sunburst>
  5184. <SeeBoard
  5185. :Josn="eJson"
  5186. :num="eJSONNum"
  5187. :ename="eTitle"
  5188. style="width: 100%"
  5189. v-if="typeMode == 3"
  5190. ></SeeBoard>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. </div>
  5195. </div>
  5196. </div>
  5197. <div class="funBlock" style="padding: 0">
  5198. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  5199. <div>折叠</div>
  5200. <div class="arrow">
  5201. <img src="../../../assets/icon/fold.png" alt />
  5202. </div>
  5203. </div>
  5204. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  5205. <div>展开</div>
  5206. <div class="arrow">
  5207. <img src="../../../assets/icon/expand.png" alt />
  5208. </div>
  5209. </div>
  5210. </div>
  5211. </div>
  5212. <div
  5213. class="addTaskBorder"
  5214. @click="addTaskBorder"
  5215. v-if="!unitJson[unitIndex].easy"
  5216. >
  5217. <div>
  5218. <img src="../../../assets/icon/addHw.png" alt />
  5219. <span>添加任务</span>
  5220. </div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. <div class="rightBox" v-if="this.steps == 4">
  5226. <div class="basic_box_success">
  5227. <div class="right_img">
  5228. <img src="../../../assets/icon/right.png" alt />
  5229. </div>
  5230. <div style="font-weight: bold">成功</div>
  5231. <!-- <div>您的课程编号</div>
  5232. <div class="number">{{ number }}</div>-->
  5233. <!-- <div class="success_button">
  5234. <div class="look_course" @click="isNoFinsh">
  5235. 邀请老师协同编辑
  5236. </div>
  5237. <div class="attend_others" @click="goCourse">预览课程</div>
  5238. </div> -->
  5239. </div>
  5240. </div>
  5241. <div class="info_btnBox">
  5242. <button
  5243. class="info_btn"
  5244. @click="
  5245. goTo(
  5246. '/course?userid=' +
  5247. userid +
  5248. '&oid=' +
  5249. oid +
  5250. '&org=' +
  5251. org +
  5252. '&role=' +
  5253. role
  5254. )
  5255. "
  5256. >
  5257. 返回课程
  5258. </button>
  5259. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  5260. 确认上传
  5261. </button>
  5262. </div>
  5263. </div>
  5264. </div>
  5265. </div>
  5266. <el-dialog
  5267. title="提示"
  5268. :visible.sync="dialogVisible"
  5269. :append-to-body="true"
  5270. width="25%"
  5271. :before-close="handleClose"
  5272. class="dialog_diy2 customWidth"
  5273. >
  5274. <div>请复制该链接邀请协同编辑</div>
  5275. <div>http://www.boomyon.com/index-zhang.com</div>
  5276. <span slot="footer" class="dialog-footer">
  5277. <el-button type="primary">复制链接分享</el-button>
  5278. <el-button @click="dialogVisible = false">取消</el-button>
  5279. </span>
  5280. </el-dialog>
  5281. <el-dialog
  5282. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5283. :visible.sync="dialogVisible1"
  5284. :append-to-body="true"
  5285. width="25%"
  5286. :before-close="handleClose"
  5287. class="dialog_diy2 customWidth"
  5288. >
  5289. <el-form>
  5290. <el-form-item label="文档标题">
  5291. <el-input
  5292. v-model="tTitle"
  5293. auto-complete="off"
  5294. placeholder="请输入文档标题名..."
  5295. ></el-input>
  5296. </el-form-item>
  5297. <div>文档简介</div>
  5298. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5299. </el-form>
  5300. <span slot="footer" class="dialog-footer">
  5301. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5302. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5303. >添加</el-button
  5304. >
  5305. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5306. </span>
  5307. </el-dialog>
  5308. <el-dialog
  5309. title="添加文档"
  5310. :visible.sync="dialogVisible2"
  5311. :append-to-body="true"
  5312. width="500px"
  5313. :before-close="handleClose"
  5314. class="dialog_diy"
  5315. >
  5316. <el-form>
  5317. <el-form-item label="文档标题">
  5318. <el-input
  5319. v-model="templateC.title"
  5320. auto-complete="off"
  5321. placeholder="请输入文档标题名..."
  5322. ></el-input>
  5323. </el-form-item>
  5324. <div>文档内容</div>
  5325. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5326. </el-form>
  5327. <span slot="footer" class="dialog-footer">
  5328. <el-button @click="clearChoose">取 消</el-button>
  5329. <el-button type="primary" @click="wordNext()">确定</el-button>
  5330. </span>
  5331. </el-dialog>
  5332. <el-dialog
  5333. title="添加富文本"
  5334. :visible.sync="dialogVisible6"
  5335. :append-to-body="true"
  5336. width="500px"
  5337. :before-close="handleClose"
  5338. class="dialog_diy"
  5339. >
  5340. <el-form>
  5341. <el-form-item label="文本标题">
  5342. <el-input
  5343. v-model="AttText.title"
  5344. auto-complete="off"
  5345. @input="change2"
  5346. placeholder="请输入文本标题..."
  5347. ></el-input>
  5348. </el-form-item>
  5349. <div>富文本内容</div>
  5350. <editor-bar
  5351. v-model="AttText.text"
  5352. @change="change"
  5353. v-if="dialogVisible6"
  5354. ></editor-bar>
  5355. </el-form>
  5356. <span slot="footer" class="dialog-footer">
  5357. <el-button @click="clearAttText">取 消</el-button>
  5358. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5359. </span>
  5360. </el-dialog>
  5361. <el-dialog
  5362. title="添加链接"
  5363. :visible.sync="dialogVisible7"
  5364. :append-to-body="true"
  5365. width="500px"
  5366. :before-close="handleClose"
  5367. class="dialog_diy lineCss"
  5368. >
  5369. <el-form>
  5370. <el-form-item label="标题" :label-width="formLabelWidth">
  5371. <span>
  5372. <el-input
  5373. placeholder="请输入链接标题"
  5374. clearable
  5375. v-model="lineTitle"
  5376. class="add_input"
  5377. ></el-input>
  5378. </span>
  5379. </el-form-item>
  5380. <el-form-item label="链接" :label-width="formLabelWidth">
  5381. <span>
  5382. <el-input
  5383. placeholder="请输入链接"
  5384. clearable
  5385. v-model="line"
  5386. class="add_input"
  5387. ></el-input>
  5388. </span>
  5389. </el-form-item>
  5390. </el-form>
  5391. <span slot="footer" class="dialog-footer">
  5392. <el-button @click="clearLine">取 消</el-button>
  5393. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5394. </span>
  5395. </el-dialog>
  5396. <el-dialog
  5397. title="添加资源"
  5398. :visible.sync="dialogVisibleSource"
  5399. :append-to-body="true"
  5400. width="100%"
  5401. :before-close="handleClose"
  5402. class="dialog_diy source_diy"
  5403. >
  5404. <div>
  5405. <sourceDialog :sourceData="sourceData"></sourceDialog>
  5406. </div>
  5407. <span slot="footer" class="dialog-footer">
  5408. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5409. <el-button type="primary" @click="addSource">确定</el-button>
  5410. </span>
  5411. </el-dialog>
  5412. <el-dialog
  5413. title="添加课程成员"
  5414. :visible.sync="dialogVisible3"
  5415. :append-to-body="true"
  5416. width="25%"
  5417. height="80%"
  5418. :before-close="handleClose"
  5419. class="addNewPP customWidth"
  5420. >
  5421. <div class="people">
  5422. <div class="people_top">
  5423. <div class="people_nav">选择成员</div>
  5424. <div class="people_top_right">
  5425. <div class="people_search">
  5426. <el-input
  5427. style="height: 100%"
  5428. placeholder="搜索成员名称"
  5429. v-model="searchPeople"
  5430. ></el-input>
  5431. <div class="search_img" @click="searchStudent">
  5432. <img src="../../../assets/icon/search.png" alt />
  5433. </div>
  5434. </div>
  5435. </div>
  5436. </div>
  5437. <el-checkbox-group v-model="checkboxList" class="people_name">
  5438. <el-checkbox
  5439. v-for="item in studentJuri"
  5440. :key="item.userid"
  5441. :label="item.userid"
  5442. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5443. >
  5444. </el-checkbox-group>
  5445. </div>
  5446. <span slot="footer" class="dialog-footer">
  5447. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5448. <el-button type="primary" @click="isAddPP">确定</el-button>
  5449. </span>
  5450. </el-dialog>
  5451. <el-dialog
  5452. title="添加班级"
  5453. :visible.sync="dialogVisibleClass"
  5454. :append-to-body="true"
  5455. width="400px"
  5456. height="80%"
  5457. :before-close="handleClose"
  5458. class="addNewPP"
  5459. >
  5460. <div class="people" style="height: 300px">
  5461. <div class="people_top">
  5462. <div class="people_top_right">
  5463. <div class="people_search">
  5464. <el-input
  5465. placeholder="搜索班级名称"
  5466. v-model="classSearch"
  5467. @input="getClass()"
  5468. ></el-input>
  5469. <!-- @click="getClass()"
  5470. @keyup.enter.native="getClass()"
  5471. -->
  5472. <div class="search_img">
  5473. <img src="../../../assets/icon/search.png" alt />
  5474. </div>
  5475. </div>
  5476. </div>
  5477. <div class="people_nav">选择班级</div>
  5478. </div>
  5479. <el-checkbox-group
  5480. v-model="checkboxList2"
  5481. class="people_name people_name2"
  5482. @change="InviteChange"
  5483. >
  5484. <div v-for="item in grade2" :key="item.id" class="p_box">
  5485. <el-checkbox :label="item.id">
  5486. {{ item.name }}
  5487. </el-checkbox>
  5488. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  5489. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  5490. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  5491. @click="OpenInviteD(item.id)">随机码设置</div>
  5492. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  5493. </div>
  5494. </el-checkbox-group>
  5495. </div>
  5496. <span slot="footer" class="dialog-footer">
  5497. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5498. <el-button type="primary" @click="isAddClass">确定</el-button>
  5499. </span>
  5500. </el-dialog>
  5501. <el-dialog
  5502. title="添加协同成员"
  5503. :visible.sync="dialogVisibleMember"
  5504. :append-to-body="true"
  5505. width="25%"
  5506. height="80%"
  5507. :before-close="handleClose"
  5508. class="addNewPP customWidth"
  5509. >
  5510. <div class="people">
  5511. <div class="people_top">
  5512. <div class="people_top_right">
  5513. <div class="people_search">
  5514. <el-input
  5515. placeholder="搜索成员名称"
  5516. v-model="searchTN"
  5517. @keyup.enter.native="getTeacher"
  5518. ></el-input>
  5519. <div class="search_img" @click="getTeacher">
  5520. <img src="../../../assets/icon/search.png" alt />
  5521. </div>
  5522. </div>
  5523. </div>
  5524. <div class="people_nav">选择成员</div>
  5525. </div>
  5526. <el-checkbox-group
  5527. v-model="checkboxList3"
  5528. class="people_name"
  5529. v-if="teacherJuri.length"
  5530. >
  5531. <el-checkbox
  5532. v-for="item in teacherJuri"
  5533. :key="item.userid"
  5534. :label="item.userid"
  5535. >
  5536. <div class="t_j_box">
  5537. <el-tooltip
  5538. placement="top"
  5539. :content="item.name ? item.name : '暂无姓名'"
  5540. >
  5541. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5542. </el-tooltip>
  5543. <el-tooltip placement="top" :content="item.username">
  5544. <span>{{ item.username }}</span>
  5545. </el-tooltip>
  5546. <el-tooltip placement="top" :content="item.school">
  5547. <span>{{ item.school }}</span>
  5548. </el-tooltip>
  5549. </div>
  5550. </el-checkbox>
  5551. </el-checkbox-group>
  5552. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5553. </div>
  5554. <span slot="footer" class="dialog-footer">
  5555. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5556. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5557. </span>
  5558. </el-dialog>
  5559. <el-dialog
  5560. title="创建问卷"
  5561. :visible.sync="dialogVisible5"
  5562. :append-to-body="true"
  5563. width="800px"
  5564. :before-close="handleClose"
  5565. class="dialog_diy"
  5566. >
  5567. <div>
  5568. <div
  5569. class="a_add_title"
  5570. style="
  5571. display: flex;
  5572. flex-direction: row;
  5573. align-items: center;
  5574. justify-content: center;
  5575. "
  5576. >
  5577. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5578. <el-input
  5579. v-model="askJson.askTitle"
  5580. placeholder="请输入标题"
  5581. style="width: 400px"
  5582. ></el-input>
  5583. </div>
  5584. <div class="a_addBox">
  5585. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  5586. <div
  5587. class="a_add_box"
  5588. v-for="(item1, index1) in askJson.askCount"
  5589. :key="index1"
  5590. >
  5591. <div class="a_add_checkType">
  5592. <span
  5593. :class="{
  5594. active:
  5595. askJson.askJson[index1].type == '1' ||
  5596. !askJson.askJson[index1].type,
  5597. }"
  5598. @click="checkAskType('1', askJson.askJson[index1])"
  5599. >单选题</span
  5600. >
  5601. <span
  5602. :class="{ active: askJson.askJson[index1].type == '2' }"
  5603. @click="checkAskType('2', askJson.askJson[index1])"
  5604. >多选题</span
  5605. >
  5606. </div>
  5607. <div class="a_add_head">
  5608. <div>
  5609. {{ index1 + 1 + "、" }}
  5610. <el-input
  5611. class="a_add_head_input"
  5612. v-model="askJson.askJson[index1].askstitle"
  5613. placeholder="请输入题目..."
  5614. >
  5615. </el-input>
  5616. </div>
  5617. <div class="a_add_head_div">
  5618. <el-button type="primary" size="small" @click="addAskList()"
  5619. >添加</el-button
  5620. >
  5621. <el-button
  5622. type="primary"
  5623. size="small"
  5624. @click="deleteAskList(index1)"
  5625. v-if="askJson.askCount != 1"
  5626. >删除
  5627. </el-button>
  5628. </div>
  5629. </div>
  5630. <div class="a_add_body">
  5631. <div class="a_add_input">
  5632. <el-input
  5633. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5634. :key="checkIndex"
  5635. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5636. placeholder="请输入选项..."
  5637. style="width: 150px; margin: 10px 10px 0 0"
  5638. ></el-input>
  5639. </div>
  5640. <div class="a_add_body_div">
  5641. <el-button
  5642. style="margin: 10px 0px 0 0"
  5643. type="primary"
  5644. size="small"
  5645. @click="addcheckList(askJson.askJson[index1])"
  5646. >添加</el-button
  5647. >
  5648. <el-button
  5649. type="primary"
  5650. size="small"
  5651. style="margin: 10px 0 0 10px"
  5652. @click="deletecheckList(askJson.askJson[index1])"
  5653. v-if="askJson.askJson[index1].askItem != 1"
  5654. >删除
  5655. </el-button>
  5656. </div>
  5657. </div>
  5658. </div>
  5659. </div>
  5660. </div>
  5661. <span slot="footer" class="dialog-footer">
  5662. <el-button @click="dialogVisible5 = false">取 消</el-button>
  5663. <el-button type="primary" @click="addAsk">确 定</el-button>
  5664. </span>
  5665. </el-dialog>
  5666. <el-dialog
  5667. title="创建选择题"
  5668. :visible.sync="dialogVisibleChoice"
  5669. :append-to-body="true"
  5670. width="800px"
  5671. :before-close="handleClose"
  5672. class="dialog_diy"
  5673. >
  5674. <div>
  5675. <!-- <div class="a_add_title" style="
  5676. display: flex;
  5677. flex-direction: row;
  5678. align-items: center;
  5679. justify-content: center;
  5680. ">
  5681. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5682. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5683. </div> -->
  5684. <div class="a_addBox">
  5685. <div style="font-size: 16px; color: #c7c7c7">
  5686. 请输入题目内容
  5687. <el-button
  5688. type="primary"
  5689. size="small"
  5690. @click="pasteOption"
  5691. style="margin-left: 10px"
  5692. >智能粘贴</el-button
  5693. >
  5694. </div>
  5695. <div
  5696. class="a_add_box"
  5697. v-for="(item1, index1) in testJson.testCount"
  5698. :key="index1"
  5699. >
  5700. <div class="a_add_checkType">
  5701. <span
  5702. :class="{ active: testJson.testJson[index1].type == '1' }"
  5703. @click="checkTestType('1', testJson.testJson[index1])"
  5704. >单选题</span
  5705. >
  5706. <span
  5707. :class="{ active: testJson.testJson[index1].type == '2' }"
  5708. @click="checkTestType('2', testJson.testJson[index1])"
  5709. >多选题</span
  5710. >
  5711. </div>
  5712. <div class="a_add_head">
  5713. <div class="timuUpImg">
  5714. <div>
  5715. {{ index1 + 1 + "、" }}
  5716. <el-input
  5717. class="a_add_head_input"
  5718. v-model="testJson.testJson[index1].teststitle"
  5719. placeholder="请输入题目..."
  5720. >
  5721. </el-input>
  5722. </div>
  5723. <div class="xzUpImg" @click.stop="addImg($event)">
  5724. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5725. <input
  5726. type="file"
  5727. accept="image/*"
  5728. style="display: none"
  5729. @change="beforeUploadTiMu($event, index1)"
  5730. />
  5731. </div>
  5732. </div>
  5733. <div class="a_add_head_div">
  5734. <el-button type="primary" size="small" @click="addTestList()"
  5735. >添加</el-button
  5736. >
  5737. <el-button
  5738. type="primary"
  5739. size="small"
  5740. @click="deleteTestList(index1)"
  5741. v-if="testJson.testCount != 1"
  5742. >删除
  5743. </el-button>
  5744. </div>
  5745. </div>
  5746. <div
  5747. class="timuImgBox"
  5748. v-if="
  5749. testJson.testJson[index1].timuList &&
  5750. testJson.testJson[index1].timuList.length
  5751. "
  5752. >
  5753. <div
  5754. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5755. :key="tIndex"
  5756. class="timuImg"
  5757. @click.stop="previewImg(timg.src)"
  5758. >
  5759. <img :src="timg.src" alt="" />
  5760. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5761. <img src="../../../assets/icon/delete.png" alt="" />
  5762. </div>
  5763. </div>
  5764. </div>
  5765. <div class="a_add_body">
  5766. <div class="a_add_input a_add_input_choice">
  5767. <el-radio-group
  5768. v-model="testJson.testJson[index1].answer"
  5769. v-if="testJson.testJson[index1].type == 1"
  5770. >
  5771. <div class="radioBox">
  5772. <el-radio
  5773. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5774. .testItem"
  5775. :key="checkIndex"
  5776. :label="checkIndex"
  5777. >
  5778. <div style="margin-right: 10px">
  5779. 选项{{ checkIndex + 1 }}
  5780. </div>
  5781. <div
  5782. style="margin-right: 10px; width: 300px"
  5783. v-if="
  5784. testJson.testJson[index1].checkList[checkIndex] &&
  5785. testJson.testJson[index1].checkList[checkIndex]
  5786. .imgType &&
  5787. testJson.testJson[index1].checkList[checkIndex]
  5788. .imgType == 1
  5789. "
  5790. >
  5791. <div
  5792. class="inImg"
  5793. @click.stop="
  5794. previewImg(
  5795. testJson.testJson[index1].checkList[checkIndex]
  5796. .src
  5797. )
  5798. "
  5799. >
  5800. <el-image
  5801. :src="
  5802. testJson.testJson[index1].checkList[checkIndex]
  5803. .src
  5804. "
  5805. lazy
  5806. />
  5807. <!-- <img :src="
  5808. testJson.testJson[index1].checkList[checkIndex]
  5809. .src
  5810. " alt="" /> -->
  5811. </div>
  5812. </div>
  5813. <el-input
  5814. v-else
  5815. v-model="
  5816. testJson.testJson[index1].checkList[checkIndex]
  5817. "
  5818. placeholder="请输入选项..."
  5819. style="width: 300px; margin-right: 10px"
  5820. ></el-input>
  5821. <div class="xzUpImg" @click.stop="addImg($event)">
  5822. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5823. <input
  5824. type="file"
  5825. accept="image/*"
  5826. style="display: none"
  5827. @change="beforeUploadTi($event, index1, checkIndex)"
  5828. />
  5829. </div>
  5830. </el-radio>
  5831. </div>
  5832. </el-radio-group>
  5833. <el-checkbox-group
  5834. v-model="testJson.testJson[index1].answer"
  5835. v-if="testJson.testJson[index1].type == '2'"
  5836. >
  5837. <div class="radioBox">
  5838. <el-checkbox
  5839. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5840. .testItem"
  5841. :key="checkIndex1"
  5842. :label="checkIndex1"
  5843. >
  5844. <div style="margin-right: 10px">
  5845. 选项{{ checkIndex1 + 1 }}
  5846. </div>
  5847. <div
  5848. style="margin-right: 10px; width: 300px"
  5849. v-if="
  5850. testJson.testJson[index1].checkList[checkIndex1] &&
  5851. testJson.testJson[index1].checkList[checkIndex1]
  5852. .imgType &&
  5853. testJson.testJson[index1].checkList[checkIndex1]
  5854. .imgType == 1
  5855. "
  5856. >
  5857. <div
  5858. class="inImg"
  5859. @click.stop="
  5860. previewImg(
  5861. testJson.testJson[index1].checkList[checkIndex1]
  5862. .src
  5863. )
  5864. "
  5865. >
  5866. <el-image
  5867. :src="
  5868. testJson.testJson[index1].checkList[checkIndex1]
  5869. .src
  5870. "
  5871. lazy
  5872. />
  5873. <!-- <img :src="
  5874. testJson.testJson[index1].checkList[checkIndex1]
  5875. .src
  5876. " alt="" /> -->
  5877. </div>
  5878. </div>
  5879. <el-input
  5880. v-else
  5881. v-model="
  5882. testJson.testJson[index1].checkList[checkIndex1]
  5883. "
  5884. placeholder="请输入选项..."
  5885. style="width: 300px; margin-right: 10px"
  5886. ></el-input>
  5887. <div class="xzUpImg" @click.stop="addImg($event)">
  5888. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5889. <input
  5890. type="file"
  5891. accept="image/*"
  5892. style="display: none"
  5893. @change="beforeUploadTi($event, index1, checkIndex1)"
  5894. />
  5895. </div>
  5896. </el-checkbox>
  5897. </div>
  5898. </el-checkbox-group>
  5899. </div>
  5900. <div class="a_add_body_div" style="margin-bottom: 3px">
  5901. <el-button
  5902. type="primary"
  5903. size="small"
  5904. @click="addTcheckList(testJson.testJson[index1])"
  5905. >添加</el-button
  5906. >
  5907. <el-button
  5908. type="primary"
  5909. size="small"
  5910. @click="deleteTcheckList(testJson.testJson[index1])"
  5911. v-if="testJson.testJson[index1].testItem != 1"
  5912. >删除
  5913. </el-button>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <span slot="footer" class="dialog-footer">
  5920. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  5921. <el-button type="primary" @click="addTest">确 定</el-button>
  5922. </span>
  5923. </el-dialog>
  5924. <el-dialog
  5925. title="添加工具"
  5926. :visible.sync="dialogVisible4"
  5927. :append-to-body="true"
  5928. width="600px"
  5929. :before-close="handleClose"
  5930. class="dialog_diy addToolsDia"
  5931. >
  5932. <div class="toolChoose" style="padding: 0 0 0 30px">
  5933. <div class="tools">
  5934. <div
  5935. class="leftTools"
  5936. style="
  5937. width: 95%;
  5938. padding: 0 0 15px 0;
  5939. border-bottom: 1px solid #efefef;
  5940. margin-bottom: 15px;
  5941. "
  5942. v-for="(itemTools, itemToolsIndex) in chapTools"
  5943. :key="itemToolsIndex"
  5944. >
  5945. <div
  5946. style="
  5947. display: flex;
  5948. flex-direction: row;
  5949. align-items: baseline;
  5950. flex-wrap: nowrap;
  5951. justify-content: flex-start;
  5952. position: relative;
  5953. "
  5954. >
  5955. <div class="chooseWho">
  5956. <div
  5957. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5958. @click="chapToolsType = 0"
  5959. >
  5960. 互动类
  5961. </div>
  5962. <div
  5963. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5964. @click="chapToolsType = 1"
  5965. >
  5966. 思维类
  5967. </div>
  5968. <div
  5969. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5970. @click="chapToolsType = 2"
  5971. >
  5972. 评价类
  5973. </div>
  5974. <div
  5975. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5976. @click="chapToolsType = 2"
  5977. >
  5978. 其他
  5979. </div>
  5980. </div>
  5981. </div>
  5982. <div style="min-height: 163px">
  5983. <div class="toolSort" v-if="chapToolsType == 0">
  5984. <div class="tool">
  5985. <div class="whiteBIcon" @click="chapAddTools(8)">
  5986. <img
  5987. src="../../../assets/icon/secondToolList/library.png"
  5988. alt
  5989. />
  5990. <div style="margin: 5px 0">素材库</div>
  5991. </div>
  5992. <div class="check" @click="chapAddTools(8)">
  5993. <img
  5994. src="../../../assets/icon/checkNo.png"
  5995. alt
  5996. v-if="itemTools.tools.indexOf(8) == -1"
  5997. />
  5998. <div class="checkDiv" v-else>
  5999. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6000. >已选择</span
  6001. >
  6002. </div>
  6003. </div>
  6004. </div>
  6005. </div>
  6006. <div class="toolSort" v-if="chapToolsType == 1">
  6007. <div class="tool">
  6008. <div class="whiteBIcon" @click="chapAddTools(7)">
  6009. <img
  6010. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6011. alt
  6012. />
  6013. <div style="margin: 5px 0">思维网格</div>
  6014. </div>
  6015. <div class="check" @click="chapAddTools(7)">
  6016. <img
  6017. src="../../../assets/icon/checkNo.png"
  6018. alt
  6019. v-if="itemTools.tools.indexOf(7) == -1"
  6020. />
  6021. <div class="checkDiv" v-else>
  6022. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6023. >已选择</span
  6024. >
  6025. </div>
  6026. </div>
  6027. </div>
  6028. <div class="tool">
  6029. <div class="whiteBIcon" @click="chapAddTools(1)">
  6030. <img
  6031. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6032. alt
  6033. />
  6034. <div style="margin: 5px 0">电子白板</div>
  6035. </div>
  6036. <div class="check" @click="chapAddTools(1)">
  6037. <img
  6038. src="../../../assets/icon/checkNo.png"
  6039. alt
  6040. v-if="itemTools.tools.indexOf(1) == -1"
  6041. />
  6042. <div class="checkDiv" v-else>
  6043. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6044. >已选择</span
  6045. >
  6046. </div>
  6047. </div>
  6048. </div>
  6049. <div class="tool">
  6050. <div class="whiteBIcon" @click="chapAddTools(2)">
  6051. <img
  6052. src="../../../assets/icon/secondToolList/note.png"
  6053. alt
  6054. />
  6055. <div style="margin: 5px 0">便签</div>
  6056. </div>
  6057. <div class="check" @click="chapAddTools(2)">
  6058. <img
  6059. src="../../../assets/icon/checkNo.png"
  6060. alt
  6061. v-if="itemTools.tools.indexOf(2) == -1"
  6062. />
  6063. <div class="checkDiv" v-else>
  6064. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6065. >已选择</span
  6066. >
  6067. </div>
  6068. </div>
  6069. </div>
  6070. <div class="tool">
  6071. <div class="whiteBIcon" @click="chapAddTools(6)">
  6072. <img
  6073. src="../../../assets/icon/secondToolList/doc.png"
  6074. alt
  6075. />
  6076. <div style="margin: 5px 0">协同文档</div>
  6077. </div>
  6078. <div class="check" @click="chapAddTools(6)">
  6079. <img
  6080. src="../../../assets/icon/checkNo.png"
  6081. alt
  6082. v-if="itemTools.tools.indexOf(6) == -1"
  6083. />
  6084. <div class="checkDiv" v-else>
  6085. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6086. >已选择</span
  6087. >
  6088. </div>
  6089. </div>
  6090. </div>
  6091. <div class="tool">
  6092. <div class="whiteBIcon" @click="chapAddTools(3)">
  6093. <img
  6094. src="../../../assets/icon/secondToolList/mindMapping.png"
  6095. alt
  6096. />
  6097. <div style="margin: 5px 0">思维导图</div>
  6098. </div>
  6099. <div class="check" @click="chapAddTools(3)">
  6100. <img
  6101. src="../../../assets/icon/checkNo.png"
  6102. alt
  6103. v-if="itemTools.tools.indexOf(3) == -1"
  6104. />
  6105. <div class="checkDiv" v-else>
  6106. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6107. >已选择</span
  6108. >
  6109. </div>
  6110. </div>
  6111. </div>
  6112. <div class="tool">
  6113. <div class="whiteBIcon" @click="chapAddTools(31)">
  6114. <img
  6115. src="../../../assets/icon/secondToolList/networkPanel.png"
  6116. alt
  6117. />
  6118. <div style="margin: 5px 0">数学画板</div>
  6119. </div>
  6120. <div class="check" @click="chapAddTools(31)">
  6121. <img
  6122. src="../../../assets/icon/checkNo.png"
  6123. alt
  6124. v-if="itemTools.tools.indexOf(31) == -1"
  6125. />
  6126. <div class="checkDiv" v-else>
  6127. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6128. >已选择</span
  6129. >
  6130. </div>
  6131. </div>
  6132. </div>
  6133. </div>
  6134. <div class="toolSort" v-if="chapToolsType == 2">
  6135. <div class="tool">
  6136. <div class="whiteBIcon" @click="chapAddTools(5)">
  6137. <img
  6138. src="../../../assets/icon/thirdToolList/score.png"
  6139. alt
  6140. />
  6141. <div style="margin: 5px 0">量规评分</div>
  6142. </div>
  6143. <div class="check" @click="chapAddTools(5)">
  6144. <img
  6145. src="../../../assets/icon/checkNo.png"
  6146. alt
  6147. v-if="itemTools.tools.indexOf(5) == -1"
  6148. />
  6149. <div class="checkDiv" v-else>
  6150. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6151. >已选择</span
  6152. >
  6153. </div>
  6154. </div>
  6155. </div>
  6156. <div class="tool">
  6157. <div
  6158. class="whiteBIcon"
  6159. @click="openTools(chapCount, 4, null)"
  6160. >
  6161. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6162. <div style="margin: 5px 0">问卷调查</div>
  6163. </div>
  6164. <div class="check" @click="chapAddTools(4)">
  6165. <img
  6166. src="../../../assets/icon/checkNo.png"
  6167. alt
  6168. v-if="itemTools.tools.indexOf(4) == -1"
  6169. />
  6170. <div class="checkDiv" v-else>
  6171. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6172. >已选择</span
  6173. >
  6174. </div>
  6175. </div>
  6176. </div>
  6177. </div>
  6178. </div>
  6179. <div>
  6180. <input
  6181. type="text"
  6182. placeholder="添加工具描述"
  6183. class="binfo_input"
  6184. style="margin: 20px 0; width: 71.5% !important"
  6185. v-model="itemTools.toolDetail"
  6186. />
  6187. </div>
  6188. </div>
  6189. </div>
  6190. </div>
  6191. <span slot="footer" class="dialog-footer">
  6192. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6193. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6194. </span>
  6195. </el-dialog>
  6196. <el-dialog
  6197. title="添加问答"
  6198. :visible.sync="dialogVisible8"
  6199. :append-to-body="true"
  6200. width="500px"
  6201. :before-close="handleClose"
  6202. class="dialog_diy"
  6203. >
  6204. <div>
  6205. <div
  6206. class="a_add_title"
  6207. style="
  6208. display: flex;
  6209. flex-direction: column;
  6210. align-items: flex-start;
  6211. justify-content: center;
  6212. "
  6213. >
  6214. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6215. <el-input
  6216. v-model="answerQ"
  6217. placeholder="请输入您要问的问题"
  6218. ></el-input>
  6219. </div>
  6220. </div>
  6221. <span slot="footer" class="dialog-footer">
  6222. <el-button @click="dialogVisible8 = false">取 消</el-button>
  6223. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6224. </span>
  6225. </el-dialog>
  6226. <el-dialog
  6227. title="添加问题"
  6228. :visible.sync="dialogVisibleMp3"
  6229. :append-to-body="true"
  6230. width="500px"
  6231. :before-close="handleClose"
  6232. class="dialog_diy"
  6233. >
  6234. <div>
  6235. <div
  6236. class="a_add_title"
  6237. style="
  6238. display: flex;
  6239. flex-direction: column;
  6240. align-items: flex-start;
  6241. justify-content: center;
  6242. "
  6243. >
  6244. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6245. <el-input
  6246. v-model="answerQ"
  6247. placeholder="请输入您想要回答的问题"
  6248. ></el-input>
  6249. </div>
  6250. </div>
  6251. <span slot="footer" class="dialog-footer">
  6252. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6253. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6254. </span>
  6255. </el-dialog>
  6256. <el-dialog
  6257. title="上传图片"
  6258. :visible.sync="choosePicVisible"
  6259. :append-to-body="true"
  6260. width="500px"
  6261. :before-close="handleClose"
  6262. class="dialog_diy"
  6263. >
  6264. <div>
  6265. <div class="fileCss" style="padding-top: 20px">
  6266. <div>
  6267. <button class="info_btn" @click="addImg($event)">
  6268. 选择本地文件
  6269. <input
  6270. type="file"
  6271. accept="image/*"
  6272. style="display: none"
  6273. @change="beforeUpload1"
  6274. />
  6275. </button>
  6276. </div>
  6277. <div>
  6278. <el-button
  6279. @click="getAllBanner"
  6280. v-if="isSysPic == false && cover.length == 0"
  6281. >选择系统文件</el-button
  6282. >
  6283. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6284. <img :src="cover[0].url" alt="" />
  6285. <div class="deletePic" @click="deleteSysPic">
  6286. <img src="../../../assets/icon/delete.png" alt="" />
  6287. </div>
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <div class="fileCss">
  6292. <div>选择本地文件</div>
  6293. <div>选择系统文件</div>
  6294. </div>
  6295. </div>
  6296. <span slot="footer" class="dialog-footer">
  6297. <el-button @click="choosePicVisible = false">取 消</el-button>
  6298. <el-button type="primary" @click="choosePicVisible = false"
  6299. >确 定</el-button
  6300. >
  6301. </span>
  6302. </el-dialog>
  6303. <el-dialog
  6304. title="选择系统文件"
  6305. :visible.sync="sysPicVisible"
  6306. :append-to-body="true"
  6307. width="710px"
  6308. :before-close="handleClose"
  6309. class="dialog_diy"
  6310. >
  6311. <div class="cru_selectBox" style="margin: 0">
  6312. <div
  6313. @click="getChoosePic(1)"
  6314. class="cru_select"
  6315. :class="chooseType == 1 ? 'cru_selected' : ''"
  6316. >
  6317. 绘画
  6318. </div>
  6319. <div
  6320. @click="getChoosePic(2)"
  6321. class="cru_select"
  6322. :class="chooseType == 2 ? 'cru_selected' : ''"
  6323. >
  6324. 科技
  6325. </div>
  6326. <div
  6327. @click="getChoosePic(3)"
  6328. class="cru_select"
  6329. :class="chooseType == 3 ? 'cru_selected' : ''"
  6330. >
  6331. 人文
  6332. </div>
  6333. <div
  6334. @click="getChoosePic(4)"
  6335. class="cru_select"
  6336. :class="chooseType == 4 ? 'cru_selected' : ''"
  6337. >
  6338. 艺术
  6339. </div>
  6340. </div>
  6341. <div class="sysPicBox">
  6342. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6343. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6344. </div>
  6345. </div>
  6346. <span slot="footer" class="dialog-footer">
  6347. <el-button @click="sysPicVisible = false">取 消</el-button>
  6348. <el-button type="primary">确 定</el-button>
  6349. </span>
  6350. </el-dialog>
  6351. <el-dialog
  6352. title="选择填空"
  6353. :visible.sync="dialogVisibleSelect"
  6354. :append-to-body="true"
  6355. width="800px"
  6356. :before-close="handleClose"
  6357. class="dialog_diy dialog_diy3"
  6358. >
  6359. <div v-if="selectJson">
  6360. <div class="select_box1" v-if="selectSteps == 1">
  6361. <div class="select_box1_img">
  6362. <div class="select_box1_title">
  6363. <span>上传题目图片</span
  6364. ><span>提示:请将题目以图片的方式上传</span>
  6365. </div>
  6366. <div class="select_box1_add_img">
  6367. <div
  6368. class="uploadFm"
  6369. @click="addImg($event)"
  6370. v-if="!selectJson.url"
  6371. >
  6372. <input
  6373. type="file"
  6374. accept="image/*"
  6375. style="display: none"
  6376. @change="beforeUploadSelect"
  6377. />
  6378. <img src="../../../assets/icon/addPoster.png" alt="" />
  6379. </div>
  6380. <div class="isSysPic" v-else>
  6381. <img :src="selectJson.url" alt="" />
  6382. <div class="deletePic" @click="deleteSelectPic">
  6383. <img src="../../../assets/icon/delete.png" alt="" />
  6384. </div>
  6385. </div>
  6386. </div>
  6387. </div>
  6388. <div class="select_box1_select">
  6389. <div class="select_box1_title">
  6390. <span>添加选项</span><span>提示:请输入题目选项</span>
  6391. </div>
  6392. <div class="select_box1_select_box">
  6393. <el-input
  6394. v-for="(item2, checkIndex) in selectJson.select"
  6395. :key="checkIndex"
  6396. v-model="selectJson.select[checkIndex]"
  6397. placeholder="请输入选项..."
  6398. style="width: 150px; margin: 10px 10px 0 0"
  6399. ></el-input>
  6400. <div class="select_box1_select_box_add">
  6401. <el-button
  6402. style="margin: 10px 0px 0 0"
  6403. type="primary"
  6404. size="small"
  6405. @click="addSelectList(selectJson)"
  6406. >
  6407. 添加</el-button
  6408. >
  6409. <el-button
  6410. type="primary"
  6411. size="small"
  6412. style="margin: 10px 0 0 0"
  6413. @click="deleteSelectList(selectJson)"
  6414. v-if="selectJson.select && selectJson.select.length > 0"
  6415. >删除</el-button
  6416. >
  6417. </div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. <div v-if="selectSteps == 2">
  6422. <div class="select_box2">
  6423. <div class="select_box2_title">设置答案</div>
  6424. <div class="select_box2_box">
  6425. <div class="select_box2_img">
  6426. <img :src="selectJson.url" alt="" />
  6427. </div>
  6428. <div class="select_box2_answer">
  6429. <div class="select_answer_title">根据题目选择对应答案</div>
  6430. <div
  6431. class="select_box2_answer_box"
  6432. v-for="(item2, checkIndex) in selectJson.select"
  6433. :key="checkIndex"
  6434. >
  6435. <span>{{ checkIndex + 1 }}、</span>
  6436. <el-select
  6437. v-model="selectJson.answer[checkIndex]"
  6438. placeholder="请选择正确答案"
  6439. >
  6440. <el-option
  6441. v-for="(e, eIndex) in selectJson.select"
  6442. :key="eIndex"
  6443. :label="e"
  6444. :value="eIndex"
  6445. >
  6446. </el-option>
  6447. </el-select>
  6448. </div>
  6449. </div>
  6450. </div>
  6451. </div>
  6452. </div>
  6453. </div>
  6454. <span slot="footer" class="dialog-footer">
  6455. <el-button
  6456. type="primary"
  6457. @click="nextSelectSteps()"
  6458. v-if="selectSteps == 1"
  6459. >下一步</el-button
  6460. >
  6461. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6462. >上一步</el-button
  6463. >
  6464. <el-button
  6465. type="primary"
  6466. @click="addSelectAnswer"
  6467. v-if="selectSteps == 2"
  6468. >确 定</el-button
  6469. >
  6470. </span>
  6471. </el-dialog>
  6472. <el-dialog
  6473. title="添加评价"
  6474. :visible.sync="dialogVisibleRate"
  6475. :append-to-body="true"
  6476. width="650px"
  6477. :before-close="handleClose"
  6478. class="dialog_diy"
  6479. >
  6480. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6481. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6482. <div class="pjCss" style="width: 100%">
  6483. <div
  6484. v-if="rateJson.length"
  6485. class="elist_input"
  6486. style="height: 360px; overflow: auto"
  6487. >
  6488. <div
  6489. v-for="(eItem, eIndex) in rateJson"
  6490. :key="eIndex"
  6491. class="elist_input_box"
  6492. >
  6493. <span style="min-width: 100px; text-align: right"
  6494. >个人评价指标:</span
  6495. >
  6496. <input
  6497. type="input"
  6498. v-model="eItem.value"
  6499. placeholder="填写评价名称"
  6500. />
  6501. <div class="remove" @click="deletRateList(eIndex)"></div>
  6502. <div style="width: 100%; display: flex">
  6503. <span style="min-width: 100px; text-align: right"
  6504. >评星等级:</span
  6505. >
  6506. <el-rate v-model="eItem.score" disabled></el-rate>
  6507. </div>
  6508. <div class="elist_inptu_text" style="align-items: flex-start">
  6509. <span style="min-width: 100px; text-align: right">描述:</span>
  6510. <textarea
  6511. class="rate_textarea"
  6512. :rows="3"
  6513. v-model="eItem.detail"
  6514. placeholder="填写评价描述"
  6515. ></textarea>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. <div class="addToolFun" @click="addRateList()">
  6520. <div class="addToolImg">
  6521. <img src="../../../assets/icon/add.png" alt />
  6522. </div>
  6523. <div>添加</div>
  6524. </div>
  6525. </div>
  6526. </div>
  6527. <span slot="footer" class="dialog-footer">
  6528. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6529. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6530. </span>
  6531. </el-dialog>
  6532. <el-dialog
  6533. title="连词成句设置"
  6534. :visible.sync="dialogVisibleSentence"
  6535. :append-to-body="true"
  6536. width="1000px"
  6537. :before-close="handleClose"
  6538. class="dialog_diy dialog_diy3"
  6539. >
  6540. <div>
  6541. <div class="sentenBox">
  6542. <div class="addSen" @click="addSt">添加题目</div>
  6543. <div
  6544. v-for="(st, stIndex) in sentenceList"
  6545. :key="stIndex"
  6546. style="padding-bottom: 20px"
  6547. >
  6548. <div class="sentenTopBox">
  6549. <div class="sentenTop">
  6550. <div>题目设置</div>
  6551. <div>
  6552. <el-input
  6553. placeholder="请输入卡片内容"
  6554. v-model="st.sentenceTitle"
  6555. ></el-input>
  6556. </div>
  6557. <div @click="addSen(stIndex)">添加</div>
  6558. </div>
  6559. <div
  6560. class="remove1"
  6561. v-if="sentenceList.length > 1"
  6562. @click="deleteSentence(stIndex)"
  6563. ></div>
  6564. </div>
  6565. <div class="cardList">
  6566. <div v-if="st.addSentence.length > 0" class="cardBox">
  6567. <div
  6568. class="isCard"
  6569. v-for="(s, sIndex) in st.addSentence"
  6570. :key="sIndex"
  6571. @click="setRightAnswer(s, stIndex, sIndex)"
  6572. >
  6573. <el-tooltip
  6574. class="item"
  6575. effect="light"
  6576. :content="s"
  6577. placement="top"
  6578. >
  6579. <div>{{ s }}</div>
  6580. </el-tooltip>
  6581. <div
  6582. class="deleteWord"
  6583. @click.stop="deleteS(s, stIndex, sIndex)"
  6584. >
  6585. <img src="../../../assets/icon/delete.png" alt="" />
  6586. </div>
  6587. </div>
  6588. </div>
  6589. <div class="card">
  6590. <img
  6591. src="../../../assets/icon/conSentences/noTitle.png"
  6592. alt=""
  6593. />
  6594. </div>
  6595. </div>
  6596. <div class="rightCardBox">
  6597. <div>正确顺序</div>
  6598. <div class="rightCardList">
  6599. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6600. <div
  6601. v-for="(r, rIndex) in st.rightAnswer"
  6602. :key="rIndex"
  6603. class="cardCss"
  6604. >
  6605. <div
  6606. class="isCard1"
  6607. @click="returnCard(r, stIndex, rIndex)"
  6608. >
  6609. <el-tooltip
  6610. class="item"
  6611. effect="light"
  6612. :content="r"
  6613. placement="top"
  6614. >
  6615. <div>{{ r }}</div>
  6616. </el-tooltip>
  6617. </div>
  6618. <div>{{ rIndex + 1 }}</div>
  6619. </div>
  6620. </div>
  6621. <div class="card" v-if="st.rightAnswer.length == 0">
  6622. <img
  6623. src="../../../assets/icon/conSentences/noAnswer.png"
  6624. alt=""
  6625. />
  6626. </div>
  6627. </div>
  6628. </div>
  6629. </div>
  6630. </div>
  6631. </div>
  6632. <span slot="footer" class="dialog-footer">
  6633. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  6634. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6635. </span>
  6636. </el-dialog>
  6637. <el-dialog
  6638. title="添加表格"
  6639. :visible.sync="dialogVisibleTable"
  6640. :append-to-body="true"
  6641. width="95%"
  6642. :before-close="handleClose"
  6643. class="dialog_diy"
  6644. >
  6645. <el-form>
  6646. <!-- <el-form-item label="文本标题">
  6647. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6648. </el-form-item> -->
  6649. <div>表格内容</div>
  6650. <Table v-model="tableJson.text" @change="change"></Table>
  6651. </el-form>
  6652. <span slot="footer" class="dialog-footer">
  6653. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6654. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6655. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6656. </span>
  6657. </el-dialog>
  6658. <el-dialog
  6659. title="添加文档"
  6660. :visible.sync="dialogVisibleWord"
  6661. :append-to-body="true"
  6662. width="800px"
  6663. :before-close="handleClose"
  6664. class="dialog_diy"
  6665. >
  6666. <el-form>
  6667. <!-- <el-form-item label="文本标题">
  6668. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6669. </el-form-item> -->
  6670. <div>文档内容</div>
  6671. <editor-bar v-model="wordJson.text"></editor-bar>
  6672. </el-form>
  6673. <span slot="footer" class="dialog-footer">
  6674. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6675. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6676. </span>
  6677. </el-dialog>
  6678. <el-dialog
  6679. title="添加班级"
  6680. :visible.sync="dialogVisibleMoreUpload"
  6681. :append-to-body="true"
  6682. width="30%"
  6683. :before-close="handleClose"
  6684. class="dialog_diy"
  6685. >
  6686. <div
  6687. style="
  6688. width: 100%;
  6689. display: flex;
  6690. flex-direction: row;
  6691. flex-wrap: nowrap;
  6692. align-items: center;
  6693. justify-content: center;
  6694. "
  6695. >
  6696. <div>班级:</div>
  6697. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6698. <el-option
  6699. v-for="item in classJuri"
  6700. :key="item.id"
  6701. :label="item.name"
  6702. :value="item.id"
  6703. >
  6704. </el-option>
  6705. </el-select>
  6706. </div>
  6707. <span slot="footer" class="dialog-footer">
  6708. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6709. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6710. </span>
  6711. </el-dialog>
  6712. <el-dialog
  6713. title="设置随机码"
  6714. :visible.sync="dialogVisibleInvite"
  6715. :append-to-body="true"
  6716. width="360px"
  6717. :before-close="handleClose"
  6718. class="dialog_diy"
  6719. >
  6720. <div
  6721. style="
  6722. width: 100%;
  6723. display: flex;
  6724. flex-direction: row;
  6725. flex-wrap: nowrap;
  6726. align-items: center;
  6727. justify-content: center;
  6728. "
  6729. >
  6730. <div>随机码:</div>
  6731. <el-input
  6732. v-model="icode"
  6733. style="width: 240px"
  6734. placeholder="请输入随机码"
  6735. ></el-input>
  6736. </div>
  6737. <span slot="footer" class="dialog-footer">
  6738. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6739. <el-button type="primary" @click="addInvite">确定</el-button>
  6740. </span>
  6741. </el-dialog>
  6742. <el-dialog
  6743. title="添加预设时间"
  6744. :visible.sync="dialogVisiblePreTime"
  6745. :append-to-body="true"
  6746. width="30%"
  6747. :before-close="handleClose"
  6748. class="dialog_diy"
  6749. >
  6750. <div>
  6751. <Time
  6752. :preTime="preTime"
  6753. @updateTimeNum="updateTime"
  6754. v-if="dialogVisiblePreTime"
  6755. ></Time>
  6756. </div>
  6757. <span slot="footer" class="dialog-footer">
  6758. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6759. <el-button type="primary" @click="addPreTime">确定</el-button>
  6760. </span>
  6761. </el-dialog>
  6762. <el-dialog
  6763. title="导入目标"
  6764. :visible.sync="dialogVisiblemb"
  6765. :append-to-body="true"
  6766. width="70%"
  6767. :before-close="handleClose"
  6768. class="dialog_diy"
  6769. >
  6770. <div>
  6771. <div
  6772. style="
  6773. width: 100%;
  6774. display: flex;
  6775. flex-direction: row;
  6776. flex-wrap: nowrap;
  6777. align-content: center;
  6778. align-items: center;
  6779. justify-content: space-between;
  6780. "
  6781. >
  6782. <div
  6783. style="
  6784. display: flex;
  6785. flex-flow: row nowrap;
  6786. align-items: flex-start;
  6787. width: 100%;
  6788. flex-direction: column;
  6789. flex-wrap: nowrap;
  6790. position: relative;
  6791. "
  6792. >
  6793. <div class="e_box">
  6794. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6795. <div class="e_card_picture">
  6796. <img src="../../../assets/e_picture.png" />
  6797. </div>
  6798. <div class="e_card_name">
  6799. <span>{{ item.title }}</span>
  6800. </div>
  6801. <div class="e_card_btn">
  6802. <span @click="checkEva(item.id, 2)">导入</span>
  6803. </div>
  6804. </div>
  6805. <div class="addEva" @click="openT">
  6806. <img src="../../../assets/icon/addEva.png" alt="" />
  6807. </div>
  6808. <div
  6809. v-if="evaJuri.length === 0"
  6810. style="margin: 0 auto; color: #6e6e6e"
  6811. >
  6812. 暂无数据
  6813. </div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. </div>
  6818. <span slot="footer" class="dialog-footer">
  6819. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6820. </span>
  6821. </el-dialog>
  6822. <el-dialog
  6823. title="分组设置"
  6824. :visible.sync="dialogVisibleGroup"
  6825. :append-to-body="true"
  6826. width="650px"
  6827. :before-close="handleClose"
  6828. class="dialog_diy"
  6829. >
  6830. <div class="groupBox">
  6831. <div v-if="groupJson.group" class="groupContent">
  6832. <div class="groupTitle">请设置小组数量</div>
  6833. <div
  6834. v-for="(item, index) in groupJson.group"
  6835. :key="index"
  6836. class="groupName"
  6837. >
  6838. <span class="groupn">组{{ index + 1 }}名称:</span>
  6839. <el-input
  6840. v-model="item.name"
  6841. placeholder="请输入名称..."
  6842. style="width: 250px"
  6843. ></el-input>
  6844. <div class="groupBtn">
  6845. <el-button type="primary" size="small" @click="addGroup(index)">
  6846. 添加</el-button
  6847. >
  6848. <el-button
  6849. type="primary"
  6850. size="small"
  6851. @click="deleteGroup(index)"
  6852. v-if="groupJson.group && groupJson.group.length > 1"
  6853. >删除</el-button
  6854. >
  6855. </div>
  6856. </div>
  6857. </div>
  6858. <div class="groupContent">
  6859. <div class="groupTitle">请设置每组人数数量</div>
  6860. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6861. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6862. <el-input-number
  6863. v-model="groupJson.number"
  6864. :controls="false"
  6865. :min="2"
  6866. :max="10"
  6867. placeholder="2-10人以内"
  6868. ></el-input-number>
  6869. </div>
  6870. </div>
  6871. <span slot="footer" class="dialog-footer">
  6872. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6873. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6874. </span>
  6875. </el-dialog>
  6876. <interVideo
  6877. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6878. :videoJson="videoJson"
  6879. @add="addVideoJson"
  6880. ></interVideo>
  6881. </div>
  6882. </template>
  6883. <script>
  6884. import "../../../common/aws-sdk-2.235.1.min.js";
  6885. import $ from "jquery";
  6886. import EditorBar from "../../../components/tools/wangEnduit";
  6887. import Table from "../../../components/tools/table";
  6888. import Mind from "../../tools/jsmind2";
  6889. import Time from "../../tools/time.vue";
  6890. import Sunburst from "../../tools/sunburst";
  6891. import SeeBoard from "../../tools/seeBoard";
  6892. import weilaiData from "../components/weilai.js";
  6893. import sourceDialog from "../teacherSource/dialog.vue";
  6894. import interVideo from "../interVideo/index.vue";
  6895. export default {
  6896. components: {
  6897. EditorBar,
  6898. Mind,
  6899. Time,
  6900. Sunburst,
  6901. SeeBoard,
  6902. Table,
  6903. sourceDialog,
  6904. interVideo,
  6905. },
  6906. data() {
  6907. return {
  6908. checkAll: false,
  6909. chooseType: 1,
  6910. checkedCities: [],
  6911. isIndeterminate: true,
  6912. isSysPic: false,
  6913. steps: 1,
  6914. nbOrder: 0,
  6915. courseId: "",
  6916. chapToolsType: 0,
  6917. chapTools: [
  6918. {
  6919. tools: [],
  6920. toolDetail: "",
  6921. },
  6922. ],
  6923. line: "",
  6924. lineTitle: "",
  6925. sysPic: [],
  6926. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6927. isPushTitleList: [],
  6928. lineCount: 0,
  6929. lineType: 0,
  6930. chapCount: 0,
  6931. courseName: "",
  6932. isTeacherSee: true,
  6933. courseText: "",
  6934. preTime: 0,
  6935. formLabelWidth: "100px",
  6936. choosePicVisible: false,
  6937. sysPicVisible: false,
  6938. uploadLoading1: false,
  6939. noneBtnImg: false,
  6940. updateBoolean2: false,
  6941. unitIndex: 0,
  6942. taskCount: 0,
  6943. dialogVisible: false,
  6944. dialogVisible1: false,
  6945. dialogVisible2: false,
  6946. dialogVisible3: false,
  6947. dialogVisible4: false,
  6948. dialogVisible5: false,
  6949. dialogVisible6: false,
  6950. dialogVisible7: false,
  6951. dialogVisible8: false,
  6952. dialogVisible9: false,
  6953. dialogVisibleClass: false,
  6954. dialogVisibleMember: false,
  6955. dialogVisibleMp3: false,
  6956. dialogVisibleSelect: false,
  6957. dialogVisibleSentence: false,
  6958. dialogVisibleRate: false,
  6959. dialogVisibleChoice: false,
  6960. dialogVisiblemb: false,
  6961. dialogVisibleInvite: false,
  6962. dialogVisibleSource: false,
  6963. dialogVisibleVideo: false,
  6964. isClickColor: 0,
  6965. publicTool: 0,
  6966. searchPeople: "",
  6967. searchTN: "",
  6968. userid: this.$route.query.userid,
  6969. oid: this.$route.query.oid,
  6970. org: this.$route.query.org,
  6971. role: this.$route.query.role,
  6972. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6973. dialogVisibleTable: false,
  6974. dialogVisibleWord: false,
  6975. tableJson: { text: "" },
  6976. wordJson: { text: "" },
  6977. dialogVisibleMoreUpload: false,
  6978. dialogVisiblePreTime: false,
  6979. uploadJson: [],
  6980. classJuri: [],
  6981. cover: [], //课程封面
  6982. myWord: [],
  6983. evaJuri: [],
  6984. evalua: "",
  6985. targetArray: [],
  6986. eTitle: "",
  6987. eJson: {},
  6988. fid: "", //一级
  6989. sid: "", //二级
  6990. tid: "", //二级
  6991. typeMode: 1,
  6992. eJSONNum: 0,
  6993. data: {
  6994. meta: {
  6995. name: "example",
  6996. author: "dd@163.com",
  6997. version: "0.2",
  6998. },
  6999. format: "node_array",
  7000. data: [{ id: "root", isroot: true, topic: "" }],
  7001. },
  7002. askJson: {
  7003. askCount: 1,
  7004. askTitle: "",
  7005. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7006. },
  7007. testJson: {},
  7008. selectJson: {},
  7009. rateJson: [],
  7010. unitJson2: [],
  7011. unitJson: [
  7012. {
  7013. dyName: "", //单元标题
  7014. chapterInfo: [
  7015. {
  7016. isread: false,
  7017. chapterid: this.guid(),
  7018. title: "",
  7019. courseName: "",
  7020. taskJson: [
  7021. {
  7022. task: "",
  7023. taskDetail: "",
  7024. chapterData: [],
  7025. toolChoose: [
  7026. {
  7027. tool: [],
  7028. toolDetail: "",
  7029. toolType: 1,
  7030. askCount: 1,
  7031. askTitle: "",
  7032. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7033. },
  7034. ],
  7035. toolText: "",
  7036. isShowTools: false,
  7037. askCount: 1,
  7038. isFold: 0,
  7039. askTitle: "",
  7040. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7041. checkJson: [{ checkCount: [], checkPerent: [] }],
  7042. homeworkList: [],
  7043. },
  7044. ],
  7045. itemCount: 1,
  7046. fileList1: [],
  7047. video: [],
  7048. testData: [],
  7049. pData: [],
  7050. templateArray: [],
  7051. },
  7052. ],
  7053. },
  7054. ],
  7055. studentJuri: [],
  7056. teacherJuri: [],
  7057. checkboxList: [],
  7058. checkboxList2: [],
  7059. checkboxList3: [],
  7060. classSearch: "",
  7061. number: "",
  7062. tTitle: "",
  7063. tdetail: "",
  7064. templateC: {},
  7065. AttText: {},
  7066. AttTextType: 0,
  7067. AttTextIndex: 0,
  7068. cTemplate: "",
  7069. CourseType: [],
  7070. CourseType2: [],
  7071. CourseTypeJson: {},
  7072. courseTypeId: [],
  7073. courseTypeSon: [],
  7074. clearArray: [],
  7075. pTypeCheck: [],
  7076. pTypeCheckName: [],
  7077. loading: false,
  7078. toolType: 1,
  7079. inputShow: true,
  7080. inputShow2: true,
  7081. toolIndex: 0,
  7082. cidType: 0,
  7083. answerQ: "",
  7084. grade: [],
  7085. grade2: [],
  7086. courseUserid: "",
  7087. timer: null,
  7088. timer2: null,
  7089. checkId: "",
  7090. isDelete: 1,
  7091. addindex: 0,
  7092. selectSteps: 1,
  7093. groupJson: {},
  7094. dialogVisibleGroup: false,
  7095. rightBoxHeight: 0,
  7096. ManAarray: [],
  7097. checkBoolean: false,
  7098. inviteCode: [],
  7099. inviteId: "",
  7100. icode: "",
  7101. easyArray: [2, 4],
  7102. sourceData: {},
  7103. videoJson: {},
  7104. };
  7105. },
  7106. computed: {
  7107. // rightBoxHeight: function () {
  7108. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7109. // },
  7110. offsetLetfPx: function () {
  7111. //addnum可以直接在模板语法里面用,相当于data内的值
  7112. return (
  7113. $(".cru_select")[this.unitIndex] &&
  7114. $(".cru_select")[this.unitIndex].offsetLeft
  7115. );
  7116. },
  7117. getMan2() {
  7118. return function (people) {
  7119. let _people = people;
  7120. let _people2 = "";
  7121. if (this.ManAarray.length) {
  7122. for (var i = 0; i < this.ManAarray.length; i++) {
  7123. if (this.ManAarray[i].userid == people) {
  7124. _people2 = this.ManAarray[i].name;
  7125. break;
  7126. }
  7127. }
  7128. }
  7129. if (people == this.courseUserid) {
  7130. return "";
  7131. }
  7132. return this.ManAarray.length ? _people2 : "";
  7133. };
  7134. },
  7135. isInvite() {
  7136. return function (cid) {
  7137. let array = [];
  7138. for (var i = 0; i < this.inviteCode.length; i++) {
  7139. array.push(this.inviteCode[i].cid);
  7140. }
  7141. return array.indexOf(cid) != -1;
  7142. };
  7143. },
  7144. getInviteCodeC() {
  7145. return function (cid) {
  7146. let array = [];
  7147. for (var i = 0; i < this.inviteCode.length; i++) {
  7148. array.push(this.inviteCode[i].cid);
  7149. }
  7150. return this.inviteCode[array.indexOf(cid)].ic;
  7151. };
  7152. },
  7153. getClassC() {
  7154. return function (c) {
  7155. let _c2 = "";
  7156. if (this.grade.length) {
  7157. for (var i = 0; i < this.grade.length; i++) {
  7158. if (this.grade[i].id == c) {
  7159. _c2 = this.grade[i].name;
  7160. break;
  7161. }
  7162. }
  7163. }
  7164. return this.grade.length ? _c2 : "";
  7165. };
  7166. },
  7167. },
  7168. watch: {
  7169. unitIndex(newValue, oldValue) {
  7170. if (this.isDelete == 2) {
  7171. this.isDelete = 1;
  7172. return;
  7173. }
  7174. if (this.cid != "") {
  7175. let _unitIndex = oldValue;
  7176. if (
  7177. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7178. JSON.stringify(this.unitJson[_unitIndex])
  7179. ) {
  7180. this.$refs.rightboxR.scrollTop = 0;
  7181. return;
  7182. }
  7183. let cPan = 1;
  7184. for (
  7185. var j = 0;
  7186. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7187. j++
  7188. ) {
  7189. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7190. j
  7191. ].proVisible = false;
  7192. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7193. j
  7194. ].proVisible2 = false;
  7195. if (
  7196. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7197. .length > 1
  7198. ) {
  7199. for (
  7200. var z = 0;
  7201. z <
  7202. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7203. .length;
  7204. z++
  7205. ) {
  7206. if (
  7207. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7208. .toolChoose[z].tool.length
  7209. ) {
  7210. this.$message.error("请把工具添加完整");
  7211. cPan = 2;
  7212. break;
  7213. }
  7214. }
  7215. }
  7216. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7217. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7218. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7219. (ele) => {
  7220. return ele.value != "";
  7221. }
  7222. );
  7223. }
  7224. }
  7225. if (cPan == 2) {
  7226. this.unitIndex = oldValue;
  7227. return;
  7228. }
  7229. for (var i = 0; i < this.unitJson.length; i++) {
  7230. if (this.addindex != i) {
  7231. delete this.unitJson[i].isUpdate;
  7232. }
  7233. }
  7234. this.$refs.rightboxR.scrollTop = 0;
  7235. this.addindex = -1;
  7236. let params = [
  7237. {
  7238. cid: this.cid,
  7239. chapters: JSON.stringify(this.unitJson),
  7240. uid: this.userid,
  7241. unitIndex: _unitIndex,
  7242. },
  7243. ];
  7244. this.ajax
  7245. .post(this.$store.state.api + "updateWorkNew4", params)
  7246. .then((res) => {
  7247. // this.$message({
  7248. // message: "修改成功",
  7249. // type: "success",
  7250. // });
  7251. // this.courseId = this.cid;
  7252. })
  7253. .catch((err) => {
  7254. this.$message.error("网络不佳");
  7255. console.error(err);
  7256. });
  7257. }
  7258. },
  7259. steps(newValue) {
  7260. if (newValue == 4) {
  7261. this.goTo(
  7262. "/course?userid=" +
  7263. this.userid +
  7264. "&oid=" +
  7265. this.oid +
  7266. "&org=" +
  7267. this.org +
  7268. "&role=" +
  7269. this.role
  7270. );
  7271. }
  7272. },
  7273. },
  7274. methods: {
  7275. setMan() {
  7276. // let teacherJuri = this.teacherJuri2;
  7277. this.ManAarray = [];
  7278. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7279. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  7280. _user.push(this.courseUserid || this.userid);
  7281. }
  7282. let params = {
  7283. uid: _user.join(","),
  7284. };
  7285. this.ajax
  7286. .get(this.$store.state.api + "getAllUserById", params)
  7287. .then((res) => {
  7288. let teacherJuri = res.data[0];
  7289. this.ManAarray = teacherJuri;
  7290. })
  7291. .catch((err) => {
  7292. console.error(err);
  7293. });
  7294. },
  7295. previewImg(url) {
  7296. this.$hevueImgPreview(url);
  7297. },
  7298. scrollChange() {
  7299. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7300. // document.querySelector('.course_left').scrollHeight
  7301. // document.querySelector('.stepsBottom2').scrollHeight
  7302. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7303. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7304. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7305. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2;
  7306. // if (top < client) {
  7307. // $('.stepsBottom2')[0].style.position = 'absolute'
  7308. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7309. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7310. // } else
  7311. if (top > 0) {
  7312. let top = $(".rightBox")[0].offsetTop;
  7313. $(".stepsBottom2")[0].style.position = "fixed";
  7314. $(".stepsBottom2")[0].style.top = top + "px";
  7315. // $('.stepsBottom2')[0].style.top = top + 'px'
  7316. } else {
  7317. $(".stepsBottom2")[0].style.position = "absolute";
  7318. $(".stepsBottom2")[0].style.top = "0px";
  7319. }
  7320. },
  7321. handleCheckAllChange(val) {
  7322. this.checkedCities = val ? cityOptions : [];
  7323. this.isIndeterminate = false;
  7324. },
  7325. handleCheckedCitiesChange(value) {
  7326. let checkedCount = value.length;
  7327. this.checkAll = checkedCount === this.cities.length;
  7328. this.isIndeterminate =
  7329. checkedCount > 0 && checkedCount < this.cities.length;
  7330. },
  7331. addHw(e) {
  7332. var el = e.currentTarget;
  7333. el.getElementsByTagName("input")[0].click();
  7334. },
  7335. change(val) {
  7336. console.log(val);
  7337. },
  7338. change2(val) {
  7339. console.log(val);
  7340. this.$forceUpdate();
  7341. },
  7342. handleClose(done) {
  7343. done();
  7344. },
  7345. imgChange2(i, j) {
  7346. var _tmp = this.testJson.testJson[i].checkList[j];
  7347. this.noneBtnImg = _tmp.length >= 1;
  7348. },
  7349. imgChange3(i) {
  7350. var _tmp = this.testJson.testJson[i];
  7351. this.noneBtnImg = _tmp.length >= 1;
  7352. },
  7353. imgChange1(file, fileList, type, itemTaskIndex) {
  7354. if (type == 1) {
  7355. var _tmp = this.cover;
  7356. } else if (
  7357. type == 2 ||
  7358. type == 3 ||
  7359. type == 6 ||
  7360. type == 7 ||
  7361. type == 8
  7362. ) {
  7363. var _tmp =
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7365. .chapterData;
  7366. } else if (type == 4) {
  7367. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7368. } else {
  7369. var _tmp =
  7370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7371. .homeworkList;
  7372. }
  7373. this.noneBtnImg = _tmp.length >= 1;
  7374. },
  7375. goTo(path) {
  7376. this.$router.push(path);
  7377. },
  7378. guid() {
  7379. var _num,
  7380. i,
  7381. _guid = "";
  7382. for (i = 0; i < 32; i++) {
  7383. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7384. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7385. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7386. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7387. _guid += "-";
  7388. }
  7389. }
  7390. return _guid;
  7391. },
  7392. lastSteps() {
  7393. this.goTo(
  7394. "/course?userid=" +
  7395. this.userid +
  7396. "&oid=" +
  7397. this.oid +
  7398. "&org=" +
  7399. this.org +
  7400. "&role=" +
  7401. this.role
  7402. );
  7403. },
  7404. nextSteps() {
  7405. if (this.cid == "" || this.cid == undefined) {
  7406. if (this.courseName == "") {
  7407. this.$message.error("请将信息填写完整");
  7408. return;
  7409. } else {
  7410. this.addWork();
  7411. }
  7412. } else {
  7413. if (this.courseName == "") {
  7414. this.$message.error("请将信息填写完整");
  7415. return;
  7416. } else {
  7417. if (this.userid != this.courseUserid && this.role != "1") {
  7418. this.updateWork2();
  7419. } else {
  7420. this.updateWork();
  7421. }
  7422. }
  7423. }
  7424. this.$refs.stepBox.scrollTop = 0;
  7425. },
  7426. unitSet(i) {
  7427. this.unitIndex = i;
  7428. // this.$refs.rightboxR.scrollTop = 0;
  7429. },
  7430. time() {
  7431. if (!this.now) {
  7432. this.now = new Date().getTime();
  7433. return true;
  7434. } else {
  7435. let time = new Date().getTime();
  7436. if (time - this.now > 3000) {
  7437. this.now = time;
  7438. return true;
  7439. } else {
  7440. return false;
  7441. }
  7442. }
  7443. },
  7444. deleteUnit(i) {
  7445. var _this = this;
  7446. if (_this.time()) {
  7447. _this
  7448. .$confirm("确定删除此单元吗?", "提示", {
  7449. confirmButtonText: "确定",
  7450. cancelButtonText: "取消",
  7451. type: "warning",
  7452. })
  7453. .then(() => {
  7454. _this.isDelete = 2;
  7455. // _this.unitIndex = _this.unitIndex - 1;
  7456. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7457. // _this.$message.success("删除成功");
  7458. })
  7459. .catch(() => {
  7460. return;
  7461. });
  7462. }
  7463. },
  7464. deleteWork(chapid) {
  7465. let params = [
  7466. {
  7467. cid: this.cid,
  7468. chapters: JSON.stringify(this.unitJson),
  7469. uid: this.userid,
  7470. chapid: chapid,
  7471. },
  7472. ];
  7473. this.ajax
  7474. .post(this.$store.state.api + "deleteWork", params)
  7475. .then((res) => {
  7476. this.$message({
  7477. message: "删除成功",
  7478. type: "success",
  7479. });
  7480. this.unitJson.splice(this.unitIndex, 1);
  7481. this.unitIndex = this.unitIndex - 1;
  7482. })
  7483. .catch((err) => {
  7484. this.$message.error("网络不佳");
  7485. console.error(err);
  7486. });
  7487. },
  7488. deleteTool(itemTaskIndex, i) {
  7489. var _this = this;
  7490. if (_this.time()) {
  7491. _this
  7492. .$confirm("确定删除此工具吗?", "提示", {
  7493. confirmButtonText: "确定",
  7494. cancelButtonText: "取消",
  7495. type: "warning",
  7496. })
  7497. .then(() => {
  7498. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7499. itemTaskIndex
  7500. ].toolChoose.splice(i, 1);
  7501. _this.$message.success("删除成功");
  7502. })
  7503. .catch(() => {
  7504. return;
  7505. });
  7506. }
  7507. },
  7508. deleteSentence(i) {
  7509. var _this = this;
  7510. if (_this.time()) {
  7511. _this
  7512. .$confirm("确定删除此题目吗?", "提示", {
  7513. confirmButtonText: "确定",
  7514. cancelButtonText: "取消",
  7515. type: "warning",
  7516. })
  7517. .then(() => {
  7518. _this.sentenceList.splice(i, 1);
  7519. _this.$message.success("删除成功");
  7520. })
  7521. .catch(() => {
  7522. return;
  7523. });
  7524. }
  7525. },
  7526. deleteS(s, i, j) {
  7527. this.sentenceList[i].addSentence.splice(j, 1);
  7528. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7529. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7530. this.sentenceList[i].rightAnswer.splice(a, 1);
  7531. }
  7532. },
  7533. openT() {
  7534. window.parent.postMessage({ tools: "25" }, "*");
  7535. },
  7536. deleteTask(i) {
  7537. var _this = this;
  7538. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7539. _this
  7540. .$confirm("确定删除此任务吗?", "提示", {
  7541. confirmButtonText: "确定",
  7542. cancelButtonText: "取消",
  7543. type: "warning",
  7544. })
  7545. .then(() => {
  7546. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7547. _this.$message.success("删除成功");
  7548. // this.$nextTick(() => {
  7549. // $('.stepsBottom2')[0].style.transition = 'unset'
  7550. // setTimeout(() => {
  7551. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7552. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7553. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7554. // if (top > client) {
  7555. // $('.stepsBottom2')[0].style.top = client + 'px'
  7556. // }
  7557. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7558. // this.$forceUpdate()
  7559. // }, 500)
  7560. // })
  7561. })
  7562. .catch(() => {
  7563. return;
  7564. });
  7565. },
  7566. handlePictureCardPreview(file) {
  7567. this.dialogImageUrl = file.url;
  7568. },
  7569. clean(i, c) {
  7570. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7571. },
  7572. handle_remove1(file, fileList, type) {
  7573. var _tmp = this.cover;
  7574. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7575. // if (_tmp[i].uid == file.uid) {
  7576. // _tmp.splice(i, 1);
  7577. // break;
  7578. // }
  7579. // this.cover = _tmp;
  7580. // }
  7581. this.cover = [];
  7582. this.noneBtnImg = this.cover.length >= 1;
  7583. this.isSysPic = false;
  7584. this.$forceUpdate();
  7585. },
  7586. addImg(e) {
  7587. var el = e.currentTarget;
  7588. el.getElementsByTagName("input")[0].click();
  7589. e.target.value = "";
  7590. },
  7591. addChaptersTools(i) {
  7592. this.chapTools = [
  7593. {
  7594. tools: [],
  7595. toolDetail: "",
  7596. },
  7597. ];
  7598. this.chapCount = i;
  7599. this.dialogVisible4 = true;
  7600. },
  7601. isNoFinsh() {
  7602. this.$message.warning("功能正在开发中");
  7603. },
  7604. addAttText(i) {
  7605. this.AttText = {
  7606. title: "",
  7607. text: "",
  7608. };
  7609. this.taskCount = i;
  7610. this.AttTextType = 0;
  7611. this.$forceUpdate();
  7612. this.dialogVisible6 = true;
  7613. },
  7614. openLine(i) {
  7615. this.line = "";
  7616. this.lineCount = i;
  7617. this.lineType = 0;
  7618. this.$forceUpdate();
  7619. this.dialogVisible7 = true;
  7620. },
  7621. pasteLine(i) {
  7622. navigator.clipboard
  7623. .readText()
  7624. .then((v) => {
  7625. console.log("获取剪贴板成功:", v);
  7626. const html = v;
  7627. const regex = /src="(.*?)"/g;
  7628. const match = regex.exec(html);
  7629. if (match && match[1]) {
  7630. console.log(match[1]);
  7631. this.$message.success("粘贴成功");
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7633. i
  7634. ].chapterData.push({
  7635. name: "链接",
  7636. title: "嵌入代码",
  7637. url: match[1],
  7638. type: 8,
  7639. });
  7640. } else {
  7641. // console.log("未找到包含 src 属性的 iframe");
  7642. this.$message.error("没有找到粘贴的链接");
  7643. }
  7644. })
  7645. .catch((v) => {
  7646. console.log("获取剪贴板失败: ", v);
  7647. });
  7648. },
  7649. openSource(i) {
  7650. this.lineCount = i;
  7651. this.sourceData = {};
  7652. this.dialogVisibleSource = true;
  7653. },
  7654. addSource() {
  7655. if (!Object.keys(this.sourceData).length) {
  7656. this.$message.error("请选择要上传的资源");
  7657. return;
  7658. }
  7659. let keys = Object.keys(this.sourceData);
  7660. for (var i = 0; i < keys.length; i++) {
  7661. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7662. this.lineCount
  7663. ].chapterData.push({
  7664. name: "链接",
  7665. title: this.sourceData[keys[i]].name,
  7666. url: this.sourceData[keys[i]].url,
  7667. type: 8,
  7668. });
  7669. }
  7670. this.$forceUpdate();
  7671. this.dialogVisibleSource = false;
  7672. },
  7673. deleteM(i, j) {
  7674. this.testJson.testJson[i].timuList.splice(j, 1);
  7675. },
  7676. beforeUploadTiMu(event, i) {
  7677. const loading = this.openLoading();
  7678. var file = event.target.files[0];
  7679. var credentials = {
  7680. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7681. secretAccessKey: "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",
  7682. }; //秘钥形式的登录上传
  7683. window.AWS.config.update(credentials);
  7684. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7685. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7686. var _this = this;
  7687. if (file) {
  7688. var params = {
  7689. Key:
  7690. file.name.split(".")[0] +
  7691. new Date().getTime() +
  7692. "." +
  7693. file.name.split(".")[file.name.split(".").length - 1],
  7694. ContentType: file.type,
  7695. Body: file,
  7696. "Access-Control-Allow-Credentials": "*",
  7697. ACL: "public-read",
  7698. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7699. var options = {
  7700. partSize: 2048 * 1024 * 1024,
  7701. queueSize: 2,
  7702. leavePartsOnError: true,
  7703. };
  7704. bucket
  7705. .upload(params, options)
  7706. .on("httpUploadProgress", function (evt) {
  7707. //这里可以写进度条
  7708. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7709. })
  7710. .send(function (err, data) {
  7711. loading.close();
  7712. if (err) {
  7713. _this.$message.error("上传失败");
  7714. } else {
  7715. if (_this.testJson.testJson[i].timuList) {
  7716. _this.testJson.testJson[i].timuList.push({
  7717. src: data.Location,
  7718. });
  7719. } else {
  7720. _this.testJson.testJson[i].timuList = [];
  7721. _this.testJson.testJson[i].timuList.push({
  7722. src: data.Location,
  7723. });
  7724. }
  7725. _this.imgChange3(i);
  7726. _this.$forceUpdate();
  7727. }
  7728. });
  7729. }
  7730. },
  7731. beforeUploadTi(event, i, j) {
  7732. const loading = this.openLoading();
  7733. var file = event.target.files[0];
  7734. var credentials = {
  7735. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7736. secretAccessKey: "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",
  7737. }; //秘钥形式的登录上传
  7738. window.AWS.config.update(credentials);
  7739. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7740. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7741. var _this = this;
  7742. if (file) {
  7743. var params = {
  7744. Key:
  7745. file.name.split(".")[0] +
  7746. new Date().getTime() +
  7747. "." +
  7748. file.name.split(".")[file.name.split(".").length - 1],
  7749. ContentType: file.type,
  7750. Body: file,
  7751. "Access-Control-Allow-Credentials": "*",
  7752. ACL: "public-read",
  7753. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7754. var options = {
  7755. partSize: 2048 * 1024 * 1024,
  7756. queueSize: 2,
  7757. leavePartsOnError: true,
  7758. };
  7759. bucket
  7760. .upload(params, options)
  7761. .on("httpUploadProgress", function (evt) {
  7762. //这里可以写进度条
  7763. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7764. })
  7765. .send(function (err, data) {
  7766. loading.close();
  7767. if (err) {
  7768. _this.$message.error("上传失败");
  7769. } else {
  7770. _this.testJson.testJson[i].checkList[j] = {};
  7771. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7772. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7773. _this.imgChange2(i, j);
  7774. _this.$forceUpdate();
  7775. }
  7776. });
  7777. }
  7778. },
  7779. beforeUpload1(event, type) {
  7780. // const loading = this.openLoading();
  7781. var file = event.target.files[0];
  7782. var credentials = {
  7783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7784. secretAccessKey: "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",
  7785. }; //秘钥形式的登录上传
  7786. window.AWS.config.update(credentials);
  7787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7789. var _this = this;
  7790. if (file) {
  7791. var params = {
  7792. Key:
  7793. file.name.split(".")[0] +
  7794. new Date().getTime() +
  7795. "." +
  7796. file.name.split(".")[file.name.split(".").length - 1],
  7797. ContentType: file.type,
  7798. Body: file,
  7799. "Access-Control-Allow-Credentials": "*",
  7800. ACL: "public-read",
  7801. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7802. var options = {
  7803. partSize: 2048 * 1024 * 1024,
  7804. queueSize: 2,
  7805. leavePartsOnError: true,
  7806. };
  7807. bucket
  7808. .upload(params, options)
  7809. .on("httpUploadProgress", function (evt) {
  7810. //这里可以写进度条
  7811. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7812. })
  7813. .send(function (err, data) {
  7814. // loading.close();
  7815. if (err) {
  7816. // var a = _this.$refs.upload1.uploadFiles;
  7817. // a.splice(a.length - 1, a.length);
  7818. _this.$message.error("上传失败");
  7819. } else {
  7820. _this.cover.push({
  7821. name: file.name,
  7822. url: data.Location,
  7823. uid: file.uid,
  7824. });
  7825. _this.imgChange1(null, null, 1, null);
  7826. _this.choosePicVisible = false;
  7827. console.log(data.Location);
  7828. }
  7829. });
  7830. }
  7831. },
  7832. beforeUploadSelect(event, type) {
  7833. // const loading = this.openLoading();
  7834. var file = event.target.files[0];
  7835. var credentials = {
  7836. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7837. secretAccessKey: "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",
  7838. }; //秘钥形式的登录上传
  7839. window.AWS.config.update(credentials);
  7840. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7841. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7842. var _this = this;
  7843. if (file) {
  7844. var params = {
  7845. Key:
  7846. file.name.split(".")[0] +
  7847. new Date().getTime() +
  7848. "." +
  7849. file.name.split(".")[file.name.split(".").length - 1],
  7850. ContentType: file.type,
  7851. Body: file,
  7852. "Access-Control-Allow-Credentials": "*",
  7853. ACL: "public-read",
  7854. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7855. var options = {
  7856. partSize: 2048 * 1024 * 1024,
  7857. queueSize: 2,
  7858. leavePartsOnError: true,
  7859. };
  7860. bucket
  7861. .upload(params, options)
  7862. .on("httpUploadProgress", function (evt) {
  7863. //这里可以写进度条
  7864. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7865. })
  7866. .send(function (err, data) {
  7867. // loading.close();
  7868. if (err) {
  7869. _this.$message.error("上传失败");
  7870. } else {
  7871. _this.selectJson.url = data.Location;
  7872. console.log(data.Location);
  7873. }
  7874. });
  7875. }
  7876. },
  7877. chooseSysPic(p) {
  7878. this.cover.push({
  7879. name: "系统图片.png",
  7880. url: p,
  7881. });
  7882. this.imgChange1(null, null, 1, null);
  7883. this.isSysPic = true;
  7884. this.sysPicVisible = false;
  7885. },
  7886. beforeUpload(data) {
  7887. this.$refs.upload1.uploadFiles;
  7888. this.uploadLoading1 = true;
  7889. var file = data.file;
  7890. var credentials = {
  7891. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7892. secretAccessKey: "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",
  7893. }; //秘钥形式的登录上传
  7894. window.AWS.config.update(credentials);
  7895. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7896. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7897. var _this = this;
  7898. if (file) {
  7899. var params = {
  7900. Key:
  7901. file.name.split(".")[0] +
  7902. new Date().getTime() +
  7903. "." +
  7904. file.name.split(".")[file.name.split(".").length - 1],
  7905. ContentType: file.type,
  7906. Body: file,
  7907. "Access-Control-Allow-Credentials": "*",
  7908. ACL: "public-read",
  7909. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7910. var options = {
  7911. partSize: 2048 * 1024 * 1024,
  7912. queueSize: 2,
  7913. leavePartsOnError: true,
  7914. };
  7915. bucket
  7916. .upload(params, options)
  7917. .on("httpUploadProgress", function (evt) {
  7918. //这里可以写进度条
  7919. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7920. })
  7921. .send(function (err, data) {
  7922. _this.uploadLoading1 = false;
  7923. if (err) {
  7924. // var a = _this.$refs.upload1.uploadFiles;
  7925. // a.splice(a.length - 1, a.length);
  7926. _this.$message.error("上传失败");
  7927. } else {
  7928. //上传成功处理
  7929. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  7930. name: file.name,
  7931. url: data.Location,
  7932. uid: file.uid,
  7933. });
  7934. _this.imgChange();
  7935. console.log(data.Location);
  7936. }
  7937. });
  7938. }
  7939. },
  7940. onExceed() {
  7941. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  7942. },
  7943. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  7944. // const loading = this.openLoading();
  7945. var file = event.target.files[0];
  7946. var credentials = {
  7947. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7948. secretAccessKey: "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",
  7949. }; //秘钥形式的登录上传
  7950. window.AWS.config.update(credentials);
  7951. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7952. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7953. var _this = this;
  7954. if (type == 3) {
  7955. var b = [
  7956. "DOC",
  7957. "DOCX",
  7958. "DOCM",
  7959. "DOTM",
  7960. "DOTX",
  7961. "PPTX",
  7962. "PPSX",
  7963. "PPT",
  7964. "PPS",
  7965. "PPTM",
  7966. "POTM",
  7967. "PPAM",
  7968. "POTX",
  7969. "PPSM",
  7970. ];
  7971. if (
  7972. b.indexOf(
  7973. file.name
  7974. .split(".")
  7975. [file.name.split(".").length - 1].toLocaleUpperCase()
  7976. ) != -1
  7977. ) {
  7978. if (file.size / 1024 / 1024 > 80) {
  7979. this.$message.error("上传文件大于80兆,请重新选择文件!");
  7980. this.inputShow = true;
  7981. // var a = _this.$refs.upload1.uploadFiles;
  7982. // a.splice(a.length - 1, a.length);
  7983. // loading.close();
  7984. return;
  7985. }
  7986. } else if (
  7987. file.name
  7988. .split(".")
  7989. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  7990. ) {
  7991. if (file.size / 1024 / 1024 > 80) {
  7992. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  7993. this.inputShow = true;
  7994. // var a = _this.$refs.upload1.uploadFiles;
  7995. // a.splice(a.length - 1, a.length);
  7996. // loading.close();
  7997. return;
  7998. }
  7999. }
  8000. }
  8001. this.inputShow = false;
  8002. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8003. itemTaskIndex
  8004. ].progress = 0;
  8005. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8006. itemTaskIndex
  8007. ].proVisible = true;
  8008. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8009. itemTaskIndex
  8010. ].isFinishSize = 0;
  8011. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8012. itemTaskIndex
  8013. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8014. _this.$forceUpdate();
  8015. if (file) {
  8016. var params = {
  8017. Key:
  8018. file.name.split(".")[0] +
  8019. new Date().getTime() +
  8020. "." +
  8021. file.name.split(".")[file.name.split(".").length - 1],
  8022. ContentType: file.type,
  8023. Body: file,
  8024. "Access-Control-Allow-Credentials": "*",
  8025. ACL: "public-read",
  8026. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8027. var options = {
  8028. partSize: 2048 * 1024 * 1024,
  8029. queueSize: 2,
  8030. leavePartsOnError: true,
  8031. };
  8032. bucket
  8033. .upload(params, options)
  8034. .on("httpUploadProgress", function (evt) {
  8035. //这里可以写进度条
  8036. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8037. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8038. itemTaskIndex
  8039. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8040. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8041. itemTaskIndex
  8042. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8043. _this.$forceUpdate();
  8044. })
  8045. .send(function (err, data) {
  8046. // loading.close();
  8047. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8048. itemTaskIndex
  8049. ].progress = 100;
  8050. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8051. itemTaskIndex
  8052. ].isFinishSize =
  8053. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8054. itemTaskIndex
  8055. ].isAllSize;
  8056. _this.$forceUpdate();
  8057. setTimeout(() => {
  8058. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8059. itemTaskIndex
  8060. ].proVisible = false;
  8061. _this.$forceUpdate();
  8062. }, 1000);
  8063. _this.inputShow = true;
  8064. if (err) {
  8065. // var a = _this.$refs.upload1.uploadFiles;
  8066. // a.splice(a.length - 1, a.length);
  8067. _this.$message.error("上传失败");
  8068. } else {
  8069. if (type == 13) {
  8070. let _type = 2;
  8071. var imgA = [
  8072. "png",
  8073. "jpg",
  8074. "jpeg",
  8075. "bmp",
  8076. "gif",
  8077. "webp",
  8078. "psd",
  8079. "svg",
  8080. "tiff",
  8081. ];
  8082. var fileA = [
  8083. "PDF",
  8084. "DOC",
  8085. "DOCX",
  8086. "DOCM",
  8087. "DOTM",
  8088. "DOTX",
  8089. "PPTX",
  8090. "PPSX",
  8091. "PPT",
  8092. "PPS",
  8093. "PPTM",
  8094. "POTM",
  8095. "PPAM",
  8096. "POTX",
  8097. "PPSM",
  8098. "XLSX",
  8099. "XLS",
  8100. ];
  8101. var videoA = [
  8102. "AVI",
  8103. "NAVI",
  8104. "MPEG",
  8105. "ASF",
  8106. "MOV",
  8107. "WMV",
  8108. "3GP",
  8109. "RM",
  8110. "RMVB",
  8111. "FLV",
  8112. "F4V",
  8113. "H.264",
  8114. "H.265",
  8115. "REAL VIDEO",
  8116. "MKV",
  8117. "WebM",
  8118. "HDDVD",
  8119. "MP4",
  8120. "MPG",
  8121. "M4V",
  8122. "MGV",
  8123. "OGV",
  8124. "QTM",
  8125. "STR",
  8126. "AMC",
  8127. "DVX",
  8128. "EVO",
  8129. "DAT",
  8130. "OGG",
  8131. "OGM",
  8132. ];
  8133. if (
  8134. fileA.indexOf(
  8135. data.Location.split(".")[
  8136. data.Location.split(".").length - 1
  8137. ].toLocaleUpperCase()
  8138. ) != -1
  8139. ) {
  8140. _type = 3;
  8141. } else if (
  8142. videoA.indexOf(
  8143. data.Location.split(".")[
  8144. data.Location.split(".").length - 1
  8145. ].toLocaleUpperCase()
  8146. ) != -1
  8147. ) {
  8148. _type = 2;
  8149. } else if (
  8150. imgA.indexOf(
  8151. data.Location.split(".")[
  8152. data.Location.split(".").length - 1
  8153. ].toLocaleLowerCase()
  8154. ) != -1
  8155. ) {
  8156. _type = 13;
  8157. } else {
  8158. _type = 12;
  8159. }
  8160. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8161. itemTaskIndex
  8162. ].chapterData.push({
  8163. name: file.name,
  8164. url: data.Location,
  8165. uid: file.uid,
  8166. type: _type,
  8167. });
  8168. _this.imgChange1(null, null, _type, itemTaskIndex);
  8169. } else if (type == 2 || type == 3 || type == 12) {
  8170. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8171. itemTaskIndex
  8172. ].chapterData.push({
  8173. name: file.name,
  8174. url: data.Location,
  8175. uid: file.uid,
  8176. type: type,
  8177. });
  8178. _this.imgChange1(null, null, type, itemTaskIndex);
  8179. } else if (type == 4) {
  8180. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8181. itemTaskIndex
  8182. ].fileList1.push({
  8183. name: file.name,
  8184. url: data.Location,
  8185. uid: file.uid,
  8186. });
  8187. _this.imgChange1(null, null, type, itemTaskIndex);
  8188. } else if (type == 5) {
  8189. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8190. itemTaskIndex
  8191. ].homeworkList.push({
  8192. name: file.name,
  8193. url: data.Location,
  8194. uid: file.uid,
  8195. });
  8196. _this.imgChange1(null, null, type, itemTaskIndex);
  8197. }
  8198. console.log(data.Location);
  8199. }
  8200. });
  8201. }
  8202. },
  8203. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8204. // const loading = this.openLoading();
  8205. var file = event.target.files[0];
  8206. var credentials = {
  8207. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8208. secretAccessKey: "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",
  8209. }; //秘钥形式的登录上传
  8210. window.AWS.config.update(credentials);
  8211. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8212. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8213. var _this = this;
  8214. if (type == 3) {
  8215. var b = [
  8216. "DOC",
  8217. "DOCX",
  8218. "DOCM",
  8219. "DOTM",
  8220. "DOTX",
  8221. "PPTX",
  8222. "PPSX",
  8223. "PPT",
  8224. "PPS",
  8225. "PPTM",
  8226. "POTM",
  8227. "PPAM",
  8228. "POTX",
  8229. "PPSM",
  8230. ];
  8231. if (
  8232. b.indexOf(
  8233. file.name
  8234. .split(".")
  8235. [file.name.split(".").length - 1].toLocaleUpperCase()
  8236. ) != -1
  8237. ) {
  8238. if (file.size / 1024 / 1024 > 80) {
  8239. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8240. this.inputShow = true;
  8241. // var a = _this.$refs.upload1.uploadFiles;
  8242. // a.splice(a.length - 1, a.length);
  8243. // loading.close();
  8244. return;
  8245. }
  8246. } else if (
  8247. file.name
  8248. .split(".")
  8249. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8250. ) {
  8251. if (file.size / 1024 / 1024 > 80) {
  8252. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8253. this.inputShow = true;
  8254. // var a = _this.$refs.upload1.uploadFiles;
  8255. // a.splice(a.length - 1, a.length);
  8256. // loading.close();
  8257. return;
  8258. }
  8259. }
  8260. }
  8261. this.inputShow = false;
  8262. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8263. itemTaskIndex
  8264. ].progress = 0;
  8265. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8266. itemTaskIndex
  8267. ].proVisible = true;
  8268. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8269. itemTaskIndex
  8270. ].isFinishSize = 0;
  8271. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8272. itemTaskIndex
  8273. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8274. _this.$forceUpdate();
  8275. if (file) {
  8276. var params = {
  8277. Key:
  8278. file.name.split(".")[0] +
  8279. new Date().getTime() +
  8280. "." +
  8281. file.name.split(".")[file.name.split(".").length - 1],
  8282. ContentType: file.type,
  8283. Body: file,
  8284. "Access-Control-Allow-Credentials": "*",
  8285. ACL: "public-read",
  8286. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8287. var options = {
  8288. partSize: 2048 * 1024 * 1024,
  8289. queueSize: 2,
  8290. leavePartsOnError: true,
  8291. };
  8292. bucket
  8293. .upload(params, options)
  8294. .on("httpUploadProgress", function (evt) {
  8295. //这里可以写进度条
  8296. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8297. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8298. itemTaskIndex
  8299. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8300. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8301. itemTaskIndex
  8302. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8303. _this.$forceUpdate();
  8304. })
  8305. .send(function (err, data) {
  8306. // loading.close();
  8307. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8308. itemTaskIndex
  8309. ].progress = 100;
  8310. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8311. itemTaskIndex
  8312. ].isFinishSize =
  8313. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8314. itemTaskIndex
  8315. ].isAllSize;
  8316. _this.$forceUpdate();
  8317. setTimeout(() => {
  8318. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8319. itemTaskIndex
  8320. ].proVisible = false;
  8321. _this.$forceUpdate();
  8322. }, 1000);
  8323. _this.inputShow = true;
  8324. if (err) {
  8325. // var a = _this.$refs.upload1.uploadFiles;
  8326. // a.splice(a.length - 1, a.length);
  8327. _this.$message.error("上传失败");
  8328. } else {
  8329. if (type == 2 || type == 3) {
  8330. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8331. itemTaskIndex
  8332. ].chapterData.push({
  8333. name: file.name,
  8334. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8335. // itemTaskIndex
  8336. // ].chapterData.length+1),
  8337. url: data.Location,
  8338. uid: file.uid,
  8339. type: type,
  8340. text: string,
  8341. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8342. // itemTaskIndex
  8343. // ].chapterData.length + 1),
  8344. });
  8345. _this.imgChange1(null, null, type, itemTaskIndex);
  8346. } else if (type == 4) {
  8347. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8348. itemTaskIndex
  8349. ].fileList1.push({
  8350. name: file.name,
  8351. url: data.Location,
  8352. uid: file.uid,
  8353. });
  8354. _this.imgChange1(null, null, type, itemTaskIndex);
  8355. } else if (type == 5) {
  8356. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8357. itemTaskIndex
  8358. ].homeworkList.push({
  8359. name: file.name,
  8360. url: data.Location,
  8361. uid: file.uid,
  8362. });
  8363. _this.imgChange1(null, null, type, itemTaskIndex);
  8364. }
  8365. console.log(data.Location);
  8366. }
  8367. });
  8368. }
  8369. },
  8370. addunit() {
  8371. this.unitJson.push({
  8372. dyName: "", //单元标题
  8373. isUpdate: 1,
  8374. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8375. chapterInfo: [
  8376. {
  8377. isread: false,
  8378. chapterid: this.guid(),
  8379. title: "",
  8380. courseName: "",
  8381. taskJson: [
  8382. {
  8383. task: "",
  8384. taskDetail: "",
  8385. chapterData: [],
  8386. toolText: "",
  8387. toolChoose: [
  8388. {
  8389. tool: [],
  8390. toolDetail: "",
  8391. toolType: 1,
  8392. askCount: 1,
  8393. askTitle: "",
  8394. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8395. },
  8396. ],
  8397. isShowTools: false,
  8398. askCount: 1,
  8399. isFold: 0,
  8400. askTitle: "",
  8401. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8402. checkJson: [{ checkCount: [], checkPerent: [] }],
  8403. homeworkList: [],
  8404. },
  8405. ],
  8406. itemCount: 1,
  8407. fileList1: [],
  8408. video: [],
  8409. testData: [],
  8410. pData: [],
  8411. templateArray: [],
  8412. },
  8413. ],
  8414. });
  8415. this.addindex = this.unitJson.length - 1;
  8416. setTimeout(() => {
  8417. this.unitIndex = this.unitJson.length - 1;
  8418. this.unitSet(this.unitIndex);
  8419. }, 0);
  8420. },
  8421. addToolFun(itemTaskIndex) {
  8422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8423. itemTaskIndex
  8424. ].toolChoose.push({
  8425. tool: [],
  8426. toolDetail: "",
  8427. toolType: 1,
  8428. askCount: 1,
  8429. askTitle: "",
  8430. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8431. });
  8432. },
  8433. addTaskBorder() {
  8434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8435. task: "",
  8436. taskDetail: "",
  8437. chapterData: [],
  8438. toolChoose: [
  8439. {
  8440. tool: [],
  8441. toolDetail: "",
  8442. toolType: 1,
  8443. askCount: 1,
  8444. askTitle: "",
  8445. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8446. },
  8447. ],
  8448. toolText: "",
  8449. isShowTools: false,
  8450. askCount: 1,
  8451. isFold: 0,
  8452. askTitle: "",
  8453. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8454. checkJson: [{ checkCount: [], checkPerent: [] }],
  8455. homeworkList: [],
  8456. });
  8457. },
  8458. add(e, i) {
  8459. var el = e.currentTarget;
  8460. el.getElementsByTagName("input")[0].click();
  8461. },
  8462. fold(i, e, type) {
  8463. var a = e.currentTarget.parentElement.parentElement;
  8464. var b = e.currentTarget.parentElement;
  8465. if (type == 1) {
  8466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8467. a.className += " smallTaskBorder";
  8468. b.className += " funBlockTop";
  8469. } else {
  8470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8471. a.className = "taskBorder";
  8472. b.className = "funBlock";
  8473. }
  8474. console.log(e);
  8475. },
  8476. deleteHomeworkBox(unitIndex, index, i) {
  8477. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8478. this.taskCount
  8479. ].homeworkList.splice(i, 1);
  8480. },
  8481. getStudent() {
  8482. let params = {
  8483. oid: this.oid,
  8484. cu: "",
  8485. cn: this.searchPeople,
  8486. };
  8487. this.ajax
  8488. .get(this.$store.state.api + "selectStudentAdd", params)
  8489. .then((res) => {
  8490. this.studentJuri = res.data[0];
  8491. })
  8492. .catch((err) => {
  8493. this.isLoading = false;
  8494. console.error(err);
  8495. });
  8496. },
  8497. getTeacher() {
  8498. let params = {
  8499. oid:
  8500. this.org && this.org != "undefined" && this.org != "null"
  8501. ? this.org
  8502. : this.oid,
  8503. cu: "",
  8504. cn: this.searchTN,
  8505. };
  8506. this.ajax
  8507. .get(
  8508. this.$store.state.api +
  8509. (this.org && this.org != "undefined" && this.org != "null"
  8510. ? "selectTeacherAddOrg"
  8511. : "selectTeacherAdd"),
  8512. params
  8513. )
  8514. .then((res) => {
  8515. let teacherJuri = res.data[0];
  8516. for (var i = 0; i < teacherJuri.length; i++) {
  8517. if (teacherJuri[i].userid == this.userid) {
  8518. teacherJuri.splice(i, 1);
  8519. break;
  8520. }
  8521. }
  8522. this.teacherJuri = teacherJuri;
  8523. })
  8524. .catch((err) => {
  8525. console.error(err);
  8526. });
  8527. },
  8528. searchStudent() {
  8529. this.getStudent();
  8530. },
  8531. //获取班级列表
  8532. getClass() {
  8533. let params = {
  8534. oid: this.oid,
  8535. cn: this.classSearch,
  8536. };
  8537. this.ajax
  8538. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  8539. .then((res) => {
  8540. if (!this.grade.length) {
  8541. this.grade = res.data[0];
  8542. }
  8543. this.grade2 = res.data[0];
  8544. this.classJuri = res.data[0];
  8545. })
  8546. .catch((err) => {
  8547. this.isLoading = false;
  8548. console.error(err);
  8549. });
  8550. },
  8551. CourseType2Change(val) {
  8552. this.pTypeCheck = [];
  8553. for (var i = 0; i < this.CourseType2.length; i++) {
  8554. let typeA = this.CourseType2[i];
  8555. if (val.indexOf(typeA.name) != -1) {
  8556. this.pTypeCheck.push(...typeA.id);
  8557. }
  8558. }
  8559. },
  8560. getChapterData(e, i, j, ic, type) {
  8561. e.stopPropagation();
  8562. this.updataC = true;
  8563. this.icc = ic;
  8564. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8565. console.log("还不能下载图片喔");
  8566. }
  8567. },
  8568. deleteChapterData(e, i, j, ic, taskI) {
  8569. e.stopPropagation();
  8570. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8571. },
  8572. updataVideoT(e, i, j, ic) {
  8573. e.stopPropagation();
  8574. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  8575. ic
  8576. ].name = e.target.value;
  8577. },
  8578. upCd(e, i, j, taskCount, ic) {
  8579. e.stopPropagation();
  8580. if (ic == 0) {
  8581. return;
  8582. }
  8583. var a =
  8584. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  8585. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8586. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8587. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8588. this.$forceUpdate();
  8589. },
  8590. downCd(e, i, j, taskCount, ic) {
  8591. e.stopPropagation();
  8592. if (
  8593. ic ==
  8594. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8595. 1
  8596. ) {
  8597. return;
  8598. }
  8599. var a =
  8600. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  8601. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8602. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  8603. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8604. this.$forceUpdate();
  8605. },
  8606. addWork() {
  8607. let cPan = 1;
  8608. for (var i = 0; i < this.unitJson.length; i++) {
  8609. for (
  8610. var j = 0;
  8611. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8612. j++
  8613. ) {
  8614. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8615. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8616. if (
  8617. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8618. ) {
  8619. for (
  8620. var z = 0;
  8621. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8622. z++
  8623. ) {
  8624. if (
  8625. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8626. .length
  8627. ) {
  8628. this.$message.error("请把工具添加完整");
  8629. cPan = 2;
  8630. break;
  8631. }
  8632. }
  8633. }
  8634. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8635. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8636. i
  8637. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8638. return ele.value != "";
  8639. });
  8640. }
  8641. }
  8642. }
  8643. this.inputShow = true;
  8644. if (cPan == 2) {
  8645. return;
  8646. }
  8647. for (var i = 0; i < this.unitJson.length; i++) {
  8648. delete this.unitJson[i].isUpdate;
  8649. }
  8650. let params = [
  8651. {
  8652. uid: this.userid,
  8653. title: this.courseName.replace(/%/g, "%25"),
  8654. brief: this.courseText.replace(/%/g, "%25"),
  8655. cover:
  8656. this.cover.length > 0
  8657. ? JSON.stringify(this.cover)
  8658. : JSON.stringify([
  8659. {
  8660. name: "noBanner.jpg",
  8661. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8662. uid: 1656409780264,
  8663. status: "success",
  8664. },
  8665. ]),
  8666. evaId: this.evalua,
  8667. astudent:
  8668. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8669. see: this.isTeacherSee == true ? 1 : 0,
  8670. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8671. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8672. courseType: JSON.stringify(this.courseTypeId),
  8673. ateacher:
  8674. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8675. inviteCode: JSON.stringify(this.inviteCode),
  8676. },
  8677. ];
  8678. this.ajax
  8679. .post(this.$store.state.api + "addWorkNew2E", params)
  8680. .then((res) => {
  8681. console.log(this.steps);
  8682. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8683. this.$message({
  8684. message: "新增成功",
  8685. type: "success",
  8686. });
  8687. // }
  8688. this.number = res.data.ordernumber;
  8689. this.courseId = res.data.courseId;
  8690. this.cid = res.data.courseId;
  8691. this.courseUserid = this.userid;
  8692. this.islogin = true;
  8693. })
  8694. .catch((err) => {
  8695. this.$message.error("网络不佳");
  8696. console.error(err);
  8697. });
  8698. },
  8699. goCourse() {
  8700. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  8701. },
  8702. updateWork2() {
  8703. let _unitIndex = this.unitIndex;
  8704. let cPan = 1;
  8705. for (
  8706. var j = 0;
  8707. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8708. j++
  8709. ) {
  8710. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8711. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8712. j
  8713. ].proVisible2 = false;
  8714. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8715. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8716. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8717. (ele) => {
  8718. return ele.value != "";
  8719. }
  8720. );
  8721. }
  8722. }
  8723. this.inputShow = true;
  8724. if (cPan == 2) {
  8725. return;
  8726. }
  8727. let params = [
  8728. {
  8729. cid: this.cid,
  8730. chapters: JSON.stringify(this.unitJson),
  8731. uid: this.userid,
  8732. unitIndex: _unitIndex,
  8733. },
  8734. ];
  8735. this.ajax
  8736. .post(this.$store.state.api + "updateWorkNew4", params)
  8737. .then((res) => {
  8738. this.$message({
  8739. message: "修改成功",
  8740. type: "success",
  8741. });
  8742. this.courseId = this.cid;
  8743. })
  8744. .catch((err) => {
  8745. this.$message.error("网络不佳");
  8746. console.error(err);
  8747. });
  8748. },
  8749. updateWork() {
  8750. let cPan = 1;
  8751. for (var i = 0; i < this.unitJson.length; i++) {
  8752. for (
  8753. var j = 0;
  8754. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8755. j++
  8756. ) {
  8757. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8758. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8759. if (
  8760. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8761. ) {
  8762. for (
  8763. var z = 0;
  8764. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8765. z++
  8766. ) {
  8767. if (
  8768. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8769. .length
  8770. ) {
  8771. this.$message.error("请把工具添加完整");
  8772. cPan = 2;
  8773. break;
  8774. }
  8775. }
  8776. }
  8777. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8778. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8779. i
  8780. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8781. return ele.value != "";
  8782. });
  8783. }
  8784. }
  8785. }
  8786. this.inputShow = true;
  8787. if (cPan == 2) {
  8788. this.step--;
  8789. return;
  8790. }
  8791. for (var i = 0; i < this.unitJson.length; i++) {
  8792. delete this.unitJson[i].isUpdate;
  8793. }
  8794. let params = [
  8795. {
  8796. cid: this.cid,
  8797. title: this.courseName.replace(/%/g, "%25"),
  8798. brief: this.courseText.replace(/%/g, "%25"),
  8799. cover:
  8800. this.cover.length > 0
  8801. ? JSON.stringify(this.cover)
  8802. : JSON.stringify([
  8803. {
  8804. name: "noBanner.jpg",
  8805. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8806. uid: 1656409780264,
  8807. status: "success",
  8808. },
  8809. ]),
  8810. evaId: this.evalua,
  8811. astudent:
  8812. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8813. see: this.isTeacherSee == true ? 1 : 0,
  8814. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8815. template: this.myWord != "undefined" ? this.myWord : [],
  8816. uid: this.userid,
  8817. courseType: JSON.stringify(this.courseTypeId),
  8818. ateacher:
  8819. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8820. inviteCode: JSON.stringify(this.inviteCode),
  8821. },
  8822. ];
  8823. this.ajax
  8824. .post(this.$store.state.api + "updateWorkNew2", params)
  8825. .then((res) => {
  8826. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8827. if (this.cidType == 1) {
  8828. this.$message({
  8829. message: "修改成功",
  8830. type: "success",
  8831. });
  8832. } else {
  8833. this.$message({
  8834. message: "新增成功",
  8835. type: "success",
  8836. });
  8837. }
  8838. // }
  8839. this.number = this.nbOrder;
  8840. this.courseId = this.cid;
  8841. this.steps = 4;
  8842. })
  8843. .catch((err) => {
  8844. this.$message.error("网络不佳");
  8845. console.error(err);
  8846. });
  8847. },
  8848. guid() {
  8849. var _num,
  8850. i,
  8851. _guid = "";
  8852. for (i = 0; i < 32; i++) {
  8853. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8854. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8855. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8856. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8857. _guid += "-";
  8858. }
  8859. }
  8860. return _guid;
  8861. },
  8862. insertWord() {
  8863. this.dialogVisible1 = true;
  8864. this.updateBoolean2 = false;
  8865. this.tTitle = "";
  8866. this.tdetail = "";
  8867. },
  8868. addWord() {
  8869. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  8870. name: this.tTitle,
  8871. content: this.tdetail,
  8872. uid: this.guid(),
  8873. });
  8874. this.dialogVisible1 = false;
  8875. },
  8876. upWord() {},
  8877. selectWord(uid, i, c) {
  8878. this.dialogVisible1 = true;
  8879. this.updateBoolean2 = true;
  8880. if (
  8881. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  8882. ) {
  8883. this.tTitle =
  8884. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  8885. this.tdetail =
  8886. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  8887. }
  8888. },
  8889. isAddPP() {
  8890. if (this.checkboxList.length > 0) {
  8891. this.$message({
  8892. message: "添加成功",
  8893. type: "success",
  8894. });
  8895. this.dialogVisible3 = false;
  8896. } else {
  8897. this.$message({
  8898. message: "请添加课程成员",
  8899. type: "error",
  8900. });
  8901. }
  8902. },
  8903. isAddClass() {
  8904. this.dialogVisibleClass = false;
  8905. },
  8906. isAddPPTeacher() {
  8907. this.dialogVisibleMember = false;
  8908. this.setMan();
  8909. },
  8910. getTemplate() {
  8911. this.ajax
  8912. .get(this.$store.state.api + "getCourseTemplateT", "")
  8913. .then((res) => {
  8914. this.templateArray = res.data[0];
  8915. this.getTemplateOid();
  8916. this.$forceUpdate();
  8917. })
  8918. .catch((err) => {});
  8919. },
  8920. getTemplateOid() {
  8921. let params = {
  8922. oid: this.oid,
  8923. };
  8924. this.ajax
  8925. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8926. .then((res) => {
  8927. if (res.data[0].length) {
  8928. this.templateArray = [...res.data[0], ...this.templateArray];
  8929. }
  8930. this.getTemplateOrg();
  8931. this.$forceUpdate();
  8932. })
  8933. .catch((err) => {});
  8934. },
  8935. getTemplateOrg() {
  8936. let params = {
  8937. oid: this.org,
  8938. };
  8939. this.ajax
  8940. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  8941. .then((res) => {
  8942. if (res.data[0].length) {
  8943. this.templateArray = [...res.data[0], ...this.templateArray];
  8944. }
  8945. this.$forceUpdate();
  8946. })
  8947. .catch((err) => {});
  8948. },
  8949. clearChoose() {
  8950. this.clearArray.splice(this.templateC.id, 1);
  8951. this.dialogVisible2 = false;
  8952. },
  8953. clearAttText() {
  8954. this.AttText = {
  8955. title: "",
  8956. text: "",
  8957. };
  8958. this.dialogVisible6 = false;
  8959. },
  8960. clearLine() {
  8961. this.line = "";
  8962. this.dialogVisible7 = false;
  8963. },
  8964. checkTemplate(res) {
  8965. let _this = this;
  8966. _this
  8967. .$confirm("确定选择此模板吗?", "提示", {
  8968. confirmButtonText: "确定",
  8969. cancelButtonText: "取消",
  8970. type: "warning",
  8971. })
  8972. .then(() => {
  8973. _this.unitJson = JSON.parse(res.chapters);
  8974. _this.steps++;
  8975. setTimeout(() => {
  8976. this.checkEva(this.checkId);
  8977. }, 1000);
  8978. })
  8979. .catch(() => {
  8980. return;
  8981. });
  8982. },
  8983. checkTemplate1(w) {
  8984. this.steps++;
  8985. },
  8986. checkTemplate2() {
  8987. let _this = this;
  8988. _this
  8989. .$confirm("确定选择空模板吗?", "提示", {
  8990. confirmButtonText: "确定",
  8991. cancelButtonText: "取消",
  8992. type: "warning",
  8993. })
  8994. .then(() => {
  8995. _this.unitIndex = 0;
  8996. _this.unitJson = [
  8997. {
  8998. dyName: "", //单元标题
  8999. chapterInfo: [
  9000. {
  9001. isread: false,
  9002. chapterid: this.guid(),
  9003. title: "",
  9004. courseName: "",
  9005. taskJson: [
  9006. {
  9007. task: "",
  9008. taskDetail: "",
  9009. chapterData: [],
  9010. toolText: "",
  9011. toolChoose: [
  9012. {
  9013. tool: [],
  9014. toolDetail: "",
  9015. toolType: 1,
  9016. askCount: 1,
  9017. askTitle: "",
  9018. askJson: [
  9019. { askstitle: "", askItem: 1, checkList: [] },
  9020. ],
  9021. },
  9022. ],
  9023. isShowTools: false,
  9024. askCount: 1,
  9025. isFold: 0,
  9026. askTitle: "",
  9027. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9028. checkJson: [{ checkCount: [], checkPerent: [] }],
  9029. homeworkList: [],
  9030. },
  9031. ],
  9032. itemCount: 1,
  9033. fileList1: [],
  9034. video: [],
  9035. testData: [],
  9036. pData: [],
  9037. templateArray: [],
  9038. },
  9039. ],
  9040. },
  9041. ];
  9042. this.steps++;
  9043. this.updateWork();
  9044. })
  9045. .catch(() => {
  9046. return;
  9047. });
  9048. },
  9049. checkTemplate3() {
  9050. let _this = this;
  9051. _this
  9052. .$confirm("确定选择简易模式吗?", "提示", {
  9053. confirmButtonText: "确定",
  9054. cancelButtonText: "取消",
  9055. type: "warning",
  9056. })
  9057. .then(() => {
  9058. _this.unitIndex = 0;
  9059. _this.unitJson = [
  9060. {
  9061. dyName: "", //单元标题
  9062. easy: 1,
  9063. chapterInfo: [
  9064. {
  9065. isread: false,
  9066. chapterid: this.guid(),
  9067. title: "",
  9068. courseName: "",
  9069. taskJson: [
  9070. {
  9071. task: "",
  9072. taskDetail: "",
  9073. chapterData: [],
  9074. toolText: "",
  9075. toolChoose: [
  9076. {
  9077. tool: [],
  9078. toolDetail: "",
  9079. toolType: 1,
  9080. askCount: 1,
  9081. askTitle: "",
  9082. askJson: [
  9083. { askstitle: "", askItem: 1, checkList: [] },
  9084. ],
  9085. },
  9086. ],
  9087. isShowTools: false,
  9088. askCount: 1,
  9089. isFold: 0,
  9090. askTitle: "",
  9091. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9092. checkJson: [{ checkCount: [], checkPerent: [] }],
  9093. homeworkList: [],
  9094. },
  9095. ],
  9096. itemCount: 1,
  9097. fileList1: [],
  9098. video: [],
  9099. testData: [],
  9100. pData: [],
  9101. templateArray: [],
  9102. },
  9103. ],
  9104. },
  9105. ];
  9106. this.steps++;
  9107. this.updateWork();
  9108. })
  9109. .catch(() => {
  9110. return;
  9111. });
  9112. },
  9113. checkTemplate4() {
  9114. let _this = this;
  9115. _this
  9116. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9117. confirmButtonText: "确定",
  9118. cancelButtonText: "取消",
  9119. type: "warning",
  9120. })
  9121. .then(() => {
  9122. _this.unitIndex = 0;
  9123. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9124. this.steps++;
  9125. this.updateWork();
  9126. })
  9127. .catch(() => {
  9128. return;
  9129. });
  9130. },
  9131. wordNext() {
  9132. this.dialogVisible2 = false;
  9133. },
  9134. isAddOrUpdateAttText() {
  9135. if (this.AttTextType == 0) {
  9136. this.addAttTextMessage();
  9137. } else {
  9138. this.updateAttText();
  9139. }
  9140. },
  9141. isAddOrUpdateLine() {
  9142. if (!this.lineTitle) {
  9143. this.$message.error("请填写链接标题");
  9144. return;
  9145. }
  9146. if (this.lineType == 0) {
  9147. this.addLine();
  9148. } else {
  9149. this.updateLine();
  9150. }
  9151. },
  9152. addAttTextMessage() {
  9153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9154. this.taskCount
  9155. ].chapterData.push({
  9156. name: this.AttText.title,
  9157. url: this.AttText.text,
  9158. type: 6,
  9159. });
  9160. this.imgChange1(null, null, 6, this.taskCount);
  9161. this.dialogVisible6 = false;
  9162. },
  9163. selectAttText(itemTaskIndex, i) {
  9164. this.AttText.title =
  9165. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9166. itemTaskIndex
  9167. ].chapterData[i].name;
  9168. this.AttText.text =
  9169. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9170. itemTaskIndex
  9171. ].chapterData[i].url;
  9172. this.taskCount = itemTaskIndex;
  9173. this.AttTextIndex = i;
  9174. this.AttTextType = 1;
  9175. this.dialogVisible6 = true;
  9176. },
  9177. updateAttText() {
  9178. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9179. this.taskCount
  9180. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9181. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9182. this.taskCount
  9183. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9184. this.dialogVisible6 = false;
  9185. },
  9186. addLine() {
  9187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9188. this.lineCount
  9189. ].chapterData.push({
  9190. name: "链接",
  9191. title: this.lineTitle,
  9192. url: this.line,
  9193. type: 8,
  9194. });
  9195. this.imgChange1(null, null, 8, this.lineCount);
  9196. this.dialogVisible7 = false;
  9197. },
  9198. selectLine(itemTaskIndex, i) {
  9199. this.line =
  9200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9201. itemTaskIndex
  9202. ].chapterData[i].url;
  9203. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9204. itemTaskIndex
  9205. ].chapterData[i].title
  9206. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9207. .chapterData[i].title
  9208. : "";
  9209. this.taskCount = itemTaskIndex;
  9210. this.lineCount = i;
  9211. this.lineType = 1;
  9212. this.dialogVisible7 = true;
  9213. },
  9214. updateLine() {
  9215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9216. this.taskCount
  9217. ].chapterData[this.lineCount].url = this.line;
  9218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9219. this.taskCount
  9220. ].chapterData[this.lineCount].title = this.lineTitle;
  9221. this.dialogVisible7 = false;
  9222. },
  9223. addPP() {
  9224. this.dialogVisible3 = true;
  9225. },
  9226. goTo(path) {
  9227. this.$router.push(path);
  9228. },
  9229. openTools(itemTaskIndex, i, toolIndex) {
  9230. this.toolIndex = toolIndex;
  9231. this.taskCount = itemTaskIndex;
  9232. if (i == 4) {
  9233. if (toolIndex == null) {
  9234. var a =
  9235. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9236. .chapterData;
  9237. for (var i = 0; i < a.length; i++) {
  9238. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9239. this.askJson =
  9240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9241. itemTaskIndex
  9242. ].chapterData[i].askJson;
  9243. }
  9244. }
  9245. } else {
  9246. this.askJson = JSON.parse(
  9247. JSON.stringify(
  9248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9249. itemTaskIndex
  9250. ].toolChoose[toolIndex]
  9251. )
  9252. );
  9253. }
  9254. this.dialogVisible5 = true;
  9255. } else if (i == 45) {
  9256. if (
  9257. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9258. .toolChoose[toolIndex].testJson
  9259. ) {
  9260. this.testJson = JSON.parse(
  9261. JSON.stringify(
  9262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9263. itemTaskIndex
  9264. ].toolChoose[toolIndex].testJson
  9265. )
  9266. );
  9267. } else {
  9268. var testJson = {
  9269. testCount: 1,
  9270. testTitle: "",
  9271. testJson: [
  9272. {
  9273. teststitle: "",
  9274. testItem: 1,
  9275. checkList: [],
  9276. timuList: [],
  9277. answer: [],
  9278. type: "1",
  9279. },
  9280. ],
  9281. };
  9282. this.testJson = testJson;
  9283. }
  9284. this.dialogVisibleChoice = true;
  9285. } else if (i == 47) {
  9286. if (
  9287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9288. .toolChoose[toolIndex].sentenceList
  9289. ) {
  9290. this.sentenceList = JSON.parse(
  9291. JSON.stringify(
  9292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9293. itemTaskIndex
  9294. ].toolChoose[toolIndex].sentenceList
  9295. )
  9296. );
  9297. } else {
  9298. var sentenceList = [
  9299. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9300. ];
  9301. this.sentenceList = sentenceList;
  9302. }
  9303. this.dialogVisibleSentence = true;
  9304. } else if (i == 48) {
  9305. if (
  9306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9307. .toolChoose[toolIndex].tableJson
  9308. ) {
  9309. this.tableJson = JSON.parse(
  9310. JSON.stringify(
  9311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9312. itemTaskIndex
  9313. ].toolChoose[toolIndex].tableJson
  9314. )
  9315. );
  9316. } else {
  9317. var tableJson = { text: "" };
  9318. this.tableJson = tableJson;
  9319. }
  9320. this.dialogVisibleTable = true;
  9321. } else if (i == 52) {
  9322. if (
  9323. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9324. .toolChoose[toolIndex].wordJson
  9325. ) {
  9326. this.wordJson = JSON.parse(
  9327. JSON.stringify(
  9328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9329. itemTaskIndex
  9330. ].toolChoose[toolIndex].wordJson
  9331. )
  9332. );
  9333. } else {
  9334. var wordJson = { text: "" };
  9335. this.wordJson = wordJson;
  9336. }
  9337. this.dialogVisibleWord = true;
  9338. // else if (i == 50) {
  9339. // if (
  9340. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9341. // .toolChoose[toolIndex].uploadJson
  9342. // ) {
  9343. // this.uploadJson = JSON.parse(
  9344. // JSON.stringify(
  9345. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9346. // itemTaskIndex
  9347. // ].toolChoose[toolIndex].uploadJson
  9348. // )
  9349. // );
  9350. // } else {
  9351. // var uploadJson = [];
  9352. // this.uploadJson = uploadJson;
  9353. // }
  9354. // this.dialogVisibleMoreUpload = true;
  9355. // }
  9356. } else if (i == 10) {
  9357. if (
  9358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9359. .toolChoose[toolIndex].preTime
  9360. ) {
  9361. this.preTime = JSON.parse(
  9362. JSON.stringify(
  9363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9364. itemTaskIndex
  9365. ].toolChoose[toolIndex].preTime
  9366. )
  9367. );
  9368. } else {
  9369. var preTime = 0;
  9370. this.preTime = preTime;
  9371. }
  9372. this.dialogVisiblePreTime = true;
  9373. } else if (i == 49) {
  9374. if (
  9375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9376. .toolChoose[toolIndex].groupJson
  9377. ) {
  9378. this.groupJson = JSON.parse(
  9379. JSON.stringify(
  9380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9381. itemTaskIndex
  9382. ].toolChoose[toolIndex].groupJson
  9383. )
  9384. );
  9385. } else {
  9386. var groupJson = {
  9387. group: [{ name: "第1组" }],
  9388. number: undefined,
  9389. islock: 1,
  9390. };
  9391. this.groupJson = groupJson;
  9392. }
  9393. this.dialogVisibleGroup = true;
  9394. } else if (i == 62) {
  9395. if (
  9396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9397. .toolChoose[toolIndex].videoJson
  9398. ) {
  9399. this.videoJson = JSON.parse(
  9400. JSON.stringify(
  9401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9402. itemTaskIndex
  9403. ].toolChoose[toolIndex].videoJson
  9404. )
  9405. );
  9406. } else {
  9407. var videoJson = {
  9408. video: "",
  9409. setting: [],
  9410. };
  9411. this.videoJson = videoJson;
  9412. }
  9413. this.dialogVisibleVideo = true;
  9414. } else if (i == 15) {
  9415. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9416. itemTaskIndex
  9417. ].toolChoose[toolIndex].answerQ
  9418. ? JSON.parse(
  9419. JSON.stringify(
  9420. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9421. itemTaskIndex
  9422. ].toolChoose[toolIndex].answerQ
  9423. )
  9424. )
  9425. : "";
  9426. this.dialogVisible8 = true;
  9427. } else if (i == 40) {
  9428. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9429. itemTaskIndex
  9430. ].toolChoose[toolIndex].rateJson
  9431. ? JSON.parse(
  9432. JSON.stringify(
  9433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9434. itemTaskIndex
  9435. ].toolChoose[toolIndex].rateJson
  9436. )
  9437. )
  9438. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9439. this.selectSteps = 1;
  9440. this.dialogVisibleRate = true;
  9441. } else if (i == 42) {
  9442. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9443. itemTaskIndex
  9444. ].toolChoose[toolIndex].answerQ
  9445. ? JSON.parse(
  9446. JSON.stringify(
  9447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9448. itemTaskIndex
  9449. ].toolChoose[toolIndex].answerQ
  9450. )
  9451. )
  9452. : "";
  9453. this.dialogVisibleMp3 = true;
  9454. } else if (i == 41) {
  9455. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9456. itemTaskIndex
  9457. ].toolChoose[toolIndex].selectJson
  9458. ? JSON.parse(
  9459. JSON.stringify(
  9460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9461. itemTaskIndex
  9462. ].toolChoose[toolIndex].selectJson
  9463. )
  9464. )
  9465. : { url: "", select: [], answer: [] };
  9466. this.selectSteps = 1;
  9467. this.dialogVisibleSelect = true;
  9468. } else if (i == 3) {
  9469. if (!this.cid) {
  9470. this.$message.error(
  9471. "如果您需要在内容中添加模板,请在修改模式下进行添加。"
  9472. );
  9473. return;
  9474. }
  9475. window.parent.postMessage(
  9476. {
  9477. tools: "3y",
  9478. cid: this.cid,
  9479. stage: this.unitIndex,
  9480. task: itemTaskIndex,
  9481. tool: toolIndex,
  9482. },
  9483. "*"
  9484. );
  9485. } else if (i == 1) {
  9486. if (!this.cid) {
  9487. this.$message.error(
  9488. "如果您需要在内容中添加模板,请在修改模式下进行添加。"
  9489. );
  9490. return;
  9491. }
  9492. window.parent.postMessage(
  9493. {
  9494. tools: "1y",
  9495. cid: this.cid,
  9496. stage: this.unitIndex,
  9497. task: itemTaskIndex,
  9498. tool: toolIndex,
  9499. },
  9500. "*"
  9501. );
  9502. } else if (i == 57) {
  9503. window.parent.postMessage(
  9504. {
  9505. tools: "57y",
  9506. cid: this.cid,
  9507. stage: this.unitIndex,
  9508. task: itemTaskIndex,
  9509. tool: toolIndex,
  9510. },
  9511. "*"
  9512. );
  9513. }
  9514. },
  9515. chapAddTools(i) {
  9516. if (this.chapTools[0].tools.length == 0) {
  9517. this.chapTools[0].tools.push(i);
  9518. } else {
  9519. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9520. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9521. } else {
  9522. this.chapTools[0].tools.push(i);
  9523. }
  9524. }
  9525. this.$forceUpdate();
  9526. },
  9527. addChaptersDataTools() {
  9528. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9530. this.chapCount
  9531. ].chapterData.push({
  9532. name: this.chapTools[0].toolDetail,
  9533. url: this.chapTools[0].tools,
  9534. type: 7,
  9535. askJson: this.askJson,
  9536. });
  9537. } else {
  9538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9539. this.chapCount
  9540. ].chapterData.push({
  9541. name: this.chapTools[0].toolDetail,
  9542. url: this.chapTools[0].tools,
  9543. type: 7,
  9544. });
  9545. }
  9546. this.imgChange1(null, null, 7, this.chapCount);
  9547. this.dialogVisible4 = false;
  9548. },
  9549. addTools(i, itemTaskIndex, toolIndex) {
  9550. // if (
  9551. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9552. // .toolChoose[toolIndex].tool.length == 0
  9553. // ) {
  9554. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9555. // itemTaskIndex
  9556. // ].toolChoose[toolIndex].tool.push(i);
  9557. // } else {
  9558. // if (
  9559. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9560. // itemTaskIndex
  9561. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9562. // ) {
  9563. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9564. // itemTaskIndex
  9565. // ].toolChoose[toolIndex].tool.splice(
  9566. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9567. // itemTaskIndex
  9568. // ].toolChoose[toolIndex].tool.indexOf(i),
  9569. // 1
  9570. // );
  9571. // } else {
  9572. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9573. // itemTaskIndex
  9574. // ].toolChoose[toolIndex].tool.push(i);
  9575. // }
  9576. // console.log(
  9577. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9578. // .toolChoose[toolIndex].tool
  9579. // );
  9580. // }
  9581. if (i == 4) {
  9582. if (
  9583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9584. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9586. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9588. .toolChoose[toolIndex].askJson[0].checkList < 2
  9589. ) {
  9590. this.openTools(itemTaskIndex, 4, toolIndex);
  9591. // this.$message({
  9592. // message: "请填写完整问卷内容",
  9593. // type: "error",
  9594. // });
  9595. return;
  9596. }
  9597. }
  9598. if (i == 45) {
  9599. if (
  9600. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9601. .toolChoose[toolIndex].testJson ||
  9602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9603. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9605. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9606. ) {
  9607. this.openTools(itemTaskIndex, 45, toolIndex);
  9608. // this.$message({
  9609. // message: "请填写完整问卷内容",
  9610. // type: "error",
  9611. // });
  9612. return;
  9613. }
  9614. }
  9615. if (i == 47) {
  9616. if (
  9617. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9618. .toolChoose[toolIndex].sentenceList ||
  9619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9620. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9621. ) {
  9622. this.openTools(itemTaskIndex, 47, toolIndex);
  9623. return;
  9624. }
  9625. }
  9626. // if (i == 48) {
  9627. // if (
  9628. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9629. // .toolChoose[toolIndex].tableJson
  9630. // ) {
  9631. // this.openTools(itemTaskIndex, 48, toolIndex);
  9632. // return;
  9633. // }
  9634. // }
  9635. // if (i == 50) {
  9636. // if (
  9637. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9638. // .toolChoose[toolIndex].uploadJson
  9639. // ) {
  9640. // this.openTools(itemTaskIndex, 50, toolIndex);
  9641. // return;
  9642. // }
  9643. // }
  9644. if (i == 49) {
  9645. if (
  9646. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9647. .toolChoose[toolIndex].groupJson
  9648. ) {
  9649. this.openTools(itemTaskIndex, 49, toolIndex);
  9650. return;
  9651. }
  9652. }
  9653. if (i == 62) {
  9654. if (
  9655. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9656. .toolChoose[toolIndex].videoJson
  9657. ) {
  9658. this.openTools(itemTaskIndex, 62, toolIndex);
  9659. return;
  9660. }
  9661. }
  9662. if (i == 15) {
  9663. if (
  9664. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9665. .toolChoose[toolIndex].answerQ ||
  9666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9667. .toolChoose[toolIndex].answerQ == ""
  9668. ) {
  9669. this.openTools(itemTaskIndex, 15, toolIndex);
  9670. // this.$message({
  9671. // message: "请填写问答内容",
  9672. // type: "error",
  9673. // });
  9674. return;
  9675. }
  9676. }
  9677. if (i == 40) {
  9678. if (
  9679. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9680. .toolChoose[toolIndex].rateJson ||
  9681. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9682. .toolChoose[toolIndex].rateJson.length
  9683. ) {
  9684. this.openTools(itemTaskIndex, 40, toolIndex);
  9685. return;
  9686. }
  9687. }
  9688. if (i == 41) {
  9689. if (
  9690. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9691. .toolChoose[toolIndex].selectJson ||
  9692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9693. .toolChoose[toolIndex].selectJson.url == "" ||
  9694. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9695. .toolChoose[toolIndex].selectJson.select.length ||
  9696. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9697. .toolChoose[toolIndex].selectJson.answer.length
  9698. ) {
  9699. this.openTools(itemTaskIndex, 41, toolIndex);
  9700. return;
  9701. }
  9702. }
  9703. if (i == 42) {
  9704. if (
  9705. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9706. .toolChoose[toolIndex].answerQ ||
  9707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9708. .toolChoose[toolIndex].answerQ == ""
  9709. ) {
  9710. this.openTools(itemTaskIndex, 42, toolIndex);
  9711. return;
  9712. }
  9713. }
  9714. if (
  9715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9716. .toolChoose[toolIndex].tool.length > 0
  9717. ) {
  9718. if (
  9719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9720. itemTaskIndex
  9721. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9722. ) {
  9723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9724. itemTaskIndex
  9725. ].toolChoose[toolIndex].tool.splice(
  9726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9727. itemTaskIndex
  9728. ].toolChoose[toolIndex].tool.indexOf(i),
  9729. 1
  9730. );
  9731. } else {
  9732. // this.$message({
  9733. // message: "每个工具只能添加一个",
  9734. // type: "error",
  9735. // });
  9736. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9737. itemTaskIndex
  9738. ].toolChoose[toolIndex].tool = [];
  9739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9740. itemTaskIndex
  9741. ].toolChoose[toolIndex].tool.push(i);
  9742. }
  9743. } else {
  9744. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9745. itemTaskIndex
  9746. ].toolChoose[toolIndex].tool.push(i);
  9747. }
  9748. this.$forceUpdate();
  9749. },
  9750. addAskList() {
  9751. this.askJson.askJson.push({
  9752. askstitle: "",
  9753. askItem: 1,
  9754. checkList: [],
  9755. });
  9756. this.askJson.askCount++;
  9757. },
  9758. addTestList() {
  9759. this.testJson.testJson.push({
  9760. teststitle: "",
  9761. testItem: 1,
  9762. checkList: [],
  9763. timuList: [],
  9764. answer: [],
  9765. type: "1",
  9766. });
  9767. this.testJson.testCount++;
  9768. },
  9769. deleteAskList(index) {
  9770. this.askJson.askJson.splice(index, 1);
  9771. this.askJson.askCount--;
  9772. },
  9773. deleteTestList(index) {
  9774. this.testJson.testJson.splice(index, 1);
  9775. this.testJson.testCount--;
  9776. },
  9777. addcheckList(json) {
  9778. json.checkList.length++;
  9779. json.askItem++;
  9780. },
  9781. deletecheckList(json) {
  9782. json.checkList.length--;
  9783. json.askItem--;
  9784. },
  9785. addTcheckList(json) {
  9786. json.checkList.length++;
  9787. json.testItem++;
  9788. },
  9789. deleteTcheckList(json) {
  9790. json.checkList.length--;
  9791. json.testItem--;
  9792. },
  9793. checkTestType(type, json) {
  9794. json.type = type;
  9795. json.answer = [];
  9796. },
  9797. checkAskType(type, json) {
  9798. json.type = type;
  9799. json.checkList = [];
  9800. },
  9801. addSelectList(json) {
  9802. json.select.push("");
  9803. json.answer.push("");
  9804. },
  9805. deleteSelectList(json) {
  9806. // json.select.length--;
  9807. // json.answer.length--;
  9808. json.select.splice(json.select.length - 1, 1);
  9809. json.answer.splice(json.answer.length - 1, 1);
  9810. },
  9811. addAsk() {
  9812. if (this.askJson.askTitle === "") {
  9813. this.$message.error("标题不能为空!");
  9814. return;
  9815. }
  9816. var aj = this.askJson.askJson;
  9817. var b = 1;
  9818. for (var i = 0; i < aj.length; i++) {
  9819. if (aj[i].askstitle === "") {
  9820. var a = 1;
  9821. for (let index = 0; index < aj[i].askItem; index++) {
  9822. const element = aj[i].checkList[index]
  9823. ? aj[i].checkList[index]
  9824. : "";
  9825. if (element != "") {
  9826. b++;
  9827. this.$message.error("填写了选项,题目不能为空!");
  9828. return;
  9829. } else {
  9830. a++;
  9831. }
  9832. }
  9833. if (b == 1) {
  9834. this.$message.error("至少填写一个问题");
  9835. return;
  9836. }
  9837. } else if (aj[i].askstitle != "") {
  9838. for (let index = 0; index < aj[i].askItem; index++) {
  9839. const element = aj[i].checkList[index]
  9840. ? aj[i].checkList[index]
  9841. : "";
  9842. var index = 0;
  9843. for (var z = 0; z < aj[i].checkList.length; z++) {
  9844. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9845. if (checkC != "") {
  9846. index++;
  9847. } else {
  9848. this.$message.error("选项不能为空!");
  9849. return;
  9850. }
  9851. }
  9852. b++;
  9853. if (index < 2) {
  9854. this.$message.error("填写了的题目,选项至少要有两项!");
  9855. return;
  9856. }
  9857. }
  9858. }
  9859. }
  9860. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  9861. var elc = el.checkList.filter((element) => {
  9862. return element != "";
  9863. });
  9864. return el.askstitle != "" && elc.length != 0;
  9865. });
  9866. if (!this.dialogVisible4) {
  9867. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9868. this.taskCount
  9869. ].toolChoose[this.toolIndex] = this.askJson;
  9870. }
  9871. this.dialogVisible5 = false;
  9872. if (
  9873. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9874. .toolChoose[this.toolIndex].tool != 4
  9875. ) {
  9876. this.addTools(4, this.taskCount, this.toolIndex);
  9877. }
  9878. },
  9879. addTest() {
  9880. // if (this.testJson.testTitle === "") {
  9881. // this.$message.error("标题不能为空!");
  9882. // return;
  9883. // }
  9884. var aj = this.testJson.testJson;
  9885. var b = 1;
  9886. for (var i = 0; i < aj.length; i++) {
  9887. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  9888. var a = 1;
  9889. for (let index = 0; index < aj[i].testItem; index++) {
  9890. const element = aj[i].checkList[index]
  9891. ? aj[i].checkList[index]
  9892. : "";
  9893. if (element != "") {
  9894. b++;
  9895. this.$message.error("填写了选项,题目不能为空!");
  9896. return;
  9897. } else {
  9898. a++;
  9899. }
  9900. }
  9901. if (b == 1) {
  9902. this.$message.error("至少填写一个问题");
  9903. return;
  9904. }
  9905. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  9906. for (let index = 0; index < aj[i].testItem; index++) {
  9907. const element = aj[i].checkList[index]
  9908. ? aj[i].checkList[index]
  9909. : "";
  9910. var index = 0;
  9911. for (var z = 0; z < aj[i].checkList.length; z++) {
  9912. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  9913. if (checkC != "") {
  9914. index++;
  9915. } else {
  9916. this.$message.error("选项不能为空!");
  9917. return;
  9918. }
  9919. }
  9920. b++;
  9921. if (index < 2) {
  9922. this.$message.error("填写了的题目,选项至少要有两项!");
  9923. return;
  9924. }
  9925. if (
  9926. (aj[i].type == "2" && !aj[i].answer.length) ||
  9927. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  9928. ) {
  9929. this.$message.error("有题目未选择答案请选择答案");
  9930. return;
  9931. }
  9932. }
  9933. }
  9934. }
  9935. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  9936. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  9937. var elc = el.checkList.filter((element) => {
  9938. return element != "";
  9939. });
  9940. return (
  9941. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  9942. );
  9943. });
  9944. isTestJson.testCount = isTestJson.testJson.length;
  9945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9946. this.taskCount
  9947. ].toolChoose[this.toolIndex].testJson = isTestJson;
  9948. this.dialogVisibleChoice = false;
  9949. if (
  9950. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9951. .toolChoose[this.toolIndex].tool != 45
  9952. ) {
  9953. this.addTools(45, this.taskCount, this.toolIndex);
  9954. }
  9955. },
  9956. addVideoJson(videoJson) {
  9957. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9958. this.taskCount
  9959. ].toolChoose[this.toolIndex].videoJson = videoJson;
  9960. this.dialogVisibleVideo = false;
  9961. if (
  9962. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9963. .toolChoose[this.toolIndex].tool != 62
  9964. ) {
  9965. this.addTools(62, this.taskCount, this.toolIndex);
  9966. }
  9967. },
  9968. //自动获取剪贴板
  9969. pasteOption() {
  9970. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9971. if (!iframe) {
  9972. this.$message.error("请使用AI共创生成题目");
  9973. return;
  9974. }
  9975. let copyData = iframe.contentWindow.copyData;
  9976. if (!copyData || !copyData.selectData.length) {
  9977. this.$message.error("请使用AI共创生成题目");
  9978. return;
  9979. }
  9980. let selectData = copyData.selectData;
  9981. for (var i = 0; i < selectData.length; i++) {
  9982. let answer = 0;
  9983. switch (selectData[i].answer[0]) {
  9984. case "A":
  9985. answer = 0;
  9986. break;
  9987. case "B":
  9988. answer = 1;
  9989. break;
  9990. case "C":
  9991. answer = 2;
  9992. break;
  9993. case "D":
  9994. answer = 3;
  9995. break;
  9996. case "E":
  9997. answer = 4;
  9998. break;
  9999. default:
  10000. break;
  10001. }
  10002. this.testJson.testJson.push({
  10003. teststitle: selectData[i].subject,
  10004. testItem: selectData[i].options.length,
  10005. checkList: selectData[i].options,
  10006. timuList: [],
  10007. answer: answer,
  10008. type: "1",
  10009. });
  10010. this.testJson.testCount++;
  10011. }
  10012. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10013. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10014. var elc = el.checkList.filter((element) => {
  10015. return element != "";
  10016. });
  10017. return (
  10018. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10019. );
  10020. });
  10021. isTestJson.testCount = isTestJson.testJson.length;
  10022. this.testJson = isTestJson;
  10023. this.$forceUpdate();
  10024. },
  10025. pasteTask() {
  10026. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10027. if (!iframe) {
  10028. this.$message.error("请使用AI共创生成");
  10029. return;
  10030. }
  10031. let copyData = iframe.contentWindow.copyData;
  10032. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  10033. this.$message.error("请使用AI共创生成");
  10034. return;
  10035. }
  10036. let stageTasksData = copyData.tasksData;
  10037. let taskA = [];
  10038. let tasks = stageTasksData;
  10039. for (var j = 0; j < tasks.length; j++) {
  10040. taskA.push({
  10041. task: tasks[j].taskName,
  10042. taskDetail: tasks[j].taskDecs,
  10043. chapterData: [],
  10044. toolText: "",
  10045. toolChoose: [
  10046. {
  10047. tool: [],
  10048. toolDetail: "",
  10049. toolType: 1,
  10050. askCount: 1,
  10051. askTitle: "",
  10052. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10053. },
  10054. ],
  10055. isShowTools: false,
  10056. askCount: 1,
  10057. isFold: 0,
  10058. askTitle: "",
  10059. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10060. checkJson: [{ checkCount: [], checkPerent: [] }],
  10061. homeworkList: [],
  10062. });
  10063. }
  10064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10065. this.$forceUpdate();
  10066. },
  10067. pasteStage() {
  10068. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10069. if (!iframe) {
  10070. this.$message.error("请使用AI共创生成");
  10071. return;
  10072. }
  10073. let copyData = iframe.contentWindow.copyData;
  10074. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  10075. this.$message.error("请使用AI共创生成");
  10076. return;
  10077. }
  10078. let stageData = copyData.stageData;
  10079. let stage = [];
  10080. for (var i = 0; i < stageData.length; i++) {
  10081. stage.push({
  10082. dyName: stageData[i], //单元标题
  10083. chapterInfo: [
  10084. {
  10085. isread: false,
  10086. chapterid: this.guid(),
  10087. title: "",
  10088. courseName: "",
  10089. taskJson: [
  10090. {
  10091. task: "",
  10092. taskDetail: "",
  10093. chapterData: [],
  10094. toolText: "",
  10095. toolChoose: [
  10096. {
  10097. tool: [],
  10098. toolDetail: "",
  10099. toolType: 1,
  10100. askCount: 1,
  10101. askTitle: "",
  10102. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10103. },
  10104. ],
  10105. isShowTools: false,
  10106. askCount: 1,
  10107. isFold: 0,
  10108. askTitle: "",
  10109. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10110. checkJson: [{ checkCount: [], checkPerent: [] }],
  10111. homeworkList: [],
  10112. },
  10113. ],
  10114. itemCount: 1,
  10115. fileList1: [],
  10116. video: [],
  10117. testData: [],
  10118. pData: [],
  10119. templateArray: [],
  10120. },
  10121. ],
  10122. });
  10123. }
  10124. let _this = this;
  10125. _this
  10126. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  10127. confirmButtonText: "确定",
  10128. cancelButtonText: "取消",
  10129. type: "warning",
  10130. })
  10131. .then(() => {
  10132. _this.unitIndex = 0;
  10133. _this.unitJson = stage;
  10134. _this.steps++;
  10135. _this.updateWork();
  10136. })
  10137. .catch(() => {
  10138. return;
  10139. });
  10140. },
  10141. addAnswer() {
  10142. if (this.answerQ == "") {
  10143. this.$message.error("请输入您想要问的问题");
  10144. return;
  10145. }
  10146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10147. this.taskCount
  10148. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10149. this.dialogVisible8 = false;
  10150. if (
  10151. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10152. .toolChoose[this.toolIndex].tool != 15
  10153. ) {
  10154. this.addTools(15, this.taskCount, this.toolIndex);
  10155. }
  10156. },
  10157. addMp3Answer() {
  10158. if (this.answerQ == "") {
  10159. this.$message.error("请输入您想要回答的问题");
  10160. return;
  10161. }
  10162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10163. this.taskCount
  10164. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10165. this.dialogVisibleMp3 = false;
  10166. },
  10167. addRateAnswer() {
  10168. var a = 1;
  10169. for (var i = 0; i < this.rateJson.length; i++) {
  10170. if (this.rateJson[i].value == "") {
  10171. a = 2;
  10172. break;
  10173. }
  10174. }
  10175. if (a == 2) {
  10176. this.$message.error("请把评价信息填写完整");
  10177. return;
  10178. }
  10179. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10180. this.taskCount
  10181. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10182. this.dialogVisibleRate = false;
  10183. if (
  10184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10185. .toolChoose[this.toolIndex].tool != 40
  10186. ) {
  10187. this.addTools(40, this.taskCount, this.toolIndex);
  10188. }
  10189. },
  10190. addSelectAnswer() {
  10191. if (this.selectJson.url == "") {
  10192. this.$message.error("请上传题目");
  10193. return;
  10194. }
  10195. if (!this.selectJson.select.length) {
  10196. this.$message.error("请添加选项");
  10197. return;
  10198. }
  10199. if (!this.selectJson.answer.length) {
  10200. this.$message.error("请设置答案");
  10201. return;
  10202. }
  10203. var a = 1;
  10204. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10205. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10206. a = 2;
  10207. }
  10208. }
  10209. if (a == 2) {
  10210. this.$message.error("请设置答案");
  10211. return;
  10212. }
  10213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10214. this.taskCount
  10215. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10216. this.dialogVisibleSelect = false;
  10217. if (
  10218. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10219. .toolChoose[this.toolIndex].tool != 41
  10220. ) {
  10221. this.addTools(41, this.taskCount, this.toolIndex);
  10222. }
  10223. },
  10224. nextSelectSteps() {
  10225. if (this.selectJson.url == "") {
  10226. this.$message.error("请上传题目");
  10227. return;
  10228. }
  10229. if (!this.selectJson.select.length) {
  10230. this.$message.error("请添加选项");
  10231. return;
  10232. }
  10233. var a = 1;
  10234. for (var i = 0; i < this.selectJson.select.length; i++) {
  10235. if (!this.selectJson.select[i]) {
  10236. a = 2;
  10237. }
  10238. }
  10239. if (a == 2) {
  10240. this.$message.error("添加的选项不能为空");
  10241. return;
  10242. }
  10243. this.selectSteps++;
  10244. },
  10245. selectCourseDetail() {
  10246. if (this.cid == "" || this.cid == undefined) {
  10247. console.log("这是新增课程");
  10248. this.selectAllType();
  10249. } else {
  10250. this.cidType = 1;
  10251. let params = {
  10252. cid: this.cid,
  10253. };
  10254. this.ajax
  10255. .get(this.$store.state.api + "select_course_detail", params)
  10256. .then((res) => {
  10257. this.loading = true;
  10258. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10259. for (var j = 0; j < this.unitJson.length; j++) {
  10260. for (
  10261. var k = 0;
  10262. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10263. k++
  10264. ) {
  10265. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10266. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10267. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10268. : [];
  10269. let _chapterData = [];
  10270. for (
  10271. var c = 0;
  10272. c <
  10273. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10274. .length;
  10275. c++
  10276. ) {
  10277. if (
  10278. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10279. ) {
  10280. _chapterData.push(
  10281. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10282. );
  10283. }
  10284. }
  10285. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10286. _chapterData;
  10287. }
  10288. }
  10289. this.$forceUpdate();
  10290. this.courseName = res.data[0][0].title;
  10291. this.courseText = res.data[0][0].brief;
  10292. this.evalua = res.data[0][0].evaId;
  10293. this.cover = JSON.parse(res.data[0][0].cover);
  10294. this.noneBtnImg = this.cover.length >= 1;
  10295. // this.checkboxList =
  10296. // res.data[0][0].course_student.length > 0
  10297. // ? JSON.parse(res.data[0][0].course_student)
  10298. // : [];
  10299. this.checkboxList2 = res.data[0][0].juri
  10300. ? res.data[0][0].juri.split(",")
  10301. : [];
  10302. this.inviteCode = [];
  10303. for (var i = 0; i < res.data[2].length; i++) {
  10304. this.inviteCode.push({
  10305. cid: res.data[2][i].classid,
  10306. ic: res.data[2][i].code,
  10307. });
  10308. }
  10309. this.checkboxList3 = res.data[0][0].course_teacher
  10310. ? res.data[0][0].course_teacher.split(",")
  10311. : [];
  10312. // this.isTeacherSee =
  10313. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10314. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10315. this.myWord = res.data[0][0].template;
  10316. this.templateC.id = "123";
  10317. this.courseUserid = res.data[0][0].userid;
  10318. // if(this.courseUserid == this.userid){
  10319. // this.InviteChange(this.checkboxList2)
  10320. // }
  10321. this.nbOrder = res.data[0][0].ordernumber;
  10322. this.courseTypeId = [];
  10323. for (var i = 0; i < res.data[1].length; i++) {
  10324. this.courseTypeId.push(res.data[1][i].typeid);
  10325. }
  10326. console.log(this.courseTypeId);
  10327. // if (this.timer) clearInterval(this.timer);
  10328. if (this.timer) clearTimeout(this.timer);
  10329. this.timer = null;
  10330. // this.timer = setInterval(() => {
  10331. // this.seleteCourseUpdate();
  10332. this.setMan();
  10333. this.selectAllType();
  10334. // }, 5000);
  10335. this.$forceUpdate();
  10336. setTimeout(() => {
  10337. this.checkEva(this.evalua);
  10338. }, 0);
  10339. })
  10340. .catch((err) => {
  10341. console.error(err);
  10342. });
  10343. }
  10344. },
  10345. seleteCourseUpdate() {
  10346. let params = {
  10347. cid: this.cid,
  10348. };
  10349. this.ajax
  10350. .get(this.$store.state.api + "select_course_detail", params)
  10351. .then((res) => {
  10352. // console.log(this.unitJson);
  10353. let unitJson = JSON.parse(res.data[0][0].chapters);
  10354. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10355. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10356. let _unitJson = [];
  10357. let _chapAarry = [];
  10358. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10359. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10360. let index = 1;
  10361. let chapindex;
  10362. if (_unitJson2.length > unitJson.length) {
  10363. for (let c = 0; c < _unitJson2.length; c++) {
  10364. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10365. }
  10366. for (let j = 0; j < unitJson.length; j++) {
  10367. let count = 0;
  10368. for (let k = 0; k < _unitJson2.length; k++) {
  10369. if (
  10370. unitJson[j].chapterInfo[0].chapterid ==
  10371. _unitJson2[k].chapterInfo[0].chapterid
  10372. ) {
  10373. count++;
  10374. _chapAarry.splice(
  10375. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10376. 1
  10377. );
  10378. _unitJson.push(unitJson[j]);
  10379. break;
  10380. }
  10381. }
  10382. // if(count === 0){
  10383. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10384. // }
  10385. }
  10386. for (let k = 0; k < _unitJson2.length; k++) {
  10387. if (_unitJson2[k].isUpdate == 1) {
  10388. _chapAarry.splice(
  10389. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10390. 1
  10391. );
  10392. _unitJson.push(_unitJson2[k]);
  10393. }
  10394. }
  10395. console.log(_chapAarry);
  10396. for (let d = 0; d < _unitJson2.length; d++) {
  10397. if (
  10398. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10399. ) {
  10400. if (_unitIndex == d) {
  10401. index = 2;
  10402. }
  10403. chapindex = d;
  10404. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10405. }
  10406. }
  10407. } else {
  10408. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10409. }
  10410. for (let i = 0; i < unitJson.length; i++) {
  10411. if (
  10412. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10413. _unitJson[i].chapterInfo[0].chapterid !=
  10414. unitJson[i].chapterInfo[0].chapterid
  10415. ) {
  10416. if (i == _unitJson.length - 1) {
  10417. // this.unitIndex++
  10418. _unitIndex2++;
  10419. }
  10420. _unitJson.splice(i, 0, unitJson[i]);
  10421. } else if (i > _unitJson.length - 1) {
  10422. _unitJson.push(unitJson[i]);
  10423. } else if (
  10424. _unitJson[i].chapterInfo[0].chapterid ==
  10425. unitJson[i].chapterInfo[0].chapterid
  10426. ) {
  10427. _unitJson[i] = unitJson[i];
  10428. }
  10429. // if (i == _unitIndex) {
  10430. // continue;
  10431. // } else
  10432. }
  10433. if (_chapAarry.length && index != 2) {
  10434. if (chapindex < _unitIndex) {
  10435. this.isDelete = 2;
  10436. // this.unitIndex--;
  10437. _unitIndex2--;
  10438. } else if (
  10439. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10440. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10441. ) {
  10442. this.isDelete = 2;
  10443. for (let n = 0; n < _unitJson.length; n++) {
  10444. if (
  10445. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10446. _unitJson[n].chapterInfo[0].chapterid
  10447. ) {
  10448. // this.unitIndex = n;
  10449. _unitIndex2 = n;
  10450. _unitJson[n] = _unitJson2[_unitIndex];
  10451. break;
  10452. }
  10453. }
  10454. }
  10455. } else if (index != 2) {
  10456. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10457. _unitJson2[_unitIndex];
  10458. for (
  10459. var ci = 0;
  10460. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10461. ci++
  10462. ) {
  10463. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10464. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10465. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10466. .toolChoose
  10467. : [];
  10468. let _chapterData = [];
  10469. for (
  10470. var c = 0;
  10471. c <
  10472. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10473. .length;
  10474. c++
  10475. ) {
  10476. if (
  10477. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10478. .chapterData[c]
  10479. ) {
  10480. _chapterData.push(
  10481. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10482. .chapterData[c]
  10483. );
  10484. }
  10485. }
  10486. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10487. _chapterData;
  10488. }
  10489. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10490. }
  10491. if (index == 1) {
  10492. this.unitJson = _unitJson;
  10493. this.$forceUpdate();
  10494. setTimeout(() => {
  10495. if (this.unitIndex != _unitIndex2) {
  10496. this.isDelete = 2;
  10497. this.unitIndex = _unitIndex2;
  10498. }
  10499. }, 0);
  10500. this.timer = setTimeout(() => {
  10501. this.seleteCourseUpdate();
  10502. }, 1000);
  10503. } else if (index == 2) {
  10504. let _this = this;
  10505. _this
  10506. .$confirm(
  10507. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10508. "提示",
  10509. {
  10510. confirmButtonText: "需要",
  10511. cancelButtonText: "取消",
  10512. type: "warning",
  10513. }
  10514. )
  10515. .then(() => {
  10516. if (_this.time()) {
  10517. _this.restoreWork(
  10518. _chapAarry[0],
  10519. _unitJson,
  10520. chapindex,
  10521. _unitJson2,
  10522. _unitIndex2
  10523. );
  10524. }
  10525. })
  10526. .catch(() => {
  10527. _this.unitJson = _unitJson;
  10528. _this.$forceUpdate();
  10529. setTimeout(() => {
  10530. if (this.unitIndex != _unitIndex2) {
  10531. this.isDelete = 2;
  10532. this.unitIndex = _unitIndex2;
  10533. }
  10534. }, 0);
  10535. _this.timer = setTimeout(() => {
  10536. _this.seleteCourseUpdate();
  10537. }, 1000);
  10538. });
  10539. }
  10540. })
  10541. .catch((err) => {
  10542. console.error(err);
  10543. });
  10544. },
  10545. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  10546. let params = [
  10547. {
  10548. cid: this.cid,
  10549. chapters: JSON.stringify(this.unitJson),
  10550. uid: this.userid,
  10551. chapid: chapid,
  10552. },
  10553. ];
  10554. this.ajax
  10555. .post(this.$store.state.api + "restoreWork", params)
  10556. .then((res) => {
  10557. this.$message({
  10558. message: "恢复成功",
  10559. type: "success",
  10560. });
  10561. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  10562. this.unitJson = unitJson;
  10563. this.$forceUpdate();
  10564. setTimeout(() => {
  10565. if (this.unitIndex != unitIndex2) {
  10566. this.isDelete = 2;
  10567. this.unitIndex = unitIndex2;
  10568. }
  10569. }, 0);
  10570. this.timer = setTimeout(() => {
  10571. this.seleteCourseUpdate();
  10572. }, 1000);
  10573. })
  10574. .catch((err) => {
  10575. this.$message.error("网络不佳");
  10576. console.error(err);
  10577. });
  10578. },
  10579. getTypeName() {
  10580. console.log(this.courseTypeId);
  10581. this.$forceUpdate();
  10582. },
  10583. selectAllType() {
  10584. let params = {
  10585. org: this.org && this.org != "" ? this.org : "",
  10586. oid: this.oid && this.oid != "" ? this.oid : "",
  10587. };
  10588. this.ajax
  10589. .get(this.$store.state.api + "selectAllType", params)
  10590. .then((res) => {
  10591. this.CourseType = res.data;
  10592. this.CourseType2 = [
  10593. { name: "智见课程", id: [] },
  10594. { name: "智行课程", id: [] },
  10595. { name: "智创课程", id: [] },
  10596. ];
  10597. for (var cti = 0; cti < res.data[0].length; cti++) {
  10598. if (
  10599. res.data[0][cti].name == "年级" ||
  10600. res.data[0][cti].name == "学科"
  10601. ) {
  10602. this.CourseType2[1].id.push(res.data[0][cti].id);
  10603. this.CourseType2[0].id.push(res.data[0][cti].id);
  10604. } else if (res.data[0][cti].name == "主题") {
  10605. this.CourseType2[2].id.push(res.data[0][cti].id);
  10606. }
  10607. }
  10608. let _courseTypeId = [];
  10609. for (var i = 0; i < res.data[0].length; i++) {
  10610. if (!this.cid) {
  10611. this.courseTypeId[res.data[0][i].id] = [];
  10612. }
  10613. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  10614. // }
  10615. this.CourseTypeJson[res.data[0][i].id] = [];
  10616. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10617. if (res.data[0][i].name == "栏目") {
  10618. this.CourseType[0][i].name = "主题";
  10619. }
  10620. }
  10621. if (res.data[2].length == 0 && res.data[3].length == 0) {
  10622. for (var j = 0; j < res.data[1].length; j++) {
  10623. if (
  10624. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  10625. _courseTypeId.indexOf(res.data[1][j].id) == -1
  10626. ) {
  10627. _courseTypeId.push(res.data[1][j].id);
  10628. }
  10629. if (res.data[0][i].id == res.data[1][j].pid) {
  10630. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10631. }
  10632. }
  10633. } else {
  10634. if (res.data[2].length > 0) {
  10635. for (var j = 0; j < res.data[2].length; j++) {
  10636. if (
  10637. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  10638. _courseTypeId.indexOf(res.data[2][j].id) == -1
  10639. ) {
  10640. _courseTypeId.push(res.data[2][j].id);
  10641. }
  10642. if (res.data[0][i].id == res.data[2][j].pid) {
  10643. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  10644. }
  10645. }
  10646. }
  10647. if (res.data[3].length > 0) {
  10648. for (var j = 0; j < res.data[3].length; j++) {
  10649. if (
  10650. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  10651. _courseTypeId.indexOf(res.data[3][j].id) == -1
  10652. ) {
  10653. _courseTypeId.push(res.data[3][j].id);
  10654. }
  10655. if (res.data[0][i].id == res.data[3][j].pid) {
  10656. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  10657. }
  10658. }
  10659. }
  10660. }
  10661. }
  10662. this.courseTypeId = _courseTypeId;
  10663. })
  10664. .catch((err) => {
  10665. console.error(err);
  10666. });
  10667. },
  10668. selectType() {
  10669. this.ajax
  10670. .get(this.$store.state.api + "selectType")
  10671. .then((res) => {
  10672. this.CourseType = res.data;
  10673. for (var i = 0; i < res.data[0].length; i++) {
  10674. if (!this.cid) {
  10675. this.courseTypeId[res.data[0][i].id] = "";
  10676. }
  10677. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  10678. if (res.data[0][i].name == "栏目") {
  10679. this.CourseType[0][i].name = "主题";
  10680. }
  10681. }
  10682. for (var j = 0; j < res.data[1].length; j++) {
  10683. if (res.data[0][i].id == res.data[1][j].pid) {
  10684. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10685. this.CourseTypeJson[res.data[0][i].id] = [];
  10686. }
  10687. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  10688. }
  10689. }
  10690. }
  10691. this.selectTypeByOid();
  10692. this.selectTypeByOrg();
  10693. })
  10694. .catch((err) => {
  10695. console.error(err);
  10696. });
  10697. },
  10698. selectTypeByOid() {
  10699. let params = {
  10700. oid: this.oid,
  10701. };
  10702. this.ajax
  10703. .get(this.$store.state.api + "selectTypeByOid", params)
  10704. .then((res) => {
  10705. for (var i = 0; i < res.data[0].length; i++) {
  10706. for (var j = 0; j < res.data[1].length; j++) {
  10707. if (res.data[0][i].id == res.data[1][j].pid) {
  10708. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10709. this.CourseTypeJson[res.data[0][i].id] = [];
  10710. }
  10711. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10712. }
  10713. }
  10714. }
  10715. })
  10716. .catch((err) => {
  10717. console.error(err);
  10718. });
  10719. },
  10720. selectTypeByOrg() {
  10721. let params = {
  10722. oid: this.org,
  10723. };
  10724. this.ajax
  10725. .get(this.$store.state.api + "selectTypeByOrg", params)
  10726. .then((res) => {
  10727. for (var i = 0; i < res.data[0].length; i++) {
  10728. for (var j = 0; j < res.data[1].length; j++) {
  10729. if (res.data[0][i].id == res.data[1][j].pid) {
  10730. if (!this.CourseTypeJson[res.data[0][i].id]) {
  10731. this.CourseTypeJson[res.data[0][i].id] = [];
  10732. }
  10733. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  10734. }
  10735. }
  10736. }
  10737. this.$forceUpdate();
  10738. })
  10739. .catch((err) => {
  10740. console.error(err);
  10741. });
  10742. },
  10743. OtherMb(type) {
  10744. this.typeMode = type;
  10745. setTimeout(() => {
  10746. this.checkEva(this.checkId);
  10747. }, 0);
  10748. },
  10749. openMember() {
  10750. this.searchTN = "";
  10751. this.getTeacher();
  10752. this.dialogVisibleMember = true;
  10753. },
  10754. checkEva(id, type) {
  10755. this.dialogVisiblemb = false;
  10756. this.selectEva();
  10757. if (this.evalua != id && type == 2) {
  10758. this.$message.success("导入成功");
  10759. }
  10760. this.evalua = id;
  10761. this.checkId = id;
  10762. if (this.evalua != "") {
  10763. for (var i = 0; i < this.evaJuri.length; i++) {
  10764. if (this.evalua == this.evaJuri[i].id) {
  10765. this.eTitle = this.evaJuri[i].title;
  10766. this.eJson = JSON.parse(this.evaJuri[i].content);
  10767. }
  10768. }
  10769. this.data.data = [];
  10770. this.$forceUpdate();
  10771. setTimeout(() => {
  10772. this.setMindData();
  10773. }, 500);
  10774. }
  10775. },
  10776. deleteEva() {
  10777. let _this = this;
  10778. if (_this.evalua == "") {
  10779. this.$message.warning("内容已经清空了,请勿重复清空");
  10780. return;
  10781. }
  10782. _this
  10783. .$confirm("确定删除此目标吗?", "提示", {
  10784. confirmButtonText: "确定",
  10785. cancelButtonText: "取消",
  10786. type: "warning",
  10787. })
  10788. .then(() => {
  10789. _this.evalua = "";
  10790. _this.checkId = "";
  10791. _this.eTitle = "";
  10792. let _unitJson = _this.unitJson;
  10793. for (var i = 0; i < _unitJson.length; i++) {
  10794. let _task = _unitJson[i].chapterInfo[0].taskJson;
  10795. for (var j = 0; j < _task.length; j++) {
  10796. let _eList = _task[j].eList;
  10797. for (var k = 0; k < _eList.length; k++) {
  10798. delete _eList[k].target;
  10799. }
  10800. }
  10801. }
  10802. _this.$forceUpdate();
  10803. if (_this.cid) {
  10804. _this.updateWork();
  10805. }
  10806. })
  10807. .catch(() => {
  10808. return;
  10809. });
  10810. },
  10811. selectEva() {
  10812. let params = {
  10813. oid: this.oid,
  10814. };
  10815. this.ajax
  10816. .get(this.$store.state.api + "selectAllEvaluation", params)
  10817. .then((res) => {
  10818. this.evaJuri = res.data[0];
  10819. })
  10820. .catch((err) => {
  10821. console.error(err);
  10822. });
  10823. },
  10824. setMindData() {
  10825. let targetArray = [];
  10826. this.data.data = [];
  10827. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10828. let _eJson = Object.keys(this.eJson);
  10829. let _e = this.eJson;
  10830. for (let i = 0; i < _eJson.length; i++) {
  10831. let element = _e[_eJson[i]];
  10832. this.data.data.push({
  10833. id: element.id,
  10834. parentid: "root",
  10835. topic: element.name,
  10836. });
  10837. // targetArray.push({
  10838. // id: element.id,
  10839. // parentid: "root",
  10840. // name: element.name,
  10841. // });
  10842. targetArray.push({
  10843. value: element.name,
  10844. label: element.name,
  10845. children: [],
  10846. });
  10847. let _eJsonc = Object.keys(element.child);
  10848. let _e2 = element.child;
  10849. for (let j = 0; j < _eJsonc.length; j++) {
  10850. let _ec = _e2[_eJsonc[j]];
  10851. this.data.data.push({
  10852. id: _ec.id,
  10853. parentid: element.id,
  10854. topic: _ec.name,
  10855. });
  10856. // targetArray.push({
  10857. // id: _ec.id,
  10858. // parentid: element.id,
  10859. // name: _ec.name,
  10860. // });
  10861. targetArray[i].children.push({
  10862. value: _ec.name,
  10863. label: _ec.name,
  10864. children: [],
  10865. });
  10866. let _eJsonz = Object.keys(_ec.child);
  10867. let _e3 = _ec.child;
  10868. for (let z = 0; z < _eJsonz.length; z++) {
  10869. let _ez = _e3[_eJsonz[z]];
  10870. this.data.data.push({
  10871. id: _ez.id,
  10872. parentid: _ec.id,
  10873. topic: _ez.name,
  10874. });
  10875. // targetArray.push({
  10876. // id: _ez.id,
  10877. // parentid: _ec.id,
  10878. // name: _ez.name,
  10879. // });
  10880. targetArray[i].children[j].children.push({
  10881. value: _ez.name,
  10882. label: _ez.name,
  10883. });
  10884. }
  10885. }
  10886. }
  10887. this.targetArray = targetArray;
  10888. this.$forceUpdate();
  10889. },
  10890. /*添加评价 */
  10891. addEList(index, tIndex) {
  10892. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  10893. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  10894. value: "",
  10895. detail: "",
  10896. score: 5,
  10897. })
  10898. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  10899. { value: "", detail: "", score: 5 },
  10900. ]);
  10901. this.$forceUpdate();
  10902. },
  10903. forceUpdate() {
  10904. this.$forceUpdate();
  10905. },
  10906. deletEList(index, tIndex, eIndex) {
  10907. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  10908. eIndex,
  10909. 1
  10910. );
  10911. this.$forceUpdate();
  10912. },
  10913. getChoosePic(t) {
  10914. this.chooseType = t;
  10915. this.getAllBanner();
  10916. },
  10917. getAllBanner() {
  10918. this.sysPicVisible = true;
  10919. let params = {
  10920. t: this.chooseType,
  10921. };
  10922. this.ajax
  10923. .get(this.$store.state.api + "selectAllBanner", params)
  10924. .then((res) => {
  10925. this.sysPic = res.data[0];
  10926. })
  10927. .catch((err) => {
  10928. console.error(err);
  10929. });
  10930. },
  10931. // getClass() {
  10932. // let params = {
  10933. // oid: this.oid,
  10934. // };
  10935. // this.ajax
  10936. // .get(this.$store.state.api + "selectClassBySchool", params)
  10937. // .then((res) => {
  10938. // this.classJuri = res.data[0];
  10939. // })
  10940. // .catch((err) => {
  10941. // console.error(err);
  10942. // });
  10943. // },
  10944. deleteSysPic() {
  10945. this.cover = [];
  10946. this.isSysPic = false;
  10947. },
  10948. deleteSelectPic() {
  10949. this.selectJson.url = "";
  10950. },
  10951. setEListStar() {
  10952. this.$forceUpdate();
  10953. },
  10954. deletRateList(i) {
  10955. this.rateJson.splice(i, 1);
  10956. },
  10957. addRateList() {
  10958. this.rateJson.push({ detail: "", score: 5, value: "" });
  10959. },
  10960. addSt() {
  10961. this.sentenceList.push({
  10962. sentenceTitle: "",
  10963. addSentence: [],
  10964. rightAnswer: [],
  10965. });
  10966. },
  10967. addSen(i) {
  10968. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  10969. // this.isPushTitleList.push(this.sentenceTitle);
  10970. this.sentenceList[i].sentenceTitle = "";
  10971. },
  10972. setRightAnswer(s, i, j) {
  10973. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  10974. this.sentenceList[i].rightAnswer.push(s);
  10975. }
  10976. },
  10977. returnCard(r, i, j) {
  10978. this.sentenceList[i].rightAnswer.splice(j, 1);
  10979. },
  10980. addSentenceTool() {
  10981. for (var i = 0; i < this.sentenceList.length; i++) {
  10982. if (this.sentenceList[i].rightAnswer.length == 0) {
  10983. this.$message.error("请将信息填写完整!");
  10984. return;
  10985. }
  10986. if (
  10987. this.sentenceList[i].addSentence.length !=
  10988. this.sentenceList[i].rightAnswer.length
  10989. ) {
  10990. this.$message.error("请将信息填写完整!");
  10991. return;
  10992. }
  10993. }
  10994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10995. this.taskCount
  10996. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  10997. this.sentenceList = [
  10998. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10999. ];
  11000. this.dialogVisibleSentence = false;
  11001. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11002. // itemTaskIndex
  11003. // ].toolChoose[toolIndex].tool = [];
  11004. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11005. // itemTaskIndex
  11006. // ].toolChoose[toolIndex].tool.push(i);
  11007. if (
  11008. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11009. .toolChoose[this.toolIndex].tool != 47
  11010. ) {
  11011. this.addTools(47, this.taskCount, this.toolIndex);
  11012. }
  11013. },
  11014. addTableJson() {
  11015. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11016. // this.$message.error("请将信息填写完整!");
  11017. // return;
  11018. // }
  11019. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11020. this.taskCount
  11021. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11022. // this.tableJson = [{ text: "" }];
  11023. // this.dialogVisibleTable = false;
  11024. this.$message.success("上传成功");
  11025. if (
  11026. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11027. .toolChoose[this.toolIndex].tool != 48
  11028. ) {
  11029. this.addTools(48, this.taskCount, this.toolIndex);
  11030. }
  11031. },
  11032. addWordJson() {
  11033. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11034. this.taskCount
  11035. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11036. // this.wordJson = [{ text: "" }];
  11037. // this.dialogVisibleWord = false;
  11038. this.$message.success("上传成功");
  11039. if (
  11040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11041. .toolChoose[this.toolIndex].tool != 52
  11042. ) {
  11043. this.addTools(52, this.taskCount, this.toolIndex);
  11044. }
  11045. },
  11046. addMoreUpload() {
  11047. if (this.uploadJson.length == 0) {
  11048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11049. this.taskCount
  11050. ].toolChoose[this.toolIndex].uploadJson = [];
  11051. } else {
  11052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11053. this.taskCount
  11054. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11055. }
  11056. this.uploadJson = [];
  11057. this.dialogVisibleMoreUpload = false;
  11058. if (
  11059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11060. .toolChoose[this.toolIndex].tool != 50
  11061. ) {
  11062. this.addTools(50, this.taskCount, this.toolIndex);
  11063. }
  11064. },
  11065. addPreTime() {
  11066. if (this.preTime == 0) {
  11067. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11068. this.taskCount
  11069. ].toolChoose[this.toolIndex].preTime = 0;
  11070. } else {
  11071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11072. this.taskCount
  11073. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11074. }
  11075. this.preTime = 0;
  11076. this.dialogVisiblePreTime = false;
  11077. if (
  11078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11079. .toolChoose[this.toolIndex].tool != 10
  11080. ) {
  11081. this.addTools(10, this.taskCount, this.toolIndex);
  11082. }
  11083. },
  11084. goToTask(i) {
  11085. $(".rightBox")[0].scrollTop =
  11086. $(".taskBorder")[i].offsetTop +
  11087. $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  11088. this.isClickColor = i + 1;
  11089. },
  11090. taskMove(type, index) {
  11091. // this
  11092. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  11093. // confirmButtonText: "确定",
  11094. // cancelButtonText: "取消",
  11095. // type: "warning",
  11096. // })
  11097. // .then(() => {
  11098. if (type == 1) {
  11099. if (index > 0) {
  11100. let a = JSON.parse(
  11101. JSON.stringify(
  11102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  11103. )
  11104. );
  11105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11106. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11108. }
  11109. } else {
  11110. if (
  11111. index <
  11112. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11113. ) {
  11114. let a = JSON.parse(
  11115. JSON.stringify(
  11116. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  11117. )
  11118. );
  11119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11122. }
  11123. }
  11124. this.$forceUpdate();
  11125. // })
  11126. // .catch(() => {
  11127. // return;
  11128. // })
  11129. },
  11130. addGroup(i) {
  11131. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11132. this.groupJson.group.push({
  11133. name: "第" + (this.groupJson.group.length + 1) + "组",
  11134. });
  11135. },
  11136. deleteGroup(i) {
  11137. this.groupJson.group.splice(i, 1);
  11138. },
  11139. addGroupJson() {
  11140. for (var i = 0; i < this.groupJson.group.length; i++) {
  11141. if (!this.groupJson.group[i].name) {
  11142. this.$message.error("请将信息填写完整!");
  11143. return;
  11144. }
  11145. }
  11146. if (!this.groupJson.number) {
  11147. this.$message.error("请将信息填写完整!");
  11148. return;
  11149. }
  11150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11151. this.taskCount
  11152. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11153. JSON.stringify(this.groupJson)
  11154. );
  11155. this.dialogVisibleGroup = false;
  11156. this.groupJson = {};
  11157. if (
  11158. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11159. .toolChoose[this.toolIndex].tool != 49
  11160. ) {
  11161. this.addTools(49, this.taskCount, this.toolIndex);
  11162. }
  11163. },
  11164. updateTime(preTime) {
  11165. this.preTime = preTime;
  11166. },
  11167. InviteChange(val) {
  11168. console.log(val);
  11169. return;
  11170. let array = JSON.parse(JSON.stringify(val));
  11171. this.inviteCode = this.inviteCode.filter((el) => {
  11172. if (val.indexOf(el.cid) != -1) {
  11173. array.splice(array.indexOf(el.cid), 1);
  11174. return el;
  11175. }
  11176. });
  11177. for (var i = 0; i < array.length; i++) {
  11178. this.getInviteCode(array[i]);
  11179. }
  11180. },
  11181. async getInviteCode(cid) {
  11182. let code = this.randomNumber();
  11183. let params = {
  11184. code: code,
  11185. oid: this.oid,
  11186. };
  11187. let type = 1;
  11188. for (var i = 0; i < this.inviteCode.length; i++) {
  11189. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11190. type = 2;
  11191. }
  11192. }
  11193. if (type == 2) {
  11194. this.getInviteCode(cid);
  11195. return;
  11196. }
  11197. const res = await this.ajax.get(
  11198. this.$store.state.api + "selectInviteCode2",
  11199. params
  11200. );
  11201. if (
  11202. res.data.length &&
  11203. res.data[0].length &&
  11204. res.data[0][0].courseId != this.cid
  11205. ) {
  11206. this.getInviteCode(cid);
  11207. return;
  11208. }
  11209. let array = [];
  11210. for (var i = 0; i < this.inviteCode.length; i++) {
  11211. array.push(this.inviteCode[i].cid);
  11212. }
  11213. if (array.indexOf(cid) != -1) {
  11214. this.inviteCode[array.indexOf(cid)].ic = code;
  11215. } else {
  11216. this.inviteCode.push({ cid: cid, ic: code });
  11217. }
  11218. },
  11219. OpenInviteD(cid) {
  11220. let array = [];
  11221. this.icode = "";
  11222. for (var i = 0; i < this.inviteCode.length; i++) {
  11223. array.push(this.inviteCode[i].cid);
  11224. }
  11225. if (array.indexOf(cid) != -1) {
  11226. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11227. }
  11228. this.inviteId = cid;
  11229. this.dialogVisibleInvite = true;
  11230. },
  11231. addInvite() {
  11232. let reg = /^[A-Za-z0-9]{4,}$/;
  11233. if (!reg.test(this.icode)) {
  11234. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11235. return;
  11236. }
  11237. let type = 1;
  11238. for (var i = 0; i < this.inviteCode.length; i++) {
  11239. if (
  11240. this.inviteCode[i].cid != this.inviteId &&
  11241. this.icode == this.inviteCode[i].ic
  11242. ) {
  11243. type = 2;
  11244. }
  11245. }
  11246. if (type == 2) {
  11247. this.$message.error("已有此随机码,不能重复");
  11248. return;
  11249. }
  11250. let params = {
  11251. code: this.icode,
  11252. oid: this.oid,
  11253. };
  11254. this.ajax
  11255. .get(this.$store.state.api + "selectInviteCode", params)
  11256. .then((res) => {
  11257. if (
  11258. res.data.length &&
  11259. res.data[0].length &&
  11260. res.data[0][0].courseId != this.cid
  11261. ) {
  11262. this.$message.error("已有此随机码,不能重复");
  11263. return;
  11264. }
  11265. let array = [];
  11266. for (var i = 0; i < this.inviteCode.length; i++) {
  11267. array.push(this.inviteCode[i].cid);
  11268. }
  11269. if (array.indexOf(this.inviteId) != -1) {
  11270. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11271. } else {
  11272. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11273. }
  11274. this.icode = "";
  11275. this.dialogVisibleInvite = false;
  11276. })
  11277. .catch((err) => {
  11278. console.error(err);
  11279. });
  11280. },
  11281. randomNumber() {
  11282. // 随机生成两位数
  11283. // let num = Math.floor(Math.random() * 900) + 100;
  11284. // 生成 0 到 99 之间的随机整数
  11285. const randomNumber = Math.floor(Math.random() * 100);
  11286. // 如果随机数小于 10,补上前导零
  11287. const num =
  11288. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11289. // 随机生成两个大写字母
  11290. let letters = "";
  11291. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11292. for (let i = 0; i < 3; i++) {
  11293. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11294. }
  11295. // 随机生成两位数字和字母的组合
  11296. let mix = "";
  11297. let chars =
  11298. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11299. for (let i = 0; i < 3; i++) {
  11300. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11301. mix += char;
  11302. }
  11303. // 随机选择一种类型
  11304. let type = Math.floor(Math.random() * 3);
  11305. return num;
  11306. // 根据类型输出结果
  11307. switch (type) {
  11308. case 0:
  11309. console.log(num); // 输出两位数
  11310. return num;
  11311. case 1:
  11312. console.log(letters); // 输出两个大写字母
  11313. return letters;
  11314. case 2:
  11315. console.log(mix); // 输出两位数字和字母的组合
  11316. return mix;
  11317. }
  11318. },
  11319. },
  11320. beforeDestroy() {
  11321. clearTimeout(this.timer);
  11322. this.timer = null;
  11323. clearInterval(this.timer2);
  11324. this.timer2 = null;
  11325. },
  11326. beforeRouteLeave(to, from, next) {
  11327. clearTimeout(this.timer);
  11328. this.timer = null;
  11329. clearInterval(this.timer2);
  11330. this.timer2 = null;
  11331. next();
  11332. },
  11333. created() {
  11334. this.getStudent();
  11335. this.getTeacher();
  11336. this.getClass();
  11337. this.getTemplate();
  11338. // this.selectType();
  11339. this.selectEva();
  11340. this.loading = false;
  11341. this.timer2 = setInterval(() => {
  11342. this.selectEva();
  11343. }, 5000);
  11344. setTimeout(() => {
  11345. this.selectCourseDetail();
  11346. }, 500);
  11347. },
  11348. mounted() {
  11349. this.$nextTick(() => {
  11350. //监听这个dom的scroll事件
  11351. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11352. });
  11353. },
  11354. };
  11355. </script>
  11356. <style scoped>
  11357. @media screen and (max-width: 1280px) {
  11358. .mbCss {
  11359. flex-direction: column !important;
  11360. }
  11361. .pjCss {
  11362. width: 100% !important;
  11363. }
  11364. .evaCss {
  11365. width: 100% !important;
  11366. }
  11367. }
  11368. .dialog_diy >>> .el-dialog__header {
  11369. background: #3c3c3c !important;
  11370. padding: 15px 20px;
  11371. }
  11372. .dialog_diy >>> .el-dialog__title {
  11373. color: #fff;
  11374. }
  11375. .dialog_diy >>> .el-dialog__headerbtn {
  11376. top: 19px;
  11377. }
  11378. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11379. color: #fff;
  11380. }
  11381. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11382. color: #fff;
  11383. }
  11384. .dialog_diy >>> .el-dialog__body,
  11385. .dialog_diy >>> .el-dialog__footer {
  11386. background: #fafafa;
  11387. }
  11388. .dialog_diy3 >>> .el-dialog__body,
  11389. .dialog_diy3 >>> .el-dialog__footer {
  11390. background: #eee !important;
  11391. }
  11392. .dialog_diy3 >>> .el-dialog__body {
  11393. padding: 20px 20px;
  11394. }
  11395. .source_diy >>> .el-dialog {
  11396. height: 100% !important;
  11397. margin: 0 auto !important;
  11398. }
  11399. .source_diy >>> .el-dialog__body {
  11400. height: calc(100% - 185px);
  11401. overflow: auto;
  11402. background: #e6eaf0;
  11403. }
  11404. .source_diy >>> .el-dialog__footer {
  11405. background: #e6eaf0 !important;
  11406. }
  11407. .left {
  11408. border-right: 1px solid rgb(60, 94, 143);
  11409. display: flex;
  11410. flex-direction: column;
  11411. align-items: center;
  11412. min-height: 600px;
  11413. width: 385px;
  11414. height: 80%;
  11415. }
  11416. .tips {
  11417. color: rgb(128, 128, 128);
  11418. font-size: 12px;
  11419. width: 270px;
  11420. margin: 40px;
  11421. }
  11422. .pb_content {
  11423. height: 100% !important;
  11424. /* margin: 0 20px 0 20px; */
  11425. }
  11426. .pb_content_body {
  11427. width: 100% !important;
  11428. height: 100%;
  11429. }
  11430. .info_solid {
  11431. width: 270px;
  11432. height: 30px;
  11433. border-left: 1px solid #bdbdbd;
  11434. margin: 10px 0px 10px 30px;
  11435. }
  11436. .info_steps {
  11437. width: 270px;
  11438. font-size: 0.875rem;
  11439. display: flex;
  11440. align-items: center;
  11441. }
  11442. .info_steps span:nth-child(1) {
  11443. width: 30px;
  11444. height: 30px;
  11445. background: rgba(0, 0, 0, 0.38);
  11446. display: block;
  11447. color: #fff;
  11448. border-radius: 40px;
  11449. text-align: center;
  11450. line-height: 30px;
  11451. }
  11452. .steps_active {
  11453. background: #3d67bc !important;
  11454. }
  11455. .info_steps span:nth-child(2) {
  11456. margin-left: 5px;
  11457. }
  11458. .right {
  11459. height: 100%;
  11460. width: 100%;
  11461. display: flex;
  11462. overflow: hidden;
  11463. }
  11464. .basic_box {
  11465. margin: 0 auto;
  11466. position: relative;
  11467. padding: 0 20px 0 20px;
  11468. }
  11469. .basic_box2 {
  11470. position: relative;
  11471. width: calc(100% - 300px);
  11472. }
  11473. .basic_box_success {
  11474. width: 100%;
  11475. height: 100%;
  11476. padding: 50px 0;
  11477. position: relative;
  11478. text-align: center;
  11479. /* border-bottom: 1px solid #bfbfbf; */
  11480. box-sizing: border-box;
  11481. display: flex;
  11482. align-items: center;
  11483. flex-direction: column;
  11484. justify-content: center;
  11485. }
  11486. .info_title {
  11487. font-size: 1.5em;
  11488. margin-right: 25px;
  11489. /* margin: 20px 30px 20px 30px; */
  11490. }
  11491. .bInfo_title {
  11492. text-align: left;
  11493. margin: 10px 0;
  11494. }
  11495. .small_title {
  11496. font-size: 14px;
  11497. line-height: 40px;
  11498. }
  11499. .chapter_beizhu {
  11500. font-size: 12px;
  11501. font-weight: bold;
  11502. float: right;
  11503. color: rgb(128, 128, 128);
  11504. margin-top: 5px;
  11505. }
  11506. .chapter_uploadBox1 {
  11507. text-align: left;
  11508. background-color: rgb(242, 242, 242);
  11509. width: 100%;
  11510. height: 67px;
  11511. padding: 0px 15px;
  11512. border-radius: 8px;
  11513. overflow: hidden;
  11514. font-size: 16px;
  11515. box-sizing: border-box;
  11516. position: relative;
  11517. }
  11518. .chapter_add {
  11519. width: 100%;
  11520. height: 32px;
  11521. margin-top: 15px;
  11522. cursor: pointer;
  11523. }
  11524. .chapter_add_l {
  11525. margin-left: 5px;
  11526. width: 30px;
  11527. height: 30px;
  11528. float: left;
  11529. border: 1px solid #aaa;
  11530. color: #aaa;
  11531. border-radius: 50%;
  11532. font-size: 25px;
  11533. text-align: center;
  11534. }
  11535. .chapter_add_r {
  11536. font-size: 18px;
  11537. height: 40px;
  11538. line-height: 30px;
  11539. text-indent: 10px;
  11540. color: #aaa;
  11541. }
  11542. .chapter_add_r span {
  11543. font-size: 12px;
  11544. color: rgb(204, 204, 204);
  11545. }
  11546. .chapter_add_input {
  11547. display: none;
  11548. }
  11549. .line {
  11550. width: 85%;
  11551. margin: 0 auto;
  11552. border-top: 1px solid #e5e5e5;
  11553. margin-top: 20px;
  11554. }
  11555. .info_btnBox {
  11556. width: 100%;
  11557. display: flex;
  11558. justify-content: space-evenly;
  11559. margin: 10px 0 10px 0;
  11560. }
  11561. .info_btn,
  11562. .teacherWord {
  11563. color: #fff;
  11564. background-color: #0f7eff;
  11565. padding: 8px 24px;
  11566. font-size: 0.9375rem;
  11567. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  11568. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  11569. min-width: 64px;
  11570. font-weight: 500;
  11571. border-radius: 4px;
  11572. box-sizing: border-box;
  11573. border: none;
  11574. cursor: pointer;
  11575. }
  11576. .teacherWord {
  11577. width: 105px !important;
  11578. text-align: center !important;
  11579. line-height: 36px !important;
  11580. padding: 0 !important;
  11581. font-size: 14px !important;
  11582. margin: 10px 0 !important;
  11583. }
  11584. .wordTeacher {
  11585. display: flex;
  11586. flex-direction: column;
  11587. width: 20%;
  11588. text-align: center;
  11589. font-size: 14px;
  11590. margin: 30px 30px 0 10px;
  11591. background: #fff;
  11592. position: relative;
  11593. border-radius: 5px;
  11594. padding: 25px 0px;
  11595. }
  11596. .wordPic {
  11597. margin: 0 auto;
  11598. width: 60px;
  11599. height: 60px;
  11600. cursor: pointer;
  11601. }
  11602. .deleteWord {
  11603. width: 22px;
  11604. height: 22px;
  11605. position: absolute;
  11606. right: 5px;
  11607. top: -15px;
  11608. cursor: pointer;
  11609. display: none;
  11610. z-index: 999;
  11611. }
  11612. .wordPic > img,
  11613. .deleteWord > img,
  11614. .addToolImg > img {
  11615. width: 100%;
  11616. height: 100%;
  11617. }
  11618. .info_btn:hover {
  11619. background-color: #4f7cd5 !important;
  11620. }
  11621. .cru_selectBox {
  11622. display: flex;
  11623. margin: 24px 0 10px;
  11624. flex-wrap: nowrap;
  11625. white-space: nowrap;
  11626. overflow: auto;
  11627. position: relative;
  11628. height: 47px;
  11629. }
  11630. .cru_selectBox::-webkit-scrollbar {
  11631. /*滚动条整体样式*/
  11632. width: 6px;
  11633. /*高宽分别对应横竖滚动条的尺寸*/
  11634. height: 6px;
  11635. }
  11636. /*定义滚动条轨道 内阴影+圆角*/
  11637. .cru_selectBox::-webkit-scrollbar-track {
  11638. border-radius: 10px;
  11639. background-color: #eee;
  11640. }
  11641. /*定义滑块 内阴影+圆角*/
  11642. .cru_selectBox::-webkit-scrollbar-thumb {
  11643. border-radius: 10px;
  11644. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  11645. background-color: rgba(0, 0, 0, 0.1);
  11646. }
  11647. .cru_line {
  11648. position: absolute;
  11649. bottom: 0px;
  11650. transition: all 0.5s;
  11651. left: 0px;
  11652. width: 125px;
  11653. margin-left: -25px;
  11654. }
  11655. .cru_select {
  11656. font-size: 21px;
  11657. margin-right: 37px;
  11658. margin-left: 5px;
  11659. cursor: pointer;
  11660. color: #a6a6a6;
  11661. }
  11662. .cru_selected {
  11663. color: #0b7fc2 !important;
  11664. }
  11665. .chapter_contentbox {
  11666. display: flex;
  11667. align-items: center;
  11668. margin-top: 15px;
  11669. }
  11670. .chapter_contentbox div:nth-child(1) {
  11671. /* width: 150px; */
  11672. margin: 0px;
  11673. /* font-size: 2em; */
  11674. color: black;
  11675. display: block;
  11676. white-space: nowrap;
  11677. overflow: hidden;
  11678. text-overflow: ellipsis;
  11679. /* font-weight: 600; */
  11680. margin-right: 20px;
  11681. font-size: 18px;
  11682. }
  11683. .chapter_contentbox div:nth-child(2) {
  11684. width: 380px;
  11685. }
  11686. .chapter_contentbox div:nth-child(3),
  11687. .remove {
  11688. background-image: url("../../../assets/remove.png");
  11689. cursor: pointer;
  11690. opacity: 0.5;
  11691. width: 40px;
  11692. height: 50px;
  11693. background-repeat: no-repeat;
  11694. background-position: 5px 10px;
  11695. }
  11696. .remove1 {
  11697. background-image: url("../../../assets/remove1.png");
  11698. background-repeat: no-repeat;
  11699. background-position: 5px 10px;
  11700. width: 40px;
  11701. height: 50px;
  11702. cursor: pointer;
  11703. }
  11704. .binfo_input {
  11705. font: inherit;
  11706. color: currentColor;
  11707. width: 100%;
  11708. margin: 0;
  11709. /* padding: 15px 14px; */
  11710. padding: 8px 14px;
  11711. display: block;
  11712. min-width: 0;
  11713. outline: none;
  11714. box-sizing: content-box;
  11715. background: none;
  11716. border: 1px solid rgba(0, 0, 0, 0.23);
  11717. border-radius: 4px;
  11718. box-sizing: border-box;
  11719. background: #fff;
  11720. font-size: 18px;
  11721. }
  11722. .binfo_input:focus-visible {
  11723. border: 1px solid rgba(61, 103, 188);
  11724. }
  11725. .time {
  11726. display: flex;
  11727. margin: 35px 0 80px 0;
  11728. }
  11729. .chapter_btnbox {
  11730. width: 160px;
  11731. border-radius: 5px;
  11732. border: 2px dashed gray;
  11733. display: flex;
  11734. padding: 8px 50px;
  11735. align-items: center;
  11736. justify-content: center;
  11737. margin: 30px auto 0;
  11738. cursor: pointer;
  11739. }
  11740. .icon_add {
  11741. position: relative;
  11742. width: 24px;
  11743. padding-top: 20px;
  11744. border-radius: 100%;
  11745. border-width: 2px;
  11746. border-style: solid;
  11747. border-color: gray;
  11748. }
  11749. .icon_add i:nth-child(1) {
  11750. position: absolute;
  11751. left: 50%;
  11752. top: 50%;
  11753. height: 60%;
  11754. transform: translate(-50%, -50%);
  11755. border-width: 1px;
  11756. border-style: solid;
  11757. border-color: inherit;
  11758. }
  11759. .icon_add i:nth-child(2) {
  11760. position: absolute;
  11761. top: 50%;
  11762. left: 50%;
  11763. width: 60%;
  11764. transform: translate(-50%, -50%);
  11765. border-width: 1px;
  11766. border-style: solid;
  11767. border-color: inherit;
  11768. }
  11769. .chapter_btn_w {
  11770. font-size: 0.9375rem;
  11771. font-weight: bold;
  11772. color: gray;
  11773. margin-left: 20px;
  11774. }
  11775. .disUoloadSty >>> .el-icon-plus {
  11776. display: none !important;
  11777. /* 上传按钮隐藏 */
  11778. }
  11779. .imgLeft {
  11780. margin: 15px 0;
  11781. }
  11782. .add_info_box {
  11783. margin: 20px 0;
  11784. }
  11785. .add_info_box button {
  11786. margin: 0 10px 10px 0;
  11787. }
  11788. .add_info_box2 {
  11789. display: flex;
  11790. align-items: center;
  11791. flex-wrap: wrap;
  11792. }
  11793. .add_info_box2::after {
  11794. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  11795. color: red;
  11796. font-size: 14px;
  11797. margin-bottom: 10px;
  11798. }
  11799. .add_chapters_box {
  11800. text-align: left;
  11801. background-color: rgb(232 234 237);
  11802. width: 100%;
  11803. padding: 0px 15px;
  11804. border-radius: 15px;
  11805. font-size: 16px;
  11806. box-sizing: border-box;
  11807. position: relative;
  11808. padding: 0 10px 5px 10px;
  11809. height: 185px;
  11810. overflow-y: auto;
  11811. overflow-x: hidden;
  11812. }
  11813. .homework_box {
  11814. display: flex;
  11815. align-items: flex-start;
  11816. flex-wrap: wrap;
  11817. margin: 15px 0 0 0;
  11818. flex-direction: column;
  11819. align-content: flex-start;
  11820. }
  11821. .course_homework {
  11822. display: flex;
  11823. justify-content: center;
  11824. flex-direction: row;
  11825. align-items: center;
  11826. margin: 0 10px 0 0;
  11827. }
  11828. .course_homework >>> .el-input__inner {
  11829. width: 140px;
  11830. margin-left: 15px;
  11831. }
  11832. .chapter_upload_move {
  11833. position: relative;
  11834. background-color: #fff;
  11835. position: absolute;
  11836. width: 100%;
  11837. top: 0px;
  11838. left: 0px;
  11839. border: 1px solid #eee;
  11840. border-radius: 5px;
  11841. transition: width 2s;
  11842. -moz-transition: width 2s;
  11843. -webkit-transition: width 2s;
  11844. -o-transition: width 2s;
  11845. }
  11846. .chapter_upload_l_i {
  11847. background-image: url("../../../assets/icon.png");
  11848. background-position: 3px -165px;
  11849. width: 30px;
  11850. height: 30px;
  11851. margin: 10px auto 0 auto;
  11852. }
  11853. .left_first {
  11854. display: flex;
  11855. flex-direction: column;
  11856. flex-wrap: nowrap;
  11857. }
  11858. .right_first {
  11859. width: 100%;
  11860. height: 100%;
  11861. margin-top: 15px;
  11862. }
  11863. .right_title {
  11864. height: 30px;
  11865. padding: 15px 20px 15px 20px;
  11866. border-bottom: 1px solid #f2f2f2;
  11867. font-size: 1.5em;
  11868. font-weight: bold;
  11869. color: #0f7eff;
  11870. margin: 0 auto;
  11871. display: flex;
  11872. /* justify-content: space-between; */
  11873. align-items: flex-end;
  11874. }
  11875. .people {
  11876. border: 1px solid rgb(229 229 229);
  11877. height: 495px;
  11878. border-radius: 5px;
  11879. width: 100%;
  11880. overflow: auto;
  11881. }
  11882. .people_top {
  11883. display: flex;
  11884. width: 100%;
  11885. /* justify-content: space-between; */
  11886. /* align-items: center; */
  11887. flex-direction: column;
  11888. padding: 10px 25px 0;
  11889. box-sizing: border-box;
  11890. }
  11891. .people_nav,
  11892. .people_top_right {
  11893. /* padding: 20px 0 0 20px; */
  11894. }
  11895. .people_top_right {
  11896. height: 40px;
  11897. margin-bottom: 10px;
  11898. }
  11899. .people_search {
  11900. display: flex;
  11901. position: relative;
  11902. }
  11903. .people_search >>> .el-input__inner {
  11904. /* height: 25px; */
  11905. width: 95%;
  11906. }
  11907. .search_img {
  11908. width: 20px;
  11909. height: 20px;
  11910. position: absolute;
  11911. right: 30px;
  11912. top: 50%;
  11913. transform: translateY(-50%);
  11914. }
  11915. .search_img > img {
  11916. width: 100%;
  11917. height: 100%;
  11918. }
  11919. .people_name {
  11920. display: flex;
  11921. justify-content: flex-start;
  11922. padding: 20px 0 0 25px;
  11923. flex-direction: column;
  11924. flex-wrap: wrap;
  11925. }
  11926. .p_box {
  11927. position: relative;
  11928. }
  11929. .people_name >>> .el-checkbox {
  11930. width: 100%;
  11931. display: flex;
  11932. align-items: center;
  11933. margin-bottom: 10px;
  11934. }
  11935. .people_name >>> .el-checkbox__label {
  11936. text-overflow: ellipsis;
  11937. overflow: hidden;
  11938. width: calc(100%);
  11939. }
  11940. .people_name2 >>> .el-checkbox__label {
  11941. width: calc(100% - 130px);
  11942. }
  11943. .inviteCode {
  11944. position: absolute;
  11945. right: 30px;
  11946. color: #237ade;
  11947. top: 0;
  11948. cursor: pointer;
  11949. font-size: 13px;
  11950. }
  11951. .noneInvite {
  11952. color: #a8a8a8;
  11953. }
  11954. .inviteImg {
  11955. position: absolute;
  11956. right: 5px;
  11957. top: 0;
  11958. width: 20px;
  11959. }
  11960. .right_img {
  11961. width: 150px;
  11962. height: 150px;
  11963. margin: 20px auto;
  11964. }
  11965. .right_img > img {
  11966. width: 100%;
  11967. height: 100%;
  11968. }
  11969. .number {
  11970. margin-top: 20px;
  11971. color: #4aa6ff;
  11972. text-decoration: underline;
  11973. }
  11974. .success_button {
  11975. display: flex;
  11976. text-align: center;
  11977. margin: 5% 0 auto;
  11978. flex-direction: row;
  11979. justify-content: center;
  11980. }
  11981. .look_course {
  11982. margin-right: 40px;
  11983. background: #3d67bc;
  11984. width: 200px;
  11985. height: 35px;
  11986. line-height: 35px;
  11987. color: #fff;
  11988. text-align: center;
  11989. font-size: 14px;
  11990. border-radius: 5px;
  11991. cursor: pointer;
  11992. }
  11993. .attend_others {
  11994. width: 250px;
  11995. background: #4fb13c;
  11996. height: 35px;
  11997. line-height: 35px;
  11998. color: #fff;
  11999. text-align: center;
  12000. font-size: 14px;
  12001. border-radius: 5px;
  12002. cursor: pointer;
  12003. }
  12004. .dialog_diy2 >>> .el-dialog__body {
  12005. text-align: center;
  12006. }
  12007. .write_togother {
  12008. position: absolute;
  12009. right: 45px;
  12010. display: flex;
  12011. top: 5%;
  12012. }
  12013. .write_people {
  12014. font-size: 14px;
  12015. line-height: 50px;
  12016. padding-right: 10px;
  12017. }
  12018. .end_write {
  12019. background: #3d67bc;
  12020. color: #fff;
  12021. width: 100px;
  12022. height: 35px;
  12023. line-height: 35px;
  12024. text-align: center;
  12025. font-size: 14px;
  12026. border-radius: 5px;
  12027. cursor: pointer;
  12028. }
  12029. .chapter_upload {
  12030. height: 50px;
  12031. margin-top: 12px;
  12032. position: relative;
  12033. display: flex;
  12034. align-items: center;
  12035. width: 100%;
  12036. min-height: 50px;
  12037. }
  12038. .chapter_upload_t {
  12039. background-color: #fff;
  12040. position: absolute;
  12041. height: 100%;
  12042. top: 0px;
  12043. left: 0px;
  12044. border-radius: 40px;
  12045. box-sizing: border-box;
  12046. box-shadow: 0 0 3px 3px #dfdfdf;
  12047. }
  12048. .chapter_upload_o {
  12049. width: 100%;
  12050. height: 100%;
  12051. position: relative;
  12052. z-index: 1;
  12053. }
  12054. .chapter_upload_ic {
  12055. height: 30px;
  12056. float: right;
  12057. }
  12058. .chapter_upload_ic_l {
  12059. width: 50px;
  12060. height: 50px;
  12061. float: left;
  12062. }
  12063. .chapter_upload_ic_l div {
  12064. width: 30px;
  12065. height: 35px;
  12066. background: url("../../../assets/icon/icon.png");
  12067. }
  12068. .chapter_upload_ic_r {
  12069. width: 50px;
  12070. height: 50px;
  12071. float: left;
  12072. margin-left: 0px;
  12073. display: flex;
  12074. align-items: center;
  12075. }
  12076. .chapter_upload_ic_r div {
  12077. width: 25px;
  12078. height: 25px;
  12079. background-image: url("../../../assets/delete.png");
  12080. background-size: 100% 100%;
  12081. }
  12082. .chapter_upload_n {
  12083. display: flex;
  12084. text-indent: 10px;
  12085. text-decoration: none;
  12086. text-overflow: ellipsis;
  12087. white-space: nowrap;
  12088. overflow: hidden;
  12089. width: 55%;
  12090. margin-left: 10px;
  12091. cursor: pointer;
  12092. margin-top: 2px;
  12093. align-items: center;
  12094. }
  12095. .chapter_upload_l_i1 {
  12096. background-image: url("../../../assets/icon/video.png");
  12097. width: 28px;
  12098. height: 28px;
  12099. background-size: 100% 100%;
  12100. }
  12101. .chapter_upload_l_i5 {
  12102. background-image: url("../../../assets/icon/word.png");
  12103. width: 24px;
  12104. height: 24px;
  12105. background-size: 100% 100%;
  12106. }
  12107. .chapter_upload_l_i8 {
  12108. background-image: url("../../../assets/icon/line.png");
  12109. width: 24px;
  12110. height: 24px;
  12111. background-size: 100% 100%;
  12112. }
  12113. .chapter_upload_ud {
  12114. display: flex;
  12115. flex-direction: column;
  12116. margin-left: 5px;
  12117. justify-content: center;
  12118. }
  12119. .chapter_upload_up {
  12120. background-image: url("../../../assets/icon/up.png");
  12121. width: 17px;
  12122. height: 15px;
  12123. background-size: 100% 100%;
  12124. cursor: pointer;
  12125. }
  12126. .chapter_upload_down {
  12127. background-image: url("../../../assets/icon/down.png");
  12128. width: 17px;
  12129. height: 15px;
  12130. margin: 2px auto 0 auto;
  12131. background-size: 100% 100%;
  12132. cursor: pointer;
  12133. }
  12134. .addWordStyle {
  12135. display: flex;
  12136. flex-direction: row;
  12137. justify-content: flex-start;
  12138. overflow-x: auto;
  12139. white-space: nowrap;
  12140. flex-wrap: wrap;
  12141. }
  12142. /* table 样式 */
  12143. .cont >>> table {
  12144. border-top: 1px solid #ccc;
  12145. border-left: 1px solid #ccc;
  12146. }
  12147. .cont >>> table td,
  12148. .cont >>> table th {
  12149. border-bottom: 1px solid #ccc;
  12150. border-right: 1px solid #ccc;
  12151. /* padding: 20px 5px; */
  12152. padding: 5px 10px;
  12153. max-width: 0px;
  12154. height: 30px;
  12155. vertical-align: baseline;
  12156. }
  12157. .cont >>> table th {
  12158. border-bottom: 2px solid #ccc;
  12159. text-align: center;
  12160. }
  12161. /* blockquote 样式 */
  12162. .cont >>> blockquote {
  12163. display: block;
  12164. border-left: 8px solid #d0e5f2;
  12165. padding: 5px 10px;
  12166. margin: 10px 0;
  12167. line-height: 1.4;
  12168. font-size: 100%;
  12169. background-color: #f1f1f1;
  12170. }
  12171. /* code 样式 */
  12172. .cont >>> code {
  12173. display: inline-block;
  12174. *display: inline;
  12175. *zoom: 1;
  12176. background-color: #f1f1f1;
  12177. border-radius: 3px;
  12178. padding: 3px 5px;
  12179. margin: 0 3px;
  12180. }
  12181. .cont >>> pre code {
  12182. display: block;
  12183. }
  12184. /* ul ol 样式 */
  12185. .cont >>> ul,
  12186. ol {
  12187. margin: 10px 0 10px 20px;
  12188. }
  12189. .wordbox {
  12190. display: flex;
  12191. flex-wrap: wrap;
  12192. cursor: pointer;
  12193. width: 100%;
  12194. }
  12195. .checkword {
  12196. width: 22px;
  12197. height: 22px;
  12198. margin: 10px auto 0;
  12199. cursor: pointer;
  12200. }
  12201. .checkword img {
  12202. width: 100%;
  12203. }
  12204. .stepBg {
  12205. display: flex;
  12206. flex-direction: column;
  12207. justify-content: space-between;
  12208. align-items: center;
  12209. background: #fff;
  12210. width: 300px;
  12211. margin: 0 25px 0 0;
  12212. }
  12213. .stepTop {
  12214. min-width: 300px;
  12215. width: 300px;
  12216. /* border-radius: 10px; */
  12217. display: flex;
  12218. flex-direction: column;
  12219. justify-content: flex-start;
  12220. align-items: center;
  12221. flex-wrap: nowrap;
  12222. background: #fff;
  12223. /* top: 18%; */
  12224. }
  12225. .stepTop > div {
  12226. height: 80px;
  12227. width: 85%;
  12228. cursor: pointer;
  12229. margin: 10px 0;
  12230. border-radius: 10px;
  12231. }
  12232. .first,
  12233. .second,
  12234. .third,
  12235. .four {
  12236. background: #4a83d0;
  12237. height: 90px;
  12238. color: #fff;
  12239. display: flex;
  12240. flex-direction: row;
  12241. align-items: center;
  12242. justify-content: center;
  12243. }
  12244. .first > div:nth-child(1),
  12245. .second > div:nth-child(1),
  12246. .third > div:nth-child(1),
  12247. .four > div:nth-child(1) {
  12248. margin: 5px 10px 0 0;
  12249. width: 2rem;
  12250. }
  12251. .firstNo,
  12252. .secondNo,
  12253. .thirdNo,
  12254. .fourNo {
  12255. background: #e7e7e7;
  12256. color: #adadad;
  12257. display: flex;
  12258. flex-direction: row;
  12259. align-items: center;
  12260. justify-content: center;
  12261. }
  12262. .firstNo > div:nth-child(1),
  12263. .secondNo > div:nth-child(1),
  12264. .thirdNo > div:nth-child(1),
  12265. .fourNo > div:nth-child(1) {
  12266. margin: 5px 10px 0 0;
  12267. width: 2rem;
  12268. }
  12269. .uploadWidth >>> .el-upload {
  12270. width: 60px;
  12271. height: 60px;
  12272. position: relative;
  12273. }
  12274. .addPeople {
  12275. background: #fa6060;
  12276. width: 150px;
  12277. height: 40px;
  12278. color: #fff;
  12279. border-radius: 5px;
  12280. text-align: center;
  12281. line-height: 40px;
  12282. font-size: 14px;
  12283. cursor: pointer;
  12284. margin-top: 20px;
  12285. }
  12286. .kcImg {
  12287. width: 60px;
  12288. margin-left: 10px;
  12289. }
  12290. .zyImg {
  12291. width: 55px;
  12292. margin: 0 10px;
  12293. }
  12294. .deleteZy {
  12295. width: 20px;
  12296. position: absolute;
  12297. top: 5px;
  12298. right: 5px;
  12299. cursor: pointer;
  12300. }
  12301. .kcImg > img,
  12302. .zyImg > img,
  12303. .deleteZy > img {
  12304. width: 100%;
  12305. height: 100%;
  12306. }
  12307. .zyBox {
  12308. display: flex;
  12309. flex-direction: row;
  12310. align-items: center;
  12311. background: #67d37d;
  12312. color: #fff;
  12313. width: 210px;
  12314. margin: 20px 20px 0 0;
  12315. border-radius: 10px;
  12316. height: 70px;
  12317. position: relative;
  12318. }
  12319. .upCss {
  12320. display: flex;
  12321. flex-direction: row;
  12322. justify-content: flex-start;
  12323. }
  12324. .upCss >>> .el-icon-plus {
  12325. position: none !important;
  12326. width: 200px;
  12327. height: 100px;
  12328. display: flex;
  12329. flex-wrap: nowrap;
  12330. flex-direction: column;
  12331. align-items: center;
  12332. justify-content: center;
  12333. border: 1px dashed #ccc;
  12334. min-width: 78px;
  12335. min-height: 100px;
  12336. z-index: 999;
  12337. }
  12338. .upCss >>> .el-upload-list__item-name {
  12339. width: 100px;
  12340. white-space: nowrap;
  12341. overflow: hidden;
  12342. text-overflow: ellipsis;
  12343. }
  12344. .addStageImg {
  12345. min-width: 25px;
  12346. min-height: 25px;
  12347. width: 25px;
  12348. height: 25px;
  12349. cursor: pointer;
  12350. }
  12351. .addHW {
  12352. width: 28px;
  12353. height: 28px;
  12354. cursor: pointer;
  12355. }
  12356. .addStageImg > img,
  12357. .addHW > img {
  12358. width: 100%;
  12359. height: 100%;
  12360. }
  12361. .addNewPP >>> .el-dialog__body {
  12362. padding: 5px 20px;
  12363. }
  12364. .isHeight {
  12365. height: 680px;
  12366. }
  12367. .toolChoose {
  12368. display: flex;
  12369. /* width: 100%; */
  12370. flex-direction: row;
  12371. flex-wrap: wrap;
  12372. }
  12373. .tool {
  12374. display: flex;
  12375. flex-direction: column;
  12376. flex-wrap: nowrap;
  12377. width: fit-content;
  12378. margin: 10px 0 10px 0;
  12379. align-items: center;
  12380. }
  12381. .tool + .tool {
  12382. margin-right: 45px;
  12383. }
  12384. .whiteBIcon {
  12385. width: 80px;
  12386. cursor: pointer;
  12387. display: flex;
  12388. flex-direction: column;
  12389. flex-wrap: nowrap;
  12390. align-items: center;
  12391. }
  12392. .whiteBIcon > img,
  12393. .toolIcon > img,
  12394. .arrow > img {
  12395. width: 100%;
  12396. height: 100%;
  12397. }
  12398. .check img {
  12399. width: 20px;
  12400. height: 20px;
  12401. }
  12402. .whiteBIcon > img {
  12403. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  12404. border-radius: 15px;
  12405. }
  12406. .check {
  12407. /* width: 20px;
  12408. height: 20px; */
  12409. cursor: pointer;
  12410. margin: 10px 0;
  12411. }
  12412. .checkDiv {
  12413. display: flex;
  12414. align-items: center;
  12415. }
  12416. .checkDiv span {
  12417. margin-left: 5px;
  12418. color: #858585;
  12419. }
  12420. .customWidth >>> .el-dialog {
  12421. min-width: 500px !important;
  12422. }
  12423. .a_addBox {
  12424. margin: 10px 0;
  12425. background: #fff;
  12426. padding: 15px;
  12427. max-height: 600px;
  12428. overflow: auto;
  12429. }
  12430. .a_add_box {
  12431. border-bottom: 2px solid #eee;
  12432. padding-bottom: 25px;
  12433. }
  12434. .a_add_head {
  12435. display: flex;
  12436. align-items: center;
  12437. justify-content: space-between;
  12438. margin: 10px 0 0 0;
  12439. font-size: 18px;
  12440. }
  12441. .a_add_checkType {
  12442. margin-top: 10px;
  12443. display: flex;
  12444. font-size: 16px;
  12445. align-items: center;
  12446. }
  12447. .a_add_checkType span {
  12448. box-sizing: border-box;
  12449. padding: 0 0 5px 0;
  12450. cursor: pointer;
  12451. }
  12452. .a_add_checkType span + span {
  12453. margin-left: 10px;
  12454. }
  12455. .a_add_checkType .active {
  12456. border-bottom: 2px solid #409eff;
  12457. color: #409eff;
  12458. }
  12459. .a_add_head .a_add_head_input {
  12460. width: 300px;
  12461. }
  12462. .a_add_head .a_add_head_div {
  12463. display: flex;
  12464. align-items: center;
  12465. justify-content: space-between;
  12466. }
  12467. .a_add_body {
  12468. display: flex;
  12469. /* align-items: center; */
  12470. align-items: flex-end;
  12471. }
  12472. .a_add_input {
  12473. display: flex;
  12474. align-items: center;
  12475. flex-wrap: wrap;
  12476. }
  12477. .a_add_input_choice {
  12478. flex-direction: column;
  12479. margin-right: 10px;
  12480. }
  12481. .a_add_input_choice >>> .el-radio {
  12482. display: flex;
  12483. align-items: center;
  12484. flex-direction: row-reverse;
  12485. margin: 30px 0 0 0;
  12486. }
  12487. .a_add_input_choice >>> .el-checkbox {
  12488. display: flex;
  12489. align-items: center;
  12490. flex-direction: row-reverse;
  12491. margin: 30px 0 0 0;
  12492. }
  12493. .width100 {
  12494. width: 100%;
  12495. }
  12496. .a_add_input .a_add_persent {
  12497. width: 100%;
  12498. }
  12499. .a_add_persent_div {
  12500. width: 100%;
  12501. display: flex;
  12502. align-items: center;
  12503. }
  12504. .a_add_persent_div span {
  12505. margin: 5px 0;
  12506. }
  12507. .a_add_persent_div span:nth-child(1) {
  12508. width: 30%;
  12509. }
  12510. .a_add_persent_div span:nth-child(2) {
  12511. width: 7%;
  12512. }
  12513. .a_add_persent_div span:nth-child(3) {
  12514. width: 40%;
  12515. }
  12516. .a_add_body_div {
  12517. display: flex;
  12518. align-items: center;
  12519. justify-content: center;
  12520. /* flex-direction: column; */
  12521. }
  12522. .all_choose {
  12523. display: flex;
  12524. flex-direction: row;
  12525. align-items: flex-start;
  12526. width: 100%;
  12527. }
  12528. .all_choose > span {
  12529. min-width: 100px;
  12530. display: block;
  12531. letter-spacing: 14px;
  12532. white-space: nowrap;
  12533. overflow: hidden;
  12534. text-overflow: ellipsis;
  12535. }
  12536. .all_choose >>> .el-checkbox-group {
  12537. display: flex;
  12538. flex-direction: row;
  12539. width: 100%;
  12540. flex-wrap: wrap;
  12541. align-content: center;
  12542. justify-content: flex-start;
  12543. align-items: center;
  12544. margin-top: 3px;
  12545. }
  12546. .all_choose > .el-checkbox-group >>> .el-checkbox {
  12547. margin-bottom: 10px;
  12548. display: flex;
  12549. flex-direction: row;
  12550. align-items: center;
  12551. }
  12552. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  12553. min-width: 80px;
  12554. overflow: hidden;
  12555. width: 80px;
  12556. text-overflow: ellipsis;
  12557. white-space: nowrap;
  12558. }
  12559. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  12560. width: auto;
  12561. }
  12562. .choose > div:nth-child(3) > span {
  12563. /* letter-spacing: 0 !important; */
  12564. }
  12565. .choose {
  12566. display: flex;
  12567. flex-direction: column;
  12568. flex-wrap: nowrap;
  12569. height: 100%;
  12570. justify-content: space-evenly;
  12571. align-items: flex-start;
  12572. }
  12573. .both {
  12574. display: flex;
  12575. flex-direction: row;
  12576. flex-wrap: wrap;
  12577. width: 100%;
  12578. align-items: center;
  12579. justify-content: flex-start;
  12580. margin: 15px 0;
  12581. }
  12582. .notice >>> .el-dialog {
  12583. width: 500px !important;
  12584. text-align: center;
  12585. }
  12586. .notice >>> .el-button {
  12587. margin-top: 20px;
  12588. }
  12589. .whiteBg {
  12590. background: #fff;
  12591. border-radius: 10px;
  12592. }
  12593. .chooseWho {
  12594. display: flex;
  12595. width: 380px;
  12596. flex-direction: row;
  12597. flex-wrap: nowrap;
  12598. justify-content: space-between;
  12599. padding-bottom: 10px;
  12600. }
  12601. .chooseWho > div {
  12602. cursor: pointer;
  12603. padding-bottom: 10px;
  12604. font-weight: bold;
  12605. }
  12606. .isChooseActive {
  12607. color: #3e88f4;
  12608. border-bottom: 2px solid #2f80f3;
  12609. }
  12610. .toolSort {
  12611. display: flex;
  12612. flex-direction: row;
  12613. flex-wrap: wrap;
  12614. justify-content: flex-start;
  12615. align-items: flex-start;
  12616. }
  12617. .toolSort > div {
  12618. margin-right: 45px;
  12619. }
  12620. .tools {
  12621. width: 100%;
  12622. display: flex;
  12623. flex-direction: column;
  12624. flex-wrap: nowrap;
  12625. align-items: flex-start;
  12626. }
  12627. .leftTools,
  12628. .rightTools {
  12629. width: 50%;
  12630. }
  12631. .rightTools {
  12632. display: flex;
  12633. flex-direction: row;
  12634. flex-wrap: nowrap;
  12635. justify-content: space-around;
  12636. }
  12637. .firstToolList {
  12638. display: flex;
  12639. flex-direction: column;
  12640. flex-wrap: nowrap;
  12641. align-items: center;
  12642. }
  12643. .iconList {
  12644. display: flex;
  12645. flex-direction: row;
  12646. flex-wrap: wrap;
  12647. justify-content: flex-start;
  12648. align-items: center;
  12649. margin: 20px 0 5px 0;
  12650. width: 240px;
  12651. min-width: 240px;
  12652. }
  12653. .iconTool {
  12654. display: flex;
  12655. flex-direction: column;
  12656. flex-wrap: nowrap;
  12657. align-items: center;
  12658. justify-content: flex-start;
  12659. margin: 15px 10px;
  12660. }
  12661. .toolIcon {
  12662. width: 50px;
  12663. }
  12664. .taskBorder {
  12665. border: 1px solid #e1e1e1;
  12666. border-radius: 10px;
  12667. margin-top: 20px;
  12668. /* min-height: 1160px; */
  12669. position: relative;
  12670. background: #fbfbfb;
  12671. }
  12672. .smallTaskBorder {
  12673. height: 170px;
  12674. min-height: 170px !important;
  12675. overflow: hidden;
  12676. }
  12677. .taskBorder > div {
  12678. padding: 30px 0 10px 30px;
  12679. }
  12680. .addTaskBorder {
  12681. border: 2px solid #e1e1e1;
  12682. border-radius: 10px;
  12683. margin-top: 25px;
  12684. cursor: pointer;
  12685. }
  12686. .addTaskBorder > div {
  12687. margin: 0 auto;
  12688. display: flex;
  12689. align-items: center;
  12690. justify-content: center;
  12691. }
  12692. .addTaskBorder > div > img {
  12693. width: 100px;
  12694. }
  12695. .addTaskBorder > div > span {
  12696. font-size: 23px;
  12697. color: #dbdbdb;
  12698. }
  12699. .funBlock {
  12700. display: flex;
  12701. padding: 15px 0;
  12702. flex-direction: row;
  12703. justify-content: flex-end;
  12704. align-items: center;
  12705. position: absolute;
  12706. right: 15px;
  12707. bottom: 35px;
  12708. }
  12709. .fold {
  12710. display: flex;
  12711. margin: 0 10px;
  12712. flex-direction: row;
  12713. align-items: center;
  12714. cursor: pointer;
  12715. }
  12716. .arrow {
  12717. width: 15px;
  12718. height: 15px;
  12719. margin-left: 10px;
  12720. }
  12721. .addToolFun {
  12722. display: flex;
  12723. width: 150px;
  12724. flex-direction: row;
  12725. align-items: center;
  12726. justify-content: center;
  12727. border: 1px dashed;
  12728. border-radius: 5px;
  12729. height: 50px;
  12730. margin: 20px auto 35px;
  12731. cursor: pointer;
  12732. }
  12733. .addToolImg {
  12734. width: 30px;
  12735. height: 30px;
  12736. margin-right: 20px;
  12737. }
  12738. .addToolsDia >>> .el-dialog__body {
  12739. padding: 20px;
  12740. }
  12741. .addToolsDia >>> .el-dialog__body > .toolChoose {
  12742. padding: 0;
  12743. }
  12744. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  12745. padding: 0;
  12746. border-bottom: none;
  12747. margin-bottom: 0;
  12748. }
  12749. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  12750. width: 100%;
  12751. }
  12752. .lineCss >>> .el-form-item__label {
  12753. width: auto !important;
  12754. }
  12755. .lineCss >>> .el-form-item__content {
  12756. margin-left: 50px !important;
  12757. }
  12758. .newSteps {
  12759. display: flex;
  12760. width: 100% !important;
  12761. height: 80px;
  12762. cursor: pointer;
  12763. margin: 10px 0;
  12764. border-radius: 10px;
  12765. flex-direction: row;
  12766. align-content: center;
  12767. justify-content: center;
  12768. align-items: center;
  12769. margin: 0 !important;
  12770. }
  12771. /* 评价样式 */
  12772. .elist_css {
  12773. padding-bottom: 60px !important;
  12774. }
  12775. .elist_title {
  12776. margin-bottom: 10px;
  12777. }
  12778. .elist_input {
  12779. }
  12780. .elist_input_box {
  12781. display: flex;
  12782. align-items: center;
  12783. flex-wrap: wrap;
  12784. }
  12785. .elist_input_box + .elist_input_box {
  12786. margin-top: 30px;
  12787. }
  12788. .elist_input .elist_input_box input {
  12789. font: inherit;
  12790. color: currentColor;
  12791. /* width: 200px; */
  12792. max-width: 200px;
  12793. padding: 8px 14px;
  12794. display: block;
  12795. min-width: 0;
  12796. outline: none;
  12797. border: 1px solid rgba(0, 0, 0, 0.23);
  12798. border-radius: 4px;
  12799. box-sizing: border-box;
  12800. background: #fff;
  12801. margin: 0 20px 0 0;
  12802. }
  12803. .elist_input .elist_input_box span {
  12804. height: 36px;
  12805. line-height: 36px;
  12806. color: rgb(82, 82, 82);
  12807. min-width: 80px;
  12808. }
  12809. .elist_input .elist_input_box .remove {
  12810. height: 20px;
  12811. width: 20px;
  12812. background-size: 100% 100%;
  12813. background-position: unset;
  12814. margin-left: 5px;
  12815. }
  12816. .elist_input_box >>> .el-rate {
  12817. display: flex;
  12818. height: 36px;
  12819. align-items: center;
  12820. }
  12821. .elist_input_box .elist_inptu_text {
  12822. width: 100%;
  12823. display: flex;
  12824. align-items: center;
  12825. margin-top: 10px;
  12826. }
  12827. .elist_input_box .elist_inptu_text input {
  12828. /* width: 500px; */
  12829. width: 100%;
  12830. max-width: unset;
  12831. }
  12832. .elist_input_box >>> .el-rate__icon {
  12833. font-size: 24px;
  12834. }
  12835. .elist_btn {
  12836. margin-top: 10px;
  12837. }
  12838. .lineTitle {
  12839. margin-top: 15px;
  12840. width: 110px;
  12841. }
  12842. .courseTop {
  12843. display: flex;
  12844. flex-direction: row;
  12845. justify-content: flex-start;
  12846. align-items: center;
  12847. width: calc(100% - 40px);
  12848. padding: 20px 0;
  12849. margin: 0 auto;
  12850. }
  12851. .stepsNav {
  12852. display: flex;
  12853. flex-direction: row;
  12854. justify-content: flex-start;
  12855. align-items: center;
  12856. }
  12857. .stepsWord {
  12858. font-size: 18px;
  12859. color: #fff;
  12860. font-weight: bold;
  12861. margin-left: auto;
  12862. background: rgb(15, 126, 255);
  12863. border-radius: 5px;
  12864. padding: 3px 25px;
  12865. box-sizing: border-box;
  12866. }
  12867. .rightBox {
  12868. width: calc(100% - 40px);
  12869. background: rgb(255, 255, 255);
  12870. border-radius: 10px;
  12871. overflow: auto;
  12872. height: calc(100% - 160px);
  12873. position: relative;
  12874. margin: 0px auto 0;
  12875. }
  12876. .e_add_top {
  12877. display: flex;
  12878. justify-content: space-between;
  12879. padding: 20px 20px 0 20px;
  12880. border-radius: 3px;
  12881. background: #fff;
  12882. }
  12883. .e_add_title2 {
  12884. display: flex;
  12885. align-items: center;
  12886. }
  12887. .e_add_title2 span {
  12888. width: 40px;
  12889. }
  12890. .e_add_title {
  12891. display: flex;
  12892. align-items: center;
  12893. color: #b8b8b8;
  12894. font-size: 18px;
  12895. position: relative;
  12896. height: 40px;
  12897. }
  12898. .e_add_title span {
  12899. margin-right: 10px;
  12900. }
  12901. .e_add_title .el_input {
  12902. width: 300px;
  12903. }
  12904. .e_add_title >>> .el-input__inner {
  12905. width: 400px;
  12906. }
  12907. .e_add_btn {
  12908. }
  12909. .e_add_content {
  12910. display: flex;
  12911. width: 100%;
  12912. }
  12913. .e_add_list {
  12914. background: #fff;
  12915. height: 500px;
  12916. width: 210px;
  12917. position: relative;
  12918. margin: 15px 5px 0 0;
  12919. flex-shrink: 0;
  12920. display: flex;
  12921. flex-direction: column;
  12922. }
  12923. .e_add_list_title {
  12924. font-size: 20px;
  12925. width: 100%;
  12926. box-sizing: border-box;
  12927. padding: 15px 40px;
  12928. text-align: center;
  12929. border-bottom: 1px solid #eaeaea;
  12930. position: relative;
  12931. display: flex;
  12932. align-items: center;
  12933. justify-content: center;
  12934. height: 57px;
  12935. background: #f6f6f6;
  12936. }
  12937. .e_add_list_title span {
  12938. overflow: hidden;
  12939. white-space: nowrap;
  12940. text-overflow: ellipsis;
  12941. }
  12942. .e_add_list_title img {
  12943. position: absolute;
  12944. right: 15px;
  12945. width: 25px;
  12946. cursor: pointer;
  12947. top: 50%;
  12948. transform: translateY(-50%);
  12949. }
  12950. .e_add_list_body {
  12951. height: calc(100% - 187px);
  12952. overflow: auto;
  12953. }
  12954. .e_add_list_child {
  12955. width: 100%;
  12956. display: flex;
  12957. align-items: center;
  12958. justify-content: center;
  12959. position: relative;
  12960. box-sizing: border-box;
  12961. padding: 15px 40px;
  12962. text-align: center;
  12963. }
  12964. .e_add_list_child span {
  12965. overflow: hidden;
  12966. white-space: nowrap;
  12967. text-overflow: ellipsis;
  12968. cursor: pointer;
  12969. }
  12970. .e_add_list_child img {
  12971. position: absolute;
  12972. right: 10px;
  12973. width: 21px;
  12974. cursor: pointer;
  12975. top: 50%;
  12976. transform: translateY(-50%);
  12977. }
  12978. .e_add_list_child + .e_add_list_child {
  12979. border-top: 1px solid #eaeaea;
  12980. }
  12981. .e_add_list_child .active {
  12982. color: #409eff;
  12983. }
  12984. .e_add_list_btn {
  12985. position: absolute;
  12986. bottom: 0;
  12987. height: 50px;
  12988. background: rgb(120, 120, 254);
  12989. width: 100%;
  12990. color: #fff;
  12991. font-size: 16px;
  12992. text-align: center;
  12993. line-height: 50px;
  12994. cursor: pointer;
  12995. }
  12996. .e_add_list_detail {
  12997. position: absolute;
  12998. bottom: 0;
  12999. height: 130px;
  13000. background: rgb(120, 120, 254);
  13001. width: 100%;
  13002. color: #fff;
  13003. font-size: 16px;
  13004. display: flex;
  13005. align-items: center;
  13006. justify-content: center;
  13007. }
  13008. .e_add_list_detail textarea {
  13009. height: 90%;
  13010. width: 95%;
  13011. border: none;
  13012. resize: none;
  13013. outline: none;
  13014. padding: 5px;
  13015. box-sizing: border-box;
  13016. }
  13017. .e_add_list_pbox {
  13018. width: 100%;
  13019. }
  13020. .e_add_list_pbox_title {
  13021. height: 50px;
  13022. background: #fff;
  13023. display: flex;
  13024. align-items: center;
  13025. width: 100%;
  13026. box-sizing: border-box;
  13027. padding: 0 20px;
  13028. flex-direction: row;
  13029. flex-wrap: wrap;
  13030. }
  13031. .type_title {
  13032. font-size: 18px;
  13033. font-weight: 700;
  13034. }
  13035. .type_content {
  13036. font-size: 16px;
  13037. margin-left: 30px;
  13038. }
  13039. .type_content span + span {
  13040. margin-left: 20px;
  13041. }
  13042. .type_content span {
  13043. cursor: pointer;
  13044. padding-bottom: 5px;
  13045. box-sizing: border-box;
  13046. }
  13047. .type_content .active {
  13048. color: #409eff;
  13049. border-bottom: 2px solid #409eff;
  13050. }
  13051. .e_add_list_pbox_content {
  13052. height: calc(100% - 50px);
  13053. display: flex;
  13054. align-items: center;
  13055. width: 100%;
  13056. background: #fff;
  13057. }
  13058. .mbCss {
  13059. width: 100%;
  13060. display: flex;
  13061. flex-direction: row;
  13062. flex-wrap: nowrap;
  13063. align-content: center;
  13064. align-items: flex-start;
  13065. justify-content: flex-start;
  13066. }
  13067. .pjCss {
  13068. /* width: 42%; */
  13069. width: calc(100% - 55%);
  13070. display: flex;
  13071. flex-direction: column;
  13072. flex-wrap: nowrap;
  13073. align-items: flex-start;
  13074. margin-top: 1.5%;
  13075. }
  13076. .e_box {
  13077. display: flex;
  13078. flex-wrap: wrap;
  13079. max-height: 500px;
  13080. align-items: flex-start;
  13081. overflow: auto;
  13082. }
  13083. .e_card {
  13084. border: 1px solid #ccc;
  13085. background: #fff;
  13086. margin-right: 20px;
  13087. width: 270px;
  13088. display: flex;
  13089. flex-direction: column;
  13090. align-items: center;
  13091. border-radius: 5px;
  13092. margin-top: 10px;
  13093. text-align: center;
  13094. }
  13095. .e_card_picture {
  13096. margin: 10px 0;
  13097. }
  13098. .e_card_picture > img {
  13099. width: 50px;
  13100. }
  13101. .e_card_name {
  13102. width: 100%;
  13103. padding: 0 10px;
  13104. box-sizing: border-box;
  13105. margin-bottom: 10px;
  13106. overflow: hidden;
  13107. text-overflow: ellipsis;
  13108. white-space: nowrap;
  13109. }
  13110. .e_card_time {
  13111. width: 100%;
  13112. padding: 0 10px;
  13113. box-sizing: border-box;
  13114. font-size: 15px;
  13115. color: #c3c3c3;
  13116. margin-bottom: 10px;
  13117. }
  13118. .e_card_btn {
  13119. height: 40px;
  13120. display: flex;
  13121. align-items: center;
  13122. width: 100%;
  13123. background: rgb(244, 244, 244);
  13124. }
  13125. .e_card_btn:hover {
  13126. background: rgb(221 221 221);
  13127. }
  13128. .e_card_btn span {
  13129. flex: 1 1 auto;
  13130. text-align: center;
  13131. cursor: pointer;
  13132. }
  13133. .addEva {
  13134. border: 1px solid #ccc;
  13135. background: #fff;
  13136. margin-right: 20px;
  13137. width: 270px;
  13138. height: 149px;
  13139. display: flex;
  13140. flex-direction: column;
  13141. align-items: center;
  13142. border-radius: 5px;
  13143. margin-top: 10px;
  13144. text-align: center;
  13145. cursor: pointer;
  13146. justify-content: center;
  13147. }
  13148. .addEva > img {
  13149. width: 50px;
  13150. object-fit: cover;
  13151. }
  13152. .uploadFm {
  13153. border: 1px dashed #ccc;
  13154. width: 202px;
  13155. height: 102px;
  13156. position: relative;
  13157. cursor: pointer;
  13158. }
  13159. .uploadFm > img {
  13160. position: absolute;
  13161. top: 25px;
  13162. left: 35%;
  13163. width: 50px;
  13164. }
  13165. .fileCss {
  13166. width: 100%;
  13167. display: flex;
  13168. flex-direction: row;
  13169. flex-wrap: nowrap;
  13170. justify-content: space-around;
  13171. align-items: center;
  13172. padding-top: 15px;
  13173. }
  13174. .sysPicBox {
  13175. display: flex;
  13176. flex-direction: row;
  13177. flex-wrap: wrap;
  13178. align-content: flex-start;
  13179. height: 435px;
  13180. overflow: auto;
  13181. }
  13182. .sysPic {
  13183. width: 200px;
  13184. height: 115px;
  13185. margin: 0 20px 20px 0;
  13186. cursor: pointer;
  13187. }
  13188. .sysPic > img,
  13189. .isSysPic > img,
  13190. .deletePic > img {
  13191. width: 100%;
  13192. height: 100%;
  13193. object-fit: cover;
  13194. }
  13195. .isSysPic {
  13196. width: 200px;
  13197. height: 115px;
  13198. position: relative;
  13199. }
  13200. .deletePic {
  13201. width: 20px;
  13202. height: 20px;
  13203. position: absolute;
  13204. top: 0;
  13205. right: 0;
  13206. cursor: pointer;
  13207. }
  13208. .select_box1 {
  13209. }
  13210. .select_box1_img {
  13211. background: #fff;
  13212. border-radius: 5px;
  13213. padding: 15px;
  13214. box-sizing: border-box;
  13215. margin-bottom: 20px;
  13216. }
  13217. .select_box1_title {
  13218. padding: 0 0 15px 0;
  13219. border-bottom: 1px solid #eee;
  13220. margin-bottom: 15px;
  13221. }
  13222. .select_box1_title span:nth-child(1) {
  13223. font-size: 16px;
  13224. margin-right: 20px;
  13225. color: #000;
  13226. }
  13227. .select_box1_title span:nth-child(2) {
  13228. font-size: 14px;
  13229. color: rgb(112, 112, 112);
  13230. }
  13231. .select_box1_add_img {
  13232. }
  13233. .select_box1_select {
  13234. background: #fff;
  13235. border-radius: 5px;
  13236. padding: 15px;
  13237. box-sizing: border-box;
  13238. }
  13239. .select_box2 {
  13240. }
  13241. .select_box2_title {
  13242. background: #fff;
  13243. border-radius: 5px;
  13244. padding: 5px 10px;
  13245. box-sizing: border-box;
  13246. margin-bottom: 10px;
  13247. }
  13248. .select_box2_box {
  13249. display: flex;
  13250. height: 500px;
  13251. }
  13252. .select_box2_img {
  13253. width: calc(100% - 310px);
  13254. height: 100%;
  13255. overflow: auto;
  13256. background: #fff;
  13257. border-radius: 5px;
  13258. }
  13259. .select_box2_img img {
  13260. width: 100%;
  13261. }
  13262. .select_box2_answer {
  13263. background: #fff;
  13264. margin-left: 10px;
  13265. border-radius: 5px;
  13266. width: 300px;
  13267. overflow: auto;
  13268. height: 100%;
  13269. display: flex;
  13270. flex-direction: column;
  13271. align-items: center;
  13272. padding-top: 10px;
  13273. box-sizing: border-box;
  13274. }
  13275. .select_box2_answer_box {
  13276. margin: 0 0 10px 0;
  13277. width: 85%;
  13278. }
  13279. .rate_textarea {
  13280. font: inherit;
  13281. color: currentColor;
  13282. width: 100%;
  13283. padding: 8px 14px;
  13284. display: block;
  13285. min-width: 0;
  13286. outline: none;
  13287. border: 1px solid rgba(0, 0, 0, 0.23);
  13288. border-radius: 4px;
  13289. box-sizing: border-box;
  13290. background: #fff;
  13291. margin: 0 20px 0 0;
  13292. resize: none;
  13293. }
  13294. .select_answer_title {
  13295. text-align: left;
  13296. width: 85%;
  13297. margin-bottom: 10px;
  13298. font-size: 18px;
  13299. color: #8e8e8e;
  13300. }
  13301. .mask {
  13302. background-color: rgb(0 0 0 / 30%);
  13303. /* position: fixed; */
  13304. position: absolute;
  13305. top: 0;
  13306. left: 0;
  13307. width: 100%;
  13308. height: 100%;
  13309. z-index: 90;
  13310. display: flex;
  13311. align-items: center;
  13312. justify-content: center;
  13313. }
  13314. .progressBox {
  13315. width: 300px;
  13316. height: 150px;
  13317. background: #fff;
  13318. border-radius: 10px;
  13319. box-shadow: 0 0 6px 1px #bfbfbf;
  13320. display: flex;
  13321. align-items: center;
  13322. justify-content: center;
  13323. flex-direction: column;
  13324. position: relative;
  13325. color: #6c6c6c;
  13326. }
  13327. .progressBox >>> .el-progress-bar__outer {
  13328. background-color: #d1dfff !important;
  13329. }
  13330. .progressBox .lbox {
  13331. height: 50px;
  13332. font-size: 19px;
  13333. display: flex;
  13334. align-items: center;
  13335. color: #747474;
  13336. }
  13337. .progressBox .lbox img {
  13338. width: 40px;
  13339. margin-right: 20px;
  13340. }
  13341. .closeCss {
  13342. position: absolute;
  13343. top: 8px;
  13344. right: 8px;
  13345. cursor: pointer;
  13346. width: 20px;
  13347. height: 20px;
  13348. }
  13349. .closeCss > img {
  13350. width: 100%;
  13351. height: 100%;
  13352. }
  13353. .updateTips::after {
  13354. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  13355. font-size: 14px;
  13356. margin-left: 20px;
  13357. font-weight: 400;
  13358. color: #ff3a3a;
  13359. }
  13360. .updateMask {
  13361. width: 100%;
  13362. z-index: 3;
  13363. top: 0;
  13364. position: absolute;
  13365. /* background-color: rgba(0,0,0,.3); */
  13366. }
  13367. .t_j_box {
  13368. display: flex;
  13369. }
  13370. .t_j_box span:nth-child(1) {
  13371. width: 15%;
  13372. overflow: hidden;
  13373. margin-right: 10px;
  13374. text-overflow: ellipsis;
  13375. white-space: nowrap;
  13376. }
  13377. .t_j_box span:nth-child(2) {
  13378. width: 30%;
  13379. overflow: hidden;
  13380. text-overflow: ellipsis;
  13381. margin-right: 10px;
  13382. }
  13383. .t_j_box span:nth-child(3) {
  13384. max-width: calc(55% - 20px);
  13385. overflow: hidden;
  13386. text-overflow: ellipsis;
  13387. }
  13388. .sentenBox {
  13389. background: #fff;
  13390. height: 600px;
  13391. overflow: auto;
  13392. background-image: url("../../../assets/icon/conSentences/csBg.png");
  13393. background-position: 102%;
  13394. background-repeat: no-repeat;
  13395. background-size: 60%;
  13396. }
  13397. .addSen {
  13398. background: #409efe;
  13399. width: 90px;
  13400. color: #fff;
  13401. height: 35px;
  13402. text-align: center;
  13403. line-height: 35px;
  13404. border-radius: 5px;
  13405. float: right;
  13406. margin: 10px 20px 0 0;
  13407. cursor: pointer;
  13408. }
  13409. .sentenTop {
  13410. display: flex;
  13411. flex-direction: row;
  13412. flex-wrap: nowrap;
  13413. align-items: center;
  13414. }
  13415. .sentenTop > div:nth-child(2) {
  13416. width: 300px;
  13417. margin: 0 15px;
  13418. }
  13419. .sentenTop > div:nth-child(3) {
  13420. background: #409efe;
  13421. color: #fff;
  13422. width: 65px;
  13423. height: 35px;
  13424. text-align: center;
  13425. line-height: 35px;
  13426. border-radius: 5px;
  13427. cursor: pointer;
  13428. }
  13429. .cardList {
  13430. padding: 30px 0 20px 0;
  13431. display: flex;
  13432. flex-direction: row;
  13433. flex-wrap: wrap;
  13434. align-items: center;
  13435. box-sizing: border-box;
  13436. border-bottom: 1px solid #f4f4f4;
  13437. width: 98%;
  13438. margin: 0 auto;
  13439. }
  13440. .cardBox {
  13441. display: flex;
  13442. flex-direction: row;
  13443. flex-wrap: wrap;
  13444. align-items: center;
  13445. align-content: center;
  13446. }
  13447. .isCard,
  13448. .isCard1 {
  13449. width: 140px;
  13450. height: 65px;
  13451. text-align: center;
  13452. line-height: 65px;
  13453. font-size: 20px;
  13454. cursor: pointer;
  13455. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  13456. background-size: cover;
  13457. position: relative;
  13458. z-index: 99;
  13459. }
  13460. .isCard1 {
  13461. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  13462. }
  13463. .isCard:hover .deleteWord {
  13464. display: block;
  13465. }
  13466. .isCard > div:nth-child(1),
  13467. .isCard1 > div:nth-child(1) {
  13468. white-space: nowrap;
  13469. overflow: hidden;
  13470. text-overflow: ellipsis;
  13471. width: 80%;
  13472. margin: 0 auto;
  13473. }
  13474. .card {
  13475. width: 140px;
  13476. height: 65px;
  13477. }
  13478. .card > img {
  13479. width: 100%;
  13480. height: 100%;
  13481. }
  13482. .rightCardBox {
  13483. margin: 10px 0 0 10px;
  13484. }
  13485. .rightCardBox > div:nth-child(1) {
  13486. margin-bottom: 10px;
  13487. }
  13488. .cardCss {
  13489. display: flex;
  13490. flex-direction: column;
  13491. flex-wrap: nowrap;
  13492. align-items: center;
  13493. border-bottom: 3px solid #b4c3d3;
  13494. padding: 0 0 5px 0;
  13495. margin-right: 10px;
  13496. }
  13497. .cardCss > div:nth-child(2) {
  13498. background: #5b7b9d;
  13499. color: #fff;
  13500. width: 20px;
  13501. height: 20px;
  13502. border-radius: 50%;
  13503. text-align: center;
  13504. line-height: 20px;
  13505. }
  13506. .sentenTopBox {
  13507. display: flex;
  13508. flex-direction: row;
  13509. flex-wrap: nowrap;
  13510. align-items: center;
  13511. justify-content: space-between;
  13512. padding: 55px 0 0 20px;
  13513. box-sizing: border-box;
  13514. width: 85%;
  13515. }
  13516. .stepsBottom {
  13517. width: 85%;
  13518. margin-bottom: 20px;
  13519. box-shadow: 0 0 10px 10px #f7f7f7;
  13520. background: #f7f7f7;
  13521. border-radius: 10px;
  13522. overflow: hidden;
  13523. }
  13524. .course_left {
  13525. width: 300px;
  13526. height: auto;
  13527. position: relative;
  13528. }
  13529. .stepsBottom2 {
  13530. width: 300px;
  13531. margin: 20px 0;
  13532. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  13533. /* background: #f7f7f7; */
  13534. border-radius: 10px;
  13535. overflow: hidden;
  13536. height: fit-content;
  13537. position: relative;
  13538. /* transition: all .5s; */
  13539. }
  13540. .navTop {
  13541. background: #53749b;
  13542. color: #fff;
  13543. height: 40px;
  13544. line-height: 40px;
  13545. padding-left: 15px;
  13546. font-size: 18px;
  13547. }
  13548. .navBottom {
  13549. background: #6b91b7;
  13550. height: 300px;
  13551. overflow: auto;
  13552. }
  13553. .navTask {
  13554. display: flex;
  13555. flex-direction: row;
  13556. flex-wrap: nowrap;
  13557. align-items: center;
  13558. padding: 5px 5px 5px 0;
  13559. cursor: pointer;
  13560. background: #ffffff;
  13561. width: 95%;
  13562. margin: 10px auto;
  13563. box-sizing: border-box;
  13564. border-radius: 5px;
  13565. }
  13566. .isNavTask {
  13567. /* background: #7e9ebd; */
  13568. }
  13569. .navTask > div:nth-child(1) {
  13570. background: #468fe4;
  13571. color: #fff;
  13572. width: 65px;
  13573. height: 25px;
  13574. line-height: 25px;
  13575. text-align: center;
  13576. border-radius: 5px;
  13577. margin: 0 10px 0 5px;
  13578. font-size: 14px;
  13579. }
  13580. .navTask > div:nth-child(2) {
  13581. /* color: #fff; */
  13582. /* max-width: 130px; */
  13583. width: 130px;
  13584. white-space: nowrap;
  13585. overflow: hidden;
  13586. text-overflow: ellipsis;
  13587. font-size: 15px;
  13588. }
  13589. .groupBox {
  13590. }
  13591. .groupContent + .groupContent {
  13592. margin-top: 30px;
  13593. }
  13594. .groupTitle {
  13595. font-size: 24px;
  13596. color: rgb(80, 80, 80);
  13597. margin-bottom: 20px;
  13598. }
  13599. .groupName {
  13600. display: flex;
  13601. align-items: center;
  13602. }
  13603. .groupn {
  13604. font-size: 15px;
  13605. margin-right: 10px;
  13606. }
  13607. .groupName + .groupName {
  13608. margin-top: 15px;
  13609. }
  13610. .groupBtn {
  13611. margin-left: 10px;
  13612. }
  13613. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  13614. text-align: left;
  13615. }
  13616. .radioBox > div {
  13617. margin: 10px 0 0 10px;
  13618. }
  13619. .radioBox >>> .el-radio__input,
  13620. .radioBox >>> .el-checkbox__inner {
  13621. margin-left: 10px;
  13622. }
  13623. .radioBox >>> .el-radio__label,
  13624. .radioBox >>> .el-checkbox__label {
  13625. display: flex;
  13626. align-items: center;
  13627. }
  13628. .inImg {
  13629. width: 50px;
  13630. }
  13631. .inImg > img {
  13632. width: 100%;
  13633. height: 100%;
  13634. object-fit: cover;
  13635. }
  13636. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  13637. height: auto;
  13638. }
  13639. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  13640. width: 200px;
  13641. height: 100px;
  13642. object-fit: contain;
  13643. background: unset;
  13644. }
  13645. .upCss
  13646. >>> .el-upload-list--picture
  13647. .el-upload-list__item.is-success
  13648. .el-upload-list__item-name {
  13649. display: none;
  13650. }
  13651. .tcMember + .tcMember::before {
  13652. content: "、";
  13653. }
  13654. .xzUpImg {
  13655. width: 25px;
  13656. height: 25px;
  13657. cursor: pointer;
  13658. }
  13659. .xzUpImg > img {
  13660. width: 100%;
  13661. height: 100%;
  13662. }
  13663. .closeCss {
  13664. position: absolute;
  13665. top: 8px;
  13666. right: 8px;
  13667. cursor: pointer;
  13668. width: 20px;
  13669. height: 20px;
  13670. }
  13671. .closeCss > img {
  13672. width: 100%;
  13673. height: 100%;
  13674. }
  13675. .moveBtn {
  13676. display: flex;
  13677. flex-direction: column;
  13678. align-items: flex-end;
  13679. width: 40px;
  13680. }
  13681. .timuUpImg {
  13682. display: flex;
  13683. flex-direction: row;
  13684. align-items: center;
  13685. }
  13686. .timuUpImg > div:nth-child(1) {
  13687. margin-right: 10px;
  13688. }
  13689. .timuImgBox {
  13690. margin: 10px 0;
  13691. display: flex;
  13692. flex-direction: column;
  13693. flex-wrap: wrap;
  13694. align-items: flex-start;
  13695. }
  13696. .timuImg {
  13697. width: 100px;
  13698. margin: 5px 0;
  13699. cursor: pointer;
  13700. position: relative;
  13701. }
  13702. .timuImg:hover .deleteWord {
  13703. display: block;
  13704. }
  13705. .deleteWord {
  13706. width: 25px;
  13707. height: 25px;
  13708. position: absolute;
  13709. right: -5px;
  13710. top: -5px;
  13711. cursor: pointer;
  13712. display: none;
  13713. }
  13714. .timuImg > img,
  13715. .deleteWord > img {
  13716. width: 100%;
  13717. height: 100%;
  13718. object-fit: cover;
  13719. }
  13720. .e_add_delete {
  13721. cursor: pointer;
  13722. margin-left: 10px;
  13723. }
  13724. .pType_box {
  13725. margin-top: 30px;
  13726. align-items: flex-end;
  13727. }
  13728. .noneBox {
  13729. height: 100%;
  13730. width: 100%;
  13731. display: flex;
  13732. align-items: center;
  13733. justify-content: center;
  13734. margin-top: 150px;
  13735. }
  13736. .noneBox > img {
  13737. width: 300px;
  13738. }
  13739. </style>