addCourse.vue 346 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320
  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 == 13 ||
  298. item1.type == 6 ||
  299. item1.type == 7
  300. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  301. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  302. </div>
  303. <div class="chapter_upload_ic" style="
  304. cursor: pointer;
  305. position: absolute;
  306. width: 45px;
  307. right: 0;
  308. top: 0;
  309. ">
  310. <div class="chapter_upload_ic_l"></div>
  311. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  312. $event,
  313. unitIndex,
  314. index,
  315. index1,
  316. itemTaskIndex
  317. )
  318. ">
  319. <div></div>
  320. </div>
  321. </div>
  322. <div class="chapter_upload_n">
  323. <input v-if="item1.type == 2 ||
  324. item1.type == 3 ||
  325. item1.type == 12 ||
  326. item1.type == 13 ||
  327. item1.type == 7
  328. " :placeholder="item1.name" @change="updataVideoT(
  329. $event,
  330. unitIndex,
  331. chapterIndex,
  332. index1
  333. )
  334. " style="
  335. border: none;
  336. outline: none;
  337. width: 80%;
  338. minwidth: 215px;
  339. z-index: 99;
  340. font-size: 14px;
  341. white-space: nowrap;
  342. overflow: hidden;
  343. text-overflow: ellipsis;
  344. " />
  345. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  346. border: none;
  347. outline: none;
  348. width: 80%;
  349. white-space: nowrap;
  350. overflow: hidden;
  351. text-overflow: ellipsis;
  352. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  353. <input :placeholder="item1.title ? item1.title : '链接'
  354. " v-if="item1.type == 8" style="
  355. border: none;
  356. outline: none;
  357. width: 80%;
  358. white-space: nowrap;
  359. overflow: hidden;
  360. text-overflow: ellipsis;
  361. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  362. <div class="chapter_upload_ud" style="z-index: 99">
  363. <div class="chapter_upload_up" @click="upCd(
  364. $event,
  365. unitIndex,
  366. index,
  367. itemTaskIndex,
  368. index1
  369. )
  370. "></div>
  371. <div class="chapter_upload_down" @click="downCd(
  372. $event,
  373. unitIndex,
  374. index,
  375. itemTaskIndex,
  376. index1
  377. )
  378. "></div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <div class="add_info_box">
  386. <button class="info_btn" @click="addImg($event)">
  387. 添加文件
  388. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  389. " />
  390. </button>
  391. <!-- <button class="info_btn" @click="addImg($event)">
  392. 添加视频
  393. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  394. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  395. " />
  396. </button>
  397. <button class="info_btn" @click="addImg($event)">
  398. 添加文档
  399. <input type="file"
  400. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  401. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  402. " />
  403. </button> -->
  404. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  405. 添加图文
  406. </button>
  407. <button class="info_btn" @click="openLine(itemTaskIndex)">
  408. 添加链接
  409. </button>
  410. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  411. 嵌入代码
  412. </button>
  413. <button class="info_btn" @click="openSource(itemTaskIndex)">
  414. 添加资源
  415. </button>
  416. <!-- <button class="info_btn" @click="addImg($event)">
  417. 其他附件
  418. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  419. " />
  420. </button> -->
  421. </div>
  422. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  423. itemTaskIndex
  424. ].proVisible
  425. " class="mask">
  426. <div class="progressBox">
  427. <!-- <div id="closePro" class="closeCss">
  428. <img src="../../../../assets/icon/close.png" alt />
  429. </div> -->
  430. <div class="lbox">
  431. <img src="../../../assets/loading.gif" />上传中,请稍后
  432. </div>
  433. <div style="margin-bottom: 10px">
  434. <span>{{
  435. unitJson[unitIndex].chapterInfo[0].taskJson[
  436. itemTaskIndex
  437. ].isFinishSize
  438. }}M</span>
  439. /
  440. <span>{{
  441. unitJson[unitIndex].chapterInfo[0].taskJson[
  442. itemTaskIndex
  443. ].isAllSize
  444. }}M</span>
  445. </div>
  446. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  447. itemTaskIndex
  448. ].progress
  449. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  450. itemTaskIndex
  451. ].progress
  452. : 0
  453. " style="width: 80%"></el-progress>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  459. <div>
  460. <img src="../../../assets/icon/addHw.png" alt />
  461. <span>添加任务</span>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. </div>
  468. </div>
  469. <div class="rightBox" v-if="this.steps == 2">
  470. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  471. <div class="right_title" style="border: none; margin: 0; padding: 0">
  472. 请选择合适的课程模板
  473. </div>
  474. <div class="wordbox">
  475. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  476. <div class="wordPic">
  477. <img src="../../../assets/icon/wordMub.png" alt />
  478. </div>
  479. <div style="
  480. margin-top: 10px;
  481. line-height: 19px;
  482. overflow: hidden;
  483. text-overflow: ellipsis;
  484. white-space: nowrap;
  485. padding: 0 20px;
  486. ">
  487. {{ aa.title }}
  488. </div>
  489. </div>
  490. <div class="wordTeacher" @click="checkTemplate2()">
  491. <div class="wordPic">
  492. <img src="../../../assets/icon/wordMub.png" alt />
  493. </div>
  494. <div style="
  495. margin-top: 10px;
  496. line-height: 19px;
  497. overflow: hidden;
  498. text-overflow: ellipsis;
  499. white-space: nowrap;
  500. padding: 0 20px;
  501. ">
  502. 任务模式
  503. </div>
  504. </div>
  505. <div class="wordTeacher" @click="checkTemplate3()">
  506. <div class="wordPic">
  507. <img src="../../../assets/icon/wordMub.png" alt />
  508. </div>
  509. <div style="
  510. margin-top: 10px;
  511. line-height: 19px;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. white-space: nowrap;
  515. padding: 0 20px;
  516. ">
  517. 简易模式
  518. </div>
  519. </div>
  520. <div class="wordTeacher" @click="pasteStage()">
  521. <div class="wordPic">
  522. <img src="../../../assets/icon/wordMub.png" alt />
  523. </div>
  524. <div style="
  525. margin-top: 10px;
  526. line-height: 19px;
  527. overflow: hidden;
  528. text-overflow: ellipsis;
  529. white-space: nowrap;
  530. padding: 0 20px;
  531. ">
  532. 智能粘贴模式
  533. </div>
  534. </div>
  535. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  536. <div class="wordPic">
  537. <img src="../../../assets/icon/wordMub.png" alt />
  538. </div>
  539. <div style="
  540. margin-top: 10px;
  541. line-height: 19px;
  542. overflow: hidden;
  543. text-overflow: ellipsis;
  544. white-space: nowrap;
  545. padding: 0 20px;
  546. ">
  547. 未来小学课程设计
  548. </div>
  549. </div> -->
  550. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  551. <div class="wordPic">
  552. <img src="../../../assets/icon/wordMub.png" alt />
  553. </div>
  554. <div style="
  555. margin-top: 10px;
  556. line-height: 19px;
  557. overflow: hidden;
  558. text-overflow: ellipsis;
  559. white-space: nowrap;
  560. padding: 0 20px;
  561. ">
  562. 我的课程
  563. </div>
  564. </div> -->
  565. </div>
  566. </div>
  567. </div>
  568. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  569. <div class="basic_box">
  570. <div style="
  571. display: flex;
  572. flex-direction: row;
  573. align-items: center;
  574. position: sticky;
  575. top: 0;
  576. background: #fff;
  577. z-index: 99;
  578. width: 100%;
  579. padding: 0 20px 0 20px;
  580. box-sizing: border-box;
  581. ">
  582. <div class="cru_selectBox">
  583. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  584. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  585. <!-- item.dyName ? item.dyName : -->
  586. {{
  587. "第" + (index + 1) + "阶段"
  588. }}
  589. </div>
  590. <img src="../../../assets/line.png" class="cru_line" :style="{
  591. left: offsetLetfPx + 'px',
  592. }" />
  593. </div>
  594. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  595. !(unitJson[unitJson.length - 1].easy == 6)
  596. ">
  597. <img src="../../../assets/icon/add.png" alt />
  598. </div>
  599. </div>
  600. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  601. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  602. <div>
  603. <div class="chapter_contentbox">
  604. <div>第{{ unitIndex + 1 }}阶段</div>
  605. <div>
  606. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  607. </div>
  608. <div v-if="unitJson.length > 1 &&
  609. !(unitJson[unitJson.length - 1].easy == 4) &&
  610. !(unitJson[unitJson.length - 1].easy == 6)
  611. " @click="deleteUnit(unitIndex)"></div>
  612. </div>
  613. </div>
  614. <div v-if="!unitJson[unitIndex].easy" style="
  615. margin: 50px 0px 10px;
  616. font-size: 1.5em;
  617. font-weight: 700;
  618. color: #0f7eff;
  619. ">
  620. 添加任务
  621. </div>
  622. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  623. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  624. <div v-if="unitJson[unitIndex].easy != 1">
  625. <div :style="{
  626. marginBottom:
  627. unitJson[unitIndex].easy == 3 ||
  628. (unitJson[unitIndex].easy == 5 &&
  629. itemTask.taskType == 1)
  630. ? '75px'
  631. : '0',
  632. }">
  633. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  634. 任务{{ itemTaskIndex + 1 }}
  635. </div>
  636. <div class="chapter_contentbox" style="
  637. flex-direction: row;
  638. justify-content: flex-start;
  639. align-items: center;
  640. ">
  641. <div style="
  642. border-left: 6px solid #5699e8;
  643. height: 20px;
  644. padding-left: 10px;
  645. line-height: 22px;
  646. ">
  647. 任务名称
  648. </div>
  649. <div>
  650. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  651. itemTaskIndex
  652. ].task
  653. " />
  654. </div>
  655. <div class="remove" v-if="item.taskJson.length > 1 &&
  656. (!unitJson[unitIndex].easy ||
  657. unitJson[unitIndex].easy == 6)
  658. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  659. </div>
  660. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  661. display: flex;
  662. margin: 0 0 20px 0;
  663. flex-direction: row;
  664. justify-content: flex-start;
  665. align-items: center;
  666. width: 70.5% !important;
  667. padding-top: 30px;
  668. ">
  669. <div class="lineTitle">任务描述</div>
  670. <div class="line"></div>
  671. </div>
  672. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  673. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  674. itemTaskIndex
  675. ].taskDetail
  676. " @change="change"></editor-bar>
  677. <!-- <textarea
  678. rows="6"
  679. class="binfo_input"
  680. placeholder="请输入任务描述"
  681. cols
  682. style="width: 70.5% !important; height: 120px"
  683. v-model="
  684. unitJson[unitIndex].chapterInfo[0].taskJson[
  685. itemTaskIndex
  686. ].taskDetail
  687. "
  688. ></textarea>-->
  689. </div>
  690. </div>
  691. </div>
  692. <div v-if="!unitJson[unitIndex].easy ||
  693. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  694. " class="basic_box" style="
  695. margin: 0;
  696. min-height: 0;
  697. width: 90% !important;
  698. padding-top: 10px !important;
  699. ">
  700. <div style="
  701. display: flex;
  702. margin: 0 0 20px 0;
  703. flex-direction: row;
  704. justify-content: flex-start;
  705. align-items: center;
  706. ">
  707. <div class="lineTitle">学习内容</div>
  708. <div class="line"></div>
  709. </div>
  710. <div>
  711. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  712. itemTask.chapterData.length == 0
  713. " style="height: 185px"></div>
  714. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  715. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  716. @click="getChapterData(
  717. $event,
  718. unitIndex,
  719. index,
  720. index1,
  721. item1.type
  722. )
  723. ">
  724. <div class="chapter_upload_t" style="width: 100%"></div>
  725. <div class="chapter_upload_o" style="
  726. position: relative;
  727. display: flex;
  728. align-items: center;
  729. ">
  730. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  731. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  732. <div v-if="item1.type == 3 ||
  733. item1.type == 12 ||
  734. item1.type == 13 ||
  735. item1.type == 6 ||
  736. item1.type == 7
  737. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  738. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  739. </div>
  740. <div class="chapter_upload_ic" style="
  741. cursor: pointer;
  742. position: absolute;
  743. width: 45px;
  744. right: 0;
  745. top: 0;
  746. ">
  747. <div class="chapter_upload_ic_l"></div>
  748. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  749. $event,
  750. unitIndex,
  751. index,
  752. index1,
  753. itemTaskIndex
  754. )
  755. ">
  756. <div></div>
  757. </div>
  758. </div>
  759. <div class="chapter_upload_n">
  760. <input v-if="item1.type == 2 ||
  761. item1.type == 3 ||
  762. item1.type == 12 ||
  763. item1.type == 13 ||
  764. item1.type == 7
  765. " :placeholder="item1.name" @change="updataVideoT(
  766. $event,
  767. unitIndex,
  768. chapterIndex,
  769. index1
  770. )
  771. " style="
  772. border: none;
  773. outline: none;
  774. width: 80%;
  775. minwidth: 215px;
  776. z-index: 99;
  777. font-size: 14px;
  778. white-space: nowrap;
  779. overflow: hidden;
  780. text-overflow: ellipsis;
  781. " />
  782. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  783. border: none;
  784. outline: none;
  785. width: 80%;
  786. white-space: nowrap;
  787. overflow: hidden;
  788. text-overflow: ellipsis;
  789. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  790. <input :placeholder="item1.title ? item1.title : '链接'
  791. " v-if="item1.type == 8" style="
  792. border: none;
  793. outline: none;
  794. width: 80%;
  795. white-space: nowrap;
  796. overflow: hidden;
  797. text-overflow: ellipsis;
  798. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  799. <div class="chapter_upload_ud" style="z-index: 99">
  800. <div class="chapter_upload_up" @click="upCd(
  801. $event,
  802. unitIndex,
  803. index,
  804. itemTaskIndex,
  805. index1
  806. )
  807. "></div>
  808. <div class="chapter_upload_down" @click="downCd(
  809. $event,
  810. unitIndex,
  811. index,
  812. itemTaskIndex,
  813. index1
  814. )
  815. "></div>
  816. </div>
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. <div class="add_info_box">
  823. <button class="info_btn" @click="addImg($event)">
  824. 添加文件
  825. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  826. " />
  827. </button>
  828. <!-- <button class="info_btn" @click="addImg($event)">
  829. 添加视频
  830. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  831. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  832. " />
  833. </button>
  834. <button class="info_btn" @click="addImg($event)">
  835. 添加文档
  836. <input type="file"
  837. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  838. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  839. " />
  840. </button> -->
  841. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  842. 添加图文
  843. </button>
  844. <button class="info_btn" @click="openLine(itemTaskIndex)">
  845. 添加链接
  846. </button>
  847. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  848. 嵌入代码
  849. </button>
  850. <button class="info_btn" @click="openSource(itemTaskIndex)">
  851. 添加资源
  852. </button>
  853. <!-- <button class="info_btn" @click="addImg($event)">
  854. 其他附件
  855. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  856. " />
  857. </button> -->
  858. </div>
  859. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  860. itemTaskIndex
  861. ].proVisible
  862. " class="mask">
  863. <div class="progressBox">
  864. <!-- <div id="closePro" class="closeCss">
  865. <img src="../../../../assets/icon/close.png" alt />
  866. </div> -->
  867. <div class="lbox">
  868. <img src="../../../assets/loading.gif" />上传中,请稍后
  869. </div>
  870. <div style="margin-bottom: 10px">
  871. <span>{{
  872. unitJson[unitIndex].chapterInfo[0].taskJson[
  873. itemTaskIndex
  874. ].isFinishSize
  875. }}M</span>
  876. /
  877. <span>{{
  878. unitJson[unitIndex].chapterInfo[0].taskJson[
  879. itemTaskIndex
  880. ].isAllSize
  881. }}M</span>
  882. </div>
  883. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  884. itemTaskIndex
  885. ].progress
  886. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  887. itemTaskIndex
  888. ].progress
  889. : 0
  890. " style="width: 80%"></el-progress>
  891. </div>
  892. </div>
  893. </div>
  894. <div v-if="unitJson[unitIndex].easy == 1 ||
  895. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  896. " class="basic_box" style="
  897. margin: 0 auto;
  898. min-height: 0;
  899. width: 95% !important;
  900. padding: 20px 10px 10px;
  901. ">
  902. <div>
  903. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  904. itemTask.chapterData.length == 0
  905. " style="height: 185px"></div>
  906. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  907. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  908. <div class="chapter_upload" @click="getChapterData(
  909. $event,
  910. unitIndex,
  911. index,
  912. index1,
  913. item1.type
  914. )
  915. ">
  916. <div class="chapter_upload_t" style="width: 100%"></div>
  917. <div class="chapter_upload_o" style="
  918. position: relative;
  919. display: flex;
  920. align-items: center;
  921. ">
  922. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  923. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  924. <div v-if="item1.type == 3 ||
  925. item1.type == 6 ||
  926. item1.type == 7
  927. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  928. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  929. </div>
  930. <div class="chapter_upload_ic" style="
  931. cursor: pointer;
  932. position: absolute;
  933. width: 45px;
  934. right: 0;
  935. top: 0;
  936. ">
  937. <div class="chapter_upload_ic_l"></div>
  938. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  939. $event,
  940. unitIndex,
  941. index,
  942. index1,
  943. itemTaskIndex
  944. )
  945. ">
  946. <div></div>
  947. </div>
  948. </div>
  949. <div class="chapter_upload_n">
  950. <span style="
  951. font-size: 14px;
  952. color: rgb(109, 109, 109);
  953. height: 14px;
  954. line-height: 12px;
  955. " v-if="item1.type == 2 ||
  956. item1.type == 3 ||
  957. item1.type == 7
  958. ">{{ item1.text }}-</span>
  959. <input v-if="item1.type == 2 ||
  960. item1.type == 3 ||
  961. item1.type == 7
  962. " :placeholder="item1.name" @change="updataVideoT(
  963. $event,
  964. unitIndex,
  965. chapterIndex,
  966. index1
  967. )
  968. " style="
  969. border: none;
  970. outline: none;
  971. width: 80%;
  972. minwidth: 215px;
  973. z-index: 99;
  974. font-size: 14px;
  975. white-space: nowrap;
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. " />
  979. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  980. border: none;
  981. outline: none;
  982. width: 80%;
  983. white-space: nowrap;
  984. overflow: hidden;
  985. text-overflow: ellipsis;
  986. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  987. <input :placeholder="item1.title ? item1.title : '链接'
  988. " v-if="item1.type == 8" style="
  989. border: none;
  990. outline: none;
  991. width: 80%;
  992. white-space: nowrap;
  993. overflow: hidden;
  994. text-overflow: ellipsis;
  995. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  996. <div class="chapter_upload_ud" style="z-index: 99">
  997. <div class="chapter_upload_up" @click="upCd(
  998. $event,
  999. unitIndex,
  1000. index,
  1001. itemTaskIndex,
  1002. index1
  1003. )
  1004. "></div>
  1005. <div class="chapter_upload_down" @click="downCd(
  1006. $event,
  1007. unitIndex,
  1008. index,
  1009. itemTaskIndex,
  1010. index1
  1011. )
  1012. "></div>
  1013. </div>
  1014. </div>
  1015. </div>
  1016. </div>
  1017. </div>
  1018. </div>
  1019. </div>
  1020. <div class="add_info_box" style="margin: 10px 0 0">
  1021. <button class="info_btn" @click="addImg($event)">
  1022. <span style="color: red">*</span>
  1023. 教学设计
  1024. <input type="file"
  1025. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1026. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1027. $event,
  1028. unitIndex,
  1029. 3,
  1030. itemTaskIndex,
  1031. '教学设计'
  1032. )
  1033. " />
  1034. </button>
  1035. <button class="info_btn" @click="addImg($event)">
  1036. <span style="color: red">*</span>
  1037. 教学课件
  1038. <input type="file"
  1039. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1040. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1041. $event,
  1042. unitIndex,
  1043. 3,
  1044. itemTaskIndex,
  1045. '教学课件'
  1046. )
  1047. " />
  1048. </button>
  1049. <button class="info_btn" @click="addImg($event)">
  1050. 教学视频
  1051. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1052. v-if="inputShow" @change="beforeUpload3(
  1053. $event,
  1054. unitIndex,
  1055. 2,
  1056. itemTaskIndex,
  1057. '教学视频'
  1058. )
  1059. " />
  1060. </button>
  1061. <button class="info_btn" @click="addImg($event)">
  1062. 教学音频
  1063. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="beforeUpload3(
  1064. $event,
  1065. unitIndex,
  1066. 2,
  1067. itemTaskIndex,
  1068. '教学音频'
  1069. )
  1070. " />
  1071. </button>
  1072. <button class="info_btn" @click="addImg($event)">
  1073. 学习单
  1074. <input type="file"
  1075. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1076. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1077. $event,
  1078. unitIndex,
  1079. 3,
  1080. itemTaskIndex,
  1081. '学习单'
  1082. )
  1083. " />
  1084. </button>
  1085. </div>
  1086. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1087. itemTaskIndex
  1088. ].proVisible
  1089. " class="mask">
  1090. <div class="progressBox">
  1091. <!-- <div id="closePro" class="closeCss">
  1092. <img src="../../../../assets/icon/close.png" alt />
  1093. </div> -->
  1094. <div class="lbox">
  1095. <img src="../../../assets/loading.gif" />上传中,请稍后
  1096. </div>
  1097. <div style="margin-bottom: 10px">
  1098. <span>{{
  1099. unitJson[unitIndex].chapterInfo[0].taskJson[
  1100. itemTaskIndex
  1101. ].isFinishSize
  1102. }}M</span>
  1103. /
  1104. <span>{{
  1105. unitJson[unitIndex].chapterInfo[0].taskJson[
  1106. itemTaskIndex
  1107. ].isAllSize
  1108. }}M</span>
  1109. </div>
  1110. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1111. itemTaskIndex
  1112. ].progress
  1113. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1114. itemTaskIndex
  1115. ].progress
  1116. : 0
  1117. " style="width: 80%"></el-progress>
  1118. </div>
  1119. </div>
  1120. </div>
  1121. <div v-if="unitJson[unitIndex].easy != 3 &&
  1122. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1123. " style="
  1124. flex-direction: row;
  1125. justify-content: flex-start;
  1126. align-items: center;
  1127. padding: 0 0 0 30px;
  1128. paddint-top: 10px !important;
  1129. ">
  1130. <div style="
  1131. display: flex;
  1132. flex-direction: row;
  1133. align-items: center;
  1134. margin-bottom: 20px;
  1135. ">
  1136. <div class="lineTitle">
  1137. {{
  1138. !unitJson[unitIndex].easy ||
  1139. unitJson[unitIndex].easy == 6 ||
  1140. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1141. ? "练习内容"
  1142. : "评价内容"
  1143. }}
  1144. </div>
  1145. <div class="line" style="width: 90%"></div>
  1146. </div>
  1147. </div>
  1148. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1149. " class="toolChoose" style="padding: 0 0 0 30px">
  1150. <div class="tools">
  1151. <div class="leftTools" style="
  1152. width: 95%;
  1153. padding: 0 0 15px 0;
  1154. border-bottom: 1px solid #efefef;
  1155. margin-bottom: 15px;
  1156. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1157. <div>
  1158. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1159. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1160. </div>
  1161. <div style="
  1162. display: flex;
  1163. flex-direction: row;
  1164. align-items: baseline;
  1165. flex-wrap: nowrap;
  1166. justify-content: flex-start;
  1167. position: relative;
  1168. ">
  1169. <div style="margin-right: 20px; font-weight: bold">
  1170. 步骤 {{ toolIndex + 1 }} :
  1171. </div>
  1172. <div class="chooseWho">
  1173. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1174. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1175. 互动类
  1176. </div>
  1177. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1178. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1179. 思维类
  1180. </div>
  1181. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1182. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1183. 评价类
  1184. </div>
  1185. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1186. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1187. 编程类
  1188. </div>
  1189. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1190. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1191. 学科类
  1192. </div>
  1193. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1194. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1195. 其他
  1196. </div>
  1197. </div>
  1198. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1199. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1200. </div>
  1201. <div style="min-height: 163px">
  1202. <div class="toolSort" v-if="itemTool.toolType == 0">
  1203. <!-- <div class="tool">
  1204. <div
  1205. class="whiteBIcon"
  1206. @click="addTools(8, itemTaskIndex, toolIndex)"
  1207. >
  1208. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1209. <div style="margin: 5px 0">素材库</div>
  1210. </div>
  1211. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1212. <img
  1213. src="../../../assets/icon/checkNo.png"
  1214. alt
  1215. v-if="itemTool.tool.indexOf(8) == -1"
  1216. />
  1217. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1218. alt /><span>已选择</span></div>
  1219. </div>
  1220. </div>-->
  1221. <!-- <div class="tool">
  1222. <div
  1223. class="whiteBIcon"
  1224. @click="addTools(17, itemTaskIndex, toolIndex)"
  1225. >
  1226. <img
  1227. src="../../../assets/icon/secondToolList/library.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">学习资料</div>
  1231. </div>
  1232. <div
  1233. class="check"
  1234. @click="addTools(17, itemTaskIndex, toolIndex)"
  1235. >
  1236. <img
  1237. src="../../../assets/icon/checkNo.png"
  1238. alt
  1239. v-if="itemTool.tool.indexOf(17) == -1"
  1240. />
  1241. <img
  1242. src="../../../assets/icon/checkedIs.png"
  1243. alt
  1244. v-else
  1245. />
  1246. </div>10
  1247. </div> -->
  1248. <div class="tool">
  1249. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1250. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1251. <div style="margin: 5px 0">倒计时</div>
  1252. </div>
  1253. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1254. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1255. <div class="checkDiv" v-else>
  1256. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1257. </div>
  1258. </div>
  1259. </div>
  1260. <div class="tool">
  1261. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1262. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1263. <div style="margin: 5px 0">学生分组</div>
  1264. </div>
  1265. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1266. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1267. <div class="checkDiv" v-else>
  1268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <div class="tool">
  1273. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1274. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1275. <div style="margin: 5px 0">交互视频</div>
  1276. </div>
  1277. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1278. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1279. <div class="checkDiv" v-else>
  1280. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1281. </div>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <div class="toolSort" v-if="itemTool.toolType == 1">
  1286. <div class="tool">
  1287. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1288. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1289. <div style="margin: 5px 0">思维网格</div>
  1290. </div>
  1291. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1292. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1293. <div class="checkDiv" v-else>
  1294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1295. </div>
  1296. </div>
  1297. </div>
  1298. <div class="tool">
  1299. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1300. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1301. <div style="margin: 5px 0">电子白板</div>
  1302. </div>
  1303. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1304. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1305. <div class="checkDiv" v-else>
  1306. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <!-- <div class="tool">
  1311. <div
  1312. class="whiteBIcon"
  1313. @click="addTools(2, itemTaskIndex, toolIndex)"
  1314. >
  1315. <img
  1316. src="../../../assets/icon/secondToolList/note.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">便签</div>
  1320. </div>
  1321. <div
  1322. class="check"
  1323. @click="addTools(2, itemTaskIndex, toolIndex)"
  1324. >
  1325. <img
  1326. src="../../../assets/icon/checkNo.png"
  1327. alt
  1328. v-if="itemTool.tool.indexOf(2) == -1"
  1329. />
  1330. <div class="checkDiv" v-else>
  1331. <img
  1332. src="../../../assets/icon/checkedIs.png"
  1333. alt
  1334. /><span>已选择</span>
  1335. </div>
  1336. </div>
  1337. </div> -->
  1338. <!-- <div class="tool">
  1339. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1340. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1341. <div style="margin: 5px 0">协同文档</div>
  1342. </div>
  1343. <div
  1344. class="check"
  1345. @click="addTools(6, itemTaskIndex, toolIndex)"
  1346. >
  1347. <img
  1348. src="../../../assets/icon/checkNo.png"
  1349. alt
  1350. v-if="itemTool.tool.indexOf(6) == -1"
  1351. />
  1352. <div class="checkDiv" v-else>
  1353. <img
  1354. src="../../../assets/icon/checkedIs.png"
  1355. alt
  1356. /><span>已选择</span>
  1357. </div>
  1358. </div>
  1359. </div> -->
  1360. <div class="tool">
  1361. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1362. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1363. <div style="margin: 5px 0">文档</div>
  1364. </div>
  1365. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1366. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1367. <div class="checkDiv" v-else>
  1368. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. <div class="tool">
  1373. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1374. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1375. <div style="margin: 5px 0">思维导图</div>
  1376. </div>
  1377. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1378. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1379. <div class="checkDiv" v-else>
  1380. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1381. </div>
  1382. </div>
  1383. </div>
  1384. <div class="tool">
  1385. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1386. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1387. <div style="margin: 5px 0">表格</div>
  1388. </div>
  1389. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1390. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1391. <div class="checkDiv" v-else>
  1392. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. <div class="toolSort" v-if="itemTool.toolType == 2">
  1398. <!-- <div class="tool">
  1399. <div
  1400. class="whiteBIcon"
  1401. @click="addTools(5, itemTaskIndex, toolIndex)"
  1402. >
  1403. <img
  1404. src="../../../assets/icon/thirdToolList/score.png"
  1405. alt
  1406. />
  1407. <div style="margin: 5px 0">量规评分</div>
  1408. </div>
  1409. <div
  1410. class="check"
  1411. @click="addTools(5, itemTaskIndex, toolIndex)"
  1412. >
  1413. <img
  1414. src="../../../assets/icon/checkNo.png"
  1415. alt
  1416. v-if="itemTool.tool.indexOf(5) == -1"
  1417. />
  1418. <img
  1419. src="../../../assets/icon/checkedIs.png"
  1420. alt
  1421. v-else
  1422. />
  1423. </div>
  1424. </div>-->
  1425. <div class="tool">
  1426. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1427. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1428. <div style="margin: 5px 0">问卷调查</div>
  1429. </div>
  1430. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1431. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1432. <div class="checkDiv" v-else>
  1433. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1434. </div>
  1435. </div>
  1436. </div>
  1437. <div class="tool">
  1438. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1439. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1440. <div style="margin: 5px 0">选择题</div>
  1441. </div>
  1442. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1443. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1444. <div class="checkDiv" v-else>
  1445. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1446. </div>
  1447. </div>
  1448. </div>
  1449. <div class="tool">
  1450. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1451. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1452. <div style="margin: 5px 0">问答工具</div>
  1453. </div>
  1454. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1455. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1456. <div class="checkDiv" v-else>
  1457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. <div class="tool">
  1462. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1463. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1464. <div style="margin: 5px 0">作业提交</div>
  1465. </div>
  1466. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1467. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1468. <div class="checkDiv" v-else>
  1469. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1470. </div>
  1471. </div>
  1472. </div>
  1473. <div class="tool">
  1474. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1475. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1476. <div style="margin: 5px 0">批量上传</div>
  1477. </div>
  1478. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1479. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1480. <div class="checkDiv" v-else>
  1481. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1482. </div>
  1483. </div>
  1484. </div>
  1485. <div class="tool">
  1486. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1487. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1488. <div style="margin: 5px 0">个人评价</div>
  1489. </div>
  1490. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1491. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1492. <div class="checkDiv" v-else>
  1493. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. <div class="tool">
  1498. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1499. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1500. <div style="margin: 5px 0">选择填空</div>
  1501. </div>
  1502. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1503. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1504. <div class="checkDiv" v-else>
  1505. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1506. </div>
  1507. </div>
  1508. </div>
  1509. <div class="tool">
  1510. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1511. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1512. <div style="margin: 5px 0">连词成句</div>
  1513. </div>
  1514. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1515. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1516. <div class="checkDiv" v-else>
  1517. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1518. </div>
  1519. </div>
  1520. </div>
  1521. <!-- <div class="tool">
  1522. <div
  1523. class="whiteBIcon"
  1524. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1525. >
  1526. <img
  1527. src="../../../assets/icon/thirdToolList/mp3.png"
  1528. alt
  1529. />
  1530. <div style="margin: 5px 0">上传音频</div>
  1531. </div>
  1532. <div
  1533. class="check"
  1534. @click="addTools(42, itemTaskIndex, toolIndex)"
  1535. >
  1536. <img
  1537. src="../../../assets/icon/checkNo.png"
  1538. alt
  1539. v-if="itemTool.tool.indexOf(42) == -1"
  1540. />
  1541. <img
  1542. src="../../../assets/icon/checkedIs.png"
  1543. alt
  1544. v-else
  1545. />
  1546. </div>
  1547. </div> -->
  1548. </div>
  1549. <div class="toolSort" v-if="itemTool.toolType == 3">
  1550. <div class="tool">
  1551. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1552. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1553. <div style="margin: 5px 0">训练平台</div>
  1554. </div>
  1555. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1556. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1557. <div class="checkDiv" v-else>
  1558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1559. </div>
  1560. </div>
  1561. </div>
  1562. <div class="tool">
  1563. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1564. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1565. <div style="margin: 5px 0">编程平台</div>
  1566. </div>
  1567. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1568. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1569. <div class="checkDiv" v-else>
  1570. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div class="tool">
  1575. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1576. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1577. <div style="margin: 5px 0">AI体验</div>
  1578. </div>
  1579. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1580. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1581. <div class="checkDiv" v-else>
  1582. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1583. </div>
  1584. </div>
  1585. </div>
  1586. <div class="tool">
  1587. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1588. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1589. <div style="margin: 5px 0">Python</div>
  1590. </div>
  1591. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1592. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1593. <div class="checkDiv" v-else>
  1594. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1595. </div>
  1596. </div>
  1597. </div>
  1598. <div class="tool">
  1599. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1600. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1601. <div style="margin: 5px 0">AI平台</div>
  1602. </div>
  1603. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1604. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1605. <div class="checkDiv" v-else>
  1606. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. <div class="tool">
  1611. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1612. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1613. <div style="margin: 5px 0">源码编辑</div>
  1614. </div>
  1615. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1616. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1617. <div class="checkDiv" v-else>
  1618. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1619. </div>
  1620. </div>
  1621. </div>
  1622. <div class="tool">
  1623. <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
  1624. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1625. <div style="margin: 5px 0">CocoPi</div>
  1626. </div>
  1627. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1628. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1629. <div class="checkDiv" v-else>
  1630. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1631. </div>
  1632. </div>
  1633. </div>
  1634. <div class="tool">
  1635. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1636. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1637. <div style="margin: 5px 0">海龟编程</div>
  1638. </div>
  1639. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1640. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1641. <div class="checkDiv" v-else>
  1642. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1643. </div>
  1644. </div>
  1645. </div>
  1646. </div>
  1647. <div class="toolSort" v-if="itemTool.toolType == 5">
  1648. <div class="tool">
  1649. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1650. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1651. <div style="margin: 5px 0">翻译</div>
  1652. </div>
  1653. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1654. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1655. <div class="checkDiv" v-else>
  1656. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1657. </div>
  1658. </div>
  1659. </div>
  1660. <div class="tool">
  1661. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1662. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1663. <div style="margin: 5px 0">魔盒识字</div>
  1664. </div>
  1665. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1666. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1667. <div class="checkDiv" v-else>
  1668. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. <div class="tool">
  1673. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1674. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1675. <div style="margin: 5px 0">24点</div>
  1676. </div>
  1677. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1678. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1679. <div class="checkDiv" v-else>
  1680. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. <div class="tool">
  1685. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1686. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1687. <div style="margin: 5px 0">数学画板</div>
  1688. </div>
  1689. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1690. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1691. <div class="checkDiv" v-else>
  1692. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1693. </div>
  1694. </div>
  1695. </div>
  1696. <div class="tool">
  1697. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1698. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1699. <div style="margin: 5px 0">GeoGebra</div>
  1700. </div>
  1701. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1702. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1703. <div class="checkDiv" v-else>
  1704. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1705. </div>
  1706. </div>
  1707. </div>
  1708. <div class="tool">
  1709. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1710. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1711. <div style="margin: 5px 0">模拟驾驶</div>
  1712. </div>
  1713. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1714. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1715. <div class="checkDiv" v-else>
  1716. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1717. </div>
  1718. </div>
  1719. </div>
  1720. <div class="tool">
  1721. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1722. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1723. <div style="margin: 5px 0">路径搜索</div>
  1724. </div>
  1725. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1726. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1727. <div class="checkDiv" v-else>
  1728. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div class="tool">
  1733. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1734. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1735. <div style="margin: 5px 0">深度学习</div>
  1736. </div>
  1737. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1738. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1739. <div class="checkDiv" v-else>
  1740. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <div class="tool">
  1745. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1746. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1747. <div style="margin: 5px 0">全历史</div>
  1748. </div>
  1749. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1750. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1751. <div class="checkDiv" v-else>
  1752. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. </div>
  1757. <div class="toolSort" v-if="itemTool.toolType == 4">
  1758. <div class="tool">
  1759. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1760. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1761. <div style="margin: 5px 0">课程设计</div>
  1762. </div>
  1763. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1764. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1765. <div class="checkDiv" v-else>
  1766. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1767. </div>
  1768. </div>
  1769. </div>
  1770. <div class="tool">
  1771. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1772. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1773. <div style="margin: 5px 0">目标管理</div>
  1774. </div>
  1775. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1776. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1777. <div class="checkDiv" v-else>
  1778. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. <!-- <div class="tool">
  1783. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1784. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1785. <div style="margin: 5px 0">汉字宫</div>
  1786. </div>
  1787. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1788. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1789. <div class="checkDiv" v-else>
  1790. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1791. </div>
  1792. </div>
  1793. </div> -->
  1794. </div>
  1795. </div>
  1796. </div>
  1797. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1798. <div class="addToolImg">
  1799. <img src="../../../assets/icon/add.png" alt />
  1800. </div>
  1801. <div>添加工具</div>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1806. unitJson[unitIndex].easy == 4
  1807. " class="toolChoose" style="padding: 0 0 0 30px">
  1808. <div class="tools">
  1809. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1810. :key="toolIndex">
  1811. <div>
  1812. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1813. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1814. </div>
  1815. <div style="
  1816. display: flex;
  1817. flex-direction: row;
  1818. align-items: baseline;
  1819. flex-wrap: nowrap;
  1820. justify-content: flex-start;
  1821. position: relative;
  1822. ">
  1823. <div style="margin-right: 20px; font-weight: bold">
  1824. 步骤 {{ toolIndex + 1 }} :
  1825. </div>
  1826. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1827. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1828. </div>
  1829. <div style="min-height: 163px">
  1830. <div class="toolSort">
  1831. <div class="tool">
  1832. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1833. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1834. <div style="margin: 5px 0">电子白板</div>
  1835. </div>
  1836. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1837. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1838. <div class="checkDiv" v-else>
  1839. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1840. </div>
  1841. </div>
  1842. </div>
  1843. <div class="tool">
  1844. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1845. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1846. <div style="margin: 5px 0">文档</div>
  1847. </div>
  1848. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1849. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1850. <div class="checkDiv" v-else>
  1851. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1852. </div>
  1853. </div>
  1854. </div>
  1855. <div class="tool">
  1856. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1857. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1858. <div style="margin: 5px 0">思维导图</div>
  1859. </div>
  1860. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1861. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1862. <div class="checkDiv" v-else>
  1863. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1864. </div>
  1865. </div>
  1866. </div>
  1867. <div class="tool">
  1868. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1869. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1870. <div style="margin: 5px 0">问卷调查</div>
  1871. </div>
  1872. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1873. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1874. <div class="checkDiv" v-else>
  1875. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1876. </div>
  1877. </div>
  1878. </div>
  1879. <div class="tool">
  1880. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1881. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1882. <div style="margin: 5px 0">选择题</div>
  1883. </div>
  1884. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1885. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1886. <div class="checkDiv" v-else>
  1887. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. <div class="tool">
  1892. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1893. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1894. <div style="margin: 5px 0">问答工具</div>
  1895. </div>
  1896. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1897. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1898. <div class="checkDiv" v-else>
  1899. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. <div class="tool">
  1904. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1905. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1906. <div style="margin: 5px 0">作业提交</div>
  1907. </div>
  1908. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1909. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1910. <div class="checkDiv" v-else>
  1911. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1912. </div>
  1913. </div>
  1914. </div>
  1915. <div class="tool">
  1916. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1917. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1918. <div style="margin: 5px 0">批量上传</div>
  1919. </div>
  1920. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1921. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1922. <div class="checkDiv" v-else>
  1923. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1924. </div>
  1925. </div>
  1926. </div>
  1927. <div class="tool">
  1928. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1929. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1930. <div style="margin: 5px 0">选择填空</div>
  1931. </div>
  1932. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1933. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1934. <div class="checkDiv" v-else>
  1935. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1936. </div>
  1937. </div>
  1938. </div>
  1939. <div class="tool">
  1940. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1941. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1942. <div style="margin: 5px 0">连词成句</div>
  1943. </div>
  1944. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1945. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1946. <div class="checkDiv" v-else>
  1947. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1948. </div>
  1949. </div>
  1950. </div>
  1951. <div class="tool">
  1952. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1953. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1954. <div style="margin: 5px 0">表格</div>
  1955. </div>
  1956. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1957. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1958. <div class="checkDiv" v-else>
  1959. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1960. </div>
  1961. </div>
  1962. </div>
  1963. </div>
  1964. </div>
  1965. </div>
  1966. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1967. <div class="addToolImg">
  1968. <img src="../../../assets/icon/add.png" alt />
  1969. </div>
  1970. <div>添加工具</div>
  1971. </div>
  1972. </div>
  1973. </div>
  1974. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1975. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1976. " class="toolChoose" style="padding: 0 0 0 30px">
  1977. <div class="tools">
  1978. <div class="leftTools" style="
  1979. width: 95%;
  1980. padding: 0 0 15px 0;
  1981. margin-bottom: 15px;
  1982. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1983. <div style="min-height: 163px">
  1984. <div class="toolSort">
  1985. <div class="tool">
  1986. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1987. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1988. <div style="margin: 5px 0">批量上传</div>
  1989. </div>
  1990. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1991. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1992. <div class="checkDiv" v-else>
  1993. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. </div>
  1999. </div>
  2000. </div>
  2001. </div>
  2002. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2003. <div class="elist_title">
  2004. <div style="
  2005. display: flex;
  2006. flex-direction: row;
  2007. align-items: center;
  2008. margin-bottom: 20px;
  2009. ">
  2010. <div class="lineTitle">评价设置</div>
  2011. <div class="line" style="width: 90%"></div>
  2012. </div>
  2013. </div>
  2014. <div class="mbCss">
  2015. <div class="pjCss">
  2016. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2017. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2018. <span>评价名称:</span>
  2019. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2020. <span>评星等级:</span>
  2021. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2022. <div class="remove" @click="deletEList(unitIndex, itemTaskIndex, eIndex)
  2023. "></div>
  2024. <div class="elist_inptu_text">
  2025. <span>评价描述:</span>
  2026. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2027. </div>
  2028. <div class="elist_inptu_text" v-if="evalua">
  2029. <span>目标:</span>
  2030. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2031. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2032. @change="forceUpdate()">
  2033. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2034. :value="e.name">
  2035. </el-option>
  2036. </el-select> -->
  2037. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2038. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2039. </div>
  2040. </div>
  2041. </div>
  2042. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2043. <div class="addToolImg">
  2044. <img src="../../../assets/icon/add.png" alt />
  2045. </div>
  2046. <div>添加</div>
  2047. </div>
  2048. </div>
  2049. <div v-if="evalua" style="
  2050. border: 1px solid #e5e5e5;
  2051. width: 55%;
  2052. margin-top: 20px;
  2053. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2054. " class="evaCss">
  2055. <div class="e_add_top">
  2056. <div class="e_add_title">
  2057. <span>当前使用目标管理</span>
  2058. <span>{{ eTitle }}</span>
  2059. <img src="../../../assets/line.png" class="cru_line" style="
  2060. width: 125px;
  2061. height: 20px;
  2062. bottom: -10px;
  2063. left: 155px;
  2064. " />
  2065. </div>
  2066. </div>
  2067. <div class="e_add_content" style="width: 100%">
  2068. <div class="e_add_list_pbox" style="width: 100%">
  2069. <div class="e_add_list_pbox_title">
  2070. <span class="type_title">切换模式</span>
  2071. <div class="type_content">
  2072. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2073. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2074. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2075. </div>
  2076. </div>
  2077. <div class="e_add_list_pbox_content">
  2078. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2079. " v-if="typeMode == 1"></Mind>
  2080. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2081. </Sunburst>
  2082. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2083. v-if="typeMode == 3"></SeeBoard>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. <div class="funBlock" style="padding: 0">
  2091. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2092. <div>折叠</div>
  2093. <div class="arrow">
  2094. <img src="../../../assets/icon/fold.png" alt />
  2095. </div>
  2096. </div>
  2097. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2098. <div>展开</div>
  2099. <div class="arrow">
  2100. <img src="../../../assets/icon/expand.png" alt />
  2101. </div>
  2102. </div>
  2103. </div>
  2104. </div>
  2105. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2106. <div>
  2107. <img src="../../../assets/icon/addHw.png" alt />
  2108. <span>添加任务</span>
  2109. </div>
  2110. </div>
  2111. </div>
  2112. </div>
  2113. </div>
  2114. <div class="rightBox" v-if="this.steps == 4">
  2115. <div class="basic_box_success">
  2116. <div class="right_img">
  2117. <img src="../../../assets/icon/right.png" alt />
  2118. </div>
  2119. <div style="font-weight: bold">成功</div>
  2120. <!-- <div>您的课程编号</div>
  2121. <div class="number">{{ number }}</div>-->
  2122. <!-- <div class="success_button">
  2123. <div class="look_course" @click="isNoFinsh">
  2124. 邀请老师协同编辑
  2125. </div>
  2126. <div class="attend_others" @click="goCourse">预览课程</div>
  2127. </div> -->
  2128. </div>
  2129. </div>
  2130. <div class="info_btnBox">
  2131. <button class="info_btn" @click="goTo(
  2132. '/course?userid=' +
  2133. userid +
  2134. '&oid=' +
  2135. oid +
  2136. '&org=' +
  2137. org +
  2138. '&role=' +
  2139. role
  2140. )
  2141. ">
  2142. 返回课程
  2143. </button>
  2144. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  2145. 确认上传
  2146. </button>
  2147. </div>
  2148. </div>
  2149. </div>
  2150. </div>
  2151. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2152. class="dialog_diy2 customWidth">
  2153. <div>请复制该链接邀请协同编辑</div>
  2154. <div>http://www.boomyon.com/index-zhang.com</div>
  2155. <span slot="footer" class="dialog-footer">
  2156. <el-button type="primary">复制链接分享</el-button>
  2157. <el-button @click="dialogVisible = false">取消</el-button>
  2158. </span>
  2159. </el-dialog>
  2160. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2161. :before-close="handleClose" class="dialog_diy2 customWidth">
  2162. <el-form>
  2163. <el-form-item label="文档标题">
  2164. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2165. </el-form-item>
  2166. <div>文档简介</div>
  2167. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2168. </el-form>
  2169. <span slot="footer" class="dialog-footer">
  2170. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2171. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2172. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2173. </span>
  2174. </el-dialog>
  2175. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2176. :before-close="handleClose" class="dialog_diy">
  2177. <el-form>
  2178. <el-form-item label="文档标题">
  2179. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2180. </el-form-item>
  2181. <div>文档内容</div>
  2182. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2183. </el-form>
  2184. <span slot="footer" class="dialog-footer">
  2185. <el-button @click="clearChoose">取 消</el-button>
  2186. <el-button type="primary" @click="wordNext()">确定</el-button>
  2187. </span>
  2188. </el-dialog>
  2189. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2190. :before-close="handleClose" class="dialog_diy">
  2191. <el-form>
  2192. <el-form-item label="文本标题">
  2193. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2194. </el-form-item>
  2195. <div>富文本内容</div>
  2196. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2197. </el-form>
  2198. <span slot="footer" class="dialog-footer">
  2199. <el-button @click="clearAttText">取 消</el-button>
  2200. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2201. </span>
  2202. </el-dialog>
  2203. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2204. :before-close="handleClose" class="dialog_diy lineCss">
  2205. <el-form>
  2206. <el-form-item label="标题" :label-width="formLabelWidth">
  2207. <span>
  2208. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2209. </span>
  2210. </el-form-item>
  2211. <el-form-item label="链接" :label-width="formLabelWidth">
  2212. <span>
  2213. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2214. </span>
  2215. </el-form-item>
  2216. </el-form>
  2217. <span slot="footer" class="dialog-footer">
  2218. <el-button @click="clearLine">取 消</el-button>
  2219. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2220. </span>
  2221. </el-dialog>
  2222. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2223. :before-close="handleClose" class="dialog_diy source_diy">
  2224. <div>
  2225. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2226. </div>
  2227. <span slot="footer" class="dialog-footer">
  2228. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2229. <el-button type="primary" @click="addSource">确定</el-button>
  2230. </span>
  2231. </el-dialog>
  2232. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2233. :before-close="handleClose" class="addNewPP customWidth">
  2234. <div class="people">
  2235. <div class="people_top">
  2236. <div class="people_nav">选择成员</div>
  2237. <div class="people_top_right">
  2238. <div class="people_search">
  2239. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2240. <div class="search_img" @click="searchStudent">
  2241. <img src="../../../assets/icon/search.png" alt />
  2242. </div>
  2243. </div>
  2244. </div>
  2245. </div>
  2246. <el-checkbox-group v-model="checkboxList" class="people_name">
  2247. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2248. "暂无学生可选" }}</el-checkbox>
  2249. </el-checkbox-group>
  2250. </div>
  2251. <span slot="footer" class="dialog-footer">
  2252. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2253. <el-button type="primary" @click="isAddPP">确定</el-button>
  2254. </span>
  2255. </el-dialog>
  2256. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2257. :before-close="handleClose" class="addNewPP">
  2258. <div class="people" style="height: 300px">
  2259. <div class="people_top">
  2260. <div class="people_top_right">
  2261. <div class="people_search">
  2262. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2263. <!-- @click="getClass()"
  2264. @keyup.enter.native="getClass()"
  2265. -->
  2266. <div class="search_img">
  2267. <img src="../../../assets/icon/search.png" alt />
  2268. </div>
  2269. </div>
  2270. </div>
  2271. <div class="people_nav">选择班级</div>
  2272. </div>
  2273. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2274. <div v-for="item in grade2" :key="item.id" class="p_box">
  2275. <el-checkbox :label="item.id">
  2276. {{ item.name }}
  2277. </el-checkbox>
  2278. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2279. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2280. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2281. @click="OpenInviteD(item.id)">随机码设置</div>
  2282. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2283. </div>
  2284. </el-checkbox-group>
  2285. </div>
  2286. <span slot="footer" class="dialog-footer">
  2287. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2288. <el-button type="primary" @click="isAddClass">确定</el-button>
  2289. </span>
  2290. </el-dialog>
  2291. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2292. :before-close="handleClose" class="addNewPP customWidth">
  2293. <div class="people">
  2294. <div class="people_top">
  2295. <div class="people_top_right">
  2296. <div class="people_search">
  2297. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2298. <div class="search_img" @click="getTeacher">
  2299. <img src="../../../assets/icon/search.png" alt />
  2300. </div>
  2301. </div>
  2302. </div>
  2303. <div class="people_nav">选择成员</div>
  2304. </div>
  2305. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2306. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2307. <div class="t_j_box">
  2308. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2309. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2310. </el-tooltip>
  2311. <el-tooltip placement="top" :content="item.username">
  2312. <span>{{ item.username }}</span>
  2313. </el-tooltip>
  2314. <el-tooltip placement="top" :content="item.school">
  2315. <span>{{ item.school }}</span>
  2316. </el-tooltip>
  2317. </div>
  2318. </el-checkbox>
  2319. </el-checkbox-group>
  2320. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2321. </div>
  2322. <span slot="footer" class="dialog-footer">
  2323. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2324. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2325. </span>
  2326. </el-dialog>
  2327. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2328. :before-close="handleClose" class="dialog_diy">
  2329. <div>
  2330. <div class="a_add_title" style="
  2331. display: flex;
  2332. flex-direction: row;
  2333. align-items: center;
  2334. justify-content: center;
  2335. ">
  2336. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2337. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2338. </div>
  2339. <div class="a_addBox">
  2340. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2341. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2342. <div class="a_add_checkType">
  2343. <span :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  2344. @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2345. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2346. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2347. </div>
  2348. <div class="a_add_head">
  2349. <div>
  2350. {{ index1 + 1 + "、" }}
  2351. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2352. </el-input>
  2353. </div>
  2354. <div class="a_add_head_div">
  2355. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2356. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2357. </el-button>
  2358. </div>
  2359. </div>
  2360. <div class="a_add_body">
  2361. <div class="a_add_input">
  2362. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2363. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2364. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2365. </div>
  2366. <div class="a_add_body_div">
  2367. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2368. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2369. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2370. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2371. </el-button>
  2372. </div>
  2373. </div>
  2374. </div>
  2375. </div>
  2376. </div>
  2377. <span slot="footer" class="dialog-footer">
  2378. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2379. <el-button type="primary" @click="addAsk">确 定</el-button>
  2380. </span>
  2381. </el-dialog>
  2382. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2383. :before-close="handleClose" class="dialog_diy">
  2384. <div>
  2385. <!-- <div class="a_add_title" style="
  2386. display: flex;
  2387. flex-direction: row;
  2388. align-items: center;
  2389. justify-content: center;
  2390. ">
  2391. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2392. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2393. </div> -->
  2394. <div class="a_addBox">
  2395. <div style="font-size: 16px; color: #c7c7c7">
  2396. 请输入题目内容
  2397. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  2398. </div>
  2399. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2400. <div class="a_add_checkType">
  2401. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2402. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2403. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2404. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2405. </div>
  2406. <div class="a_add_head">
  2407. <div class="timuUpImg">
  2408. <div>
  2409. {{ index1 + 1 + "、" }}
  2410. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2411. placeholder="请输入题目...">
  2412. </el-input>
  2413. </div>
  2414. <div class="xzUpImg" @click.stop="addImg($event)">
  2415. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2416. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2417. </div>
  2418. </div>
  2419. <div class="a_add_head_div">
  2420. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2421. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2422. </el-button>
  2423. </div>
  2424. </div>
  2425. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2426. testJson.testJson[index1].timuList.length
  2427. ">
  2428. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2429. @click.stop="previewImg(timg.src)">
  2430. <img :src="timg.src" alt="" />
  2431. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2432. <img src="../../../assets/icon/delete.png" alt="" />
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div class="a_add_body">
  2437. <div class="a_add_input a_add_input_choice">
  2438. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2439. <div class="radioBox">
  2440. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2441. .testItem" :key="checkIndex" :label="checkIndex">
  2442. <div style="margin-right: 10px">
  2443. 选项{{ checkIndex + 1 }}
  2444. </div>
  2445. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2446. testJson.testJson[index1].checkList[checkIndex]
  2447. .imgType &&
  2448. testJson.testJson[index1].checkList[checkIndex]
  2449. .imgType == 1
  2450. ">
  2451. <div class="inImg" @click.stop="previewImg(
  2452. testJson.testJson[index1].checkList[checkIndex]
  2453. .src
  2454. )
  2455. ">
  2456. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2457. .src
  2458. " lazy />
  2459. <!-- <img :src="
  2460. testJson.testJson[index1].checkList[checkIndex]
  2461. .src
  2462. " alt="" /> -->
  2463. </div>
  2464. </div>
  2465. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2466. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2467. <div class="xzUpImg" @click.stop="addImg($event)">
  2468. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2469. <input type="file" accept="image/*" style="display: none"
  2470. @change="beforeUploadTi($event, index1, checkIndex)" />
  2471. </div>
  2472. </el-radio>
  2473. </div>
  2474. </el-radio-group>
  2475. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2476. v-if="testJson.testJson[index1].type == '2'">
  2477. <div class="radioBox">
  2478. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2479. .testItem" :key="checkIndex1" :label="checkIndex1">
  2480. <div style="margin-right: 10px">
  2481. 选项{{ checkIndex1 + 1 }}
  2482. </div>
  2483. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2484. testJson.testJson[index1].checkList[checkIndex1]
  2485. .imgType &&
  2486. testJson.testJson[index1].checkList[checkIndex1]
  2487. .imgType == 1
  2488. ">
  2489. <div class="inImg" @click.stop="previewImg(
  2490. testJson.testJson[index1].checkList[checkIndex1]
  2491. .src
  2492. )
  2493. ">
  2494. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2495. .src
  2496. " lazy />
  2497. <!-- <img :src="
  2498. testJson.testJson[index1].checkList[checkIndex1]
  2499. .src
  2500. " alt="" /> -->
  2501. </div>
  2502. </div>
  2503. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2504. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2505. <div class="xzUpImg" @click.stop="addImg($event)">
  2506. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2507. <input type="file" accept="image/*" style="display: none"
  2508. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2509. </div>
  2510. </el-checkbox>
  2511. </div>
  2512. </el-checkbox-group>
  2513. </div>
  2514. <div class="a_add_body_div" style="margin-bottom: 3px">
  2515. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2516. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2517. v-if="testJson.testJson[index1].testItem != 1">删除
  2518. </el-button>
  2519. </div>
  2520. </div>
  2521. </div>
  2522. </div>
  2523. </div>
  2524. <span slot="footer" class="dialog-footer">
  2525. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2526. <el-button type="primary" @click="addTest">确 定</el-button>
  2527. </span>
  2528. </el-dialog>
  2529. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2530. :before-close="handleClose" class="dialog_diy addToolsDia">
  2531. <div class="toolChoose" style="padding: 0 0 0 30px">
  2532. <div class="tools">
  2533. <div class="leftTools" style="
  2534. width: 95%;
  2535. padding: 0 0 15px 0;
  2536. border-bottom: 1px solid #efefef;
  2537. margin-bottom: 15px;
  2538. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2539. <div style="
  2540. display: flex;
  2541. flex-direction: row;
  2542. align-items: baseline;
  2543. flex-wrap: nowrap;
  2544. justify-content: flex-start;
  2545. position: relative;
  2546. ">
  2547. <div class="chooseWho">
  2548. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2549. 互动类
  2550. </div>
  2551. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2552. 思维类
  2553. </div>
  2554. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2555. 评价类
  2556. </div>
  2557. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2558. 其他
  2559. </div>
  2560. </div>
  2561. </div>
  2562. <div style="min-height: 163px">
  2563. <div class="toolSort" v-if="chapToolsType == 0">
  2564. <div class="tool">
  2565. <div class="whiteBIcon" @click="chapAddTools(8)">
  2566. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2567. <div style="margin: 5px 0">素材库</div>
  2568. </div>
  2569. <div class="check" @click="chapAddTools(8)">
  2570. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2571. <div class="checkDiv" v-else>
  2572. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2573. </div>
  2574. </div>
  2575. </div>
  2576. </div>
  2577. <div class="toolSort" v-if="chapToolsType == 1">
  2578. <div class="tool">
  2579. <div class="whiteBIcon" @click="chapAddTools(7)">
  2580. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2581. <div style="margin: 5px 0">思维网格</div>
  2582. </div>
  2583. <div class="check" @click="chapAddTools(7)">
  2584. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2585. <div class="checkDiv" v-else>
  2586. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2587. </div>
  2588. </div>
  2589. </div>
  2590. <div class="tool">
  2591. <div class="whiteBIcon" @click="chapAddTools(1)">
  2592. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2593. <div style="margin: 5px 0">电子白板</div>
  2594. </div>
  2595. <div class="check" @click="chapAddTools(1)">
  2596. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2597. <div class="checkDiv" v-else>
  2598. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2599. </div>
  2600. </div>
  2601. </div>
  2602. <div class="tool">
  2603. <div class="whiteBIcon" @click="chapAddTools(2)">
  2604. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2605. <div style="margin: 5px 0">便签</div>
  2606. </div>
  2607. <div class="check" @click="chapAddTools(2)">
  2608. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2609. <div class="checkDiv" v-else>
  2610. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2611. </div>
  2612. </div>
  2613. </div>
  2614. <div class="tool">
  2615. <div class="whiteBIcon" @click="chapAddTools(6)">
  2616. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2617. <div style="margin: 5px 0">协同文档</div>
  2618. </div>
  2619. <div class="check" @click="chapAddTools(6)">
  2620. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2621. <div class="checkDiv" v-else>
  2622. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2623. </div>
  2624. </div>
  2625. </div>
  2626. <div class="tool">
  2627. <div class="whiteBIcon" @click="chapAddTools(3)">
  2628. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2629. <div style="margin: 5px 0">思维导图</div>
  2630. </div>
  2631. <div class="check" @click="chapAddTools(3)">
  2632. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2633. <div class="checkDiv" v-else>
  2634. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. <div class="tool">
  2639. <div class="whiteBIcon" @click="chapAddTools(31)">
  2640. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2641. <div style="margin: 5px 0">数学画板</div>
  2642. </div>
  2643. <div class="check" @click="chapAddTools(31)">
  2644. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2645. <div class="checkDiv" v-else>
  2646. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2647. </div>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div class="toolSort" v-if="chapToolsType == 2">
  2652. <div class="tool">
  2653. <div class="whiteBIcon" @click="chapAddTools(5)">
  2654. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2655. <div style="margin: 5px 0">量规评分</div>
  2656. </div>
  2657. <div class="check" @click="chapAddTools(5)">
  2658. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2659. <div class="checkDiv" v-else>
  2660. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. <div class="tool">
  2665. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2666. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2667. <div style="margin: 5px 0">问卷调查</div>
  2668. </div>
  2669. <div class="check" @click="chapAddTools(4)">
  2670. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2671. <div class="checkDiv" v-else>
  2672. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2673. </div>
  2674. </div>
  2675. </div>
  2676. </div>
  2677. </div>
  2678. <div>
  2679. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2680. v-model="itemTools.toolDetail" />
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <span slot="footer" class="dialog-footer">
  2686. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2687. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2688. </span>
  2689. </el-dialog>
  2690. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2691. :before-close="handleClose" class="dialog_diy">
  2692. <div>
  2693. <div class="a_add_title" style="
  2694. display: flex;
  2695. flex-direction: column;
  2696. align-items: flex-start;
  2697. justify-content: center;
  2698. ">
  2699. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2700. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2701. </div>
  2702. </div>
  2703. <span slot="footer" class="dialog-footer">
  2704. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2705. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2706. </span>
  2707. </el-dialog>
  2708. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2709. :before-close="handleClose" class="dialog_diy">
  2710. <div>
  2711. <div class="a_add_title" style="
  2712. display: flex;
  2713. flex-direction: column;
  2714. align-items: flex-start;
  2715. justify-content: center;
  2716. ">
  2717. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2718. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2719. </div>
  2720. </div>
  2721. <span slot="footer" class="dialog-footer">
  2722. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2723. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2724. </span>
  2725. </el-dialog>
  2726. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2727. :before-close="handleClose" class="dialog_diy">
  2728. <div>
  2729. <div class="fileCss" style="padding-top: 20px">
  2730. <div>
  2731. <button class="info_btn" @click="addImg($event)">
  2732. 选择本地文件
  2733. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2734. </button>
  2735. </div>
  2736. <div>
  2737. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2738. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2739. <img :src="cover[0].url" alt="" />
  2740. <div class="deletePic" @click="deleteSysPic">
  2741. <img src="../../../assets/icon/delete.png" alt="" />
  2742. </div>
  2743. </div>
  2744. </div>
  2745. </div>
  2746. <div class="fileCss">
  2747. <div>选择本地文件</div>
  2748. <div>选择系统文件</div>
  2749. </div>
  2750. </div>
  2751. <span slot="footer" class="dialog-footer">
  2752. <el-button @click="choosePicVisible = false">取 消</el-button>
  2753. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2754. </span>
  2755. </el-dialog>
  2756. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2757. :before-close="handleClose" class="dialog_diy">
  2758. <div class="cru_selectBox" style="margin: 0">
  2759. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2760. 绘画
  2761. </div>
  2762. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2763. 科技
  2764. </div>
  2765. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2766. 人文
  2767. </div>
  2768. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2769. 艺术
  2770. </div>
  2771. </div>
  2772. <div class="sysPicBox">
  2773. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2774. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2775. </div>
  2776. </div>
  2777. <span slot="footer" class="dialog-footer">
  2778. <el-button @click="sysPicVisible = false">取 消</el-button>
  2779. <el-button type="primary">确 定</el-button>
  2780. </span>
  2781. </el-dialog>
  2782. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2783. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2784. <div v-if="selectJson">
  2785. <div class="select_box1" v-if="selectSteps == 1">
  2786. <div class="select_box1_img">
  2787. <div class="select_box1_title">
  2788. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2789. </div>
  2790. <div class="select_box1_add_img">
  2791. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2792. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2793. <img src="../../../assets/icon/addPoster.png" alt="" />
  2794. </div>
  2795. <div class="isSysPic" v-else>
  2796. <img :src="selectJson.url" alt="" />
  2797. <div class="deletePic" @click="deleteSelectPic">
  2798. <img src="../../../assets/icon/delete.png" alt="" />
  2799. </div>
  2800. </div>
  2801. </div>
  2802. </div>
  2803. <div class="select_box1_select">
  2804. <div class="select_box1_title">
  2805. <span>添加选项</span><span>提示:请输入题目选项</span>
  2806. </div>
  2807. <div class="select_box1_select_box">
  2808. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2809. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2810. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2811. <div class="select_box1_select_box_add">
  2812. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2813. 添加</el-button>
  2814. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2815. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2816. </div>
  2817. </div>
  2818. </div>
  2819. </div>
  2820. <div v-if="selectSteps == 2">
  2821. <div class="select_box2">
  2822. <div class="select_box2_title">设置答案</div>
  2823. <div class="select_box2_box">
  2824. <div class="select_box2_img">
  2825. <img :src="selectJson.url" alt="" />
  2826. </div>
  2827. <div class="select_box2_answer">
  2828. <div class="select_answer_title">根据题目选择对应答案</div>
  2829. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2830. <span>{{ checkIndex + 1 }}、</span>
  2831. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2832. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2833. </el-option>
  2834. </el-select>
  2835. </div>
  2836. </div>
  2837. </div>
  2838. </div>
  2839. </div>
  2840. </div>
  2841. <span slot="footer" class="dialog-footer">
  2842. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2843. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2844. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2845. </span>
  2846. </el-dialog>
  2847. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2848. :before-close="handleClose" class="dialog_diy">
  2849. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2850. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2851. <div class="pjCss" style="width: 100%">
  2852. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2853. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2854. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2855. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2856. <div class="remove" @click="deletRateList(eIndex)"></div>
  2857. <div style="width: 100%; display: flex">
  2858. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2859. <el-rate v-model="eItem.score" disabled></el-rate>
  2860. </div>
  2861. <div class="elist_inptu_text" style="align-items: flex-start">
  2862. <span style="min-width: 100px; text-align: right">描述:</span>
  2863. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2864. </div>
  2865. </div>
  2866. </div>
  2867. <div class="addToolFun" @click="addRateList()">
  2868. <div class="addToolImg">
  2869. <img src="../../../assets/icon/add.png" alt />
  2870. </div>
  2871. <div>添加</div>
  2872. </div>
  2873. </div>
  2874. </div>
  2875. <span slot="footer" class="dialog-footer">
  2876. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2877. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2878. </span>
  2879. </el-dialog>
  2880. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2881. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2882. <div>
  2883. <div class="sentenBox">
  2884. <div class="addSen" @click="addSt">添加题目</div>
  2885. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2886. <div class="sentenTopBox">
  2887. <div class="sentenTop">
  2888. <div>题目设置</div>
  2889. <div>
  2890. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2891. </div>
  2892. <div @click="addSen(stIndex)">添加</div>
  2893. </div>
  2894. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2895. </div>
  2896. <div class="cardList">
  2897. <div v-if="st.addSentence.length > 0" class="cardBox">
  2898. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2899. @click="setRightAnswer(s, stIndex, sIndex)">
  2900. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2901. <div>{{ s }}</div>
  2902. </el-tooltip>
  2903. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2904. <img src="../../../assets/icon/delete.png" alt="" />
  2905. </div>
  2906. </div>
  2907. </div>
  2908. <div class="card">
  2909. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2910. </div>
  2911. </div>
  2912. <div class="rightCardBox">
  2913. <div>正确顺序</div>
  2914. <div class="rightCardList">
  2915. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2916. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2917. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2918. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2919. <div>{{ r }}</div>
  2920. </el-tooltip>
  2921. </div>
  2922. <div>{{ rIndex + 1 }}</div>
  2923. </div>
  2924. </div>
  2925. <div class="card" v-if="st.rightAnswer.length == 0">
  2926. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2927. </div>
  2928. </div>
  2929. </div>
  2930. </div>
  2931. </div>
  2932. </div>
  2933. <span slot="footer" class="dialog-footer">
  2934. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2935. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2936. </span>
  2937. </el-dialog>
  2938. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2939. :before-close="handleClose" class="dialog_diy">
  2940. <el-form>
  2941. <!-- <el-form-item label="文本标题">
  2942. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2943. </el-form-item> -->
  2944. <div>表格内容</div>
  2945. <Table v-model="tableJson.text" @change="change"></Table>
  2946. </el-form>
  2947. <span slot="footer" class="dialog-footer">
  2948. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2949. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2950. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2951. </span>
  2952. </el-dialog>
  2953. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2954. :before-close="handleClose" class="dialog_diy">
  2955. <el-form>
  2956. <!-- <el-form-item label="文本标题">
  2957. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2958. </el-form-item> -->
  2959. <div>文档内容</div>
  2960. <editor-bar v-model="wordJson.text"></editor-bar>
  2961. </el-form>
  2962. <span slot="footer" class="dialog-footer">
  2963. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2964. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2965. </span>
  2966. </el-dialog>
  2967. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2968. :before-close="handleClose" class="dialog_diy">
  2969. <div style="
  2970. width: 100%;
  2971. display: flex;
  2972. flex-direction: row;
  2973. flex-wrap: nowrap;
  2974. align-items: center;
  2975. justify-content: center;
  2976. ">
  2977. <div>班级:</div>
  2978. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2979. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2980. </el-option>
  2981. </el-select>
  2982. </div>
  2983. <span slot="footer" class="dialog-footer">
  2984. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2985. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2986. </span>
  2987. </el-dialog>
  2988. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2989. :before-close="handleClose" class="dialog_diy">
  2990. <div style="
  2991. width: 100%;
  2992. display: flex;
  2993. flex-direction: row;
  2994. flex-wrap: nowrap;
  2995. align-items: center;
  2996. justify-content: center;
  2997. ">
  2998. <div>随机码:</div>
  2999. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3000. </div>
  3001. <span slot="footer" class="dialog-footer">
  3002. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3003. <el-button type="primary" @click="addInvite">确定</el-button>
  3004. </span>
  3005. </el-dialog>
  3006. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  3007. :before-close="handleClose" class="dialog_diy">
  3008. <div>
  3009. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3010. </div>
  3011. <span slot="footer" class="dialog-footer">
  3012. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3013. <el-button type="primary" @click="addPreTime">确定</el-button>
  3014. </span>
  3015. </el-dialog>
  3016. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3017. class="dialog_diy">
  3018. <div>
  3019. <div style="
  3020. width: 100%;
  3021. display: flex;
  3022. flex-direction: row;
  3023. flex-wrap: nowrap;
  3024. align-content: center;
  3025. align-items: center;
  3026. justify-content: space-between;
  3027. ">
  3028. <div style="
  3029. display: flex;
  3030. flex-flow: row nowrap;
  3031. align-items: flex-start;
  3032. width: 100%;
  3033. flex-direction: column;
  3034. flex-wrap: nowrap;
  3035. position: relative;
  3036. ">
  3037. <div class="e_box">
  3038. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3039. <div class="e_card_picture">
  3040. <img src="../../../assets/e_picture.png" />
  3041. </div>
  3042. <div class="e_card_name">
  3043. <span>{{ item.title }}</span>
  3044. </div>
  3045. <div class="e_card_btn">
  3046. <span @click="checkEva(item.id, 2)">导入</span>
  3047. </div>
  3048. </div>
  3049. <div class="addEva" @click="openT">
  3050. <img src="../../../assets/icon/addEva.png" alt="" />
  3051. </div>
  3052. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3053. 暂无数据
  3054. </div>
  3055. </div>
  3056. </div>
  3057. </div>
  3058. </div>
  3059. <span slot="footer" class="dialog-footer">
  3060. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3061. </span>
  3062. </el-dialog>
  3063. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3064. :before-close="handleClose" class="dialog_diy">
  3065. <div class="groupBox">
  3066. <div v-if="groupJson.group" class="groupContent">
  3067. <div class="groupTitle">请设置小组数量</div>
  3068. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3069. <span class="groupn">组{{ index + 1 }}名称:</span>
  3070. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3071. <div class="groupBtn">
  3072. <el-button type="primary" size="small" @click="addGroup(index)">
  3073. 添加</el-button>
  3074. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3075. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3076. </div>
  3077. </div>
  3078. </div>
  3079. <div class="groupContent">
  3080. <div class="groupTitle">请设置每组人数数量</div>
  3081. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3082. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3083. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3084. placeholder="2-10人以内"></el-input-number>
  3085. </div>
  3086. </div>
  3087. <span slot="footer" class="dialog-footer">
  3088. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3089. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3090. </span>
  3091. </el-dialog>
  3092. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3093. </div>
  3094. </template>
  3095. <script>
  3096. import "../../../common/aws-sdk-2.235.1.min.js";
  3097. import $ from "jquery";
  3098. import EditorBar from "../../../components/tools/wangEnduit";
  3099. import Table from "../../../components/tools/table";
  3100. import Mind from "../../tools/jsmind2";
  3101. import Time from "../../tools/time.vue";
  3102. import Sunburst from "../../tools/sunburst";
  3103. import SeeBoard from "../../tools/seeBoard";
  3104. import weilaiData from "../components/weilai.js";
  3105. import sourceDialog from "../teacherSource/dialog.vue";
  3106. import interVideo from "../interVideo/index.vue";
  3107. export default {
  3108. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table, sourceDialog, interVideo },
  3109. data() {
  3110. return {
  3111. checkAll: false,
  3112. chooseType: 1,
  3113. checkedCities: [],
  3114. isIndeterminate: true,
  3115. isSysPic: false,
  3116. steps: 1,
  3117. nbOrder: 0,
  3118. courseId: "",
  3119. chapToolsType: 0,
  3120. chapTools: [
  3121. {
  3122. tools: [],
  3123. toolDetail: "",
  3124. },
  3125. ],
  3126. line: "",
  3127. lineTitle: "",
  3128. sysPic: [],
  3129. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3130. isPushTitleList: [],
  3131. lineCount: 0,
  3132. lineType: 0,
  3133. chapCount: 0,
  3134. courseName: "",
  3135. isTeacherSee: true,
  3136. courseText: "",
  3137. preTime: 0,
  3138. formLabelWidth: "100px",
  3139. choosePicVisible: false,
  3140. sysPicVisible: false,
  3141. uploadLoading1: false,
  3142. noneBtnImg: false,
  3143. updateBoolean2: false,
  3144. unitIndex: 0,
  3145. taskCount: 0,
  3146. dialogVisible: false,
  3147. dialogVisible1: false,
  3148. dialogVisible2: false,
  3149. dialogVisible3: false,
  3150. dialogVisible4: false,
  3151. dialogVisible5: false,
  3152. dialogVisible6: false,
  3153. dialogVisible7: false,
  3154. dialogVisible8: false,
  3155. dialogVisible9: false,
  3156. dialogVisibleClass: false,
  3157. dialogVisibleMember: false,
  3158. dialogVisibleMp3: false,
  3159. dialogVisibleSelect: false,
  3160. dialogVisibleSentence: false,
  3161. dialogVisibleRate: false,
  3162. dialogVisibleChoice: false,
  3163. dialogVisiblemb: false,
  3164. dialogVisibleInvite: false,
  3165. dialogVisibleSource: false,
  3166. dialogVisibleVideo: false,
  3167. isClickColor: 0,
  3168. publicTool: 0,
  3169. searchPeople: "",
  3170. searchTN: "",
  3171. userid: this.$route.query.userid,
  3172. oid: this.$route.query.oid,
  3173. org: this.$route.query.org,
  3174. role: this.$route.query.role,
  3175. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3176. dialogVisibleTable: false,
  3177. dialogVisibleWord: false,
  3178. tableJson: { text: "" },
  3179. wordJson: { text: "" },
  3180. dialogVisibleMoreUpload: false,
  3181. dialogVisiblePreTime: false,
  3182. uploadJson: [],
  3183. classJuri: [],
  3184. cover: [], //课程封面
  3185. myWord: [],
  3186. evaJuri: [],
  3187. evalua: "",
  3188. targetArray: [],
  3189. eTitle: "",
  3190. eJson: {},
  3191. fid: "", //一级
  3192. sid: "", //二级
  3193. tid: "", //二级
  3194. typeMode: 1,
  3195. eJSONNum: 0,
  3196. data: {
  3197. meta: {
  3198. name: "example",
  3199. author: "dd@163.com",
  3200. version: "0.2",
  3201. },
  3202. format: "node_array",
  3203. data: [{ id: "root", isroot: true, topic: "" }],
  3204. },
  3205. askJson: {
  3206. askCount: 1,
  3207. askTitle: "",
  3208. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3209. },
  3210. testJson: {},
  3211. selectJson: {},
  3212. rateJson: [],
  3213. unitJson2: [],
  3214. unitJson: [
  3215. {
  3216. dyName: "", //单元标题
  3217. chapterInfo: [
  3218. {
  3219. isread: false,
  3220. chapterid: this.guid(),
  3221. title: "",
  3222. courseName: "",
  3223. taskJson: [
  3224. {
  3225. task: "",
  3226. taskDetail: "",
  3227. chapterData: [],
  3228. toolChoose: [
  3229. {
  3230. tool: [],
  3231. toolDetail: "",
  3232. toolType: 0,
  3233. askCount: 1,
  3234. askTitle: "",
  3235. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3236. },
  3237. ],
  3238. toolText: "",
  3239. isShowTools: false,
  3240. askCount: 1,
  3241. isFold: 0,
  3242. askTitle: "",
  3243. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3244. checkJson: [{ checkCount: [], checkPerent: [] }],
  3245. homeworkList: [],
  3246. },
  3247. ],
  3248. itemCount: 1,
  3249. fileList1: [],
  3250. video: [],
  3251. testData: [],
  3252. pData: [],
  3253. templateArray: [],
  3254. },
  3255. ],
  3256. },
  3257. ],
  3258. studentJuri: [],
  3259. teacherJuri: [],
  3260. checkboxList: [],
  3261. checkboxList2: [],
  3262. checkboxList3: [],
  3263. classSearch: "",
  3264. number: "",
  3265. tTitle: "",
  3266. tdetail: "",
  3267. templateC: {},
  3268. AttText: {},
  3269. AttTextType: 0,
  3270. AttTextIndex: 0,
  3271. cTemplate: "",
  3272. CourseType: [],
  3273. CourseType2: [],
  3274. CourseTypeJson: {},
  3275. courseTypeId: [],
  3276. courseTypeSon: [],
  3277. clearArray: [],
  3278. pTypeCheck: [],
  3279. pTypeCheckName: [],
  3280. loading: false,
  3281. toolType: 0,
  3282. inputShow: true,
  3283. inputShow2: true,
  3284. toolIndex: 0,
  3285. cidType: 0,
  3286. answerQ: "",
  3287. grade: [],
  3288. grade2: [],
  3289. courseUserid: "",
  3290. timer: null,
  3291. timer2: null,
  3292. checkId: "",
  3293. isDelete: 1,
  3294. addindex: 0,
  3295. selectSteps: 1,
  3296. groupJson: {},
  3297. dialogVisibleGroup: false,
  3298. rightBoxHeight: 0,
  3299. ManAarray: [],
  3300. checkBoolean: false,
  3301. inviteCode: [],
  3302. inviteId: "",
  3303. icode: "",
  3304. easyArray: [2, 4],
  3305. sourceData: {},
  3306. videoJson: {}
  3307. };
  3308. },
  3309. computed: {
  3310. // rightBoxHeight: function () {
  3311. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3312. // },
  3313. offsetLetfPx: function () {
  3314. //addnum可以直接在模板语法里面用,相当于data内的值
  3315. return (
  3316. $(".cru_select")[this.unitIndex] &&
  3317. $(".cru_select")[this.unitIndex].offsetLeft
  3318. );
  3319. },
  3320. getMan2() {
  3321. return function (people) {
  3322. let _people = people;
  3323. let _people2 = "";
  3324. if (this.ManAarray.length) {
  3325. for (var i = 0; i < this.ManAarray.length; i++) {
  3326. if (this.ManAarray[i].userid == people) {
  3327. _people2 = this.ManAarray[i].name;
  3328. break;
  3329. }
  3330. }
  3331. }
  3332. if (people == this.courseUserid) {
  3333. return "";
  3334. }
  3335. return this.ManAarray.length ? _people2 : "";
  3336. };
  3337. },
  3338. isInvite() {
  3339. return function (cid) {
  3340. let array = [];
  3341. for (var i = 0; i < this.inviteCode.length; i++) {
  3342. array.push(this.inviteCode[i].cid);
  3343. }
  3344. return array.indexOf(cid) != -1;
  3345. };
  3346. },
  3347. getInviteCodeC() {
  3348. return function (cid) {
  3349. let array = [];
  3350. for (var i = 0; i < this.inviteCode.length; i++) {
  3351. array.push(this.inviteCode[i].cid);
  3352. }
  3353. return this.inviteCode[array.indexOf(cid)].ic;
  3354. };
  3355. },
  3356. getClassC() {
  3357. return function (c) {
  3358. let _c2 = "";
  3359. if (this.grade.length) {
  3360. for (var i = 0; i < this.grade.length; i++) {
  3361. if (this.grade[i].id == c) {
  3362. _c2 = this.grade[i].name;
  3363. break;
  3364. }
  3365. }
  3366. }
  3367. return this.grade.length ? _c2 : "";
  3368. };
  3369. },
  3370. },
  3371. watch: {
  3372. unitIndex(newValue, oldValue) {
  3373. if (this.isDelete == 2) {
  3374. this.isDelete = 1;
  3375. return;
  3376. }
  3377. if (this.cid != "") {
  3378. let _unitIndex = oldValue;
  3379. if (
  3380. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3381. JSON.stringify(this.unitJson[_unitIndex])
  3382. ) {
  3383. this.$refs.rightboxR.scrollTop = 0;
  3384. return;
  3385. }
  3386. let cPan = 1;
  3387. for (
  3388. var j = 0;
  3389. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3390. j++
  3391. ) {
  3392. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3393. j
  3394. ].proVisible = false;
  3395. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3396. j
  3397. ].proVisible2 = false;
  3398. if (
  3399. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3400. .length > 1
  3401. ) {
  3402. for (
  3403. var z = 0;
  3404. z <
  3405. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3406. .length;
  3407. z++
  3408. ) {
  3409. if (
  3410. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3411. .toolChoose[z].tool.length
  3412. ) {
  3413. this.$message.error("请把工具添加完整");
  3414. cPan = 2;
  3415. break;
  3416. }
  3417. }
  3418. }
  3419. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3420. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3421. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3422. (ele) => {
  3423. return ele.value != "";
  3424. }
  3425. );
  3426. }
  3427. }
  3428. if (cPan == 2) {
  3429. this.unitIndex = oldValue;
  3430. return;
  3431. }
  3432. for (var i = 0; i < this.unitJson.length; i++) {
  3433. if (this.addindex != i) {
  3434. delete this.unitJson[i].isUpdate;
  3435. }
  3436. }
  3437. this.$refs.rightboxR.scrollTop = 0;
  3438. this.addindex = -1;
  3439. let params = [
  3440. {
  3441. cid: this.cid,
  3442. chapters: JSON.stringify(this.unitJson),
  3443. uid: this.userid,
  3444. unitIndex: _unitIndex,
  3445. },
  3446. ];
  3447. this.ajax
  3448. .post(this.$store.state.api + "updateWorkNew4", params)
  3449. .then((res) => {
  3450. // this.$message({
  3451. // message: "修改成功",
  3452. // type: "success",
  3453. // });
  3454. // this.courseId = this.cid;
  3455. })
  3456. .catch((err) => {
  3457. this.$message.error("网络不佳");
  3458. console.error(err);
  3459. });
  3460. }
  3461. },
  3462. steps(newValue) {
  3463. if (newValue == 4) {
  3464. this.goTo(
  3465. "/course?userid=" +
  3466. this.userid +
  3467. "&oid=" +
  3468. this.oid +
  3469. "&org=" +
  3470. this.org +
  3471. "&role=" +
  3472. this.role
  3473. );
  3474. }
  3475. }
  3476. },
  3477. methods: {
  3478. setMan() {
  3479. // let teacherJuri = this.teacherJuri2;
  3480. this.ManAarray = [];
  3481. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3482. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3483. _user.push(this.courseUserid || this.userid);
  3484. }
  3485. let params = {
  3486. uid: _user.join(","),
  3487. };
  3488. this.ajax
  3489. .get(this.$store.state.api + "getAllUserById", params)
  3490. .then((res) => {
  3491. let teacherJuri = res.data[0];
  3492. this.ManAarray = teacherJuri;
  3493. })
  3494. .catch((err) => {
  3495. console.error(err);
  3496. });
  3497. },
  3498. previewImg(url) {
  3499. this.$hevueImgPreview(url);
  3500. },
  3501. scrollChange() {
  3502. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3503. // document.querySelector('.course_left').scrollHeight
  3504. // document.querySelector('.stepsBottom2').scrollHeight
  3505. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3506. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3507. let client = $(".course_left")[0].clientHeight - stepsBottom2
  3508. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2
  3509. // if (top < client) {
  3510. // $('.stepsBottom2')[0].style.position = 'absolute'
  3511. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3512. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3513. // } else
  3514. if (top > 0) {
  3515. let top = $(".rightBox")[0].offsetTop
  3516. $('.stepsBottom2')[0].style.position = 'fixed'
  3517. $('.stepsBottom2')[0].style.top = top + 'px'
  3518. // $('.stepsBottom2')[0].style.top = top + 'px'
  3519. } else {
  3520. $('.stepsBottom2')[0].style.position = 'absolute'
  3521. $('.stepsBottom2')[0].style.top = '0px'
  3522. }
  3523. },
  3524. handleCheckAllChange(val) {
  3525. this.checkedCities = val ? cityOptions : [];
  3526. this.isIndeterminate = false;
  3527. },
  3528. handleCheckedCitiesChange(value) {
  3529. let checkedCount = value.length;
  3530. this.checkAll = checkedCount === this.cities.length;
  3531. this.isIndeterminate =
  3532. checkedCount > 0 && checkedCount < this.cities.length;
  3533. },
  3534. addHw(e) {
  3535. var el = e.currentTarget;
  3536. el.getElementsByTagName("input")[0].click();
  3537. },
  3538. change(val) {
  3539. console.log(val);
  3540. },
  3541. change2(val) {
  3542. console.log(val);
  3543. this.$forceUpdate();
  3544. },
  3545. handleClose(done) {
  3546. done();
  3547. },
  3548. imgChange2(i, j) {
  3549. var _tmp = this.testJson.testJson[i].checkList[j];
  3550. this.noneBtnImg = _tmp.length >= 1;
  3551. },
  3552. imgChange3(i) {
  3553. var _tmp = this.testJson.testJson[i];
  3554. this.noneBtnImg = _tmp.length >= 1;
  3555. },
  3556. imgChange1(file, fileList, type, itemTaskIndex) {
  3557. if (type == 1) {
  3558. var _tmp = this.cover;
  3559. } else if (
  3560. type == 2 ||
  3561. type == 3 ||
  3562. type == 6 ||
  3563. type == 7 ||
  3564. type == 8
  3565. ) {
  3566. var _tmp =
  3567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3568. .chapterData;
  3569. } else if (type == 4) {
  3570. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3571. } else {
  3572. var _tmp =
  3573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3574. .homeworkList;
  3575. }
  3576. this.noneBtnImg = _tmp.length >= 1;
  3577. },
  3578. goTo(path) {
  3579. this.$router.push(path);
  3580. },
  3581. guid() {
  3582. var _num,
  3583. i,
  3584. _guid = "";
  3585. for (i = 0; i < 32; i++) {
  3586. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3587. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3588. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3589. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3590. _guid += "-";
  3591. }
  3592. }
  3593. return _guid;
  3594. },
  3595. lastSteps() {
  3596. this.goTo(
  3597. "/course?userid=" +
  3598. this.userid +
  3599. "&oid=" +
  3600. this.oid +
  3601. "&org=" +
  3602. this.org +
  3603. "&role=" +
  3604. this.role
  3605. );
  3606. },
  3607. nextSteps() {
  3608. if (this.cid == "" || this.cid == undefined) {
  3609. if (this.courseName == "") {
  3610. this.$message.error("请将信息填写完整");
  3611. return;
  3612. } else {
  3613. this.addWork();
  3614. this.steps = 4
  3615. }
  3616. } else {
  3617. if (this.courseName == "") {
  3618. this.$message.error("请将信息填写完整");
  3619. return;
  3620. } else {
  3621. if (this.userid != this.courseUserid && this.role != '1') {
  3622. this.updateWork2();
  3623. } else {
  3624. this.updateWork();
  3625. }
  3626. this.steps = 4
  3627. }
  3628. }
  3629. this.$refs.stepBox.scrollTop = 0;
  3630. },
  3631. unitSet(i) {
  3632. this.unitIndex = i;
  3633. // this.$refs.rightboxR.scrollTop = 0;
  3634. },
  3635. time() {
  3636. if (!this.now) {
  3637. this.now = new Date().getTime();
  3638. return true;
  3639. } else {
  3640. let time = new Date().getTime();
  3641. if (time - this.now > 3000) {
  3642. this.now = time;
  3643. return true;
  3644. } else {
  3645. return false;
  3646. }
  3647. }
  3648. },
  3649. deleteUnit(i) {
  3650. var _this = this;
  3651. if (_this.time()) {
  3652. _this
  3653. .$confirm("确定删除此单元吗?", "提示", {
  3654. confirmButtonText: "确定",
  3655. cancelButtonText: "取消",
  3656. type: "warning",
  3657. })
  3658. .then(() => {
  3659. _this.isDelete = 2;
  3660. // _this.unitIndex = _this.unitIndex - 1;
  3661. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3662. // _this.$message.success("删除成功");
  3663. })
  3664. .catch(() => {
  3665. return;
  3666. });
  3667. }
  3668. },
  3669. deleteWork(chapid) {
  3670. let params = [
  3671. {
  3672. cid: this.cid,
  3673. chapters: JSON.stringify(this.unitJson),
  3674. uid: this.userid,
  3675. chapid: chapid,
  3676. },
  3677. ];
  3678. this.ajax
  3679. .post(this.$store.state.api + "deleteWork", params)
  3680. .then((res) => {
  3681. this.$message({
  3682. message: "删除成功",
  3683. type: "success",
  3684. });
  3685. this.unitJson.splice(this.unitIndex, 1);
  3686. this.unitIndex = this.unitIndex - 1;
  3687. })
  3688. .catch((err) => {
  3689. this.$message.error("网络不佳");
  3690. console.error(err);
  3691. });
  3692. },
  3693. deleteTool(itemTaskIndex, i) {
  3694. var _this = this;
  3695. if (_this.time()) {
  3696. _this
  3697. .$confirm("确定删除此工具吗?", "提示", {
  3698. confirmButtonText: "确定",
  3699. cancelButtonText: "取消",
  3700. type: "warning",
  3701. })
  3702. .then(() => {
  3703. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3704. itemTaskIndex
  3705. ].toolChoose.splice(i, 1);
  3706. _this.$message.success("删除成功");
  3707. })
  3708. .catch(() => {
  3709. return;
  3710. });
  3711. }
  3712. },
  3713. deleteSentence(i) {
  3714. var _this = this;
  3715. if (_this.time()) {
  3716. _this
  3717. .$confirm("确定删除此题目吗?", "提示", {
  3718. confirmButtonText: "确定",
  3719. cancelButtonText: "取消",
  3720. type: "warning",
  3721. })
  3722. .then(() => {
  3723. _this.sentenceList.splice(i, 1);
  3724. _this.$message.success("删除成功");
  3725. })
  3726. .catch(() => {
  3727. return;
  3728. });
  3729. }
  3730. },
  3731. deleteS(s, i, j) {
  3732. this.sentenceList[i].addSentence.splice(j, 1);
  3733. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3734. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3735. this.sentenceList[i].rightAnswer.splice(a, 1);
  3736. }
  3737. },
  3738. openT() {
  3739. window.parent.postMessage({ tools: "25" }, "*");
  3740. },
  3741. deleteTask(i) {
  3742. var _this = this;
  3743. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3744. _this
  3745. .$confirm("确定删除此任务吗?" , "提示", {
  3746. confirmButtonText: "确定",
  3747. cancelButtonText: "取消",
  3748. type: "warning",
  3749. })
  3750. .then(() => {
  3751. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3752. i,
  3753. 1
  3754. );
  3755. _this.$message.success("删除成功");
  3756. // this.$nextTick(() => {
  3757. // $('.stepsBottom2')[0].style.transition = 'unset'
  3758. // setTimeout(() => {
  3759. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3760. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3761. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3762. // if (top > client) {
  3763. // $('.stepsBottom2')[0].style.top = client + 'px'
  3764. // }
  3765. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3766. // this.$forceUpdate()
  3767. // }, 500)
  3768. // })
  3769. })
  3770. .catch(() => {
  3771. return;
  3772. });
  3773. },
  3774. handlePictureCardPreview(file) {
  3775. this.dialogImageUrl = file.url;
  3776. },
  3777. clean(i, c) {
  3778. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3779. },
  3780. handle_remove1(file, fileList, type) {
  3781. var _tmp = this.cover;
  3782. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3783. // if (_tmp[i].uid == file.uid) {
  3784. // _tmp.splice(i, 1);
  3785. // break;
  3786. // }
  3787. // this.cover = _tmp;
  3788. // }
  3789. this.cover = [];
  3790. this.noneBtnImg = this.cover.length >= 1;
  3791. this.isSysPic = false;
  3792. this.$forceUpdate();
  3793. },
  3794. addImg(e) {
  3795. var el = e.currentTarget;
  3796. el.getElementsByTagName("input")[0].click();
  3797. e.target.value = "";
  3798. },
  3799. addChaptersTools(i) {
  3800. this.chapTools = [
  3801. {
  3802. tools: [],
  3803. toolDetail: "",
  3804. },
  3805. ];
  3806. this.chapCount = i;
  3807. this.dialogVisible4 = true;
  3808. },
  3809. isNoFinsh() {
  3810. this.$message.warning("功能正在开发中");
  3811. },
  3812. addAttText(i) {
  3813. this.AttText = {
  3814. title: "",
  3815. text: "",
  3816. };
  3817. this.taskCount = i;
  3818. this.AttTextType = 0;
  3819. this.$forceUpdate();
  3820. this.dialogVisible6 = true;
  3821. },
  3822. openLine(i) {
  3823. this.line = "";
  3824. this.lineCount = i;
  3825. this.lineType = 0;
  3826. this.$forceUpdate();
  3827. this.dialogVisible7 = true;
  3828. },
  3829. pasteLine(i) {
  3830. navigator.clipboard
  3831. .readText()
  3832. .then((v) => {
  3833. console.log("获取剪贴板成功:", v);
  3834. const html = v;
  3835. const regex = /src="(.*?)"/g;
  3836. const match = regex.exec(html);
  3837. if (match && match[1]) {
  3838. console.log(match[1]);
  3839. this.$message.success("粘贴成功")
  3840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3841. i
  3842. ].chapterData.push({
  3843. name: "链接",
  3844. title: "嵌入代码",
  3845. url: match[1],
  3846. type: 8,
  3847. });
  3848. } else {
  3849. // console.log("未找到包含 src 属性的 iframe");
  3850. this.$message.error("没有找到粘贴的链接")
  3851. }
  3852. })
  3853. .catch((v) => {
  3854. console.log("获取剪贴板失败: ", v);
  3855. });
  3856. },
  3857. openSource(i) {
  3858. this.lineCount = i;
  3859. this.sourceData = {}
  3860. this.dialogVisibleSource = true;
  3861. },
  3862. addSource() {
  3863. if (!Object.keys(this.sourceData).length) {
  3864. this.$message.error("请选择要上传的资源")
  3865. return;
  3866. }
  3867. let keys = Object.keys(this.sourceData)
  3868. for (var i = 0; i < keys.length; i++) {
  3869. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3870. this.lineCount
  3871. ].chapterData.push({
  3872. name: "链接",
  3873. title: this.sourceData[keys[i]].name,
  3874. url: this.sourceData[keys[i]].url,
  3875. type: 8,
  3876. });
  3877. }
  3878. this.$forceUpdate();
  3879. this.dialogVisibleSource = false;
  3880. },
  3881. deleteM(i, j) {
  3882. this.testJson.testJson[i].timuList.splice(j, 1);
  3883. },
  3884. beforeUploadTiMu(event, i) {
  3885. const loading = this.openLoading();
  3886. var file = event.target.files[0];
  3887. var credentials = {
  3888. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3889. secretAccessKey: "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",
  3890. }; //秘钥形式的登录上传
  3891. window.AWS.config.update(credentials);
  3892. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3893. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3894. var _this = this;
  3895. if (file) {
  3896. var params = {
  3897. Key:
  3898. file.name.split(".")[0] +
  3899. new Date().getTime() +
  3900. "." +
  3901. file.name.split(".")[file.name.split(".").length - 1],
  3902. ContentType: file.type,
  3903. Body: file,
  3904. "Access-Control-Allow-Credentials": "*",
  3905. ACL: "public-read",
  3906. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3907. var options = {
  3908. partSize: 2048 * 1024 * 1024,
  3909. queueSize: 2,
  3910. leavePartsOnError: true,
  3911. };
  3912. bucket
  3913. .upload(params, options)
  3914. .on("httpUploadProgress", function (evt) {
  3915. //这里可以写进度条
  3916. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3917. })
  3918. .send(function (err, data) {
  3919. loading.close();
  3920. if (err) {
  3921. _this.$message.error("上传失败");
  3922. } else {
  3923. if (_this.testJson.testJson[i].timuList) {
  3924. _this.testJson.testJson[i].timuList.push({
  3925. src: data.Location,
  3926. });
  3927. } else {
  3928. _this.testJson.testJson[i].timuList = [];
  3929. _this.testJson.testJson[i].timuList.push({
  3930. src: data.Location,
  3931. });
  3932. }
  3933. _this.imgChange3(i);
  3934. _this.$forceUpdate();
  3935. }
  3936. });
  3937. }
  3938. },
  3939. beforeUploadTi(event, i, j) {
  3940. const loading = this.openLoading();
  3941. var file = event.target.files[0];
  3942. var credentials = {
  3943. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3944. secretAccessKey: "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",
  3945. }; //秘钥形式的登录上传
  3946. window.AWS.config.update(credentials);
  3947. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3948. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3949. var _this = this;
  3950. if (file) {
  3951. var params = {
  3952. Key:
  3953. file.name.split(".")[0] +
  3954. new Date().getTime() +
  3955. "." +
  3956. file.name.split(".")[file.name.split(".").length - 1],
  3957. ContentType: file.type,
  3958. Body: file,
  3959. "Access-Control-Allow-Credentials": "*",
  3960. ACL: "public-read",
  3961. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3962. var options = {
  3963. partSize: 2048 * 1024 * 1024,
  3964. queueSize: 2,
  3965. leavePartsOnError: true,
  3966. };
  3967. bucket
  3968. .upload(params, options)
  3969. .on("httpUploadProgress", function (evt) {
  3970. //这里可以写进度条
  3971. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3972. })
  3973. .send(function (err, data) {
  3974. loading.close();
  3975. if (err) {
  3976. _this.$message.error("上传失败");
  3977. } else {
  3978. _this.testJson.testJson[i].checkList[j] = {};
  3979. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3980. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3981. _this.imgChange2(i, j);
  3982. _this.$forceUpdate();
  3983. }
  3984. });
  3985. }
  3986. },
  3987. beforeUpload1(event, type) {
  3988. // const loading = this.openLoading();
  3989. var file = event.target.files[0];
  3990. var credentials = {
  3991. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3992. secretAccessKey: "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",
  3993. }; //秘钥形式的登录上传
  3994. window.AWS.config.update(credentials);
  3995. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3996. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3997. var _this = this;
  3998. if (file) {
  3999. var params = {
  4000. Key:
  4001. file.name.split(".")[0] +
  4002. new Date().getTime() +
  4003. "." +
  4004. file.name.split(".")[file.name.split(".").length - 1],
  4005. ContentType: file.type,
  4006. Body: file,
  4007. "Access-Control-Allow-Credentials": "*",
  4008. ACL: "public-read",
  4009. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4010. var options = {
  4011. partSize: 2048 * 1024 * 1024,
  4012. queueSize: 2,
  4013. leavePartsOnError: true,
  4014. };
  4015. bucket
  4016. .upload(params, options)
  4017. .on("httpUploadProgress", function (evt) {
  4018. //这里可以写进度条
  4019. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4020. })
  4021. .send(function (err, data) {
  4022. // loading.close();
  4023. if (err) {
  4024. // var a = _this.$refs.upload1.uploadFiles;
  4025. // a.splice(a.length - 1, a.length);
  4026. _this.$message.error("上传失败");
  4027. } else {
  4028. _this.cover.push({
  4029. name: file.name,
  4030. url: data.Location,
  4031. uid: file.uid,
  4032. });
  4033. _this.imgChange1(null, null, 1, null);
  4034. _this.choosePicVisible = false;
  4035. console.log(data.Location);
  4036. }
  4037. });
  4038. }
  4039. },
  4040. beforeUploadSelect(event, type) {
  4041. // const loading = this.openLoading();
  4042. var file = event.target.files[0];
  4043. var credentials = {
  4044. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4045. secretAccessKey: "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",
  4046. }; //秘钥形式的登录上传
  4047. window.AWS.config.update(credentials);
  4048. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4049. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4050. var _this = this;
  4051. if (file) {
  4052. var params = {
  4053. Key:
  4054. file.name.split(".")[0] +
  4055. new Date().getTime() +
  4056. "." +
  4057. file.name.split(".")[file.name.split(".").length - 1],
  4058. ContentType: file.type,
  4059. Body: file,
  4060. "Access-Control-Allow-Credentials": "*",
  4061. ACL: "public-read",
  4062. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4063. var options = {
  4064. partSize: 2048 * 1024 * 1024,
  4065. queueSize: 2,
  4066. leavePartsOnError: true,
  4067. };
  4068. bucket
  4069. .upload(params, options)
  4070. .on("httpUploadProgress", function (evt) {
  4071. //这里可以写进度条
  4072. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4073. })
  4074. .send(function (err, data) {
  4075. // loading.close();
  4076. if (err) {
  4077. _this.$message.error("上传失败");
  4078. } else {
  4079. _this.selectJson.url = data.Location;
  4080. console.log(data.Location);
  4081. }
  4082. });
  4083. }
  4084. },
  4085. chooseSysPic(p) {
  4086. this.cover.push({
  4087. name: "系统图片.png",
  4088. url: p,
  4089. });
  4090. this.imgChange1(null, null, 1, null);
  4091. this.isSysPic = true;
  4092. this.sysPicVisible = false;
  4093. },
  4094. beforeUpload(data) {
  4095. this.$refs.upload1.uploadFiles;
  4096. this.uploadLoading1 = true;
  4097. var file = data.file;
  4098. var credentials = {
  4099. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4100. secretAccessKey: "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",
  4101. }; //秘钥形式的登录上传
  4102. window.AWS.config.update(credentials);
  4103. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4104. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4105. var _this = this;
  4106. if (file) {
  4107. var params = {
  4108. Key:
  4109. file.name.split(".")[0] +
  4110. new Date().getTime() +
  4111. "." +
  4112. file.name.split(".")[file.name.split(".").length - 1],
  4113. ContentType: file.type,
  4114. Body: file,
  4115. "Access-Control-Allow-Credentials": "*",
  4116. ACL: "public-read",
  4117. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4118. var options = {
  4119. partSize: 2048 * 1024 * 1024,
  4120. queueSize: 2,
  4121. leavePartsOnError: true,
  4122. };
  4123. bucket
  4124. .upload(params, options)
  4125. .on("httpUploadProgress", function (evt) {
  4126. //这里可以写进度条
  4127. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4128. })
  4129. .send(function (err, data) {
  4130. _this.uploadLoading1 = false;
  4131. if (err) {
  4132. // var a = _this.$refs.upload1.uploadFiles;
  4133. // a.splice(a.length - 1, a.length);
  4134. _this.$message.error("上传失败");
  4135. } else {
  4136. //上传成功处理
  4137. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4138. name: file.name,
  4139. url: data.Location,
  4140. uid: file.uid,
  4141. });
  4142. _this.imgChange();
  4143. console.log(data.Location);
  4144. }
  4145. });
  4146. }
  4147. },
  4148. onExceed() {
  4149. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4150. },
  4151. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4152. // const loading = this.openLoading();
  4153. var file = event.target.files[0];
  4154. var credentials = {
  4155. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4156. secretAccessKey: "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",
  4157. }; //秘钥形式的登录上传
  4158. window.AWS.config.update(credentials);
  4159. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4160. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4161. var _this = this;
  4162. if (type == 3) {
  4163. var b = [
  4164. "DOC",
  4165. "DOCX",
  4166. "DOCM",
  4167. "DOTM",
  4168. "DOTX",
  4169. "PPTX",
  4170. "PPSX",
  4171. "PPT",
  4172. "PPS",
  4173. "PPTM",
  4174. "POTM",
  4175. "PPAM",
  4176. "POTX",
  4177. "PPSM",
  4178. ];
  4179. if (
  4180. b.indexOf(
  4181. file.name
  4182. .split(".")
  4183. [file.name.split(".").length - 1].toLocaleUpperCase()
  4184. ) != -1
  4185. ) {
  4186. if (file.size / 1024 / 1024 > 80) {
  4187. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4188. this.inputShow = true;
  4189. // var a = _this.$refs.upload1.uploadFiles;
  4190. // a.splice(a.length - 1, a.length);
  4191. // loading.close();
  4192. return;
  4193. }
  4194. } else if (
  4195. file.name
  4196. .split(".")
  4197. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4198. ) {
  4199. if (file.size / 1024 / 1024 > 80) {
  4200. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4201. this.inputShow = true;
  4202. // var a = _this.$refs.upload1.uploadFiles;
  4203. // a.splice(a.length - 1, a.length);
  4204. // loading.close();
  4205. return;
  4206. }
  4207. }
  4208. }
  4209. this.inputShow = false;
  4210. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4211. itemTaskIndex
  4212. ].progress = 0;
  4213. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4214. itemTaskIndex
  4215. ].proVisible = true;
  4216. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4217. itemTaskIndex
  4218. ].isFinishSize = 0;
  4219. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4220. itemTaskIndex
  4221. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4222. _this.$forceUpdate();
  4223. if (file) {
  4224. var params = {
  4225. Key:
  4226. file.name.split(".")[0] +
  4227. new Date().getTime() +
  4228. "." +
  4229. file.name.split(".")[file.name.split(".").length - 1],
  4230. ContentType: file.type,
  4231. Body: file,
  4232. "Access-Control-Allow-Credentials": "*",
  4233. ACL: "public-read",
  4234. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4235. var options = {
  4236. partSize: 2048 * 1024 * 1024,
  4237. queueSize: 2,
  4238. leavePartsOnError: true,
  4239. };
  4240. bucket
  4241. .upload(params, options)
  4242. .on("httpUploadProgress", function (evt) {
  4243. //这里可以写进度条
  4244. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4245. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4246. itemTaskIndex
  4247. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4248. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4249. itemTaskIndex
  4250. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4251. _this.$forceUpdate();
  4252. })
  4253. .send(function (err, data) {
  4254. // loading.close();
  4255. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4256. itemTaskIndex
  4257. ].progress = 100;
  4258. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4259. itemTaskIndex
  4260. ].isFinishSize =
  4261. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4262. itemTaskIndex
  4263. ].isAllSize;
  4264. _this.$forceUpdate();
  4265. setTimeout(() => {
  4266. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4267. itemTaskIndex
  4268. ].proVisible = false;
  4269. _this.$forceUpdate();
  4270. }, 1000);
  4271. _this.inputShow = true;
  4272. if (err) {
  4273. // var a = _this.$refs.upload1.uploadFiles;
  4274. // a.splice(a.length - 1, a.length);
  4275. _this.$message.error("上传失败");
  4276. } else {
  4277. if (type == 13) {
  4278. let _type = 2
  4279. var imgA = [
  4280. "png",
  4281. "jpg",
  4282. "jpeg",
  4283. "bmp",
  4284. "gif",
  4285. "webp",
  4286. "psd",
  4287. "svg",
  4288. "tiff",
  4289. ]
  4290. var fileA = [
  4291. "PDF",
  4292. "DOC",
  4293. "DOCX",
  4294. "DOCM",
  4295. "DOTM",
  4296. "DOTX",
  4297. "PPTX",
  4298. "PPSX",
  4299. "PPT",
  4300. "PPS",
  4301. "PPTM",
  4302. "POTM",
  4303. "PPAM",
  4304. "POTX",
  4305. "PPSM","XLSX", "XLS"
  4306. ];
  4307. var videoA = [
  4308. "AVI",
  4309. "NAVI",
  4310. "MPEG",
  4311. "ASF",
  4312. "MOV",
  4313. "WMV",
  4314. "3GP",
  4315. "RM",
  4316. "RMVB",
  4317. "FLV",
  4318. "F4V",
  4319. "H.264",
  4320. "H.265",
  4321. "REAL VIDEO",
  4322. "MKV",
  4323. "WebM",
  4324. "HDDVD",
  4325. "MP4",
  4326. "MPG",
  4327. "M4V",
  4328. "MGV",
  4329. "OGV",
  4330. "QTM",
  4331. "STR",
  4332. "AMC",
  4333. "DVX",
  4334. "EVO",
  4335. "DAT",
  4336. "OGG",
  4337. "OGM",
  4338. ];
  4339. if (fileA.indexOf(
  4340. data.Location
  4341. .split(".")
  4342. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4343. ) != -1) {
  4344. _type = 3
  4345. } else if (videoA.indexOf(
  4346. data.Location
  4347. .split(".")
  4348. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4349. ) != -1) {
  4350. _type = 2
  4351. } else if (imgA.indexOf(
  4352. data.Location
  4353. .split(".")
  4354. [data.Location.split(".").length - 1].toLocaleLowerCase()
  4355. ) != -1) {
  4356. _type = 13
  4357. } else {
  4358. _type = 12
  4359. }
  4360. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4361. itemTaskIndex
  4362. ].chapterData.push({
  4363. name: file.name,
  4364. url: data.Location,
  4365. uid: file.uid,
  4366. type: _type,
  4367. });
  4368. _this.imgChange1(null, null, _type, itemTaskIndex);
  4369. } else if (type == 2 || type == 3 || type == 12) {
  4370. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4371. itemTaskIndex
  4372. ].chapterData.push({
  4373. name: file.name,
  4374. url: data.Location,
  4375. uid: file.uid,
  4376. type: type,
  4377. });
  4378. _this.imgChange1(null, null, type, itemTaskIndex);
  4379. } else if (type == 4) {
  4380. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4381. itemTaskIndex
  4382. ].fileList1.push({
  4383. name: file.name,
  4384. url: data.Location,
  4385. uid: file.uid,
  4386. });
  4387. _this.imgChange1(null, null, type, itemTaskIndex);
  4388. } else if (type == 5) {
  4389. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4390. itemTaskIndex
  4391. ].homeworkList.push({
  4392. name: file.name,
  4393. url: data.Location,
  4394. uid: file.uid,
  4395. });
  4396. _this.imgChange1(null, null, type, itemTaskIndex);
  4397. }
  4398. console.log(data.Location);
  4399. }
  4400. });
  4401. }
  4402. },
  4403. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4404. // const loading = this.openLoading();
  4405. var file = event.target.files[0];
  4406. var credentials = {
  4407. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4408. secretAccessKey: "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",
  4409. }; //秘钥形式的登录上传
  4410. window.AWS.config.update(credentials);
  4411. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4412. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4413. var _this = this;
  4414. if (type == 3) {
  4415. var b = [
  4416. "DOC",
  4417. "DOCX",
  4418. "DOCM",
  4419. "DOTM",
  4420. "DOTX",
  4421. "PPTX",
  4422. "PPSX",
  4423. "PPT",
  4424. "PPS",
  4425. "PPTM",
  4426. "POTM",
  4427. "PPAM",
  4428. "POTX",
  4429. "PPSM",
  4430. ];
  4431. if (
  4432. b.indexOf(
  4433. file.name
  4434. .split(".")
  4435. [file.name.split(".").length - 1].toLocaleUpperCase()
  4436. ) != -1
  4437. ) {
  4438. if (file.size / 1024 / 1024 > 80) {
  4439. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4440. this.inputShow = true;
  4441. // var a = _this.$refs.upload1.uploadFiles;
  4442. // a.splice(a.length - 1, a.length);
  4443. // loading.close();
  4444. return;
  4445. }
  4446. } else if (
  4447. file.name
  4448. .split(".")
  4449. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4450. ) {
  4451. if (file.size / 1024 / 1024 > 80) {
  4452. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4453. this.inputShow = true;
  4454. // var a = _this.$refs.upload1.uploadFiles;
  4455. // a.splice(a.length - 1, a.length);
  4456. // loading.close();
  4457. return;
  4458. }
  4459. }
  4460. }
  4461. this.inputShow = false;
  4462. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4463. itemTaskIndex
  4464. ].progress = 0;
  4465. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4466. itemTaskIndex
  4467. ].proVisible = true;
  4468. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4469. itemTaskIndex
  4470. ].isFinishSize = 0;
  4471. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4472. itemTaskIndex
  4473. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4474. _this.$forceUpdate();
  4475. if (file) {
  4476. var params = {
  4477. Key:
  4478. file.name.split(".")[0] +
  4479. new Date().getTime() +
  4480. "." +
  4481. file.name.split(".")[file.name.split(".").length - 1],
  4482. ContentType: file.type,
  4483. Body: file,
  4484. "Access-Control-Allow-Credentials": "*",
  4485. ACL: "public-read",
  4486. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4487. var options = {
  4488. partSize: 2048 * 1024 * 1024,
  4489. queueSize: 2,
  4490. leavePartsOnError: true,
  4491. };
  4492. bucket
  4493. .upload(params, options)
  4494. .on("httpUploadProgress", function (evt) {
  4495. //这里可以写进度条
  4496. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4497. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4498. itemTaskIndex
  4499. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4500. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4501. itemTaskIndex
  4502. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4503. _this.$forceUpdate();
  4504. })
  4505. .send(function (err, data) {
  4506. // loading.close();
  4507. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4508. itemTaskIndex
  4509. ].progress = 100;
  4510. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4511. itemTaskIndex
  4512. ].isFinishSize =
  4513. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4514. itemTaskIndex
  4515. ].isAllSize;
  4516. _this.$forceUpdate();
  4517. setTimeout(() => {
  4518. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4519. itemTaskIndex
  4520. ].proVisible = false;
  4521. _this.$forceUpdate();
  4522. }, 1000);
  4523. _this.inputShow = true;
  4524. if (err) {
  4525. // var a = _this.$refs.upload1.uploadFiles;
  4526. // a.splice(a.length - 1, a.length);
  4527. _this.$message.error("上传失败");
  4528. } else {
  4529. if (type == 2 || type == 3) {
  4530. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4531. itemTaskIndex
  4532. ].chapterData.push({
  4533. name: file.name,
  4534. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4535. // itemTaskIndex
  4536. // ].chapterData.length+1),
  4537. url: data.Location,
  4538. uid: file.uid,
  4539. type: type,
  4540. text: string,
  4541. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4542. // itemTaskIndex
  4543. // ].chapterData.length + 1),
  4544. });
  4545. _this.imgChange1(null, null, type, itemTaskIndex);
  4546. } else if (type == 4) {
  4547. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4548. itemTaskIndex
  4549. ].fileList1.push({
  4550. name: file.name,
  4551. url: data.Location,
  4552. uid: file.uid,
  4553. });
  4554. _this.imgChange1(null, null, type, itemTaskIndex);
  4555. } else if (type == 5) {
  4556. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4557. itemTaskIndex
  4558. ].homeworkList.push({
  4559. name: file.name,
  4560. url: data.Location,
  4561. uid: file.uid,
  4562. });
  4563. _this.imgChange1(null, null, type, itemTaskIndex);
  4564. }
  4565. console.log(data.Location);
  4566. }
  4567. });
  4568. }
  4569. },
  4570. addunit() {
  4571. this.unitJson.push({
  4572. dyName: "", //单元标题
  4573. isUpdate: 1,
  4574. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4575. chapterInfo: [
  4576. {
  4577. isread: false,
  4578. chapterid: this.guid(),
  4579. title: "",
  4580. courseName: "",
  4581. taskJson: [
  4582. {
  4583. task: "",
  4584. taskDetail: "",
  4585. chapterData: [],
  4586. toolText: "",
  4587. toolChoose: [
  4588. {
  4589. tool: [],
  4590. toolDetail: "",
  4591. toolType: 0,
  4592. askCount: 1,
  4593. askTitle: "",
  4594. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4595. },
  4596. ],
  4597. isShowTools: false,
  4598. askCount: 1,
  4599. isFold: 0,
  4600. askTitle: "",
  4601. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4602. checkJson: [{ checkCount: [], checkPerent: [] }],
  4603. homeworkList: [],
  4604. },
  4605. ],
  4606. itemCount: 1,
  4607. fileList1: [],
  4608. video: [],
  4609. testData: [],
  4610. pData: [],
  4611. templateArray: [],
  4612. },
  4613. ],
  4614. });
  4615. this.addindex = this.unitJson.length - 1;
  4616. setTimeout(() => {
  4617. this.unitIndex = this.unitJson.length - 1;
  4618. this.unitSet(this.unitIndex);
  4619. }, 0);
  4620. },
  4621. addToolFun(itemTaskIndex) {
  4622. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4623. itemTaskIndex
  4624. ].toolChoose.push({
  4625. tool: [],
  4626. toolDetail: "",
  4627. toolType: 0,
  4628. askCount: 1,
  4629. askTitle: "",
  4630. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4631. });
  4632. },
  4633. addTaskBorder() {
  4634. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4635. task: "",
  4636. taskDetail: "",
  4637. chapterData: [],
  4638. toolChoose: [
  4639. {
  4640. tool: [],
  4641. toolDetail: "",
  4642. toolType: 0,
  4643. askCount: 1,
  4644. askTitle: "",
  4645. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4646. },
  4647. ],
  4648. toolText: "",
  4649. isShowTools: false,
  4650. askCount: 1,
  4651. isFold: 0,
  4652. askTitle: "",
  4653. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4654. checkJson: [{ checkCount: [], checkPerent: [] }],
  4655. homeworkList: [],
  4656. });
  4657. },
  4658. add(e, i) {
  4659. var el = e.currentTarget;
  4660. el.getElementsByTagName("input")[0].click();
  4661. },
  4662. fold(i, e, type) {
  4663. var a = e.currentTarget.parentElement.parentElement;
  4664. var b = e.currentTarget.parentElement;
  4665. if (type == 1) {
  4666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4667. a.className += " smallTaskBorder";
  4668. b.className += " funBlockTop";
  4669. } else {
  4670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4671. a.className = "taskBorder";
  4672. b.className = "funBlock";
  4673. }
  4674. console.log(e);
  4675. },
  4676. deleteHomeworkBox(unitIndex, index, i) {
  4677. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4678. this.taskCount
  4679. ].homeworkList.splice(i, 1);
  4680. },
  4681. getStudent() {
  4682. let params = {
  4683. oid: this.oid,
  4684. cu: "",
  4685. cn: this.searchPeople,
  4686. };
  4687. this.ajax
  4688. .get(this.$store.state.api + "selectStudentAdd", params)
  4689. .then((res) => {
  4690. this.studentJuri = res.data[0];
  4691. })
  4692. .catch((err) => {
  4693. this.isLoading = false;
  4694. console.error(err);
  4695. });
  4696. },
  4697. getTeacher() {
  4698. let params = {
  4699. oid:
  4700. this.org && this.org != "undefined" && this.org != "null"
  4701. ? this.org
  4702. : this.oid,
  4703. cu: "",
  4704. cn: this.searchTN,
  4705. };
  4706. this.ajax
  4707. .get(
  4708. this.$store.state.api +
  4709. (this.org && this.org != "undefined" && this.org != "null"
  4710. ? "selectTeacherAddOrg"
  4711. : "selectTeacherAdd"),
  4712. params
  4713. )
  4714. .then((res) => {
  4715. let teacherJuri = res.data[0];
  4716. for (var i = 0; i < teacherJuri.length; i++) {
  4717. if (teacherJuri[i].userid == this.userid) {
  4718. teacherJuri.splice(i, 1);
  4719. break;
  4720. }
  4721. }
  4722. this.teacherJuri = teacherJuri;
  4723. })
  4724. .catch((err) => {
  4725. console.error(err);
  4726. });
  4727. },
  4728. searchStudent() {
  4729. this.getStudent();
  4730. },
  4731. //获取班级列表
  4732. getClass() {
  4733. let params = {
  4734. oid: this.oid,
  4735. cn: this.classSearch,
  4736. };
  4737. this.ajax
  4738. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4739. .then((res) => {
  4740. if (!this.grade.length) {
  4741. this.grade = res.data[0];
  4742. }
  4743. this.grade2 = res.data[0];
  4744. this.classJuri = res.data[0];
  4745. })
  4746. .catch((err) => {
  4747. this.isLoading = false;
  4748. console.error(err);
  4749. });
  4750. },
  4751. CourseType2Change(val) {
  4752. this.pTypeCheck = [];
  4753. for (var i = 0; i < this.CourseType2.length; i++) {
  4754. let typeA = this.CourseType2[i];
  4755. if (val.indexOf(typeA.name) != -1) {
  4756. this.pTypeCheck.push(...typeA.id);
  4757. }
  4758. }
  4759. },
  4760. getChapterData(e, i, j, ic, type) {
  4761. e.stopPropagation();
  4762. this.updataC = true;
  4763. this.icc = ic;
  4764. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4765. console.log("还不能下载图片喔");
  4766. }
  4767. },
  4768. deleteChapterData(e, i, j, ic, taskI) {
  4769. e.stopPropagation();
  4770. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4771. },
  4772. updataVideoT(e, i, j, ic) {
  4773. e.stopPropagation();
  4774. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4775. ic
  4776. ].name = e.target.value;
  4777. },
  4778. upCd(e, i, j, taskCount, ic) {
  4779. e.stopPropagation();
  4780. if (ic == 0) {
  4781. return;
  4782. }
  4783. var a =
  4784. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4785. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4786. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4787. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4788. this.$forceUpdate();
  4789. },
  4790. downCd(e, i, j, taskCount, ic) {
  4791. e.stopPropagation();
  4792. if (
  4793. ic ==
  4794. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4795. 1
  4796. ) {
  4797. return;
  4798. }
  4799. var a =
  4800. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4801. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4802. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4803. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4804. this.$forceUpdate();
  4805. },
  4806. addWork() {
  4807. let cPan = 1;
  4808. for (var i = 0; i < this.unitJson.length; i++) {
  4809. for (
  4810. var j = 0;
  4811. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4812. j++
  4813. ) {
  4814. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4815. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4816. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4817. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4818. i
  4819. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4820. return ele.value != "";
  4821. });
  4822. }
  4823. }
  4824. }
  4825. this.inputShow = true;
  4826. if (cPan == 2) {
  4827. this.steps--;
  4828. return;
  4829. }
  4830. for (var i = 0; i < this.unitJson.length; i++) {
  4831. delete this.unitJson[i].isUpdate;
  4832. }
  4833. let params = [
  4834. {
  4835. uid: this.userid,
  4836. title: this.courseName.replace(/%/g, "%25"),
  4837. brief: this.courseText.replace(/%/g, "%25"),
  4838. cover:
  4839. this.cover.length > 0
  4840. ? JSON.stringify(this.cover)
  4841. : JSON.stringify([
  4842. {
  4843. name: "noBanner.jpg",
  4844. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4845. uid: 1656409780264,
  4846. status: "success",
  4847. },
  4848. ]),
  4849. evaId: this.evalua,
  4850. astudent:
  4851. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4852. see: this.isTeacherSee == true ? 1 : 0,
  4853. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4854. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4855. courseType: JSON.stringify(this.courseTypeId),
  4856. ateacher:
  4857. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4858. inviteCode: JSON.stringify(this.inviteCode),
  4859. },
  4860. ];
  4861. this.ajax
  4862. .post(this.$store.state.api + "addWorkNew2E", params)
  4863. .then((res) => {
  4864. console.log(this.steps);
  4865. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4866. this.$message({
  4867. message: "新增成功",
  4868. type: "success",
  4869. });
  4870. }
  4871. this.number = res.data.ordernumber;
  4872. this.courseId = res.data.courseId;
  4873. this.cid = res.data.courseId;
  4874. this.courseUserid = this.userid;
  4875. this.islogin = true;
  4876. })
  4877. .catch((err) => {
  4878. this.$message.error("网络不佳");
  4879. console.error(err);
  4880. });
  4881. },
  4882. goCourse() {
  4883. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4884. },
  4885. updateWork2() {
  4886. let _unitIndex = this.unitIndex;
  4887. let cPan = 1;
  4888. for (
  4889. var j = 0;
  4890. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4891. j++
  4892. ) {
  4893. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4894. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4895. j
  4896. ].proVisible2 = false;
  4897. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4898. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4899. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4900. (ele) => {
  4901. return ele.value != "";
  4902. }
  4903. );
  4904. }
  4905. }
  4906. this.inputShow = true;
  4907. if (cPan == 2) {
  4908. this.steps--;
  4909. return;
  4910. }
  4911. let params = [
  4912. {
  4913. cid: this.cid,
  4914. chapters: JSON.stringify(this.unitJson),
  4915. uid: this.userid,
  4916. unitIndex: _unitIndex,
  4917. },
  4918. ];
  4919. this.ajax
  4920. .post(this.$store.state.api + "updateWorkNew4", params)
  4921. .then((res) => {
  4922. this.$message({
  4923. message: "修改成功",
  4924. type: "success",
  4925. });
  4926. this.courseId = this.cid;
  4927. })
  4928. .catch((err) => {
  4929. this.$message.error("网络不佳");
  4930. console.error(err);
  4931. });
  4932. },
  4933. updateWork() {
  4934. let cPan = 1;
  4935. for (var i = 0; i < this.unitJson.length; i++) {
  4936. for (
  4937. var j = 0;
  4938. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4939. j++
  4940. ) {
  4941. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4942. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4943. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4944. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4945. i
  4946. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4947. return ele.value != "";
  4948. });
  4949. }
  4950. }
  4951. }
  4952. this.inputShow = true;
  4953. if (cPan == 2) {
  4954. this.steps--;
  4955. return;
  4956. }
  4957. for (var i = 0; i < this.unitJson.length; i++) {
  4958. delete this.unitJson[i].isUpdate;
  4959. }
  4960. let params = [
  4961. {
  4962. cid: this.cid,
  4963. title: this.courseName.replace(/%/g, "%25"),
  4964. brief: this.courseText.replace(/%/g, "%25"),
  4965. cover:
  4966. this.cover.length > 0
  4967. ? JSON.stringify(this.cover)
  4968. : JSON.stringify([
  4969. {
  4970. name: "noBanner.jpg",
  4971. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4972. uid: 1656409780264,
  4973. status: "success",
  4974. },
  4975. ]),
  4976. evaId: this.evalua,
  4977. astudent:
  4978. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4979. see: this.isTeacherSee == true ? 1 : 0,
  4980. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4981. template: this.myWord != "undefined" ? this.myWord : [],
  4982. uid: this.userid,
  4983. courseType: JSON.stringify(this.courseTypeId),
  4984. ateacher:
  4985. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4986. inviteCode: JSON.stringify(this.inviteCode),
  4987. },
  4988. ];
  4989. this.ajax
  4990. .post(this.$store.state.api + "updateWorkNew2", params)
  4991. .then((res) => {
  4992. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4993. if (this.cidType == 1) {
  4994. this.$message({
  4995. message: "修改成功",
  4996. type: "success",
  4997. });
  4998. } else {
  4999. this.$message({
  5000. message: "新增成功",
  5001. type: "success",
  5002. });
  5003. }
  5004. }
  5005. this.number = this.nbOrder;
  5006. this.courseId = this.cid;
  5007. })
  5008. .catch((err) => {
  5009. this.$message.error("网络不佳");
  5010. console.error(err);
  5011. });
  5012. },
  5013. guid() {
  5014. var _num,
  5015. i,
  5016. _guid = "";
  5017. for (i = 0; i < 32; i++) {
  5018. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5019. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5020. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5021. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5022. _guid += "-";
  5023. }
  5024. }
  5025. return _guid;
  5026. },
  5027. insertWord() {
  5028. this.dialogVisible1 = true;
  5029. this.updateBoolean2 = false;
  5030. this.tTitle = "";
  5031. this.tdetail = "";
  5032. },
  5033. addWord() {
  5034. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5035. name: this.tTitle,
  5036. content: this.tdetail,
  5037. uid: this.guid(),
  5038. });
  5039. this.dialogVisible1 = false;
  5040. },
  5041. upWord() { },
  5042. selectWord(uid, i, c) {
  5043. this.dialogVisible1 = true;
  5044. this.updateBoolean2 = true;
  5045. if (
  5046. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5047. ) {
  5048. this.tTitle =
  5049. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5050. this.tdetail =
  5051. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5052. }
  5053. },
  5054. isAddPP() {
  5055. if (this.checkboxList.length > 0) {
  5056. this.$message({
  5057. message: "添加成功",
  5058. type: "success",
  5059. });
  5060. this.dialogVisible3 = false;
  5061. } else {
  5062. this.$message({
  5063. message: "请添加课程成员",
  5064. type: "error",
  5065. });
  5066. }
  5067. },
  5068. isAddClass() {
  5069. this.dialogVisibleClass = false;
  5070. },
  5071. isAddPPTeacher() {
  5072. this.dialogVisibleMember = false;
  5073. this.setMan();
  5074. },
  5075. getTemplate() {
  5076. this.ajax
  5077. .get(this.$store.state.api + "getCourseTemplateT", "")
  5078. .then((res) => {
  5079. this.templateArray = res.data[0];
  5080. this.getTemplateOid();
  5081. this.$forceUpdate();
  5082. })
  5083. .catch((err) => { });
  5084. },
  5085. getTemplateOid() {
  5086. let params = {
  5087. oid: this.oid,
  5088. };
  5089. this.ajax
  5090. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5091. .then((res) => {
  5092. if (res.data[0].length) {
  5093. this.templateArray = [...res.data[0], ...this.templateArray];
  5094. }
  5095. this.getTemplateOrg();
  5096. this.$forceUpdate();
  5097. })
  5098. .catch((err) => { });
  5099. },
  5100. getTemplateOrg() {
  5101. let params = {
  5102. oid: this.org,
  5103. };
  5104. this.ajax
  5105. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5106. .then((res) => {
  5107. if (res.data[0].length) {
  5108. this.templateArray = [...res.data[0], ...this.templateArray];
  5109. }
  5110. this.$forceUpdate();
  5111. })
  5112. .catch((err) => { });
  5113. },
  5114. clearChoose() {
  5115. this.clearArray.splice(this.templateC.id, 1);
  5116. this.dialogVisible2 = false;
  5117. },
  5118. clearAttText() {
  5119. this.AttText = {
  5120. title: "",
  5121. text: "",
  5122. };
  5123. this.dialogVisible6 = false;
  5124. },
  5125. clearLine() {
  5126. this.line = "";
  5127. this.dialogVisible7 = false;
  5128. },
  5129. checkTemplate(res) {
  5130. let _this = this;
  5131. _this
  5132. .$confirm("确定选择此模板吗?", "提示", {
  5133. confirmButtonText: "确定",
  5134. cancelButtonText: "取消",
  5135. type: "warning",
  5136. })
  5137. .then(() => {
  5138. _this.unitJson = JSON.parse(res.chapters);
  5139. _this.steps++;
  5140. setTimeout(() => {
  5141. this.checkEva(this.checkId);
  5142. }, 1000);
  5143. })
  5144. .catch(() => {
  5145. return;
  5146. });
  5147. },
  5148. checkTemplate1(w) {
  5149. this.steps++;
  5150. },
  5151. checkTemplate2() {
  5152. let _this = this;
  5153. _this
  5154. .$confirm("确定选择空模板吗?", "提示", {
  5155. confirmButtonText: "确定",
  5156. cancelButtonText: "取消",
  5157. type: "warning",
  5158. })
  5159. .then(() => {
  5160. _this.unitIndex = 0;
  5161. _this.unitJson = [
  5162. {
  5163. dyName: "", //单元标题
  5164. chapterInfo: [
  5165. {
  5166. isread: false,
  5167. chapterid: this.guid(),
  5168. title: "",
  5169. courseName: "",
  5170. taskJson: [
  5171. {
  5172. task: "",
  5173. taskDetail: "",
  5174. chapterData: [],
  5175. toolText: "",
  5176. toolChoose: [
  5177. {
  5178. tool: [],
  5179. toolDetail: "",
  5180. toolType: 0,
  5181. askCount: 1,
  5182. askTitle: "",
  5183. askJson: [
  5184. { askstitle: "", askItem: 1, checkList: [] },
  5185. ],
  5186. },
  5187. ],
  5188. isShowTools: false,
  5189. askCount: 1,
  5190. isFold: 0,
  5191. askTitle: "",
  5192. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5193. checkJson: [{ checkCount: [], checkPerent: [] }],
  5194. homeworkList: [],
  5195. },
  5196. ],
  5197. itemCount: 1,
  5198. fileList1: [],
  5199. video: [],
  5200. testData: [],
  5201. pData: [],
  5202. templateArray: [],
  5203. },
  5204. ],
  5205. },
  5206. ];
  5207. this.steps++;
  5208. this.updateWork();
  5209. })
  5210. .catch(() => {
  5211. return;
  5212. });
  5213. },
  5214. checkTemplate3() {
  5215. let _this = this;
  5216. _this
  5217. .$confirm("确定选择简易模式吗?", "提示", {
  5218. confirmButtonText: "确定",
  5219. cancelButtonText: "取消",
  5220. type: "warning",
  5221. })
  5222. .then(() => {
  5223. _this.unitIndex = 0;
  5224. _this.unitJson = [
  5225. {
  5226. dyName: "", //单元标题
  5227. easy: 1,
  5228. chapterInfo: [
  5229. {
  5230. isread: false,
  5231. chapterid: this.guid(),
  5232. title: "",
  5233. courseName: "",
  5234. taskJson: [
  5235. {
  5236. task: "",
  5237. taskDetail: "",
  5238. chapterData: [],
  5239. toolText: "",
  5240. toolChoose: [
  5241. {
  5242. tool: [],
  5243. toolDetail: "",
  5244. toolType: 0,
  5245. askCount: 1,
  5246. askTitle: "",
  5247. askJson: [
  5248. { askstitle: "", askItem: 1, checkList: [] },
  5249. ],
  5250. },
  5251. ],
  5252. isShowTools: false,
  5253. askCount: 1,
  5254. isFold: 0,
  5255. askTitle: "",
  5256. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5257. checkJson: [{ checkCount: [], checkPerent: [] }],
  5258. homeworkList: [],
  5259. },
  5260. ],
  5261. itemCount: 1,
  5262. fileList1: [],
  5263. video: [],
  5264. testData: [],
  5265. pData: [],
  5266. templateArray: [],
  5267. },
  5268. ],
  5269. },
  5270. ];
  5271. this.steps++;
  5272. this.updateWork();
  5273. })
  5274. .catch(() => {
  5275. return;
  5276. });
  5277. },
  5278. checkTemplate4() {
  5279. let _this = this;
  5280. _this
  5281. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5282. confirmButtonText: "确定",
  5283. cancelButtonText: "取消",
  5284. type: "warning",
  5285. })
  5286. .then(() => {
  5287. _this.unitIndex = 0;
  5288. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5289. this.steps++;
  5290. this.updateWork();
  5291. })
  5292. .catch(() => {
  5293. return;
  5294. });
  5295. },
  5296. wordNext() {
  5297. this.dialogVisible2 = false;
  5298. },
  5299. isAddOrUpdateAttText() {
  5300. if (this.AttTextType == 0) {
  5301. this.addAttTextMessage();
  5302. } else {
  5303. this.updateAttText();
  5304. }
  5305. },
  5306. isAddOrUpdateLine() {
  5307. if (!this.lineTitle) {
  5308. this.$message.error("请填写链接标题");
  5309. return;
  5310. }
  5311. if (this.lineType == 0) {
  5312. this.addLine();
  5313. } else {
  5314. this.updateLine();
  5315. }
  5316. },
  5317. addAttTextMessage() {
  5318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5319. this.taskCount
  5320. ].chapterData.push({
  5321. name: this.AttText.title,
  5322. url: this.AttText.text,
  5323. type: 6,
  5324. });
  5325. this.imgChange1(null, null, 6, this.taskCount);
  5326. this.dialogVisible6 = false;
  5327. },
  5328. selectAttText(itemTaskIndex, i) {
  5329. this.AttText.title =
  5330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5331. itemTaskIndex
  5332. ].chapterData[i].name;
  5333. this.AttText.text =
  5334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5335. itemTaskIndex
  5336. ].chapterData[i].url;
  5337. this.taskCount = itemTaskIndex;
  5338. this.AttTextIndex = i;
  5339. this.AttTextType = 1;
  5340. this.dialogVisible6 = true;
  5341. },
  5342. updateAttText() {
  5343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5344. this.taskCount
  5345. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5347. this.taskCount
  5348. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5349. this.dialogVisible6 = false;
  5350. },
  5351. addLine() {
  5352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5353. this.lineCount
  5354. ].chapterData.push({
  5355. name: "链接",
  5356. title: this.lineTitle,
  5357. url: this.line,
  5358. type: 8,
  5359. });
  5360. this.imgChange1(null, null, 8, this.lineCount);
  5361. this.dialogVisible7 = false;
  5362. },
  5363. selectLine(itemTaskIndex, i) {
  5364. this.line =
  5365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5366. itemTaskIndex
  5367. ].chapterData[i].url;
  5368. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5369. itemTaskIndex
  5370. ].chapterData[i].title
  5371. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5372. .chapterData[i].title
  5373. : "";
  5374. this.taskCount = itemTaskIndex;
  5375. this.lineCount = i;
  5376. this.lineType = 1;
  5377. this.dialogVisible7 = true;
  5378. },
  5379. updateLine() {
  5380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5381. this.taskCount
  5382. ].chapterData[this.lineCount].url = this.line;
  5383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5384. this.taskCount
  5385. ].chapterData[this.lineCount].title = this.lineTitle;
  5386. this.dialogVisible7 = false;
  5387. },
  5388. addPP() {
  5389. this.dialogVisible3 = true;
  5390. },
  5391. goTo(path) {
  5392. this.$router.push(path);
  5393. },
  5394. openTools(itemTaskIndex, i, toolIndex) {
  5395. this.toolIndex = toolIndex;
  5396. this.taskCount = itemTaskIndex;
  5397. if (i == 4) {
  5398. if (toolIndex == null) {
  5399. var a =
  5400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5401. .chapterData;
  5402. for (var i = 0; i < a.length; i++) {
  5403. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5404. this.askJson =
  5405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5406. itemTaskIndex
  5407. ].chapterData[i].askJson;
  5408. }
  5409. }
  5410. } else {
  5411. this.askJson = JSON.parse(
  5412. JSON.stringify(
  5413. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5414. itemTaskIndex
  5415. ].toolChoose[toolIndex]
  5416. )
  5417. );
  5418. }
  5419. this.dialogVisible5 = true;
  5420. } else if (i == 45) {
  5421. if (
  5422. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5423. .toolChoose[toolIndex].testJson
  5424. ) {
  5425. this.testJson = JSON.parse(
  5426. JSON.stringify(
  5427. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5428. itemTaskIndex
  5429. ].toolChoose[toolIndex].testJson
  5430. )
  5431. );
  5432. } else {
  5433. var testJson = {
  5434. testCount: 1,
  5435. testTitle: "",
  5436. testJson: [
  5437. {
  5438. teststitle: "",
  5439. testItem: 1,
  5440. checkList: [],
  5441. timuList: [],
  5442. answer: [],
  5443. type: "1",
  5444. },
  5445. ],
  5446. };
  5447. this.testJson = testJson;
  5448. }
  5449. this.dialogVisibleChoice = true;
  5450. } else if (i == 47) {
  5451. if (
  5452. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5453. .toolChoose[toolIndex].sentenceList
  5454. ) {
  5455. this.sentenceList = JSON.parse(
  5456. JSON.stringify(
  5457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5458. itemTaskIndex
  5459. ].toolChoose[toolIndex].sentenceList
  5460. )
  5461. );
  5462. } else {
  5463. var sentenceList = [
  5464. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5465. ];
  5466. this.sentenceList = sentenceList;
  5467. }
  5468. this.dialogVisibleSentence = true;
  5469. } else if (i == 48) {
  5470. if (
  5471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5472. .toolChoose[toolIndex].tableJson
  5473. ) {
  5474. this.tableJson = JSON.parse(
  5475. JSON.stringify(
  5476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5477. itemTaskIndex
  5478. ].toolChoose[toolIndex].tableJson
  5479. )
  5480. );
  5481. } else {
  5482. var tableJson = { text: "" };
  5483. this.tableJson = tableJson;
  5484. }
  5485. this.dialogVisibleTable = true;
  5486. } else if (i == 52) {
  5487. if (
  5488. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5489. .toolChoose[toolIndex].wordJson
  5490. ) {
  5491. this.wordJson = JSON.parse(
  5492. JSON.stringify(
  5493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5494. itemTaskIndex
  5495. ].toolChoose[toolIndex].wordJson
  5496. )
  5497. );
  5498. } else {
  5499. var wordJson = { text: "" };
  5500. this.wordJson = wordJson;
  5501. }
  5502. this.dialogVisibleWord = true;
  5503. // else if (i == 50) {
  5504. // if (
  5505. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5506. // .toolChoose[toolIndex].uploadJson
  5507. // ) {
  5508. // this.uploadJson = JSON.parse(
  5509. // JSON.stringify(
  5510. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5511. // itemTaskIndex
  5512. // ].toolChoose[toolIndex].uploadJson
  5513. // )
  5514. // );
  5515. // } else {
  5516. // var uploadJson = [];
  5517. // this.uploadJson = uploadJson;
  5518. // }
  5519. // this.dialogVisibleMoreUpload = true;
  5520. // }
  5521. } else if (i == 10) {
  5522. if (
  5523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5524. .toolChoose[toolIndex].preTime
  5525. ) {
  5526. this.preTime = JSON.parse(
  5527. JSON.stringify(
  5528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5529. itemTaskIndex
  5530. ].toolChoose[toolIndex].preTime
  5531. )
  5532. );
  5533. } else {
  5534. var preTime = 0;
  5535. this.preTime = preTime;
  5536. }
  5537. this.dialogVisiblePreTime = true;
  5538. } else if (i == 49) {
  5539. if (
  5540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5541. .toolChoose[toolIndex].groupJson
  5542. ) {
  5543. this.groupJson = JSON.parse(
  5544. JSON.stringify(
  5545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5546. itemTaskIndex
  5547. ].toolChoose[toolIndex].groupJson
  5548. )
  5549. );
  5550. } else {
  5551. var groupJson = {
  5552. group: [{ name: "第1组" }],
  5553. number: undefined,
  5554. islock: 1,
  5555. };
  5556. this.groupJson = groupJson;
  5557. }
  5558. this.dialogVisibleGroup = true;
  5559. } else if (i == 62) {
  5560. if (
  5561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5562. .toolChoose[toolIndex].videoJson
  5563. ) {
  5564. this.videoJson = JSON.parse(
  5565. JSON.stringify(
  5566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5567. itemTaskIndex
  5568. ].toolChoose[toolIndex].videoJson
  5569. )
  5570. );
  5571. } else {
  5572. var videoJson = {
  5573. video: "",
  5574. setting: []
  5575. };
  5576. this.videoJson = videoJson;
  5577. }
  5578. this.dialogVisibleVideo = true;
  5579. } else if (i == 15) {
  5580. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5581. itemTaskIndex
  5582. ].toolChoose[toolIndex].answerQ
  5583. ? JSON.parse(
  5584. JSON.stringify(
  5585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5586. itemTaskIndex
  5587. ].toolChoose[toolIndex].answerQ
  5588. )
  5589. )
  5590. : "";
  5591. this.dialogVisible8 = true;
  5592. } else if (i == 40) {
  5593. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5594. itemTaskIndex
  5595. ].toolChoose[toolIndex].rateJson
  5596. ? JSON.parse(
  5597. JSON.stringify(
  5598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5599. itemTaskIndex
  5600. ].toolChoose[toolIndex].rateJson
  5601. )
  5602. )
  5603. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5604. this.selectSteps = 1;
  5605. this.dialogVisibleRate = true;
  5606. } else if (i == 42) {
  5607. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5608. itemTaskIndex
  5609. ].toolChoose[toolIndex].answerQ
  5610. ? JSON.parse(
  5611. JSON.stringify(
  5612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5613. itemTaskIndex
  5614. ].toolChoose[toolIndex].answerQ
  5615. )
  5616. )
  5617. : "";
  5618. this.dialogVisibleMp3 = true;
  5619. } else if (i == 41) {
  5620. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5621. itemTaskIndex
  5622. ].toolChoose[toolIndex].selectJson
  5623. ? JSON.parse(
  5624. JSON.stringify(
  5625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5626. itemTaskIndex
  5627. ].toolChoose[toolIndex].selectJson
  5628. )
  5629. )
  5630. : { url: "", select: [], answer: [] };
  5631. this.selectSteps = 1;
  5632. this.dialogVisibleSelect = true;
  5633. } else if (i == 3) {
  5634. window.parent.postMessage(
  5635. {
  5636. tools: "3y",
  5637. cid: this.cid,
  5638. stage: this.unitIndex,
  5639. task: itemTaskIndex,
  5640. tool: toolIndex,
  5641. },
  5642. "*"
  5643. );
  5644. } else if (i == 1) {
  5645. window.parent.postMessage(
  5646. {
  5647. tools: "1y",
  5648. cid: this.cid,
  5649. stage: this.unitIndex,
  5650. task: itemTaskIndex,
  5651. tool: toolIndex,
  5652. },
  5653. "*"
  5654. );
  5655. }
  5656. },
  5657. chapAddTools(i) {
  5658. if (this.chapTools[0].tools.length == 0) {
  5659. this.chapTools[0].tools.push(i);
  5660. } else {
  5661. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5662. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5663. } else {
  5664. this.chapTools[0].tools.push(i);
  5665. }
  5666. }
  5667. this.$forceUpdate();
  5668. },
  5669. addChaptersDataTools() {
  5670. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5672. this.chapCount
  5673. ].chapterData.push({
  5674. name: this.chapTools[0].toolDetail,
  5675. url: this.chapTools[0].tools,
  5676. type: 7,
  5677. askJson: this.askJson,
  5678. });
  5679. } else {
  5680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5681. this.chapCount
  5682. ].chapterData.push({
  5683. name: this.chapTools[0].toolDetail,
  5684. url: this.chapTools[0].tools,
  5685. type: 7,
  5686. });
  5687. }
  5688. this.imgChange1(null, null, 7, this.chapCount);
  5689. this.dialogVisible4 = false;
  5690. },
  5691. addTools(i, itemTaskIndex, toolIndex) {
  5692. // if (
  5693. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5694. // .toolChoose[toolIndex].tool.length == 0
  5695. // ) {
  5696. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5697. // itemTaskIndex
  5698. // ].toolChoose[toolIndex].tool.push(i);
  5699. // } else {
  5700. // if (
  5701. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5702. // itemTaskIndex
  5703. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5704. // ) {
  5705. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5706. // itemTaskIndex
  5707. // ].toolChoose[toolIndex].tool.splice(
  5708. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5709. // itemTaskIndex
  5710. // ].toolChoose[toolIndex].tool.indexOf(i),
  5711. // 1
  5712. // );
  5713. // } else {
  5714. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5715. // itemTaskIndex
  5716. // ].toolChoose[toolIndex].tool.push(i);
  5717. // }
  5718. // console.log(
  5719. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5720. // .toolChoose[toolIndex].tool
  5721. // );
  5722. // }
  5723. if (i == 4) {
  5724. if (
  5725. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5726. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5728. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5729. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5730. .toolChoose[toolIndex].askJson[0].checkList < 2
  5731. ) {
  5732. this.openTools(itemTaskIndex, 4, toolIndex);
  5733. // this.$message({
  5734. // message: "请填写完整问卷内容",
  5735. // type: "error",
  5736. // });
  5737. return;
  5738. }
  5739. }
  5740. if (i == 45) {
  5741. if (
  5742. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5743. .toolChoose[toolIndex].testJson ||
  5744. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5745. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5746. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5747. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5748. ) {
  5749. this.openTools(itemTaskIndex, 45, toolIndex);
  5750. // this.$message({
  5751. // message: "请填写完整问卷内容",
  5752. // type: "error",
  5753. // });
  5754. return;
  5755. }
  5756. }
  5757. if (i == 47) {
  5758. if (
  5759. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5760. .toolChoose[toolIndex].sentenceList ||
  5761. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5762. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5763. ) {
  5764. this.openTools(itemTaskIndex, 47, toolIndex);
  5765. return;
  5766. }
  5767. }
  5768. // if (i == 48) {
  5769. // if (
  5770. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5771. // .toolChoose[toolIndex].tableJson
  5772. // ) {
  5773. // this.openTools(itemTaskIndex, 48, toolIndex);
  5774. // return;
  5775. // }
  5776. // }
  5777. // if (i == 50) {
  5778. // if (
  5779. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5780. // .toolChoose[toolIndex].uploadJson
  5781. // ) {
  5782. // this.openTools(itemTaskIndex, 50, toolIndex);
  5783. // return;
  5784. // }
  5785. // }
  5786. if (i == 49) {
  5787. if (
  5788. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5789. .toolChoose[toolIndex].groupJson
  5790. ) {
  5791. this.openTools(itemTaskIndex, 49, toolIndex);
  5792. return;
  5793. }
  5794. }
  5795. if (i == 62) {
  5796. if (
  5797. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5798. .toolChoose[toolIndex].videoJson
  5799. ) {
  5800. this.openTools(itemTaskIndex, 62, toolIndex);
  5801. return;
  5802. }
  5803. }
  5804. if (i == 15) {
  5805. if (
  5806. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5807. .toolChoose[toolIndex].answerQ ||
  5808. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5809. .toolChoose[toolIndex].answerQ == ""
  5810. ) {
  5811. this.openTools(itemTaskIndex, 15, toolIndex);
  5812. // this.$message({
  5813. // message: "请填写问答内容",
  5814. // type: "error",
  5815. // });
  5816. return;
  5817. }
  5818. }
  5819. if (i == 40) {
  5820. if (
  5821. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5822. .toolChoose[toolIndex].rateJson ||
  5823. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5824. .toolChoose[toolIndex].rateJson.length
  5825. ) {
  5826. this.openTools(itemTaskIndex, 40, toolIndex);
  5827. return;
  5828. }
  5829. }
  5830. if (i == 41) {
  5831. if (
  5832. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5833. .toolChoose[toolIndex].selectJson ||
  5834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5835. .toolChoose[toolIndex].selectJson.url == "" ||
  5836. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5837. .toolChoose[toolIndex].selectJson.select.length ||
  5838. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5839. .toolChoose[toolIndex].selectJson.answer.length
  5840. ) {
  5841. this.openTools(itemTaskIndex, 41, toolIndex);
  5842. return;
  5843. }
  5844. }
  5845. if (i == 42) {
  5846. if (
  5847. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5848. .toolChoose[toolIndex].answerQ ||
  5849. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5850. .toolChoose[toolIndex].answerQ == ""
  5851. ) {
  5852. this.openTools(itemTaskIndex, 42, toolIndex);
  5853. return;
  5854. }
  5855. }
  5856. if (
  5857. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5858. .toolChoose[toolIndex].tool.length > 0
  5859. ) {
  5860. if (
  5861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5862. itemTaskIndex
  5863. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5864. ) {
  5865. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5866. itemTaskIndex
  5867. ].toolChoose[toolIndex].tool.splice(
  5868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5869. itemTaskIndex
  5870. ].toolChoose[toolIndex].tool.indexOf(i),
  5871. 1
  5872. );
  5873. } else {
  5874. // this.$message({
  5875. // message: "每个工具只能添加一个",
  5876. // type: "error",
  5877. // });
  5878. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5879. itemTaskIndex
  5880. ].toolChoose[toolIndex].tool = [];
  5881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5882. itemTaskIndex
  5883. ].toolChoose[toolIndex].tool.push(i);
  5884. }
  5885. } else {
  5886. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5887. itemTaskIndex
  5888. ].toolChoose[toolIndex].tool.push(i);
  5889. }
  5890. this.$forceUpdate();
  5891. },
  5892. addAskList() {
  5893. this.askJson.askJson.push({
  5894. askstitle: "",
  5895. askItem: 1,
  5896. checkList: [],
  5897. });
  5898. this.askJson.askCount++;
  5899. },
  5900. addTestList() {
  5901. this.testJson.testJson.push({
  5902. teststitle: "",
  5903. testItem: 1,
  5904. checkList: [],
  5905. timuList: [],
  5906. answer: [],
  5907. type: "1",
  5908. });
  5909. this.testJson.testCount++;
  5910. },
  5911. deleteAskList(index) {
  5912. this.askJson.askJson.splice(index, 1);
  5913. this.askJson.askCount--;
  5914. },
  5915. deleteTestList(index) {
  5916. this.testJson.testJson.splice(index, 1);
  5917. this.testJson.testCount--;
  5918. },
  5919. addcheckList(json) {
  5920. json.checkList.length++;
  5921. json.askItem++;
  5922. },
  5923. deletecheckList(json) {
  5924. json.checkList.length--;
  5925. json.askItem--;
  5926. },
  5927. addTcheckList(json) {
  5928. json.checkList.length++;
  5929. json.testItem++;
  5930. },
  5931. deleteTcheckList(json) {
  5932. json.checkList.length--;
  5933. json.testItem--;
  5934. },
  5935. checkTestType(type, json) {
  5936. json.type = type;
  5937. json.answer = [];
  5938. },
  5939. checkAskType(type, json) {
  5940. json.type = type;
  5941. json.checkList = [];
  5942. },
  5943. addSelectList(json) {
  5944. json.select.push("");
  5945. json.answer.push("");
  5946. },
  5947. deleteSelectList(json) {
  5948. // json.select.length--;
  5949. // json.answer.length--;
  5950. json.select.splice(json.select.length - 1, 1);
  5951. json.answer.splice(json.answer.length - 1, 1);
  5952. },
  5953. addAsk() {
  5954. if (this.askJson.askTitle === "") {
  5955. this.$message.error("标题不能为空!");
  5956. return;
  5957. }
  5958. var aj = this.askJson.askJson;
  5959. var b = 1;
  5960. for (var i = 0; i < aj.length; i++) {
  5961. if (aj[i].askstitle === "") {
  5962. var a = 1;
  5963. for (let index = 0; index < aj[i].askItem; index++) {
  5964. const element = aj[i].checkList[index]
  5965. ? aj[i].checkList[index]
  5966. : "";
  5967. if (element != "") {
  5968. b++;
  5969. this.$message.error("填写了选项,题目不能为空!");
  5970. return;
  5971. } else {
  5972. a++;
  5973. }
  5974. }
  5975. if (b == 1) {
  5976. this.$message.error("至少填写一个问题");
  5977. return;
  5978. }
  5979. } else if (aj[i].askstitle != "") {
  5980. for (let index = 0; index < aj[i].askItem; index++) {
  5981. const element = aj[i].checkList[index]
  5982. ? aj[i].checkList[index]
  5983. : "";
  5984. var index = 0;
  5985. for (var z = 0; z < aj[i].checkList.length; z++) {
  5986. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5987. if (checkC != "") {
  5988. index++;
  5989. } else {
  5990. this.$message.error("选项不能为空!");
  5991. return;
  5992. }
  5993. }
  5994. b++;
  5995. if (index < 2) {
  5996. this.$message.error("填写了的题目,选项至少要有两项!");
  5997. return;
  5998. }
  5999. }
  6000. }
  6001. }
  6002. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6003. var elc = el.checkList.filter((element) => {
  6004. return element != "";
  6005. });
  6006. return el.askstitle != "" && elc.length != 0;
  6007. });
  6008. if (!this.dialogVisible4) {
  6009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6010. this.taskCount
  6011. ].toolChoose[this.toolIndex] = this.askJson;
  6012. }
  6013. this.dialogVisible5 = false;
  6014. if (
  6015. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6016. .toolChoose[this.toolIndex].tool != 4
  6017. ) {
  6018. this.addTools(4, this.taskCount, this.toolIndex);
  6019. }
  6020. },
  6021. addTest() {
  6022. // if (this.testJson.testTitle === "") {
  6023. // this.$message.error("标题不能为空!");
  6024. // return;
  6025. // }
  6026. var aj = this.testJson.testJson;
  6027. var b = 1;
  6028. for (var i = 0; i < aj.length; i++) {
  6029. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6030. var a = 1;
  6031. for (let index = 0; index < aj[i].testItem; index++) {
  6032. const element = aj[i].checkList[index]
  6033. ? aj[i].checkList[index]
  6034. : "";
  6035. if (element != "") {
  6036. b++;
  6037. this.$message.error("填写了选项,题目不能为空!");
  6038. return;
  6039. } else {
  6040. a++;
  6041. }
  6042. }
  6043. if (b == 1) {
  6044. this.$message.error("至少填写一个问题");
  6045. return;
  6046. }
  6047. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6048. for (let index = 0; index < aj[i].testItem; index++) {
  6049. const element = aj[i].checkList[index]
  6050. ? aj[i].checkList[index]
  6051. : "";
  6052. var index = 0;
  6053. for (var z = 0; z < aj[i].checkList.length; z++) {
  6054. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6055. if (checkC != "") {
  6056. index++;
  6057. } else {
  6058. this.$message.error("选项不能为空!");
  6059. return;
  6060. }
  6061. }
  6062. b++;
  6063. if (index < 2) {
  6064. this.$message.error("填写了的题目,选项至少要有两项!");
  6065. return;
  6066. }
  6067. if (
  6068. (aj[i].type == "2" && !aj[i].answer.length) ||
  6069. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6070. ) {
  6071. this.$message.error("有题目未选择答案请选择答案");
  6072. return;
  6073. }
  6074. }
  6075. }
  6076. }
  6077. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6078. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6079. var elc = el.checkList.filter((element) => {
  6080. return element != "";
  6081. });
  6082. return (
  6083. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6084. );
  6085. });
  6086. isTestJson.testCount = isTestJson.testJson.length;
  6087. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6088. this.taskCount
  6089. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6090. this.dialogVisibleChoice = false;
  6091. if (
  6092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6093. .toolChoose[this.toolIndex].tool != 45
  6094. ) {
  6095. this.addTools(45, this.taskCount, this.toolIndex);
  6096. }
  6097. },
  6098. addVideoJson(videoJson) {
  6099. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6100. this.taskCount
  6101. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6102. this.dialogVisibleVideo = false;
  6103. if (
  6104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6105. .toolChoose[this.toolIndex].tool != 62
  6106. ) {
  6107. this.addTools(62, this.taskCount, this.toolIndex);
  6108. }
  6109. },
  6110. //自动获取剪贴板
  6111. pasteOption() {
  6112. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6113. if (!iframe) {
  6114. this.$message.error("请使用AI共创生成题目")
  6115. return;
  6116. }
  6117. let copyData = iframe.contentWindow.copyData
  6118. if (!copyData || !copyData.selectData.length) {
  6119. this.$message.error("请使用AI共创生成题目")
  6120. return;
  6121. }
  6122. let selectData = copyData.selectData;
  6123. for (var i = 0; i < selectData.length; i++) {
  6124. let answer = 0
  6125. switch (selectData[i].answer[0]) {
  6126. case 'A':
  6127. answer = 0
  6128. break;
  6129. case 'B':
  6130. answer = 1
  6131. break;
  6132. case 'C':
  6133. answer = 2
  6134. break;
  6135. case 'D':
  6136. answer = 3
  6137. break;
  6138. case 'E':
  6139. answer = 4
  6140. break;
  6141. default:
  6142. break;
  6143. }
  6144. this.testJson.testJson.push({
  6145. teststitle: selectData[i].subject,
  6146. testItem: selectData[i].options.length,
  6147. checkList: selectData[i].options,
  6148. timuList: [],
  6149. answer: answer,
  6150. type: "1",
  6151. });
  6152. this.testJson.testCount++;
  6153. }
  6154. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6155. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6156. var elc = el.checkList.filter((element) => {
  6157. return element != "";
  6158. });
  6159. return (
  6160. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6161. );
  6162. });
  6163. isTestJson.testCount = isTestJson.testJson.length;
  6164. this.testJson = isTestJson
  6165. this.$forceUpdate();
  6166. },
  6167. pasteTask() {
  6168. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6169. if (!iframe) {
  6170. this.$message.error("请使用AI共创生成")
  6171. return;
  6172. }
  6173. let copyData = iframe.contentWindow.copyData
  6174. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6175. this.$message.error("请使用AI共创生成")
  6176. return;
  6177. }
  6178. let stageTasksData = copyData.tasksData;
  6179. let taskA = []
  6180. let tasks = stageTasksData
  6181. for (var j = 0; j < tasks.length; j++) {
  6182. taskA.push({
  6183. task: tasks[j].taskName,
  6184. taskDetail: tasks[j].taskDecs,
  6185. chapterData: [],
  6186. toolText: "",
  6187. toolChoose: [
  6188. {
  6189. tool: [],
  6190. toolDetail: "",
  6191. toolType: 0,
  6192. askCount: 1,
  6193. askTitle: "",
  6194. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6195. },
  6196. ],
  6197. isShowTools: false,
  6198. askCount: 1,
  6199. isFold: 0,
  6200. askTitle: "",
  6201. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6202. checkJson: [{ checkCount: [], checkPerent: [] }],
  6203. homeworkList: [],
  6204. })
  6205. }
  6206. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA
  6207. this.$forceUpdate();
  6208. },
  6209. pasteStage() {
  6210. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6211. if (!iframe) {
  6212. this.$message.error("请使用AI共创生成")
  6213. return;
  6214. }
  6215. let copyData = iframe.contentWindow.copyData
  6216. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6217. this.$message.error("请使用AI共创生成")
  6218. return;
  6219. }
  6220. let stageData = copyData.stageData;
  6221. let stage = []
  6222. for (var i = 0; i < stageData.length; i++) {
  6223. stage.push({
  6224. dyName: stageData[i], //单元标题
  6225. chapterInfo: [
  6226. {
  6227. isread: false,
  6228. chapterid: this.guid(),
  6229. title: "",
  6230. courseName: "",
  6231. taskJson: [
  6232. {
  6233. task: "",
  6234. taskDetail: "",
  6235. chapterData: [],
  6236. toolText: "",
  6237. toolChoose: [
  6238. {
  6239. tool: [],
  6240. toolDetail: "",
  6241. toolType: 0,
  6242. askCount: 1,
  6243. askTitle: "",
  6244. askJson: [
  6245. { askstitle: "", askItem: 1, checkList: [] },
  6246. ],
  6247. },
  6248. ],
  6249. isShowTools: false,
  6250. askCount: 1,
  6251. isFold: 0,
  6252. askTitle: "",
  6253. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6254. checkJson: [{ checkCount: [], checkPerent: [] }],
  6255. homeworkList: [],
  6256. },
  6257. ],
  6258. itemCount: 1,
  6259. fileList1: [],
  6260. video: [],
  6261. testData: [],
  6262. pData: [],
  6263. templateArray: [],
  6264. },
  6265. ],
  6266. },)
  6267. }
  6268. let _this = this;
  6269. _this
  6270. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6271. confirmButtonText: "确定",
  6272. cancelButtonText: "取消",
  6273. type: "warning",
  6274. })
  6275. .then(() => {
  6276. _this.unitIndex = 0;
  6277. _this.unitJson = stage;
  6278. _this.steps++;
  6279. _this.updateWork();
  6280. })
  6281. .catch(() => {
  6282. return;
  6283. });
  6284. },
  6285. addAnswer() {
  6286. if (this.answerQ == "") {
  6287. this.$message.error("请输入您想要问的问题");
  6288. return;
  6289. }
  6290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6291. this.taskCount
  6292. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6293. this.dialogVisible8 = false;
  6294. if (
  6295. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6296. .toolChoose[this.toolIndex].tool != 15
  6297. ) {
  6298. this.addTools(15, this.taskCount, this.toolIndex);
  6299. }
  6300. },
  6301. addMp3Answer() {
  6302. if (this.answerQ == "") {
  6303. this.$message.error("请输入您想要回答的问题");
  6304. return;
  6305. }
  6306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6307. this.taskCount
  6308. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6309. this.dialogVisibleMp3 = false;
  6310. },
  6311. addRateAnswer() {
  6312. var a = 1;
  6313. for (var i = 0; i < this.rateJson.length; i++) {
  6314. if (this.rateJson[i].value == "") {
  6315. a = 2;
  6316. break;
  6317. }
  6318. }
  6319. if (a == 2) {
  6320. this.$message.error("请把评价信息填写完整");
  6321. return;
  6322. }
  6323. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6324. this.taskCount
  6325. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6326. this.dialogVisibleRate = false;
  6327. if (
  6328. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6329. .toolChoose[this.toolIndex].tool != 40
  6330. ) {
  6331. this.addTools(40, this.taskCount, this.toolIndex);
  6332. }
  6333. },
  6334. addSelectAnswer() {
  6335. if (this.selectJson.url == "") {
  6336. this.$message.error("请上传题目");
  6337. return;
  6338. }
  6339. if (!this.selectJson.select.length) {
  6340. this.$message.error("请添加选项");
  6341. return;
  6342. }
  6343. if (!this.selectJson.answer.length) {
  6344. this.$message.error("请设置答案");
  6345. return;
  6346. }
  6347. var a = 1;
  6348. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6349. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6350. a = 2;
  6351. }
  6352. }
  6353. if (a == 2) {
  6354. this.$message.error("请设置答案");
  6355. return;
  6356. }
  6357. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6358. this.taskCount
  6359. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6360. this.dialogVisibleSelect = false;
  6361. if (
  6362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6363. .toolChoose[this.toolIndex].tool != 41
  6364. ) {
  6365. this.addTools(41, this.taskCount, this.toolIndex);
  6366. }
  6367. },
  6368. nextSelectSteps() {
  6369. if (this.selectJson.url == "") {
  6370. this.$message.error("请上传题目");
  6371. return;
  6372. }
  6373. if (!this.selectJson.select.length) {
  6374. this.$message.error("请添加选项");
  6375. return;
  6376. }
  6377. var a = 1;
  6378. for (var i = 0; i < this.selectJson.select.length; i++) {
  6379. if (!this.selectJson.select[i]) {
  6380. a = 2;
  6381. }
  6382. }
  6383. if (a == 2) {
  6384. this.$message.error("添加的选项不能为空");
  6385. return;
  6386. }
  6387. this.selectSteps++;
  6388. },
  6389. selectCourseDetail() {
  6390. if (this.cid == "" || this.cid == undefined) {
  6391. console.log("这是新增课程");
  6392. this.selectAllType();
  6393. } else {
  6394. this.cidType = 1;
  6395. let params = {
  6396. cid: this.cid,
  6397. };
  6398. this.ajax
  6399. .get(this.$store.state.api + "select_course_detail", params)
  6400. .then((res) => {
  6401. this.loading = true;
  6402. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6403. for (var j = 0; j < this.unitJson.length; j++) {
  6404. for (
  6405. var k = 0;
  6406. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6407. k++
  6408. ) {
  6409. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6410. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6411. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6412. : [];
  6413. let _chapterData = [];
  6414. for (
  6415. var c = 0;
  6416. c <
  6417. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6418. .length;
  6419. c++
  6420. ) {
  6421. if (
  6422. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6423. ) {
  6424. _chapterData.push(
  6425. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6426. );
  6427. }
  6428. }
  6429. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6430. _chapterData;
  6431. }
  6432. }
  6433. this.$forceUpdate();
  6434. this.courseName = res.data[0][0].title;
  6435. this.courseText = res.data[0][0].brief;
  6436. this.evalua = res.data[0][0].evaId;
  6437. this.cover = JSON.parse(res.data[0][0].cover);
  6438. this.noneBtnImg = this.cover.length >= 1;
  6439. // this.checkboxList =
  6440. // res.data[0][0].course_student.length > 0
  6441. // ? JSON.parse(res.data[0][0].course_student)
  6442. // : [];
  6443. this.checkboxList2 = res.data[0][0].juri
  6444. ? res.data[0][0].juri.split(",")
  6445. : [];
  6446. this.inviteCode = [];
  6447. for (var i = 0; i < res.data[2].length; i++) {
  6448. this.inviteCode.push({
  6449. cid: res.data[2][i].classid,
  6450. ic: res.data[2][i].code,
  6451. });
  6452. }
  6453. this.checkboxList3 = res.data[0][0].course_teacher
  6454. ? res.data[0][0].course_teacher.split(",")
  6455. : [];
  6456. // this.isTeacherSee =
  6457. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6458. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6459. this.myWord = res.data[0][0].template;
  6460. this.templateC.id = "123";
  6461. this.courseUserid = res.data[0][0].userid;
  6462. // if(this.courseUserid == this.userid){
  6463. // this.InviteChange(this.checkboxList2)
  6464. // }
  6465. this.nbOrder = res.data[0][0].ordernumber;
  6466. this.courseTypeId = [];
  6467. for (var i = 0; i < res.data[1].length; i++) {
  6468. this.courseTypeId.push(res.data[1][i].typeid);
  6469. }
  6470. console.log(this.courseTypeId);
  6471. // if (this.timer) clearInterval(this.timer);
  6472. if (this.timer) clearTimeout(this.timer);
  6473. this.timer = null;
  6474. // this.timer = setInterval(() => {
  6475. // this.seleteCourseUpdate();
  6476. this.setMan();
  6477. this.selectAllType();
  6478. // }, 5000);
  6479. this.$forceUpdate();
  6480. setTimeout(() => {
  6481. this.checkEva(this.evalua);
  6482. }, 0);
  6483. })
  6484. .catch((err) => {
  6485. console.error(err);
  6486. });
  6487. }
  6488. },
  6489. seleteCourseUpdate() {
  6490. let params = {
  6491. cid: this.cid,
  6492. };
  6493. this.ajax
  6494. .get(this.$store.state.api + "select_course_detail", params)
  6495. .then((res) => {
  6496. // console.log(this.unitJson);
  6497. let unitJson = JSON.parse(res.data[0][0].chapters);
  6498. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6499. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6500. let _unitJson = [];
  6501. let _chapAarry = [];
  6502. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6503. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6504. let index = 1;
  6505. let chapindex;
  6506. if (_unitJson2.length > unitJson.length) {
  6507. for (let c = 0; c < _unitJson2.length; c++) {
  6508. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6509. }
  6510. for (let j = 0; j < unitJson.length; j++) {
  6511. let count = 0;
  6512. for (let k = 0; k < _unitJson2.length; k++) {
  6513. if (
  6514. unitJson[j].chapterInfo[0].chapterid ==
  6515. _unitJson2[k].chapterInfo[0].chapterid
  6516. ) {
  6517. count++;
  6518. _chapAarry.splice(
  6519. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6520. 1
  6521. );
  6522. _unitJson.push(unitJson[j]);
  6523. break;
  6524. }
  6525. }
  6526. // if(count === 0){
  6527. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6528. // }
  6529. }
  6530. for (let k = 0; k < _unitJson2.length; k++) {
  6531. if (_unitJson2[k].isUpdate == 1) {
  6532. _chapAarry.splice(
  6533. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6534. 1
  6535. );
  6536. _unitJson.push(_unitJson2[k]);
  6537. }
  6538. }
  6539. console.log(_chapAarry);
  6540. for (let d = 0; d < _unitJson2.length; d++) {
  6541. if (
  6542. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6543. ) {
  6544. if (_unitIndex == d) {
  6545. index = 2;
  6546. }
  6547. chapindex = d;
  6548. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6549. }
  6550. }
  6551. } else {
  6552. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6553. }
  6554. for (let i = 0; i < unitJson.length; i++) {
  6555. if (
  6556. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6557. _unitJson[i].chapterInfo[0].chapterid !=
  6558. unitJson[i].chapterInfo[0].chapterid
  6559. ) {
  6560. if (i == _unitJson.length - 1) {
  6561. // this.unitIndex++
  6562. _unitIndex2++;
  6563. }
  6564. _unitJson.splice(i, 0, unitJson[i]);
  6565. } else if (i > _unitJson.length - 1) {
  6566. _unitJson.push(unitJson[i]);
  6567. } else if (
  6568. _unitJson[i].chapterInfo[0].chapterid ==
  6569. unitJson[i].chapterInfo[0].chapterid
  6570. ) {
  6571. _unitJson[i] = unitJson[i];
  6572. }
  6573. // if (i == _unitIndex) {
  6574. // continue;
  6575. // } else
  6576. }
  6577. if (_chapAarry.length && index != 2) {
  6578. if (chapindex < _unitIndex) {
  6579. this.isDelete = 2;
  6580. // this.unitIndex--;
  6581. _unitIndex2--;
  6582. } else if (
  6583. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6584. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6585. ) {
  6586. this.isDelete = 2;
  6587. for (let n = 0; n < _unitJson.length; n++) {
  6588. if (
  6589. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6590. _unitJson[n].chapterInfo[0].chapterid
  6591. ) {
  6592. // this.unitIndex = n;
  6593. _unitIndex2 = n;
  6594. _unitJson[n] = _unitJson2[_unitIndex];
  6595. break;
  6596. }
  6597. }
  6598. }
  6599. } else if (index != 2) {
  6600. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6601. _unitJson2[_unitIndex];
  6602. for (
  6603. var ci = 0;
  6604. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6605. ci++
  6606. ) {
  6607. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6608. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6609. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6610. .toolChoose
  6611. : [];
  6612. let _chapterData = [];
  6613. for (
  6614. var c = 0;
  6615. c <
  6616. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6617. .length;
  6618. c++
  6619. ) {
  6620. if (
  6621. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6622. .chapterData[c]
  6623. ) {
  6624. _chapterData.push(
  6625. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6626. .chapterData[c]
  6627. );
  6628. }
  6629. }
  6630. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6631. _chapterData;
  6632. }
  6633. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6634. }
  6635. if (index == 1) {
  6636. this.unitJson = _unitJson;
  6637. this.$forceUpdate();
  6638. setTimeout(() => {
  6639. if (this.unitIndex != _unitIndex2) {
  6640. this.isDelete = 2;
  6641. this.unitIndex = _unitIndex2;
  6642. }
  6643. }, 0);
  6644. this.timer = setTimeout(() => {
  6645. this.seleteCourseUpdate();
  6646. }, 1000);
  6647. } else if (index == 2) {
  6648. let _this = this;
  6649. _this
  6650. .$confirm(
  6651. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6652. "提示",
  6653. {
  6654. confirmButtonText: "需要",
  6655. cancelButtonText: "取消",
  6656. type: "warning",
  6657. }
  6658. )
  6659. .then(() => {
  6660. if (_this.time()) {
  6661. _this.restoreWork(
  6662. _chapAarry[0],
  6663. _unitJson,
  6664. chapindex,
  6665. _unitJson2,
  6666. _unitIndex2
  6667. );
  6668. }
  6669. })
  6670. .catch(() => {
  6671. _this.unitJson = _unitJson;
  6672. _this.$forceUpdate();
  6673. setTimeout(() => {
  6674. if (this.unitIndex != _unitIndex2) {
  6675. this.isDelete = 2;
  6676. this.unitIndex = _unitIndex2;
  6677. }
  6678. }, 0);
  6679. _this.timer = setTimeout(() => {
  6680. _this.seleteCourseUpdate();
  6681. }, 1000);
  6682. });
  6683. }
  6684. })
  6685. .catch((err) => {
  6686. console.error(err);
  6687. });
  6688. },
  6689. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6690. let params = [
  6691. {
  6692. cid: this.cid,
  6693. chapters: JSON.stringify(this.unitJson),
  6694. uid: this.userid,
  6695. chapid: chapid,
  6696. },
  6697. ];
  6698. this.ajax
  6699. .post(this.$store.state.api + "restoreWork", params)
  6700. .then((res) => {
  6701. this.$message({
  6702. message: "恢复成功",
  6703. type: "success",
  6704. });
  6705. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6706. this.unitJson = unitJson;
  6707. this.$forceUpdate();
  6708. setTimeout(() => {
  6709. if (this.unitIndex != unitIndex2) {
  6710. this.isDelete = 2;
  6711. this.unitIndex = unitIndex2;
  6712. }
  6713. }, 0);
  6714. this.timer = setTimeout(() => {
  6715. this.seleteCourseUpdate();
  6716. }, 1000);
  6717. })
  6718. .catch((err) => {
  6719. this.$message.error("网络不佳");
  6720. console.error(err);
  6721. });
  6722. },
  6723. getTypeName() {
  6724. console.log(this.courseTypeId);
  6725. this.$forceUpdate();
  6726. },
  6727. selectAllType() {
  6728. let params = {
  6729. org: this.org && this.org != "" ? this.org : "",
  6730. oid: this.oid && this.oid != "" ? this.oid : "",
  6731. };
  6732. this.ajax
  6733. .get(this.$store.state.api + "selectAllType", params)
  6734. .then((res) => {
  6735. this.CourseType = res.data;
  6736. this.CourseType2 = [
  6737. { name: "智见课程", id: [] },
  6738. { name: "智行课程", id: [] },
  6739. { name: "智创课程", id: [] },
  6740. ];
  6741. for (var cti = 0; cti < res.data[0].length; cti++) {
  6742. if (
  6743. res.data[0][cti].name == "年级" ||
  6744. res.data[0][cti].name == "学科"
  6745. ) {
  6746. this.CourseType2[1].id.push(res.data[0][cti].id);
  6747. this.CourseType2[0].id.push(res.data[0][cti].id);
  6748. } else if (res.data[0][cti].name == "主题") {
  6749. this.CourseType2[2].id.push(res.data[0][cti].id);
  6750. }
  6751. }
  6752. let _courseTypeId = [];
  6753. for (var i = 0; i < res.data[0].length; i++) {
  6754. if (!this.cid) {
  6755. this.courseTypeId[res.data[0][i].id] = [];
  6756. }
  6757. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6758. // }
  6759. this.CourseTypeJson[res.data[0][i].id] = [];
  6760. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6761. if (res.data[0][i].name == "栏目") {
  6762. this.CourseType[0][i].name = "主题";
  6763. }
  6764. }
  6765. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6766. for (var j = 0; j < res.data[1].length; j++) {
  6767. if (
  6768. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6769. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6770. ) {
  6771. _courseTypeId.push(res.data[1][j].id);
  6772. }
  6773. if (res.data[0][i].id == res.data[1][j].pid) {
  6774. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6775. }
  6776. }
  6777. } else {
  6778. if (res.data[2].length > 0) {
  6779. for (var j = 0; j < res.data[2].length; j++) {
  6780. if (
  6781. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6782. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6783. ) {
  6784. _courseTypeId.push(res.data[2][j].id);
  6785. }
  6786. if (res.data[0][i].id == res.data[2][j].pid) {
  6787. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6788. }
  6789. }
  6790. }
  6791. if (res.data[3].length > 0) {
  6792. for (var j = 0; j < res.data[3].length; j++) {
  6793. if (
  6794. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6795. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6796. ) {
  6797. _courseTypeId.push(res.data[3][j].id);
  6798. }
  6799. if (res.data[0][i].id == res.data[3][j].pid) {
  6800. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6801. }
  6802. }
  6803. }
  6804. }
  6805. }
  6806. this.courseTypeId = _courseTypeId;
  6807. })
  6808. .catch((err) => {
  6809. console.error(err);
  6810. });
  6811. },
  6812. selectType() {
  6813. this.ajax
  6814. .get(this.$store.state.api + "selectType")
  6815. .then((res) => {
  6816. this.CourseType = res.data;
  6817. for (var i = 0; i < res.data[0].length; i++) {
  6818. if (!this.cid) {
  6819. this.courseTypeId[res.data[0][i].id] = "";
  6820. }
  6821. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6822. if (res.data[0][i].name == "栏目") {
  6823. this.CourseType[0][i].name = "主题";
  6824. }
  6825. }
  6826. for (var j = 0; j < res.data[1].length; j++) {
  6827. if (res.data[0][i].id == res.data[1][j].pid) {
  6828. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6829. this.CourseTypeJson[res.data[0][i].id] = [];
  6830. }
  6831. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6832. }
  6833. }
  6834. }
  6835. this.selectTypeByOid();
  6836. this.selectTypeByOrg();
  6837. })
  6838. .catch((err) => {
  6839. console.error(err);
  6840. });
  6841. },
  6842. selectTypeByOid() {
  6843. let params = {
  6844. oid: this.oid,
  6845. };
  6846. this.ajax
  6847. .get(this.$store.state.api + "selectTypeByOid", params)
  6848. .then((res) => {
  6849. for (var i = 0; i < res.data[0].length; i++) {
  6850. for (var j = 0; j < res.data[1].length; j++) {
  6851. if (res.data[0][i].id == res.data[1][j].pid) {
  6852. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6853. this.CourseTypeJson[res.data[0][i].id] = [];
  6854. }
  6855. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6856. }
  6857. }
  6858. }
  6859. })
  6860. .catch((err) => {
  6861. console.error(err);
  6862. });
  6863. },
  6864. selectTypeByOrg() {
  6865. let params = {
  6866. oid: this.org,
  6867. };
  6868. this.ajax
  6869. .get(this.$store.state.api + "selectTypeByOrg", params)
  6870. .then((res) => {
  6871. for (var i = 0; i < res.data[0].length; i++) {
  6872. for (var j = 0; j < res.data[1].length; j++) {
  6873. if (res.data[0][i].id == res.data[1][j].pid) {
  6874. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6875. this.CourseTypeJson[res.data[0][i].id] = [];
  6876. }
  6877. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6878. }
  6879. }
  6880. }
  6881. this.$forceUpdate();
  6882. })
  6883. .catch((err) => {
  6884. console.error(err);
  6885. });
  6886. },
  6887. OtherMb(type) {
  6888. this.typeMode = type;
  6889. setTimeout(() => {
  6890. this.checkEva(this.checkId);
  6891. }, 0);
  6892. },
  6893. openMember() {
  6894. this.searchTN = "";
  6895. this.getTeacher();
  6896. this.dialogVisibleMember = true;
  6897. },
  6898. checkEva(id, type) {
  6899. this.dialogVisiblemb = false;
  6900. this.selectEva();
  6901. if (this.evalua != id && type == 2) {
  6902. this.$message.success("导入成功");
  6903. }
  6904. this.evalua = id;
  6905. this.checkId = id;
  6906. if (this.evalua != "") {
  6907. for (var i = 0; i < this.evaJuri.length; i++) {
  6908. if (this.evalua == this.evaJuri[i].id) {
  6909. this.eTitle = this.evaJuri[i].title;
  6910. this.eJson = JSON.parse(this.evaJuri[i].content);
  6911. }
  6912. }
  6913. this.data.data = [];
  6914. this.$forceUpdate();
  6915. setTimeout(() => {
  6916. this.setMindData();
  6917. }, 500);
  6918. }
  6919. },
  6920. deleteEva() {
  6921. let _this = this;
  6922. if (_this.evalua == "") {
  6923. this.$message.warning("内容已经清空了,请勿重复清空");
  6924. return;
  6925. }
  6926. _this
  6927. .$confirm("确定删除此目标吗?", "提示", {
  6928. confirmButtonText: "确定",
  6929. cancelButtonText: "取消",
  6930. type: "warning",
  6931. })
  6932. .then(() => {
  6933. _this.evalua = "";
  6934. _this.checkId = "";
  6935. _this.eTitle = "";
  6936. let _unitJson = _this.unitJson;
  6937. for (var i = 0; i < _unitJson.length; i++) {
  6938. let _task = _unitJson[i].chapterInfo[0].taskJson;
  6939. for (var j = 0; j < _task.length; j++) {
  6940. let _eList = _task[j].eList;
  6941. for (var k = 0; k < _eList.length; k++) {
  6942. delete _eList[k].target;
  6943. }
  6944. }
  6945. }
  6946. _this.$forceUpdate();
  6947. if (_this.cid) {
  6948. _this.updateWork();
  6949. }
  6950. })
  6951. .catch(() => {
  6952. return;
  6953. });
  6954. },
  6955. selectEva() {
  6956. let params = {
  6957. oid: this.oid,
  6958. };
  6959. this.ajax
  6960. .get(this.$store.state.api + "selectAllEvaluation", params)
  6961. .then((res) => {
  6962. this.evaJuri = res.data[0];
  6963. })
  6964. .catch((err) => {
  6965. console.error(err);
  6966. });
  6967. },
  6968. setMindData() {
  6969. let targetArray = [];
  6970. this.data.data = [];
  6971. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6972. let _eJson = Object.keys(this.eJson);
  6973. let _e = this.eJson;
  6974. for (let i = 0; i < _eJson.length; i++) {
  6975. let element = _e[_eJson[i]];
  6976. this.data.data.push({
  6977. id: element.id,
  6978. parentid: "root",
  6979. topic: element.name,
  6980. });
  6981. // targetArray.push({
  6982. // id: element.id,
  6983. // parentid: "root",
  6984. // name: element.name,
  6985. // });
  6986. targetArray.push({
  6987. value: element.name,
  6988. label: element.name,
  6989. children: [],
  6990. });
  6991. let _eJsonc = Object.keys(element.child);
  6992. let _e2 = element.child;
  6993. for (let j = 0; j < _eJsonc.length; j++) {
  6994. let _ec = _e2[_eJsonc[j]];
  6995. this.data.data.push({
  6996. id: _ec.id,
  6997. parentid: element.id,
  6998. topic: _ec.name,
  6999. });
  7000. // targetArray.push({
  7001. // id: _ec.id,
  7002. // parentid: element.id,
  7003. // name: _ec.name,
  7004. // });
  7005. targetArray[i].children.push({
  7006. value: _ec.name,
  7007. label: _ec.name,
  7008. children: [],
  7009. });
  7010. let _eJsonz = Object.keys(_ec.child);
  7011. let _e3 = _ec.child;
  7012. for (let z = 0; z < _eJsonz.length; z++) {
  7013. let _ez = _e3[_eJsonz[z]];
  7014. this.data.data.push({
  7015. id: _ez.id,
  7016. parentid: _ec.id,
  7017. topic: _ez.name,
  7018. });
  7019. // targetArray.push({
  7020. // id: _ez.id,
  7021. // parentid: _ec.id,
  7022. // name: _ez.name,
  7023. // });
  7024. targetArray[i].children[j].children.push({
  7025. value: _ez.name,
  7026. label: _ez.name,
  7027. });
  7028. }
  7029. }
  7030. }
  7031. this.targetArray = targetArray;
  7032. this.$forceUpdate();
  7033. },
  7034. /*添加评价 */
  7035. addEList(index, tIndex) {
  7036. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7037. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7038. value: "",
  7039. detail: "",
  7040. score: 5,
  7041. })
  7042. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7043. { value: "", detail: "", score: 5 },
  7044. ]);
  7045. this.$forceUpdate();
  7046. },
  7047. forceUpdate() {
  7048. this.$forceUpdate();
  7049. },
  7050. deletEList(index, tIndex, eIndex) {
  7051. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7052. eIndex,
  7053. 1
  7054. );
  7055. this.$forceUpdate();
  7056. },
  7057. getChoosePic(t) {
  7058. this.chooseType = t;
  7059. this.getAllBanner();
  7060. },
  7061. getAllBanner() {
  7062. this.sysPicVisible = true;
  7063. let params = {
  7064. t: this.chooseType,
  7065. };
  7066. this.ajax
  7067. .get(this.$store.state.api + "selectAllBanner", params)
  7068. .then((res) => {
  7069. this.sysPic = res.data[0];
  7070. })
  7071. .catch((err) => {
  7072. console.error(err);
  7073. });
  7074. },
  7075. // getClass() {
  7076. // let params = {
  7077. // oid: this.oid,
  7078. // };
  7079. // this.ajax
  7080. // .get(this.$store.state.api + "selectClassBySchool", params)
  7081. // .then((res) => {
  7082. // this.classJuri = res.data[0];
  7083. // })
  7084. // .catch((err) => {
  7085. // console.error(err);
  7086. // });
  7087. // },
  7088. deleteSysPic() {
  7089. this.cover = [];
  7090. this.isSysPic = false;
  7091. },
  7092. deleteSelectPic() {
  7093. this.selectJson.url = "";
  7094. },
  7095. setEListStar() {
  7096. this.$forceUpdate();
  7097. },
  7098. deletRateList(i) {
  7099. this.rateJson.splice(i, 1);
  7100. },
  7101. addRateList() {
  7102. this.rateJson.push({ detail: "", score: 5, value: "" });
  7103. },
  7104. addSt() {
  7105. this.sentenceList.push({
  7106. sentenceTitle: "",
  7107. addSentence: [],
  7108. rightAnswer: [],
  7109. });
  7110. },
  7111. addSen(i) {
  7112. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7113. // this.isPushTitleList.push(this.sentenceTitle);
  7114. this.sentenceList[i].sentenceTitle = "";
  7115. },
  7116. setRightAnswer(s, i, j) {
  7117. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7118. this.sentenceList[i].rightAnswer.push(s);
  7119. }
  7120. },
  7121. returnCard(r, i, j) {
  7122. this.sentenceList[i].rightAnswer.splice(j, 1);
  7123. },
  7124. addSentenceTool() {
  7125. for (var i = 0; i < this.sentenceList.length; i++) {
  7126. if (this.sentenceList[i].rightAnswer.length == 0) {
  7127. this.$message.error("请将信息填写完整!");
  7128. return;
  7129. }
  7130. if (
  7131. this.sentenceList[i].addSentence.length !=
  7132. this.sentenceList[i].rightAnswer.length
  7133. ) {
  7134. this.$message.error("请将信息填写完整!");
  7135. return;
  7136. }
  7137. }
  7138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7139. this.taskCount
  7140. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7141. this.sentenceList = [
  7142. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7143. ];
  7144. this.dialogVisibleSentence = false;
  7145. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7146. // itemTaskIndex
  7147. // ].toolChoose[toolIndex].tool = [];
  7148. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7149. // itemTaskIndex
  7150. // ].toolChoose[toolIndex].tool.push(i);
  7151. if (
  7152. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7153. .toolChoose[this.toolIndex].tool != 47
  7154. ) {
  7155. this.addTools(47, this.taskCount, this.toolIndex);
  7156. }
  7157. },
  7158. addTableJson() {
  7159. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7160. // this.$message.error("请将信息填写完整!");
  7161. // return;
  7162. // }
  7163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7164. this.taskCount
  7165. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7166. // this.tableJson = [{ text: "" }];
  7167. // this.dialogVisibleTable = false;
  7168. this.$message.success("上传成功");
  7169. if (
  7170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7171. .toolChoose[this.toolIndex].tool != 48
  7172. ) {
  7173. this.addTools(48, this.taskCount, this.toolIndex);
  7174. }
  7175. },
  7176. addWordJson() {
  7177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7178. this.taskCount
  7179. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7180. // this.wordJson = [{ text: "" }];
  7181. // this.dialogVisibleWord = false;
  7182. this.$message.success("上传成功");
  7183. if (
  7184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7185. .toolChoose[this.toolIndex].tool != 52
  7186. ) {
  7187. this.addTools(52, this.taskCount, this.toolIndex);
  7188. }
  7189. },
  7190. addMoreUpload() {
  7191. if (this.uploadJson.length == 0) {
  7192. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7193. this.taskCount
  7194. ].toolChoose[this.toolIndex].uploadJson = [];
  7195. } else {
  7196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7197. this.taskCount
  7198. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7199. }
  7200. this.uploadJson = [];
  7201. this.dialogVisibleMoreUpload = false;
  7202. if (
  7203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7204. .toolChoose[this.toolIndex].tool != 50
  7205. ) {
  7206. this.addTools(50, this.taskCount, this.toolIndex);
  7207. }
  7208. },
  7209. addPreTime() {
  7210. if (this.preTime == 0) {
  7211. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7212. this.taskCount
  7213. ].toolChoose[this.toolIndex].preTime = 0;
  7214. } else {
  7215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7216. this.taskCount
  7217. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7218. }
  7219. this.preTime = 0;
  7220. this.dialogVisiblePreTime = false;
  7221. if (
  7222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7223. .toolChoose[this.toolIndex].tool != 10
  7224. ) {
  7225. this.addTools(10, this.taskCount, this.toolIndex);
  7226. }
  7227. },
  7228. goToTask(i) {
  7229. $(".rightBox")[0].scrollTop = $(".taskBorder")[i].offsetTop + $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  7230. this.isClickColor = i + 1;
  7231. },
  7232. taskMove(type, index) {
  7233. // this
  7234. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7235. // confirmButtonText: "确定",
  7236. // cancelButtonText: "取消",
  7237. // type: "warning",
  7238. // })
  7239. // .then(() => {
  7240. if (type == 1) {
  7241. if (index > 0) {
  7242. let a = JSON.parse(
  7243. JSON.stringify(
  7244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7245. )
  7246. );
  7247. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7250. }
  7251. } else {
  7252. if (
  7253. index <
  7254. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7255. ) {
  7256. let a = JSON.parse(
  7257. JSON.stringify(
  7258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7259. )
  7260. );
  7261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7264. }
  7265. }
  7266. this.$forceUpdate();
  7267. // })
  7268. // .catch(() => {
  7269. // return;
  7270. // })
  7271. },
  7272. addGroup(i) {
  7273. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7274. this.groupJson.group.push({
  7275. name: "第" + (this.groupJson.group.length + 1) + "组",
  7276. });
  7277. },
  7278. deleteGroup(i) {
  7279. this.groupJson.group.splice(i, 1);
  7280. },
  7281. addGroupJson() {
  7282. for (var i = 0; i < this.groupJson.group.length; i++) {
  7283. if (!this.groupJson.group[i].name) {
  7284. this.$message.error("请将信息填写完整!");
  7285. return;
  7286. }
  7287. }
  7288. if (!this.groupJson.number) {
  7289. this.$message.error("请将信息填写完整!");
  7290. return;
  7291. }
  7292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7293. this.taskCount
  7294. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7295. JSON.stringify(this.groupJson)
  7296. );
  7297. this.dialogVisibleGroup = false;
  7298. this.groupJson = {};
  7299. if (
  7300. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7301. .toolChoose[this.toolIndex].tool != 49
  7302. ) {
  7303. this.addTools(49, this.taskCount, this.toolIndex);
  7304. }
  7305. },
  7306. updateTime(preTime) {
  7307. this.preTime = preTime;
  7308. },
  7309. InviteChange(val) {
  7310. console.log(val);
  7311. return;
  7312. let array = JSON.parse(JSON.stringify(val));
  7313. this.inviteCode = this.inviteCode.filter((el) => {
  7314. if (val.indexOf(el.cid) != -1) {
  7315. array.splice(array.indexOf(el.cid), 1);
  7316. return el;
  7317. }
  7318. });
  7319. for (var i = 0; i < array.length; i++) {
  7320. this.getInviteCode(array[i]);
  7321. }
  7322. },
  7323. async getInviteCode(cid) {
  7324. let code = this.randomNumber();
  7325. let params = {
  7326. code: code,
  7327. oid: this.oid,
  7328. };
  7329. let type = 1;
  7330. for (var i = 0; i < this.inviteCode.length; i++) {
  7331. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7332. type = 2;
  7333. }
  7334. }
  7335. if (type == 2) {
  7336. this.getInviteCode(cid);
  7337. return;
  7338. }
  7339. const res = await this.ajax.get(
  7340. this.$store.state.api + "selectInviteCode2",
  7341. params
  7342. );
  7343. if (
  7344. res.data.length &&
  7345. res.data[0].length &&
  7346. res.data[0][0].courseId != this.cid
  7347. ) {
  7348. this.getInviteCode(cid);
  7349. return;
  7350. }
  7351. let array = [];
  7352. for (var i = 0; i < this.inviteCode.length; i++) {
  7353. array.push(this.inviteCode[i].cid);
  7354. }
  7355. if (array.indexOf(cid) != -1) {
  7356. this.inviteCode[array.indexOf(cid)].ic = code;
  7357. } else {
  7358. this.inviteCode.push({ cid: cid, ic: code });
  7359. }
  7360. },
  7361. OpenInviteD(cid) {
  7362. let array = [];
  7363. this.icode = "";
  7364. for (var i = 0; i < this.inviteCode.length; i++) {
  7365. array.push(this.inviteCode[i].cid);
  7366. }
  7367. if (array.indexOf(cid) != -1) {
  7368. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7369. }
  7370. this.inviteId = cid;
  7371. this.dialogVisibleInvite = true;
  7372. },
  7373. addInvite() {
  7374. let reg = /^[A-Za-z0-9]{4,}$/;
  7375. if (!reg.test(this.icode)) {
  7376. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7377. return;
  7378. }
  7379. let type = 1;
  7380. for (var i = 0; i < this.inviteCode.length; i++) {
  7381. if (
  7382. this.inviteCode[i].cid != this.inviteId &&
  7383. this.icode == this.inviteCode[i].ic
  7384. ) {
  7385. type = 2;
  7386. }
  7387. }
  7388. if (type == 2) {
  7389. this.$message.error("已有此随机码,不能重复");
  7390. return;
  7391. }
  7392. let params = {
  7393. code: this.icode,
  7394. oid: this.oid,
  7395. };
  7396. this.ajax
  7397. .get(this.$store.state.api + "selectInviteCode", params)
  7398. .then((res) => {
  7399. if (
  7400. res.data.length &&
  7401. res.data[0].length &&
  7402. res.data[0][0].courseId != this.cid
  7403. ) {
  7404. this.$message.error("已有此随机码,不能重复");
  7405. return;
  7406. }
  7407. let array = [];
  7408. for (var i = 0; i < this.inviteCode.length; i++) {
  7409. array.push(this.inviteCode[i].cid);
  7410. }
  7411. if (array.indexOf(this.inviteId) != -1) {
  7412. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7413. } else {
  7414. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7415. }
  7416. this.icode = "";
  7417. this.dialogVisibleInvite = false;
  7418. })
  7419. .catch((err) => {
  7420. console.error(err);
  7421. });
  7422. },
  7423. randomNumber() {
  7424. // 随机生成两位数
  7425. // let num = Math.floor(Math.random() * 900) + 100;
  7426. // 生成 0 到 99 之间的随机整数
  7427. const randomNumber = Math.floor(Math.random() * 100);
  7428. // 如果随机数小于 10,补上前导零
  7429. const num =
  7430. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7431. // 随机生成两个大写字母
  7432. let letters = "";
  7433. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7434. for (let i = 0; i < 3; i++) {
  7435. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7436. }
  7437. // 随机生成两位数字和字母的组合
  7438. let mix = "";
  7439. let chars =
  7440. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7441. for (let i = 0; i < 3; i++) {
  7442. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7443. mix += char;
  7444. }
  7445. // 随机选择一种类型
  7446. let type = Math.floor(Math.random() * 3);
  7447. return num;
  7448. // 根据类型输出结果
  7449. switch (type) {
  7450. case 0:
  7451. console.log(num); // 输出两位数
  7452. return num;
  7453. case 1:
  7454. console.log(letters); // 输出两个大写字母
  7455. return letters;
  7456. case 2:
  7457. console.log(mix); // 输出两位数字和字母的组合
  7458. return mix;
  7459. }
  7460. },
  7461. },
  7462. beforeDestroy() {
  7463. clearTimeout(this.timer);
  7464. this.timer = null;
  7465. clearInterval(this.timer2);
  7466. this.timer2 = null;
  7467. },
  7468. beforeRouteLeave(to, from, next) {
  7469. clearTimeout(this.timer);
  7470. this.timer = null;
  7471. clearInterval(this.timer2);
  7472. this.timer2 = null;
  7473. next();
  7474. },
  7475. created() {
  7476. this.getStudent();
  7477. this.getTeacher();
  7478. this.getClass();
  7479. this.getTemplate();
  7480. // this.selectType();
  7481. this.selectEva();
  7482. this.loading = false;
  7483. this.timer2 = setInterval(() => {
  7484. this.selectEva();
  7485. }, 5000);
  7486. setTimeout(() => {
  7487. this.selectCourseDetail();
  7488. }, 500);
  7489. },
  7490. mounted() {
  7491. this.$nextTick(() => {
  7492. //监听这个dom的scroll事件
  7493. $('.rightBox')[0].addEventListener("scroll", this.scrollChange);
  7494. });;
  7495. },
  7496. };
  7497. </script>
  7498. <style scoped>
  7499. @media screen and (max-width: 1280px) {
  7500. .mbCss {
  7501. flex-direction: column !important;
  7502. }
  7503. .pjCss {
  7504. width: 100% !important;
  7505. }
  7506. .evaCss {
  7507. width: 100% !important;
  7508. }
  7509. }
  7510. .dialog_diy>>>.el-dialog__header {
  7511. background: #3c3c3c !important;
  7512. padding: 15px 20px;
  7513. }
  7514. .dialog_diy>>>.el-dialog__title {
  7515. color: #fff;
  7516. }
  7517. .dialog_diy>>>.el-dialog__headerbtn {
  7518. top: 19px;
  7519. }
  7520. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7521. color: #fff;
  7522. }
  7523. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7524. color: #fff;
  7525. }
  7526. .dialog_diy>>>.el-dialog__body,
  7527. .dialog_diy>>>.el-dialog__footer {
  7528. background: #fafafa;
  7529. }
  7530. .dialog_diy3>>>.el-dialog__body,
  7531. .dialog_diy3>>>.el-dialog__footer {
  7532. background: #eee !important;
  7533. }
  7534. .dialog_diy3>>>.el-dialog__body {
  7535. padding: 20px 20px;
  7536. }
  7537. .source_diy>>>.el-dialog {
  7538. height: 100% !important;
  7539. margin: 0 auto !important;
  7540. }
  7541. .source_diy>>>.el-dialog__body {
  7542. height: calc(100% - 185px);
  7543. overflow: auto;
  7544. background: #e6eaf0;
  7545. }
  7546. .source_diy>>>.el-dialog__footer {
  7547. background: #e6eaf0 !important;
  7548. }
  7549. .left {
  7550. border-right: 1px solid rgb(60, 94, 143);
  7551. display: flex;
  7552. flex-direction: column;
  7553. align-items: center;
  7554. min-height: 600px;
  7555. width: 385px;
  7556. height: 80%;
  7557. }
  7558. .tips {
  7559. color: rgb(128, 128, 128);
  7560. font-size: 12px;
  7561. width: 270px;
  7562. margin: 40px;
  7563. }
  7564. .pb_content {
  7565. height: 100% !important;
  7566. /* margin: 0 20px 0 20px; */
  7567. }
  7568. .pb_content_body {
  7569. width: 100% !important;
  7570. height: 100%;
  7571. }
  7572. .info_solid {
  7573. width: 270px;
  7574. height: 30px;
  7575. border-left: 1px solid #bdbdbd;
  7576. margin: 10px 0px 10px 30px;
  7577. }
  7578. .info_steps {
  7579. width: 270px;
  7580. font-size: 0.875rem;
  7581. display: flex;
  7582. align-items: center;
  7583. }
  7584. .info_steps span:nth-child(1) {
  7585. width: 30px;
  7586. height: 30px;
  7587. background: rgba(0, 0, 0, 0.38);
  7588. display: block;
  7589. color: #fff;
  7590. border-radius: 40px;
  7591. text-align: center;
  7592. line-height: 30px;
  7593. }
  7594. .steps_active {
  7595. background: #3d67bc !important;
  7596. }
  7597. .info_steps span:nth-child(2) {
  7598. margin-left: 5px;
  7599. }
  7600. .right {
  7601. height: 100%;
  7602. width: 100%;
  7603. display: flex;
  7604. overflow: hidden;
  7605. }
  7606. .basic_box {
  7607. margin: 0 auto;
  7608. position: relative;
  7609. padding: 0 20px 0 20px;
  7610. }
  7611. .basic_box2 {
  7612. position: relative;
  7613. width: calc(100% - 300px);
  7614. }
  7615. .basic_box_success {
  7616. width: 100%;
  7617. height: 100%;
  7618. padding: 50px 0;
  7619. position: relative;
  7620. text-align: center;
  7621. /* border-bottom: 1px solid #bfbfbf; */
  7622. box-sizing: border-box;
  7623. display: flex;
  7624. align-items: center;
  7625. flex-direction: column;
  7626. justify-content: center;
  7627. }
  7628. .info_title {
  7629. font-size: 1.5em;
  7630. margin-right: 25px;
  7631. /* margin: 20px 30px 20px 30px; */
  7632. }
  7633. .bInfo_title {
  7634. text-align: left;
  7635. margin: 10px 0;
  7636. }
  7637. .small_title {
  7638. font-size: 14px;
  7639. line-height: 40px;
  7640. }
  7641. .chapter_beizhu {
  7642. font-size: 12px;
  7643. font-weight: bold;
  7644. float: right;
  7645. color: rgb(128, 128, 128);
  7646. margin-top: 5px;
  7647. }
  7648. .chapter_uploadBox1 {
  7649. text-align: left;
  7650. background-color: rgb(242, 242, 242);
  7651. width: 100%;
  7652. height: 67px;
  7653. padding: 0px 15px;
  7654. border-radius: 8px;
  7655. overflow: hidden;
  7656. font-size: 16px;
  7657. box-sizing: border-box;
  7658. position: relative;
  7659. }
  7660. .chapter_add {
  7661. width: 100%;
  7662. height: 32px;
  7663. margin-top: 15px;
  7664. cursor: pointer;
  7665. }
  7666. .chapter_add_l {
  7667. margin-left: 5px;
  7668. width: 30px;
  7669. height: 30px;
  7670. float: left;
  7671. border: 1px solid #aaa;
  7672. color: #aaa;
  7673. border-radius: 50%;
  7674. font-size: 25px;
  7675. text-align: center;
  7676. }
  7677. .chapter_add_r {
  7678. font-size: 18px;
  7679. height: 40px;
  7680. line-height: 30px;
  7681. text-indent: 10px;
  7682. color: #aaa;
  7683. }
  7684. .chapter_add_r span {
  7685. font-size: 12px;
  7686. color: rgb(204, 204, 204);
  7687. }
  7688. .chapter_add_input {
  7689. display: none;
  7690. }
  7691. .line {
  7692. width: 85%;
  7693. margin: 0 auto;
  7694. border-top: 1px solid #e5e5e5;
  7695. margin-top: 20px;
  7696. }
  7697. .info_btnBox {
  7698. width: 100%;
  7699. display: flex;
  7700. justify-content: space-evenly;
  7701. margin: 10px 0 10px 0;
  7702. }
  7703. .info_btn,
  7704. .teacherWord {
  7705. color: #fff;
  7706. background-color: #0f7eff;
  7707. padding: 8px 24px;
  7708. font-size: 0.9375rem;
  7709. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7710. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7711. min-width: 64px;
  7712. font-weight: 500;
  7713. border-radius: 4px;
  7714. box-sizing: border-box;
  7715. border: none;
  7716. cursor: pointer;
  7717. }
  7718. .teacherWord {
  7719. width: 105px !important;
  7720. text-align: center !important;
  7721. line-height: 36px !important;
  7722. padding: 0 !important;
  7723. font-size: 14px !important;
  7724. margin: 10px 0 !important;
  7725. }
  7726. .wordTeacher {
  7727. display: flex;
  7728. flex-direction: column;
  7729. width: 20%;
  7730. text-align: center;
  7731. font-size: 14px;
  7732. margin: 30px 30px 0 10px;
  7733. background: #fff;
  7734. position: relative;
  7735. border-radius: 5px;
  7736. padding: 25px 0px;
  7737. }
  7738. .wordPic {
  7739. margin: 0 auto;
  7740. width: 60px;
  7741. height: 60px;
  7742. cursor: pointer;
  7743. }
  7744. .deleteWord {
  7745. width: 22px;
  7746. height: 22px;
  7747. position: absolute;
  7748. right: 5px;
  7749. top: -15px;
  7750. cursor: pointer;
  7751. display: none;
  7752. z-index: 999;
  7753. }
  7754. .wordPic>img,
  7755. .deleteWord>img,
  7756. .addToolImg>img {
  7757. width: 100%;
  7758. height: 100%;
  7759. }
  7760. .info_btn:hover {
  7761. background-color: #4f7cd5 !important;
  7762. }
  7763. .cru_selectBox {
  7764. display: flex;
  7765. margin: 24px 0 10px;
  7766. flex-wrap: nowrap;
  7767. white-space: nowrap;
  7768. overflow: auto;
  7769. position: relative;
  7770. height: 47px;
  7771. }
  7772. .cru_selectBox::-webkit-scrollbar {
  7773. /*滚动条整体样式*/
  7774. width: 6px;
  7775. /*高宽分别对应横竖滚动条的尺寸*/
  7776. height: 6px;
  7777. }
  7778. /*定义滚动条轨道 内阴影+圆角*/
  7779. .cru_selectBox::-webkit-scrollbar-track {
  7780. border-radius: 10px;
  7781. background-color: #eee;
  7782. }
  7783. /*定义滑块 内阴影+圆角*/
  7784. .cru_selectBox::-webkit-scrollbar-thumb {
  7785. border-radius: 10px;
  7786. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7787. background-color: rgba(0, 0, 0, 0.1);
  7788. }
  7789. .cru_line {
  7790. position: absolute;
  7791. bottom: 0px;
  7792. transition: all 0.5s;
  7793. left: 0px;
  7794. width: 125px;
  7795. margin-left: -25px;
  7796. }
  7797. .cru_select {
  7798. font-size: 21px;
  7799. margin-right: 37px;
  7800. margin-left: 5px;
  7801. cursor: pointer;
  7802. color: #a6a6a6;
  7803. }
  7804. .cru_selected {
  7805. color: #0b7fc2 !important;
  7806. }
  7807. .chapter_contentbox {
  7808. display: flex;
  7809. align-items: center;
  7810. margin-top: 15px;
  7811. }
  7812. .chapter_contentbox div:nth-child(1) {
  7813. /* width: 150px; */
  7814. margin: 0px;
  7815. /* font-size: 2em; */
  7816. color: black;
  7817. display: block;
  7818. white-space: nowrap;
  7819. overflow: hidden;
  7820. text-overflow: ellipsis;
  7821. /* font-weight: 600; */
  7822. margin-right: 20px;
  7823. font-size: 18px;
  7824. }
  7825. .chapter_contentbox div:nth-child(2) {
  7826. width: 380px;
  7827. }
  7828. .chapter_contentbox div:nth-child(3),
  7829. .remove {
  7830. background-image: url("../../../assets/remove.png");
  7831. cursor: pointer;
  7832. opacity: 0.5;
  7833. width: 40px;
  7834. height: 50px;
  7835. background-repeat: no-repeat;
  7836. background-position: 5px 10px;
  7837. }
  7838. .remove1 {
  7839. background-image: url("../../../assets/remove1.png");
  7840. background-repeat: no-repeat;
  7841. background-position: 5px 10px;
  7842. width: 40px;
  7843. height: 50px;
  7844. cursor: pointer;
  7845. }
  7846. .binfo_input {
  7847. font: inherit;
  7848. color: currentColor;
  7849. width: 100%;
  7850. margin: 0;
  7851. /* padding: 15px 14px; */
  7852. padding: 8px 14px;
  7853. display: block;
  7854. min-width: 0;
  7855. outline: none;
  7856. box-sizing: content-box;
  7857. background: none;
  7858. border: 1px solid rgba(0, 0, 0, 0.23);
  7859. border-radius: 4px;
  7860. box-sizing: border-box;
  7861. background: #fff;
  7862. font-size: 18px;
  7863. }
  7864. .binfo_input:focus-visible {
  7865. border: 1px solid rgba(61, 103, 188);
  7866. }
  7867. .time {
  7868. display: flex;
  7869. margin: 35px 0 80px 0;
  7870. }
  7871. .chapter_btnbox {
  7872. width: 160px;
  7873. border-radius: 5px;
  7874. border: 2px dashed gray;
  7875. display: flex;
  7876. padding: 8px 50px;
  7877. align-items: center;
  7878. justify-content: center;
  7879. margin: 30px auto 0;
  7880. cursor: pointer;
  7881. }
  7882. .icon_add {
  7883. position: relative;
  7884. width: 24px;
  7885. padding-top: 20px;
  7886. border-radius: 100%;
  7887. border-width: 2px;
  7888. border-style: solid;
  7889. border-color: gray;
  7890. }
  7891. .icon_add i:nth-child(1) {
  7892. position: absolute;
  7893. left: 50%;
  7894. top: 50%;
  7895. height: 60%;
  7896. transform: translate(-50%, -50%);
  7897. border-width: 1px;
  7898. border-style: solid;
  7899. border-color: inherit;
  7900. }
  7901. .icon_add i:nth-child(2) {
  7902. position: absolute;
  7903. top: 50%;
  7904. left: 50%;
  7905. width: 60%;
  7906. transform: translate(-50%, -50%);
  7907. border-width: 1px;
  7908. border-style: solid;
  7909. border-color: inherit;
  7910. }
  7911. .chapter_btn_w {
  7912. font-size: 0.9375rem;
  7913. font-weight: bold;
  7914. color: gray;
  7915. margin-left: 20px;
  7916. }
  7917. .disUoloadSty>>>.el-icon-plus {
  7918. display: none !important;
  7919. /* 上传按钮隐藏 */
  7920. }
  7921. .imgLeft {
  7922. margin: 15px 0;
  7923. }
  7924. .add_info_box {
  7925. margin: 20px 0;
  7926. }
  7927. .add_info_box button {
  7928. margin: 0 10px 10px 0;
  7929. }
  7930. .add_info_box2 {
  7931. display: flex;
  7932. align-items: center;
  7933. flex-wrap: wrap;
  7934. }
  7935. .add_info_box2::after {
  7936. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  7937. color: red;
  7938. font-size: 14px;
  7939. margin-bottom: 10px;
  7940. }
  7941. .add_chapters_box {
  7942. text-align: left;
  7943. background-color: rgb(232 234 237);
  7944. width: 100%;
  7945. padding: 0px 15px;
  7946. border-radius: 15px;
  7947. font-size: 16px;
  7948. box-sizing: border-box;
  7949. position: relative;
  7950. padding: 0 10px 5px 10px;
  7951. height: 185px;
  7952. overflow-y: auto;
  7953. overflow-x: hidden;
  7954. }
  7955. .homework_box {
  7956. display: flex;
  7957. align-items: flex-start;
  7958. flex-wrap: wrap;
  7959. margin: 15px 0 0 0;
  7960. flex-direction: column;
  7961. align-content: flex-start;
  7962. }
  7963. .course_homework {
  7964. display: flex;
  7965. justify-content: center;
  7966. flex-direction: row;
  7967. align-items: center;
  7968. margin: 0 10px 0 0;
  7969. }
  7970. .course_homework>>>.el-input__inner {
  7971. width: 140px;
  7972. margin-left: 15px;
  7973. }
  7974. .chapter_upload_move {
  7975. position: relative;
  7976. background-color: #fff;
  7977. position: absolute;
  7978. width: 100%;
  7979. top: 0px;
  7980. left: 0px;
  7981. border: 1px solid #eee;
  7982. border-radius: 5px;
  7983. transition: width 2s;
  7984. -moz-transition: width 2s;
  7985. -webkit-transition: width 2s;
  7986. -o-transition: width 2s;
  7987. }
  7988. .chapter_upload_l_i {
  7989. background-image: url("../../../assets/icon.png");
  7990. background-position: 3px -165px;
  7991. width: 30px;
  7992. height: 30px;
  7993. margin: 10px auto 0 auto;
  7994. }
  7995. .left_first {
  7996. display: flex;
  7997. flex-direction: column;
  7998. flex-wrap: nowrap;
  7999. }
  8000. .right_first {
  8001. width: 100%;
  8002. height: 100%;
  8003. margin-top: 15px;
  8004. }
  8005. .right_title {
  8006. height: 30px;
  8007. padding: 15px 20px 15px 20px;
  8008. border-bottom: 1px solid #f2f2f2;
  8009. font-size: 1.5em;
  8010. font-weight: bold;
  8011. color: #0f7eff;
  8012. margin: 0 auto;
  8013. display: flex;
  8014. justify-content: space-between;
  8015. }
  8016. .people {
  8017. border: 1px solid rgb(229 229 229);
  8018. height: 495px;
  8019. border-radius: 5px;
  8020. width: 100%;
  8021. overflow: auto;
  8022. }
  8023. .people_top {
  8024. display: flex;
  8025. width: 100%;
  8026. /* justify-content: space-between; */
  8027. /* align-items: center; */
  8028. flex-direction: column;
  8029. padding: 10px 25px 0;
  8030. box-sizing: border-box;
  8031. }
  8032. .people_nav,
  8033. .people_top_right {
  8034. /* padding: 20px 0 0 20px; */
  8035. }
  8036. .people_top_right {
  8037. height: 40px;
  8038. margin-bottom: 10px;
  8039. }
  8040. .people_search {
  8041. display: flex;
  8042. position: relative;
  8043. }
  8044. .people_search>>>.el-input__inner {
  8045. /* height: 25px; */
  8046. width: 95%;
  8047. }
  8048. .search_img {
  8049. width: 20px;
  8050. height: 20px;
  8051. position: absolute;
  8052. right: 30px;
  8053. top: 50%;
  8054. transform: translateY(-50%);
  8055. }
  8056. .search_img>img {
  8057. width: 100%;
  8058. height: 100%;
  8059. }
  8060. .people_name {
  8061. display: flex;
  8062. justify-content: flex-start;
  8063. padding: 20px 0 0 25px;
  8064. flex-direction: column;
  8065. flex-wrap: wrap;
  8066. }
  8067. .p_box {
  8068. position: relative;
  8069. }
  8070. .people_name>>>.el-checkbox {
  8071. width: 100%;
  8072. display: flex;
  8073. align-items: center;
  8074. margin-bottom: 10px;
  8075. }
  8076. .people_name>>>.el-checkbox__label {
  8077. text-overflow: ellipsis;
  8078. overflow: hidden;
  8079. width: calc(100%);
  8080. }
  8081. .people_name2>>>.el-checkbox__label {
  8082. width: calc(100% - 130px);
  8083. }
  8084. .inviteCode {
  8085. position: absolute;
  8086. right: 30px;
  8087. color: #237ade;
  8088. top: 0;
  8089. cursor: pointer;
  8090. font-size: 13px;
  8091. }
  8092. .noneInvite {
  8093. color: #a8a8a8;
  8094. }
  8095. .inviteImg {
  8096. position: absolute;
  8097. right: 5px;
  8098. top: 0;
  8099. width: 20px;
  8100. }
  8101. .right_img {
  8102. width: 150px;
  8103. height: 150px;
  8104. margin: 20px auto;
  8105. }
  8106. .right_img>img {
  8107. width: 100%;
  8108. height: 100%;
  8109. }
  8110. .number {
  8111. margin-top: 20px;
  8112. color: #4aa6ff;
  8113. text-decoration: underline;
  8114. }
  8115. .success_button {
  8116. display: flex;
  8117. text-align: center;
  8118. margin: 5% 0 auto;
  8119. flex-direction: row;
  8120. justify-content: center;
  8121. }
  8122. .look_course {
  8123. margin-right: 40px;
  8124. background: #3d67bc;
  8125. width: 200px;
  8126. height: 35px;
  8127. line-height: 35px;
  8128. color: #fff;
  8129. text-align: center;
  8130. font-size: 14px;
  8131. border-radius: 5px;
  8132. cursor: pointer;
  8133. }
  8134. .attend_others {
  8135. width: 250px;
  8136. background: #4fb13c;
  8137. height: 35px;
  8138. line-height: 35px;
  8139. color: #fff;
  8140. text-align: center;
  8141. font-size: 14px;
  8142. border-radius: 5px;
  8143. cursor: pointer;
  8144. }
  8145. .dialog_diy2>>>.el-dialog__body {
  8146. text-align: center;
  8147. }
  8148. .write_togother {
  8149. position: absolute;
  8150. right: 45px;
  8151. display: flex;
  8152. top: 5%;
  8153. }
  8154. .write_people {
  8155. font-size: 14px;
  8156. line-height: 50px;
  8157. padding-right: 10px;
  8158. }
  8159. .end_write {
  8160. background: #3d67bc;
  8161. color: #fff;
  8162. width: 100px;
  8163. height: 35px;
  8164. line-height: 35px;
  8165. text-align: center;
  8166. font-size: 14px;
  8167. border-radius: 5px;
  8168. cursor: pointer;
  8169. }
  8170. .chapter_upload {
  8171. height: 50px;
  8172. margin-top: 12px;
  8173. position: relative;
  8174. display: flex;
  8175. align-items: center;
  8176. width: 100%;
  8177. min-height: 50px;
  8178. }
  8179. .chapter_upload_t {
  8180. background-color: #fff;
  8181. position: absolute;
  8182. height: 100%;
  8183. top: 0px;
  8184. left: 0px;
  8185. border-radius: 40px;
  8186. box-sizing: border-box;
  8187. box-shadow: 0 0 3px 3px #dfdfdf;
  8188. }
  8189. .chapter_upload_o {
  8190. width: 100%;
  8191. height: 100%;
  8192. position: relative;
  8193. z-index: 1;
  8194. }
  8195. .chapter_upload_ic {
  8196. height: 30px;
  8197. float: right;
  8198. }
  8199. .chapter_upload_ic_l {
  8200. width: 50px;
  8201. height: 50px;
  8202. float: left;
  8203. }
  8204. .chapter_upload_ic_l div {
  8205. width: 30px;
  8206. height: 35px;
  8207. background: url("../../../assets/icon/icon.png");
  8208. }
  8209. .chapter_upload_ic_r {
  8210. width: 50px;
  8211. height: 50px;
  8212. float: left;
  8213. margin-left: 0px;
  8214. display: flex;
  8215. align-items: center;
  8216. }
  8217. .chapter_upload_ic_r div {
  8218. width: 25px;
  8219. height: 25px;
  8220. background-image: url("../../../assets/delete.png");
  8221. background-size: 100% 100%;
  8222. }
  8223. .chapter_upload_n {
  8224. display: flex;
  8225. text-indent: 10px;
  8226. text-decoration: none;
  8227. text-overflow: ellipsis;
  8228. white-space: nowrap;
  8229. overflow: hidden;
  8230. width: 55%;
  8231. margin-left: 10px;
  8232. cursor: pointer;
  8233. margin-top: 2px;
  8234. align-items: center;
  8235. }
  8236. .chapter_upload_l_i1 {
  8237. background-image: url("../../../assets/icon/video.png");
  8238. width: 28px;
  8239. height: 28px;
  8240. background-size: 100% 100%;
  8241. }
  8242. .chapter_upload_l_i5 {
  8243. background-image: url("../../../assets/icon/word.png");
  8244. width: 24px;
  8245. height: 24px;
  8246. background-size: 100% 100%;
  8247. }
  8248. .chapter_upload_l_i8 {
  8249. background-image: url("../../../assets/icon/line.png");
  8250. width: 24px;
  8251. height: 24px;
  8252. background-size: 100% 100%;
  8253. }
  8254. .chapter_upload_ud {
  8255. display: flex;
  8256. flex-direction: column;
  8257. margin-left: 5px;
  8258. justify-content: center;
  8259. }
  8260. .chapter_upload_up {
  8261. background-image: url("../../../assets/icon/up.png");
  8262. width: 17px;
  8263. height: 15px;
  8264. background-size: 100% 100%;
  8265. cursor: pointer;
  8266. }
  8267. .chapter_upload_down {
  8268. background-image: url("../../../assets/icon/down.png");
  8269. width: 17px;
  8270. height: 15px;
  8271. margin: 2px auto 0 auto;
  8272. background-size: 100% 100%;
  8273. cursor: pointer;
  8274. }
  8275. .addWordStyle {
  8276. display: flex;
  8277. flex-direction: row;
  8278. justify-content: flex-start;
  8279. overflow-x: auto;
  8280. white-space: nowrap;
  8281. flex-wrap: wrap;
  8282. }
  8283. /* table 样式 */
  8284. .cont>>>table {
  8285. border-top: 1px solid #ccc;
  8286. border-left: 1px solid #ccc;
  8287. }
  8288. .cont>>>table td,
  8289. .cont>>>table th {
  8290. border-bottom: 1px solid #ccc;
  8291. border-right: 1px solid #ccc;
  8292. /* padding: 20px 5px; */
  8293. padding: 5px 10px;
  8294. max-width: 0px;
  8295. height: 30px;
  8296. vertical-align: baseline;
  8297. }
  8298. .cont>>>table th {
  8299. border-bottom: 2px solid #ccc;
  8300. text-align: center;
  8301. }
  8302. /* blockquote 样式 */
  8303. .cont>>>blockquote {
  8304. display: block;
  8305. border-left: 8px solid #d0e5f2;
  8306. padding: 5px 10px;
  8307. margin: 10px 0;
  8308. line-height: 1.4;
  8309. font-size: 100%;
  8310. background-color: #f1f1f1;
  8311. }
  8312. /* code 样式 */
  8313. .cont>>>code {
  8314. display: inline-block;
  8315. *display: inline;
  8316. *zoom: 1;
  8317. background-color: #f1f1f1;
  8318. border-radius: 3px;
  8319. padding: 3px 5px;
  8320. margin: 0 3px;
  8321. }
  8322. .cont>>>pre code {
  8323. display: block;
  8324. }
  8325. /* ul ol 样式 */
  8326. .cont>>>ul,
  8327. ol {
  8328. margin: 10px 0 10px 20px;
  8329. }
  8330. .wordbox {
  8331. display: flex;
  8332. flex-wrap: wrap;
  8333. cursor: pointer;
  8334. width: 100%;
  8335. }
  8336. .checkword {
  8337. width: 22px;
  8338. height: 22px;
  8339. margin: 10px auto 0;
  8340. cursor: pointer;
  8341. }
  8342. .checkword img {
  8343. width: 100%;
  8344. }
  8345. .stepBg {
  8346. display: flex;
  8347. flex-direction: column;
  8348. justify-content: space-between;
  8349. align-items: center;
  8350. background: #fff;
  8351. width: 300px;
  8352. margin: 0 25px 0 0;
  8353. }
  8354. .stepTop {
  8355. min-width: 300px;
  8356. width: 300px;
  8357. /* border-radius: 10px; */
  8358. display: flex;
  8359. flex-direction: column;
  8360. justify-content: flex-start;
  8361. align-items: center;
  8362. flex-wrap: nowrap;
  8363. background: #fff;
  8364. /* top: 18%; */
  8365. }
  8366. .stepTop>div {
  8367. height: 80px;
  8368. width: 85%;
  8369. cursor: pointer;
  8370. margin: 10px 0;
  8371. border-radius: 10px;
  8372. }
  8373. .first,
  8374. .second,
  8375. .third,
  8376. .four {
  8377. background: #4a83d0;
  8378. height: 90px;
  8379. color: #fff;
  8380. display: flex;
  8381. flex-direction: row;
  8382. align-items: center;
  8383. justify-content: center;
  8384. }
  8385. .first>div:nth-child(1),
  8386. .second>div:nth-child(1),
  8387. .third>div:nth-child(1),
  8388. .four>div:nth-child(1) {
  8389. margin: 5px 10px 0 0;
  8390. width: 2rem;
  8391. }
  8392. .firstNo,
  8393. .secondNo,
  8394. .thirdNo,
  8395. .fourNo {
  8396. background: #e7e7e7;
  8397. color: #adadad;
  8398. display: flex;
  8399. flex-direction: row;
  8400. align-items: center;
  8401. justify-content: center;
  8402. }
  8403. .firstNo>div:nth-child(1),
  8404. .secondNo>div:nth-child(1),
  8405. .thirdNo>div:nth-child(1),
  8406. .fourNo>div:nth-child(1) {
  8407. margin: 5px 10px 0 0;
  8408. width: 2rem;
  8409. }
  8410. .uploadWidth>>>.el-upload {
  8411. width: 60px;
  8412. height: 60px;
  8413. position: relative;
  8414. }
  8415. .addPeople {
  8416. background: #fa6060;
  8417. width: 150px;
  8418. height: 40px;
  8419. color: #fff;
  8420. border-radius: 5px;
  8421. text-align: center;
  8422. line-height: 40px;
  8423. font-size: 14px;
  8424. cursor: pointer;
  8425. margin-top: 20px;
  8426. }
  8427. .kcImg {
  8428. width: 60px;
  8429. margin-left: 10px;
  8430. }
  8431. .zyImg {
  8432. width: 55px;
  8433. margin: 0 10px;
  8434. }
  8435. .deleteZy {
  8436. width: 20px;
  8437. position: absolute;
  8438. top: 5px;
  8439. right: 5px;
  8440. cursor: pointer;
  8441. }
  8442. .kcImg>img,
  8443. .zyImg>img,
  8444. .deleteZy>img {
  8445. width: 100%;
  8446. height: 100%;
  8447. }
  8448. .zyBox {
  8449. display: flex;
  8450. flex-direction: row;
  8451. align-items: center;
  8452. background: #67d37d;
  8453. color: #fff;
  8454. width: 210px;
  8455. margin: 20px 20px 0 0;
  8456. border-radius: 10px;
  8457. height: 70px;
  8458. position: relative;
  8459. }
  8460. .upCss {
  8461. display: flex;
  8462. flex-direction: row;
  8463. justify-content: flex-start;
  8464. }
  8465. .upCss>>>.el-icon-plus {
  8466. position: none !important;
  8467. width: 200px;
  8468. height: 100px;
  8469. display: flex;
  8470. flex-wrap: nowrap;
  8471. flex-direction: column;
  8472. align-items: center;
  8473. justify-content: center;
  8474. border: 1px dashed #ccc;
  8475. min-width: 78px;
  8476. min-height: 100px;
  8477. z-index: 999;
  8478. }
  8479. .upCss>>>.el-upload-list__item-name {
  8480. width: 100px;
  8481. white-space: nowrap;
  8482. overflow: hidden;
  8483. text-overflow: ellipsis;
  8484. }
  8485. .addStageImg {
  8486. min-width: 25px;
  8487. min-height: 25px;
  8488. width: 25px;
  8489. height: 25px;
  8490. cursor: pointer;
  8491. }
  8492. .addHW {
  8493. width: 28px;
  8494. height: 28px;
  8495. cursor: pointer;
  8496. }
  8497. .addStageImg>img,
  8498. .addHW>img {
  8499. width: 100%;
  8500. height: 100%;
  8501. }
  8502. .addNewPP>>>.el-dialog__body {
  8503. padding: 5px 20px;
  8504. }
  8505. .isHeight {
  8506. height: 680px;
  8507. }
  8508. .toolChoose {
  8509. display: flex;
  8510. /* width: 100%; */
  8511. flex-direction: row;
  8512. flex-wrap: wrap;
  8513. }
  8514. .tool {
  8515. display: flex;
  8516. flex-direction: column;
  8517. flex-wrap: nowrap;
  8518. width: fit-content;
  8519. margin: 10px 0 10px 0;
  8520. align-items: center;
  8521. }
  8522. .tool+.tool {
  8523. margin-right: 45px;
  8524. }
  8525. .whiteBIcon {
  8526. width: 80px;
  8527. cursor: pointer;
  8528. display: flex;
  8529. flex-direction: column;
  8530. flex-wrap: nowrap;
  8531. align-items: center;
  8532. }
  8533. .whiteBIcon>img,
  8534. .toolIcon>img,
  8535. .arrow>img {
  8536. width: 100%;
  8537. height: 100%;
  8538. }
  8539. .check img {
  8540. width: 20px;
  8541. height: 20px;
  8542. }
  8543. .whiteBIcon>img {
  8544. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8545. border-radius: 15px;
  8546. }
  8547. .check {
  8548. /* width: 20px;
  8549. height: 20px; */
  8550. cursor: pointer;
  8551. margin: 10px 0;
  8552. }
  8553. .checkDiv {
  8554. display: flex;
  8555. align-items: center;
  8556. }
  8557. .checkDiv span {
  8558. margin-left: 5px;
  8559. color: #858585;
  8560. }
  8561. .customWidth>>>.el-dialog {
  8562. min-width: 500px !important;
  8563. }
  8564. .a_addBox {
  8565. margin: 10px 0;
  8566. background: #fff;
  8567. padding: 15px;
  8568. max-height: 600px;
  8569. overflow: auto;
  8570. }
  8571. .a_add_box {
  8572. border-bottom: 2px solid #eee;
  8573. padding-bottom: 25px;
  8574. }
  8575. .a_add_head {
  8576. display: flex;
  8577. align-items: center;
  8578. justify-content: space-between;
  8579. margin: 10px 0 0 0;
  8580. font-size: 18px;
  8581. }
  8582. .a_add_checkType {
  8583. margin-top: 10px;
  8584. display: flex;
  8585. font-size: 16px;
  8586. align-items: center;
  8587. }
  8588. .a_add_checkType span {
  8589. box-sizing: border-box;
  8590. padding: 0 0 5px 0;
  8591. cursor: pointer;
  8592. }
  8593. .a_add_checkType span+span {
  8594. margin-left: 10px;
  8595. }
  8596. .a_add_checkType .active {
  8597. border-bottom: 2px solid #409eff;
  8598. color: #409eff;
  8599. }
  8600. .a_add_head .a_add_head_input {
  8601. width: 300px;
  8602. }
  8603. .a_add_head .a_add_head_div {
  8604. display: flex;
  8605. align-items: center;
  8606. justify-content: space-between;
  8607. }
  8608. .a_add_body {
  8609. display: flex;
  8610. /* align-items: center; */
  8611. align-items: flex-end;
  8612. }
  8613. .a_add_input {
  8614. display: flex;
  8615. align-items: center;
  8616. flex-wrap: wrap;
  8617. }
  8618. .a_add_input_choice {
  8619. flex-direction: column;
  8620. margin-right: 10px;
  8621. }
  8622. .a_add_input_choice>>>.el-radio {
  8623. display: flex;
  8624. align-items: center;
  8625. flex-direction: row-reverse;
  8626. margin: 30px 0 0 0;
  8627. }
  8628. .a_add_input_choice>>>.el-checkbox {
  8629. display: flex;
  8630. align-items: center;
  8631. flex-direction: row-reverse;
  8632. margin: 30px 0 0 0;
  8633. }
  8634. .width100 {
  8635. width: 100%;
  8636. }
  8637. .a_add_input .a_add_persent {
  8638. width: 100%;
  8639. }
  8640. .a_add_persent_div {
  8641. width: 100%;
  8642. display: flex;
  8643. align-items: center;
  8644. }
  8645. .a_add_persent_div span {
  8646. margin: 5px 0;
  8647. }
  8648. .a_add_persent_div span:nth-child(1) {
  8649. width: 30%;
  8650. }
  8651. .a_add_persent_div span:nth-child(2) {
  8652. width: 7%;
  8653. }
  8654. .a_add_persent_div span:nth-child(3) {
  8655. width: 40%;
  8656. }
  8657. .a_add_body_div {
  8658. display: flex;
  8659. align-items: center;
  8660. justify-content: center;
  8661. /* flex-direction: column; */
  8662. }
  8663. .all_choose {
  8664. display: flex;
  8665. flex-direction: row;
  8666. align-items: flex-start;
  8667. width: 100%;
  8668. }
  8669. .all_choose>span {
  8670. min-width: 100px;
  8671. display: block;
  8672. letter-spacing: 14px;
  8673. white-space: nowrap;
  8674. overflow: hidden;
  8675. text-overflow: ellipsis;
  8676. }
  8677. .all_choose>>>.el-checkbox-group {
  8678. display: flex;
  8679. flex-direction: row;
  8680. width: 100%;
  8681. flex-wrap: wrap;
  8682. align-content: center;
  8683. justify-content: flex-start;
  8684. align-items: center;
  8685. margin-top: 3px;
  8686. }
  8687. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8688. margin-bottom: 10px;
  8689. display: flex;
  8690. flex-direction: row;
  8691. align-items: center;
  8692. }
  8693. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8694. min-width: 80px;
  8695. overflow: hidden;
  8696. width: 80px;
  8697. text-overflow: ellipsis;
  8698. white-space: nowrap;
  8699. }
  8700. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8701. width: auto;
  8702. }
  8703. .choose>div:nth-child(3)>span {
  8704. /* letter-spacing: 0 !important; */
  8705. }
  8706. .choose {
  8707. display: flex;
  8708. flex-direction: column;
  8709. flex-wrap: nowrap;
  8710. height: 100%;
  8711. justify-content: space-evenly;
  8712. align-items: flex-start;
  8713. }
  8714. .both {
  8715. display: flex;
  8716. flex-direction: row;
  8717. flex-wrap: wrap;
  8718. width: 100%;
  8719. align-items: center;
  8720. justify-content: flex-start;
  8721. margin: 15px 0;
  8722. }
  8723. .notice>>>.el-dialog {
  8724. width: 500px !important;
  8725. text-align: center;
  8726. }
  8727. .notice>>>.el-button {
  8728. margin-top: 20px;
  8729. }
  8730. .whiteBg {
  8731. background: #fff;
  8732. border-radius: 10px;
  8733. }
  8734. .chooseWho {
  8735. display: flex;
  8736. width: 380px;
  8737. flex-direction: row;
  8738. flex-wrap: nowrap;
  8739. justify-content: space-between;
  8740. padding-bottom: 10px;
  8741. }
  8742. .chooseWho>div {
  8743. cursor: pointer;
  8744. padding-bottom: 10px;
  8745. font-weight: bold;
  8746. }
  8747. .isChooseActive {
  8748. color: #3e88f4;
  8749. border-bottom: 2px solid #2f80f3;
  8750. }
  8751. .toolSort {
  8752. display: flex;
  8753. flex-direction: row;
  8754. flex-wrap: wrap;
  8755. justify-content: flex-start;
  8756. align-items: flex-start;
  8757. }
  8758. .toolSort>div {
  8759. margin-right: 45px;
  8760. }
  8761. .tools {
  8762. width: 100%;
  8763. display: flex;
  8764. flex-direction: column;
  8765. flex-wrap: nowrap;
  8766. align-items: flex-start;
  8767. }
  8768. .leftTools,
  8769. .rightTools {
  8770. width: 50%;
  8771. }
  8772. .rightTools {
  8773. display: flex;
  8774. flex-direction: row;
  8775. flex-wrap: nowrap;
  8776. justify-content: space-around;
  8777. }
  8778. .firstToolList {
  8779. display: flex;
  8780. flex-direction: column;
  8781. flex-wrap: nowrap;
  8782. align-items: center;
  8783. }
  8784. .iconList {
  8785. display: flex;
  8786. flex-direction: row;
  8787. flex-wrap: wrap;
  8788. justify-content: flex-start;
  8789. align-items: center;
  8790. margin: 20px 0 5px 0;
  8791. width: 240px;
  8792. min-width: 240px;
  8793. }
  8794. .iconTool {
  8795. display: flex;
  8796. flex-direction: column;
  8797. flex-wrap: nowrap;
  8798. align-items: center;
  8799. justify-content: flex-start;
  8800. margin: 15px 10px;
  8801. }
  8802. .toolIcon {
  8803. width: 50px;
  8804. }
  8805. .taskBorder {
  8806. border: 1px solid #e1e1e1;
  8807. border-radius: 10px;
  8808. margin-top: 20px;
  8809. /* min-height: 1160px; */
  8810. position: relative;
  8811. background: #fbfbfb;
  8812. }
  8813. .smallTaskBorder {
  8814. height: 170px;
  8815. min-height: 170px !important;
  8816. overflow: hidden;
  8817. }
  8818. .taskBorder>div {
  8819. padding: 30px 0 10px 30px;
  8820. }
  8821. .addTaskBorder {
  8822. border: 2px solid #e1e1e1;
  8823. border-radius: 10px;
  8824. margin-top: 25px;
  8825. cursor: pointer;
  8826. }
  8827. .addTaskBorder>div {
  8828. margin: 0 auto;
  8829. display: flex;
  8830. align-items: center;
  8831. justify-content: center;
  8832. }
  8833. .addTaskBorder>div>img {
  8834. width: 100px;
  8835. }
  8836. .addTaskBorder>div>span {
  8837. font-size: 23px;
  8838. color: #dbdbdb;
  8839. }
  8840. .funBlock {
  8841. display: flex;
  8842. padding: 15px 0;
  8843. flex-direction: row;
  8844. justify-content: flex-end;
  8845. align-items: center;
  8846. position: absolute;
  8847. right: 15px;
  8848. bottom: 35px;
  8849. }
  8850. .fold {
  8851. display: flex;
  8852. margin: 0 10px;
  8853. flex-direction: row;
  8854. align-items: center;
  8855. cursor: pointer;
  8856. }
  8857. .arrow {
  8858. width: 15px;
  8859. height: 15px;
  8860. margin-left: 10px;
  8861. }
  8862. .addToolFun {
  8863. display: flex;
  8864. width: 150px;
  8865. flex-direction: row;
  8866. align-items: center;
  8867. justify-content: center;
  8868. border: 1px dashed;
  8869. border-radius: 5px;
  8870. height: 50px;
  8871. margin: 35px auto 0;
  8872. cursor: pointer;
  8873. }
  8874. .addToolImg {
  8875. width: 30px;
  8876. height: 30px;
  8877. margin-right: 20px;
  8878. }
  8879. .addToolsDia>>>.el-dialog__body {
  8880. padding: 20px;
  8881. }
  8882. .addToolsDia>>>.el-dialog__body>.toolChoose {
  8883. padding: 0;
  8884. }
  8885. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  8886. padding: 0;
  8887. border-bottom: none;
  8888. margin-bottom: 0;
  8889. }
  8890. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  8891. width: 100%;
  8892. }
  8893. .lineCss>>>.el-form-item__label {
  8894. width: auto !important;
  8895. }
  8896. .lineCss>>>.el-form-item__content {
  8897. margin-left: 50px !important;
  8898. }
  8899. .newSteps {
  8900. display: flex;
  8901. width: 100% !important;
  8902. height: 80px;
  8903. cursor: pointer;
  8904. margin: 10px 0;
  8905. border-radius: 10px;
  8906. flex-direction: row;
  8907. align-content: center;
  8908. justify-content: center;
  8909. align-items: center;
  8910. margin: 0 !important;
  8911. }
  8912. /* 评价样式 */
  8913. .elist_css {
  8914. padding-bottom: 60px !important;
  8915. }
  8916. .elist_title {
  8917. margin-bottom: 10px;
  8918. }
  8919. .elist_input {}
  8920. .elist_input_box {
  8921. display: flex;
  8922. align-items: center;
  8923. flex-wrap: wrap;
  8924. }
  8925. .elist_input_box+.elist_input_box {
  8926. margin-top: 30px;
  8927. }
  8928. .elist_input .elist_input_box input {
  8929. font: inherit;
  8930. color: currentColor;
  8931. /* width: 200px; */
  8932. max-width: 200px;
  8933. padding: 8px 14px;
  8934. display: block;
  8935. min-width: 0;
  8936. outline: none;
  8937. border: 1px solid rgba(0, 0, 0, 0.23);
  8938. border-radius: 4px;
  8939. box-sizing: border-box;
  8940. background: #fff;
  8941. margin: 0 20px 0 0;
  8942. }
  8943. .elist_input .elist_input_box span {
  8944. height: 36px;
  8945. line-height: 36px;
  8946. color: rgb(82, 82, 82);
  8947. min-width: 80px;
  8948. }
  8949. .elist_input .elist_input_box .remove {
  8950. height: 20px;
  8951. width: 20px;
  8952. background-size: 100% 100%;
  8953. background-position: unset;
  8954. margin-left: 5px;
  8955. }
  8956. .elist_input_box>>>.el-rate {
  8957. display: flex;
  8958. height: 36px;
  8959. align-items: center;
  8960. }
  8961. .elist_input_box .elist_inptu_text {
  8962. width: 100%;
  8963. display: flex;
  8964. align-items: center;
  8965. margin-top: 10px;
  8966. }
  8967. .elist_input_box .elist_inptu_text input {
  8968. /* width: 500px; */
  8969. width: 100%;
  8970. max-width: unset;
  8971. }
  8972. .elist_input_box>>>.el-rate__icon {
  8973. font-size: 24px;
  8974. }
  8975. .elist_btn {
  8976. margin-top: 10px;
  8977. }
  8978. .lineTitle {
  8979. margin-top: 15px;
  8980. width: 110px;
  8981. }
  8982. .courseTop {
  8983. display: flex;
  8984. flex-direction: row;
  8985. justify-content: flex-start;
  8986. align-items: center;
  8987. width: calc(100% - 40px);
  8988. padding: 20px 0;
  8989. margin: 0 auto;
  8990. }
  8991. .stepsNav {
  8992. display: flex;
  8993. flex-direction: row;
  8994. justify-content: flex-start;
  8995. align-items: center;
  8996. }
  8997. .stepsWord {
  8998. font-size: 18px;
  8999. color: #fff;
  9000. font-weight: bold;
  9001. margin-left: auto;
  9002. background: rgb(15, 126, 255);
  9003. border-radius: 5px;
  9004. padding: 3px 25px;
  9005. box-sizing: border-box;
  9006. }
  9007. .rightBox {
  9008. width: calc(100% - 40px);
  9009. background: rgb(255, 255, 255);
  9010. border-radius: 10px;
  9011. overflow: auto;
  9012. height: calc(100% - 160px);
  9013. position: relative;
  9014. margin: 0px auto 0;
  9015. }
  9016. .e_add_top {
  9017. display: flex;
  9018. justify-content: space-between;
  9019. padding: 20px 20px 0 20px;
  9020. border-radius: 3px;
  9021. background: #fff;
  9022. }
  9023. .e_add_title2 {
  9024. display: flex;
  9025. align-items: center;
  9026. }
  9027. .e_add_title2 span {
  9028. width: 40px;
  9029. }
  9030. .e_add_title {
  9031. display: flex;
  9032. align-items: center;
  9033. color: #b8b8b8;
  9034. font-size: 18px;
  9035. position: relative;
  9036. height: 40px;
  9037. }
  9038. .e_add_title span {
  9039. margin-right: 10px;
  9040. }
  9041. .e_add_title .el_input {
  9042. width: 300px;
  9043. }
  9044. .e_add_title>>>.el-input__inner {
  9045. width: 400px;
  9046. }
  9047. .e_add_btn {}
  9048. .e_add_content {
  9049. display: flex;
  9050. width: 100%;
  9051. }
  9052. .e_add_list {
  9053. background: #fff;
  9054. height: 500px;
  9055. width: 210px;
  9056. position: relative;
  9057. margin: 15px 5px 0 0;
  9058. flex-shrink: 0;
  9059. display: flex;
  9060. flex-direction: column;
  9061. }
  9062. .e_add_list_title {
  9063. font-size: 20px;
  9064. width: 100%;
  9065. box-sizing: border-box;
  9066. padding: 15px 40px;
  9067. text-align: center;
  9068. border-bottom: 1px solid #eaeaea;
  9069. position: relative;
  9070. display: flex;
  9071. align-items: center;
  9072. justify-content: center;
  9073. height: 57px;
  9074. background: #f6f6f6;
  9075. }
  9076. .e_add_list_title span {
  9077. overflow: hidden;
  9078. white-space: nowrap;
  9079. text-overflow: ellipsis;
  9080. }
  9081. .e_add_list_title img {
  9082. position: absolute;
  9083. right: 15px;
  9084. width: 25px;
  9085. cursor: pointer;
  9086. top: 50%;
  9087. transform: translateY(-50%);
  9088. }
  9089. .e_add_list_body {
  9090. height: calc(100% - 187px);
  9091. overflow: auto;
  9092. }
  9093. .e_add_list_child {
  9094. width: 100%;
  9095. display: flex;
  9096. align-items: center;
  9097. justify-content: center;
  9098. position: relative;
  9099. box-sizing: border-box;
  9100. padding: 15px 40px;
  9101. text-align: center;
  9102. }
  9103. .e_add_list_child span {
  9104. overflow: hidden;
  9105. white-space: nowrap;
  9106. text-overflow: ellipsis;
  9107. cursor: pointer;
  9108. }
  9109. .e_add_list_child img {
  9110. position: absolute;
  9111. right: 10px;
  9112. width: 21px;
  9113. cursor: pointer;
  9114. top: 50%;
  9115. transform: translateY(-50%);
  9116. }
  9117. .e_add_list_child+.e_add_list_child {
  9118. border-top: 1px solid #eaeaea;
  9119. }
  9120. .e_add_list_child .active {
  9121. color: #409eff;
  9122. }
  9123. .e_add_list_btn {
  9124. position: absolute;
  9125. bottom: 0;
  9126. height: 50px;
  9127. background: rgb(120, 120, 254);
  9128. width: 100%;
  9129. color: #fff;
  9130. font-size: 16px;
  9131. text-align: center;
  9132. line-height: 50px;
  9133. cursor: pointer;
  9134. }
  9135. .e_add_list_detail {
  9136. position: absolute;
  9137. bottom: 0;
  9138. height: 130px;
  9139. background: rgb(120, 120, 254);
  9140. width: 100%;
  9141. color: #fff;
  9142. font-size: 16px;
  9143. display: flex;
  9144. align-items: center;
  9145. justify-content: center;
  9146. }
  9147. .e_add_list_detail textarea {
  9148. height: 90%;
  9149. width: 95%;
  9150. border: none;
  9151. resize: none;
  9152. outline: none;
  9153. padding: 5px;
  9154. box-sizing: border-box;
  9155. }
  9156. .e_add_list_pbox {
  9157. width: 100%;
  9158. }
  9159. .e_add_list_pbox_title {
  9160. height: 50px;
  9161. background: #fff;
  9162. display: flex;
  9163. align-items: center;
  9164. width: 100%;
  9165. box-sizing: border-box;
  9166. padding: 0 20px;
  9167. flex-direction: row;
  9168. flex-wrap: wrap;
  9169. }
  9170. .type_title {
  9171. font-size: 18px;
  9172. font-weight: 700;
  9173. }
  9174. .type_content {
  9175. font-size: 16px;
  9176. margin-left: 30px;
  9177. }
  9178. .type_content span+span {
  9179. margin-left: 20px;
  9180. }
  9181. .type_content span {
  9182. cursor: pointer;
  9183. padding-bottom: 5px;
  9184. box-sizing: border-box;
  9185. }
  9186. .type_content .active {
  9187. color: #409eff;
  9188. border-bottom: 2px solid #409eff;
  9189. }
  9190. .e_add_list_pbox_content {
  9191. height: calc(100% - 50px);
  9192. display: flex;
  9193. align-items: center;
  9194. width: 100%;
  9195. background: #fff;
  9196. }
  9197. .mbCss {
  9198. width: 100%;
  9199. display: flex;
  9200. flex-direction: row;
  9201. flex-wrap: nowrap;
  9202. align-content: center;
  9203. align-items: flex-start;
  9204. justify-content: flex-start;
  9205. }
  9206. .pjCss {
  9207. /* width: 42%; */
  9208. width: calc(100% - 55%);
  9209. display: flex;
  9210. flex-direction: column;
  9211. flex-wrap: nowrap;
  9212. align-items: flex-start;
  9213. margin-top: 1.5%;
  9214. }
  9215. .e_box {
  9216. display: flex;
  9217. flex-wrap: wrap;
  9218. max-height: 500px;
  9219. align-items: flex-start;
  9220. overflow: auto;
  9221. }
  9222. .e_card {
  9223. border: 1px solid #ccc;
  9224. background: #fff;
  9225. margin-right: 20px;
  9226. width: 270px;
  9227. display: flex;
  9228. flex-direction: column;
  9229. align-items: center;
  9230. border-radius: 5px;
  9231. margin-top: 10px;
  9232. text-align: center;
  9233. }
  9234. .e_card_picture {
  9235. margin: 10px 0;
  9236. }
  9237. .e_card_picture>img {
  9238. width: 50px;
  9239. }
  9240. .e_card_name {
  9241. width: 100%;
  9242. padding: 0 10px;
  9243. box-sizing: border-box;
  9244. margin-bottom: 10px;
  9245. overflow: hidden;
  9246. text-overflow: ellipsis;
  9247. white-space: nowrap;
  9248. }
  9249. .e_card_time {
  9250. width: 100%;
  9251. padding: 0 10px;
  9252. box-sizing: border-box;
  9253. font-size: 15px;
  9254. color: #c3c3c3;
  9255. margin-bottom: 10px;
  9256. }
  9257. .e_card_btn {
  9258. height: 40px;
  9259. display: flex;
  9260. align-items: center;
  9261. width: 100%;
  9262. background: rgb(244, 244, 244);
  9263. }
  9264. .e_card_btn:hover {
  9265. background: rgb(221 221 221);
  9266. }
  9267. .e_card_btn span {
  9268. flex: 1 1 auto;
  9269. text-align: center;
  9270. cursor: pointer;
  9271. }
  9272. .addEva {
  9273. border: 1px solid #ccc;
  9274. background: #fff;
  9275. margin-right: 20px;
  9276. width: 270px;
  9277. height: 149px;
  9278. display: flex;
  9279. flex-direction: column;
  9280. align-items: center;
  9281. border-radius: 5px;
  9282. margin-top: 10px;
  9283. text-align: center;
  9284. cursor: pointer;
  9285. justify-content: center;
  9286. }
  9287. .addEva>img {
  9288. width: 50px;
  9289. object-fit: cover;
  9290. }
  9291. .uploadFm {
  9292. border: 1px dashed #ccc;
  9293. width: 202px;
  9294. height: 102px;
  9295. position: relative;
  9296. cursor: pointer;
  9297. }
  9298. .uploadFm>img {
  9299. position: absolute;
  9300. top: 25px;
  9301. left: 35%;
  9302. width: 50px;
  9303. }
  9304. .fileCss {
  9305. width: 100%;
  9306. display: flex;
  9307. flex-direction: row;
  9308. flex-wrap: nowrap;
  9309. justify-content: space-around;
  9310. align-items: center;
  9311. padding-top: 15px;
  9312. }
  9313. .sysPicBox {
  9314. display: flex;
  9315. flex-direction: row;
  9316. flex-wrap: wrap;
  9317. align-content: flex-start;
  9318. height: 435px;
  9319. overflow: auto;
  9320. }
  9321. .sysPic {
  9322. width: 200px;
  9323. height: 115px;
  9324. margin: 0 20px 20px 0;
  9325. cursor: pointer;
  9326. }
  9327. .sysPic>img,
  9328. .isSysPic>img,
  9329. .deletePic>img {
  9330. width: 100%;
  9331. height: 100%;
  9332. object-fit: cover;
  9333. }
  9334. .isSysPic {
  9335. width: 200px;
  9336. height: 115px;
  9337. position: relative;
  9338. }
  9339. .deletePic {
  9340. width: 20px;
  9341. height: 20px;
  9342. position: absolute;
  9343. top: 0;
  9344. right: 0;
  9345. cursor: pointer;
  9346. }
  9347. .select_box1 {}
  9348. .select_box1_img {
  9349. background: #fff;
  9350. border-radius: 5px;
  9351. padding: 15px;
  9352. box-sizing: border-box;
  9353. margin-bottom: 20px;
  9354. }
  9355. .select_box1_title {
  9356. padding: 0 0 15px 0;
  9357. border-bottom: 1px solid #eee;
  9358. margin-bottom: 15px;
  9359. }
  9360. .select_box1_title span:nth-child(1) {
  9361. font-size: 16px;
  9362. margin-right: 20px;
  9363. color: #000;
  9364. }
  9365. .select_box1_title span:nth-child(2) {
  9366. font-size: 14px;
  9367. color: rgb(112, 112, 112);
  9368. }
  9369. .select_box1_add_img {}
  9370. .select_box1_select {
  9371. background: #fff;
  9372. border-radius: 5px;
  9373. padding: 15px;
  9374. box-sizing: border-box;
  9375. }
  9376. .select_box2 {}
  9377. .select_box2_title {
  9378. background: #fff;
  9379. border-radius: 5px;
  9380. padding: 5px 10px;
  9381. box-sizing: border-box;
  9382. margin-bottom: 10px;
  9383. }
  9384. .select_box2_box {
  9385. display: flex;
  9386. height: 500px;
  9387. }
  9388. .select_box2_img {
  9389. width: calc(100% - 310px);
  9390. height: 100%;
  9391. overflow: auto;
  9392. background: #fff;
  9393. border-radius: 5px;
  9394. }
  9395. .select_box2_img img {
  9396. width: 100%;
  9397. }
  9398. .select_box2_answer {
  9399. background: #fff;
  9400. margin-left: 10px;
  9401. border-radius: 5px;
  9402. width: 300px;
  9403. overflow: auto;
  9404. height: 100%;
  9405. display: flex;
  9406. flex-direction: column;
  9407. align-items: center;
  9408. padding-top: 10px;
  9409. box-sizing: border-box;
  9410. }
  9411. .select_box2_answer_box {
  9412. margin: 0 0 10px 0;
  9413. width: 85%;
  9414. }
  9415. .rate_textarea {
  9416. font: inherit;
  9417. color: currentColor;
  9418. width: 100%;
  9419. padding: 8px 14px;
  9420. display: block;
  9421. min-width: 0;
  9422. outline: none;
  9423. border: 1px solid rgba(0, 0, 0, 0.23);
  9424. border-radius: 4px;
  9425. box-sizing: border-box;
  9426. background: #fff;
  9427. margin: 0 20px 0 0;
  9428. resize: none;
  9429. }
  9430. .select_answer_title {
  9431. text-align: left;
  9432. width: 85%;
  9433. margin-bottom: 10px;
  9434. font-size: 18px;
  9435. color: #8e8e8e;
  9436. }
  9437. .mask {
  9438. background-color: rgb(0 0 0 / 30%);
  9439. /* position: fixed; */
  9440. position: absolute;
  9441. top: 0;
  9442. left: 0;
  9443. width: 100%;
  9444. height: 100%;
  9445. z-index: 90;
  9446. display: flex;
  9447. align-items: center;
  9448. justify-content: center;
  9449. }
  9450. .progressBox {
  9451. width: 300px;
  9452. height: 150px;
  9453. background: #fff;
  9454. border-radius: 10px;
  9455. box-shadow: 0 0 6px 1px #bfbfbf;
  9456. display: flex;
  9457. align-items: center;
  9458. justify-content: center;
  9459. flex-direction: column;
  9460. position: relative;
  9461. color: #6c6c6c;
  9462. }
  9463. .progressBox>>>.el-progress-bar__outer {
  9464. background-color: #d1dfff !important;
  9465. }
  9466. .progressBox .lbox {
  9467. height: 50px;
  9468. font-size: 19px;
  9469. display: flex;
  9470. align-items: center;
  9471. color: #747474;
  9472. }
  9473. .progressBox .lbox img {
  9474. width: 40px;
  9475. margin-right: 20px;
  9476. }
  9477. .closeCss {
  9478. position: absolute;
  9479. top: 8px;
  9480. right: 8px;
  9481. cursor: pointer;
  9482. width: 20px;
  9483. height: 20px;
  9484. }
  9485. .closeCss>img {
  9486. width: 100%;
  9487. height: 100%;
  9488. }
  9489. .updateTips::after {
  9490. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9491. font-size: 14px;
  9492. margin-left: 20px;
  9493. font-weight: 400;
  9494. color: #ff3a3a;
  9495. }
  9496. .updateMask {
  9497. width: 100%;
  9498. z-index: 3;
  9499. top: 0;
  9500. position: absolute;
  9501. /* background-color: rgba(0,0,0,.3); */
  9502. }
  9503. .t_j_box {
  9504. display: flex;
  9505. }
  9506. .t_j_box span:nth-child(1) {
  9507. width: 15%;
  9508. overflow: hidden;
  9509. margin-right: 10px;
  9510. text-overflow: ellipsis;
  9511. white-space: nowrap;
  9512. }
  9513. .t_j_box span:nth-child(2) {
  9514. width: 30%;
  9515. overflow: hidden;
  9516. text-overflow: ellipsis;
  9517. margin-right: 10px;
  9518. }
  9519. .t_j_box span:nth-child(3) {
  9520. max-width: calc(55% - 20px);
  9521. overflow: hidden;
  9522. text-overflow: ellipsis;
  9523. }
  9524. .sentenBox {
  9525. background: #fff;
  9526. height: 600px;
  9527. overflow: auto;
  9528. background-image: url("../../../assets/icon/conSentences/csBg.png");
  9529. background-position: 102%;
  9530. background-repeat: no-repeat;
  9531. background-size: 60%;
  9532. }
  9533. .addSen {
  9534. background: #409efe;
  9535. width: 90px;
  9536. color: #fff;
  9537. height: 35px;
  9538. text-align: center;
  9539. line-height: 35px;
  9540. border-radius: 5px;
  9541. float: right;
  9542. margin: 10px 20px 0 0;
  9543. cursor: pointer;
  9544. }
  9545. .sentenTop {
  9546. display: flex;
  9547. flex-direction: row;
  9548. flex-wrap: nowrap;
  9549. align-items: center;
  9550. }
  9551. .sentenTop>div:nth-child(2) {
  9552. width: 300px;
  9553. margin: 0 15px;
  9554. }
  9555. .sentenTop>div:nth-child(3) {
  9556. background: #409efe;
  9557. color: #fff;
  9558. width: 65px;
  9559. height: 35px;
  9560. text-align: center;
  9561. line-height: 35px;
  9562. border-radius: 5px;
  9563. cursor: pointer;
  9564. }
  9565. .cardList {
  9566. padding: 30px 0 20px 0;
  9567. display: flex;
  9568. flex-direction: row;
  9569. flex-wrap: wrap;
  9570. align-items: center;
  9571. box-sizing: border-box;
  9572. border-bottom: 1px solid #f4f4f4;
  9573. width: 98%;
  9574. margin: 0 auto;
  9575. }
  9576. .cardBox {
  9577. display: flex;
  9578. flex-direction: row;
  9579. flex-wrap: wrap;
  9580. align-items: center;
  9581. align-content: center;
  9582. }
  9583. .isCard,
  9584. .isCard1 {
  9585. width: 140px;
  9586. height: 65px;
  9587. text-align: center;
  9588. line-height: 65px;
  9589. font-size: 20px;
  9590. cursor: pointer;
  9591. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  9592. background-size: cover;
  9593. position: relative;
  9594. z-index: 99;
  9595. }
  9596. .isCard1 {
  9597. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  9598. }
  9599. .isCard:hover .deleteWord {
  9600. display: block;
  9601. }
  9602. .isCard>div:nth-child(1),
  9603. .isCard1>div:nth-child(1) {
  9604. white-space: nowrap;
  9605. overflow: hidden;
  9606. text-overflow: ellipsis;
  9607. width: 80%;
  9608. margin: 0 auto;
  9609. }
  9610. .card {
  9611. width: 140px;
  9612. height: 65px;
  9613. }
  9614. .card>img {
  9615. width: 100%;
  9616. height: 100%;
  9617. }
  9618. .rightCardBox {
  9619. margin: 10px 0 0 10px;
  9620. }
  9621. .rightCardBox>div:nth-child(1) {
  9622. margin-bottom: 10px;
  9623. }
  9624. .cardCss {
  9625. display: flex;
  9626. flex-direction: column;
  9627. flex-wrap: nowrap;
  9628. align-items: center;
  9629. border-bottom: 3px solid #b4c3d3;
  9630. padding: 0 0 5px 0;
  9631. margin-right: 10px;
  9632. }
  9633. .cardCss>div:nth-child(2) {
  9634. background: #5b7b9d;
  9635. color: #fff;
  9636. width: 20px;
  9637. height: 20px;
  9638. border-radius: 50%;
  9639. text-align: center;
  9640. line-height: 20px;
  9641. }
  9642. .sentenTopBox {
  9643. display: flex;
  9644. flex-direction: row;
  9645. flex-wrap: nowrap;
  9646. align-items: center;
  9647. justify-content: space-between;
  9648. padding: 55px 0 0 20px;
  9649. box-sizing: border-box;
  9650. width: 85%;
  9651. }
  9652. .stepsBottom {
  9653. width: 85%;
  9654. margin-bottom: 20px;
  9655. box-shadow: 0 0 10px 10px #f7f7f7;
  9656. background: #f7f7f7;
  9657. border-radius: 10px;
  9658. overflow: hidden;
  9659. }
  9660. .course_left {
  9661. width: 300px;
  9662. height: auto;
  9663. position: relative;
  9664. }
  9665. .stepsBottom2 {
  9666. width: 300px;
  9667. margin: 20px 0;
  9668. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  9669. /* background: #f7f7f7; */
  9670. border-radius: 10px;
  9671. overflow: hidden;
  9672. height: fit-content;
  9673. position: relative;
  9674. /* transition: all .5s; */
  9675. }
  9676. .navTop {
  9677. background: #53749b;
  9678. color: #fff;
  9679. height: 40px;
  9680. line-height: 40px;
  9681. padding-left: 15px;
  9682. font-size: 18px;
  9683. }
  9684. .navBottom {
  9685. background: #6b91b7;
  9686. height: 300px;
  9687. overflow: auto;
  9688. }
  9689. .navTask {
  9690. display: flex;
  9691. flex-direction: row;
  9692. flex-wrap: nowrap;
  9693. align-items: center;
  9694. padding: 5px 5px 5px 0;
  9695. cursor: pointer;
  9696. background: #ffffff;
  9697. width: 95%;
  9698. margin: 10px auto;
  9699. box-sizing: border-box;
  9700. border-radius: 5px;
  9701. }
  9702. .isNavTask {
  9703. /* background: #7e9ebd; */
  9704. }
  9705. .navTask>div:nth-child(1) {
  9706. background: #468fe4;
  9707. color: #fff;
  9708. width: 65px;
  9709. height: 25px;
  9710. line-height: 25px;
  9711. text-align: center;
  9712. border-radius: 5px;
  9713. margin: 0 10px 0 5px;
  9714. font-size: 14px;
  9715. }
  9716. .navTask>div:nth-child(2) {
  9717. /* color: #fff; */
  9718. /* max-width: 130px; */
  9719. width: 130px;
  9720. white-space: nowrap;
  9721. overflow: hidden;
  9722. text-overflow: ellipsis;
  9723. font-size: 15px;
  9724. }
  9725. .groupBox {}
  9726. .groupContent+.groupContent {
  9727. margin-top: 30px;
  9728. }
  9729. .groupTitle {
  9730. font-size: 24px;
  9731. color: rgb(80, 80, 80);
  9732. margin-bottom: 20px;
  9733. }
  9734. .groupName {
  9735. display: flex;
  9736. align-items: center;
  9737. }
  9738. .groupn {
  9739. font-size: 15px;
  9740. margin-right: 10px;
  9741. }
  9742. .groupName+.groupName {
  9743. margin-top: 15px;
  9744. }
  9745. .groupBtn {
  9746. margin-left: 10px;
  9747. }
  9748. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  9749. text-align: left;
  9750. }
  9751. .radioBox>div {
  9752. margin: 10px 0 0 10px;
  9753. }
  9754. .radioBox>>>.el-radio__input,
  9755. .radioBox>>>.el-checkbox__inner {
  9756. margin-left: 10px;
  9757. }
  9758. .radioBox>>>.el-radio__label,
  9759. .radioBox>>>.el-checkbox__label {
  9760. display: flex;
  9761. align-items: center;
  9762. }
  9763. .inImg {
  9764. width: 50px;
  9765. }
  9766. .inImg>img {
  9767. width: 100%;
  9768. height: 100%;
  9769. object-fit: cover;
  9770. }
  9771. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  9772. height: auto;
  9773. }
  9774. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  9775. width: 200px;
  9776. height: 100px;
  9777. object-fit: contain;
  9778. background: unset;
  9779. }
  9780. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  9781. display: none;
  9782. }
  9783. .tcMember+.tcMember::before {
  9784. content: "、";
  9785. }
  9786. .xzUpImg {
  9787. width: 25px;
  9788. height: 25px;
  9789. cursor: pointer;
  9790. }
  9791. .xzUpImg>img {
  9792. width: 100%;
  9793. height: 100%;
  9794. }
  9795. .closeCss {
  9796. position: absolute;
  9797. top: 8px;
  9798. right: 8px;
  9799. cursor: pointer;
  9800. width: 20px;
  9801. height: 20px;
  9802. }
  9803. .closeCss>img {
  9804. width: 100%;
  9805. height: 100%;
  9806. }
  9807. .moveBtn {
  9808. display: flex;
  9809. flex-direction: column;
  9810. align-items: flex-end;
  9811. width: 40px;
  9812. }
  9813. .timuUpImg {
  9814. display: flex;
  9815. flex-direction: row;
  9816. align-items: center;
  9817. }
  9818. .timuUpImg>div:nth-child(1) {
  9819. margin-right: 10px;
  9820. }
  9821. .timuImgBox {
  9822. margin: 10px 0;
  9823. display: flex;
  9824. flex-direction: column;
  9825. flex-wrap: wrap;
  9826. align-items: flex-start;
  9827. }
  9828. .timuImg {
  9829. width: 100px;
  9830. margin: 5px 0;
  9831. cursor: pointer;
  9832. position: relative;
  9833. }
  9834. .timuImg:hover .deleteWord {
  9835. display: block;
  9836. }
  9837. .deleteWord {
  9838. width: 25px;
  9839. height: 25px;
  9840. position: absolute;
  9841. right: -5px;
  9842. top: -5px;
  9843. cursor: pointer;
  9844. display: none;
  9845. }
  9846. .timuImg>img,
  9847. .deleteWord>img {
  9848. width: 100%;
  9849. height: 100%;
  9850. object-fit: cover;
  9851. }
  9852. .e_add_delete {
  9853. cursor: pointer;
  9854. margin-left: 10px;
  9855. }
  9856. .pType_box {
  9857. margin-top: 30px;
  9858. align-items: flex-end;
  9859. }
  9860. .noneBox {
  9861. height: 100%;
  9862. width: 100%;
  9863. display: flex;
  9864. align-items: center;
  9865. justify-content: center;
  9866. margin-top: 150px;
  9867. }
  9868. .noneBox>img {
  9869. width: 300px;
  9870. }
  9871. </style>