addCourse.vue 346 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299
  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 separator-class="el-icon-arrow-right" style="margin-top: 15px">
  12. <el-breadcrumb-item :to="{
  13. path:
  14. '/course?userid=' +
  15. userid +
  16. '&oid=' +
  17. oid +
  18. '&org=' +
  19. org +
  20. '&role=' +
  21. role,
  22. }">课程管理</el-breadcrumb-item>
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">添加课程</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. </div>
  29. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  30. <div class="updateMask" :style="{
  31. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  32. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  33. <div class="whiteBg">
  34. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid && role != '1' }">
  35. 课程基本信息
  36. </div>
  37. <div class="basic_box">
  38. <div class="big_box">
  39. <div class="left_first">
  40. <div>
  41. <div>
  42. <div class="bInfo_title" style="margin-bottom: 15px">
  43. <!-- <span style="color: red">*</span> -->
  44. 课程名称
  45. </div>
  46. <div style="display: flex; margin-right: 20px">
  47. <img src="../../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  48. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" />
  49. </div>
  50. </div>
  51. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  52. <span>类型</span>
  53. <!-- 学科+ 主题+ 未来+ -->
  54. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  55. style="display: flex; align-items: center">
  56. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  57. <el-radio :label="item.name">{{
  58. item.name
  59. }}</el-radio>
  60. </div>
  61. </el-radio-group>
  62. </div>
  63. <div class="both">
  64. <div class="choose">
  65. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  66. <span v-if="CourseTypeJson[item.id].length > 0 &&
  67. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  68. ? pTypeCheck.indexOf(item.id) != -1
  69. : true)
  70. ">{{ item.name }}</span>
  71. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  72. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  73. ? pTypeCheck.indexOf(item.id) != -1
  74. : true)
  75. ">
  76. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  77. item1.name }}</el-checkbox>
  78. </el-checkbox-group>
  79. <!-- <div
  80. v-else
  81. style="font-size: 14px; margin-left: -8px"
  82. >
  83. 暂无
  84. </div> -->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="whiteBg" style="border-radius: 0">
  94. <div class="right_first">
  95. <div class="right_title">上传封面</div>
  96. <div style="
  97. padding: 0 0 50px 20px;
  98. display: flex;
  99. align-items: baseline;
  100. justify-content: flex-start;
  101. margin: 0 auto;
  102. ">
  103. <div>
  104. <div class="bInfo_title" style="margin-top: 0 !important">
  105. 课程封面
  106. </div>
  107. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  108. <img src="../../../assets/icon/addPoster.png" alt="" />
  109. </div>
  110. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  111. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  112. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  113. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  114. <i class="el-icon-plus"></i>
  115. </el-upload>
  116. </div>
  117. <div style="
  118. display: flex;
  119. flex-flow: row nowrap;
  120. flex-direction: row;
  121. flex-wrap: wrap;
  122. align-items: baseline;
  123. margin: 0 30px;
  124. ">
  125. <div style="margin: 0 30px 0 0; width: 150px">
  126. <div class="bInfo_title">添加班级</div>
  127. <div class="addPeople" @click="(dialogVisibleClass = true),
  128. (classSearch = ''),
  129. getClass()
  130. ">
  131. 添加班级
  132. </div>
  133. <div v-if="checkboxList2.length" style="
  134. max-width: 100%;
  135. word-break: break-all;
  136. overflow: hidden;
  137. margin-top: 10px;
  138. font-size: 14px;
  139. color: #6e6e6e;
  140. ">
  141. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2"
  142. :key="tcIndex">{{ getClassC(tc) }}</span>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <div style="width: 95%; padding: 15px 0px 15px 20px">
  148. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="padding-bottom: 30px"></el-switch>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  153. <div class="right_title">课程简要描述</div>
  154. <div style="width: 95%; padding: 15px 0px 15px 20px">
  155. <div style="width: 55%">
  156. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  157. '\n' +
  158. '2、课程学习知识目标' +
  159. '\n' +
  160. '3、课程学习技能目标'
  161. "></textarea>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  166. <div class="right_title">
  167. <span>上传课程内容</span>
  168. <el-button type="primary" @click="pasteTask" size="small">智能粘贴</el-button>
  169. </div>
  170. <div style=" padding: 0 0 50px 20px;display: flex;">
  171. <div class="course_left">
  172. <div class="stepsBottom2">
  173. <div class="navTop">辅助导航</div>
  174. <div class="navBottom">
  175. <div class="navTask" :class="{
  176. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  177. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  178. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  179. <div>任务{{ tIndex + 1 }}</div>
  180. <div>
  181. <el-tooltip effect="light" :content="t.task" placement="top">
  182. <span>{{ t.task }}</span>
  183. </el-tooltip>
  184. </div>
  185. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  186. <div class="chapter_upload_up" style="width: 15px; height: 15px"
  187. @click.stop="taskMove(1, tIndex)">
  188. </div>
  189. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  190. @click.stop="taskMove(2, tIndex)"></div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="basic_box2">
  197. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  198. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  199. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  200. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  201. <div v-if="unitJson[unitIndex].easy != 1">
  202. <div :style="{
  203. marginBottom:
  204. unitJson[unitIndex].easy == 3 ||
  205. (unitJson[unitIndex].easy == 5 &&
  206. itemTask.taskType == 1)
  207. ? '75px'
  208. : '0',
  209. }">
  210. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  211. 任务{{ itemTaskIndex + 1 }}
  212. </div>
  213. <div class="chapter_contentbox" style="
  214. flex-direction: row;
  215. justify-content: flex-start;
  216. align-items: center;
  217. ">
  218. <div style="
  219. border-left: 6px solid #5699e8;
  220. height: 20px;
  221. padding-left: 10px;
  222. line-height: 22px;
  223. ">
  224. 任务名称
  225. </div>
  226. <div>
  227. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  228. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  229. itemTaskIndex
  230. ].task
  231. " />
  232. </div>
  233. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  234. style="position: absolute; right: 55px">
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div style="padding: 25px 0 10px 30px;">
  240. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  241. itemTaskIndex
  242. ].taskDetail
  243. " @change="change"></editor-bar> -->
  244. <textarea
  245. rows="2"
  246. class="binfo_input"
  247. placeholder="请输入任务描述"
  248. cols
  249. style="width: 90% !important; resize:none"
  250. v-model="
  251. unitJson[unitIndex].chapterInfo[0].taskJson[
  252. itemTaskIndex
  253. ].taskDetail
  254. "
  255. ></textarea>
  256. </div>
  257. <div class="basic_box" style="
  258. margin: 0;
  259. min-height: 0;
  260. width: 90% !important;
  261. padding-top: 10px !important;
  262. ">
  263. <div style="
  264. display: flex;
  265. margin: 0 0 20px 0;
  266. flex-direction: row;
  267. justify-content: flex-start;
  268. align-items: center;
  269. ">
  270. <div class="lineTitle">学习内容</div>
  271. <div class="line"></div>
  272. </div>
  273. <div>
  274. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  275. itemTask.chapterData.length == 0
  276. " style="height: 185px"></div>
  277. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  278. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  279. @click="getChapterData(
  280. $event,
  281. unitIndex,
  282. index,
  283. index1,
  284. item1.type
  285. )
  286. ">
  287. <div class="chapter_upload_t" style="width: 100%"></div>
  288. <div class="chapter_upload_o" style="
  289. position: relative;
  290. display: flex;
  291. align-items: center;
  292. ">
  293. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  294. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  295. <div v-if="item1.type == 3 ||
  296. item1.type == 12 ||
  297. item1.type == 6 ||
  298. item1.type == 7
  299. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  300. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  301. </div>
  302. <div class="chapter_upload_ic" style="
  303. cursor: pointer;
  304. position: absolute;
  305. width: 45px;
  306. right: 0;
  307. top: 0;
  308. ">
  309. <div class="chapter_upload_ic_l"></div>
  310. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  311. $event,
  312. unitIndex,
  313. index,
  314. index1,
  315. itemTaskIndex
  316. )
  317. ">
  318. <div></div>
  319. </div>
  320. </div>
  321. <div class="chapter_upload_n">
  322. <input v-if="item1.type == 2 ||
  323. item1.type == 3 ||
  324. item1.type == 12 ||
  325. item1.type == 7
  326. " :placeholder="item1.name" @change="updataVideoT(
  327. $event,
  328. unitIndex,
  329. chapterIndex,
  330. index1
  331. )
  332. " style="
  333. border: none;
  334. outline: none;
  335. width: 80%;
  336. minwidth: 215px;
  337. z-index: 99;
  338. font-size: 14px;
  339. white-space: nowrap;
  340. overflow: hidden;
  341. text-overflow: ellipsis;
  342. " />
  343. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  344. border: none;
  345. outline: none;
  346. width: 80%;
  347. white-space: nowrap;
  348. overflow: hidden;
  349. text-overflow: ellipsis;
  350. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  351. <input :placeholder="item1.title ? item1.title : '链接'
  352. " v-if="item1.type == 8" style="
  353. border: none;
  354. outline: none;
  355. width: 80%;
  356. white-space: nowrap;
  357. overflow: hidden;
  358. text-overflow: ellipsis;
  359. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  360. <div class="chapter_upload_ud" style="z-index: 99">
  361. <div class="chapter_upload_up" @click="upCd(
  362. $event,
  363. unitIndex,
  364. index,
  365. itemTaskIndex,
  366. index1
  367. )
  368. "></div>
  369. <div class="chapter_upload_down" @click="downCd(
  370. $event,
  371. unitIndex,
  372. index,
  373. itemTaskIndex,
  374. index1
  375. )
  376. "></div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <div class="add_info_box">
  384. <button class="info_btn" @click="addImg($event)">
  385. 添加文件
  386. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, 0)
  387. " />
  388. </button>
  389. <!-- <button class="info_btn" @click="addImg($event)">
  390. 添加视频
  391. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  392. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  393. " />
  394. </button>
  395. <button class="info_btn" @click="addImg($event)">
  396. 添加文档
  397. <input type="file"
  398. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  399. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  400. " />
  401. </button> -->
  402. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  403. 添加图文
  404. </button>
  405. <button class="info_btn" @click="openLine(itemTaskIndex)">
  406. 添加链接
  407. </button>
  408. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  409. 嵌入代码
  410. </button>
  411. <button class="info_btn" @click="openSource(itemTaskIndex)">
  412. 添加资源
  413. </button>
  414. <!-- <button class="info_btn" @click="addImg($event)">
  415. 其他附件
  416. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  417. " />
  418. </button> -->
  419. </div>
  420. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  421. itemTaskIndex
  422. ].proVisible
  423. " class="mask">
  424. <div class="progressBox">
  425. <!-- <div id="closePro" class="closeCss">
  426. <img src="../../../../assets/icon/close.png" alt />
  427. </div> -->
  428. <div class="lbox">
  429. <img src="../../../assets/loading.gif" />上传中,请稍后
  430. </div>
  431. <div style="margin-bottom: 10px">
  432. <span>{{
  433. unitJson[unitIndex].chapterInfo[0].taskJson[
  434. itemTaskIndex
  435. ].isFinishSize
  436. }}M</span>
  437. /
  438. <span>{{
  439. unitJson[unitIndex].chapterInfo[0].taskJson[
  440. itemTaskIndex
  441. ].isAllSize
  442. }}M</span>
  443. </div>
  444. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  445. itemTaskIndex
  446. ].progress
  447. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  448. itemTaskIndex
  449. ].progress
  450. : 0
  451. " style="width: 80%"></el-progress>
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  457. <div>
  458. <img src="../../../assets/icon/addHw.png" alt />
  459. <span>添加任务</span>
  460. </div>
  461. </div>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. <div class="rightBox" v-if="this.steps == 2">
  468. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  469. <div class="right_title" style="border: none; margin: 0; padding: 0">
  470. 请选择合适的课程模板
  471. </div>
  472. <div class="wordbox">
  473. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  474. <div class="wordPic">
  475. <img src="../../../assets/icon/wordMub.png" alt />
  476. </div>
  477. <div style="
  478. margin-top: 10px;
  479. line-height: 19px;
  480. overflow: hidden;
  481. text-overflow: ellipsis;
  482. white-space: nowrap;
  483. padding: 0 20px;
  484. ">
  485. {{ aa.title }}
  486. </div>
  487. </div>
  488. <div class="wordTeacher" @click="checkTemplate2()">
  489. <div class="wordPic">
  490. <img src="../../../assets/icon/wordMub.png" alt />
  491. </div>
  492. <div style="
  493. margin-top: 10px;
  494. line-height: 19px;
  495. overflow: hidden;
  496. text-overflow: ellipsis;
  497. white-space: nowrap;
  498. padding: 0 20px;
  499. ">
  500. 任务模式
  501. </div>
  502. </div>
  503. <div class="wordTeacher" @click="checkTemplate3()">
  504. <div class="wordPic">
  505. <img src="../../../assets/icon/wordMub.png" alt />
  506. </div>
  507. <div style="
  508. margin-top: 10px;
  509. line-height: 19px;
  510. overflow: hidden;
  511. text-overflow: ellipsis;
  512. white-space: nowrap;
  513. padding: 0 20px;
  514. ">
  515. 简易模式
  516. </div>
  517. </div>
  518. <div class="wordTeacher" @click="pasteStage()">
  519. <div class="wordPic">
  520. <img src="../../../assets/icon/wordMub.png" alt />
  521. </div>
  522. <div style="
  523. margin-top: 10px;
  524. line-height: 19px;
  525. overflow: hidden;
  526. text-overflow: ellipsis;
  527. white-space: nowrap;
  528. padding: 0 20px;
  529. ">
  530. 智能粘贴模式
  531. </div>
  532. </div>
  533. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  534. <div class="wordPic">
  535. <img src="../../../assets/icon/wordMub.png" alt />
  536. </div>
  537. <div style="
  538. margin-top: 10px;
  539. line-height: 19px;
  540. overflow: hidden;
  541. text-overflow: ellipsis;
  542. white-space: nowrap;
  543. padding: 0 20px;
  544. ">
  545. 未来小学课程设计
  546. </div>
  547. </div> -->
  548. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  549. <div class="wordPic">
  550. <img src="../../../assets/icon/wordMub.png" alt />
  551. </div>
  552. <div style="
  553. margin-top: 10px;
  554. line-height: 19px;
  555. overflow: hidden;
  556. text-overflow: ellipsis;
  557. white-space: nowrap;
  558. padding: 0 20px;
  559. ">
  560. 我的课程
  561. </div>
  562. </div> -->
  563. </div>
  564. </div>
  565. </div>
  566. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  567. <div class="basic_box">
  568. <div style="
  569. display: flex;
  570. flex-direction: row;
  571. align-items: center;
  572. position: sticky;
  573. top: 0;
  574. background: #fff;
  575. z-index: 99;
  576. width: 100%;
  577. padding: 0 20px 0 20px;
  578. box-sizing: border-box;
  579. ">
  580. <div class="cru_selectBox">
  581. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  582. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  583. <!-- item.dyName ? item.dyName : -->
  584. {{
  585. "第" + (index + 1) + "阶段"
  586. }}
  587. </div>
  588. <img src="../../../assets/line.png" class="cru_line" :style="{
  589. left: offsetLetfPx + 'px',
  590. }" />
  591. </div>
  592. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  593. !(unitJson[unitJson.length - 1].easy == 6)
  594. ">
  595. <img src="../../../assets/icon/add.png" alt />
  596. </div>
  597. </div>
  598. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  599. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  600. <div>
  601. <div class="chapter_contentbox">
  602. <div>第{{ unitIndex + 1 }}阶段</div>
  603. <div>
  604. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  605. </div>
  606. <div v-if="unitJson.length > 1 &&
  607. !(unitJson[unitJson.length - 1].easy == 4) &&
  608. !(unitJson[unitJson.length - 1].easy == 6)
  609. " @click="deleteUnit(unitIndex)"></div>
  610. </div>
  611. </div>
  612. <div v-if="!unitJson[unitIndex].easy" style="
  613. margin: 50px 0px 10px;
  614. font-size: 1.5em;
  615. font-weight: 700;
  616. color: #0f7eff;
  617. ">
  618. 添加任务
  619. </div>
  620. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  621. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  622. <div v-if="unitJson[unitIndex].easy != 1">
  623. <div :style="{
  624. marginBottom:
  625. unitJson[unitIndex].easy == 3 ||
  626. (unitJson[unitIndex].easy == 5 &&
  627. itemTask.taskType == 1)
  628. ? '75px'
  629. : '0',
  630. }">
  631. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  632. 任务{{ itemTaskIndex + 1 }}
  633. </div>
  634. <div class="chapter_contentbox" style="
  635. flex-direction: row;
  636. justify-content: flex-start;
  637. align-items: center;
  638. ">
  639. <div style="
  640. border-left: 6px solid #5699e8;
  641. height: 20px;
  642. padding-left: 10px;
  643. line-height: 22px;
  644. ">
  645. 任务名称
  646. </div>
  647. <div>
  648. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  649. itemTaskIndex
  650. ].task
  651. " />
  652. </div>
  653. <div class="remove" v-if="item.taskJson.length > 1 &&
  654. (!unitJson[unitIndex].easy ||
  655. unitJson[unitIndex].easy == 6)
  656. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  657. </div>
  658. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  659. display: flex;
  660. margin: 0 0 20px 0;
  661. flex-direction: row;
  662. justify-content: flex-start;
  663. align-items: center;
  664. width: 70.5% !important;
  665. padding-top: 30px;
  666. ">
  667. <div class="lineTitle">任务描述</div>
  668. <div class="line"></div>
  669. </div>
  670. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  671. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  672. itemTaskIndex
  673. ].taskDetail
  674. " @change="change"></editor-bar>
  675. <!-- <textarea
  676. rows="6"
  677. class="binfo_input"
  678. placeholder="请输入任务描述"
  679. cols
  680. style="width: 70.5% !important; height: 120px"
  681. v-model="
  682. unitJson[unitIndex].chapterInfo[0].taskJson[
  683. itemTaskIndex
  684. ].taskDetail
  685. "
  686. ></textarea>-->
  687. </div>
  688. </div>
  689. </div>
  690. <div v-if="!unitJson[unitIndex].easy ||
  691. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  692. " class="basic_box" style="
  693. margin: 0;
  694. min-height: 0;
  695. width: 90% !important;
  696. padding-top: 10px !important;
  697. ">
  698. <div style="
  699. display: flex;
  700. margin: 0 0 20px 0;
  701. flex-direction: row;
  702. justify-content: flex-start;
  703. align-items: center;
  704. ">
  705. <div class="lineTitle">学习内容</div>
  706. <div class="line"></div>
  707. </div>
  708. <div>
  709. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  710. itemTask.chapterData.length == 0
  711. " style="height: 185px"></div>
  712. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  713. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  714. @click="getChapterData(
  715. $event,
  716. unitIndex,
  717. index,
  718. index1,
  719. item1.type
  720. )
  721. ">
  722. <div class="chapter_upload_t" style="width: 100%"></div>
  723. <div class="chapter_upload_o" style="
  724. position: relative;
  725. display: flex;
  726. align-items: center;
  727. ">
  728. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  729. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  730. <div v-if="item1.type == 3 ||
  731. item1.type == 12 ||
  732. item1.type == 6 ||
  733. item1.type == 7
  734. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  735. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  736. </div>
  737. <div class="chapter_upload_ic" style="
  738. cursor: pointer;
  739. position: absolute;
  740. width: 45px;
  741. right: 0;
  742. top: 0;
  743. ">
  744. <div class="chapter_upload_ic_l"></div>
  745. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  746. $event,
  747. unitIndex,
  748. index,
  749. index1,
  750. itemTaskIndex
  751. )
  752. ">
  753. <div></div>
  754. </div>
  755. </div>
  756. <div class="chapter_upload_n">
  757. <input v-if="item1.type == 2 ||
  758. item1.type == 3 ||
  759. item1.type == 12 ||
  760. item1.type == 7
  761. " :placeholder="item1.name" @change="updataVideoT(
  762. $event,
  763. unitIndex,
  764. chapterIndex,
  765. index1
  766. )
  767. " style="
  768. border: none;
  769. outline: none;
  770. width: 80%;
  771. minwidth: 215px;
  772. z-index: 99;
  773. font-size: 14px;
  774. white-space: nowrap;
  775. overflow: hidden;
  776. text-overflow: ellipsis;
  777. " />
  778. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  779. border: none;
  780. outline: none;
  781. width: 80%;
  782. white-space: nowrap;
  783. overflow: hidden;
  784. text-overflow: ellipsis;
  785. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  786. <input :placeholder="item1.title ? item1.title : '链接'
  787. " v-if="item1.type == 8" style="
  788. border: none;
  789. outline: none;
  790. width: 80%;
  791. white-space: nowrap;
  792. overflow: hidden;
  793. text-overflow: ellipsis;
  794. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  795. <div class="chapter_upload_ud" style="z-index: 99">
  796. <div class="chapter_upload_up" @click="upCd(
  797. $event,
  798. unitIndex,
  799. index,
  800. itemTaskIndex,
  801. index1
  802. )
  803. "></div>
  804. <div class="chapter_upload_down" @click="downCd(
  805. $event,
  806. unitIndex,
  807. index,
  808. itemTaskIndex,
  809. index1
  810. )
  811. "></div>
  812. </div>
  813. </div>
  814. </div>
  815. </div>
  816. </div>
  817. </div>
  818. <div class="add_info_box">
  819. <button class="info_btn" @click="addImg($event)">
  820. 添加文件
  821. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, 0)
  822. " />
  823. </button>
  824. <!-- <button class="info_btn" @click="addImg($event)">
  825. 添加视频
  826. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  827. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  828. " />
  829. </button>
  830. <button class="info_btn" @click="addImg($event)">
  831. 添加文档
  832. <input type="file"
  833. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  834. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  835. " />
  836. </button> -->
  837. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  838. 添加图文
  839. </button>
  840. <button class="info_btn" @click="openLine(itemTaskIndex)">
  841. 添加链接
  842. </button>
  843. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  844. 嵌入代码
  845. </button>
  846. <button class="info_btn" @click="openSource(itemTaskIndex)">
  847. 添加资源
  848. </button>
  849. <!-- <button class="info_btn" @click="addImg($event)">
  850. 其他附件
  851. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  852. " />
  853. </button> -->
  854. </div>
  855. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  856. itemTaskIndex
  857. ].proVisible
  858. " class="mask">
  859. <div class="progressBox">
  860. <!-- <div id="closePro" class="closeCss">
  861. <img src="../../../../assets/icon/close.png" alt />
  862. </div> -->
  863. <div class="lbox">
  864. <img src="../../../assets/loading.gif" />上传中,请稍后
  865. </div>
  866. <div style="margin-bottom: 10px">
  867. <span>{{
  868. unitJson[unitIndex].chapterInfo[0].taskJson[
  869. itemTaskIndex
  870. ].isFinishSize
  871. }}M</span>
  872. /
  873. <span>{{
  874. unitJson[unitIndex].chapterInfo[0].taskJson[
  875. itemTaskIndex
  876. ].isAllSize
  877. }}M</span>
  878. </div>
  879. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  880. itemTaskIndex
  881. ].progress
  882. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  883. itemTaskIndex
  884. ].progress
  885. : 0
  886. " style="width: 80%"></el-progress>
  887. </div>
  888. </div>
  889. </div>
  890. <div v-if="unitJson[unitIndex].easy == 1 ||
  891. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  892. " class="basic_box" style="
  893. margin: 0 auto;
  894. min-height: 0;
  895. width: 95% !important;
  896. padding: 20px 10px 10px;
  897. ">
  898. <div>
  899. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  900. itemTask.chapterData.length == 0
  901. " style="height: 185px"></div>
  902. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  903. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  904. <div class="chapter_upload" @click="getChapterData(
  905. $event,
  906. unitIndex,
  907. index,
  908. index1,
  909. item1.type
  910. )
  911. ">
  912. <div class="chapter_upload_t" style="width: 100%"></div>
  913. <div class="chapter_upload_o" style="
  914. position: relative;
  915. display: flex;
  916. align-items: center;
  917. ">
  918. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  919. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  920. <div v-if="item1.type == 3 ||
  921. item1.type == 6 ||
  922. item1.type == 7
  923. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  924. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  925. </div>
  926. <div class="chapter_upload_ic" style="
  927. cursor: pointer;
  928. position: absolute;
  929. width: 45px;
  930. right: 0;
  931. top: 0;
  932. ">
  933. <div class="chapter_upload_ic_l"></div>
  934. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  935. $event,
  936. unitIndex,
  937. index,
  938. index1,
  939. itemTaskIndex
  940. )
  941. ">
  942. <div></div>
  943. </div>
  944. </div>
  945. <div class="chapter_upload_n">
  946. <span style="
  947. font-size: 14px;
  948. color: rgb(109, 109, 109);
  949. height: 14px;
  950. line-height: 12px;
  951. " v-if="item1.type == 2 ||
  952. item1.type == 3 ||
  953. item1.type == 7
  954. ">{{ item1.text }}-</span>
  955. <input v-if="item1.type == 2 ||
  956. item1.type == 3 ||
  957. item1.type == 7
  958. " :placeholder="item1.name" @change="updataVideoT(
  959. $event,
  960. unitIndex,
  961. chapterIndex,
  962. index1
  963. )
  964. " style="
  965. border: none;
  966. outline: none;
  967. width: 80%;
  968. minwidth: 215px;
  969. z-index: 99;
  970. font-size: 14px;
  971. white-space: nowrap;
  972. overflow: hidden;
  973. text-overflow: ellipsis;
  974. " />
  975. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  976. border: none;
  977. outline: none;
  978. width: 80%;
  979. white-space: nowrap;
  980. overflow: hidden;
  981. text-overflow: ellipsis;
  982. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  983. <input :placeholder="item1.title ? item1.title : '链接'
  984. " v-if="item1.type == 8" style="
  985. border: none;
  986. outline: none;
  987. width: 80%;
  988. white-space: nowrap;
  989. overflow: hidden;
  990. text-overflow: ellipsis;
  991. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  992. <div class="chapter_upload_ud" style="z-index: 99">
  993. <div class="chapter_upload_up" @click="upCd(
  994. $event,
  995. unitIndex,
  996. index,
  997. itemTaskIndex,
  998. index1
  999. )
  1000. "></div>
  1001. <div class="chapter_upload_down" @click="downCd(
  1002. $event,
  1003. unitIndex,
  1004. index,
  1005. itemTaskIndex,
  1006. index1
  1007. )
  1008. "></div>
  1009. </div>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. </div>
  1014. </div>
  1015. </div>
  1016. <div class="add_info_box" style="margin: 10px 0 0">
  1017. <button class="info_btn" @click="addImg($event)">
  1018. <span style="color: red">*</span>
  1019. 教学设计
  1020. <input type="file"
  1021. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1022. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1023. $event,
  1024. unitIndex,
  1025. 3,
  1026. itemTaskIndex,
  1027. '教学设计'
  1028. )
  1029. " />
  1030. </button>
  1031. <button class="info_btn" @click="addImg($event)">
  1032. <span style="color: red">*</span>
  1033. 教学课件
  1034. <input type="file"
  1035. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1036. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1037. $event,
  1038. unitIndex,
  1039. 3,
  1040. itemTaskIndex,
  1041. '教学课件'
  1042. )
  1043. " />
  1044. </button>
  1045. <button class="info_btn" @click="addImg($event)">
  1046. 教学视频
  1047. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1048. v-if="inputShow" @change="beforeUpload3(
  1049. $event,
  1050. unitIndex,
  1051. 2,
  1052. itemTaskIndex,
  1053. '教学视频'
  1054. )
  1055. " />
  1056. </button>
  1057. <button class="info_btn" @click="addImg($event)">
  1058. 教学音频
  1059. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="beforeUpload3(
  1060. $event,
  1061. unitIndex,
  1062. 2,
  1063. itemTaskIndex,
  1064. '教学音频'
  1065. )
  1066. " />
  1067. </button>
  1068. <button class="info_btn" @click="addImg($event)">
  1069. 学习单
  1070. <input type="file"
  1071. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1072. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1073. $event,
  1074. unitIndex,
  1075. 3,
  1076. itemTaskIndex,
  1077. '学习单'
  1078. )
  1079. " />
  1080. </button>
  1081. </div>
  1082. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1083. itemTaskIndex
  1084. ].proVisible
  1085. " class="mask">
  1086. <div class="progressBox">
  1087. <!-- <div id="closePro" class="closeCss">
  1088. <img src="../../../../assets/icon/close.png" alt />
  1089. </div> -->
  1090. <div class="lbox">
  1091. <img src="../../../assets/loading.gif" />上传中,请稍后
  1092. </div>
  1093. <div style="margin-bottom: 10px">
  1094. <span>{{
  1095. unitJson[unitIndex].chapterInfo[0].taskJson[
  1096. itemTaskIndex
  1097. ].isFinishSize
  1098. }}M</span>
  1099. /
  1100. <span>{{
  1101. unitJson[unitIndex].chapterInfo[0].taskJson[
  1102. itemTaskIndex
  1103. ].isAllSize
  1104. }}M</span>
  1105. </div>
  1106. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1107. itemTaskIndex
  1108. ].progress
  1109. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1110. itemTaskIndex
  1111. ].progress
  1112. : 0
  1113. " style="width: 80%"></el-progress>
  1114. </div>
  1115. </div>
  1116. </div>
  1117. <div v-if="unitJson[unitIndex].easy != 3 &&
  1118. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1119. " style="
  1120. flex-direction: row;
  1121. justify-content: flex-start;
  1122. align-items: center;
  1123. padding: 0 0 0 30px;
  1124. paddint-top: 10px !important;
  1125. ">
  1126. <div style="
  1127. display: flex;
  1128. flex-direction: row;
  1129. align-items: center;
  1130. margin-bottom: 20px;
  1131. ">
  1132. <div class="lineTitle">
  1133. {{
  1134. !unitJson[unitIndex].easy ||
  1135. unitJson[unitIndex].easy == 6 ||
  1136. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1137. ? "练习内容"
  1138. : "评价内容"
  1139. }}
  1140. </div>
  1141. <div class="line" style="width: 90%"></div>
  1142. </div>
  1143. </div>
  1144. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1145. " class="toolChoose" style="padding: 0 0 0 30px">
  1146. <div class="tools">
  1147. <div class="leftTools" style="
  1148. width: 95%;
  1149. padding: 0 0 15px 0;
  1150. border-bottom: 1px solid #efefef;
  1151. margin-bottom: 15px;
  1152. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1153. <div>
  1154. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1155. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1156. </div>
  1157. <div style="
  1158. display: flex;
  1159. flex-direction: row;
  1160. align-items: baseline;
  1161. flex-wrap: nowrap;
  1162. justify-content: flex-start;
  1163. position: relative;
  1164. ">
  1165. <div style="margin-right: 20px; font-weight: bold">
  1166. 步骤 {{ toolIndex + 1 }} :
  1167. </div>
  1168. <div class="chooseWho">
  1169. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1170. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1171. 互动类
  1172. </div>
  1173. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1174. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1175. 思维类
  1176. </div>
  1177. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1178. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1179. 评价类
  1180. </div>
  1181. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1182. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1183. 编程类
  1184. </div>
  1185. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1186. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1187. 学科类
  1188. </div>
  1189. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1190. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1191. 其他
  1192. </div>
  1193. </div>
  1194. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1195. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1196. </div>
  1197. <div style="min-height: 163px">
  1198. <div class="toolSort" v-if="itemTool.toolType == 0">
  1199. <!-- <div class="tool">
  1200. <div
  1201. class="whiteBIcon"
  1202. @click="addTools(8, itemTaskIndex, toolIndex)"
  1203. >
  1204. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1205. <div style="margin: 5px 0">素材库</div>
  1206. </div>
  1207. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1208. <img
  1209. src="../../../assets/icon/checkNo.png"
  1210. alt
  1211. v-if="itemTool.tool.indexOf(8) == -1"
  1212. />
  1213. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1214. alt /><span>已选择</span></div>
  1215. </div>
  1216. </div>-->
  1217. <!-- <div class="tool">
  1218. <div
  1219. class="whiteBIcon"
  1220. @click="addTools(17, itemTaskIndex, toolIndex)"
  1221. >
  1222. <img
  1223. src="../../../assets/icon/secondToolList/library.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">学习资料</div>
  1227. </div>
  1228. <div
  1229. class="check"
  1230. @click="addTools(17, itemTaskIndex, toolIndex)"
  1231. >
  1232. <img
  1233. src="../../../assets/icon/checkNo.png"
  1234. alt
  1235. v-if="itemTool.tool.indexOf(17) == -1"
  1236. />
  1237. <img
  1238. src="../../../assets/icon/checkedIs.png"
  1239. alt
  1240. v-else
  1241. />
  1242. </div>10
  1243. </div> -->
  1244. <div class="tool">
  1245. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1246. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1247. <div style="margin: 5px 0">倒计时</div>
  1248. </div>
  1249. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1250. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1251. <div class="checkDiv" v-else>
  1252. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. <div class="tool">
  1257. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1258. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1259. <div style="margin: 5px 0">学生分组</div>
  1260. </div>
  1261. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1262. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1263. <div class="checkDiv" v-else>
  1264. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1265. </div>
  1266. </div>
  1267. </div>
  1268. <div class="tool">
  1269. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1270. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1271. <div style="margin: 5px 0">交互视频</div>
  1272. </div>
  1273. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1274. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1275. <div class="checkDiv" v-else>
  1276. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1277. </div>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. <div class="toolSort" v-if="itemTool.toolType == 1">
  1282. <div class="tool">
  1283. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1284. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1285. <div style="margin: 5px 0">思维网格</div>
  1286. </div>
  1287. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1288. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1289. <div class="checkDiv" v-else>
  1290. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1291. </div>
  1292. </div>
  1293. </div>
  1294. <div class="tool">
  1295. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1296. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1297. <div style="margin: 5px 0">电子白板</div>
  1298. </div>
  1299. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1300. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1301. <div class="checkDiv" v-else>
  1302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. <!-- <div class="tool">
  1307. <div
  1308. class="whiteBIcon"
  1309. @click="addTools(2, itemTaskIndex, toolIndex)"
  1310. >
  1311. <img
  1312. src="../../../assets/icon/secondToolList/note.png"
  1313. alt
  1314. />
  1315. <div style="margin: 5px 0">便签</div>
  1316. </div>
  1317. <div
  1318. class="check"
  1319. @click="addTools(2, itemTaskIndex, toolIndex)"
  1320. >
  1321. <img
  1322. src="../../../assets/icon/checkNo.png"
  1323. alt
  1324. v-if="itemTool.tool.indexOf(2) == -1"
  1325. />
  1326. <div class="checkDiv" v-else>
  1327. <img
  1328. src="../../../assets/icon/checkedIs.png"
  1329. alt
  1330. /><span>已选择</span>
  1331. </div>
  1332. </div>
  1333. </div> -->
  1334. <!-- <div class="tool">
  1335. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1336. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1337. <div style="margin: 5px 0">协同文档</div>
  1338. </div>
  1339. <div
  1340. class="check"
  1341. @click="addTools(6, itemTaskIndex, toolIndex)"
  1342. >
  1343. <img
  1344. src="../../../assets/icon/checkNo.png"
  1345. alt
  1346. v-if="itemTool.tool.indexOf(6) == -1"
  1347. />
  1348. <div class="checkDiv" v-else>
  1349. <img
  1350. src="../../../assets/icon/checkedIs.png"
  1351. alt
  1352. /><span>已选择</span>
  1353. </div>
  1354. </div>
  1355. </div> -->
  1356. <div class="tool">
  1357. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1358. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1359. <div style="margin: 5px 0">文档</div>
  1360. </div>
  1361. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1362. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1363. <div class="checkDiv" v-else>
  1364. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1365. </div>
  1366. </div>
  1367. </div>
  1368. <div class="tool">
  1369. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1370. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1371. <div style="margin: 5px 0">思维导图</div>
  1372. </div>
  1373. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1374. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1375. <div class="checkDiv" v-else>
  1376. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. <div class="tool">
  1381. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1382. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1383. <div style="margin: 5px 0">表格</div>
  1384. </div>
  1385. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1386. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1387. <div class="checkDiv" v-else>
  1388. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1389. </div>
  1390. </div>
  1391. </div>
  1392. </div>
  1393. <div class="toolSort" v-if="itemTool.toolType == 2">
  1394. <!-- <div class="tool">
  1395. <div
  1396. class="whiteBIcon"
  1397. @click="addTools(5, itemTaskIndex, toolIndex)"
  1398. >
  1399. <img
  1400. src="../../../assets/icon/thirdToolList/score.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">量规评分</div>
  1404. </div>
  1405. <div
  1406. class="check"
  1407. @click="addTools(5, itemTaskIndex, toolIndex)"
  1408. >
  1409. <img
  1410. src="../../../assets/icon/checkNo.png"
  1411. alt
  1412. v-if="itemTool.tool.indexOf(5) == -1"
  1413. />
  1414. <img
  1415. src="../../../assets/icon/checkedIs.png"
  1416. alt
  1417. v-else
  1418. />
  1419. </div>
  1420. </div>-->
  1421. <div class="tool">
  1422. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1423. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1424. <div style="margin: 5px 0">问卷调查</div>
  1425. </div>
  1426. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1427. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1428. <div class="checkDiv" v-else>
  1429. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1430. </div>
  1431. </div>
  1432. </div>
  1433. <div class="tool">
  1434. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1435. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1436. <div style="margin: 5px 0">选择题</div>
  1437. </div>
  1438. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1439. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1440. <div class="checkDiv" v-else>
  1441. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1442. </div>
  1443. </div>
  1444. </div>
  1445. <div class="tool">
  1446. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1447. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1448. <div style="margin: 5px 0">问答工具</div>
  1449. </div>
  1450. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1451. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1452. <div class="checkDiv" v-else>
  1453. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1454. </div>
  1455. </div>
  1456. </div>
  1457. <div class="tool">
  1458. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1459. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1460. <div style="margin: 5px 0">作业提交</div>
  1461. </div>
  1462. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1463. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1464. <div class="checkDiv" v-else>
  1465. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. <div class="tool">
  1470. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1471. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1472. <div style="margin: 5px 0">批量上传</div>
  1473. </div>
  1474. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1475. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1476. <div class="checkDiv" v-else>
  1477. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1478. </div>
  1479. </div>
  1480. </div>
  1481. <div class="tool">
  1482. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1483. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1484. <div style="margin: 5px 0">个人评价</div>
  1485. </div>
  1486. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1487. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1488. <div class="checkDiv" v-else>
  1489. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1490. </div>
  1491. </div>
  1492. </div>
  1493. <div class="tool">
  1494. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1495. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1496. <div style="margin: 5px 0">选择填空</div>
  1497. </div>
  1498. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1499. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1500. <div class="checkDiv" v-else>
  1501. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1502. </div>
  1503. </div>
  1504. </div>
  1505. <div class="tool">
  1506. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1507. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1508. <div style="margin: 5px 0">连词成句</div>
  1509. </div>
  1510. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1511. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1512. <div class="checkDiv" v-else>
  1513. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1514. </div>
  1515. </div>
  1516. </div>
  1517. <!-- <div class="tool">
  1518. <div
  1519. class="whiteBIcon"
  1520. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1521. >
  1522. <img
  1523. src="../../../assets/icon/thirdToolList/mp3.png"
  1524. alt
  1525. />
  1526. <div style="margin: 5px 0">上传音频</div>
  1527. </div>
  1528. <div
  1529. class="check"
  1530. @click="addTools(42, itemTaskIndex, toolIndex)"
  1531. >
  1532. <img
  1533. src="../../../assets/icon/checkNo.png"
  1534. alt
  1535. v-if="itemTool.tool.indexOf(42) == -1"
  1536. />
  1537. <img
  1538. src="../../../assets/icon/checkedIs.png"
  1539. alt
  1540. v-else
  1541. />
  1542. </div>
  1543. </div> -->
  1544. </div>
  1545. <div class="toolSort" v-if="itemTool.toolType == 3">
  1546. <div class="tool">
  1547. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1548. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1549. <div style="margin: 5px 0">训练平台</div>
  1550. </div>
  1551. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1552. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1553. <div class="checkDiv" v-else>
  1554. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div class="tool">
  1559. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1560. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1561. <div style="margin: 5px 0">编程平台</div>
  1562. </div>
  1563. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1564. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1565. <div class="checkDiv" v-else>
  1566. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1567. </div>
  1568. </div>
  1569. </div>
  1570. <div class="tool">
  1571. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1572. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1573. <div style="margin: 5px 0">AI体验</div>
  1574. </div>
  1575. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1576. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1577. <div class="checkDiv" v-else>
  1578. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1579. </div>
  1580. </div>
  1581. </div>
  1582. <div class="tool">
  1583. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1584. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1585. <div style="margin: 5px 0">Python</div>
  1586. </div>
  1587. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1588. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1589. <div class="checkDiv" v-else>
  1590. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1591. </div>
  1592. </div>
  1593. </div>
  1594. <div class="tool">
  1595. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1596. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1597. <div style="margin: 5px 0">AI平台</div>
  1598. </div>
  1599. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1600. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1601. <div class="checkDiv" v-else>
  1602. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <div class="tool">
  1607. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1608. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1609. <div style="margin: 5px 0">源码编辑</div>
  1610. </div>
  1611. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1612. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1613. <div class="checkDiv" v-else>
  1614. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. <div class="tool">
  1619. <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
  1620. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1621. <div style="margin: 5px 0">CocoPi</div>
  1622. </div>
  1623. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1624. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1625. <div class="checkDiv" v-else>
  1626. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1627. </div>
  1628. </div>
  1629. </div>
  1630. <div class="tool">
  1631. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1632. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1633. <div style="margin: 5px 0">海龟编程</div>
  1634. </div>
  1635. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1636. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1637. <div class="checkDiv" v-else>
  1638. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1639. </div>
  1640. </div>
  1641. </div>
  1642. </div>
  1643. <div class="toolSort" v-if="itemTool.toolType == 5">
  1644. <div class="tool">
  1645. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1646. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1647. <div style="margin: 5px 0">翻译</div>
  1648. </div>
  1649. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1650. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1651. <div class="checkDiv" v-else>
  1652. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1653. </div>
  1654. </div>
  1655. </div>
  1656. <div class="tool">
  1657. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1658. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1659. <div style="margin: 5px 0">魔盒识字</div>
  1660. </div>
  1661. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1662. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1663. <div class="checkDiv" v-else>
  1664. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="tool">
  1669. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1670. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1671. <div style="margin: 5px 0">24点</div>
  1672. </div>
  1673. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1674. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1675. <div class="checkDiv" v-else>
  1676. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1677. </div>
  1678. </div>
  1679. </div>
  1680. <div class="tool">
  1681. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1682. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1683. <div style="margin: 5px 0">数学画板</div>
  1684. </div>
  1685. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1686. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1687. <div class="checkDiv" v-else>
  1688. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. <div class="tool">
  1693. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1694. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1695. <div style="margin: 5px 0">GeoGebra</div>
  1696. </div>
  1697. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1698. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1699. <div class="checkDiv" v-else>
  1700. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1701. </div>
  1702. </div>
  1703. </div>
  1704. <div class="tool">
  1705. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1706. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1707. <div style="margin: 5px 0">模拟驾驶</div>
  1708. </div>
  1709. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1710. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1711. <div class="checkDiv" v-else>
  1712. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1713. </div>
  1714. </div>
  1715. </div>
  1716. <div class="tool">
  1717. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1718. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1719. <div style="margin: 5px 0">路径搜索</div>
  1720. </div>
  1721. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1722. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1723. <div class="checkDiv" v-else>
  1724. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. <div class="tool">
  1729. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1730. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1731. <div style="margin: 5px 0">深度学习</div>
  1732. </div>
  1733. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1734. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1735. <div class="checkDiv" v-else>
  1736. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. <div class="tool">
  1741. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1742. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1743. <div style="margin: 5px 0">全历史</div>
  1744. </div>
  1745. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1746. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1747. <div class="checkDiv" v-else>
  1748. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. </div>
  1753. <div class="toolSort" v-if="itemTool.toolType == 4">
  1754. <div class="tool">
  1755. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1756. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1757. <div style="margin: 5px 0">课程设计</div>
  1758. </div>
  1759. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1760. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1761. <div class="checkDiv" v-else>
  1762. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1763. </div>
  1764. </div>
  1765. </div>
  1766. <div class="tool">
  1767. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1768. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1769. <div style="margin: 5px 0">目标管理</div>
  1770. </div>
  1771. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1772. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1773. <div class="checkDiv" v-else>
  1774. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. <!-- <div class="tool">
  1779. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1780. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1781. <div style="margin: 5px 0">汉字宫</div>
  1782. </div>
  1783. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1784. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1785. <div class="checkDiv" v-else>
  1786. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1787. </div>
  1788. </div>
  1789. </div> -->
  1790. </div>
  1791. </div>
  1792. </div>
  1793. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1794. <div class="addToolImg">
  1795. <img src="../../../assets/icon/add.png" alt />
  1796. </div>
  1797. <div>添加工具</div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1802. unitJson[unitIndex].easy == 4
  1803. " class="toolChoose" style="padding: 0 0 0 30px">
  1804. <div class="tools">
  1805. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1806. :key="toolIndex">
  1807. <div>
  1808. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1809. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1810. </div>
  1811. <div style="
  1812. display: flex;
  1813. flex-direction: row;
  1814. align-items: baseline;
  1815. flex-wrap: nowrap;
  1816. justify-content: flex-start;
  1817. position: relative;
  1818. ">
  1819. <div style="margin-right: 20px; font-weight: bold">
  1820. 步骤 {{ toolIndex + 1 }} :
  1821. </div>
  1822. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1823. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1824. </div>
  1825. <div style="min-height: 163px">
  1826. <div class="toolSort">
  1827. <div class="tool">
  1828. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1829. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1830. <div style="margin: 5px 0">电子白板</div>
  1831. </div>
  1832. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1833. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1834. <div class="checkDiv" v-else>
  1835. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1836. </div>
  1837. </div>
  1838. </div>
  1839. <div class="tool">
  1840. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1841. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1842. <div style="margin: 5px 0">文档</div>
  1843. </div>
  1844. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1845. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1846. <div class="checkDiv" v-else>
  1847. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. <div class="tool">
  1852. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1853. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1854. <div style="margin: 5px 0">思维导图</div>
  1855. </div>
  1856. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1857. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1858. <div class="checkDiv" v-else>
  1859. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div class="tool">
  1864. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1865. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1866. <div style="margin: 5px 0">问卷调查</div>
  1867. </div>
  1868. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1869. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1870. <div class="checkDiv" v-else>
  1871. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. <div class="tool">
  1876. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1877. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1878. <div style="margin: 5px 0">选择题</div>
  1879. </div>
  1880. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1881. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1882. <div class="checkDiv" v-else>
  1883. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. <div class="tool">
  1888. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1889. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1890. <div style="margin: 5px 0">问答工具</div>
  1891. </div>
  1892. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1893. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1894. <div class="checkDiv" v-else>
  1895. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <div class="tool">
  1900. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1901. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1902. <div style="margin: 5px 0">作业提交</div>
  1903. </div>
  1904. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1905. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1906. <div class="checkDiv" v-else>
  1907. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1908. </div>
  1909. </div>
  1910. </div>
  1911. <div class="tool">
  1912. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1913. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1914. <div style="margin: 5px 0">批量上传</div>
  1915. </div>
  1916. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1917. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1918. <div class="checkDiv" v-else>
  1919. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1920. </div>
  1921. </div>
  1922. </div>
  1923. <div class="tool">
  1924. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1925. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1926. <div style="margin: 5px 0">选择填空</div>
  1927. </div>
  1928. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1929. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1930. <div class="checkDiv" v-else>
  1931. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div class="tool">
  1936. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1937. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1938. <div style="margin: 5px 0">连词成句</div>
  1939. </div>
  1940. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1941. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1942. <div class="checkDiv" v-else>
  1943. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1944. </div>
  1945. </div>
  1946. </div>
  1947. <div class="tool">
  1948. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1949. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1950. <div style="margin: 5px 0">表格</div>
  1951. </div>
  1952. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1953. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1954. <div class="checkDiv" v-else>
  1955. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1956. </div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. </div>
  1962. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1963. <div class="addToolImg">
  1964. <img src="../../../assets/icon/add.png" alt />
  1965. </div>
  1966. <div>添加工具</div>
  1967. </div>
  1968. </div>
  1969. </div>
  1970. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1971. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1972. " class="toolChoose" style="padding: 0 0 0 30px">
  1973. <div class="tools">
  1974. <div class="leftTools" style="
  1975. width: 95%;
  1976. padding: 0 0 15px 0;
  1977. margin-bottom: 15px;
  1978. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1979. <div style="min-height: 163px">
  1980. <div class="toolSort">
  1981. <div class="tool">
  1982. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1983. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1984. <div style="margin: 5px 0">批量上传</div>
  1985. </div>
  1986. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1987. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1988. <div class="checkDiv" v-else>
  1989. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1999. <div class="elist_title">
  2000. <div style="
  2001. display: flex;
  2002. flex-direction: row;
  2003. align-items: center;
  2004. margin-bottom: 20px;
  2005. ">
  2006. <div class="lineTitle">评价设置</div>
  2007. <div class="line" style="width: 90%"></div>
  2008. </div>
  2009. </div>
  2010. <div class="mbCss">
  2011. <div class="pjCss">
  2012. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2013. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2014. <span>评价名称:</span>
  2015. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2016. <span>评星等级:</span>
  2017. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2018. <div class="remove" @click="deletEList(unitIndex, itemTaskIndex, eIndex)
  2019. "></div>
  2020. <div class="elist_inptu_text">
  2021. <span>评价描述:</span>
  2022. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2023. </div>
  2024. <div class="elist_inptu_text" v-if="evalua">
  2025. <span>目标:</span>
  2026. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2027. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2028. @change="forceUpdate()">
  2029. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2030. :value="e.name">
  2031. </el-option>
  2032. </el-select> -->
  2033. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2034. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2035. </div>
  2036. </div>
  2037. </div>
  2038. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2039. <div class="addToolImg">
  2040. <img src="../../../assets/icon/add.png" alt />
  2041. </div>
  2042. <div>添加</div>
  2043. </div>
  2044. </div>
  2045. <div v-if="evalua" style="
  2046. border: 1px solid #e5e5e5;
  2047. width: 55%;
  2048. margin-top: 20px;
  2049. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2050. " class="evaCss">
  2051. <div class="e_add_top">
  2052. <div class="e_add_title">
  2053. <span>当前使用目标管理</span>
  2054. <span>{{ eTitle }}</span>
  2055. <img src="../../../assets/line.png" class="cru_line" style="
  2056. width: 125px;
  2057. height: 20px;
  2058. bottom: -10px;
  2059. left: 155px;
  2060. " />
  2061. </div>
  2062. </div>
  2063. <div class="e_add_content" style="width: 100%">
  2064. <div class="e_add_list_pbox" style="width: 100%">
  2065. <div class="e_add_list_pbox_title">
  2066. <span class="type_title">切换模式</span>
  2067. <div class="type_content">
  2068. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2069. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2070. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2071. </div>
  2072. </div>
  2073. <div class="e_add_list_pbox_content">
  2074. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2075. " v-if="typeMode == 1"></Mind>
  2076. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2077. </Sunburst>
  2078. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2079. v-if="typeMode == 3"></SeeBoard>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. <div class="funBlock" style="padding: 0">
  2087. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2088. <div>折叠</div>
  2089. <div class="arrow">
  2090. <img src="../../../assets/icon/fold.png" alt />
  2091. </div>
  2092. </div>
  2093. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2094. <div>展开</div>
  2095. <div class="arrow">
  2096. <img src="../../../assets/icon/expand.png" alt />
  2097. </div>
  2098. </div>
  2099. </div>
  2100. </div>
  2101. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2102. <div>
  2103. <img src="../../../assets/icon/addHw.png" alt />
  2104. <span>添加任务</span>
  2105. </div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. <div class="rightBox" v-if="this.steps == 4">
  2111. <div class="basic_box_success">
  2112. <div class="right_img">
  2113. <img src="../../../assets/icon/right.png" alt />
  2114. </div>
  2115. <div style="font-weight: bold">成功</div>
  2116. <!-- <div>您的课程编号</div>
  2117. <div class="number">{{ number }}</div>-->
  2118. <!-- <div class="success_button">
  2119. <div class="look_course" @click="isNoFinsh">
  2120. 邀请老师协同编辑
  2121. </div>
  2122. <div class="attend_others" @click="goCourse">预览课程</div>
  2123. </div> -->
  2124. </div>
  2125. </div>
  2126. <div class="info_btnBox">
  2127. <button class="info_btn" @click="goTo(
  2128. '/course?userid=' +
  2129. userid +
  2130. '&oid=' +
  2131. oid +
  2132. '&org=' +
  2133. org +
  2134. '&role=' +
  2135. role
  2136. )
  2137. ">
  2138. 返回课程
  2139. </button>
  2140. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  2141. 确认上传
  2142. </button>
  2143. </div>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2148. class="dialog_diy2 customWidth">
  2149. <div>请复制该链接邀请协同编辑</div>
  2150. <div>http://www.boomyon.com/index-zhang.com</div>
  2151. <span slot="footer" class="dialog-footer">
  2152. <el-button type="primary">复制链接分享</el-button>
  2153. <el-button @click="dialogVisible = false">取消</el-button>
  2154. </span>
  2155. </el-dialog>
  2156. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2157. :before-close="handleClose" class="dialog_diy2 customWidth">
  2158. <el-form>
  2159. <el-form-item label="文档标题">
  2160. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2161. </el-form-item>
  2162. <div>文档简介</div>
  2163. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2164. </el-form>
  2165. <span slot="footer" class="dialog-footer">
  2166. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2167. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2168. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2169. </span>
  2170. </el-dialog>
  2171. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2172. :before-close="handleClose" class="dialog_diy">
  2173. <el-form>
  2174. <el-form-item label="文档标题">
  2175. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2176. </el-form-item>
  2177. <div>文档内容</div>
  2178. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2179. </el-form>
  2180. <span slot="footer" class="dialog-footer">
  2181. <el-button @click="clearChoose">取 消</el-button>
  2182. <el-button type="primary" @click="wordNext()">确定</el-button>
  2183. </span>
  2184. </el-dialog>
  2185. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2186. :before-close="handleClose" class="dialog_diy">
  2187. <el-form>
  2188. <el-form-item label="文本标题">
  2189. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2190. </el-form-item>
  2191. <div>富文本内容</div>
  2192. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2193. </el-form>
  2194. <span slot="footer" class="dialog-footer">
  2195. <el-button @click="clearAttText">取 消</el-button>
  2196. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2197. </span>
  2198. </el-dialog>
  2199. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2200. :before-close="handleClose" class="dialog_diy lineCss">
  2201. <el-form>
  2202. <el-form-item label="标题" :label-width="formLabelWidth">
  2203. <span>
  2204. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2205. </span>
  2206. </el-form-item>
  2207. <el-form-item label="链接" :label-width="formLabelWidth">
  2208. <span>
  2209. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2210. </span>
  2211. </el-form-item>
  2212. </el-form>
  2213. <span slot="footer" class="dialog-footer">
  2214. <el-button @click="clearLine">取 消</el-button>
  2215. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2216. </span>
  2217. </el-dialog>
  2218. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2219. :before-close="handleClose" class="dialog_diy source_diy">
  2220. <div>
  2221. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2222. </div>
  2223. <span slot="footer" class="dialog-footer">
  2224. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2225. <el-button type="primary" @click="addSource">确定</el-button>
  2226. </span>
  2227. </el-dialog>
  2228. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2229. :before-close="handleClose" class="addNewPP customWidth">
  2230. <div class="people">
  2231. <div class="people_top">
  2232. <div class="people_nav">选择成员</div>
  2233. <div class="people_top_right">
  2234. <div class="people_search">
  2235. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2236. <div class="search_img" @click="searchStudent">
  2237. <img src="../../../assets/icon/search.png" alt />
  2238. </div>
  2239. </div>
  2240. </div>
  2241. </div>
  2242. <el-checkbox-group v-model="checkboxList" class="people_name">
  2243. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2244. "暂无学生可选" }}</el-checkbox>
  2245. </el-checkbox-group>
  2246. </div>
  2247. <span slot="footer" class="dialog-footer">
  2248. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2249. <el-button type="primary" @click="isAddPP">确定</el-button>
  2250. </span>
  2251. </el-dialog>
  2252. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2253. :before-close="handleClose" class="addNewPP">
  2254. <div class="people" style="height: 300px">
  2255. <div class="people_top">
  2256. <div class="people_top_right">
  2257. <div class="people_search">
  2258. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2259. <!-- @click="getClass()"
  2260. @keyup.enter.native="getClass()"
  2261. -->
  2262. <div class="search_img">
  2263. <img src="../../../assets/icon/search.png" alt />
  2264. </div>
  2265. </div>
  2266. </div>
  2267. <div class="people_nav">选择班级</div>
  2268. </div>
  2269. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2270. <div v-for="item in grade2" :key="item.id" class="p_box">
  2271. <el-checkbox :label="item.id">
  2272. {{ item.name }}
  2273. </el-checkbox>
  2274. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2275. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2276. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2277. @click="OpenInviteD(item.id)">随机码设置</div>
  2278. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2279. </div>
  2280. </el-checkbox-group>
  2281. </div>
  2282. <span slot="footer" class="dialog-footer">
  2283. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2284. <el-button type="primary" @click="isAddClass">确定</el-button>
  2285. </span>
  2286. </el-dialog>
  2287. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2288. :before-close="handleClose" class="addNewPP customWidth">
  2289. <div class="people">
  2290. <div class="people_top">
  2291. <div class="people_top_right">
  2292. <div class="people_search">
  2293. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2294. <div class="search_img" @click="getTeacher">
  2295. <img src="../../../assets/icon/search.png" alt />
  2296. </div>
  2297. </div>
  2298. </div>
  2299. <div class="people_nav">选择成员</div>
  2300. </div>
  2301. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2302. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2303. <div class="t_j_box">
  2304. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2305. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2306. </el-tooltip>
  2307. <el-tooltip placement="top" :content="item.username">
  2308. <span>{{ item.username }}</span>
  2309. </el-tooltip>
  2310. <el-tooltip placement="top" :content="item.school">
  2311. <span>{{ item.school }}</span>
  2312. </el-tooltip>
  2313. </div>
  2314. </el-checkbox>
  2315. </el-checkbox-group>
  2316. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2317. </div>
  2318. <span slot="footer" class="dialog-footer">
  2319. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2320. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2321. </span>
  2322. </el-dialog>
  2323. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2324. :before-close="handleClose" class="dialog_diy">
  2325. <div>
  2326. <div class="a_add_title" style="
  2327. display: flex;
  2328. flex-direction: row;
  2329. align-items: center;
  2330. justify-content: center;
  2331. ">
  2332. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2333. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2334. </div>
  2335. <div class="a_addBox">
  2336. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2337. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2338. <div class="a_add_checkType">
  2339. <span :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  2340. @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2341. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2342. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2343. </div>
  2344. <div class="a_add_head">
  2345. <div>
  2346. {{ index1 + 1 + "、" }}
  2347. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2348. </el-input>
  2349. </div>
  2350. <div class="a_add_head_div">
  2351. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2352. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2353. </el-button>
  2354. </div>
  2355. </div>
  2356. <div class="a_add_body">
  2357. <div class="a_add_input">
  2358. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2359. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2360. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2361. </div>
  2362. <div class="a_add_body_div">
  2363. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2364. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2365. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2366. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2367. </el-button>
  2368. </div>
  2369. </div>
  2370. </div>
  2371. </div>
  2372. </div>
  2373. <span slot="footer" class="dialog-footer">
  2374. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2375. <el-button type="primary" @click="addAsk">确 定</el-button>
  2376. </span>
  2377. </el-dialog>
  2378. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2379. :before-close="handleClose" class="dialog_diy">
  2380. <div>
  2381. <!-- <div class="a_add_title" style="
  2382. display: flex;
  2383. flex-direction: row;
  2384. align-items: center;
  2385. justify-content: center;
  2386. ">
  2387. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2388. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2389. </div> -->
  2390. <div class="a_addBox">
  2391. <div style="font-size: 16px; color: #c7c7c7">
  2392. 请输入题目内容
  2393. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  2394. </div>
  2395. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2396. <div class="a_add_checkType">
  2397. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2398. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2399. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2400. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2401. </div>
  2402. <div class="a_add_head">
  2403. <div class="timuUpImg">
  2404. <div>
  2405. {{ index1 + 1 + "、" }}
  2406. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2407. placeholder="请输入题目...">
  2408. </el-input>
  2409. </div>
  2410. <div class="xzUpImg" @click.stop="addImg($event)">
  2411. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2412. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2413. </div>
  2414. </div>
  2415. <div class="a_add_head_div">
  2416. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2417. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2418. </el-button>
  2419. </div>
  2420. </div>
  2421. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2422. testJson.testJson[index1].timuList.length
  2423. ">
  2424. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2425. @click.stop="previewImg(timg.src)">
  2426. <img :src="timg.src" alt="" />
  2427. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2428. <img src="../../../assets/icon/delete.png" alt="" />
  2429. </div>
  2430. </div>
  2431. </div>
  2432. <div class="a_add_body">
  2433. <div class="a_add_input a_add_input_choice">
  2434. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2435. <div class="radioBox">
  2436. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2437. .testItem" :key="checkIndex" :label="checkIndex">
  2438. <div style="margin-right: 10px">
  2439. 选项{{ checkIndex + 1 }}
  2440. </div>
  2441. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2442. testJson.testJson[index1].checkList[checkIndex]
  2443. .imgType &&
  2444. testJson.testJson[index1].checkList[checkIndex]
  2445. .imgType == 1
  2446. ">
  2447. <div class="inImg" @click.stop="previewImg(
  2448. testJson.testJson[index1].checkList[checkIndex]
  2449. .src
  2450. )
  2451. ">
  2452. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2453. .src
  2454. " lazy />
  2455. <!-- <img :src="
  2456. testJson.testJson[index1].checkList[checkIndex]
  2457. .src
  2458. " alt="" /> -->
  2459. </div>
  2460. </div>
  2461. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2462. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2463. <div class="xzUpImg" @click.stop="addImg($event)">
  2464. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2465. <input type="file" accept="image/*" style="display: none"
  2466. @change="beforeUploadTi($event, index1, checkIndex)" />
  2467. </div>
  2468. </el-radio>
  2469. </div>
  2470. </el-radio-group>
  2471. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2472. v-if="testJson.testJson[index1].type == '2'">
  2473. <div class="radioBox">
  2474. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2475. .testItem" :key="checkIndex1" :label="checkIndex1">
  2476. <div style="margin-right: 10px">
  2477. 选项{{ checkIndex1 + 1 }}
  2478. </div>
  2479. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2480. testJson.testJson[index1].checkList[checkIndex1]
  2481. .imgType &&
  2482. testJson.testJson[index1].checkList[checkIndex1]
  2483. .imgType == 1
  2484. ">
  2485. <div class="inImg" @click.stop="previewImg(
  2486. testJson.testJson[index1].checkList[checkIndex1]
  2487. .src
  2488. )
  2489. ">
  2490. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2491. .src
  2492. " lazy />
  2493. <!-- <img :src="
  2494. testJson.testJson[index1].checkList[checkIndex1]
  2495. .src
  2496. " alt="" /> -->
  2497. </div>
  2498. </div>
  2499. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2500. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2501. <div class="xzUpImg" @click.stop="addImg($event)">
  2502. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2503. <input type="file" accept="image/*" style="display: none"
  2504. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2505. </div>
  2506. </el-checkbox>
  2507. </div>
  2508. </el-checkbox-group>
  2509. </div>
  2510. <div class="a_add_body_div" style="margin-bottom: 3px">
  2511. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2512. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2513. v-if="testJson.testJson[index1].testItem != 1">删除
  2514. </el-button>
  2515. </div>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. </div>
  2520. <span slot="footer" class="dialog-footer">
  2521. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2522. <el-button type="primary" @click="addTest">确 定</el-button>
  2523. </span>
  2524. </el-dialog>
  2525. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2526. :before-close="handleClose" class="dialog_diy addToolsDia">
  2527. <div class="toolChoose" style="padding: 0 0 0 30px">
  2528. <div class="tools">
  2529. <div class="leftTools" style="
  2530. width: 95%;
  2531. padding: 0 0 15px 0;
  2532. border-bottom: 1px solid #efefef;
  2533. margin-bottom: 15px;
  2534. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2535. <div style="
  2536. display: flex;
  2537. flex-direction: row;
  2538. align-items: baseline;
  2539. flex-wrap: nowrap;
  2540. justify-content: flex-start;
  2541. position: relative;
  2542. ">
  2543. <div class="chooseWho">
  2544. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2545. 互动类
  2546. </div>
  2547. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2548. 思维类
  2549. </div>
  2550. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2551. 评价类
  2552. </div>
  2553. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2554. 其他
  2555. </div>
  2556. </div>
  2557. </div>
  2558. <div style="min-height: 163px">
  2559. <div class="toolSort" v-if="chapToolsType == 0">
  2560. <div class="tool">
  2561. <div class="whiteBIcon" @click="chapAddTools(8)">
  2562. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2563. <div style="margin: 5px 0">素材库</div>
  2564. </div>
  2565. <div class="check" @click="chapAddTools(8)">
  2566. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2567. <div class="checkDiv" v-else>
  2568. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. <div class="toolSort" v-if="chapToolsType == 1">
  2574. <div class="tool">
  2575. <div class="whiteBIcon" @click="chapAddTools(7)">
  2576. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2577. <div style="margin: 5px 0">思维网格</div>
  2578. </div>
  2579. <div class="check" @click="chapAddTools(7)">
  2580. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2581. <div class="checkDiv" v-else>
  2582. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. <div class="tool">
  2587. <div class="whiteBIcon" @click="chapAddTools(1)">
  2588. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2589. <div style="margin: 5px 0">电子白板</div>
  2590. </div>
  2591. <div class="check" @click="chapAddTools(1)">
  2592. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2593. <div class="checkDiv" v-else>
  2594. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2595. </div>
  2596. </div>
  2597. </div>
  2598. <div class="tool">
  2599. <div class="whiteBIcon" @click="chapAddTools(2)">
  2600. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2601. <div style="margin: 5px 0">便签</div>
  2602. </div>
  2603. <div class="check" @click="chapAddTools(2)">
  2604. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2605. <div class="checkDiv" v-else>
  2606. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2607. </div>
  2608. </div>
  2609. </div>
  2610. <div class="tool">
  2611. <div class="whiteBIcon" @click="chapAddTools(6)">
  2612. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2613. <div style="margin: 5px 0">协同文档</div>
  2614. </div>
  2615. <div class="check" @click="chapAddTools(6)">
  2616. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2617. <div class="checkDiv" v-else>
  2618. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2619. </div>
  2620. </div>
  2621. </div>
  2622. <div class="tool">
  2623. <div class="whiteBIcon" @click="chapAddTools(3)">
  2624. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2625. <div style="margin: 5px 0">思维导图</div>
  2626. </div>
  2627. <div class="check" @click="chapAddTools(3)">
  2628. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2629. <div class="checkDiv" v-else>
  2630. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. <div class="tool">
  2635. <div class="whiteBIcon" @click="chapAddTools(31)">
  2636. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2637. <div style="margin: 5px 0">数学画板</div>
  2638. </div>
  2639. <div class="check" @click="chapAddTools(31)">
  2640. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2641. <div class="checkDiv" v-else>
  2642. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2643. </div>
  2644. </div>
  2645. </div>
  2646. </div>
  2647. <div class="toolSort" v-if="chapToolsType == 2">
  2648. <div class="tool">
  2649. <div class="whiteBIcon" @click="chapAddTools(5)">
  2650. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2651. <div style="margin: 5px 0">量规评分</div>
  2652. </div>
  2653. <div class="check" @click="chapAddTools(5)">
  2654. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2655. <div class="checkDiv" v-else>
  2656. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2657. </div>
  2658. </div>
  2659. </div>
  2660. <div class="tool">
  2661. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2662. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2663. <div style="margin: 5px 0">问卷调查</div>
  2664. </div>
  2665. <div class="check" @click="chapAddTools(4)">
  2666. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2667. <div class="checkDiv" v-else>
  2668. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2669. </div>
  2670. </div>
  2671. </div>
  2672. </div>
  2673. </div>
  2674. <div>
  2675. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2676. v-model="itemTools.toolDetail" />
  2677. </div>
  2678. </div>
  2679. </div>
  2680. </div>
  2681. <span slot="footer" class="dialog-footer">
  2682. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2683. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2684. </span>
  2685. </el-dialog>
  2686. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2687. :before-close="handleClose" class="dialog_diy">
  2688. <div>
  2689. <div class="a_add_title" style="
  2690. display: flex;
  2691. flex-direction: column;
  2692. align-items: flex-start;
  2693. justify-content: center;
  2694. ">
  2695. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2696. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2697. </div>
  2698. </div>
  2699. <span slot="footer" class="dialog-footer">
  2700. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2701. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2702. </span>
  2703. </el-dialog>
  2704. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2705. :before-close="handleClose" class="dialog_diy">
  2706. <div>
  2707. <div class="a_add_title" style="
  2708. display: flex;
  2709. flex-direction: column;
  2710. align-items: flex-start;
  2711. justify-content: center;
  2712. ">
  2713. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2714. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2715. </div>
  2716. </div>
  2717. <span slot="footer" class="dialog-footer">
  2718. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2719. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2720. </span>
  2721. </el-dialog>
  2722. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2723. :before-close="handleClose" class="dialog_diy">
  2724. <div>
  2725. <div class="fileCss" style="padding-top: 20px">
  2726. <div>
  2727. <button class="info_btn" @click="addImg($event)">
  2728. 选择本地文件
  2729. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2730. </button>
  2731. </div>
  2732. <div>
  2733. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2734. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2735. <img :src="cover[0].url" alt="" />
  2736. <div class="deletePic" @click="deleteSysPic">
  2737. <img src="../../../assets/icon/delete.png" alt="" />
  2738. </div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <div class="fileCss">
  2743. <div>选择本地文件</div>
  2744. <div>选择系统文件</div>
  2745. </div>
  2746. </div>
  2747. <span slot="footer" class="dialog-footer">
  2748. <el-button @click="choosePicVisible = false">取 消</el-button>
  2749. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2750. </span>
  2751. </el-dialog>
  2752. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2753. :before-close="handleClose" class="dialog_diy">
  2754. <div class="cru_selectBox" style="margin: 0">
  2755. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2756. 绘画
  2757. </div>
  2758. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2759. 科技
  2760. </div>
  2761. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2762. 人文
  2763. </div>
  2764. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2765. 艺术
  2766. </div>
  2767. </div>
  2768. <div class="sysPicBox">
  2769. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2770. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2771. </div>
  2772. </div>
  2773. <span slot="footer" class="dialog-footer">
  2774. <el-button @click="sysPicVisible = false">取 消</el-button>
  2775. <el-button type="primary">确 定</el-button>
  2776. </span>
  2777. </el-dialog>
  2778. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2779. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2780. <div v-if="selectJson">
  2781. <div class="select_box1" v-if="selectSteps == 1">
  2782. <div class="select_box1_img">
  2783. <div class="select_box1_title">
  2784. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2785. </div>
  2786. <div class="select_box1_add_img">
  2787. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2788. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2789. <img src="../../../assets/icon/addPoster.png" alt="" />
  2790. </div>
  2791. <div class="isSysPic" v-else>
  2792. <img :src="selectJson.url" alt="" />
  2793. <div class="deletePic" @click="deleteSelectPic">
  2794. <img src="../../../assets/icon/delete.png" alt="" />
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. <div class="select_box1_select">
  2800. <div class="select_box1_title">
  2801. <span>添加选项</span><span>提示:请输入题目选项</span>
  2802. </div>
  2803. <div class="select_box1_select_box">
  2804. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2805. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2806. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2807. <div class="select_box1_select_box_add">
  2808. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2809. 添加</el-button>
  2810. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2811. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2812. </div>
  2813. </div>
  2814. </div>
  2815. </div>
  2816. <div v-if="selectSteps == 2">
  2817. <div class="select_box2">
  2818. <div class="select_box2_title">设置答案</div>
  2819. <div class="select_box2_box">
  2820. <div class="select_box2_img">
  2821. <img :src="selectJson.url" alt="" />
  2822. </div>
  2823. <div class="select_box2_answer">
  2824. <div class="select_answer_title">根据题目选择对应答案</div>
  2825. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2826. <span>{{ checkIndex + 1 }}、</span>
  2827. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2828. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2829. </el-option>
  2830. </el-select>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <span slot="footer" class="dialog-footer">
  2838. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2839. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2840. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2841. </span>
  2842. </el-dialog>
  2843. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2844. :before-close="handleClose" class="dialog_diy">
  2845. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2846. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2847. <div class="pjCss" style="width: 100%">
  2848. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2849. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2850. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2851. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2852. <div class="remove" @click="deletRateList(eIndex)"></div>
  2853. <div style="width: 100%; display: flex">
  2854. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2855. <el-rate v-model="eItem.score" disabled></el-rate>
  2856. </div>
  2857. <div class="elist_inptu_text" style="align-items: flex-start">
  2858. <span style="min-width: 100px; text-align: right">描述:</span>
  2859. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2860. </div>
  2861. </div>
  2862. </div>
  2863. <div class="addToolFun" @click="addRateList()">
  2864. <div class="addToolImg">
  2865. <img src="../../../assets/icon/add.png" alt />
  2866. </div>
  2867. <div>添加</div>
  2868. </div>
  2869. </div>
  2870. </div>
  2871. <span slot="footer" class="dialog-footer">
  2872. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2873. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2874. </span>
  2875. </el-dialog>
  2876. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2877. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2878. <div>
  2879. <div class="sentenBox">
  2880. <div class="addSen" @click="addSt">添加题目</div>
  2881. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2882. <div class="sentenTopBox">
  2883. <div class="sentenTop">
  2884. <div>题目设置</div>
  2885. <div>
  2886. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2887. </div>
  2888. <div @click="addSen(stIndex)">添加</div>
  2889. </div>
  2890. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2891. </div>
  2892. <div class="cardList">
  2893. <div v-if="st.addSentence.length > 0" class="cardBox">
  2894. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2895. @click="setRightAnswer(s, stIndex, sIndex)">
  2896. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2897. <div>{{ s }}</div>
  2898. </el-tooltip>
  2899. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2900. <img src="../../../assets/icon/delete.png" alt="" />
  2901. </div>
  2902. </div>
  2903. </div>
  2904. <div class="card">
  2905. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2906. </div>
  2907. </div>
  2908. <div class="rightCardBox">
  2909. <div>正确顺序</div>
  2910. <div class="rightCardList">
  2911. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2912. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2913. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2914. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2915. <div>{{ r }}</div>
  2916. </el-tooltip>
  2917. </div>
  2918. <div>{{ rIndex + 1 }}</div>
  2919. </div>
  2920. </div>
  2921. <div class="card" v-if="st.rightAnswer.length == 0">
  2922. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2923. </div>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. </div>
  2928. </div>
  2929. <span slot="footer" class="dialog-footer">
  2930. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2931. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2932. </span>
  2933. </el-dialog>
  2934. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2935. :before-close="handleClose" class="dialog_diy">
  2936. <el-form>
  2937. <!-- <el-form-item label="文本标题">
  2938. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2939. </el-form-item> -->
  2940. <div>表格内容</div>
  2941. <Table v-model="tableJson.text" @change="change"></Table>
  2942. </el-form>
  2943. <span slot="footer" class="dialog-footer">
  2944. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2945. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2946. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2947. </span>
  2948. </el-dialog>
  2949. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2950. :before-close="handleClose" class="dialog_diy">
  2951. <el-form>
  2952. <!-- <el-form-item label="文本标题">
  2953. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2954. </el-form-item> -->
  2955. <div>文档内容</div>
  2956. <editor-bar v-model="wordJson.text"></editor-bar>
  2957. </el-form>
  2958. <span slot="footer" class="dialog-footer">
  2959. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2960. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2961. </span>
  2962. </el-dialog>
  2963. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2964. :before-close="handleClose" class="dialog_diy">
  2965. <div style="
  2966. width: 100%;
  2967. display: flex;
  2968. flex-direction: row;
  2969. flex-wrap: nowrap;
  2970. align-items: center;
  2971. justify-content: center;
  2972. ">
  2973. <div>班级:</div>
  2974. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2975. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2976. </el-option>
  2977. </el-select>
  2978. </div>
  2979. <span slot="footer" class="dialog-footer">
  2980. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2981. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2982. </span>
  2983. </el-dialog>
  2984. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2985. :before-close="handleClose" class="dialog_diy">
  2986. <div style="
  2987. width: 100%;
  2988. display: flex;
  2989. flex-direction: row;
  2990. flex-wrap: nowrap;
  2991. align-items: center;
  2992. justify-content: center;
  2993. ">
  2994. <div>随机码:</div>
  2995. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2996. </div>
  2997. <span slot="footer" class="dialog-footer">
  2998. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2999. <el-button type="primary" @click="addInvite">确定</el-button>
  3000. </span>
  3001. </el-dialog>
  3002. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  3003. :before-close="handleClose" class="dialog_diy">
  3004. <div>
  3005. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3006. </div>
  3007. <span slot="footer" class="dialog-footer">
  3008. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3009. <el-button type="primary" @click="addPreTime">确定</el-button>
  3010. </span>
  3011. </el-dialog>
  3012. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3013. class="dialog_diy">
  3014. <div>
  3015. <div style="
  3016. width: 100%;
  3017. display: flex;
  3018. flex-direction: row;
  3019. flex-wrap: nowrap;
  3020. align-content: center;
  3021. align-items: center;
  3022. justify-content: space-between;
  3023. ">
  3024. <div style="
  3025. display: flex;
  3026. flex-flow: row nowrap;
  3027. align-items: flex-start;
  3028. width: 100%;
  3029. flex-direction: column;
  3030. flex-wrap: nowrap;
  3031. position: relative;
  3032. ">
  3033. <div class="e_box">
  3034. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3035. <div class="e_card_picture">
  3036. <img src="../../../assets/e_picture.png" />
  3037. </div>
  3038. <div class="e_card_name">
  3039. <span>{{ item.title }}</span>
  3040. </div>
  3041. <div class="e_card_btn">
  3042. <span @click="checkEva(item.id, 2)">导入</span>
  3043. </div>
  3044. </div>
  3045. <div class="addEva" @click="openT">
  3046. <img src="../../../assets/icon/addEva.png" alt="" />
  3047. </div>
  3048. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3049. 暂无数据
  3050. </div>
  3051. </div>
  3052. </div>
  3053. </div>
  3054. </div>
  3055. <span slot="footer" class="dialog-footer">
  3056. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3057. </span>
  3058. </el-dialog>
  3059. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3060. :before-close="handleClose" class="dialog_diy">
  3061. <div class="groupBox">
  3062. <div v-if="groupJson.group" class="groupContent">
  3063. <div class="groupTitle">请设置小组数量</div>
  3064. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3065. <span class="groupn">组{{ index + 1 }}名称:</span>
  3066. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3067. <div class="groupBtn">
  3068. <el-button type="primary" size="small" @click="addGroup(index)">
  3069. 添加</el-button>
  3070. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3071. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3072. </div>
  3073. </div>
  3074. </div>
  3075. <div class="groupContent">
  3076. <div class="groupTitle">请设置每组人数数量</div>
  3077. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3078. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3079. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3080. placeholder="2-10人以内"></el-input-number>
  3081. </div>
  3082. </div>
  3083. <span slot="footer" class="dialog-footer">
  3084. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3085. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3086. </span>
  3087. </el-dialog>
  3088. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3089. </div>
  3090. </template>
  3091. <script>
  3092. import "../../../common/aws-sdk-2.235.1.min.js";
  3093. import $ from "jquery";
  3094. import EditorBar from "../../../components/tools/wangEnduit";
  3095. import Table from "../../../components/tools/table";
  3096. import Mind from "../../tools/jsmind2";
  3097. import Time from "../../tools/time.vue";
  3098. import Sunburst from "../../tools/sunburst";
  3099. import SeeBoard from "../../tools/seeBoard";
  3100. import weilaiData from "../components/weilai.js";
  3101. import sourceDialog from "../teacherSource/dialog.vue";
  3102. import interVideo from "../interVideo/index.vue";
  3103. export default {
  3104. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table, sourceDialog, interVideo },
  3105. data() {
  3106. return {
  3107. checkAll: false,
  3108. chooseType: 1,
  3109. checkedCities: [],
  3110. isIndeterminate: true,
  3111. isSysPic: false,
  3112. steps: 1,
  3113. nbOrder: 0,
  3114. courseId: "",
  3115. chapToolsType: 0,
  3116. chapTools: [
  3117. {
  3118. tools: [],
  3119. toolDetail: "",
  3120. },
  3121. ],
  3122. line: "",
  3123. lineTitle: "",
  3124. sysPic: [],
  3125. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3126. isPushTitleList: [],
  3127. lineCount: 0,
  3128. lineType: 0,
  3129. chapCount: 0,
  3130. courseName: "",
  3131. isTeacherSee: true,
  3132. courseText: "",
  3133. preTime: 0,
  3134. formLabelWidth: "100px",
  3135. choosePicVisible: false,
  3136. sysPicVisible: false,
  3137. uploadLoading1: false,
  3138. noneBtnImg: false,
  3139. updateBoolean2: false,
  3140. unitIndex: 0,
  3141. taskCount: 0,
  3142. dialogVisible: false,
  3143. dialogVisible1: false,
  3144. dialogVisible2: false,
  3145. dialogVisible3: false,
  3146. dialogVisible4: false,
  3147. dialogVisible5: false,
  3148. dialogVisible6: false,
  3149. dialogVisible7: false,
  3150. dialogVisible8: false,
  3151. dialogVisible9: false,
  3152. dialogVisibleClass: false,
  3153. dialogVisibleMember: false,
  3154. dialogVisibleMp3: false,
  3155. dialogVisibleSelect: false,
  3156. dialogVisibleSentence: false,
  3157. dialogVisibleRate: false,
  3158. dialogVisibleChoice: false,
  3159. dialogVisiblemb: false,
  3160. dialogVisibleInvite: false,
  3161. dialogVisibleSource: false,
  3162. dialogVisibleVideo: false,
  3163. isClickColor: 0,
  3164. publicTool: 0,
  3165. searchPeople: "",
  3166. searchTN: "",
  3167. userid: this.$route.query.userid,
  3168. oid: this.$route.query.oid,
  3169. org: this.$route.query.org,
  3170. role: this.$route.query.role,
  3171. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3172. dialogVisibleTable: false,
  3173. dialogVisibleWord: false,
  3174. tableJson: { text: "" },
  3175. wordJson: { text: "" },
  3176. dialogVisibleMoreUpload: false,
  3177. dialogVisiblePreTime: false,
  3178. uploadJson: [],
  3179. classJuri: [],
  3180. cover: [], //课程封面
  3181. myWord: [],
  3182. evaJuri: [],
  3183. evalua: "",
  3184. targetArray: [],
  3185. eTitle: "",
  3186. eJson: {},
  3187. fid: "", //一级
  3188. sid: "", //二级
  3189. tid: "", //二级
  3190. typeMode: 1,
  3191. eJSONNum: 0,
  3192. data: {
  3193. meta: {
  3194. name: "example",
  3195. author: "dd@163.com",
  3196. version: "0.2",
  3197. },
  3198. format: "node_array",
  3199. data: [{ id: "root", isroot: true, topic: "" }],
  3200. },
  3201. askJson: {
  3202. askCount: 1,
  3203. askTitle: "",
  3204. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3205. },
  3206. testJson: {},
  3207. selectJson: {},
  3208. rateJson: [],
  3209. unitJson2: [],
  3210. unitJson: [
  3211. {
  3212. dyName: "", //单元标题
  3213. chapterInfo: [
  3214. {
  3215. isread: false,
  3216. chapterid: this.guid(),
  3217. title: "",
  3218. courseName: "",
  3219. taskJson: [
  3220. {
  3221. task: "",
  3222. taskDetail: "",
  3223. chapterData: [],
  3224. toolChoose: [
  3225. {
  3226. tool: [],
  3227. toolDetail: "",
  3228. toolType: 0,
  3229. askCount: 1,
  3230. askTitle: "",
  3231. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3232. },
  3233. ],
  3234. toolText: "",
  3235. isShowTools: false,
  3236. askCount: 1,
  3237. isFold: 0,
  3238. askTitle: "",
  3239. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3240. checkJson: [{ checkCount: [], checkPerent: [] }],
  3241. homeworkList: [],
  3242. },
  3243. ],
  3244. itemCount: 1,
  3245. fileList1: [],
  3246. video: [],
  3247. testData: [],
  3248. pData: [],
  3249. templateArray: [],
  3250. },
  3251. ],
  3252. },
  3253. ],
  3254. studentJuri: [],
  3255. teacherJuri: [],
  3256. checkboxList: [],
  3257. checkboxList2: [],
  3258. checkboxList3: [],
  3259. classSearch: "",
  3260. number: "",
  3261. tTitle: "",
  3262. tdetail: "",
  3263. templateC: {},
  3264. AttText: {},
  3265. AttTextType: 0,
  3266. AttTextIndex: 0,
  3267. cTemplate: "",
  3268. CourseType: [],
  3269. CourseType2: [],
  3270. CourseTypeJson: {},
  3271. courseTypeId: [],
  3272. courseTypeSon: [],
  3273. clearArray: [],
  3274. pTypeCheck: [],
  3275. pTypeCheckName: [],
  3276. loading: false,
  3277. toolType: 0,
  3278. inputShow: true,
  3279. inputShow2: true,
  3280. toolIndex: 0,
  3281. cidType: 0,
  3282. answerQ: "",
  3283. grade: [],
  3284. grade2: [],
  3285. courseUserid: "",
  3286. timer: null,
  3287. timer2: null,
  3288. checkId: "",
  3289. isDelete: 1,
  3290. addindex: 0,
  3291. selectSteps: 1,
  3292. groupJson: {},
  3293. dialogVisibleGroup: false,
  3294. rightBoxHeight: 0,
  3295. ManAarray: [],
  3296. checkBoolean: false,
  3297. inviteCode: [],
  3298. inviteId: "",
  3299. icode: "",
  3300. easyArray: [2, 4],
  3301. sourceData: {},
  3302. videoJson: {}
  3303. };
  3304. },
  3305. computed: {
  3306. // rightBoxHeight: function () {
  3307. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3308. // },
  3309. offsetLetfPx: function () {
  3310. //addnum可以直接在模板语法里面用,相当于data内的值
  3311. return (
  3312. $(".cru_select")[this.unitIndex] &&
  3313. $(".cru_select")[this.unitIndex].offsetLeft
  3314. );
  3315. },
  3316. getMan2() {
  3317. return function (people) {
  3318. let _people = people;
  3319. let _people2 = "";
  3320. if (this.ManAarray.length) {
  3321. for (var i = 0; i < this.ManAarray.length; i++) {
  3322. if (this.ManAarray[i].userid == people) {
  3323. _people2 = this.ManAarray[i].name;
  3324. break;
  3325. }
  3326. }
  3327. }
  3328. if (people == this.courseUserid) {
  3329. return "";
  3330. }
  3331. return this.ManAarray.length ? _people2 : "";
  3332. };
  3333. },
  3334. isInvite() {
  3335. return function (cid) {
  3336. let array = [];
  3337. for (var i = 0; i < this.inviteCode.length; i++) {
  3338. array.push(this.inviteCode[i].cid);
  3339. }
  3340. return array.indexOf(cid) != -1;
  3341. };
  3342. },
  3343. getInviteCodeC() {
  3344. return function (cid) {
  3345. let array = [];
  3346. for (var i = 0; i < this.inviteCode.length; i++) {
  3347. array.push(this.inviteCode[i].cid);
  3348. }
  3349. return this.inviteCode[array.indexOf(cid)].ic;
  3350. };
  3351. },
  3352. getClassC() {
  3353. return function (c) {
  3354. let _c2 = "";
  3355. if (this.grade.length) {
  3356. for (var i = 0; i < this.grade.length; i++) {
  3357. if (this.grade[i].id == c) {
  3358. _c2 = this.grade[i].name;
  3359. break;
  3360. }
  3361. }
  3362. }
  3363. return this.grade.length ? _c2 : "";
  3364. };
  3365. },
  3366. },
  3367. watch: {
  3368. unitIndex(newValue, oldValue) {
  3369. if (this.isDelete == 2) {
  3370. this.isDelete = 1;
  3371. return;
  3372. }
  3373. if (this.cid != "") {
  3374. let _unitIndex = oldValue;
  3375. if (
  3376. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3377. JSON.stringify(this.unitJson[_unitIndex])
  3378. ) {
  3379. this.$refs.rightboxR.scrollTop = 0;
  3380. return;
  3381. }
  3382. let cPan = 1;
  3383. for (
  3384. var j = 0;
  3385. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3386. j++
  3387. ) {
  3388. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3389. j
  3390. ].proVisible = false;
  3391. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3392. j
  3393. ].proVisible2 = false;
  3394. if (
  3395. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3396. .length > 1
  3397. ) {
  3398. for (
  3399. var z = 0;
  3400. z <
  3401. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3402. .length;
  3403. z++
  3404. ) {
  3405. if (
  3406. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3407. .toolChoose[z].tool.length
  3408. ) {
  3409. this.$message.error("请把工具添加完整");
  3410. cPan = 2;
  3411. break;
  3412. }
  3413. }
  3414. }
  3415. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3416. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3417. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3418. (ele) => {
  3419. return ele.value != "";
  3420. }
  3421. );
  3422. }
  3423. }
  3424. if (cPan == 2) {
  3425. this.unitIndex = oldValue;
  3426. return;
  3427. }
  3428. for (var i = 0; i < this.unitJson.length; i++) {
  3429. if (this.addindex != i) {
  3430. delete this.unitJson[i].isUpdate;
  3431. }
  3432. }
  3433. this.$refs.rightboxR.scrollTop = 0;
  3434. this.addindex = -1;
  3435. let params = [
  3436. {
  3437. cid: this.cid,
  3438. chapters: JSON.stringify(this.unitJson),
  3439. uid: this.userid,
  3440. unitIndex: _unitIndex,
  3441. },
  3442. ];
  3443. this.ajax
  3444. .post(this.$store.state.api + "updateWorkNew4", params)
  3445. .then((res) => {
  3446. // this.$message({
  3447. // message: "修改成功",
  3448. // type: "success",
  3449. // });
  3450. // this.courseId = this.cid;
  3451. })
  3452. .catch((err) => {
  3453. this.$message.error("网络不佳");
  3454. console.error(err);
  3455. });
  3456. }
  3457. },
  3458. steps(newValue) {
  3459. if (newValue == 4) {
  3460. this.goTo(
  3461. "/course?userid=" +
  3462. this.userid +
  3463. "&oid=" +
  3464. this.oid +
  3465. "&org=" +
  3466. this.org +
  3467. "&role=" +
  3468. this.role
  3469. );
  3470. }
  3471. }
  3472. },
  3473. methods: {
  3474. setMan() {
  3475. // let teacherJuri = this.teacherJuri2;
  3476. this.ManAarray = [];
  3477. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3478. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3479. _user.push(this.courseUserid || this.userid);
  3480. }
  3481. let params = {
  3482. uid: _user.join(","),
  3483. };
  3484. this.ajax
  3485. .get(this.$store.state.api + "getAllUserById", params)
  3486. .then((res) => {
  3487. let teacherJuri = res.data[0];
  3488. this.ManAarray = teacherJuri;
  3489. })
  3490. .catch((err) => {
  3491. console.error(err);
  3492. });
  3493. },
  3494. previewImg(url) {
  3495. this.$hevueImgPreview(url);
  3496. },
  3497. scrollChange() {
  3498. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3499. // document.querySelector('.course_left').scrollHeight
  3500. // document.querySelector('.stepsBottom2').scrollHeight
  3501. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3502. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3503. let client = $(".course_left")[0].clientHeight - stepsBottom2
  3504. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2
  3505. // if (top < client) {
  3506. // $('.stepsBottom2')[0].style.position = 'absolute'
  3507. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3508. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3509. // } else
  3510. if (top > 0) {
  3511. let top = $(".rightBox")[0].offsetTop
  3512. $('.stepsBottom2')[0].style.position = 'fixed'
  3513. $('.stepsBottom2')[0].style.top = top + 'px'
  3514. // $('.stepsBottom2')[0].style.top = top + 'px'
  3515. } else {
  3516. $('.stepsBottom2')[0].style.position = 'absolute'
  3517. $('.stepsBottom2')[0].style.top = '0px'
  3518. }
  3519. },
  3520. handleCheckAllChange(val) {
  3521. this.checkedCities = val ? cityOptions : [];
  3522. this.isIndeterminate = false;
  3523. },
  3524. handleCheckedCitiesChange(value) {
  3525. let checkedCount = value.length;
  3526. this.checkAll = checkedCount === this.cities.length;
  3527. this.isIndeterminate =
  3528. checkedCount > 0 && checkedCount < this.cities.length;
  3529. },
  3530. addHw(e) {
  3531. var el = e.currentTarget;
  3532. el.getElementsByTagName("input")[0].click();
  3533. },
  3534. change(val) {
  3535. console.log(val);
  3536. },
  3537. change2(val) {
  3538. console.log(val);
  3539. this.$forceUpdate();
  3540. },
  3541. handleClose(done) {
  3542. done();
  3543. },
  3544. imgChange2(i, j) {
  3545. var _tmp = this.testJson.testJson[i].checkList[j];
  3546. this.noneBtnImg = _tmp.length >= 1;
  3547. },
  3548. imgChange3(i) {
  3549. var _tmp = this.testJson.testJson[i];
  3550. this.noneBtnImg = _tmp.length >= 1;
  3551. },
  3552. imgChange1(file, fileList, type, itemTaskIndex) {
  3553. if (type == 1) {
  3554. var _tmp = this.cover;
  3555. } else if (
  3556. type == 2 ||
  3557. type == 3 ||
  3558. type == 6 ||
  3559. type == 7 ||
  3560. type == 8
  3561. ) {
  3562. var _tmp =
  3563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3564. .chapterData;
  3565. } else if (type == 4) {
  3566. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3567. } else {
  3568. var _tmp =
  3569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3570. .homeworkList;
  3571. }
  3572. this.noneBtnImg = _tmp.length >= 1;
  3573. },
  3574. goTo(path) {
  3575. this.$router.push(path);
  3576. },
  3577. guid() {
  3578. var _num,
  3579. i,
  3580. _guid = "";
  3581. for (i = 0; i < 32; i++) {
  3582. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3583. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3584. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3585. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3586. _guid += "-";
  3587. }
  3588. }
  3589. return _guid;
  3590. },
  3591. lastSteps() {
  3592. this.goTo(
  3593. "/course?userid=" +
  3594. this.userid +
  3595. "&oid=" +
  3596. this.oid +
  3597. "&org=" +
  3598. this.org +
  3599. "&role=" +
  3600. this.role
  3601. );
  3602. },
  3603. nextSteps() {
  3604. if (this.cid == "" || this.cid == undefined) {
  3605. if (this.courseName == "") {
  3606. this.$message.error("请将信息填写完整");
  3607. return;
  3608. } else {
  3609. this.addWork();
  3610. this.steps = 4
  3611. }
  3612. } else {
  3613. if (this.courseName == "") {
  3614. this.$message.error("请将信息填写完整");
  3615. return;
  3616. } else {
  3617. if (this.userid != this.courseUserid && this.role != '1') {
  3618. this.updateWork2();
  3619. } else {
  3620. this.updateWork();
  3621. }
  3622. this.steps = 4
  3623. }
  3624. }
  3625. this.$refs.stepBox.scrollTop = 0;
  3626. },
  3627. unitSet(i) {
  3628. this.unitIndex = i;
  3629. // this.$refs.rightboxR.scrollTop = 0;
  3630. },
  3631. time() {
  3632. if (!this.now) {
  3633. this.now = new Date().getTime();
  3634. return true;
  3635. } else {
  3636. let time = new Date().getTime();
  3637. if (time - this.now > 3000) {
  3638. this.now = time;
  3639. return true;
  3640. } else {
  3641. return false;
  3642. }
  3643. }
  3644. },
  3645. deleteUnit(i) {
  3646. var _this = this;
  3647. if (_this.time()) {
  3648. _this
  3649. .$confirm("确定删除此单元吗?", "提示", {
  3650. confirmButtonText: "确定",
  3651. cancelButtonText: "取消",
  3652. type: "warning",
  3653. })
  3654. .then(() => {
  3655. _this.isDelete = 2;
  3656. // _this.unitIndex = _this.unitIndex - 1;
  3657. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3658. // _this.$message.success("删除成功");
  3659. })
  3660. .catch(() => {
  3661. return;
  3662. });
  3663. }
  3664. },
  3665. deleteWork(chapid) {
  3666. let params = [
  3667. {
  3668. cid: this.cid,
  3669. chapters: JSON.stringify(this.unitJson),
  3670. uid: this.userid,
  3671. chapid: chapid,
  3672. },
  3673. ];
  3674. this.ajax
  3675. .post(this.$store.state.api + "deleteWork", params)
  3676. .then((res) => {
  3677. this.$message({
  3678. message: "删除成功",
  3679. type: "success",
  3680. });
  3681. this.unitJson.splice(this.unitIndex, 1);
  3682. this.unitIndex = this.unitIndex - 1;
  3683. })
  3684. .catch((err) => {
  3685. this.$message.error("网络不佳");
  3686. console.error(err);
  3687. });
  3688. },
  3689. deleteTool(itemTaskIndex, i) {
  3690. var _this = this;
  3691. if (_this.time()) {
  3692. _this
  3693. .$confirm("确定删除此工具吗?", "提示", {
  3694. confirmButtonText: "确定",
  3695. cancelButtonText: "取消",
  3696. type: "warning",
  3697. })
  3698. .then(() => {
  3699. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3700. itemTaskIndex
  3701. ].toolChoose.splice(i, 1);
  3702. _this.$message.success("删除成功");
  3703. })
  3704. .catch(() => {
  3705. return;
  3706. });
  3707. }
  3708. },
  3709. deleteSentence(i) {
  3710. var _this = this;
  3711. if (_this.time()) {
  3712. _this
  3713. .$confirm("确定删除此题目吗?", "提示", {
  3714. confirmButtonText: "确定",
  3715. cancelButtonText: "取消",
  3716. type: "warning",
  3717. })
  3718. .then(() => {
  3719. _this.sentenceList.splice(i, 1);
  3720. _this.$message.success("删除成功");
  3721. })
  3722. .catch(() => {
  3723. return;
  3724. });
  3725. }
  3726. },
  3727. deleteS(s, i, j) {
  3728. this.sentenceList[i].addSentence.splice(j, 1);
  3729. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3730. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3731. this.sentenceList[i].rightAnswer.splice(a, 1);
  3732. }
  3733. },
  3734. openT() {
  3735. window.parent.postMessage({ tools: "25" }, "*");
  3736. },
  3737. deleteTask(i) {
  3738. var _this = this;
  3739. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3740. _this
  3741. .$confirm("确定删除此任务吗?" , "提示", {
  3742. confirmButtonText: "确定",
  3743. cancelButtonText: "取消",
  3744. type: "warning",
  3745. })
  3746. .then(() => {
  3747. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3748. i,
  3749. 1
  3750. );
  3751. _this.$message.success("删除成功");
  3752. // this.$nextTick(() => {
  3753. // $('.stepsBottom2')[0].style.transition = 'unset'
  3754. // setTimeout(() => {
  3755. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3756. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3757. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3758. // if (top > client) {
  3759. // $('.stepsBottom2')[0].style.top = client + 'px'
  3760. // }
  3761. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3762. // this.$forceUpdate()
  3763. // }, 500)
  3764. // })
  3765. })
  3766. .catch(() => {
  3767. return;
  3768. });
  3769. },
  3770. handlePictureCardPreview(file) {
  3771. this.dialogImageUrl = file.url;
  3772. },
  3773. clean(i, c) {
  3774. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3775. },
  3776. handle_remove1(file, fileList, type) {
  3777. var _tmp = this.cover;
  3778. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3779. // if (_tmp[i].uid == file.uid) {
  3780. // _tmp.splice(i, 1);
  3781. // break;
  3782. // }
  3783. // this.cover = _tmp;
  3784. // }
  3785. this.cover = [];
  3786. this.noneBtnImg = this.cover.length >= 1;
  3787. this.isSysPic = false;
  3788. this.$forceUpdate();
  3789. },
  3790. addImg(e) {
  3791. var el = e.currentTarget;
  3792. el.getElementsByTagName("input")[0].click();
  3793. e.target.value = "";
  3794. },
  3795. addChaptersTools(i) {
  3796. this.chapTools = [
  3797. {
  3798. tools: [],
  3799. toolDetail: "",
  3800. },
  3801. ];
  3802. this.chapCount = i;
  3803. this.dialogVisible4 = true;
  3804. },
  3805. isNoFinsh() {
  3806. this.$message.warning("功能正在开发中");
  3807. },
  3808. addAttText(i) {
  3809. this.AttText = {
  3810. title: "",
  3811. text: "",
  3812. };
  3813. this.taskCount = i;
  3814. this.AttTextType = 0;
  3815. this.$forceUpdate();
  3816. this.dialogVisible6 = true;
  3817. },
  3818. openLine(i) {
  3819. this.line = "";
  3820. this.lineCount = i;
  3821. this.lineType = 0;
  3822. this.$forceUpdate();
  3823. this.dialogVisible7 = true;
  3824. },
  3825. pasteLine(i) {
  3826. navigator.clipboard
  3827. .readText()
  3828. .then((v) => {
  3829. console.log("获取剪贴板成功:", v);
  3830. const html = v;
  3831. const regex = /src="(.*?)"/g;
  3832. const match = regex.exec(html);
  3833. if (match && match[1]) {
  3834. console.log(match[1]);
  3835. this.$message.success("粘贴成功")
  3836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3837. i
  3838. ].chapterData.push({
  3839. name: "链接",
  3840. title: "嵌入代码",
  3841. url: match[1],
  3842. type: 8,
  3843. });
  3844. } else {
  3845. // console.log("未找到包含 src 属性的 iframe");
  3846. this.$message.error("没有找到粘贴的链接")
  3847. }
  3848. })
  3849. .catch((v) => {
  3850. console.log("获取剪贴板失败: ", v);
  3851. });
  3852. },
  3853. openSource(i) {
  3854. this.lineCount = i;
  3855. this.sourceData = {}
  3856. this.dialogVisibleSource = true;
  3857. },
  3858. addSource() {
  3859. if (!Object.keys(this.sourceData).length) {
  3860. this.$message.error("请选择要上传的资源")
  3861. return;
  3862. }
  3863. let keys = Object.keys(this.sourceData)
  3864. for (var i = 0; i < keys.length; i++) {
  3865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3866. this.lineCount
  3867. ].chapterData.push({
  3868. name: "链接",
  3869. title: this.sourceData[keys[i]].name,
  3870. url: this.sourceData[keys[i]].url,
  3871. type: 8,
  3872. });
  3873. }
  3874. this.$forceUpdate();
  3875. this.dialogVisibleSource = false;
  3876. },
  3877. deleteM(i, j) {
  3878. this.testJson.testJson[i].timuList.splice(j, 1);
  3879. },
  3880. beforeUploadTiMu(event, i) {
  3881. const loading = this.openLoading();
  3882. var file = event.target.files[0];
  3883. var credentials = {
  3884. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3885. secretAccessKey: "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",
  3886. }; //秘钥形式的登录上传
  3887. window.AWS.config.update(credentials);
  3888. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3889. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3890. var _this = this;
  3891. if (file) {
  3892. var params = {
  3893. Key:
  3894. file.name.split(".")[0] +
  3895. new Date().getTime() +
  3896. "." +
  3897. file.name.split(".")[file.name.split(".").length - 1],
  3898. ContentType: file.type,
  3899. Body: file,
  3900. "Access-Control-Allow-Credentials": "*",
  3901. ACL: "public-read",
  3902. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3903. var options = {
  3904. partSize: 2048 * 1024 * 1024,
  3905. queueSize: 2,
  3906. leavePartsOnError: true,
  3907. };
  3908. bucket
  3909. .upload(params, options)
  3910. .on("httpUploadProgress", function (evt) {
  3911. //这里可以写进度条
  3912. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3913. })
  3914. .send(function (err, data) {
  3915. loading.close();
  3916. if (err) {
  3917. _this.$message.error("上传失败");
  3918. } else {
  3919. if (_this.testJson.testJson[i].timuList) {
  3920. _this.testJson.testJson[i].timuList.push({
  3921. src: data.Location,
  3922. });
  3923. } else {
  3924. _this.testJson.testJson[i].timuList = [];
  3925. _this.testJson.testJson[i].timuList.push({
  3926. src: data.Location,
  3927. });
  3928. }
  3929. _this.imgChange3(i);
  3930. _this.$forceUpdate();
  3931. }
  3932. });
  3933. }
  3934. },
  3935. beforeUploadTi(event, i, j) {
  3936. const loading = this.openLoading();
  3937. var file = event.target.files[0];
  3938. var credentials = {
  3939. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3940. secretAccessKey: "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",
  3941. }; //秘钥形式的登录上传
  3942. window.AWS.config.update(credentials);
  3943. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3944. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3945. var _this = this;
  3946. if (file) {
  3947. var params = {
  3948. Key:
  3949. file.name.split(".")[0] +
  3950. new Date().getTime() +
  3951. "." +
  3952. file.name.split(".")[file.name.split(".").length - 1],
  3953. ContentType: file.type,
  3954. Body: file,
  3955. "Access-Control-Allow-Credentials": "*",
  3956. ACL: "public-read",
  3957. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3958. var options = {
  3959. partSize: 2048 * 1024 * 1024,
  3960. queueSize: 2,
  3961. leavePartsOnError: true,
  3962. };
  3963. bucket
  3964. .upload(params, options)
  3965. .on("httpUploadProgress", function (evt) {
  3966. //这里可以写进度条
  3967. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3968. })
  3969. .send(function (err, data) {
  3970. loading.close();
  3971. if (err) {
  3972. _this.$message.error("上传失败");
  3973. } else {
  3974. _this.testJson.testJson[i].checkList[j] = {};
  3975. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3976. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3977. _this.imgChange2(i, j);
  3978. _this.$forceUpdate();
  3979. }
  3980. });
  3981. }
  3982. },
  3983. beforeUpload1(event, type) {
  3984. // const loading = this.openLoading();
  3985. var file = event.target.files[0];
  3986. var credentials = {
  3987. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3988. secretAccessKey: "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",
  3989. }; //秘钥形式的登录上传
  3990. window.AWS.config.update(credentials);
  3991. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3992. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3993. var _this = this;
  3994. if (file) {
  3995. var params = {
  3996. Key:
  3997. file.name.split(".")[0] +
  3998. new Date().getTime() +
  3999. "." +
  4000. file.name.split(".")[file.name.split(".").length - 1],
  4001. ContentType: file.type,
  4002. Body: file,
  4003. "Access-Control-Allow-Credentials": "*",
  4004. ACL: "public-read",
  4005. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4006. var options = {
  4007. partSize: 2048 * 1024 * 1024,
  4008. queueSize: 2,
  4009. leavePartsOnError: true,
  4010. };
  4011. bucket
  4012. .upload(params, options)
  4013. .on("httpUploadProgress", function (evt) {
  4014. //这里可以写进度条
  4015. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4016. })
  4017. .send(function (err, data) {
  4018. // loading.close();
  4019. if (err) {
  4020. // var a = _this.$refs.upload1.uploadFiles;
  4021. // a.splice(a.length - 1, a.length);
  4022. _this.$message.error("上传失败");
  4023. } else {
  4024. _this.cover.push({
  4025. name: file.name,
  4026. url: data.Location,
  4027. uid: file.uid,
  4028. });
  4029. _this.imgChange1(null, null, 1, null);
  4030. _this.choosePicVisible = false;
  4031. console.log(data.Location);
  4032. }
  4033. });
  4034. }
  4035. },
  4036. beforeUploadSelect(event, type) {
  4037. // const loading = this.openLoading();
  4038. var file = event.target.files[0];
  4039. var credentials = {
  4040. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4041. secretAccessKey: "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",
  4042. }; //秘钥形式的登录上传
  4043. window.AWS.config.update(credentials);
  4044. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4045. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4046. var _this = this;
  4047. if (file) {
  4048. var params = {
  4049. Key:
  4050. file.name.split(".")[0] +
  4051. new Date().getTime() +
  4052. "." +
  4053. file.name.split(".")[file.name.split(".").length - 1],
  4054. ContentType: file.type,
  4055. Body: file,
  4056. "Access-Control-Allow-Credentials": "*",
  4057. ACL: "public-read",
  4058. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4059. var options = {
  4060. partSize: 2048 * 1024 * 1024,
  4061. queueSize: 2,
  4062. leavePartsOnError: true,
  4063. };
  4064. bucket
  4065. .upload(params, options)
  4066. .on("httpUploadProgress", function (evt) {
  4067. //这里可以写进度条
  4068. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4069. })
  4070. .send(function (err, data) {
  4071. // loading.close();
  4072. if (err) {
  4073. _this.$message.error("上传失败");
  4074. } else {
  4075. _this.selectJson.url = data.Location;
  4076. console.log(data.Location);
  4077. }
  4078. });
  4079. }
  4080. },
  4081. chooseSysPic(p) {
  4082. this.cover.push({
  4083. name: "系统图片.png",
  4084. url: p,
  4085. });
  4086. this.imgChange1(null, null, 1, null);
  4087. this.isSysPic = true;
  4088. this.sysPicVisible = false;
  4089. },
  4090. beforeUpload(data) {
  4091. this.$refs.upload1.uploadFiles;
  4092. this.uploadLoading1 = true;
  4093. var file = data.file;
  4094. var credentials = {
  4095. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4096. secretAccessKey: "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",
  4097. }; //秘钥形式的登录上传
  4098. window.AWS.config.update(credentials);
  4099. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4100. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4101. var _this = this;
  4102. if (file) {
  4103. var params = {
  4104. Key:
  4105. file.name.split(".")[0] +
  4106. new Date().getTime() +
  4107. "." +
  4108. file.name.split(".")[file.name.split(".").length - 1],
  4109. ContentType: file.type,
  4110. Body: file,
  4111. "Access-Control-Allow-Credentials": "*",
  4112. ACL: "public-read",
  4113. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4114. var options = {
  4115. partSize: 2048 * 1024 * 1024,
  4116. queueSize: 2,
  4117. leavePartsOnError: true,
  4118. };
  4119. bucket
  4120. .upload(params, options)
  4121. .on("httpUploadProgress", function (evt) {
  4122. //这里可以写进度条
  4123. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4124. })
  4125. .send(function (err, data) {
  4126. _this.uploadLoading1 = false;
  4127. if (err) {
  4128. // var a = _this.$refs.upload1.uploadFiles;
  4129. // a.splice(a.length - 1, a.length);
  4130. _this.$message.error("上传失败");
  4131. } else {
  4132. //上传成功处理
  4133. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4134. name: file.name,
  4135. url: data.Location,
  4136. uid: file.uid,
  4137. });
  4138. _this.imgChange();
  4139. console.log(data.Location);
  4140. }
  4141. });
  4142. }
  4143. },
  4144. onExceed() {
  4145. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4146. },
  4147. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4148. // const loading = this.openLoading();
  4149. var file = event.target.files[0];
  4150. var credentials = {
  4151. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4152. secretAccessKey: "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",
  4153. }; //秘钥形式的登录上传
  4154. window.AWS.config.update(credentials);
  4155. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4156. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4157. var _this = this;
  4158. if (type == 3) {
  4159. var b = [
  4160. "DOC",
  4161. "DOCX",
  4162. "DOCM",
  4163. "DOTM",
  4164. "DOTX",
  4165. "PPTX",
  4166. "PPSX",
  4167. "PPT",
  4168. "PPS",
  4169. "PPTM",
  4170. "POTM",
  4171. "PPAM",
  4172. "POTX",
  4173. "PPSM",
  4174. ];
  4175. if (
  4176. b.indexOf(
  4177. file.name
  4178. .split(".")
  4179. [file.name.split(".").length - 1].toLocaleUpperCase()
  4180. ) != -1
  4181. ) {
  4182. if (file.size / 1024 / 1024 > 80) {
  4183. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4184. this.inputShow = true;
  4185. // var a = _this.$refs.upload1.uploadFiles;
  4186. // a.splice(a.length - 1, a.length);
  4187. // loading.close();
  4188. return;
  4189. }
  4190. } else if (
  4191. file.name
  4192. .split(".")
  4193. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4194. ) {
  4195. if (file.size / 1024 / 1024 > 80) {
  4196. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4197. this.inputShow = true;
  4198. // var a = _this.$refs.upload1.uploadFiles;
  4199. // a.splice(a.length - 1, a.length);
  4200. // loading.close();
  4201. return;
  4202. }
  4203. }
  4204. }
  4205. this.inputShow = false;
  4206. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4207. itemTaskIndex
  4208. ].progress = 0;
  4209. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4210. itemTaskIndex
  4211. ].proVisible = true;
  4212. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4213. itemTaskIndex
  4214. ].isFinishSize = 0;
  4215. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4216. itemTaskIndex
  4217. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4218. _this.$forceUpdate();
  4219. if (file) {
  4220. var params = {
  4221. Key:
  4222. file.name.split(".")[0] +
  4223. new Date().getTime() +
  4224. "." +
  4225. file.name.split(".")[file.name.split(".").length - 1],
  4226. ContentType: file.type,
  4227. Body: file,
  4228. "Access-Control-Allow-Credentials": "*",
  4229. ACL: "public-read",
  4230. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4231. var options = {
  4232. partSize: 2048 * 1024 * 1024,
  4233. queueSize: 2,
  4234. leavePartsOnError: true,
  4235. };
  4236. bucket
  4237. .upload(params, options)
  4238. .on("httpUploadProgress", function (evt) {
  4239. //这里可以写进度条
  4240. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4241. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4242. itemTaskIndex
  4243. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4244. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4245. itemTaskIndex
  4246. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4247. _this.$forceUpdate();
  4248. })
  4249. .send(function (err, data) {
  4250. // loading.close();
  4251. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4252. itemTaskIndex
  4253. ].progress = 100;
  4254. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4255. itemTaskIndex
  4256. ].isFinishSize =
  4257. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4258. itemTaskIndex
  4259. ].isAllSize;
  4260. _this.$forceUpdate();
  4261. setTimeout(() => {
  4262. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4263. itemTaskIndex
  4264. ].proVisible = false;
  4265. _this.$forceUpdate();
  4266. }, 1000);
  4267. _this.inputShow = true;
  4268. if (err) {
  4269. // var a = _this.$refs.upload1.uploadFiles;
  4270. // a.splice(a.length - 1, a.length);
  4271. _this.$message.error("上传失败");
  4272. } else {
  4273. if (type == 13) {
  4274. let _type = 2
  4275. var fileA = [
  4276. "PDF",
  4277. "DOC",
  4278. "DOCX",
  4279. "DOCM",
  4280. "DOTM",
  4281. "DOTX",
  4282. "PPTX",
  4283. "PPSX",
  4284. "PPT",
  4285. "PPS",
  4286. "PPTM",
  4287. "POTM",
  4288. "PPAM",
  4289. "POTX",
  4290. "PPSM","XLSX", "XLS"
  4291. ];
  4292. var videoA = [
  4293. "AVI",
  4294. "NAVI",
  4295. "MPEG",
  4296. "ASF",
  4297. "MOV",
  4298. "WMV",
  4299. "3GP",
  4300. "RM",
  4301. "RMVB",
  4302. "FLV",
  4303. "F4V",
  4304. "H.264",
  4305. "H.265",
  4306. "REAL VIDEO",
  4307. "MKV",
  4308. "WebM",
  4309. "HDDVD",
  4310. "MP4",
  4311. "MPG",
  4312. "M4V",
  4313. "MGV",
  4314. "OGV",
  4315. "QTM",
  4316. "STR",
  4317. "AMC",
  4318. "DVX",
  4319. "EVO",
  4320. "DAT",
  4321. "OGG",
  4322. "OGM",
  4323. ];
  4324. if (fileA.indexOf(
  4325. data.Location
  4326. .split(".")
  4327. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4328. ) != -1) {
  4329. _type = 3
  4330. } else if (videoA.indexOf(
  4331. data.Location
  4332. .split(".")
  4333. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4334. ) != -1) {
  4335. _type = 2
  4336. } else {
  4337. _type = 12
  4338. }
  4339. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4340. itemTaskIndex
  4341. ].chapterData.push({
  4342. name: file.name,
  4343. url: data.Location,
  4344. uid: file.uid,
  4345. type: _type,
  4346. });
  4347. _this.imgChange1(null, null, _type, itemTaskIndex);
  4348. } else if (type == 2 || type == 3 || type == 12) {
  4349. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4350. itemTaskIndex
  4351. ].chapterData.push({
  4352. name: file.name,
  4353. url: data.Location,
  4354. uid: file.uid,
  4355. type: type,
  4356. });
  4357. _this.imgChange1(null, null, type, itemTaskIndex);
  4358. } else if (type == 4) {
  4359. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4360. itemTaskIndex
  4361. ].fileList1.push({
  4362. name: file.name,
  4363. url: data.Location,
  4364. uid: file.uid,
  4365. });
  4366. _this.imgChange1(null, null, type, itemTaskIndex);
  4367. } else if (type == 5) {
  4368. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4369. itemTaskIndex
  4370. ].homeworkList.push({
  4371. name: file.name,
  4372. url: data.Location,
  4373. uid: file.uid,
  4374. });
  4375. _this.imgChange1(null, null, type, itemTaskIndex);
  4376. }
  4377. console.log(data.Location);
  4378. }
  4379. });
  4380. }
  4381. },
  4382. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4383. // const loading = this.openLoading();
  4384. var file = event.target.files[0];
  4385. var credentials = {
  4386. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4387. secretAccessKey: "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",
  4388. }; //秘钥形式的登录上传
  4389. window.AWS.config.update(credentials);
  4390. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4391. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4392. var _this = this;
  4393. if (type == 3) {
  4394. var b = [
  4395. "DOC",
  4396. "DOCX",
  4397. "DOCM",
  4398. "DOTM",
  4399. "DOTX",
  4400. "PPTX",
  4401. "PPSX",
  4402. "PPT",
  4403. "PPS",
  4404. "PPTM",
  4405. "POTM",
  4406. "PPAM",
  4407. "POTX",
  4408. "PPSM",
  4409. ];
  4410. if (
  4411. b.indexOf(
  4412. file.name
  4413. .split(".")
  4414. [file.name.split(".").length - 1].toLocaleUpperCase()
  4415. ) != -1
  4416. ) {
  4417. if (file.size / 1024 / 1024 > 80) {
  4418. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4419. this.inputShow = true;
  4420. // var a = _this.$refs.upload1.uploadFiles;
  4421. // a.splice(a.length - 1, a.length);
  4422. // loading.close();
  4423. return;
  4424. }
  4425. } else if (
  4426. file.name
  4427. .split(".")
  4428. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4429. ) {
  4430. if (file.size / 1024 / 1024 > 80) {
  4431. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4432. this.inputShow = true;
  4433. // var a = _this.$refs.upload1.uploadFiles;
  4434. // a.splice(a.length - 1, a.length);
  4435. // loading.close();
  4436. return;
  4437. }
  4438. }
  4439. }
  4440. this.inputShow = false;
  4441. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4442. itemTaskIndex
  4443. ].progress = 0;
  4444. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4445. itemTaskIndex
  4446. ].proVisible = true;
  4447. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4448. itemTaskIndex
  4449. ].isFinishSize = 0;
  4450. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4451. itemTaskIndex
  4452. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4453. _this.$forceUpdate();
  4454. if (file) {
  4455. var params = {
  4456. Key:
  4457. file.name.split(".")[0] +
  4458. new Date().getTime() +
  4459. "." +
  4460. file.name.split(".")[file.name.split(".").length - 1],
  4461. ContentType: file.type,
  4462. Body: file,
  4463. "Access-Control-Allow-Credentials": "*",
  4464. ACL: "public-read",
  4465. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4466. var options = {
  4467. partSize: 2048 * 1024 * 1024,
  4468. queueSize: 2,
  4469. leavePartsOnError: true,
  4470. };
  4471. bucket
  4472. .upload(params, options)
  4473. .on("httpUploadProgress", function (evt) {
  4474. //这里可以写进度条
  4475. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4476. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4477. itemTaskIndex
  4478. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4479. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4480. itemTaskIndex
  4481. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4482. _this.$forceUpdate();
  4483. })
  4484. .send(function (err, data) {
  4485. // loading.close();
  4486. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4487. itemTaskIndex
  4488. ].progress = 100;
  4489. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4490. itemTaskIndex
  4491. ].isFinishSize =
  4492. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4493. itemTaskIndex
  4494. ].isAllSize;
  4495. _this.$forceUpdate();
  4496. setTimeout(() => {
  4497. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4498. itemTaskIndex
  4499. ].proVisible = false;
  4500. _this.$forceUpdate();
  4501. }, 1000);
  4502. _this.inputShow = true;
  4503. if (err) {
  4504. // var a = _this.$refs.upload1.uploadFiles;
  4505. // a.splice(a.length - 1, a.length);
  4506. _this.$message.error("上传失败");
  4507. } else {
  4508. if (type == 2 || type == 3) {
  4509. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4510. itemTaskIndex
  4511. ].chapterData.push({
  4512. name: file.name,
  4513. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4514. // itemTaskIndex
  4515. // ].chapterData.length+1),
  4516. url: data.Location,
  4517. uid: file.uid,
  4518. type: type,
  4519. text: string,
  4520. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4521. // itemTaskIndex
  4522. // ].chapterData.length + 1),
  4523. });
  4524. _this.imgChange1(null, null, type, itemTaskIndex);
  4525. } else if (type == 4) {
  4526. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4527. itemTaskIndex
  4528. ].fileList1.push({
  4529. name: file.name,
  4530. url: data.Location,
  4531. uid: file.uid,
  4532. });
  4533. _this.imgChange1(null, null, type, itemTaskIndex);
  4534. } else if (type == 5) {
  4535. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4536. itemTaskIndex
  4537. ].homeworkList.push({
  4538. name: file.name,
  4539. url: data.Location,
  4540. uid: file.uid,
  4541. });
  4542. _this.imgChange1(null, null, type, itemTaskIndex);
  4543. }
  4544. console.log(data.Location);
  4545. }
  4546. });
  4547. }
  4548. },
  4549. addunit() {
  4550. this.unitJson.push({
  4551. dyName: "", //单元标题
  4552. isUpdate: 1,
  4553. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4554. chapterInfo: [
  4555. {
  4556. isread: false,
  4557. chapterid: this.guid(),
  4558. title: "",
  4559. courseName: "",
  4560. taskJson: [
  4561. {
  4562. task: "",
  4563. taskDetail: "",
  4564. chapterData: [],
  4565. toolText: "",
  4566. toolChoose: [
  4567. {
  4568. tool: [],
  4569. toolDetail: "",
  4570. toolType: 0,
  4571. askCount: 1,
  4572. askTitle: "",
  4573. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4574. },
  4575. ],
  4576. isShowTools: false,
  4577. askCount: 1,
  4578. isFold: 0,
  4579. askTitle: "",
  4580. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4581. checkJson: [{ checkCount: [], checkPerent: [] }],
  4582. homeworkList: [],
  4583. },
  4584. ],
  4585. itemCount: 1,
  4586. fileList1: [],
  4587. video: [],
  4588. testData: [],
  4589. pData: [],
  4590. templateArray: [],
  4591. },
  4592. ],
  4593. });
  4594. this.addindex = this.unitJson.length - 1;
  4595. setTimeout(() => {
  4596. this.unitIndex = this.unitJson.length - 1;
  4597. this.unitSet(this.unitIndex);
  4598. }, 0);
  4599. },
  4600. addToolFun(itemTaskIndex) {
  4601. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4602. itemTaskIndex
  4603. ].toolChoose.push({
  4604. tool: [],
  4605. toolDetail: "",
  4606. toolType: 0,
  4607. askCount: 1,
  4608. askTitle: "",
  4609. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4610. });
  4611. },
  4612. addTaskBorder() {
  4613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4614. task: "",
  4615. taskDetail: "",
  4616. chapterData: [],
  4617. toolChoose: [
  4618. {
  4619. tool: [],
  4620. toolDetail: "",
  4621. toolType: 0,
  4622. askCount: 1,
  4623. askTitle: "",
  4624. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4625. },
  4626. ],
  4627. toolText: "",
  4628. isShowTools: false,
  4629. askCount: 1,
  4630. isFold: 0,
  4631. askTitle: "",
  4632. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4633. checkJson: [{ checkCount: [], checkPerent: [] }],
  4634. homeworkList: [],
  4635. });
  4636. },
  4637. add(e, i) {
  4638. var el = e.currentTarget;
  4639. el.getElementsByTagName("input")[0].click();
  4640. },
  4641. fold(i, e, type) {
  4642. var a = e.currentTarget.parentElement.parentElement;
  4643. var b = e.currentTarget.parentElement;
  4644. if (type == 1) {
  4645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4646. a.className += " smallTaskBorder";
  4647. b.className += " funBlockTop";
  4648. } else {
  4649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4650. a.className = "taskBorder";
  4651. b.className = "funBlock";
  4652. }
  4653. console.log(e);
  4654. },
  4655. deleteHomeworkBox(unitIndex, index, i) {
  4656. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4657. this.taskCount
  4658. ].homeworkList.splice(i, 1);
  4659. },
  4660. getStudent() {
  4661. let params = {
  4662. oid: this.oid,
  4663. cu: "",
  4664. cn: this.searchPeople,
  4665. };
  4666. this.ajax
  4667. .get(this.$store.state.api + "selectStudentAdd", params)
  4668. .then((res) => {
  4669. this.studentJuri = res.data[0];
  4670. })
  4671. .catch((err) => {
  4672. this.isLoading = false;
  4673. console.error(err);
  4674. });
  4675. },
  4676. getTeacher() {
  4677. let params = {
  4678. oid:
  4679. this.org && this.org != "undefined" && this.org != "null"
  4680. ? this.org
  4681. : this.oid,
  4682. cu: "",
  4683. cn: this.searchTN,
  4684. };
  4685. this.ajax
  4686. .get(
  4687. this.$store.state.api +
  4688. (this.org && this.org != "undefined" && this.org != "null"
  4689. ? "selectTeacherAddOrg"
  4690. : "selectTeacherAdd"),
  4691. params
  4692. )
  4693. .then((res) => {
  4694. let teacherJuri = res.data[0];
  4695. for (var i = 0; i < teacherJuri.length; i++) {
  4696. if (teacherJuri[i].userid == this.userid) {
  4697. teacherJuri.splice(i, 1);
  4698. break;
  4699. }
  4700. }
  4701. this.teacherJuri = teacherJuri;
  4702. })
  4703. .catch((err) => {
  4704. console.error(err);
  4705. });
  4706. },
  4707. searchStudent() {
  4708. this.getStudent();
  4709. },
  4710. //获取班级列表
  4711. getClass() {
  4712. let params = {
  4713. oid: this.oid,
  4714. cn: this.classSearch,
  4715. };
  4716. this.ajax
  4717. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4718. .then((res) => {
  4719. if (!this.grade.length) {
  4720. this.grade = res.data[0];
  4721. }
  4722. this.grade2 = res.data[0];
  4723. this.classJuri = res.data[0];
  4724. })
  4725. .catch((err) => {
  4726. this.isLoading = false;
  4727. console.error(err);
  4728. });
  4729. },
  4730. CourseType2Change(val) {
  4731. this.pTypeCheck = [];
  4732. for (var i = 0; i < this.CourseType2.length; i++) {
  4733. let typeA = this.CourseType2[i];
  4734. if (val.indexOf(typeA.name) != -1) {
  4735. this.pTypeCheck.push(...typeA.id);
  4736. }
  4737. }
  4738. },
  4739. getChapterData(e, i, j, ic, type) {
  4740. e.stopPropagation();
  4741. this.updataC = true;
  4742. this.icc = ic;
  4743. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4744. console.log("还不能下载图片喔");
  4745. }
  4746. },
  4747. deleteChapterData(e, i, j, ic, taskI) {
  4748. e.stopPropagation();
  4749. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4750. },
  4751. updataVideoT(e, i, j, ic) {
  4752. e.stopPropagation();
  4753. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4754. ic
  4755. ].name = e.target.value;
  4756. },
  4757. upCd(e, i, j, taskCount, ic) {
  4758. e.stopPropagation();
  4759. if (ic == 0) {
  4760. return;
  4761. }
  4762. var a =
  4763. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4764. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4765. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4766. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4767. this.$forceUpdate();
  4768. },
  4769. downCd(e, i, j, taskCount, ic) {
  4770. e.stopPropagation();
  4771. if (
  4772. ic ==
  4773. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4774. 1
  4775. ) {
  4776. return;
  4777. }
  4778. var a =
  4779. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4780. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4781. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4782. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4783. this.$forceUpdate();
  4784. },
  4785. addWork() {
  4786. let cPan = 1;
  4787. for (var i = 0; i < this.unitJson.length; i++) {
  4788. for (
  4789. var j = 0;
  4790. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4791. j++
  4792. ) {
  4793. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4794. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4795. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4796. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4797. i
  4798. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4799. return ele.value != "";
  4800. });
  4801. }
  4802. }
  4803. }
  4804. this.inputShow = true;
  4805. if (cPan == 2) {
  4806. this.steps--;
  4807. return;
  4808. }
  4809. for (var i = 0; i < this.unitJson.length; i++) {
  4810. delete this.unitJson[i].isUpdate;
  4811. }
  4812. let params = [
  4813. {
  4814. uid: this.userid,
  4815. title: this.courseName.replace(/%/g, "%25"),
  4816. brief: this.courseText.replace(/%/g, "%25"),
  4817. cover:
  4818. this.cover.length > 0
  4819. ? JSON.stringify(this.cover)
  4820. : JSON.stringify([
  4821. {
  4822. name: "noBanner.jpg",
  4823. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4824. uid: 1656409780264,
  4825. status: "success",
  4826. },
  4827. ]),
  4828. evaId: this.evalua,
  4829. astudent:
  4830. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4831. see: this.isTeacherSee == true ? 1 : 0,
  4832. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4833. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4834. courseType: JSON.stringify(this.courseTypeId),
  4835. ateacher:
  4836. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4837. inviteCode: JSON.stringify(this.inviteCode),
  4838. },
  4839. ];
  4840. this.ajax
  4841. .post(this.$store.state.api + "addWorkNew2E", params)
  4842. .then((res) => {
  4843. console.log(this.steps);
  4844. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4845. this.$message({
  4846. message: "新增成功",
  4847. type: "success",
  4848. });
  4849. }
  4850. this.number = res.data.ordernumber;
  4851. this.courseId = res.data.courseId;
  4852. this.cid = res.data.courseId;
  4853. this.courseUserid = this.userid;
  4854. this.islogin = true;
  4855. })
  4856. .catch((err) => {
  4857. this.$message.error("网络不佳");
  4858. console.error(err);
  4859. });
  4860. },
  4861. goCourse() {
  4862. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4863. },
  4864. updateWork2() {
  4865. let _unitIndex = this.unitIndex;
  4866. let cPan = 1;
  4867. for (
  4868. var j = 0;
  4869. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4870. j++
  4871. ) {
  4872. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4873. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4874. j
  4875. ].proVisible2 = false;
  4876. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4877. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4878. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4879. (ele) => {
  4880. return ele.value != "";
  4881. }
  4882. );
  4883. }
  4884. }
  4885. this.inputShow = true;
  4886. if (cPan == 2) {
  4887. this.steps--;
  4888. return;
  4889. }
  4890. let params = [
  4891. {
  4892. cid: this.cid,
  4893. chapters: JSON.stringify(this.unitJson),
  4894. uid: this.userid,
  4895. unitIndex: _unitIndex,
  4896. },
  4897. ];
  4898. this.ajax
  4899. .post(this.$store.state.api + "updateWorkNew4", params)
  4900. .then((res) => {
  4901. this.$message({
  4902. message: "修改成功",
  4903. type: "success",
  4904. });
  4905. this.courseId = this.cid;
  4906. })
  4907. .catch((err) => {
  4908. this.$message.error("网络不佳");
  4909. console.error(err);
  4910. });
  4911. },
  4912. updateWork() {
  4913. let cPan = 1;
  4914. for (var i = 0; i < this.unitJson.length; i++) {
  4915. for (
  4916. var j = 0;
  4917. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4918. j++
  4919. ) {
  4920. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4921. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4922. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4923. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4924. i
  4925. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4926. return ele.value != "";
  4927. });
  4928. }
  4929. }
  4930. }
  4931. this.inputShow = true;
  4932. if (cPan == 2) {
  4933. this.steps--;
  4934. return;
  4935. }
  4936. for (var i = 0; i < this.unitJson.length; i++) {
  4937. delete this.unitJson[i].isUpdate;
  4938. }
  4939. let params = [
  4940. {
  4941. cid: this.cid,
  4942. title: this.courseName.replace(/%/g, "%25"),
  4943. brief: this.courseText.replace(/%/g, "%25"),
  4944. cover:
  4945. this.cover.length > 0
  4946. ? JSON.stringify(this.cover)
  4947. : JSON.stringify([
  4948. {
  4949. name: "noBanner.jpg",
  4950. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4951. uid: 1656409780264,
  4952. status: "success",
  4953. },
  4954. ]),
  4955. evaId: this.evalua,
  4956. astudent:
  4957. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4958. see: this.isTeacherSee == true ? 1 : 0,
  4959. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4960. template: this.myWord != "undefined" ? this.myWord : [],
  4961. uid: this.userid,
  4962. courseType: JSON.stringify(this.courseTypeId),
  4963. ateacher:
  4964. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4965. inviteCode: JSON.stringify(this.inviteCode),
  4966. },
  4967. ];
  4968. this.ajax
  4969. .post(this.$store.state.api + "updateWorkNew2", params)
  4970. .then((res) => {
  4971. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4972. if (this.cidType == 1) {
  4973. this.$message({
  4974. message: "修改成功",
  4975. type: "success",
  4976. });
  4977. } else {
  4978. this.$message({
  4979. message: "新增成功",
  4980. type: "success",
  4981. });
  4982. }
  4983. }
  4984. this.number = this.nbOrder;
  4985. this.courseId = this.cid;
  4986. })
  4987. .catch((err) => {
  4988. this.$message.error("网络不佳");
  4989. console.error(err);
  4990. });
  4991. },
  4992. guid() {
  4993. var _num,
  4994. i,
  4995. _guid = "";
  4996. for (i = 0; i < 32; i++) {
  4997. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4998. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4999. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5000. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5001. _guid += "-";
  5002. }
  5003. }
  5004. return _guid;
  5005. },
  5006. insertWord() {
  5007. this.dialogVisible1 = true;
  5008. this.updateBoolean2 = false;
  5009. this.tTitle = "";
  5010. this.tdetail = "";
  5011. },
  5012. addWord() {
  5013. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5014. name: this.tTitle,
  5015. content: this.tdetail,
  5016. uid: this.guid(),
  5017. });
  5018. this.dialogVisible1 = false;
  5019. },
  5020. upWord() { },
  5021. selectWord(uid, i, c) {
  5022. this.dialogVisible1 = true;
  5023. this.updateBoolean2 = true;
  5024. if (
  5025. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5026. ) {
  5027. this.tTitle =
  5028. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5029. this.tdetail =
  5030. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5031. }
  5032. },
  5033. isAddPP() {
  5034. if (this.checkboxList.length > 0) {
  5035. this.$message({
  5036. message: "添加成功",
  5037. type: "success",
  5038. });
  5039. this.dialogVisible3 = false;
  5040. } else {
  5041. this.$message({
  5042. message: "请添加课程成员",
  5043. type: "error",
  5044. });
  5045. }
  5046. },
  5047. isAddClass() {
  5048. this.dialogVisibleClass = false;
  5049. },
  5050. isAddPPTeacher() {
  5051. this.dialogVisibleMember = false;
  5052. this.setMan();
  5053. },
  5054. getTemplate() {
  5055. this.ajax
  5056. .get(this.$store.state.api + "getCourseTemplateT", "")
  5057. .then((res) => {
  5058. this.templateArray = res.data[0];
  5059. this.getTemplateOid();
  5060. this.$forceUpdate();
  5061. })
  5062. .catch((err) => { });
  5063. },
  5064. getTemplateOid() {
  5065. let params = {
  5066. oid: this.oid,
  5067. };
  5068. this.ajax
  5069. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5070. .then((res) => {
  5071. if (res.data[0].length) {
  5072. this.templateArray = [...res.data[0], ...this.templateArray];
  5073. }
  5074. this.getTemplateOrg();
  5075. this.$forceUpdate();
  5076. })
  5077. .catch((err) => { });
  5078. },
  5079. getTemplateOrg() {
  5080. let params = {
  5081. oid: this.org,
  5082. };
  5083. this.ajax
  5084. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5085. .then((res) => {
  5086. if (res.data[0].length) {
  5087. this.templateArray = [...res.data[0], ...this.templateArray];
  5088. }
  5089. this.$forceUpdate();
  5090. })
  5091. .catch((err) => { });
  5092. },
  5093. clearChoose() {
  5094. this.clearArray.splice(this.templateC.id, 1);
  5095. this.dialogVisible2 = false;
  5096. },
  5097. clearAttText() {
  5098. this.AttText = {
  5099. title: "",
  5100. text: "",
  5101. };
  5102. this.dialogVisible6 = false;
  5103. },
  5104. clearLine() {
  5105. this.line = "";
  5106. this.dialogVisible7 = false;
  5107. },
  5108. checkTemplate(res) {
  5109. let _this = this;
  5110. _this
  5111. .$confirm("确定选择此模板吗?", "提示", {
  5112. confirmButtonText: "确定",
  5113. cancelButtonText: "取消",
  5114. type: "warning",
  5115. })
  5116. .then(() => {
  5117. _this.unitJson = JSON.parse(res.chapters);
  5118. _this.steps++;
  5119. setTimeout(() => {
  5120. this.checkEva(this.checkId);
  5121. }, 1000);
  5122. })
  5123. .catch(() => {
  5124. return;
  5125. });
  5126. },
  5127. checkTemplate1(w) {
  5128. this.steps++;
  5129. },
  5130. checkTemplate2() {
  5131. let _this = this;
  5132. _this
  5133. .$confirm("确定选择空模板吗?", "提示", {
  5134. confirmButtonText: "确定",
  5135. cancelButtonText: "取消",
  5136. type: "warning",
  5137. })
  5138. .then(() => {
  5139. _this.unitIndex = 0;
  5140. _this.unitJson = [
  5141. {
  5142. dyName: "", //单元标题
  5143. chapterInfo: [
  5144. {
  5145. isread: false,
  5146. chapterid: this.guid(),
  5147. title: "",
  5148. courseName: "",
  5149. taskJson: [
  5150. {
  5151. task: "",
  5152. taskDetail: "",
  5153. chapterData: [],
  5154. toolText: "",
  5155. toolChoose: [
  5156. {
  5157. tool: [],
  5158. toolDetail: "",
  5159. toolType: 0,
  5160. askCount: 1,
  5161. askTitle: "",
  5162. askJson: [
  5163. { askstitle: "", askItem: 1, checkList: [] },
  5164. ],
  5165. },
  5166. ],
  5167. isShowTools: false,
  5168. askCount: 1,
  5169. isFold: 0,
  5170. askTitle: "",
  5171. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5172. checkJson: [{ checkCount: [], checkPerent: [] }],
  5173. homeworkList: [],
  5174. },
  5175. ],
  5176. itemCount: 1,
  5177. fileList1: [],
  5178. video: [],
  5179. testData: [],
  5180. pData: [],
  5181. templateArray: [],
  5182. },
  5183. ],
  5184. },
  5185. ];
  5186. this.steps++;
  5187. this.updateWork();
  5188. })
  5189. .catch(() => {
  5190. return;
  5191. });
  5192. },
  5193. checkTemplate3() {
  5194. let _this = this;
  5195. _this
  5196. .$confirm("确定选择简易模式吗?", "提示", {
  5197. confirmButtonText: "确定",
  5198. cancelButtonText: "取消",
  5199. type: "warning",
  5200. })
  5201. .then(() => {
  5202. _this.unitIndex = 0;
  5203. _this.unitJson = [
  5204. {
  5205. dyName: "", //单元标题
  5206. easy: 1,
  5207. chapterInfo: [
  5208. {
  5209. isread: false,
  5210. chapterid: this.guid(),
  5211. title: "",
  5212. courseName: "",
  5213. taskJson: [
  5214. {
  5215. task: "",
  5216. taskDetail: "",
  5217. chapterData: [],
  5218. toolText: "",
  5219. toolChoose: [
  5220. {
  5221. tool: [],
  5222. toolDetail: "",
  5223. toolType: 0,
  5224. askCount: 1,
  5225. askTitle: "",
  5226. askJson: [
  5227. { askstitle: "", askItem: 1, checkList: [] },
  5228. ],
  5229. },
  5230. ],
  5231. isShowTools: false,
  5232. askCount: 1,
  5233. isFold: 0,
  5234. askTitle: "",
  5235. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5236. checkJson: [{ checkCount: [], checkPerent: [] }],
  5237. homeworkList: [],
  5238. },
  5239. ],
  5240. itemCount: 1,
  5241. fileList1: [],
  5242. video: [],
  5243. testData: [],
  5244. pData: [],
  5245. templateArray: [],
  5246. },
  5247. ],
  5248. },
  5249. ];
  5250. this.steps++;
  5251. this.updateWork();
  5252. })
  5253. .catch(() => {
  5254. return;
  5255. });
  5256. },
  5257. checkTemplate4() {
  5258. let _this = this;
  5259. _this
  5260. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5261. confirmButtonText: "确定",
  5262. cancelButtonText: "取消",
  5263. type: "warning",
  5264. })
  5265. .then(() => {
  5266. _this.unitIndex = 0;
  5267. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5268. this.steps++;
  5269. this.updateWork();
  5270. })
  5271. .catch(() => {
  5272. return;
  5273. });
  5274. },
  5275. wordNext() {
  5276. this.dialogVisible2 = false;
  5277. },
  5278. isAddOrUpdateAttText() {
  5279. if (this.AttTextType == 0) {
  5280. this.addAttTextMessage();
  5281. } else {
  5282. this.updateAttText();
  5283. }
  5284. },
  5285. isAddOrUpdateLine() {
  5286. if (!this.lineTitle) {
  5287. this.$message.error("请填写链接标题");
  5288. return;
  5289. }
  5290. if (this.lineType == 0) {
  5291. this.addLine();
  5292. } else {
  5293. this.updateLine();
  5294. }
  5295. },
  5296. addAttTextMessage() {
  5297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5298. this.taskCount
  5299. ].chapterData.push({
  5300. name: this.AttText.title,
  5301. url: this.AttText.text,
  5302. type: 6,
  5303. });
  5304. this.imgChange1(null, null, 6, this.taskCount);
  5305. this.dialogVisible6 = false;
  5306. },
  5307. selectAttText(itemTaskIndex, i) {
  5308. this.AttText.title =
  5309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5310. itemTaskIndex
  5311. ].chapterData[i].name;
  5312. this.AttText.text =
  5313. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5314. itemTaskIndex
  5315. ].chapterData[i].url;
  5316. this.taskCount = itemTaskIndex;
  5317. this.AttTextIndex = i;
  5318. this.AttTextType = 1;
  5319. this.dialogVisible6 = true;
  5320. },
  5321. updateAttText() {
  5322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5323. this.taskCount
  5324. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5326. this.taskCount
  5327. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5328. this.dialogVisible6 = false;
  5329. },
  5330. addLine() {
  5331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5332. this.lineCount
  5333. ].chapterData.push({
  5334. name: "链接",
  5335. title: this.lineTitle,
  5336. url: this.line,
  5337. type: 8,
  5338. });
  5339. this.imgChange1(null, null, 8, this.lineCount);
  5340. this.dialogVisible7 = false;
  5341. },
  5342. selectLine(itemTaskIndex, i) {
  5343. this.line =
  5344. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5345. itemTaskIndex
  5346. ].chapterData[i].url;
  5347. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5348. itemTaskIndex
  5349. ].chapterData[i].title
  5350. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5351. .chapterData[i].title
  5352. : "";
  5353. this.taskCount = itemTaskIndex;
  5354. this.lineCount = i;
  5355. this.lineType = 1;
  5356. this.dialogVisible7 = true;
  5357. },
  5358. updateLine() {
  5359. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5360. this.taskCount
  5361. ].chapterData[this.lineCount].url = this.line;
  5362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5363. this.taskCount
  5364. ].chapterData[this.lineCount].title = this.lineTitle;
  5365. this.dialogVisible7 = false;
  5366. },
  5367. addPP() {
  5368. this.dialogVisible3 = true;
  5369. },
  5370. goTo(path) {
  5371. this.$router.push(path);
  5372. },
  5373. openTools(itemTaskIndex, i, toolIndex) {
  5374. this.toolIndex = toolIndex;
  5375. this.taskCount = itemTaskIndex;
  5376. if (i == 4) {
  5377. if (toolIndex == null) {
  5378. var a =
  5379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5380. .chapterData;
  5381. for (var i = 0; i < a.length; i++) {
  5382. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5383. this.askJson =
  5384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5385. itemTaskIndex
  5386. ].chapterData[i].askJson;
  5387. }
  5388. }
  5389. } else {
  5390. this.askJson = JSON.parse(
  5391. JSON.stringify(
  5392. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5393. itemTaskIndex
  5394. ].toolChoose[toolIndex]
  5395. )
  5396. );
  5397. }
  5398. this.dialogVisible5 = true;
  5399. } else if (i == 45) {
  5400. if (
  5401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5402. .toolChoose[toolIndex].testJson
  5403. ) {
  5404. this.testJson = JSON.parse(
  5405. JSON.stringify(
  5406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5407. itemTaskIndex
  5408. ].toolChoose[toolIndex].testJson
  5409. )
  5410. );
  5411. } else {
  5412. var testJson = {
  5413. testCount: 1,
  5414. testTitle: "",
  5415. testJson: [
  5416. {
  5417. teststitle: "",
  5418. testItem: 1,
  5419. checkList: [],
  5420. timuList: [],
  5421. answer: [],
  5422. type: "1",
  5423. },
  5424. ],
  5425. };
  5426. this.testJson = testJson;
  5427. }
  5428. this.dialogVisibleChoice = true;
  5429. } else if (i == 47) {
  5430. if (
  5431. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5432. .toolChoose[toolIndex].sentenceList
  5433. ) {
  5434. this.sentenceList = JSON.parse(
  5435. JSON.stringify(
  5436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5437. itemTaskIndex
  5438. ].toolChoose[toolIndex].sentenceList
  5439. )
  5440. );
  5441. } else {
  5442. var sentenceList = [
  5443. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5444. ];
  5445. this.sentenceList = sentenceList;
  5446. }
  5447. this.dialogVisibleSentence = true;
  5448. } else if (i == 48) {
  5449. if (
  5450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5451. .toolChoose[toolIndex].tableJson
  5452. ) {
  5453. this.tableJson = JSON.parse(
  5454. JSON.stringify(
  5455. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5456. itemTaskIndex
  5457. ].toolChoose[toolIndex].tableJson
  5458. )
  5459. );
  5460. } else {
  5461. var tableJson = { text: "" };
  5462. this.tableJson = tableJson;
  5463. }
  5464. this.dialogVisibleTable = true;
  5465. } else if (i == 52) {
  5466. if (
  5467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5468. .toolChoose[toolIndex].wordJson
  5469. ) {
  5470. this.wordJson = JSON.parse(
  5471. JSON.stringify(
  5472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5473. itemTaskIndex
  5474. ].toolChoose[toolIndex].wordJson
  5475. )
  5476. );
  5477. } else {
  5478. var wordJson = { text: "" };
  5479. this.wordJson = wordJson;
  5480. }
  5481. this.dialogVisibleWord = true;
  5482. // else if (i == 50) {
  5483. // if (
  5484. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5485. // .toolChoose[toolIndex].uploadJson
  5486. // ) {
  5487. // this.uploadJson = JSON.parse(
  5488. // JSON.stringify(
  5489. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5490. // itemTaskIndex
  5491. // ].toolChoose[toolIndex].uploadJson
  5492. // )
  5493. // );
  5494. // } else {
  5495. // var uploadJson = [];
  5496. // this.uploadJson = uploadJson;
  5497. // }
  5498. // this.dialogVisibleMoreUpload = true;
  5499. // }
  5500. } else if (i == 10) {
  5501. if (
  5502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5503. .toolChoose[toolIndex].preTime
  5504. ) {
  5505. this.preTime = JSON.parse(
  5506. JSON.stringify(
  5507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5508. itemTaskIndex
  5509. ].toolChoose[toolIndex].preTime
  5510. )
  5511. );
  5512. } else {
  5513. var preTime = 0;
  5514. this.preTime = preTime;
  5515. }
  5516. this.dialogVisiblePreTime = true;
  5517. } else if (i == 49) {
  5518. if (
  5519. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5520. .toolChoose[toolIndex].groupJson
  5521. ) {
  5522. this.groupJson = JSON.parse(
  5523. JSON.stringify(
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5525. itemTaskIndex
  5526. ].toolChoose[toolIndex].groupJson
  5527. )
  5528. );
  5529. } else {
  5530. var groupJson = {
  5531. group: [{ name: "第1组" }],
  5532. number: undefined,
  5533. islock: 1,
  5534. };
  5535. this.groupJson = groupJson;
  5536. }
  5537. this.dialogVisibleGroup = true;
  5538. } else if (i == 62) {
  5539. if (
  5540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5541. .toolChoose[toolIndex].videoJson
  5542. ) {
  5543. this.videoJson = JSON.parse(
  5544. JSON.stringify(
  5545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5546. itemTaskIndex
  5547. ].toolChoose[toolIndex].videoJson
  5548. )
  5549. );
  5550. } else {
  5551. var videoJson = {
  5552. video: "",
  5553. setting: []
  5554. };
  5555. this.videoJson = videoJson;
  5556. }
  5557. this.dialogVisibleVideo = true;
  5558. } else if (i == 15) {
  5559. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5560. itemTaskIndex
  5561. ].toolChoose[toolIndex].answerQ
  5562. ? JSON.parse(
  5563. JSON.stringify(
  5564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5565. itemTaskIndex
  5566. ].toolChoose[toolIndex].answerQ
  5567. )
  5568. )
  5569. : "";
  5570. this.dialogVisible8 = true;
  5571. } else if (i == 40) {
  5572. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5573. itemTaskIndex
  5574. ].toolChoose[toolIndex].rateJson
  5575. ? JSON.parse(
  5576. JSON.stringify(
  5577. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5578. itemTaskIndex
  5579. ].toolChoose[toolIndex].rateJson
  5580. )
  5581. )
  5582. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5583. this.selectSteps = 1;
  5584. this.dialogVisibleRate = true;
  5585. } else if (i == 42) {
  5586. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5587. itemTaskIndex
  5588. ].toolChoose[toolIndex].answerQ
  5589. ? JSON.parse(
  5590. JSON.stringify(
  5591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5592. itemTaskIndex
  5593. ].toolChoose[toolIndex].answerQ
  5594. )
  5595. )
  5596. : "";
  5597. this.dialogVisibleMp3 = true;
  5598. } else if (i == 41) {
  5599. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5600. itemTaskIndex
  5601. ].toolChoose[toolIndex].selectJson
  5602. ? JSON.parse(
  5603. JSON.stringify(
  5604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5605. itemTaskIndex
  5606. ].toolChoose[toolIndex].selectJson
  5607. )
  5608. )
  5609. : { url: "", select: [], answer: [] };
  5610. this.selectSteps = 1;
  5611. this.dialogVisibleSelect = true;
  5612. } else if (i == 3) {
  5613. window.parent.postMessage(
  5614. {
  5615. tools: "3y",
  5616. cid: this.cid,
  5617. stage: this.unitIndex,
  5618. task: itemTaskIndex,
  5619. tool: toolIndex,
  5620. },
  5621. "*"
  5622. );
  5623. } else if (i == 1) {
  5624. window.parent.postMessage(
  5625. {
  5626. tools: "1y",
  5627. cid: this.cid,
  5628. stage: this.unitIndex,
  5629. task: itemTaskIndex,
  5630. tool: toolIndex,
  5631. },
  5632. "*"
  5633. );
  5634. }
  5635. },
  5636. chapAddTools(i) {
  5637. if (this.chapTools[0].tools.length == 0) {
  5638. this.chapTools[0].tools.push(i);
  5639. } else {
  5640. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5641. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5642. } else {
  5643. this.chapTools[0].tools.push(i);
  5644. }
  5645. }
  5646. this.$forceUpdate();
  5647. },
  5648. addChaptersDataTools() {
  5649. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5651. this.chapCount
  5652. ].chapterData.push({
  5653. name: this.chapTools[0].toolDetail,
  5654. url: this.chapTools[0].tools,
  5655. type: 7,
  5656. askJson: this.askJson,
  5657. });
  5658. } else {
  5659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5660. this.chapCount
  5661. ].chapterData.push({
  5662. name: this.chapTools[0].toolDetail,
  5663. url: this.chapTools[0].tools,
  5664. type: 7,
  5665. });
  5666. }
  5667. this.imgChange1(null, null, 7, this.chapCount);
  5668. this.dialogVisible4 = false;
  5669. },
  5670. addTools(i, itemTaskIndex, toolIndex) {
  5671. // if (
  5672. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5673. // .toolChoose[toolIndex].tool.length == 0
  5674. // ) {
  5675. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5676. // itemTaskIndex
  5677. // ].toolChoose[toolIndex].tool.push(i);
  5678. // } else {
  5679. // if (
  5680. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5681. // itemTaskIndex
  5682. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5683. // ) {
  5684. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5685. // itemTaskIndex
  5686. // ].toolChoose[toolIndex].tool.splice(
  5687. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5688. // itemTaskIndex
  5689. // ].toolChoose[toolIndex].tool.indexOf(i),
  5690. // 1
  5691. // );
  5692. // } else {
  5693. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5694. // itemTaskIndex
  5695. // ].toolChoose[toolIndex].tool.push(i);
  5696. // }
  5697. // console.log(
  5698. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5699. // .toolChoose[toolIndex].tool
  5700. // );
  5701. // }
  5702. if (i == 4) {
  5703. if (
  5704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5705. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5706. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5707. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5709. .toolChoose[toolIndex].askJson[0].checkList < 2
  5710. ) {
  5711. this.openTools(itemTaskIndex, 4, toolIndex);
  5712. // this.$message({
  5713. // message: "请填写完整问卷内容",
  5714. // type: "error",
  5715. // });
  5716. return;
  5717. }
  5718. }
  5719. if (i == 45) {
  5720. if (
  5721. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5722. .toolChoose[toolIndex].testJson ||
  5723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5724. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5726. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5727. ) {
  5728. this.openTools(itemTaskIndex, 45, toolIndex);
  5729. // this.$message({
  5730. // message: "请填写完整问卷内容",
  5731. // type: "error",
  5732. // });
  5733. return;
  5734. }
  5735. }
  5736. if (i == 47) {
  5737. if (
  5738. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5739. .toolChoose[toolIndex].sentenceList ||
  5740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5741. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5742. ) {
  5743. this.openTools(itemTaskIndex, 47, toolIndex);
  5744. return;
  5745. }
  5746. }
  5747. // if (i == 48) {
  5748. // if (
  5749. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5750. // .toolChoose[toolIndex].tableJson
  5751. // ) {
  5752. // this.openTools(itemTaskIndex, 48, toolIndex);
  5753. // return;
  5754. // }
  5755. // }
  5756. // if (i == 50) {
  5757. // if (
  5758. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5759. // .toolChoose[toolIndex].uploadJson
  5760. // ) {
  5761. // this.openTools(itemTaskIndex, 50, toolIndex);
  5762. // return;
  5763. // }
  5764. // }
  5765. if (i == 49) {
  5766. if (
  5767. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5768. .toolChoose[toolIndex].groupJson
  5769. ) {
  5770. this.openTools(itemTaskIndex, 49, toolIndex);
  5771. return;
  5772. }
  5773. }
  5774. if (i == 62) {
  5775. if (
  5776. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5777. .toolChoose[toolIndex].videoJson
  5778. ) {
  5779. this.openTools(itemTaskIndex, 62, toolIndex);
  5780. return;
  5781. }
  5782. }
  5783. if (i == 15) {
  5784. if (
  5785. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5786. .toolChoose[toolIndex].answerQ ||
  5787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5788. .toolChoose[toolIndex].answerQ == ""
  5789. ) {
  5790. this.openTools(itemTaskIndex, 15, toolIndex);
  5791. // this.$message({
  5792. // message: "请填写问答内容",
  5793. // type: "error",
  5794. // });
  5795. return;
  5796. }
  5797. }
  5798. if (i == 40) {
  5799. if (
  5800. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5801. .toolChoose[toolIndex].rateJson ||
  5802. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5803. .toolChoose[toolIndex].rateJson.length
  5804. ) {
  5805. this.openTools(itemTaskIndex, 40, toolIndex);
  5806. return;
  5807. }
  5808. }
  5809. if (i == 41) {
  5810. if (
  5811. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5812. .toolChoose[toolIndex].selectJson ||
  5813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5814. .toolChoose[toolIndex].selectJson.url == "" ||
  5815. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5816. .toolChoose[toolIndex].selectJson.select.length ||
  5817. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5818. .toolChoose[toolIndex].selectJson.answer.length
  5819. ) {
  5820. this.openTools(itemTaskIndex, 41, toolIndex);
  5821. return;
  5822. }
  5823. }
  5824. if (i == 42) {
  5825. if (
  5826. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5827. .toolChoose[toolIndex].answerQ ||
  5828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5829. .toolChoose[toolIndex].answerQ == ""
  5830. ) {
  5831. this.openTools(itemTaskIndex, 42, toolIndex);
  5832. return;
  5833. }
  5834. }
  5835. if (
  5836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5837. .toolChoose[toolIndex].tool.length > 0
  5838. ) {
  5839. if (
  5840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5841. itemTaskIndex
  5842. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5843. ) {
  5844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5845. itemTaskIndex
  5846. ].toolChoose[toolIndex].tool.splice(
  5847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5848. itemTaskIndex
  5849. ].toolChoose[toolIndex].tool.indexOf(i),
  5850. 1
  5851. );
  5852. } else {
  5853. // this.$message({
  5854. // message: "每个工具只能添加一个",
  5855. // type: "error",
  5856. // });
  5857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5858. itemTaskIndex
  5859. ].toolChoose[toolIndex].tool = [];
  5860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5861. itemTaskIndex
  5862. ].toolChoose[toolIndex].tool.push(i);
  5863. }
  5864. } else {
  5865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5866. itemTaskIndex
  5867. ].toolChoose[toolIndex].tool.push(i);
  5868. }
  5869. this.$forceUpdate();
  5870. },
  5871. addAskList() {
  5872. this.askJson.askJson.push({
  5873. askstitle: "",
  5874. askItem: 1,
  5875. checkList: [],
  5876. });
  5877. this.askJson.askCount++;
  5878. },
  5879. addTestList() {
  5880. this.testJson.testJson.push({
  5881. teststitle: "",
  5882. testItem: 1,
  5883. checkList: [],
  5884. timuList: [],
  5885. answer: [],
  5886. type: "1",
  5887. });
  5888. this.testJson.testCount++;
  5889. },
  5890. deleteAskList(index) {
  5891. this.askJson.askJson.splice(index, 1);
  5892. this.askJson.askCount--;
  5893. },
  5894. deleteTestList(index) {
  5895. this.testJson.testJson.splice(index, 1);
  5896. this.testJson.testCount--;
  5897. },
  5898. addcheckList(json) {
  5899. json.checkList.length++;
  5900. json.askItem++;
  5901. },
  5902. deletecheckList(json) {
  5903. json.checkList.length--;
  5904. json.askItem--;
  5905. },
  5906. addTcheckList(json) {
  5907. json.checkList.length++;
  5908. json.testItem++;
  5909. },
  5910. deleteTcheckList(json) {
  5911. json.checkList.length--;
  5912. json.testItem--;
  5913. },
  5914. checkTestType(type, json) {
  5915. json.type = type;
  5916. json.answer = [];
  5917. },
  5918. checkAskType(type, json) {
  5919. json.type = type;
  5920. json.checkList = [];
  5921. },
  5922. addSelectList(json) {
  5923. json.select.push("");
  5924. json.answer.push("");
  5925. },
  5926. deleteSelectList(json) {
  5927. // json.select.length--;
  5928. // json.answer.length--;
  5929. json.select.splice(json.select.length - 1, 1);
  5930. json.answer.splice(json.answer.length - 1, 1);
  5931. },
  5932. addAsk() {
  5933. if (this.askJson.askTitle === "") {
  5934. this.$message.error("标题不能为空!");
  5935. return;
  5936. }
  5937. var aj = this.askJson.askJson;
  5938. var b = 1;
  5939. for (var i = 0; i < aj.length; i++) {
  5940. if (aj[i].askstitle === "") {
  5941. var a = 1;
  5942. for (let index = 0; index < aj[i].askItem; index++) {
  5943. const element = aj[i].checkList[index]
  5944. ? aj[i].checkList[index]
  5945. : "";
  5946. if (element != "") {
  5947. b++;
  5948. this.$message.error("填写了选项,题目不能为空!");
  5949. return;
  5950. } else {
  5951. a++;
  5952. }
  5953. }
  5954. if (b == 1) {
  5955. this.$message.error("至少填写一个问题");
  5956. return;
  5957. }
  5958. } else if (aj[i].askstitle != "") {
  5959. for (let index = 0; index < aj[i].askItem; index++) {
  5960. const element = aj[i].checkList[index]
  5961. ? aj[i].checkList[index]
  5962. : "";
  5963. var index = 0;
  5964. for (var z = 0; z < aj[i].checkList.length; z++) {
  5965. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5966. if (checkC != "") {
  5967. index++;
  5968. } else {
  5969. this.$message.error("选项不能为空!");
  5970. return;
  5971. }
  5972. }
  5973. b++;
  5974. if (index < 2) {
  5975. this.$message.error("填写了的题目,选项至少要有两项!");
  5976. return;
  5977. }
  5978. }
  5979. }
  5980. }
  5981. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5982. var elc = el.checkList.filter((element) => {
  5983. return element != "";
  5984. });
  5985. return el.askstitle != "" && elc.length != 0;
  5986. });
  5987. if (!this.dialogVisible4) {
  5988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5989. this.taskCount
  5990. ].toolChoose[this.toolIndex] = this.askJson;
  5991. }
  5992. this.dialogVisible5 = false;
  5993. if (
  5994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5995. .toolChoose[this.toolIndex].tool != 4
  5996. ) {
  5997. this.addTools(4, this.taskCount, this.toolIndex);
  5998. }
  5999. },
  6000. addTest() {
  6001. // if (this.testJson.testTitle === "") {
  6002. // this.$message.error("标题不能为空!");
  6003. // return;
  6004. // }
  6005. var aj = this.testJson.testJson;
  6006. var b = 1;
  6007. for (var i = 0; i < aj.length; i++) {
  6008. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6009. var a = 1;
  6010. for (let index = 0; index < aj[i].testItem; index++) {
  6011. const element = aj[i].checkList[index]
  6012. ? aj[i].checkList[index]
  6013. : "";
  6014. if (element != "") {
  6015. b++;
  6016. this.$message.error("填写了选项,题目不能为空!");
  6017. return;
  6018. } else {
  6019. a++;
  6020. }
  6021. }
  6022. if (b == 1) {
  6023. this.$message.error("至少填写一个问题");
  6024. return;
  6025. }
  6026. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6027. for (let index = 0; index < aj[i].testItem; index++) {
  6028. const element = aj[i].checkList[index]
  6029. ? aj[i].checkList[index]
  6030. : "";
  6031. var index = 0;
  6032. for (var z = 0; z < aj[i].checkList.length; z++) {
  6033. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6034. if (checkC != "") {
  6035. index++;
  6036. } else {
  6037. this.$message.error("选项不能为空!");
  6038. return;
  6039. }
  6040. }
  6041. b++;
  6042. if (index < 2) {
  6043. this.$message.error("填写了的题目,选项至少要有两项!");
  6044. return;
  6045. }
  6046. if (
  6047. (aj[i].type == "2" && !aj[i].answer.length) ||
  6048. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6049. ) {
  6050. this.$message.error("有题目未选择答案请选择答案");
  6051. return;
  6052. }
  6053. }
  6054. }
  6055. }
  6056. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6057. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6058. var elc = el.checkList.filter((element) => {
  6059. return element != "";
  6060. });
  6061. return (
  6062. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6063. );
  6064. });
  6065. isTestJson.testCount = isTestJson.testJson.length;
  6066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6067. this.taskCount
  6068. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6069. this.dialogVisibleChoice = false;
  6070. if (
  6071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6072. .toolChoose[this.toolIndex].tool != 45
  6073. ) {
  6074. this.addTools(45, this.taskCount, this.toolIndex);
  6075. }
  6076. },
  6077. addVideoJson(videoJson) {
  6078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6079. this.taskCount
  6080. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6081. this.dialogVisibleVideo = false;
  6082. if (
  6083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6084. .toolChoose[this.toolIndex].tool != 62
  6085. ) {
  6086. this.addTools(62, this.taskCount, this.toolIndex);
  6087. }
  6088. },
  6089. //自动获取剪贴板
  6090. pasteOption() {
  6091. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6092. if (!iframe) {
  6093. this.$message.error("请使用AI共创生成题目")
  6094. return;
  6095. }
  6096. let copyData = iframe.contentWindow.copyData
  6097. if (!copyData || !copyData.selectData.length) {
  6098. this.$message.error("请使用AI共创生成题目")
  6099. return;
  6100. }
  6101. let selectData = copyData.selectData;
  6102. for (var i = 0; i < selectData.length; i++) {
  6103. let answer = 0
  6104. switch (selectData[i].answer[0]) {
  6105. case 'A':
  6106. answer = 0
  6107. break;
  6108. case 'B':
  6109. answer = 1
  6110. break;
  6111. case 'C':
  6112. answer = 2
  6113. break;
  6114. case 'D':
  6115. answer = 3
  6116. break;
  6117. case 'E':
  6118. answer = 4
  6119. break;
  6120. default:
  6121. break;
  6122. }
  6123. this.testJson.testJson.push({
  6124. teststitle: selectData[i].subject,
  6125. testItem: selectData[i].options.length,
  6126. checkList: selectData[i].options,
  6127. timuList: [],
  6128. answer: answer,
  6129. type: "1",
  6130. });
  6131. this.testJson.testCount++;
  6132. }
  6133. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6134. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6135. var elc = el.checkList.filter((element) => {
  6136. return element != "";
  6137. });
  6138. return (
  6139. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6140. );
  6141. });
  6142. isTestJson.testCount = isTestJson.testJson.length;
  6143. this.testJson = isTestJson
  6144. this.$forceUpdate();
  6145. },
  6146. pasteTask() {
  6147. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6148. if (!iframe) {
  6149. this.$message.error("请使用AI共创生成")
  6150. return;
  6151. }
  6152. let copyData = iframe.contentWindow.copyData
  6153. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6154. this.$message.error("请使用AI共创生成")
  6155. return;
  6156. }
  6157. let stageTasksData = copyData.tasksData;
  6158. let taskA = []
  6159. let tasks = stageTasksData
  6160. for (var j = 0; j < tasks.length; j++) {
  6161. taskA.push({
  6162. task: tasks[j].taskName,
  6163. taskDetail: tasks[j].taskDecs,
  6164. chapterData: [],
  6165. toolText: "",
  6166. toolChoose: [
  6167. {
  6168. tool: [],
  6169. toolDetail: "",
  6170. toolType: 0,
  6171. askCount: 1,
  6172. askTitle: "",
  6173. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6174. },
  6175. ],
  6176. isShowTools: false,
  6177. askCount: 1,
  6178. isFold: 0,
  6179. askTitle: "",
  6180. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6181. checkJson: [{ checkCount: [], checkPerent: [] }],
  6182. homeworkList: [],
  6183. })
  6184. }
  6185. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA
  6186. this.$forceUpdate();
  6187. },
  6188. pasteStage() {
  6189. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6190. if (!iframe) {
  6191. this.$message.error("请使用AI共创生成")
  6192. return;
  6193. }
  6194. let copyData = iframe.contentWindow.copyData
  6195. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6196. this.$message.error("请使用AI共创生成")
  6197. return;
  6198. }
  6199. let stageData = copyData.stageData;
  6200. let stage = []
  6201. for (var i = 0; i < stageData.length; i++) {
  6202. stage.push({
  6203. dyName: stageData[i], //单元标题
  6204. chapterInfo: [
  6205. {
  6206. isread: false,
  6207. chapterid: this.guid(),
  6208. title: "",
  6209. courseName: "",
  6210. taskJson: [
  6211. {
  6212. task: "",
  6213. taskDetail: "",
  6214. chapterData: [],
  6215. toolText: "",
  6216. toolChoose: [
  6217. {
  6218. tool: [],
  6219. toolDetail: "",
  6220. toolType: 0,
  6221. askCount: 1,
  6222. askTitle: "",
  6223. askJson: [
  6224. { askstitle: "", askItem: 1, checkList: [] },
  6225. ],
  6226. },
  6227. ],
  6228. isShowTools: false,
  6229. askCount: 1,
  6230. isFold: 0,
  6231. askTitle: "",
  6232. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6233. checkJson: [{ checkCount: [], checkPerent: [] }],
  6234. homeworkList: [],
  6235. },
  6236. ],
  6237. itemCount: 1,
  6238. fileList1: [],
  6239. video: [],
  6240. testData: [],
  6241. pData: [],
  6242. templateArray: [],
  6243. },
  6244. ],
  6245. },)
  6246. }
  6247. let _this = this;
  6248. _this
  6249. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6250. confirmButtonText: "确定",
  6251. cancelButtonText: "取消",
  6252. type: "warning",
  6253. })
  6254. .then(() => {
  6255. _this.unitIndex = 0;
  6256. _this.unitJson = stage;
  6257. _this.steps++;
  6258. _this.updateWork();
  6259. })
  6260. .catch(() => {
  6261. return;
  6262. });
  6263. },
  6264. addAnswer() {
  6265. if (this.answerQ == "") {
  6266. this.$message.error("请输入您想要问的问题");
  6267. return;
  6268. }
  6269. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6270. this.taskCount
  6271. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6272. this.dialogVisible8 = false;
  6273. if (
  6274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6275. .toolChoose[this.toolIndex].tool != 15
  6276. ) {
  6277. this.addTools(15, this.taskCount, this.toolIndex);
  6278. }
  6279. },
  6280. addMp3Answer() {
  6281. if (this.answerQ == "") {
  6282. this.$message.error("请输入您想要回答的问题");
  6283. return;
  6284. }
  6285. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6286. this.taskCount
  6287. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6288. this.dialogVisibleMp3 = false;
  6289. },
  6290. addRateAnswer() {
  6291. var a = 1;
  6292. for (var i = 0; i < this.rateJson.length; i++) {
  6293. if (this.rateJson[i].value == "") {
  6294. a = 2;
  6295. break;
  6296. }
  6297. }
  6298. if (a == 2) {
  6299. this.$message.error("请把评价信息填写完整");
  6300. return;
  6301. }
  6302. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6303. this.taskCount
  6304. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6305. this.dialogVisibleRate = false;
  6306. if (
  6307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6308. .toolChoose[this.toolIndex].tool != 40
  6309. ) {
  6310. this.addTools(40, this.taskCount, this.toolIndex);
  6311. }
  6312. },
  6313. addSelectAnswer() {
  6314. if (this.selectJson.url == "") {
  6315. this.$message.error("请上传题目");
  6316. return;
  6317. }
  6318. if (!this.selectJson.select.length) {
  6319. this.$message.error("请添加选项");
  6320. return;
  6321. }
  6322. if (!this.selectJson.answer.length) {
  6323. this.$message.error("请设置答案");
  6324. return;
  6325. }
  6326. var a = 1;
  6327. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6328. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6329. a = 2;
  6330. }
  6331. }
  6332. if (a == 2) {
  6333. this.$message.error("请设置答案");
  6334. return;
  6335. }
  6336. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6337. this.taskCount
  6338. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6339. this.dialogVisibleSelect = false;
  6340. if (
  6341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6342. .toolChoose[this.toolIndex].tool != 41
  6343. ) {
  6344. this.addTools(41, this.taskCount, this.toolIndex);
  6345. }
  6346. },
  6347. nextSelectSteps() {
  6348. if (this.selectJson.url == "") {
  6349. this.$message.error("请上传题目");
  6350. return;
  6351. }
  6352. if (!this.selectJson.select.length) {
  6353. this.$message.error("请添加选项");
  6354. return;
  6355. }
  6356. var a = 1;
  6357. for (var i = 0; i < this.selectJson.select.length; i++) {
  6358. if (!this.selectJson.select[i]) {
  6359. a = 2;
  6360. }
  6361. }
  6362. if (a == 2) {
  6363. this.$message.error("添加的选项不能为空");
  6364. return;
  6365. }
  6366. this.selectSteps++;
  6367. },
  6368. selectCourseDetail() {
  6369. if (this.cid == "" || this.cid == undefined) {
  6370. console.log("这是新增课程");
  6371. this.selectAllType();
  6372. } else {
  6373. this.cidType = 1;
  6374. let params = {
  6375. cid: this.cid,
  6376. };
  6377. this.ajax
  6378. .get(this.$store.state.api + "select_course_detail", params)
  6379. .then((res) => {
  6380. this.loading = true;
  6381. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6382. for (var j = 0; j < this.unitJson.length; j++) {
  6383. for (
  6384. var k = 0;
  6385. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6386. k++
  6387. ) {
  6388. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6389. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6390. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6391. : [];
  6392. let _chapterData = [];
  6393. for (
  6394. var c = 0;
  6395. c <
  6396. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6397. .length;
  6398. c++
  6399. ) {
  6400. if (
  6401. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6402. ) {
  6403. _chapterData.push(
  6404. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6405. );
  6406. }
  6407. }
  6408. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6409. _chapterData;
  6410. }
  6411. }
  6412. this.$forceUpdate();
  6413. this.courseName = res.data[0][0].title;
  6414. this.courseText = res.data[0][0].brief;
  6415. this.evalua = res.data[0][0].evaId;
  6416. this.cover = JSON.parse(res.data[0][0].cover);
  6417. this.noneBtnImg = this.cover.length >= 1;
  6418. // this.checkboxList =
  6419. // res.data[0][0].course_student.length > 0
  6420. // ? JSON.parse(res.data[0][0].course_student)
  6421. // : [];
  6422. this.checkboxList2 = res.data[0][0].juri
  6423. ? res.data[0][0].juri.split(",")
  6424. : [];
  6425. this.inviteCode = [];
  6426. for (var i = 0; i < res.data[2].length; i++) {
  6427. this.inviteCode.push({
  6428. cid: res.data[2][i].classid,
  6429. ic: res.data[2][i].code,
  6430. });
  6431. }
  6432. this.checkboxList3 = res.data[0][0].course_teacher
  6433. ? res.data[0][0].course_teacher.split(",")
  6434. : [];
  6435. // this.isTeacherSee =
  6436. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6437. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6438. this.myWord = res.data[0][0].template;
  6439. this.templateC.id = "123";
  6440. this.courseUserid = res.data[0][0].userid;
  6441. // if(this.courseUserid == this.userid){
  6442. // this.InviteChange(this.checkboxList2)
  6443. // }
  6444. this.nbOrder = res.data[0][0].ordernumber;
  6445. this.courseTypeId = [];
  6446. for (var i = 0; i < res.data[1].length; i++) {
  6447. this.courseTypeId.push(res.data[1][i].typeid);
  6448. }
  6449. console.log(this.courseTypeId);
  6450. // if (this.timer) clearInterval(this.timer);
  6451. if (this.timer) clearTimeout(this.timer);
  6452. this.timer = null;
  6453. // this.timer = setInterval(() => {
  6454. // this.seleteCourseUpdate();
  6455. this.setMan();
  6456. this.selectAllType();
  6457. // }, 5000);
  6458. this.$forceUpdate();
  6459. setTimeout(() => {
  6460. this.checkEva(this.evalua);
  6461. }, 0);
  6462. })
  6463. .catch((err) => {
  6464. console.error(err);
  6465. });
  6466. }
  6467. },
  6468. seleteCourseUpdate() {
  6469. let params = {
  6470. cid: this.cid,
  6471. };
  6472. this.ajax
  6473. .get(this.$store.state.api + "select_course_detail", params)
  6474. .then((res) => {
  6475. // console.log(this.unitJson);
  6476. let unitJson = JSON.parse(res.data[0][0].chapters);
  6477. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6478. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6479. let _unitJson = [];
  6480. let _chapAarry = [];
  6481. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6482. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6483. let index = 1;
  6484. let chapindex;
  6485. if (_unitJson2.length > unitJson.length) {
  6486. for (let c = 0; c < _unitJson2.length; c++) {
  6487. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6488. }
  6489. for (let j = 0; j < unitJson.length; j++) {
  6490. let count = 0;
  6491. for (let k = 0; k < _unitJson2.length; k++) {
  6492. if (
  6493. unitJson[j].chapterInfo[0].chapterid ==
  6494. _unitJson2[k].chapterInfo[0].chapterid
  6495. ) {
  6496. count++;
  6497. _chapAarry.splice(
  6498. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6499. 1
  6500. );
  6501. _unitJson.push(unitJson[j]);
  6502. break;
  6503. }
  6504. }
  6505. // if(count === 0){
  6506. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6507. // }
  6508. }
  6509. for (let k = 0; k < _unitJson2.length; k++) {
  6510. if (_unitJson2[k].isUpdate == 1) {
  6511. _chapAarry.splice(
  6512. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6513. 1
  6514. );
  6515. _unitJson.push(_unitJson2[k]);
  6516. }
  6517. }
  6518. console.log(_chapAarry);
  6519. for (let d = 0; d < _unitJson2.length; d++) {
  6520. if (
  6521. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6522. ) {
  6523. if (_unitIndex == d) {
  6524. index = 2;
  6525. }
  6526. chapindex = d;
  6527. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6528. }
  6529. }
  6530. } else {
  6531. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6532. }
  6533. for (let i = 0; i < unitJson.length; i++) {
  6534. if (
  6535. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6536. _unitJson[i].chapterInfo[0].chapterid !=
  6537. unitJson[i].chapterInfo[0].chapterid
  6538. ) {
  6539. if (i == _unitJson.length - 1) {
  6540. // this.unitIndex++
  6541. _unitIndex2++;
  6542. }
  6543. _unitJson.splice(i, 0, unitJson[i]);
  6544. } else if (i > _unitJson.length - 1) {
  6545. _unitJson.push(unitJson[i]);
  6546. } else if (
  6547. _unitJson[i].chapterInfo[0].chapterid ==
  6548. unitJson[i].chapterInfo[0].chapterid
  6549. ) {
  6550. _unitJson[i] = unitJson[i];
  6551. }
  6552. // if (i == _unitIndex) {
  6553. // continue;
  6554. // } else
  6555. }
  6556. if (_chapAarry.length && index != 2) {
  6557. if (chapindex < _unitIndex) {
  6558. this.isDelete = 2;
  6559. // this.unitIndex--;
  6560. _unitIndex2--;
  6561. } else if (
  6562. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6563. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6564. ) {
  6565. this.isDelete = 2;
  6566. for (let n = 0; n < _unitJson.length; n++) {
  6567. if (
  6568. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6569. _unitJson[n].chapterInfo[0].chapterid
  6570. ) {
  6571. // this.unitIndex = n;
  6572. _unitIndex2 = n;
  6573. _unitJson[n] = _unitJson2[_unitIndex];
  6574. break;
  6575. }
  6576. }
  6577. }
  6578. } else if (index != 2) {
  6579. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6580. _unitJson2[_unitIndex];
  6581. for (
  6582. var ci = 0;
  6583. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6584. ci++
  6585. ) {
  6586. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6587. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6588. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6589. .toolChoose
  6590. : [];
  6591. let _chapterData = [];
  6592. for (
  6593. var c = 0;
  6594. c <
  6595. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6596. .length;
  6597. c++
  6598. ) {
  6599. if (
  6600. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6601. .chapterData[c]
  6602. ) {
  6603. _chapterData.push(
  6604. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6605. .chapterData[c]
  6606. );
  6607. }
  6608. }
  6609. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6610. _chapterData;
  6611. }
  6612. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6613. }
  6614. if (index == 1) {
  6615. this.unitJson = _unitJson;
  6616. this.$forceUpdate();
  6617. setTimeout(() => {
  6618. if (this.unitIndex != _unitIndex2) {
  6619. this.isDelete = 2;
  6620. this.unitIndex = _unitIndex2;
  6621. }
  6622. }, 0);
  6623. this.timer = setTimeout(() => {
  6624. this.seleteCourseUpdate();
  6625. }, 1000);
  6626. } else if (index == 2) {
  6627. let _this = this;
  6628. _this
  6629. .$confirm(
  6630. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6631. "提示",
  6632. {
  6633. confirmButtonText: "需要",
  6634. cancelButtonText: "取消",
  6635. type: "warning",
  6636. }
  6637. )
  6638. .then(() => {
  6639. if (_this.time()) {
  6640. _this.restoreWork(
  6641. _chapAarry[0],
  6642. _unitJson,
  6643. chapindex,
  6644. _unitJson2,
  6645. _unitIndex2
  6646. );
  6647. }
  6648. })
  6649. .catch(() => {
  6650. _this.unitJson = _unitJson;
  6651. _this.$forceUpdate();
  6652. setTimeout(() => {
  6653. if (this.unitIndex != _unitIndex2) {
  6654. this.isDelete = 2;
  6655. this.unitIndex = _unitIndex2;
  6656. }
  6657. }, 0);
  6658. _this.timer = setTimeout(() => {
  6659. _this.seleteCourseUpdate();
  6660. }, 1000);
  6661. });
  6662. }
  6663. })
  6664. .catch((err) => {
  6665. console.error(err);
  6666. });
  6667. },
  6668. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6669. let params = [
  6670. {
  6671. cid: this.cid,
  6672. chapters: JSON.stringify(this.unitJson),
  6673. uid: this.userid,
  6674. chapid: chapid,
  6675. },
  6676. ];
  6677. this.ajax
  6678. .post(this.$store.state.api + "restoreWork", params)
  6679. .then((res) => {
  6680. this.$message({
  6681. message: "恢复成功",
  6682. type: "success",
  6683. });
  6684. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6685. this.unitJson = unitJson;
  6686. this.$forceUpdate();
  6687. setTimeout(() => {
  6688. if (this.unitIndex != unitIndex2) {
  6689. this.isDelete = 2;
  6690. this.unitIndex = unitIndex2;
  6691. }
  6692. }, 0);
  6693. this.timer = setTimeout(() => {
  6694. this.seleteCourseUpdate();
  6695. }, 1000);
  6696. })
  6697. .catch((err) => {
  6698. this.$message.error("网络不佳");
  6699. console.error(err);
  6700. });
  6701. },
  6702. getTypeName() {
  6703. console.log(this.courseTypeId);
  6704. this.$forceUpdate();
  6705. },
  6706. selectAllType() {
  6707. let params = {
  6708. org: this.org && this.org != "" ? this.org : "",
  6709. oid: this.oid && this.oid != "" ? this.oid : "",
  6710. };
  6711. this.ajax
  6712. .get(this.$store.state.api + "selectAllType", params)
  6713. .then((res) => {
  6714. this.CourseType = res.data;
  6715. this.CourseType2 = [
  6716. { name: "智见课程", id: [] },
  6717. { name: "智行课程", id: [] },
  6718. { name: "智创课程", id: [] },
  6719. ];
  6720. for (var cti = 0; cti < res.data[0].length; cti++) {
  6721. if (
  6722. res.data[0][cti].name == "年级" ||
  6723. res.data[0][cti].name == "学科"
  6724. ) {
  6725. this.CourseType2[1].id.push(res.data[0][cti].id);
  6726. this.CourseType2[0].id.push(res.data[0][cti].id);
  6727. } else if (res.data[0][cti].name == "主题") {
  6728. this.CourseType2[2].id.push(res.data[0][cti].id);
  6729. }
  6730. }
  6731. let _courseTypeId = [];
  6732. for (var i = 0; i < res.data[0].length; i++) {
  6733. if (!this.cid) {
  6734. this.courseTypeId[res.data[0][i].id] = [];
  6735. }
  6736. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6737. // }
  6738. this.CourseTypeJson[res.data[0][i].id] = [];
  6739. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6740. if (res.data[0][i].name == "栏目") {
  6741. this.CourseType[0][i].name = "主题";
  6742. }
  6743. }
  6744. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6745. for (var j = 0; j < res.data[1].length; j++) {
  6746. if (
  6747. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6748. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6749. ) {
  6750. _courseTypeId.push(res.data[1][j].id);
  6751. }
  6752. if (res.data[0][i].id == res.data[1][j].pid) {
  6753. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6754. }
  6755. }
  6756. } else {
  6757. if (res.data[2].length > 0) {
  6758. for (var j = 0; j < res.data[2].length; j++) {
  6759. if (
  6760. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6761. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6762. ) {
  6763. _courseTypeId.push(res.data[2][j].id);
  6764. }
  6765. if (res.data[0][i].id == res.data[2][j].pid) {
  6766. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6767. }
  6768. }
  6769. }
  6770. if (res.data[3].length > 0) {
  6771. for (var j = 0; j < res.data[3].length; j++) {
  6772. if (
  6773. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6774. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6775. ) {
  6776. _courseTypeId.push(res.data[3][j].id);
  6777. }
  6778. if (res.data[0][i].id == res.data[3][j].pid) {
  6779. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6780. }
  6781. }
  6782. }
  6783. }
  6784. }
  6785. this.courseTypeId = _courseTypeId;
  6786. })
  6787. .catch((err) => {
  6788. console.error(err);
  6789. });
  6790. },
  6791. selectType() {
  6792. this.ajax
  6793. .get(this.$store.state.api + "selectType")
  6794. .then((res) => {
  6795. this.CourseType = res.data;
  6796. for (var i = 0; i < res.data[0].length; i++) {
  6797. if (!this.cid) {
  6798. this.courseTypeId[res.data[0][i].id] = "";
  6799. }
  6800. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6801. if (res.data[0][i].name == "栏目") {
  6802. this.CourseType[0][i].name = "主题";
  6803. }
  6804. }
  6805. for (var j = 0; j < res.data[1].length; j++) {
  6806. if (res.data[0][i].id == res.data[1][j].pid) {
  6807. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6808. this.CourseTypeJson[res.data[0][i].id] = [];
  6809. }
  6810. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6811. }
  6812. }
  6813. }
  6814. this.selectTypeByOid();
  6815. this.selectTypeByOrg();
  6816. })
  6817. .catch((err) => {
  6818. console.error(err);
  6819. });
  6820. },
  6821. selectTypeByOid() {
  6822. let params = {
  6823. oid: this.oid,
  6824. };
  6825. this.ajax
  6826. .get(this.$store.state.api + "selectTypeByOid", params)
  6827. .then((res) => {
  6828. for (var i = 0; i < res.data[0].length; i++) {
  6829. for (var j = 0; j < res.data[1].length; j++) {
  6830. if (res.data[0][i].id == res.data[1][j].pid) {
  6831. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6832. this.CourseTypeJson[res.data[0][i].id] = [];
  6833. }
  6834. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6835. }
  6836. }
  6837. }
  6838. })
  6839. .catch((err) => {
  6840. console.error(err);
  6841. });
  6842. },
  6843. selectTypeByOrg() {
  6844. let params = {
  6845. oid: this.org,
  6846. };
  6847. this.ajax
  6848. .get(this.$store.state.api + "selectTypeByOrg", params)
  6849. .then((res) => {
  6850. for (var i = 0; i < res.data[0].length; i++) {
  6851. for (var j = 0; j < res.data[1].length; j++) {
  6852. if (res.data[0][i].id == res.data[1][j].pid) {
  6853. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6854. this.CourseTypeJson[res.data[0][i].id] = [];
  6855. }
  6856. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6857. }
  6858. }
  6859. }
  6860. this.$forceUpdate();
  6861. })
  6862. .catch((err) => {
  6863. console.error(err);
  6864. });
  6865. },
  6866. OtherMb(type) {
  6867. this.typeMode = type;
  6868. setTimeout(() => {
  6869. this.checkEva(this.checkId);
  6870. }, 0);
  6871. },
  6872. openMember() {
  6873. this.searchTN = "";
  6874. this.getTeacher();
  6875. this.dialogVisibleMember = true;
  6876. },
  6877. checkEva(id, type) {
  6878. this.dialogVisiblemb = false;
  6879. this.selectEva();
  6880. if (this.evalua != id && type == 2) {
  6881. this.$message.success("导入成功");
  6882. }
  6883. this.evalua = id;
  6884. this.checkId = id;
  6885. if (this.evalua != "") {
  6886. for (var i = 0; i < this.evaJuri.length; i++) {
  6887. if (this.evalua == this.evaJuri[i].id) {
  6888. this.eTitle = this.evaJuri[i].title;
  6889. this.eJson = JSON.parse(this.evaJuri[i].content);
  6890. }
  6891. }
  6892. this.data.data = [];
  6893. this.$forceUpdate();
  6894. setTimeout(() => {
  6895. this.setMindData();
  6896. }, 500);
  6897. }
  6898. },
  6899. deleteEva() {
  6900. let _this = this;
  6901. if (_this.evalua == "") {
  6902. this.$message.warning("内容已经清空了,请勿重复清空");
  6903. return;
  6904. }
  6905. _this
  6906. .$confirm("确定删除此目标吗?", "提示", {
  6907. confirmButtonText: "确定",
  6908. cancelButtonText: "取消",
  6909. type: "warning",
  6910. })
  6911. .then(() => {
  6912. _this.evalua = "";
  6913. _this.checkId = "";
  6914. _this.eTitle = "";
  6915. let _unitJson = _this.unitJson;
  6916. for (var i = 0; i < _unitJson.length; i++) {
  6917. let _task = _unitJson[i].chapterInfo[0].taskJson;
  6918. for (var j = 0; j < _task.length; j++) {
  6919. let _eList = _task[j].eList;
  6920. for (var k = 0; k < _eList.length; k++) {
  6921. delete _eList[k].target;
  6922. }
  6923. }
  6924. }
  6925. _this.$forceUpdate();
  6926. if (_this.cid) {
  6927. _this.updateWork();
  6928. }
  6929. })
  6930. .catch(() => {
  6931. return;
  6932. });
  6933. },
  6934. selectEva() {
  6935. let params = {
  6936. oid: this.oid,
  6937. };
  6938. this.ajax
  6939. .get(this.$store.state.api + "selectAllEvaluation", params)
  6940. .then((res) => {
  6941. this.evaJuri = res.data[0];
  6942. })
  6943. .catch((err) => {
  6944. console.error(err);
  6945. });
  6946. },
  6947. setMindData() {
  6948. let targetArray = [];
  6949. this.data.data = [];
  6950. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6951. let _eJson = Object.keys(this.eJson);
  6952. let _e = this.eJson;
  6953. for (let i = 0; i < _eJson.length; i++) {
  6954. let element = _e[_eJson[i]];
  6955. this.data.data.push({
  6956. id: element.id,
  6957. parentid: "root",
  6958. topic: element.name,
  6959. });
  6960. // targetArray.push({
  6961. // id: element.id,
  6962. // parentid: "root",
  6963. // name: element.name,
  6964. // });
  6965. targetArray.push({
  6966. value: element.name,
  6967. label: element.name,
  6968. children: [],
  6969. });
  6970. let _eJsonc = Object.keys(element.child);
  6971. let _e2 = element.child;
  6972. for (let j = 0; j < _eJsonc.length; j++) {
  6973. let _ec = _e2[_eJsonc[j]];
  6974. this.data.data.push({
  6975. id: _ec.id,
  6976. parentid: element.id,
  6977. topic: _ec.name,
  6978. });
  6979. // targetArray.push({
  6980. // id: _ec.id,
  6981. // parentid: element.id,
  6982. // name: _ec.name,
  6983. // });
  6984. targetArray[i].children.push({
  6985. value: _ec.name,
  6986. label: _ec.name,
  6987. children: [],
  6988. });
  6989. let _eJsonz = Object.keys(_ec.child);
  6990. let _e3 = _ec.child;
  6991. for (let z = 0; z < _eJsonz.length; z++) {
  6992. let _ez = _e3[_eJsonz[z]];
  6993. this.data.data.push({
  6994. id: _ez.id,
  6995. parentid: _ec.id,
  6996. topic: _ez.name,
  6997. });
  6998. // targetArray.push({
  6999. // id: _ez.id,
  7000. // parentid: _ec.id,
  7001. // name: _ez.name,
  7002. // });
  7003. targetArray[i].children[j].children.push({
  7004. value: _ez.name,
  7005. label: _ez.name,
  7006. });
  7007. }
  7008. }
  7009. }
  7010. this.targetArray = targetArray;
  7011. this.$forceUpdate();
  7012. },
  7013. /*添加评价 */
  7014. addEList(index, tIndex) {
  7015. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7016. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7017. value: "",
  7018. detail: "",
  7019. score: 5,
  7020. })
  7021. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7022. { value: "", detail: "", score: 5 },
  7023. ]);
  7024. this.$forceUpdate();
  7025. },
  7026. forceUpdate() {
  7027. this.$forceUpdate();
  7028. },
  7029. deletEList(index, tIndex, eIndex) {
  7030. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7031. eIndex,
  7032. 1
  7033. );
  7034. this.$forceUpdate();
  7035. },
  7036. getChoosePic(t) {
  7037. this.chooseType = t;
  7038. this.getAllBanner();
  7039. },
  7040. getAllBanner() {
  7041. this.sysPicVisible = true;
  7042. let params = {
  7043. t: this.chooseType,
  7044. };
  7045. this.ajax
  7046. .get(this.$store.state.api + "selectAllBanner", params)
  7047. .then((res) => {
  7048. this.sysPic = res.data[0];
  7049. })
  7050. .catch((err) => {
  7051. console.error(err);
  7052. });
  7053. },
  7054. // getClass() {
  7055. // let params = {
  7056. // oid: this.oid,
  7057. // };
  7058. // this.ajax
  7059. // .get(this.$store.state.api + "selectClassBySchool", params)
  7060. // .then((res) => {
  7061. // this.classJuri = res.data[0];
  7062. // })
  7063. // .catch((err) => {
  7064. // console.error(err);
  7065. // });
  7066. // },
  7067. deleteSysPic() {
  7068. this.cover = [];
  7069. this.isSysPic = false;
  7070. },
  7071. deleteSelectPic() {
  7072. this.selectJson.url = "";
  7073. },
  7074. setEListStar() {
  7075. this.$forceUpdate();
  7076. },
  7077. deletRateList(i) {
  7078. this.rateJson.splice(i, 1);
  7079. },
  7080. addRateList() {
  7081. this.rateJson.push({ detail: "", score: 5, value: "" });
  7082. },
  7083. addSt() {
  7084. this.sentenceList.push({
  7085. sentenceTitle: "",
  7086. addSentence: [],
  7087. rightAnswer: [],
  7088. });
  7089. },
  7090. addSen(i) {
  7091. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7092. // this.isPushTitleList.push(this.sentenceTitle);
  7093. this.sentenceList[i].sentenceTitle = "";
  7094. },
  7095. setRightAnswer(s, i, j) {
  7096. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7097. this.sentenceList[i].rightAnswer.push(s);
  7098. }
  7099. },
  7100. returnCard(r, i, j) {
  7101. this.sentenceList[i].rightAnswer.splice(j, 1);
  7102. },
  7103. addSentenceTool() {
  7104. for (var i = 0; i < this.sentenceList.length; i++) {
  7105. if (this.sentenceList[i].rightAnswer.length == 0) {
  7106. this.$message.error("请将信息填写完整!");
  7107. return;
  7108. }
  7109. if (
  7110. this.sentenceList[i].addSentence.length !=
  7111. this.sentenceList[i].rightAnswer.length
  7112. ) {
  7113. this.$message.error("请将信息填写完整!");
  7114. return;
  7115. }
  7116. }
  7117. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7118. this.taskCount
  7119. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7120. this.sentenceList = [
  7121. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7122. ];
  7123. this.dialogVisibleSentence = false;
  7124. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7125. // itemTaskIndex
  7126. // ].toolChoose[toolIndex].tool = [];
  7127. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7128. // itemTaskIndex
  7129. // ].toolChoose[toolIndex].tool.push(i);
  7130. if (
  7131. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7132. .toolChoose[this.toolIndex].tool != 47
  7133. ) {
  7134. this.addTools(47, this.taskCount, this.toolIndex);
  7135. }
  7136. },
  7137. addTableJson() {
  7138. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7139. // this.$message.error("请将信息填写完整!");
  7140. // return;
  7141. // }
  7142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7143. this.taskCount
  7144. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7145. // this.tableJson = [{ text: "" }];
  7146. // this.dialogVisibleTable = false;
  7147. this.$message.success("上传成功");
  7148. if (
  7149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7150. .toolChoose[this.toolIndex].tool != 48
  7151. ) {
  7152. this.addTools(48, this.taskCount, this.toolIndex);
  7153. }
  7154. },
  7155. addWordJson() {
  7156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7157. this.taskCount
  7158. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7159. // this.wordJson = [{ text: "" }];
  7160. // this.dialogVisibleWord = false;
  7161. this.$message.success("上传成功");
  7162. if (
  7163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7164. .toolChoose[this.toolIndex].tool != 52
  7165. ) {
  7166. this.addTools(52, this.taskCount, this.toolIndex);
  7167. }
  7168. },
  7169. addMoreUpload() {
  7170. if (this.uploadJson.length == 0) {
  7171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7172. this.taskCount
  7173. ].toolChoose[this.toolIndex].uploadJson = [];
  7174. } else {
  7175. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7176. this.taskCount
  7177. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7178. }
  7179. this.uploadJson = [];
  7180. this.dialogVisibleMoreUpload = false;
  7181. if (
  7182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7183. .toolChoose[this.toolIndex].tool != 50
  7184. ) {
  7185. this.addTools(50, this.taskCount, this.toolIndex);
  7186. }
  7187. },
  7188. addPreTime() {
  7189. if (this.preTime == 0) {
  7190. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7191. this.taskCount
  7192. ].toolChoose[this.toolIndex].preTime = 0;
  7193. } else {
  7194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7195. this.taskCount
  7196. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7197. }
  7198. this.preTime = 0;
  7199. this.dialogVisiblePreTime = false;
  7200. if (
  7201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7202. .toolChoose[this.toolIndex].tool != 10
  7203. ) {
  7204. this.addTools(10, this.taskCount, this.toolIndex);
  7205. }
  7206. },
  7207. goToTask(i) {
  7208. $(".rightBox")[0].scrollTop = $(".taskBorder")[i].offsetTop + $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  7209. this.isClickColor = i + 1;
  7210. },
  7211. taskMove(type, index) {
  7212. // this
  7213. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7214. // confirmButtonText: "确定",
  7215. // cancelButtonText: "取消",
  7216. // type: "warning",
  7217. // })
  7218. // .then(() => {
  7219. if (type == 1) {
  7220. if (index > 0) {
  7221. let a = JSON.parse(
  7222. JSON.stringify(
  7223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7224. )
  7225. );
  7226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7228. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7229. }
  7230. } else {
  7231. if (
  7232. index <
  7233. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7234. ) {
  7235. let a = JSON.parse(
  7236. JSON.stringify(
  7237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7238. )
  7239. );
  7240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7243. }
  7244. }
  7245. this.$forceUpdate();
  7246. // })
  7247. // .catch(() => {
  7248. // return;
  7249. // })
  7250. },
  7251. addGroup(i) {
  7252. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7253. this.groupJson.group.push({
  7254. name: "第" + (this.groupJson.group.length + 1) + "组",
  7255. });
  7256. },
  7257. deleteGroup(i) {
  7258. this.groupJson.group.splice(i, 1);
  7259. },
  7260. addGroupJson() {
  7261. for (var i = 0; i < this.groupJson.group.length; i++) {
  7262. if (!this.groupJson.group[i].name) {
  7263. this.$message.error("请将信息填写完整!");
  7264. return;
  7265. }
  7266. }
  7267. if (!this.groupJson.number) {
  7268. this.$message.error("请将信息填写完整!");
  7269. return;
  7270. }
  7271. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7272. this.taskCount
  7273. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7274. JSON.stringify(this.groupJson)
  7275. );
  7276. this.dialogVisibleGroup = false;
  7277. this.groupJson = {};
  7278. if (
  7279. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7280. .toolChoose[this.toolIndex].tool != 49
  7281. ) {
  7282. this.addTools(49, this.taskCount, this.toolIndex);
  7283. }
  7284. },
  7285. updateTime(preTime) {
  7286. this.preTime = preTime;
  7287. },
  7288. InviteChange(val) {
  7289. console.log(val);
  7290. return;
  7291. let array = JSON.parse(JSON.stringify(val));
  7292. this.inviteCode = this.inviteCode.filter((el) => {
  7293. if (val.indexOf(el.cid) != -1) {
  7294. array.splice(array.indexOf(el.cid), 1);
  7295. return el;
  7296. }
  7297. });
  7298. for (var i = 0; i < array.length; i++) {
  7299. this.getInviteCode(array[i]);
  7300. }
  7301. },
  7302. async getInviteCode(cid) {
  7303. let code = this.randomNumber();
  7304. let params = {
  7305. code: code,
  7306. oid: this.oid,
  7307. };
  7308. let type = 1;
  7309. for (var i = 0; i < this.inviteCode.length; i++) {
  7310. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7311. type = 2;
  7312. }
  7313. }
  7314. if (type == 2) {
  7315. this.getInviteCode(cid);
  7316. return;
  7317. }
  7318. const res = await this.ajax.get(
  7319. this.$store.state.api + "selectInviteCode2",
  7320. params
  7321. );
  7322. if (
  7323. res.data.length &&
  7324. res.data[0].length &&
  7325. res.data[0][0].courseId != this.cid
  7326. ) {
  7327. this.getInviteCode(cid);
  7328. return;
  7329. }
  7330. let array = [];
  7331. for (var i = 0; i < this.inviteCode.length; i++) {
  7332. array.push(this.inviteCode[i].cid);
  7333. }
  7334. if (array.indexOf(cid) != -1) {
  7335. this.inviteCode[array.indexOf(cid)].ic = code;
  7336. } else {
  7337. this.inviteCode.push({ cid: cid, ic: code });
  7338. }
  7339. },
  7340. OpenInviteD(cid) {
  7341. let array = [];
  7342. this.icode = "";
  7343. for (var i = 0; i < this.inviteCode.length; i++) {
  7344. array.push(this.inviteCode[i].cid);
  7345. }
  7346. if (array.indexOf(cid) != -1) {
  7347. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7348. }
  7349. this.inviteId = cid;
  7350. this.dialogVisibleInvite = true;
  7351. },
  7352. addInvite() {
  7353. let reg = /^[A-Za-z0-9]{4,}$/;
  7354. if (!reg.test(this.icode)) {
  7355. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7356. return;
  7357. }
  7358. let type = 1;
  7359. for (var i = 0; i < this.inviteCode.length; i++) {
  7360. if (
  7361. this.inviteCode[i].cid != this.inviteId &&
  7362. this.icode == this.inviteCode[i].ic
  7363. ) {
  7364. type = 2;
  7365. }
  7366. }
  7367. if (type == 2) {
  7368. this.$message.error("已有此随机码,不能重复");
  7369. return;
  7370. }
  7371. let params = {
  7372. code: this.icode,
  7373. oid: this.oid,
  7374. };
  7375. this.ajax
  7376. .get(this.$store.state.api + "selectInviteCode", params)
  7377. .then((res) => {
  7378. if (
  7379. res.data.length &&
  7380. res.data[0].length &&
  7381. res.data[0][0].courseId != this.cid
  7382. ) {
  7383. this.$message.error("已有此随机码,不能重复");
  7384. return;
  7385. }
  7386. let array = [];
  7387. for (var i = 0; i < this.inviteCode.length; i++) {
  7388. array.push(this.inviteCode[i].cid);
  7389. }
  7390. if (array.indexOf(this.inviteId) != -1) {
  7391. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7392. } else {
  7393. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7394. }
  7395. this.icode = "";
  7396. this.dialogVisibleInvite = false;
  7397. })
  7398. .catch((err) => {
  7399. console.error(err);
  7400. });
  7401. },
  7402. randomNumber() {
  7403. // 随机生成两位数
  7404. // let num = Math.floor(Math.random() * 900) + 100;
  7405. // 生成 0 到 99 之间的随机整数
  7406. const randomNumber = Math.floor(Math.random() * 100);
  7407. // 如果随机数小于 10,补上前导零
  7408. const num =
  7409. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7410. // 随机生成两个大写字母
  7411. let letters = "";
  7412. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7413. for (let i = 0; i < 3; i++) {
  7414. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7415. }
  7416. // 随机生成两位数字和字母的组合
  7417. let mix = "";
  7418. let chars =
  7419. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7420. for (let i = 0; i < 3; i++) {
  7421. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7422. mix += char;
  7423. }
  7424. // 随机选择一种类型
  7425. let type = Math.floor(Math.random() * 3);
  7426. return num;
  7427. // 根据类型输出结果
  7428. switch (type) {
  7429. case 0:
  7430. console.log(num); // 输出两位数
  7431. return num;
  7432. case 1:
  7433. console.log(letters); // 输出两个大写字母
  7434. return letters;
  7435. case 2:
  7436. console.log(mix); // 输出两位数字和字母的组合
  7437. return mix;
  7438. }
  7439. },
  7440. },
  7441. beforeDestroy() {
  7442. clearTimeout(this.timer);
  7443. this.timer = null;
  7444. clearInterval(this.timer2);
  7445. this.timer2 = null;
  7446. },
  7447. beforeRouteLeave(to, from, next) {
  7448. clearTimeout(this.timer);
  7449. this.timer = null;
  7450. clearInterval(this.timer2);
  7451. this.timer2 = null;
  7452. next();
  7453. },
  7454. created() {
  7455. this.getStudent();
  7456. this.getTeacher();
  7457. this.getClass();
  7458. this.getTemplate();
  7459. // this.selectType();
  7460. this.selectEva();
  7461. this.loading = false;
  7462. this.timer2 = setInterval(() => {
  7463. this.selectEva();
  7464. }, 5000);
  7465. setTimeout(() => {
  7466. this.selectCourseDetail();
  7467. }, 500);
  7468. },
  7469. mounted() {
  7470. this.$nextTick(() => {
  7471. //监听这个dom的scroll事件
  7472. $('.rightBox')[0].addEventListener("scroll", this.scrollChange);
  7473. });;
  7474. },
  7475. };
  7476. </script>
  7477. <style scoped>
  7478. @media screen and (max-width: 1280px) {
  7479. .mbCss {
  7480. flex-direction: column !important;
  7481. }
  7482. .pjCss {
  7483. width: 100% !important;
  7484. }
  7485. .evaCss {
  7486. width: 100% !important;
  7487. }
  7488. }
  7489. .dialog_diy>>>.el-dialog__header {
  7490. background: #3c3c3c !important;
  7491. padding: 15px 20px;
  7492. }
  7493. .dialog_diy>>>.el-dialog__title {
  7494. color: #fff;
  7495. }
  7496. .dialog_diy>>>.el-dialog__headerbtn {
  7497. top: 19px;
  7498. }
  7499. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7500. color: #fff;
  7501. }
  7502. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7503. color: #fff;
  7504. }
  7505. .dialog_diy>>>.el-dialog__body,
  7506. .dialog_diy>>>.el-dialog__footer {
  7507. background: #fafafa;
  7508. }
  7509. .dialog_diy3>>>.el-dialog__body,
  7510. .dialog_diy3>>>.el-dialog__footer {
  7511. background: #eee !important;
  7512. }
  7513. .dialog_diy3>>>.el-dialog__body {
  7514. padding: 20px 20px;
  7515. }
  7516. .source_diy>>>.el-dialog {
  7517. height: 100% !important;
  7518. margin: 0 auto !important;
  7519. }
  7520. .source_diy>>>.el-dialog__body {
  7521. height: calc(100% - 185px);
  7522. overflow: auto;
  7523. background: #e6eaf0;
  7524. }
  7525. .source_diy>>>.el-dialog__footer {
  7526. background: #e6eaf0 !important;
  7527. }
  7528. .left {
  7529. border-right: 1px solid rgb(60, 94, 143);
  7530. display: flex;
  7531. flex-direction: column;
  7532. align-items: center;
  7533. min-height: 600px;
  7534. width: 385px;
  7535. height: 80%;
  7536. }
  7537. .tips {
  7538. color: rgb(128, 128, 128);
  7539. font-size: 12px;
  7540. width: 270px;
  7541. margin: 40px;
  7542. }
  7543. .pb_content {
  7544. height: 100% !important;
  7545. /* margin: 0 20px 0 20px; */
  7546. }
  7547. .pb_content_body {
  7548. width: 100% !important;
  7549. height: 100%;
  7550. }
  7551. .info_solid {
  7552. width: 270px;
  7553. height: 30px;
  7554. border-left: 1px solid #bdbdbd;
  7555. margin: 10px 0px 10px 30px;
  7556. }
  7557. .info_steps {
  7558. width: 270px;
  7559. font-size: 0.875rem;
  7560. display: flex;
  7561. align-items: center;
  7562. }
  7563. .info_steps span:nth-child(1) {
  7564. width: 30px;
  7565. height: 30px;
  7566. background: rgba(0, 0, 0, 0.38);
  7567. display: block;
  7568. color: #fff;
  7569. border-radius: 40px;
  7570. text-align: center;
  7571. line-height: 30px;
  7572. }
  7573. .steps_active {
  7574. background: #3d67bc !important;
  7575. }
  7576. .info_steps span:nth-child(2) {
  7577. margin-left: 5px;
  7578. }
  7579. .right {
  7580. height: 100%;
  7581. width: 100%;
  7582. display: flex;
  7583. overflow: hidden;
  7584. }
  7585. .basic_box {
  7586. margin: 0 auto;
  7587. position: relative;
  7588. padding: 0 20px 0 20px;
  7589. }
  7590. .basic_box2 {
  7591. position: relative;
  7592. width: calc(100% - 300px);
  7593. }
  7594. .basic_box_success {
  7595. width: 100%;
  7596. height: 100%;
  7597. padding: 50px 0;
  7598. position: relative;
  7599. text-align: center;
  7600. /* border-bottom: 1px solid #bfbfbf; */
  7601. box-sizing: border-box;
  7602. display: flex;
  7603. align-items: center;
  7604. flex-direction: column;
  7605. justify-content: center;
  7606. }
  7607. .info_title {
  7608. font-size: 1.5em;
  7609. margin-right: 25px;
  7610. /* margin: 20px 30px 20px 30px; */
  7611. }
  7612. .bInfo_title {
  7613. text-align: left;
  7614. margin: 10px 0;
  7615. }
  7616. .small_title {
  7617. font-size: 14px;
  7618. line-height: 40px;
  7619. }
  7620. .chapter_beizhu {
  7621. font-size: 12px;
  7622. font-weight: bold;
  7623. float: right;
  7624. color: rgb(128, 128, 128);
  7625. margin-top: 5px;
  7626. }
  7627. .chapter_uploadBox1 {
  7628. text-align: left;
  7629. background-color: rgb(242, 242, 242);
  7630. width: 100%;
  7631. height: 67px;
  7632. padding: 0px 15px;
  7633. border-radius: 8px;
  7634. overflow: hidden;
  7635. font-size: 16px;
  7636. box-sizing: border-box;
  7637. position: relative;
  7638. }
  7639. .chapter_add {
  7640. width: 100%;
  7641. height: 32px;
  7642. margin-top: 15px;
  7643. cursor: pointer;
  7644. }
  7645. .chapter_add_l {
  7646. margin-left: 5px;
  7647. width: 30px;
  7648. height: 30px;
  7649. float: left;
  7650. border: 1px solid #aaa;
  7651. color: #aaa;
  7652. border-radius: 50%;
  7653. font-size: 25px;
  7654. text-align: center;
  7655. }
  7656. .chapter_add_r {
  7657. font-size: 18px;
  7658. height: 40px;
  7659. line-height: 30px;
  7660. text-indent: 10px;
  7661. color: #aaa;
  7662. }
  7663. .chapter_add_r span {
  7664. font-size: 12px;
  7665. color: rgb(204, 204, 204);
  7666. }
  7667. .chapter_add_input {
  7668. display: none;
  7669. }
  7670. .line {
  7671. width: 85%;
  7672. margin: 0 auto;
  7673. border-top: 1px solid #e5e5e5;
  7674. margin-top: 20px;
  7675. }
  7676. .info_btnBox {
  7677. width: 100%;
  7678. display: flex;
  7679. justify-content: space-evenly;
  7680. margin: 10px 0 10px 0;
  7681. }
  7682. .info_btn,
  7683. .teacherWord {
  7684. color: #fff;
  7685. background-color: #0f7eff;
  7686. padding: 8px 24px;
  7687. font-size: 0.9375rem;
  7688. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7689. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7690. min-width: 64px;
  7691. font-weight: 500;
  7692. border-radius: 4px;
  7693. box-sizing: border-box;
  7694. border: none;
  7695. cursor: pointer;
  7696. }
  7697. .teacherWord {
  7698. width: 105px !important;
  7699. text-align: center !important;
  7700. line-height: 36px !important;
  7701. padding: 0 !important;
  7702. font-size: 14px !important;
  7703. margin: 10px 0 !important;
  7704. }
  7705. .wordTeacher {
  7706. display: flex;
  7707. flex-direction: column;
  7708. width: 20%;
  7709. text-align: center;
  7710. font-size: 14px;
  7711. margin: 30px 30px 0 10px;
  7712. background: #fff;
  7713. position: relative;
  7714. border-radius: 5px;
  7715. padding: 25px 0px;
  7716. }
  7717. .wordPic {
  7718. margin: 0 auto;
  7719. width: 60px;
  7720. height: 60px;
  7721. cursor: pointer;
  7722. }
  7723. .deleteWord {
  7724. width: 22px;
  7725. height: 22px;
  7726. position: absolute;
  7727. right: 5px;
  7728. top: -15px;
  7729. cursor: pointer;
  7730. display: none;
  7731. z-index: 999;
  7732. }
  7733. .wordPic>img,
  7734. .deleteWord>img,
  7735. .addToolImg>img {
  7736. width: 100%;
  7737. height: 100%;
  7738. }
  7739. .info_btn:hover {
  7740. background-color: #4f7cd5 !important;
  7741. }
  7742. .cru_selectBox {
  7743. display: flex;
  7744. margin: 24px 0 10px;
  7745. flex-wrap: nowrap;
  7746. white-space: nowrap;
  7747. overflow: auto;
  7748. position: relative;
  7749. height: 47px;
  7750. }
  7751. .cru_selectBox::-webkit-scrollbar {
  7752. /*滚动条整体样式*/
  7753. width: 6px;
  7754. /*高宽分别对应横竖滚动条的尺寸*/
  7755. height: 6px;
  7756. }
  7757. /*定义滚动条轨道 内阴影+圆角*/
  7758. .cru_selectBox::-webkit-scrollbar-track {
  7759. border-radius: 10px;
  7760. background-color: #eee;
  7761. }
  7762. /*定义滑块 内阴影+圆角*/
  7763. .cru_selectBox::-webkit-scrollbar-thumb {
  7764. border-radius: 10px;
  7765. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7766. background-color: rgba(0, 0, 0, 0.1);
  7767. }
  7768. .cru_line {
  7769. position: absolute;
  7770. bottom: 0px;
  7771. transition: all 0.5s;
  7772. left: 0px;
  7773. width: 125px;
  7774. margin-left: -25px;
  7775. }
  7776. .cru_select {
  7777. font-size: 21px;
  7778. margin-right: 37px;
  7779. margin-left: 5px;
  7780. cursor: pointer;
  7781. color: #a6a6a6;
  7782. }
  7783. .cru_selected {
  7784. color: #0b7fc2 !important;
  7785. }
  7786. .chapter_contentbox {
  7787. display: flex;
  7788. align-items: center;
  7789. margin-top: 15px;
  7790. }
  7791. .chapter_contentbox div:nth-child(1) {
  7792. /* width: 150px; */
  7793. margin: 0px;
  7794. /* font-size: 2em; */
  7795. color: black;
  7796. display: block;
  7797. white-space: nowrap;
  7798. overflow: hidden;
  7799. text-overflow: ellipsis;
  7800. /* font-weight: 600; */
  7801. margin-right: 20px;
  7802. font-size: 18px;
  7803. }
  7804. .chapter_contentbox div:nth-child(2) {
  7805. width: 380px;
  7806. }
  7807. .chapter_contentbox div:nth-child(3),
  7808. .remove {
  7809. background-image: url("../../../assets/remove.png");
  7810. cursor: pointer;
  7811. opacity: 0.5;
  7812. width: 40px;
  7813. height: 50px;
  7814. background-repeat: no-repeat;
  7815. background-position: 5px 10px;
  7816. }
  7817. .remove1 {
  7818. background-image: url("../../../assets/remove1.png");
  7819. background-repeat: no-repeat;
  7820. background-position: 5px 10px;
  7821. width: 40px;
  7822. height: 50px;
  7823. cursor: pointer;
  7824. }
  7825. .binfo_input {
  7826. font: inherit;
  7827. color: currentColor;
  7828. width: 100%;
  7829. margin: 0;
  7830. /* padding: 15px 14px; */
  7831. padding: 8px 14px;
  7832. display: block;
  7833. min-width: 0;
  7834. outline: none;
  7835. box-sizing: content-box;
  7836. background: none;
  7837. border: 1px solid rgba(0, 0, 0, 0.23);
  7838. border-radius: 4px;
  7839. box-sizing: border-box;
  7840. background: #fff;
  7841. font-size: 18px;
  7842. }
  7843. .binfo_input:focus-visible {
  7844. border: 1px solid rgba(61, 103, 188);
  7845. }
  7846. .time {
  7847. display: flex;
  7848. margin: 35px 0 80px 0;
  7849. }
  7850. .chapter_btnbox {
  7851. width: 160px;
  7852. border-radius: 5px;
  7853. border: 2px dashed gray;
  7854. display: flex;
  7855. padding: 8px 50px;
  7856. align-items: center;
  7857. justify-content: center;
  7858. margin: 30px auto 0;
  7859. cursor: pointer;
  7860. }
  7861. .icon_add {
  7862. position: relative;
  7863. width: 24px;
  7864. padding-top: 20px;
  7865. border-radius: 100%;
  7866. border-width: 2px;
  7867. border-style: solid;
  7868. border-color: gray;
  7869. }
  7870. .icon_add i:nth-child(1) {
  7871. position: absolute;
  7872. left: 50%;
  7873. top: 50%;
  7874. height: 60%;
  7875. transform: translate(-50%, -50%);
  7876. border-width: 1px;
  7877. border-style: solid;
  7878. border-color: inherit;
  7879. }
  7880. .icon_add i:nth-child(2) {
  7881. position: absolute;
  7882. top: 50%;
  7883. left: 50%;
  7884. width: 60%;
  7885. transform: translate(-50%, -50%);
  7886. border-width: 1px;
  7887. border-style: solid;
  7888. border-color: inherit;
  7889. }
  7890. .chapter_btn_w {
  7891. font-size: 0.9375rem;
  7892. font-weight: bold;
  7893. color: gray;
  7894. margin-left: 20px;
  7895. }
  7896. .disUoloadSty>>>.el-icon-plus {
  7897. display: none !important;
  7898. /* 上传按钮隐藏 */
  7899. }
  7900. .imgLeft {
  7901. margin: 15px 0;
  7902. }
  7903. .add_info_box {
  7904. margin: 20px 0;
  7905. }
  7906. .add_info_box button {
  7907. margin: 0 10px 10px 0;
  7908. }
  7909. .add_info_box2 {
  7910. display: flex;
  7911. align-items: center;
  7912. flex-wrap: wrap;
  7913. }
  7914. .add_info_box2::after {
  7915. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  7916. color: red;
  7917. font-size: 14px;
  7918. margin-bottom: 10px;
  7919. }
  7920. .add_chapters_box {
  7921. text-align: left;
  7922. background-color: rgb(232 234 237);
  7923. width: 100%;
  7924. padding: 0px 15px;
  7925. border-radius: 15px;
  7926. font-size: 16px;
  7927. box-sizing: border-box;
  7928. position: relative;
  7929. padding: 0 10px 5px 10px;
  7930. height: 185px;
  7931. overflow-y: auto;
  7932. overflow-x: hidden;
  7933. }
  7934. .homework_box {
  7935. display: flex;
  7936. align-items: flex-start;
  7937. flex-wrap: wrap;
  7938. margin: 15px 0 0 0;
  7939. flex-direction: column;
  7940. align-content: flex-start;
  7941. }
  7942. .course_homework {
  7943. display: flex;
  7944. justify-content: center;
  7945. flex-direction: row;
  7946. align-items: center;
  7947. margin: 0 10px 0 0;
  7948. }
  7949. .course_homework>>>.el-input__inner {
  7950. width: 140px;
  7951. margin-left: 15px;
  7952. }
  7953. .chapter_upload_move {
  7954. position: relative;
  7955. background-color: #fff;
  7956. position: absolute;
  7957. width: 100%;
  7958. top: 0px;
  7959. left: 0px;
  7960. border: 1px solid #eee;
  7961. border-radius: 5px;
  7962. transition: width 2s;
  7963. -moz-transition: width 2s;
  7964. -webkit-transition: width 2s;
  7965. -o-transition: width 2s;
  7966. }
  7967. .chapter_upload_l_i {
  7968. background-image: url("../../../assets/icon.png");
  7969. background-position: 3px -165px;
  7970. width: 30px;
  7971. height: 30px;
  7972. margin: 10px auto 0 auto;
  7973. }
  7974. .left_first {
  7975. display: flex;
  7976. flex-direction: column;
  7977. flex-wrap: nowrap;
  7978. }
  7979. .right_first {
  7980. width: 100%;
  7981. height: 100%;
  7982. margin-top: 15px;
  7983. }
  7984. .right_title {
  7985. height: 30px;
  7986. padding: 15px 20px 15px 20px;
  7987. border-bottom: 1px solid #f2f2f2;
  7988. font-size: 1.5em;
  7989. font-weight: bold;
  7990. color: #0f7eff;
  7991. margin: 0 auto;
  7992. display: flex;
  7993. justify-content: space-between;
  7994. }
  7995. .people {
  7996. border: 1px solid rgb(229 229 229);
  7997. height: 495px;
  7998. border-radius: 5px;
  7999. width: 100%;
  8000. overflow: auto;
  8001. }
  8002. .people_top {
  8003. display: flex;
  8004. width: 100%;
  8005. /* justify-content: space-between; */
  8006. /* align-items: center; */
  8007. flex-direction: column;
  8008. padding: 10px 25px 0;
  8009. box-sizing: border-box;
  8010. }
  8011. .people_nav,
  8012. .people_top_right {
  8013. /* padding: 20px 0 0 20px; */
  8014. }
  8015. .people_top_right {
  8016. height: 40px;
  8017. margin-bottom: 10px;
  8018. }
  8019. .people_search {
  8020. display: flex;
  8021. position: relative;
  8022. }
  8023. .people_search>>>.el-input__inner {
  8024. /* height: 25px; */
  8025. width: 95%;
  8026. }
  8027. .search_img {
  8028. width: 20px;
  8029. height: 20px;
  8030. position: absolute;
  8031. right: 30px;
  8032. top: 50%;
  8033. transform: translateY(-50%);
  8034. }
  8035. .search_img>img {
  8036. width: 100%;
  8037. height: 100%;
  8038. }
  8039. .people_name {
  8040. display: flex;
  8041. justify-content: flex-start;
  8042. padding: 20px 0 0 25px;
  8043. flex-direction: column;
  8044. flex-wrap: wrap;
  8045. }
  8046. .p_box {
  8047. position: relative;
  8048. }
  8049. .people_name>>>.el-checkbox {
  8050. width: 100%;
  8051. display: flex;
  8052. align-items: center;
  8053. margin-bottom: 10px;
  8054. }
  8055. .people_name>>>.el-checkbox__label {
  8056. text-overflow: ellipsis;
  8057. overflow: hidden;
  8058. width: calc(100%);
  8059. }
  8060. .people_name2>>>.el-checkbox__label {
  8061. width: calc(100% - 130px);
  8062. }
  8063. .inviteCode {
  8064. position: absolute;
  8065. right: 30px;
  8066. color: #237ade;
  8067. top: 0;
  8068. cursor: pointer;
  8069. font-size: 13px;
  8070. }
  8071. .noneInvite {
  8072. color: #a8a8a8;
  8073. }
  8074. .inviteImg {
  8075. position: absolute;
  8076. right: 5px;
  8077. top: 0;
  8078. width: 20px;
  8079. }
  8080. .right_img {
  8081. width: 150px;
  8082. height: 150px;
  8083. margin: 20px auto;
  8084. }
  8085. .right_img>img {
  8086. width: 100%;
  8087. height: 100%;
  8088. }
  8089. .number {
  8090. margin-top: 20px;
  8091. color: #4aa6ff;
  8092. text-decoration: underline;
  8093. }
  8094. .success_button {
  8095. display: flex;
  8096. text-align: center;
  8097. margin: 5% 0 auto;
  8098. flex-direction: row;
  8099. justify-content: center;
  8100. }
  8101. .look_course {
  8102. margin-right: 40px;
  8103. background: #3d67bc;
  8104. width: 200px;
  8105. height: 35px;
  8106. line-height: 35px;
  8107. color: #fff;
  8108. text-align: center;
  8109. font-size: 14px;
  8110. border-radius: 5px;
  8111. cursor: pointer;
  8112. }
  8113. .attend_others {
  8114. width: 250px;
  8115. background: #4fb13c;
  8116. height: 35px;
  8117. line-height: 35px;
  8118. color: #fff;
  8119. text-align: center;
  8120. font-size: 14px;
  8121. border-radius: 5px;
  8122. cursor: pointer;
  8123. }
  8124. .dialog_diy2>>>.el-dialog__body {
  8125. text-align: center;
  8126. }
  8127. .write_togother {
  8128. position: absolute;
  8129. right: 45px;
  8130. display: flex;
  8131. top: 5%;
  8132. }
  8133. .write_people {
  8134. font-size: 14px;
  8135. line-height: 50px;
  8136. padding-right: 10px;
  8137. }
  8138. .end_write {
  8139. background: #3d67bc;
  8140. color: #fff;
  8141. width: 100px;
  8142. height: 35px;
  8143. line-height: 35px;
  8144. text-align: center;
  8145. font-size: 14px;
  8146. border-radius: 5px;
  8147. cursor: pointer;
  8148. }
  8149. .chapter_upload {
  8150. height: 50px;
  8151. margin-top: 12px;
  8152. position: relative;
  8153. display: flex;
  8154. align-items: center;
  8155. width: 100%;
  8156. min-height: 50px;
  8157. }
  8158. .chapter_upload_t {
  8159. background-color: #fff;
  8160. position: absolute;
  8161. height: 100%;
  8162. top: 0px;
  8163. left: 0px;
  8164. border-radius: 40px;
  8165. box-sizing: border-box;
  8166. box-shadow: 0 0 3px 3px #dfdfdf;
  8167. }
  8168. .chapter_upload_o {
  8169. width: 100%;
  8170. height: 100%;
  8171. position: relative;
  8172. z-index: 1;
  8173. }
  8174. .chapter_upload_ic {
  8175. height: 30px;
  8176. float: right;
  8177. }
  8178. .chapter_upload_ic_l {
  8179. width: 50px;
  8180. height: 50px;
  8181. float: left;
  8182. }
  8183. .chapter_upload_ic_l div {
  8184. width: 30px;
  8185. height: 35px;
  8186. background: url("../../../assets/icon/icon.png");
  8187. }
  8188. .chapter_upload_ic_r {
  8189. width: 50px;
  8190. height: 50px;
  8191. float: left;
  8192. margin-left: 0px;
  8193. display: flex;
  8194. align-items: center;
  8195. }
  8196. .chapter_upload_ic_r div {
  8197. width: 25px;
  8198. height: 25px;
  8199. background-image: url("../../../assets/delete.png");
  8200. background-size: 100% 100%;
  8201. }
  8202. .chapter_upload_n {
  8203. display: flex;
  8204. text-indent: 10px;
  8205. text-decoration: none;
  8206. text-overflow: ellipsis;
  8207. white-space: nowrap;
  8208. overflow: hidden;
  8209. width: 55%;
  8210. margin-left: 10px;
  8211. cursor: pointer;
  8212. margin-top: 2px;
  8213. align-items: center;
  8214. }
  8215. .chapter_upload_l_i1 {
  8216. background-image: url("../../../assets/icon/video.png");
  8217. width: 28px;
  8218. height: 28px;
  8219. background-size: 100% 100%;
  8220. }
  8221. .chapter_upload_l_i5 {
  8222. background-image: url("../../../assets/icon/word.png");
  8223. width: 24px;
  8224. height: 24px;
  8225. background-size: 100% 100%;
  8226. }
  8227. .chapter_upload_l_i8 {
  8228. background-image: url("../../../assets/icon/line.png");
  8229. width: 24px;
  8230. height: 24px;
  8231. background-size: 100% 100%;
  8232. }
  8233. .chapter_upload_ud {
  8234. display: flex;
  8235. flex-direction: column;
  8236. margin-left: 5px;
  8237. justify-content: center;
  8238. }
  8239. .chapter_upload_up {
  8240. background-image: url("../../../assets/icon/up.png");
  8241. width: 17px;
  8242. height: 15px;
  8243. background-size: 100% 100%;
  8244. cursor: pointer;
  8245. }
  8246. .chapter_upload_down {
  8247. background-image: url("../../../assets/icon/down.png");
  8248. width: 17px;
  8249. height: 15px;
  8250. margin: 2px auto 0 auto;
  8251. background-size: 100% 100%;
  8252. cursor: pointer;
  8253. }
  8254. .addWordStyle {
  8255. display: flex;
  8256. flex-direction: row;
  8257. justify-content: flex-start;
  8258. overflow-x: auto;
  8259. white-space: nowrap;
  8260. flex-wrap: wrap;
  8261. }
  8262. /* table 样式 */
  8263. .cont>>>table {
  8264. border-top: 1px solid #ccc;
  8265. border-left: 1px solid #ccc;
  8266. }
  8267. .cont>>>table td,
  8268. .cont>>>table th {
  8269. border-bottom: 1px solid #ccc;
  8270. border-right: 1px solid #ccc;
  8271. /* padding: 20px 5px; */
  8272. padding: 5px 10px;
  8273. max-width: 0px;
  8274. height: 30px;
  8275. vertical-align: baseline;
  8276. }
  8277. .cont>>>table th {
  8278. border-bottom: 2px solid #ccc;
  8279. text-align: center;
  8280. }
  8281. /* blockquote 样式 */
  8282. .cont>>>blockquote {
  8283. display: block;
  8284. border-left: 8px solid #d0e5f2;
  8285. padding: 5px 10px;
  8286. margin: 10px 0;
  8287. line-height: 1.4;
  8288. font-size: 100%;
  8289. background-color: #f1f1f1;
  8290. }
  8291. /* code 样式 */
  8292. .cont>>>code {
  8293. display: inline-block;
  8294. *display: inline;
  8295. *zoom: 1;
  8296. background-color: #f1f1f1;
  8297. border-radius: 3px;
  8298. padding: 3px 5px;
  8299. margin: 0 3px;
  8300. }
  8301. .cont>>>pre code {
  8302. display: block;
  8303. }
  8304. /* ul ol 样式 */
  8305. .cont>>>ul,
  8306. ol {
  8307. margin: 10px 0 10px 20px;
  8308. }
  8309. .wordbox {
  8310. display: flex;
  8311. flex-wrap: wrap;
  8312. cursor: pointer;
  8313. width: 100%;
  8314. }
  8315. .checkword {
  8316. width: 22px;
  8317. height: 22px;
  8318. margin: 10px auto 0;
  8319. cursor: pointer;
  8320. }
  8321. .checkword img {
  8322. width: 100%;
  8323. }
  8324. .stepBg {
  8325. display: flex;
  8326. flex-direction: column;
  8327. justify-content: space-between;
  8328. align-items: center;
  8329. background: #fff;
  8330. width: 300px;
  8331. margin: 0 25px 0 0;
  8332. }
  8333. .stepTop {
  8334. min-width: 300px;
  8335. width: 300px;
  8336. /* border-radius: 10px; */
  8337. display: flex;
  8338. flex-direction: column;
  8339. justify-content: flex-start;
  8340. align-items: center;
  8341. flex-wrap: nowrap;
  8342. background: #fff;
  8343. /* top: 18%; */
  8344. }
  8345. .stepTop>div {
  8346. height: 80px;
  8347. width: 85%;
  8348. cursor: pointer;
  8349. margin: 10px 0;
  8350. border-radius: 10px;
  8351. }
  8352. .first,
  8353. .second,
  8354. .third,
  8355. .four {
  8356. background: #4a83d0;
  8357. height: 90px;
  8358. color: #fff;
  8359. display: flex;
  8360. flex-direction: row;
  8361. align-items: center;
  8362. justify-content: center;
  8363. }
  8364. .first>div:nth-child(1),
  8365. .second>div:nth-child(1),
  8366. .third>div:nth-child(1),
  8367. .four>div:nth-child(1) {
  8368. margin: 5px 10px 0 0;
  8369. width: 2rem;
  8370. }
  8371. .firstNo,
  8372. .secondNo,
  8373. .thirdNo,
  8374. .fourNo {
  8375. background: #e7e7e7;
  8376. color: #adadad;
  8377. display: flex;
  8378. flex-direction: row;
  8379. align-items: center;
  8380. justify-content: center;
  8381. }
  8382. .firstNo>div:nth-child(1),
  8383. .secondNo>div:nth-child(1),
  8384. .thirdNo>div:nth-child(1),
  8385. .fourNo>div:nth-child(1) {
  8386. margin: 5px 10px 0 0;
  8387. width: 2rem;
  8388. }
  8389. .uploadWidth>>>.el-upload {
  8390. width: 60px;
  8391. height: 60px;
  8392. position: relative;
  8393. }
  8394. .addPeople {
  8395. background: #fa6060;
  8396. width: 150px;
  8397. height: 40px;
  8398. color: #fff;
  8399. border-radius: 5px;
  8400. text-align: center;
  8401. line-height: 40px;
  8402. font-size: 14px;
  8403. cursor: pointer;
  8404. margin-top: 20px;
  8405. }
  8406. .kcImg {
  8407. width: 60px;
  8408. margin-left: 10px;
  8409. }
  8410. .zyImg {
  8411. width: 55px;
  8412. margin: 0 10px;
  8413. }
  8414. .deleteZy {
  8415. width: 20px;
  8416. position: absolute;
  8417. top: 5px;
  8418. right: 5px;
  8419. cursor: pointer;
  8420. }
  8421. .kcImg>img,
  8422. .zyImg>img,
  8423. .deleteZy>img {
  8424. width: 100%;
  8425. height: 100%;
  8426. }
  8427. .zyBox {
  8428. display: flex;
  8429. flex-direction: row;
  8430. align-items: center;
  8431. background: #67d37d;
  8432. color: #fff;
  8433. width: 210px;
  8434. margin: 20px 20px 0 0;
  8435. border-radius: 10px;
  8436. height: 70px;
  8437. position: relative;
  8438. }
  8439. .upCss {
  8440. display: flex;
  8441. flex-direction: row;
  8442. justify-content: flex-start;
  8443. }
  8444. .upCss>>>.el-icon-plus {
  8445. position: none !important;
  8446. width: 200px;
  8447. height: 100px;
  8448. display: flex;
  8449. flex-wrap: nowrap;
  8450. flex-direction: column;
  8451. align-items: center;
  8452. justify-content: center;
  8453. border: 1px dashed #ccc;
  8454. min-width: 78px;
  8455. min-height: 100px;
  8456. z-index: 999;
  8457. }
  8458. .upCss>>>.el-upload-list__item-name {
  8459. width: 100px;
  8460. white-space: nowrap;
  8461. overflow: hidden;
  8462. text-overflow: ellipsis;
  8463. }
  8464. .addStageImg {
  8465. min-width: 25px;
  8466. min-height: 25px;
  8467. width: 25px;
  8468. height: 25px;
  8469. cursor: pointer;
  8470. }
  8471. .addHW {
  8472. width: 28px;
  8473. height: 28px;
  8474. cursor: pointer;
  8475. }
  8476. .addStageImg>img,
  8477. .addHW>img {
  8478. width: 100%;
  8479. height: 100%;
  8480. }
  8481. .addNewPP>>>.el-dialog__body {
  8482. padding: 5px 20px;
  8483. }
  8484. .isHeight {
  8485. height: 680px;
  8486. }
  8487. .toolChoose {
  8488. display: flex;
  8489. /* width: 100%; */
  8490. flex-direction: row;
  8491. flex-wrap: wrap;
  8492. }
  8493. .tool {
  8494. display: flex;
  8495. flex-direction: column;
  8496. flex-wrap: nowrap;
  8497. width: fit-content;
  8498. margin: 10px 0 10px 0;
  8499. align-items: center;
  8500. }
  8501. .tool+.tool {
  8502. margin-right: 45px;
  8503. }
  8504. .whiteBIcon {
  8505. width: 80px;
  8506. cursor: pointer;
  8507. display: flex;
  8508. flex-direction: column;
  8509. flex-wrap: nowrap;
  8510. align-items: center;
  8511. }
  8512. .whiteBIcon>img,
  8513. .toolIcon>img,
  8514. .arrow>img {
  8515. width: 100%;
  8516. height: 100%;
  8517. }
  8518. .check img {
  8519. width: 20px;
  8520. height: 20px;
  8521. }
  8522. .whiteBIcon>img {
  8523. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8524. border-radius: 15px;
  8525. }
  8526. .check {
  8527. /* width: 20px;
  8528. height: 20px; */
  8529. cursor: pointer;
  8530. margin: 10px 0;
  8531. }
  8532. .checkDiv {
  8533. display: flex;
  8534. align-items: center;
  8535. }
  8536. .checkDiv span {
  8537. margin-left: 5px;
  8538. color: #858585;
  8539. }
  8540. .customWidth>>>.el-dialog {
  8541. min-width: 500px !important;
  8542. }
  8543. .a_addBox {
  8544. margin: 10px 0;
  8545. background: #fff;
  8546. padding: 15px;
  8547. max-height: 600px;
  8548. overflow: auto;
  8549. }
  8550. .a_add_box {
  8551. border-bottom: 2px solid #eee;
  8552. padding-bottom: 25px;
  8553. }
  8554. .a_add_head {
  8555. display: flex;
  8556. align-items: center;
  8557. justify-content: space-between;
  8558. margin: 10px 0 0 0;
  8559. font-size: 18px;
  8560. }
  8561. .a_add_checkType {
  8562. margin-top: 10px;
  8563. display: flex;
  8564. font-size: 16px;
  8565. align-items: center;
  8566. }
  8567. .a_add_checkType span {
  8568. box-sizing: border-box;
  8569. padding: 0 0 5px 0;
  8570. cursor: pointer;
  8571. }
  8572. .a_add_checkType span+span {
  8573. margin-left: 10px;
  8574. }
  8575. .a_add_checkType .active {
  8576. border-bottom: 2px solid #409eff;
  8577. color: #409eff;
  8578. }
  8579. .a_add_head .a_add_head_input {
  8580. width: 300px;
  8581. }
  8582. .a_add_head .a_add_head_div {
  8583. display: flex;
  8584. align-items: center;
  8585. justify-content: space-between;
  8586. }
  8587. .a_add_body {
  8588. display: flex;
  8589. /* align-items: center; */
  8590. align-items: flex-end;
  8591. }
  8592. .a_add_input {
  8593. display: flex;
  8594. align-items: center;
  8595. flex-wrap: wrap;
  8596. }
  8597. .a_add_input_choice {
  8598. flex-direction: column;
  8599. margin-right: 10px;
  8600. }
  8601. .a_add_input_choice>>>.el-radio {
  8602. display: flex;
  8603. align-items: center;
  8604. flex-direction: row-reverse;
  8605. margin: 30px 0 0 0;
  8606. }
  8607. .a_add_input_choice>>>.el-checkbox {
  8608. display: flex;
  8609. align-items: center;
  8610. flex-direction: row-reverse;
  8611. margin: 30px 0 0 0;
  8612. }
  8613. .width100 {
  8614. width: 100%;
  8615. }
  8616. .a_add_input .a_add_persent {
  8617. width: 100%;
  8618. }
  8619. .a_add_persent_div {
  8620. width: 100%;
  8621. display: flex;
  8622. align-items: center;
  8623. }
  8624. .a_add_persent_div span {
  8625. margin: 5px 0;
  8626. }
  8627. .a_add_persent_div span:nth-child(1) {
  8628. width: 30%;
  8629. }
  8630. .a_add_persent_div span:nth-child(2) {
  8631. width: 7%;
  8632. }
  8633. .a_add_persent_div span:nth-child(3) {
  8634. width: 40%;
  8635. }
  8636. .a_add_body_div {
  8637. display: flex;
  8638. align-items: center;
  8639. justify-content: center;
  8640. /* flex-direction: column; */
  8641. }
  8642. .all_choose {
  8643. display: flex;
  8644. flex-direction: row;
  8645. align-items: flex-start;
  8646. width: 100%;
  8647. }
  8648. .all_choose>span {
  8649. min-width: 100px;
  8650. display: block;
  8651. letter-spacing: 14px;
  8652. white-space: nowrap;
  8653. overflow: hidden;
  8654. text-overflow: ellipsis;
  8655. }
  8656. .all_choose>>>.el-checkbox-group {
  8657. display: flex;
  8658. flex-direction: row;
  8659. width: 100%;
  8660. flex-wrap: wrap;
  8661. align-content: center;
  8662. justify-content: flex-start;
  8663. align-items: center;
  8664. margin-top: 3px;
  8665. }
  8666. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8667. margin-bottom: 10px;
  8668. display: flex;
  8669. flex-direction: row;
  8670. align-items: center;
  8671. }
  8672. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8673. min-width: 80px;
  8674. overflow: hidden;
  8675. width: 80px;
  8676. text-overflow: ellipsis;
  8677. white-space: nowrap;
  8678. }
  8679. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8680. width: auto;
  8681. }
  8682. .choose>div:nth-child(3)>span {
  8683. /* letter-spacing: 0 !important; */
  8684. }
  8685. .choose {
  8686. display: flex;
  8687. flex-direction: column;
  8688. flex-wrap: nowrap;
  8689. height: 100%;
  8690. justify-content: space-evenly;
  8691. align-items: flex-start;
  8692. }
  8693. .both {
  8694. display: flex;
  8695. flex-direction: row;
  8696. flex-wrap: wrap;
  8697. width: 100%;
  8698. align-items: center;
  8699. justify-content: flex-start;
  8700. margin: 15px 0;
  8701. }
  8702. .notice>>>.el-dialog {
  8703. width: 500px !important;
  8704. text-align: center;
  8705. }
  8706. .notice>>>.el-button {
  8707. margin-top: 20px;
  8708. }
  8709. .whiteBg {
  8710. background: #fff;
  8711. border-radius: 10px;
  8712. }
  8713. .chooseWho {
  8714. display: flex;
  8715. width: 380px;
  8716. flex-direction: row;
  8717. flex-wrap: nowrap;
  8718. justify-content: space-between;
  8719. padding-bottom: 10px;
  8720. }
  8721. .chooseWho>div {
  8722. cursor: pointer;
  8723. padding-bottom: 10px;
  8724. font-weight: bold;
  8725. }
  8726. .isChooseActive {
  8727. color: #3e88f4;
  8728. border-bottom: 2px solid #2f80f3;
  8729. }
  8730. .toolSort {
  8731. display: flex;
  8732. flex-direction: row;
  8733. flex-wrap: wrap;
  8734. justify-content: flex-start;
  8735. align-items: flex-start;
  8736. }
  8737. .toolSort>div {
  8738. margin-right: 45px;
  8739. }
  8740. .tools {
  8741. width: 100%;
  8742. display: flex;
  8743. flex-direction: column;
  8744. flex-wrap: nowrap;
  8745. align-items: flex-start;
  8746. }
  8747. .leftTools,
  8748. .rightTools {
  8749. width: 50%;
  8750. }
  8751. .rightTools {
  8752. display: flex;
  8753. flex-direction: row;
  8754. flex-wrap: nowrap;
  8755. justify-content: space-around;
  8756. }
  8757. .firstToolList {
  8758. display: flex;
  8759. flex-direction: column;
  8760. flex-wrap: nowrap;
  8761. align-items: center;
  8762. }
  8763. .iconList {
  8764. display: flex;
  8765. flex-direction: row;
  8766. flex-wrap: wrap;
  8767. justify-content: flex-start;
  8768. align-items: center;
  8769. margin: 20px 0 5px 0;
  8770. width: 240px;
  8771. min-width: 240px;
  8772. }
  8773. .iconTool {
  8774. display: flex;
  8775. flex-direction: column;
  8776. flex-wrap: nowrap;
  8777. align-items: center;
  8778. justify-content: flex-start;
  8779. margin: 15px 10px;
  8780. }
  8781. .toolIcon {
  8782. width: 50px;
  8783. }
  8784. .taskBorder {
  8785. border: 1px solid #e1e1e1;
  8786. border-radius: 10px;
  8787. margin-top: 20px;
  8788. /* min-height: 1160px; */
  8789. position: relative;
  8790. background: #fbfbfb;
  8791. }
  8792. .smallTaskBorder {
  8793. height: 170px;
  8794. min-height: 170px !important;
  8795. overflow: hidden;
  8796. }
  8797. .taskBorder>div {
  8798. padding: 30px 0 10px 30px;
  8799. }
  8800. .addTaskBorder {
  8801. border: 2px solid #e1e1e1;
  8802. border-radius: 10px;
  8803. margin-top: 25px;
  8804. cursor: pointer;
  8805. }
  8806. .addTaskBorder>div {
  8807. margin: 0 auto;
  8808. display: flex;
  8809. align-items: center;
  8810. justify-content: center;
  8811. }
  8812. .addTaskBorder>div>img {
  8813. width: 100px;
  8814. }
  8815. .addTaskBorder>div>span {
  8816. font-size: 23px;
  8817. color: #dbdbdb;
  8818. }
  8819. .funBlock {
  8820. display: flex;
  8821. padding: 15px 0;
  8822. flex-direction: row;
  8823. justify-content: flex-end;
  8824. align-items: center;
  8825. position: absolute;
  8826. right: 15px;
  8827. bottom: 35px;
  8828. }
  8829. .fold {
  8830. display: flex;
  8831. margin: 0 10px;
  8832. flex-direction: row;
  8833. align-items: center;
  8834. cursor: pointer;
  8835. }
  8836. .arrow {
  8837. width: 15px;
  8838. height: 15px;
  8839. margin-left: 10px;
  8840. }
  8841. .addToolFun {
  8842. display: flex;
  8843. width: 150px;
  8844. flex-direction: row;
  8845. align-items: center;
  8846. justify-content: center;
  8847. border: 1px dashed;
  8848. border-radius: 5px;
  8849. height: 50px;
  8850. margin: 35px auto 0;
  8851. cursor: pointer;
  8852. }
  8853. .addToolImg {
  8854. width: 30px;
  8855. height: 30px;
  8856. margin-right: 20px;
  8857. }
  8858. .addToolsDia>>>.el-dialog__body {
  8859. padding: 20px;
  8860. }
  8861. .addToolsDia>>>.el-dialog__body>.toolChoose {
  8862. padding: 0;
  8863. }
  8864. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  8865. padding: 0;
  8866. border-bottom: none;
  8867. margin-bottom: 0;
  8868. }
  8869. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  8870. width: 100%;
  8871. }
  8872. .lineCss>>>.el-form-item__label {
  8873. width: auto !important;
  8874. }
  8875. .lineCss>>>.el-form-item__content {
  8876. margin-left: 50px !important;
  8877. }
  8878. .newSteps {
  8879. display: flex;
  8880. width: 100% !important;
  8881. height: 80px;
  8882. cursor: pointer;
  8883. margin: 10px 0;
  8884. border-radius: 10px;
  8885. flex-direction: row;
  8886. align-content: center;
  8887. justify-content: center;
  8888. align-items: center;
  8889. margin: 0 !important;
  8890. }
  8891. /* 评价样式 */
  8892. .elist_css {
  8893. padding-bottom: 60px !important;
  8894. }
  8895. .elist_title {
  8896. margin-bottom: 10px;
  8897. }
  8898. .elist_input {}
  8899. .elist_input_box {
  8900. display: flex;
  8901. align-items: center;
  8902. flex-wrap: wrap;
  8903. }
  8904. .elist_input_box+.elist_input_box {
  8905. margin-top: 30px;
  8906. }
  8907. .elist_input .elist_input_box input {
  8908. font: inherit;
  8909. color: currentColor;
  8910. /* width: 200px; */
  8911. max-width: 200px;
  8912. padding: 8px 14px;
  8913. display: block;
  8914. min-width: 0;
  8915. outline: none;
  8916. border: 1px solid rgba(0, 0, 0, 0.23);
  8917. border-radius: 4px;
  8918. box-sizing: border-box;
  8919. background: #fff;
  8920. margin: 0 20px 0 0;
  8921. }
  8922. .elist_input .elist_input_box span {
  8923. height: 36px;
  8924. line-height: 36px;
  8925. color: rgb(82, 82, 82);
  8926. min-width: 80px;
  8927. }
  8928. .elist_input .elist_input_box .remove {
  8929. height: 20px;
  8930. width: 20px;
  8931. background-size: 100% 100%;
  8932. background-position: unset;
  8933. margin-left: 5px;
  8934. }
  8935. .elist_input_box>>>.el-rate {
  8936. display: flex;
  8937. height: 36px;
  8938. align-items: center;
  8939. }
  8940. .elist_input_box .elist_inptu_text {
  8941. width: 100%;
  8942. display: flex;
  8943. align-items: center;
  8944. margin-top: 10px;
  8945. }
  8946. .elist_input_box .elist_inptu_text input {
  8947. /* width: 500px; */
  8948. width: 100%;
  8949. max-width: unset;
  8950. }
  8951. .elist_input_box>>>.el-rate__icon {
  8952. font-size: 24px;
  8953. }
  8954. .elist_btn {
  8955. margin-top: 10px;
  8956. }
  8957. .lineTitle {
  8958. margin-top: 15px;
  8959. width: 110px;
  8960. }
  8961. .courseTop {
  8962. display: flex;
  8963. flex-direction: row;
  8964. justify-content: flex-start;
  8965. align-items: center;
  8966. width: calc(100% - 40px);
  8967. padding: 20px 0;
  8968. margin: 0 auto;
  8969. }
  8970. .stepsNav {
  8971. display: flex;
  8972. flex-direction: row;
  8973. justify-content: flex-start;
  8974. align-items: center;
  8975. }
  8976. .stepsWord {
  8977. font-size: 18px;
  8978. color: #fff;
  8979. font-weight: bold;
  8980. margin-left: auto;
  8981. background: rgb(15, 126, 255);
  8982. border-radius: 5px;
  8983. padding: 3px 25px;
  8984. box-sizing: border-box;
  8985. }
  8986. .rightBox {
  8987. width: calc(100% - 40px);
  8988. background: rgb(255, 255, 255);
  8989. border-radius: 10px;
  8990. overflow: auto;
  8991. height: calc(100% - 160px);
  8992. position: relative;
  8993. margin: 0px auto 0;
  8994. }
  8995. .e_add_top {
  8996. display: flex;
  8997. justify-content: space-between;
  8998. padding: 20px 20px 0 20px;
  8999. border-radius: 3px;
  9000. background: #fff;
  9001. }
  9002. .e_add_title2 {
  9003. display: flex;
  9004. align-items: center;
  9005. }
  9006. .e_add_title2 span {
  9007. width: 40px;
  9008. }
  9009. .e_add_title {
  9010. display: flex;
  9011. align-items: center;
  9012. color: #b8b8b8;
  9013. font-size: 18px;
  9014. position: relative;
  9015. height: 40px;
  9016. }
  9017. .e_add_title span {
  9018. margin-right: 10px;
  9019. }
  9020. .e_add_title .el_input {
  9021. width: 300px;
  9022. }
  9023. .e_add_title>>>.el-input__inner {
  9024. width: 400px;
  9025. }
  9026. .e_add_btn {}
  9027. .e_add_content {
  9028. display: flex;
  9029. width: 100%;
  9030. }
  9031. .e_add_list {
  9032. background: #fff;
  9033. height: 500px;
  9034. width: 210px;
  9035. position: relative;
  9036. margin: 15px 5px 0 0;
  9037. flex-shrink: 0;
  9038. display: flex;
  9039. flex-direction: column;
  9040. }
  9041. .e_add_list_title {
  9042. font-size: 20px;
  9043. width: 100%;
  9044. box-sizing: border-box;
  9045. padding: 15px 40px;
  9046. text-align: center;
  9047. border-bottom: 1px solid #eaeaea;
  9048. position: relative;
  9049. display: flex;
  9050. align-items: center;
  9051. justify-content: center;
  9052. height: 57px;
  9053. background: #f6f6f6;
  9054. }
  9055. .e_add_list_title span {
  9056. overflow: hidden;
  9057. white-space: nowrap;
  9058. text-overflow: ellipsis;
  9059. }
  9060. .e_add_list_title img {
  9061. position: absolute;
  9062. right: 15px;
  9063. width: 25px;
  9064. cursor: pointer;
  9065. top: 50%;
  9066. transform: translateY(-50%);
  9067. }
  9068. .e_add_list_body {
  9069. height: calc(100% - 187px);
  9070. overflow: auto;
  9071. }
  9072. .e_add_list_child {
  9073. width: 100%;
  9074. display: flex;
  9075. align-items: center;
  9076. justify-content: center;
  9077. position: relative;
  9078. box-sizing: border-box;
  9079. padding: 15px 40px;
  9080. text-align: center;
  9081. }
  9082. .e_add_list_child span {
  9083. overflow: hidden;
  9084. white-space: nowrap;
  9085. text-overflow: ellipsis;
  9086. cursor: pointer;
  9087. }
  9088. .e_add_list_child img {
  9089. position: absolute;
  9090. right: 10px;
  9091. width: 21px;
  9092. cursor: pointer;
  9093. top: 50%;
  9094. transform: translateY(-50%);
  9095. }
  9096. .e_add_list_child+.e_add_list_child {
  9097. border-top: 1px solid #eaeaea;
  9098. }
  9099. .e_add_list_child .active {
  9100. color: #409eff;
  9101. }
  9102. .e_add_list_btn {
  9103. position: absolute;
  9104. bottom: 0;
  9105. height: 50px;
  9106. background: rgb(120, 120, 254);
  9107. width: 100%;
  9108. color: #fff;
  9109. font-size: 16px;
  9110. text-align: center;
  9111. line-height: 50px;
  9112. cursor: pointer;
  9113. }
  9114. .e_add_list_detail {
  9115. position: absolute;
  9116. bottom: 0;
  9117. height: 130px;
  9118. background: rgb(120, 120, 254);
  9119. width: 100%;
  9120. color: #fff;
  9121. font-size: 16px;
  9122. display: flex;
  9123. align-items: center;
  9124. justify-content: center;
  9125. }
  9126. .e_add_list_detail textarea {
  9127. height: 90%;
  9128. width: 95%;
  9129. border: none;
  9130. resize: none;
  9131. outline: none;
  9132. padding: 5px;
  9133. box-sizing: border-box;
  9134. }
  9135. .e_add_list_pbox {
  9136. width: 100%;
  9137. }
  9138. .e_add_list_pbox_title {
  9139. height: 50px;
  9140. background: #fff;
  9141. display: flex;
  9142. align-items: center;
  9143. width: 100%;
  9144. box-sizing: border-box;
  9145. padding: 0 20px;
  9146. flex-direction: row;
  9147. flex-wrap: wrap;
  9148. }
  9149. .type_title {
  9150. font-size: 18px;
  9151. font-weight: 700;
  9152. }
  9153. .type_content {
  9154. font-size: 16px;
  9155. margin-left: 30px;
  9156. }
  9157. .type_content span+span {
  9158. margin-left: 20px;
  9159. }
  9160. .type_content span {
  9161. cursor: pointer;
  9162. padding-bottom: 5px;
  9163. box-sizing: border-box;
  9164. }
  9165. .type_content .active {
  9166. color: #409eff;
  9167. border-bottom: 2px solid #409eff;
  9168. }
  9169. .e_add_list_pbox_content {
  9170. height: calc(100% - 50px);
  9171. display: flex;
  9172. align-items: center;
  9173. width: 100%;
  9174. background: #fff;
  9175. }
  9176. .mbCss {
  9177. width: 100%;
  9178. display: flex;
  9179. flex-direction: row;
  9180. flex-wrap: nowrap;
  9181. align-content: center;
  9182. align-items: flex-start;
  9183. justify-content: flex-start;
  9184. }
  9185. .pjCss {
  9186. /* width: 42%; */
  9187. width: calc(100% - 55%);
  9188. display: flex;
  9189. flex-direction: column;
  9190. flex-wrap: nowrap;
  9191. align-items: flex-start;
  9192. margin-top: 1.5%;
  9193. }
  9194. .e_box {
  9195. display: flex;
  9196. flex-wrap: wrap;
  9197. max-height: 500px;
  9198. align-items: flex-start;
  9199. overflow: auto;
  9200. }
  9201. .e_card {
  9202. border: 1px solid #ccc;
  9203. background: #fff;
  9204. margin-right: 20px;
  9205. width: 270px;
  9206. display: flex;
  9207. flex-direction: column;
  9208. align-items: center;
  9209. border-radius: 5px;
  9210. margin-top: 10px;
  9211. text-align: center;
  9212. }
  9213. .e_card_picture {
  9214. margin: 10px 0;
  9215. }
  9216. .e_card_picture>img {
  9217. width: 50px;
  9218. }
  9219. .e_card_name {
  9220. width: 100%;
  9221. padding: 0 10px;
  9222. box-sizing: border-box;
  9223. margin-bottom: 10px;
  9224. overflow: hidden;
  9225. text-overflow: ellipsis;
  9226. white-space: nowrap;
  9227. }
  9228. .e_card_time {
  9229. width: 100%;
  9230. padding: 0 10px;
  9231. box-sizing: border-box;
  9232. font-size: 15px;
  9233. color: #c3c3c3;
  9234. margin-bottom: 10px;
  9235. }
  9236. .e_card_btn {
  9237. height: 40px;
  9238. display: flex;
  9239. align-items: center;
  9240. width: 100%;
  9241. background: rgb(244, 244, 244);
  9242. }
  9243. .e_card_btn:hover {
  9244. background: rgb(221 221 221);
  9245. }
  9246. .e_card_btn span {
  9247. flex: 1 1 auto;
  9248. text-align: center;
  9249. cursor: pointer;
  9250. }
  9251. .addEva {
  9252. border: 1px solid #ccc;
  9253. background: #fff;
  9254. margin-right: 20px;
  9255. width: 270px;
  9256. height: 149px;
  9257. display: flex;
  9258. flex-direction: column;
  9259. align-items: center;
  9260. border-radius: 5px;
  9261. margin-top: 10px;
  9262. text-align: center;
  9263. cursor: pointer;
  9264. justify-content: center;
  9265. }
  9266. .addEva>img {
  9267. width: 50px;
  9268. object-fit: cover;
  9269. }
  9270. .uploadFm {
  9271. border: 1px dashed #ccc;
  9272. width: 202px;
  9273. height: 102px;
  9274. position: relative;
  9275. cursor: pointer;
  9276. }
  9277. .uploadFm>img {
  9278. position: absolute;
  9279. top: 25px;
  9280. left: 35%;
  9281. width: 50px;
  9282. }
  9283. .fileCss {
  9284. width: 100%;
  9285. display: flex;
  9286. flex-direction: row;
  9287. flex-wrap: nowrap;
  9288. justify-content: space-around;
  9289. align-items: center;
  9290. padding-top: 15px;
  9291. }
  9292. .sysPicBox {
  9293. display: flex;
  9294. flex-direction: row;
  9295. flex-wrap: wrap;
  9296. align-content: flex-start;
  9297. height: 435px;
  9298. overflow: auto;
  9299. }
  9300. .sysPic {
  9301. width: 200px;
  9302. height: 115px;
  9303. margin: 0 20px 20px 0;
  9304. cursor: pointer;
  9305. }
  9306. .sysPic>img,
  9307. .isSysPic>img,
  9308. .deletePic>img {
  9309. width: 100%;
  9310. height: 100%;
  9311. object-fit: cover;
  9312. }
  9313. .isSysPic {
  9314. width: 200px;
  9315. height: 115px;
  9316. position: relative;
  9317. }
  9318. .deletePic {
  9319. width: 20px;
  9320. height: 20px;
  9321. position: absolute;
  9322. top: 0;
  9323. right: 0;
  9324. cursor: pointer;
  9325. }
  9326. .select_box1 {}
  9327. .select_box1_img {
  9328. background: #fff;
  9329. border-radius: 5px;
  9330. padding: 15px;
  9331. box-sizing: border-box;
  9332. margin-bottom: 20px;
  9333. }
  9334. .select_box1_title {
  9335. padding: 0 0 15px 0;
  9336. border-bottom: 1px solid #eee;
  9337. margin-bottom: 15px;
  9338. }
  9339. .select_box1_title span:nth-child(1) {
  9340. font-size: 16px;
  9341. margin-right: 20px;
  9342. color: #000;
  9343. }
  9344. .select_box1_title span:nth-child(2) {
  9345. font-size: 14px;
  9346. color: rgb(112, 112, 112);
  9347. }
  9348. .select_box1_add_img {}
  9349. .select_box1_select {
  9350. background: #fff;
  9351. border-radius: 5px;
  9352. padding: 15px;
  9353. box-sizing: border-box;
  9354. }
  9355. .select_box2 {}
  9356. .select_box2_title {
  9357. background: #fff;
  9358. border-radius: 5px;
  9359. padding: 5px 10px;
  9360. box-sizing: border-box;
  9361. margin-bottom: 10px;
  9362. }
  9363. .select_box2_box {
  9364. display: flex;
  9365. height: 500px;
  9366. }
  9367. .select_box2_img {
  9368. width: calc(100% - 310px);
  9369. height: 100%;
  9370. overflow: auto;
  9371. background: #fff;
  9372. border-radius: 5px;
  9373. }
  9374. .select_box2_img img {
  9375. width: 100%;
  9376. }
  9377. .select_box2_answer {
  9378. background: #fff;
  9379. margin-left: 10px;
  9380. border-radius: 5px;
  9381. width: 300px;
  9382. overflow: auto;
  9383. height: 100%;
  9384. display: flex;
  9385. flex-direction: column;
  9386. align-items: center;
  9387. padding-top: 10px;
  9388. box-sizing: border-box;
  9389. }
  9390. .select_box2_answer_box {
  9391. margin: 0 0 10px 0;
  9392. width: 85%;
  9393. }
  9394. .rate_textarea {
  9395. font: inherit;
  9396. color: currentColor;
  9397. width: 100%;
  9398. padding: 8px 14px;
  9399. display: block;
  9400. min-width: 0;
  9401. outline: none;
  9402. border: 1px solid rgba(0, 0, 0, 0.23);
  9403. border-radius: 4px;
  9404. box-sizing: border-box;
  9405. background: #fff;
  9406. margin: 0 20px 0 0;
  9407. resize: none;
  9408. }
  9409. .select_answer_title {
  9410. text-align: left;
  9411. width: 85%;
  9412. margin-bottom: 10px;
  9413. font-size: 18px;
  9414. color: #8e8e8e;
  9415. }
  9416. .mask {
  9417. background-color: rgb(0 0 0 / 30%);
  9418. /* position: fixed; */
  9419. position: absolute;
  9420. top: 0;
  9421. left: 0;
  9422. width: 100%;
  9423. height: 100%;
  9424. z-index: 90;
  9425. display: flex;
  9426. align-items: center;
  9427. justify-content: center;
  9428. }
  9429. .progressBox {
  9430. width: 300px;
  9431. height: 150px;
  9432. background: #fff;
  9433. border-radius: 10px;
  9434. box-shadow: 0 0 6px 1px #bfbfbf;
  9435. display: flex;
  9436. align-items: center;
  9437. justify-content: center;
  9438. flex-direction: column;
  9439. position: relative;
  9440. color: #6c6c6c;
  9441. }
  9442. .progressBox>>>.el-progress-bar__outer {
  9443. background-color: #d1dfff !important;
  9444. }
  9445. .progressBox .lbox {
  9446. height: 50px;
  9447. font-size: 19px;
  9448. display: flex;
  9449. align-items: center;
  9450. color: #747474;
  9451. }
  9452. .progressBox .lbox img {
  9453. width: 40px;
  9454. margin-right: 20px;
  9455. }
  9456. .closeCss {
  9457. position: absolute;
  9458. top: 8px;
  9459. right: 8px;
  9460. cursor: pointer;
  9461. width: 20px;
  9462. height: 20px;
  9463. }
  9464. .closeCss>img {
  9465. width: 100%;
  9466. height: 100%;
  9467. }
  9468. .updateTips::after {
  9469. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9470. font-size: 14px;
  9471. margin-left: 20px;
  9472. font-weight: 400;
  9473. color: #ff3a3a;
  9474. }
  9475. .updateMask {
  9476. width: 100%;
  9477. z-index: 3;
  9478. top: 0;
  9479. position: absolute;
  9480. /* background-color: rgba(0,0,0,.3); */
  9481. }
  9482. .t_j_box {
  9483. display: flex;
  9484. }
  9485. .t_j_box span:nth-child(1) {
  9486. width: 15%;
  9487. overflow: hidden;
  9488. margin-right: 10px;
  9489. text-overflow: ellipsis;
  9490. white-space: nowrap;
  9491. }
  9492. .t_j_box span:nth-child(2) {
  9493. width: 30%;
  9494. overflow: hidden;
  9495. text-overflow: ellipsis;
  9496. margin-right: 10px;
  9497. }
  9498. .t_j_box span:nth-child(3) {
  9499. max-width: calc(55% - 20px);
  9500. overflow: hidden;
  9501. text-overflow: ellipsis;
  9502. }
  9503. .sentenBox {
  9504. background: #fff;
  9505. height: 600px;
  9506. overflow: auto;
  9507. background-image: url("../../../assets/icon/conSentences/csBg.png");
  9508. background-position: 102%;
  9509. background-repeat: no-repeat;
  9510. background-size: 60%;
  9511. }
  9512. .addSen {
  9513. background: #409efe;
  9514. width: 90px;
  9515. color: #fff;
  9516. height: 35px;
  9517. text-align: center;
  9518. line-height: 35px;
  9519. border-radius: 5px;
  9520. float: right;
  9521. margin: 10px 20px 0 0;
  9522. cursor: pointer;
  9523. }
  9524. .sentenTop {
  9525. display: flex;
  9526. flex-direction: row;
  9527. flex-wrap: nowrap;
  9528. align-items: center;
  9529. }
  9530. .sentenTop>div:nth-child(2) {
  9531. width: 300px;
  9532. margin: 0 15px;
  9533. }
  9534. .sentenTop>div:nth-child(3) {
  9535. background: #409efe;
  9536. color: #fff;
  9537. width: 65px;
  9538. height: 35px;
  9539. text-align: center;
  9540. line-height: 35px;
  9541. border-radius: 5px;
  9542. cursor: pointer;
  9543. }
  9544. .cardList {
  9545. padding: 30px 0 20px 0;
  9546. display: flex;
  9547. flex-direction: row;
  9548. flex-wrap: wrap;
  9549. align-items: center;
  9550. box-sizing: border-box;
  9551. border-bottom: 1px solid #f4f4f4;
  9552. width: 98%;
  9553. margin: 0 auto;
  9554. }
  9555. .cardBox {
  9556. display: flex;
  9557. flex-direction: row;
  9558. flex-wrap: wrap;
  9559. align-items: center;
  9560. align-content: center;
  9561. }
  9562. .isCard,
  9563. .isCard1 {
  9564. width: 140px;
  9565. height: 65px;
  9566. text-align: center;
  9567. line-height: 65px;
  9568. font-size: 20px;
  9569. cursor: pointer;
  9570. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  9571. background-size: cover;
  9572. position: relative;
  9573. z-index: 99;
  9574. }
  9575. .isCard1 {
  9576. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  9577. }
  9578. .isCard:hover .deleteWord {
  9579. display: block;
  9580. }
  9581. .isCard>div:nth-child(1),
  9582. .isCard1>div:nth-child(1) {
  9583. white-space: nowrap;
  9584. overflow: hidden;
  9585. text-overflow: ellipsis;
  9586. width: 80%;
  9587. margin: 0 auto;
  9588. }
  9589. .card {
  9590. width: 140px;
  9591. height: 65px;
  9592. }
  9593. .card>img {
  9594. width: 100%;
  9595. height: 100%;
  9596. }
  9597. .rightCardBox {
  9598. margin: 10px 0 0 10px;
  9599. }
  9600. .rightCardBox>div:nth-child(1) {
  9601. margin-bottom: 10px;
  9602. }
  9603. .cardCss {
  9604. display: flex;
  9605. flex-direction: column;
  9606. flex-wrap: nowrap;
  9607. align-items: center;
  9608. border-bottom: 3px solid #b4c3d3;
  9609. padding: 0 0 5px 0;
  9610. margin-right: 10px;
  9611. }
  9612. .cardCss>div:nth-child(2) {
  9613. background: #5b7b9d;
  9614. color: #fff;
  9615. width: 20px;
  9616. height: 20px;
  9617. border-radius: 50%;
  9618. text-align: center;
  9619. line-height: 20px;
  9620. }
  9621. .sentenTopBox {
  9622. display: flex;
  9623. flex-direction: row;
  9624. flex-wrap: nowrap;
  9625. align-items: center;
  9626. justify-content: space-between;
  9627. padding: 55px 0 0 20px;
  9628. box-sizing: border-box;
  9629. width: 85%;
  9630. }
  9631. .stepsBottom {
  9632. width: 85%;
  9633. margin-bottom: 20px;
  9634. box-shadow: 0 0 10px 10px #f7f7f7;
  9635. background: #f7f7f7;
  9636. border-radius: 10px;
  9637. overflow: hidden;
  9638. }
  9639. .course_left {
  9640. width: 300px;
  9641. height: auto;
  9642. position: relative;
  9643. }
  9644. .stepsBottom2 {
  9645. width: 300px;
  9646. margin: 20px 0;
  9647. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  9648. /* background: #f7f7f7; */
  9649. border-radius: 10px;
  9650. overflow: hidden;
  9651. height: fit-content;
  9652. position: relative;
  9653. /* transition: all .5s; */
  9654. }
  9655. .navTop {
  9656. background: #53749b;
  9657. color: #fff;
  9658. height: 40px;
  9659. line-height: 40px;
  9660. padding-left: 15px;
  9661. font-size: 18px;
  9662. }
  9663. .navBottom {
  9664. background: #6b91b7;
  9665. height: 300px;
  9666. overflow: auto;
  9667. }
  9668. .navTask {
  9669. display: flex;
  9670. flex-direction: row;
  9671. flex-wrap: nowrap;
  9672. align-items: center;
  9673. padding: 5px 5px 5px 0;
  9674. cursor: pointer;
  9675. background: #ffffff;
  9676. width: 95%;
  9677. margin: 10px auto;
  9678. box-sizing: border-box;
  9679. border-radius: 5px;
  9680. }
  9681. .isNavTask {
  9682. /* background: #7e9ebd; */
  9683. }
  9684. .navTask>div:nth-child(1) {
  9685. background: #468fe4;
  9686. color: #fff;
  9687. width: 65px;
  9688. height: 25px;
  9689. line-height: 25px;
  9690. text-align: center;
  9691. border-radius: 5px;
  9692. margin: 0 10px 0 5px;
  9693. font-size: 14px;
  9694. }
  9695. .navTask>div:nth-child(2) {
  9696. /* color: #fff; */
  9697. /* max-width: 130px; */
  9698. width: 130px;
  9699. white-space: nowrap;
  9700. overflow: hidden;
  9701. text-overflow: ellipsis;
  9702. font-size: 15px;
  9703. }
  9704. .groupBox {}
  9705. .groupContent+.groupContent {
  9706. margin-top: 30px;
  9707. }
  9708. .groupTitle {
  9709. font-size: 24px;
  9710. color: rgb(80, 80, 80);
  9711. margin-bottom: 20px;
  9712. }
  9713. .groupName {
  9714. display: flex;
  9715. align-items: center;
  9716. }
  9717. .groupn {
  9718. font-size: 15px;
  9719. margin-right: 10px;
  9720. }
  9721. .groupName+.groupName {
  9722. margin-top: 15px;
  9723. }
  9724. .groupBtn {
  9725. margin-left: 10px;
  9726. }
  9727. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  9728. text-align: left;
  9729. }
  9730. .radioBox>div {
  9731. margin: 10px 0 0 10px;
  9732. }
  9733. .radioBox>>>.el-radio__input,
  9734. .radioBox>>>.el-checkbox__inner {
  9735. margin-left: 10px;
  9736. }
  9737. .radioBox>>>.el-radio__label,
  9738. .radioBox>>>.el-checkbox__label {
  9739. display: flex;
  9740. align-items: center;
  9741. }
  9742. .inImg {
  9743. width: 50px;
  9744. }
  9745. .inImg>img {
  9746. width: 100%;
  9747. height: 100%;
  9748. object-fit: cover;
  9749. }
  9750. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  9751. height: auto;
  9752. }
  9753. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  9754. width: 200px;
  9755. height: 100px;
  9756. object-fit: contain;
  9757. background: unset;
  9758. }
  9759. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  9760. display: none;
  9761. }
  9762. .tcMember+.tcMember::before {
  9763. content: "、";
  9764. }
  9765. .xzUpImg {
  9766. width: 25px;
  9767. height: 25px;
  9768. cursor: pointer;
  9769. }
  9770. .xzUpImg>img {
  9771. width: 100%;
  9772. height: 100%;
  9773. }
  9774. .closeCss {
  9775. position: absolute;
  9776. top: 8px;
  9777. right: 8px;
  9778. cursor: pointer;
  9779. width: 20px;
  9780. height: 20px;
  9781. }
  9782. .closeCss>img {
  9783. width: 100%;
  9784. height: 100%;
  9785. }
  9786. .moveBtn {
  9787. display: flex;
  9788. flex-direction: column;
  9789. align-items: flex-end;
  9790. width: 40px;
  9791. }
  9792. .timuUpImg {
  9793. display: flex;
  9794. flex-direction: row;
  9795. align-items: center;
  9796. }
  9797. .timuUpImg>div:nth-child(1) {
  9798. margin-right: 10px;
  9799. }
  9800. .timuImgBox {
  9801. margin: 10px 0;
  9802. display: flex;
  9803. flex-direction: column;
  9804. flex-wrap: wrap;
  9805. align-items: flex-start;
  9806. }
  9807. .timuImg {
  9808. width: 100px;
  9809. margin: 5px 0;
  9810. cursor: pointer;
  9811. position: relative;
  9812. }
  9813. .timuImg:hover .deleteWord {
  9814. display: block;
  9815. }
  9816. .deleteWord {
  9817. width: 25px;
  9818. height: 25px;
  9819. position: absolute;
  9820. right: -5px;
  9821. top: -5px;
  9822. cursor: pointer;
  9823. display: none;
  9824. }
  9825. .timuImg>img,
  9826. .deleteWord>img {
  9827. width: 100%;
  9828. height: 100%;
  9829. object-fit: cover;
  9830. }
  9831. .e_add_delete {
  9832. cursor: pointer;
  9833. margin-left: 10px;
  9834. }
  9835. .pType_box {
  9836. margin-top: 30px;
  9837. align-items: flex-end;
  9838. }
  9839. .noneBox {
  9840. height: 100%;
  9841. width: 100%;
  9842. display: flex;
  9843. align-items: center;
  9844. justify-content: center;
  9845. margin-top: 150px;
  9846. }
  9847. .noneBox>img {
  9848. width: 300px;
  9849. }
  9850. </style>