addCourse.vue 597 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5">
  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. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item
  11. :to="{
  12. path:
  13. '/course?userid=' +
  14. userid +
  15. '&oid=' +
  16. oid +
  17. '&org=' +
  18. org +
  19. '&role=' +
  20. role,
  21. }"
  22. >课程管理</el-breadcrumb-item
  23. >
  24. <el-breadcrumb-item>
  25. <span style="color: rgb(15, 126, 255)">添加课程</span>
  26. </el-breadcrumb-item>
  27. </el-breadcrumb>
  28. </div>
  29. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  30. </div>
  31. <div
  32. class="rightBox"
  33. :style="{
  34. height: !isBtnDisplay
  35. ? 'calc(100% - 50px)'
  36. : 'calc(100% - 120px)',
  37. }"
  38. style="padding: 0"
  39. v-if="this.steps == 1"
  40. @mousewheel="scrollChange"
  41. >
  42. <div
  43. class="updateMask"
  44. :style="{
  45. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  46. }"
  47. v-if="cid && userid != courseUserid && role != '1'"
  48. ></div>
  49. <div class="whiteBg" style="background: unset; padding: 0">
  50. <div>
  51. <div class="basic_box" style="padding: 0">
  52. <div class="big_box">
  53. <div class="left_first">
  54. <div
  55. :class="{
  56. updateTips:
  57. cid && userid != courseUserid && role != '1',
  58. }"
  59. >
  60. <div style="width: 100%">
  61. <div class="course_input_box">
  62. <div class="bb_courseIcon">
  63. <img src="../../../assets/icon/new/course.png" />
  64. </div>
  65. <input
  66. type="text"
  67. placeholder="请输入课程名称"
  68. class="binfo_input"
  69. v-model="courseName"
  70. style="
  71. border: 1.5px solid rgb(202, 209, 220);
  72. margin: 0px 10px 0px 0px;
  73. border-radius: 5px;
  74. font-weight: 600;
  75. padding: 12px 14px 12px 71px;
  76. "
  77. />
  78. <el-switch
  79. v-model="isTeacherSee"
  80. active-text="是否公开此课程"
  81. style="justify-content: center; width: 200px"
  82. ></el-switch>
  83. </div>
  84. </div>
  85. </div>
  86. <div
  87. class="pType_box all_choose"
  88. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  89. >
  90. <span>类型</span>
  91. <!-- 学科+ 主题+ 未来+ -->
  92. <el-radio-group
  93. @change="CourseType2Change"
  94. v-model="pTypeCheckName"
  95. style="display: flex; align-items: center"
  96. >
  97. <div
  98. class="all_choose"
  99. style="width: 100px"
  100. v-for="(item, index) in CourseType2"
  101. :key="index"
  102. >
  103. <el-radio :label="item.name">{{
  104. item.name
  105. }}</el-radio>
  106. </div>
  107. </el-radio-group>
  108. </div>
  109. <div class="both">
  110. <div class="choose">
  111. <div
  112. class="all_choose"
  113. v-for="(item, index) in CourseType[0]"
  114. :key="index"
  115. >
  116. <span
  117. v-if="
  118. CourseTypeJson[item.id].length > 0 &&
  119. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  120. ? pTypeCheck.indexOf(item.id) != -1
  121. : true)
  122. "
  123. >{{ item.name }}:</span
  124. >
  125. <el-checkbox-group
  126. v-model="courseTypeId"
  127. v-if="
  128. CourseTypeJson[item.id].length > 0 &&
  129. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  130. ? pTypeCheck.indexOf(item.id) != -1
  131. : true)
  132. "
  133. >
  134. <el-checkbox
  135. v-for="item1 in CourseTypeJson[item.id]"
  136. :key="item1.id"
  137. :label="item1.id"
  138. >{{ item1.name }}</el-checkbox
  139. >
  140. </el-checkbox-group>
  141. <!-- <div
  142. v-else
  143. style="font-size: 14px; margin-left: -8px"
  144. >
  145. 暂无
  146. </div> -->
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="right_first">
  152. <!-- <div class="ai_box">
  153. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  154. </div> -->
  155. <div
  156. class="c_info_title"
  157. style="padding: 0 0 15px; margin: 0 auto 0 0"
  158. >
  159. 上传封面
  160. </div>
  161. <div style="width: 100%">
  162. <div
  163. class="uploadFm"
  164. @click="choosePicVisible = true"
  165. :class="{ uploadFm2: cover.length }"
  166. >
  167. <img
  168. src="../../../assets/icon/addPoster.png"
  169. alt=""
  170. v-if="cover.length == 0"
  171. />
  172. <img
  173. :src="cover[0].url"
  174. alt=""
  175. class="cover_p"
  176. v-else
  177. />
  178. <div v-if="cover.length == 0">点击添加封面</div>
  179. <div class="cover_mask">
  180. <img
  181. src="../../../assets/icon/new/cover_update.png"
  182. /><span style="margin-top: 5px">修改封面</span>
  183. </div>
  184. </div>
  185. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  186. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  187. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  188. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  189. <i class="el-icon-plus"></i>
  190. </el-upload> -->
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="whiteBg" style="margin-top: 10px">
  198. <div class="wb_j_box">
  199. <div class="wb_j_box_content">
  200. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  201. (dialogVisibleClass = true),
  202. (classSearch = ''),
  203. (gradeId = ''),
  204. getClass()
  205. ">添加班级</button>
  206. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  207. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  208. getClassC(tc) }}</span>
  209. </div> -->
  210. <div
  211. class="wb_j_box_btn"
  212. @click="
  213. (dialogVisibleClass = true),
  214. (classSearch = ''),
  215. (gradeId = ''),
  216. getClass()
  217. "
  218. >
  219. <div class="wb_j_box_title">授课班级</div>
  220. <div class="wb_j_box_btn_c">
  221. <el-tooltip
  222. effect="dark"
  223. :content="getListClassC(checkboxList2)"
  224. placement="top"
  225. v-if="checkboxList2.length"
  226. popper-class="text_tooltip2"
  227. >
  228. <div class="wb_j_box_span">
  229. {{ getListClassC(checkboxList2) }}
  230. </div>
  231. </el-tooltip>
  232. <div v-else class="wb_j_box_span">请选择授课班级</div>
  233. <div class="wb_j_box_arrow"></div>
  234. </div>
  235. </div>
  236. </div>
  237. <div style="margin-left: auto">
  238. <button
  239. class="c_pub_button_add pub_btn_paste_img"
  240. @click="pasteTask"
  241. v-if="isPasteTask"
  242. >
  243. 智能粘贴
  244. </button>
  245. </div>
  246. </div>
  247. </div>
  248. <div
  249. class="whiteBg"
  250. style="border-radius: 0; background: unset; margin-top: 15px"
  251. v-if="false"
  252. >
  253. <div class="right_title">课程简要描述</div>
  254. <div style="width: 95%; padding: 15px 0px 15px 20px">
  255. <div style="width: 55%">
  256. <textarea
  257. rows="8"
  258. class="binfo_input"
  259. cols
  260. v-model="courseText"
  261. ></textarea>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="whiteBg" style="border-radius: 0; background: #f0f2f5">
  266. <!-- <div class="right_title">
  267. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  268. <span style="margin:0 10px">上传课程内容</span>
  269. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
  270. </div> -->
  271. <div style="display: flex">
  272. <div class="course_left">
  273. <div class="stepsBottom2">
  274. <!-- <div class="navTop">辅助导航</div> -->
  275. <div class="navBottom" :style="{ height: heightPx }">
  276. <div
  277. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  278. .taskJson"
  279. :key="tIndex"
  280. :class="{
  281. dragOverTop:
  282. newIndex === tIndex &&
  283. typeIndex == 'task-' + tIndex &&
  284. oldIndex > tIndex,
  285. dragOverBottom:
  286. newIndex === tIndex &&
  287. typeIndex == 'task-' + tIndex &&
  288. oldIndex < tIndex,
  289. }"
  290. >
  291. <div
  292. @dragstart="dragTaskStart(t, tIndex)"
  293. @dragover.prevent="dragTaskOver(tIndex)"
  294. @dragend="dragTaskEnd()"
  295. :draggable="isdrag == 'task-'+tIndex"
  296. @click="goToTask(tIndex)"
  297. class="navTask"
  298. :class="{
  299. isNavTask:
  300. isClickColor > 0 && isClickColor == tIndex + 1,
  301. isNavOpen: t.toolOpen,
  302. }"
  303. >
  304. <div @click.stop="taskOpen(tIndex)" class="chapter_upload_open"></div>
  305. <div
  306. @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  307. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''"
  308. style="left: 8px"
  309. class="chapter_upload_drag"
  310. ></div>
  311. <div class="nt_taskBox">
  312. <div class="nt_taskTitle">
  313. 任务{{ tIndex + 1 }}:
  314. </div>
  315. <div class="nt_taskName nt_taskName2">
  316. <el-tooltip
  317. effect="light"
  318. :content="t.task ? t.task : '未命名任务'"
  319. placement="top"
  320. >
  321. <span>{{
  322. t.task ? t.task : "未命名任务"
  323. }}</span>
  324. </el-tooltip>
  325. </div>
  326. </div>
  327. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  328. 1
  329. ">
  330. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  331. @click.stop="taskMove(1, tIndex)"></div>
  332. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  333. @click.stop="taskMove(2, tIndex)"></div>
  334. </div> -->
  335. </div>
  336. <div
  337. class="gjBox"
  338. v-if="t.toolChoose.length && t.toolOpen"
  339. >
  340. <div
  341. v-for="(tool, toolIndex2) in t.toolChoose"
  342. :key="toolIndex2"
  343. @click="jumpGj(tIndex, toolIndex2)"
  344. >
  345. <div
  346. class="gjCss"
  347. :class="{
  348. isGjCss:
  349. toolIndexType == `gj${tIndex}${toolIndex2}`,
  350. }"
  351. >
  352. <div>工具{{ toolIndex2 + 1 }}:</div>
  353. <div>
  354. {{
  355. toolsData[tool.tool[0]] &&
  356. toolsData[tool.tool[0]].name
  357. }}
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. <div class="basic_box2">
  367. <div
  368. style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  369. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  370. :key="index"
  371. >
  372. <div
  373. class="taskBorder"
  374. :style="{
  375. minHeight: unitJson[unitIndex].easy && 'unset',paddingBottom:'40px'
  376. }"
  377. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  378. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  379. :key="itemTaskIndex"
  380. >
  381. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  382. <div v-if="unitJson[unitIndex].easy != 1">
  383. <div
  384. :style="{
  385. marginBottom:
  386. unitJson[unitIndex].easy == 3 ||
  387. (unitJson[unitIndex].easy == 5 &&
  388. itemTask.taskType == 1)
  389. ? '75px'
  390. : '0',
  391. }"
  392. >
  393. <div
  394. style="
  395. display: flex;
  396. margin: 0px 0 20px;
  397. flex-direction: row;
  398. justify-content: flex-start;
  399. align-items: center;
  400. "
  401. >
  402. <div class="lineTitle">
  403. 任务{{ itemTaskIndex + 1 }}概述
  404. </div>
  405. </div>
  406. <div
  407. :id="'task' + itemTaskIndex"
  408. class="chapter_contentbox"
  409. style="
  410. flex-direction: row;
  411. justify-content: flex-start;
  412. align-items: center;
  413. "
  414. >
  415. <!-- <div
  416. :id="'task' + itemTaskIndex"
  417. class="cc_title"
  418. >
  419. 任务{{ itemTaskIndex + 1 }}
  420. </div> -->
  421. <div class="cc_input">
  422. <input
  423. type="text"
  424. placeholder="输入任务名称"
  425. class="binfo_input"
  426. style="border-radius: 4px"
  427. v-model="
  428. unitJson[unitIndex].chapterInfo[0].taskJson[
  429. itemTaskIndex
  430. ].task
  431. "
  432. />
  433. </div>
  434. <!-- <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  435. <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  436. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  437. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  438. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div> -->
  439. </div>
  440. </div>
  441. </div>
  442. <!-- v-if="!itemTask.isFold2" -->
  443. <div style="margin: 25px 0 0">
  444. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  445. itemTaskIndex
  446. ].taskDetail
  447. " @change="change"></editor-bar> -->
  448. <textarea
  449. v-autoHeight="70"
  450. rows="2"
  451. class="binfo_input"
  452. placeholder="请输入任务描述"
  453. cols
  454. v-model="
  455. unitJson[unitIndex].chapterInfo[0].taskJson[
  456. itemTaskIndex
  457. ].taskDetail
  458. "
  459. ></textarea>
  460. </div>
  461. <div
  462. class="basic_box"
  463. style="padding: 25px 0 0 !important"
  464. >
  465. <div
  466. style="
  467. display: flex;
  468. margin: 0 0 0 0;
  469. flex-direction: row;
  470. justify-content: space-between;
  471. align-items: center;
  472. "
  473. >
  474. <div class="lineTitle" style="margin-bottom: 10px">
  475. 学习内容
  476. </div>
  477. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  478. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容
  479. </div>
  480. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  481. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  482. </div>
  483. <!-- v-if="!itemTask.isFoldchapter" -->
  484. <div>
  485. <div
  486. class="add_chapters_box add_c_none"
  487. v-if="
  488. itemTask.chapterData &&
  489. itemTask.chapterData.length == 0
  490. "
  491. >
  492. <img
  493. src="../../../assets/icon/new/c_none.png"
  494. alt
  495. /><span>请添加学习内容</span>
  496. </div>
  497. <div
  498. v-else
  499. class="add_chapters_box"
  500. style="display: flex; flex-direction: column"
  501. >
  502. <div
  503. @dragstart="
  504. dragStart(item1, index1, itemTaskIndex)
  505. "
  506. @dragover.prevent="
  507. dragOver(index1, itemTaskIndex)
  508. "
  509. @dragend="dragEnd()"
  510. :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1"
  511. class="chapter_upload"
  512. v-for="(item1, index1) in itemTask.chapterData"
  513. :key="item1.id"
  514. @click="
  515. getChapterData(
  516. $event,
  517. unitIndex,
  518. index,
  519. index1,
  520. item1.type
  521. )
  522. "
  523. :class="{
  524. dragOverTop2:
  525. newIndex === index1 &&
  526. typeIndex ==
  527. 'chapter-' + itemTaskIndex + '-' + index1 &&
  528. oldIndex > index1,
  529. dragOverBottom2:
  530. newIndex === index1 &&
  531. typeIndex ==
  532. 'chapter-' + itemTaskIndex + '-' + index1 &&
  533. oldIndex < index1,
  534. }"
  535. >
  536. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  537. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  538. <div
  539. class="chapter_upload_t"
  540. style="width: 100%"
  541. ></div>
  542. <div
  543. class="chapter_upload_o"
  544. style="
  545. position: relative;
  546. display: flex;
  547. align-items: center;
  548. "
  549. >
  550. <div
  551. class="chapter_upload_l"
  552. style="padding: 1px 0 0 10px"
  553. >
  554. <div
  555. v-if="item1.type == 2"
  556. class="chapter_upload_l_i2"
  557. ></div>
  558. <div
  559. v-if="item1.type == 3"
  560. class="chapter_upload_l_i3"
  561. style="margin-left: 1px"
  562. ></div>
  563. <div
  564. v-if="item1.type == 6"
  565. class="chapter_upload_l_i6"
  566. style="margin-left: 1px"
  567. ></div>
  568. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  569. <div
  570. v-if="item1.type == 8"
  571. class="chapter_upload_l_i8"
  572. style="margin-left: 1px"
  573. ></div>
  574. <div
  575. v-if="item1.type == 14"
  576. class="chapter_upload_l_i14"
  577. style="margin-left: 1px"
  578. ></div>
  579. <div
  580. v-if="item1.type == 12"
  581. class="chapter_upload_l_i12"
  582. style="margin-left: 1px"
  583. ></div>
  584. <div
  585. v-if="item1.type == 13"
  586. class="chapter_upload_l_i13"
  587. style="margin-left: 1px"
  588. ></div>
  589. </div>
  590. <div class="chapter_upload_n">
  591. <input
  592. readonly="true"
  593. v-if="
  594. item1.type == 2 ||
  595. item1.type == 3 ||
  596. item1.type == 12 ||
  597. item1.type == 13 ||
  598. item1.type == 7
  599. "
  600. :placeholder="item1.name"
  601. @click="
  602. updataVideoT(
  603. $event,
  604. unitIndex,
  605. itemTaskIndex,
  606. index1
  607. )
  608. "
  609. style="
  610. border: none;
  611. outline: none;
  612. width: 80%;
  613. minwidth: 215px;
  614. z-index: 99;
  615. font-size: 14px;
  616. white-space: nowrap;
  617. overflow: hidden;
  618. text-overflow: ellipsis;
  619. "
  620. />
  621. <input
  622. :placeholder="item1.name"
  623. v-if="item1.type == 6"
  624. style="
  625. border: none;
  626. outline: none;
  627. width: 80%;
  628. white-space: nowrap;
  629. overflow: hidden;
  630. text-overflow: ellipsis;
  631. "
  632. readonly="true"
  633. @click="
  634. selectAttText(itemTaskIndex, index1)
  635. "
  636. />
  637. <input
  638. :placeholder="
  639. item1.title ? item1.title : '链接'
  640. "
  641. v-if="item1.type == 8"
  642. style="
  643. border: none;
  644. outline: none;
  645. width: 80%;
  646. white-space: nowrap;
  647. overflow: hidden;
  648. text-overflow: ellipsis;
  649. "
  650. readonly="true"
  651. @click="selectLine(itemTaskIndex, index1)"
  652. />
  653. <input
  654. :placeholder="
  655. item1.title ? item1.title : '链接'
  656. "
  657. v-if="item1.type == 14"
  658. style="
  659. border: none;
  660. outline: none;
  661. width: 80%;
  662. white-space: nowrap;
  663. overflow: hidden;
  664. text-overflow: ellipsis;
  665. "
  666. readonly="true"
  667. @click="
  668. openUpdateSource(itemTaskIndex, index1)
  669. "
  670. />
  671. </div>
  672. <div class="chapter_upload_ic">
  673. <div
  674. class="chapter_upload_noSee"
  675. v-if="item1.type == 12"
  676. ></div>
  677. <div
  678. class="chapter_upload_ud"
  679. style="z-index: 99"
  680. >
  681. <div
  682. class="chapter_upload_up"
  683. @click="
  684. upCd(
  685. $event,
  686. unitIndex,
  687. index,
  688. itemTaskIndex,
  689. index1
  690. )
  691. "
  692. ></div>
  693. <div
  694. class="chapter_upload_down"
  695. @click="
  696. downCd(
  697. $event,
  698. unitIndex,
  699. index,
  700. itemTaskIndex,
  701. index1
  702. )
  703. "
  704. ></div>
  705. </div>
  706. <div
  707. class="chapter_upload_ic_edit"
  708. v-if="
  709. item1.type == 2 ||
  710. item1.type == 3 ||
  711. item1.type == 12 ||
  712. item1.type == 13 ||
  713. item1.type == 7
  714. "
  715. @click.stop="
  716. updataVideoT(
  717. $event,
  718. unitIndex,
  719. itemTaskIndex,
  720. index1
  721. )
  722. "
  723. >
  724. <div></div>
  725. </div>
  726. <div
  727. class="chapter_upload_ic_edit"
  728. v-if="item1.type == 6"
  729. @click="
  730. selectAttText(itemTaskIndex, index1)
  731. "
  732. >
  733. <div></div>
  734. </div>
  735. <div
  736. class="chapter_upload_ic_edit"
  737. v-if="item1.type == 8"
  738. @click="selectLine(itemTaskIndex, index1)"
  739. >
  740. <div></div>
  741. </div>
  742. <div
  743. class="chapter_upload_ic_edit"
  744. v-if="item1.type == 14"
  745. @click="
  746. openUpdateSource(itemTaskIndex, index1)
  747. "
  748. >
  749. <div></div>
  750. </div>
  751. <div
  752. class="chapter_upload_ic_r"
  753. @click.stop="
  754. deleteChapterData(
  755. $event,
  756. unitIndex,
  757. index,
  758. index1,
  759. itemTaskIndex
  760. )
  761. "
  762. >
  763. <div></div>
  764. </div>
  765. </div>
  766. </div>
  767. </div>
  768. </div>
  769. </div>
  770. <!-- v-if="!itemTask.isFoldchapter" -->
  771. <div class="add_info_box" style="margin: 10px 0 0">
  772. <button
  773. class="c_pub_button_add pub_btn_add_img"
  774. @click="addImg($event)"
  775. >
  776. 文件
  777. <input
  778. type="file"
  779. accept="*"
  780. style="display: none"
  781. v-if="inputShow"
  782. @change="beforeUpload2($event, unitIndex, 13, 0)"
  783. />
  784. </button>
  785. <button
  786. class="c_pub_button_add pub_btn_add_img"
  787. @click="addAttText(0)"
  788. >
  789. 图文
  790. </button>
  791. <button
  792. class="c_pub_button_add pub_btn_add_img"
  793. @click="openLine(0)"
  794. >
  795. 链接
  796. </button>
  797. <button
  798. class="c_pub_button_add pub_btn_add_img"
  799. @click="pasteLine(0)"
  800. >
  801. 代码
  802. </button>
  803. <button
  804. class="c_pub_button_add pub_btn_add_img"
  805. @click="openSource(0)"
  806. >
  807. 资源
  808. </button>
  809. <!-- <button class="info_btn" @click="addImg($event)">
  810. 其他附件
  811. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  812. " />
  813. </button> -->
  814. </div>
  815. <div
  816. v-if="
  817. unitJson[unitIndex].chapterInfo[0].taskJson[
  818. itemTaskIndex
  819. ].proVisible
  820. "
  821. class="mask"
  822. >
  823. <div class="progressBox">
  824. <!-- <div id="closePro" class="closeCss">
  825. <img src="../../../../assets/icon/close.png" alt />
  826. </div> -->
  827. <div class="lbox">
  828. <img
  829. src="../../../assets/loading.gif"
  830. />上传中,请稍后
  831. </div>
  832. <div style="margin-bottom: 10px">
  833. <span
  834. >{{
  835. unitJson[unitIndex].chapterInfo[0].taskJson[
  836. itemTaskIndex
  837. ].isFinishSize
  838. }}M</span
  839. >
  840. /
  841. <span
  842. >{{
  843. unitJson[unitIndex].chapterInfo[0].taskJson[
  844. itemTaskIndex
  845. ].isAllSize
  846. }}M</span
  847. >
  848. </div>
  849. <el-progress
  850. :text-inside="true"
  851. :stroke-width="20"
  852. :percentage="
  853. unitJson[unitIndex].chapterInfo[0].taskJson[
  854. itemTaskIndex
  855. ].progress
  856. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  857. itemTaskIndex
  858. ].progress
  859. : 0
  860. "
  861. style="width: 80%"
  862. ></el-progress>
  863. </div>
  864. </div>
  865. </div>
  866. <div class="toolChoose" style="margin: 5px 0 20px">
  867. <div class="tools">
  868. <div
  869. class="leftTools"
  870. style="width: 100%"
  871. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  872. :key="toolIndex"
  873. >
  874. <div
  875. style="
  876. display: flex;
  877. flex-direction: row;
  878. align-items: baseline;
  879. flex-wrap: nowrap;
  880. justify-content: flex-start;
  881. position: relative;
  882. "
  883. >
  884. <div
  885. :id="'gj' + itemTaskIndex + '' + toolIndex"
  886. style="margin-right: 20px; font-weight: bold"
  887. >
  888. 工具 {{ toolIndex + 1 }} :
  889. </div>
  890. <div class="chooseWho">
  891. <div
  892. :class="
  893. itemTool.toolType == 0
  894. ? 'isChooseActive'
  895. : ''
  896. "
  897. @click="
  898. (itemTool.toolType = 0),
  899. (itemTool.isFold3 = false),
  900. $forceUpdate()
  901. "
  902. >
  903. 互动类
  904. </div>
  905. <div
  906. :class="
  907. itemTool.toolType == 1
  908. ? 'isChooseActive'
  909. : ''
  910. "
  911. @click="
  912. (itemTool.toolType = 1),
  913. (itemTool.isFold3 = false),
  914. $forceUpdate()
  915. "
  916. >
  917. 思维类
  918. </div>
  919. <div
  920. :class="
  921. itemTool.toolType == 6
  922. ? 'isChooseActive'
  923. : ''
  924. "
  925. @click="
  926. (itemTool.toolType = 6),
  927. (itemTool.isFold3 = false),
  928. $forceUpdate()
  929. "
  930. >
  931. 协作类
  932. </div>
  933. <div
  934. :class="
  935. itemTool.toolType == 2
  936. ? 'isChooseActive'
  937. : ''
  938. "
  939. @click="
  940. (itemTool.toolType = 2),
  941. (itemTool.isFold3 = false),
  942. $forceUpdate()
  943. "
  944. >
  945. 测评类
  946. </div>
  947. <div
  948. :class="
  949. itemTool.toolType == 7
  950. ? 'isChooseActive'
  951. : ''
  952. "
  953. @click="
  954. (itemTool.toolType = 7),
  955. (itemTool.isFold3 = false),
  956. $forceUpdate()
  957. "
  958. >
  959. 评价类
  960. </div>
  961. <div
  962. :class="
  963. itemTool.toolType == 3
  964. ? 'isChooseActive'
  965. : ''
  966. "
  967. @click="
  968. (itemTool.toolType = 3),
  969. (itemTool.isFold3 = false),
  970. $forceUpdate()
  971. "
  972. >
  973. 编程类
  974. </div>
  975. <div
  976. :class="
  977. itemTool.toolType == 5
  978. ? 'isChooseActive'
  979. : ''
  980. "
  981. @click="
  982. (itemTool.toolType = 5),
  983. (itemTool.isFold3 = false),
  984. $forceUpdate()
  985. "
  986. >
  987. 学科类
  988. </div>
  989. <!--<div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  990. " @click="(itemTool.toolType = 4), $forceUpdate()">
  991. 其他
  992. </div> -->
  993. </div>
  994. <div
  995. class="chapter_upload_ud2"
  996. style="z-index: 9; margin: 0 0 0 auto"
  997. :style="{
  998. margin:
  999. itemTask.toolChoose.length > 1
  1000. ? '0px 35px 0px auto'
  1001. : '0 0 0 auto',
  1002. }"
  1003. v-if="itemTask.toolChoose.length > 1"
  1004. >
  1005. <div
  1006. class="chapter_upload_up2"
  1007. @click.stop="
  1008. upTool(
  1009. $event,
  1010. unitIndex,
  1011. itemTaskIndex,
  1012. toolIndex
  1013. )
  1014. "
  1015. >
  1016. 上移
  1017. </div>
  1018. <div
  1019. class="chapter_upload_down2"
  1020. @click.stop="
  1021. downTool(
  1022. $event,
  1023. unitIndex,
  1024. itemTaskIndex,
  1025. toolIndex
  1026. )
  1027. "
  1028. >
  1029. 下移
  1030. </div>
  1031. </div>
  1032. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1033. @click="fold3(itemTaskIndex, toolIndex)"
  1034. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1035. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1036. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1037. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1038. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1039. <div
  1040. class="remove"
  1041. @click="deleteTool(itemTaskIndex, toolIndex)"
  1042. v-if="itemTask.toolChoose.length > 1"
  1043. style="position: absolute; right: 0; top: -5px"
  1044. ></div>
  1045. </div>
  1046. <!-- v-show="!itemTool.isFold3" -->
  1047. <div style="min-height: 163px">
  1048. <div
  1049. class="toolSort"
  1050. v-if="itemTool.toolType == 0"
  1051. >
  1052. <!-- <div class="tool">
  1053. <div
  1054. class="whiteBIcon"
  1055. @click="addTools(8, itemTaskIndex, toolIndex)"
  1056. >
  1057. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1058. <div style="margin: 5px 0">素材库</div>
  1059. </div>
  1060. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1061. <img
  1062. src="../../../assets/icon/checkNo.png"
  1063. alt
  1064. v-if="itemTool.tool.indexOf(8) == -1"
  1065. />
  1066. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1067. alt /><span>已选择</span></div>
  1068. </div>
  1069. </div>-->
  1070. <!-- <div class="tool">
  1071. <div
  1072. class="whiteBIcon"
  1073. @click="addTools(17, itemTaskIndex, toolIndex)"
  1074. >
  1075. <img
  1076. src="../../../assets/icon/secondToolList/library.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">学习资料</div>
  1080. </div>
  1081. <div
  1082. class="check"
  1083. @click="addTools(17, itemTaskIndex, toolIndex)"
  1084. >
  1085. <img
  1086. src="../../../assets/icon/checkNo.png"
  1087. alt
  1088. v-if="itemTool.tool.indexOf(17) == -1"
  1089. />
  1090. <img
  1091. src="../../../assets/icon/checkedIs.png"
  1092. alt
  1093. v-else
  1094. />
  1095. </div>10
  1096. </div> -->
  1097. <div
  1098. class="tool"
  1099. :class="{
  1100. isToolChoose:
  1101. itemTool.tool.indexOf(10) != -1,
  1102. }"
  1103. @click="
  1104. addTools(10, itemTaskIndex, toolIndex)
  1105. "
  1106. >
  1107. <div
  1108. class="whiteBIcon"
  1109. @click.stop="
  1110. openTools(itemTaskIndex, 10, toolIndex)
  1111. "
  1112. >
  1113. <img
  1114. src="../../../assets/icon/thirdToolList/time.png"
  1115. alt
  1116. />
  1117. <div style="margin: 5px 0">倒计时</div>
  1118. </div>
  1119. <div
  1120. class="isCTool"
  1121. v-show="itemTool.tool.indexOf(10) != -1"
  1122. >
  1123. <img
  1124. src="../../../assets/icon/new/isToolC.png"
  1125. alt=""
  1126. />
  1127. </div>
  1128. <!-- <div
  1129. class="check"
  1130. @click="
  1131. addTools(10, itemTaskIndex, toolIndex)
  1132. "
  1133. >
  1134. <img
  1135. src="../../../assets/icon/checkNo.png"
  1136. alt
  1137. v-if="itemTool.tool.indexOf(10) == -1"
  1138. />
  1139. <div class="checkDiv" v-else>
  1140. <img
  1141. src="../../../assets/icon/checkedIs.png"
  1142. alt
  1143. /><span>已选择</span>
  1144. </div>
  1145. </div> -->
  1146. </div>
  1147. <div
  1148. class="tool"
  1149. :class="{
  1150. isToolChoose:
  1151. itemTool.tool.indexOf(65) != -1,
  1152. }"
  1153. @click="
  1154. addTools(65, itemTaskIndex, toolIndex)
  1155. "
  1156. >
  1157. <div
  1158. class="whiteBIcon"
  1159. @click.stop="
  1160. addTools(65, itemTaskIndex, toolIndex)
  1161. "
  1162. >
  1163. <img
  1164. src="../../../assets/icon/firstToolList/pickPeople.png"
  1165. alt
  1166. />
  1167. <div style="margin: 5px 0">挑人</div>
  1168. </div>
  1169. <div
  1170. class="isCTool"
  1171. v-show="itemTool.tool.indexOf(65) != -1"
  1172. >
  1173. <img
  1174. src="../../../assets/icon/new/isToolC.png"
  1175. alt=""
  1176. />
  1177. </div>
  1178. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1179. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(65) == -1" />
  1180. <div class="checkDiv" v-else>
  1181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1182. </div>
  1183. </div> -->
  1184. </div>
  1185. <!-- <div class="tool">
  1186. <div
  1187. class="whiteBIcon"
  1188. @click="
  1189. openTools(itemTaskIndex, 49, toolIndex)
  1190. "
  1191. >
  1192. <img
  1193. src="../../../assets/icon/fourthToolList/group.png"
  1194. alt
  1195. />
  1196. <div style="margin: 5px 0">学生分组</div>
  1197. </div>
  1198. <div
  1199. class="check"
  1200. @click="
  1201. addTools(49, itemTaskIndex, toolIndex)
  1202. "
  1203. >
  1204. <img
  1205. src="../../../assets/icon/checkNo.png"
  1206. alt
  1207. v-if="itemTool.tool.indexOf(49) == -1"
  1208. />
  1209. <div class="checkDiv" v-else>
  1210. <img
  1211. src="../../../assets/icon/checkedIs.png"
  1212. alt
  1213. /><span>已选择</span>
  1214. </div>
  1215. </div>
  1216. </div> -->
  1217. <!-- <div class="tool">
  1218. <div
  1219. class="whiteBIcon"
  1220. @click="
  1221. openTools(itemTaskIndex, 62, toolIndex)
  1222. "
  1223. >
  1224. <img
  1225. src="../../../assets/icon/fourthToolList/interVideo.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">交互视频</div>
  1229. </div>
  1230. <div
  1231. class="check"
  1232. @click="
  1233. addTools(62, itemTaskIndex, toolIndex)
  1234. "
  1235. >
  1236. <img
  1237. src="../../../assets/icon/checkNo.png"
  1238. alt
  1239. v-if="itemTool.tool.indexOf(62) == -1"
  1240. />
  1241. <div class="checkDiv" v-else>
  1242. <img
  1243. src="../../../assets/icon/checkedIs.png"
  1244. alt
  1245. /><span>已选择</span>
  1246. </div>
  1247. </div>
  1248. </div> -->
  1249. </div>
  1250. <div
  1251. class="toolSort"
  1252. v-if="itemTool.toolType == 1"
  1253. >
  1254. <div
  1255. class="tool"
  1256. :class="{
  1257. isToolChoose:
  1258. itemTool.tool.indexOf(7) != -1,
  1259. }"
  1260. @click="addTools(7, itemTaskIndex, toolIndex)"
  1261. >
  1262. <div
  1263. class="whiteBIcon"
  1264. @click.stop="
  1265. addTools(7, itemTaskIndex, toolIndex)
  1266. "
  1267. >
  1268. <img
  1269. src="../../../assets/icon/secondToolList/mindNetwork.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">思维网格</div>
  1273. </div>
  1274. <div
  1275. class="isCTool"
  1276. v-show="itemTool.tool.indexOf(7) != -1"
  1277. >
  1278. <img
  1279. src="../../../assets/icon/new/isToolC.png"
  1280. alt=""
  1281. />
  1282. </div>
  1283. <!-- <div
  1284. class="check"
  1285. @click="
  1286. addTools(7, itemTaskIndex, toolIndex)
  1287. "
  1288. >
  1289. <img
  1290. src="../../../assets/icon/checkNo.png"
  1291. alt
  1292. v-if="itemTool.tool.indexOf(7) == -1"
  1293. />
  1294. <div class="checkDiv" v-else>
  1295. <img
  1296. src="../../../assets/icon/checkedIs.png"
  1297. alt
  1298. /><span>已选择</span>
  1299. </div>
  1300. </div> -->
  1301. </div>
  1302. <div
  1303. class="tool"
  1304. :class="{
  1305. isToolChoose:
  1306. itemTool.tool.indexOf(1) != -1,
  1307. }"
  1308. @click="addTools(1, itemTaskIndex, toolIndex)"
  1309. >
  1310. <div
  1311. class="whiteBIcon"
  1312. @click.stop="
  1313. openTools(itemTaskIndex, 1, toolIndex)
  1314. "
  1315. >
  1316. <img
  1317. src="../../../assets/icon/secondToolList/whiteBoard.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">电子白板</div>
  1321. </div>
  1322. <div
  1323. class="isCTool"
  1324. v-show="itemTool.tool.indexOf(1) != -1"
  1325. >
  1326. <img
  1327. src="../../../assets/icon/new/isToolC.png"
  1328. alt=""
  1329. />
  1330. </div>
  1331. <!-- <div
  1332. class="check"
  1333. @click="
  1334. addTools(1, itemTaskIndex, toolIndex)
  1335. "
  1336. >
  1337. <img
  1338. src="../../../assets/icon/checkNo.png"
  1339. alt
  1340. v-if="itemTool.tool.indexOf(1) == -1"
  1341. />
  1342. <div class="checkDiv" v-else>
  1343. <img
  1344. src="../../../assets/icon/checkedIs.png"
  1345. alt
  1346. /><span>已选择</span>
  1347. </div>
  1348. </div> -->
  1349. </div>
  1350. <!-- <div class="tool">
  1351. <div
  1352. class="whiteBIcon"
  1353. @click="addTools(2, itemTaskIndex, toolIndex)"
  1354. >
  1355. <img
  1356. src="../../../assets/icon/secondToolList/note.png"
  1357. alt
  1358. />
  1359. <div style="margin: 5px 0">便签</div>
  1360. </div>
  1361. <div
  1362. class="check"
  1363. @click="addTools(2, itemTaskIndex, toolIndex)"
  1364. >
  1365. <img
  1366. src="../../../assets/icon/checkNo.png"
  1367. alt
  1368. v-if="itemTool.tool.indexOf(2) == -1"
  1369. />
  1370. <div class="checkDiv" v-else>
  1371. <img
  1372. src="../../../assets/icon/checkedIs.png"
  1373. alt
  1374. /><span>已选择</span>
  1375. </div>
  1376. </div>
  1377. </div> -->
  1378. <!-- <div class="tool">
  1379. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1380. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1381. <div style="margin: 5px 0">协同文档</div>
  1382. </div>
  1383. <div
  1384. class="check"
  1385. @click="addTools(6, itemTaskIndex, toolIndex)"
  1386. >
  1387. <img
  1388. src="../../../assets/icon/checkNo.png"
  1389. alt
  1390. v-if="itemTool.tool.indexOf(6) == -1"
  1391. />
  1392. <div class="checkDiv" v-else>
  1393. <img
  1394. src="../../../assets/icon/checkedIs.png"
  1395. alt
  1396. /><span>已选择</span>
  1397. </div>
  1398. </div>
  1399. </div> -->
  1400. <div
  1401. class="tool"
  1402. :class="{
  1403. isToolChoose:
  1404. itemTool.tool.indexOf(52) != -1,
  1405. }"
  1406. @click="
  1407. addTools(52, itemTaskIndex, toolIndex)
  1408. "
  1409. >
  1410. <div
  1411. class="whiteBIcon"
  1412. @click.stop="
  1413. openTools(itemTaskIndex, 52, toolIndex)
  1414. "
  1415. >
  1416. <img
  1417. src="../../../assets/icon/fourthToolList/text.png"
  1418. alt
  1419. />
  1420. <div style="margin: 5px 0">文档</div>
  1421. </div>
  1422. <div
  1423. class="isCTool"
  1424. v-show="itemTool.tool.indexOf(52) != -1"
  1425. >
  1426. <img
  1427. src="../../../assets/icon/new/isToolC.png"
  1428. alt=""
  1429. />
  1430. </div>
  1431. <!-- <div
  1432. class="check"
  1433. @click="
  1434. addTools(52, itemTaskIndex, toolIndex)
  1435. "
  1436. >
  1437. <img
  1438. src="../../../assets/icon/checkNo.png"
  1439. alt
  1440. v-if="itemTool.tool.indexOf(52) == -1"
  1441. />
  1442. <div class="checkDiv" v-else>
  1443. <img
  1444. src="../../../assets/icon/checkedIs.png"
  1445. alt
  1446. /><span>已选择</span>
  1447. </div>
  1448. </div> -->
  1449. </div>
  1450. <div
  1451. class="tool"
  1452. :class="{
  1453. isToolChoose:
  1454. itemTool.tool.indexOf(3) != -1,
  1455. }"
  1456. @click="addTools(3, itemTaskIndex, toolIndex)"
  1457. >
  1458. <div
  1459. class="whiteBIcon"
  1460. @click.stop="
  1461. openTools(itemTaskIndex, 3, toolIndex)
  1462. "
  1463. >
  1464. <img
  1465. src="../../../assets/icon/secondToolList/mindMapping.png"
  1466. alt
  1467. />
  1468. <div style="margin: 5px 0">思维导图</div>
  1469. </div>
  1470. <div
  1471. class="isCTool"
  1472. v-show="itemTool.tool.indexOf(3) != -1"
  1473. >
  1474. <img
  1475. src="../../../assets/icon/new/isToolC.png"
  1476. alt=""
  1477. />
  1478. </div>
  1479. <!-- <div
  1480. class="check"
  1481. @click="
  1482. addTools(3, itemTaskIndex, toolIndex)
  1483. "
  1484. >
  1485. <img
  1486. src="../../../assets/icon/checkNo.png"
  1487. alt
  1488. v-if="itemTool.tool.indexOf(3) == -1"
  1489. />
  1490. <div class="checkDiv" v-else>
  1491. <img
  1492. src="../../../assets/icon/checkedIs.png"
  1493. alt
  1494. /><span>已选择</span>
  1495. </div>
  1496. </div> -->
  1497. </div>
  1498. <div
  1499. class="tool"
  1500. :class="{
  1501. isToolChoose:
  1502. itemTool.tool.indexOf(48) != -1,
  1503. }"
  1504. @click="
  1505. addTools(48, itemTaskIndex, toolIndex)
  1506. "
  1507. >
  1508. <div
  1509. class="whiteBIcon"
  1510. @click.stop="
  1511. openTools(itemTaskIndex, 48, toolIndex)
  1512. "
  1513. >
  1514. <img
  1515. src="../../../assets/icon/fourthToolList/table.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">表格</div>
  1519. </div>
  1520. <div
  1521. class="isCTool"
  1522. v-show="itemTool.tool.indexOf(48) != -1"
  1523. >
  1524. <img
  1525. src="../../../assets/icon/new/isToolC.png"
  1526. alt=""
  1527. />
  1528. </div>
  1529. <!-- <div
  1530. class="check"
  1531. @click="
  1532. addTools(48, itemTaskIndex, toolIndex)
  1533. "
  1534. >
  1535. <img
  1536. src="../../../assets/icon/checkNo.png"
  1537. alt
  1538. v-if="itemTool.tool.indexOf(48) == -1"
  1539. />
  1540. <div class="checkDiv" v-else>
  1541. <img
  1542. src="../../../assets/icon/checkedIs.png"
  1543. alt
  1544. /><span>已选择</span>
  1545. </div>
  1546. </div> -->
  1547. </div>
  1548. </div>
  1549. <div
  1550. class="toolSort"
  1551. v-if="itemTool.toolType == 6"
  1552. >
  1553. <div
  1554. class="tool"
  1555. :class="{
  1556. isToolChoose:
  1557. itemTool.tool.indexOf(49) != -1,
  1558. }"
  1559. @click="
  1560. addTools(49, itemTaskIndex, toolIndex)
  1561. "
  1562. >
  1563. <div
  1564. class="whiteBIcon"
  1565. @click.stop="
  1566. openTools(itemTaskIndex, 49, toolIndex)
  1567. "
  1568. >
  1569. <img
  1570. src="../../../assets/icon/fourthToolList/group.png"
  1571. alt
  1572. />
  1573. <div style="margin: 5px 0">学生分组</div>
  1574. </div>
  1575. <div
  1576. class="isCTool"
  1577. v-show="itemTool.tool.indexOf(49) != -1"
  1578. >
  1579. <img
  1580. src="../../../assets/icon/new/isToolC.png"
  1581. alt=""
  1582. />
  1583. </div>
  1584. <!-- <div
  1585. class="check"
  1586. @click="
  1587. addTools(49, itemTaskIndex, toolIndex)
  1588. "
  1589. >
  1590. <img
  1591. src="../../../assets/icon/checkNo.png"
  1592. alt
  1593. v-if="itemTool.tool.indexOf(49) == -1"
  1594. />
  1595. <div class="checkDiv" v-else>
  1596. <img
  1597. src="../../../assets/icon/checkedIs.png"
  1598. alt
  1599. /><span>已选择</span>
  1600. </div>
  1601. </div> -->
  1602. </div>
  1603. </div>
  1604. <div
  1605. class="toolSort"
  1606. v-if="itemTool.toolType == 2"
  1607. >
  1608. <!-- <div class="tool">
  1609. <div
  1610. class="whiteBIcon"
  1611. @click="addTools(5, itemTaskIndex, toolIndex)"
  1612. >
  1613. <img
  1614. src="../../../assets/icon/thirdToolList/score.png"
  1615. alt
  1616. />
  1617. <div style="margin: 5px 0">量规评分</div>
  1618. </div>
  1619. <div
  1620. class="check"
  1621. @click="addTools(5, itemTaskIndex, toolIndex)"
  1622. >
  1623. <img
  1624. src="../../../assets/icon/checkNo.png"
  1625. alt
  1626. v-if="itemTool.tool.indexOf(5) == -1"
  1627. />
  1628. <img
  1629. src="../../../assets/icon/checkedIs.png"
  1630. alt
  1631. v-else
  1632. />
  1633. </div>
  1634. </div>-->
  1635. <div
  1636. class="tool"
  1637. :class="{
  1638. isToolChoose:
  1639. itemTool.tool.indexOf(4) != -1,
  1640. }"
  1641. @click="addTools(4, itemTaskIndex, toolIndex)"
  1642. >
  1643. <div
  1644. class="whiteBIcon"
  1645. @click.stop="
  1646. openTools(itemTaskIndex, 4, toolIndex)
  1647. "
  1648. >
  1649. <img
  1650. src="../../../assets/icon/thirdToolList/ask.png"
  1651. alt
  1652. />
  1653. <div style="margin: 5px 0">问卷调查</div>
  1654. </div>
  1655. <div
  1656. class="isCTool"
  1657. v-show="itemTool.tool.indexOf(4) != -1"
  1658. >
  1659. <img
  1660. src="../../../assets/icon/new/isToolC.png"
  1661. alt=""
  1662. />
  1663. </div>
  1664. <!-- <div
  1665. class="check"
  1666. @click="
  1667. addTools(4, itemTaskIndex, toolIndex)
  1668. "
  1669. >
  1670. <img
  1671. src="../../../assets/icon/checkNo.png"
  1672. alt
  1673. v-if="itemTool.tool.indexOf(4) == -1"
  1674. />
  1675. <div class="checkDiv" v-else>
  1676. <img
  1677. src="../../../assets/icon/checkedIs.png"
  1678. alt
  1679. /><span>已选择</span>
  1680. </div>
  1681. </div> -->
  1682. </div>
  1683. <div
  1684. class="tool"
  1685. :class="{
  1686. isToolChoose:
  1687. itemTool.tool.indexOf(45) != -1,
  1688. }"
  1689. @click="
  1690. addTools(45, itemTaskIndex, toolIndex)
  1691. "
  1692. >
  1693. <div
  1694. class="whiteBIcon"
  1695. @click.stop="
  1696. openTools(itemTaskIndex, 45, toolIndex)
  1697. "
  1698. >
  1699. <img
  1700. src="../../../assets/icon/thirdToolList/choose.png"
  1701. alt
  1702. />
  1703. <div style="margin: 5px 0">选择题</div>
  1704. </div>
  1705. <div
  1706. class="isCTool"
  1707. v-show="itemTool.tool.indexOf(45) != -1"
  1708. >
  1709. <img
  1710. src="../../../assets/icon/new/isToolC.png"
  1711. alt=""
  1712. />
  1713. </div>
  1714. <!-- <div
  1715. class="check"
  1716. @click="
  1717. addTools(45, itemTaskIndex, toolIndex)
  1718. "
  1719. >
  1720. <img
  1721. src="../../../assets/icon/checkNo.png"
  1722. alt
  1723. v-if="itemTool.tool.indexOf(45) == -1"
  1724. />
  1725. <div class="checkDiv" v-else>
  1726. <img
  1727. src="../../../assets/icon/checkedIs.png"
  1728. alt
  1729. /><span>已选择</span>
  1730. </div>
  1731. </div> -->
  1732. </div>
  1733. <div
  1734. class="tool"
  1735. :class="{
  1736. isToolChoose:
  1737. itemTool.tool.indexOf(15) != -1,
  1738. }"
  1739. @click="
  1740. addTools(15, itemTaskIndex, toolIndex)
  1741. "
  1742. >
  1743. <div
  1744. class="whiteBIcon"
  1745. @click.stop="
  1746. openTools(itemTaskIndex, 15, toolIndex)
  1747. "
  1748. >
  1749. <img
  1750. src="../../../assets/icon/thirdToolList/answer.png"
  1751. alt
  1752. />
  1753. <div style="margin: 5px 0">问答</div>
  1754. </div>
  1755. <div
  1756. class="isCTool"
  1757. v-show="itemTool.tool.indexOf(15) != -1"
  1758. >
  1759. <img
  1760. src="../../../assets/icon/new/isToolC.png"
  1761. alt=""
  1762. />
  1763. </div>
  1764. <!-- <div
  1765. class="check"
  1766. @click="
  1767. addTools(15, itemTaskIndex, toolIndex)
  1768. "
  1769. >
  1770. <img
  1771. src="../../../assets/icon/checkNo.png"
  1772. alt
  1773. v-if="itemTool.tool.indexOf(15) == -1"
  1774. />
  1775. <div class="checkDiv" v-else>
  1776. <img
  1777. src="../../../assets/icon/checkedIs.png"
  1778. alt
  1779. /><span>已选择</span>
  1780. </div>
  1781. </div> -->
  1782. </div>
  1783. <div
  1784. class="tool"
  1785. :class="{
  1786. isToolChoose:
  1787. itemTool.tool.indexOf(16) != -1,
  1788. }"
  1789. @click="
  1790. addTools(16, itemTaskIndex, toolIndex)
  1791. "
  1792. >
  1793. <div
  1794. class="whiteBIcon"
  1795. @click.stop="
  1796. addTools(16, itemTaskIndex, toolIndex)
  1797. "
  1798. >
  1799. <img
  1800. src="../../../assets/icon/thirdToolList/work.png"
  1801. alt
  1802. />
  1803. <div style="margin: 5px 0">作业提交</div>
  1804. </div>
  1805. <div
  1806. class="isCTool"
  1807. v-show="itemTool.tool.indexOf(16) != -1"
  1808. >
  1809. <img
  1810. src="../../../assets/icon/new/isToolC.png"
  1811. alt=""
  1812. />
  1813. </div>
  1814. <!-- <div
  1815. class="check"
  1816. @click="
  1817. addTools(16, itemTaskIndex, toolIndex)
  1818. "
  1819. >
  1820. <img
  1821. src="../../../assets/icon/checkNo.png"
  1822. alt
  1823. v-if="itemTool.tool.indexOf(16) == -1"
  1824. />
  1825. <div class="checkDiv" v-else>
  1826. <img
  1827. src="../../../assets/icon/checkedIs.png"
  1828. alt
  1829. /><span>已选择</span>
  1830. </div>
  1831. </div> -->
  1832. </div>
  1833. <div
  1834. class="tool"
  1835. :class="{
  1836. isToolChoose:
  1837. itemTool.tool.indexOf(50) != -1,
  1838. }"
  1839. @click="
  1840. addTools(50, itemTaskIndex, toolIndex)
  1841. "
  1842. >
  1843. <div
  1844. class="whiteBIcon"
  1845. @click.stop="
  1846. addTools(50, itemTaskIndex, toolIndex)
  1847. "
  1848. >
  1849. <img
  1850. src="../../../assets/icon/thirdToolList/plwork.png"
  1851. alt
  1852. />
  1853. <div style="margin: 5px 0">批量上传</div>
  1854. </div>
  1855. <div
  1856. class="isCTool"
  1857. v-show="itemTool.tool.indexOf(50) != -1"
  1858. >
  1859. <img
  1860. src="../../../assets/icon/new/isToolC.png"
  1861. alt=""
  1862. />
  1863. </div>
  1864. <!-- <div
  1865. class="check"
  1866. @click="
  1867. addTools(50, itemTaskIndex, toolIndex)
  1868. "
  1869. >
  1870. <img
  1871. src="../../../assets/icon/checkNo.png"
  1872. alt
  1873. v-if="itemTool.tool.indexOf(50) == -1"
  1874. />
  1875. <div class="checkDiv" v-else>
  1876. <img
  1877. src="../../../assets/icon/checkedIs.png"
  1878. alt
  1879. /><span>已选择</span>
  1880. </div>
  1881. </div> -->
  1882. </div>
  1883. <!-- <div class="tool">
  1884. <div
  1885. class="whiteBIcon"
  1886. @click="
  1887. openTools(itemTaskIndex, 40, toolIndex)
  1888. "
  1889. >
  1890. <img
  1891. src="../../../assets/icon/thirdToolList/eval.png"
  1892. alt
  1893. />
  1894. <div style="margin: 5px 0">个人评价</div>
  1895. </div>
  1896. <div
  1897. class="check"
  1898. @click="
  1899. addTools(40, itemTaskIndex, toolIndex)
  1900. "
  1901. >
  1902. <img
  1903. src="../../../assets/icon/checkNo.png"
  1904. alt
  1905. v-if="itemTool.tool.indexOf(40) == -1"
  1906. />
  1907. <div class="checkDiv" v-else>
  1908. <img
  1909. src="../../../assets/icon/checkedIs.png"
  1910. alt
  1911. /><span>已选择</span>
  1912. </div>
  1913. </div>
  1914. </div> -->
  1915. <div
  1916. class="tool"
  1917. :class="{
  1918. isToolChoose:
  1919. itemTool.tool.indexOf(41) != -1,
  1920. }"
  1921. @click="
  1922. addTools(41, itemTaskIndex, toolIndex)
  1923. "
  1924. >
  1925. <div
  1926. class="whiteBIcon"
  1927. @click.stop="
  1928. openTools(itemTaskIndex, 41, toolIndex)
  1929. "
  1930. >
  1931. <img
  1932. src="../../../assets/icon/thirdToolList/select.png"
  1933. alt
  1934. />
  1935. <div style="margin: 5px 0">选择匹配</div>
  1936. </div>
  1937. <div
  1938. class="isCTool"
  1939. v-show="itemTool.tool.indexOf(41) != -1"
  1940. >
  1941. <img
  1942. src="../../../assets/icon/new/isToolC.png"
  1943. alt=""
  1944. />
  1945. </div>
  1946. <!-- <div
  1947. class="check"
  1948. @click="
  1949. addTools(41, itemTaskIndex, toolIndex)
  1950. "
  1951. >
  1952. <img
  1953. src="../../../assets/icon/checkNo.png"
  1954. alt
  1955. v-if="itemTool.tool.indexOf(41) == -1"
  1956. />
  1957. <div class="checkDiv" v-else>
  1958. <img
  1959. src="../../../assets/icon/checkedIs.png"
  1960. alt
  1961. /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. <div
  1966. class="tool"
  1967. :class="{
  1968. isToolChoose:
  1969. itemTool.tool.indexOf(47) != -1,
  1970. }"
  1971. @click="
  1972. addTools(47, itemTaskIndex, toolIndex)
  1973. "
  1974. >
  1975. <div
  1976. class="whiteBIcon"
  1977. @click.stop="
  1978. openTools(itemTaskIndex, 47, toolIndex)
  1979. "
  1980. >
  1981. <img
  1982. src="../../../assets/icon/fourthToolList/conSentences.png"
  1983. alt
  1984. />
  1985. <div style="margin: 5px 0">排序</div>
  1986. </div>
  1987. <div
  1988. class="isCTool"
  1989. v-show="itemTool.tool.indexOf(47) != -1"
  1990. >
  1991. <img
  1992. src="../../../assets/icon/new/isToolC.png"
  1993. alt=""
  1994. />
  1995. </div>
  1996. <!-- <div
  1997. class="check"
  1998. @click="
  1999. addTools(47, itemTaskIndex, toolIndex)
  2000. "
  2001. >
  2002. <img
  2003. src="../../../assets/icon/checkNo.png"
  2004. alt
  2005. v-if="itemTool.tool.indexOf(47) == -1"
  2006. />
  2007. <div class="checkDiv" v-else>
  2008. <img
  2009. src="../../../assets/icon/checkedIs.png"
  2010. alt
  2011. /><span>已选择</span>
  2012. </div>
  2013. </div> -->
  2014. </div>
  2015. <!-- <div class="tool">
  2016. <div
  2017. class="whiteBIcon"
  2018. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2019. >
  2020. <img
  2021. src="../../../assets/icon/thirdToolList/mp3.png"
  2022. alt
  2023. />
  2024. <div style="margin: 5px 0">上传音频</div>
  2025. </div>
  2026. <div
  2027. class="check"
  2028. @click="addTools(42, itemTaskIndex, toolIndex)"
  2029. >
  2030. <img
  2031. src="../../../assets/icon/checkNo.png"
  2032. alt
  2033. v-if="itemTool.tool.indexOf(42) == -1"
  2034. />
  2035. <img
  2036. src="../../../assets/icon/checkedIs.png"
  2037. alt
  2038. v-else
  2039. />
  2040. </div>
  2041. </div> -->
  2042. </div>
  2043. <div
  2044. class="toolSort"
  2045. v-if="itemTool.toolType == 3"
  2046. >
  2047. <div
  2048. class="tool"
  2049. :class="{
  2050. isToolChoose:
  2051. itemTool.tool.indexOf(18) != -1,
  2052. }"
  2053. @click="
  2054. addTools(18, itemTaskIndex, toolIndex)
  2055. "
  2056. >
  2057. <div
  2058. class="whiteBIcon"
  2059. @click.stop="
  2060. addTools(18, itemTaskIndex, toolIndex)
  2061. "
  2062. >
  2063. <img
  2064. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  2065. alt
  2066. />
  2067. <div style="margin: 5px 0">训练平台</div>
  2068. </div>
  2069. <div
  2070. class="isCTool"
  2071. v-show="itemTool.tool.indexOf(18) != -1"
  2072. >
  2073. <img
  2074. src="../../../assets/icon/new/isToolC.png"
  2075. alt=""
  2076. />
  2077. </div>
  2078. <!-- <div
  2079. class="check"
  2080. @click="
  2081. addTools(18, itemTaskIndex, toolIndex)
  2082. "
  2083. >
  2084. <img
  2085. src="../../../assets/icon/checkNo.png"
  2086. alt
  2087. v-if="itemTool.tool.indexOf(18) == -1"
  2088. />
  2089. <div class="checkDiv" v-else>
  2090. <img
  2091. src="../../../assets/icon/checkedIs.png"
  2092. alt
  2093. /><span>已选择</span>
  2094. </div>
  2095. </div> -->
  2096. </div>
  2097. <div
  2098. class="tool"
  2099. :class="{
  2100. isToolChoose:
  2101. itemTool.tool.indexOf(21) != -1,
  2102. }"
  2103. @click="
  2104. addTools(21, itemTaskIndex, toolIndex)
  2105. "
  2106. >
  2107. <div
  2108. class="whiteBIcon"
  2109. @click.stop="
  2110. addTools(21, itemTaskIndex, toolIndex)
  2111. "
  2112. >
  2113. <img
  2114. src="../../../assets/icon/fourthToolList/program.png"
  2115. alt
  2116. />
  2117. <div style="margin: 5px 0">
  2118. AIoT Blockly
  2119. </div>
  2120. </div>
  2121. <div
  2122. class="isCTool"
  2123. v-show="itemTool.tool.indexOf(21) != -1"
  2124. >
  2125. <img
  2126. src="../../../assets/icon/new/isToolC.png"
  2127. alt=""
  2128. />
  2129. </div>
  2130. <!-- <div
  2131. class="check"
  2132. @click="
  2133. addTools(21, itemTaskIndex, toolIndex)
  2134. "
  2135. >
  2136. <img
  2137. src="../../../assets/icon/checkNo.png"
  2138. alt
  2139. v-if="itemTool.tool.indexOf(21) == -1"
  2140. />
  2141. <div class="checkDiv" v-else>
  2142. <img
  2143. src="../../../assets/icon/checkedIs.png"
  2144. alt
  2145. /><span>已选择</span>
  2146. </div>
  2147. </div> -->
  2148. </div>
  2149. <!-- <div class="tool">
  2150. <div
  2151. class="whiteBIcon"
  2152. @click="
  2153. addTools(22, itemTaskIndex, toolIndex)
  2154. "
  2155. >
  2156. <img
  2157. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  2158. alt
  2159. />
  2160. <div style="margin: 5px 0">AI体验</div>
  2161. </div>
  2162. <div
  2163. class="check"
  2164. @click="
  2165. addTools(22, itemTaskIndex, toolIndex)
  2166. "
  2167. >
  2168. <img
  2169. src="../../../assets/icon/checkNo.png"
  2170. alt
  2171. v-if="itemTool.tool.indexOf(22) == -1"
  2172. />
  2173. <div class="checkDiv" v-else>
  2174. <img
  2175. src="../../../assets/icon/checkedIs.png"
  2176. alt
  2177. /><span>已选择</span>
  2178. </div>
  2179. </div>
  2180. </div> -->
  2181. <div
  2182. class="tool"
  2183. :class="{
  2184. isToolChoose:
  2185. itemTool.tool.indexOf(23) != -1,
  2186. }"
  2187. @click="
  2188. addTools(23, itemTaskIndex, toolIndex)
  2189. "
  2190. >
  2191. <div
  2192. class="whiteBIcon"
  2193. @click.stop="
  2194. addTools(23, itemTaskIndex, toolIndex)
  2195. "
  2196. >
  2197. <img
  2198. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  2199. alt
  2200. />
  2201. <div style="margin: 5px 0">AI Python</div>
  2202. </div>
  2203. <div
  2204. class="isCTool"
  2205. v-show="itemTool.tool.indexOf(23) != -1"
  2206. >
  2207. <img
  2208. src="../../../assets/icon/new/isToolC.png"
  2209. alt=""
  2210. />
  2211. </div>
  2212. <!-- <div
  2213. class="check"
  2214. @click="
  2215. addTools(23, itemTaskIndex, toolIndex)
  2216. "
  2217. >
  2218. <img
  2219. src="../../../assets/icon/checkNo.png"
  2220. alt
  2221. v-if="itemTool.tool.indexOf(23) == -1"
  2222. />
  2223. <div class="checkDiv" v-else>
  2224. <img
  2225. src="../../../assets/icon/checkedIs.png"
  2226. alt
  2227. /><span>已选择</span>
  2228. </div>
  2229. </div> -->
  2230. </div>
  2231. <div
  2232. class="tool"
  2233. :class="{
  2234. isToolChoose:
  2235. itemTool.tool.indexOf(24) != -1,
  2236. }"
  2237. @click="
  2238. addTools(24, itemTaskIndex, toolIndex)
  2239. "
  2240. >
  2241. <div
  2242. class="whiteBIcon"
  2243. @click.stop="
  2244. addTools(24, itemTaskIndex, toolIndex)
  2245. "
  2246. >
  2247. <img
  2248. src="../../../assets/icon/fourthToolList/AIprogram.png"
  2249. alt
  2250. />
  2251. <div style="margin: 5px 0">AI Blockly</div>
  2252. </div>
  2253. <div
  2254. class="isCTool"
  2255. v-show="itemTool.tool.indexOf(24) != -1"
  2256. >
  2257. <img
  2258. src="../../../assets/icon/new/isToolC.png"
  2259. alt=""
  2260. />
  2261. </div>
  2262. <!-- <div
  2263. class="check"
  2264. @click="
  2265. addTools(24, itemTaskIndex, toolIndex)
  2266. "
  2267. >
  2268. <img
  2269. src="../../../assets/icon/checkNo.png"
  2270. alt
  2271. v-if="itemTool.tool.indexOf(24) == -1"
  2272. />
  2273. <div class="checkDiv" v-else>
  2274. <img
  2275. src="../../../assets/icon/checkedIs.png"
  2276. alt
  2277. /><span>已选择</span>
  2278. </div>
  2279. </div> -->
  2280. </div>
  2281. <div
  2282. class="tool"
  2283. :class="{
  2284. isToolChoose:
  2285. itemTool.tool.indexOf(32) != -1,
  2286. }"
  2287. @click="
  2288. addTools(32, itemTaskIndex, toolIndex)
  2289. "
  2290. >
  2291. <div
  2292. class="whiteBIcon"
  2293. @click.stop="
  2294. addTools(32, itemTaskIndex, toolIndex)
  2295. "
  2296. >
  2297. <img
  2298. src="../../../assets/icon/thirdToolList/code.png"
  2299. alt
  2300. />
  2301. <div style="margin: 5px 0">源码编辑</div>
  2302. </div>
  2303. <div
  2304. class="isCTool"
  2305. v-show="itemTool.tool.indexOf(32) != -1"
  2306. >
  2307. <img
  2308. src="../../../assets/icon/new/isToolC.png"
  2309. alt=""
  2310. />
  2311. </div>
  2312. <!-- <div
  2313. class="check"
  2314. @click="
  2315. addTools(32, itemTaskIndex, toolIndex)
  2316. "
  2317. >
  2318. <img
  2319. src="../../../assets/icon/checkNo.png"
  2320. alt
  2321. v-if="itemTool.tool.indexOf(32) == -1"
  2322. />
  2323. <div class="checkDiv" v-else>
  2324. <img
  2325. src="../../../assets/icon/checkedIs.png"
  2326. alt
  2327. /><span>已选择</span>
  2328. </div>
  2329. </div> -->
  2330. </div>
  2331. <div
  2332. class="tool"
  2333. :class="{
  2334. isToolChoose:
  2335. itemTool.tool.indexOf(57) != -1,
  2336. }"
  2337. @click="
  2338. addTools(57, itemTaskIndex, toolIndex)
  2339. "
  2340. >
  2341. <div
  2342. class="whiteBIcon"
  2343. @click.stop="
  2344. openTools(itemTaskIndex, 57, toolIndex)
  2345. "
  2346. >
  2347. <img
  2348. src="../../../assets/icon/fourthToolList/cocopi.png"
  2349. alt
  2350. />
  2351. <div style="margin: 5px 0">CocoPi</div>
  2352. </div>
  2353. <div
  2354. class="isCTool"
  2355. v-show="itemTool.tool.indexOf(57) != -1"
  2356. >
  2357. <img
  2358. src="../../../assets/icon/new/isToolC.png"
  2359. alt=""
  2360. />
  2361. </div>
  2362. <!-- <div
  2363. class="check"
  2364. @click="
  2365. addTools(57, itemTaskIndex, toolIndex)
  2366. "
  2367. >
  2368. <img
  2369. src="../../../assets/icon/checkNo.png"
  2370. alt
  2371. v-if="itemTool.tool.indexOf(57) == -1"
  2372. />
  2373. <div class="checkDiv" v-else>
  2374. <img
  2375. src="../../../assets/icon/checkedIs.png"
  2376. alt
  2377. /><span>已选择</span>
  2378. </div>
  2379. </div> -->
  2380. </div>
  2381. <div
  2382. class="tool"
  2383. :class="{
  2384. isToolChoose:
  2385. itemTool.tool.indexOf(63) != -1,
  2386. }"
  2387. @click="
  2388. addTools(63, itemTaskIndex, toolIndex)
  2389. "
  2390. >
  2391. <div
  2392. class="whiteBIcon"
  2393. @click.stop="
  2394. addTools(63, itemTaskIndex, toolIndex)
  2395. "
  2396. >
  2397. <img
  2398. src="../../../assets/icon/fourthToolList/Wood.png"
  2399. alt
  2400. />
  2401. <div style="margin: 5px 0">海龟编程</div>
  2402. </div>
  2403. <div
  2404. class="isCTool"
  2405. v-show="itemTool.tool.indexOf(63) != -1"
  2406. >
  2407. <img
  2408. src="../../../assets/icon/new/isToolC.png"
  2409. alt=""
  2410. />
  2411. </div>
  2412. <!-- <div
  2413. class="check"
  2414. @click="
  2415. addTools(63, itemTaskIndex, toolIndex)
  2416. "
  2417. >
  2418. <img
  2419. src="../../../assets/icon/checkNo.png"
  2420. alt
  2421. v-if="itemTool.tool.indexOf(63) == -1"
  2422. />
  2423. <div class="checkDiv" v-else>
  2424. <img
  2425. src="../../../assets/icon/checkedIs.png"
  2426. alt
  2427. /><span>已选择</span>
  2428. </div>
  2429. </div> -->
  2430. </div>
  2431. </div>
  2432. <div
  2433. class="toolSort"
  2434. v-if="itemTool.toolType == 5"
  2435. >
  2436. <div
  2437. class="tool"
  2438. :class="{
  2439. isToolChoose:
  2440. itemTool.tool.indexOf(28) != -1,
  2441. }"
  2442. @click="
  2443. addTools(28, itemTaskIndex, toolIndex)
  2444. "
  2445. >
  2446. <div
  2447. class="whiteBIcon"
  2448. @click.stop="
  2449. addTools(28, itemTaskIndex, toolIndex)
  2450. "
  2451. >
  2452. <img
  2453. src="../../../assets/icon/secondToolList/translation.png"
  2454. alt
  2455. />
  2456. <div style="margin: 5px 0">翻译</div>
  2457. </div>
  2458. <div
  2459. class="isCTool"
  2460. v-show="itemTool.tool.indexOf(28) != -1"
  2461. >
  2462. <img
  2463. src="../../../assets/icon/new/isToolC.png"
  2464. alt=""
  2465. />
  2466. </div>
  2467. <!-- <div class="check" @click="
  2468. addTools(28, itemTaskIndex, toolIndex)
  2469. ">
  2470. <img src="../../../assets/icon/checkNo.png" alt
  2471. v-if="itemTool.tool.indexOf(28) == -1" />
  2472. <div class="checkDiv" v-else>
  2473. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2474. </div>
  2475. </div> -->
  2476. </div>
  2477. <div
  2478. class="tool"
  2479. :class="{
  2480. isToolChoose:
  2481. itemTool.tool.indexOf(31) != -1,
  2482. }"
  2483. @click="
  2484. addTools(31, itemTaskIndex, toolIndex)
  2485. "
  2486. >
  2487. <div
  2488. class="whiteBIcon"
  2489. @click.stop="
  2490. addTools(31, itemTaskIndex, toolIndex)
  2491. "
  2492. >
  2493. <img
  2494. src="../../../assets/icon/secondToolList/networkPanel.png"
  2495. alt
  2496. />
  2497. <div style="margin: 5px 0">数字画板</div>
  2498. </div>
  2499. <div
  2500. class="isCTool"
  2501. v-show="itemTool.tool.indexOf(31) != -1"
  2502. >
  2503. <img
  2504. src="../../../assets/icon/new/isToolC.png"
  2505. alt=""
  2506. />
  2507. </div>
  2508. <!-- <div class="check" @click="
  2509. addTools(31, itemTaskIndex, toolIndex)
  2510. ">
  2511. <img src="../../../assets/icon/checkNo.png" alt
  2512. v-if="itemTool.tool.indexOf(31) == -1" />
  2513. <div class="checkDiv" v-else>
  2514. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2515. </div>
  2516. </div> -->
  2517. </div>
  2518. <div
  2519. class="tool"
  2520. :class="{
  2521. isToolChoose:
  2522. itemTool.tool.indexOf(39) != -1,
  2523. }"
  2524. @click="
  2525. addTools(39, itemTaskIndex, toolIndex)
  2526. "
  2527. >
  2528. <div
  2529. class="whiteBIcon"
  2530. @click.stop="
  2531. addTools(39, itemTaskIndex, toolIndex)
  2532. "
  2533. >
  2534. <img
  2535. src="../../../assets/icon/secondToolList/GeoGebra.png"
  2536. alt
  2537. />
  2538. <div style="margin: 5px 0">GeoGebra</div>
  2539. </div>
  2540. <div
  2541. class="isCTool"
  2542. v-show="itemTool.tool.indexOf(39) != -1"
  2543. >
  2544. <img
  2545. src="../../../assets/icon/new/isToolC.png"
  2546. alt=""
  2547. />
  2548. </div>
  2549. <!-- <div class="check" @click="
  2550. addTools(39, itemTaskIndex, toolIndex)
  2551. ">
  2552. <img src="../../../assets/icon/checkNo.png" alt
  2553. v-if="itemTool.tool.indexOf(39) == -1" />
  2554. <div class="checkDiv" v-else>
  2555. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2556. </div>
  2557. </div> -->
  2558. </div>
  2559. <div
  2560. class="tool"
  2561. :class="{
  2562. isToolChoose:
  2563. itemTool.tool.indexOf(66) != -1,
  2564. }"
  2565. @click="
  2566. addTools(66, itemTaskIndex, toolIndex)
  2567. "
  2568. >
  2569. <div
  2570. class="whiteBIcon"
  2571. @click.stop="
  2572. addTools(66, itemTaskIndex, toolIndex)
  2573. "
  2574. >
  2575. <img
  2576. src="../../../assets/icon/secondToolList/formulaEdi.png"
  2577. alt
  2578. />
  2579. <div style="margin: 5px 0">公式编辑</div>
  2580. </div>
  2581. <div
  2582. class="isCTool"
  2583. v-show="itemTool.tool.indexOf(66) != -1"
  2584. >
  2585. <img
  2586. src="../../../assets/icon/new/isToolC.png"
  2587. alt=""
  2588. />
  2589. </div>
  2590. <!-- <div class="check" @click="
  2591. addTools(66, itemTaskIndex, toolIndex)
  2592. ">
  2593. <img src="../../../assets/icon/checkNo.png" alt
  2594. v-if="itemTool.tool.indexOf(66) == -1" />
  2595. <div class="checkDiv" v-else>
  2596. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2597. </div>
  2598. </div> -->
  2599. </div>
  2600. <!-- <div class="tool">
  2601. <div class="whiteBIcon" @click="
  2602. addTools(67, itemTaskIndex, toolIndex)
  2603. ">
  2604. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  2605. <div style="margin: 5px 0">分子结构</div>
  2606. </div>
  2607. <div class="check" @click="
  2608. addTools(67, itemTaskIndex, toolIndex)
  2609. ">
  2610. <img src="../../../assets/icon/checkNo.png" alt
  2611. v-if="itemTool.tool.indexOf(67) == -1" />
  2612. <div class="checkDiv" v-else>
  2613. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2614. </div>
  2615. </div>
  2616. </div> -->
  2617. <div
  2618. class="tool"
  2619. :class="{
  2620. isToolChoose:
  2621. itemTool.tool.indexOf(68) != -1,
  2622. }"
  2623. @click="
  2624. addTools(68, itemTaskIndex, toolIndex)
  2625. "
  2626. >
  2627. <div
  2628. class="whiteBIcon"
  2629. @click.stop="
  2630. addTools(68, itemTaskIndex, toolIndex)
  2631. "
  2632. >
  2633. <img
  2634. src="../../../assets/icon/secondToolList/timeAxis.png"
  2635. alt
  2636. />
  2637. <div style="margin: 5px 0">时间轴</div>
  2638. </div>
  2639. <div
  2640. class="isCTool"
  2641. v-show="itemTool.tool.indexOf(68) != -1"
  2642. >
  2643. <img
  2644. src="../../../assets/icon/new/isToolC.png"
  2645. alt=""
  2646. />
  2647. </div>
  2648. <!-- <div class="check" @click="
  2649. addTools(68, itemTaskIndex, toolIndex)
  2650. ">
  2651. <img src="../../../assets/icon/checkNo.png" alt
  2652. v-if="itemTool.tool.indexOf(68) == -1" />
  2653. <div class="checkDiv" v-else>
  2654. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2655. </div>
  2656. </div> -->
  2657. </div>
  2658. <!-- <div class="tool">
  2659. <div
  2660. class="whiteBIcon"
  2661. @click="
  2662. addTools(28, itemTaskIndex, toolIndex)
  2663. "
  2664. >
  2665. <img
  2666. src="../../../assets/icon/secondToolList/translation.png"
  2667. alt
  2668. />
  2669. <div style="margin: 5px 0">翻译</div>
  2670. </div>
  2671. <div
  2672. class="check"
  2673. @click="
  2674. addTools(28, itemTaskIndex, toolIndex)
  2675. "
  2676. >
  2677. <img
  2678. src="../../../assets/icon/checkNo.png"
  2679. alt
  2680. v-if="itemTool.tool.indexOf(28) == -1"
  2681. />
  2682. <div class="checkDiv" v-else>
  2683. <img
  2684. src="../../../assets/icon/checkedIs.png"
  2685. alt
  2686. /><span>已选择</span>
  2687. </div>
  2688. </div>
  2689. </div>
  2690. <div class="tool">
  2691. <div
  2692. class="whiteBIcon"
  2693. @click="
  2694. addTools(37, itemTaskIndex, toolIndex)
  2695. "
  2696. >
  2697. <img
  2698. src="../../../assets/icon/secondToolList/mohe.png"
  2699. alt
  2700. />
  2701. <div style="margin: 5px 0">魔盒识字</div>
  2702. </div>
  2703. <div
  2704. class="check"
  2705. @click="
  2706. addTools(37, itemTaskIndex, toolIndex)
  2707. "
  2708. >
  2709. <img
  2710. src="../../../assets/icon/checkNo.png"
  2711. alt
  2712. v-if="itemTool.tool.indexOf(37) == -1"
  2713. />
  2714. <div class="checkDiv" v-else>
  2715. <img
  2716. src="../../../assets/icon/checkedIs.png"
  2717. alt
  2718. /><span>已选择</span>
  2719. </div>
  2720. </div>
  2721. </div>
  2722. <div class="tool">
  2723. <div
  2724. class="whiteBIcon"
  2725. @click="
  2726. addTools(38, itemTaskIndex, toolIndex)
  2727. "
  2728. >
  2729. <img
  2730. src="../../../assets/icon/secondToolList/24game.png"
  2731. alt
  2732. />
  2733. <div style="margin: 5px 0">24点</div>
  2734. </div>
  2735. <div
  2736. class="check"
  2737. @click="
  2738. addTools(38, itemTaskIndex, toolIndex)
  2739. "
  2740. >
  2741. <img
  2742. src="../../../assets/icon/checkNo.png"
  2743. alt
  2744. v-if="itemTool.tool.indexOf(38) == -1"
  2745. />
  2746. <div class="checkDiv" v-else>
  2747. <img
  2748. src="../../../assets/icon/checkedIs.png"
  2749. alt
  2750. /><span>已选择</span>
  2751. </div>
  2752. </div>
  2753. </div>
  2754. <div class="tool">
  2755. <div
  2756. class="whiteBIcon"
  2757. @click="
  2758. addTools(31, itemTaskIndex, toolIndex)
  2759. "
  2760. >
  2761. <img
  2762. src="../../../assets/icon/secondToolList/networkPanel.png"
  2763. alt
  2764. />
  2765. <div style="margin: 5px 0">数学画板</div>
  2766. </div>
  2767. <div
  2768. class="check"
  2769. @click="
  2770. addTools(31, itemTaskIndex, toolIndex)
  2771. "
  2772. >
  2773. <img
  2774. src="../../../assets/icon/checkNo.png"
  2775. alt
  2776. v-if="itemTool.tool.indexOf(31) == -1"
  2777. />
  2778. <div class="checkDiv" v-else>
  2779. <img
  2780. src="../../../assets/icon/checkedIs.png"
  2781. alt
  2782. /><span>已选择</span>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. <div class="tool">
  2787. <div
  2788. class="whiteBIcon"
  2789. @click="
  2790. addTools(39, itemTaskIndex, toolIndex)
  2791. "
  2792. >
  2793. <img
  2794. src="../../../assets/icon/secondToolList/GeoGebra.png"
  2795. alt
  2796. />
  2797. <div style="margin: 5px 0">GeoGebra</div>
  2798. </div>
  2799. <div
  2800. class="check"
  2801. @click="
  2802. addTools(39, itemTaskIndex, toolIndex)
  2803. "
  2804. >
  2805. <img
  2806. src="../../../assets/icon/checkNo.png"
  2807. alt
  2808. v-if="itemTool.tool.indexOf(39) == -1"
  2809. />
  2810. <div class="checkDiv" v-else>
  2811. <img
  2812. src="../../../assets/icon/checkedIs.png"
  2813. alt
  2814. /><span>已选择</span>
  2815. </div>
  2816. </div>
  2817. </div>
  2818. <div class="tool">
  2819. <div
  2820. class="whiteBIcon"
  2821. @click="
  2822. addTools(58, itemTaskIndex, toolIndex)
  2823. "
  2824. >
  2825. <img
  2826. src="../../../assets/icon/fourthToolList/car.png"
  2827. alt
  2828. />
  2829. <div style="margin: 5px 0">模拟驾驶</div>
  2830. </div>
  2831. <div
  2832. class="check"
  2833. @click="
  2834. addTools(58, itemTaskIndex, toolIndex)
  2835. "
  2836. >
  2837. <img
  2838. src="../../../assets/icon/checkNo.png"
  2839. alt
  2840. v-if="itemTool.tool.indexOf(58) == -1"
  2841. />
  2842. <div class="checkDiv" v-else>
  2843. <img
  2844. src="../../../assets/icon/checkedIs.png"
  2845. alt
  2846. /><span>已选择</span>
  2847. </div>
  2848. </div>
  2849. </div>
  2850. <div class="tool">
  2851. <div
  2852. class="whiteBIcon"
  2853. @click="
  2854. addTools(59, itemTaskIndex, toolIndex)
  2855. "
  2856. >
  2857. <img
  2858. src="../../../assets/icon/fourthToolList/lineSearch.png"
  2859. alt
  2860. />
  2861. <div style="margin: 5px 0">路径搜索</div>
  2862. </div>
  2863. <div
  2864. class="check"
  2865. @click="
  2866. addTools(59, itemTaskIndex, toolIndex)
  2867. "
  2868. >
  2869. <img
  2870. src="../../../assets/icon/checkNo.png"
  2871. alt
  2872. v-if="itemTool.tool.indexOf(59) == -1"
  2873. />
  2874. <div class="checkDiv" v-else>
  2875. <img
  2876. src="../../../assets/icon/checkedIs.png"
  2877. alt
  2878. /><span>已选择</span>
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div class="tool">
  2883. <div
  2884. class="whiteBIcon"
  2885. @click="
  2886. addTools(60, itemTaskIndex, toolIndex)
  2887. "
  2888. >
  2889. <img
  2890. src="../../../assets/icon/fourthToolList/deepLearning.png"
  2891. alt
  2892. />
  2893. <div style="margin: 5px 0">深度学习</div>
  2894. </div>
  2895. <div
  2896. class="check"
  2897. @click="
  2898. addTools(60, itemTaskIndex, toolIndex)
  2899. "
  2900. >
  2901. <img
  2902. src="../../../assets/icon/checkNo.png"
  2903. alt
  2904. v-if="itemTool.tool.indexOf(60) == -1"
  2905. />
  2906. <div class="checkDiv" v-else>
  2907. <img
  2908. src="../../../assets/icon/checkedIs.png"
  2909. alt
  2910. /><span>已选择</span>
  2911. </div>
  2912. </div>
  2913. </div>
  2914. <div class="tool">
  2915. <div
  2916. class="whiteBIcon"
  2917. @click="
  2918. addTools(61, itemTaskIndex, toolIndex)
  2919. "
  2920. >
  2921. <img
  2922. src="../../../assets/icon/fourthToolList/allHistory.png"
  2923. alt
  2924. />
  2925. <div style="margin: 5px 0">全历史</div>
  2926. </div>
  2927. <div
  2928. class="check"
  2929. @click="
  2930. addTools(61, itemTaskIndex, toolIndex)
  2931. "
  2932. >
  2933. <img
  2934. src="../../../assets/icon/checkNo.png"
  2935. alt
  2936. v-if="itemTool.tool.indexOf(61) == -1"
  2937. />
  2938. <div class="checkDiv" v-else>
  2939. <img
  2940. src="../../../assets/icon/checkedIs.png"
  2941. alt
  2942. /><span>已选择</span>
  2943. </div>
  2944. </div>
  2945. </div> -->
  2946. <div
  2947. class="tool"
  2948. :class="{
  2949. isToolChoose:
  2950. itemTool.tool.indexOf(69) != -1,
  2951. }"
  2952. @click="
  2953. addTools(69, itemTaskIndex, toolIndex)
  2954. "
  2955. >
  2956. <div
  2957. class="whiteBIcon"
  2958. @click.stop="
  2959. openTools(itemTaskIndex, 69, toolIndex)
  2960. "
  2961. >
  2962. <img
  2963. src="../../../assets/icon/thirdToolList/english.png"
  2964. alt
  2965. />
  2966. <div style="margin: 5px 0">英语写作</div>
  2967. </div>
  2968. <div
  2969. class="isCTool"
  2970. v-show="itemTool.tool.indexOf(69) != -1"
  2971. >
  2972. <img
  2973. src="../../../assets/icon/new/isToolC.png"
  2974. alt=""
  2975. />
  2976. </div>
  2977. <!-- <div
  2978. class="check"
  2979. @click="
  2980. addTools(4, itemTaskIndex, toolIndex)
  2981. "
  2982. >
  2983. <img
  2984. src="../../../assets/icon/checkNo.png"
  2985. alt
  2986. v-if="itemTool.tool.indexOf(4) == -1"
  2987. />
  2988. <div class="checkDiv" v-else>
  2989. <img
  2990. src="../../../assets/icon/checkedIs.png"
  2991. alt
  2992. /><span>已选择</span>
  2993. </div>
  2994. </div> -->
  2995. </div>
  2996. </div>
  2997. <div
  2998. class="toolSort"
  2999. v-if="itemTool.toolType == 7"
  3000. >
  3001. <div
  3002. class="tool"
  3003. :class="{
  3004. isToolChoose:
  3005. itemTool.tool.indexOf(40) != -1,
  3006. }"
  3007. @click.stop="
  3008. addTools(40, itemTaskIndex, toolIndex)
  3009. "
  3010. >
  3011. <div
  3012. class="whiteBIcon"
  3013. @click.stop="
  3014. openTools(itemTaskIndex, 40, toolIndex)
  3015. "
  3016. >
  3017. <img
  3018. src="../../../assets/icon/thirdToolList/eval.png"
  3019. alt
  3020. />
  3021. <div style="margin: 5px 0">个人评价</div>
  3022. </div>
  3023. <div
  3024. class="isCTool"
  3025. v-show="itemTool.tool.indexOf(40) != -1"
  3026. >
  3027. <img
  3028. src="../../../assets/icon/new/isToolC.png"
  3029. alt=""
  3030. />
  3031. </div>
  3032. <!-- <div
  3033. class="check"
  3034. @click="
  3035. addTools(40, itemTaskIndex, toolIndex)
  3036. "
  3037. >
  3038. <img
  3039. src="../../../assets/icon/checkNo.png"
  3040. alt
  3041. v-if="itemTool.tool.indexOf(40) == -1"
  3042. />
  3043. <div class="checkDiv" v-else>
  3044. <img
  3045. src="../../../assets/icon/checkedIs.png"
  3046. alt
  3047. /><span>已选择</span>
  3048. </div>
  3049. </div> -->
  3050. </div>
  3051. </div>
  3052. <div
  3053. class="toolSort"
  3054. v-if="itemTool.toolType == 4"
  3055. >
  3056. <div class="tool">
  3057. <div
  3058. class="whiteBIcon"
  3059. @click="
  3060. addTools(26, itemTaskIndex, toolIndex)
  3061. "
  3062. >
  3063. <img
  3064. src="../../../assets/icon/thirdToolList/courseDesign.png"
  3065. alt
  3066. />
  3067. <div style="margin: 5px 0">课程设计</div>
  3068. </div>
  3069. <div
  3070. class="check"
  3071. @click="
  3072. addTools(26, itemTaskIndex, toolIndex)
  3073. "
  3074. >
  3075. <img
  3076. src="../../../assets/icon/checkNo.png"
  3077. alt
  3078. v-if="itemTool.tool.indexOf(26) == -1"
  3079. />
  3080. <div class="checkDiv" v-else>
  3081. <img
  3082. src="../../../assets/icon/checkedIs.png"
  3083. alt
  3084. /><span>已选择</span>
  3085. </div>
  3086. </div>
  3087. </div>
  3088. <div class="tool">
  3089. <div
  3090. class="whiteBIcon"
  3091. @click="
  3092. addTools(25, itemTaskIndex, toolIndex)
  3093. "
  3094. >
  3095. <img
  3096. src="../../../assets/icon/thirdToolList/evalua.png"
  3097. alt
  3098. />
  3099. <div style="margin: 5px 0">目标管理</div>
  3100. </div>
  3101. <div
  3102. class="check"
  3103. @click="
  3104. addTools(25, itemTaskIndex, toolIndex)
  3105. "
  3106. >
  3107. <img
  3108. src="../../../assets/icon/checkNo.png"
  3109. alt
  3110. v-if="itemTool.tool.indexOf(25) == -1"
  3111. />
  3112. <div class="checkDiv" v-else>
  3113. <img
  3114. src="../../../assets/icon/checkedIs.png"
  3115. alt
  3116. /><span>已选择</span>
  3117. </div>
  3118. </div>
  3119. </div>
  3120. <!-- <div class="tool">
  3121. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3122. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3123. <div style="margin: 5px 0">汉字宫</div>
  3124. </div>
  3125. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3126. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3127. <div class="checkDiv" v-else>
  3128. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3129. </div>
  3130. </div>
  3131. </div> -->
  3132. </div>
  3133. </div>
  3134. <!-- v-show="!itemTool.isFold3" -->
  3135. <div>
  3136. <textarea
  3137. v-autoHeight="87"
  3138. rows="3"
  3139. type="text"
  3140. placeholder="添加工具描述"
  3141. class="binfo_input"
  3142. style="margin: 0 0 20px 0"
  3143. v-model="itemTool.toolDetail"
  3144. ></textarea>
  3145. </div>
  3146. </div>
  3147. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3148. <div class="addToolImg">
  3149. <img src="../../../assets/icon/add.png" alt />
  3150. </div>
  3151. <div>添加工具</div>
  3152. </div> -->
  3153. <button
  3154. class="c_pub_button_add pub_btn_tool_img"
  3155. @click="addToolFun(itemTaskIndex)"
  3156. style="
  3157. margin: 0 auto;
  3158. padding: 0 30px;
  3159. height: 45px;
  3160. "
  3161. >
  3162. 添加工具
  3163. </button>
  3164. </div>
  3165. </div>
  3166. <div class="funBlock" style="padding: 0">
  3167. <div class="fold" @click="fold(itemTaskIndex, $event)">
  3168. <div
  3169. class="arrow"
  3170. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  3171. ></div>
  3172. <div>
  3173. {{ itemTask.isFold === 1 ? "展开任务" : "收起任务" }}
  3174. </div>
  3175. </div>
  3176. </div>
  3177. </div>
  3178. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3179. <!-- <div>
  3180. <img src="../../../assets/icon/new/addStage.png" alt />
  3181. <span>添加任务</span>
  3182. </div> -->
  3183. <button
  3184. class="c_pub_button_confirm pub_btn_add_task_img"
  3185. @click="addTaskBorder"
  3186. >
  3187. 添加任务
  3188. </button>
  3189. </div>
  3190. </div>
  3191. </div>
  3192. </div>
  3193. </div>
  3194. <div class="info_btnBox3">
  3195. <button
  3196. class="c_pub_button_return pub_btn_return_img"
  3197. @click="lastSteps"
  3198. >
  3199. 返回课程
  3200. </button>
  3201. <button
  3202. class="c_pub_button_confirm pub_btn_finish_img"
  3203. @click="nextSteps"
  3204. >
  3205. 确认上传
  3206. </button>
  3207. </div>
  3208. </div>
  3209. <div class="rightBox" v-if="this.steps == 2">
  3210. <div
  3211. class="basic_box"
  3212. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  3213. >
  3214. <div
  3215. class="right_title"
  3216. style="border: none; margin: 0; padding: 0"
  3217. >
  3218. 请选择合适的课程模板
  3219. </div>
  3220. <div class="wordbox">
  3221. <div
  3222. class="wordTeacher"
  3223. v-for="(aa, indexF) in templateArray"
  3224. :key="indexF"
  3225. @click="checkTemplate(aa)"
  3226. >
  3227. <div class="wordPic">
  3228. <img src="../../../assets/icon/wordMub.png" alt />
  3229. </div>
  3230. <div
  3231. style="
  3232. margin-top: 10px;
  3233. line-height: 19px;
  3234. overflow: hidden;
  3235. text-overflow: ellipsis;
  3236. white-space: nowrap;
  3237. padding: 0 20px;
  3238. "
  3239. >
  3240. {{ aa.title }}
  3241. </div>
  3242. </div>
  3243. <div class="wordTeacher" @click="checkTemplate2()">
  3244. <div class="wordPic">
  3245. <img src="../../../assets/icon/wordMub.png" alt />
  3246. </div>
  3247. <div
  3248. style="
  3249. margin-top: 10px;
  3250. line-height: 19px;
  3251. overflow: hidden;
  3252. text-overflow: ellipsis;
  3253. white-space: nowrap;
  3254. padding: 0 20px;
  3255. "
  3256. >
  3257. 任务模式
  3258. </div>
  3259. </div>
  3260. <div class="wordTeacher" @click="checkTemplate3()">
  3261. <div class="wordPic">
  3262. <img src="../../../assets/icon/wordMub.png" alt />
  3263. </div>
  3264. <div
  3265. style="
  3266. margin-top: 10px;
  3267. line-height: 19px;
  3268. overflow: hidden;
  3269. text-overflow: ellipsis;
  3270. white-space: nowrap;
  3271. padding: 0 20px;
  3272. "
  3273. >
  3274. 简易模式
  3275. </div>
  3276. </div>
  3277. <div class="wordTeacher" @click="pasteStage()">
  3278. <div class="wordPic">
  3279. <img src="../../../assets/icon/wordMub.png" alt />
  3280. </div>
  3281. <div
  3282. style="
  3283. margin-top: 10px;
  3284. line-height: 19px;
  3285. overflow: hidden;
  3286. text-overflow: ellipsis;
  3287. white-space: nowrap;
  3288. padding: 0 20px;
  3289. "
  3290. >
  3291. 智能粘贴模式
  3292. </div>
  3293. </div>
  3294. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  3295. <div class="wordPic">
  3296. <img src="../../../assets/icon/wordMub.png" alt />
  3297. </div>
  3298. <div style="
  3299. margin-top: 10px;
  3300. line-height: 19px;
  3301. overflow: hidden;
  3302. text-overflow: ellipsis;
  3303. white-space: nowrap;
  3304. padding: 0 20px;
  3305. ">
  3306. 未来小学课程设计
  3307. </div>
  3308. </div> -->
  3309. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  3310. <div class="wordPic">
  3311. <img src="../../../assets/icon/wordMub.png" alt />
  3312. </div>
  3313. <div style="
  3314. margin-top: 10px;
  3315. line-height: 19px;
  3316. overflow: hidden;
  3317. text-overflow: ellipsis;
  3318. white-space: nowrap;
  3319. padding: 0 20px;
  3320. ">
  3321. 我的课程
  3322. </div>
  3323. </div> -->
  3324. </div>
  3325. </div>
  3326. </div>
  3327. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  3328. <div class="basic_box">
  3329. <div
  3330. style="
  3331. display: flex;
  3332. flex-direction: row;
  3333. align-items: center;
  3334. position: sticky;
  3335. top: 0;
  3336. background: #fff;
  3337. z-index: 99;
  3338. width: 100%;
  3339. padding: 0 20px 0 20px;
  3340. box-sizing: border-box;
  3341. "
  3342. >
  3343. <div class="cru_selectBox">
  3344. <div
  3345. v-for="(item, index) in unitJson"
  3346. :key="index"
  3347. class="cru_select"
  3348. :class="unitIndex == index ? 'cru_selected' : ''"
  3349. @click="unitSet(index)"
  3350. >
  3351. <!-- item.dyName ? item.dyName : -->
  3352. {{ "第" + (index + 1) + "阶段" }}
  3353. </div>
  3354. <img
  3355. src="../../../assets/line.png"
  3356. class="cru_line"
  3357. :style="{
  3358. left: offsetLetfPx + 'px',
  3359. }"
  3360. />
  3361. </div>
  3362. <div
  3363. class="addStageImg"
  3364. @click="addunit()"
  3365. v-if="
  3366. !(unitJson[unitJson.length - 1].easy == 4) &&
  3367. !(unitJson[unitJson.length - 1].easy == 6)
  3368. "
  3369. >
  3370. <img src="../../../assets/icon/add.png" alt />
  3371. </div>
  3372. </div>
  3373. <div
  3374. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  3375. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  3376. :key="index"
  3377. >
  3378. <div>
  3379. <div class="chapter_contentbox">
  3380. <div>第{{ unitIndex + 1 }}阶段</div>
  3381. <div>
  3382. <input
  3383. type="text"
  3384. placeholder="阶段标题"
  3385. class="binfo_input"
  3386. v-model="unitJson[unitIndex].dyName"
  3387. />
  3388. </div>
  3389. <div
  3390. v-if="
  3391. unitJson.length > 1 &&
  3392. !(unitJson[unitJson.length - 1].easy == 4) &&
  3393. !(unitJson[unitJson.length - 1].easy == 6)
  3394. "
  3395. @click="deleteUnit(unitIndex)"
  3396. ></div>
  3397. </div>
  3398. </div>
  3399. <div
  3400. v-if="!unitJson[unitIndex].easy"
  3401. style="
  3402. margin: 50px 0px 10px;
  3403. font-size: 1.5em;
  3404. font-weight: 700;
  3405. color: #0f7eff;
  3406. "
  3407. >
  3408. 添加任务
  3409. </div>
  3410. <div
  3411. class="taskBorder"
  3412. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  3413. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  3414. :key="itemTaskIndex"
  3415. >
  3416. <div v-if="unitJson[unitIndex].easy != 1">
  3417. <div
  3418. :style="{
  3419. marginBottom:
  3420. unitJson[unitIndex].easy == 3 ||
  3421. (unitJson[unitIndex].easy == 5 &&
  3422. itemTask.taskType == 1)
  3423. ? '75px'
  3424. : '0',
  3425. }"
  3426. >
  3427. <div
  3428. style="font-size: 22px; color: #8e8e8e"
  3429. :id="'task' + itemTaskIndex"
  3430. >
  3431. 任务{{ itemTaskIndex + 1 }}
  3432. </div>
  3433. <div
  3434. class="chapter_contentbox"
  3435. style="
  3436. flex-direction: row;
  3437. justify-content: flex-start;
  3438. align-items: center;
  3439. "
  3440. >
  3441. <div
  3442. style="
  3443. border-left: 6px solid #5699e8;
  3444. height: 20px;
  3445. padding-left: 10px;
  3446. line-height: 22px;
  3447. "
  3448. >
  3449. 任务名称
  3450. </div>
  3451. <div>
  3452. <input
  3453. type="text"
  3454. placeholder="输入任务名称"
  3455. class="binfo_input"
  3456. style="border-radius: 4px"
  3457. v-model="
  3458. unitJson[unitIndex].chapterInfo[0].taskJson[
  3459. itemTaskIndex
  3460. ].task
  3461. "
  3462. />
  3463. </div>
  3464. <div
  3465. class="remove"
  3466. v-if="
  3467. item.taskJson.length > 1 &&
  3468. (!unitJson[unitIndex].easy ||
  3469. unitJson[unitIndex].easy == 6)
  3470. "
  3471. @click="deleteTask(itemTaskIndex)"
  3472. style="position: absolute; right: 55px"
  3473. ></div>
  3474. </div>
  3475. <div
  3476. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  3477. style="
  3478. display: flex;
  3479. margin: 0 0 20px 0;
  3480. flex-direction: row;
  3481. justify-content: flex-start;
  3482. align-items: center;
  3483. width: 70.5% !important;
  3484. padding-top: 30px;
  3485. "
  3486. >
  3487. <div class="lineTitle">任务描述</div>
  3488. </div>
  3489. <div
  3490. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  3491. >
  3492. <editor-bar
  3493. style="width: 90% !important; margin: 0"
  3494. placeholder="请输入任务描述"
  3495. v-model="
  3496. unitJson[unitIndex].chapterInfo[0].taskJson[
  3497. itemTaskIndex
  3498. ].taskDetail
  3499. "
  3500. @change="change"
  3501. ></editor-bar>
  3502. <!-- <textarea
  3503. rows="6"
  3504. class="binfo_input"
  3505. placeholder="请输入任务描述"
  3506. cols
  3507. style="width: 70.5% !important; height: 120px"
  3508. v-model="
  3509. unitJson[unitIndex].chapterInfo[0].taskJson[
  3510. itemTaskIndex
  3511. ].taskDetail
  3512. "
  3513. ></textarea>-->
  3514. </div>
  3515. </div>
  3516. </div>
  3517. <div
  3518. v-if="
  3519. !unitJson[unitIndex].easy ||
  3520. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3521. "
  3522. class="basic_box"
  3523. style="
  3524. margin: 0;
  3525. min-height: 0;
  3526. width: 90% !important;
  3527. padding-top: 10px !important;
  3528. "
  3529. >
  3530. <div
  3531. style="
  3532. display: flex;
  3533. margin: 0 0 20px 0;
  3534. flex-direction: row;
  3535. justify-content: flex-start;
  3536. align-items: center;
  3537. "
  3538. >
  3539. <div class="lineTitle">学习内容</div>
  3540. </div>
  3541. <div>
  3542. <div
  3543. class="add_chapters_box"
  3544. v-if="
  3545. itemTask.chapterData &&
  3546. itemTask.chapterData.length == 0
  3547. "
  3548. style="height: 185px"
  3549. ></div>
  3550. <div
  3551. v-else
  3552. class="add_chapters_box"
  3553. style="display: flex; flex-direction: column"
  3554. >
  3555. <div
  3556. class="chapter_upload"
  3557. v-for="(item1, index1) in itemTask.chapterData"
  3558. :key="item1.id"
  3559. @click="
  3560. getChapterData(
  3561. $event,
  3562. unitIndex,
  3563. index,
  3564. index1,
  3565. item1.type
  3566. )
  3567. "
  3568. >
  3569. <div
  3570. class="chapter_upload_t"
  3571. style="width: 100%"
  3572. ></div>
  3573. <div
  3574. class="chapter_upload_o"
  3575. style="
  3576. position: relative;
  3577. display: flex;
  3578. align-items: center;
  3579. "
  3580. >
  3581. <div
  3582. class="chapter_upload_l"
  3583. style="padding: 1px 0 0 10px"
  3584. >
  3585. <div
  3586. v-if="item1.type == 2"
  3587. class="chapter_upload_l_i1"
  3588. ></div>
  3589. <div
  3590. v-if="
  3591. item1.type == 3 ||
  3592. item1.type == 12 ||
  3593. item1.type == 13 ||
  3594. item1.type == 6 ||
  3595. item1.type == 7
  3596. "
  3597. class="chapter_upload_l_i5"
  3598. style="margin-left: 1px"
  3599. ></div>
  3600. <div
  3601. v-if="item1.type == 8"
  3602. class="chapter_upload_l_i8"
  3603. style="margin-left: 1px"
  3604. ></div>
  3605. </div>
  3606. <div
  3607. class="chapter_upload_ic"
  3608. style="
  3609. cursor: pointer;
  3610. position: absolute;
  3611. width: 45px;
  3612. right: 0;
  3613. top: 0;
  3614. "
  3615. >
  3616. <div class="chapter_upload_ic_l"></div>
  3617. <div
  3618. class="chapter_upload_ic_r"
  3619. style="position: absolute"
  3620. @click.stop="
  3621. deleteChapterData(
  3622. $event,
  3623. unitIndex,
  3624. index,
  3625. index1,
  3626. itemTaskIndex
  3627. )
  3628. "
  3629. >
  3630. <div></div>
  3631. </div>
  3632. </div>
  3633. <div class="chapter_upload_n">
  3634. <input
  3635. v-if="
  3636. item1.type == 2 ||
  3637. item1.type == 3 ||
  3638. item1.type == 12 ||
  3639. item1.type == 13 ||
  3640. item1.type == 7
  3641. "
  3642. :placeholder="item1.name"
  3643. @change="
  3644. updataVideoT(
  3645. $event,
  3646. unitIndex,
  3647. chapterIndex,
  3648. index1
  3649. )
  3650. "
  3651. style="
  3652. border: none;
  3653. outline: none;
  3654. width: 80%;
  3655. minwidth: 215px;
  3656. z-index: 99;
  3657. font-size: 14px;
  3658. white-space: nowrap;
  3659. overflow: hidden;
  3660. text-overflow: ellipsis;
  3661. "
  3662. />
  3663. <input
  3664. :placeholder="item1.name"
  3665. v-if="item1.type == 6"
  3666. style="
  3667. border: none;
  3668. outline: none;
  3669. width: 80%;
  3670. white-space: nowrap;
  3671. overflow: hidden;
  3672. text-overflow: ellipsis;
  3673. "
  3674. readonly="true"
  3675. @click="selectAttText(itemTaskIndex, index1)"
  3676. />
  3677. <input
  3678. :placeholder="
  3679. item1.title ? item1.title : '链接'
  3680. "
  3681. v-if="item1.type == 8"
  3682. style="
  3683. border: none;
  3684. outline: none;
  3685. width: 80%;
  3686. white-space: nowrap;
  3687. overflow: hidden;
  3688. text-overflow: ellipsis;
  3689. "
  3690. readonly="true"
  3691. @click="selectLine(itemTaskIndex, index1)"
  3692. />
  3693. <div
  3694. class="chapter_upload_ud"
  3695. style="z-index: 99"
  3696. >
  3697. <div
  3698. class="chapter_upload_up"
  3699. @click="
  3700. upCd(
  3701. $event,
  3702. unitIndex,
  3703. index,
  3704. itemTaskIndex,
  3705. index1
  3706. )
  3707. "
  3708. ></div>
  3709. <div
  3710. class="chapter_upload_down"
  3711. @click="
  3712. downCd(
  3713. $event,
  3714. unitIndex,
  3715. index,
  3716. itemTaskIndex,
  3717. index1
  3718. )
  3719. "
  3720. ></div>
  3721. </div>
  3722. </div>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. <div class="add_info_box">
  3728. <button class="info_btn" @click="addImg($event)">
  3729. 添加文件
  3730. <input
  3731. type="file"
  3732. accept="*"
  3733. style="display: none"
  3734. v-if="inputShow"
  3735. @change="
  3736. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  3737. "
  3738. />
  3739. </button>
  3740. <!-- <button class="info_btn" @click="addImg($event)">
  3741. 添加视频
  3742. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  3743. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  3744. " />
  3745. </button>
  3746. <button class="info_btn" @click="addImg($event)">
  3747. 添加文档
  3748. <input type="file"
  3749. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3750. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  3751. " />
  3752. </button> -->
  3753. <button
  3754. class="info_btn"
  3755. @click="addAttText(itemTaskIndex)"
  3756. >
  3757. 添加图文
  3758. </button>
  3759. <button class="info_btn" @click="openLine(itemTaskIndex)">
  3760. 添加链接
  3761. </button>
  3762. <button
  3763. class="info_btn"
  3764. @click="pasteLine(itemTaskIndex)"
  3765. >
  3766. 嵌入代码
  3767. </button>
  3768. <button
  3769. class="info_btn"
  3770. @click="openSource(itemTaskIndex)"
  3771. >
  3772. 添加资源
  3773. </button>
  3774. <!-- <button class="info_btn" @click="addImg($event)">
  3775. 其他附件
  3776. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  3777. " />
  3778. </button> -->
  3779. </div>
  3780. <div
  3781. v-if="
  3782. unitJson[unitIndex].chapterInfo[0].taskJson[
  3783. itemTaskIndex
  3784. ].proVisible
  3785. "
  3786. class="mask"
  3787. >
  3788. <div class="progressBox">
  3789. <!-- <div id="closePro" class="closeCss">
  3790. <img src="../../../../assets/icon/close.png" alt />
  3791. </div> -->
  3792. <div class="lbox">
  3793. <img
  3794. src="../../../assets/loading.gif"
  3795. />上传中,请稍后
  3796. </div>
  3797. <div style="margin-bottom: 10px">
  3798. <span
  3799. >{{
  3800. unitJson[unitIndex].chapterInfo[0].taskJson[
  3801. itemTaskIndex
  3802. ].isFinishSize
  3803. }}M</span
  3804. >
  3805. /
  3806. <span
  3807. >{{
  3808. unitJson[unitIndex].chapterInfo[0].taskJson[
  3809. itemTaskIndex
  3810. ].isAllSize
  3811. }}M</span
  3812. >
  3813. </div>
  3814. <el-progress
  3815. :text-inside="true"
  3816. :stroke-width="20"
  3817. :percentage="
  3818. unitJson[unitIndex].chapterInfo[0].taskJson[
  3819. itemTaskIndex
  3820. ].progress
  3821. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3822. itemTaskIndex
  3823. ].progress
  3824. : 0
  3825. "
  3826. style="width: 80%"
  3827. ></el-progress>
  3828. </div>
  3829. </div>
  3830. </div>
  3831. <div
  3832. v-if="
  3833. unitJson[unitIndex].easy == 1 ||
  3834. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3835. "
  3836. class="basic_box"
  3837. style="
  3838. margin: 0 auto;
  3839. min-height: 0;
  3840. width: 95% !important;
  3841. padding: 20px 10px 10px;
  3842. "
  3843. >
  3844. <div>
  3845. <div
  3846. class="add_chapters_box"
  3847. v-if="
  3848. itemTask.chapterData &&
  3849. itemTask.chapterData.length == 0
  3850. "
  3851. style="height: 185px"
  3852. ></div>
  3853. <div
  3854. v-else
  3855. class="add_chapters_box"
  3856. style="display: flex; flex-direction: column"
  3857. >
  3858. <div
  3859. v-for="(item1, index1) in itemTask.chapterData"
  3860. :key="item1.id"
  3861. >
  3862. <div
  3863. class="chapter_upload"
  3864. @click="
  3865. getChapterData(
  3866. $event,
  3867. unitIndex,
  3868. index,
  3869. index1,
  3870. item1.type
  3871. )
  3872. "
  3873. >
  3874. <div
  3875. class="chapter_upload_t"
  3876. style="width: 100%"
  3877. ></div>
  3878. <div
  3879. class="chapter_upload_o"
  3880. style="
  3881. position: relative;
  3882. display: flex;
  3883. align-items: center;
  3884. "
  3885. >
  3886. <div
  3887. class="chapter_upload_l"
  3888. style="padding: 1px 0 0 10px"
  3889. >
  3890. <div
  3891. v-if="item1.type == 2"
  3892. class="chapter_upload_l_i1"
  3893. ></div>
  3894. <div
  3895. v-if="
  3896. item1.type == 3 ||
  3897. item1.type == 6 ||
  3898. item1.type == 7
  3899. "
  3900. class="chapter_upload_l_i5"
  3901. style="margin-left: 1px"
  3902. ></div>
  3903. <div
  3904. v-if="item1.type == 8"
  3905. class="chapter_upload_l_i8"
  3906. style="margin-left: 1px"
  3907. ></div>
  3908. </div>
  3909. <div
  3910. class="chapter_upload_ic"
  3911. style="
  3912. cursor: pointer;
  3913. position: absolute;
  3914. width: 45px;
  3915. right: 0;
  3916. top: 0;
  3917. "
  3918. >
  3919. <div class="chapter_upload_ic_l"></div>
  3920. <div
  3921. class="chapter_upload_ic_r"
  3922. style="position: absolute"
  3923. @click.stop="
  3924. deleteChapterData(
  3925. $event,
  3926. unitIndex,
  3927. index,
  3928. index1,
  3929. itemTaskIndex
  3930. )
  3931. "
  3932. >
  3933. <div></div>
  3934. </div>
  3935. </div>
  3936. <div class="chapter_upload_n">
  3937. <span
  3938. style="
  3939. font-size: 14px;
  3940. color: rgb(109, 109, 109);
  3941. height: 14px;
  3942. line-height: 12px;
  3943. "
  3944. v-if="
  3945. item1.type == 2 ||
  3946. item1.type == 3 ||
  3947. item1.type == 7
  3948. "
  3949. >{{ item1.text }}-</span
  3950. >
  3951. <input
  3952. v-if="
  3953. item1.type == 2 ||
  3954. item1.type == 3 ||
  3955. item1.type == 7
  3956. "
  3957. :placeholder="item1.name"
  3958. @change="
  3959. updataVideoT(
  3960. $event,
  3961. unitIndex,
  3962. chapterIndex,
  3963. index1
  3964. )
  3965. "
  3966. style="
  3967. border: none;
  3968. outline: none;
  3969. width: 80%;
  3970. minwidth: 215px;
  3971. z-index: 99;
  3972. font-size: 14px;
  3973. white-space: nowrap;
  3974. overflow: hidden;
  3975. text-overflow: ellipsis;
  3976. "
  3977. />
  3978. <input
  3979. :placeholder="item1.name"
  3980. v-if="item1.type == 6"
  3981. style="
  3982. border: none;
  3983. outline: none;
  3984. width: 80%;
  3985. white-space: nowrap;
  3986. overflow: hidden;
  3987. text-overflow: ellipsis;
  3988. "
  3989. readonly="true"
  3990. @click="selectAttText(itemTaskIndex, index1)"
  3991. />
  3992. <input
  3993. :placeholder="
  3994. item1.title ? item1.title : '链接'
  3995. "
  3996. v-if="item1.type == 8"
  3997. style="
  3998. border: none;
  3999. outline: none;
  4000. width: 80%;
  4001. white-space: nowrap;
  4002. overflow: hidden;
  4003. text-overflow: ellipsis;
  4004. "
  4005. readonly="true"
  4006. @click="selectLine(itemTaskIndex, index1)"
  4007. />
  4008. <div
  4009. class="chapter_upload_ud"
  4010. style="z-index: 99"
  4011. >
  4012. <div
  4013. class="chapter_upload_up"
  4014. @click="
  4015. upCd(
  4016. $event,
  4017. unitIndex,
  4018. index,
  4019. itemTaskIndex,
  4020. index1
  4021. )
  4022. "
  4023. ></div>
  4024. <div
  4025. class="chapter_upload_down"
  4026. @click="
  4027. downCd(
  4028. $event,
  4029. unitIndex,
  4030. index,
  4031. itemTaskIndex,
  4032. index1
  4033. )
  4034. "
  4035. ></div>
  4036. </div>
  4037. </div>
  4038. </div>
  4039. </div>
  4040. </div>
  4041. </div>
  4042. </div>
  4043. <div class="add_info_box" style="margin: 10px 0 0">
  4044. <button class="info_btn" @click="addImg($event)">
  4045. <span style="color: red">*</span>
  4046. 教学设计
  4047. <input
  4048. type="file"
  4049. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  4050. style="display: none"
  4051. v-if="inputShow"
  4052. @change="
  4053. beforeUpload3(
  4054. $event,
  4055. unitIndex,
  4056. 3,
  4057. itemTaskIndex,
  4058. '教学设计'
  4059. )
  4060. "
  4061. />
  4062. </button>
  4063. <button class="info_btn" @click="addImg($event)">
  4064. <span style="color: red">*</span>
  4065. 教学课件
  4066. <input
  4067. type="file"
  4068. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  4069. style="display: none"
  4070. v-if="inputShow"
  4071. @change="
  4072. beforeUpload3(
  4073. $event,
  4074. unitIndex,
  4075. 3,
  4076. itemTaskIndex,
  4077. '教学课件'
  4078. )
  4079. "
  4080. />
  4081. </button>
  4082. <button class="info_btn" @click="addImg($event)">
  4083. 教学视频
  4084. <input
  4085. type="file"
  4086. accept="video/mp4, video/quicktime, video/x-msvideo"
  4087. style="display: none"
  4088. v-if="inputShow"
  4089. @change="
  4090. beforeUpload3(
  4091. $event,
  4092. unitIndex,
  4093. 2,
  4094. itemTaskIndex,
  4095. '教学视频'
  4096. )
  4097. "
  4098. />
  4099. </button>
  4100. <button class="info_btn" @click="addImg($event)">
  4101. 教学音频
  4102. <input
  4103. type="file"
  4104. accept="audio/*"
  4105. style="display: none"
  4106. v-if="inputShow"
  4107. @change="
  4108. beforeUpload3(
  4109. $event,
  4110. unitIndex,
  4111. 2,
  4112. itemTaskIndex,
  4113. '教学音频'
  4114. )
  4115. "
  4116. />
  4117. </button>
  4118. <button class="info_btn" @click="addImg($event)">
  4119. 学习单
  4120. <input
  4121. type="file"
  4122. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  4123. style="display: none"
  4124. v-if="inputShow"
  4125. @change="
  4126. beforeUpload3(
  4127. $event,
  4128. unitIndex,
  4129. 3,
  4130. itemTaskIndex,
  4131. '学习单'
  4132. )
  4133. "
  4134. />
  4135. </button>
  4136. </div>
  4137. <div
  4138. v-if="
  4139. unitJson[unitIndex].chapterInfo[0].taskJson[
  4140. itemTaskIndex
  4141. ].proVisible
  4142. "
  4143. class="mask"
  4144. >
  4145. <div class="progressBox">
  4146. <!-- <div id="closePro" class="closeCss">
  4147. <img src="../../../../assets/icon/close.png" alt />
  4148. </div> -->
  4149. <div class="lbox">
  4150. <img
  4151. src="../../../assets/loading.gif"
  4152. />上传中,请稍后
  4153. </div>
  4154. <div style="margin-bottom: 10px">
  4155. <span
  4156. >{{
  4157. unitJson[unitIndex].chapterInfo[0].taskJson[
  4158. itemTaskIndex
  4159. ].isFinishSize
  4160. }}M</span
  4161. >
  4162. /
  4163. <span
  4164. >{{
  4165. unitJson[unitIndex].chapterInfo[0].taskJson[
  4166. itemTaskIndex
  4167. ].isAllSize
  4168. }}M</span
  4169. >
  4170. </div>
  4171. <el-progress
  4172. :text-inside="true"
  4173. :stroke-width="20"
  4174. :percentage="
  4175. unitJson[unitIndex].chapterInfo[0].taskJson[
  4176. itemTaskIndex
  4177. ].progress
  4178. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  4179. itemTaskIndex
  4180. ].progress
  4181. : 0
  4182. "
  4183. style="width: 80%"
  4184. ></el-progress>
  4185. </div>
  4186. </div>
  4187. </div>
  4188. <div
  4189. v-if="
  4190. unitJson[unitIndex].easy != 3 &&
  4191. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  4192. "
  4193. style="
  4194. flex-direction: row;
  4195. justify-content: flex-start;
  4196. align-items: center;
  4197. padding: 0 0 0 30px;
  4198. paddint-top: 10px !important;
  4199. "
  4200. >
  4201. <div
  4202. style="
  4203. display: flex;
  4204. flex-direction: row;
  4205. align-items: center;
  4206. margin-bottom: 20px;
  4207. "
  4208. >
  4209. <div class="lineTitle">
  4210. {{
  4211. !unitJson[unitIndex].easy ||
  4212. unitJson[unitIndex].easy == 6 ||
  4213. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  4214. ? "练习内容"
  4215. : "评价内容"
  4216. }}
  4217. </div>
  4218. </div>
  4219. </div>
  4220. <div
  4221. v-if="
  4222. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  4223. "
  4224. class="toolChoose"
  4225. style="padding: 0 0 0 30px"
  4226. >
  4227. <div class="tools">
  4228. <div
  4229. class="leftTools"
  4230. style="width: 95%; padding: 0 0 15px 0; margin: 15px 0"
  4231. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4232. :key="toolIndex"
  4233. >
  4234. <div>
  4235. <textarea
  4236. rows="3"
  4237. type="text"
  4238. placeholder="添加工具描述"
  4239. class="binfo_input"
  4240. style="margin: 0 0 20px 0; width: 71.5% !important"
  4241. v-model="itemTool.toolDetail"
  4242. ></textarea>
  4243. </div>
  4244. <div
  4245. style="
  4246. display: flex;
  4247. flex-direction: row;
  4248. align-items: baseline;
  4249. flex-wrap: nowrap;
  4250. justify-content: flex-start;
  4251. position: relative;
  4252. "
  4253. >
  4254. <div style="margin-right: 20px; font-weight: bold">
  4255. 工具 {{ toolIndex + 1 }} :
  4256. </div>
  4257. <div class="chooseWho">
  4258. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  4259. " @click="(itemTool.toolType = 0), $forceUpdate()">
  4260. 互动类
  4261. </div> -->
  4262. <div
  4263. :class="
  4264. itemTool.toolType == 1 ? 'isChooseActive' : ''
  4265. "
  4266. @click="(itemTool.toolType = 1), $forceUpdate()"
  4267. >
  4268. 思维类
  4269. </div>
  4270. <div
  4271. :class="
  4272. itemTool.toolType == 6 ? 'isChooseActive' : ''
  4273. "
  4274. @click="(itemTool.toolType = 6), $forceUpdate()"
  4275. >
  4276. 协作类
  4277. </div>
  4278. <div
  4279. :class="
  4280. itemTool.toolType == 2 ? 'isChooseActive' : ''
  4281. "
  4282. @click="(itemTool.toolType = 2), $forceUpdate()"
  4283. >
  4284. 测评类
  4285. </div>
  4286. <div
  4287. :class="
  4288. itemTool.toolType == 7 ? 'isChooseActive' : ''
  4289. "
  4290. @click="(itemTool.toolType = 7), $forceUpdate()"
  4291. >
  4292. 评价类
  4293. </div>
  4294. <div
  4295. :class="
  4296. itemTool.toolType == 3 ? 'isChooseActive' : ''
  4297. "
  4298. @click="(itemTool.toolType = 3), $forceUpdate()"
  4299. >
  4300. 学科类
  4301. </div>
  4302. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  4303. " @click="(itemTool.toolType = 5), $forceUpdate()">
  4304. 学科类
  4305. </div>
  4306. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  4307. " @click="(itemTool.toolType = 4), $forceUpdate()">
  4308. 其他
  4309. </div> -->
  4310. </div>
  4311. <div
  4312. class="remove"
  4313. @click="deleteTool(itemTaskIndex, toolIndex)"
  4314. v-if="itemTask.toolChoose.length > 1"
  4315. style="position: absolute; right: 55px"
  4316. ></div>
  4317. </div>
  4318. <div style="min-height: 163px">
  4319. <div class="toolSort" v-if="itemTool.toolType == 0">
  4320. <!-- <div class="tool">
  4321. <div
  4322. class="whiteBIcon"
  4323. @click="addTools(8, itemTaskIndex, toolIndex)"
  4324. >
  4325. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4326. <div style="margin: 5px 0">素材库</div>
  4327. </div>
  4328. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  4329. <img
  4330. src="../../../assets/icon/checkNo.png"
  4331. alt
  4332. v-if="itemTool.tool.indexOf(8) == -1"
  4333. />
  4334. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  4335. alt /><span>已选择</span></div>
  4336. </div>
  4337. </div>-->
  4338. <!-- <div class="tool">
  4339. <div
  4340. class="whiteBIcon"
  4341. @click="addTools(17, itemTaskIndex, toolIndex)"
  4342. >
  4343. <img
  4344. src="../../../assets/icon/secondToolList/library.png"
  4345. alt
  4346. />
  4347. <div style="margin: 5px 0">学习资料</div>
  4348. </div>
  4349. <div
  4350. class="check"
  4351. @click="addTools(17, itemTaskIndex, toolIndex)"
  4352. >
  4353. <img
  4354. src="../../../assets/icon/checkNo.png"
  4355. alt
  4356. v-if="itemTool.tool.indexOf(17) == -1"
  4357. />
  4358. <img
  4359. src="../../../assets/icon/checkedIs.png"
  4360. alt
  4361. v-else
  4362. />
  4363. </div>10
  4364. </div> -->
  4365. <div class="tool">
  4366. <div
  4367. class="whiteBIcon"
  4368. @click="openTools(itemTaskIndex, 10, toolIndex)"
  4369. >
  4370. <img
  4371. src="../../../assets/icon/thirdToolList/time.png"
  4372. alt
  4373. />
  4374. <div style="margin: 5px 0">倒计时</div>
  4375. </div>
  4376. <div
  4377. class="check"
  4378. @click="addTools(10, itemTaskIndex, toolIndex)"
  4379. >
  4380. <img
  4381. src="../../../assets/icon/checkNo.png"
  4382. alt
  4383. v-if="itemTool.tool.indexOf(10) == -1"
  4384. />
  4385. <div class="checkDiv" v-else>
  4386. <img
  4387. src="../../../assets/icon/checkedIs.png"
  4388. alt
  4389. /><span>已选择</span>
  4390. </div>
  4391. </div>
  4392. </div>
  4393. <!-- <div class="tool">
  4394. <div
  4395. class="whiteBIcon"
  4396. @click="openTools(itemTaskIndex, 49, toolIndex)"
  4397. >
  4398. <img
  4399. src="../../../assets/icon/fourthToolList/group.png"
  4400. alt
  4401. />
  4402. <div style="margin: 5px 0">学生分组</div>
  4403. </div>
  4404. <div
  4405. class="check"
  4406. @click="addTools(49, itemTaskIndex, toolIndex)"
  4407. >
  4408. <img
  4409. src="../../../assets/icon/checkNo.png"
  4410. alt
  4411. v-if="itemTool.tool.indexOf(49) == -1"
  4412. />
  4413. <div class="checkDiv" v-else>
  4414. <img
  4415. src="../../../assets/icon/checkedIs.png"
  4416. alt
  4417. /><span>已选择</span>
  4418. </div>
  4419. </div>
  4420. </div> -->
  4421. <div class="tool">
  4422. <div
  4423. class="whiteBIcon"
  4424. @click="openTools(itemTaskIndex, 62, toolIndex)"
  4425. >
  4426. <img
  4427. src="../../../assets/icon/fourthToolList/interVideo.png"
  4428. alt
  4429. />
  4430. <div style="margin: 5px 0">交互视频</div>
  4431. </div>
  4432. <div
  4433. class="check"
  4434. @click="addTools(62, itemTaskIndex, toolIndex)"
  4435. >
  4436. <img
  4437. src="../../../assets/icon/checkNo.png"
  4438. alt
  4439. v-if="itemTool.tool.indexOf(62) == -1"
  4440. />
  4441. <div class="checkDiv" v-else>
  4442. <img
  4443. src="../../../assets/icon/checkedIs.png"
  4444. alt
  4445. /><span>已选择</span>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. </div>
  4450. <div class="toolSort" v-if="itemTool.toolType == 1">
  4451. <div class="tool">
  4452. <div
  4453. class="whiteBIcon"
  4454. @click="addTools(7, itemTaskIndex, toolIndex)"
  4455. >
  4456. <img
  4457. src="../../../assets/icon/secondToolList/mindNetwork.png"
  4458. alt
  4459. />
  4460. <div style="margin: 5px 0">思维网格</div>
  4461. </div>
  4462. <div
  4463. class="check"
  4464. @click="addTools(7, itemTaskIndex, toolIndex)"
  4465. >
  4466. <img
  4467. src="../../../assets/icon/checkNo.png"
  4468. alt
  4469. v-if="itemTool.tool.indexOf(7) == -1"
  4470. />
  4471. <div class="checkDiv" v-else>
  4472. <img
  4473. src="../../../assets/icon/checkedIs.png"
  4474. alt
  4475. /><span>已选择</span>
  4476. </div>
  4477. </div>
  4478. </div>
  4479. <div class="tool">
  4480. <div
  4481. class="whiteBIcon"
  4482. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4483. >
  4484. <img
  4485. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4486. alt
  4487. />
  4488. <div style="margin: 5px 0">电子白板</div>
  4489. </div>
  4490. <div
  4491. class="check"
  4492. @click="addTools(1, itemTaskIndex, toolIndex)"
  4493. >
  4494. <img
  4495. src="../../../assets/icon/checkNo.png"
  4496. alt
  4497. v-if="itemTool.tool.indexOf(1) == -1"
  4498. />
  4499. <div class="checkDiv" v-else>
  4500. <img
  4501. src="../../../assets/icon/checkedIs.png"
  4502. alt
  4503. /><span>已选择</span>
  4504. </div>
  4505. </div>
  4506. </div>
  4507. <!-- <div class="tool">
  4508. <div
  4509. class="whiteBIcon"
  4510. @click="addTools(2, itemTaskIndex, toolIndex)"
  4511. >
  4512. <img
  4513. src="../../../assets/icon/secondToolList/note.png"
  4514. alt
  4515. />
  4516. <div style="margin: 5px 0">便签</div>
  4517. </div>
  4518. <div
  4519. class="check"
  4520. @click="addTools(2, itemTaskIndex, toolIndex)"
  4521. >
  4522. <img
  4523. src="../../../assets/icon/checkNo.png"
  4524. alt
  4525. v-if="itemTool.tool.indexOf(2) == -1"
  4526. />
  4527. <div class="checkDiv" v-else>
  4528. <img
  4529. src="../../../assets/icon/checkedIs.png"
  4530. alt
  4531. /><span>已选择</span>
  4532. </div>
  4533. </div>
  4534. </div> -->
  4535. <!-- <div class="tool">
  4536. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  4537. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4538. <div style="margin: 5px 0">协同文档</div>
  4539. </div>
  4540. <div
  4541. class="check"
  4542. @click="addTools(6, itemTaskIndex, toolIndex)"
  4543. >
  4544. <img
  4545. src="../../../assets/icon/checkNo.png"
  4546. alt
  4547. v-if="itemTool.tool.indexOf(6) == -1"
  4548. />
  4549. <div class="checkDiv" v-else>
  4550. <img
  4551. src="../../../assets/icon/checkedIs.png"
  4552. alt
  4553. /><span>已选择</span>
  4554. </div>
  4555. </div>
  4556. </div> -->
  4557. <div class="tool">
  4558. <div
  4559. class="whiteBIcon"
  4560. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4561. >
  4562. <img
  4563. src="../../../assets/icon/fourthToolList/text.png"
  4564. alt
  4565. />
  4566. <div style="margin: 5px 0">文档</div>
  4567. </div>
  4568. <div
  4569. class="check"
  4570. @click="addTools(52, itemTaskIndex, toolIndex)"
  4571. >
  4572. <img
  4573. src="../../../assets/icon/checkNo.png"
  4574. alt
  4575. v-if="itemTool.tool.indexOf(52) == -1"
  4576. />
  4577. <div class="checkDiv" v-else>
  4578. <img
  4579. src="../../../assets/icon/checkedIs.png"
  4580. alt
  4581. /><span>已选择</span>
  4582. </div>
  4583. </div>
  4584. </div>
  4585. <div class="tool">
  4586. <div
  4587. class="whiteBIcon"
  4588. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4589. >
  4590. <img
  4591. src="../../../assets/icon/secondToolList/mindMapping.png"
  4592. alt
  4593. />
  4594. <div style="margin: 5px 0">思维导图</div>
  4595. </div>
  4596. <div
  4597. class="check"
  4598. @click="addTools(3, itemTaskIndex, toolIndex)"
  4599. >
  4600. <img
  4601. src="../../../assets/icon/checkNo.png"
  4602. alt
  4603. v-if="itemTool.tool.indexOf(3) == -1"
  4604. />
  4605. <div class="checkDiv" v-else>
  4606. <img
  4607. src="../../../assets/icon/checkedIs.png"
  4608. alt
  4609. /><span>已选择</span>
  4610. </div>
  4611. </div>
  4612. </div>
  4613. <div class="tool">
  4614. <div
  4615. class="whiteBIcon"
  4616. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4617. >
  4618. <img
  4619. src="../../../assets/icon/fourthToolList/table.png"
  4620. alt
  4621. />
  4622. <div style="margin: 5px 0">表格</div>
  4623. </div>
  4624. <div
  4625. class="check"
  4626. @click="addTools(48, itemTaskIndex, toolIndex)"
  4627. >
  4628. <img
  4629. src="../../../assets/icon/checkNo.png"
  4630. alt
  4631. v-if="itemTool.tool.indexOf(48) == -1"
  4632. />
  4633. <div class="checkDiv" v-else>
  4634. <img
  4635. src="../../../assets/icon/checkedIs.png"
  4636. alt
  4637. /><span>已选择</span>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div class="toolSort" v-if="itemTool.toolType == 6">
  4643. <div class="tool">
  4644. <div
  4645. class="whiteBIcon"
  4646. @click="openTools(itemTaskIndex, 49, toolIndex)"
  4647. >
  4648. <img
  4649. src="../../../assets/icon/fourthToolList/group.png"
  4650. alt
  4651. />
  4652. <div style="margin: 5px 0">学生分组</div>
  4653. </div>
  4654. <div
  4655. class="check"
  4656. @click="addTools(49, itemTaskIndex, toolIndex)"
  4657. >
  4658. <img
  4659. src="../../../assets/icon/checkNo.png"
  4660. alt
  4661. v-if="itemTool.tool.indexOf(49) == -1"
  4662. />
  4663. <div class="checkDiv" v-else>
  4664. <img
  4665. src="../../../assets/icon/checkedIs.png"
  4666. alt
  4667. /><span>已选择</span>
  4668. </div>
  4669. </div>
  4670. </div>
  4671. </div>
  4672. <div class="toolSort" v-if="itemTool.toolType == 2">
  4673. <!-- <div class="tool">
  4674. <div
  4675. class="whiteBIcon"
  4676. @click="addTools(5, itemTaskIndex, toolIndex)"
  4677. >
  4678. <img
  4679. src="../../../assets/icon/thirdToolList/score.png"
  4680. alt
  4681. />
  4682. <div style="margin: 5px 0">量规评分</div>
  4683. </div>
  4684. <div
  4685. class="check"
  4686. @click="addTools(5, itemTaskIndex, toolIndex)"
  4687. >
  4688. <img
  4689. src="../../../assets/icon/checkNo.png"
  4690. alt
  4691. v-if="itemTool.tool.indexOf(5) == -1"
  4692. />
  4693. <img
  4694. src="../../../assets/icon/checkedIs.png"
  4695. alt
  4696. v-else
  4697. />
  4698. </div>
  4699. </div>-->
  4700. <div class="tool">
  4701. <div
  4702. class="whiteBIcon"
  4703. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4704. >
  4705. <img
  4706. src="../../../assets/icon/thirdToolList/ask.png"
  4707. alt
  4708. />
  4709. <div style="margin: 5px 0">问卷调查</div>
  4710. </div>
  4711. <div
  4712. class="check"
  4713. @click="addTools(4, itemTaskIndex, toolIndex)"
  4714. >
  4715. <img
  4716. src="../../../assets/icon/checkNo.png"
  4717. alt
  4718. v-if="itemTool.tool.indexOf(4) == -1"
  4719. />
  4720. <div class="checkDiv" v-else>
  4721. <img
  4722. src="../../../assets/icon/checkedIs.png"
  4723. alt
  4724. /><span>已选择</span>
  4725. </div>
  4726. </div>
  4727. </div>
  4728. <div class="tool">
  4729. <div
  4730. class="whiteBIcon"
  4731. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4732. >
  4733. <img
  4734. src="../../../assets/icon/thirdToolList/choose.png"
  4735. alt
  4736. />
  4737. <div style="margin: 5px 0">选择题</div>
  4738. </div>
  4739. <div
  4740. class="check"
  4741. @click="addTools(45, itemTaskIndex, toolIndex)"
  4742. >
  4743. <img
  4744. src="../../../assets/icon/checkNo.png"
  4745. alt
  4746. v-if="itemTool.tool.indexOf(45) == -1"
  4747. />
  4748. <div class="checkDiv" v-else>
  4749. <img
  4750. src="../../../assets/icon/checkedIs.png"
  4751. alt
  4752. /><span>已选择</span>
  4753. </div>
  4754. </div>
  4755. </div>
  4756. <div class="tool">
  4757. <div
  4758. class="whiteBIcon"
  4759. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4760. >
  4761. <img
  4762. src="../../../assets/icon/thirdToolList/answer.png"
  4763. alt
  4764. />
  4765. <div style="margin: 5px 0">问答</div>
  4766. </div>
  4767. <div
  4768. class="check"
  4769. @click="addTools(15, itemTaskIndex, toolIndex)"
  4770. >
  4771. <img
  4772. src="../../../assets/icon/checkNo.png"
  4773. alt
  4774. v-if="itemTool.tool.indexOf(15) == -1"
  4775. />
  4776. <div class="checkDiv" v-else>
  4777. <img
  4778. src="../../../assets/icon/checkedIs.png"
  4779. alt
  4780. /><span>已选择</span>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. <div class="tool">
  4785. <div
  4786. class="whiteBIcon"
  4787. @click="addTools(16, itemTaskIndex, toolIndex)"
  4788. >
  4789. <img
  4790. src="../../../assets/icon/thirdToolList/work.png"
  4791. alt
  4792. />
  4793. <div style="margin: 5px 0">作业提交</div>
  4794. </div>
  4795. <div
  4796. class="check"
  4797. @click="addTools(16, itemTaskIndex, toolIndex)"
  4798. >
  4799. <img
  4800. src="../../../assets/icon/checkNo.png"
  4801. alt
  4802. v-if="itemTool.tool.indexOf(16) == -1"
  4803. />
  4804. <div class="checkDiv" v-else>
  4805. <img
  4806. src="../../../assets/icon/checkedIs.png"
  4807. alt
  4808. /><span>已选择</span>
  4809. </div>
  4810. </div>
  4811. </div>
  4812. <div class="tool">
  4813. <div
  4814. class="whiteBIcon"
  4815. @click="addTools(50, itemTaskIndex, toolIndex)"
  4816. >
  4817. <img
  4818. src="../../../assets/icon/thirdToolList/plwork.png"
  4819. alt
  4820. />
  4821. <div style="margin: 5px 0">批量上传</div>
  4822. </div>
  4823. <div
  4824. class="check"
  4825. @click="addTools(50, itemTaskIndex, toolIndex)"
  4826. >
  4827. <img
  4828. src="../../../assets/icon/checkNo.png"
  4829. alt
  4830. v-if="itemTool.tool.indexOf(50) == -1"
  4831. />
  4832. <div class="checkDiv" v-else>
  4833. <img
  4834. src="../../../assets/icon/checkedIs.png"
  4835. alt
  4836. /><span>已选择</span>
  4837. </div>
  4838. </div>
  4839. </div>
  4840. <!-- <div class="tool">
  4841. <div
  4842. class="whiteBIcon"
  4843. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4844. >
  4845. <img
  4846. src="../../../assets/icon/thirdToolList/eval.png"
  4847. alt
  4848. />
  4849. <div style="margin: 5px 0">个人评价</div>
  4850. </div>
  4851. <div
  4852. class="check"
  4853. @click="addTools(40, itemTaskIndex, toolIndex)"
  4854. >
  4855. <img
  4856. src="../../../assets/icon/checkNo.png"
  4857. alt
  4858. v-if="itemTool.tool.indexOf(40) == -1"
  4859. />
  4860. <div class="checkDiv" v-else>
  4861. <img
  4862. src="../../../assets/icon/checkedIs.png"
  4863. alt
  4864. /><span>已选择</span>
  4865. </div>
  4866. </div>
  4867. </div> -->
  4868. <div class="tool">
  4869. <div
  4870. class="whiteBIcon"
  4871. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4872. >
  4873. <img
  4874. src="../../../assets/icon/thirdToolList/select.png"
  4875. alt
  4876. />
  4877. <div style="margin: 5px 0">选择匹配</div>
  4878. </div>
  4879. <div
  4880. class="check"
  4881. @click="addTools(41, itemTaskIndex, toolIndex)"
  4882. >
  4883. <img
  4884. src="../../../assets/icon/checkNo.png"
  4885. alt
  4886. v-if="itemTool.tool.indexOf(41) == -1"
  4887. />
  4888. <div class="checkDiv" v-else>
  4889. <img
  4890. src="../../../assets/icon/checkedIs.png"
  4891. alt
  4892. /><span>已选择</span>
  4893. </div>
  4894. </div>
  4895. </div>
  4896. <div class="tool">
  4897. <div
  4898. class="whiteBIcon"
  4899. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4900. >
  4901. <img
  4902. src="../../../assets/icon/fourthToolList/conSentences.png"
  4903. alt
  4904. />
  4905. <div style="margin: 5px 0">排序</div>
  4906. </div>
  4907. <div
  4908. class="check"
  4909. @click="addTools(47, itemTaskIndex, toolIndex)"
  4910. >
  4911. <img
  4912. src="../../../assets/icon/checkNo.png"
  4913. alt
  4914. v-if="itemTool.tool.indexOf(47) == -1"
  4915. />
  4916. <div class="checkDiv" v-else>
  4917. <img
  4918. src="../../../assets/icon/checkedIs.png"
  4919. alt
  4920. /><span>已选择</span>
  4921. </div>
  4922. </div>
  4923. </div>
  4924. <!-- <div class="tool">
  4925. <div
  4926. class="whiteBIcon"
  4927. @click="openTools(itemTaskIndex, 42, toolIndex)"
  4928. >
  4929. <img
  4930. src="../../../assets/icon/thirdToolList/mp3.png"
  4931. alt
  4932. />
  4933. <div style="margin: 5px 0">上传音频</div>
  4934. </div>
  4935. <div
  4936. class="check"
  4937. @click="addTools(42, itemTaskIndex, toolIndex)"
  4938. >
  4939. <img
  4940. src="../../../assets/icon/checkNo.png"
  4941. alt
  4942. v-if="itemTool.tool.indexOf(42) == -1"
  4943. />
  4944. <img
  4945. src="../../../assets/icon/checkedIs.png"
  4946. alt
  4947. v-else
  4948. />
  4949. </div>
  4950. </div> -->
  4951. </div>
  4952. <div class="toolSort" v-if="itemTool.toolType == 3">
  4953. <div class="tool">
  4954. <div
  4955. class="whiteBIcon"
  4956. @click="addTools(18, itemTaskIndex, toolIndex)"
  4957. >
  4958. <img
  4959. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  4960. alt
  4961. />
  4962. <div style="margin: 5px 0">训练平台</div>
  4963. </div>
  4964. <div
  4965. class="check"
  4966. @click="addTools(18, itemTaskIndex, toolIndex)"
  4967. >
  4968. <img
  4969. src="../../../assets/icon/checkNo.png"
  4970. alt
  4971. v-if="itemTool.tool.indexOf(18) == -1"
  4972. />
  4973. <div class="checkDiv" v-else>
  4974. <img
  4975. src="../../../assets/icon/checkedIs.png"
  4976. alt
  4977. /><span>已选择</span>
  4978. </div>
  4979. </div>
  4980. </div>
  4981. <div class="tool">
  4982. <div
  4983. class="whiteBIcon"
  4984. @click="addTools(21, itemTaskIndex, toolIndex)"
  4985. >
  4986. <img
  4987. src="../../../assets/icon/fourthToolList/program.png"
  4988. alt
  4989. />
  4990. <div style="margin: 5px 0">AIoT Blockly</div>
  4991. </div>
  4992. <div
  4993. class="check"
  4994. @click="addTools(21, itemTaskIndex, toolIndex)"
  4995. >
  4996. <img
  4997. src="../../../assets/icon/checkNo.png"
  4998. alt
  4999. v-if="itemTool.tool.indexOf(21) == -1"
  5000. />
  5001. <div class="checkDiv" v-else>
  5002. <img
  5003. src="../../../assets/icon/checkedIs.png"
  5004. alt
  5005. /><span>已选择</span>
  5006. </div>
  5007. </div>
  5008. </div>
  5009. <div class="tool">
  5010. <div
  5011. class="whiteBIcon"
  5012. @click="addTools(22, itemTaskIndex, toolIndex)"
  5013. >
  5014. <img
  5015. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  5016. alt
  5017. />
  5018. <div style="margin: 5px 0">AI体验</div>
  5019. </div>
  5020. <div
  5021. class="check"
  5022. @click="addTools(22, itemTaskIndex, toolIndex)"
  5023. >
  5024. <img
  5025. src="../../../assets/icon/checkNo.png"
  5026. alt
  5027. v-if="itemTool.tool.indexOf(22) == -1"
  5028. />
  5029. <div class="checkDiv" v-else>
  5030. <img
  5031. src="../../../assets/icon/checkedIs.png"
  5032. alt
  5033. /><span>已选择</span>
  5034. </div>
  5035. </div>
  5036. </div>
  5037. <div class="tool">
  5038. <div
  5039. class="whiteBIcon"
  5040. @click="addTools(23, itemTaskIndex, toolIndex)"
  5041. >
  5042. <img
  5043. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  5044. alt
  5045. />
  5046. <div style="margin: 5px 0">AI Python</div>
  5047. </div>
  5048. <div
  5049. class="check"
  5050. @click="addTools(23, itemTaskIndex, toolIndex)"
  5051. >
  5052. <img
  5053. src="../../../assets/icon/checkNo.png"
  5054. alt
  5055. v-if="itemTool.tool.indexOf(23) == -1"
  5056. />
  5057. <div class="checkDiv" v-else>
  5058. <img
  5059. src="../../../assets/icon/checkedIs.png"
  5060. alt
  5061. /><span>已选择</span>
  5062. </div>
  5063. </div>
  5064. </div>
  5065. <div class="tool">
  5066. <div
  5067. class="whiteBIcon"
  5068. @click="addTools(24, itemTaskIndex, toolIndex)"
  5069. >
  5070. <img
  5071. src="../../../assets/icon/fourthToolList/AIprogram.png"
  5072. alt
  5073. />
  5074. <div style="margin: 5px 0">AI Blockly</div>
  5075. </div>
  5076. <div
  5077. class="check"
  5078. @click="addTools(24, itemTaskIndex, toolIndex)"
  5079. >
  5080. <img
  5081. src="../../../assets/icon/checkNo.png"
  5082. alt
  5083. v-if="itemTool.tool.indexOf(24) == -1"
  5084. />
  5085. <div class="checkDiv" v-else>
  5086. <img
  5087. src="../../../assets/icon/checkedIs.png"
  5088. alt
  5089. /><span>已选择</span>
  5090. </div>
  5091. </div>
  5092. </div>
  5093. <!-- <div class="tool">
  5094. <div
  5095. class="whiteBIcon"
  5096. @click="addTools(32, itemTaskIndex, toolIndex)"
  5097. >
  5098. <img
  5099. src="../../../assets/icon/thirdToolList/code.png"
  5100. alt
  5101. />
  5102. <div style="margin: 5px 0">源码编辑</div>
  5103. </div>
  5104. <div
  5105. class="check"
  5106. @click="addTools(32, itemTaskIndex, toolIndex)"
  5107. >
  5108. <img
  5109. src="../../../assets/icon/checkNo.png"
  5110. alt
  5111. v-if="itemTool.tool.indexOf(32) == -1"
  5112. />
  5113. <div class="checkDiv" v-else>
  5114. <img
  5115. src="../../../assets/icon/checkedIs.png"
  5116. alt
  5117. /><span>已选择</span>
  5118. </div>
  5119. </div>
  5120. </div> -->
  5121. <div class="tool">
  5122. <div
  5123. class="whiteBIcon"
  5124. @click="openTools(itemTaskIndex, 57, toolIndex)"
  5125. >
  5126. <img
  5127. src="../../../assets/icon/fourthToolList/cocopi.png"
  5128. alt
  5129. />
  5130. <div style="margin: 5px 0">CocoPi</div>
  5131. </div>
  5132. <div
  5133. class="check"
  5134. @click="addTools(57, itemTaskIndex, toolIndex)"
  5135. >
  5136. <img
  5137. src="../../../assets/icon/checkNo.png"
  5138. alt
  5139. v-if="itemTool.tool.indexOf(57) == -1"
  5140. />
  5141. <div class="checkDiv" v-else>
  5142. <img
  5143. src="../../../assets/icon/checkedIs.png"
  5144. alt
  5145. /><span>已选择</span>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. <div class="tool">
  5150. <div
  5151. class="whiteBIcon"
  5152. @click="addTools(63, itemTaskIndex, toolIndex)"
  5153. >
  5154. <img
  5155. src="../../../assets/icon/fourthToolList/Wood.png"
  5156. alt
  5157. />
  5158. <div style="margin: 5px 0">海龟编程</div>
  5159. </div>
  5160. <div
  5161. class="check"
  5162. @click="addTools(63, itemTaskIndex, toolIndex)"
  5163. >
  5164. <img
  5165. src="../../../assets/icon/checkNo.png"
  5166. alt
  5167. v-if="itemTool.tool.indexOf(63) == -1"
  5168. />
  5169. <div class="checkDiv" v-else>
  5170. <img
  5171. src="../../../assets/icon/checkedIs.png"
  5172. alt
  5173. /><span>已选择</span>
  5174. </div>
  5175. </div>
  5176. </div>
  5177. </div>
  5178. <div class="toolSort" v-if="itemTool.toolType == 7">
  5179. <div class="tool">
  5180. <div
  5181. class="whiteBIcon"
  5182. @click="openTools(itemTaskIndex, 40, toolIndex)"
  5183. >
  5184. <img
  5185. src="../../../assets/icon/thirdToolList/eval.png"
  5186. alt
  5187. />
  5188. <div style="margin: 5px 0">个人评价</div>
  5189. </div>
  5190. <div
  5191. class="check"
  5192. @click="addTools(40, itemTaskIndex, toolIndex)"
  5193. >
  5194. <img
  5195. src="../../../assets/icon/checkNo.png"
  5196. alt
  5197. v-if="itemTool.tool.indexOf(40) == -1"
  5198. />
  5199. <div class="checkDiv" v-else>
  5200. <img
  5201. src="../../../assets/icon/checkedIs.png"
  5202. alt
  5203. /><span>已选择</span>
  5204. </div>
  5205. </div>
  5206. </div>
  5207. </div>
  5208. <div class="toolSort" v-if="itemTool.toolType == 5">
  5209. <div class="tool">
  5210. <div
  5211. class="whiteBIcon"
  5212. @click="addTools(28, itemTaskIndex, toolIndex)"
  5213. >
  5214. <img
  5215. src="../../../assets/icon/secondToolList/translation.png"
  5216. alt
  5217. />
  5218. <div style="margin: 5px 0">翻译</div>
  5219. </div>
  5220. <div
  5221. class="check"
  5222. @click="addTools(28, itemTaskIndex, toolIndex)"
  5223. >
  5224. <img
  5225. src="../../../assets/icon/checkNo.png"
  5226. alt
  5227. v-if="itemTool.tool.indexOf(28) == -1"
  5228. />
  5229. <div class="checkDiv" v-else>
  5230. <img
  5231. src="../../../assets/icon/checkedIs.png"
  5232. alt
  5233. /><span>已选择</span>
  5234. </div>
  5235. </div>
  5236. </div>
  5237. <div class="tool">
  5238. <div
  5239. class="whiteBIcon"
  5240. @click="addTools(37, itemTaskIndex, toolIndex)"
  5241. >
  5242. <img
  5243. src="../../../assets/icon/secondToolList/mohe.png"
  5244. alt
  5245. />
  5246. <div style="margin: 5px 0">魔盒识字</div>
  5247. </div>
  5248. <div
  5249. class="check"
  5250. @click="addTools(37, itemTaskIndex, toolIndex)"
  5251. >
  5252. <img
  5253. src="../../../assets/icon/checkNo.png"
  5254. alt
  5255. v-if="itemTool.tool.indexOf(37) == -1"
  5256. />
  5257. <div class="checkDiv" v-else>
  5258. <img
  5259. src="../../../assets/icon/checkedIs.png"
  5260. alt
  5261. /><span>已选择</span>
  5262. </div>
  5263. </div>
  5264. </div>
  5265. <div class="tool">
  5266. <div
  5267. class="whiteBIcon"
  5268. @click="addTools(38, itemTaskIndex, toolIndex)"
  5269. >
  5270. <img
  5271. src="../../../assets/icon/secondToolList/24game.png"
  5272. alt
  5273. />
  5274. <div style="margin: 5px 0">24点</div>
  5275. </div>
  5276. <div
  5277. class="check"
  5278. @click="addTools(38, itemTaskIndex, toolIndex)"
  5279. >
  5280. <img
  5281. src="../../../assets/icon/checkNo.png"
  5282. alt
  5283. v-if="itemTool.tool.indexOf(38) == -1"
  5284. />
  5285. <div class="checkDiv" v-else>
  5286. <img
  5287. src="../../../assets/icon/checkedIs.png"
  5288. alt
  5289. /><span>已选择</span>
  5290. </div>
  5291. </div>
  5292. </div>
  5293. <div class="tool">
  5294. <div
  5295. class="whiteBIcon"
  5296. @click="addTools(31, itemTaskIndex, toolIndex)"
  5297. >
  5298. <img
  5299. src="../../../assets/icon/secondToolList/networkPanel.png"
  5300. alt
  5301. />
  5302. <div style="margin: 5px 0">数学画板</div>
  5303. </div>
  5304. <div
  5305. class="check"
  5306. @click="addTools(31, itemTaskIndex, toolIndex)"
  5307. >
  5308. <img
  5309. src="../../../assets/icon/checkNo.png"
  5310. alt
  5311. v-if="itemTool.tool.indexOf(31) == -1"
  5312. />
  5313. <div class="checkDiv" v-else>
  5314. <img
  5315. src="../../../assets/icon/checkedIs.png"
  5316. alt
  5317. /><span>已选择</span>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. <div class="tool">
  5322. <div
  5323. class="whiteBIcon"
  5324. @click="addTools(39, itemTaskIndex, toolIndex)"
  5325. >
  5326. <img
  5327. src="../../../assets/icon/secondToolList/GeoGebra.png"
  5328. alt
  5329. />
  5330. <div style="margin: 5px 0">GeoGebra</div>
  5331. </div>
  5332. <div
  5333. class="check"
  5334. @click="addTools(39, itemTaskIndex, toolIndex)"
  5335. >
  5336. <img
  5337. src="../../../assets/icon/checkNo.png"
  5338. alt
  5339. v-if="itemTool.tool.indexOf(39) == -1"
  5340. />
  5341. <div class="checkDiv" v-else>
  5342. <img
  5343. src="../../../assets/icon/checkedIs.png"
  5344. alt
  5345. /><span>已选择</span>
  5346. </div>
  5347. </div>
  5348. </div>
  5349. <div class="tool">
  5350. <div
  5351. class="whiteBIcon"
  5352. @click="addTools(58, itemTaskIndex, toolIndex)"
  5353. >
  5354. <img
  5355. src="../../../assets/icon/fourthToolList/car.png"
  5356. alt
  5357. />
  5358. <div style="margin: 5px 0">模拟驾驶</div>
  5359. </div>
  5360. <div
  5361. class="check"
  5362. @click="addTools(58, itemTaskIndex, toolIndex)"
  5363. >
  5364. <img
  5365. src="../../../assets/icon/checkNo.png"
  5366. alt
  5367. v-if="itemTool.tool.indexOf(58) == -1"
  5368. />
  5369. <div class="checkDiv" v-else>
  5370. <img
  5371. src="../../../assets/icon/checkedIs.png"
  5372. alt
  5373. /><span>已选择</span>
  5374. </div>
  5375. </div>
  5376. </div>
  5377. <div class="tool">
  5378. <div
  5379. class="whiteBIcon"
  5380. @click="addTools(59, itemTaskIndex, toolIndex)"
  5381. >
  5382. <img
  5383. src="../../../assets/icon/fourthToolList/lineSearch.png"
  5384. alt
  5385. />
  5386. <div style="margin: 5px 0">路径搜索</div>
  5387. </div>
  5388. <div
  5389. class="check"
  5390. @click="addTools(59, itemTaskIndex, toolIndex)"
  5391. >
  5392. <img
  5393. src="../../../assets/icon/checkNo.png"
  5394. alt
  5395. v-if="itemTool.tool.indexOf(59) == -1"
  5396. />
  5397. <div class="checkDiv" v-else>
  5398. <img
  5399. src="../../../assets/icon/checkedIs.png"
  5400. alt
  5401. /><span>已选择</span>
  5402. </div>
  5403. </div>
  5404. </div>
  5405. <div class="tool">
  5406. <div
  5407. class="whiteBIcon"
  5408. @click="addTools(60, itemTaskIndex, toolIndex)"
  5409. >
  5410. <img
  5411. src="../../../assets/icon/fourthToolList/deepLearning.png"
  5412. alt
  5413. />
  5414. <div style="margin: 5px 0">深度学习</div>
  5415. </div>
  5416. <div
  5417. class="check"
  5418. @click="addTools(60, itemTaskIndex, toolIndex)"
  5419. >
  5420. <img
  5421. src="../../../assets/icon/checkNo.png"
  5422. alt
  5423. v-if="itemTool.tool.indexOf(60) == -1"
  5424. />
  5425. <div class="checkDiv" v-else>
  5426. <img
  5427. src="../../../assets/icon/checkedIs.png"
  5428. alt
  5429. /><span>已选择</span>
  5430. </div>
  5431. </div>
  5432. </div>
  5433. <div class="tool">
  5434. <div
  5435. class="whiteBIcon"
  5436. @click="addTools(61, itemTaskIndex, toolIndex)"
  5437. >
  5438. <img
  5439. src="../../../assets/icon/fourthToolList/allHistory.png"
  5440. alt
  5441. />
  5442. <div style="margin: 5px 0">全历史</div>
  5443. </div>
  5444. <div
  5445. class="check"
  5446. @click="addTools(61, itemTaskIndex, toolIndex)"
  5447. >
  5448. <img
  5449. src="../../../assets/icon/checkNo.png"
  5450. alt
  5451. v-if="itemTool.tool.indexOf(61) == -1"
  5452. />
  5453. <div class="checkDiv" v-else>
  5454. <img
  5455. src="../../../assets/icon/checkedIs.png"
  5456. alt
  5457. /><span>已选择</span>
  5458. </div>
  5459. </div>
  5460. </div>
  5461. </div>
  5462. <div class="toolSort" v-if="itemTool.toolType == 4">
  5463. <div class="tool">
  5464. <div
  5465. class="whiteBIcon"
  5466. @click="addTools(26, itemTaskIndex, toolIndex)"
  5467. >
  5468. <img
  5469. src="../../../assets/icon/thirdToolList/courseDesign.png"
  5470. alt
  5471. />
  5472. <div style="margin: 5px 0">课程设计</div>
  5473. </div>
  5474. <div
  5475. class="check"
  5476. @click="addTools(26, itemTaskIndex, toolIndex)"
  5477. >
  5478. <img
  5479. src="../../../assets/icon/checkNo.png"
  5480. alt
  5481. v-if="itemTool.tool.indexOf(26) == -1"
  5482. />
  5483. <div class="checkDiv" v-else>
  5484. <img
  5485. src="../../../assets/icon/checkedIs.png"
  5486. alt
  5487. /><span>已选择</span>
  5488. </div>
  5489. </div>
  5490. </div>
  5491. <div class="tool">
  5492. <div
  5493. class="whiteBIcon"
  5494. @click="addTools(25, itemTaskIndex, toolIndex)"
  5495. >
  5496. <img
  5497. src="../../../assets/icon/thirdToolList/evalua.png"
  5498. alt
  5499. />
  5500. <div style="margin: 5px 0">目标管理</div>
  5501. </div>
  5502. <div
  5503. class="check"
  5504. @click="addTools(25, itemTaskIndex, toolIndex)"
  5505. >
  5506. <img
  5507. src="../../../assets/icon/checkNo.png"
  5508. alt
  5509. v-if="itemTool.tool.indexOf(25) == -1"
  5510. />
  5511. <div class="checkDiv" v-else>
  5512. <img
  5513. src="../../../assets/icon/checkedIs.png"
  5514. alt
  5515. /><span>已选择</span>
  5516. </div>
  5517. </div>
  5518. </div>
  5519. <!-- <div class="tool">
  5520. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  5521. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  5522. <div style="margin: 5px 0">汉字宫</div>
  5523. </div>
  5524. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  5525. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  5526. <div class="checkDiv" v-else>
  5527. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  5528. </div>
  5529. </div>
  5530. </div> -->
  5531. </div>
  5532. </div>
  5533. </div>
  5534. <div
  5535. class="addToolFun"
  5536. @click="addToolFun(itemTaskIndex)"
  5537. >
  5538. <div class="addToolImg">
  5539. <img src="../../../assets/icon/add.png" alt />
  5540. </div>
  5541. <div>添加工具</div>
  5542. </div>
  5543. </div>
  5544. </div>
  5545. <div
  5546. v-else-if="
  5547. unitJson[unitIndex].easy == 2 ||
  5548. unitJson[unitIndex].easy == 4
  5549. "
  5550. class="toolChoose"
  5551. style="padding: 0 0 0 30px"
  5552. >
  5553. <div class="tools">
  5554. <div
  5555. class="leftTools"
  5556. style="width: 95%"
  5557. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  5558. :key="toolIndex"
  5559. >
  5560. <div>
  5561. <textarea
  5562. rows="3"
  5563. type="text"
  5564. placeholder="添加工具描述"
  5565. class="binfo_input"
  5566. style="margin: 0 0 20px 0; width: 71.5% !important"
  5567. v-model="itemTool.toolDetail"
  5568. ></textarea>
  5569. </div>
  5570. <div
  5571. style="
  5572. display: flex;
  5573. flex-direction: row;
  5574. align-items: baseline;
  5575. flex-wrap: nowrap;
  5576. justify-content: flex-start;
  5577. position: relative;
  5578. "
  5579. >
  5580. <div style="margin-right: 20px; font-weight: bold">
  5581. 工具 {{ toolIndex + 1 }} :
  5582. </div>
  5583. <div
  5584. class="remove"
  5585. @click="deleteTool(itemTaskIndex, toolIndex)"
  5586. v-if="itemTask.toolChoose.length > 1"
  5587. style="position: absolute; right: 55px"
  5588. ></div>
  5589. </div>
  5590. <div style="min-height: 163px">
  5591. <div class="toolSort">
  5592. <div class="tool">
  5593. <div
  5594. class="whiteBIcon"
  5595. @click="openTools(itemTaskIndex, 1, toolIndex)"
  5596. >
  5597. <img
  5598. src="../../../assets/icon/secondToolList/whiteBoard.png"
  5599. alt
  5600. />
  5601. <div style="margin: 5px 0">电子白板</div>
  5602. </div>
  5603. <div
  5604. class="check"
  5605. @click="addTools(1, itemTaskIndex, toolIndex)"
  5606. >
  5607. <img
  5608. src="../../../assets/icon/checkNo.png"
  5609. alt
  5610. v-if="itemTool.tool.indexOf(1) == -1"
  5611. />
  5612. <div class="checkDiv" v-else>
  5613. <img
  5614. src="../../../assets/icon/checkedIs.png"
  5615. alt
  5616. /><span>已选择</span>
  5617. </div>
  5618. </div>
  5619. </div>
  5620. <div class="tool">
  5621. <div
  5622. class="whiteBIcon"
  5623. @click="openTools(itemTaskIndex, 52, toolIndex)"
  5624. >
  5625. <img
  5626. src="../../../assets/icon/fourthToolList/text.png"
  5627. alt
  5628. />
  5629. <div style="margin: 5px 0">文档</div>
  5630. </div>
  5631. <div
  5632. class="check"
  5633. @click="addTools(52, itemTaskIndex, toolIndex)"
  5634. >
  5635. <img
  5636. src="../../../assets/icon/checkNo.png"
  5637. alt
  5638. v-if="itemTool.tool.indexOf(52) == -1"
  5639. />
  5640. <div class="checkDiv" v-else>
  5641. <img
  5642. src="../../../assets/icon/checkedIs.png"
  5643. alt
  5644. /><span>已选择</span>
  5645. </div>
  5646. </div>
  5647. </div>
  5648. <div class="tool">
  5649. <div
  5650. class="whiteBIcon"
  5651. @click="openTools(itemTaskIndex, 3, toolIndex)"
  5652. >
  5653. <img
  5654. src="../../../assets/icon/secondToolList/mindMapping.png"
  5655. alt
  5656. />
  5657. <div style="margin: 5px 0">思维导图</div>
  5658. </div>
  5659. <div
  5660. class="check"
  5661. @click="addTools(3, itemTaskIndex, toolIndex)"
  5662. >
  5663. <img
  5664. src="../../../assets/icon/checkNo.png"
  5665. alt
  5666. v-if="itemTool.tool.indexOf(3) == -1"
  5667. />
  5668. <div class="checkDiv" v-else>
  5669. <img
  5670. src="../../../assets/icon/checkedIs.png"
  5671. alt
  5672. /><span>已选择</span>
  5673. </div>
  5674. </div>
  5675. </div>
  5676. <div class="tool">
  5677. <div
  5678. class="whiteBIcon"
  5679. @click="openTools(itemTaskIndex, 4, toolIndex)"
  5680. >
  5681. <img
  5682. src="../../../assets/icon/thirdToolList/ask.png"
  5683. alt
  5684. />
  5685. <div style="margin: 5px 0">问卷调查</div>
  5686. </div>
  5687. <div
  5688. class="check"
  5689. @click="addTools(4, itemTaskIndex, toolIndex)"
  5690. >
  5691. <img
  5692. src="../../../assets/icon/checkNo.png"
  5693. alt
  5694. v-if="itemTool.tool.indexOf(4) == -1"
  5695. />
  5696. <div class="checkDiv" v-else>
  5697. <img
  5698. src="../../../assets/icon/checkedIs.png"
  5699. alt
  5700. /><span>已选择</span>
  5701. </div>
  5702. </div>
  5703. </div>
  5704. <div class="tool">
  5705. <div
  5706. class="whiteBIcon"
  5707. @click="openTools(itemTaskIndex, 45, toolIndex)"
  5708. >
  5709. <img
  5710. src="../../../assets/icon/thirdToolList/choose.png"
  5711. alt
  5712. />
  5713. <div style="margin: 5px 0">选择题</div>
  5714. </div>
  5715. <div
  5716. class="check"
  5717. @click="addTools(45, itemTaskIndex, toolIndex)"
  5718. >
  5719. <img
  5720. src="../../../assets/icon/checkNo.png"
  5721. alt
  5722. v-if="itemTool.tool.indexOf(45) == -1"
  5723. />
  5724. <div class="checkDiv" v-else>
  5725. <img
  5726. src="../../../assets/icon/checkedIs.png"
  5727. alt
  5728. /><span>已选择</span>
  5729. </div>
  5730. </div>
  5731. </div>
  5732. <div class="tool">
  5733. <div
  5734. class="whiteBIcon"
  5735. @click="openTools(itemTaskIndex, 15, toolIndex)"
  5736. >
  5737. <img
  5738. src="../../../assets/icon/thirdToolList/answer.png"
  5739. alt
  5740. />
  5741. <div style="margin: 5px 0">问答</div>
  5742. </div>
  5743. <div
  5744. class="check"
  5745. @click="addTools(15, itemTaskIndex, toolIndex)"
  5746. >
  5747. <img
  5748. src="../../../assets/icon/checkNo.png"
  5749. alt
  5750. v-if="itemTool.tool.indexOf(15) == -1"
  5751. />
  5752. <div class="checkDiv" v-else>
  5753. <img
  5754. src="../../../assets/icon/checkedIs.png"
  5755. alt
  5756. /><span>已选择</span>
  5757. </div>
  5758. </div>
  5759. </div>
  5760. <div class="tool">
  5761. <div
  5762. class="whiteBIcon"
  5763. @click="addTools(16, itemTaskIndex, toolIndex)"
  5764. >
  5765. <img
  5766. src="../../../assets/icon/thirdToolList/work.png"
  5767. alt
  5768. />
  5769. <div style="margin: 5px 0">作业提交</div>
  5770. </div>
  5771. <div
  5772. class="check"
  5773. @click="addTools(16, itemTaskIndex, toolIndex)"
  5774. >
  5775. <img
  5776. src="../../../assets/icon/checkNo.png"
  5777. alt
  5778. v-if="itemTool.tool.indexOf(16) == -1"
  5779. />
  5780. <div class="checkDiv" v-else>
  5781. <img
  5782. src="../../../assets/icon/checkedIs.png"
  5783. alt
  5784. /><span>已选择</span>
  5785. </div>
  5786. </div>
  5787. </div>
  5788. <div class="tool">
  5789. <div
  5790. class="whiteBIcon"
  5791. @click="openTools(itemTaskIndex, 50, toolIndex)"
  5792. >
  5793. <img
  5794. src="../../../assets/icon/thirdToolList/plwork.png"
  5795. alt
  5796. />
  5797. <div style="margin: 5px 0">批量上传</div>
  5798. </div>
  5799. <div
  5800. class="check"
  5801. @click="addTools(50, itemTaskIndex, toolIndex)"
  5802. >
  5803. <img
  5804. src="../../../assets/icon/checkNo.png"
  5805. alt
  5806. v-if="itemTool.tool.indexOf(50) == -1"
  5807. />
  5808. <div class="checkDiv" v-else>
  5809. <img
  5810. src="../../../assets/icon/checkedIs.png"
  5811. alt
  5812. /><span>已选择</span>
  5813. </div>
  5814. </div>
  5815. </div>
  5816. <div class="tool">
  5817. <div
  5818. class="whiteBIcon"
  5819. @click="openTools(itemTaskIndex, 41, toolIndex)"
  5820. >
  5821. <img
  5822. src="../../../assets/icon/thirdToolList/select.png"
  5823. alt
  5824. />
  5825. <div style="margin: 5px 0">选择匹配</div>
  5826. </div>
  5827. <div
  5828. class="check"
  5829. @click="addTools(41, itemTaskIndex, toolIndex)"
  5830. >
  5831. <img
  5832. src="../../../assets/icon/checkNo.png"
  5833. alt
  5834. v-if="itemTool.tool.indexOf(41) == -1"
  5835. />
  5836. <div class="checkDiv" v-else>
  5837. <img
  5838. src="../../../assets/icon/checkedIs.png"
  5839. alt
  5840. /><span>已选择</span>
  5841. </div>
  5842. </div>
  5843. </div>
  5844. <div class="tool">
  5845. <div
  5846. class="whiteBIcon"
  5847. @click="openTools(itemTaskIndex, 47, toolIndex)"
  5848. >
  5849. <img
  5850. src="../../../assets/icon/fourthToolList/conSentences.png"
  5851. alt
  5852. />
  5853. <div style="margin: 5px 0">排序</div>
  5854. </div>
  5855. <div
  5856. class="check"
  5857. @click="addTools(47, itemTaskIndex, toolIndex)"
  5858. >
  5859. <img
  5860. src="../../../assets/icon/checkNo.png"
  5861. alt
  5862. v-if="itemTool.tool.indexOf(47) == -1"
  5863. />
  5864. <div class="checkDiv" v-else>
  5865. <img
  5866. src="../../../assets/icon/checkedIs.png"
  5867. alt
  5868. /><span>已选择</span>
  5869. </div>
  5870. </div>
  5871. </div>
  5872. <div class="tool">
  5873. <div
  5874. class="whiteBIcon"
  5875. @click="openTools(itemTaskIndex, 48, toolIndex)"
  5876. >
  5877. <img
  5878. src="../../../assets/icon/fourthToolList/table.png"
  5879. alt
  5880. />
  5881. <div style="margin: 5px 0">表格</div>
  5882. </div>
  5883. <div
  5884. class="check"
  5885. @click="addTools(48, itemTaskIndex, toolIndex)"
  5886. >
  5887. <img
  5888. src="../../../assets/icon/checkNo.png"
  5889. alt
  5890. v-if="itemTool.tool.indexOf(48) == -1"
  5891. />
  5892. <div class="checkDiv" v-else>
  5893. <img
  5894. src="../../../assets/icon/checkedIs.png"
  5895. alt
  5896. /><span>已选择</span>
  5897. </div>
  5898. </div>
  5899. </div>
  5900. </div>
  5901. </div>
  5902. </div>
  5903. <div
  5904. class="addToolFun"
  5905. style="margin-bottom: 20px"
  5906. @click="addToolFun(itemTaskIndex)"
  5907. >
  5908. <div class="addToolImg">
  5909. <img src="../../../assets/icon/add.png" alt />
  5910. </div>
  5911. <div>添加工具</div>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. <div
  5916. v-else-if="
  5917. unitJson[unitIndex].easy == 1 ||
  5918. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  5919. "
  5920. class="toolChoose"
  5921. style="padding: 0 0 0 30px"
  5922. >
  5923. <div class="tools">
  5924. <div
  5925. class="leftTools"
  5926. style="
  5927. width: 95%;
  5928. padding: 0 0 15px 0;
  5929. margin-bottom: 15px;
  5930. "
  5931. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  5932. :key="toolIndex"
  5933. >
  5934. <div style="min-height: 163px">
  5935. <div class="toolSort">
  5936. <div class="tool">
  5937. <div
  5938. class="whiteBIcon"
  5939. @click="openTools(itemTaskIndex, 50, toolIndex)"
  5940. >
  5941. <img
  5942. src="../../../assets/icon/thirdToolList/plwork.png"
  5943. alt
  5944. />
  5945. <div style="margin: 5px 0">批量上传</div>
  5946. </div>
  5947. <div
  5948. class="check"
  5949. @click="addTools(50, itemTaskIndex, toolIndex)"
  5950. >
  5951. <img
  5952. src="../../../assets/icon/checkNo.png"
  5953. alt
  5954. v-if="itemTool.tool.indexOf(50) == -1"
  5955. />
  5956. <div class="checkDiv" v-else>
  5957. <img
  5958. src="../../../assets/icon/checkedIs.png"
  5959. alt
  5960. /><span>已选择</span>
  5961. </div>
  5962. </div>
  5963. </div>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. </div>
  5968. </div>
  5969. <div
  5970. class="elist_css"
  5971. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  5972. >
  5973. <div class="elist_title">
  5974. <div
  5975. style="
  5976. display: flex;
  5977. flex-direction: row;
  5978. align-items: center;
  5979. margin-bottom: 20px;
  5980. "
  5981. >
  5982. <div class="lineTitle">评价设置</div>
  5983. </div>
  5984. </div>
  5985. <div class="mbCss">
  5986. <div class="pjCss">
  5987. <div
  5988. v-if="itemTask.eList && itemTask.eList.length"
  5989. class="elist_input"
  5990. >
  5991. <div
  5992. v-for="(eItem, eIndex) in itemTask.eList"
  5993. :key="eIndex"
  5994. class="elist_input_box"
  5995. >
  5996. <span>评价名称:</span>
  5997. <input
  5998. type="input"
  5999. v-model="itemTask.eList[eIndex].value"
  6000. placeholder="填写评价名称"
  6001. />
  6002. <span>评星等级:</span>
  6003. <el-rate
  6004. v-model="itemTask.eList[eIndex].score"
  6005. @change="setEListStar()"
  6006. disabled
  6007. ></el-rate>
  6008. <div
  6009. class="remove"
  6010. @click="
  6011. deletEList(unitIndex, itemTaskIndex, eIndex)
  6012. "
  6013. ></div>
  6014. <div class="elist_inptu_text">
  6015. <span>评价描述:</span>
  6016. <input
  6017. type="input"
  6018. v-model="itemTask.eList[eIndex].detail"
  6019. placeholder="填写评价描述"
  6020. />
  6021. </div>
  6022. <div class="elist_inptu_text" v-if="evalua">
  6023. <span>目标:</span>
  6024. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  6025. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  6026. @change="forceUpdate()">
  6027. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  6028. :value="e.name">
  6029. </el-option>
  6030. </el-select> -->
  6031. <el-cascader
  6032. :options="targetArray"
  6033. v-model="itemTask.eList[eIndex].target"
  6034. :props="{ checkStrictly: true }"
  6035. :show-all-levels="false"
  6036. clearable
  6037. ></el-cascader>
  6038. </div>
  6039. </div>
  6040. </div>
  6041. <div
  6042. class="addToolFun"
  6043. @click="addEList(unitIndex, itemTaskIndex)"
  6044. style="margin: 35px 35px 0 0"
  6045. >
  6046. <div class="addToolImg">
  6047. <img src="../../../assets/icon/add.png" alt />
  6048. </div>
  6049. <div>添加</div>
  6050. </div>
  6051. </div>
  6052. <div
  6053. v-if="evalua"
  6054. style="
  6055. border: 1px solid #e5e5e5;
  6056. width: 55%;
  6057. margin-top: 20px;
  6058. box-shadow: 3px 1px 15px 3px #e0e0e0;
  6059. "
  6060. class="evaCss"
  6061. >
  6062. <div class="e_add_top">
  6063. <div class="e_add_title">
  6064. <span>当前使用目标管理</span>
  6065. <span>{{ eTitle }}</span>
  6066. <img
  6067. src="../../../assets/line.png"
  6068. class="cru_line"
  6069. style="
  6070. width: 125px;
  6071. height: 20px;
  6072. bottom: -10px;
  6073. left: 155px;
  6074. "
  6075. />
  6076. </div>
  6077. </div>
  6078. <div class="e_add_content" style="width: 100%">
  6079. <div class="e_add_list_pbox" style="width: 100%">
  6080. <div class="e_add_list_pbox_title">
  6081. <span class="type_title">切换模式</span>
  6082. <div class="type_content">
  6083. <span
  6084. :class="{ active: typeMode == 1 }"
  6085. @click="OtherMb(1)"
  6086. >目标树</span
  6087. >
  6088. <span
  6089. :class="{ active: typeMode == 2 }"
  6090. @click="OtherMb(2)"
  6091. >目标罗盘</span
  6092. >
  6093. <span
  6094. :class="{ active: typeMode == 3 }"
  6095. @click="OtherMb(3)"
  6096. >目标看板</span
  6097. >
  6098. </div>
  6099. </div>
  6100. <div class="e_add_list_pbox_content">
  6101. <Mind
  6102. :showBar="false"
  6103. :mindData="data"
  6104. style="width: 100%"
  6105. :jsmindId="
  6106. unitIndex + '-' + itemTaskIndex + 'mind'
  6107. "
  6108. v-if="typeMode == 1"
  6109. ></Mind>
  6110. <Sunburst
  6111. :Josn="eJson"
  6112. :num="eJSONNum"
  6113. style="width: 100%"
  6114. v-if="typeMode == 2"
  6115. >
  6116. </Sunburst>
  6117. <SeeBoard
  6118. :Josn="eJson"
  6119. :num="eJSONNum"
  6120. :ename="eTitle"
  6121. style="width: 100%"
  6122. v-if="typeMode == 3"
  6123. ></SeeBoard>
  6124. </div>
  6125. </div>
  6126. </div>
  6127. </div>
  6128. </div>
  6129. </div>
  6130. <div class="funBlock" style="padding: 0">
  6131. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  6132. <div>折叠</div>
  6133. <div class="arrow">
  6134. <img src="../../../assets/icon/fold.png" alt />
  6135. </div>
  6136. </div>
  6137. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  6138. <div>展开</div>
  6139. <div class="arrow">
  6140. <img src="../../../assets/icon/expand.png" alt />
  6141. </div>
  6142. </div>
  6143. </div>
  6144. </div>
  6145. <div
  6146. class="addTaskBorder"
  6147. @click="addTaskBorder"
  6148. v-if="!unitJson[unitIndex].easy"
  6149. >
  6150. <div>
  6151. <img src="../../../assets/icon/addHW.png" alt />
  6152. <span>添加任务</span>
  6153. </div>
  6154. </div>
  6155. </div>
  6156. </div>
  6157. </div>
  6158. <div class="rightBox" v-if="this.steps == 4">
  6159. <div class="basic_box_success">
  6160. <div class="right_img">
  6161. <img src="../../../assets/icon/right.png" alt />
  6162. </div>
  6163. <div style="font-weight: bold">成功</div>
  6164. <!-- <div>您的课程编号</div>
  6165. <div class="number">{{ number }}</div>-->
  6166. <!-- <div class="success_button">
  6167. <div class="look_course" @click="isNoFinsh">
  6168. 邀请老师协同编辑
  6169. </div>
  6170. <div class="attend_others" @click="goCourse">预览课程</div>
  6171. </div> -->
  6172. </div>
  6173. </div>
  6174. <div
  6175. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  6176. @mouseenter="btnDisplay(true)"
  6177. @mouseleave="btnDisplay(false)"
  6178. v-if="false"
  6179. >
  6180. <button
  6181. v-if="isBtnDisplay"
  6182. class="c_pub_button_return pub_btn_return_img"
  6183. @click="lastSteps"
  6184. >
  6185. 返回课程
  6186. </button>
  6187. <button
  6188. v-if="isBtnDisplay"
  6189. class="c_pub_button_confirm pub_btn_finish_img"
  6190. @click="nextSteps"
  6191. >
  6192. 确认上传
  6193. </button>
  6194. </div>
  6195. </div>
  6196. </div>
  6197. </div>
  6198. <el-dialog
  6199. title="提示"
  6200. :visible.sync="dialogVisible"
  6201. :append-to-body="true"
  6202. width="25%"
  6203. :before-close="handleClose"
  6204. class="dialog_diy2 customWidth"
  6205. >
  6206. <div>请复制该链接邀请协同编辑</div>
  6207. <div>http://www.boomyon.com/index-zhang.com</div>
  6208. <span slot="footer" class="dialog-footer">
  6209. <el-button type="primary">复制链接分享</el-button>
  6210. <el-button @click="dialogVisible = false">取消</el-button>
  6211. </span>
  6212. </el-dialog>
  6213. <el-dialog
  6214. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  6215. :visible.sync="dialogVisible1"
  6216. :append-to-body="true"
  6217. width="25%"
  6218. :before-close="handleClose"
  6219. class="dialog_diy2 customWidth"
  6220. >
  6221. <el-form>
  6222. <el-form-item label="文档标题">
  6223. <el-input
  6224. v-model="tTitle"
  6225. auto-complete="off"
  6226. placeholder="请输入文档标题名..."
  6227. ></el-input>
  6228. </el-form-item>
  6229. <div>文档简介</div>
  6230. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  6231. </el-form>
  6232. <span slot="footer" class="dialog-footer">
  6233. <el-button @click="dialogVisible1 = false">取 消</el-button>
  6234. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  6235. >添加</el-button
  6236. >
  6237. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  6238. </span>
  6239. </el-dialog>
  6240. <el-dialog
  6241. title="添加文档"
  6242. :visible.sync="dialogVisible2"
  6243. :append-to-body="true"
  6244. width="500px"
  6245. :before-close="handleClose"
  6246. class="dialog_diy"
  6247. >
  6248. <el-form>
  6249. <el-form-item label="文档标题">
  6250. <el-input
  6251. v-model="templateC.title"
  6252. auto-complete="off"
  6253. placeholder="请输入文档标题名..."
  6254. ></el-input>
  6255. </el-form-item>
  6256. <div>文档内容</div>
  6257. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  6258. </el-form>
  6259. <span slot="footer" class="dialog-footer">
  6260. <el-button @click="clearChoose">取 消</el-button>
  6261. <el-button type="primary" @click="wordNext()">确定</el-button>
  6262. </span>
  6263. </el-dialog>
  6264. <el-dialog
  6265. title="添加富文本"
  6266. :visible.sync="dialogVisible6"
  6267. :append-to-body="true"
  6268. width="500px"
  6269. :before-close="handleClose"
  6270. class="dialog_diy"
  6271. >
  6272. <el-form>
  6273. <el-form-item label="文本标题">
  6274. <el-input
  6275. ref="fuInput"
  6276. v-model="AttText.title"
  6277. auto-complete="off"
  6278. @input="change2"
  6279. placeholder="请输入文本标题..."
  6280. ></el-input>
  6281. </el-form-item>
  6282. <!-- <div>富文本内容</div> -->
  6283. <editor-bar
  6284. v-model="AttText.text"
  6285. @change="change"
  6286. v-if="dialogVisible6"
  6287. ></editor-bar>
  6288. </el-form>
  6289. <span slot="footer" class="dialog-footer">
  6290. <el-button @click="clearAttText">取 消</el-button>
  6291. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  6292. </span>
  6293. </el-dialog>
  6294. <el-dialog
  6295. title="添加链接"
  6296. :visible.sync="dialogVisible7"
  6297. :append-to-body="true"
  6298. width="500px"
  6299. :before-close="handleClose"
  6300. class="dialog_diy lineCss"
  6301. >
  6302. <el-form>
  6303. <el-form-item label="标题" :label-width="formLabelWidth">
  6304. <span>
  6305. <el-input
  6306. placeholder="请输入链接标题"
  6307. clearable
  6308. v-model="lineTitle"
  6309. class="add_input"
  6310. ></el-input>
  6311. </span>
  6312. </el-form-item>
  6313. <el-form-item label="链接" :label-width="formLabelWidth">
  6314. <span>
  6315. <el-input
  6316. placeholder="请输入链接"
  6317. clearable
  6318. v-model="line"
  6319. class="add_input"
  6320. ></el-input>
  6321. </span>
  6322. </el-form-item>
  6323. </el-form>
  6324. <span slot="footer" class="dialog-footer">
  6325. <el-button @click="clearLine">取 消</el-button>
  6326. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  6327. </span>
  6328. </el-dialog>
  6329. <el-dialog
  6330. :title="updateSourcePan ? '修改资源' : '添加资源'"
  6331. :visible.sync="dialogVisibleSource"
  6332. :append-to-body="true"
  6333. width="100%"
  6334. :before-close="handleClose"
  6335. class="dialog_diy source_diy"
  6336. >
  6337. <div>
  6338. <sourceDialog
  6339. :sourceData.sync="sourceData"
  6340. :updateSourcePan="updateSourcePan"
  6341. ></sourceDialog>
  6342. </div>
  6343. <span slot="footer" class="dialog-footer">
  6344. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  6345. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  6346. >确定</el-button
  6347. >
  6348. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  6349. </span>
  6350. </el-dialog>
  6351. <el-dialog
  6352. title="添加课程成员"
  6353. :visible.sync="dialogVisible3"
  6354. :append-to-body="true"
  6355. width="25%"
  6356. height="80%"
  6357. :before-close="handleClose"
  6358. class="addNewPP customWidth"
  6359. >
  6360. <div class="people">
  6361. <div class="people_top">
  6362. <div class="people_nav">选择成员</div>
  6363. <div class="people_top_right">
  6364. <div class="people_search">
  6365. <el-input
  6366. style="height: 100%"
  6367. placeholder="搜索成员名称"
  6368. v-model="searchPeople"
  6369. ></el-input>
  6370. <div class="search_img" @click="searchStudent">
  6371. <img src="../../../assets/icon/search.png" alt />
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. <el-checkbox-group v-model="checkboxList" class="people_name">
  6377. <el-checkbox
  6378. v-for="item in studentJuri"
  6379. :key="item.userid"
  6380. :label="item.userid"
  6381. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  6382. >
  6383. </el-checkbox-group>
  6384. </div>
  6385. <span slot="footer" class="dialog-footer">
  6386. <el-button @click="dialogVisible3 = false">取 消</el-button>
  6387. <el-button type="primary" @click="isAddPP">确定</el-button>
  6388. </span>
  6389. </el-dialog>
  6390. <el-dialog
  6391. title="选择授课班级"
  6392. :visible.sync="dialogVisibleClass"
  6393. :append-to-body="true"
  6394. width="600px"
  6395. height="80%"
  6396. :before-close="handleClose"
  6397. class="addNewPP2"
  6398. >
  6399. <div class="check_classBox">
  6400. <div class="check_class_right">
  6401. <div
  6402. class="check_class"
  6403. :class="{ activeX: gradeId == '' }"
  6404. @click="(gradeId = ''), getClass()"
  6405. >
  6406. 全部
  6407. </div>
  6408. <el-tooltip
  6409. placement="top"
  6410. :content="item.name"
  6411. v-for="(item, index) in gradeList"
  6412. :key="index"
  6413. >
  6414. <div
  6415. class="check_class"
  6416. :class="{ activeX: gradeId == item.id }"
  6417. @click="(gradeId = item.id), getClass()"
  6418. >
  6419. {{ item.name }}
  6420. </div>
  6421. </el-tooltip>
  6422. </div>
  6423. <div class="check_class_left">
  6424. <div class="check_class_all_box">
  6425. <div class="check_class_left_title">选择班级</div>
  6426. <div style="display: flex; align-items: center; margin-left: auto">
  6427. <el-checkbox
  6428. v-model="checkAll"
  6429. @change="handleCheckAllChange"
  6430. class="all_check"
  6431. >全选</el-checkbox
  6432. >
  6433. </div>
  6434. </div>
  6435. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  6436. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  6437. </div> -->
  6438. <el-checkbox-group
  6439. v-model="checkboxList2"
  6440. class="check_class_item"
  6441. @change="InviteChange"
  6442. v-if="grade2.length"
  6443. >
  6444. <div v-for="item in grade2" :key="item.id" class="class_item">
  6445. <el-checkbox :label="item.id">
  6446. {{ item.name }}
  6447. </el-checkbox>
  6448. </div>
  6449. </el-checkbox-group>
  6450. <div v-if="!grade2.length">暂无数据</div>
  6451. </div>
  6452. </div>
  6453. <span slot="footer" class="dialog-footer">
  6454. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  6455. <el-button type="primary" @click="isAddClass">确定</el-button>
  6456. </span>
  6457. </el-dialog>
  6458. <el-dialog
  6459. title="添加协同成员"
  6460. :visible.sync="dialogVisibleMember"
  6461. :append-to-body="true"
  6462. width="25%"
  6463. height="80%"
  6464. :before-close="handleClose"
  6465. class="addNewPP customWidth"
  6466. >
  6467. <div class="people">
  6468. <div class="people_top">
  6469. <div class="people_top_right">
  6470. <div class="people_search">
  6471. <el-input
  6472. placeholder="搜索成员名称"
  6473. v-model="searchTN"
  6474. @keyup.enter.native="getTeacher"
  6475. ></el-input>
  6476. <div class="search_img" @click="getTeacher">
  6477. <img src="../../../assets/icon/search.png" alt />
  6478. </div>
  6479. </div>
  6480. </div>
  6481. <div class="people_nav">选择成员</div>
  6482. </div>
  6483. <el-checkbox-group
  6484. v-model="checkboxList3"
  6485. class="people_name"
  6486. v-if="teacherJuri.length"
  6487. >
  6488. <el-checkbox
  6489. v-for="item in teacherJuri"
  6490. :key="item.userid"
  6491. :label="item.userid"
  6492. >
  6493. <div class="t_j_box">
  6494. <el-tooltip
  6495. placement="top"
  6496. :content="item.name ? item.name : '暂无姓名'"
  6497. >
  6498. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  6499. </el-tooltip>
  6500. <el-tooltip placement="top" :content="item.username">
  6501. <span>{{ item.username }}</span>
  6502. </el-tooltip>
  6503. <el-tooltip placement="top" :content="item.school">
  6504. <span>{{ item.school }}</span>
  6505. </el-tooltip>
  6506. </div>
  6507. </el-checkbox>
  6508. </el-checkbox-group>
  6509. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  6510. </div>
  6511. <span slot="footer" class="dialog-footer">
  6512. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  6513. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  6514. </span>
  6515. </el-dialog>
  6516. <el-dialog
  6517. title="创建问卷"
  6518. :visible.sync="dialogVisible5"
  6519. :append-to-body="true"
  6520. width="800px"
  6521. :before-close="
  6522. (done) => {
  6523. closePan(4);
  6524. }
  6525. "
  6526. class="dialog_diy fullStyle"
  6527. >
  6528. <div style="height: 100%">
  6529. <div
  6530. class="a_add_title"
  6531. style="
  6532. display: flex;
  6533. flex-direction: row;
  6534. align-items: center;
  6535. justify-content: center;
  6536. "
  6537. >
  6538. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  6539. <el-input
  6540. v-model="askJson.askTitle"
  6541. placeholder="请输入标题"
  6542. style="width: 400px"
  6543. ></el-input>
  6544. </div>
  6545. <div class="a_addBox" style="height: calc(100% - 50px)">
  6546. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  6547. <div
  6548. class="a_add_box"
  6549. v-for="(item1, index1) in askJson.askCount"
  6550. :key="index1"
  6551. >
  6552. <div class="a_add_checkType">
  6553. <span
  6554. :class="{
  6555. active:
  6556. askJson.askJson[index1].type == '1' ||
  6557. !askJson.askJson[index1].type,
  6558. }"
  6559. @click="checkAskType('1', askJson.askJson[index1])"
  6560. >单选题</span
  6561. >
  6562. <span
  6563. :class="{ active: askJson.askJson[index1].type == '2' }"
  6564. @click="checkAskType('2', askJson.askJson[index1])"
  6565. >多选题</span
  6566. >
  6567. </div>
  6568. <div class="a_add_head">
  6569. <div
  6570. style="
  6571. display: flex;
  6572. align-items: center;
  6573. width: 100%;
  6574. margin-right: 20px;
  6575. "
  6576. >
  6577. <span style="min-width: fit-content">{{
  6578. index1 + 1 + "、"
  6579. }}</span>
  6580. <textarea
  6581. class="a_add_head_input textarea_css"
  6582. v-autoHeight="40"
  6583. v-model="askJson.askJson[index1].askstitle"
  6584. placeholder="请输入题目"
  6585. @change="
  6586. () => {
  6587. $forceUpdate();
  6588. }
  6589. "
  6590. ></textarea>
  6591. </div>
  6592. <div
  6593. class="moveBtn moveBtn2"
  6594. style="margin: 0 20px 0 0px"
  6595. v-if="askJson.askCount != 1"
  6596. >
  6597. <div
  6598. class="chapter_upload_up"
  6599. @click.stop="askMove(1, index1)"
  6600. ></div>
  6601. <div
  6602. class="chapter_upload_down"
  6603. @click.stop="askMove(2, index1)"
  6604. ></div>
  6605. </div>
  6606. <div class="a_add_head_div">
  6607. <el-button
  6608. type="primary"
  6609. size="small"
  6610. @click="deleteAskList(index1)"
  6611. v-if="askJson.askCount != 1"
  6612. >删除
  6613. </el-button>
  6614. <el-button
  6615. type="primary"
  6616. size="small"
  6617. @click="addAskList(index1)"
  6618. >添加</el-button
  6619. >
  6620. </div>
  6621. </div>
  6622. <div class="a_add_body">
  6623. <div class="a_add_input" style="flex-direction: column">
  6624. <div
  6625. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  6626. :key="checkIndex"
  6627. style="
  6628. margin: 20px 10px 0 0;
  6629. display: flex;
  6630. align-items: center;
  6631. position: relative;
  6632. "
  6633. >
  6634. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  6635. <textarea
  6636. class="a_add_head_input textarea_css"
  6637. v-autoHeight="40"
  6638. v-model="askJson.askJson[index1].checkList[checkIndex]"
  6639. placeholder="请输入选项"
  6640. style="width: 300px"
  6641. @change="
  6642. () => {
  6643. $forceUpdate();
  6644. }
  6645. "
  6646. ></textarea>
  6647. <div
  6648. class="moveBtn moveBtn2"
  6649. style="margin: 0 0px 0 20px"
  6650. v-if="askJson.askJson[index1].askItem != 1"
  6651. >
  6652. <div
  6653. class="chapter_upload_up"
  6654. @click.stop="checkMove(1, index1, checkIndex)"
  6655. ></div>
  6656. <div
  6657. class="chapter_upload_down"
  6658. @click.stop="checkMove(2, index1, checkIndex)"
  6659. ></div>
  6660. </div>
  6661. <div class="a_add_body_div">
  6662. <el-button
  6663. type="primary"
  6664. size="small"
  6665. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  6666. >添加</el-button
  6667. >
  6668. <el-button
  6669. type="primary"
  6670. size="small"
  6671. @click="
  6672. deletecheckList(askJson.askJson[index1], checkIndex)
  6673. "
  6674. v-if="askJson.askJson[index1].askItem != 1"
  6675. >删除
  6676. </el-button>
  6677. </div>
  6678. </div>
  6679. </div>
  6680. <!-- <div class="a_add_body_div">
  6681. <el-button
  6682. style="margin: 10px 0px 0 0"
  6683. type="primary"
  6684. size="small"
  6685. @click="addcheckList(askJson.askJson[index1])"
  6686. >添加</el-button
  6687. >
  6688. <el-button
  6689. type="primary"
  6690. size="small"
  6691. style="margin: 10px 0 0 10px"
  6692. @click="deletecheckList(askJson.askJson[index1])"
  6693. v-if="askJson.askJson[index1].askItem != 1"
  6694. >删除
  6695. </el-button>
  6696. </div> -->
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. <span slot="footer" class="dialog-footer">
  6702. <el-button @click="closePan(4)">取 消</el-button>
  6703. <el-button type="primary" @click="addAsk">确 定</el-button>
  6704. </span>
  6705. </el-dialog>
  6706. <el-dialog
  6707. title="创建选择题"
  6708. :visible.sync="dialogVisibleChoice"
  6709. :append-to-body="true"
  6710. width="800px"
  6711. :before-close="
  6712. (done) => {
  6713. closePan(45);
  6714. }
  6715. "
  6716. class="dialog_diy fullStyle"
  6717. >
  6718. <div style="height: 100%">
  6719. <!-- <div class="a_add_title" style="
  6720. display: flex;
  6721. flex-direction: row;
  6722. align-items: center;
  6723. justify-content: center;
  6724. ">
  6725. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  6726. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  6727. </div> -->
  6728. <div class="a_addBox" style="height: 100%">
  6729. <div
  6730. style="
  6731. font-size: 16px;
  6732. color: #c7c7c7;
  6733. display: flex;
  6734. align-items: center;
  6735. "
  6736. >
  6737. <!-- 请输入题目内容 -->
  6738. <button
  6739. class="c_pub_button_add pub_btn_paste_img"
  6740. @click="pasteOption"
  6741. style="margin-left: 10px"
  6742. v-if="isPasteChoice"
  6743. >
  6744. 智能粘贴
  6745. </button>
  6746. </div>
  6747. <div
  6748. class="a_add_box"
  6749. v-for="(item1, index1) in testJson.testCount"
  6750. :key="index1"
  6751. >
  6752. <div class="a_add_checkType">
  6753. <span
  6754. :class="{ active: testJson.testJson[index1].type == '1' }"
  6755. @click="checkTestType('1', testJson.testJson[index1])"
  6756. >单选题</span
  6757. >
  6758. <span
  6759. :class="{ active: testJson.testJson[index1].type == '2' }"
  6760. @click="checkTestType('2', testJson.testJson[index1])"
  6761. >多选题</span
  6762. >
  6763. </div>
  6764. <div class="a_add_head">
  6765. <div class="timuUpImg">
  6766. <div style="display: flex; align-items: center">
  6767. <span style="min-width: fit-content">{{
  6768. index1 + 1 + "、"
  6769. }}</span>
  6770. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  6771. placeholder="请输入题目">
  6772. </el-input> -->
  6773. <textarea
  6774. class="a_add_head_input textarea_css"
  6775. v-autoHeight="40"
  6776. v-model="testJson.testJson[index1].teststitle"
  6777. placeholder="请输入题目"
  6778. @change="
  6779. () => {
  6780. $forceUpdate();
  6781. }
  6782. "
  6783. ></textarea>
  6784. </div>
  6785. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  6786. <div
  6787. class="chapter_upload_up"
  6788. @click.stop="testMove(1, index1)"
  6789. ></div>
  6790. <div
  6791. class="chapter_upload_down"
  6792. @click.stop="testMove(2, index1)"
  6793. ></div>
  6794. </div>
  6795. <div
  6796. class="xzUpImg"
  6797. @click.stop="addImg($event)"
  6798. style="margin-right: 10px"
  6799. >
  6800. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  6801. <input
  6802. type="file"
  6803. accept="image/*"
  6804. style="display: none"
  6805. @change="beforeUploadTiMu($event, index1)"
  6806. />
  6807. </div>
  6808. </div>
  6809. <div class="a_add_head_div">
  6810. <el-button
  6811. type="primary"
  6812. size="small"
  6813. @click="deleteTestList(index1)"
  6814. v-if="testJson.testCount != 1"
  6815. >删除
  6816. </el-button>
  6817. <el-button
  6818. type="primary"
  6819. size="small"
  6820. @click="addTestList(index1)"
  6821. >添加</el-button
  6822. >
  6823. </div>
  6824. </div>
  6825. <div
  6826. class="timuImgBox"
  6827. v-if="
  6828. testJson.testJson[index1].timuList &&
  6829. testJson.testJson[index1].timuList.length
  6830. "
  6831. >
  6832. <div
  6833. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  6834. :key="tIndex"
  6835. class="timuImg"
  6836. @click.stop="previewImg(timg.src)"
  6837. >
  6838. <img :src="timg.src" alt="" />
  6839. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  6840. <img src="../../../assets/icon/delete.png" alt="" />
  6841. </div>
  6842. </div>
  6843. </div>
  6844. <div class="a_add_body">
  6845. <div class="a_add_input a_add_input_choice">
  6846. <el-radio-group
  6847. v-model="testJson.testJson[index1].answer"
  6848. v-if="testJson.testJson[index1].type == 1"
  6849. @change="
  6850. () => {
  6851. $forceUpdate();
  6852. }
  6853. "
  6854. >
  6855. <div class="radioBox">
  6856. <el-radio
  6857. v-for="(item2, checkIndex) in testJson.testJson[index1]
  6858. .testItem"
  6859. :key="checkIndex"
  6860. :label="checkIndex"
  6861. >
  6862. <div style="margin-right: 10px">
  6863. 选项{{ checkIndex + 1 }}
  6864. </div>
  6865. <div
  6866. style="margin-right: 10px; width: 300px"
  6867. v-if="
  6868. testJson.testJson[index1].checkList[checkIndex] &&
  6869. testJson.testJson[index1].checkList[checkIndex]
  6870. .imgType &&
  6871. testJson.testJson[index1].checkList[checkIndex]
  6872. .imgType == 1
  6873. "
  6874. >
  6875. <div
  6876. class="inImg"
  6877. @click.stop="
  6878. previewImg(
  6879. testJson.testJson[index1].checkList[checkIndex]
  6880. .src
  6881. )
  6882. "
  6883. >
  6884. <el-image
  6885. :src="
  6886. testJson.testJson[index1].checkList[checkIndex]
  6887. .src
  6888. "
  6889. lazy
  6890. />
  6891. <!-- <img :src="
  6892. testJson.testJson[index1].checkList[checkIndex]
  6893. .src
  6894. " alt="" /> -->
  6895. </div>
  6896. </div>
  6897. <textarea
  6898. class="a_add_head_input textarea_css"
  6899. v-autoHeight="40"
  6900. v-else
  6901. v-model="
  6902. testJson.testJson[index1].checkList[checkIndex]
  6903. "
  6904. placeholder="请输入选项"
  6905. style="width: 300px; margin-right: 10px"
  6906. @change="
  6907. () => {
  6908. $forceUpdate();
  6909. }
  6910. "
  6911. ></textarea>
  6912. <div class="xzUpImg" @click.stop="addImg($event)">
  6913. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  6914. <input
  6915. type="file"
  6916. accept="image/*"
  6917. style="display: none"
  6918. @change="beforeUploadTi($event, index1, checkIndex)"
  6919. />
  6920. </div>
  6921. <div
  6922. class="moveBtn moveBtn2"
  6923. v-if="testJson.testJson[index1].testItem != 1"
  6924. >
  6925. <div
  6926. class="chapter_upload_up"
  6927. @click.stop="tcheckMove(1, index1, checkIndex)"
  6928. ></div>
  6929. <div
  6930. class="chapter_upload_down"
  6931. @click.stop="tcheckMove(2, index1, checkIndex)"
  6932. ></div>
  6933. </div>
  6934. <div class="a_add_body_div">
  6935. <el-button
  6936. type="primary"
  6937. size="small"
  6938. @click.stop="
  6939. addTcheckList(testJson.testJson[index1], checkIndex)
  6940. "
  6941. >添加</el-button
  6942. >
  6943. <el-button
  6944. type="primary"
  6945. size="small"
  6946. @click.stop="
  6947. deleteTcheckList(
  6948. testJson.testJson[index1],
  6949. checkIndex
  6950. )
  6951. "
  6952. v-if="testJson.testJson[index1].testItem != 1"
  6953. >删除
  6954. </el-button>
  6955. </div>
  6956. </el-radio>
  6957. </div>
  6958. </el-radio-group>
  6959. <el-checkbox-group
  6960. v-model="testJson.testJson[index1].answer"
  6961. v-if="testJson.testJson[index1].type == '2'"
  6962. @change="
  6963. () => {
  6964. $forceUpdate();
  6965. }
  6966. "
  6967. >
  6968. <div class="radioBox">
  6969. <el-checkbox
  6970. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  6971. .testItem"
  6972. :key="checkIndex1"
  6973. :label="checkIndex1"
  6974. >
  6975. <div style="margin-right: 10px">
  6976. 选项{{ checkIndex1 + 1 }}
  6977. </div>
  6978. <div
  6979. style="margin-right: 10px; width: 300px"
  6980. v-if="
  6981. testJson.testJson[index1].checkList[checkIndex1] &&
  6982. testJson.testJson[index1].checkList[checkIndex1]
  6983. .imgType &&
  6984. testJson.testJson[index1].checkList[checkIndex1]
  6985. .imgType == 1
  6986. "
  6987. >
  6988. <div
  6989. class="inImg"
  6990. @click.stop="
  6991. previewImg(
  6992. testJson.testJson[index1].checkList[checkIndex1]
  6993. .src
  6994. )
  6995. "
  6996. >
  6997. <el-image
  6998. :src="
  6999. testJson.testJson[index1].checkList[checkIndex1]
  7000. .src
  7001. "
  7002. lazy
  7003. />
  7004. <!-- <img :src="
  7005. testJson.testJson[index1].checkList[checkIndex1]
  7006. .src
  7007. " alt="" /> -->
  7008. </div>
  7009. </div>
  7010. <textarea
  7011. class="a_add_head_input textarea_css"
  7012. v-autoHeight="40"
  7013. v-else
  7014. v-model="
  7015. testJson.testJson[index1].checkList[checkIndex1]
  7016. "
  7017. placeholder="请输入选项"
  7018. style="width: 300px; margin-right: 10px"
  7019. @change="
  7020. () => {
  7021. $forceUpdate();
  7022. }
  7023. "
  7024. ></textarea>
  7025. <div class="xzUpImg" @click.stop="addImg($event)">
  7026. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  7027. <input
  7028. type="file"
  7029. accept="image/*"
  7030. style="display: none"
  7031. @change="beforeUploadTi($event, index1, checkIndex1)"
  7032. />
  7033. </div>
  7034. <div
  7035. class="moveBtn moveBtn2"
  7036. v-if="testJson.testJson[index1].testItem != 1"
  7037. >
  7038. <div
  7039. class="chapter_upload_up"
  7040. @click.stop="tcheckMove(1, index1, checkIndex1)"
  7041. ></div>
  7042. <div
  7043. class="chapter_upload_down"
  7044. @click.stop="tcheckMove(2, index1, checkIndex1)"
  7045. ></div>
  7046. </div>
  7047. <div class="a_add_body_div">
  7048. <el-button
  7049. type="primary"
  7050. size="small"
  7051. @click.stop="
  7052. addTcheckList(
  7053. testJson.testJson[index1],
  7054. checkIndex1
  7055. )
  7056. "
  7057. >添加</el-button
  7058. >
  7059. <el-button
  7060. type="primary"
  7061. size="small"
  7062. @click.stop="
  7063. deleteTcheckList(
  7064. testJson.testJson[index1],
  7065. checkIndex1
  7066. )
  7067. "
  7068. v-if="testJson.testJson[index1].testItem != 1"
  7069. >删除
  7070. </el-button>
  7071. </div>
  7072. </el-checkbox>
  7073. </div>
  7074. </el-checkbox-group>
  7075. </div>
  7076. <!-- <div class="a_add_body_div">
  7077. <el-button
  7078. type="primary"
  7079. size="small"
  7080. @click="addTcheckList(testJson.testJson[index1])"
  7081. >添加</el-button
  7082. >
  7083. <el-button
  7084. type="primary"
  7085. size="small"
  7086. @click="deleteTcheckList(testJson.testJson[index1])"
  7087. v-if="testJson.testJson[index1].testItem != 1"
  7088. >删除
  7089. </el-button>
  7090. </div> -->
  7091. </div>
  7092. </div>
  7093. </div>
  7094. </div>
  7095. <span slot="footer" class="dialog-footer">
  7096. <el-button @click="closePan(45)">取 消</el-button>
  7097. <el-button type="primary" @click="addTest">确 定</el-button>
  7098. </span>
  7099. </el-dialog>
  7100. <el-dialog
  7101. title="添加工具"
  7102. :visible.sync="dialogVisible4"
  7103. :append-to-body="true"
  7104. width="600px"
  7105. :before-close="handleClose"
  7106. class="dialog_diy addToolsDia"
  7107. >
  7108. <div class="toolChoose" style="padding: 0 0 0 30px">
  7109. <div class="tools">
  7110. <div
  7111. class="leftTools"
  7112. style="width: 95%; padding: 0 0 15px 0; margin: 15px 0"
  7113. v-for="(itemTools, itemToolsIndex) in chapTools"
  7114. :key="itemToolsIndex"
  7115. >
  7116. <div
  7117. style="
  7118. display: flex;
  7119. flex-direction: row;
  7120. align-items: baseline;
  7121. flex-wrap: nowrap;
  7122. justify-content: flex-start;
  7123. position: relative;
  7124. "
  7125. >
  7126. <div class="chooseWho">
  7127. <div
  7128. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  7129. @click="chapToolsType = 0"
  7130. >
  7131. 互动类
  7132. </div>
  7133. <div
  7134. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  7135. @click="chapToolsType = 1"
  7136. >
  7137. 思维类
  7138. </div>
  7139. <div
  7140. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  7141. @click="chapToolsType = 2"
  7142. >
  7143. 评价类
  7144. </div>
  7145. <div
  7146. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  7147. @click="chapToolsType = 2"
  7148. >
  7149. 其他
  7150. </div>
  7151. </div>
  7152. </div>
  7153. <div style="min-height: 163px">
  7154. <div class="toolSort" v-if="chapToolsType == 0">
  7155. <div class="tool">
  7156. <div class="whiteBIcon" @click="chapAddTools(8)">
  7157. <img
  7158. src="../../../assets/icon/secondToolList/library.png"
  7159. alt
  7160. />
  7161. <div style="margin: 5px 0">素材库</div>
  7162. </div>
  7163. <div class="check" @click="chapAddTools(8)">
  7164. <img
  7165. src="../../../assets/icon/checkNo.png"
  7166. alt
  7167. v-if="itemTools.tools.indexOf(8) == -1"
  7168. />
  7169. <div class="checkDiv" v-else>
  7170. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7171. >已选择</span
  7172. >
  7173. </div>
  7174. </div>
  7175. </div>
  7176. </div>
  7177. <div class="toolSort" v-if="chapToolsType == 1">
  7178. <div class="tool">
  7179. <div class="whiteBIcon" @click="chapAddTools(7)">
  7180. <img
  7181. src="../../../assets/icon/secondToolList/mindNetwork.png"
  7182. alt
  7183. />
  7184. <div style="margin: 5px 0">思维网格</div>
  7185. </div>
  7186. <div class="check" @click="chapAddTools(7)">
  7187. <img
  7188. src="../../../assets/icon/checkNo.png"
  7189. alt
  7190. v-if="itemTools.tools.indexOf(7) == -1"
  7191. />
  7192. <div class="checkDiv" v-else>
  7193. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7194. >已选择</span
  7195. >
  7196. </div>
  7197. </div>
  7198. </div>
  7199. <div class="tool">
  7200. <div class="whiteBIcon" @click="chapAddTools(1)">
  7201. <img
  7202. src="../../../assets/icon/secondToolList/whiteBoard.png"
  7203. alt
  7204. />
  7205. <div style="margin: 5px 0">电子白板</div>
  7206. </div>
  7207. <div class="check" @click="chapAddTools(1)">
  7208. <img
  7209. src="../../../assets/icon/checkNo.png"
  7210. alt
  7211. v-if="itemTools.tools.indexOf(1) == -1"
  7212. />
  7213. <div class="checkDiv" v-else>
  7214. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7215. >已选择</span
  7216. >
  7217. </div>
  7218. </div>
  7219. </div>
  7220. <div class="tool">
  7221. <div class="whiteBIcon" @click="chapAddTools(2)">
  7222. <img
  7223. src="../../../assets/icon/secondToolList/note.png"
  7224. alt
  7225. />
  7226. <div style="margin: 5px 0">便签</div>
  7227. </div>
  7228. <div class="check" @click="chapAddTools(2)">
  7229. <img
  7230. src="../../../assets/icon/checkNo.png"
  7231. alt
  7232. v-if="itemTools.tools.indexOf(2) == -1"
  7233. />
  7234. <div class="checkDiv" v-else>
  7235. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7236. >已选择</span
  7237. >
  7238. </div>
  7239. </div>
  7240. </div>
  7241. <div class="tool">
  7242. <div class="whiteBIcon" @click="chapAddTools(6)">
  7243. <img
  7244. src="../../../assets/icon/secondToolList/doc.png"
  7245. alt
  7246. />
  7247. <div style="margin: 5px 0">协同文档</div>
  7248. </div>
  7249. <div class="check" @click="chapAddTools(6)">
  7250. <img
  7251. src="../../../assets/icon/checkNo.png"
  7252. alt
  7253. v-if="itemTools.tools.indexOf(6) == -1"
  7254. />
  7255. <div class="checkDiv" v-else>
  7256. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7257. >已选择</span
  7258. >
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div class="tool">
  7263. <div class="whiteBIcon" @click="chapAddTools(3)">
  7264. <img
  7265. src="../../../assets/icon/secondToolList/mindMapping.png"
  7266. alt
  7267. />
  7268. <div style="margin: 5px 0">思维导图</div>
  7269. </div>
  7270. <div class="check" @click="chapAddTools(3)">
  7271. <img
  7272. src="../../../assets/icon/checkNo.png"
  7273. alt
  7274. v-if="itemTools.tools.indexOf(3) == -1"
  7275. />
  7276. <div class="checkDiv" v-else>
  7277. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7278. >已选择</span
  7279. >
  7280. </div>
  7281. </div>
  7282. </div>
  7283. <div class="tool">
  7284. <div class="whiteBIcon" @click="chapAddTools(31)">
  7285. <img
  7286. src="../../../assets/icon/secondToolList/networkPanel.png"
  7287. alt
  7288. />
  7289. <div style="margin: 5px 0">数学画板</div>
  7290. </div>
  7291. <div class="check" @click="chapAddTools(31)">
  7292. <img
  7293. src="../../../assets/icon/checkNo.png"
  7294. alt
  7295. v-if="itemTools.tools.indexOf(31) == -1"
  7296. />
  7297. <div class="checkDiv" v-else>
  7298. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7299. >已选择</span
  7300. >
  7301. </div>
  7302. </div>
  7303. </div>
  7304. </div>
  7305. <div class="toolSort" v-if="chapToolsType == 2">
  7306. <div class="tool">
  7307. <div class="whiteBIcon" @click="chapAddTools(5)">
  7308. <img
  7309. src="../../../assets/icon/thirdToolList/score.png"
  7310. alt
  7311. />
  7312. <div style="margin: 5px 0">量规评分</div>
  7313. </div>
  7314. <div class="check" @click="chapAddTools(5)">
  7315. <img
  7316. src="../../../assets/icon/checkNo.png"
  7317. alt
  7318. v-if="itemTools.tools.indexOf(5) == -1"
  7319. />
  7320. <div class="checkDiv" v-else>
  7321. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7322. >已选择</span
  7323. >
  7324. </div>
  7325. </div>
  7326. </div>
  7327. <div class="tool">
  7328. <div
  7329. class="whiteBIcon"
  7330. @click="openTools(chapCount, 4, null)"
  7331. >
  7332. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  7333. <div style="margin: 5px 0">问卷调查</div>
  7334. </div>
  7335. <div class="check" @click="chapAddTools(4)">
  7336. <img
  7337. src="../../../assets/icon/checkNo.png"
  7338. alt
  7339. v-if="itemTools.tools.indexOf(4) == -1"
  7340. />
  7341. <div class="checkDiv" v-else>
  7342. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7343. >已选择</span
  7344. >
  7345. </div>
  7346. </div>
  7347. </div>
  7348. </div>
  7349. </div>
  7350. <div>
  7351. <input
  7352. type="text"
  7353. placeholder="添加工具描述"
  7354. class="binfo_input"
  7355. style="margin: 20px 0; width: 71.5% !important"
  7356. v-model="itemTools.toolDetail"
  7357. />
  7358. </div>
  7359. </div>
  7360. </div>
  7361. </div>
  7362. <span slot="footer" class="dialog-footer">
  7363. <el-button @click="dialogVisible4 = false">取 消</el-button>
  7364. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  7365. </span>
  7366. </el-dialog>
  7367. <el-dialog
  7368. title="添加问答"
  7369. :visible.sync="dialogVisible8"
  7370. :append-to-body="true"
  7371. width="500px"
  7372. :before-close="
  7373. (done) => {
  7374. closePan(15);
  7375. }
  7376. "
  7377. class="dialog_diy"
  7378. >
  7379. <div>
  7380. <div
  7381. class="a_add_title"
  7382. style="
  7383. display: flex;
  7384. flex-direction: column;
  7385. align-items: flex-start;
  7386. justify-content: center;
  7387. "
  7388. >
  7389. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  7390. <!-- <el-input
  7391. v-model="answerQ"
  7392. placeholder="请输入您要问的问题"
  7393. ></el-input> -->
  7394. <textarea
  7395. rows="1"
  7396. v-autoHeight="40"
  7397. type="text"
  7398. placeholder="请输入您要问的问题"
  7399. class="binfo_input"
  7400. style="width: 100% !important; border: 1px solid #dcdfe6"
  7401. v-model="answerQ"
  7402. ></textarea>
  7403. </div>
  7404. </div>
  7405. <span slot="footer" class="dialog-footer">
  7406. <el-button @click="closePan(15)">取 消</el-button>
  7407. <el-button type="primary" @click="addAnswer">确 定</el-button>
  7408. </span>
  7409. </el-dialog>
  7410. <el-dialog
  7411. title="添加问题"
  7412. :visible.sync="dialogVisibleMp3"
  7413. :append-to-body="true"
  7414. width="500px"
  7415. :before-close="handleClose"
  7416. class="dialog_diy"
  7417. >
  7418. <div>
  7419. <div
  7420. class="a_add_title"
  7421. style="
  7422. display: flex;
  7423. flex-direction: column;
  7424. align-items: flex-start;
  7425. justify-content: center;
  7426. "
  7427. >
  7428. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  7429. <el-input
  7430. v-model="answerQ"
  7431. placeholder="请输入您想要回答的问题"
  7432. ></el-input>
  7433. </div>
  7434. </div>
  7435. <span slot="footer" class="dialog-footer">
  7436. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  7437. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  7438. </span>
  7439. </el-dialog>
  7440. <el-dialog
  7441. title="上传图片"
  7442. :visible.sync="choosePicVisible"
  7443. :append-to-body="true"
  7444. width="600px"
  7445. :before-close="handleClose"
  7446. class="dialog_diy"
  7447. >
  7448. <div>
  7449. <div class="fileCss" style="padding-top: 20px">
  7450. <div>
  7451. <button class="info_btn" @click="addImg($event)">
  7452. 选择本地文件
  7453. <input
  7454. type="file"
  7455. accept="image/*"
  7456. style="display: none"
  7457. @change="beforeUpload1"
  7458. />
  7459. </button>
  7460. <div class="spanName">选择本地文件</div>
  7461. </div>
  7462. <!-- <div>
  7463. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  7464. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  7465. <img :src="cover[0].url" alt="" />
  7466. <div class="deletePic" @click="deleteSysPic">
  7467. <img src="../../../assets/icon/delete.png" alt="" />
  7468. </div>
  7469. </div>
  7470. <div class="spanName">选择系统文件</div>
  7471. </div> -->
  7472. <div>
  7473. <el-button
  7474. @click="(searchImageValue = courseName), resetImage()"
  7475. v-if="isSysPic2 == false"
  7476. >选择网络文件</el-button
  7477. >
  7478. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  7479. <img :src="cover[0].url" alt="" />
  7480. <div class="deletePic" @click="deleteSysPic">
  7481. <img src="../../../assets/icon/delete.png" alt="" />
  7482. </div>
  7483. </div>
  7484. <div class="spanName">选择网络文件</div>
  7485. </div>
  7486. </div>
  7487. <!-- <div class="fileCss">
  7488. <div>选择本地文件</div>
  7489. <div>选择系统文件</div>
  7490. </div> -->
  7491. </div>
  7492. <span slot="footer" class="dialog-footer">
  7493. <el-button @click="choosePicVisible = false">取 消</el-button>
  7494. <el-button type="primary" @click="choosePicVisible = false"
  7495. >确 定</el-button
  7496. >
  7497. </span>
  7498. </el-dialog>
  7499. <el-dialog
  7500. title="选择系统文件"
  7501. :visible.sync="sysPicVisible"
  7502. :append-to-body="true"
  7503. width="710px"
  7504. :before-close="handleClose"
  7505. class="dialog_diy"
  7506. >
  7507. <div class="cru_selectBox" style="margin: 0">
  7508. <div
  7509. @click="getChoosePic(1)"
  7510. class="cru_select"
  7511. :class="chooseType == 1 ? 'cru_selected' : ''"
  7512. >
  7513. 绘画
  7514. </div>
  7515. <div
  7516. @click="getChoosePic(2)"
  7517. class="cru_select"
  7518. :class="chooseType == 2 ? 'cru_selected' : ''"
  7519. >
  7520. 科技
  7521. </div>
  7522. <div
  7523. @click="getChoosePic(3)"
  7524. class="cru_select"
  7525. :class="chooseType == 3 ? 'cru_selected' : ''"
  7526. >
  7527. 人文
  7528. </div>
  7529. <div
  7530. @click="getChoosePic(4)"
  7531. class="cru_select"
  7532. :class="chooseType == 4 ? 'cru_selected' : ''"
  7533. >
  7534. 艺术
  7535. </div>
  7536. </div>
  7537. <div class="sysPicBox">
  7538. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  7539. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  7540. </div>
  7541. </div>
  7542. </el-dialog>
  7543. <el-dialog
  7544. title="选择网络文件"
  7545. :visible.sync="sysPicVisible2"
  7546. :append-to-body="true"
  7547. width="710px"
  7548. :before-close="handleClose"
  7549. class="dialog_diy"
  7550. >
  7551. <div>
  7552. <div
  7553. class="people_top_right"
  7554. style="display: flex; align-items: center"
  7555. >
  7556. <div style="position: relative; width: 100%">
  7557. <el-input
  7558. style="height: 100%"
  7559. placeholder="搜索图片关键字"
  7560. v-model="searchImageValue"
  7561. @keyup.enter.native="resetImage()"
  7562. ></el-input>
  7563. <div class="search_img" @click="resetImage" style="right: 10px">
  7564. <img src="../../../assets/icon/search.png" alt />
  7565. </div>
  7566. </div>
  7567. <el-button
  7568. type="primary"
  7569. size="default"
  7570. style="margin-left: 10px"
  7571. @click="changePicture"
  7572. >换一组</el-button
  7573. >
  7574. </div>
  7575. <div class="sysPicBox" v-loading="imageloading">
  7576. <div class="picNone" v-if="!imageList.length">
  7577. 请输入关键词搜索图片
  7578. </div>
  7579. <div
  7580. v-for="(sys, sysIndex) in imageList"
  7581. :key="sysIndex"
  7582. class="sysPic"
  7583. >
  7584. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  7585. </div>
  7586. </div>
  7587. </div>
  7588. </el-dialog>
  7589. <el-dialog
  7590. title="选择匹配"
  7591. :visible.sync="dialogVisibleSelect"
  7592. :append-to-body="true"
  7593. width="800px"
  7594. :before-close="
  7595. (done) => {
  7596. closePan(41);
  7597. }
  7598. "
  7599. class="dialog_diy dialog_diy3 fullStyle"
  7600. >
  7601. <div v-if="selectJson" style="height: 100%">
  7602. <div class="select_box1" v-if="selectSteps == 1">
  7603. <div class="select_box1_img">
  7604. <div class="select_box1_title">
  7605. <span>上传题目图片</span
  7606. ><span>提示:请将所有题目上传为一张图片。</span>
  7607. </div>
  7608. <div class="select_box1_add_img">
  7609. <div
  7610. class="uploadFm"
  7611. @click="addImg($event)"
  7612. v-if="!selectJson.url"
  7613. >
  7614. <input
  7615. type="file"
  7616. accept="image/*"
  7617. style="display: none"
  7618. @change="beforeUploadSelect"
  7619. />
  7620. <img src="../../../assets/icon/addPoster.png" alt="" />
  7621. </div>
  7622. <div class="isSysPic" v-else>
  7623. <img
  7624. :src="selectJson.url"
  7625. alt=""
  7626. @click="previewImg(selectJson.url)"
  7627. />
  7628. <div class="deletePic" @click="deleteSelectPic">
  7629. <img src="../../../assets/icon/delete.png" alt="" />
  7630. </div>
  7631. </div>
  7632. </div>
  7633. </div>
  7634. <div class="select_box1_select">
  7635. <div class="select_box1_title">
  7636. <span>添加选项</span
  7637. ><span
  7638. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  7639. >
  7640. </div>
  7641. <div class="select_box1_select_box">
  7642. <el-input
  7643. v-for="(item2, checkIndex) in selectJson.select"
  7644. :key="checkIndex"
  7645. v-model="selectJson.select[checkIndex]"
  7646. placeholder="请输入选项"
  7647. style="width: 150px; margin: 10px 10px 0 0"
  7648. ></el-input>
  7649. <div class="select_box1_select_box_add">
  7650. <el-button
  7651. style="margin: 10px 0px 0 0"
  7652. type="primary"
  7653. size="small"
  7654. @click="addSelectList(selectJson)"
  7655. >
  7656. 添加</el-button
  7657. >
  7658. <el-button
  7659. type="primary"
  7660. size="small"
  7661. style="margin: 10px 0 0 0"
  7662. @click="deleteSelectList(selectJson)"
  7663. v-if="selectJson.select && selectJson.select.length > 0"
  7664. >删除</el-button
  7665. >
  7666. </div>
  7667. </div>
  7668. </div>
  7669. </div>
  7670. <div v-if="selectSteps == 2" style="height: 100%">
  7671. <div class="select_box2">
  7672. <div class="select_box2_title">设置每道题目的正确选项</div>
  7673. <div class="select_box2_box">
  7674. <div class="select_box2_img">
  7675. <img
  7676. :src="selectJson.url"
  7677. alt=""
  7678. @click="previewImg(selectJson.url)"
  7679. />
  7680. </div>
  7681. <div class="select_box2_answer">
  7682. <div class="select_answer_title">根据题目选择对应答案</div>
  7683. <div
  7684. class="select_box2_answer_box"
  7685. v-for="(item2, checkIndex) in selectJson.select"
  7686. :key="checkIndex"
  7687. >
  7688. <span>{{ checkIndex + 1 }}、</span>
  7689. <el-select
  7690. v-model="selectJson.answer[checkIndex]"
  7691. placeholder="请选择正确答案"
  7692. >
  7693. <el-option
  7694. v-for="(e, eIndex) in selectJson.select"
  7695. :key="eIndex"
  7696. :label="e"
  7697. :value="eIndex"
  7698. >
  7699. </el-option>
  7700. </el-select>
  7701. </div>
  7702. </div>
  7703. </div>
  7704. </div>
  7705. </div>
  7706. </div>
  7707. <span slot="footer" class="dialog-footer">
  7708. <el-button
  7709. type="primary"
  7710. @click="nextSelectSteps()"
  7711. v-if="selectSteps == 1"
  7712. >下一步</el-button
  7713. >
  7714. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  7715. >上一步</el-button
  7716. >
  7717. <el-button
  7718. type="primary"
  7719. @click="addSelectAnswer"
  7720. v-if="selectSteps == 2"
  7721. >确 定</el-button
  7722. >
  7723. </span>
  7724. </el-dialog>
  7725. <el-dialog
  7726. title="添加评价"
  7727. :visible.sync="dialogVisibleRate"
  7728. :append-to-body="true"
  7729. width="650px"
  7730. :before-close="handleClose"
  7731. class="dialog_diy"
  7732. >
  7733. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  7734. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  7735. <div class="pjCss" style="width: 100%">
  7736. <div
  7737. v-if="rateJson.length"
  7738. class="elist_input"
  7739. style="height: 360px; overflow: auto"
  7740. >
  7741. <div
  7742. v-for="(eItem, eIndex) in rateJson"
  7743. :key="eIndex"
  7744. class="elist_input_box"
  7745. >
  7746. <span style="min-width: 100px; text-align: right"
  7747. >个人评价指标:</span
  7748. >
  7749. <input
  7750. type="input"
  7751. v-model="eItem.value"
  7752. placeholder="填写评价名称"
  7753. />
  7754. <div class="remove" @click="deletRateList(eIndex)"></div>
  7755. <div style="width: 100%; display: flex">
  7756. <span style="min-width: 100px; text-align: right"
  7757. >评星等级:</span
  7758. >
  7759. <el-rate v-model="eItem.score" disabled></el-rate>
  7760. </div>
  7761. <div class="elist_inptu_text" style="align-items: flex-start">
  7762. <span style="min-width: 100px; text-align: right">描述:</span>
  7763. <textarea
  7764. class="rate_textarea"
  7765. :rows="3"
  7766. v-model="eItem.detail"
  7767. placeholder="填写评价描述"
  7768. ></textarea>
  7769. </div>
  7770. </div>
  7771. </div>
  7772. <div class="addToolFun" @click="addRateList()">
  7773. <div class="addToolImg">
  7774. <img src="../../../assets/icon/add.png" alt />
  7775. </div>
  7776. <div>添加</div>
  7777. </div>
  7778. </div>
  7779. </div>
  7780. <span slot="footer" class="dialog-footer">
  7781. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  7782. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  7783. </span>
  7784. </el-dialog>
  7785. <el-dialog
  7786. title="排序设置"
  7787. :visible.sync="dialogVisibleSentence"
  7788. :append-to-body="true"
  7789. width="1000px"
  7790. :before-close="
  7791. (done) => {
  7792. closePan(47);
  7793. }
  7794. "
  7795. class="dialog_diy dialog_diy3 fullStyle"
  7796. >
  7797. <div style="height: 100%">
  7798. <div class="sentenBox" style="height: 100%">
  7799. <div class="addSen" @click="addSt">添加题目</div>
  7800. <div
  7801. v-for="(st, stIndex) in sentenceList"
  7802. :key="stIndex"
  7803. class="sentenContent"
  7804. >
  7805. <div class="sentenTopBox">
  7806. <div class="sentenTop" :index="stIndex + 1">
  7807. <div>题目设置</div>
  7808. <div>
  7809. <el-input
  7810. placeholder="请输入卡片内容"
  7811. v-model="st.sentenceTitle"
  7812. :maxlength="10"
  7813. ></el-input>
  7814. </div>
  7815. <div @click="addSen(stIndex)">添加</div>
  7816. <div
  7817. class="remove1"
  7818. v-if="sentenceList.length > 1"
  7819. @click="deleteSentence(stIndex)"
  7820. ></div>
  7821. </div>
  7822. </div>
  7823. <div class="cardList">
  7824. <div v-if="st.addSentence.length > 0" class="cardBox">
  7825. <div
  7826. class="isCard"
  7827. v-for="(s, sIndex) in st.addSentence"
  7828. :key="sIndex"
  7829. @click="setRightAnswer(s, stIndex, sIndex)"
  7830. >
  7831. <el-tooltip
  7832. class="item"
  7833. effect="light"
  7834. :content="s"
  7835. placement="top"
  7836. >
  7837. <div>{{ s }}</div>
  7838. </el-tooltip>
  7839. <div
  7840. class="deleteWord"
  7841. @click.stop="deleteS(s, stIndex, sIndex)"
  7842. >
  7843. <img src="../../../assets/icon/delete.png" alt="" />
  7844. </div>
  7845. </div>
  7846. </div>
  7847. <div class="card">
  7848. <img
  7849. src="../../../assets/icon/conSentences/noTitle.png"
  7850. alt=""
  7851. />
  7852. </div>
  7853. </div>
  7854. <div class="rightCardBox">
  7855. <div>正确顺序</div>
  7856. <div class="rightCardList">
  7857. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  7858. <div
  7859. v-for="(r, rIndex) in st.rightAnswer"
  7860. :key="rIndex"
  7861. class="cardCss"
  7862. >
  7863. <div
  7864. class="isCard1"
  7865. @click="returnCard(r, stIndex, rIndex)"
  7866. >
  7867. <el-tooltip
  7868. class="item"
  7869. effect="light"
  7870. :content="r"
  7871. placement="top"
  7872. >
  7873. <div>{{ r }}</div>
  7874. </el-tooltip>
  7875. </div>
  7876. <div>{{ rIndex + 1 }}</div>
  7877. </div>
  7878. </div>
  7879. <div class="card" v-if="st.rightAnswer.length == 0">
  7880. <img
  7881. src="../../../assets/icon/conSentences/noAnswer.png"
  7882. alt=""
  7883. />
  7884. </div>
  7885. <div class="card" v-else>
  7886. <img
  7887. src="../../../assets/icon/conSentences/clickNo.png"
  7888. alt=""
  7889. />
  7890. </div>
  7891. </div>
  7892. </div>
  7893. </div>
  7894. </div>
  7895. </div>
  7896. <span slot="footer" class="dialog-footer">
  7897. <el-button @click="closePan(47)">取 消</el-button>
  7898. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  7899. </span>
  7900. </el-dialog>
  7901. <el-dialog
  7902. title="添加表格"
  7903. :visible.sync="dialogVisibleTable"
  7904. :append-to-body="true"
  7905. width="95%"
  7906. :before-close="handleClose"
  7907. class="dialog_diy"
  7908. >
  7909. <el-form>
  7910. <!-- <el-form-item label="文本标题">
  7911. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  7912. </el-form-item> -->
  7913. <div>表格内容</div>
  7914. <Table v-model="tableJson.text" @change="change"></Table>
  7915. </el-form>
  7916. <span slot="footer" class="dialog-footer">
  7917. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  7918. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  7919. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  7920. </span>
  7921. </el-dialog>
  7922. <el-dialog
  7923. title="添加文档"
  7924. :visible.sync="dialogVisibleWord"
  7925. :append-to-body="true"
  7926. width="800px"
  7927. :before-close="handleClose"
  7928. class="dialog_diy"
  7929. >
  7930. <el-form>
  7931. <!-- <el-form-item label="文本标题">
  7932. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  7933. </el-form-item> -->
  7934. <div>文档内容</div>
  7935. <editor-bar v-model="wordJson.text"></editor-bar>
  7936. </el-form>
  7937. <span slot="footer" class="dialog-footer">
  7938. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  7939. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  7940. </span>
  7941. </el-dialog>
  7942. <el-dialog
  7943. title="添加班级"
  7944. :visible.sync="dialogVisibleMoreUpload"
  7945. :append-to-body="true"
  7946. width="30%"
  7947. :before-close="handleClose"
  7948. class="dialog_diy"
  7949. >
  7950. <div
  7951. style="
  7952. width: 100%;
  7953. display: flex;
  7954. flex-direction: row;
  7955. flex-wrap: nowrap;
  7956. align-items: center;
  7957. justify-content: center;
  7958. "
  7959. >
  7960. <div>班级:</div>
  7961. <el-select multiple v-model="uploadJson" placeholder="请选择">
  7962. <el-option
  7963. v-for="item in classJuri"
  7964. :key="item.id"
  7965. :label="item.name"
  7966. :value="item.id"
  7967. >
  7968. </el-option>
  7969. </el-select>
  7970. </div>
  7971. <span slot="footer" class="dialog-footer">
  7972. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  7973. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  7974. </span>
  7975. </el-dialog>
  7976. <el-dialog
  7977. title="设置随机码"
  7978. :visible.sync="dialogVisibleInvite"
  7979. :append-to-body="true"
  7980. width="360px"
  7981. :before-close="handleClose"
  7982. class="dialog_diy"
  7983. >
  7984. <div
  7985. style="
  7986. width: 100%;
  7987. display: flex;
  7988. flex-direction: row;
  7989. flex-wrap: nowrap;
  7990. align-items: center;
  7991. justify-content: center;
  7992. "
  7993. >
  7994. <div>随机码:</div>
  7995. <el-input
  7996. v-model="icode"
  7997. style="width: 240px"
  7998. placeholder="请输入随机码"
  7999. ></el-input>
  8000. </div>
  8001. <span slot="footer" class="dialog-footer">
  8002. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  8003. <el-button type="primary" @click="addInvite">确定</el-button>
  8004. </span>
  8005. </el-dialog>
  8006. <el-dialog
  8007. title="添加预设时间"
  8008. :visible.sync="dialogVisiblePreTime"
  8009. :append-to-body="true"
  8010. width="450px"
  8011. :before-close="handleClose"
  8012. class="dialog_diy"
  8013. >
  8014. <div>
  8015. <div style="margin-bottom: 20px; color: #999">
  8016. 提示:点击“+”或“-”修改倒计时时长。
  8017. </div>
  8018. <Time
  8019. :preTime="preTime"
  8020. @updateTimeNum="updateTime"
  8021. v-if="dialogVisiblePreTime"
  8022. ></Time>
  8023. </div>
  8024. <span slot="footer" class="dialog-footer">
  8025. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  8026. <el-button type="primary" @click="addPreTime">确定</el-button>
  8027. </span>
  8028. </el-dialog>
  8029. <el-dialog
  8030. title="导入目标"
  8031. :visible.sync="dialogVisiblemb"
  8032. :append-to-body="true"
  8033. width="70%"
  8034. :before-close="handleClose"
  8035. class="dialog_diy"
  8036. >
  8037. <div>
  8038. <div
  8039. style="
  8040. width: 100%;
  8041. display: flex;
  8042. flex-direction: row;
  8043. flex-wrap: nowrap;
  8044. align-content: center;
  8045. align-items: center;
  8046. justify-content: space-between;
  8047. "
  8048. >
  8049. <div
  8050. style="
  8051. display: flex;
  8052. flex-flow: row nowrap;
  8053. align-items: flex-start;
  8054. width: 100%;
  8055. flex-direction: column;
  8056. flex-wrap: nowrap;
  8057. position: relative;
  8058. "
  8059. >
  8060. <div class="e_box">
  8061. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  8062. <div class="e_card_picture">
  8063. <img src="../../../assets/e_picture.png" />
  8064. </div>
  8065. <div class="e_card_name">
  8066. <span>{{ item.title }}</span>
  8067. </div>
  8068. <div class="e_card_btn">
  8069. <span @click="checkEva(item.id, 2)">导入</span>
  8070. </div>
  8071. </div>
  8072. <div class="addEva" @click="openT">
  8073. <img src="../../../assets/icon/addEva.png" alt="" />
  8074. </div>
  8075. <div
  8076. v-if="evaJuri.length === 0"
  8077. style="margin: 0 auto; color: #6e6e6e"
  8078. >
  8079. 暂无数据
  8080. </div>
  8081. </div>
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <span slot="footer" class="dialog-footer">
  8086. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  8087. </span>
  8088. </el-dialog>
  8089. <el-dialog
  8090. title="分组设置"
  8091. :visible.sync="dialogVisibleGroup"
  8092. :append-to-body="true"
  8093. width="650px"
  8094. :before-close="handleClose"
  8095. class="dialog_diy"
  8096. >
  8097. <div class="groupBox">
  8098. <div v-if="groupJson.group" class="groupContent">
  8099. <div class="groupTitle">请设置小组数量及名称</div>
  8100. <div
  8101. v-for="(item, index) in groupJson.group"
  8102. :key="index"
  8103. class="groupName"
  8104. >
  8105. <span class="groupn">第{{ index + 1 }}组名称:</span>
  8106. <el-input
  8107. v-model="item.name"
  8108. placeholder="请输入名称..."
  8109. style="width: 250px"
  8110. ></el-input>
  8111. <div class="groupBtn">
  8112. <el-button
  8113. type="primary"
  8114. size="small"
  8115. @click="addGroup(index)"
  8116. v-if="groupJson.group.length - 1 == index"
  8117. >
  8118. 添加</el-button
  8119. >
  8120. <el-button
  8121. type="primary"
  8122. size="small"
  8123. @click="deleteGroup(index)"
  8124. v-if="groupJson.group && groupJson.group.length > 1"
  8125. >删除</el-button
  8126. >
  8127. </div>
  8128. </div>
  8129. </div>
  8130. <div class="groupContent">
  8131. <div class="groupTitle">请设置每组人数</div>
  8132. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  8133. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  8134. <el-input
  8135. v-model="groupJson.number"
  8136. style="width: 150px"
  8137. placeholder="请输入2-10的数字"
  8138. @change="numberPan"
  8139. ></el-input>
  8140. </div>
  8141. </div>
  8142. <span slot="footer" class="dialog-footer">
  8143. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  8144. <el-button type="primary" @click="addGroupJson">确定</el-button>
  8145. </span>
  8146. </el-dialog>
  8147. <el-dialog
  8148. title="修改名称"
  8149. :visible.sync="dialogVisibleupdataVideoT"
  8150. :append-to-body="true"
  8151. width="500px"
  8152. :before-close="handleClose"
  8153. class="dialog_diy"
  8154. >
  8155. <div
  8156. style="
  8157. width: 100%;
  8158. display: flex;
  8159. flex-direction: row;
  8160. flex-wrap: nowrap;
  8161. align-items: center;
  8162. justify-content: center;
  8163. "
  8164. >
  8165. <div style="min-width: fit-content">文件名称:</div>
  8166. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  8167. </div>
  8168. <span slot="footer" class="dialog-footer">
  8169. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  8170. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  8171. </span>
  8172. </el-dialog>
  8173. <el-dialog
  8174. title="创建作文题目"
  8175. :visible.sync="englishDialogVisible"
  8176. :append-to-body="true"
  8177. width="800px"
  8178. :before-close="
  8179. (done) => {
  8180. closePan(69);
  8181. }
  8182. "
  8183. class="dialog_diy fullStyle fullStyle1"
  8184. >
  8185. <englishRight
  8186. :englishList="englishList"
  8187. :oid="oid"
  8188. ref="engJson"
  8189. ></englishRight>
  8190. <span slot="footer" class="dialog-footer">
  8191. <el-button @click="englishDialogVisible = false">取 消</el-button>
  8192. <el-button type="primary" @click="addEnglish">确 定</el-button>
  8193. </span>
  8194. </el-dialog>
  8195. <interVideo
  8196. :dialogVisibleVideo.sync="dialogVisibleVideo"
  8197. :videoJson="videoJson"
  8198. @add="addVideoJson"
  8199. ></interVideo>
  8200. </div>
  8201. </template>
  8202. <script>
  8203. import "../../../common/aws-sdk-2.235.1.min.js";
  8204. import { tools as toolsData } from "../../../common/tools.js";
  8205. import $ from "jquery";
  8206. import EditorBar from "../../../components/tools/wangEnduit";
  8207. import Table from "../../../components/tools/table";
  8208. import Mind from "../../tools/jsmind2";
  8209. import Time from "../../tools/time.vue";
  8210. import Sunburst from "../../tools/sunburst";
  8211. import SeeBoard from "../../tools/seeBoard";
  8212. import weilaiData from "../components/weilai.js";
  8213. import sourceDialog from "../teacherSource/dialog.vue";
  8214. import interVideo from "../interVideo/index.vue";
  8215. import englishRight from "./commpont/englishRight.vue";
  8216. var OpenCC = require("opencc-js");
  8217. let converter = OpenCC.Converter({
  8218. from:'hk',
  8219. to:'cn'
  8220. })
  8221. export default {
  8222. components: {
  8223. EditorBar,
  8224. Mind,
  8225. Time,
  8226. Sunburst,
  8227. SeeBoard,
  8228. Table,
  8229. sourceDialog,
  8230. interVideo,
  8231. englishRight,
  8232. },
  8233. data() {
  8234. return {
  8235. checkAll: false,
  8236. chooseType: 1,
  8237. checkedCities: [],
  8238. isIndeterminate: true,
  8239. isSysPic: false,
  8240. isSysPic2: false,
  8241. steps: 1,
  8242. nbOrder: 0,
  8243. courseId: "",
  8244. chapToolsType: 0,
  8245. chapTools: [
  8246. {
  8247. tools: [],
  8248. toolDetail: "",
  8249. },
  8250. ],
  8251. line: "",
  8252. lineTitle: "",
  8253. sysPic: [],
  8254. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  8255. sentenceList2: [],
  8256. isPushTitleList: [],
  8257. lineCount: 0,
  8258. lineType: 0,
  8259. chapCount: 0,
  8260. courseName: "",
  8261. isTeacherSee: false,
  8262. courseText: "",
  8263. preTime: 0,
  8264. formLabelWidth: "100px",
  8265. choosePicVisible: false,
  8266. sysPicVisible: false,
  8267. uploadLoading1: false,
  8268. noneBtnImg: false,
  8269. updateBoolean2: false,
  8270. unitIndex: 0,
  8271. taskCount: 0,
  8272. dialogVisible: false,
  8273. dialogVisible1: false,
  8274. dialogVisible2: false,
  8275. dialogVisible3: false,
  8276. dialogVisible4: false,
  8277. dialogVisible5: false,
  8278. dialogVisible6: false,
  8279. dialogVisible7: false,
  8280. dialogVisible8: false,
  8281. dialogVisible9: false,
  8282. dialogVisibleClass: false,
  8283. dialogVisibleMember: false,
  8284. dialogVisibleMp3: false,
  8285. dialogVisibleSelect: false,
  8286. dialogVisibleSentence: false,
  8287. dialogVisibleRate: false,
  8288. dialogVisibleChoice: false,
  8289. dialogVisiblemb: false,
  8290. dialogVisibleInvite: false,
  8291. dialogVisibleSource: false,
  8292. dialogVisibleVideo: false,
  8293. dialogVisibleupdataVideoT: false,
  8294. englishDialogVisible: false,
  8295. isClickColor: 1,
  8296. toolIndexType: "",
  8297. publicTool: 0,
  8298. searchPeople: "",
  8299. searchTN: "",
  8300. userid: this.$route.query.userid,
  8301. oid: this.$route.query.oid,
  8302. org: this.$route.query.org,
  8303. role: this.$route.query.role,
  8304. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  8305. dialogVisibleTable: false,
  8306. dialogVisibleWord: false,
  8307. tableJson: { text: "" },
  8308. wordJson: { text: "" },
  8309. dialogVisibleMoreUpload: false,
  8310. dialogVisiblePreTime: false,
  8311. uploadJson: [],
  8312. classJuri: [],
  8313. gradeList: [],
  8314. cover: [], //课程封面
  8315. myWord: [],
  8316. evaJuri: [],
  8317. evalua: "",
  8318. targetArray: [],
  8319. eTitle: "",
  8320. eJson: {},
  8321. fid: "", //一级
  8322. sid: "", //二级
  8323. tid: "", //二级
  8324. typeMode: 1,
  8325. eJSONNum: 0,
  8326. data: {
  8327. meta: {
  8328. name: "example",
  8329. author: "dd@163.com",
  8330. version: "0.2",
  8331. },
  8332. format: "node_array",
  8333. data: [{ id: "root", isroot: true, topic: "" }],
  8334. },
  8335. askJson: {
  8336. askCount: 1,
  8337. askTitle: "",
  8338. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8339. },
  8340. askJson2: {},
  8341. testJson: {},
  8342. testJson2: {},
  8343. selectJson: {},
  8344. selectJson2: {},
  8345. rateJson: [],
  8346. unitJson2: [],
  8347. unitJson: [
  8348. {
  8349. dyName: "", //单元标题
  8350. chapterInfo: [
  8351. {
  8352. isread: false,
  8353. chapterid: this.guid(),
  8354. title: "",
  8355. courseName: "",
  8356. taskJson: [
  8357. {
  8358. task: "",
  8359. taskDetail: "",
  8360. chapterData: [],
  8361. toolChoose: [
  8362. {
  8363. tool: [],
  8364. toolDetail: "",
  8365. toolType: 0,
  8366. askCount: 1,
  8367. askTitle: "",
  8368. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8369. },
  8370. ],
  8371. toolText: "",
  8372. isShowTools: false,
  8373. askCount: 1,
  8374. isFold: 1,
  8375. askTitle: "",
  8376. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8377. checkJson: [{ checkCount: [], checkPerent: [] }],
  8378. homeworkList: [],
  8379. },
  8380. ],
  8381. itemCount: 1,
  8382. fileList1: [],
  8383. video: [],
  8384. testData: [],
  8385. pData: [],
  8386. templateArray: [],
  8387. },
  8388. ],
  8389. },
  8390. ],
  8391. templateArray: [],
  8392. studentJuri: [],
  8393. teacherJuri: [],
  8394. checkboxList: [],
  8395. checkboxList2: [],
  8396. checkboxList3: [],
  8397. classSearch: "",
  8398. gradeId: "",
  8399. number: "",
  8400. tTitle: "",
  8401. tdetail: "",
  8402. templateC: {},
  8403. AttText: {},
  8404. AttTextType: 0,
  8405. AttTextIndex: 0,
  8406. cTemplate: "",
  8407. CourseType: [],
  8408. CourseType2: [],
  8409. CourseTypeJson: {},
  8410. courseTypeId: [],
  8411. courseTypeSon: [],
  8412. clearArray: [],
  8413. pTypeCheck: [],
  8414. pTypeCheckName: [],
  8415. loading: false,
  8416. toolType: 0,
  8417. inputShow: true,
  8418. inputShow2: true,
  8419. toolIndex: 0,
  8420. cidType: 0,
  8421. answerQ: "",
  8422. answerQ2: "",
  8423. grade: [],
  8424. grade2: [],
  8425. courseUserid: "",
  8426. timer: null,
  8427. timer2: null,
  8428. pasteTimer: null,
  8429. checkId: "",
  8430. isDelete: 1,
  8431. addindex: 0,
  8432. selectSteps: 1,
  8433. groupJson: {},
  8434. dialogVisibleGroup: false,
  8435. rightBoxHeight: 0,
  8436. ManAarray: [],
  8437. checkBoolean: false,
  8438. inviteCode: [],
  8439. inviteId: "",
  8440. icode: "",
  8441. easyArray: [2, 4],
  8442. sourceData: {},
  8443. updateSourcePan: false,
  8444. videoJson: {},
  8445. isBtnDisplay: false,
  8446. isPasteTask: false,
  8447. isPasteChoice: false,
  8448. sysPicVisible2: false,
  8449. imageloading: false,
  8450. searchImageValue: "",
  8451. ppage: 1,
  8452. imageList: [],
  8453. heightPx: "100%",
  8454. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  8455. oldIndex: 0,
  8456. oldData: null,
  8457. newIndex: "",
  8458. englishList: {},
  8459. typeIndex: "",
  8460. isdrag: '',
  8461. };
  8462. },
  8463. directives: {
  8464. autoHeight: {
  8465. update(el, binding) {
  8466. const { value } = binding;
  8467. if (value && typeof value === "number") {
  8468. el.style.height = `${value}px`;
  8469. } else {
  8470. el.style.height = "auto";
  8471. }
  8472. },
  8473. componentUpdated(el) {
  8474. el.style.height = `${el.scrollHeight + 5}px`;
  8475. },
  8476. },
  8477. },
  8478. computed: {
  8479. // rightBoxHeight: function () {
  8480. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  8481. // },
  8482. offsetLetfPx: function () {
  8483. //addnum可以直接在模板语法里面用,相当于data内的值
  8484. return (
  8485. $(".cru_select")[this.unitIndex] &&
  8486. $(".cru_select")[this.unitIndex].offsetLeft
  8487. );
  8488. },
  8489. getMan2() {
  8490. return function (people) {
  8491. let _people = people;
  8492. let _people2 = "";
  8493. if (this.ManAarray.length) {
  8494. for (var i = 0; i < this.ManAarray.length; i++) {
  8495. if (this.ManAarray[i].userid == people) {
  8496. _people2 = this.ManAarray[i].name;
  8497. break;
  8498. }
  8499. }
  8500. }
  8501. if (people == this.courseUserid) {
  8502. return "";
  8503. }
  8504. return this.ManAarray.length ? _people2 : "";
  8505. };
  8506. },
  8507. isInvite() {
  8508. return function (cid) {
  8509. let array = [];
  8510. for (var i = 0; i < this.inviteCode.length; i++) {
  8511. array.push(this.inviteCode[i].cid);
  8512. }
  8513. return array.indexOf(cid) != -1;
  8514. };
  8515. },
  8516. getInviteCodeC() {
  8517. return function (cid) {
  8518. let array = [];
  8519. for (var i = 0; i < this.inviteCode.length; i++) {
  8520. array.push(this.inviteCode[i].cid);
  8521. }
  8522. return this.inviteCode[array.indexOf(cid)].ic;
  8523. };
  8524. },
  8525. getClassC() {
  8526. return function (c) {
  8527. let _c2 = "";
  8528. if (this.grade.length) {
  8529. for (var i = 0; i < this.grade.length; i++) {
  8530. if (this.grade[i].id == c) {
  8531. _c2 = this.grade[i].name;
  8532. break;
  8533. }
  8534. }
  8535. }
  8536. return this.grade.length ? _c2 : "";
  8537. };
  8538. },
  8539. getListClassC() {
  8540. return function (list) {
  8541. let _c2 = [];
  8542. if (this.grade.length) {
  8543. for (var j = 0; j < list.length; j++) {
  8544. let c = list[j];
  8545. for (var i = 0; i < this.grade.length; i++) {
  8546. if (this.grade[i].id == c) {
  8547. _c2.push(this.grade[i].name);
  8548. break;
  8549. }
  8550. }
  8551. }
  8552. }
  8553. return this.grade.length ? _c2.join("、") : "";
  8554. };
  8555. },
  8556. },
  8557. watch: {
  8558. unitIndex(newValue, oldValue) {
  8559. if (this.isDelete == 2) {
  8560. this.isDelete = 1;
  8561. return;
  8562. }
  8563. if (this.cid != "") {
  8564. let _unitIndex = oldValue;
  8565. if (
  8566. JSON.stringify(this.unitJson2[_unitIndex]) ==
  8567. JSON.stringify(this.unitJson[_unitIndex])
  8568. ) {
  8569. this.$refs.rightboxR.scrollTop = 0;
  8570. return;
  8571. }
  8572. let cPan = 1;
  8573. for (
  8574. var j = 0;
  8575. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8576. j++
  8577. ) {
  8578. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8579. j
  8580. ].proVisible = false;
  8581. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8582. j
  8583. ].proVisible2 = false;
  8584. if (
  8585. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8586. .length > 1
  8587. ) {
  8588. for (
  8589. var z = 0;
  8590. z <
  8591. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8592. .length;
  8593. z++
  8594. ) {
  8595. if (
  8596. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  8597. .toolChoose[z].tool.length
  8598. ) {
  8599. this.$message.error("请把工具添加完整");
  8600. cPan = 2;
  8601. break;
  8602. }
  8603. }
  8604. }
  8605. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8606. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8607. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8608. (ele) => {
  8609. return ele.value != "";
  8610. }
  8611. );
  8612. }
  8613. }
  8614. if (cPan == 2) {
  8615. this.unitIndex = oldValue;
  8616. return;
  8617. }
  8618. for (var i = 0; i < this.unitJson.length; i++) {
  8619. if (this.addindex != i) {
  8620. delete this.unitJson[i].isUpdate;
  8621. }
  8622. }
  8623. this.$refs.rightboxR.scrollTop = 0;
  8624. this.addindex = -1;
  8625. let params = [
  8626. {
  8627. cid: this.cid,
  8628. chapters: JSON.stringify(this.unitJson),
  8629. uid: this.userid,
  8630. unitIndex: _unitIndex,
  8631. },
  8632. ];
  8633. this.ajax
  8634. .post(this.$store.state.api + "updateWorkNew4", params)
  8635. .then((res) => {
  8636. // this.$message({
  8637. // message: "修改成功",
  8638. // type: "success",
  8639. // });
  8640. // this.courseId = this.cid;
  8641. })
  8642. .catch((err) => {
  8643. this.$message.error("网络不佳");
  8644. console.error(err);
  8645. });
  8646. }
  8647. },
  8648. steps(newValue) {
  8649. if (newValue == 4) {
  8650. this.goTo(
  8651. "/course?userid=" +
  8652. this.userid +
  8653. "&oid=" +
  8654. this.oid +
  8655. "&org=" +
  8656. this.org +
  8657. "&role=" +
  8658. this.role
  8659. );
  8660. }
  8661. },
  8662. },
  8663. methods: {
  8664. openAI() {
  8665. window.parent.postMessage({ tools: "64" }, "*");
  8666. },
  8667. setMan() {
  8668. // let teacherJuri = this.teacherJuri2;
  8669. this.ManAarray = [];
  8670. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  8671. if (_user.indexOf(this.userid) == -1) {
  8672. _user.push(this.userid);
  8673. }
  8674. if (_user.indexOf(this.courseUserid) == -1) {
  8675. _user.push(this.courseUserid);
  8676. }
  8677. let params = {
  8678. uid: _user.join(","),
  8679. };
  8680. this.ajax
  8681. .get(this.$store.state.api + "getAllUserById", params)
  8682. .then((res) => {
  8683. let teacherJuri = res.data[0];
  8684. this.ManAarray = teacherJuri;
  8685. })
  8686. .catch((err) => {
  8687. console.error(err);
  8688. });
  8689. },
  8690. previewImg(url) {
  8691. this.$hevueImgPreview(url);
  8692. },
  8693. btnDisplay(bool) {
  8694. this.isBtnDisplay = bool;
  8695. },
  8696. scrollChange() {
  8697. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  8698. // document.querySelector('.course_left').scrollHeight
  8699. // document.querySelector('.stepsBottom2').scrollHeight
  8700. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  8701. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  8702. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  8703. let maxheight =
  8704. $(".whiteBg")[0].offsetHeight + $(".whiteBg")[1].offsetHeight + 120;
  8705. let top = $(".rightBox")[0].scrollTop - maxheight;
  8706. // if (top < client) {
  8707. // $('.stepsBottom2')[0].style.position = 'absolute'
  8708. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  8709. // // $('.stepsBottom2')[0].style.top = client + 'px'
  8710. // } else
  8711. if (top > 0) {
  8712. let top = $(".rightBox")[0].offsetTop;
  8713. $(".stepsBottom2")[0].style.position = "fixed";
  8714. $(".stepsBottom2")[0].style.top = top + "px";
  8715. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + "px";
  8716. // $('.stepsBottom2')[0].style.top = top + 'px'
  8717. } else {
  8718. $(".stepsBottom2")[0].style.position = "absolute";
  8719. $(".stepsBottom2")[0].style.top = "0px";
  8720. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + "px";
  8721. }
  8722. const clientHeight = $(".rightBox")[0].clientHeight;
  8723. const scrollTop = $(".rightBox")[0].scrollTop;
  8724. const scrollHeight = $(".rightBox")[0].scrollHeight;
  8725. if (clientHeight + scrollTop > scrollHeight - 10 && top > 0) {
  8726. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + "px";
  8727. }
  8728. },
  8729. addHw(e) {
  8730. var el = e.currentTarget;
  8731. el.getElementsByTagName("input")[0].click();
  8732. },
  8733. change(val) {
  8734. if (this.dialogVisible1) {
  8735. this.tdetail = val;
  8736. } else if (this.dialogVisible6) {
  8737. this.AttText.text = val;
  8738. } else if (this.dialogVisible2) {
  8739. this.cTemplate = val;
  8740. } else if (this.dialogVisibleTable) {
  8741. this.tableJson.text = val;
  8742. }
  8743. this.$forceUpdate();
  8744. console.log(val);
  8745. },
  8746. change2(val) {
  8747. console.log(val);
  8748. this.$forceUpdate();
  8749. },
  8750. handleClose(done) {
  8751. done();
  8752. },
  8753. closePan(tool) {
  8754. if (tool == 15) {
  8755. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  8756. this.dialogVisible8 = false;
  8757. } else {
  8758. this.closeConfirm(tool);
  8759. }
  8760. } else if (tool == 4) {
  8761. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  8762. this.dialogVisible5 = false;
  8763. } else {
  8764. this.closeConfirm(tool);
  8765. }
  8766. } else if (tool == 45) {
  8767. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  8768. this.dialogVisibleChoice = false;
  8769. } else {
  8770. this.closeConfirm(tool);
  8771. }
  8772. } else if (tool == 41) {
  8773. if (
  8774. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8775. ) {
  8776. this.dialogVisibleSelect = false;
  8777. } else {
  8778. this.closeConfirm(tool);
  8779. }
  8780. } else if (tool == 47) {
  8781. if (
  8782. JSON.stringify(this.sentenceList) ==
  8783. JSON.stringify(this.sentenceList2)
  8784. ) {
  8785. this.dialogVisibleSentence = false;
  8786. } else {
  8787. this.closeConfirm(tool);
  8788. }
  8789. } else if (tool == 69) {
  8790. if (
  8791. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8792. ) {
  8793. this.englishDialogVisible = false;
  8794. } else {
  8795. this.closeConfirm(tool);
  8796. }
  8797. }
  8798. },
  8799. closeConfirm(tool) {
  8800. this.$confirm("是否保存已编辑内容?", "提示", {
  8801. confirmButtonText: "保存",
  8802. cancelButtonText: "不保存",
  8803. type: "warning",
  8804. })
  8805. .then(() => {
  8806. if (tool == 15) {
  8807. this.addAnswer();
  8808. } else if (tool == 4) {
  8809. this.addAsk();
  8810. } else if (tool == 45) {
  8811. this.addTest();
  8812. } else if (tool == 41) {
  8813. this.addSelectAnswer();
  8814. } else if (tool == 47) {
  8815. this.addSentenceTool();
  8816. } else if (tool == 69) {
  8817. this.addEnglish();
  8818. }
  8819. })
  8820. .catch(() => {
  8821. if (tool == 15) {
  8822. this.dialogVisible8 = false;
  8823. } else if (tool == 4) {
  8824. this.dialogVisible5 = false;
  8825. } else if (tool == 45) {
  8826. this.dialogVisibleChoice = false;
  8827. } else if (tool == 41) {
  8828. this.dialogVisibleSelect = false;
  8829. } else if (tool == 47) {
  8830. this.dialogVisibleSentence = false;
  8831. } else if (tool == 69) {
  8832. this.englishDialogVisible = false;
  8833. }
  8834. });
  8835. },
  8836. addEnglish() {
  8837. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  8838. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  8839. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  8840. if (
  8841. this.englishList.engTitle == "" ||
  8842. this.englishList.englishText == ""
  8843. ) {
  8844. this.$message.error("请将内容填写完整!");
  8845. return;
  8846. }
  8847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8848. this.taskCount
  8849. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8850. this.englishList = {};
  8851. this.englishDialogVisible = false;
  8852. if (
  8853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8854. .toolChoose[this.toolIndex].tool != 69
  8855. ) {
  8856. this.addTools(69, this.taskCount, this.toolIndex);
  8857. }
  8858. },
  8859. imgChange2(i, j) {
  8860. var _tmp = this.testJson.testJson[i].checkList[j];
  8861. this.noneBtnImg = _tmp.length >= 1;
  8862. },
  8863. imgChange3(i) {
  8864. var _tmp = this.testJson.testJson[i];
  8865. this.noneBtnImg = _tmp.length >= 1;
  8866. },
  8867. imgChange1(file, fileList, type, itemTaskIndex) {
  8868. if (type == 1) {
  8869. var _tmp = this.cover;
  8870. } else if (
  8871. type == 2 ||
  8872. type == 3 ||
  8873. type == 6 ||
  8874. type == 7 ||
  8875. type == 8
  8876. ) {
  8877. var _tmp =
  8878. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8879. .chapterData;
  8880. } else if (type == 4) {
  8881. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8882. } else {
  8883. var _tmp =
  8884. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8885. .homeworkList;
  8886. }
  8887. this.noneBtnImg = _tmp.length >= 1;
  8888. },
  8889. goTo(path) {
  8890. this.$router.push(path);
  8891. },
  8892. guid() {
  8893. var _num,
  8894. i,
  8895. _guid = "";
  8896. for (i = 0; i < 32; i++) {
  8897. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8898. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8899. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8900. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8901. _guid += "-";
  8902. }
  8903. }
  8904. return _guid;
  8905. },
  8906. lastSteps() {
  8907. this.$confirm("是否保存已编辑内容?", "提示", {
  8908. confirmButtonText: "保存",
  8909. cancelButtonText: "不保存",
  8910. distinguishCancelAndClose: true,
  8911. type: "warning",
  8912. })
  8913. .then(() => {
  8914. if (this.cid == "" || this.cid == undefined) {
  8915. if (this.courseName == "") {
  8916. this.$message.error("请补充填写课程名称");
  8917. return;
  8918. } else {
  8919. this.addWork();
  8920. }
  8921. } else {
  8922. if (this.courseName == "") {
  8923. this.$message.error("请补充填写课程名称");
  8924. return;
  8925. } else {
  8926. if (this.userid != this.courseUserid && this.role != "1") {
  8927. this.updateWork2();
  8928. } else {
  8929. this.updateWork();
  8930. }
  8931. }
  8932. }
  8933. })
  8934. .catch((v) => {
  8935. console.log(v);
  8936. if (v == "cancel") {
  8937. this.goTo(
  8938. "/course?userid=" +
  8939. this.userid +
  8940. "&oid=" +
  8941. this.oid +
  8942. "&org=" +
  8943. this.org +
  8944. "&role=" +
  8945. this.role
  8946. );
  8947. }
  8948. });
  8949. },
  8950. nextSteps() {
  8951. if (this.cid == "" || this.cid == undefined) {
  8952. if (this.courseName == "") {
  8953. this.$message.error("请补充填写课程名称");
  8954. return;
  8955. } else {
  8956. this.addWork();
  8957. }
  8958. } else {
  8959. if (this.courseName == "") {
  8960. this.$message.error("请补充填写课程名称");
  8961. return;
  8962. } else {
  8963. if (this.userid != this.courseUserid && this.role != "1") {
  8964. this.updateWork2();
  8965. } else {
  8966. this.updateWork();
  8967. }
  8968. }
  8969. }
  8970. this.$refs.stepBox.scrollTop = 0;
  8971. },
  8972. unitSet(i) {
  8973. this.unitIndex = i;
  8974. // this.$refs.rightboxR.scrollTop = 0;
  8975. },
  8976. time() {
  8977. if (!this.now) {
  8978. this.now = new Date().getTime();
  8979. return true;
  8980. } else {
  8981. let time = new Date().getTime();
  8982. if (time - this.now > 3000) {
  8983. this.now = time;
  8984. return true;
  8985. } else {
  8986. return false;
  8987. }
  8988. }
  8989. },
  8990. deleteUnit(i) {
  8991. var _this = this;
  8992. if (_this.time()) {
  8993. _this
  8994. .$confirm("确定删除此单元吗?", "提示", {
  8995. confirmButtonText: "确定",
  8996. cancelButtonText: "取消",
  8997. type: "warning",
  8998. })
  8999. .then(() => {
  9000. _this.isDelete = 2;
  9001. // _this.unitIndex = _this.unitIndex - 1;
  9002. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  9003. // _this.$message.success("删除成功");
  9004. })
  9005. .catch(() => {
  9006. return;
  9007. });
  9008. }
  9009. },
  9010. deleteWork(chapid) {
  9011. let params = [
  9012. {
  9013. cid: this.cid,
  9014. chapters: JSON.stringify(this.unitJson),
  9015. uid: this.userid,
  9016. chapid: chapid,
  9017. },
  9018. ];
  9019. this.ajax
  9020. .post(this.$store.state.api + "deleteWork", params)
  9021. .then((res) => {
  9022. this.$message({
  9023. message: "删除成功",
  9024. type: "success",
  9025. });
  9026. this.unitJson.splice(this.unitIndex, 1);
  9027. this.unitIndex = this.unitIndex - 1;
  9028. })
  9029. .catch((err) => {
  9030. this.$message.error("网络不佳");
  9031. console.error(err);
  9032. });
  9033. },
  9034. deleteTool(itemTaskIndex, i) {
  9035. var _this = this;
  9036. if (_this.time()) {
  9037. _this
  9038. .$confirm("确定删除此工具吗?", "提示", {
  9039. confirmButtonText: "确定",
  9040. cancelButtonText: "取消",
  9041. type: "warning",
  9042. })
  9043. .then(() => {
  9044. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9045. itemTaskIndex
  9046. ].toolChoose.splice(i, 1);
  9047. _this.$message.success("删除成功");
  9048. })
  9049. .catch(() => {
  9050. return;
  9051. });
  9052. }
  9053. },
  9054. deleteSentence(i) {
  9055. var _this = this;
  9056. _this
  9057. .$confirm("确定删除此题目吗?", "提示", {
  9058. confirmButtonText: "确定",
  9059. cancelButtonText: "取消",
  9060. type: "warning",
  9061. })
  9062. .then(() => {
  9063. _this.sentenceList.splice(i, 1);
  9064. _this.$message.success("删除成功");
  9065. })
  9066. .catch(() => {
  9067. return;
  9068. });
  9069. },
  9070. deleteS(s, i, j) {
  9071. this.sentenceList[i].addSentence.splice(j, 1);
  9072. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  9073. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  9074. this.sentenceList[i].rightAnswer.splice(a, 1);
  9075. }
  9076. },
  9077. openT() {
  9078. window.parent.postMessage({ tools: "25" }, "*");
  9079. },
  9080. deleteTask(i) {
  9081. var _this = this;
  9082. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  9083. _this
  9084. .$confirm("确定删除此任务吗?", "提示", {
  9085. confirmButtonText: "确定",
  9086. cancelButtonText: "取消",
  9087. type: "warning",
  9088. })
  9089. .then(() => {
  9090. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  9091. _this.$message.success("删除成功");
  9092. // this.$nextTick(() => {
  9093. // $('.stepsBottom2')[0].style.transition = 'unset'
  9094. // setTimeout(() => {
  9095. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  9096. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  9097. // let top = $('.stepsBottom2')[0].offsetTop - 20
  9098. // if (top > client) {
  9099. // $('.stepsBottom2')[0].style.top = client + 'px'
  9100. // }
  9101. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  9102. // this.$forceUpdate()
  9103. // }, 500)
  9104. // })
  9105. })
  9106. .catch(() => {
  9107. return;
  9108. });
  9109. },
  9110. handlePictureCardPreview(file) {
  9111. this.dialogImageUrl = file.url;
  9112. },
  9113. clean(i, c) {
  9114. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  9115. },
  9116. handle_remove1(file, fileList, type) {
  9117. var _tmp = this.cover;
  9118. // for (var i = 0, len = _tmp.length; i < len; i++) {
  9119. // if (_tmp[i].uid == file.uid) {
  9120. // _tmp.splice(i, 1);
  9121. // break;
  9122. // }
  9123. // this.cover = _tmp;
  9124. // }
  9125. this.cover = [];
  9126. this.noneBtnImg = this.cover.length >= 1;
  9127. this.isSysPic = false;
  9128. this.isSysPic2 = false;
  9129. this.$forceUpdate();
  9130. },
  9131. addImg(e) {
  9132. var el = e.currentTarget;
  9133. el.getElementsByTagName("input")[0].click();
  9134. e.target.value = "";
  9135. },
  9136. addChaptersTools(i) {
  9137. this.chapTools = [
  9138. {
  9139. tools: [],
  9140. toolDetail: "",
  9141. },
  9142. ];
  9143. this.chapCount = i;
  9144. this.dialogVisible4 = true;
  9145. },
  9146. isNoFinsh() {
  9147. this.$message.warning("功能正在开发中");
  9148. },
  9149. addAttText(i) {
  9150. this.AttText = {
  9151. title: "",
  9152. text: "",
  9153. };
  9154. this.taskCount = i;
  9155. this.AttTextType = 0;
  9156. this.$forceUpdate();
  9157. this.dialogVisible6 = true;
  9158. setTimeout(() => {
  9159. this.$refs["fuInput"].focus();
  9160. }, 100);
  9161. },
  9162. openLine(i) {
  9163. this.line = "";
  9164. this.lineCount = i;
  9165. this.lineType = 0;
  9166. this.$forceUpdate();
  9167. this.dialogVisible7 = true;
  9168. },
  9169. pasteLine(i) {
  9170. navigator.clipboard
  9171. .readText()
  9172. .then((v) => {
  9173. console.log("获取剪贴板成功:", v);
  9174. const html = v;
  9175. const regex = /src="(.*?)"/g;
  9176. const match = regex.exec(html);
  9177. if (match && match[1]) {
  9178. console.log(match[1]);
  9179. this.$message.success("粘贴成功");
  9180. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9181. i
  9182. ].chapterData.push({
  9183. name: "链接",
  9184. title: "嵌入代码",
  9185. url: match[1],
  9186. type: 8,
  9187. });
  9188. } else {
  9189. // console.log("未找到包含 src 属性的 iframe");
  9190. this.$message.error(
  9191. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  9192. );
  9193. }
  9194. })
  9195. .catch((v) => {
  9196. console.log("获取剪贴板失败: ", v);
  9197. });
  9198. },
  9199. openSource(i) {
  9200. this.lineCount = i;
  9201. this.sourceData = {};
  9202. this.dialogVisibleSource = true;
  9203. this.updateSourcePan = false;
  9204. },
  9205. addSource() {
  9206. if (!Object.keys(this.sourceData).length) {
  9207. this.$message.error("请选择要上传的资源");
  9208. return;
  9209. }
  9210. let keys = Object.keys(this.sourceData);
  9211. for (var i = 0; i < keys.length; i++) {
  9212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9213. this.lineCount
  9214. ].chapterData.push({
  9215. name: "链接",
  9216. title: this.sourceData[keys[i]].name,
  9217. url: this.sourceData[keys[i]].url,
  9218. type: 14,
  9219. id: keys[i],
  9220. });
  9221. }
  9222. this.$forceUpdate();
  9223. this.dialogVisibleSource = false;
  9224. },
  9225. updateSource() {
  9226. if (!Object.keys(this.sourceData).length) {
  9227. this.$message.error("请选择要上传的资源");
  9228. return;
  9229. }
  9230. let keys = Object.keys(this.sourceData);
  9231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9232. this.taskCount
  9233. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  9234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9235. this.taskCount
  9236. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  9237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9238. this.taskCount
  9239. ].chapterData[this.lineCount].id = keys[0];
  9240. this.updateSourcePan = false;
  9241. this.$forceUpdate();
  9242. this.dialogVisibleSource = false;
  9243. },
  9244. deleteM(i, j) {
  9245. this.testJson.testJson[i].timuList.splice(j, 1);
  9246. },
  9247. beforeUploadTiMu(event, i) {
  9248. const loading = this.openLoading();
  9249. var file = event.target.files[0];
  9250. var credentials = {
  9251. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9252. secretAccessKey: "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",
  9253. }; //秘钥形式的登录上传
  9254. window.AWS.config.update(credentials);
  9255. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9256. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9257. var _this = this;
  9258. if (file) {
  9259. var params = {
  9260. Key:
  9261. file.name.split(".")[0] +
  9262. new Date().getTime() +
  9263. "." +
  9264. file.name.split(".")[file.name.split(".").length - 1],
  9265. ContentType: file.type,
  9266. Body: file,
  9267. "Access-Control-Allow-Credentials": "*",
  9268. ACL: "public-read",
  9269. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9270. var options = {
  9271. partSize: 2048 * 1024 * 1024,
  9272. queueSize: 2,
  9273. leavePartsOnError: true,
  9274. };
  9275. bucket
  9276. .upload(params, options)
  9277. .on("httpUploadProgress", function (evt) {
  9278. //这里可以写进度条
  9279. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9280. })
  9281. .send(function (err, data) {
  9282. loading.close();
  9283. if (err) {
  9284. _this.$message.error("上传失败");
  9285. } else {
  9286. if (_this.testJson.testJson[i].timuList) {
  9287. _this.testJson.testJson[i].timuList.push({
  9288. src: data.Location,
  9289. });
  9290. } else {
  9291. _this.testJson.testJson[i].timuList = [];
  9292. _this.testJson.testJson[i].timuList.push({
  9293. src: data.Location,
  9294. });
  9295. }
  9296. _this.imgChange3(i);
  9297. _this.$forceUpdate();
  9298. }
  9299. });
  9300. }
  9301. },
  9302. beforeUploadTi(event, i, j) {
  9303. const loading = this.openLoading();
  9304. var file = event.target.files[0];
  9305. var credentials = {
  9306. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9307. secretAccessKey: "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",
  9308. }; //秘钥形式的登录上传
  9309. window.AWS.config.update(credentials);
  9310. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9311. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9312. var _this = this;
  9313. if (file) {
  9314. var params = {
  9315. Key:
  9316. file.name.split(".")[0] +
  9317. new Date().getTime() +
  9318. "." +
  9319. file.name.split(".")[file.name.split(".").length - 1],
  9320. ContentType: file.type,
  9321. Body: file,
  9322. "Access-Control-Allow-Credentials": "*",
  9323. ACL: "public-read",
  9324. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9325. var options = {
  9326. partSize: 2048 * 1024 * 1024,
  9327. queueSize: 2,
  9328. leavePartsOnError: true,
  9329. };
  9330. bucket
  9331. .upload(params, options)
  9332. .on("httpUploadProgress", function (evt) {
  9333. //这里可以写进度条
  9334. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9335. })
  9336. .send(function (err, data) {
  9337. loading.close();
  9338. if (err) {
  9339. _this.$message.error("上传失败");
  9340. } else {
  9341. _this.testJson.testJson[i].checkList[j] = {};
  9342. _this.testJson.testJson[i].checkList[j].src = data.Location;
  9343. _this.testJson.testJson[i].checkList[j].imgType = 1;
  9344. _this.imgChange2(i, j);
  9345. _this.$forceUpdate();
  9346. }
  9347. });
  9348. }
  9349. },
  9350. beforeUpload1(event, type) {
  9351. // const loading = this.openLoading();
  9352. var file = event.target.files[0];
  9353. var credentials = {
  9354. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9355. secretAccessKey: "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",
  9356. }; //秘钥形式的登录上传
  9357. window.AWS.config.update(credentials);
  9358. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9359. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9360. var _this = this;
  9361. if (file) {
  9362. var params = {
  9363. Key:
  9364. file.name.split(".")[0] +
  9365. new Date().getTime() +
  9366. "." +
  9367. file.name.split(".")[file.name.split(".").length - 1],
  9368. ContentType: file.type,
  9369. Body: file,
  9370. "Access-Control-Allow-Credentials": "*",
  9371. ACL: "public-read",
  9372. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9373. var options = {
  9374. partSize: 2048 * 1024 * 1024,
  9375. queueSize: 2,
  9376. leavePartsOnError: true,
  9377. };
  9378. bucket
  9379. .upload(params, options)
  9380. .on("httpUploadProgress", function (evt) {
  9381. //这里可以写进度条
  9382. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9383. })
  9384. .send(function (err, data) {
  9385. // loading.close();
  9386. if (err) {
  9387. // var a = _this.$refs.upload1.uploadFiles;
  9388. // a.splice(a.length - 1, a.length);
  9389. _this.$message.error("上传失败");
  9390. } else {
  9391. _this.cover = [{
  9392. name: file.name,
  9393. url: data.Location,
  9394. uid: file.uid,
  9395. }];
  9396. _this.imgChange1(null, null, 1, null);
  9397. _this.choosePicVisible = false;
  9398. console.log(data.Location);
  9399. }
  9400. });
  9401. }
  9402. },
  9403. beforeUploadSelect(event, type) {
  9404. // const loading = this.openLoading();
  9405. var file = event.target.files[0];
  9406. var credentials = {
  9407. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9408. secretAccessKey: "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",
  9409. }; //秘钥形式的登录上传
  9410. window.AWS.config.update(credentials);
  9411. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9412. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9413. var _this = this;
  9414. if (file) {
  9415. var params = {
  9416. Key:
  9417. file.name.split(".")[0] +
  9418. new Date().getTime() +
  9419. "." +
  9420. file.name.split(".")[file.name.split(".").length - 1],
  9421. ContentType: file.type,
  9422. Body: file,
  9423. "Access-Control-Allow-Credentials": "*",
  9424. ACL: "public-read",
  9425. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9426. var options = {
  9427. partSize: 2048 * 1024 * 1024,
  9428. queueSize: 2,
  9429. leavePartsOnError: true,
  9430. };
  9431. bucket
  9432. .upload(params, options)
  9433. .on("httpUploadProgress", function (evt) {
  9434. //这里可以写进度条
  9435. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9436. })
  9437. .send(function (err, data) {
  9438. // loading.close();
  9439. if (err) {
  9440. _this.$message.error("上传失败");
  9441. } else {
  9442. _this.selectJson.url = data.Location;
  9443. console.log(data.Location);
  9444. }
  9445. });
  9446. }
  9447. },
  9448. chooseSysPic(p) {
  9449. this.cover = [];
  9450. setTimeout(() => {
  9451. this.cover[0] = {
  9452. name: "系统图片.png",
  9453. url: p,
  9454. };
  9455. this.imgChange1(null, null, 1, null);
  9456. this.$forceUpdate();
  9457. }, 0);
  9458. this.isSysPic = true;
  9459. this.isSysPic2 = false;
  9460. this.sysPicVisible = false;
  9461. this.$forceUpdate();
  9462. },
  9463. chooseSysPic2(p) {
  9464. this.cover = [];
  9465. setTimeout(() => {
  9466. this.cover[0] = {
  9467. name: "网络图片.png",
  9468. url: p,
  9469. };
  9470. this.imgChange1(null, null, 1, null);
  9471. this.$forceUpdate();
  9472. }, 0);
  9473. this.isSysPic2 = true;
  9474. this.isSysPic = false;
  9475. this.sysPicVisible2 = false;
  9476. this.$forceUpdate();
  9477. },
  9478. beforeUpload(data) {
  9479. this.$refs.upload1.uploadFiles;
  9480. this.uploadLoading1 = true;
  9481. var file = data.file;
  9482. var credentials = {
  9483. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9484. secretAccessKey: "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",
  9485. }; //秘钥形式的登录上传
  9486. window.AWS.config.update(credentials);
  9487. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9488. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9489. var _this = this;
  9490. if (file) {
  9491. var params = {
  9492. Key:
  9493. file.name.split(".")[0] +
  9494. new Date().getTime() +
  9495. "." +
  9496. file.name.split(".")[file.name.split(".").length - 1],
  9497. ContentType: file.type,
  9498. Body: file,
  9499. "Access-Control-Allow-Credentials": "*",
  9500. ACL: "public-read",
  9501. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9502. var options = {
  9503. partSize: 2048 * 1024 * 1024,
  9504. queueSize: 2,
  9505. leavePartsOnError: true,
  9506. };
  9507. bucket
  9508. .upload(params, options)
  9509. .on("httpUploadProgress", function (evt) {
  9510. //这里可以写进度条
  9511. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9512. })
  9513. .send(function (err, data) {
  9514. _this.uploadLoading1 = false;
  9515. if (err) {
  9516. // var a = _this.$refs.upload1.uploadFiles;
  9517. // a.splice(a.length - 1, a.length);
  9518. _this.$message.error("上传失败");
  9519. } else {
  9520. //上传成功处理
  9521. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9522. name: file.name,
  9523. url: data.Location,
  9524. uid: file.uid,
  9525. });
  9526. _this.imgChange();
  9527. console.log(data.Location);
  9528. }
  9529. });
  9530. }
  9531. },
  9532. onExceed() {
  9533. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9534. },
  9535. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9536. // const loading = this.openLoading();
  9537. var file = event.target.files[0];
  9538. var credentials = {
  9539. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9540. secretAccessKey: "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",
  9541. }; //秘钥形式的登录上传
  9542. window.AWS.config.update(credentials);
  9543. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9544. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9545. var _this = this;
  9546. if (type == 3) {
  9547. var b = [
  9548. "DOC",
  9549. "DOCX",
  9550. "DOCM",
  9551. "DOTM",
  9552. "DOTX",
  9553. "PPTX",
  9554. "PPSX",
  9555. "PPT",
  9556. "PPS",
  9557. "PPTM",
  9558. "POTM",
  9559. "PPAM",
  9560. "POTX",
  9561. "PPSM",
  9562. ];
  9563. if (
  9564. b.indexOf(
  9565. file.name
  9566. .split(".")
  9567. [file.name.split(".").length - 1].toLocaleUpperCase()
  9568. ) != -1
  9569. ) {
  9570. if (file.size / 1024 / 1024 > 80) {
  9571. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9572. this.inputShow = true;
  9573. // var a = _this.$refs.upload1.uploadFiles;
  9574. // a.splice(a.length - 1, a.length);
  9575. // loading.close();
  9576. return;
  9577. }
  9578. } else if (
  9579. file.name
  9580. .split(".")
  9581. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9582. ) {
  9583. if (file.size / 1024 / 1024 > 80) {
  9584. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9585. this.inputShow = true;
  9586. // var a = _this.$refs.upload1.uploadFiles;
  9587. // a.splice(a.length - 1, a.length);
  9588. // loading.close();
  9589. return;
  9590. }
  9591. }
  9592. }
  9593. this.inputShow = false;
  9594. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9595. itemTaskIndex
  9596. ].progress = 0;
  9597. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9598. itemTaskIndex
  9599. ].proVisible = true;
  9600. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9601. itemTaskIndex
  9602. ].isFinishSize = 0;
  9603. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9604. itemTaskIndex
  9605. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9606. _this.$forceUpdate();
  9607. if (file) {
  9608. var params = {
  9609. Key:
  9610. file.name.split(".")[0] +
  9611. new Date().getTime() +
  9612. "." +
  9613. file.name.split(".")[file.name.split(".").length - 1],
  9614. ContentType: file.type,
  9615. Body: file,
  9616. "Access-Control-Allow-Credentials": "*",
  9617. ACL: "public-read",
  9618. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9619. var options = {
  9620. partSize: 2048 * 1024 * 1024,
  9621. queueSize: 2,
  9622. leavePartsOnError: true,
  9623. };
  9624. bucket
  9625. .upload(params, options)
  9626. .on("httpUploadProgress", function (evt) {
  9627. //这里可以写进度条
  9628. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9629. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9630. itemTaskIndex
  9631. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9632. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9633. itemTaskIndex
  9634. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9635. _this.$forceUpdate();
  9636. })
  9637. .send(function (err, data) {
  9638. // loading.close();
  9639. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9640. itemTaskIndex
  9641. ].progress = 100;
  9642. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9643. itemTaskIndex
  9644. ].isFinishSize =
  9645. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9646. itemTaskIndex
  9647. ].isAllSize;
  9648. _this.$forceUpdate();
  9649. setTimeout(() => {
  9650. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9651. itemTaskIndex
  9652. ].proVisible = false;
  9653. _this.$forceUpdate();
  9654. }, 1000);
  9655. _this.inputShow = true;
  9656. if (err) {
  9657. // var a = _this.$refs.upload1.uploadFiles;
  9658. // a.splice(a.length - 1, a.length);
  9659. _this.$message.error("上传失败");
  9660. } else {
  9661. if (type == 13) {
  9662. let _type = 2;
  9663. var imgA = [
  9664. "png",
  9665. "jpg",
  9666. "jpeg",
  9667. "bmp",
  9668. "gif",
  9669. "webp",
  9670. "psd",
  9671. "svg",
  9672. "tiff",
  9673. ];
  9674. var fileA = [
  9675. "PDF",
  9676. "DOC",
  9677. "DOCX",
  9678. "DOCM",
  9679. "DOTM",
  9680. "DOTX",
  9681. "PPTX",
  9682. "PPSX",
  9683. "PPT",
  9684. "PPS",
  9685. "PPTM",
  9686. "POTM",
  9687. "PPAM",
  9688. "POTX",
  9689. "PPSM",
  9690. "XLSX",
  9691. "XLS",
  9692. ];
  9693. var videoA = [
  9694. "AVI",
  9695. "NAVI",
  9696. "MPEG",
  9697. "ASF",
  9698. "MOV",
  9699. "WMV",
  9700. "3GP",
  9701. "RM",
  9702. "RMVB",
  9703. "FLV",
  9704. "F4V",
  9705. "H.264",
  9706. "H.265",
  9707. "REAL VIDEO",
  9708. "MKV",
  9709. "WebM",
  9710. "HDDVD",
  9711. "MP4",
  9712. "MPG",
  9713. "M4V",
  9714. "MGV",
  9715. "OGV",
  9716. "QTM",
  9717. "STR",
  9718. "AMC",
  9719. "DVX",
  9720. "EVO",
  9721. "DAT",
  9722. "OGG",
  9723. "OGM",
  9724. ];
  9725. if (
  9726. fileA.indexOf(
  9727. data.Location.split(".")[
  9728. data.Location.split(".").length - 1
  9729. ].toLocaleUpperCase()
  9730. ) != -1
  9731. ) {
  9732. _type = 3;
  9733. } else if (
  9734. videoA.indexOf(
  9735. data.Location.split(".")[
  9736. data.Location.split(".").length - 1
  9737. ].toLocaleUpperCase()
  9738. ) != -1
  9739. ) {
  9740. _type = 2;
  9741. } else if (
  9742. imgA.indexOf(
  9743. data.Location.split(".")[
  9744. data.Location.split(".").length - 1
  9745. ].toLocaleLowerCase()
  9746. ) != -1
  9747. ) {
  9748. _type = 13;
  9749. } else {
  9750. _type = 12;
  9751. }
  9752. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9753. itemTaskIndex
  9754. ].chapterData.push({
  9755. name: file.name,
  9756. url: data.Location,
  9757. uid: file.uid,
  9758. type: _type,
  9759. });
  9760. _this.imgChange1(null, null, _type, itemTaskIndex);
  9761. } else if (type == 2 || type == 3 || type == 12) {
  9762. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9763. itemTaskIndex
  9764. ].chapterData.push({
  9765. name: file.name,
  9766. url: data.Location,
  9767. uid: file.uid,
  9768. type: type,
  9769. });
  9770. _this.imgChange1(null, null, type, itemTaskIndex);
  9771. } else if (type == 4) {
  9772. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9773. itemTaskIndex
  9774. ].fileList1.push({
  9775. name: file.name,
  9776. url: data.Location,
  9777. uid: file.uid,
  9778. });
  9779. _this.imgChange1(null, null, type, itemTaskIndex);
  9780. } else if (type == 5) {
  9781. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9782. itemTaskIndex
  9783. ].homeworkList.push({
  9784. name: file.name,
  9785. url: data.Location,
  9786. uid: file.uid,
  9787. });
  9788. _this.imgChange1(null, null, type, itemTaskIndex);
  9789. }
  9790. console.log(data.Location);
  9791. }
  9792. });
  9793. }
  9794. },
  9795. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9796. // const loading = this.openLoading();
  9797. var file = event.target.files[0];
  9798. var credentials = {
  9799. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9800. secretAccessKey: "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",
  9801. }; //秘钥形式的登录上传
  9802. window.AWS.config.update(credentials);
  9803. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9804. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9805. var _this = this;
  9806. if (type == 3) {
  9807. var b = [
  9808. "DOC",
  9809. "DOCX",
  9810. "DOCM",
  9811. "DOTM",
  9812. "DOTX",
  9813. "PPTX",
  9814. "PPSX",
  9815. "PPT",
  9816. "PPS",
  9817. "PPTM",
  9818. "POTM",
  9819. "PPAM",
  9820. "POTX",
  9821. "PPSM",
  9822. ];
  9823. if (
  9824. b.indexOf(
  9825. file.name
  9826. .split(".")
  9827. [file.name.split(".").length - 1].toLocaleUpperCase()
  9828. ) != -1
  9829. ) {
  9830. if (file.size / 1024 / 1024 > 80) {
  9831. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9832. this.inputShow = true;
  9833. // var a = _this.$refs.upload1.uploadFiles;
  9834. // a.splice(a.length - 1, a.length);
  9835. // loading.close();
  9836. return;
  9837. }
  9838. } else if (
  9839. file.name
  9840. .split(".")
  9841. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9842. ) {
  9843. if (file.size / 1024 / 1024 > 80) {
  9844. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9845. this.inputShow = true;
  9846. // var a = _this.$refs.upload1.uploadFiles;
  9847. // a.splice(a.length - 1, a.length);
  9848. // loading.close();
  9849. return;
  9850. }
  9851. }
  9852. }
  9853. this.inputShow = false;
  9854. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9855. itemTaskIndex
  9856. ].progress = 0;
  9857. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9858. itemTaskIndex
  9859. ].proVisible = true;
  9860. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9861. itemTaskIndex
  9862. ].isFinishSize = 0;
  9863. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9864. itemTaskIndex
  9865. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9866. _this.$forceUpdate();
  9867. if (file) {
  9868. var params = {
  9869. Key:
  9870. file.name.split(".")[0] +
  9871. new Date().getTime() +
  9872. "." +
  9873. file.name.split(".")[file.name.split(".").length - 1],
  9874. ContentType: file.type,
  9875. Body: file,
  9876. "Access-Control-Allow-Credentials": "*",
  9877. ACL: "public-read",
  9878. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9879. var options = {
  9880. partSize: 2048 * 1024 * 1024,
  9881. queueSize: 2,
  9882. leavePartsOnError: true,
  9883. };
  9884. bucket
  9885. .upload(params, options)
  9886. .on("httpUploadProgress", function (evt) {
  9887. //这里可以写进度条
  9888. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9889. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9890. itemTaskIndex
  9891. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9892. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9893. itemTaskIndex
  9894. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9895. _this.$forceUpdate();
  9896. })
  9897. .send(function (err, data) {
  9898. // loading.close();
  9899. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9900. itemTaskIndex
  9901. ].progress = 100;
  9902. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9903. itemTaskIndex
  9904. ].isFinishSize =
  9905. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9906. itemTaskIndex
  9907. ].isAllSize;
  9908. _this.$forceUpdate();
  9909. setTimeout(() => {
  9910. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9911. itemTaskIndex
  9912. ].proVisible = false;
  9913. _this.$forceUpdate();
  9914. }, 1000);
  9915. _this.inputShow = true;
  9916. if (err) {
  9917. // var a = _this.$refs.upload1.uploadFiles;
  9918. // a.splice(a.length - 1, a.length);
  9919. _this.$message.error("上传失败");
  9920. } else {
  9921. if (type == 2 || type == 3) {
  9922. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9923. itemTaskIndex
  9924. ].chapterData.push({
  9925. name: file.name,
  9926. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9927. // itemTaskIndex
  9928. // ].chapterData.length+1),
  9929. url: data.Location,
  9930. uid: file.uid,
  9931. type: type,
  9932. text: string,
  9933. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9934. // itemTaskIndex
  9935. // ].chapterData.length + 1),
  9936. });
  9937. _this.imgChange1(null, null, type, itemTaskIndex);
  9938. } else if (type == 4) {
  9939. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9940. itemTaskIndex
  9941. ].fileList1.push({
  9942. name: file.name,
  9943. url: data.Location,
  9944. uid: file.uid,
  9945. });
  9946. _this.imgChange1(null, null, type, itemTaskIndex);
  9947. } else if (type == 5) {
  9948. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9949. itemTaskIndex
  9950. ].homeworkList.push({
  9951. name: file.name,
  9952. url: data.Location,
  9953. uid: file.uid,
  9954. });
  9955. _this.imgChange1(null, null, type, itemTaskIndex);
  9956. }
  9957. console.log(data.Location);
  9958. }
  9959. });
  9960. }
  9961. },
  9962. addunit() {
  9963. this.unitJson.push({
  9964. dyName: "", //单元标题
  9965. isUpdate: 1,
  9966. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9967. chapterInfo: [
  9968. {
  9969. isread: false,
  9970. chapterid: this.guid(),
  9971. title: "",
  9972. courseName: "",
  9973. taskJson: [
  9974. {
  9975. task: "",
  9976. taskDetail: "",
  9977. chapterData: [],
  9978. toolText: "",
  9979. toolChoose: [
  9980. {
  9981. tool: [],
  9982. toolDetail: "",
  9983. toolType: 0,
  9984. askCount: 1,
  9985. askTitle: "",
  9986. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9987. },
  9988. ],
  9989. isShowTools: false,
  9990. askCount: 1,
  9991. isFold: 1,
  9992. askTitle: "",
  9993. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9994. checkJson: [{ checkCount: [], checkPerent: [] }],
  9995. homeworkList: [],
  9996. },
  9997. ],
  9998. itemCount: 1,
  9999. fileList1: [],
  10000. video: [],
  10001. testData: [],
  10002. pData: [],
  10003. templateArray: [],
  10004. },
  10005. ],
  10006. });
  10007. this.addindex = this.unitJson.length - 1;
  10008. setTimeout(() => {
  10009. this.unitIndex = this.unitJson.length - 1;
  10010. this.unitSet(this.unitIndex);
  10011. }, 0);
  10012. },
  10013. addToolFun(itemTaskIndex) {
  10014. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10015. itemTaskIndex
  10016. ].toolChoose.push({
  10017. tool: [],
  10018. toolDetail: "",
  10019. toolType: 0,
  10020. askCount: 1,
  10021. askTitle: "",
  10022. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10023. });
  10024. },
  10025. addTaskBorder() {
  10026. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  10027. task: "",
  10028. taskDetail: "",
  10029. chapterData: [],
  10030. toolChoose: [
  10031. {
  10032. tool: [],
  10033. toolDetail: "",
  10034. toolType: 0,
  10035. askCount: 1,
  10036. askTitle: "",
  10037. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10038. },
  10039. ],
  10040. toolText: "",
  10041. isShowTools: false,
  10042. askCount: 1,
  10043. isFold: 1,
  10044. askTitle: "",
  10045. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10046. checkJson: [{ checkCount: [], checkPerent: [] }],
  10047. homeworkList: [],
  10048. });
  10049. },
  10050. add(e, i) {
  10051. var el = e.currentTarget;
  10052. el.getElementsByTagName("input")[0].click();
  10053. },
  10054. fold(i, e, type) {
  10055. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  10056. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  10057. } else {
  10058. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  10059. }
  10060. console.log(e);
  10061. },
  10062. fold2(i) {
  10063. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  10064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10065. i
  10066. ].isFold2 = false;
  10067. } else {
  10068. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  10069. }
  10070. setTimeout(() => {
  10071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail +=
  10072. "*0*%*";
  10073. setTimeout(() => {
  10074. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail =
  10075. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10076. i
  10077. ].taskDetail.replaceAll("*0*%*", "");
  10078. }, 0);
  10079. }, 0);
  10080. this.$forceUpdate();
  10081. },
  10082. foldC(i) {
  10083. if (
  10084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  10085. ) {
  10086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10087. i
  10088. ].isFoldchapter = false;
  10089. } else {
  10090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10091. i
  10092. ].isFoldchapter = true;
  10093. }
  10094. this.$forceUpdate();
  10095. },
  10096. fold3(i, ti) {
  10097. if (
  10098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  10099. .isFold3
  10100. ) {
  10101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  10102. ti
  10103. ].isFold3 = false;
  10104. } else {
  10105. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  10106. ti
  10107. ].isFold3 = true;
  10108. }
  10109. this.$forceUpdate();
  10110. },
  10111. deleteHomeworkBox(unitIndex, index, i) {
  10112. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  10113. this.taskCount
  10114. ].homeworkList.splice(i, 1);
  10115. },
  10116. getStudent() {
  10117. let params = {
  10118. oid: this.oid,
  10119. cu: "",
  10120. cn: this.searchPeople,
  10121. };
  10122. this.ajax
  10123. .get(this.$store.state.api + "selectStudentAdd", params)
  10124. .then((res) => {
  10125. this.studentJuri = res.data[0];
  10126. })
  10127. .catch((err) => {
  10128. this.isLoading = false;
  10129. console.error(err);
  10130. });
  10131. },
  10132. getTeacher() {
  10133. let params = {
  10134. oid:
  10135. this.org && this.org != "undefined" && this.org != "null"
  10136. ? this.org
  10137. : this.oid,
  10138. cu: "",
  10139. cn: this.searchTN,
  10140. };
  10141. this.ajax
  10142. .get(
  10143. this.$store.state.api +
  10144. (this.org && this.org != "undefined" && this.org != "null"
  10145. ? "selectTeacherAddOrg"
  10146. : "selectTeacherAdd"),
  10147. params
  10148. )
  10149. .then((res) => {
  10150. let teacherJuri = res.data[0];
  10151. for (var i = 0; i < teacherJuri.length; i++) {
  10152. if (teacherJuri[i].userid == this.userid) {
  10153. teacherJuri.splice(i, 1);
  10154. break;
  10155. }
  10156. }
  10157. this.teacherJuri = teacherJuri;
  10158. })
  10159. .catch((err) => {
  10160. console.error(err);
  10161. });
  10162. },
  10163. searchStudent() {
  10164. this.getStudent();
  10165. },
  10166. selectGrage() {
  10167. let params = {
  10168. oid: this.oid,
  10169. };
  10170. this.ajax
  10171. .get(this.$store.state.api + "selectGrageBySchool", params)
  10172. .then((res) => {
  10173. this.gradeList = res.data[0];
  10174. })
  10175. .catch((err) => {
  10176. this.isLoading = false;
  10177. console.error(err);
  10178. });
  10179. },
  10180. //获取班级列表
  10181. getClass() {
  10182. let params = {
  10183. oid: this.oid,
  10184. gid: this.gradeId,
  10185. cn: this.classSearch,
  10186. };
  10187. this.ajax
  10188. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  10189. .then((res) => {
  10190. if (!this.grade.length) {
  10191. this.grade = res.data[0];
  10192. }
  10193. this.grade2 = res.data[0];
  10194. this.classJuri = res.data[0];
  10195. let _check = [];
  10196. let _check2 = [];
  10197. for (var i = 0; i < this.grade2.length; i++) {
  10198. var gid = this.grade2[i].id;
  10199. _check.push(gid);
  10200. }
  10201. for (var i = 0; i < this.checkboxList2.length; i++) {
  10202. var _id = this.checkboxList2[i];
  10203. if (_check.indexOf(_id) !== -1) {
  10204. _check2.push(_id);
  10205. }
  10206. }
  10207. this.checkAll = _check2.length === _check.length;
  10208. })
  10209. .catch((err) => {
  10210. this.isLoading = false;
  10211. console.error(err);
  10212. });
  10213. },
  10214. CourseType2Change(val) {
  10215. this.pTypeCheck = [];
  10216. for (var i = 0; i < this.CourseType2.length; i++) {
  10217. let typeA = this.CourseType2[i];
  10218. if (val.indexOf(typeA.name) != -1) {
  10219. this.pTypeCheck.push(...typeA.id);
  10220. }
  10221. }
  10222. },
  10223. getChapterData(e, i, j, ic, type) {
  10224. e.stopPropagation();
  10225. this.updataC = true;
  10226. this.icc = ic;
  10227. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  10228. console.log("还不能下载图片喔");
  10229. }
  10230. },
  10231. deleteChapterData(e, i, j, ic, taskI) {
  10232. e.stopPropagation();
  10233. let _this = this;
  10234. _this
  10235. .$confirm("确定删除此项?", "提示", {
  10236. confirmButtonText: "确定",
  10237. cancelButtonText: "取消",
  10238. type: "warning",
  10239. })
  10240. .then(() => {
  10241. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  10242. ic,
  10243. 1
  10244. );
  10245. })
  10246. .catch(() => {
  10247. return;
  10248. });
  10249. },
  10250. updataVideoT(e, i, j, ic) {
  10251. // e.stopPropagation();
  10252. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  10253. // ic
  10254. // ].name = JSON.parse(JSON.stringify(e.target.value));
  10255. this.line =
  10256. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  10257. this.taskCount = j;
  10258. this.lineCount = ic;
  10259. this.dialogVisibleupdataVideoT = true;
  10260. this.$forceUpdate();
  10261. },
  10262. updataVideoC() {
  10263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10264. this.taskCount
  10265. ].chapterData[this.lineCount].name = JSON.parse(
  10266. JSON.stringify(this.line)
  10267. );
  10268. this.dialogVisibleupdataVideoT = false;
  10269. this.$forceUpdate();
  10270. },
  10271. upCd(e, i, j, taskCount, ic) {
  10272. e.stopPropagation();
  10273. if (ic == 0) {
  10274. return;
  10275. }
  10276. var a = JSON.parse(
  10277. JSON.stringify(
  10278. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10279. ic - 1
  10280. ]
  10281. )
  10282. );
  10283. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  10284. JSON.parse(
  10285. JSON.stringify(
  10286. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10287. )
  10288. );
  10289. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10290. this.$forceUpdate();
  10291. },
  10292. downCd(e, i, j, taskCount, ic) {
  10293. e.stopPropagation();
  10294. if (
  10295. ic ==
  10296. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  10297. 1
  10298. ) {
  10299. return;
  10300. }
  10301. var a = JSON.parse(
  10302. JSON.stringify(
  10303. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10304. ic + 1
  10305. ]
  10306. )
  10307. );
  10308. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  10309. JSON.parse(
  10310. JSON.stringify(
  10311. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10312. )
  10313. );
  10314. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10315. this.$forceUpdate();
  10316. },
  10317. async upTool(e, i, j, tooli) {
  10318. e.stopPropagation();
  10319. if (tooli == 0) {
  10320. return;
  10321. }
  10322. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  10323. let count2 = await this.getWorksCount(3, i, j, tooli)
  10324. if(count1 > 0 || count2 > 0){
  10325. this.$confirm(
  10326. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10327. "提示",
  10328. {
  10329. confirmButtonText: "确定",
  10330. cancelButtonText: "取消",
  10331. type: "warning",
  10332. }
  10333. )
  10334. .then(() => {
  10335. var a = JSON.parse(
  10336. JSON.stringify(
  10337. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  10338. )
  10339. );
  10340. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10341. JSON.parse(
  10342. JSON.stringify(
  10343. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10344. )
  10345. );
  10346. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10347. this.$forceUpdate();
  10348. })
  10349. .catch(() => {
  10350. return;
  10351. });
  10352. }else{
  10353. var a = JSON.parse(
  10354. JSON.stringify(
  10355. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  10356. )
  10357. );
  10358. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10359. JSON.parse(
  10360. JSON.stringify(
  10361. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10362. )
  10363. );
  10364. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10365. this.$forceUpdate();
  10366. }
  10367. },
  10368. async downTool(e, i, j, tooli) {
  10369. e.stopPropagation();
  10370. if (
  10371. tooli ==
  10372. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  10373. ) {
  10374. return;
  10375. }
  10376. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  10377. let count2 = await this.getWorksCount(3, i, j, tooli)
  10378. if(count1 > 0 || count2 > 0){
  10379. this.$confirm(
  10380. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10381. "提示",
  10382. {
  10383. confirmButtonText: "确定",
  10384. cancelButtonText: "取消",
  10385. type: "warning",
  10386. }
  10387. )
  10388. .then(() => {
  10389. var a = JSON.parse(
  10390. JSON.stringify(
  10391. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10392. )
  10393. );
  10394. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10395. JSON.parse(
  10396. JSON.stringify(
  10397. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10398. )
  10399. );
  10400. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10401. this.$forceUpdate();
  10402. })
  10403. .catch(() => {
  10404. return;
  10405. });
  10406. }else{
  10407. var a = JSON.parse(
  10408. JSON.stringify(
  10409. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10410. )
  10411. );
  10412. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10413. JSON.parse(
  10414. JSON.stringify(
  10415. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10416. )
  10417. );
  10418. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10419. this.$forceUpdate();
  10420. }
  10421. },
  10422. addWork() {
  10423. let cPan = 1;
  10424. for (var i = 0; i < this.unitJson.length; i++) {
  10425. for (
  10426. var j = 0;
  10427. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10428. j++
  10429. ) {
  10430. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10431. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10432. if (
  10433. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10434. ) {
  10435. for (
  10436. var z = 0;
  10437. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10438. z++
  10439. ) {
  10440. if (
  10441. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10442. .length
  10443. ) {
  10444. this.$message.error("请把工具添加完整");
  10445. cPan = 2;
  10446. break;
  10447. }
  10448. }
  10449. }
  10450. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10451. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10452. i
  10453. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10454. return ele.value != "";
  10455. });
  10456. }
  10457. }
  10458. }
  10459. this.inputShow = true;
  10460. if (cPan == 2) {
  10461. return;
  10462. }
  10463. for (var i = 0; i < this.unitJson.length; i++) {
  10464. delete this.unitJson[i].isUpdate;
  10465. }
  10466. let params = [
  10467. {
  10468. uid: this.userid,
  10469. title: this.courseName,
  10470. brief: this.courseText,
  10471. cover:
  10472. this.cover.length > 0
  10473. ? JSON.stringify(this.cover)
  10474. : JSON.stringify([
  10475. {
  10476. name: "noBanner.jpg",
  10477. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10478. uid: 1656409780264,
  10479. status: "success",
  10480. },
  10481. ]),
  10482. evaId: this.evalua,
  10483. astudent:
  10484. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10485. see: this.isTeacherSee == true ? 1 : 0,
  10486. chapters: JSON.stringify(this.unitJson),
  10487. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10488. courseType: JSON.stringify(this.courseTypeId),
  10489. ateacher:
  10490. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10491. inviteCode: JSON.stringify(this.inviteCode),
  10492. },
  10493. ];
  10494. this.ajax
  10495. .post(this.$store.state.api + "addWorkNew2E", params)
  10496. .then((res) => {
  10497. console.log(this.steps);
  10498. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10499. this.$message({
  10500. message: "新增成功",
  10501. type: "success",
  10502. });
  10503. // }
  10504. this.number = res.data.ordernumber;
  10505. this.courseId = res.data.courseId;
  10506. this.cid = res.data.courseId;
  10507. this.courseUserid = this.userid;
  10508. this.islogin = true;
  10509. this.steps = 4;
  10510. })
  10511. .catch((err) => {
  10512. this.$message.error("网络不佳");
  10513. console.error(err);
  10514. });
  10515. },
  10516. goCourse() {
  10517. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  10518. },
  10519. updateWork2() {
  10520. let _unitIndex = this.unitIndex;
  10521. let cPan = 1;
  10522. for (
  10523. var j = 0;
  10524. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10525. j++
  10526. ) {
  10527. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10528. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10529. j
  10530. ].proVisible2 = false;
  10531. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10532. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10533. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10534. (ele) => {
  10535. return ele.value != "";
  10536. }
  10537. );
  10538. }
  10539. }
  10540. this.inputShow = true;
  10541. if (cPan == 2) {
  10542. return;
  10543. }
  10544. let params = [
  10545. {
  10546. cid: this.cid,
  10547. chapters: JSON.stringify(this.unitJson),
  10548. uid: this.userid,
  10549. unitIndex: _unitIndex,
  10550. },
  10551. ];
  10552. this.ajax
  10553. .post(this.$store.state.api + "updateWorkNew4", params)
  10554. .then((res) => {
  10555. this.$message({
  10556. message: "修改成功",
  10557. type: "success",
  10558. });
  10559. this.courseId = this.cid;
  10560. })
  10561. .catch((err) => {
  10562. this.$message.error("网络不佳");
  10563. console.error(err);
  10564. });
  10565. },
  10566. updateWork() {
  10567. let cPan = 1;
  10568. for (var i = 0; i < this.unitJson.length; i++) {
  10569. for (
  10570. var j = 0;
  10571. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10572. j++
  10573. ) {
  10574. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10575. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10576. if (
  10577. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10578. ) {
  10579. for (
  10580. var z = 0;
  10581. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10582. z++
  10583. ) {
  10584. if (
  10585. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10586. .length
  10587. ) {
  10588. this.$message.error("请把工具添加完整");
  10589. cPan = 2;
  10590. break;
  10591. }
  10592. }
  10593. }
  10594. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10595. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10596. i
  10597. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10598. return ele.value != "";
  10599. });
  10600. }
  10601. }
  10602. }
  10603. this.inputShow = true;
  10604. if (cPan == 2) {
  10605. this.step--;
  10606. return;
  10607. }
  10608. for (var i = 0; i < this.unitJson.length; i++) {
  10609. delete this.unitJson[i].isUpdate;
  10610. }
  10611. let params = [
  10612. {
  10613. cid: this.cid,
  10614. title: this.courseName,
  10615. brief: this.courseText,
  10616. cover:
  10617. this.cover.length > 0
  10618. ? JSON.stringify(this.cover)
  10619. : JSON.stringify([
  10620. {
  10621. name: "noBanner.jpg",
  10622. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10623. uid: 1656409780264,
  10624. status: "success",
  10625. },
  10626. ]),
  10627. evaId: this.evalua,
  10628. astudent:
  10629. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10630. see: this.isTeacherSee == true ? 1 : 0,
  10631. chapters: JSON.stringify(this.unitJson),
  10632. template: this.myWord != "undefined" ? this.myWord : [],
  10633. uid: this.userid,
  10634. courseType: JSON.stringify(this.courseTypeId),
  10635. ateacher:
  10636. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10637. inviteCode: JSON.stringify(this.inviteCode),
  10638. },
  10639. ];
  10640. this.ajax
  10641. .post(this.$store.state.api + "updateWorkNew2", params)
  10642. .then((res) => {
  10643. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10644. if (this.cidType == 1) {
  10645. this.$message({
  10646. message: "修改成功",
  10647. type: "success",
  10648. });
  10649. } else {
  10650. this.$message({
  10651. message: "新增成功",
  10652. type: "success",
  10653. });
  10654. }
  10655. // }
  10656. this.number = this.nbOrder;
  10657. this.courseId = this.cid;
  10658. this.steps = 4;
  10659. })
  10660. .catch((err) => {
  10661. this.$message.error("网络不佳");
  10662. console.error(err);
  10663. });
  10664. },
  10665. guid() {
  10666. var _num,
  10667. i,
  10668. _guid = "";
  10669. for (i = 0; i < 32; i++) {
  10670. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  10671. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  10672. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  10673. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  10674. _guid += "-";
  10675. }
  10676. }
  10677. return _guid;
  10678. },
  10679. insertWord() {
  10680. this.dialogVisible1 = true;
  10681. this.updateBoolean2 = false;
  10682. this.tTitle = "";
  10683. this.tdetail = "";
  10684. },
  10685. addWord() {
  10686. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10687. name: this.tTitle,
  10688. content: this.tdetail,
  10689. uid: this.guid(),
  10690. });
  10691. this.dialogVisible1 = false;
  10692. },
  10693. upWord() {},
  10694. selectWord(uid, i, c) {
  10695. this.dialogVisible1 = true;
  10696. this.updateBoolean2 = true;
  10697. if (
  10698. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10699. ) {
  10700. this.tTitle =
  10701. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10702. this.tdetail =
  10703. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10704. }
  10705. },
  10706. isAddPP() {
  10707. if (this.checkboxList.length > 0) {
  10708. this.$message({
  10709. message: "添加成功",
  10710. type: "success",
  10711. });
  10712. this.dialogVisible3 = false;
  10713. } else {
  10714. this.$message({
  10715. message: "请添加课程成员",
  10716. type: "error",
  10717. });
  10718. }
  10719. },
  10720. isAddClass() {
  10721. this.dialogVisibleClass = false;
  10722. },
  10723. isAddPPTeacher() {
  10724. this.dialogVisibleMember = false;
  10725. this.setMan();
  10726. },
  10727. getTemplate() {
  10728. this.ajax
  10729. .get(this.$store.state.api + "getCourseTemplateT", "")
  10730. .then((res) => {
  10731. this.templateArray = res.data[0];
  10732. this.getTemplateOid();
  10733. this.$forceUpdate();
  10734. })
  10735. .catch((err) => {});
  10736. },
  10737. getTemplateOid() {
  10738. let params = {
  10739. oid: this.oid,
  10740. };
  10741. this.ajax
  10742. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10743. .then((res) => {
  10744. if (res.data[0].length) {
  10745. this.templateArray = [...res.data[0], ...this.templateArray];
  10746. }
  10747. this.getTemplateOrg();
  10748. this.$forceUpdate();
  10749. })
  10750. .catch((err) => {});
  10751. },
  10752. getTemplateOrg() {
  10753. let params = {
  10754. oid: this.org,
  10755. };
  10756. this.ajax
  10757. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10758. .then((res) => {
  10759. if (res.data[0].length) {
  10760. this.templateArray = [...res.data[0], ...this.templateArray];
  10761. }
  10762. this.$forceUpdate();
  10763. })
  10764. .catch((err) => {});
  10765. },
  10766. clearChoose() {
  10767. this.clearArray.splice(this.templateC.id, 1);
  10768. this.dialogVisible2 = false;
  10769. },
  10770. clearAttText() {
  10771. this.AttText = {
  10772. title: "",
  10773. text: "",
  10774. };
  10775. this.dialogVisible6 = false;
  10776. },
  10777. clearLine() {
  10778. this.line = "";
  10779. this.dialogVisible7 = false;
  10780. },
  10781. checkTemplate(res) {
  10782. let _this = this;
  10783. _this
  10784. .$confirm("确定选择此模板吗?", "提示", {
  10785. confirmButtonText: "确定",
  10786. cancelButtonText: "取消",
  10787. type: "warning",
  10788. })
  10789. .then(() => {
  10790. _this.unitJson = JSON.parse(res.chapters);
  10791. _this.steps++;
  10792. setTimeout(() => {
  10793. this.checkEva(this.checkId);
  10794. }, 1000);
  10795. })
  10796. .catch(() => {
  10797. return;
  10798. });
  10799. },
  10800. checkTemplate1(w) {
  10801. this.steps++;
  10802. },
  10803. checkTemplate2() {
  10804. let _this = this;
  10805. _this
  10806. .$confirm("确定选择空模板吗?", "提示", {
  10807. confirmButtonText: "确定",
  10808. cancelButtonText: "取消",
  10809. type: "warning",
  10810. })
  10811. .then(() => {
  10812. _this.unitIndex = 0;
  10813. _this.unitJson = [
  10814. {
  10815. dyName: "", //单元标题
  10816. chapterInfo: [
  10817. {
  10818. isread: false,
  10819. chapterid: this.guid(),
  10820. title: "",
  10821. courseName: "",
  10822. taskJson: [
  10823. {
  10824. task: "",
  10825. taskDetail: "",
  10826. chapterData: [],
  10827. toolText: "",
  10828. toolChoose: [
  10829. {
  10830. tool: [],
  10831. toolDetail: "",
  10832. toolType: 0,
  10833. askCount: 1,
  10834. askTitle: "",
  10835. askJson: [
  10836. { askstitle: "", askItem: 1, checkList: [] },
  10837. ],
  10838. },
  10839. ],
  10840. isShowTools: false,
  10841. askCount: 1,
  10842. isFold: 1,
  10843. askTitle: "",
  10844. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10845. checkJson: [{ checkCount: [], checkPerent: [] }],
  10846. homeworkList: [],
  10847. },
  10848. ],
  10849. itemCount: 1,
  10850. fileList1: [],
  10851. video: [],
  10852. testData: [],
  10853. pData: [],
  10854. templateArray: [],
  10855. },
  10856. ],
  10857. },
  10858. ];
  10859. this.steps++;
  10860. this.updateWork();
  10861. })
  10862. .catch(() => {
  10863. return;
  10864. });
  10865. },
  10866. checkTemplate3() {
  10867. let _this = this;
  10868. _this
  10869. .$confirm("确定选择简易模式吗?", "提示", {
  10870. confirmButtonText: "确定",
  10871. cancelButtonText: "取消",
  10872. type: "warning",
  10873. })
  10874. .then(() => {
  10875. _this.unitIndex = 0;
  10876. _this.unitJson = [
  10877. {
  10878. dyName: "", //单元标题
  10879. easy: 1,
  10880. chapterInfo: [
  10881. {
  10882. isread: false,
  10883. chapterid: this.guid(),
  10884. title: "",
  10885. courseName: "",
  10886. taskJson: [
  10887. {
  10888. task: "",
  10889. taskDetail: "",
  10890. chapterData: [],
  10891. toolText: "",
  10892. toolChoose: [
  10893. {
  10894. tool: [],
  10895. toolDetail: "",
  10896. toolType: 0,
  10897. askCount: 1,
  10898. askTitle: "",
  10899. askJson: [
  10900. { askstitle: "", askItem: 1, checkList: [] },
  10901. ],
  10902. },
  10903. ],
  10904. isShowTools: false,
  10905. askCount: 1,
  10906. isFold: 1,
  10907. askTitle: "",
  10908. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10909. checkJson: [{ checkCount: [], checkPerent: [] }],
  10910. homeworkList: [],
  10911. },
  10912. ],
  10913. itemCount: 1,
  10914. fileList1: [],
  10915. video: [],
  10916. testData: [],
  10917. pData: [],
  10918. templateArray: [],
  10919. },
  10920. ],
  10921. },
  10922. ];
  10923. this.steps++;
  10924. this.updateWork();
  10925. })
  10926. .catch(() => {
  10927. return;
  10928. });
  10929. },
  10930. checkTemplate4() {
  10931. let _this = this;
  10932. _this
  10933. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  10934. confirmButtonText: "确定",
  10935. cancelButtonText: "取消",
  10936. type: "warning",
  10937. })
  10938. .then(() => {
  10939. _this.unitIndex = 0;
  10940. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  10941. this.steps++;
  10942. this.updateWork();
  10943. })
  10944. .catch(() => {
  10945. return;
  10946. });
  10947. },
  10948. wordNext() {
  10949. this.dialogVisible2 = false;
  10950. },
  10951. isAddOrUpdateAttText() {
  10952. if (this.AttTextType == 0) {
  10953. this.addAttTextMessage();
  10954. } else {
  10955. this.updateAttText();
  10956. }
  10957. },
  10958. isAddOrUpdateLine() {
  10959. if (!this.lineTitle) {
  10960. this.$message.error("请填写链接标题");
  10961. return;
  10962. }
  10963. if (this.lineType == 0) {
  10964. this.addLine();
  10965. } else {
  10966. this.updateLine();
  10967. }
  10968. },
  10969. addAttTextMessage() {
  10970. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10971. this.taskCount
  10972. ].chapterData.push({
  10973. name: this.AttText.title,
  10974. url: this.AttText.text,
  10975. type: 6,
  10976. });
  10977. this.imgChange1(null, null, 6, this.taskCount);
  10978. this.dialogVisible6 = false;
  10979. },
  10980. selectAttText(itemTaskIndex, i) {
  10981. this.AttText.title =
  10982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10983. itemTaskIndex
  10984. ].chapterData[i].name;
  10985. this.AttText.text =
  10986. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10987. itemTaskIndex
  10988. ].chapterData[i].url;
  10989. this.taskCount = itemTaskIndex;
  10990. this.AttTextIndex = i;
  10991. this.AttTextType = 1;
  10992. this.dialogVisible6 = true;
  10993. },
  10994. updateAttText() {
  10995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10996. this.taskCount
  10997. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  10998. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10999. this.taskCount
  11000. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  11001. this.dialogVisible6 = false;
  11002. },
  11003. addLine() {
  11004. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11005. this.lineCount
  11006. ].chapterData.push({
  11007. name: "链接",
  11008. title: this.lineTitle,
  11009. url: this.line,
  11010. type: 8,
  11011. });
  11012. this.imgChange1(null, null, 8, this.lineCount);
  11013. this.dialogVisible7 = false;
  11014. },
  11015. selectLine(itemTaskIndex, i) {
  11016. this.line =
  11017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11018. itemTaskIndex
  11019. ].chapterData[i].url;
  11020. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11021. itemTaskIndex
  11022. ].chapterData[i].title
  11023. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11024. .chapterData[i].title
  11025. : "";
  11026. this.taskCount = itemTaskIndex;
  11027. this.lineCount = i;
  11028. this.lineType = 1;
  11029. this.dialogVisible7 = true;
  11030. },
  11031. openUpdateSource(itemTaskIndex, i) {
  11032. this.sourceData = {};
  11033. let source =
  11034. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11035. .chapterData[i];
  11036. this.sourceData[source.id] = {};
  11037. this.sourceData[source.id].name = source.title;
  11038. this.sourceData[source.id].url = source.url;
  11039. this.dialogVisibleSource = true;
  11040. this.updateSourcePan = true;
  11041. this.taskCount = itemTaskIndex;
  11042. this.lineCount = i;
  11043. },
  11044. updateLine() {
  11045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11046. this.taskCount
  11047. ].chapterData[this.lineCount].url = this.line;
  11048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11049. this.taskCount
  11050. ].chapterData[this.lineCount].title = this.lineTitle;
  11051. this.dialogVisible7 = false;
  11052. },
  11053. addPP() {
  11054. this.dialogVisible3 = true;
  11055. },
  11056. goTo(path) {
  11057. this.$router.push(path);
  11058. },
  11059. openTools(itemTaskIndex, i, toolIndex) {
  11060. this.toolIndex = toolIndex;
  11061. this.taskCount = itemTaskIndex;
  11062. if (i == 4) {
  11063. if (toolIndex == null) {
  11064. var a =
  11065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11066. .chapterData;
  11067. for (var i = 0; i < a.length; i++) {
  11068. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  11069. this.askJson =
  11070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11071. itemTaskIndex
  11072. ].chapterData[i].askJson;
  11073. }
  11074. }
  11075. } else {
  11076. this.askJson = JSON.parse(
  11077. JSON.stringify(
  11078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11079. itemTaskIndex
  11080. ].toolChoose[toolIndex]
  11081. )
  11082. );
  11083. }
  11084. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  11085. this.dialogVisible5 = true;
  11086. } else if (i == 45) {
  11087. if (
  11088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11089. .toolChoose[toolIndex].testJson
  11090. ) {
  11091. this.testJson = JSON.parse(
  11092. JSON.stringify(
  11093. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11094. itemTaskIndex
  11095. ].toolChoose[toolIndex].testJson
  11096. )
  11097. );
  11098. } else {
  11099. var testJson = {
  11100. testCount: 1,
  11101. testTitle: "",
  11102. testJson: [
  11103. {
  11104. teststitle: "",
  11105. testItem: 1,
  11106. checkList: [],
  11107. timuList: [],
  11108. answer: [],
  11109. type: "1",
  11110. },
  11111. ],
  11112. };
  11113. this.testJson = testJson;
  11114. }
  11115. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  11116. this.dialogVisibleChoice = true;
  11117. } else if (i == 47) {
  11118. if (
  11119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11120. .toolChoose[toolIndex].sentenceList
  11121. ) {
  11122. this.sentenceList = JSON.parse(
  11123. JSON.stringify(
  11124. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11125. itemTaskIndex
  11126. ].toolChoose[toolIndex].sentenceList
  11127. )
  11128. );
  11129. } else {
  11130. var sentenceList = [
  11131. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11132. ];
  11133. this.sentenceList = sentenceList;
  11134. }
  11135. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11136. this.dialogVisibleSentence = true;
  11137. } else if (i == 48) {
  11138. if (
  11139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11140. .toolChoose[toolIndex].tableJson
  11141. ) {
  11142. this.tableJson = JSON.parse(
  11143. JSON.stringify(
  11144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11145. itemTaskIndex
  11146. ].toolChoose[toolIndex].tableJson
  11147. )
  11148. );
  11149. } else {
  11150. var tableJson = { text: "" };
  11151. this.tableJson = tableJson;
  11152. }
  11153. this.dialogVisibleTable = true;
  11154. } else if (i == 52) {
  11155. if (
  11156. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11157. .toolChoose[toolIndex].wordJson
  11158. ) {
  11159. this.wordJson = JSON.parse(
  11160. JSON.stringify(
  11161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11162. itemTaskIndex
  11163. ].toolChoose[toolIndex].wordJson
  11164. )
  11165. );
  11166. } else {
  11167. var wordJson = { text: "" };
  11168. this.wordJson = wordJson;
  11169. }
  11170. this.dialogVisibleWord = true;
  11171. // else if (i == 50) {
  11172. // if (
  11173. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11174. // .toolChoose[toolIndex].uploadJson
  11175. // ) {
  11176. // this.uploadJson = JSON.parse(
  11177. // JSON.stringify(
  11178. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11179. // itemTaskIndex
  11180. // ].toolChoose[toolIndex].uploadJson
  11181. // )
  11182. // );
  11183. // } else {
  11184. // var uploadJson = [];
  11185. // this.uploadJson = uploadJson;
  11186. // }
  11187. // this.dialogVisibleMoreUpload = true;
  11188. // }
  11189. } else if (i == 10) {
  11190. if (
  11191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11192. .toolChoose[toolIndex].preTime
  11193. ) {
  11194. this.preTime = JSON.parse(
  11195. JSON.stringify(
  11196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11197. itemTaskIndex
  11198. ].toolChoose[toolIndex].preTime
  11199. )
  11200. );
  11201. } else {
  11202. var preTime = 0;
  11203. this.preTime = preTime;
  11204. }
  11205. this.dialogVisiblePreTime = true;
  11206. } else if (i == 49) {
  11207. if (
  11208. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11209. .toolChoose[toolIndex].groupJson
  11210. ) {
  11211. this.groupJson = JSON.parse(
  11212. JSON.stringify(
  11213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11214. itemTaskIndex
  11215. ].toolChoose[toolIndex].groupJson
  11216. )
  11217. );
  11218. } else {
  11219. var groupJson = {
  11220. group: [{ name: "第1组" }],
  11221. number: undefined,
  11222. islock: 1,
  11223. };
  11224. this.groupJson = groupJson;
  11225. }
  11226. this.dialogVisibleGroup = true;
  11227. } else if (i == 62) {
  11228. if (
  11229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11230. .toolChoose[toolIndex].videoJson
  11231. ) {
  11232. this.videoJson = JSON.parse(
  11233. JSON.stringify(
  11234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11235. itemTaskIndex
  11236. ].toolChoose[toolIndex].videoJson
  11237. )
  11238. );
  11239. } else {
  11240. var videoJson = {
  11241. video: "",
  11242. setting: [],
  11243. };
  11244. this.videoJson = videoJson;
  11245. }
  11246. this.dialogVisibleVideo = true;
  11247. } else if (i == 15) {
  11248. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11249. itemTaskIndex
  11250. ].toolChoose[toolIndex].answerQ
  11251. ? JSON.parse(
  11252. JSON.stringify(
  11253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11254. itemTaskIndex
  11255. ].toolChoose[toolIndex].answerQ
  11256. )
  11257. )
  11258. : "";
  11259. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11260. this.dialogVisible8 = true;
  11261. } else if (i == 40) {
  11262. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11263. itemTaskIndex
  11264. ].toolChoose[toolIndex].rateJson
  11265. ? JSON.parse(
  11266. JSON.stringify(
  11267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11268. itemTaskIndex
  11269. ].toolChoose[toolIndex].rateJson
  11270. )
  11271. )
  11272. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11273. this.selectSteps = 1;
  11274. this.dialogVisibleRate = true;
  11275. } else if (i == 42) {
  11276. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11277. itemTaskIndex
  11278. ].toolChoose[toolIndex].answerQ
  11279. ? JSON.parse(
  11280. JSON.stringify(
  11281. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11282. itemTaskIndex
  11283. ].toolChoose[toolIndex].answerQ
  11284. )
  11285. )
  11286. : "";
  11287. this.dialogVisibleMp3 = true;
  11288. } else if (i == 41) {
  11289. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11290. itemTaskIndex
  11291. ].toolChoose[toolIndex].selectJson
  11292. ? JSON.parse(
  11293. JSON.stringify(
  11294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11295. itemTaskIndex
  11296. ].toolChoose[toolIndex].selectJson
  11297. )
  11298. )
  11299. : { url: "", select: [], answer: [] };
  11300. this.selectSteps = 1;
  11301. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11302. this.dialogVisibleSelect = true;
  11303. } else if (i == 3) {
  11304. if (!this.cid) {
  11305. this.$message.error(
  11306. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  11307. );
  11308. return;
  11309. }
  11310. window.parent.postMessage(
  11311. {
  11312. tools: "3y",
  11313. cid: this.cid,
  11314. stage: this.unitIndex,
  11315. task: itemTaskIndex,
  11316. tool: toolIndex,
  11317. },
  11318. "*"
  11319. );
  11320. } else if (i == 1) {
  11321. if (!this.cid) {
  11322. this.$message.error(
  11323. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  11324. );
  11325. return;
  11326. }
  11327. window.parent.postMessage(
  11328. {
  11329. tools: "1y",
  11330. cid: this.cid,
  11331. stage: this.unitIndex,
  11332. task: itemTaskIndex,
  11333. tool: toolIndex,
  11334. },
  11335. "*"
  11336. );
  11337. } else if (i == 57) {
  11338. if (!this.cid) {
  11339. this.$message.error(
  11340. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  11341. );
  11342. return;
  11343. }
  11344. window.parent.postMessage(
  11345. {
  11346. tools: "57y",
  11347. cid: this.cid,
  11348. stage: this.unitIndex,
  11349. task: itemTaskIndex,
  11350. tool: toolIndex,
  11351. },
  11352. "*"
  11353. );
  11354. } else if (i == 69) {
  11355. this.englishList = {};
  11356. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11357. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11358. ? JSON.parse(
  11359. JSON.stringify(
  11360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11361. itemTaskIndex
  11362. ].toolChoose[toolIndex].englishList
  11363. )
  11364. )
  11365. : {};
  11366. this.$forceUpdate();
  11367. this.englishDialogVisible = true;
  11368. }
  11369. },
  11370. chapAddTools(i) {
  11371. if (this.chapTools[0].tools.length == 0) {
  11372. this.chapTools[0].tools.push(i);
  11373. } else {
  11374. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11375. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11376. } else {
  11377. this.chapTools[0].tools.push(i);
  11378. }
  11379. }
  11380. this.$forceUpdate();
  11381. },
  11382. addChaptersDataTools() {
  11383. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11384. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11385. this.chapCount
  11386. ].chapterData.push({
  11387. name: this.chapTools[0].toolDetail,
  11388. url: this.chapTools[0].tools,
  11389. type: 7,
  11390. askJson: this.askJson,
  11391. });
  11392. } else {
  11393. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11394. this.chapCount
  11395. ].chapterData.push({
  11396. name: this.chapTools[0].toolDetail,
  11397. url: this.chapTools[0].tools,
  11398. type: 7,
  11399. });
  11400. }
  11401. this.imgChange1(null, null, 7, this.chapCount);
  11402. this.dialogVisible4 = false;
  11403. },
  11404. addTools(i, itemTaskIndex, toolIndex) {
  11405. // if (
  11406. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11407. // .toolChoose[toolIndex].tool.length == 0
  11408. // ) {
  11409. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11410. // itemTaskIndex
  11411. // ].toolChoose[toolIndex].tool.push(i);
  11412. // } else {
  11413. // if (
  11414. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11415. // itemTaskIndex
  11416. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11417. // ) {
  11418. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11419. // itemTaskIndex
  11420. // ].toolChoose[toolIndex].tool.splice(
  11421. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11422. // itemTaskIndex
  11423. // ].toolChoose[toolIndex].tool.indexOf(i),
  11424. // 1
  11425. // );
  11426. // } else {
  11427. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11428. // itemTaskIndex
  11429. // ].toolChoose[toolIndex].tool.push(i);
  11430. // }
  11431. // console.log(
  11432. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11433. // .toolChoose[toolIndex].tool
  11434. // );
  11435. // }
  11436. if (i == 4) {
  11437. if (
  11438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11439. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11441. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11443. .toolChoose[toolIndex].askJson[0].checkList < 2
  11444. ) {
  11445. this.openTools(itemTaskIndex, 4, toolIndex);
  11446. // this.$message({
  11447. // message: "请填写完整问卷内容",
  11448. // type: "error",
  11449. // });
  11450. return;
  11451. }
  11452. }
  11453. if (i == 45) {
  11454. if (
  11455. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11456. .toolChoose[toolIndex].testJson ||
  11457. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11458. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11460. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11461. ) {
  11462. this.openTools(itemTaskIndex, 45, toolIndex);
  11463. // this.$message({
  11464. // message: "请填写完整问卷内容",
  11465. // type: "error",
  11466. // });
  11467. return;
  11468. }
  11469. }
  11470. if (i == 47) {
  11471. if (
  11472. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11473. .toolChoose[toolIndex].sentenceList ||
  11474. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11475. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11476. ) {
  11477. this.openTools(itemTaskIndex, 47, toolIndex);
  11478. return;
  11479. }
  11480. }
  11481. if (i == 69) {
  11482. if (
  11483. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11484. .toolChoose[toolIndex].englishList
  11485. ) {
  11486. this.openTools(itemTaskIndex, 69, toolIndex);
  11487. return;
  11488. }
  11489. }
  11490. // if (i == 48) {
  11491. // if (
  11492. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11493. // .toolChoose[toolIndex].tableJson
  11494. // ) {
  11495. // this.openTools(itemTaskIndex, 48, toolIndex);
  11496. // return;
  11497. // }
  11498. // }
  11499. // if (i == 50) {
  11500. // if (
  11501. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11502. // .toolChoose[toolIndex].uploadJson
  11503. // ) {
  11504. // this.openTools(itemTaskIndex, 50, toolIndex);
  11505. // return;
  11506. // }
  11507. // }
  11508. if (i == 49) {
  11509. if (
  11510. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11511. .toolChoose[toolIndex].groupJson
  11512. ) {
  11513. this.openTools(itemTaskIndex, 49, toolIndex);
  11514. return;
  11515. }
  11516. }
  11517. if (i == 62) {
  11518. if (
  11519. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11520. .toolChoose[toolIndex].videoJson
  11521. ) {
  11522. this.openTools(itemTaskIndex, 62, toolIndex);
  11523. return;
  11524. }
  11525. }
  11526. if (i == 15) {
  11527. if (
  11528. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11529. .toolChoose[toolIndex].answerQ ||
  11530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11531. .toolChoose[toolIndex].answerQ == ""
  11532. ) {
  11533. this.openTools(itemTaskIndex, 15, toolIndex);
  11534. // this.$message({
  11535. // message: "请填写问答内容",
  11536. // type: "error",
  11537. // });
  11538. return;
  11539. }
  11540. }
  11541. if (i == 40) {
  11542. if (
  11543. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11544. .toolChoose[toolIndex].rateJson ||
  11545. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11546. .toolChoose[toolIndex].rateJson.length
  11547. ) {
  11548. this.openTools(itemTaskIndex, 40, toolIndex);
  11549. return;
  11550. }
  11551. }
  11552. if (i == 41) {
  11553. if (
  11554. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11555. .toolChoose[toolIndex].selectJson ||
  11556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11557. .toolChoose[toolIndex].selectJson.url == "" ||
  11558. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11559. .toolChoose[toolIndex].selectJson.select.length ||
  11560. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11561. .toolChoose[toolIndex].selectJson.answer.length
  11562. ) {
  11563. this.openTools(itemTaskIndex, 41, toolIndex);
  11564. return;
  11565. }
  11566. }
  11567. if (i == 42) {
  11568. if (
  11569. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11570. .toolChoose[toolIndex].answerQ ||
  11571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11572. .toolChoose[toolIndex].answerQ == ""
  11573. ) {
  11574. this.openTools(itemTaskIndex, 42, toolIndex);
  11575. return;
  11576. }
  11577. }
  11578. if (
  11579. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11580. .toolChoose[toolIndex].tool.length > 0
  11581. ) {
  11582. if (
  11583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11584. itemTaskIndex
  11585. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11586. ) {
  11587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11588. itemTaskIndex
  11589. ].toolChoose[toolIndex].tool.splice(
  11590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11591. itemTaskIndex
  11592. ].toolChoose[toolIndex].tool.indexOf(i),
  11593. 1
  11594. );
  11595. } else {
  11596. // this.$message({
  11597. // message: "每个工具只能添加一个",
  11598. // type: "error",
  11599. // });
  11600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11601. itemTaskIndex
  11602. ].toolChoose[toolIndex].tool = [];
  11603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11604. itemTaskIndex
  11605. ].toolChoose[toolIndex].tool.push(i);
  11606. }
  11607. } else {
  11608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11609. itemTaskIndex
  11610. ].toolChoose[toolIndex].tool.push(i);
  11611. }
  11612. this.$forceUpdate();
  11613. },
  11614. addAskList(index) {
  11615. this.askJson.askJson.splice(index + 1, 0, {
  11616. askstitle: "",
  11617. askItem: 1,
  11618. checkList: [],
  11619. });
  11620. this.askJson.askCount++;
  11621. },
  11622. addTestList(index) {
  11623. this.testJson.testJson.splice(index + 1, 0, {
  11624. teststitle: "",
  11625. testItem: 1,
  11626. checkList: [],
  11627. timuList: [],
  11628. answer: [],
  11629. type: "1",
  11630. });
  11631. this.testJson.testCount++;
  11632. },
  11633. deleteAskList(index) {
  11634. if (
  11635. !this.askJson.askJson[index].askstitle &&
  11636. this.askJson.askJson[index].askItem == 1 &&
  11637. !this.askJson.askJson[index].checkList[0]
  11638. ) {
  11639. this.askJson.askJson.splice(index, 1);
  11640. this.askJson.askCount--;
  11641. } else {
  11642. let _this = this;
  11643. _this
  11644. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11645. confirmButtonText: "确定",
  11646. cancelButtonText: "取消",
  11647. type: "warning",
  11648. })
  11649. .then(() => {
  11650. _this.askJson.askJson.splice(index, 1);
  11651. _this.askJson.askCount--;
  11652. })
  11653. .catch(() => {
  11654. return;
  11655. });
  11656. }
  11657. },
  11658. deleteTestList(index) {
  11659. if (
  11660. !this.testJson.testJson[index].teststitle &&
  11661. this.testJson.testJson[index].testItem == 1 &&
  11662. !this.testJson.testJson[index].checkList[0]
  11663. ) {
  11664. this.testJson.testJson.splice(index, 1);
  11665. this.testJson.testCount--;
  11666. } else {
  11667. let _this = this;
  11668. _this
  11669. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11670. confirmButtonText: "确定",
  11671. cancelButtonText: "取消",
  11672. type: "warning",
  11673. })
  11674. .then(() => {
  11675. _this.testJson.testJson.splice(index, 1);
  11676. _this.testJson.testCount--;
  11677. })
  11678. .catch(() => {
  11679. return;
  11680. });
  11681. }
  11682. },
  11683. askMove(type, index) {
  11684. if (type == 1) {
  11685. if (index > 0) {
  11686. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11687. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11688. this.askJson.askJson[index - 1] = b;
  11689. this.askJson.askJson[index] = a;
  11690. }
  11691. } else {
  11692. if (index < this.askJson.askJson.length - 1) {
  11693. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11694. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11695. this.askJson.askJson[index + 1] = b;
  11696. this.askJson.askJson[index] = a;
  11697. }
  11698. }
  11699. this.$forceUpdate();
  11700. },
  11701. checkMove(type, index, checkIndex) {
  11702. if (type == 1) {
  11703. if (checkIndex > 0) {
  11704. let a = JSON.parse(
  11705. JSON.stringify(
  11706. this.askJson.askJson[index].checkList[checkIndex - 1]
  11707. )
  11708. );
  11709. let b = JSON.parse(
  11710. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11711. );
  11712. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11713. this.askJson.askJson[index].checkList[checkIndex] = a;
  11714. }
  11715. } else {
  11716. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11717. let a = JSON.parse(
  11718. JSON.stringify(
  11719. this.askJson.askJson[index].checkList[checkIndex + 1]
  11720. )
  11721. );
  11722. let b = JSON.parse(
  11723. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11724. );
  11725. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11726. this.askJson.askJson[index].checkList[checkIndex] = a;
  11727. }
  11728. }
  11729. this.$forceUpdate();
  11730. },
  11731. testMove(type, index) {
  11732. if (type == 1) {
  11733. if (index > 0) {
  11734. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11735. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11736. this.testJson.testJson[index - 1] = b;
  11737. this.testJson.testJson[index] = a;
  11738. }
  11739. } else {
  11740. if (index < this.testJson.testJson.length - 1) {
  11741. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11742. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11743. this.testJson.testJson[index + 1] = b;
  11744. this.testJson.testJson[index] = a;
  11745. }
  11746. }
  11747. this.$forceUpdate();
  11748. },
  11749. tcheckMove(type, index, checkIndex) {
  11750. if (type == 1) {
  11751. if (checkIndex > 0) {
  11752. let a = JSON.parse(
  11753. JSON.stringify(
  11754. this.testJson.testJson[index].checkList[checkIndex - 1]
  11755. )
  11756. );
  11757. let b = JSON.parse(
  11758. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11759. );
  11760. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11761. this.testJson.testJson[index].checkList[checkIndex] = a;
  11762. }
  11763. } else {
  11764. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11765. let a = JSON.parse(
  11766. JSON.stringify(
  11767. this.testJson.testJson[index].checkList[checkIndex + 1]
  11768. )
  11769. );
  11770. let b = JSON.parse(
  11771. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11772. );
  11773. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  11774. this.testJson.testJson[index].checkList[checkIndex] = a;
  11775. }
  11776. }
  11777. this.$forceUpdate();
  11778. },
  11779. addcheckList(json, index) {
  11780. // json.checkList.length++;
  11781. json.checkList.splice(index + 1, 0, "");
  11782. json.askItem++;
  11783. this.$forceUpdate();
  11784. },
  11785. deletecheckList(json, index) {
  11786. // json.checkList.length--;
  11787. json.checkList.splice(index, 1);
  11788. json.askItem--;
  11789. this.$forceUpdate();
  11790. },
  11791. addTcheckList(json, index) {
  11792. // json.checkList.length++;
  11793. json.checkList.splice(index + 1, 0, "");
  11794. json.testItem++;
  11795. this.$forceUpdate();
  11796. },
  11797. deleteTcheckList(json, index) {
  11798. // json.checkList.length--;
  11799. json.checkList.splice(index, 1);
  11800. json.testItem--;
  11801. this.$forceUpdate();
  11802. },
  11803. checkTestType(type, json) {
  11804. json.type = type;
  11805. setTimeout(() => {
  11806. json.answer = [];
  11807. }, 100);
  11808. },
  11809. checkAskType(type, json) {
  11810. json.type = type;
  11811. // json.checkList = [];
  11812. this.$forceUpdate();
  11813. },
  11814. addSelectList(json) {
  11815. json.select.push("");
  11816. json.answer.push("");
  11817. },
  11818. deleteSelectList(json) {
  11819. // json.select.length--;
  11820. // json.answer.length--;
  11821. json.select.splice(json.select.length - 1, 1);
  11822. json.answer.splice(json.answer.length - 1, 1);
  11823. },
  11824. addAsk() {
  11825. if (this.askJson.askTitle === "") {
  11826. this.$message.error("标题不能为空!");
  11827. return;
  11828. }
  11829. var aj = this.askJson.askJson;
  11830. var b = 1;
  11831. for (var i = 0; i < aj.length; i++) {
  11832. if (aj[i].askstitle === "") {
  11833. var a = 1;
  11834. for (let index = 0; index < aj[i].askItem; index++) {
  11835. const element = aj[i].checkList[index]
  11836. ? aj[i].checkList[index]
  11837. : "";
  11838. if (element != "") {
  11839. b++;
  11840. this.$message.error(`请将题目${i + 1}填写完整。`);
  11841. return;
  11842. } else {
  11843. a++;
  11844. }
  11845. }
  11846. if (b == 1) {
  11847. this.$message.error("至少填写一个问题");
  11848. return;
  11849. }
  11850. } else if (aj[i].askstitle != "") {
  11851. for (let index = 0; index < aj[i].askItem; index++) {
  11852. const element = aj[i].checkList[index]
  11853. ? aj[i].checkList[index]
  11854. : "";
  11855. var index = 0;
  11856. for (var z = 0; z < aj[i].checkList.length; z++) {
  11857. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11858. if (checkC != "") {
  11859. index++;
  11860. } else {
  11861. this.$message.error(`题目${i + 1}选项不能为空!`);
  11862. return;
  11863. }
  11864. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11865. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11866. if (checkC == checkC2) {
  11867. this.$message.error(
  11868. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11869. );
  11870. return;
  11871. }
  11872. }
  11873. }
  11874. b++;
  11875. if (index < 2) {
  11876. this.$message.error("每道题目至少需要设置2个选项。");
  11877. return;
  11878. }
  11879. }
  11880. }
  11881. }
  11882. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  11883. var elc = el.checkList.filter((element) => {
  11884. return element != "";
  11885. });
  11886. return el.askstitle != "" && elc.length != 0;
  11887. });
  11888. if (!this.dialogVisible4) {
  11889. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11890. this.taskCount
  11891. ].toolChoose[this.toolIndex] = this.askJson;
  11892. }
  11893. this.dialogVisible5 = false;
  11894. if (
  11895. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11896. .toolChoose[this.toolIndex].tool != 4
  11897. ) {
  11898. this.addTools(4, this.taskCount, this.toolIndex);
  11899. }
  11900. },
  11901. addTest() {
  11902. // if (this.testJson.testTitle === "") {
  11903. // this.$message.error("标题不能为空!");
  11904. // return;
  11905. // }
  11906. var aj = this.testJson.testJson;
  11907. var b = 1;
  11908. for (var i = 0; i < aj.length; i++) {
  11909. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  11910. var a = 1;
  11911. for (let index = 0; index < aj[i].testItem; index++) {
  11912. const element = aj[i].checkList[index]
  11913. ? aj[i].checkList[index]
  11914. : "";
  11915. if (element != "") {
  11916. b++;
  11917. this.$message.error(`请将题目${i + 1}填写完整。`);
  11918. return;
  11919. } else {
  11920. a++;
  11921. }
  11922. }
  11923. if (b == 1) {
  11924. this.$message.error("至少填写一个问题");
  11925. return;
  11926. }
  11927. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  11928. for (let index = 0; index < aj[i].testItem; index++) {
  11929. const element = aj[i].checkList[index]
  11930. ? aj[i].checkList[index]
  11931. : "";
  11932. var index = 0;
  11933. for (var z = 0; z < aj[i].checkList.length; z++) {
  11934. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11935. if (checkC != "") {
  11936. index++;
  11937. } else {
  11938. this.$message.error(`题目${i + 1}选项不能为空!`);
  11939. return;
  11940. }
  11941. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11942. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11943. if (checkC == checkC2) {
  11944. this.$message.error(
  11945. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11946. );
  11947. return;
  11948. }
  11949. }
  11950. }
  11951. b++;
  11952. if (index < 2) {
  11953. this.$message.error("每道题目至少需要设置2个选项。");
  11954. return;
  11955. }
  11956. if (
  11957. (aj[i].type == "2" && !aj[i].answer.length) ||
  11958. (aj[i].type == "1" &&
  11959. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  11960. (aj[i].answer !== 0 && !aj[i].answer)))
  11961. ) {
  11962. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  11963. return;
  11964. }
  11965. }
  11966. }
  11967. }
  11968. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11969. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11970. var elc = el.checkList.filter((element) => {
  11971. return element != "";
  11972. });
  11973. return (
  11974. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  11975. );
  11976. });
  11977. isTestJson.testCount = isTestJson.testJson.length;
  11978. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11979. this.taskCount
  11980. ].toolChoose[this.toolIndex].testJson = isTestJson;
  11981. this.dialogVisibleChoice = false;
  11982. if (
  11983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11984. .toolChoose[this.toolIndex].tool != 45
  11985. ) {
  11986. this.addTools(45, this.taskCount, this.toolIndex);
  11987. }
  11988. },
  11989. addVideoJson(videoJson) {
  11990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11991. this.taskCount
  11992. ].toolChoose[this.toolIndex].videoJson = videoJson;
  11993. this.dialogVisibleVideo = false;
  11994. if (
  11995. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11996. .toolChoose[this.toolIndex].tool != 62
  11997. ) {
  11998. this.addTools(62, this.taskCount, this.toolIndex);
  11999. }
  12000. },
  12001. //自动获取剪贴板
  12002. pasteOption() {
  12003. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12004. if (!iframe) {
  12005. this.$message.error("请使用AI共创生成题目");
  12006. return;
  12007. }
  12008. let copyData = iframe.contentWindow.copyData;
  12009. if (!copyData || !copyData.selectData.length) {
  12010. this.$message.error("请使用AI共创生成题目");
  12011. return;
  12012. }
  12013. let selectData = copyData.selectData;
  12014. for (var i = 0; i < selectData.length; i++) {
  12015. let answer = 0;
  12016. switch (selectData[i].answer[0]) {
  12017. case "A":
  12018. answer = 0;
  12019. break;
  12020. case "B":
  12021. answer = 1;
  12022. break;
  12023. case "C":
  12024. answer = 2;
  12025. break;
  12026. case "D":
  12027. answer = 3;
  12028. break;
  12029. case "E":
  12030. answer = 4;
  12031. break;
  12032. default:
  12033. break;
  12034. }
  12035. this.testJson.testJson.push({
  12036. teststitle: selectData[i].subject,
  12037. testItem: selectData[i].options.length,
  12038. checkList: selectData[i].options,
  12039. timuList: [],
  12040. answer: answer,
  12041. type: "1",
  12042. });
  12043. this.testJson.testCount++;
  12044. }
  12045. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12046. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12047. var elc = el.checkList.filter((element) => {
  12048. return element != "";
  12049. });
  12050. return (
  12051. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  12052. );
  12053. });
  12054. isTestJson.testCount = isTestJson.testJson.length;
  12055. if(!isTestJson.testCount){
  12056. return;
  12057. }
  12058. this.testJson = isTestJson;
  12059. this.$forceUpdate();
  12060. },
  12061. pasteTask() {
  12062. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12063. if (!iframe) {
  12064. this.$message.error("请使用AI共创生成");
  12065. return;
  12066. }
  12067. let copyData = iframe.contentWindow.copyData;
  12068. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  12069. this.$message.error("请使用AI共创生成");
  12070. return;
  12071. }
  12072. let stageTasksData = copyData.tasksData;
  12073. let taskA = [];
  12074. let tasks = stageTasksData;
  12075. for (var j = 0; j < tasks.length; j++) {
  12076. taskA.push({
  12077. task: tasks[j].taskName,
  12078. taskDetail: tasks[j].taskDecs,
  12079. chapterData: [],
  12080. toolText: "",
  12081. toolChoose: [
  12082. {
  12083. tool: [],
  12084. toolDetail: "",
  12085. toolType: 0,
  12086. askCount: 1,
  12087. askTitle: "",
  12088. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12089. },
  12090. ],
  12091. isShowTools: false,
  12092. askCount: 1,
  12093. isFold: 1,
  12094. askTitle: "",
  12095. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12096. checkJson: [{ checkCount: [], checkPerent: [] }],
  12097. homeworkList: [],
  12098. });
  12099. }
  12100. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12101. this.$forceUpdate();
  12102. },
  12103. pasteStage() {
  12104. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12105. if (!iframe) {
  12106. this.$message.error("请使用AI共创生成");
  12107. return;
  12108. }
  12109. let copyData = iframe.contentWindow.copyData;
  12110. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  12111. this.$message.error("请使用AI共创生成");
  12112. return;
  12113. }
  12114. let stageData = copyData.stageData;
  12115. let stage = [];
  12116. for (var i = 0; i < stageData.length; i++) {
  12117. stage.push({
  12118. dyName: stageData[i], //单元标题
  12119. chapterInfo: [
  12120. {
  12121. isread: false,
  12122. chapterid: this.guid(),
  12123. title: "",
  12124. courseName: "",
  12125. taskJson: [
  12126. {
  12127. task: "",
  12128. taskDetail: "",
  12129. chapterData: [],
  12130. toolText: "",
  12131. toolChoose: [
  12132. {
  12133. tool: [],
  12134. toolDetail: "",
  12135. toolType: 0,
  12136. askCount: 1,
  12137. askTitle: "",
  12138. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12139. },
  12140. ],
  12141. isShowTools: false,
  12142. askCount: 1,
  12143. isFold: 1,
  12144. askTitle: "",
  12145. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12146. checkJson: [{ checkCount: [], checkPerent: [] }],
  12147. homeworkList: [],
  12148. },
  12149. ],
  12150. itemCount: 1,
  12151. fileList1: [],
  12152. video: [],
  12153. testData: [],
  12154. pData: [],
  12155. templateArray: [],
  12156. },
  12157. ],
  12158. });
  12159. }
  12160. let _this = this;
  12161. _this
  12162. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  12163. confirmButtonText: "确定",
  12164. cancelButtonText: "取消",
  12165. type: "warning",
  12166. })
  12167. .then(() => {
  12168. _this.unitIndex = 0;
  12169. _this.unitJson = stage;
  12170. _this.steps++;
  12171. _this.updateWork();
  12172. })
  12173. .catch(() => {
  12174. return;
  12175. });
  12176. },
  12177. addAnswer() {
  12178. if (this.answerQ == "") {
  12179. this.$message.error("请输入您想要问的问题");
  12180. return;
  12181. }
  12182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12183. this.taskCount
  12184. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12185. this.dialogVisible8 = false;
  12186. if (
  12187. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12188. .toolChoose[this.toolIndex].tool != 15
  12189. ) {
  12190. this.addTools(15, this.taskCount, this.toolIndex);
  12191. }
  12192. },
  12193. addMp3Answer() {
  12194. if (this.answerQ == "") {
  12195. this.$message.error("请输入您想要回答的问题");
  12196. return;
  12197. }
  12198. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12199. this.taskCount
  12200. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12201. this.dialogVisibleMp3 = false;
  12202. },
  12203. addRateAnswer() {
  12204. var a = 1;
  12205. for (var i = 0; i < this.rateJson.length; i++) {
  12206. if (this.rateJson[i].value == "") {
  12207. a = 2;
  12208. break;
  12209. }
  12210. }
  12211. if (a == 2) {
  12212. this.$message.error("请把评价信息填写完整");
  12213. return;
  12214. }
  12215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12216. this.taskCount
  12217. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12218. this.dialogVisibleRate = false;
  12219. if (
  12220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12221. .toolChoose[this.toolIndex].tool != 40
  12222. ) {
  12223. this.addTools(40, this.taskCount, this.toolIndex);
  12224. }
  12225. },
  12226. addSelectAnswer() {
  12227. if (this.selectJson.url == "") {
  12228. this.$message.error("请上传题目");
  12229. return;
  12230. }
  12231. if (!this.selectJson.select.length) {
  12232. this.$message.error("请添加选项");
  12233. return;
  12234. }
  12235. if (!this.selectJson.answer.length) {
  12236. this.$message.error("请设置答案");
  12237. return;
  12238. }
  12239. var a = 1;
  12240. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12241. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12242. a = 2;
  12243. }
  12244. }
  12245. if (a == 2) {
  12246. this.$message.error("请设置答案");
  12247. return;
  12248. }
  12249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12250. this.taskCount
  12251. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12252. this.dialogVisibleSelect = false;
  12253. if (
  12254. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12255. .toolChoose[this.toolIndex].tool != 41
  12256. ) {
  12257. this.addTools(41, this.taskCount, this.toolIndex);
  12258. }
  12259. },
  12260. nextSelectSteps() {
  12261. if (this.selectJson.url == "") {
  12262. this.$message.error("请上传题目");
  12263. return;
  12264. }
  12265. if (!this.selectJson.select.length) {
  12266. this.$message.error("请添加选项");
  12267. return;
  12268. } else {
  12269. for (var z = 0; z < this.selectJson.select.length; z++) {
  12270. let checkC = this.selectJson.select[z];
  12271. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12272. let checkC2 = this.selectJson.select[z2];
  12273. if (checkC == checkC2) {
  12274. this.$message.error(
  12275. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  12276. );
  12277. return;
  12278. }
  12279. }
  12280. }
  12281. }
  12282. var a = 1;
  12283. for (var i = 0; i < this.selectJson.select.length; i++) {
  12284. if (!this.selectJson.select[i]) {
  12285. a = 2;
  12286. }
  12287. }
  12288. if (a == 2) {
  12289. this.$message.error("添加的选项不能为空");
  12290. return;
  12291. }
  12292. this.selectSteps++;
  12293. },
  12294. selectCourseDetail() {
  12295. if (this.cid == "" || this.cid == undefined) {
  12296. console.log("这是新增课程");
  12297. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12298. this.isTeacherSee = true;
  12299. }
  12300. this.selectAllType();
  12301. } else {
  12302. this.cidType = 1;
  12303. let params = {
  12304. cid: this.cid,
  12305. };
  12306. this.ajax
  12307. .get(this.$store.state.api + "select_course_detail", params)
  12308. .then((res) => {
  12309. this.loading = true;
  12310. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12311. for (var j = 0; j < this.unitJson.length; j++) {
  12312. for (
  12313. var k = 0;
  12314. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12315. k++
  12316. ) {
  12317. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12318. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12319. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12320. : [];
  12321. let _chapterData = [];
  12322. for (
  12323. var c = 0;
  12324. c <
  12325. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12326. .length;
  12327. c++
  12328. ) {
  12329. if (
  12330. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12331. ) {
  12332. _chapterData.push(
  12333. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12334. );
  12335. }
  12336. }
  12337. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12338. _chapterData;
  12339. }
  12340. }
  12341. this.$forceUpdate();
  12342. this.courseName = res.data[0][0].title;
  12343. this.courseText = res.data[0][0].brief;
  12344. this.evalua = res.data[0][0].evaId;
  12345. this.cover = JSON.parse(res.data[0][0].cover);
  12346. this.noneBtnImg = this.cover.length >= 1;
  12347. // this.checkboxList =
  12348. // res.data[0][0].course_student.length > 0
  12349. // ? JSON.parse(res.data[0][0].course_student)
  12350. // : [];
  12351. this.checkboxList2 = res.data[0][0].juri
  12352. ? res.data[0][0].juri.split(",")
  12353. : [];
  12354. this.inviteCode = [];
  12355. for (var i = 0; i < res.data[2].length; i++) {
  12356. this.inviteCode.push({
  12357. cid: res.data[2][i].classid,
  12358. ic: res.data[2][i].code,
  12359. });
  12360. }
  12361. this.checkboxList3 = res.data[0][0].course_teacher
  12362. ? res.data[0][0].course_teacher.split(",")
  12363. : [];
  12364. // this.isTeacherSee =
  12365. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12366. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12367. this.myWord = res.data[0][0].template;
  12368. this.templateC.id = "123";
  12369. this.courseUserid = res.data[0][0].userid;
  12370. // if(this.courseUserid == this.userid){
  12371. // this.InviteChange(this.checkboxList2)
  12372. // }
  12373. this.nbOrder = res.data[0][0].ordernumber;
  12374. this.courseTypeId = [];
  12375. for (var i = 0; i < res.data[1].length; i++) {
  12376. this.courseTypeId.push(res.data[1][i].typeid);
  12377. }
  12378. console.log(this.courseTypeId);
  12379. // if (this.timer) clearInterval(this.timer);
  12380. if (this.timer) clearTimeout(this.timer);
  12381. this.timer = null;
  12382. // this.timer = setInterval(() => {
  12383. // this.seleteCourseUpdate();
  12384. this.setMan();
  12385. this.selectAllType();
  12386. this.unitJson[
  12387. this.unitIndex
  12388. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12389. // }, 5000);
  12390. this.$forceUpdate();
  12391. setTimeout(() => {
  12392. this.checkEva(this.evalua);
  12393. }, 0);
  12394. })
  12395. .catch((err) => {
  12396. console.error(err);
  12397. });
  12398. }
  12399. },
  12400. seleteCourseUpdate() {
  12401. let params = {
  12402. cid: this.cid,
  12403. };
  12404. this.ajax
  12405. .get(this.$store.state.api + "select_course_detail", params)
  12406. .then((res) => {
  12407. // console.log(this.unitJson);
  12408. let unitJson = JSON.parse(res.data[0][0].chapters);
  12409. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12410. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12411. let _unitJson = [];
  12412. let _chapAarry = [];
  12413. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12414. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12415. let index = 1;
  12416. let chapindex;
  12417. if (_unitJson2.length > unitJson.length) {
  12418. for (let c = 0; c < _unitJson2.length; c++) {
  12419. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12420. }
  12421. for (let j = 0; j < unitJson.length; j++) {
  12422. let count = 0;
  12423. for (let k = 0; k < _unitJson2.length; k++) {
  12424. if (
  12425. unitJson[j].chapterInfo[0].chapterid ==
  12426. _unitJson2[k].chapterInfo[0].chapterid
  12427. ) {
  12428. count++;
  12429. _chapAarry.splice(
  12430. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12431. 1
  12432. );
  12433. _unitJson.push(unitJson[j]);
  12434. break;
  12435. }
  12436. }
  12437. // if(count === 0){
  12438. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12439. // }
  12440. }
  12441. for (let k = 0; k < _unitJson2.length; k++) {
  12442. if (_unitJson2[k].isUpdate == 1) {
  12443. _chapAarry.splice(
  12444. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12445. 1
  12446. );
  12447. _unitJson.push(_unitJson2[k]);
  12448. }
  12449. }
  12450. console.log(_chapAarry);
  12451. for (let d = 0; d < _unitJson2.length; d++) {
  12452. if (
  12453. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12454. ) {
  12455. if (_unitIndex == d) {
  12456. index = 2;
  12457. }
  12458. chapindex = d;
  12459. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12460. }
  12461. }
  12462. } else {
  12463. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12464. }
  12465. for (let i = 0; i < unitJson.length; i++) {
  12466. if (
  12467. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12468. _unitJson[i].chapterInfo[0].chapterid !=
  12469. unitJson[i].chapterInfo[0].chapterid
  12470. ) {
  12471. if (i == _unitJson.length - 1) {
  12472. // this.unitIndex++
  12473. _unitIndex2++;
  12474. }
  12475. _unitJson.splice(i, 0, unitJson[i]);
  12476. } else if (i > _unitJson.length - 1) {
  12477. _unitJson.push(unitJson[i]);
  12478. } else if (
  12479. _unitJson[i].chapterInfo[0].chapterid ==
  12480. unitJson[i].chapterInfo[0].chapterid
  12481. ) {
  12482. _unitJson[i] = unitJson[i];
  12483. }
  12484. // if (i == _unitIndex) {
  12485. // continue;
  12486. // } else
  12487. }
  12488. if (_chapAarry.length && index != 2) {
  12489. if (chapindex < _unitIndex) {
  12490. this.isDelete = 2;
  12491. // this.unitIndex--;
  12492. _unitIndex2--;
  12493. } else if (
  12494. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12495. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12496. ) {
  12497. this.isDelete = 2;
  12498. for (let n = 0; n < _unitJson.length; n++) {
  12499. if (
  12500. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12501. _unitJson[n].chapterInfo[0].chapterid
  12502. ) {
  12503. // this.unitIndex = n;
  12504. _unitIndex2 = n;
  12505. _unitJson[n] = _unitJson2[_unitIndex];
  12506. break;
  12507. }
  12508. }
  12509. }
  12510. } else if (index != 2) {
  12511. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12512. _unitJson2[_unitIndex];
  12513. for (
  12514. var ci = 0;
  12515. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12516. ci++
  12517. ) {
  12518. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12519. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12520. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12521. .toolChoose
  12522. : [];
  12523. let _chapterData = [];
  12524. for (
  12525. var c = 0;
  12526. c <
  12527. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12528. .length;
  12529. c++
  12530. ) {
  12531. if (
  12532. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12533. .chapterData[c]
  12534. ) {
  12535. _chapterData.push(
  12536. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12537. .chapterData[c]
  12538. );
  12539. }
  12540. }
  12541. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12542. _chapterData;
  12543. }
  12544. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12545. }
  12546. if (index == 1) {
  12547. this.unitJson = _unitJson;
  12548. this.$forceUpdate();
  12549. setTimeout(() => {
  12550. if (this.unitIndex != _unitIndex2) {
  12551. this.isDelete = 2;
  12552. this.unitIndex = _unitIndex2;
  12553. }
  12554. }, 0);
  12555. this.timer = setTimeout(() => {
  12556. this.seleteCourseUpdate();
  12557. }, 1000);
  12558. } else if (index == 2) {
  12559. let _this = this;
  12560. _this
  12561. .$confirm(
  12562. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12563. "提示",
  12564. {
  12565. confirmButtonText: "需要",
  12566. cancelButtonText: "取消",
  12567. type: "warning",
  12568. }
  12569. )
  12570. .then(() => {
  12571. if (_this.time()) {
  12572. _this.restoreWork(
  12573. _chapAarry[0],
  12574. _unitJson,
  12575. chapindex,
  12576. _unitJson2,
  12577. _unitIndex2
  12578. );
  12579. }
  12580. })
  12581. .catch(() => {
  12582. _this.unitJson = _unitJson;
  12583. _this.$forceUpdate();
  12584. setTimeout(() => {
  12585. if (this.unitIndex != _unitIndex2) {
  12586. this.isDelete = 2;
  12587. this.unitIndex = _unitIndex2;
  12588. }
  12589. }, 0);
  12590. _this.timer = setTimeout(() => {
  12591. _this.seleteCourseUpdate();
  12592. }, 1000);
  12593. });
  12594. }
  12595. })
  12596. .catch((err) => {
  12597. console.error(err);
  12598. });
  12599. },
  12600. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12601. let params = [
  12602. {
  12603. cid: this.cid,
  12604. chapters: JSON.stringify(this.unitJson),
  12605. uid: this.userid,
  12606. chapid: chapid,
  12607. },
  12608. ];
  12609. this.ajax
  12610. .post(this.$store.state.api + "restoreWork", params)
  12611. .then((res) => {
  12612. this.$message({
  12613. message: "恢复成功",
  12614. type: "success",
  12615. });
  12616. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12617. this.unitJson = unitJson;
  12618. this.$forceUpdate();
  12619. setTimeout(() => {
  12620. if (this.unitIndex != unitIndex2) {
  12621. this.isDelete = 2;
  12622. this.unitIndex = unitIndex2;
  12623. }
  12624. }, 0);
  12625. this.timer = setTimeout(() => {
  12626. this.seleteCourseUpdate();
  12627. }, 1000);
  12628. })
  12629. .catch((err) => {
  12630. this.$message.error("网络不佳");
  12631. console.error(err);
  12632. });
  12633. },
  12634. getTypeName() {
  12635. console.log(this.courseTypeId);
  12636. this.$forceUpdate();
  12637. },
  12638. selectAllType() {
  12639. let params = {
  12640. org: this.org && this.org != "" ? this.org : "",
  12641. oid: this.oid && this.oid != "" ? this.oid : "",
  12642. };
  12643. this.ajax
  12644. .get(this.$store.state.api + "selectAllType", params)
  12645. .then((res) => {
  12646. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12647. res.data[0] = [...res.data[0], ...res.data[4]];
  12648. }
  12649. this.CourseType = res.data;
  12650. this.CourseType2 = [
  12651. { name: "智见课程", id: [] },
  12652. { name: "智行课程", id: [] },
  12653. { name: "智创课程", id: [] },
  12654. ];
  12655. for (var cti = 0; cti < res.data[0].length; cti++) {
  12656. if (
  12657. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12658. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12659. ) {
  12660. this.CourseType2[0].id.push(res.data[0][cti].id);
  12661. } else if (
  12662. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12663. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12664. ) {
  12665. this.CourseType2[1].id.push(res.data[0][cti].id);
  12666. } else if (
  12667. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12668. ) {
  12669. this.CourseType2[2].id.push(res.data[0][cti].id);
  12670. }
  12671. if (
  12672. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12673. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12674. ) {
  12675. res.data[0][cti].name = "年级";
  12676. } else if (
  12677. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12678. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12679. ) {
  12680. res.data[0][cti].name = "学科";
  12681. } else if (
  12682. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12683. ) {
  12684. res.data[0][cti].name = "主题";
  12685. }
  12686. }
  12687. let _courseTypeId = [];
  12688. for (var i = 0; i < res.data[0].length; i++) {
  12689. if (!this.cid) {
  12690. this.courseTypeId[res.data[0][i].id] = [];
  12691. }
  12692. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  12693. // }
  12694. this.CourseTypeJson[res.data[0][i].id] = [];
  12695. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12696. if (res.data[0][i].name == "栏目") {
  12697. this.CourseType[0][i].name = "主题";
  12698. }
  12699. }
  12700. if (res.data[2].length == 0 && res.data[3].length == 0) {
  12701. for (var j = 0; j < res.data[1].length; j++) {
  12702. if (
  12703. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  12704. _courseTypeId.indexOf(res.data[1][j].id) == -1
  12705. ) {
  12706. _courseTypeId.push(res.data[1][j].id);
  12707. }
  12708. if (res.data[0][i].id == res.data[1][j].pid) {
  12709. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12710. }
  12711. }
  12712. } else {
  12713. if (res.data[2].length > 0) {
  12714. for (var j = 0; j < res.data[2].length; j++) {
  12715. if (
  12716. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  12717. _courseTypeId.indexOf(res.data[2][j].id) == -1
  12718. ) {
  12719. _courseTypeId.push(res.data[2][j].id);
  12720. }
  12721. if (res.data[0][i].id == res.data[2][j].pid) {
  12722. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12723. }
  12724. }
  12725. }
  12726. if (res.data[3].length > 0) {
  12727. for (var j = 0; j < res.data[3].length; j++) {
  12728. if (
  12729. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  12730. _courseTypeId.indexOf(res.data[3][j].id) == -1
  12731. ) {
  12732. _courseTypeId.push(res.data[3][j].id);
  12733. }
  12734. if (res.data[0][i].id == res.data[3][j].pid) {
  12735. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12736. }
  12737. }
  12738. }
  12739. }
  12740. }
  12741. this.courseTypeId = _courseTypeId;
  12742. })
  12743. .catch((err) => {
  12744. console.error(err);
  12745. });
  12746. },
  12747. selectType() {
  12748. this.ajax
  12749. .get(this.$store.state.api + "selectType")
  12750. .then((res) => {
  12751. this.CourseType = res.data;
  12752. for (var i = 0; i < res.data[0].length; i++) {
  12753. if (!this.cid) {
  12754. this.courseTypeId[res.data[0][i].id] = "";
  12755. }
  12756. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12757. if (res.data[0][i].name == "栏目") {
  12758. this.CourseType[0][i].name = "主题";
  12759. }
  12760. }
  12761. for (var j = 0; j < res.data[1].length; j++) {
  12762. if (res.data[0][i].id == res.data[1][j].pid) {
  12763. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12764. this.CourseTypeJson[res.data[0][i].id] = [];
  12765. }
  12766. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12767. }
  12768. }
  12769. }
  12770. this.selectTypeByOid();
  12771. this.selectTypeByOrg();
  12772. })
  12773. .catch((err) => {
  12774. console.error(err);
  12775. });
  12776. },
  12777. selectTypeByOid() {
  12778. let params = {
  12779. oid: this.oid,
  12780. };
  12781. this.ajax
  12782. .get(this.$store.state.api + "selectTypeByOid", params)
  12783. .then((res) => {
  12784. for (var i = 0; i < res.data[0].length; i++) {
  12785. for (var j = 0; j < res.data[1].length; j++) {
  12786. if (res.data[0][i].id == res.data[1][j].pid) {
  12787. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12788. this.CourseTypeJson[res.data[0][i].id] = [];
  12789. }
  12790. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12791. }
  12792. }
  12793. }
  12794. })
  12795. .catch((err) => {
  12796. console.error(err);
  12797. });
  12798. },
  12799. selectTypeByOrg() {
  12800. let params = {
  12801. oid: this.org,
  12802. };
  12803. this.ajax
  12804. .get(this.$store.state.api + "selectTypeByOrg", params)
  12805. .then((res) => {
  12806. for (var i = 0; i < res.data[0].length; i++) {
  12807. for (var j = 0; j < res.data[1].length; j++) {
  12808. if (res.data[0][i].id == res.data[1][j].pid) {
  12809. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12810. this.CourseTypeJson[res.data[0][i].id] = [];
  12811. }
  12812. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12813. }
  12814. }
  12815. }
  12816. this.$forceUpdate();
  12817. })
  12818. .catch((err) => {
  12819. console.error(err);
  12820. });
  12821. },
  12822. OtherMb(type) {
  12823. this.typeMode = type;
  12824. setTimeout(() => {
  12825. this.checkEva(this.checkId);
  12826. }, 0);
  12827. },
  12828. openMember() {
  12829. this.searchTN = "";
  12830. this.getTeacher();
  12831. this.dialogVisibleMember = true;
  12832. },
  12833. checkEva(id, type) {
  12834. this.dialogVisiblemb = false;
  12835. this.selectEva();
  12836. if (this.evalua != id && type == 2) {
  12837. this.$message.success("导入成功");
  12838. }
  12839. this.evalua = id;
  12840. this.checkId = id;
  12841. if (this.evalua != "") {
  12842. for (var i = 0; i < this.evaJuri.length; i++) {
  12843. if (this.evalua == this.evaJuri[i].id) {
  12844. this.eTitle = this.evaJuri[i].title;
  12845. this.eJson = JSON.parse(this.evaJuri[i].content);
  12846. }
  12847. }
  12848. this.data.data = [];
  12849. this.$forceUpdate();
  12850. setTimeout(() => {
  12851. this.setMindData();
  12852. }, 500);
  12853. }
  12854. },
  12855. deleteEva() {
  12856. let _this = this;
  12857. if (_this.evalua == "") {
  12858. this.$message.warning("内容已经清空了,请勿重复清空");
  12859. return;
  12860. }
  12861. _this
  12862. .$confirm("确定删除此目标吗?", "提示", {
  12863. confirmButtonText: "确定",
  12864. cancelButtonText: "取消",
  12865. type: "warning",
  12866. })
  12867. .then(() => {
  12868. _this.evalua = "";
  12869. _this.checkId = "";
  12870. _this.eTitle = "";
  12871. let _unitJson = _this.unitJson;
  12872. for (var i = 0; i < _unitJson.length; i++) {
  12873. let _task = _unitJson[i].chapterInfo[0].taskJson;
  12874. for (var j = 0; j < _task.length; j++) {
  12875. let _eList = _task[j].eList;
  12876. for (var k = 0; k < _eList.length; k++) {
  12877. delete _eList[k].target;
  12878. }
  12879. }
  12880. }
  12881. _this.$forceUpdate();
  12882. if (_this.cid) {
  12883. _this.updateWork();
  12884. }
  12885. })
  12886. .catch(() => {
  12887. return;
  12888. });
  12889. },
  12890. selectEva() {
  12891. let params = {
  12892. oid: this.oid,
  12893. };
  12894. this.ajax
  12895. .get(this.$store.state.api + "selectAllEvaluation", params)
  12896. .then((res) => {
  12897. this.evaJuri = res.data[0];
  12898. })
  12899. .catch((err) => {
  12900. console.error(err);
  12901. });
  12902. },
  12903. setMindData() {
  12904. let targetArray = [];
  12905. this.data.data = [];
  12906. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  12907. let _eJson = Object.keys(this.eJson);
  12908. let _e = this.eJson;
  12909. for (let i = 0; i < _eJson.length; i++) {
  12910. let element = _e[_eJson[i]];
  12911. this.data.data.push({
  12912. id: element.id,
  12913. parentid: "root",
  12914. topic: element.name,
  12915. });
  12916. // targetArray.push({
  12917. // id: element.id,
  12918. // parentid: "root",
  12919. // name: element.name,
  12920. // });
  12921. targetArray.push({
  12922. value: element.name,
  12923. label: element.name,
  12924. children: [],
  12925. });
  12926. let _eJsonc = Object.keys(element.child);
  12927. let _e2 = element.child;
  12928. for (let j = 0; j < _eJsonc.length; j++) {
  12929. let _ec = _e2[_eJsonc[j]];
  12930. this.data.data.push({
  12931. id: _ec.id,
  12932. parentid: element.id,
  12933. topic: _ec.name,
  12934. });
  12935. // targetArray.push({
  12936. // id: _ec.id,
  12937. // parentid: element.id,
  12938. // name: _ec.name,
  12939. // });
  12940. targetArray[i].children.push({
  12941. value: _ec.name,
  12942. label: _ec.name,
  12943. children: [],
  12944. });
  12945. let _eJsonz = Object.keys(_ec.child);
  12946. let _e3 = _ec.child;
  12947. for (let z = 0; z < _eJsonz.length; z++) {
  12948. let _ez = _e3[_eJsonz[z]];
  12949. this.data.data.push({
  12950. id: _ez.id,
  12951. parentid: _ec.id,
  12952. topic: _ez.name,
  12953. });
  12954. // targetArray.push({
  12955. // id: _ez.id,
  12956. // parentid: _ec.id,
  12957. // name: _ez.name,
  12958. // });
  12959. targetArray[i].children[j].children.push({
  12960. value: _ez.name,
  12961. label: _ez.name,
  12962. });
  12963. }
  12964. }
  12965. }
  12966. this.targetArray = targetArray;
  12967. this.$forceUpdate();
  12968. },
  12969. /*添加评价 */
  12970. addEList(index, tIndex) {
  12971. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  12972. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  12973. value: "",
  12974. detail: "",
  12975. score: 5,
  12976. })
  12977. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  12978. { value: "", detail: "", score: 5 },
  12979. ]);
  12980. this.$forceUpdate();
  12981. },
  12982. forceUpdate() {
  12983. this.$forceUpdate();
  12984. },
  12985. deletEList(index, tIndex, eIndex) {
  12986. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  12987. eIndex,
  12988. 1
  12989. );
  12990. this.$forceUpdate();
  12991. },
  12992. getChoosePic(t) {
  12993. this.chooseType = t;
  12994. this.getAllBanner();
  12995. },
  12996. getAllBanner() {
  12997. this.sysPicVisible = true;
  12998. let params = {
  12999. t: this.chooseType,
  13000. };
  13001. this.ajax
  13002. .get(this.$store.state.api + "selectAllBanner", params)
  13003. .then((res) => {
  13004. this.sysPic = res.data[0];
  13005. })
  13006. .catch((err) => {
  13007. console.error(err);
  13008. });
  13009. },
  13010. // getClass() {
  13011. // let params = {
  13012. // oid: this.oid,
  13013. // };
  13014. // this.ajax
  13015. // .get(this.$store.state.api + "selectClassBySchool", params)
  13016. // .then((res) => {
  13017. // this.classJuri = res.data[0];
  13018. // })
  13019. // .catch((err) => {
  13020. // console.error(err);
  13021. // });
  13022. // },
  13023. deleteSysPic() {
  13024. this.cover = [];
  13025. this.isSysPic = false;
  13026. this.isSysPic2 = false;
  13027. },
  13028. deleteSelectPic() {
  13029. this.selectJson.url = "";
  13030. },
  13031. setEListStar() {
  13032. this.$forceUpdate();
  13033. },
  13034. deletRateList(i) {
  13035. this.rateJson.splice(i, 1);
  13036. },
  13037. addRateList() {
  13038. this.rateJson.push({ detail: "", score: 5, value: "" });
  13039. },
  13040. addSt() {
  13041. this.sentenceList.push({
  13042. sentenceTitle: "",
  13043. addSentence: [],
  13044. rightAnswer: [],
  13045. });
  13046. },
  13047. addSen(i) {
  13048. if (!this.sentenceList[i].sentenceTitle) {
  13049. this.$message.error("请填写卡片内容!");
  13050. return;
  13051. }
  13052. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13053. this.$message.error("卡片内容字数不能超过10位");
  13054. return;
  13055. }
  13056. if (
  13057. this.sentenceList[i].addSentence.indexOf(
  13058. this.sentenceList[i].sentenceTitle
  13059. ) !== -1
  13060. ) {
  13061. this.$message.error("不能添加重复的卡片内容!");
  13062. return;
  13063. }
  13064. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13065. // this.isPushTitleList.push(this.sentenceTitle);
  13066. this.sentenceList[i].sentenceTitle = "";
  13067. },
  13068. setRightAnswer(s, i, j) {
  13069. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13070. this.sentenceList[i].rightAnswer.push(s);
  13071. }
  13072. },
  13073. returnCard(r, i, j) {
  13074. this.sentenceList[i].rightAnswer.splice(j, 1);
  13075. },
  13076. addSentenceTool() {
  13077. for (var i = 0; i < this.sentenceList.length; i++) {
  13078. if (this.sentenceList[i].rightAnswer.length == 0) {
  13079. this.$message.error(`请将题目${i + 1}设置完整。`);
  13080. return;
  13081. }
  13082. if (
  13083. this.sentenceList[i].addSentence.length !=
  13084. this.sentenceList[i].rightAnswer.length
  13085. ) {
  13086. this.$message.error(`请将题目${i + 1}设置完整。`);
  13087. return;
  13088. }
  13089. }
  13090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13091. this.taskCount
  13092. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13093. this.sentenceList = [
  13094. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13095. ];
  13096. this.dialogVisibleSentence = false;
  13097. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13098. // itemTaskIndex
  13099. // ].toolChoose[toolIndex].tool = [];
  13100. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13101. // itemTaskIndex
  13102. // ].toolChoose[toolIndex].tool.push(i);
  13103. if (
  13104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13105. .toolChoose[this.toolIndex].tool != 47
  13106. ) {
  13107. this.addTools(47, this.taskCount, this.toolIndex);
  13108. }
  13109. },
  13110. addTableJson() {
  13111. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13112. // this.$message.error("请将信息填写完整!");
  13113. // return;
  13114. // }
  13115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13116. this.taskCount
  13117. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13118. // this.tableJson = [{ text: "" }];
  13119. // this.dialogVisibleTable = false;
  13120. this.$message.success("上传成功");
  13121. if (
  13122. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13123. .toolChoose[this.toolIndex].tool != 48
  13124. ) {
  13125. this.addTools(48, this.taskCount, this.toolIndex);
  13126. }
  13127. },
  13128. addWordJson() {
  13129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13130. this.taskCount
  13131. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13132. // this.wordJson = [{ text: "" }];
  13133. // this.dialogVisibleWord = false;
  13134. this.$message.success("上传成功");
  13135. if (
  13136. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13137. .toolChoose[this.toolIndex].tool != 52
  13138. ) {
  13139. this.addTools(52, this.taskCount, this.toolIndex);
  13140. }
  13141. },
  13142. addMoreUpload() {
  13143. if (this.uploadJson.length == 0) {
  13144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13145. this.taskCount
  13146. ].toolChoose[this.toolIndex].uploadJson = [];
  13147. } else {
  13148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13149. this.taskCount
  13150. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13151. }
  13152. this.uploadJson = [];
  13153. this.dialogVisibleMoreUpload = false;
  13154. if (
  13155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13156. .toolChoose[this.toolIndex].tool != 50
  13157. ) {
  13158. this.addTools(50, this.taskCount, this.toolIndex);
  13159. }
  13160. },
  13161. addPreTime() {
  13162. if (this.preTime == 0) {
  13163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13164. this.taskCount
  13165. ].toolChoose[this.toolIndex].preTime = 0;
  13166. } else {
  13167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13168. this.taskCount
  13169. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13170. }
  13171. this.preTime = 0;
  13172. this.dialogVisiblePreTime = false;
  13173. if (
  13174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13175. .toolChoose[this.toolIndex].tool != 10
  13176. ) {
  13177. this.addTools(10, this.taskCount, this.toolIndex);
  13178. }
  13179. },
  13180. goToTask(i) {
  13181. this.toolIndexType = "";
  13182. if (this.isClickColor == i + 1) {
  13183. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13184. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13185. // i
  13186. // ].toolOpen = false;
  13187. // } else {
  13188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13189. i
  13190. ].toolOpen = true;
  13191. // }
  13192. this.$forceUpdate();
  13193. return;
  13194. }
  13195. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13196. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13197. // i
  13198. // ].toolOpen = false;
  13199. // } else {
  13200. document.querySelectorAll(".rightBox")[0].scrollTop =
  13201. document.querySelectorAll(".taskBorder")[i].offsetTop +
  13202. document.querySelectorAll(".taskBorder")[i].parentElement
  13203. .parentElement.offsetTop;
  13204. this.isClickColor = i + 1;
  13205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13206. i
  13207. ].toolOpen = true;
  13208. // }
  13209. this.$forceUpdate();
  13210. },
  13211. taskOpen(i){
  13212. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13214. } else {
  13215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  13216. }
  13217. this.$forceUpdate();
  13218. },
  13219. taskMove(type, index) {
  13220. // this
  13221. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  13222. // confirmButtonText: "确定",
  13223. // cancelButtonText: "取消",
  13224. // type: "warning",
  13225. // })
  13226. // .then(() => {
  13227. if (type == 1) {
  13228. if (index > 0) {
  13229. let a = JSON.parse(
  13230. JSON.stringify(
  13231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  13232. )
  13233. );
  13234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13235. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13237. }
  13238. } else {
  13239. if (
  13240. index <
  13241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13242. ) {
  13243. let a = JSON.parse(
  13244. JSON.stringify(
  13245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  13246. )
  13247. );
  13248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13250. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13251. }
  13252. }
  13253. this.$forceUpdate();
  13254. // })
  13255. // .catch(() => {
  13256. // return;
  13257. // })
  13258. },
  13259. addGroup(i) {
  13260. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13261. this.groupJson.group.push({
  13262. name: "第" + (this.groupJson.group.length + 1) + "组",
  13263. });
  13264. },
  13265. deleteGroup(i) {
  13266. this.groupJson.group.splice(i, 1);
  13267. },
  13268. numberPan() {
  13269. if (
  13270. /[^\d]/.test(this.groupJson.number) ||
  13271. this.groupJson.number < 2 ||
  13272. this.groupJson.number > 10
  13273. ) {
  13274. this.$message.error("请输入2-10的数字");
  13275. this.groupJson.number = "";
  13276. }
  13277. },
  13278. addGroupJson() {
  13279. for (var i = 0; i < this.groupJson.group.length; i++) {
  13280. if (!this.groupJson.group[i].name) {
  13281. this.$message.error("请将信息填写完整!");
  13282. return;
  13283. }
  13284. }
  13285. if (!this.groupJson.number) {
  13286. this.$message.error("请将信息填写完整!");
  13287. return;
  13288. }
  13289. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13290. this.taskCount
  13291. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13292. JSON.stringify(this.groupJson)
  13293. );
  13294. this.dialogVisibleGroup = false;
  13295. this.groupJson = {};
  13296. if (
  13297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13298. .toolChoose[this.toolIndex].tool != 49
  13299. ) {
  13300. this.addTools(49, this.taskCount, this.toolIndex);
  13301. }
  13302. },
  13303. updateTime(preTime) {
  13304. this.preTime = preTime;
  13305. },
  13306. InviteChange(val) {
  13307. console.log(val);
  13308. let _check = [];
  13309. let _check2 = [];
  13310. for (var i = 0; i < this.grade2.length; i++) {
  13311. var gid = this.grade2[i].id;
  13312. _check.push(gid);
  13313. }
  13314. for (var i = 0; i < this.checkboxList2.length; i++) {
  13315. var _id = this.checkboxList2[i];
  13316. if (_check.indexOf(_id) !== -1) {
  13317. _check2.push(_id);
  13318. }
  13319. }
  13320. this.checkAll = _check2.length === _check.length;
  13321. return;
  13322. let array = JSON.parse(JSON.stringify(val));
  13323. this.inviteCode = this.inviteCode.filter((el) => {
  13324. if (val.indexOf(el.cid) != -1) {
  13325. array.splice(array.indexOf(el.cid), 1);
  13326. return el;
  13327. }
  13328. });
  13329. for (var i = 0; i < array.length; i++) {
  13330. this.getInviteCode(array[i]);
  13331. }
  13332. },
  13333. handleCheckAllChange(val) {
  13334. if (val) {
  13335. for (var i = 0; i < this.grade2.length; i++) {
  13336. var gid = this.grade2[i].id;
  13337. if (this.checkboxList2.indexOf(gid) === -1) {
  13338. this.checkboxList2.push(gid);
  13339. }
  13340. }
  13341. } else {
  13342. let _check = [];
  13343. let _check2 = [];
  13344. for (var i = 0; i < this.grade2.length; i++) {
  13345. var gid = this.grade2[i].id;
  13346. _check.push(gid);
  13347. }
  13348. for (var i = 0; i < this.checkboxList2.length; i++) {
  13349. var _id = this.checkboxList2[i];
  13350. if (_check.indexOf(_id) === -1) {
  13351. _check2.push(_id);
  13352. }
  13353. }
  13354. this.checkboxList2 = _check2;
  13355. }
  13356. this.isIndeterminate = false;
  13357. },
  13358. async getInviteCode(cid) {
  13359. let code = this.randomNumber();
  13360. let params = {
  13361. code: code,
  13362. oid: this.oid,
  13363. };
  13364. let type = 1;
  13365. for (var i = 0; i < this.inviteCode.length; i++) {
  13366. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13367. type = 2;
  13368. }
  13369. }
  13370. if (type == 2) {
  13371. this.getInviteCode(cid);
  13372. return;
  13373. }
  13374. const res = await this.ajax.get(
  13375. this.$store.state.api + "selectInviteCode2",
  13376. params
  13377. );
  13378. if (
  13379. res.data.length &&
  13380. res.data[0].length &&
  13381. res.data[0][0].courseId != this.cid
  13382. ) {
  13383. this.getInviteCode(cid);
  13384. return;
  13385. }
  13386. let array = [];
  13387. for (var i = 0; i < this.inviteCode.length; i++) {
  13388. array.push(this.inviteCode[i].cid);
  13389. }
  13390. if (array.indexOf(cid) != -1) {
  13391. this.inviteCode[array.indexOf(cid)].ic = code;
  13392. } else {
  13393. this.inviteCode.push({ cid: cid, ic: code });
  13394. }
  13395. },
  13396. OpenInviteD(cid) {
  13397. let array = [];
  13398. this.icode = "";
  13399. for (var i = 0; i < this.inviteCode.length; i++) {
  13400. array.push(this.inviteCode[i].cid);
  13401. }
  13402. if (array.indexOf(cid) != -1) {
  13403. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13404. }
  13405. this.inviteId = cid;
  13406. this.dialogVisibleInvite = true;
  13407. },
  13408. addInvite() {
  13409. let reg = /^[A-Za-z0-9]{4,}$/;
  13410. if (!reg.test(this.icode)) {
  13411. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13412. return;
  13413. }
  13414. let type = 1;
  13415. for (var i = 0; i < this.inviteCode.length; i++) {
  13416. if (
  13417. this.inviteCode[i].cid != this.inviteId &&
  13418. this.icode == this.inviteCode[i].ic
  13419. ) {
  13420. type = 2;
  13421. }
  13422. }
  13423. if (type == 2) {
  13424. this.$message.error("已有此随机码,不能重复");
  13425. return;
  13426. }
  13427. let params = {
  13428. code: this.icode,
  13429. oid: this.oid,
  13430. };
  13431. this.ajax
  13432. .get(this.$store.state.api + "selectInviteCode", params)
  13433. .then((res) => {
  13434. if (
  13435. res.data.length &&
  13436. res.data[0].length &&
  13437. res.data[0][0].courseId != this.cid
  13438. ) {
  13439. this.$message.error("已有此随机码,不能重复");
  13440. return;
  13441. }
  13442. let array = [];
  13443. for (var i = 0; i < this.inviteCode.length; i++) {
  13444. array.push(this.inviteCode[i].cid);
  13445. }
  13446. if (array.indexOf(this.inviteId) != -1) {
  13447. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13448. } else {
  13449. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13450. }
  13451. this.icode = "";
  13452. this.dialogVisibleInvite = false;
  13453. })
  13454. .catch((err) => {
  13455. console.error(err);
  13456. });
  13457. },
  13458. randomNumber() {
  13459. // 随机生成两位数
  13460. // let num = Math.floor(Math.random() * 900) + 100;
  13461. // 生成 0 到 99 之间的随机整数
  13462. const randomNumber = Math.floor(Math.random() * 100);
  13463. // 如果随机数小于 10,补上前导零
  13464. const num =
  13465. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13466. // 随机生成两个大写字母
  13467. let letters = "";
  13468. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13469. for (let i = 0; i < 3; i++) {
  13470. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  13471. }
  13472. // 随机生成两位数字和字母的组合
  13473. let mix = "";
  13474. let chars =
  13475. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13476. for (let i = 0; i < 3; i++) {
  13477. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  13478. mix += char;
  13479. }
  13480. // 随机选择一种类型
  13481. let type = Math.floor(Math.random() * 3);
  13482. return num;
  13483. // 根据类型输出结果
  13484. switch (type) {
  13485. case 0:
  13486. console.log(num); // 输出两位数
  13487. return num;
  13488. case 1:
  13489. console.log(letters); // 输出两个大写字母
  13490. return letters;
  13491. case 2:
  13492. console.log(mix); // 输出两位数字和字母的组合
  13493. return mix;
  13494. }
  13495. },
  13496. getPaste() {
  13497. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  13498. if (!iframe) {
  13499. return;
  13500. }
  13501. let copyData = iframe.contentWindow.copyData;
  13502. // if (copyData && copyData.stageData && copyData.stageData.length) {
  13503. // this.isPasteStage = true
  13504. // }
  13505. if (copyData && copyData.selectData.length) {
  13506. this.isPasteChoice = true;
  13507. }
  13508. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  13509. this.isPasteTask = true;
  13510. }
  13511. },
  13512. searchImage() {
  13513. var _this = this;
  13514. _this.imageList = [];
  13515. if (!_this.searchImageValue) {
  13516. _this.sysPicVisible2 = true;
  13517. return;
  13518. }
  13519. _this.imageloading = true;
  13520. _this.ajax
  13521. .post("https://gpt.cocorobo.cn/search_image", {
  13522. page: _this.ppage,
  13523. pagesize: 9,
  13524. query: _this.searchImageValue,
  13525. })
  13526. .then(function (response) {
  13527. // console.log(response.data.data);
  13528. var data = response.data.FunctionResponse.result;
  13529. for (var i = 0; i < data.length; i++) {
  13530. _this.imageList.push({ url: data[i].thumbnail });
  13531. }
  13532. _this.imageloading = false;
  13533. })
  13534. .catch(function (error) {
  13535. console.log(error);
  13536. });
  13537. _this.sysPicVisible2 = true;
  13538. },
  13539. changePicture() {
  13540. this.ppage++;
  13541. this.searchImage();
  13542. },
  13543. resetImage() {
  13544. this.ppage = 1;
  13545. this.searchImage();
  13546. },
  13547. jumpGj(i, j) {
  13548. if (i + 1 != this.isClickColor) {
  13549. this.isClickColor = i + 1;
  13550. }
  13551. var a = document.scrollingElement;
  13552. this.toolIndexType = `gj${i}${j}`;
  13553. let target = document.querySelector(`#gj${i}${j}`);
  13554. if (target) {
  13555. target.scrollIntoView(true);
  13556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13557. j
  13558. ].isFold3 = false;
  13559. // setTimeout(() => {
  13560. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  13561. // }, 0);
  13562. }
  13563. },
  13564. dragStart(val, i, j) {
  13565. this.taskCount = j;
  13566. this.oldIndex = i;
  13567. this.oldData = val;
  13568. },
  13569. dragOver(i, j) {
  13570. this.typeIndex = "chapter-" + j + "-" + i;
  13571. this.newIndex = i;
  13572. },
  13573. dragEnd() {
  13574. let newItems = [
  13575. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13576. .chapterData,
  13577. ];
  13578. // 删除老的节点
  13579. newItems.splice(this.oldIndex, 1);
  13580. // 在列表中目标位置增加新的节点
  13581. newItems.splice(this.newIndex, 0, this.oldData);
  13582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13583. this.taskCount
  13584. ].chapterData = [...newItems];
  13585. this.typeIndex = "";
  13586. this.newIndex = "";
  13587. this.isdrag = "";
  13588. this.$forceUpdate();
  13589. },
  13590. dragTaskStart(val, i) {
  13591. this.oldIndex = i;
  13592. this.oldData = val;
  13593. },
  13594. dragTaskOver(i) {
  13595. this.typeIndex = "task-" + i;
  13596. this.newIndex = i;
  13597. },
  13598. async dragTaskEnd() {
  13599. if (this.newIndex == this.oldIndex) {
  13600. this.newIndex = "";
  13601. this.typeIndex = "";
  13602. this.isdrag = "";
  13603. return;
  13604. }
  13605. let count1 = await this.getWorksCount(2, 0, this.newIndex, 0)
  13606. let count2 = await this.getWorksCount(2, 0, this.oldIndex, 0)
  13607. if(count1 > 0 || count2 > 0){
  13608. this.$confirm(
  13609. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13610. "提示",
  13611. {
  13612. confirmButtonText: "确定",
  13613. cancelButtonText: "取消",
  13614. type: "warning",
  13615. }
  13616. )
  13617. .then(() => {
  13618. let newItems = [
  13619. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  13620. ];
  13621. // 删除老的节点
  13622. newItems.splice(this.oldIndex, 1);
  13623. // 在列表中目标位置增加新的节点
  13624. newItems.splice(this.newIndex, 0, this.oldData);
  13625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  13626. this.typeIndex = "";
  13627. this.newIndex = "";
  13628. this.isdrag = "";
  13629. this.$forceUpdate();
  13630. })
  13631. .catch(() => {
  13632. this.typeIndex = "";
  13633. this.newIndex = "";
  13634. this.isdrag = "";
  13635. return;
  13636. });
  13637. }else{
  13638. let newItems = [
  13639. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  13640. ];
  13641. // 删除老的节点
  13642. newItems.splice(this.oldIndex, 1);
  13643. // 在列表中目标位置增加新的节点
  13644. newItems.splice(this.newIndex, 0, this.oldData);
  13645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  13646. this.typeIndex = "";
  13647. this.newIndex = "";
  13648. this.$forceUpdate();
  13649. }
  13650. },
  13651. getWorksCount(type, stage, task, tool){
  13652. return new Promise((resolve, reject) => {
  13653. let params = [
  13654. {
  13655. cid: this.cid,
  13656. stage: stage,
  13657. task: task,
  13658. tool: tool,
  13659. type: type
  13660. },
  13661. ];
  13662. this.ajax
  13663. .post(this.$store.state.api + "getCourseWorkCount", params)
  13664. .then((res) => {
  13665. let count = res.data[0][0].count
  13666. resolve(count)
  13667. })
  13668. .catch((err) => {
  13669. resolve(0)
  13670. this.$message.error("网络不佳");
  13671. console.error(err);
  13672. });
  13673. });
  13674. }
  13675. },
  13676. beforeDestroy() {
  13677. clearTimeout(this.timer);
  13678. this.timer = null;
  13679. clearInterval(this.timer2);
  13680. this.timer2 = null;
  13681. clearInterval(this.pasteTimer);
  13682. this.pasteTimer = null;
  13683. },
  13684. beforeRouteLeave(to, from, next) {
  13685. clearTimeout(this.timer);
  13686. this.timer = null;
  13687. clearInterval(this.timer2);
  13688. this.timer2 = null;
  13689. clearInterval(this.pasteTimer);
  13690. this.pasteTimer = null;
  13691. next();
  13692. },
  13693. created() {
  13694. this.getStudent();
  13695. this.getTeacher();
  13696. this.getClass();
  13697. this.selectGrage();
  13698. this.getTemplate();
  13699. // this.selectType();
  13700. this.selectEva();
  13701. this.loading = false;
  13702. this.timer2 = setInterval(() => {
  13703. this.selectEva();
  13704. }, 5000);
  13705. this.pasteTimer = setInterval(() => {
  13706. this.getPaste();
  13707. }, 1000);
  13708. setTimeout(() => {
  13709. this.selectCourseDetail();
  13710. }, 500);
  13711. },
  13712. mounted() {
  13713. this.$nextTick(() => {
  13714. //监听这个dom的scroll事件
  13715. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  13716. this.heightPx = $(".rightBox")[0].offsetHeight + "px";
  13717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true;
  13718. this.$forceUpdate();
  13719. });
  13720. },
  13721. };
  13722. </script>
  13723. <style scoped>
  13724. @media screen and (max-width: 1280px) {
  13725. .mbCss {
  13726. flex-direction: column !important;
  13727. }
  13728. .pjCss {
  13729. width: 100% !important;
  13730. }
  13731. .evaCss {
  13732. width: 100% !important;
  13733. }
  13734. }
  13735. .dialog_diy >>> .el-dialog__header {
  13736. background: #3c3c3c !important;
  13737. padding: 15px 20px;
  13738. }
  13739. .dialog_diy >>> .el-dialog__title {
  13740. color: #fff;
  13741. }
  13742. .dialog_diy >>> .el-dialog__headerbtn {
  13743. top: 19px;
  13744. }
  13745. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  13746. color: #fff;
  13747. }
  13748. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  13749. color: #fff;
  13750. }
  13751. .dialog_diy >>> .el-dialog__body,
  13752. .dialog_diy >>> .el-dialog__footer {
  13753. background: #fafafa;
  13754. }
  13755. .dialog_diy3 >>> .el-dialog__body,
  13756. .dialog_diy3 >>> .el-dialog__footer {
  13757. background: #eee !important;
  13758. }
  13759. .dialog_diy3 >>> .el-dialog__body {
  13760. padding: 20px 20px;
  13761. }
  13762. .source_diy >>> .el-dialog {
  13763. height: 100% !important;
  13764. margin: 0 auto !important;
  13765. }
  13766. .source_diy >>> .el-dialog__body {
  13767. height: calc(100% - 185px);
  13768. overflow: auto;
  13769. background: #e6eaf0;
  13770. }
  13771. .source_diy >>> .el-dialog__footer {
  13772. background: #e6eaf0 !important;
  13773. }
  13774. .left {
  13775. border-right: 1px solid rgb(60, 94, 143);
  13776. display: flex;
  13777. flex-direction: column;
  13778. align-items: center;
  13779. min-height: 600px;
  13780. width: 385px;
  13781. height: 80%;
  13782. }
  13783. .tips {
  13784. color: rgb(128, 128, 128);
  13785. font-size: 12px;
  13786. width: 270px;
  13787. margin: 40px;
  13788. }
  13789. .pb_content {
  13790. height: 100% !important;
  13791. /* margin: 0 20px 0 20px; */
  13792. }
  13793. .pb_content_body {
  13794. width: 100% !important;
  13795. height: 100%;
  13796. }
  13797. .info_solid {
  13798. width: 270px;
  13799. height: 30px;
  13800. border-left: 1px solid #bdbdbd;
  13801. margin: 10px 0px 10px 30px;
  13802. }
  13803. .info_steps {
  13804. width: 270px;
  13805. font-size: 0.875rem;
  13806. display: flex;
  13807. align-items: center;
  13808. }
  13809. .info_steps span:nth-child(1) {
  13810. width: 30px;
  13811. height: 30px;
  13812. background: rgba(0, 0, 0, 0.38);
  13813. display: block;
  13814. color: #fff;
  13815. border-radius: 40px;
  13816. text-align: center;
  13817. line-height: 30px;
  13818. }
  13819. .steps_active {
  13820. background: #3d67bc !important;
  13821. }
  13822. .info_steps span:nth-child(2) {
  13823. margin-left: 5px;
  13824. }
  13825. .right {
  13826. height: 100%;
  13827. width: calc(100% - 40px);
  13828. display: flex;
  13829. overflow: hidden;
  13830. margin: 0 auto;
  13831. }
  13832. .basic_box {
  13833. margin: 0 auto;
  13834. position: relative;
  13835. padding: 0 20px 0 20px;
  13836. }
  13837. .basic_box2 {
  13838. position: relative;
  13839. width: calc(100% - 300px);
  13840. }
  13841. .basic_box_success {
  13842. width: 100%;
  13843. height: 100%;
  13844. padding: 50px 0;
  13845. position: relative;
  13846. text-align: center;
  13847. /* border-bottom: 1px solid #bfbfbf; */
  13848. box-sizing: border-box;
  13849. display: flex;
  13850. align-items: center;
  13851. flex-direction: column;
  13852. justify-content: center;
  13853. }
  13854. .info_title {
  13855. font-size: 1.5em;
  13856. margin-right: 25px;
  13857. /* margin: 20px 30px 20px 30px; */
  13858. }
  13859. .bInfo_title {
  13860. text-align: left;
  13861. margin: 10px 0;
  13862. }
  13863. .small_title {
  13864. font-size: 14px;
  13865. line-height: 40px;
  13866. }
  13867. .chapter_beizhu {
  13868. font-size: 12px;
  13869. font-weight: bold;
  13870. float: right;
  13871. color: rgb(128, 128, 128);
  13872. margin-top: 5px;
  13873. }
  13874. .chapter_uploadBox1 {
  13875. text-align: left;
  13876. background-color: rgb(242, 242, 242);
  13877. width: 100%;
  13878. height: 67px;
  13879. padding: 0px 15px;
  13880. border-radius: 8px;
  13881. overflow: hidden;
  13882. font-size: 16px;
  13883. box-sizing: border-box;
  13884. position: relative;
  13885. }
  13886. .chapter_add {
  13887. width: 100%;
  13888. height: 32px;
  13889. margin-top: 15px;
  13890. cursor: pointer;
  13891. }
  13892. .chapter_add_l {
  13893. margin-left: 5px;
  13894. width: 30px;
  13895. height: 30px;
  13896. float: left;
  13897. border: 1px solid #aaa;
  13898. color: #aaa;
  13899. border-radius: 50%;
  13900. font-size: 25px;
  13901. text-align: center;
  13902. }
  13903. .chapter_add_r {
  13904. font-size: 18px;
  13905. height: 40px;
  13906. line-height: 30px;
  13907. text-indent: 10px;
  13908. color: #aaa;
  13909. }
  13910. .chapter_add_r span {
  13911. font-size: 12px;
  13912. color: rgb(204, 204, 204);
  13913. }
  13914. .chapter_add_input {
  13915. display: none;
  13916. }
  13917. .line {
  13918. width: 85%;
  13919. margin: 0 auto;
  13920. border-top: 1px solid #e5e5e5;
  13921. margin-top: 20px;
  13922. }
  13923. .info_btnBox {
  13924. width: calc(100%);
  13925. display: flex;
  13926. justify-content: center;
  13927. height: 70px;
  13928. align-items: center;
  13929. background: #fff;
  13930. margin: 0 auto;
  13931. border-top: 2px solid rgb(228, 232, 237);
  13932. box-sizing: border-box;
  13933. border-radius: 0px 0 5px 5px;
  13934. }
  13935. .info_btnBox2 {
  13936. width: calc(100%);
  13937. display: flex;
  13938. justify-content: center;
  13939. height: 20px;
  13940. align-items: center;
  13941. background: #fff;
  13942. margin: 0 auto;
  13943. border-top: 2px solid rgb(228, 232, 237);
  13944. box-sizing: border-box;
  13945. overflow: hidden;
  13946. cursor: pointer;
  13947. }
  13948. .info_btnBox3 {
  13949. width: calc(100%);
  13950. display: flex;
  13951. justify-content: flex-end;
  13952. padding: 0 20px;
  13953. height: 60px;
  13954. align-items: center;
  13955. background: unset;
  13956. margin: 0 auto;
  13957. /* border-top: 1px solid rgb(228, 232, 237); */
  13958. box-sizing: border-box;
  13959. overflow: hidden;
  13960. cursor: pointer;
  13961. background: #fff;
  13962. border-radius: 10px;
  13963. }
  13964. .info_btn + .info_btn {
  13965. margin-left: 15px;
  13966. }
  13967. .info_btn,
  13968. .teacherWord {
  13969. color: #fff;
  13970. background-color: #0f7eff;
  13971. padding: 8px 24px;
  13972. font-size: 0.9375rem;
  13973. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  13974. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  13975. min-width: 64px;
  13976. font-weight: 500;
  13977. border-radius: 4px;
  13978. box-sizing: border-box;
  13979. border: none;
  13980. cursor: pointer;
  13981. }
  13982. .teacherWord {
  13983. width: 105px !important;
  13984. text-align: center !important;
  13985. line-height: 36px !important;
  13986. padding: 0 !important;
  13987. font-size: 14px !important;
  13988. margin: 10px 0 !important;
  13989. }
  13990. .wordTeacher {
  13991. display: flex;
  13992. flex-direction: column;
  13993. width: 20%;
  13994. text-align: center;
  13995. font-size: 14px;
  13996. margin: 30px 30px 0 10px;
  13997. background: #fff;
  13998. position: relative;
  13999. border-radius: 5px;
  14000. padding: 25px 0px;
  14001. }
  14002. .wordPic {
  14003. margin: 0 auto;
  14004. width: 60px;
  14005. height: 60px;
  14006. cursor: pointer;
  14007. }
  14008. .deleteWord {
  14009. width: 22px;
  14010. height: 22px;
  14011. position: absolute;
  14012. right: 5px;
  14013. top: -15px;
  14014. cursor: pointer;
  14015. display: none;
  14016. z-index: 999;
  14017. }
  14018. .wordPic > img,
  14019. .deleteWord > img,
  14020. .addToolImg > img {
  14021. width: 100%;
  14022. height: 100%;
  14023. }
  14024. .info_btn:hover {
  14025. background-color: #4f7cd5 !important;
  14026. }
  14027. .cru_selectBox {
  14028. display: flex;
  14029. margin: 24px 0 10px;
  14030. flex-wrap: nowrap;
  14031. white-space: nowrap;
  14032. overflow: auto;
  14033. position: relative;
  14034. height: 47px;
  14035. }
  14036. .cru_selectBox::-webkit-scrollbar {
  14037. /*滚动条整体样式*/
  14038. width: 6px;
  14039. /*高宽分别对应横竖滚动条的尺寸*/
  14040. height: 6px;
  14041. }
  14042. /*定义滚动条轨道 内阴影+圆角*/
  14043. .cru_selectBox::-webkit-scrollbar-track {
  14044. border-radius: 10px;
  14045. background-color: #eee;
  14046. }
  14047. /*定义滑块 内阴影+圆角*/
  14048. .cru_selectBox::-webkit-scrollbar-thumb {
  14049. border-radius: 10px;
  14050. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14051. background-color: rgba(0, 0, 0, 0.1);
  14052. }
  14053. .cru_line {
  14054. position: absolute;
  14055. bottom: 0px;
  14056. transition: all 0.5s;
  14057. left: 0px;
  14058. width: 125px;
  14059. margin-left: -25px;
  14060. }
  14061. .cru_select {
  14062. font-size: 21px;
  14063. margin-right: 37px;
  14064. margin-left: 5px;
  14065. cursor: pointer;
  14066. color: #a6a6a6;
  14067. }
  14068. .cru_selected {
  14069. color: #0b7fc2 !important;
  14070. }
  14071. .chapter_contentbox {
  14072. display: flex;
  14073. align-items: center;
  14074. margin-top: 15px;
  14075. }
  14076. .chapter_contentbox .cc_title {
  14077. margin: 0px;
  14078. color: black;
  14079. display: block;
  14080. white-space: nowrap;
  14081. overflow: hidden;
  14082. text-overflow: ellipsis;
  14083. margin-right: 20px;
  14084. font-size: 18px;
  14085. height: 20px;
  14086. line-height: 22px;
  14087. min-width: fit-content;
  14088. display: flex;
  14089. }
  14090. .chapter_contentbox .cc_title::before {
  14091. content: "";
  14092. height: 100%;
  14093. width: 3px;
  14094. background: #3681fc;
  14095. border-radius: 3px;
  14096. opacity: 1;
  14097. display: block;
  14098. margin-right: 10px;
  14099. }
  14100. .chapter_contentbox .cc_input {
  14101. width: 100%;
  14102. display: flex;
  14103. }
  14104. .show_taskD {
  14105. min-width: fit-content;
  14106. margin-left: 10px;
  14107. display: flex;
  14108. align-items: center;
  14109. font-size: 14px;
  14110. cursor: pointer;
  14111. color: #717c8d;
  14112. }
  14113. .show_taskD > img {
  14114. width: 15px;
  14115. margin-right: 5px;
  14116. transition: 0.2s all;
  14117. transform: rotate(-90deg);
  14118. }
  14119. .show_taskD.show > img {
  14120. transform: rotate(0deg);
  14121. }
  14122. .show_toolD {
  14123. min-width: fit-content;
  14124. margin-left: 10px;
  14125. display: flex;
  14126. align-items: center;
  14127. font-size: 14px;
  14128. cursor: pointer;
  14129. color: #717c8d;
  14130. /* position: absolute;
  14131. right: 45px;
  14132. top: 5px; */
  14133. }
  14134. .show_toolD > img {
  14135. width: 15px;
  14136. margin-right: 5px;
  14137. transition: 0.2s all;
  14138. transform: rotate(-90deg);
  14139. }
  14140. .show_toolD.show > img {
  14141. transform: rotate(0deg);
  14142. }
  14143. .remove {
  14144. background-image: url("../../../assets/icon/new/delete_u.png");
  14145. cursor: pointer;
  14146. opacity: 0.5;
  14147. width: 30px;
  14148. min-width: 30px;
  14149. height: 30px;
  14150. background-size: 100% 100%;
  14151. background-repeat: no-repeat;
  14152. margin-left: 10px;
  14153. }
  14154. .remove1 {
  14155. background-image: url("../../../assets/remove1.png");
  14156. background-repeat: no-repeat;
  14157. background-position: 5px 10px;
  14158. width: 40px;
  14159. height: 50px;
  14160. cursor: pointer;
  14161. margin-left: 10px;
  14162. }
  14163. .binfo_input {
  14164. width: 100%;
  14165. margin: 0;
  14166. padding: 12px 14px;
  14167. display: block;
  14168. min-width: 0;
  14169. outline: none;
  14170. box-sizing: border-box;
  14171. background: none;
  14172. border: none;
  14173. border-radius: 4px;
  14174. background: #fff;
  14175. font-size: 16px;
  14176. resize: none;
  14177. font-family: "Microsoft YaHei";
  14178. min-height: 48px;
  14179. /* border: 1px solid #3682fc00; */
  14180. border: 1.5px solid #cad1dc;
  14181. }
  14182. .binfo_textarea {
  14183. border: 1.5px solid #cad1dc;
  14184. font-size: 16px;
  14185. resize: none;
  14186. background: #f6f6f6;
  14187. font-family: "Microsoft YaHei";
  14188. }
  14189. .binfo_input:focus-visible {
  14190. border: 1.5px solid #3681fc !important;
  14191. }
  14192. .time {
  14193. display: flex;
  14194. margin: 35px 0 80px 0;
  14195. }
  14196. .chapter_btnbox {
  14197. width: 160px;
  14198. border-radius: 5px;
  14199. border: 2px dashed gray;
  14200. display: flex;
  14201. padding: 8px 50px;
  14202. align-items: center;
  14203. justify-content: center;
  14204. margin: 30px auto 0;
  14205. cursor: pointer;
  14206. }
  14207. .icon_add {
  14208. position: relative;
  14209. width: 24px;
  14210. padding-top: 20px;
  14211. border-radius: 100%;
  14212. border-width: 2px;
  14213. border-style: solid;
  14214. border-color: gray;
  14215. }
  14216. .icon_add i:nth-child(1) {
  14217. position: absolute;
  14218. left: 50%;
  14219. top: 50%;
  14220. height: 60%;
  14221. transform: translate(-50%, -50%);
  14222. border-width: 1px;
  14223. border-style: solid;
  14224. border-color: inherit;
  14225. }
  14226. .icon_add i:nth-child(2) {
  14227. position: absolute;
  14228. top: 50%;
  14229. left: 50%;
  14230. width: 60%;
  14231. transform: translate(-50%, -50%);
  14232. border-width: 1px;
  14233. border-style: solid;
  14234. border-color: inherit;
  14235. }
  14236. .chapter_btn_w {
  14237. font-size: 0.9375rem;
  14238. font-weight: bold;
  14239. color: gray;
  14240. margin-left: 20px;
  14241. }
  14242. .disUoloadSty >>> .el-icon-plus {
  14243. display: none !important;
  14244. /* 上传按钮隐藏 */
  14245. }
  14246. .imgLeft {
  14247. margin: 15px 0;
  14248. }
  14249. .add_info_box {
  14250. margin: 0 0 0 auto;
  14251. display: flex;
  14252. flex-wrap: wrap;
  14253. }
  14254. .add_info_box button {
  14255. margin: 0 5px 10px 0;
  14256. }
  14257. .add_info_box2 {
  14258. display: flex;
  14259. align-items: center;
  14260. flex-wrap: wrap;
  14261. }
  14262. .add_info_box2::after {
  14263. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14264. color: red;
  14265. font-size: 14px;
  14266. margin-bottom: 10px;
  14267. }
  14268. .add_chapters_box {
  14269. text-align: left;
  14270. background-color: #fff;
  14271. width: 100%;
  14272. border-radius: 4px;
  14273. font-size: 16px;
  14274. box-sizing: border-box;
  14275. position: relative;
  14276. padding: 0 15px;
  14277. height: auto;
  14278. overflow-y: auto;
  14279. overflow-x: hidden;
  14280. border: 1px solid #cad1dc;
  14281. }
  14282. .add_chapters_box.add_c_none {
  14283. display: flex;
  14284. justify-content: center;
  14285. align-items: center;
  14286. padding: 15px;
  14287. }
  14288. .add_c_none > img {
  14289. width: 25px;
  14290. }
  14291. .add_chapters_box.add_c_none > span {
  14292. font-size: 14px;
  14293. font-weight: 400;
  14294. margin: 0 0 5px 5px;
  14295. }
  14296. .homework_box {
  14297. display: flex;
  14298. align-items: flex-start;
  14299. flex-wrap: wrap;
  14300. margin: 15px 0 0 0;
  14301. flex-direction: column;
  14302. align-content: flex-start;
  14303. }
  14304. .course_homework {
  14305. display: flex;
  14306. justify-content: center;
  14307. flex-direction: row;
  14308. align-items: center;
  14309. margin: 0 10px 0 0;
  14310. }
  14311. .course_homework >>> .el-input__inner {
  14312. width: 140px;
  14313. margin-left: 15px;
  14314. }
  14315. .chapter_upload_move {
  14316. position: relative;
  14317. background-color: #fff;
  14318. position: absolute;
  14319. width: 100%;
  14320. top: 0px;
  14321. left: 0px;
  14322. border: 1px solid #eee;
  14323. border-radius: 5px;
  14324. transition: width 2s;
  14325. -moz-transition: width 2s;
  14326. -webkit-transition: width 2s;
  14327. -o-transition: width 2s;
  14328. }
  14329. .chapter_upload_l_i {
  14330. background-image: url("../../../assets/icon.png");
  14331. background-position: 3px -165px;
  14332. width: 30px;
  14333. height: 30px;
  14334. margin: 10px auto 0 auto;
  14335. }
  14336. .course_input_box {
  14337. display: flex;
  14338. margin-right: 20px;
  14339. width: 100%;
  14340. align-items: center;
  14341. position: relative;
  14342. }
  14343. .course_input_box > .binfo_input {
  14344. width: calc(100% - 0 - 200px - 20px);
  14345. margin: 0 10px;
  14346. }
  14347. .bb_courseIcon {
  14348. width: 57px;
  14349. height: 45px;
  14350. background: #f0f4fa;
  14351. border-radius: 5px 0px 0px 5px;
  14352. display: flex;
  14353. align-items: center;
  14354. justify-content: center;
  14355. border-right: 1.5px solid rgb(202, 209, 220);
  14356. box-sizing: border-box;
  14357. position: absolute;
  14358. left: 1.5px;
  14359. }
  14360. .bb_courseIcon > img {
  14361. width: 25px;
  14362. height: auto;
  14363. }
  14364. .big_box {
  14365. /* margin-top: 20px; */
  14366. display: flex;
  14367. justify-content: space-between;
  14368. /* border-bottom: 1px solid #E0E2ED; */
  14369. }
  14370. .left_first {
  14371. display: flex;
  14372. flex-direction: column;
  14373. flex-wrap: nowrap;
  14374. width: calc(100% - 310px);
  14375. padding: 20px;
  14376. box-sizing: border-box;
  14377. background: #fff;
  14378. border-radius: 5px;
  14379. }
  14380. .right_first {
  14381. width: 300px;
  14382. display: flex;
  14383. align-items: center;
  14384. justify-content: center;
  14385. /* border-left: 1px solid #E0E2ED; */
  14386. box-sizing: border-box;
  14387. padding: 20px;
  14388. flex-direction: column;
  14389. background: #fff;
  14390. border-radius: 5px;
  14391. }
  14392. .ai_box {
  14393. width: 204px;
  14394. display: flex;
  14395. justify-content: flex-end;
  14396. margin-bottom: 15px;
  14397. }
  14398. .ai_content {
  14399. display: flex;
  14400. align-items: center;
  14401. font-size: 14px;
  14402. padding: 7px 20px;
  14403. box-sizing: border-box;
  14404. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14405. border-radius: 12px;
  14406. font-weight: 700;
  14407. cursor: pointer;
  14408. }
  14409. .ai_content > img {
  14410. width: 40px;
  14411. margin-right: 5px;
  14412. }
  14413. .c_info_title {
  14414. padding: 15px 0 15px 0;
  14415. font-size: 16px;
  14416. font-weight: bold;
  14417. margin: 0 0 0 20px;
  14418. box-sizing: border-box;
  14419. display: flex;
  14420. align-items: center;
  14421. line-height: 20px;
  14422. }
  14423. .c_info_title::before {
  14424. content: "";
  14425. display: block;
  14426. width: 3px;
  14427. height: 20px;
  14428. background: #0061ff;
  14429. border-radius: 3px;
  14430. margin: 0 5px 0 0;
  14431. }
  14432. .right_title {
  14433. /* height: 30px; */
  14434. padding: 0 20px;
  14435. font-size: 18px;
  14436. font-weight: bold;
  14437. /* color: #0f7eff; */
  14438. margin: 20px auto 0;
  14439. display: flex;
  14440. /* justify-content: space-between; */
  14441. align-items: center;
  14442. }
  14443. .people {
  14444. border: 1px solid rgb(229 229 229);
  14445. height: 495px;
  14446. border-radius: 5px;
  14447. width: 100%;
  14448. overflow: auto;
  14449. }
  14450. .people_top {
  14451. display: flex;
  14452. width: 100%;
  14453. /* justify-content: space-between; */
  14454. /* align-items: center; */
  14455. flex-direction: column;
  14456. padding: 10px 10px 0;
  14457. box-sizing: border-box;
  14458. }
  14459. .people_nav,
  14460. .people_top_right {
  14461. /* padding: 20px 0 0 20px; */
  14462. }
  14463. .people_top_right {
  14464. height: 40px;
  14465. margin-bottom: 10px;
  14466. }
  14467. .people_search {
  14468. display: flex;
  14469. position: relative;
  14470. }
  14471. .people_search >>> .el-input__inner {
  14472. /* height: 25px; */
  14473. width: 95%;
  14474. }
  14475. .search_img {
  14476. width: 20px;
  14477. height: 20px;
  14478. position: absolute;
  14479. right: 30px;
  14480. top: 50%;
  14481. transform: translateY(-50%);
  14482. }
  14483. .search_img > img {
  14484. width: 100%;
  14485. height: 100%;
  14486. }
  14487. .people_name {
  14488. display: flex;
  14489. justify-content: flex-start;
  14490. padding: 20px 10px;
  14491. flex-direction: column;
  14492. flex-wrap: wrap;
  14493. }
  14494. .p_box {
  14495. position: relative;
  14496. }
  14497. .people_name >>> .el-checkbox {
  14498. width: 100%;
  14499. display: flex;
  14500. align-items: center;
  14501. margin-bottom: 10px;
  14502. }
  14503. .people_name >>> .el-checkbox__label {
  14504. text-overflow: ellipsis;
  14505. overflow: hidden;
  14506. width: calc(100%);
  14507. }
  14508. .people_name2 >>> .el-checkbox__label {
  14509. width: calc(100% - 130px);
  14510. }
  14511. .inviteCode {
  14512. position: absolute;
  14513. right: 30px;
  14514. color: #237ade;
  14515. top: 0;
  14516. cursor: pointer;
  14517. font-size: 13px;
  14518. }
  14519. .noneInvite {
  14520. color: #a8a8a8;
  14521. }
  14522. .inviteImg {
  14523. position: absolute;
  14524. right: 5px;
  14525. top: 0;
  14526. width: 20px;
  14527. }
  14528. .right_img {
  14529. width: 150px;
  14530. height: 150px;
  14531. margin: 20px auto;
  14532. }
  14533. .right_img > img {
  14534. width: 100%;
  14535. height: 100%;
  14536. }
  14537. .number {
  14538. margin-top: 20px;
  14539. color: #4aa6ff;
  14540. text-decoration: underline;
  14541. }
  14542. .success_button {
  14543. display: flex;
  14544. text-align: center;
  14545. margin: 5% 0 auto;
  14546. flex-direction: row;
  14547. justify-content: center;
  14548. }
  14549. .look_course {
  14550. margin-right: 40px;
  14551. background: #3d67bc;
  14552. width: 200px;
  14553. height: 35px;
  14554. line-height: 35px;
  14555. color: #fff;
  14556. text-align: center;
  14557. font-size: 14px;
  14558. border-radius: 5px;
  14559. cursor: pointer;
  14560. }
  14561. .attend_others {
  14562. width: 250px;
  14563. background: #4fb13c;
  14564. height: 35px;
  14565. line-height: 35px;
  14566. color: #fff;
  14567. text-align: center;
  14568. font-size: 14px;
  14569. border-radius: 5px;
  14570. cursor: pointer;
  14571. }
  14572. .dialog_diy2 >>> .el-dialog__body {
  14573. text-align: center;
  14574. }
  14575. .write_togother {
  14576. position: absolute;
  14577. right: 45px;
  14578. display: flex;
  14579. top: 5%;
  14580. }
  14581. .write_people {
  14582. font-size: 14px;
  14583. line-height: 50px;
  14584. padding-right: 10px;
  14585. }
  14586. .end_write {
  14587. background: #3d67bc;
  14588. color: #fff;
  14589. width: 100px;
  14590. height: 35px;
  14591. line-height: 35px;
  14592. text-align: center;
  14593. font-size: 14px;
  14594. border-radius: 5px;
  14595. cursor: pointer;
  14596. }
  14597. .chapter_upload + .chapter_upload {
  14598. /* margin-top: 15px; */
  14599. border-top: 1px solid #e7ebf1;
  14600. }
  14601. .chapter_upload {
  14602. height: 45px;
  14603. position: relative;
  14604. display: flex;
  14605. align-items: center;
  14606. width: 100%;
  14607. min-height: 45px;
  14608. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  14609. /* border-radius: 4px; */
  14610. /* overflow: hidden; */
  14611. box-sizing: border-box;
  14612. }
  14613. .chapter_upload:hover > .chapter_upload_drag{
  14614. display: block;
  14615. }
  14616. .chapter_upload_drag {
  14617. position: absolute;
  14618. cursor: pointer;
  14619. width: 16px;
  14620. height: 16px;
  14621. left: -9px;
  14622. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  14623. background-size: 100% 100%;
  14624. z-index: 10;
  14625. display: none;
  14626. }
  14627. .chapter_upload_t {
  14628. background-color: #fff;
  14629. position: absolute;
  14630. height: 100%;
  14631. top: 0px;
  14632. left: 0px;
  14633. box-sizing: border-box;
  14634. }
  14635. .chapter_upload_o {
  14636. width: 100%;
  14637. height: 100%;
  14638. position: relative;
  14639. z-index: 1;
  14640. }
  14641. .chapter_upload_ic {
  14642. margin: 0 15px 0px auto;
  14643. display: flex;
  14644. align-items: center;
  14645. }
  14646. .chapter_upload_ic_l {
  14647. width: 50px;
  14648. height: 50px;
  14649. float: left;
  14650. }
  14651. .chapter_upload_ic_l div {
  14652. width: 30px;
  14653. height: 35px;
  14654. background: url("../../../assets/icon/icon.png");
  14655. }
  14656. .chapter_upload_ic_edit {
  14657. height: 100%;
  14658. display: flex;
  14659. align-items: center;
  14660. cursor: pointer;
  14661. margin: 0 10px 0 0;
  14662. }
  14663. .chapter_upload_ic_edit div {
  14664. width: 18px;
  14665. height: 18px;
  14666. background-image: url("../../../assets/icon/new/edit_u.png");
  14667. background-size: 100% 100%;
  14668. }
  14669. .chapter_upload_ic_r {
  14670. height: 100%;
  14671. display: flex;
  14672. align-items: center;
  14673. cursor: pointer;
  14674. }
  14675. .chapter_upload_ic_r div {
  14676. width: 18px;
  14677. height: 18px;
  14678. background-image: url("../../../assets/icon/new/delete_u.png");
  14679. background-size: 100% 100%;
  14680. }
  14681. .chapter_upload_n {
  14682. display: flex;
  14683. text-indent: 10px;
  14684. text-decoration: none;
  14685. text-overflow: ellipsis;
  14686. white-space: nowrap;
  14687. overflow: hidden;
  14688. width: 55%;
  14689. margin-left: 10px;
  14690. cursor: pointer;
  14691. margin-top: 2px;
  14692. align-items: center;
  14693. }
  14694. .chapter_upload_l_i2,
  14695. .chapter_upload_l_i3,
  14696. .chapter_upload_l_i8,
  14697. .chapter_upload_l_i6,
  14698. .chapter_upload_l_i12,
  14699. .chapter_upload_l_i14,
  14700. .chapter_upload_l_i13 {
  14701. width: 15px;
  14702. height: 15px;
  14703. background-size: 100% 100%;
  14704. }
  14705. .chapter_upload_l_i2 {
  14706. background-image: url("../../../assets/icon/new/u_word.png");
  14707. }
  14708. .chapter_upload_l_i3 {
  14709. background-image: url("../../../assets/icon/new/u_video.png");
  14710. }
  14711. .chapter_upload_l_i8 {
  14712. background-image: url("../../../assets/icon/new/u_url.png");
  14713. }
  14714. .chapter_upload_l_i14 {
  14715. background-image: url("../../../assets/icon/new/u_source.png");
  14716. }
  14717. .chapter_upload_l_i6 {
  14718. background-image: url("../../../assets/icon/new/u_picture.png");
  14719. }
  14720. .chapter_upload_l_i12 {
  14721. background-image: url("../../../assets/icon/new/u_word.png");
  14722. }
  14723. .chapter_upload_l_i13 {
  14724. background-image: url("../../../assets/icon/new/u_img.png");
  14725. }
  14726. .chapter_upload_noSee {
  14727. background-image: url("../../../assets/icon/new/u_noUpload.png");
  14728. width: 18px;
  14729. height: 18px;
  14730. background-size: 100% 100%;
  14731. display: block;
  14732. margin-right: 10px;
  14733. }
  14734. .chapter_upload_ud {
  14735. display: flex;
  14736. flex-direction: row;
  14737. justify-content: center;
  14738. margin: 0 10px 0 0;
  14739. }
  14740. .chapter_upload_ud > .chapter_upload_up {
  14741. margin-bottom: 0;
  14742. margin-right: 10px;
  14743. }
  14744. .chapter_upload_down,
  14745. .chapter_upload_up {
  14746. width: 20px;
  14747. height: 20px;
  14748. background: #e4eaf2;
  14749. cursor: pointer;
  14750. margin: 0 auto;
  14751. border-radius: 5px;
  14752. display: flex;
  14753. justify-content: center;
  14754. align-items: center;
  14755. }
  14756. .chapter_upload_up::after,
  14757. .chapter_upload_down::after {
  14758. content: "";
  14759. background-image: url("../../../assets/icon/new/downBtn.png");
  14760. width: 13px;
  14761. height: 13px;
  14762. background-size: 100% 100%;
  14763. display: block;
  14764. }
  14765. .chapter_upload_up::after {
  14766. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  14767. }
  14768. .chapter_upload_up {
  14769. margin-bottom: 5px;
  14770. }
  14771. .chapter_upload_ud2 {
  14772. display: flex;
  14773. flex-direction: row;
  14774. justify-content: center;
  14775. margin: 0 10px 0 0;
  14776. }
  14777. .chapter_upload_ud2 > .chapter_upload_up2 {
  14778. margin-bottom: 0;
  14779. margin-right: 10px;
  14780. }
  14781. .chapter_upload_down2,
  14782. .chapter_upload_up2 {
  14783. cursor: pointer;
  14784. margin: 0 auto;
  14785. border-radius: 5px;
  14786. display: flex;
  14787. justify-content: center;
  14788. align-items: center;
  14789. color: #717c8d;
  14790. font-size: 14px;
  14791. }
  14792. .chapter_upload_up2 {
  14793. margin-right: 10px;
  14794. }
  14795. .chapter_upload_up2::before,
  14796. .chapter_upload_down2::before {
  14797. content: "";
  14798. background-image: url("../../../assets/icon/new/c_down.png");
  14799. width: 14px;
  14800. height: 14px;
  14801. background-size: 100% 100%;
  14802. display: block;
  14803. margin-right: 5px;
  14804. }
  14805. .chapter_upload_up2::before {
  14806. background-image: url("../../../assets/icon/new/c_up.png") !important;
  14807. }
  14808. .addWordStyle {
  14809. display: flex;
  14810. flex-direction: row;
  14811. justify-content: flex-start;
  14812. overflow-x: auto;
  14813. white-space: nowrap;
  14814. flex-wrap: wrap;
  14815. }
  14816. /* table 样式 */
  14817. .cont >>> table {
  14818. border-top: 1px solid #ccc;
  14819. border-left: 1px solid #ccc;
  14820. }
  14821. .cont >>> table td,
  14822. .cont >>> table th {
  14823. border-bottom: 1px solid #ccc;
  14824. border-right: 1px solid #ccc;
  14825. /* padding: 20px 5px; */
  14826. padding: 5px 10px;
  14827. max-width: 0px;
  14828. height: 30px;
  14829. vertical-align: baseline;
  14830. }
  14831. .cont >>> table th {
  14832. border-bottom: 2px solid #ccc;
  14833. text-align: center;
  14834. }
  14835. /* blockquote 样式 */
  14836. .cont >>> blockquote {
  14837. display: block;
  14838. border-left: 8px solid #d0e5f2;
  14839. padding: 5px 10px;
  14840. margin: 10px 0;
  14841. line-height: 1.4;
  14842. font-size: 100%;
  14843. background-color: #f1f1f1;
  14844. }
  14845. /* code 样式 */
  14846. .cont >>> code {
  14847. display: inline-block;
  14848. /* *display: inline; */
  14849. zoom: 1;
  14850. background-color: #f1f1f1;
  14851. border-radius: 3px;
  14852. padding: 3px 5px;
  14853. margin: 0 3px;
  14854. }
  14855. .cont >>> pre code {
  14856. display: block;
  14857. }
  14858. /* ul ol 样式 */
  14859. .cont >>> ul,
  14860. ol {
  14861. margin: 10px 0 10px 20px;
  14862. }
  14863. .wordbox {
  14864. display: flex;
  14865. flex-wrap: wrap;
  14866. cursor: pointer;
  14867. width: 100%;
  14868. }
  14869. .checkword {
  14870. width: 22px;
  14871. height: 22px;
  14872. margin: 10px auto 0;
  14873. cursor: pointer;
  14874. }
  14875. .checkword img {
  14876. width: 100%;
  14877. }
  14878. .stepBg {
  14879. display: flex;
  14880. flex-direction: column;
  14881. justify-content: space-between;
  14882. align-items: center;
  14883. background: #fff;
  14884. width: 300px;
  14885. margin: 0 25px 0 0;
  14886. }
  14887. .stepTop {
  14888. min-width: 300px;
  14889. width: 300px;
  14890. /* border-radius: 10px; */
  14891. display: flex;
  14892. flex-direction: column;
  14893. justify-content: flex-start;
  14894. align-items: center;
  14895. flex-wrap: nowrap;
  14896. background: #fff;
  14897. /* top: 18%; */
  14898. }
  14899. .stepTop > div {
  14900. height: 80px;
  14901. width: 85%;
  14902. cursor: pointer;
  14903. margin: 10px 0;
  14904. border-radius: 10px;
  14905. }
  14906. .first,
  14907. .second,
  14908. .third,
  14909. .four {
  14910. background: #4a83d0;
  14911. height: 90px;
  14912. color: #fff;
  14913. display: flex;
  14914. flex-direction: row;
  14915. align-items: center;
  14916. justify-content: center;
  14917. }
  14918. .first > div:nth-child(1),
  14919. .second > div:nth-child(1),
  14920. .third > div:nth-child(1),
  14921. .four > div:nth-child(1) {
  14922. margin: 5px 10px 0 0;
  14923. width: 2rem;
  14924. }
  14925. .firstNo,
  14926. .secondNo,
  14927. .thirdNo,
  14928. .fourNo {
  14929. background: #e7e7e7;
  14930. color: #adadad;
  14931. display: flex;
  14932. flex-direction: row;
  14933. align-items: center;
  14934. justify-content: center;
  14935. }
  14936. .firstNo > div:nth-child(1),
  14937. .secondNo > div:nth-child(1),
  14938. .thirdNo > div:nth-child(1),
  14939. .fourNo > div:nth-child(1) {
  14940. margin: 5px 10px 0 0;
  14941. width: 2rem;
  14942. }
  14943. .uploadWidth >>> .el-upload {
  14944. width: 60px;
  14945. height: 60px;
  14946. position: relative;
  14947. }
  14948. .addPeople {
  14949. background: #fa6060;
  14950. width: 150px;
  14951. height: 40px;
  14952. color: #fff;
  14953. border-radius: 5px;
  14954. text-align: center;
  14955. line-height: 40px;
  14956. font-size: 14px;
  14957. cursor: pointer;
  14958. }
  14959. .kcImg {
  14960. width: 60px;
  14961. margin-left: 10px;
  14962. }
  14963. .zyImg {
  14964. width: 55px;
  14965. margin: 0 10px;
  14966. }
  14967. .deleteZy {
  14968. width: 20px;
  14969. position: absolute;
  14970. top: 5px;
  14971. right: 5px;
  14972. cursor: pointer;
  14973. }
  14974. .kcImg > img,
  14975. .zyImg > img,
  14976. .deleteZy > img {
  14977. width: 100%;
  14978. height: 100%;
  14979. }
  14980. .zyBox {
  14981. display: flex;
  14982. flex-direction: row;
  14983. align-items: center;
  14984. background: #67d37d;
  14985. color: #fff;
  14986. width: 210px;
  14987. margin: 20px 20px 0 0;
  14988. border-radius: 10px;
  14989. height: 70px;
  14990. position: relative;
  14991. }
  14992. .upCss {
  14993. display: flex;
  14994. flex-direction: row;
  14995. justify-content: flex-start;
  14996. }
  14997. .upCss >>> .el-icon-plus {
  14998. position: none !important;
  14999. width: 200px;
  15000. height: 100px;
  15001. display: flex;
  15002. flex-wrap: nowrap;
  15003. flex-direction: column;
  15004. align-items: center;
  15005. justify-content: center;
  15006. border: 1px dashed #ccc;
  15007. min-width: 78px;
  15008. min-height: 100px;
  15009. z-index: 999;
  15010. }
  15011. .upCss >>> .el-upload-list__item-name {
  15012. width: 100px;
  15013. white-space: nowrap;
  15014. overflow: hidden;
  15015. text-overflow: ellipsis;
  15016. }
  15017. .upCss >>> .el-upload-list__item .el-icon-close {
  15018. font-size: 20px;
  15019. z-index: 9999;
  15020. }
  15021. .addStageImg {
  15022. min-width: 25px;
  15023. min-height: 25px;
  15024. width: 25px;
  15025. height: 25px;
  15026. cursor: pointer;
  15027. }
  15028. .addHW {
  15029. width: 28px;
  15030. height: 28px;
  15031. cursor: pointer;
  15032. }
  15033. .addStageImg > img,
  15034. .addHW > img {
  15035. width: 100%;
  15036. height: 100%;
  15037. }
  15038. .addNewPP >>> .el-dialog__body {
  15039. padding: 5px 20px;
  15040. }
  15041. .addNewPP >>> .el-dialog {
  15042. margin-top: 5vh !important;
  15043. }
  15044. .addNewPP2 >>> .el-dialog__body {
  15045. padding: 5px 0;
  15046. }
  15047. .addNewPP2 >>> .el-dialog {
  15048. margin-top: 5vh !important;
  15049. }
  15050. .isHeight {
  15051. height: 680px;
  15052. }
  15053. .toolChoose {
  15054. display: flex;
  15055. /* width: 100%; */
  15056. flex-direction: row;
  15057. flex-wrap: wrap;
  15058. }
  15059. .tool,
  15060. .isToolChoose {
  15061. display: flex;
  15062. flex-direction: column;
  15063. flex-wrap: nowrap;
  15064. width: fit-content;
  15065. margin: 10px 0 10px 0;
  15066. align-items: center;
  15067. border: 2px solid #dbdbdb00;
  15068. padding: 10px 20px;
  15069. border-radius: 5px;
  15070. cursor: pointer;
  15071. /* box-shadow: 0 0 2px 0px #dedede; */
  15072. position: relative;
  15073. box-sizing: border-box;
  15074. }
  15075. .tool:hover {
  15076. border: 2px solid #a5c7ff;
  15077. }
  15078. .tool:hover > .isCTool {
  15079. opacity: 0.5;
  15080. display: block !important;
  15081. }
  15082. .isToolChoose {
  15083. border: 2px solid #438aff !important;
  15084. box-shadow: 0 0 2px 0px #438aff;
  15085. }
  15086. .isToolChoose > .isCTool {
  15087. opacity: 1 !important;
  15088. }
  15089. .isCTool {
  15090. width: 30px;
  15091. height: 30px;
  15092. position: absolute;
  15093. top: -4px;
  15094. right: -4px;
  15095. }
  15096. .isCTool > img {
  15097. width: 100%;
  15098. height: 100%;
  15099. }
  15100. .tool + .tool {
  15101. margin-right: 10px;
  15102. }
  15103. .whiteBIcon {
  15104. width: 80px;
  15105. cursor: pointer;
  15106. display: flex;
  15107. flex-direction: column;
  15108. flex-wrap: nowrap;
  15109. align-items: center;
  15110. font-size: 14px;
  15111. }
  15112. .whiteBIcon > img,
  15113. .toolIcon > img,
  15114. .arrow > img {
  15115. width: 100%;
  15116. height: 100%;
  15117. }
  15118. .check img {
  15119. width: 20px;
  15120. height: 20px;
  15121. }
  15122. .whiteBIcon > img {
  15123. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15124. border-radius: 15px;
  15125. }
  15126. .whiteBIcon > div:nth-child(2) {
  15127. height: 20px;
  15128. line-height: 20px;
  15129. }
  15130. .check {
  15131. /* width: 20px;
  15132. height: 20px; */
  15133. cursor: pointer;
  15134. margin: 10px 0 0;
  15135. }
  15136. .checkDiv {
  15137. display: flex;
  15138. align-items: center;
  15139. }
  15140. .checkDiv span {
  15141. margin-left: 5px;
  15142. color: #858585;
  15143. }
  15144. .customWidth >>> .el-dialog {
  15145. min-width: 500px !important;
  15146. }
  15147. .a_addBox {
  15148. margin: 10px 0;
  15149. background: #fff;
  15150. padding: 15px;
  15151. /* max-height: 600px; */
  15152. overflow: auto;
  15153. }
  15154. .a_add_box {
  15155. border-bottom: 2px solid #eee;
  15156. padding-bottom: 25px;
  15157. }
  15158. .a_add_head {
  15159. display: flex;
  15160. align-items: center;
  15161. justify-content: space-between;
  15162. margin: 10px 0 0 0;
  15163. font-size: 18px;
  15164. }
  15165. .a_add_checkType {
  15166. margin-top: 10px;
  15167. display: flex;
  15168. font-size: 14px;
  15169. align-items: center;
  15170. }
  15171. .a_add_checkType span {
  15172. box-sizing: border-box;
  15173. padding: 0 0 5px 0;
  15174. cursor: pointer;
  15175. }
  15176. .a_add_checkType span + span {
  15177. margin-left: 10px;
  15178. }
  15179. .a_add_checkType .active {
  15180. border-bottom: 2px solid #409eff;
  15181. color: #409eff;
  15182. }
  15183. .a_add_head .a_add_head_input {
  15184. width: 100%;
  15185. }
  15186. .a_add_head .a_add_head_div {
  15187. display: flex;
  15188. align-items: center;
  15189. justify-content: space-between;
  15190. }
  15191. .a_add_body {
  15192. display: flex;
  15193. /* align-items: center; */
  15194. align-items: flex-end;
  15195. }
  15196. .a_add_input {
  15197. display: flex;
  15198. align-items: center;
  15199. flex-wrap: wrap;
  15200. }
  15201. .a_add_input_choice {
  15202. flex-direction: column;
  15203. margin-right: 10px;
  15204. }
  15205. .a_add_input_choice >>> .el-radio {
  15206. display: flex;
  15207. align-items: center;
  15208. flex-direction: row-reverse;
  15209. margin: 30px 0 0 0;
  15210. position: relative;
  15211. }
  15212. .a_add_input_choice >>> .el-checkbox {
  15213. display: flex;
  15214. align-items: center;
  15215. flex-direction: row-reverse;
  15216. margin: 30px 0 0 0;
  15217. position: relative;
  15218. }
  15219. .width100 {
  15220. width: 100%;
  15221. }
  15222. .a_add_input .a_add_persent {
  15223. width: 100%;
  15224. }
  15225. .a_add_persent_div {
  15226. width: 100%;
  15227. display: flex;
  15228. align-items: center;
  15229. }
  15230. .a_add_persent_div span {
  15231. margin: 5px 0;
  15232. }
  15233. .a_add_persent_div span:nth-child(1) {
  15234. width: 30%;
  15235. }
  15236. .a_add_persent_div span:nth-child(2) {
  15237. width: 7%;
  15238. }
  15239. .a_add_persent_div span:nth-child(3) {
  15240. width: 40%;
  15241. }
  15242. .a_add_body_div {
  15243. display: flex;
  15244. align-items: center;
  15245. justify-content: center;
  15246. /* flex-direction: column; */
  15247. position: absolute;
  15248. right: -20px;
  15249. transform: translateX(100%);
  15250. }
  15251. .a_add_body_div >>> .el-button--primary {
  15252. background: #466b99;
  15253. border: none;
  15254. }
  15255. .all_choose {
  15256. display: flex;
  15257. flex-direction: row;
  15258. align-items: flex-start;
  15259. width: 100%;
  15260. }
  15261. .all_choose > span {
  15262. min-width: fit-content;
  15263. display: block;
  15264. white-space: nowrap;
  15265. overflow: hidden;
  15266. text-overflow: ellipsis;
  15267. margin-right: 20px;
  15268. font-weight: bold;
  15269. font-size: 14px;
  15270. }
  15271. .all_choose >>> .el-checkbox-group {
  15272. display: flex;
  15273. flex-direction: row;
  15274. width: 100%;
  15275. flex-wrap: wrap;
  15276. align-content: center;
  15277. justify-content: flex-start;
  15278. align-items: center;
  15279. margin-top: 3px;
  15280. }
  15281. .all_choose > .el-checkbox-group >>> .el-checkbox {
  15282. margin-bottom: 10px;
  15283. display: flex;
  15284. flex-direction: row;
  15285. align-items: center;
  15286. margin-right: 10px;
  15287. }
  15288. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  15289. min-width: 80px;
  15290. overflow: hidden;
  15291. width: 80px;
  15292. text-overflow: ellipsis;
  15293. white-space: nowrap;
  15294. }
  15295. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  15296. width: auto;
  15297. }
  15298. .choose > div:nth-child(3) > span {
  15299. /* letter-spacing: 0 !important; */
  15300. }
  15301. .choose {
  15302. display: flex;
  15303. flex-direction: column;
  15304. flex-wrap: nowrap;
  15305. height: 100%;
  15306. justify-content: space-evenly;
  15307. align-items: flex-start;
  15308. }
  15309. .both {
  15310. display: flex;
  15311. flex-direction: row;
  15312. flex-wrap: wrap;
  15313. width: 100%;
  15314. align-items: center;
  15315. justify-content: flex-start;
  15316. margin: 15px 0;
  15317. }
  15318. .notice >>> .el-dialog {
  15319. width: 500px !important;
  15320. text-align: center;
  15321. }
  15322. .notice >>> .el-button {
  15323. margin-top: 20px;
  15324. }
  15325. .whiteBg {
  15326. background: #fff;
  15327. border-radius: 10px;
  15328. }
  15329. .wb_j_box {
  15330. display: flex;
  15331. width: 100%;
  15332. padding: 10px 20px;
  15333. box-sizing: border-box;
  15334. }
  15335. .wb_j_box_content {
  15336. width: calc(100% - 55% - 100px);
  15337. display: flex;
  15338. align-items: center;
  15339. }
  15340. .wb_j_box_p_box {
  15341. max-width: calc(100% - 200px);
  15342. word-break: break-all;
  15343. overflow: hidden;
  15344. margin: 0 0 0 10px;
  15345. font-size: 14px;
  15346. color: #6e6e6e;
  15347. }
  15348. .chooseWho {
  15349. display: flex;
  15350. width: 410px;
  15351. flex-direction: row;
  15352. flex-wrap: nowrap;
  15353. justify-content: space-between;
  15354. padding-bottom: 10px;
  15355. }
  15356. .chooseWho > div {
  15357. cursor: pointer;
  15358. padding-bottom: 10px;
  15359. font-weight: bold;
  15360. }
  15361. .isChooseActive {
  15362. color: #3e88f4;
  15363. border-bottom: 2px solid #2f80f3;
  15364. }
  15365. .toolSort {
  15366. display: flex;
  15367. flex-direction: row;
  15368. flex-wrap: wrap;
  15369. justify-content: flex-start;
  15370. align-items: flex-start;
  15371. }
  15372. .toolSort > div {
  15373. margin-right: 10px;
  15374. }
  15375. .tools {
  15376. width: 100%;
  15377. display: flex;
  15378. flex-direction: column;
  15379. flex-wrap: nowrap;
  15380. align-items: flex-start;
  15381. }
  15382. .leftTools,
  15383. .rightTools {
  15384. width: 50%;
  15385. }
  15386. .leftTools + .leftTools {
  15387. border-top: 1px solid #dbdbdb;
  15388. padding-top: 30px;
  15389. }
  15390. .rightTools {
  15391. display: flex;
  15392. flex-direction: row;
  15393. flex-wrap: nowrap;
  15394. justify-content: space-around;
  15395. }
  15396. .firstToolList {
  15397. display: flex;
  15398. flex-direction: column;
  15399. flex-wrap: nowrap;
  15400. align-items: center;
  15401. }
  15402. .iconList {
  15403. display: flex;
  15404. flex-direction: row;
  15405. flex-wrap: wrap;
  15406. justify-content: flex-start;
  15407. align-items: center;
  15408. margin: 20px 0 5px 0;
  15409. width: 240px;
  15410. min-width: 240px;
  15411. }
  15412. .iconTool {
  15413. display: flex;
  15414. flex-direction: column;
  15415. flex-wrap: nowrap;
  15416. align-items: center;
  15417. justify-content: flex-start;
  15418. margin: 15px 10px;
  15419. }
  15420. .toolIcon {
  15421. width: 50px;
  15422. }
  15423. .taskBorder {
  15424. /*border: 1px solid #e1e1e1; */
  15425. border-radius: 8px;
  15426. margin-top: 10px;
  15427. /* min-height: 1160px; */
  15428. position: relative;
  15429. background: #f0f4fa;
  15430. padding: 20px 20px 0;
  15431. overflow: hidden;
  15432. box-sizing: border-box;
  15433. background: #fff;
  15434. }
  15435. .smallTaskBorder {
  15436. height: 340px;
  15437. min-height: 340px !important;
  15438. overflow: hidden;
  15439. }
  15440. .taskBorder > div {
  15441. /* padding: 30px 0 10px 30px; */
  15442. }
  15443. .addTaskBorder {
  15444. /* border: 2px solid #5E9AFC; */
  15445. border-radius: 8px;
  15446. margin-top: 10px;
  15447. cursor: pointer;
  15448. /* height: 50px;
  15449. line-height: 50px; */
  15450. background: #fff;
  15451. padding: 15px 0;
  15452. display: flex;
  15453. align-items: center;
  15454. justify-content: center;
  15455. }
  15456. /* .addTaskBorder>div {
  15457. margin: 0 auto;
  15458. display: flex;
  15459. align-items: center;
  15460. justify-content: center;
  15461. }
  15462. .addTaskBorder>div>img {
  15463. width: 20px;
  15464. }
  15465. .addTaskBorder>div>span {
  15466. font-size: 16px;
  15467. margin-left: 10px;
  15468. color: #5E9AFC;
  15469. } */
  15470. .funBlock {
  15471. display: flex;
  15472. padding: 15px 0;
  15473. flex-direction: row;
  15474. justify-content: center;
  15475. align-items: center;
  15476. position: absolute;
  15477. right: 0;
  15478. bottom: 0;
  15479. background: #fff;
  15480. width: 100%;
  15481. height: 60px;
  15482. z-index: 9;
  15483. }
  15484. .fold {
  15485. display: flex;
  15486. margin: 0 20px;
  15487. flex-direction: row;
  15488. align-items: center;
  15489. cursor: pointer;
  15490. color: #2b7bff;
  15491. }
  15492. .arrow {
  15493. margin-right: 8px;
  15494. width: 16px;
  15495. height: 16px;
  15496. min-width: 16px;
  15497. min-height: 16px;
  15498. background-size: 100% 100%;
  15499. display: block;
  15500. background-image: url(../../../assets/icon/new/u_up.png);
  15501. /* border-left: 7px solid transparent;
  15502. border-bottom: 7px solid #717C8D;
  15503. border-top: 0px solid transparent;
  15504. border-right: 7px solid transparent; */
  15505. /* box-sizing: border-box; */
  15506. transition: all .3s;
  15507. }
  15508. .arrowZ {
  15509. transform: rotate(180deg);
  15510. }
  15511. .addToolFun {
  15512. display: flex;
  15513. width: 150px;
  15514. flex-direction: row;
  15515. align-items: center;
  15516. justify-content: center;
  15517. border: 1px dashed;
  15518. border-radius: 5px;
  15519. height: 50px;
  15520. margin: 20px auto 35px;
  15521. cursor: pointer;
  15522. }
  15523. .addToolFun2 {
  15524. display: flex;
  15525. width: 150px;
  15526. border: 2px dashed #cad1dc;
  15527. flex-direction: row;
  15528. align-items: center;
  15529. justify-content: center;
  15530. border-radius: 5px;
  15531. height: 50px;
  15532. margin: 0 auto 0;
  15533. cursor: pointer;
  15534. }
  15535. .addToolImg {
  15536. width: 20px;
  15537. height: 20px;
  15538. margin-right: 10px;
  15539. }
  15540. .addToolsDia >>> .el-dialog__body {
  15541. padding: 20px;
  15542. }
  15543. .addToolsDia >>> .el-dialog__body > .toolChoose {
  15544. padding: 0;
  15545. }
  15546. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  15547. padding: 0;
  15548. border-bottom: none;
  15549. margin-bottom: 0;
  15550. }
  15551. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  15552. width: 100%;
  15553. }
  15554. .lineCss >>> .el-form-item__label {
  15555. width: auto !important;
  15556. }
  15557. .lineCss >>> .el-form-item__content {
  15558. margin-left: 50px !important;
  15559. }
  15560. .newSteps {
  15561. display: flex;
  15562. width: 100% !important;
  15563. height: 80px;
  15564. cursor: pointer;
  15565. margin: 10px 0;
  15566. border-radius: 10px;
  15567. flex-direction: row;
  15568. align-content: center;
  15569. justify-content: center;
  15570. align-items: center;
  15571. margin: 0 !important;
  15572. }
  15573. /* 评价样式 */
  15574. .elist_css {
  15575. padding-bottom: 60px !important;
  15576. }
  15577. .elist_title {
  15578. margin-bottom: 10px;
  15579. }
  15580. .elist_input {
  15581. }
  15582. .elist_input_box {
  15583. display: flex;
  15584. align-items: center;
  15585. flex-wrap: wrap;
  15586. }
  15587. .elist_input_box + .elist_input_box {
  15588. margin-top: 30px;
  15589. }
  15590. .elist_input .elist_input_box input {
  15591. font: inherit;
  15592. color: currentColor;
  15593. /* width: 200px; */
  15594. max-width: 200px;
  15595. padding: 8px 14px;
  15596. display: block;
  15597. min-width: 0;
  15598. outline: none;
  15599. border: 1px solid rgba(0, 0, 0, 0.23);
  15600. border-radius: 4px;
  15601. box-sizing: border-box;
  15602. background: #fff;
  15603. margin: 0 20px 0 0;
  15604. }
  15605. .elist_input .elist_input_box span {
  15606. height: 36px;
  15607. line-height: 36px;
  15608. color: rgb(82, 82, 82);
  15609. min-width: 80px;
  15610. }
  15611. .elist_input .elist_input_box .remove {
  15612. height: 20px;
  15613. width: 20px;
  15614. background-size: 100% 100%;
  15615. background-position: unset;
  15616. margin-left: 5px;
  15617. }
  15618. .elist_input_box >>> .el-rate {
  15619. display: flex;
  15620. height: 36px;
  15621. align-items: center;
  15622. }
  15623. .elist_input_box .elist_inptu_text {
  15624. width: 100%;
  15625. display: flex;
  15626. align-items: center;
  15627. margin-top: 10px;
  15628. }
  15629. .elist_input_box .elist_inptu_text input {
  15630. /* width: 500px; */
  15631. width: 100%;
  15632. max-width: unset;
  15633. }
  15634. .elist_input_box >>> .el-rate__icon {
  15635. font-size: 24px;
  15636. }
  15637. .elist_btn {
  15638. margin-top: 10px;
  15639. }
  15640. .lineTitle {
  15641. /* margin-top: 15px; */
  15642. width: 110px;
  15643. font-size: 16px;
  15644. display: flex;
  15645. align-items: center;
  15646. line-height: 20px;
  15647. }
  15648. .lineTitle::before {
  15649. content: "";
  15650. display: block;
  15651. width: 3px;
  15652. height: 20px;
  15653. background: #0061ff;
  15654. border-radius: 3px;
  15655. margin: 0 5px 0 0;
  15656. }
  15657. .clineTitle::before {
  15658. content: "";
  15659. display: block;
  15660. min-width: 10px;
  15661. width: 10px;
  15662. height: 10px;
  15663. background: #0061ff;
  15664. border-radius: 50%;
  15665. margin: 0 5px 0 0;
  15666. }
  15667. .courseTop {
  15668. display: flex;
  15669. flex-direction: row;
  15670. justify-content: space-between;
  15671. align-items: center;
  15672. width: calc(100%);
  15673. margin: 0 auto;
  15674. padding: 10px 0;
  15675. }
  15676. .stepsNav {
  15677. display: flex;
  15678. flex-direction: row;
  15679. justify-content: flex-start;
  15680. align-items: center;
  15681. }
  15682. .stepsWord {
  15683. font-size: 18px;
  15684. color: #fff;
  15685. font-weight: bold;
  15686. margin-left: auto;
  15687. background: rgb(15, 126, 255);
  15688. border-radius: 5px;
  15689. padding: 3px 25px;
  15690. box-sizing: border-box;
  15691. }
  15692. .rightBox {
  15693. width: calc(100%);
  15694. background: #f0f2f5;
  15695. /* border-radius: 10px; */
  15696. overflow: auto;
  15697. height: calc(100% - 120px);
  15698. margin: 0 auto;
  15699. position: relative;
  15700. box-sizing: border-box;
  15701. border-radius: 5px;
  15702. }
  15703. .e_add_top {
  15704. display: flex;
  15705. justify-content: space-between;
  15706. padding: 20px 20px 0 20px;
  15707. border-radius: 3px;
  15708. background: #fff;
  15709. }
  15710. .e_add_title2 {
  15711. display: flex;
  15712. align-items: center;
  15713. }
  15714. .e_add_title2 span {
  15715. width: 40px;
  15716. }
  15717. .e_add_title {
  15718. display: flex;
  15719. align-items: center;
  15720. color: #b8b8b8;
  15721. font-size: 18px;
  15722. position: relative;
  15723. height: 40px;
  15724. }
  15725. .e_add_title span {
  15726. margin-right: 10px;
  15727. }
  15728. .e_add_title .el_input {
  15729. width: 300px;
  15730. }
  15731. .e_add_title >>> .el-input__inner {
  15732. width: 400px;
  15733. }
  15734. .e_add_btn {
  15735. }
  15736. .e_add_content {
  15737. display: flex;
  15738. width: 100%;
  15739. }
  15740. .e_add_list {
  15741. background: #fff;
  15742. height: 500px;
  15743. width: 210px;
  15744. position: relative;
  15745. margin: 15px 5px 0 0;
  15746. flex-shrink: 0;
  15747. display: flex;
  15748. flex-direction: column;
  15749. }
  15750. .e_add_list_title {
  15751. font-size: 20px;
  15752. width: 100%;
  15753. box-sizing: border-box;
  15754. padding: 15px 40px;
  15755. text-align: center;
  15756. border-bottom: 1px solid #eaeaea;
  15757. position: relative;
  15758. display: flex;
  15759. align-items: center;
  15760. justify-content: center;
  15761. height: 57px;
  15762. background: #f6f6f6;
  15763. }
  15764. .e_add_list_title span {
  15765. overflow: hidden;
  15766. white-space: nowrap;
  15767. text-overflow: ellipsis;
  15768. }
  15769. .e_add_list_title img {
  15770. position: absolute;
  15771. right: 15px;
  15772. width: 25px;
  15773. cursor: pointer;
  15774. top: 50%;
  15775. transform: translateY(-50%);
  15776. }
  15777. .e_add_list_body {
  15778. height: calc(100% - 187px);
  15779. overflow: auto;
  15780. }
  15781. .e_add_list_child {
  15782. width: 100%;
  15783. display: flex;
  15784. align-items: center;
  15785. justify-content: center;
  15786. position: relative;
  15787. box-sizing: border-box;
  15788. padding: 15px 40px;
  15789. text-align: center;
  15790. }
  15791. .e_add_list_child span {
  15792. overflow: hidden;
  15793. white-space: nowrap;
  15794. text-overflow: ellipsis;
  15795. cursor: pointer;
  15796. }
  15797. .e_add_list_child img {
  15798. position: absolute;
  15799. right: 10px;
  15800. width: 21px;
  15801. cursor: pointer;
  15802. top: 50%;
  15803. transform: translateY(-50%);
  15804. }
  15805. .e_add_list_child + .e_add_list_child {
  15806. border-top: 1px solid #eaeaea;
  15807. }
  15808. .e_add_list_child .active {
  15809. color: #409eff;
  15810. }
  15811. .e_add_list_btn {
  15812. position: absolute;
  15813. bottom: 0;
  15814. height: 50px;
  15815. background: rgb(120, 120, 254);
  15816. width: 100%;
  15817. color: #fff;
  15818. font-size: 16px;
  15819. text-align: center;
  15820. line-height: 50px;
  15821. cursor: pointer;
  15822. }
  15823. .e_add_list_detail {
  15824. position: absolute;
  15825. bottom: 0;
  15826. height: 130px;
  15827. background: rgb(120, 120, 254);
  15828. width: 100%;
  15829. color: #fff;
  15830. font-size: 16px;
  15831. display: flex;
  15832. align-items: center;
  15833. justify-content: center;
  15834. }
  15835. .e_add_list_detail textarea {
  15836. height: 90%;
  15837. width: 95%;
  15838. border: none;
  15839. resize: none;
  15840. outline: none;
  15841. padding: 5px;
  15842. box-sizing: border-box;
  15843. }
  15844. .e_add_list_pbox {
  15845. width: 100%;
  15846. }
  15847. .e_add_list_pbox_title {
  15848. height: 50px;
  15849. background: #fff;
  15850. display: flex;
  15851. align-items: center;
  15852. width: 100%;
  15853. box-sizing: border-box;
  15854. padding: 0 20px;
  15855. flex-direction: row;
  15856. flex-wrap: wrap;
  15857. }
  15858. .type_title {
  15859. font-size: 18px;
  15860. font-weight: 700;
  15861. }
  15862. .type_content {
  15863. font-size: 16px;
  15864. margin-left: 30px;
  15865. }
  15866. .type_content span + span {
  15867. margin-left: 20px;
  15868. }
  15869. .type_content span {
  15870. cursor: pointer;
  15871. padding-bottom: 5px;
  15872. box-sizing: border-box;
  15873. }
  15874. .type_content .active {
  15875. color: #409eff;
  15876. border-bottom: 2px solid #409eff;
  15877. }
  15878. .e_add_list_pbox_content {
  15879. height: calc(100% - 50px);
  15880. display: flex;
  15881. align-items: center;
  15882. width: 100%;
  15883. background: #fff;
  15884. }
  15885. .mbCss {
  15886. width: 100%;
  15887. display: flex;
  15888. flex-direction: row;
  15889. flex-wrap: nowrap;
  15890. align-content: center;
  15891. align-items: flex-start;
  15892. justify-content: flex-start;
  15893. }
  15894. .pjCss {
  15895. /* width: 42%; */
  15896. width: calc(100% - 55%);
  15897. display: flex;
  15898. flex-direction: column;
  15899. flex-wrap: nowrap;
  15900. align-items: flex-start;
  15901. margin-top: 1.5%;
  15902. }
  15903. .e_box {
  15904. display: flex;
  15905. flex-wrap: wrap;
  15906. max-height: 500px;
  15907. align-items: flex-start;
  15908. overflow: auto;
  15909. }
  15910. .e_card {
  15911. border: 1px solid #ccc;
  15912. background: #fff;
  15913. margin-right: 20px;
  15914. width: 270px;
  15915. display: flex;
  15916. flex-direction: column;
  15917. align-items: center;
  15918. border-radius: 5px;
  15919. margin-top: 10px;
  15920. text-align: center;
  15921. }
  15922. .e_card_picture {
  15923. margin: 10px 0;
  15924. }
  15925. .e_card_picture > img {
  15926. width: 50px;
  15927. }
  15928. .e_card_name {
  15929. width: 100%;
  15930. padding: 0 10px;
  15931. box-sizing: border-box;
  15932. margin-bottom: 10px;
  15933. overflow: hidden;
  15934. text-overflow: ellipsis;
  15935. white-space: nowrap;
  15936. }
  15937. .e_card_time {
  15938. width: 100%;
  15939. padding: 0 10px;
  15940. box-sizing: border-box;
  15941. font-size: 15px;
  15942. color: #c3c3c3;
  15943. margin-bottom: 10px;
  15944. }
  15945. .e_card_btn {
  15946. height: 40px;
  15947. display: flex;
  15948. align-items: center;
  15949. width: 100%;
  15950. background: rgb(244, 244, 244);
  15951. }
  15952. .e_card_btn:hover {
  15953. background: rgb(221 221 221);
  15954. }
  15955. .e_card_btn span {
  15956. flex: 1 1 auto;
  15957. text-align: center;
  15958. cursor: pointer;
  15959. }
  15960. .addEva {
  15961. border: 1px solid #ccc;
  15962. background: #fff;
  15963. margin-right: 20px;
  15964. width: 270px;
  15965. height: 149px;
  15966. display: flex;
  15967. flex-direction: column;
  15968. align-items: center;
  15969. border-radius: 5px;
  15970. margin-top: 10px;
  15971. text-align: center;
  15972. cursor: pointer;
  15973. justify-content: center;
  15974. }
  15975. .addEva > img {
  15976. width: 50px;
  15977. object-fit: cover;
  15978. }
  15979. .uploadFm {
  15980. border: 1px dashed #ccc;
  15981. width: 100%;
  15982. height: 140px;
  15983. position: relative;
  15984. cursor: pointer;
  15985. display: flex;
  15986. flex-direction: column;
  15987. justify-content: center;
  15988. align-items: center;
  15989. font-size: 14px;
  15990. color: #6e6e6e;
  15991. position: relative;
  15992. }
  15993. .cover_p {
  15994. width: 100% !important;
  15995. height: 100%;
  15996. object-fit: cover;
  15997. }
  15998. .uploadFm2:hover .cover_mask {
  15999. display: flex !important;
  16000. }
  16001. .cover_mask {
  16002. display: none;
  16003. width: 100%;
  16004. height: 100%;
  16005. position: absolute;
  16006. background: #00000054;
  16007. align-items: center;
  16008. justify-content: center;
  16009. flex-direction: column;
  16010. }
  16011. .cover_mask > img {
  16012. width: 30px;
  16013. }
  16014. .cover_mask > span {
  16015. color: #fff;
  16016. font-size: 12px;
  16017. }
  16018. .uploadFm > img {
  16019. width: 50px;
  16020. }
  16021. .fileCss {
  16022. width: 100%;
  16023. display: flex;
  16024. flex-direction: row;
  16025. flex-wrap: nowrap;
  16026. justify-content: space-around;
  16027. align-items: center;
  16028. padding-top: 15px;
  16029. }
  16030. .fileCss > div {
  16031. display: flex;
  16032. flex-direction: column;
  16033. align-items: center;
  16034. }
  16035. .fileCss .spanName {
  16036. margin-top: 10px;
  16037. }
  16038. .sysPicBox {
  16039. display: flex;
  16040. flex-direction: row;
  16041. flex-wrap: wrap;
  16042. align-content: flex-start;
  16043. height: 435px;
  16044. overflow: auto;
  16045. position: relative;
  16046. }
  16047. .picNone {
  16048. position: absolute;
  16049. left: 50%;
  16050. top: 45%;
  16051. transform: translate(-50%, -50%);
  16052. width: fit-content;
  16053. color: #9c9c9c;
  16054. }
  16055. .sysPic {
  16056. width: 200px;
  16057. height: 115px;
  16058. margin: 0 20px 20px 0;
  16059. cursor: pointer;
  16060. }
  16061. .sysPic > img,
  16062. .isSysPic > img,
  16063. .deletePic > img {
  16064. width: 100%;
  16065. height: 100%;
  16066. object-fit: cover;
  16067. }
  16068. .isSysPic {
  16069. width: 200px;
  16070. height: 115px;
  16071. position: relative;
  16072. }
  16073. .deletePic {
  16074. width: 20px;
  16075. height: 20px;
  16076. position: absolute;
  16077. top: 0;
  16078. right: 0;
  16079. cursor: pointer;
  16080. }
  16081. .select_box1 {
  16082. height: 100%;
  16083. }
  16084. .select_box1_img {
  16085. background: #fff;
  16086. border-radius: 5px;
  16087. padding: 15px;
  16088. box-sizing: border-box;
  16089. margin-bottom: 20px;
  16090. }
  16091. .select_box1_title {
  16092. padding: 0 0 15px 0;
  16093. border-bottom: 1px solid #eee;
  16094. margin-bottom: 15px;
  16095. }
  16096. .select_box1_title span:nth-child(1) {
  16097. font-size: 16px;
  16098. margin-right: 20px;
  16099. color: #000;
  16100. }
  16101. .select_box1_title span:nth-child(2) {
  16102. font-size: 14px;
  16103. color: rgb(112, 112, 112);
  16104. }
  16105. .select_box1_add_img {
  16106. }
  16107. .select_box1_select {
  16108. background: #fff;
  16109. border-radius: 5px;
  16110. padding: 15px;
  16111. box-sizing: border-box;
  16112. height: calc(100% - 200px);
  16113. overflow: auto;
  16114. }
  16115. .select_box2 {
  16116. height: 100%;
  16117. }
  16118. .select_box2_title {
  16119. background: #fff;
  16120. border-radius: 5px;
  16121. padding: 5px 10px;
  16122. box-sizing: border-box;
  16123. margin-bottom: 10px;
  16124. }
  16125. .select_box2_box {
  16126. display: flex;
  16127. height: calc(100% - 30px);
  16128. }
  16129. .select_box2_img {
  16130. width: calc(100% - 310px);
  16131. height: 100%;
  16132. overflow: auto;
  16133. background: #fff;
  16134. border-radius: 5px;
  16135. }
  16136. .select_box2_img img {
  16137. width: 100%;
  16138. }
  16139. .select_box2_answer {
  16140. background: #fff;
  16141. margin-left: 10px;
  16142. border-radius: 5px;
  16143. width: 300px;
  16144. overflow: auto;
  16145. height: 100%;
  16146. display: flex;
  16147. flex-direction: column;
  16148. align-items: center;
  16149. padding-top: 10px;
  16150. box-sizing: border-box;
  16151. }
  16152. .select_box2_answer_box {
  16153. margin: 0 0 10px 0;
  16154. width: 85%;
  16155. }
  16156. .rate_textarea {
  16157. font: inherit;
  16158. color: currentColor;
  16159. width: 100%;
  16160. padding: 8px 14px;
  16161. display: block;
  16162. min-width: 0;
  16163. outline: none;
  16164. border: 1px solid rgba(0, 0, 0, 0.23);
  16165. border-radius: 4px;
  16166. box-sizing: border-box;
  16167. background: #fff;
  16168. margin: 0 20px 0 0;
  16169. resize: none;
  16170. }
  16171. .select_answer_title {
  16172. text-align: left;
  16173. width: 85%;
  16174. margin-bottom: 10px;
  16175. font-size: 18px;
  16176. color: #8e8e8e;
  16177. }
  16178. .mask {
  16179. background-color: rgb(0 0 0 / 30%);
  16180. /* position: fixed; */
  16181. position: absolute;
  16182. top: 0;
  16183. left: 0;
  16184. width: 100%;
  16185. height: 100%;
  16186. z-index: 90;
  16187. display: flex;
  16188. align-items: center;
  16189. justify-content: center;
  16190. }
  16191. .progressBox {
  16192. width: 300px;
  16193. height: 150px;
  16194. background: #fff;
  16195. border-radius: 10px;
  16196. box-shadow: 0 0 6px 1px #bfbfbf;
  16197. display: flex;
  16198. align-items: center;
  16199. justify-content: center;
  16200. flex-direction: column;
  16201. position: relative;
  16202. color: #6c6c6c;
  16203. }
  16204. .progressBox >>> .el-progress-bar__outer {
  16205. background-color: #d1dfff !important;
  16206. }
  16207. .progressBox .lbox {
  16208. height: 50px;
  16209. font-size: 19px;
  16210. display: flex;
  16211. align-items: center;
  16212. color: #747474;
  16213. }
  16214. .progressBox .lbox img {
  16215. width: 40px;
  16216. margin-right: 20px;
  16217. }
  16218. .closeCss {
  16219. position: absolute;
  16220. top: 8px;
  16221. right: 8px;
  16222. cursor: pointer;
  16223. width: 20px;
  16224. height: 20px;
  16225. }
  16226. .closeCss > img {
  16227. width: 100%;
  16228. height: 100%;
  16229. }
  16230. .updateTips::after {
  16231. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16232. font-size: 14px;
  16233. margin-left: 20px;
  16234. font-weight: 400;
  16235. color: #ff3a3a;
  16236. }
  16237. .updateMask {
  16238. width: 100%;
  16239. z-index: 3;
  16240. top: 0;
  16241. position: absolute;
  16242. /* background-color: rgba(0,0,0,.3); */
  16243. }
  16244. .t_j_box {
  16245. display: flex;
  16246. }
  16247. .t_j_box span:nth-child(1) {
  16248. width: 15%;
  16249. overflow: hidden;
  16250. margin-right: 10px;
  16251. text-overflow: ellipsis;
  16252. white-space: nowrap;
  16253. }
  16254. .t_j_box span:nth-child(2) {
  16255. width: 30%;
  16256. overflow: hidden;
  16257. text-overflow: ellipsis;
  16258. margin-right: 10px;
  16259. }
  16260. .t_j_box span:nth-child(3) {
  16261. max-width: calc(55% - 20px);
  16262. overflow: hidden;
  16263. text-overflow: ellipsis;
  16264. }
  16265. .sentenBox {
  16266. background: #fff;
  16267. height: 600px;
  16268. overflow: auto;
  16269. background-image: url("../../../assets/icon/conSentences/csBg.png");
  16270. background-position: 102%;
  16271. background-repeat: no-repeat;
  16272. background-size: 60%;
  16273. }
  16274. .sentenBox > .sentenContent {
  16275. padding-bottom: 10px;
  16276. width: 97%;
  16277. margin: 0 auto;
  16278. }
  16279. .sentenBox > .sentenContent + .sentenContent {
  16280. border-top: 1px solid #cbcbcb;
  16281. }
  16282. .addSen {
  16283. background: #409efe;
  16284. width: 90px;
  16285. color: #fff;
  16286. height: 35px;
  16287. text-align: center;
  16288. line-height: 35px;
  16289. border-radius: 5px;
  16290. float: right;
  16291. margin: 10px 20px 0 0;
  16292. cursor: pointer;
  16293. }
  16294. .sentenTop {
  16295. display: flex;
  16296. flex-direction: row;
  16297. flex-wrap: nowrap;
  16298. align-items: center;
  16299. }
  16300. .sentenTop::before {
  16301. content: attr(index);
  16302. background: #3681fc;
  16303. border-radius: 50%;
  16304. color: #fff;
  16305. width: 25px;
  16306. height: 25px;
  16307. min-width: 25px;
  16308. min-height: 25px;
  16309. text-align: center;
  16310. line-height: 25px;
  16311. margin-right: 5px;
  16312. }
  16313. .sentenTop > div:nth-child(2) {
  16314. width: 300px;
  16315. margin: 0 15px;
  16316. }
  16317. .sentenTop > div:nth-child(3) {
  16318. background: #409efe;
  16319. color: #fff;
  16320. width: 65px;
  16321. height: 35px;
  16322. text-align: center;
  16323. line-height: 35px;
  16324. border-radius: 5px;
  16325. cursor: pointer;
  16326. }
  16327. .cardList {
  16328. padding: 30px 0 20px 0;
  16329. display: flex;
  16330. flex-direction: row;
  16331. flex-wrap: wrap;
  16332. align-items: center;
  16333. box-sizing: border-box;
  16334. border-bottom: 1px solid #f4f4f4;
  16335. width: 98%;
  16336. margin: 0 auto;
  16337. }
  16338. .rightCardList {
  16339. display: flex;
  16340. flex-wrap: wrap;
  16341. }
  16342. .cardBox {
  16343. display: flex;
  16344. flex-direction: row;
  16345. flex-wrap: wrap;
  16346. align-items: center;
  16347. align-content: center;
  16348. }
  16349. .isCard,
  16350. .isCard,
  16351. .isCard1 {
  16352. width: auto;
  16353. padding: 0 20px;
  16354. height: 65px;
  16355. text-align: center;
  16356. line-height: 65px;
  16357. font-size: 14px;
  16358. cursor: pointer;
  16359. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16360. background-size: 100% 100%;
  16361. position: relative;
  16362. z-index: 99;
  16363. }
  16364. .isCard1 {
  16365. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16366. }
  16367. .isCard:hover .deleteWord {
  16368. display: block;
  16369. }
  16370. .isCard > div:nth-child(1),
  16371. .isCard1 > div:nth-child(1) {
  16372. white-space: nowrap;
  16373. overflow: hidden;
  16374. text-overflow: ellipsis;
  16375. width: 100%;
  16376. margin: 0 auto;
  16377. }
  16378. .card {
  16379. width: 140px;
  16380. height: 65px;
  16381. }
  16382. .card > img {
  16383. width: 100%;
  16384. height: 100%;
  16385. }
  16386. .rightCardBox {
  16387. width: 98%;
  16388. margin: 10px auto 0;
  16389. }
  16390. .rightCardBox > div:nth-child(1) {
  16391. margin-bottom: 10px;
  16392. }
  16393. .cardCss {
  16394. display: flex;
  16395. flex-direction: column;
  16396. flex-wrap: nowrap;
  16397. align-items: center;
  16398. border-bottom: 3px solid #b4c3d3;
  16399. padding: 0 0 5px 0;
  16400. /* margin-right: 10px; */
  16401. }
  16402. .cardCss > div:nth-child(2) {
  16403. background: #5b7b9d;
  16404. color: #fff;
  16405. width: 20px;
  16406. height: 20px;
  16407. border-radius: 50%;
  16408. text-align: center;
  16409. line-height: 20px;
  16410. }
  16411. .sentenTopBox {
  16412. display: flex;
  16413. flex-direction: row;
  16414. flex-wrap: nowrap;
  16415. align-items: center;
  16416. justify-content: space-between;
  16417. padding: 55px 0 0 20px;
  16418. box-sizing: border-box;
  16419. width: 85%;
  16420. }
  16421. .stepsBottom {
  16422. width: 85%;
  16423. margin-bottom: 20px;
  16424. box-shadow: 0 0 10px 10px #f7f7f7;
  16425. background: #f7f7f7;
  16426. border-radius: 10px;
  16427. overflow: hidden;
  16428. }
  16429. .course_left {
  16430. width: 300px;
  16431. height: auto;
  16432. position: relative;
  16433. }
  16434. .stepsBottom2 {
  16435. width: 300px;
  16436. margin: 10px 0;
  16437. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  16438. /* background: #f7f7f7; */
  16439. border-radius: 8px;
  16440. overflow: hidden;
  16441. height: fit-content;
  16442. position: relative;
  16443. /* transition: all .5s; */
  16444. }
  16445. .navTop {
  16446. background: #53749b;
  16447. color: #fff;
  16448. height: 40px;
  16449. line-height: 40px;
  16450. padding-left: 15px;
  16451. font-size: 18px;
  16452. }
  16453. .navBottom {
  16454. background: #fff;
  16455. height: calc(100vh - 210px);
  16456. overflow: auto;
  16457. }
  16458. .navTask {
  16459. display: flex;
  16460. flex-direction: row;
  16461. flex-wrap: nowrap;
  16462. align-items: center;
  16463. padding: 10px 10px 10px 0;
  16464. cursor: pointer;
  16465. background: #ffffff;
  16466. width: 95%;
  16467. margin: 5px auto 5px;
  16468. box-sizing: border-box;
  16469. border-radius: 5px;
  16470. flex-wrap: wrap;
  16471. position: relative;
  16472. }
  16473. .navTask:hover > .chapter_upload_drag{
  16474. display: block;
  16475. }
  16476. .navTask .chapter_upload_open {
  16477. content: '';
  16478. display: block;
  16479. width: 16px;
  16480. height: 16px;
  16481. background-image: url(../../../assets/icon/new/icon_arrow.png);
  16482. background-size: 100%;
  16483. margin-left: 23px;
  16484. }
  16485. .noImage .chapter_upload_open {
  16486. display: none;
  16487. background-image: unset !important;
  16488. }
  16489. .isNavOpen .chapter_upload_open {
  16490. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  16491. transform: rotate(90deg);
  16492. }
  16493. .isNavTask .chapter_upload_open {
  16494. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  16495. transform: rotate(-90deg);
  16496. }
  16497. .isNavTask.isNavOpen .chapter_upload_open{
  16498. transform: rotate(0deg);
  16499. }
  16500. .dragOverTop {
  16501. border-top: 2px solid #0061ff !important;
  16502. border-radius: 0 !important;
  16503. margin-top: 10px;
  16504. }
  16505. .dragOverBottom {
  16506. border-bottom: 2px solid #0061ff !important;
  16507. border-radius: 0 !important;
  16508. margin-top: 10px;
  16509. }
  16510. .dragOverTop2 {
  16511. border-top: 2px solid #0061ff !important;
  16512. border-radius: 0 !important;
  16513. }
  16514. .dragOverBottom2 {
  16515. border-bottom: 2px solid #0061ff !important;
  16516. border-radius: 0 !important;
  16517. }
  16518. .isNavTask {
  16519. /* background: #3681FC; */
  16520. background: #eef3fb;
  16521. }
  16522. .isNavTask > .chapter_upload_drag {
  16523. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  16524. }
  16525. .isNavTask .nt_taskName {
  16526. /* color: #fff !important; */
  16527. font-weight: bold !important;
  16528. color: #0061ff !important;
  16529. }
  16530. .isNavTask .nt_taskTitle {
  16531. /* color: #AECCFE !important; */
  16532. font-weight: bold !important;
  16533. color: #0061ff !important;
  16534. }
  16535. .navTask .nt_taskBox {
  16536. width: calc(100% - 40px);
  16537. padding: 0 0 0 5px;
  16538. box-sizing: border-box;
  16539. box-sizing: border-box;
  16540. display: flex;
  16541. flex-direction: row;
  16542. flex-wrap: nowrap;
  16543. align-items: baseline;
  16544. }
  16545. .navTask .nt_taskTitle {
  16546. /* color: #717C8D; */
  16547. color: #060e17;
  16548. line-height: 25px;
  16549. font-size: 16px;
  16550. /* min-width: 66px; */
  16551. }
  16552. .navTask .nt_taskName {
  16553. /* color: #fff; */
  16554. /* max-width: 130px; */
  16555. /* width: 100%; */
  16556. max-width: calc(100% - 66px);
  16557. font-size: 16px;
  16558. color: #060e17;
  16559. /* color: #0E1E33; */
  16560. }
  16561. .navTask .nt_taskName span{
  16562. width: 100%;
  16563. white-space: nowrap;
  16564. overflow: hidden;
  16565. text-overflow: ellipsis;
  16566. display:block;
  16567. }
  16568. .gjBox {
  16569. width: calc(100% - 25px);
  16570. padding: 0 0 0 0;
  16571. box-sizing: border-box;
  16572. border-left: 1px solid #cad1dc;
  16573. margin-left: 25px;
  16574. }
  16575. .gjBox > div {
  16576. display: flex;
  16577. align-items: center;
  16578. }
  16579. .gjBox > div::before {
  16580. content: "";
  16581. height: 1px;
  16582. width: 10px;
  16583. background: #cad1dc;
  16584. display: block;
  16585. margin-right: 5px;
  16586. }
  16587. .gjCss {
  16588. display: flex;
  16589. flex-direction: row;
  16590. flex-wrap: nowrap;
  16591. align-items: center;
  16592. padding: 15px 0;
  16593. box-sizing: border-box;
  16594. font-size: 14px;
  16595. cursor: pointer;
  16596. }
  16597. .isGjCss {
  16598. color: #0061ff;
  16599. }
  16600. .groupBox {
  16601. }
  16602. .groupContent + .groupContent {
  16603. margin-top: 30px;
  16604. }
  16605. .groupTitle {
  16606. font-size: 24px;
  16607. color: rgb(80, 80, 80);
  16608. margin-bottom: 20px;
  16609. }
  16610. .groupName {
  16611. display: flex;
  16612. align-items: center;
  16613. }
  16614. .groupn {
  16615. font-size: 15px;
  16616. margin-right: 10px;
  16617. }
  16618. .groupName + .groupName {
  16619. margin-top: 15px;
  16620. }
  16621. .groupBtn {
  16622. margin-left: 10px;
  16623. }
  16624. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  16625. text-align: left;
  16626. }
  16627. .radioBox > div {
  16628. margin: 10px 0 0 10px;
  16629. }
  16630. .radioBox >>> .el-radio__input,
  16631. .radioBox >>> .el-checkbox__inner {
  16632. margin-left: 10px;
  16633. }
  16634. .radioBox >>> .el-radio__label,
  16635. .radioBox >>> .el-checkbox__label {
  16636. display: flex;
  16637. align-items: center;
  16638. }
  16639. .inImg {
  16640. width: 50px;
  16641. }
  16642. .inImg > img {
  16643. width: 100%;
  16644. height: 100%;
  16645. object-fit: cover;
  16646. }
  16647. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  16648. height: auto;
  16649. padding: 10px;
  16650. margin: 0;
  16651. }
  16652. .upCss >>> .el-upload-list {
  16653. width: 100%;
  16654. }
  16655. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  16656. width: 100%;
  16657. height: 120px;
  16658. object-fit: contain;
  16659. background: unset;
  16660. margin-left: 0;
  16661. }
  16662. .upCss
  16663. >>> .el-upload-list--picture
  16664. .el-upload-list__item.is-success
  16665. .el-upload-list__item-name {
  16666. display: none;
  16667. }
  16668. .tcMember + .tcMember::before {
  16669. content: "、";
  16670. }
  16671. .xzUpImg {
  16672. width: 25px;
  16673. height: 25px;
  16674. min-width: 25px;
  16675. min-height: 25px;
  16676. cursor: pointer;
  16677. margin: 0 10px;
  16678. }
  16679. .xzUpImg > img {
  16680. width: 100%;
  16681. height: 100%;
  16682. }
  16683. .closeCss {
  16684. position: absolute;
  16685. top: 8px;
  16686. right: 8px;
  16687. cursor: pointer;
  16688. width: 20px;
  16689. height: 20px;
  16690. }
  16691. .closeCss > img {
  16692. width: 100%;
  16693. height: 100%;
  16694. }
  16695. .moveBtn {
  16696. display: flex;
  16697. flex-direction: row;
  16698. flex-wrap: nowrap;
  16699. align-items: center;
  16700. width: 55px;
  16701. }
  16702. .timuUpImg {
  16703. display: flex;
  16704. flex-direction: row;
  16705. align-items: center;
  16706. width: 100%;
  16707. margin-right: 10px;
  16708. }
  16709. .timuUpImg > div:nth-child(1) {
  16710. margin-right: 10px;
  16711. display: flex;
  16712. align-items: center;
  16713. width: 100%;
  16714. }
  16715. .timuImgBox {
  16716. margin: 10px 0;
  16717. display: flex;
  16718. flex-direction: column;
  16719. flex-wrap: wrap;
  16720. align-items: flex-start;
  16721. }
  16722. .timuImg {
  16723. width: 100px;
  16724. margin: 5px 0;
  16725. cursor: pointer;
  16726. position: relative;
  16727. }
  16728. .timuImg:hover .deleteWord {
  16729. display: block;
  16730. }
  16731. .deleteWord {
  16732. width: 25px;
  16733. height: 25px;
  16734. position: absolute;
  16735. right: -5px;
  16736. top: -5px;
  16737. cursor: pointer;
  16738. display: none;
  16739. }
  16740. .timuImg > img,
  16741. .deleteWord > img {
  16742. width: 100%;
  16743. height: 100%;
  16744. object-fit: cover;
  16745. }
  16746. .e_add_delete {
  16747. cursor: pointer;
  16748. margin-left: 10px;
  16749. }
  16750. .pType_box {
  16751. margin-top: 30px;
  16752. align-items: flex-end;
  16753. }
  16754. .noneBox {
  16755. height: 100%;
  16756. width: 100%;
  16757. display: flex;
  16758. align-items: center;
  16759. justify-content: center;
  16760. margin-top: 150px;
  16761. }
  16762. .noneBox > img {
  16763. width: 300px;
  16764. }
  16765. .textarea_css {
  16766. display: block;
  16767. resize: none;
  16768. padding: 10px 15px;
  16769. line-height: 1.5;
  16770. box-sizing: border-box;
  16771. width: 100%;
  16772. font-size: 14px;
  16773. color: #606266;
  16774. background-color: #fff;
  16775. background-image: none;
  16776. border: 1px solid #dcdfe6;
  16777. border-radius: 4px;
  16778. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  16779. outline: none;
  16780. overflow: hidden;
  16781. height: 46px;
  16782. font-family: "Microsoft YaHei";
  16783. }
  16784. .textarea_css::-webkit-input-placeholder {
  16785. color: #c0c4cc;
  16786. }
  16787. .textarea_css:focus {
  16788. border-color: #409eff;
  16789. outline: 0;
  16790. }
  16791. .moveBtn2 {
  16792. flex-direction: column;
  16793. width: fit-content;
  16794. margin: 0 10px 0 10px;
  16795. }
  16796. .moveBtn2 .chapter_upload_down,
  16797. .moveBtn2 .chapter_upload_up {
  16798. width: 16px;
  16799. height: 16px;
  16800. }
  16801. .moveBtn2 .chapter_upload_up::after,
  16802. .moveBtn2 .chapter_upload_down::after {
  16803. width: 10px;
  16804. height: 10px;
  16805. }
  16806. .fullStyle >>> .el-dialog__body {
  16807. height: calc(100% - 125px) !important;
  16808. box-sizing: border-box;
  16809. }
  16810. .fullStyle >>> .el-dialog {
  16811. width: 100% !important;
  16812. max-width: 100% !important;
  16813. height: 100% !important;
  16814. margin: 0 !important;
  16815. }
  16816. .fullStyle {
  16817. width: 100% !important;
  16818. max-width: 100% !important;
  16819. height: 100% !important;
  16820. margin: 0 auto !important;
  16821. }
  16822. .fullStyle1>>>.el-dialog__body {
  16823. height: auto !important;
  16824. }
  16825. .wb_j_box_btn {
  16826. width: calc(100% - 30px);
  16827. display: flex;
  16828. height: 40px;
  16829. border: 1.5px solid #cad1dc;
  16830. border-radius: 4px;
  16831. box-sizing: border-box;
  16832. align-items: center;
  16833. font-size: 14px;
  16834. cursor: pointer;
  16835. overflow: hidden;
  16836. }
  16837. .wb_j_box_btn:hover {
  16838. border: 1.5px solid #0061ff;
  16839. }
  16840. .wb_j_box_title {
  16841. background: #f0f4fa;
  16842. height: 100%;
  16843. line-height: 40px;
  16844. width: 90px;
  16845. text-align: center;
  16846. color: #060e17;
  16847. border-right: 1.5px solid #cad1dc;
  16848. box-sizing: border-box;
  16849. }
  16850. .wb_j_box_btn_c {
  16851. width: calc(100% - 90px);
  16852. padding: 0 35px 0 10px;
  16853. box-sizing: border-box;
  16854. position: relative;
  16855. }
  16856. .wb_j_box_span {
  16857. width: 100%;
  16858. overflow: hidden;
  16859. white-space: nowrap;
  16860. text-overflow: ellipsis;
  16861. word-wrap: break-word;
  16862. color: #717c8d;
  16863. }
  16864. .wb_j_box_arrow {
  16865. content: "";
  16866. width: 14px;
  16867. height: 14px;
  16868. background: url(../../../assets/icon/new/u_arrow.png);
  16869. background-size: 100% 100%;
  16870. position: absolute;
  16871. right: 12px;
  16872. top: 50%;
  16873. transform: translateY(-50%);
  16874. }
  16875. .check_classBox {
  16876. height: 400px;
  16877. display: flex;
  16878. border-top: 1.5px solid #e7ebf1;
  16879. border-bottom: 1.5px solid #e7ebf1;
  16880. }
  16881. .check_class_right {
  16882. width: 130px;
  16883. border-right: 1px solid #e7ebf1;
  16884. display: flex;
  16885. align-items: center;
  16886. flex-direction: column;
  16887. height: 100%;
  16888. overflow: auto;
  16889. padding: 15px 0;
  16890. box-sizing: border-box;
  16891. }
  16892. .check_class {
  16893. width: 85%;
  16894. border-radius: 5px;
  16895. height: 30px;
  16896. line-height: 30px;
  16897. text-align: center;
  16898. padding: 0 10px;
  16899. box-sizing: border-box;
  16900. cursor: pointer;
  16901. white-space: nowrap;
  16902. overflow: hidden;
  16903. text-overflow: ellipsis;
  16904. }
  16905. .check_class.activeX {
  16906. background: #e0eafb;
  16907. color: #3681fc;
  16908. font-weight: 700;
  16909. }
  16910. .check_class + .check_class {
  16911. margin-top: 15px;
  16912. }
  16913. .check_class_left {
  16914. background: #fafafa;
  16915. width: calc(100% - 130px);
  16916. padding: 15px;
  16917. box-sizing: border-box;
  16918. }
  16919. .check_class_all_box {
  16920. display: flex;
  16921. margin-bottom: 10px;
  16922. }
  16923. .all_check {
  16924. display: flex;
  16925. align-items: center;
  16926. padding: 2px 0 0;
  16927. margin-left: 10px;
  16928. }
  16929. .all_check >>> .el-checkbox__label {
  16930. line-height: 18px;
  16931. }
  16932. .check_class_left_title {
  16933. font-size: 16px;
  16934. font-weight: 700;
  16935. }
  16936. .check_class_item {
  16937. display: flex;
  16938. flex-wrap: wrap;
  16939. height: calc(100% - 45px);
  16940. overflow: auto;
  16941. justify-content: flex-start;
  16942. align-items: flex-start;
  16943. align-content: flex-start;
  16944. }
  16945. .class_item:first-child {
  16946. /* margin: 0 15px 15px 67px; */
  16947. }
  16948. .class_item {
  16949. margin: 0 15px 15px 0;
  16950. }
  16951. .class_item:hover >>> .el-checkbox__label {
  16952. color: #409eff;
  16953. }
  16954. .class_item >>> .el-checkbox__label {
  16955. color: #0e1e33;
  16956. }
  16957. .class_item:hover >>> .el-checkbox__inner {
  16958. border-color: #409eff;
  16959. }
  16960. .class_item >>> .el-checkbox,
  16961. .class_item >>> .el-checkbox__input {
  16962. display: flex;
  16963. align-items: center;
  16964. }
  16965. .taskTitle {
  16966. font-size: 20px;
  16967. font-weight: bold;
  16968. margin-bottom: 35px;
  16969. }
  16970. .taskTitle:after {
  16971. content: "";
  16972. width: 100%;
  16973. display: block;
  16974. height: 1px;
  16975. background: #cad1dc;
  16976. position: absolute;
  16977. left: 0;
  16978. margin: 15px 0 0;
  16979. }
  16980. </style>