addCourse.vue 608 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304
  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 class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item
  9. :to="{
  10. path:
  11. '/course?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&role=' +
  18. role,
  19. }"
  20. >课程管理</el-breadcrumb-item
  21. >
  22. <el-breadcrumb-item>
  23. <span style="color: rgb(15, 126, 255)">添加课程</span>
  24. </el-breadcrumb-item>
  25. </el-breadcrumb>
  26. </div>
  27. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  28. </div>
  29. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  30. <div ref="stepBox" class="stepBox">
  31. <div class="stepBg" v-if="false">
  32. <div
  33. :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }"
  34. @mouseenter="stepDisplay(true)"
  35. @mouseleave="stepDisplay(false)"
  36. >
  37. <div
  38. v-if="steps > 0 && isStepDisplay"
  39. class="first"
  40. @click="navSteps(1)"
  41. >
  42. <div>
  43. <img src="../../assets/icon/first.png" alt />
  44. </div>
  45. <div>填写基本信息</div>
  46. </div>
  47. <div
  48. v-else-if="isStepDisplay"
  49. class="firstNo"
  50. @click="navSteps(1)"
  51. >
  52. <div>
  53. <img src="../../assets/icon/firstNo.png" alt />
  54. </div>
  55. <div>填写基本信息</div>
  56. </div>
  57. <div
  58. class="stepBorder"
  59. :class="{ 'border-active': steps > 1 }"
  60. v-if="cidType === 0 && isStepDisplay"
  61. ></div>
  62. <div
  63. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  64. class="second"
  65. @click="navSteps(2)"
  66. >
  67. <div style="margin: 5px 10px 0 0; width: 2rem">
  68. <img src="../../assets/icon/second.png" alt />
  69. </div>
  70. <div>选择课程模板</div>
  71. </div>
  72. <div
  73. v-else-if="cidType === 0 && isStepDisplay"
  74. class="secondNo"
  75. @click="navSteps(2)"
  76. >
  77. <div>
  78. <img src="../../assets/icon/secondNo.png" alt />
  79. </div>
  80. <div>选择课程模板</div>
  81. </div>
  82. <div
  83. v-if="isStepDisplay"
  84. class="stepBorder"
  85. :class="{ 'border-active': steps > 2 }"
  86. ></div>
  87. <div
  88. v-if="steps > 2 && isStepDisplay"
  89. class="third"
  90. @click="navSteps(3)"
  91. >
  92. <div>
  93. <img src="../../assets/icon/third.png" alt />
  94. </div>
  95. <div>上传课程内容</div>
  96. </div>
  97. <div
  98. v-else-if="isStepDisplay"
  99. class="thirdNo"
  100. @click="navSteps(3)"
  101. >
  102. <div>
  103. <img src="../../assets/icon/thirdNo.png" alt />
  104. </div>
  105. <div>上传课程内容</div>
  106. </div>
  107. <div
  108. v-if="isStepDisplay"
  109. class="stepBorder"
  110. :class="{ 'border-active': steps > 3 }"
  111. ></div>
  112. <div v-if="steps > 3 && isStepDisplay" class="four">
  113. <div>
  114. <img src="../../assets/icon/four.png" alt />
  115. </div>
  116. <div>上传完成</div>
  117. </div>
  118. <div v-else-if="isStepDisplay" class="fourNo">
  119. <div>
  120. <img src="../../assets/icon/fourNo.png" alt />
  121. </div>
  122. <div>上传完成</div>
  123. </div>
  124. </div>
  125. </div>
  126. <div
  127. class="rightBox"
  128. :key="updateKey"
  129. ref='scrollContainer'
  130. v-if="steps == 1"
  131. @mousewheel="scrollChange"
  132. style="padding: 0"
  133. :style="{
  134. height:
  135. !isStepDisplay && !isBtnDisplay
  136. ? 'calc(100% - 20px)'
  137. : 'calc(100% - 100px)',
  138. }"
  139. >
  140. <div
  141. class="updateMask"
  142. :style="{
  143. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  144. }"
  145. v-if="cid && userid != courseUserid && role != '1'"
  146. ></div>
  147. <div class="whiteBg" style="background: unset; padding: 0">
  148. <div>
  149. <div class="basic_box" style="padding: 0">
  150. <div class="big_box">
  151. <div class="left_first">
  152. <div
  153. :class="{
  154. updateTips:
  155. cid && userid != courseUserid && role != '1',
  156. }"
  157. >
  158. <div style="width: 100%">
  159. <div class="course_input_box">
  160. <div class="bb_courseIcon">
  161. <img src="../../assets/icon/new/course.png" />
  162. </div>
  163. <input
  164. type="text"
  165. placeholder="请输入课程名称"
  166. class="binfo_input"
  167. v-model="courseName"
  168. style="
  169. border: 1.5px solid rgb(202, 209, 220);
  170. margin: 0px 10px 0px 0px;
  171. border-radius: 5px;
  172. font-weight: 600;
  173. padding: 12px 14px 12px 71px;
  174. "
  175. />
  176. <el-switch
  177. v-model="isTeacherSee"
  178. active-text="是否公开此课程"
  179. style="justify-content: center; width: 200px"
  180. ></el-switch>
  181. </div>
  182. </div>
  183. </div>
  184. <div
  185. class="pType_box all_choose"
  186. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  187. >
  188. <span>类型</span>
  189. <!-- 学科+ 主题+ 未来+ -->
  190. <el-radio-group
  191. @change="CourseType2Change"
  192. v-model="pTypeCheckName"
  193. style="display: flex; align-items: center"
  194. >
  195. <div
  196. class="all_choose"
  197. style="width: 100px"
  198. v-for="(item, index) in CourseType2"
  199. :key="index"
  200. >
  201. <el-radio :label="item.name">{{
  202. item.name
  203. }}</el-radio>
  204. </div>
  205. </el-radio-group>
  206. </div>
  207. <div class="both">
  208. <div class="choose">
  209. <div
  210. class="all_choose"
  211. v-for="(item, index) in CourseType[0]"
  212. :key="index"
  213. >
  214. <span
  215. v-if="
  216. CourseTypeJson[item.id].length > 0 &&
  217. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  218. ? pTypeCheck.indexOf(item.id) != -1
  219. : true)
  220. "
  221. >{{ item.name }}:</span
  222. >
  223. <el-checkbox-group
  224. v-model="courseTypeId"
  225. v-if="
  226. CourseTypeJson[item.id].length > 0 &&
  227. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  228. ? pTypeCheck.indexOf(item.id) != -1
  229. : true)
  230. "
  231. >
  232. <el-checkbox
  233. v-for="item1 in CourseTypeJson[item.id]"
  234. :key="item1.id"
  235. :label="item1.id"
  236. >{{ item1.name }}</el-checkbox
  237. >
  238. </el-checkbox-group>
  239. <!-- <div
  240. v-else
  241. style="font-size: 14px; margin-left: -8px"
  242. >
  243. 暂无
  244. </div> -->
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="right_first">
  250. <!-- <div class="ai_box">
  251. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  252. </div> -->
  253. <div
  254. class="c_info_title"
  255. style="padding: 0 0 15px; margin: 0 auto 0 0"
  256. >
  257. 上传封面
  258. </div>
  259. <div style="width: 100%">
  260. <div
  261. class="uploadFm"
  262. @click="choosePicVisible = true"
  263. :class="{ uploadFm2: cover.length }"
  264. >
  265. <img
  266. src="../../assets/icon/addPoster.png"
  267. alt=""
  268. v-if="cover.length == 0"
  269. />
  270. <img
  271. :src="cover[0].url"
  272. alt=""
  273. class="cover_p"
  274. v-else
  275. />
  276. <div v-if="cover.length == 0">点击添加封面</div>
  277. <div class="cover_mask">
  278. <img
  279. src="../../assets/icon/new/cover_update.png"
  280. /><span style="margin-top: 5px">修改封面</span>
  281. </div>
  282. </div>
  283. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  284. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  285. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  286. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  287. <i class="el-icon-plus"></i>
  288. </el-upload> -->
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="whiteBg" style="background: #fff; margin: 10px 0">
  296. <div class="whiteBg" style="border-radius: 0">
  297. <div class="c_info_title">课程权限设置</div>
  298. <div class="wb_j_box">
  299. <div class="wb_j_box_content">
  300. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  301. (dialogVisibleClass = true),
  302. (classSearch = ''),
  303. (gradeId = ''),
  304. getClass()
  305. ">添加班级</button>
  306. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  307. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  308. getClassC(tc) }}</span>
  309. </div> -->
  310. <div
  311. class="wb_j_box_btn"
  312. @click="
  313. (dialogVisibleClass = true),
  314. (classSearch = ''),
  315. (gradeId = ''),
  316. getClass()
  317. "
  318. >
  319. <div class="wb_j_box_title">授课班级</div>
  320. <div class="wb_j_box_btn_c">
  321. <el-tooltip
  322. effect="dark"
  323. :content="getListClassC(checkboxList2)"
  324. placement="top"
  325. v-if="checkboxList2.length"
  326. popper-class="text_tooltip2"
  327. >
  328. <div class="wb_j_box_span">
  329. {{ getListClassC(checkboxList2) }}
  330. </div>
  331. </el-tooltip>
  332. <div v-else class="wb_j_box_span">请选择授课班级</div>
  333. <div class="wb_j_box_arrow"></div>
  334. </div>
  335. </div>
  336. </div>
  337. <div class="wb_j_box_content">
  338. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  339. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  340. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  341. checkBoolean
  342. ? checkboxList3
  343. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  344. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  345. </div> -->
  346. <div class="wb_j_box_btn" @click="openMember">
  347. <div class="wb_j_box_title">协同人员</div>
  348. <div class="wb_j_box_btn_c">
  349. <el-tooltip
  350. effect="dark"
  351. :content="getListMan2(checkboxList3)"
  352. placement="top"
  353. v-if="checkboxList3.length"
  354. popper-class="text_tooltip2"
  355. >
  356. <div class="wb_j_box_span">
  357. {{ getListMan2(checkboxList3) }}
  358. </div>
  359. </el-tooltip>
  360. <div v-else class="wb_j_box_span">请选择协同人员</div>
  361. <div class="wb_j_box_arrow"></div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  368. <div class="c_info_title">课程简要描述</div>
  369. <div
  370. style="width: 100%; padding: 0px 20px; box-sizing: border-box"
  371. >
  372. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  373. <textarea
  374. v-autoHeight="68"
  375. rows="2"
  376. class="binfo_input binfo_textarea"
  377. cols
  378. v-model="courseText"
  379. placeholder="请输入课程简要描述"
  380. ></textarea>
  381. </div>
  382. </div>
  383. </div>
  384. <div
  385. class="whiteBg"
  386. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  387. >
  388. <div class="c_info_title">目标管理</div>
  389. <div style="margin: 0 auto; padding: 0 20px">
  390. <div
  391. style="
  392. width: 95%;
  393. min-height: 200px;
  394. border: 1px solid #cad1dc;
  395. border-radius: 4px;
  396. position: relative;
  397. "
  398. >
  399. <div class="e_add_top">
  400. <div class="e_add_title">
  401. <button
  402. class="c_pub_button_delete pub_btn_delete_img"
  403. @click="deleteEva()"
  404. v-if="evalua"
  405. >
  406. 清除
  407. </button>
  408. <button
  409. class="c_pub_button_confirm pub_btn_add_img2"
  410. @click="dialogVisiblemb = true"
  411. >
  412. 添加
  413. </button>
  414. <!-- <span>当前使用目标管理</span>
  415. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  416. <img
  417. src="../../assets/line.png"
  418. class="cru_line"
  419. style="
  420. width: 125px;
  421. height: 20px;
  422. bottom: -10px;
  423. left: 155px;
  424. "
  425. /> -->
  426. </div>
  427. <div
  428. style="
  429. display: flex;
  430. flex-direction: row;
  431. align-items: center;
  432. "
  433. >
  434. <!-- <el-button
  435. type="primary"
  436. size="small"
  437. @click="dialogVisiblemb = true"
  438. >添加目标管理</el-button
  439. >
  440. <el-button
  441. type="primary"
  442. size="small"
  443. @click="deleteEva()"
  444. >清除内容</el-button
  445. > -->
  446. <!-- <div class="e_add_delete" @click="deleteEva()">
  447. <img src="../../assets/icon/delete.png" alt="" />
  448. </div> -->
  449. </div>
  450. </div>
  451. <div v-if="evalua == ''">
  452. <div class="noneBox">
  453. <img src="../../assets/icon/new/eva_none.png" />
  454. <span>请添加目标管理</span>
  455. </div>
  456. </div>
  457. <div class="e_add_content" v-else>
  458. <div class="e_add_list_pbox">
  459. <div class="e_add_list_pbox_title">
  460. <span class="type_title">切换模式</span>
  461. <div class="type_content">
  462. <span
  463. :class="{ active: typeMode == 1 }"
  464. @click="OtherMb(1)"
  465. >目标树</span
  466. >
  467. <span
  468. :class="{ active: typeMode == 2 }"
  469. @click="OtherMb(2)"
  470. >目标罗盘</span
  471. >
  472. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  473. </div>
  474. </div>
  475. <div class="e_add_list_pbox_content">
  476. <Mind
  477. :showBar="false"
  478. :mindData="data"
  479. v-if="typeMode == 1"
  480. ></Mind>
  481. <Sunburst
  482. :Josn="eJson"
  483. :num="eJSONNum"
  484. style="width: 100%"
  485. v-if="typeMode == 2"
  486. ></Sunburst>
  487. <SeeBoard
  488. :Josn="eJson"
  489. :num="eJSONNum"
  490. :ename="eTitle"
  491. style="width: 100%"
  492. v-if="typeMode == 3"
  493. >
  494. </SeeBoard>
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. </div>
  500. </div>
  501. </div>
  502. <div class="info_btnBox3">
  503. <button
  504. class="c_pub_button_return pub_btn_return_img"
  505. v-if="steps == 1"
  506. @click="
  507. goTo(
  508. '/course?userid=' +
  509. userid +
  510. '&oid=' +
  511. oid +
  512. '&org=' +
  513. org +
  514. '&role=' +
  515. role
  516. )
  517. "
  518. >
  519. 返回课程
  520. </button>
  521. <button
  522. class="c_pub_button_return pub_btn_last_img"
  523. v-if="steps > 1 && steps != 5"
  524. @click="lastSteps"
  525. >
  526. {{ steps == 4 ? "返回课程" : "上一步" }}
  527. </button>
  528. <button
  529. class="c_pub_button_confirm"
  530. v-if="steps < 4"
  531. @click="nextSteps"
  532. :class="{
  533. pub_btn_next_img: steps != 3,
  534. pub_btn_finish_img: steps == 3,
  535. }"
  536. >
  537. {{ steps == 3 ? "确认上传" : "下一步" }}
  538. </button>
  539. </div>
  540. </div>
  541. <div
  542. class="rightBox"
  543. v-if="steps == 2"
  544. :style="{
  545. height:
  546. !isStepDisplay && !isBtnDisplay
  547. ? 'calc(100% - 40px)'
  548. : 'calc(100% - 100px)',
  549. }"
  550. >
  551. <div
  552. class="basic_box"
  553. style="
  554. padding: 20px 30px 0px !important;
  555. box-sizing: border-box;
  556. height: calc(100% - 80px);
  557. overflow: auto;
  558. background: #fff;
  559. "
  560. >
  561. <!-- <div
  562. style="
  563. color: #b8b8b8;
  564. background: #fff;
  565. width: 26%;
  566. height: 40px;
  567. border-radius: 15px;
  568. padding-left: 20px;
  569. line-height: 40px;
  570. font-size: 17px;
  571. box-shadow: 0px 1px 2px 2px #e0e0e0;
  572. "
  573. >-->
  574. <div
  575. class="right_title"
  576. style="border: none; margin: 0; padding: 0"
  577. >
  578. 请选择合适的课程模板
  579. </div>
  580. <div class="wordbox">
  581. <div class="wordTeacher" @click="checkTemplate2()">
  582. <div class="wordPic">
  583. <img src="../../assets/icon/new/template_none.png" alt />
  584. </div>
  585. <div
  586. style="
  587. margin-top: 10px;
  588. line-height: 19px;
  589. overflow: hidden;
  590. text-overflow: ellipsis;
  591. white-space: nowrap;
  592. padding: 0 20px;
  593. "
  594. >
  595. 空白模板
  596. </div>
  597. </div>
  598. <div
  599. class="wordTeacher"
  600. v-for="(aa, indexF) in templateArray"
  601. :key="indexF"
  602. @click="checkTemplate(aa)"
  603. >
  604. <div class="wordPic">
  605. <img src="../../assets/icon/new/template.png" alt />
  606. </div>
  607. <div
  608. style="
  609. margin-top: 10px;
  610. line-height: 19px;
  611. overflow: hidden;
  612. text-overflow: ellipsis;
  613. white-space: nowrap;
  614. padding: 0 20px;
  615. "
  616. >
  617. {{ aa.title }}
  618. </div>
  619. </div>
  620. <div
  621. class="wordTeacher"
  622. @click="checkTemplate3()"
  623. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  624. >
  625. <div class="wordPic">
  626. <img src="../../assets/icon/new/template.png" alt />
  627. </div>
  628. <div
  629. style="
  630. margin-top: 10px;
  631. line-height: 19px;
  632. overflow: hidden;
  633. text-overflow: ellipsis;
  634. white-space: nowrap;
  635. padding: 0 20px;
  636. "
  637. >
  638. 简易模板
  639. </div>
  640. </div>
  641. <div
  642. class="wordTeacher"
  643. @click="pasteStage()"
  644. v-if="isPasteStage"
  645. >
  646. <div class="wordPic">
  647. <img src="../../assets/icon/new/template.png" alt />
  648. </div>
  649. <div
  650. style="
  651. margin-top: 10px;
  652. line-height: 19px;
  653. overflow: hidden;
  654. text-overflow: ellipsis;
  655. white-space: nowrap;
  656. padding: 0 20px;
  657. "
  658. >
  659. 智能粘贴模式
  660. </div>
  661. </div>
  662. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  663. <div class="wordPic">
  664. <img src="../../assets/icon/wordMub.png" alt />
  665. </div>
  666. <div style="
  667. margin-top: 10px;
  668. line-height: 19px;
  669. overflow: hidden;
  670. text-overflow: ellipsis;
  671. white-space: nowrap;
  672. padding: 0 20px;
  673. ">
  674. 未来小学课程设计
  675. </div>
  676. </div> -->
  677. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  678. <div class="wordPic">
  679. <img src="../../assets/icon/wordMub.png" alt />
  680. </div>
  681. <div style="
  682. margin-top: 10px;
  683. line-height: 19px;
  684. overflow: hidden;
  685. text-overflow: ellipsis;
  686. white-space: nowrap;
  687. padding: 0 20px;
  688. ">
  689. 我的课程
  690. </div>
  691. </div> -->
  692. </div>
  693. </div>
  694. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  695. <button
  696. class="c_pub_button_return pub_btn_return_img"
  697. v-if="steps == 1"
  698. @click="
  699. goTo(
  700. '/course?userid=' +
  701. userid +
  702. '&oid=' +
  703. oid +
  704. '&org=' +
  705. org +
  706. '&role=' +
  707. role
  708. )
  709. "
  710. >
  711. 返回课程
  712. </button>
  713. <button
  714. class="c_pub_button_return pub_btn_last_img"
  715. v-if="steps > 1 && steps != 5"
  716. @click="lastSteps"
  717. >
  718. {{ steps == 4 ? "返回课程" : "上一步" }}
  719. </button>
  720. <button
  721. class="c_pub_button_confirm"
  722. v-if="steps < 4"
  723. @click="nextSteps"
  724. :class="{
  725. pub_btn_next_img: steps != 3,
  726. pub_btn_finish_img: steps == 3,
  727. }"
  728. >
  729. {{ steps == 3 ? "确认上传" : "下一步" }}
  730. </button>
  731. </div>
  732. </div>
  733. <div
  734. class="rightBox"
  735. v-if="steps == 3"
  736. ref="rightboxR"
  737. :style="{
  738. height:
  739. !isStepDisplay && !isBtnDisplay
  740. ? 'calc(100% - 40px)'
  741. : 'calc(100% - 100px)',
  742. }"
  743. >
  744. <div class="rb_c_box">
  745. <div
  746. class="rb_c_box_left"
  747. v-if="steps == 3 && unitJson[unitIndex].easy != 1"
  748. >
  749. <div class="stepsBottom">
  750. <!-- <div class="navTop">辅助导航</div> -->
  751. <div class="navBottom" v-if="courseState == 2">
  752. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  753. <div class="nt_taskBox" style="width: 100%;">
  754. <div class="nt_taskTitle"
  755. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  756. unitIndex + 1 }}</div>
  757. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  758. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  759. <span>{{ unitJson[unitIndex].dyName }}</span>
  760. </el-tooltip>
  761. </div>
  762. </div>
  763. </div> -->
  764. <div
  765. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  766. .taskJson"
  767. :key="tIndex"
  768. :class="{
  769. dragOverTop:
  770. newIndex === tIndex &&
  771. typeIndex == 'task-' + tIndex &&
  772. oldIndex > tIndex &&
  773. dragType == 'task',
  774. dragOverBottom:
  775. newIndex === tIndex &&
  776. typeIndex == 'task-' + tIndex &&
  777. oldIndex < tIndex &&
  778. dragType == 'task',
  779. }"
  780. >
  781. <div
  782. @dragstart="dragTaskStart(t, tIndex, 0)"
  783. @dragover.prevent="dragTaskOver(tIndex, 0)"
  784. @dragend="dragTaskEnd()"
  785. :draggable="isdrag == 'task-' + tIndex"
  786. @click="goToTask(tIndex)"
  787. class="navTask"
  788. :class="{
  789. isNavTask:
  790. isClickColor > 0 && isClickColor == tIndex + 1,
  791. isNavOpen: t.toolOpen,
  792. }"
  793. >
  794. <div
  795. @click.stop="taskOpen(tIndex, 0)"
  796. class="chapter_upload_open"
  797. ></div>
  798. <div
  799. @mousedown="isdrag = 'task-' + tIndex"
  800. @mouseup="isdrag = ''"
  801. @touchstart="isdrag = 'task-' + tIndex"
  802. @touchend="isdrag = ''"
  803. style="left: 8px"
  804. class="chapter_upload_drag"
  805. ></div>
  806. <div class="nt_taskBox">
  807. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  808. <div class="nt_taskName">
  809. <el-tooltip
  810. effect="light"
  811. :content="t.task ? t.task : '未命名任务'"
  812. placement="top"
  813. >
  814. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  815. </el-tooltip>
  816. </div>
  817. </div>
  818. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  819. 1
  820. ">
  821. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  822. @click.stop="taskMove(1, tIndex)"></div>
  823. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  824. @click.stop="taskMove(2, tIndex)"></div>
  825. </div> -->
  826. </div>
  827. <div
  828. class="gjBox"
  829. v-if="t.toolChoose.length && t.toolOpen"
  830. >
  831. <div
  832. v-for="(tool, toolIndex2) in t.toolChoose"
  833. :key="toolIndex2"
  834. @click="jumpGj(tIndex, toolIndex2)"
  835. >
  836. <div
  837. class="gjCss"
  838. :class="{
  839. isGjCss:
  840. toolIndexType == `gj${tIndex}${toolIndex2}`,
  841. }"
  842. >
  843. <div>工具{{ toolIndex2 + 1 }}:</div>
  844. <div>
  845. {{
  846. toolsData[tool.tool[0]] &&
  847. toolsData[tool.tool[0]].name
  848. }}
  849. </div>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <div class="navBottom" v-if="courseState == 1">
  856. <div
  857. v-for="(stage, stageIndex) in unitJson"
  858. :key="stageIndex"
  859. class="stageBox"
  860. :class="{
  861. dragOverTop:
  862. newIndex === stageIndex &&
  863. typeIndex == 'Unit-' + stageIndex &&
  864. oldIndex > stageIndex &&
  865. dragType == 'Unit',
  866. dragOverBottom:
  867. newIndex === stageIndex &&
  868. typeIndex == 'Unit-' + stageIndex &&
  869. oldIndex < stageIndex &&
  870. dragType == 'Unit',
  871. }"
  872. >
  873. <div
  874. @dragstart="dragUnitStart(stage, stageIndex)"
  875. @dragover.prevent="dragUnitOver(stageIndex)"
  876. @dragend="dragUnitEnd()"
  877. :draggable="isdrag == 'unit-' + stageIndex"
  878. @click="unitSet2(stageIndex)"
  879. class="navStage"
  880. :class="{
  881. isNavStage: stageIndex == unitIndex,
  882. isNavStageOpen: stage.toolOpen,
  883. }"
  884. >
  885. <div
  886. @mousedown="isdrag = 'unit-' + stageIndex"
  887. @mouseup="isdrag = ''"
  888. @touchstart="isdrag = 'unit-' + stageIndex"
  889. @touchend="isdrag = ''"
  890. style="left: 8px"
  891. class="chapter_upload_drag"
  892. ></div>
  893. <div class="nt_taskBox">
  894. <div class="nt_taskTitle">
  895. 第{{ stageIndex + 1 }}阶段:
  896. </div>
  897. <div class="nt_taskName">
  898. <el-tooltip
  899. effect="light"
  900. :content="
  901. stage.dyName ? stage.dyName : '未命名阶段'
  902. "
  903. placement="top"
  904. >
  905. <span>{{
  906. stage.dyName ? stage.dyName : "未命名阶段"
  907. }}</span>
  908. </el-tooltip>
  909. </div>
  910. </div>
  911. <div
  912. @click.stop="unitOpen(stageIndex)"
  913. class="chapter_unit_open"
  914. ></div>
  915. </div>
  916. <div
  917. v-for="(t, tIndex) in unitJson[stageIndex]
  918. .chapterInfo[0].taskJson"
  919. :key="`${stageIndex}-${tIndex}`"
  920. :class="{
  921. dragOverTop:
  922. newIndex === tIndex &&
  923. typeIndex == 'task-' + tIndex &&
  924. ((oldIndex > tIndex &&
  925. stageIndex == checkUnitIndex) ||
  926. (oldIndex == tIndex &&
  927. stageIndex == checkUnitIndex &&
  928. checkUnitIndex != oldUnitIndex)) &&
  929. dragType == 'task',
  930. dragOverBottom:
  931. newIndex === tIndex &&
  932. typeIndex == 'task-' + tIndex &&
  933. oldIndex < tIndex &&
  934. stageIndex == checkUnitIndex &&
  935. dragType == 'task',
  936. }"
  937. :style="{ display: stage.toolOpen ? 'block' : 'none' }"
  938. >
  939. <div
  940. @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  941. @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  942. @dragend="dragTaskEnd()"
  943. :draggable="
  944. isdrag == 'task-' + stageIndex + '-' + tIndex
  945. "
  946. @click="goToTask2(tIndex, stageIndex)"
  947. class="navTask"
  948. style="padding-left: 12px"
  949. :class="{
  950. isNavTask:
  951. isClickColor > 0 &&
  952. isClickColor == tIndex + 1 &&
  953. stageIndex == unitIndex,
  954. isNavOpen: t.toolOpen,
  955. }"
  956. >
  957. <div
  958. @click.stop="taskOpen(tIndex, stageIndex)"
  959. class="chapter_upload_open"
  960. ></div>
  961. <div
  962. @mousedown="
  963. isdrag = 'task-' + stageIndex + '-' + tIndex
  964. "
  965. @mouseup="isdrag = ''"
  966. @touchstart="
  967. isdrag = 'task-' + stageIndex + '-' + tIndex
  968. "
  969. @touchend="isdrag = ''"
  970. style="left: 20px"
  971. class="chapter_upload_drag"
  972. ></div>
  973. <div
  974. class="nt_taskBox"
  975. style="width: calc(100% - 52px)"
  976. >
  977. <div class="nt_taskTitle">
  978. 任务{{ tIndex + 1 }}:
  979. </div>
  980. <div class="nt_taskName">
  981. <el-tooltip
  982. effect="light"
  983. :content="t.task ? t.task : '未命名任务'"
  984. placement="top"
  985. >
  986. <span>{{
  987. t.task ? t.task : "未命名任务"
  988. }}</span>
  989. </el-tooltip>
  990. </div>
  991. </div>
  992. </div>
  993. <div
  994. class="gjBox"
  995. v-if="t.toolChoose.length && t.toolOpen"
  996. >
  997. <div
  998. v-for="(tool, toolIndex2) in t.toolChoose"
  999. :key="toolIndex2"
  1000. @click="jumpGj2(tIndex, toolIndex2, stageIndex)"
  1001. >
  1002. <div
  1003. class="gjCss"
  1004. :class="{
  1005. isGjCss:
  1006. toolIndexType ==
  1007. `gj${tIndex}${toolIndex2}${stageIndex}`,
  1008. }"
  1009. >
  1010. <div>工具{{ toolIndex2 + 1 }}:</div>
  1011. <div>
  1012. {{
  1013. toolsData[tool.tool[0]] &&
  1014. toolsData[tool.tool[0]].name
  1015. }}
  1016. </div>
  1017. </div>
  1018. </div>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div class="rb_c_box_right">
  1026. <!-- <div class="rb_c_box_btn">
  1027. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  1028. </div> -->
  1029. <div class="basic_box" ref="unitBox">
  1030. <div
  1031. style="
  1032. display: flex;
  1033. flex-direction: row;
  1034. align-items: center;
  1035. position: sticky;
  1036. top: 0;
  1037. z-index: 99;
  1038. width: 100%;
  1039. padding: 0 20px 0 20px;
  1040. box-sizing: border-box;
  1041. background: #fff;
  1042. border-radius: 8px;
  1043. "
  1044. >
  1045. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  1046. <div
  1047. class="cru_selectBox"
  1048. :style="{
  1049. maxWidth: isPasteTask
  1050. ? 'calc(100% - 335px)'
  1051. : 'calc(100% - 190px)',
  1052. }"
  1053. v-if="courseState == 1"
  1054. >
  1055. <div
  1056. v-for="(item, index) in unitJson"
  1057. :key="index"
  1058. class="cru_select"
  1059. :class="unitIndex == index ? 'cru_selected' : ''"
  1060. @click="unitSet(index)"
  1061. >
  1062. <!-- item.dyName ? item.dyName : -->
  1063. <span
  1064. v-if="
  1065. unitJson[unitJson.length - 1].easy == 4 ||
  1066. unitJson[unitJson.length - 1].easy == 6
  1067. "
  1068. >{{
  1069. item.dyName
  1070. ? item.dyName
  1071. : "第" + (index + 1) + "阶段"
  1072. }}</span
  1073. >
  1074. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  1075. </div>
  1076. <div
  1077. class="cru_line"
  1078. :style="{
  1079. left: offsetLetfPx + 'px',
  1080. }"
  1081. ></div>
  1082. </div>
  1083. <div
  1084. class="addStageImg"
  1085. @click="addunit()"
  1086. v-if="
  1087. !(unitJson[unitJson.length - 1].easy == 4) &&
  1088. !(unitJson[unitJson.length - 1].easy == 6) &&
  1089. courseState == 1
  1090. "
  1091. >
  1092. <img src="../../assets/icon/new/addStage.png" alt />
  1093. </div>
  1094. <button
  1095. class="c_pub_button_add pub_btn_add_img"
  1096. @click="updateCourseState(1)"
  1097. v-if="courseState == 2"
  1098. style="margin: 15px 0"
  1099. >
  1100. 新建阶段
  1101. </button>
  1102. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  1103. <button
  1104. class="c_pub_button_add"
  1105. @click="openStageBox"
  1106. v-show="false"
  1107. style="margin: 0 0 0 auto"
  1108. >
  1109. 阶段顺序
  1110. </button>
  1111. <button
  1112. class="c_pub_button_add pub_btn_paste_img"
  1113. @click="pasteTask()"
  1114. v-if="steps == 3 && isPasteTask"
  1115. style="margin: 0 0 0 auto"
  1116. >
  1117. 智能粘贴
  1118. </button>
  1119. <button
  1120. class="c_pub_button_confirm pub_btn_template_img"
  1121. @click="openTemplate"
  1122. :style="{
  1123. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  1124. }"
  1125. style="padding: 0 12px"
  1126. >
  1127. 选择课程模板
  1128. </button>
  1129. </div>
  1130. <div
  1131. style="margin: 0 0 10px 0; padding: 0"
  1132. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  1133. :key="index"
  1134. >
  1135. <div class="chapter_box" v-if="courseState == 1">
  1136. <div class="chapter_contentbox">
  1137. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  1138. <div class="cc_input">
  1139. <input
  1140. ref="dyInput"
  1141. type="text"
  1142. placeholder="请输入阶段标题"
  1143. class="binfo_input"
  1144. v-model="unitJson[unitIndex].dyName"
  1145. />
  1146. </div>
  1147. <div
  1148. class="remove"
  1149. v-if="
  1150. (unitJson.length > 1 || courseState != 2) &&
  1151. !(unitJson[unitJson.length - 1].easy == 4) &&
  1152. !(unitJson[unitJson.length - 1].easy == 6)
  1153. "
  1154. @click="deleteUnit(unitIndex)"
  1155. ></div>
  1156. </div>
  1157. </div>
  1158. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  1159. margin: 50px 0px 10px;
  1160. font-size: 1.5em;
  1161. font-weight: 700;
  1162. color: #0f7eff;
  1163. ">
  1164. 添加任务
  1165. </div> -->
  1166. <div
  1167. class="taskBorder"
  1168. :style="{
  1169. minHeight: unitJson[unitIndex].easy && 'unset',
  1170. }"
  1171. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  1172. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  1173. :key="itemTaskIndex"
  1174. >
  1175. <div style="background: #fff; border-radius: 5px">
  1176. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  1177. <!-- padding: 20px; -->
  1178. <div v-if="unitJson[unitIndex].easy != 1">
  1179. <div
  1180. :style="{
  1181. marginBottom:
  1182. unitJson[unitIndex].easy == 3 ||
  1183. (unitJson[unitIndex].easy == 5 &&
  1184. itemTask.taskType == 1)
  1185. ? '75px'
  1186. : '0',
  1187. }"
  1188. >
  1189. <div
  1190. style="
  1191. display: flex;
  1192. margin: 0px 0 20px;
  1193. flex-direction: row;
  1194. justify-content: flex-start;
  1195. align-items: center;
  1196. "
  1197. >
  1198. <div class="lineTitle">任务概述</div>
  1199. </div>
  1200. <div
  1201. :id="'task' + itemTaskIndex"
  1202. class="chapter_contentbox"
  1203. style="
  1204. flex-direction: row;
  1205. justify-content: flex-start;
  1206. align-items: center;
  1207. margin: 0;
  1208. "
  1209. >
  1210. <!-- <div class="cc_title">
  1211. 任务{{ itemTaskIndex + 1 }}
  1212. </div> -->
  1213. <div class="cc_input">
  1214. <input
  1215. type="text"
  1216. placeholder="输入任务名称"
  1217. class="binfo_input"
  1218. style="border-radius: 4px"
  1219. v-model="
  1220. unitJson[unitIndex].chapterInfo[0].taskJson[
  1221. itemTaskIndex
  1222. ].task
  1223. "
  1224. />
  1225. </div>
  1226. <div
  1227. class="remove"
  1228. v-if="
  1229. item.taskJson.length > 1 &&
  1230. (!unitJson[unitIndex].easy ||
  1231. unitJson[unitIndex].easy == 6)
  1232. "
  1233. @click="deleteTask(itemTaskIndex)"
  1234. ></div>
  1235. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1236. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1237. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1238. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1239. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  1240. </div> -->
  1241. </div>
  1242. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1243. display: flex;
  1244. margin: 20px 0;
  1245. flex-direction: row;
  1246. justify-content: flex-start;
  1247. align-items: center;
  1248. ">
  1249. <div class="lineTitle">任务描述</div>
  1250. </div> && !itemTask.isFold2-->
  1251. <div
  1252. v-if="
  1253. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1254. -1
  1255. "
  1256. style="margin-top: 20px"
  1257. >
  1258. <editor-bar
  1259. class="addEditor"
  1260. style="margin: 0"
  1261. placeholder="请输入任务描述"
  1262. v-model="
  1263. unitJson[unitIndex].chapterInfo[0].taskJson[
  1264. itemTaskIndex
  1265. ].taskDetail
  1266. "
  1267. @change="change"
  1268. ></editor-bar>
  1269. <!-- <textarea
  1270. rows="6"
  1271. class="binfo_input"
  1272. placeholder="请输入任务描述"
  1273. cols
  1274. style="width: 70.5% !important; height: 120px"
  1275. v-model="
  1276. unitJson[unitIndex].chapterInfo[0].taskJson[
  1277. itemTaskIndex
  1278. ].taskDetail
  1279. "
  1280. ></textarea>-->
  1281. </div>
  1282. </div>
  1283. </div>
  1284. <div
  1285. style="position: relative"
  1286. v-if="
  1287. !unitJson[unitIndex].easy ||
  1288. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1289. "
  1290. >
  1291. <div
  1292. style="
  1293. display: flex;
  1294. flex-direction: row;
  1295. justify-content: space-between;
  1296. align-items: center;
  1297. "
  1298. :style="{
  1299. margin: !itemTask.isFoldchapter
  1300. ? '20px 0 10px'
  1301. : '20px 0 0',
  1302. }"
  1303. >
  1304. <div
  1305. style="margin-bottom: 10px"
  1306. class="lineTitle clineTitle"
  1307. >
  1308. 学习内容
  1309. </div>
  1310. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1311. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1312. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1313. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1314. <!-- <div class="line"></div> -->
  1315. </div>
  1316. <!-- v-if="!itemTask.isFoldchapter" -->
  1317. <div>
  1318. <div
  1319. class="add_chapters_box add_c_none"
  1320. v-if="
  1321. itemTask.chapterData &&
  1322. itemTask.chapterData.length == 0
  1323. "
  1324. >
  1325. <img
  1326. src="../../assets/icon/new/c_none.png"
  1327. alt
  1328. /><span>请添加学习内容</span>
  1329. </div>
  1330. <div
  1331. v-else
  1332. class="add_chapters_box"
  1333. style="display: flex; flex-direction: column"
  1334. >
  1335. <div
  1336. @dragstart="
  1337. dragStart(item1, index1, itemTaskIndex)
  1338. "
  1339. @dragover.prevent="
  1340. dragOver(index1, itemTaskIndex)
  1341. "
  1342. @dragend="dragEnd()"
  1343. :draggable="
  1344. isdrag ==
  1345. 'chapter-' + itemTaskIndex + '-' + index1
  1346. "
  1347. class="chapter_upload"
  1348. v-for="(item1, index1) in itemTask.chapterData"
  1349. :key="item1.id"
  1350. @click="
  1351. getChapterData(
  1352. $event,
  1353. unitIndex,
  1354. index,
  1355. index1,
  1356. item1.type
  1357. )
  1358. "
  1359. :class="{
  1360. dragOverTop2:
  1361. newIndex === index1 &&
  1362. typeIndex ==
  1363. 'chapter-' +
  1364. itemTaskIndex +
  1365. '-' +
  1366. index1 &&
  1367. oldIndex > index1 &&
  1368. dragType == 'drag',
  1369. dragOverBottom2:
  1370. newIndex === index1 &&
  1371. typeIndex ==
  1372. 'chapter-' +
  1373. itemTaskIndex +
  1374. '-' +
  1375. index1 &&
  1376. oldIndex < index1 &&
  1377. dragType == 'drag',
  1378. }"
  1379. >
  1380. <div
  1381. @mousedown="
  1382. isdrag =
  1383. 'chapter-' + itemTaskIndex + '-' + index1
  1384. "
  1385. @mouseup="isdrag = ''"
  1386. @touchstart="
  1387. isdrag =
  1388. 'chapter-' + itemTaskIndex + '-' + index1
  1389. "
  1390. @touchend="isdrag = ''"
  1391. class="chapter_upload_drag"
  1392. ></div>
  1393. <div
  1394. class="chapter_upload_o"
  1395. style="
  1396. position: relative;
  1397. display: flex;
  1398. align-items: center;
  1399. "
  1400. >
  1401. <div
  1402. class="chapter_upload_l"
  1403. style="padding: 1px 0 0 10px"
  1404. >
  1405. <div
  1406. v-if="item1.type == 2"
  1407. class="chapter_upload_l_i2"
  1408. ></div>
  1409. <div
  1410. v-if="item1.type == 3"
  1411. class="chapter_upload_l_i3"
  1412. style="margin-left: 1px"
  1413. ></div>
  1414. <div
  1415. v-if="item1.type == 6"
  1416. class="chapter_upload_l_i6"
  1417. style="margin-left: 1px"
  1418. ></div>
  1419. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1420. <div
  1421. v-if="item1.type == 8"
  1422. class="chapter_upload_l_i8"
  1423. style="margin-left: 1px"
  1424. ></div>
  1425. <div
  1426. v-if="item1.type == 14"
  1427. class="chapter_upload_l_i14"
  1428. style="margin-left: 1px"
  1429. ></div>
  1430. <div
  1431. v-if="item1.type == 12"
  1432. class="chapter_upload_l_i12"
  1433. style="margin-left: 1px"
  1434. ></div>
  1435. <div
  1436. v-if="item1.type == 13"
  1437. class="chapter_upload_l_i13"
  1438. style="margin-left: 1px"
  1439. ></div>
  1440. </div>
  1441. <div class="chapter_upload_n">
  1442. <input
  1443. readonly="true"
  1444. v-if="
  1445. item1.type == 2 ||
  1446. item1.type == 3 ||
  1447. item1.type == 12 ||
  1448. item1.type == 13 ||
  1449. item1.type == 7
  1450. "
  1451. :placeholder="item1.name"
  1452. @click="
  1453. updataVideoT(
  1454. $event,
  1455. unitIndex,
  1456. itemTaskIndex,
  1457. index1
  1458. )
  1459. "
  1460. style="
  1461. border: none;
  1462. outline: none;
  1463. width: 80%;
  1464. minwidth: 215px;
  1465. z-index: 99;
  1466. font-size: 14px;
  1467. white-space: nowrap;
  1468. overflow: hidden;
  1469. text-overflow: ellipsis;
  1470. "
  1471. />
  1472. <input
  1473. :placeholder="item1.name"
  1474. v-if="item1.type == 6"
  1475. style="
  1476. border: none;
  1477. outline: none;
  1478. width: 80%;
  1479. white-space: nowrap;
  1480. overflow: hidden;
  1481. text-overflow: ellipsis;
  1482. "
  1483. readonly="true"
  1484. @click="
  1485. selectAttText(itemTaskIndex, index1)
  1486. "
  1487. />
  1488. <input
  1489. :placeholder="
  1490. item1.title ? item1.title : '链接'
  1491. "
  1492. v-if="item1.type == 8"
  1493. style="
  1494. border: none;
  1495. outline: none;
  1496. width: 80%;
  1497. white-space: nowrap;
  1498. overflow: hidden;
  1499. text-overflow: ellipsis;
  1500. "
  1501. readonly="true"
  1502. @click="selectLine(itemTaskIndex, index1)"
  1503. />
  1504. <input
  1505. :placeholder="
  1506. item1.title ? item1.title : '链接'
  1507. "
  1508. v-if="item1.type == 14"
  1509. style="
  1510. border: none;
  1511. outline: none;
  1512. width: 80%;
  1513. white-space: nowrap;
  1514. overflow: hidden;
  1515. text-overflow: ellipsis;
  1516. "
  1517. readonly="true"
  1518. @click="
  1519. openUpdateSource(itemTaskIndex, index1)
  1520. "
  1521. />
  1522. </div>
  1523. <div class="chapter_upload_ic">
  1524. <div
  1525. class="chapter_upload_noSee"
  1526. v-if="item1.type == 12"
  1527. ></div>
  1528. <div
  1529. class="chapter_upload_ud"
  1530. style="z-index: 99"
  1531. >
  1532. <div
  1533. class="chapter_upload_up"
  1534. @click="
  1535. upCd(
  1536. $event,
  1537. unitIndex,
  1538. index,
  1539. itemTaskIndex,
  1540. index1
  1541. )
  1542. "
  1543. ></div>
  1544. <div
  1545. class="chapter_upload_down"
  1546. @click="
  1547. downCd(
  1548. $event,
  1549. unitIndex,
  1550. index,
  1551. itemTaskIndex,
  1552. index1
  1553. )
  1554. "
  1555. ></div>
  1556. </div>
  1557. <div
  1558. class="chapter_upload_ic_edit"
  1559. v-if="
  1560. item1.type == 2 ||
  1561. item1.type == 3 ||
  1562. item1.type == 12 ||
  1563. item1.type == 13 ||
  1564. item1.type == 7
  1565. "
  1566. @click.stop="
  1567. updataVideoT(
  1568. $event,
  1569. unitIndex,
  1570. itemTaskIndex,
  1571. index1
  1572. )
  1573. "
  1574. >
  1575. <div></div>
  1576. </div>
  1577. <div
  1578. class="chapter_upload_ic_edit"
  1579. v-if="item1.type == 6"
  1580. @click="
  1581. selectAttText(itemTaskIndex, index1)
  1582. "
  1583. >
  1584. <div></div>
  1585. </div>
  1586. <div
  1587. class="chapter_upload_ic_edit"
  1588. v-if="item1.type == 8"
  1589. @click="selectLine(itemTaskIndex, index1)"
  1590. >
  1591. <div></div>
  1592. </div>
  1593. <div
  1594. class="chapter_upload_ic_edit"
  1595. v-if="item1.type == 14"
  1596. @click="
  1597. openUpdateSource(itemTaskIndex, index1)
  1598. "
  1599. >
  1600. <div></div>
  1601. </div>
  1602. <div
  1603. class="chapter_upload_ic_r"
  1604. @click.stop="
  1605. deleteChapterData(
  1606. $event,
  1607. unitIndex,
  1608. index,
  1609. index1,
  1610. itemTaskIndex
  1611. )
  1612. "
  1613. >
  1614. <div></div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <!-- v-if="!itemTask.isFoldchapter" -->
  1622. <div class="add_info_box" style="margin: 10px 0 0">
  1623. <button
  1624. class="c_pub_button_add pub_btn_add_img"
  1625. @click="addImg($event)"
  1626. >
  1627. 文件
  1628. <input
  1629. type="file"
  1630. accept="*"
  1631. style="display: none"
  1632. v-if="inputShow"
  1633. @change="
  1634. beforeUpload2(
  1635. $event,
  1636. unitIndex,
  1637. 13,
  1638. itemTaskIndex
  1639. )
  1640. "
  1641. />
  1642. </button>
  1643. <button
  1644. class="c_pub_button_add pub_btn_add_img"
  1645. @click="addAttText(itemTaskIndex)"
  1646. >
  1647. 图文
  1648. </button>
  1649. <button
  1650. class="c_pub_button_add pub_btn_add_img"
  1651. @click="openLine(itemTaskIndex)"
  1652. >
  1653. 链接
  1654. </button>
  1655. <button
  1656. class="c_pub_button_add pub_btn_add_img"
  1657. @click="pasteLine(itemTaskIndex)"
  1658. >
  1659. 代码
  1660. </button>
  1661. <button
  1662. class="c_pub_button_add pub_btn_add_img"
  1663. @click="openSource(itemTaskIndex)"
  1664. >
  1665. 资源
  1666. </button>
  1667. </div>
  1668. <div
  1669. v-if="
  1670. unitJson[unitIndex].chapterInfo[0].taskJson[
  1671. itemTaskIndex
  1672. ].proVisible
  1673. "
  1674. class="mask"
  1675. >
  1676. <div class="progressBox">
  1677. <!-- <div id="closePro" class="closeCss">
  1678. <img src="../../../assets/icon/close.png" alt />
  1679. </div> -->
  1680. <div class="lbox">
  1681. <img
  1682. src="../../assets/loading.gif"
  1683. />上传中,请稍后
  1684. </div>
  1685. <div style="margin-bottom: 10px">
  1686. <span
  1687. >{{
  1688. unitJson[unitIndex].chapterInfo[0].taskJson[
  1689. itemTaskIndex
  1690. ].isFinishSize
  1691. }}M</span
  1692. >
  1693. /
  1694. <span
  1695. >{{
  1696. unitJson[unitIndex].chapterInfo[0].taskJson[
  1697. itemTaskIndex
  1698. ].isAllSize
  1699. }}M</span
  1700. >
  1701. </div>
  1702. <el-progress
  1703. :text-inside="true"
  1704. :stroke-width="20"
  1705. :percentage="
  1706. unitJson[unitIndex].chapterInfo[0].taskJson[
  1707. itemTaskIndex
  1708. ].progress
  1709. ? unitJson[unitIndex].chapterInfo[0]
  1710. .taskJson[itemTaskIndex].progress
  1711. : 0
  1712. "
  1713. style="width: 80%"
  1714. ></el-progress>
  1715. </div>
  1716. </div>
  1717. </div>
  1718. <div
  1719. v-if="
  1720. unitJson[unitIndex].easy == 1 ||
  1721. (unitJson[unitIndex].easy == 5 &&
  1722. itemTask.taskType == 2)
  1723. "
  1724. >
  1725. <div>
  1726. <div
  1727. class="add_chapters_box add_c_none"
  1728. v-if="
  1729. itemTask.chapterData &&
  1730. itemTask.chapterData.length == 0
  1731. "
  1732. >
  1733. <img src="../../assets/icon/new/c_none.png" alt />
  1734. </div>
  1735. <div
  1736. v-else
  1737. class="add_chapters_box"
  1738. style="display: flex; flex-direction: column"
  1739. >
  1740. <div
  1741. @dragstart="dragStart(item1, index1, index)"
  1742. @dragover.prevent="
  1743. dragOver(index1, itemTaskIndex)
  1744. "
  1745. @dragend="dragEnd()"
  1746. :draggable="
  1747. isdrag ==
  1748. 'chapter-' + itemTaskIndex + '-' + index1
  1749. "
  1750. class="chapter_upload"
  1751. v-for="(item1, index1) in itemTask.chapterData"
  1752. :key="item1.id"
  1753. @click="
  1754. getChapterData(
  1755. $event,
  1756. unitIndex,
  1757. index,
  1758. index1,
  1759. item1.type
  1760. )
  1761. "
  1762. :class="{
  1763. dragOverTop2:
  1764. newIndex === index1 &&
  1765. typeIndex ==
  1766. 'chapter-' +
  1767. itemTaskIndex +
  1768. '-' +
  1769. index1 &&
  1770. oldIndex > index1,
  1771. dragOverBottom2:
  1772. newIndex === index1 &&
  1773. typeIndex ==
  1774. 'chapter-' +
  1775. itemTaskIndex +
  1776. '-' +
  1777. index1 &&
  1778. oldIndex < index1,
  1779. }"
  1780. >
  1781. <div
  1782. @mousedown="
  1783. isdrag =
  1784. 'chapter-' + itemTaskIndex + '-' + index1
  1785. "
  1786. @mouseup="isdrag = ''"
  1787. @touchstart="
  1788. isdrag =
  1789. 'chapter-' + itemTaskIndex + '-' + index1
  1790. "
  1791. @touchend="isdrag = ''"
  1792. class="chapter_upload_drag"
  1793. ></div>
  1794. <div
  1795. class="chapter_upload_t"
  1796. style="width: 100%"
  1797. ></div>
  1798. <div
  1799. class="chapter_upload_o"
  1800. style="
  1801. position: relative;
  1802. display: flex;
  1803. align-items: center;
  1804. "
  1805. >
  1806. <div
  1807. class="chapter_upload_l"
  1808. style="padding: 1px 0 0 10px"
  1809. >
  1810. <div
  1811. v-if="item1.type == 2"
  1812. class="chapter_upload_l_i2"
  1813. ></div>
  1814. <div
  1815. v-if="item1.type == 3"
  1816. class="chapter_upload_l_i3"
  1817. style="margin-left: 1px"
  1818. ></div>
  1819. <div
  1820. v-if="item1.type == 6"
  1821. class="chapter_upload_l_i6"
  1822. style="margin-left: 1px"
  1823. ></div>
  1824. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1825. <div
  1826. v-if="item1.type == 8"
  1827. class="chapter_upload_l_i8"
  1828. style="margin-left: 1px"
  1829. ></div>
  1830. <div
  1831. v-if="item1.type == 14"
  1832. class="chapter_upload_l_i14"
  1833. style="margin-left: 1px"
  1834. ></div>
  1835. <div
  1836. v-if="item1.type == 12"
  1837. class="chapter_upload_l_i12"
  1838. style="margin-left: 1px"
  1839. ></div>
  1840. <div
  1841. v-if="item1.type == 13"
  1842. class="chapter_upload_l_i13"
  1843. style="margin-left: 1px"
  1844. ></div>
  1845. </div>
  1846. <div class="chapter_upload_n">
  1847. <span
  1848. style="
  1849. font-size: 14px;
  1850. color: rgb(109, 109, 109);
  1851. height: 14px;
  1852. line-height: 14px;
  1853. "
  1854. v-if="
  1855. item1.type == 2 ||
  1856. item1.type == 3 ||
  1857. item1.type == 7
  1858. "
  1859. >{{ item1.text }}-</span
  1860. >
  1861. <input
  1862. readonly="true"
  1863. v-if="
  1864. item1.type == 2 ||
  1865. item1.type == 3 ||
  1866. item1.type == 7
  1867. "
  1868. :placeholder="item1.name"
  1869. @click="
  1870. updataVideoT(
  1871. $event,
  1872. unitIndex,
  1873. itemTaskIndex,
  1874. index1
  1875. )
  1876. "
  1877. style="
  1878. border: none;
  1879. outline: none;
  1880. width: 80%;
  1881. minwidth: 215px;
  1882. z-index: 99;
  1883. font-size: 14px;
  1884. white-space: nowrap;
  1885. overflow: hidden;
  1886. text-overflow: ellipsis;
  1887. "
  1888. />
  1889. <input
  1890. :placeholder="item1.name"
  1891. v-if="item1.type == 6"
  1892. style="
  1893. border: none;
  1894. outline: none;
  1895. width: 80%;
  1896. white-space: nowrap;
  1897. overflow: hidden;
  1898. text-overflow: ellipsis;
  1899. "
  1900. readonly="true"
  1901. @click="
  1902. selectAttText(itemTaskIndex, index1)
  1903. "
  1904. />
  1905. <input
  1906. :placeholder="
  1907. item1.title ? item1.title : '链接'
  1908. "
  1909. v-if="item1.type == 8 || item1.type == 14"
  1910. style="
  1911. border: none;
  1912. outline: none;
  1913. width: 80%;
  1914. white-space: nowrap;
  1915. overflow: hidden;
  1916. text-overflow: ellipsis;
  1917. "
  1918. readonly="true"
  1919. @click="selectLine(itemTaskIndex, index1)"
  1920. />
  1921. </div>
  1922. <div class="chapter_upload_ic">
  1923. <div
  1924. class="chapter_upload_noSee"
  1925. v-if="item1.type == 12"
  1926. ></div>
  1927. <div
  1928. class="chapter_upload_ud"
  1929. style="z-index: 99"
  1930. >
  1931. <div
  1932. class="chapter_upload_up"
  1933. @click="
  1934. upCd(
  1935. $event,
  1936. unitIndex,
  1937. index,
  1938. itemTaskIndex,
  1939. index1
  1940. )
  1941. "
  1942. ></div>
  1943. <div
  1944. class="chapter_upload_down"
  1945. @click="
  1946. downCd(
  1947. $event,
  1948. unitIndex,
  1949. index,
  1950. itemTaskIndex,
  1951. index1
  1952. )
  1953. "
  1954. ></div>
  1955. </div>
  1956. <div
  1957. class="chapter_upload_ic_edit"
  1958. v-if="
  1959. item1.type == 2 ||
  1960. item1.type == 3 ||
  1961. item1.type == 12 ||
  1962. item1.type == 13 ||
  1963. item1.type == 7
  1964. "
  1965. @click.stop="
  1966. updataVideoT(
  1967. $event,
  1968. unitIndex,
  1969. itemTaskIndex,
  1970. index1
  1971. )
  1972. "
  1973. >
  1974. <div></div>
  1975. </div>
  1976. <div
  1977. class="chapter_upload_ic_edit"
  1978. v-if="item1.type == 6"
  1979. @click="
  1980. selectAttText(itemTaskIndex, index1)
  1981. "
  1982. >
  1983. <div></div>
  1984. </div>
  1985. <div
  1986. class="chapter_upload_ic_edit"
  1987. v-if="item1.type == 8"
  1988. @click="selectLine(itemTaskIndex, index1)"
  1989. >
  1990. <div></div>
  1991. </div>
  1992. <div
  1993. class="chapter_upload_ic_edit"
  1994. v-if="item1.type == 14"
  1995. @click="
  1996. openUpdateSource(itemTaskIndex, index1)
  1997. "
  1998. >
  1999. <div></div>
  2000. </div>
  2001. <div
  2002. class="chapter_upload_ic_r"
  2003. @click.stop="
  2004. deleteChapterData(
  2005. $event,
  2006. unitIndex,
  2007. index,
  2008. index1,
  2009. itemTaskIndex
  2010. )
  2011. "
  2012. >
  2013. <div></div>
  2014. </div>
  2015. </div>
  2016. </div>
  2017. </div>
  2018. </div>
  2019. </div>
  2020. <div class="add_info_box" style="margin: 10px 0 0">
  2021. <button
  2022. class="c_pub_button_add pub_btn_add_img"
  2023. @click="addImg($event)"
  2024. >
  2025. <span style="color: red">*</span>
  2026. 教学设计
  2027. <input
  2028. type="file"
  2029. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2030. style="display: none"
  2031. v-if="inputShow"
  2032. @change="
  2033. beforeUpload3(
  2034. $event,
  2035. unitIndex,
  2036. 3,
  2037. itemTaskIndex,
  2038. '教学设计'
  2039. )
  2040. "
  2041. />
  2042. </button>
  2043. <button
  2044. class="c_pub_button_add pub_btn_add_img"
  2045. @click="addImg($event)"
  2046. >
  2047. <span style="color: red">*</span>
  2048. 教学课件
  2049. <input
  2050. type="file"
  2051. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2052. style="display: none"
  2053. v-if="inputShow"
  2054. @change="
  2055. beforeUpload3(
  2056. $event,
  2057. unitIndex,
  2058. 3,
  2059. itemTaskIndex,
  2060. '教学课件'
  2061. )
  2062. "
  2063. />
  2064. </button>
  2065. <button
  2066. class="c_pub_button_add pub_btn_add_img"
  2067. @click="addImg($event)"
  2068. >
  2069. 教学视频
  2070. <input
  2071. type="file"
  2072. accept="video/mp4, video/quicktime, video/x-msvideo"
  2073. style="display: none"
  2074. v-if="inputShow"
  2075. @change="
  2076. beforeUpload3(
  2077. $event,
  2078. unitIndex,
  2079. 2,
  2080. itemTaskIndex,
  2081. '教学视频'
  2082. )
  2083. "
  2084. />
  2085. </button>
  2086. <button
  2087. class="c_pub_button_add pub_btn_add_img"
  2088. @click="addImg($event)"
  2089. >
  2090. 教学音频
  2091. <input
  2092. type="file"
  2093. accept="audio/*"
  2094. style="display: none"
  2095. v-if="inputShow"
  2096. @change="
  2097. beforeUpload3(
  2098. $event,
  2099. unitIndex,
  2100. 2,
  2101. itemTaskIndex,
  2102. '教学音频'
  2103. )
  2104. "
  2105. />
  2106. </button>
  2107. <button
  2108. class="c_pub_button_add pub_btn_add_img"
  2109. @click="addImg($event)"
  2110. >
  2111. 学习单
  2112. <input
  2113. type="file"
  2114. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2115. style="display: none"
  2116. v-if="inputShow"
  2117. @change="
  2118. beforeUpload3(
  2119. $event,
  2120. unitIndex,
  2121. 3,
  2122. itemTaskIndex,
  2123. '学习单'
  2124. )
  2125. "
  2126. />
  2127. </button>
  2128. </div>
  2129. <div
  2130. v-if="
  2131. unitJson[unitIndex].chapterInfo[0].taskJson[
  2132. itemTaskIndex
  2133. ].proVisible
  2134. "
  2135. class="mask"
  2136. >
  2137. <div class="progressBox">
  2138. <!-- <div id="closePro" class="closeCss">
  2139. <img src="../../../assets/icon/close.png" alt />
  2140. </div> -->
  2141. <div class="lbox">
  2142. <img
  2143. src="../../assets/loading.gif"
  2144. />上传中,请稍后
  2145. </div>
  2146. <div style="margin-bottom: 10px">
  2147. <span
  2148. >{{
  2149. unitJson[unitIndex].chapterInfo[0].taskJson[
  2150. itemTaskIndex
  2151. ].isFinishSize
  2152. }}M</span
  2153. >
  2154. /
  2155. <span
  2156. >{{
  2157. unitJson[unitIndex].chapterInfo[0].taskJson[
  2158. itemTaskIndex
  2159. ].isAllSize
  2160. }}M</span
  2161. >
  2162. </div>
  2163. <el-progress
  2164. :text-inside="true"
  2165. :stroke-width="20"
  2166. :percentage="
  2167. unitJson[unitIndex].chapterInfo[0].taskJson[
  2168. itemTaskIndex
  2169. ].progress
  2170. ? unitJson[unitIndex].chapterInfo[0]
  2171. .taskJson[itemTaskIndex].progress
  2172. : 0
  2173. "
  2174. style="width: 80%"
  2175. ></el-progress>
  2176. </div>
  2177. </div>
  2178. </div>
  2179. </div>
  2180. <!-- padding: 20px; -->
  2181. <div
  2182. style="
  2183. background: #fff;
  2184. border-radius: 5px;
  2185. margin-top: 15px;
  2186. "
  2187. >
  2188. <div
  2189. v-if="
  2190. unitJson[unitIndex].easy != 3 &&
  2191. !(
  2192. unitJson[unitIndex].easy == 5 &&
  2193. itemTask.taskType == 1
  2194. )
  2195. "
  2196. style="
  2197. flex-direction: row;
  2198. justify-content: flex-start;
  2199. align-items: center;
  2200. "
  2201. >
  2202. <div
  2203. style="
  2204. display: flex;
  2205. flex-direction: row;
  2206. align-items: center;
  2207. margin: 5px 0 20px;
  2208. "
  2209. >
  2210. <div class="lineTitle clineTitle">
  2211. {{
  2212. !unitJson[unitIndex].easy ||
  2213. unitJson[unitIndex].easy == 6 ||
  2214. easyArray.indexOf(unitJson[unitIndex].easy) !=
  2215. -1
  2216. ? "练习内容"
  2217. : "评价内容"
  2218. }}
  2219. </div>
  2220. <!-- <div class="line" style="width: 90%"></div> -->
  2221. </div>
  2222. </div>
  2223. <div
  2224. v-if="
  2225. unitJson[unitIndex].easy == 6 ||
  2226. !unitJson[unitIndex].easy
  2227. "
  2228. class="toolChoose"
  2229. >
  2230. <div class="tools">
  2231. <div
  2232. class="leftTools"
  2233. style="width: 100%"
  2234. v-for="(
  2235. itemTool, toolIndex
  2236. ) in itemTask.toolChoose"
  2237. :key="toolIndex"
  2238. >
  2239. <div
  2240. style="
  2241. display: flex;
  2242. flex-direction: row;
  2243. align-items: baseline;
  2244. flex-wrap: nowrap;
  2245. justify-content: flex-start;
  2246. position: relative;
  2247. "
  2248. >
  2249. <div
  2250. style="margin-right: 20px; font-weight: bold"
  2251. :id="'gj' + itemTaskIndex + '' + toolIndex"
  2252. >
  2253. 工具 {{ toolIndex + 1 }} :
  2254. </div>
  2255. <div class="chooseWho">
  2256. <div
  2257. :class="
  2258. itemTool.toolType == 0
  2259. ? 'isChooseActive'
  2260. : ''
  2261. "
  2262. @click="
  2263. (itemTool.toolType = 0),
  2264. (itemTool.isFold3 = false),
  2265. $forceUpdate()
  2266. "
  2267. >
  2268. 互动类
  2269. </div>
  2270. <div
  2271. :class="
  2272. itemTool.toolType == 1
  2273. ? 'isChooseActive'
  2274. : ''
  2275. "
  2276. @click="
  2277. (itemTool.toolType = 1),
  2278. (itemTool.isFold3 = false),
  2279. $forceUpdate()
  2280. "
  2281. >
  2282. 思维类
  2283. </div>
  2284. <div
  2285. :class="
  2286. itemTool.toolType == 6
  2287. ? 'isChooseActive'
  2288. : ''
  2289. "
  2290. @click="
  2291. (itemTool.toolType = 6),
  2292. (itemTool.isFold3 = false),
  2293. $forceUpdate()
  2294. "
  2295. >
  2296. 协作类
  2297. </div>
  2298. <div
  2299. :class="
  2300. itemTool.toolType == 2
  2301. ? 'isChooseActive'
  2302. : ''
  2303. "
  2304. @click="
  2305. (itemTool.toolType = 2),
  2306. (itemTool.isFold3 = false),
  2307. $forceUpdate()
  2308. "
  2309. >
  2310. 测评类
  2311. </div>
  2312. <div
  2313. :class="
  2314. itemTool.toolType == 7
  2315. ? 'isChooseActive'
  2316. : ''
  2317. "
  2318. @click="
  2319. (itemTool.toolType = 7),
  2320. (itemTool.isFold3 = false),
  2321. $forceUpdate()
  2322. "
  2323. >
  2324. 评价类
  2325. </div>
  2326. <div
  2327. :class="
  2328. itemTool.toolType == 3
  2329. ? 'isChooseActive'
  2330. : ''
  2331. "
  2332. @click="
  2333. (itemTool.toolType = 3),
  2334. (itemTool.isFold3 = false),
  2335. $forceUpdate()
  2336. "
  2337. >
  2338. 编程类
  2339. </div>
  2340. <div
  2341. :class="
  2342. itemTool.toolType == 5
  2343. ? 'isChooseActive'
  2344. : ''
  2345. "
  2346. @click="
  2347. (itemTool.toolType = 5),
  2348. (itemTool.isFold3 = false),
  2349. $forceUpdate()
  2350. "
  2351. >
  2352. 学科类
  2353. </div>
  2354. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2355. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2356. 其他
  2357. </div> -->
  2358. </div>
  2359. <div
  2360. class="chapter_upload_ud2"
  2361. style="z-index: 9; margin: 0 0 0 auto"
  2362. :style="{
  2363. margin:
  2364. itemTask.toolChoose.length > 1
  2365. ? '0px 35px 0px auto'
  2366. : '0 0 0 auto',
  2367. }"
  2368. v-if="itemTask.toolChoose.length > 1"
  2369. >
  2370. <div
  2371. class="chapter_upload_up2"
  2372. @click.stop="
  2373. upTool(
  2374. $event,
  2375. unitIndex,
  2376. itemTaskIndex,
  2377. toolIndex
  2378. )
  2379. "
  2380. >
  2381. 上移
  2382. </div>
  2383. <div
  2384. class="chapter_upload_down2"
  2385. @click.stop="
  2386. downTool(
  2387. $event,
  2388. unitIndex,
  2389. itemTaskIndex,
  2390. toolIndex
  2391. )
  2392. "
  2393. >
  2394. 下移
  2395. </div>
  2396. </div>
  2397. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2398. @click="fold3(itemTaskIndex, toolIndex)"
  2399. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2400. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2401. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2402. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2403. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2404. <div
  2405. class="remove"
  2406. @click="deleteTool(itemTaskIndex, toolIndex)"
  2407. v-if="itemTask.toolChoose.length > 1"
  2408. style="
  2409. position: absolute;
  2410. right: 0;
  2411. top: -5px;
  2412. "
  2413. ></div>
  2414. </div>
  2415. <!-- v-show="!itemTool.isFold3" -->
  2416. <div style="min-height: 163px">
  2417. <div
  2418. class="toolSort"
  2419. v-if="itemTool.toolType == 0"
  2420. >
  2421. <!-- <div class="tool">
  2422. <div
  2423. class="whiteBIcon"
  2424. @click="addTools(8, itemTaskIndex, toolIndex)"
  2425. >
  2426. <img src="../../assets/icon/secondToolList/library.png" alt />
  2427. <div style="margin: 5px 0">素材库</div>
  2428. </div>
  2429. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2430. <img
  2431. src="../../assets/icon/checkNo.png"
  2432. alt
  2433. v-if="itemTool.tool.indexOf(8) == -1"
  2434. />
  2435. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  2436. alt /><span>已选择</span></div>
  2437. </div>
  2438. </div>-->
  2439. <!-- <div class="tool">
  2440. <div
  2441. class="whiteBIcon"
  2442. @click="addTools(17, itemTaskIndex, toolIndex)"
  2443. >
  2444. <img
  2445. src="../../assets/icon/secondToolList/library.png"
  2446. alt
  2447. />
  2448. <div style="margin: 5px 0">学习资料</div>
  2449. </div>
  2450. <div
  2451. class="check"
  2452. @click="addTools(17, itemTaskIndex, toolIndex)"
  2453. >
  2454. <img
  2455. src="../../assets/icon/checkNo.png"
  2456. alt
  2457. v-if="itemTool.tool.indexOf(17) == -1"
  2458. />
  2459. <img
  2460. src="../../assets/icon/checkedIs.png"
  2461. alt
  2462. v-else
  2463. />
  2464. </div>10
  2465. </div> -->
  2466. <div
  2467. class="tool"
  2468. :class="{
  2469. isToolChoose:
  2470. itemTool.tool.indexOf(10) != -1,
  2471. }"
  2472. @click="
  2473. addTools(10, itemTaskIndex, toolIndex)
  2474. "
  2475. >
  2476. <div
  2477. class="whiteBIcon"
  2478. @click.stop="
  2479. openTools(itemTaskIndex, 10, toolIndex)
  2480. "
  2481. >
  2482. <img
  2483. src="../../assets/icon/thirdToolList/time.png"
  2484. alt
  2485. />
  2486. <div style="margin: 5px 0">倒计时</div>
  2487. </div>
  2488. <div class="noCTool">
  2489. <img
  2490. src="../../assets/icon/new/isToolC.png"
  2491. alt=""
  2492. />
  2493. </div>
  2494. <div
  2495. class="isCTool"
  2496. v-if="itemTool.tool.indexOf(10) != -1"
  2497. >
  2498. <img
  2499. src="../../assets/icon/new/isToolC.png"
  2500. alt=""
  2501. />
  2502. </div>
  2503. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2504. <img src="../../assets/icon/checkNo.png" alt
  2505. v-if="itemTool.tool.indexOf(10) == -1" />
  2506. <div class="checkDiv" v-else>
  2507. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2508. </div>
  2509. </div> -->
  2510. </div>
  2511. <div
  2512. class="tool"
  2513. :class="{
  2514. isToolChoose:
  2515. itemTool.tool.indexOf(65) != -1,
  2516. }"
  2517. @click="
  2518. addTools(65, itemTaskIndex, toolIndex)
  2519. "
  2520. >
  2521. <div
  2522. class="whiteBIcon"
  2523. @click.stop="
  2524. addTools(65, itemTaskIndex, toolIndex)
  2525. "
  2526. >
  2527. <img
  2528. src="../../assets/icon/firstToolList/pickPeople.png"
  2529. alt
  2530. />
  2531. <div style="margin: 5px 0">挑人</div>
  2532. </div>
  2533. <div class="noCTool">
  2534. <img
  2535. src="../../assets/icon/new/isToolC.png"
  2536. alt=""
  2537. />
  2538. </div>
  2539. <div
  2540. class="isCTool"
  2541. v-if="itemTool.tool.indexOf(65) != -1"
  2542. >
  2543. <img
  2544. src="../../assets/icon/new/isToolC.png"
  2545. alt=""
  2546. />
  2547. </div>
  2548. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2549. <img src="../../assets/icon/checkNo.png" alt
  2550. v-if="itemTool.tool.indexOf(65) == -1" />
  2551. <div class="checkDiv" v-else>
  2552. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2553. </div>
  2554. </div> -->
  2555. </div>
  2556. <!-- <div class="tool">
  2557. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2558. <img src="../../assets/icon/fourthToolList/group.png" alt />
  2559. <div style="margin: 5px 0">学生分组</div>
  2560. </div>
  2561. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2562. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2563. <div class="checkDiv" v-else>
  2564. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2565. </div>
  2566. </div>
  2567. </div> -->
  2568. <!-- <div class="tool">
  2569. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2570. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  2571. <div style="margin: 5px 0">交互视频</div>
  2572. </div>
  2573. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2574. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2575. <div class="checkDiv" v-else>
  2576. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2577. </div>
  2578. </div>
  2579. </div> -->
  2580. </div>
  2581. <div
  2582. class="toolSort"
  2583. v-if="itemTool.toolType == 1"
  2584. >
  2585. <div
  2586. class="tool"
  2587. :class="{
  2588. isToolChoose:
  2589. itemTool.tool.indexOf(7) != -1,
  2590. }"
  2591. @click="
  2592. addTools(7, itemTaskIndex, toolIndex)
  2593. "
  2594. >
  2595. <div
  2596. class="whiteBIcon"
  2597. @click.stop="
  2598. addTools(7, itemTaskIndex, toolIndex)
  2599. "
  2600. >
  2601. <img
  2602. src="../../assets/icon/secondToolList/mindNetwork.png"
  2603. alt
  2604. />
  2605. <div style="margin: 5px 0">思维网格</div>
  2606. </div>
  2607. <div class="noCTool">
  2608. <img
  2609. src="../../assets/icon/new/isToolC.png"
  2610. alt=""
  2611. />
  2612. </div>
  2613. <div
  2614. class="isCTool"
  2615. v-if="itemTool.tool.indexOf(7) != -1"
  2616. >
  2617. <img
  2618. src="../../assets/icon/new/isToolC.png"
  2619. alt=""
  2620. />
  2621. </div>
  2622. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2623. <img src="../../assets/icon/checkNo.png" alt
  2624. v-if="itemTool.tool.indexOf(7) == -1" />
  2625. <div class="checkDiv" v-else>
  2626. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2627. </div>
  2628. </div> -->
  2629. </div>
  2630. <div
  2631. class="tool"
  2632. :class="{
  2633. isToolChoose:
  2634. itemTool.tool.indexOf(1) != -1,
  2635. }"
  2636. @click="
  2637. addTools(1, itemTaskIndex, toolIndex)
  2638. "
  2639. >
  2640. <div
  2641. class="whiteBIcon"
  2642. @click.stop="
  2643. openTools(itemTaskIndex, 1, toolIndex)
  2644. "
  2645. >
  2646. <img
  2647. src="../../assets/icon/secondToolList/whiteBoard.png"
  2648. alt
  2649. />
  2650. <div style="margin: 5px 0">电子白板</div>
  2651. </div>
  2652. <div class="noCTool">
  2653. <img
  2654. src="../../assets/icon/new/isToolC.png"
  2655. alt=""
  2656. />
  2657. </div>
  2658. <div
  2659. class="isCTool"
  2660. v-if="itemTool.tool.indexOf(1) != -1"
  2661. >
  2662. <img
  2663. src="../../assets/icon/new/isToolC.png"
  2664. alt=""
  2665. />
  2666. </div>
  2667. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2668. <img src="../../assets/icon/checkNo.png" alt
  2669. v-if="itemTool.tool.indexOf(1) == -1" />
  2670. <div class="checkDiv" v-else>
  2671. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2672. </div>
  2673. </div> -->
  2674. </div>
  2675. <!-- <div class="tool">
  2676. <div
  2677. class="whiteBIcon"
  2678. @click="addTools(2, itemTaskIndex, toolIndex)"
  2679. >
  2680. <img
  2681. src="../../assets/icon/secondToolList/note.png"
  2682. alt
  2683. />
  2684. <div style="margin: 5px 0">便签</div>
  2685. </div>
  2686. <div
  2687. class="check"
  2688. @click="addTools(2, itemTaskIndex, toolIndex)"
  2689. >
  2690. <img
  2691. src="../../assets/icon/checkNo.png"
  2692. alt
  2693. v-if="itemTool.tool.indexOf(2) == -1"
  2694. />
  2695. <div class="checkDiv" v-else>
  2696. <img
  2697. src="../../assets/icon/checkedIs.png"
  2698. alt
  2699. /><span>已选择</span>
  2700. </div>
  2701. </div>
  2702. </div> -->
  2703. <!-- <div class="tool">
  2704. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2705. <img src="../../assets/icon/secondToolList/doc.png" alt />
  2706. <div style="margin: 5px 0">协同文档</div>
  2707. </div>
  2708. <div
  2709. class="check"
  2710. @click="addTools(6, itemTaskIndex, toolIndex)"
  2711. >
  2712. <img
  2713. src="../../assets/icon/checkNo.png"
  2714. alt
  2715. v-if="itemTool.tool.indexOf(6) == -1"
  2716. />
  2717. <div class="checkDiv" v-else>
  2718. <img
  2719. src="../../assets/icon/checkedIs.png"
  2720. alt
  2721. /><span>已选择</span>
  2722. </div>
  2723. </div>
  2724. </div> -->
  2725. <div
  2726. class="tool"
  2727. :class="{
  2728. isToolChoose:
  2729. itemTool.tool.indexOf(52) != -1,
  2730. }"
  2731. @click="
  2732. addTools(52, itemTaskIndex, toolIndex)
  2733. "
  2734. >
  2735. <div
  2736. class="whiteBIcon"
  2737. @click.stop="
  2738. openTools(itemTaskIndex, 52, toolIndex)
  2739. "
  2740. >
  2741. <img
  2742. src="../../assets/icon/fourthToolList/text.png"
  2743. alt
  2744. />
  2745. <div style="margin: 5px 0">文档</div>
  2746. </div>
  2747. <div class="noCTool">
  2748. <img
  2749. src="../../assets/icon/new/isToolC.png"
  2750. alt=""
  2751. />
  2752. </div>
  2753. <div
  2754. class="isCTool"
  2755. v-if="itemTool.tool.indexOf(52) != -1"
  2756. >
  2757. <img
  2758. src="../../assets/icon/new/isToolC.png"
  2759. alt=""
  2760. />
  2761. </div>
  2762. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2763. <img src="../../assets/icon/checkNo.png" alt
  2764. v-if="itemTool.tool.indexOf(52) == -1" />
  2765. <div class="checkDiv" v-else>
  2766. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2767. </div>
  2768. </div> -->
  2769. </div>
  2770. <div
  2771. class="tool"
  2772. :class="{
  2773. isToolChoose:
  2774. itemTool.tool.indexOf(3) != -1,
  2775. }"
  2776. @click="
  2777. addTools(3, itemTaskIndex, toolIndex)
  2778. "
  2779. >
  2780. <div
  2781. class="whiteBIcon"
  2782. @click.stop="
  2783. openTools(itemTaskIndex, 3, toolIndex)
  2784. "
  2785. >
  2786. <img
  2787. src="../../assets/icon/secondToolList/mindMapping.png"
  2788. alt
  2789. />
  2790. <div style="margin: 5px 0">思维导图</div>
  2791. </div>
  2792. <div class="noCTool">
  2793. <img
  2794. src="../../assets/icon/new/isToolC.png"
  2795. alt=""
  2796. />
  2797. </div>
  2798. <div
  2799. class="isCTool"
  2800. v-if="itemTool.tool.indexOf(3) != -1"
  2801. >
  2802. <img
  2803. src="../../assets/icon/new/isToolC.png"
  2804. alt=""
  2805. />
  2806. </div>
  2807. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2808. <img src="../../assets/icon/checkNo.png" alt
  2809. v-if="itemTool.tool.indexOf(3) == -1" />
  2810. <div class="checkDiv" v-else>
  2811. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2812. </div>
  2813. </div> -->
  2814. </div>
  2815. <div
  2816. class="tool"
  2817. :class="{
  2818. isToolChoose:
  2819. itemTool.tool.indexOf(48) != -1,
  2820. }"
  2821. @click="
  2822. addTools(48, itemTaskIndex, toolIndex)
  2823. "
  2824. >
  2825. <div
  2826. class="whiteBIcon"
  2827. @click.stop="
  2828. openTools(itemTaskIndex, 48, toolIndex)
  2829. "
  2830. >
  2831. <img
  2832. src="../../assets/icon/fourthToolList/table.png"
  2833. alt
  2834. />
  2835. <div style="margin: 5px 0">表格</div>
  2836. </div>
  2837. <div class="noCTool">
  2838. <img
  2839. src="../../assets/icon/new/isToolC.png"
  2840. alt=""
  2841. />
  2842. </div>
  2843. <div
  2844. class="isCTool"
  2845. v-if="itemTool.tool.indexOf(48) != -1"
  2846. >
  2847. <img
  2848. src="../../assets/icon/new/isToolC.png"
  2849. alt=""
  2850. />
  2851. </div>
  2852. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2853. <img src="../../assets/icon/checkNo.png" alt
  2854. v-if="itemTool.tool.indexOf(48) == -1" />
  2855. <div class="checkDiv" v-else>
  2856. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2857. </div>
  2858. </div> -->
  2859. </div>
  2860. </div>
  2861. <div
  2862. class="toolSort"
  2863. v-if="itemTool.toolType == 6"
  2864. >
  2865. <div
  2866. class="tool"
  2867. :class="{
  2868. isToolChoose:
  2869. itemTool.tool.indexOf(49) != -1,
  2870. }"
  2871. @click="
  2872. addTools(49, itemTaskIndex, toolIndex)
  2873. "
  2874. >
  2875. <div
  2876. class="whiteBIcon"
  2877. @click.stop="
  2878. openTools(itemTaskIndex, 49, toolIndex)
  2879. "
  2880. >
  2881. <img
  2882. src="../../assets/icon/fourthToolList/group.png"
  2883. alt
  2884. />
  2885. <div style="margin: 5px 0">学生分组</div>
  2886. </div>
  2887. <div class="noCTool">
  2888. <img
  2889. src="../../assets/icon/new/isToolC.png"
  2890. alt=""
  2891. />
  2892. </div>
  2893. <div
  2894. class="isCTool"
  2895. v-if="itemTool.tool.indexOf(49) != -1"
  2896. >
  2897. <img
  2898. src="../../assets/icon/new/isToolC.png"
  2899. alt=""
  2900. />
  2901. </div>
  2902. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2903. <img src="../../assets/icon/checkNo.png" alt
  2904. v-if="itemTool.tool.indexOf(49) == -1" />
  2905. <div class="checkDiv" v-else>
  2906. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2907. </div>
  2908. </div> -->
  2909. </div>
  2910. </div>
  2911. <div
  2912. class="toolSort"
  2913. v-if="itemTool.toolType == 2"
  2914. >
  2915. <!-- <div class="tool">
  2916. <div
  2917. class="whiteBIcon"
  2918. @click="addTools(5, itemTaskIndex, toolIndex)"
  2919. >
  2920. <img
  2921. src="../../assets/icon/thirdToolList/score.png"
  2922. alt
  2923. />
  2924. <div style="margin: 5px 0">量规评分</div>
  2925. </div>
  2926. <div
  2927. class="check"
  2928. @click="addTools(5, itemTaskIndex, toolIndex)"
  2929. >
  2930. <img
  2931. src="../../assets/icon/checkNo.png"
  2932. alt
  2933. v-if="itemTool.tool.indexOf(5) == -1"
  2934. />
  2935. <img
  2936. src="../../assets/icon/checkedIs.png"
  2937. alt
  2938. v-else
  2939. />
  2940. </div>
  2941. </div>-->
  2942. <div
  2943. class="tool"
  2944. :class="{
  2945. isToolChoose:
  2946. itemTool.tool.indexOf(4) != -1,
  2947. }"
  2948. @click="
  2949. addTools(4, itemTaskIndex, toolIndex)
  2950. "
  2951. >
  2952. <div
  2953. class="whiteBIcon"
  2954. @click.stop="
  2955. openTools(itemTaskIndex, 4, toolIndex)
  2956. "
  2957. >
  2958. <img
  2959. src="../../assets/icon/thirdToolList/ask.png"
  2960. alt
  2961. />
  2962. <div style="margin: 5px 0">问卷调查</div>
  2963. </div>
  2964. <div class="noCTool">
  2965. <img
  2966. src="../../assets/icon/new/isToolC.png"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div
  2971. class="isCTool"
  2972. v-if="itemTool.tool.indexOf(4) != -1"
  2973. >
  2974. <img
  2975. src="../../assets/icon/new/isToolC.png"
  2976. alt=""
  2977. />
  2978. </div>
  2979. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2980. <img src="../../assets/icon/checkNo.png" alt
  2981. v-if="itemTool.tool.indexOf(4) == -1" />
  2982. <div class="checkDiv" v-else>
  2983. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2984. </div>
  2985. </div> -->
  2986. </div>
  2987. <div
  2988. class="tool"
  2989. :class="{
  2990. isToolChoose:
  2991. itemTool.tool.indexOf(45) != -1,
  2992. }"
  2993. @click="
  2994. addTools(45, itemTaskIndex, toolIndex)
  2995. "
  2996. >
  2997. <div
  2998. class="whiteBIcon"
  2999. @click="
  3000. openTools(itemTaskIndex, 45, toolIndex)
  3001. "
  3002. >
  3003. <img
  3004. src="../../assets/icon/thirdToolList/choose.png"
  3005. alt
  3006. />
  3007. <div style="margin: 5px 0">选择题</div>
  3008. </div>
  3009. <div class="noCTool">
  3010. <img
  3011. src="../../assets/icon/new/isToolC.png"
  3012. alt=""
  3013. />
  3014. </div>
  3015. <div
  3016. class="isCTool"
  3017. v-if="itemTool.tool.indexOf(45) != -1"
  3018. >
  3019. <img
  3020. src="../../assets/icon/new/isToolC.png"
  3021. alt=""
  3022. />
  3023. </div>
  3024. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3025. <img src="../../assets/icon/checkNo.png" alt
  3026. v-if="itemTool.tool.indexOf(45) == -1" />
  3027. <div class="checkDiv" v-else>
  3028. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3029. </div>
  3030. </div> -->
  3031. </div>
  3032. <div
  3033. class="tool"
  3034. :class="{
  3035. isToolChoose:
  3036. itemTool.tool.indexOf(15) != -1,
  3037. }"
  3038. @click="
  3039. addTools(15, itemTaskIndex, toolIndex)
  3040. "
  3041. >
  3042. <div
  3043. class="whiteBIcon"
  3044. @click.stop="
  3045. openTools(itemTaskIndex, 15, toolIndex)
  3046. "
  3047. >
  3048. <img
  3049. src="../../assets/icon/thirdToolList/answer.png"
  3050. alt
  3051. />
  3052. <div style="margin: 5px 0">问答</div>
  3053. </div>
  3054. <div class="noCTool">
  3055. <img
  3056. src="../../assets/icon/new/isToolC.png"
  3057. alt=""
  3058. />
  3059. </div>
  3060. <div
  3061. class="isCTool"
  3062. v-if="itemTool.tool.indexOf(15) != -1"
  3063. >
  3064. <img
  3065. src="../../assets/icon/new/isToolC.png"
  3066. alt=""
  3067. />
  3068. </div>
  3069. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3070. <img src="../../assets/icon/checkNo.png" alt
  3071. v-if="itemTool.tool.indexOf(15) == -1" />
  3072. <div class="checkDiv" v-else>
  3073. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3074. </div>
  3075. </div> -->
  3076. </div>
  3077. <div
  3078. class="tool"
  3079. :class="{
  3080. isToolChoose:
  3081. itemTool.tool.indexOf(16) != -1,
  3082. }"
  3083. @click="
  3084. addTools(16, itemTaskIndex, toolIndex)
  3085. "
  3086. >
  3087. <div
  3088. class="whiteBIcon"
  3089. @click.stop="
  3090. addTools(16, itemTaskIndex, toolIndex)
  3091. "
  3092. >
  3093. <img
  3094. src="../../assets/icon/thirdToolList/work.png"
  3095. alt
  3096. />
  3097. <div style="margin: 5px 0">作业提交</div>
  3098. </div>
  3099. <div class="noCTool">
  3100. <img
  3101. src="../../assets/icon/new/isToolC.png"
  3102. alt=""
  3103. />
  3104. </div>
  3105. <div
  3106. class="isCTool"
  3107. v-if="itemTool.tool.indexOf(16) != -1"
  3108. >
  3109. <img
  3110. src="../../assets/icon/new/isToolC.png"
  3111. alt=""
  3112. />
  3113. </div>
  3114. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3115. <img src="../../assets/icon/checkNo.png" alt
  3116. v-if="itemTool.tool.indexOf(16) == -1" />
  3117. <div class="checkDiv" v-else>
  3118. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3119. </div>
  3120. </div> -->
  3121. </div>
  3122. <div
  3123. class="tool"
  3124. :class="{
  3125. isToolChoose:
  3126. itemTool.tool.indexOf(50) != -1,
  3127. }"
  3128. @click="
  3129. addTools(50, itemTaskIndex, toolIndex)
  3130. "
  3131. >
  3132. <div
  3133. class="whiteBIcon"
  3134. @click.stop="
  3135. addTools(50, itemTaskIndex, toolIndex)
  3136. "
  3137. >
  3138. <img
  3139. src="../../assets/icon/thirdToolList/plwork.png"
  3140. alt
  3141. />
  3142. <div style="margin: 5px 0">批量上传</div>
  3143. </div>
  3144. <div class="noCTool">
  3145. <img
  3146. src="../../assets/icon/new/isToolC.png"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div
  3151. class="isCTool"
  3152. v-if="itemTool.tool.indexOf(50) != -1"
  3153. >
  3154. <img
  3155. src="../../assets/icon/new/isToolC.png"
  3156. alt=""
  3157. />
  3158. </div>
  3159. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3160. <img src="../../assets/icon/checkNo.png" alt
  3161. v-if="itemTool.tool.indexOf(50) == -1" />
  3162. <div class="checkDiv" v-else>
  3163. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3164. </div>
  3165. </div> -->
  3166. </div>
  3167. <!-- <div class="tool">
  3168. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3169. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  3170. <div style="margin: 5px 0">个人评价</div>
  3171. </div>
  3172. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3173. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3174. <div class="checkDiv" v-else>
  3175. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3176. </div>
  3177. </div>
  3178. </div> -->
  3179. <div
  3180. class="tool"
  3181. :class="{
  3182. isToolChoose:
  3183. itemTool.tool.indexOf(41) != -1,
  3184. }"
  3185. @click="
  3186. addTools(41, itemTaskIndex, toolIndex)
  3187. "
  3188. >
  3189. <div
  3190. class="whiteBIcon"
  3191. @click.stop="
  3192. openTools(itemTaskIndex, 41, toolIndex)
  3193. "
  3194. >
  3195. <img
  3196. src="../../assets/icon/thirdToolList/select.png"
  3197. alt
  3198. />
  3199. <div style="margin: 5px 0">选择匹配</div>
  3200. </div>
  3201. <div class="noCTool">
  3202. <img
  3203. src="../../assets/icon/new/isToolC.png"
  3204. alt=""
  3205. />
  3206. </div>
  3207. <div
  3208. class="isCTool"
  3209. v-if="itemTool.tool.indexOf(41) != -1"
  3210. >
  3211. <img
  3212. src="../../assets/icon/new/isToolC.png"
  3213. alt=""
  3214. />
  3215. </div>
  3216. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3217. <img src="../../assets/icon/checkNo.png" alt
  3218. v-if="itemTool.tool.indexOf(41) == -1" />
  3219. <div class="checkDiv" v-else>
  3220. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3221. </div>
  3222. </div> -->
  3223. </div>
  3224. <div
  3225. class="tool"
  3226. :class="{
  3227. isToolChoose:
  3228. itemTool.tool.indexOf(47) != -1,
  3229. }"
  3230. @click="
  3231. addTools(47, itemTaskIndex, toolIndex)
  3232. "
  3233. >
  3234. <div
  3235. class="whiteBIcon"
  3236. @click.stop="
  3237. openTools(itemTaskIndex, 47, toolIndex)
  3238. "
  3239. >
  3240. <img
  3241. src="../../assets/icon/fourthToolList/conSentences.png"
  3242. alt
  3243. />
  3244. <div style="margin: 5px 0">排序</div>
  3245. </div>
  3246. <div class="noCTool">
  3247. <img
  3248. src="../../assets/icon/new/isToolC.png"
  3249. alt=""
  3250. />
  3251. </div>
  3252. <div
  3253. class="isCTool"
  3254. v-if="itemTool.tool.indexOf(47) != -1"
  3255. >
  3256. <img
  3257. src="../../assets/icon/new/isToolC.png"
  3258. alt=""
  3259. />
  3260. </div>
  3261. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3262. <img src="../../assets/icon/checkNo.png" alt
  3263. v-if="itemTool.tool.indexOf(47) == -1" />
  3264. <div class="checkDiv" v-else>
  3265. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3266. </div>
  3267. </div> -->
  3268. </div>
  3269. <!-- <div class="tool">
  3270. <div
  3271. class="whiteBIcon"
  3272. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3273. >
  3274. <img
  3275. src="../../assets/icon/thirdToolList/mp3.png"
  3276. alt
  3277. />
  3278. <div style="margin: 5px 0">上传音频</div>
  3279. </div>
  3280. <div
  3281. class="check"
  3282. @click="addTools(42, itemTaskIndex, toolIndex)"
  3283. >
  3284. <img
  3285. src="../../assets/icon/checkNo.png"
  3286. alt
  3287. v-if="itemTool.tool.indexOf(42) == -1"
  3288. />
  3289. <img
  3290. src="../../assets/icon/checkedIs.png"
  3291. alt
  3292. v-else
  3293. />
  3294. </div>
  3295. </div> -->
  3296. </div>
  3297. <div
  3298. class="toolSort"
  3299. v-if="itemTool.toolType == 3"
  3300. >
  3301. <div
  3302. class="tool"
  3303. :class="{
  3304. isToolChoose:
  3305. itemTool.tool.indexOf(18) != -1,
  3306. }"
  3307. @click="
  3308. addTools(18, itemTaskIndex, toolIndex)
  3309. "
  3310. >
  3311. <div
  3312. class="whiteBIcon"
  3313. @click.stop="
  3314. addTools(18, itemTaskIndex, toolIndex)
  3315. "
  3316. >
  3317. <img
  3318. src="../../assets/icon/thirdToolList/trainPlatform.png"
  3319. alt
  3320. />
  3321. <div style="margin: 5px 0">训练平台</div>
  3322. </div>
  3323. <div class="noCTool">
  3324. <img
  3325. src="../../assets/icon/new/isToolC.png"
  3326. alt=""
  3327. />
  3328. </div>
  3329. <div
  3330. class="isCTool"
  3331. v-if="itemTool.tool.indexOf(18) != -1"
  3332. >
  3333. <img
  3334. src="../../assets/icon/new/isToolC.png"
  3335. alt=""
  3336. />
  3337. </div>
  3338. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3339. <img src="../../assets/icon/checkNo.png" alt
  3340. v-if="itemTool.tool.indexOf(18) == -1" />
  3341. <div class="checkDiv" v-else>
  3342. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3343. </div>
  3344. </div> -->
  3345. </div>
  3346. <div
  3347. class="tool"
  3348. :class="{
  3349. isToolChoose:
  3350. itemTool.tool.indexOf(21) != -1,
  3351. }"
  3352. @click="
  3353. addTools(21, itemTaskIndex, toolIndex)
  3354. "
  3355. >
  3356. <div
  3357. class="whiteBIcon"
  3358. @click.stop="
  3359. addTools(21, itemTaskIndex, toolIndex)
  3360. "
  3361. >
  3362. <img
  3363. src="../../assets/icon/fourthToolList/program.png"
  3364. alt
  3365. />
  3366. <div style="margin: 5px 0">
  3367. AIoT Blockly
  3368. </div>
  3369. </div>
  3370. <div class="noCTool">
  3371. <img
  3372. src="../../assets/icon/new/isToolC.png"
  3373. alt=""
  3374. />
  3375. </div>
  3376. <div
  3377. class="isCTool"
  3378. v-if="itemTool.tool.indexOf(21) != -1"
  3379. >
  3380. <img
  3381. src="../../assets/icon/new/isToolC.png"
  3382. alt=""
  3383. />
  3384. </div>
  3385. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3386. <img src="../../assets/icon/checkNo.png" alt
  3387. v-if="itemTool.tool.indexOf(21) == -1" />
  3388. <div class="checkDiv" v-else>
  3389. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3390. </div>
  3391. </div> -->
  3392. </div>
  3393. <!-- <div class="tool">
  3394. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3395. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3396. <div style="margin: 5px 0">AI体验</div>
  3397. </div>
  3398. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3399. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3400. <div class="checkDiv" v-else>
  3401. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3402. </div>
  3403. </div>
  3404. </div> -->
  3405. <div
  3406. class="tool"
  3407. :class="{
  3408. isToolChoose:
  3409. itemTool.tool.indexOf(23) != -1,
  3410. }"
  3411. @click="
  3412. addTools(23, itemTaskIndex, toolIndex)
  3413. "
  3414. >
  3415. <div
  3416. class="whiteBIcon"
  3417. @click.stop="
  3418. addTools(23, itemTaskIndex, toolIndex)
  3419. "
  3420. >
  3421. <img
  3422. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  3423. alt
  3424. />
  3425. <div style="margin: 5px 0">AI Python</div>
  3426. </div>
  3427. <div class="noCTool">
  3428. <img
  3429. src="../../assets/icon/new/isToolC.png"
  3430. alt=""
  3431. />
  3432. </div>
  3433. <div
  3434. class="isCTool"
  3435. v-if="itemTool.tool.indexOf(23) != -1"
  3436. >
  3437. <img
  3438. src="../../assets/icon/new/isToolC.png"
  3439. alt=""
  3440. />
  3441. </div>
  3442. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3443. <img src="../../assets/icon/checkNo.png" alt
  3444. v-if="itemTool.tool.indexOf(23) == -1" />
  3445. <div class="checkDiv" v-else>
  3446. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3447. </div>
  3448. </div> -->
  3449. </div>
  3450. <div
  3451. class="tool"
  3452. :class="{
  3453. isToolChoose:
  3454. itemTool.tool.indexOf(24) != -1,
  3455. }"
  3456. @click="
  3457. addTools(24, itemTaskIndex, toolIndex)
  3458. "
  3459. >
  3460. <div
  3461. class="whiteBIcon"
  3462. @click.stop="
  3463. addTools(24, itemTaskIndex, toolIndex)
  3464. "
  3465. >
  3466. <img
  3467. src="../../assets/icon/fourthToolList/AIprogram.png"
  3468. alt
  3469. />
  3470. <div style="margin: 5px 0">
  3471. AI Blockly
  3472. </div>
  3473. </div>
  3474. <div class="noCTool">
  3475. <img
  3476. src="../../assets/icon/new/isToolC.png"
  3477. alt=""
  3478. />
  3479. </div>
  3480. <div
  3481. class="isCTool"
  3482. v-if="itemTool.tool.indexOf(24) != -1"
  3483. >
  3484. <img
  3485. src="../../assets/icon/new/isToolC.png"
  3486. alt=""
  3487. />
  3488. </div>
  3489. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3490. <img src="../../assets/icon/checkNo.png" alt
  3491. v-if="itemTool.tool.indexOf(24) == -1" />
  3492. <div class="checkDiv" v-else>
  3493. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3494. </div>
  3495. </div> -->
  3496. </div>
  3497. <div
  3498. class="tool"
  3499. :class="{
  3500. isToolChoose:
  3501. itemTool.tool.indexOf(32) != -1,
  3502. }"
  3503. @click="
  3504. addTools(32, itemTaskIndex, toolIndex)
  3505. "
  3506. >
  3507. <div
  3508. class="whiteBIcon"
  3509. @click.stop="
  3510. addTools(32, itemTaskIndex, toolIndex)
  3511. "
  3512. >
  3513. <img
  3514. src="../../assets/icon/thirdToolList/code.png"
  3515. alt
  3516. />
  3517. <div style="margin: 5px 0">源码编辑</div>
  3518. </div>
  3519. <div class="noCTool">
  3520. <img
  3521. src="../../assets/icon/new/isToolC.png"
  3522. alt=""
  3523. />
  3524. </div>
  3525. <div
  3526. class="isCTool"
  3527. v-if="itemTool.tool.indexOf(32) != -1"
  3528. >
  3529. <img
  3530. src="../../assets/icon/new/isToolC.png"
  3531. alt=""
  3532. />
  3533. </div>
  3534. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3535. <img src="../../assets/icon/checkNo.png" alt
  3536. v-if="itemTool.tool.indexOf(32) == -1" />
  3537. <div class="checkDiv" v-else>
  3538. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3539. </div>
  3540. </div> -->
  3541. </div>
  3542. <div
  3543. class="tool"
  3544. :class="{
  3545. isToolChoose:
  3546. itemTool.tool.indexOf(57) != -1,
  3547. }"
  3548. @click="
  3549. addTools(57, itemTaskIndex, toolIndex)
  3550. "
  3551. >
  3552. <div
  3553. class="whiteBIcon"
  3554. @click.stop="
  3555. openTools(itemTaskIndex, 57, toolIndex)
  3556. "
  3557. >
  3558. <img
  3559. src="../../assets/icon/fourthToolList/cocopi.png"
  3560. alt
  3561. />
  3562. <div style="margin: 5px 0">CocoPi</div>
  3563. </div>
  3564. <div class="noCTool">
  3565. <img
  3566. src="../../assets/icon/new/isToolC.png"
  3567. alt=""
  3568. />
  3569. </div>
  3570. <div
  3571. class="isCTool"
  3572. v-if="itemTool.tool.indexOf(57) != -1"
  3573. >
  3574. <img
  3575. src="../../assets/icon/new/isToolC.png"
  3576. alt=""
  3577. />
  3578. </div>
  3579. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3580. <img src="../../assets/icon/checkNo.png" alt
  3581. v-if="itemTool.tool.indexOf(57) == -1" />
  3582. <div class="checkDiv" v-else>
  3583. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3584. </div>
  3585. </div> -->
  3586. </div>
  3587. <div
  3588. class="tool"
  3589. :class="{
  3590. isToolChoose:
  3591. itemTool.tool.indexOf(63) != -1,
  3592. }"
  3593. @click="
  3594. addTools(63, itemTaskIndex, toolIndex)
  3595. "
  3596. >
  3597. <div
  3598. class="whiteBIcon"
  3599. @click.stop="
  3600. addTools(63, itemTaskIndex, toolIndex)
  3601. "
  3602. >
  3603. <img
  3604. src="../../assets/icon/fourthToolList/Wood.png"
  3605. alt
  3606. />
  3607. <div style="margin: 5px 0">海龟编程</div>
  3608. </div>
  3609. <div class="noCTool">
  3610. <img
  3611. src="../../assets/icon/new/isToolC.png"
  3612. alt=""
  3613. />
  3614. </div>
  3615. <div
  3616. class="isCTool"
  3617. v-if="itemTool.tool.indexOf(63) != -1"
  3618. >
  3619. <img
  3620. src="../../assets/icon/new/isToolC.png"
  3621. alt=""
  3622. />
  3623. </div>
  3624. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3625. <img src="../../assets/icon/checkNo.png" alt
  3626. v-if="itemTool.tool.indexOf(63) == -1" />
  3627. <div class="checkDiv" v-else>
  3628. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3629. </div>
  3630. </div> -->
  3631. </div>
  3632. </div>
  3633. <div
  3634. class="toolSort"
  3635. v-if="itemTool.toolType == 7"
  3636. >
  3637. <div
  3638. class="tool"
  3639. :class="{
  3640. isToolChoose:
  3641. itemTool.tool.indexOf(40) != -1,
  3642. }"
  3643. @click.stop="
  3644. addTools(40, itemTaskIndex, toolIndex)
  3645. "
  3646. >
  3647. <div
  3648. class="whiteBIcon"
  3649. @click.stop="
  3650. openTools(itemTaskIndex, 40, toolIndex)
  3651. "
  3652. >
  3653. <img
  3654. src="../../assets/icon/thirdToolList/eval.png"
  3655. alt
  3656. />
  3657. <div style="margin: 5px 0">个人评价</div>
  3658. </div>
  3659. <div class="noCTool">
  3660. <img
  3661. src="../../assets/icon/new/isToolC.png"
  3662. alt=""
  3663. />
  3664. </div>
  3665. <div
  3666. class="isCTool"
  3667. v-if="itemTool.tool.indexOf(40) != -1"
  3668. >
  3669. <img
  3670. src="../../assets/icon/new/isToolC.png"
  3671. alt=""
  3672. />
  3673. </div>
  3674. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3675. <img src="../../assets/icon/checkNo.png" alt
  3676. v-if="itemTool.tool.indexOf(40) == -1" />
  3677. <div class="checkDiv" v-else>
  3678. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3679. </div>
  3680. </div> -->
  3681. </div>
  3682. </div>
  3683. <div
  3684. class="toolSort"
  3685. v-if="itemTool.toolType == 5"
  3686. >
  3687. <div
  3688. class="tool"
  3689. :class="{
  3690. isToolChoose:
  3691. itemTool.tool.indexOf(28) != -1,
  3692. }"
  3693. @click="
  3694. addTools(28, itemTaskIndex, toolIndex)
  3695. "
  3696. >
  3697. <div
  3698. class="whiteBIcon"
  3699. @click.stop="
  3700. addTools(28, itemTaskIndex, toolIndex)
  3701. "
  3702. >
  3703. <img
  3704. src="../../assets/icon/secondToolList/translation.png"
  3705. alt
  3706. />
  3707. <div style="margin: 5px 0">翻译</div>
  3708. </div>
  3709. <div class="noCTool">
  3710. <img
  3711. src="../../assets/icon/new/isToolC.png"
  3712. alt=""
  3713. />
  3714. </div>
  3715. <div
  3716. class="isCTool"
  3717. v-if="itemTool.tool.indexOf(28) != -1"
  3718. >
  3719. <img
  3720. src="../../assets/icon/new/isToolC.png"
  3721. alt=""
  3722. />
  3723. </div>
  3724. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3725. <img src="../../assets/icon/checkNo.png" alt
  3726. v-if="itemTool.tool.indexOf(28) == -1" />
  3727. <div class="checkDiv" v-else>
  3728. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3729. </div>
  3730. </div> -->
  3731. </div>
  3732. <div
  3733. class="tool"
  3734. :class="{
  3735. isToolChoose:
  3736. itemTool.tool.indexOf(31) != -1,
  3737. }"
  3738. @click="
  3739. addTools(31, itemTaskIndex, toolIndex)
  3740. "
  3741. >
  3742. <div
  3743. class="whiteBIcon"
  3744. @click.stop="
  3745. addTools(31, itemTaskIndex, toolIndex)
  3746. "
  3747. >
  3748. <img
  3749. src="../../assets/icon/secondToolList/networkPanel.png"
  3750. alt
  3751. />
  3752. <div style="margin: 5px 0">数字画板</div>
  3753. </div>
  3754. <div class="noCTool">
  3755. <img
  3756. src="../../assets/icon/new/isToolC.png"
  3757. alt=""
  3758. />
  3759. </div>
  3760. <div
  3761. class="isCTool"
  3762. v-if="itemTool.tool.indexOf(31) != -1"
  3763. >
  3764. <img
  3765. src="../../assets/icon/new/isToolC.png"
  3766. alt=""
  3767. />
  3768. </div>
  3769. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3770. <img src="../../assets/icon/checkNo.png" alt
  3771. v-if="itemTool.tool.indexOf(31) == -1" />
  3772. <div class="checkDiv" v-else>
  3773. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3774. </div>
  3775. </div> -->
  3776. </div>
  3777. <div
  3778. class="tool"
  3779. :class="{
  3780. isToolChoose:
  3781. itemTool.tool.indexOf(39) != -1,
  3782. }"
  3783. @click="
  3784. addTools(39, itemTaskIndex, toolIndex)
  3785. "
  3786. >
  3787. <div
  3788. class="whiteBIcon"
  3789. @click.stop="
  3790. addTools(39, itemTaskIndex, toolIndex)
  3791. "
  3792. >
  3793. <img
  3794. src="../../assets/icon/secondToolList/GeoGebra.png"
  3795. alt
  3796. />
  3797. <div style="margin: 5px 0">GeoGebra</div>
  3798. </div>
  3799. <div class="noCTool">
  3800. <img
  3801. src="../../assets/icon/new/isToolC.png"
  3802. alt=""
  3803. />
  3804. </div>
  3805. <div
  3806. class="isCTool"
  3807. v-if="itemTool.tool.indexOf(39) != -1"
  3808. >
  3809. <img
  3810. src="../../assets/icon/new/isToolC.png"
  3811. alt=""
  3812. />
  3813. </div>
  3814. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3815. <img src="../../assets/icon/checkNo.png" alt
  3816. v-if="itemTool.tool.indexOf(39) == -1" />
  3817. <div class="checkDiv" v-else>
  3818. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3819. </div>
  3820. </div> -->
  3821. </div>
  3822. <div
  3823. class="tool"
  3824. :class="{
  3825. isToolChoose:
  3826. itemTool.tool.indexOf(66) != -1,
  3827. }"
  3828. @click="
  3829. addTools(66, itemTaskIndex, toolIndex)
  3830. "
  3831. >
  3832. <div
  3833. class="whiteBIcon"
  3834. @click.stop="
  3835. addTools(66, itemTaskIndex, toolIndex)
  3836. "
  3837. >
  3838. <img
  3839. src="../../assets/icon/secondToolList/formulaEdi.png"
  3840. alt
  3841. />
  3842. <div style="margin: 5px 0">公式编辑</div>
  3843. </div>
  3844. <div class="noCTool">
  3845. <img
  3846. src="../../assets/icon/new/isToolC.png"
  3847. alt=""
  3848. />
  3849. </div>
  3850. <div
  3851. class="isCTool"
  3852. v-if="itemTool.tool.indexOf(66) != -1"
  3853. >
  3854. <img
  3855. src="../../assets/icon/new/isToolC.png"
  3856. alt=""
  3857. />
  3858. </div>
  3859. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3860. <img src="../../assets/icon/checkNo.png" alt
  3861. v-if="itemTool.tool.indexOf(66) == -1" />
  3862. <div class="checkDiv" v-else>
  3863. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3864. </div>
  3865. </div> -->
  3866. </div>
  3867. <!-- <div class="tool">
  3868. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3869. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  3870. <div style="margin: 5px 0">分子结构</div>
  3871. </div>
  3872. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3873. <img src="../../assets/icon/checkNo.png" alt
  3874. v-if="itemTool.tool.indexOf(67) == -1" />
  3875. <div class="checkDiv" v-else>
  3876. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3877. </div>
  3878. </div>
  3879. </div> -->
  3880. <div
  3881. class="tool"
  3882. :class="{
  3883. isToolChoose:
  3884. itemTool.tool.indexOf(68) != -1,
  3885. }"
  3886. @click="
  3887. addTools(68, itemTaskIndex, toolIndex)
  3888. "
  3889. >
  3890. <div
  3891. class="whiteBIcon"
  3892. @click.stop="
  3893. addTools(68, itemTaskIndex, toolIndex)
  3894. "
  3895. >
  3896. <img
  3897. src="../../assets/icon/secondToolList/timeAxis.png"
  3898. alt
  3899. />
  3900. <div style="margin: 5px 0">时间轴</div>
  3901. </div>
  3902. <div class="noCTool">
  3903. <img
  3904. src="../../assets/icon/new/isToolC.png"
  3905. alt=""
  3906. />
  3907. </div>
  3908. <div
  3909. class="isCTool"
  3910. v-if="itemTool.tool.indexOf(68) != -1"
  3911. >
  3912. <img
  3913. src="../../assets/icon/new/isToolC.png"
  3914. alt=""
  3915. />
  3916. </div>
  3917. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3918. <img src="../../assets/icon/checkNo.png" alt
  3919. v-if="itemTool.tool.indexOf(68) == -1" />
  3920. <div class="checkDiv" v-else>
  3921. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3922. </div>
  3923. </div> -->
  3924. </div>
  3925. <div
  3926. class="tool"
  3927. :class="{
  3928. isToolChoose:
  3929. itemTool.tool.indexOf(69) != -1,
  3930. }"
  3931. @click="
  3932. addTools(69, itemTaskIndex, toolIndex)
  3933. "
  3934. >
  3935. <div
  3936. class="whiteBIcon"
  3937. @click.stop="
  3938. openTools(itemTaskIndex, 69, toolIndex)
  3939. "
  3940. >
  3941. <img
  3942. src="../../assets/icon/thirdToolList/english.png"
  3943. alt
  3944. />
  3945. <div style="margin: 5px 0">英语写作</div>
  3946. </div>
  3947. <div class="noCTool">
  3948. <img
  3949. src="../../assets/icon/new/isToolC.png"
  3950. alt=""
  3951. />
  3952. </div>
  3953. <div
  3954. class="isCTool"
  3955. v-if="itemTool.tool.indexOf(69) != -1"
  3956. >
  3957. <img
  3958. src="../../assets/icon/new/isToolC.png"
  3959. alt=""
  3960. />
  3961. </div>
  3962. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3963. <img src="../../assets/icon/checkNo.png" alt
  3964. v-if="itemTool.tool.indexOf(4) == -1" />
  3965. <div class="checkDiv" v-else>
  3966. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3967. </div>
  3968. </div> -->
  3969. </div>
  3970. <div
  3971. class="tool"
  3972. :class="{
  3973. isToolChoose:
  3974. itemTool.tool.indexOf(70) != -1,
  3975. }"
  3976. @click="
  3977. addTools(70, itemTaskIndex, toolIndex)
  3978. "
  3979. >
  3980. <div
  3981. class="whiteBIcon"
  3982. @click.stop="
  3983. openTools(itemTaskIndex, 70, toolIndex)
  3984. "
  3985. >
  3986. <img
  3987. src="../../assets/icon/thirdToolList/englishVoice.png"
  3988. alt
  3989. />
  3990. <div style="margin: 5px 0">英语口语</div>
  3991. </div>
  3992. <div class="noCTool">
  3993. <img
  3994. src="../../assets/icon/new/isToolC.png"
  3995. alt=""
  3996. />
  3997. </div>
  3998. <div
  3999. class="isCTool"
  4000. v-if="itemTool.tool.indexOf(70) != -1"
  4001. >
  4002. <img
  4003. src="../../assets/icon/new/isToolC.png"
  4004. alt=""
  4005. />
  4006. </div>
  4007. </div>
  4008. <!-- <div class="tool">
  4009. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  4010. <img src="../../assets/icon/secondToolList/translation.png" alt />
  4011. <div style="margin: 5px 0">翻译</div>
  4012. </div>
  4013. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  4014. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  4015. <div class="checkDiv" v-else>
  4016. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div class="tool">
  4021. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  4022. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  4023. <div style="margin: 5px 0">魔盒识字</div>
  4024. </div>
  4025. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  4026. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  4027. <div class="checkDiv" v-else>
  4028. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4029. </div>
  4030. </div>
  4031. </div>
  4032. <div class="tool">
  4033. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  4034. <img src="../../assets/icon/secondToolList/24game.png" alt />
  4035. <div style="margin: 5px 0">24点</div>
  4036. </div>
  4037. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  4038. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  4039. <div class="checkDiv" v-else>
  4040. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. <div class="tool">
  4045. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  4046. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  4047. <div style="margin: 5px 0">数学画板</div>
  4048. </div>
  4049. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  4050. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  4051. <div class="checkDiv" v-else>
  4052. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4053. </div>
  4054. </div>
  4055. </div>
  4056. <div class="tool">
  4057. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  4058. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  4059. <div style="margin: 5px 0">GeoGebra</div>
  4060. </div>
  4061. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  4062. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  4063. <div class="checkDiv" v-else>
  4064. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4065. </div>
  4066. </div>
  4067. </div>
  4068. <div class="tool">
  4069. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  4070. <img src="../../assets/icon/fourthToolList/car.png" alt />
  4071. <div style="margin: 5px 0">模拟驾驶</div>
  4072. </div>
  4073. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  4074. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  4075. <div class="checkDiv" v-else>
  4076. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4077. </div>
  4078. </div>
  4079. </div>
  4080. <div class="tool">
  4081. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  4082. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  4083. <div style="margin: 5px 0">路径搜索</div>
  4084. </div>
  4085. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  4086. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  4087. <div class="checkDiv" v-else>
  4088. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4089. </div>
  4090. </div>
  4091. </div>
  4092. <div class="tool">
  4093. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  4094. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  4095. <div style="margin: 5px 0">深度学习</div>
  4096. </div>
  4097. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  4098. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  4099. <div class="checkDiv" v-else>
  4100. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4101. </div>
  4102. </div>
  4103. </div>
  4104. <div class="tool">
  4105. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  4106. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  4107. <div style="margin: 5px 0">全历史</div>
  4108. </div>
  4109. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  4110. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  4111. <div class="checkDiv" v-else>
  4112. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4113. </div>
  4114. </div>
  4115. </div>
  4116. </div>
  4117. <div class="toolSort" v-if="itemTool.toolType == 4">
  4118. <div class="tool">
  4119. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  4120. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  4121. <div style="margin: 5px 0">课程设计</div>
  4122. </div>
  4123. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  4124. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  4125. <div class="checkDiv" v-else>
  4126. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4127. </div>
  4128. </div>
  4129. </div>
  4130. <div class="tool">
  4131. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  4132. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  4133. <div style="margin: 5px 0">目标管理</div>
  4134. </div>
  4135. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  4136. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  4137. <div class="checkDiv" v-else>
  4138. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4139. </div>
  4140. </div>
  4141. </div> -->
  4142. <!-- <div class="tool">
  4143. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4144. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  4145. <div style="margin: 5px 0">汉字宫</div>
  4146. </div>
  4147. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4148. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4149. <div class="checkDiv" v-else>
  4150. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4151. </div>
  4152. </div>
  4153. </div> -->
  4154. </div>
  4155. </div>
  4156. <!-- v-show="!itemTool.isFold3" -->
  4157. <div>
  4158. <textarea
  4159. rows="2"
  4160. v-autoHeight="70"
  4161. type="text"
  4162. placeholder="添加工具描述"
  4163. class="binfo_input"
  4164. style="
  4165. margin: 0 0 20px 0;
  4166. width: 100% !important;
  4167. "
  4168. v-model="itemTool.toolDetail"
  4169. ></textarea>
  4170. </div>
  4171. </div>
  4172. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  4173. <div class="addToolImg">
  4174. <img src="../../assets/icon/add.png" alt />
  4175. </div>
  4176. <div>添加工具</div>
  4177. </div> -->
  4178. <button
  4179. class="c_pub_button_add pub_btn_tool_img"
  4180. @click="addToolFun(itemTaskIndex)"
  4181. style="
  4182. margin: 0 auto;
  4183. padding: 0 30px;
  4184. height: 45px;
  4185. "
  4186. >
  4187. 添加工具
  4188. </button>
  4189. </div>
  4190. </div>
  4191. <div
  4192. v-else-if="
  4193. unitJson[unitIndex].easy == 2 ||
  4194. unitJson[unitIndex].easy == 4
  4195. "
  4196. class="toolChoose"
  4197. style="padding: 0 0 40px"
  4198. >
  4199. <div class="tools">
  4200. <div
  4201. class="leftTools"
  4202. style="width: 100%"
  4203. v-for="(
  4204. itemTool, toolIndex
  4205. ) in itemTask.toolChoose"
  4206. :key="toolIndex"
  4207. >
  4208. <div>
  4209. <textarea
  4210. rows="3"
  4211. type="text"
  4212. placeholder="添加工具描述"
  4213. class="binfo_input"
  4214. style="
  4215. margin: 0 0 20px 0;
  4216. width: 100% !important;
  4217. "
  4218. v-model="itemTool.toolDetail"
  4219. ></textarea>
  4220. </div>
  4221. <div
  4222. style="
  4223. display: flex;
  4224. flex-direction: row;
  4225. align-items: baseline;
  4226. flex-wrap: nowrap;
  4227. justify-content: flex-start;
  4228. position: relative;
  4229. "
  4230. >
  4231. <div
  4232. style="margin-right: 20px; font-weight: bold"
  4233. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4234. >
  4235. 工具 {{ toolIndex + 1 }} :
  4236. </div>
  4237. <div
  4238. class="remove"
  4239. @click="deleteTool(itemTaskIndex, toolIndex)"
  4240. v-if="itemTask.toolChoose.length > 1"
  4241. style="right: 0"
  4242. ></div>
  4243. </div>
  4244. <div style="min-height: 163px">
  4245. <div class="toolSort">
  4246. <div class="tool">
  4247. <div
  4248. class="whiteBIcon"
  4249. @click="
  4250. openTools(itemTaskIndex, 1, toolIndex)
  4251. "
  4252. >
  4253. <img
  4254. src="../../assets/icon/secondToolList/whiteBoard.png"
  4255. alt
  4256. />
  4257. <div style="margin: 5px 0">电子白板</div>
  4258. </div>
  4259. <div
  4260. class="check"
  4261. @click="
  4262. addTools(1, itemTaskIndex, toolIndex)
  4263. "
  4264. >
  4265. <img
  4266. src="../../assets/icon/checkNo.png"
  4267. alt
  4268. v-if="itemTool.tool.indexOf(1) == -1"
  4269. />
  4270. <div class="checkDiv" v-else>
  4271. <img
  4272. src="../../assets/icon/checkedIs.png"
  4273. alt
  4274. /><span>已选择</span>
  4275. </div>
  4276. </div>
  4277. </div>
  4278. <div class="tool">
  4279. <div
  4280. class="whiteBIcon"
  4281. @click="
  4282. openTools(itemTaskIndex, 52, toolIndex)
  4283. "
  4284. >
  4285. <img
  4286. src="../../assets/icon/fourthToolList/text.png"
  4287. alt
  4288. />
  4289. <div style="margin: 5px 0">文档</div>
  4290. </div>
  4291. <div
  4292. class="check"
  4293. @click="
  4294. addTools(52, itemTaskIndex, toolIndex)
  4295. "
  4296. >
  4297. <img
  4298. src="../../assets/icon/checkNo.png"
  4299. alt
  4300. v-if="itemTool.tool.indexOf(52) == -1"
  4301. />
  4302. <div class="checkDiv" v-else>
  4303. <img
  4304. src="../../assets/icon/checkedIs.png"
  4305. alt
  4306. /><span>已选择</span>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. <div class="tool">
  4311. <div
  4312. class="whiteBIcon"
  4313. @click="
  4314. openTools(itemTaskIndex, 3, toolIndex)
  4315. "
  4316. >
  4317. <img
  4318. src="../../assets/icon/secondToolList/mindMapping.png"
  4319. alt
  4320. />
  4321. <div style="margin: 5px 0">思维导图</div>
  4322. </div>
  4323. <div
  4324. class="check"
  4325. @click="
  4326. addTools(3, itemTaskIndex, toolIndex)
  4327. "
  4328. >
  4329. <img
  4330. src="../../assets/icon/checkNo.png"
  4331. alt
  4332. v-if="itemTool.tool.indexOf(3) == -1"
  4333. />
  4334. <div class="checkDiv" v-else>
  4335. <img
  4336. src="../../assets/icon/checkedIs.png"
  4337. alt
  4338. /><span>已选择</span>
  4339. </div>
  4340. </div>
  4341. </div>
  4342. <div class="tool">
  4343. <div
  4344. class="whiteBIcon"
  4345. @click="
  4346. openTools(itemTaskIndex, 4, toolIndex)
  4347. "
  4348. >
  4349. <img
  4350. src="../../assets/icon/thirdToolList/ask.png"
  4351. alt
  4352. />
  4353. <div style="margin: 5px 0">问卷调查</div>
  4354. </div>
  4355. <div
  4356. class="check"
  4357. @click="
  4358. addTools(4, itemTaskIndex, toolIndex)
  4359. "
  4360. >
  4361. <img
  4362. src="../../assets/icon/checkNo.png"
  4363. alt
  4364. v-if="itemTool.tool.indexOf(4) == -1"
  4365. />
  4366. <div class="checkDiv" v-else>
  4367. <img
  4368. src="../../assets/icon/checkedIs.png"
  4369. alt
  4370. /><span>已选择</span>
  4371. </div>
  4372. </div>
  4373. </div>
  4374. <div class="tool">
  4375. <div
  4376. class="whiteBIcon"
  4377. @click="
  4378. openTools(itemTaskIndex, 45, toolIndex)
  4379. "
  4380. >
  4381. <img
  4382. src="../../assets/icon/thirdToolList/choose.png"
  4383. alt
  4384. />
  4385. <div style="margin: 5px 0">选择题</div>
  4386. </div>
  4387. <div
  4388. class="check"
  4389. @click="
  4390. addTools(45, itemTaskIndex, toolIndex)
  4391. "
  4392. >
  4393. <img
  4394. src="../../assets/icon/checkNo.png"
  4395. alt
  4396. v-if="itemTool.tool.indexOf(45) == -1"
  4397. />
  4398. <div class="checkDiv" v-else>
  4399. <img
  4400. src="../../assets/icon/checkedIs.png"
  4401. alt
  4402. /><span>已选择</span>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. <div class="tool">
  4407. <div
  4408. class="whiteBIcon"
  4409. @click="
  4410. openTools(itemTaskIndex, 15, toolIndex)
  4411. "
  4412. >
  4413. <img
  4414. src="../../assets/icon/thirdToolList/answer.png"
  4415. alt
  4416. />
  4417. <div style="margin: 5px 0">问答</div>
  4418. </div>
  4419. <div
  4420. class="check"
  4421. @click="
  4422. addTools(15, itemTaskIndex, toolIndex)
  4423. "
  4424. >
  4425. <img
  4426. src="../../assets/icon/checkNo.png"
  4427. alt
  4428. v-if="itemTool.tool.indexOf(15) == -1"
  4429. />
  4430. <div class="checkDiv" v-else>
  4431. <img
  4432. src="../../assets/icon/checkedIs.png"
  4433. alt
  4434. /><span>已选择</span>
  4435. </div>
  4436. </div>
  4437. </div>
  4438. <div class="tool">
  4439. <div
  4440. class="whiteBIcon"
  4441. @click="
  4442. addTools(16, itemTaskIndex, toolIndex)
  4443. "
  4444. >
  4445. <img
  4446. src="../../assets/icon/thirdToolList/work.png"
  4447. alt
  4448. />
  4449. <div style="margin: 5px 0">作业提交</div>
  4450. </div>
  4451. <div
  4452. class="check"
  4453. @click="
  4454. addTools(16, itemTaskIndex, toolIndex)
  4455. "
  4456. >
  4457. <img
  4458. src="../../assets/icon/checkNo.png"
  4459. alt
  4460. v-if="itemTool.tool.indexOf(16) == -1"
  4461. />
  4462. <div class="checkDiv" v-else>
  4463. <img
  4464. src="../../assets/icon/checkedIs.png"
  4465. alt
  4466. /><span>已选择</span>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div class="tool">
  4471. <div
  4472. class="whiteBIcon"
  4473. @click="
  4474. openTools(itemTaskIndex, 50, toolIndex)
  4475. "
  4476. >
  4477. <img
  4478. src="../../assets/icon/thirdToolList/plwork.png"
  4479. alt
  4480. />
  4481. <div style="margin: 5px 0">批量上传</div>
  4482. </div>
  4483. <div
  4484. class="check"
  4485. @click="
  4486. addTools(50, itemTaskIndex, toolIndex)
  4487. "
  4488. >
  4489. <img
  4490. src="../../assets/icon/checkNo.png"
  4491. alt
  4492. v-if="itemTool.tool.indexOf(50) == -1"
  4493. />
  4494. <div class="checkDiv" v-else>
  4495. <img
  4496. src="../../assets/icon/checkedIs.png"
  4497. alt
  4498. /><span>已选择</span>
  4499. </div>
  4500. </div>
  4501. </div>
  4502. <div class="tool">
  4503. <div
  4504. class="whiteBIcon"
  4505. @click="
  4506. openTools(itemTaskIndex, 41, toolIndex)
  4507. "
  4508. >
  4509. <img
  4510. src="../../assets/icon/thirdToolList/select.png"
  4511. alt
  4512. />
  4513. <div style="margin: 5px 0">选择匹配</div>
  4514. </div>
  4515. <div
  4516. class="check"
  4517. @click="
  4518. addTools(41, itemTaskIndex, toolIndex)
  4519. "
  4520. >
  4521. <img
  4522. src="../../assets/icon/checkNo.png"
  4523. alt
  4524. v-if="itemTool.tool.indexOf(41) == -1"
  4525. />
  4526. <div class="checkDiv" v-else>
  4527. <img
  4528. src="../../assets/icon/checkedIs.png"
  4529. alt
  4530. /><span>已选择</span>
  4531. </div>
  4532. </div>
  4533. </div>
  4534. <div class="tool">
  4535. <div
  4536. class="whiteBIcon"
  4537. @click="
  4538. openTools(itemTaskIndex, 47, toolIndex)
  4539. "
  4540. >
  4541. <img
  4542. src="../../assets/icon/fourthToolList/conSentences.png"
  4543. alt
  4544. />
  4545. <div style="margin: 5px 0">排序</div>
  4546. </div>
  4547. <div
  4548. class="check"
  4549. @click="
  4550. addTools(47, itemTaskIndex, toolIndex)
  4551. "
  4552. >
  4553. <img
  4554. src="../../assets/icon/checkNo.png"
  4555. alt
  4556. v-if="itemTool.tool.indexOf(47) == -1"
  4557. />
  4558. <div class="checkDiv" v-else>
  4559. <img
  4560. src="../../assets/icon/checkedIs.png"
  4561. alt
  4562. /><span>已选择</span>
  4563. </div>
  4564. </div>
  4565. </div>
  4566. <div class="tool">
  4567. <div
  4568. class="whiteBIcon"
  4569. @click="
  4570. openTools(itemTaskIndex, 48, toolIndex)
  4571. "
  4572. >
  4573. <img
  4574. src="../../assets/icon/fourthToolList/table.png"
  4575. alt
  4576. />
  4577. <div style="margin: 5px 0">表格</div>
  4578. </div>
  4579. <div
  4580. class="check"
  4581. @click="
  4582. addTools(48, itemTaskIndex, toolIndex)
  4583. "
  4584. >
  4585. <img
  4586. src="../../assets/icon/checkNo.png"
  4587. alt
  4588. v-if="itemTool.tool.indexOf(48) == -1"
  4589. />
  4590. <div class="checkDiv" v-else>
  4591. <img
  4592. src="../../assets/icon/checkedIs.png"
  4593. alt
  4594. /><span>已选择</span>
  4595. </div>
  4596. </div>
  4597. </div>
  4598. </div>
  4599. </div>
  4600. </div>
  4601. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4602. <div class="addToolImg">
  4603. <img src="../../assets/icon/add.png" alt />
  4604. </div>
  4605. <div>添加工具</div>
  4606. </div> -->
  4607. <button
  4608. class="c_pub_button_add pub_btn_tool_img"
  4609. @click="addToolFun(itemTaskIndex)"
  4610. style="margin: 35px auto 20px"
  4611. >
  4612. 添加工具
  4613. </button>
  4614. </div>
  4615. </div>
  4616. <div
  4617. v-else-if="
  4618. unitJson[unitIndex].easy == 1 ||
  4619. (unitJson[unitIndex].easy == 5 &&
  4620. itemTask.taskType == 2)
  4621. "
  4622. class="toolChoose"
  4623. style="padding: 0 0 40px"
  4624. >
  4625. <div class="tools">
  4626. <div
  4627. class="leftTools"
  4628. style="width: 100%; padding: 0 0 15px 0"
  4629. v-for="(
  4630. itemTool, toolIndex
  4631. ) in itemTask.toolChoose"
  4632. :key="toolIndex"
  4633. >
  4634. <div style="min-height: 163px">
  4635. <div class="toolSort">
  4636. <div class="tool">
  4637. <div
  4638. class="whiteBIcon"
  4639. @click="
  4640. openTools(itemTaskIndex, 50, toolIndex)
  4641. "
  4642. >
  4643. <img
  4644. src="../../assets/icon/thirdToolList/plwork.png"
  4645. alt
  4646. />
  4647. <div style="margin: 5px 0">批量上传</div>
  4648. </div>
  4649. <div
  4650. class="check"
  4651. @click="
  4652. addTools(50, itemTaskIndex, toolIndex)
  4653. "
  4654. >
  4655. <img
  4656. src="../../assets/icon/checkNo.png"
  4657. alt
  4658. v-if="itemTool.tool.indexOf(50) == -1"
  4659. />
  4660. <div class="checkDiv" v-else>
  4661. <img
  4662. src="../../assets/icon/checkedIs.png"
  4663. alt
  4664. /><span>已选择</span>
  4665. </div>
  4666. </div>
  4667. </div>
  4668. </div>
  4669. </div>
  4670. </div>
  4671. </div>
  4672. </div>
  4673. <div
  4674. class="elist_css"
  4675. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4676. >
  4677. <div class="elist_title">
  4678. <div
  4679. style="
  4680. display: flex;
  4681. flex-direction: row;
  4682. align-items: center;
  4683. margin: 20px 0;
  4684. "
  4685. >
  4686. <div class="lineTitle clineTitle">评价设置</div>
  4687. <!-- <div class="line" style="width: 90%"></div> -->
  4688. </div>
  4689. </div>
  4690. <div class="mbCss">
  4691. <div
  4692. class="pjCss"
  4693. :style="{
  4694. width: itemTask.isEvaFold
  4695. ? 'calc(100% - 55%)'
  4696. : 'calc(100% - 120px)',
  4697. }"
  4698. >
  4699. <div
  4700. v-if="itemTask.eList && itemTask.eList.length"
  4701. class="elist_input"
  4702. >
  4703. <div
  4704. v-for="(eItem, eIndex) in itemTask.eList"
  4705. :key="eIndex"
  4706. class="elist_input_box"
  4707. >
  4708. <span>评价维度:</span>
  4709. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4710. <input
  4711. type="input"
  4712. v-model="itemTask.eList[eIndex].value"
  4713. placeholder="填写评价维度"
  4714. />
  4715. <!-- </el-tooltip> -->
  4716. <!-- <span>评星等级:</span>
  4717. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4718. disabled></el-rate> -->
  4719. <div
  4720. class="remove"
  4721. @click="
  4722. deletEList(
  4723. unitIndex,
  4724. itemTaskIndex,
  4725. eIndex
  4726. )
  4727. "
  4728. ></div>
  4729. <div class="elist_inptu_text">
  4730. <span>维度描述:</span>
  4731. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4732. <input
  4733. type="input"
  4734. v-model="itemTask.eList[eIndex].detail"
  4735. placeholder="填写维度描述"
  4736. />
  4737. <!-- </el-tooltip> -->
  4738. </div>
  4739. <div class="elist_inptu_text" v-if="evalua">
  4740. <span>目标:</span>
  4741. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4742. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4743. @change="forceUpdate()">
  4744. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4745. :value="e.name">
  4746. </el-option>
  4747. </el-select> -->
  4748. <el-cascader
  4749. :options="targetArray"
  4750. v-model="itemTask.eList[eIndex].target"
  4751. :props="{ checkStrictly: true }"
  4752. :show-all-levels="false"
  4753. clearable
  4754. ></el-cascader>
  4755. </div>
  4756. </div>
  4757. </div>
  4758. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4759. style="margin: 35px 35px 0 0">
  4760. <div class="addToolImg">
  4761. <img src="../../assets/icon/add.png" alt />
  4762. </div>
  4763. <div>添加</div>
  4764. </div> -->
  4765. <div class="eva_btn_box">
  4766. <div class="eva_btn_left_box">
  4767. <button
  4768. class="c_pub_button_add pub_btn_eval_img"
  4769. @click="addEList(unitIndex, itemTaskIndex)"
  4770. >
  4771. 添加
  4772. </button>
  4773. <button
  4774. class="c_pub_button_add pub_btn_eval_source_img"
  4775. @click="openEList(unitIndex, itemTaskIndex)"
  4776. >
  4777. 资源
  4778. </button>
  4779. </div>
  4780. <button
  4781. class="c_pub_button_add"
  4782. @click="addCET(unitIndex, itemTaskIndex)"
  4783. v-if="itemTask.eList && itemTask.eList.length"
  4784. >
  4785. 添加资源模板
  4786. </button>
  4787. </div>
  4788. </div>
  4789. <div
  4790. v-if="evalua"
  4791. style="
  4792. border: 1px solid #e5e5e5;
  4793. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4794. "
  4795. :style="{
  4796. width: itemTask.isEvaFold ? '55%' : '116px',
  4797. }"
  4798. class="evaCss"
  4799. >
  4800. <!-- <div class="e_add_top">
  4801. <div class="e_add_title">
  4802. <span>当前使用目标管理</span>
  4803. <span>{{ eTitle }}</span>
  4804. <img src="../../assets/line.png" class="cru_line" style="
  4805. width: 125px;
  4806. height: 20px;
  4807. bottom: -10px;
  4808. left: 155px;
  4809. " />
  4810. </div>
  4811. </div> -->
  4812. <div class="e_add_content" style="width: 100%">
  4813. <div
  4814. class="e_add_list_pbox"
  4815. style="width: 100%"
  4816. >
  4817. <div class="e_add_list_pbox_title">
  4818. <span
  4819. class="type_title"
  4820. v-if="itemTask.isEvaFold"
  4821. >切换模式</span
  4822. >
  4823. <div
  4824. class="type_content"
  4825. v-if="itemTask.isEvaFold"
  4826. >
  4827. <span
  4828. :class="{ active: typeMode == 1 }"
  4829. @click="OtherMb(1, itemTaskIndex)"
  4830. >目标树</span
  4831. >
  4832. <span
  4833. :class="{ active: typeMode == 2 }"
  4834. @click="OtherMb(2, itemTaskIndex)"
  4835. >目标罗盘</span
  4836. >
  4837. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4838. </div>
  4839. <div
  4840. v-if="itemTask.isEvaFold"
  4841. class="show_taskD show"
  4842. style="margin: 0 0 0 auto"
  4843. @click="foldEva(itemTaskIndex)"
  4844. >
  4845. <img
  4846. src="../../assets/icon/new/icon-slide.png"
  4847. />收起目标
  4848. </div>
  4849. <div
  4850. v-else
  4851. style="margin: 0 0 0 auto"
  4852. class="show_taskD"
  4853. @click="foldEva(itemTaskIndex)"
  4854. >
  4855. <img
  4856. src="../../assets/icon/new/icon-slide.png"
  4857. />展开目标
  4858. </div>
  4859. </div>
  4860. <div
  4861. class="e_add_list_pbox_content"
  4862. v-if="itemTask.isEvaFold"
  4863. style="min-height: 200px"
  4864. >
  4865. <Mind
  4866. :showBar="false"
  4867. :mindData="data"
  4868. style="width: 100%"
  4869. :jsmindId="
  4870. unitIndex + '-' + itemTaskIndex + 'mind'
  4871. "
  4872. v-if="typeMode == 1"
  4873. ></Mind>
  4874. <Sunburst
  4875. :Josn="eJson"
  4876. :num="eJSONNum"
  4877. style="width: 100%"
  4878. v-if="typeMode == 2"
  4879. >
  4880. </Sunburst>
  4881. <SeeBoard
  4882. :Josn="eJson"
  4883. :num="eJSONNum"
  4884. :ename="eTitle"
  4885. style="width: 100%"
  4886. v-if="typeMode == 3"
  4887. ></SeeBoard>
  4888. </div>
  4889. </div>
  4890. </div>
  4891. </div>
  4892. </div>
  4893. </div>
  4894. <div class="funBlock" style="padding: 0">
  4895. <div
  4896. class="fold"
  4897. @click="fold(itemTaskIndex, $event)"
  4898. >
  4899. <div
  4900. class="arrow"
  4901. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4902. ></div>
  4903. <div>
  4904. {{
  4905. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4906. }}
  4907. </div>
  4908. </div>
  4909. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4910. <div>展开</div>
  4911. <div class="arrow">
  4912. <img src="../../assets/icon/expand.png" alt />
  4913. </div>
  4914. </div> -->
  4915. </div>
  4916. </div>
  4917. </div>
  4918. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4919. <!-- <div>
  4920. <img src="../../../assets/icon/new/addStage.png" alt />
  4921. <span>添加任务</span>
  4922. </div> -->
  4923. <button
  4924. class="c_pub_button_confirm pub_btn_add_task_img"
  4925. @click="addTaskBorder"
  4926. >
  4927. 添加任务
  4928. </button>
  4929. </div>
  4930. </div>
  4931. <div class="info_btnBox3">
  4932. <button
  4933. class="c_pub_button_return pub_btn_return_img"
  4934. v-if="steps == 1"
  4935. @click="
  4936. goTo(
  4937. '/course?userid=' +
  4938. userid +
  4939. '&oid=' +
  4940. oid +
  4941. '&org=' +
  4942. org +
  4943. '&role=' +
  4944. role
  4945. )
  4946. "
  4947. >
  4948. 返回课程
  4949. </button>
  4950. <button
  4951. class="c_pub_button_return pub_btn_last_img"
  4952. v-if="steps > 1 && steps != 5"
  4953. @click="lastSteps"
  4954. style="background: #dbdbdb"
  4955. >
  4956. {{ steps == 4 ? "返回课程" : "上一步" }}
  4957. </button>
  4958. <button
  4959. class="c_pub_button_confirm"
  4960. v-if="steps < 4"
  4961. @click="nextSteps"
  4962. :class="{
  4963. pub_btn_next_img: steps != 3,
  4964. pub_btn_finish_img: steps == 3,
  4965. }"
  4966. >
  4967. {{ steps == 3 ? "确认上传" : "下一步" }}
  4968. </button>
  4969. </div>
  4970. </div>
  4971. </div>
  4972. </div>
  4973. </div>
  4974. <div
  4975. style="
  4976. width: calc(100% - 20px);
  4977. background: rgb(255, 255, 255);
  4978. border-radius: 10px;
  4979. "
  4980. v-if="steps == 4"
  4981. >
  4982. <div class="basic_box_success">
  4983. <div class="right_img">
  4984. <img src="../../assets/icon/right.png" alt />
  4985. </div>
  4986. <div style="font-weight: bold">成功</div>
  4987. <!-- <div>您的课程编号</div>
  4988. <div class="number">{{ number }}</div>-->
  4989. <!-- <div class="success_button">
  4990. <div class="look_course" @click="isNoFinsh">
  4991. 邀请老师协同编辑
  4992. </div>
  4993. <div class="attend_others" @click="goCourse">预览课程</div>
  4994. </div> -->
  4995. </div>
  4996. </div>
  4997. <div
  4998. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  4999. @mouseenter="btnDisplay(true)"
  5000. @mouseleave="btnDisplay(false)"
  5001. v-if="false"
  5002. >
  5003. <button
  5004. class="c_pub_button_return pub_btn_return_img"
  5005. v-if="steps == 1 && isBtnDisplay"
  5006. @click="
  5007. goTo(
  5008. '/course?userid=' +
  5009. userid +
  5010. '&oid=' +
  5011. oid +
  5012. '&org=' +
  5013. org +
  5014. '&role=' +
  5015. role
  5016. )
  5017. "
  5018. >
  5019. 返回课程
  5020. </button>
  5021. <button
  5022. class="c_pub_button_return pub_btn_last_img"
  5023. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5024. @click="lastSteps"
  5025. >
  5026. {{ steps == 4 ? "返回课程" : "上一步" }}
  5027. </button>
  5028. <button
  5029. class="c_pub_button_confirm"
  5030. v-if="steps < 4 && isBtnDisplay"
  5031. @click="nextSteps"
  5032. :class="{
  5033. pub_btn_next_img: steps != 3,
  5034. pub_btn_finish_img: steps == 3,
  5035. }"
  5036. >
  5037. {{ steps == 3 ? "确认上传" : "下一步" }}
  5038. </button>
  5039. </div>
  5040. </div>
  5041. </div>
  5042. </div>
  5043. <el-dialog
  5044. title="提示"
  5045. :visible.sync="dialogVisible"
  5046. :append-to-body="true"
  5047. width="25%"
  5048. :before-close="handleClose"
  5049. class="dialog_diy2 customWidth"
  5050. >
  5051. <div>请复制该链接邀请协同编辑</div>
  5052. <div>http://www.boomyon.com/index-zhang.com</div>
  5053. <span slot="footer" class="dialog-footer">
  5054. <el-button type="primary">复制链接分享</el-button>
  5055. <el-button @click="dialogVisible = false">取消</el-button>
  5056. </span>
  5057. </el-dialog>
  5058. <el-dialog
  5059. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5060. :visible.sync="dialogVisible1"
  5061. :append-to-body="true"
  5062. width="25%"
  5063. :before-close="handleClose"
  5064. class="dialog_diy2 customWidth"
  5065. >
  5066. <el-form>
  5067. <el-form-item label="文档标题">
  5068. <el-input
  5069. v-model="tTitle"
  5070. auto-complete="off"
  5071. placeholder="请输入文档标题名..."
  5072. ></el-input>
  5073. </el-form-item>
  5074. <div>文档简介</div>
  5075. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5076. </el-form>
  5077. <span slot="footer" class="dialog-footer">
  5078. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5079. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5080. >添加</el-button
  5081. >
  5082. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5083. </span>
  5084. </el-dialog>
  5085. <el-dialog
  5086. title="添加文档"
  5087. :visible.sync="dialogVisible2"
  5088. :append-to-body="true"
  5089. width="500px"
  5090. :before-close="handleClose"
  5091. class="dialog_diy"
  5092. >
  5093. <el-form>
  5094. <el-form-item label="文档标题">
  5095. <el-input
  5096. v-model="templateC.title"
  5097. auto-complete="off"
  5098. placeholder="请输入文档标题名..."
  5099. ></el-input>
  5100. </el-form-item>
  5101. <div>文档内容</div>
  5102. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5103. </el-form>
  5104. <span slot="footer" class="dialog-footer">
  5105. <el-button @click="clearChoose">取 消</el-button>
  5106. <el-button type="primary" @click="wordNext()">确定</el-button>
  5107. </span>
  5108. </el-dialog>
  5109. <el-dialog
  5110. title="添加富文本"
  5111. :visible.sync="dialogVisible6"
  5112. :append-to-body="true"
  5113. width="500px"
  5114. :before-close="handleClose"
  5115. class="dialog_diy"
  5116. >
  5117. <el-form>
  5118. <el-form-item label="文本标题">
  5119. <el-input
  5120. ref="fuInput"
  5121. v-model="AttText.title"
  5122. auto-complete="off"
  5123. @input="change2"
  5124. placeholder="请输入文本标题..."
  5125. ></el-input>
  5126. </el-form-item>
  5127. <!-- <div>富文本内容</div> -->
  5128. <editor-bar
  5129. v-model="AttText.text"
  5130. @change="change"
  5131. v-if="dialogVisible6"
  5132. ></editor-bar>
  5133. </el-form>
  5134. <span slot="footer" class="dialog-footer">
  5135. <el-button @click="clearAttText">取 消</el-button>
  5136. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5137. </span>
  5138. </el-dialog>
  5139. <el-dialog
  5140. title="添加链接"
  5141. :visible.sync="dialogVisible7"
  5142. :append-to-body="true"
  5143. width="500px"
  5144. :before-close="handleClose"
  5145. class="dialog_diy lineCss"
  5146. >
  5147. <el-form>
  5148. <el-form-item label="标题" :label-width="formLabelWidth">
  5149. <span>
  5150. <el-input
  5151. placeholder="请输入链接标题"
  5152. clearable
  5153. v-model="lineTitle"
  5154. class="add_input"
  5155. ></el-input>
  5156. </span>
  5157. </el-form-item>
  5158. <el-form-item label="链接" :label-width="formLabelWidth">
  5159. <span>
  5160. <el-input
  5161. placeholder="请输入链接"
  5162. clearable
  5163. v-model="line"
  5164. class="add_input"
  5165. ></el-input>
  5166. </span>
  5167. </el-form-item>
  5168. </el-form>
  5169. <span slot="footer" class="dialog-footer">
  5170. <el-button @click="clearLine">取 消</el-button>
  5171. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5172. </span>
  5173. </el-dialog>
  5174. <el-dialog
  5175. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5176. :visible.sync="dialogVisibleSource"
  5177. :append-to-body="true"
  5178. width="100%"
  5179. :before-close="handleClose"
  5180. class="dialog_diy source_diy"
  5181. >
  5182. <div>
  5183. <sourceDialog
  5184. :sourceData.sync="sourceData"
  5185. :updateSourcePan="updateSourcePan"
  5186. ></sourceDialog>
  5187. </div>
  5188. <span slot="footer" class="dialog-footer">
  5189. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5190. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5191. >确定</el-button
  5192. >
  5193. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5194. </span>
  5195. </el-dialog>
  5196. <el-dialog
  5197. title="添加课程成员"
  5198. :visible.sync="dialogVisible3"
  5199. :append-to-body="true"
  5200. width="25%"
  5201. height="80%"
  5202. :before-close="handleClose"
  5203. class="addNewPP customWidth"
  5204. >
  5205. <div class="people">
  5206. <div class="people_top">
  5207. <div class="people_nav">选择成员</div>
  5208. <div class="people_top_right">
  5209. <div class="people_search">
  5210. <el-input
  5211. style="height: 100%"
  5212. placeholder="搜索成员名称"
  5213. v-model="searchPeople"
  5214. ></el-input>
  5215. <div class="search_img" @click="searchStudent">
  5216. <img src="../../assets/icon/search.png" alt />
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. <el-checkbox-group v-model="checkboxList" class="people_name">
  5222. <el-checkbox
  5223. v-for="item in studentJuri"
  5224. :key="item.userid"
  5225. :label="item.userid"
  5226. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5227. >
  5228. </el-checkbox-group>
  5229. </div>
  5230. <span slot="footer" class="dialog-footer">
  5231. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5232. <el-button type="primary" @click="isAddPP">确定</el-button>
  5233. </span>
  5234. </el-dialog>
  5235. <el-dialog
  5236. title="选择授课班级"
  5237. :visible.sync="dialogVisibleClass"
  5238. :append-to-body="true"
  5239. width="600px"
  5240. height="80%"
  5241. :before-close="handleClose"
  5242. class="addNewPP2"
  5243. >
  5244. <div class="check_classBox">
  5245. <div class="check_class_right">
  5246. <div
  5247. class="check_class"
  5248. :class="{ activeX: gradeId == '' }"
  5249. @click="(gradeId = ''), getClass()"
  5250. >
  5251. 全部
  5252. </div>
  5253. <el-tooltip
  5254. placement="top"
  5255. :content="item.name"
  5256. v-for="(item, index) in gradeList"
  5257. :key="index"
  5258. >
  5259. <div
  5260. class="check_class"
  5261. :class="{ activeX: gradeId == item.id }"
  5262. @click="(gradeId = item.id), getClass()"
  5263. >
  5264. {{ item.name }}
  5265. </div>
  5266. </el-tooltip>
  5267. </div>
  5268. <div class="check_class_left">
  5269. <div class="check_class_all_box">
  5270. <div class="check_class_left_title">选择班级</div>
  5271. <div style="display: flex; align-items: center; margin-left: auto">
  5272. <el-checkbox
  5273. v-model="checkAll"
  5274. @change="handleCheckAllChange"
  5275. class="all_check"
  5276. >全选</el-checkbox
  5277. >
  5278. </div>
  5279. </div>
  5280. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5281. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5282. </div> -->
  5283. <el-checkbox-group
  5284. v-model="checkboxList2"
  5285. class="check_class_item"
  5286. @change="InviteChange"
  5287. v-if="grade2.length"
  5288. >
  5289. <div v-for="item in grade2" :key="item.id" class="class_item">
  5290. <el-checkbox :label="item.id">
  5291. {{ item.name }}
  5292. </el-checkbox>
  5293. </div>
  5294. </el-checkbox-group>
  5295. <div v-if="!grade2.length">暂无数据</div>
  5296. </div>
  5297. </div>
  5298. <span slot="footer" class="dialog-footer">
  5299. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5300. <el-button type="primary" @click="isAddClass">确定</el-button>
  5301. </span>
  5302. </el-dialog>
  5303. <el-dialog
  5304. title="添加协同成员"
  5305. :visible.sync="dialogVisibleMember"
  5306. :append-to-body="true"
  5307. width="25%"
  5308. height="80%"
  5309. :before-close="handleClose"
  5310. class="addNewPP customWidth"
  5311. >
  5312. <div class="people">
  5313. <div class="people_top">
  5314. <div class="people_top_right">
  5315. <div class="people_search">
  5316. <el-input
  5317. placeholder="搜索成员名称"
  5318. v-model="searchTN"
  5319. @keyup.enter.native="getTeacher"
  5320. ></el-input>
  5321. <div class="search_img" @click="getTeacher">
  5322. <img src="../../assets/icon/search.png" alt />
  5323. </div>
  5324. </div>
  5325. </div>
  5326. <div class="people_nav" style="display: flex; align-items: center">
  5327. <div class="check_class_left_title">选择成员</div>
  5328. <div style="display: flex; align-items: center; margin-left: auto">
  5329. <el-checkbox
  5330. v-model="checkAll2"
  5331. @change="handleCheckAllChange2"
  5332. class="all_check"
  5333. >全选</el-checkbox
  5334. >
  5335. </div>
  5336. </div>
  5337. </div>
  5338. <el-checkbox-group
  5339. v-model="checkboxList3"
  5340. class="people_name"
  5341. v-if="teacherJuri.length"
  5342. @change="InviteChange2"
  5343. >
  5344. <el-checkbox
  5345. v-for="item in teacherJuri"
  5346. :key="item.userid"
  5347. :label="item.userid"
  5348. >
  5349. <div class="t_j_box">
  5350. <el-tooltip
  5351. placement="top"
  5352. :content="item.name ? item.name : '暂无姓名'"
  5353. >
  5354. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5355. </el-tooltip>
  5356. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5357. <span>{{ item.username.split('@')[0] }}</span>
  5358. </el-tooltip>
  5359. <el-tooltip placement="top" :content="item.school">
  5360. <span>{{ item.school }}</span>
  5361. </el-tooltip>
  5362. </div>
  5363. </el-checkbox>
  5364. </el-checkbox-group>
  5365. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5366. </div>
  5367. <span slot="footer" class="dialog-footer">
  5368. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5369. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5370. </span>
  5371. </el-dialog>
  5372. <el-dialog
  5373. title="创建问卷"
  5374. :visible.sync="dialogVisible5"
  5375. :append-to-body="true"
  5376. width="800px"
  5377. :before-close="
  5378. (done) => {
  5379. closePan(4);
  5380. }
  5381. "
  5382. class="dialog_diy fullStyle"
  5383. >
  5384. <div style="height: 100%">
  5385. <div
  5386. class="a_add_title"
  5387. style="
  5388. display: flex;
  5389. flex-direction: row;
  5390. align-items: center;
  5391. justify-content: center;
  5392. "
  5393. >
  5394. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5395. <el-input
  5396. v-model="askJson.askTitle"
  5397. placeholder="请输入标题"
  5398. style="width: 400px"
  5399. ></el-input>
  5400. </div>
  5401. <div class="a_addBox" style="height: calc(100% - 50px)">
  5402. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5403. <div
  5404. class="a_add_box"
  5405. v-for="(item1, index1) in askJson.askCount"
  5406. :key="index1"
  5407. >
  5408. <div class="a_add_checkType">
  5409. <span
  5410. :class="{
  5411. active:
  5412. askJson.askJson[index1].type == '1' ||
  5413. !askJson.askJson[index1].type,
  5414. }"
  5415. @click="checkAskType('1', askJson.askJson[index1])"
  5416. >单选题</span
  5417. >
  5418. <span
  5419. :class="{ active: askJson.askJson[index1].type == '2' }"
  5420. @click="checkAskType('2', askJson.askJson[index1])"
  5421. >多选题</span
  5422. >
  5423. </div>
  5424. <div class="a_add_head">
  5425. <div
  5426. style="
  5427. display: flex;
  5428. align-items: center;
  5429. width: 100%;
  5430. margin-right: 20px;
  5431. "
  5432. >
  5433. <span style="min-width: fit-content">{{
  5434. index1 + 1 + "、"
  5435. }}</span>
  5436. <textarea
  5437. class="a_add_head_input textarea_css"
  5438. v-autoHeight="40"
  5439. v-model="askJson.askJson[index1].askstitle"
  5440. placeholder="请输入题目"
  5441. @change="
  5442. () => {
  5443. $forceUpdate();
  5444. }
  5445. "
  5446. ></textarea>
  5447. </div>
  5448. <div
  5449. class="moveBtn moveBtn2"
  5450. style="margin: 0 20px 0 0px"
  5451. v-if="askJson.askCount != 1"
  5452. >
  5453. <div
  5454. class="chapter_upload_up"
  5455. @click.stop="askMove(1, index1)"
  5456. ></div>
  5457. <div
  5458. class="chapter_upload_down"
  5459. @click.stop="askMove(2, index1)"
  5460. ></div>
  5461. </div>
  5462. <div class="a_add_head_div">
  5463. <el-button
  5464. type="primary"
  5465. size="small"
  5466. @click="deleteAskList(index1)"
  5467. v-if="askJson.askCount != 1"
  5468. >删除
  5469. </el-button>
  5470. <el-button
  5471. type="primary"
  5472. size="small"
  5473. @click="addAskList(index1)"
  5474. >添加</el-button
  5475. >
  5476. </div>
  5477. </div>
  5478. <div class="a_add_body">
  5479. <div class="a_add_input" style="flex-direction: column">
  5480. <div
  5481. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5482. :key="checkIndex"
  5483. style="
  5484. margin: 20px 10px 0 0;
  5485. display: flex;
  5486. align-items: center;
  5487. position: relative;
  5488. "
  5489. >
  5490. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  5491. <textarea
  5492. class="a_add_head_input textarea_css"
  5493. v-autoHeight="40"
  5494. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5495. placeholder="请输入选项"
  5496. style="width: 300px"
  5497. @change="
  5498. () => {
  5499. $forceUpdate();
  5500. }
  5501. "
  5502. ></textarea>
  5503. <div
  5504. class="moveBtn moveBtn2"
  5505. style="margin: 0 0px 0 20px"
  5506. v-if="askJson.askJson[index1].askItem != 1"
  5507. >
  5508. <div
  5509. class="chapter_upload_up"
  5510. @click.stop="checkMove(1, index1, checkIndex)"
  5511. ></div>
  5512. <div
  5513. class="chapter_upload_down"
  5514. @click.stop="checkMove(2, index1, checkIndex)"
  5515. ></div>
  5516. </div>
  5517. <div class="a_add_body_div">
  5518. <el-button
  5519. type="primary"
  5520. size="small"
  5521. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5522. >添加</el-button
  5523. >
  5524. <el-button
  5525. type="primary"
  5526. size="small"
  5527. @click="
  5528. deletecheckList(askJson.askJson[index1], checkIndex)
  5529. "
  5530. v-if="askJson.askJson[index1].askItem != 1"
  5531. >删除
  5532. </el-button>
  5533. </div>
  5534. </div>
  5535. </div>
  5536. <!-- <div class="a_add_body_div">
  5537. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5538. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5539. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5540. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5541. </el-button>
  5542. </div> -->
  5543. </div>
  5544. </div>
  5545. </div>
  5546. </div>
  5547. <span slot="footer" class="dialog-footer">
  5548. <el-button @click="closePan(4)">取 消</el-button>
  5549. <el-button type="primary" @click="addAsk">确 定</el-button>
  5550. </span>
  5551. </el-dialog>
  5552. <el-dialog
  5553. title="创建选择题"
  5554. :visible.sync="dialogVisibleChoice"
  5555. :append-to-body="true"
  5556. width="800px"
  5557. :before-close="
  5558. (done) => {
  5559. closePan(45);
  5560. }
  5561. "
  5562. class="dialog_diy fullStyle"
  5563. >
  5564. <div style="height: 100%">
  5565. <!-- <div class="a_add_title" style="
  5566. display: flex;
  5567. flex-direction: row;
  5568. align-items: center;
  5569. justify-content: center;
  5570. ">
  5571. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5572. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5573. </div> -->
  5574. <div class="a_addBox" style="height: 100%">
  5575. <div
  5576. style="
  5577. font-size: 16px;
  5578. color: #c7c7c7;
  5579. display: flex;
  5580. align-items: center;
  5581. "
  5582. >
  5583. <!-- 请输入题目内容 -->
  5584. <button
  5585. class="c_pub_button_add pub_btn_paste_img"
  5586. @click="pasteOption"
  5587. style="margin-left: 10px"
  5588. v-if="isPasteChoice"
  5589. >
  5590. 智能粘贴
  5591. </button>
  5592. </div>
  5593. <div
  5594. class="a_add_box"
  5595. v-for="(item1, index1) in testJson.testCount"
  5596. :key="index1"
  5597. >
  5598. <div class="a_add_checkType">
  5599. <span
  5600. :class="{ active: testJson.testJson[index1].type == '1' }"
  5601. @click="checkTestType('1', testJson.testJson[index1])"
  5602. >单选题</span
  5603. >
  5604. <span
  5605. :class="{ active: testJson.testJson[index1].type == '2' }"
  5606. @click="checkTestType('2', testJson.testJson[index1])"
  5607. >多选题</span
  5608. >
  5609. </div>
  5610. <div class="a_add_head">
  5611. <div class="timuUpImg">
  5612. <div style="display: flex; align-items: center">
  5613. <span style="min-width: fit-content">{{
  5614. index1 + 1 + "、"
  5615. }}</span>
  5616. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5617. placeholder="请输入题目">
  5618. </el-input> -->
  5619. <textarea
  5620. class="a_add_head_input textarea_css"
  5621. v-autoHeight="40"
  5622. v-model="testJson.testJson[index1].teststitle"
  5623. placeholder="请输入题目"
  5624. @change="
  5625. () => {
  5626. $forceUpdate();
  5627. }
  5628. "
  5629. ></textarea>
  5630. </div>
  5631. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5632. <div
  5633. class="chapter_upload_up"
  5634. @click.stop="testMove(1, index1)"
  5635. ></div>
  5636. <div
  5637. class="chapter_upload_down"
  5638. @click.stop="testMove(2, index1)"
  5639. ></div>
  5640. </div>
  5641. <div
  5642. class="xzUpImg"
  5643. @click.stop="addImg($event)"
  5644. style="margin-right: 10px"
  5645. >
  5646. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5647. <input
  5648. type="file"
  5649. accept="image/*"
  5650. style="display: none"
  5651. @change="beforeUploadTiMu($event, index1)"
  5652. />
  5653. </div>
  5654. </div>
  5655. <div class="a_add_head_div">
  5656. <el-button
  5657. type="primary"
  5658. size="small"
  5659. @click="deleteTestList(index1)"
  5660. v-if="testJson.testCount != 1"
  5661. >删除
  5662. </el-button>
  5663. <el-button
  5664. type="primary"
  5665. size="small"
  5666. @click="addTestList(index1)"
  5667. >添加</el-button
  5668. >
  5669. </div>
  5670. </div>
  5671. <div
  5672. class="timuImgBox"
  5673. v-if="
  5674. testJson.testJson[index1].timuList &&
  5675. testJson.testJson[index1].timuList.length
  5676. "
  5677. >
  5678. <div
  5679. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5680. :key="tIndex"
  5681. class="timuImg"
  5682. @click.stop="previewImg(timg.src)"
  5683. >
  5684. <img :src="timg.src" alt="" />
  5685. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5686. <img src="../../assets/icon/delete.png" alt="" />
  5687. </div>
  5688. </div>
  5689. </div>
  5690. <div class="a_add_body">
  5691. <div class="a_add_input a_add_input_choice">
  5692. <el-radio-group
  5693. v-model="testJson.testJson[index1].answer"
  5694. v-if="testJson.testJson[index1].type == 1"
  5695. @change="
  5696. () => {
  5697. $forceUpdate();
  5698. }
  5699. "
  5700. >
  5701. <div class="radioBox">
  5702. <el-radio
  5703. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5704. .testItem"
  5705. :key="checkIndex"
  5706. :label="checkIndex"
  5707. >
  5708. <div style="margin-right: 10px">
  5709. 选项{{ checkIndex + 1 }}
  5710. </div>
  5711. <div
  5712. style="margin-right: 10px; width: 300px"
  5713. v-if="
  5714. testJson.testJson[index1].checkList[checkIndex] &&
  5715. testJson.testJson[index1].checkList[checkIndex]
  5716. .imgType &&
  5717. testJson.testJson[index1].checkList[checkIndex]
  5718. .imgType == 1
  5719. "
  5720. >
  5721. <div
  5722. class="inImg"
  5723. @click.stop="
  5724. previewImg(
  5725. testJson.testJson[index1].checkList[checkIndex]
  5726. .src
  5727. )
  5728. "
  5729. >
  5730. <el-image
  5731. :src="
  5732. testJson.testJson[index1].checkList[checkIndex]
  5733. .src
  5734. "
  5735. lazy
  5736. />
  5737. <!-- <img :src="
  5738. testJson.testJson[index1].checkList[checkIndex]
  5739. .src
  5740. " alt="" /> -->
  5741. </div>
  5742. </div>
  5743. <textarea
  5744. class="a_add_head_input textarea_css"
  5745. v-autoHeight="40"
  5746. v-else
  5747. v-model="
  5748. testJson.testJson[index1].checkList[checkIndex]
  5749. "
  5750. placeholder="请输入选项"
  5751. style="width: 300px; margin-right: 10px"
  5752. @change="
  5753. () => {
  5754. $forceUpdate();
  5755. }
  5756. "
  5757. ></textarea>
  5758. <div class="xzUpImg" @click.stop="addImg($event)">
  5759. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5760. <input
  5761. type="file"
  5762. accept="image/*"
  5763. style="display: none"
  5764. @change="beforeUploadTi($event, index1, checkIndex)"
  5765. />
  5766. </div>
  5767. <div
  5768. class="moveBtn moveBtn2"
  5769. v-if="testJson.testJson[index1].testItem != 1"
  5770. >
  5771. <div
  5772. class="chapter_upload_up"
  5773. @click.stop="tcheckMove(1, index1, checkIndex)"
  5774. ></div>
  5775. <div
  5776. class="chapter_upload_down"
  5777. @click.stop="tcheckMove(2, index1, checkIndex)"
  5778. ></div>
  5779. </div>
  5780. <div class="a_add_body_div">
  5781. <el-button
  5782. type="primary"
  5783. size="small"
  5784. @click.stop="
  5785. addTcheckList(testJson.testJson[index1], checkIndex)
  5786. "
  5787. >添加</el-button
  5788. >
  5789. <el-button
  5790. type="primary"
  5791. size="small"
  5792. @click.stop="
  5793. deleteTcheckList(
  5794. testJson.testJson[index1],
  5795. checkIndex
  5796. )
  5797. "
  5798. v-if="testJson.testJson[index1].testItem != 1"
  5799. >删除
  5800. </el-button>
  5801. </div>
  5802. </el-radio>
  5803. </div>
  5804. </el-radio-group>
  5805. <el-checkbox-group
  5806. v-model="testJson.testJson[index1].answer"
  5807. v-if="testJson.testJson[index1].type == '2'"
  5808. @change="
  5809. () => {
  5810. $forceUpdate();
  5811. }
  5812. "
  5813. >
  5814. <div class="radioBox">
  5815. <el-checkbox
  5816. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5817. .testItem"
  5818. :key="checkIndex1"
  5819. :label="checkIndex1"
  5820. >
  5821. <div style="margin-right: 10px">
  5822. 选项{{ checkIndex1 + 1 }}
  5823. </div>
  5824. <div
  5825. style="margin-right: 10px; width: 300px"
  5826. v-if="
  5827. testJson.testJson[index1].checkList[checkIndex1] &&
  5828. testJson.testJson[index1].checkList[checkIndex1]
  5829. .imgType &&
  5830. testJson.testJson[index1].checkList[checkIndex1]
  5831. .imgType == 1
  5832. "
  5833. >
  5834. <div
  5835. class="inImg"
  5836. @click.stop="
  5837. previewImg(
  5838. testJson.testJson[index1].checkList[checkIndex1]
  5839. .src
  5840. )
  5841. "
  5842. >
  5843. <el-image
  5844. :src="
  5845. testJson.testJson[index1].checkList[checkIndex1]
  5846. .src
  5847. "
  5848. lazy
  5849. />
  5850. <!-- <img :src="
  5851. testJson.testJson[index1].checkList[checkIndex1]
  5852. .src
  5853. " alt="" /> -->
  5854. </div>
  5855. </div>
  5856. <textarea
  5857. class="a_add_head_input textarea_css"
  5858. v-autoHeight="40"
  5859. v-else
  5860. v-model="
  5861. testJson.testJson[index1].checkList[checkIndex1]
  5862. "
  5863. placeholder="请输入选项"
  5864. style="width: 300px; margin-right: 10px"
  5865. @change="
  5866. () => {
  5867. $forceUpdate();
  5868. }
  5869. "
  5870. ></textarea>
  5871. <div class="xzUpImg" @click.stop="addImg($event)">
  5872. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5873. <input
  5874. type="file"
  5875. accept="image/*"
  5876. style="display: none"
  5877. @change="beforeUploadTi($event, index1, checkIndex1)"
  5878. />
  5879. </div>
  5880. <div
  5881. class="moveBtn moveBtn2"
  5882. v-if="testJson.testJson[index1].testItem != 1"
  5883. >
  5884. <div
  5885. class="chapter_upload_up"
  5886. @click.stop="tcheckMove(1, index1, checkIndex1)"
  5887. ></div>
  5888. <div
  5889. class="chapter_upload_down"
  5890. @click.stop="tcheckMove(2, index1, checkIndex1)"
  5891. ></div>
  5892. </div>
  5893. <div class="a_add_body_div">
  5894. <el-button
  5895. type="primary"
  5896. size="small"
  5897. @click.stop="
  5898. addTcheckList(
  5899. testJson.testJson[index1],
  5900. checkIndex1
  5901. )
  5902. "
  5903. >添加</el-button
  5904. >
  5905. <el-button
  5906. type="primary"
  5907. size="small"
  5908. @click.stop="
  5909. deleteTcheckList(
  5910. testJson.testJson[index1],
  5911. checkIndex1
  5912. )
  5913. "
  5914. v-if="testJson.testJson[index1].testItem != 1"
  5915. >删除
  5916. </el-button>
  5917. </div>
  5918. </el-checkbox>
  5919. </div>
  5920. </el-checkbox-group>
  5921. </div>
  5922. <!-- <div class="a_add_body_div">
  5923. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  5924. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  5925. v-if="testJson.testJson[index1].testItem != 1">删除
  5926. </el-button>
  5927. </div> -->
  5928. </div>
  5929. </div>
  5930. </div>
  5931. </div>
  5932. <span slot="footer" class="dialog-footer">
  5933. <el-button @click="closePan(45)">取 消</el-button>
  5934. <el-button type="primary" @click="addTest">确 定</el-button>
  5935. </span>
  5936. </el-dialog>
  5937. <el-dialog
  5938. title="添加工具"
  5939. :visible.sync="dialogVisible4"
  5940. :append-to-body="true"
  5941. width="600px"
  5942. :before-close="handleClose"
  5943. class="dialog_diy addToolsDia"
  5944. >
  5945. <div class="toolChoose">
  5946. <div class="tools">
  5947. <div
  5948. class="leftTools"
  5949. style="width: 100%; padding: 0 0 15px 0"
  5950. v-for="(itemTools, itemToolsIndex) in chapTools"
  5951. :key="itemToolsIndex"
  5952. >
  5953. <div
  5954. style="
  5955. display: flex;
  5956. flex-direction: row;
  5957. align-items: baseline;
  5958. flex-wrap: nowrap;
  5959. justify-content: flex-start;
  5960. position: relative;
  5961. "
  5962. >
  5963. <div class="chooseWho">
  5964. <div
  5965. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5966. @click="chapToolsType = 0"
  5967. >
  5968. 互动类
  5969. </div>
  5970. <div
  5971. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5972. @click="chapToolsType = 1"
  5973. >
  5974. 思维类
  5975. </div>
  5976. <div
  5977. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5978. @click="chapToolsType = 2"
  5979. >
  5980. 评价类
  5981. </div>
  5982. <div
  5983. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5984. @click="chapToolsType = 2"
  5985. >
  5986. 其他
  5987. </div>
  5988. </div>
  5989. </div>
  5990. <div style="min-height: 163px">
  5991. <div class="toolSort" v-if="chapToolsType == 0">
  5992. <div
  5993. class="tool"
  5994. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  5995. @click="chapAddTools(8)"
  5996. >
  5997. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  5998. <img
  5999. src="../../assets/icon/secondToolList/library.png"
  6000. alt
  6001. />
  6002. <div style="margin: 5px 0">素材库</div>
  6003. </div>
  6004. <div class="noCTool">
  6005. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6006. </div>
  6007. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6008. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6009. </div>
  6010. <!-- <div class="check" @click="chapAddTools(8)">
  6011. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6012. <div class="checkDiv" v-else>
  6013. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6014. </div>
  6015. </div> -->
  6016. </div>
  6017. </div>
  6018. <div class="toolSort" v-if="chapToolsType == 1">
  6019. <div
  6020. class="tool"
  6021. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6022. @click="chapAddTools(7)"
  6023. >
  6024. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6025. <img
  6026. src="../../assets/icon/secondToolList/mindNetwork.png"
  6027. alt
  6028. />
  6029. <div style="margin: 5px 0">思维网格</div>
  6030. </div>
  6031. <div class="noCTool">
  6032. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6033. </div>
  6034. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6035. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6036. </div>
  6037. <!-- <div class="check" @click="chapAddTools(7)">
  6038. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6039. <div class="checkDiv" v-else>
  6040. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6041. </div>
  6042. </div> -->
  6043. </div>
  6044. <div
  6045. class="tool"
  6046. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6047. @click="chapAddTools(1)"
  6048. >
  6049. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6050. <img
  6051. src="../../assets/icon/secondToolList/whiteBoard.png"
  6052. alt
  6053. />
  6054. <div style="margin: 5px 0">电子白板</div>
  6055. </div>
  6056. <div class="noCTool">
  6057. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6058. </div>
  6059. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6060. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6061. </div>
  6062. <!-- <div class="check" @click="chapAddTools(1)">
  6063. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6064. <div class="checkDiv" v-else>
  6065. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6066. </div>
  6067. </div> -->
  6068. </div>
  6069. <div
  6070. class="tool"
  6071. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6072. @click="chapAddTools(2)"
  6073. >
  6074. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6075. <img src="../../assets/icon/secondToolList/note.png" alt />
  6076. <div style="margin: 5px 0">便签</div>
  6077. </div>
  6078. <div class="noCTool">
  6079. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6080. </div>
  6081. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6082. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6083. </div>
  6084. <!-- <div class="check" @click="chapAddTools(2)">
  6085. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6086. <div class="checkDiv" v-else>
  6087. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6088. </div>
  6089. </div> -->
  6090. </div>
  6091. <div
  6092. class="tool"
  6093. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6094. @click="chapAddTools(6)"
  6095. >
  6096. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6097. <img src="../../assets/icon/secondToolList/doc.png" alt />
  6098. <div style="margin: 5px 0">协同文档</div>
  6099. </div>
  6100. <div class="noCTool">
  6101. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6102. </div>
  6103. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6104. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6105. </div>
  6106. <!-- <div class="check" @click="chapAddTools(6)">
  6107. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6108. <div class="checkDiv" v-else>
  6109. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6110. </div>
  6111. </div> -->
  6112. </div>
  6113. <div
  6114. class="tool"
  6115. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6116. @click="chapAddTools(3)"
  6117. >
  6118. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6119. <img
  6120. src="../../assets/icon/secondToolList/mindMapping.png"
  6121. alt
  6122. />
  6123. <div style="margin: 5px 0">思维导图</div>
  6124. </div>
  6125. <div class="noCTool">
  6126. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6127. </div>
  6128. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6129. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6130. </div>
  6131. <!-- <div class="check" @click="chapAddTools(3)">
  6132. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6133. <div class="checkDiv" v-else>
  6134. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6135. </div>
  6136. </div> -->
  6137. </div>
  6138. <div
  6139. class="tool"
  6140. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6141. @click="chapAddTools(31)"
  6142. >
  6143. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6144. <img
  6145. src="../../assets/icon/secondToolList/networkPanel.png"
  6146. alt
  6147. />
  6148. <div style="margin: 5px 0">数学画板</div>
  6149. </div>
  6150. <div class="noCTool">
  6151. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6152. </div>
  6153. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6154. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6155. </div>
  6156. <!-- <div class="check" @click="chapAddTools(31)">
  6157. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6158. <div class="checkDiv" v-else>
  6159. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6160. </div>
  6161. </div> -->
  6162. </div>
  6163. </div>
  6164. <div class="toolSort" v-if="chapToolsType == 2">
  6165. <div
  6166. class="tool"
  6167. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6168. @click="chapAddTools(5)"
  6169. >
  6170. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6171. <img src="../../assets/icon/thirdToolList/score.png" alt />
  6172. <div style="margin: 5px 0">量规评分</div>
  6173. </div>
  6174. <div class="noCTool">
  6175. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6176. </div>
  6177. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6178. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6179. </div>
  6180. <!-- <div class="check" @click="chapAddTools(5)">
  6181. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6182. <div class="checkDiv" v-else>
  6183. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6184. </div>
  6185. </div> -->
  6186. </div>
  6187. <div
  6188. class="tool"
  6189. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6190. @click="chapAddTools(4)"
  6191. >
  6192. <div
  6193. class="whiteBIcon"
  6194. @click.stop="openTools(chapCount, 4, null)"
  6195. >
  6196. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  6197. <div style="margin: 5px 0">问卷调查</div>
  6198. </div>
  6199. <div class="noCTool">
  6200. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6201. </div>
  6202. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6203. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6204. </div>
  6205. <!-- <div class="check" @click="chapAddTools(4)">
  6206. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6207. <div class="checkDiv" v-else>
  6208. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6209. </div>
  6210. </div> -->
  6211. </div>
  6212. </div>
  6213. </div>
  6214. <div>
  6215. <input
  6216. type="text"
  6217. placeholder="添加工具描述"
  6218. class="binfo_input"
  6219. style="margin: 20px 0; width: 100% !important"
  6220. v-model="itemTools.toolDetail"
  6221. />
  6222. </div>
  6223. </div>
  6224. </div>
  6225. </div>
  6226. <span slot="footer" class="dialog-footer">
  6227. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6228. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6229. </span>
  6230. </el-dialog>
  6231. <el-dialog
  6232. title="添加问答"
  6233. :visible.sync="dialogVisible8"
  6234. :append-to-body="true"
  6235. width="500px"
  6236. :before-close="
  6237. (done) => {
  6238. closePan(15);
  6239. }
  6240. "
  6241. class="dialog_diy"
  6242. >
  6243. <div>
  6244. <div
  6245. class="a_add_title"
  6246. style="
  6247. display: flex;
  6248. flex-direction: column;
  6249. align-items: flex-start;
  6250. justify-content: center;
  6251. "
  6252. >
  6253. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6254. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6255. <textarea
  6256. rows="1"
  6257. v-autoHeight="40"
  6258. type="text"
  6259. placeholder="请输入您要问的问题"
  6260. class="binfo_input"
  6261. style="width: 100% !important; border: 1px solid #dcdfe6"
  6262. v-model="answerQ"
  6263. ></textarea>
  6264. </div>
  6265. </div>
  6266. <span slot="footer" class="dialog-footer">
  6267. <el-button @click="closePan(15)">取 消</el-button>
  6268. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6269. </span>
  6270. </el-dialog>
  6271. <el-dialog
  6272. title="添加问题"
  6273. :visible.sync="dialogVisibleMp3"
  6274. :append-to-body="true"
  6275. width="500px"
  6276. :before-close="handleClose"
  6277. class="dialog_diy"
  6278. >
  6279. <div>
  6280. <div
  6281. class="a_add_title"
  6282. style="
  6283. display: flex;
  6284. flex-direction: column;
  6285. align-items: flex-start;
  6286. justify-content: center;
  6287. "
  6288. >
  6289. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6290. <el-input
  6291. v-model="answerQ"
  6292. placeholder="请输入您想要回答的问题"
  6293. ></el-input>
  6294. </div>
  6295. </div>
  6296. <span slot="footer" class="dialog-footer">
  6297. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6298. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6299. </span>
  6300. </el-dialog>
  6301. <el-dialog
  6302. title="上传图片"
  6303. :visible.sync="choosePicVisible"
  6304. :append-to-body="true"
  6305. width="600px"
  6306. :before-close="handleClose"
  6307. class="dialog_diy"
  6308. >
  6309. <div>
  6310. <div class="fileCss" style="padding-top: 20px">
  6311. <div>
  6312. <button class="info_btn" @click="addImg($event)">
  6313. 选择本地文件
  6314. <input
  6315. type="file"
  6316. accept="image/*"
  6317. style="display: none"
  6318. @change="beforeUpload1"
  6319. />
  6320. </button>
  6321. <div class="spanName">选择本地文件</div>
  6322. </div>
  6323. <!-- <div>
  6324. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6325. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6326. <img :src="cover[0].url" alt="" />
  6327. <div class="deletePic" @click="deleteSysPic">
  6328. <img src="../../assets/icon/delete.png" alt="" />
  6329. </div>
  6330. </div>
  6331. <div class="spanName">选择系统文件</div>
  6332. </div> -->
  6333. <div>
  6334. <el-button
  6335. @click="(searchImageValue = courseName), resetImage()"
  6336. v-if="isSysPic2 == false"
  6337. >选择网络文件</el-button
  6338. >
  6339. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6340. <img :src="cover[0].url" alt="" />
  6341. <div class="deletePic" @click="deleteSysPic">
  6342. <img src="../../assets/icon/delete.png" alt="" />
  6343. </div>
  6344. </div>
  6345. <div class="spanName">选择网络文件</div>
  6346. </div>
  6347. </div>
  6348. <!-- <div class="fileCss">
  6349. </div> -->
  6350. </div>
  6351. <span slot="footer" class="dialog-footer">
  6352. <el-button @click="choosePicVisible = false">取 消</el-button>
  6353. <el-button type="primary" @click="choosePicVisible = false"
  6354. >确 定</el-button
  6355. >
  6356. </span>
  6357. </el-dialog>
  6358. <el-dialog
  6359. title="选择系统文件"
  6360. :visible.sync="sysPicVisible"
  6361. :append-to-body="true"
  6362. width="710px"
  6363. :before-close="handleClose"
  6364. class="dialog_diy"
  6365. >
  6366. <div class="cru_selectBox" style="margin: 0">
  6367. <div
  6368. @click="getChoosePic(1)"
  6369. class="cru_select"
  6370. :class="chooseType == 1 ? 'cru_selected' : ''"
  6371. >
  6372. 绘画
  6373. </div>
  6374. <div
  6375. @click="getChoosePic(2)"
  6376. class="cru_select"
  6377. :class="chooseType == 2 ? 'cru_selected' : ''"
  6378. >
  6379. 科技
  6380. </div>
  6381. <div
  6382. @click="getChoosePic(3)"
  6383. class="cru_select"
  6384. :class="chooseType == 3 ? 'cru_selected' : ''"
  6385. >
  6386. 人文
  6387. </div>
  6388. <div
  6389. @click="getChoosePic(4)"
  6390. class="cru_select"
  6391. :class="chooseType == 4 ? 'cru_selected' : ''"
  6392. >
  6393. 艺术
  6394. </div>
  6395. </div>
  6396. <div class="sysPicBox">
  6397. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6398. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6399. </div>
  6400. </div>
  6401. </el-dialog>
  6402. <el-dialog
  6403. title="选择网络文件"
  6404. :visible.sync="sysPicVisible2"
  6405. :append-to-body="true"
  6406. width="710px"
  6407. :before-close="handleClose"
  6408. class="dialog_diy"
  6409. >
  6410. <div>
  6411. <div
  6412. class="people_top_right"
  6413. style="display: flex; align-items: center"
  6414. >
  6415. <div style="position: relative; width: 100%">
  6416. <el-input
  6417. style="height: 100%"
  6418. placeholder="搜索图片关键字"
  6419. v-model="searchImageValue"
  6420. @keyup.enter.native="resetImage()"
  6421. ></el-input>
  6422. <div class="search_img" @click="resetImage" style="right: 10px">
  6423. <img src="../../assets/icon/search.png" alt />
  6424. </div>
  6425. </div>
  6426. <el-button
  6427. type="primary"
  6428. size="default"
  6429. style="margin-left: 10px"
  6430. @click="changePicture"
  6431. >换一组</el-button
  6432. >
  6433. </div>
  6434. <div class="sysPicBox" v-loading="imageloading">
  6435. <div class="picNone" v-if="!imageList.length">
  6436. 请输入关键词搜索图片
  6437. </div>
  6438. <div
  6439. v-for="(sys, sysIndex) in imageList"
  6440. :key="sysIndex"
  6441. class="sysPic"
  6442. >
  6443. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6444. </div>
  6445. </div>
  6446. </div>
  6447. </el-dialog>
  6448. <el-dialog
  6449. title="选择匹配"
  6450. :visible.sync="dialogVisibleSelect"
  6451. :append-to-body="true"
  6452. width="800px"
  6453. :before-close="
  6454. (done) => {
  6455. closePan(41);
  6456. }
  6457. "
  6458. class="dialog_diy dialog_diy3 fullStyle"
  6459. >
  6460. <div v-if="selectJson" style="height: 100%">
  6461. <div class="select_box1" v-if="selectSteps == 1">
  6462. <div class="select_box1_img">
  6463. <div class="select_box1_title">
  6464. <span>上传题目图片</span
  6465. ><span>提示:请将所有题目上传为一张图片。</span>
  6466. </div>
  6467. <div class="select_box1_add_img">
  6468. <div
  6469. class="uploadFm"
  6470. @click="addImg($event)"
  6471. v-if="!selectJson.url"
  6472. >
  6473. <input
  6474. type="file"
  6475. accept="image/*"
  6476. style="display: none"
  6477. @change="beforeUploadSelect"
  6478. />
  6479. <img src="../../assets/icon/addPoster.png" alt="" />
  6480. </div>
  6481. <div class="isSysPic" v-else>
  6482. <img
  6483. :src="selectJson.url"
  6484. alt=""
  6485. @click="previewImg(selectJson.url)"
  6486. />
  6487. <div class="deletePic" @click="deleteSelectPic">
  6488. <img src="../../assets/icon/delete.png" alt="" />
  6489. </div>
  6490. </div>
  6491. </div>
  6492. </div>
  6493. <div class="select_box1_select">
  6494. <div class="select_box1_title">
  6495. <span>添加选项</span
  6496. ><span
  6497. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  6498. >
  6499. </div>
  6500. <div class="select_box1_select_box">
  6501. <el-input
  6502. v-for="(item2, checkIndex) in selectJson.select"
  6503. :key="checkIndex"
  6504. v-model="selectJson.select[checkIndex]"
  6505. placeholder="请输入选项"
  6506. style="width: 150px; margin: 10px 10px 0 0"
  6507. ></el-input>
  6508. <div class="select_box1_select_box_add">
  6509. <el-button
  6510. style="margin: 10px 0px 0 0"
  6511. type="primary"
  6512. size="small"
  6513. @click="addSelectList(selectJson)"
  6514. >
  6515. 添加</el-button
  6516. >
  6517. <el-button
  6518. type="primary"
  6519. size="small"
  6520. style="margin: 10px 0 0 0"
  6521. @click="deleteSelectList(selectJson)"
  6522. v-if="selectJson.select && selectJson.select.length > 0"
  6523. >删除</el-button
  6524. >
  6525. </div>
  6526. </div>
  6527. </div>
  6528. </div>
  6529. <div v-if="selectSteps == 2" style="height: 100%">
  6530. <div class="select_box2">
  6531. <div class="select_box2_title">设置每道题目的正确选项</div>
  6532. <div class="select_box2_box">
  6533. <div class="select_box2_img">
  6534. <img
  6535. :src="selectJson.url"
  6536. alt=""
  6537. @click="previewImg(selectJson.url)"
  6538. />
  6539. </div>
  6540. <div class="select_box2_answer">
  6541. <div class="select_answer_title">根据题目选择对应答案</div>
  6542. <div
  6543. class="select_box2_answer_box"
  6544. v-for="(item2, checkIndex) in selectJson.select"
  6545. :key="checkIndex"
  6546. >
  6547. <span>{{ checkIndex + 1 }}、</span>
  6548. <el-select
  6549. v-model="selectJson.answer[checkIndex]"
  6550. placeholder="请选择正确答案"
  6551. >
  6552. <el-option
  6553. v-for="(e, eIndex) in selectJson.select"
  6554. :key="eIndex"
  6555. :label="e"
  6556. :value="eIndex"
  6557. >
  6558. </el-option>
  6559. </el-select>
  6560. </div>
  6561. </div>
  6562. </div>
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <span slot="footer" class="dialog-footer">
  6567. <el-button
  6568. type="primary"
  6569. @click="nextSelectSteps()"
  6570. v-if="selectSteps == 1"
  6571. >下一步</el-button
  6572. >
  6573. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6574. >上一步</el-button
  6575. >
  6576. <el-button
  6577. type="primary"
  6578. @click="addSelectAnswer"
  6579. v-if="selectSteps == 2"
  6580. >确 定</el-button
  6581. >
  6582. </span>
  6583. </el-dialog>
  6584. <el-dialog
  6585. title="添加评价"
  6586. :visible.sync="dialogVisibleRate"
  6587. :append-to-body="true"
  6588. width="650px"
  6589. :before-close="handleClose"
  6590. class="dialog_diy"
  6591. >
  6592. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6593. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6594. <div class="pjCss" style="width: 100%">
  6595. <div
  6596. v-if="rateJson.length"
  6597. class="elist_input"
  6598. style="height: 360px; overflow: auto"
  6599. >
  6600. <div
  6601. v-for="(eItem, eIndex) in rateJson"
  6602. :key="eIndex"
  6603. class="elist_input_box"
  6604. >
  6605. <span style="min-width: 100px; text-align: right"
  6606. >个人评价指标:</span
  6607. >
  6608. <input
  6609. type="input"
  6610. v-model="eItem.value"
  6611. placeholder="填写评价维度"
  6612. />
  6613. <div class="remove" @click="deletRateList(eIndex)"></div>
  6614. <div style="width: 100%; display: flex">
  6615. <span style="min-width: 100px; text-align: right"
  6616. >评星等级:</span
  6617. >
  6618. <el-rate v-model="eItem.score" disabled></el-rate>
  6619. </div>
  6620. <div class="elist_inptu_text" style="align-items: flex-start">
  6621. <span style="min-width: 100px; text-align: right">描述:</span>
  6622. <textarea
  6623. class="rate_textarea"
  6624. :rows="3"
  6625. v-model="eItem.detail"
  6626. placeholder="填写维度描述"
  6627. ></textarea>
  6628. </div>
  6629. </div>
  6630. </div>
  6631. <div class="addToolFun" @click="addRateList()">
  6632. <div class="addToolImg">
  6633. <img src="../../assets/icon/add.png" alt />
  6634. </div>
  6635. <div>添加</div>
  6636. </div>
  6637. </div>
  6638. </div>
  6639. <span slot="footer" class="dialog-footer">
  6640. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6641. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6642. </span>
  6643. </el-dialog>
  6644. <el-dialog
  6645. title="排序设置"
  6646. :visible.sync="dialogVisibleSentence"
  6647. :append-to-body="true"
  6648. width="1000px"
  6649. :before-close="
  6650. (done) => {
  6651. closePan(47);
  6652. }
  6653. "
  6654. class="dialog_diy dialog_diy3 fullStyle"
  6655. >
  6656. <div style="height: 100%">
  6657. <div class="sentenBox" style="height: 100%">
  6658. <div class="addSen" @click="addSt">添加题目</div>
  6659. <div
  6660. v-for="(st, stIndex) in sentenceList"
  6661. :key="stIndex"
  6662. class="sentenContent"
  6663. >
  6664. <div class="sentenTopBox">
  6665. <div class="sentenTop" :index="stIndex + 1">
  6666. <div>题目设置</div>
  6667. <div>
  6668. <el-input
  6669. placeholder="请输入卡片内容"
  6670. v-model="st.sentenceTitle"
  6671. :maxlength="10"
  6672. ></el-input>
  6673. </div>
  6674. <div @click="addSen(stIndex)">添加</div>
  6675. <div
  6676. class="remove1"
  6677. v-if="sentenceList.length > 1"
  6678. @click="deleteSentence(stIndex)"
  6679. ></div>
  6680. </div>
  6681. </div>
  6682. <div class="cardList">
  6683. <div v-if="st.addSentence.length > 0" class="cardBox">
  6684. <div
  6685. class="isCard"
  6686. v-for="(s, sIndex) in st.addSentence"
  6687. :key="sIndex"
  6688. @click="setRightAnswer(s, stIndex, sIndex)"
  6689. >
  6690. <el-tooltip
  6691. class="item"
  6692. effect="light"
  6693. :content="s"
  6694. placement="top"
  6695. >
  6696. <div>{{ s }}</div>
  6697. </el-tooltip>
  6698. <div
  6699. class="deleteWord"
  6700. @click.stop="deleteS(s, stIndex, sIndex)"
  6701. >
  6702. <img src="../../assets/icon/delete.png" alt="" />
  6703. </div>
  6704. </div>
  6705. </div>
  6706. <div class="card">
  6707. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  6708. </div>
  6709. </div>
  6710. <div class="rightCardBox">
  6711. <div>正确顺序</div>
  6712. <div class="rightCardList">
  6713. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6714. <div
  6715. v-for="(r, rIndex) in st.rightAnswer"
  6716. :key="rIndex"
  6717. class="cardCss"
  6718. >
  6719. <div
  6720. class="isCard1"
  6721. @click="returnCard(r, stIndex, rIndex)"
  6722. >
  6723. <el-tooltip
  6724. class="item"
  6725. effect="light"
  6726. :content="r"
  6727. placement="top"
  6728. >
  6729. <div>{{ r }}</div>
  6730. </el-tooltip>
  6731. </div>
  6732. <div>{{ rIndex + 1 }}</div>
  6733. </div>
  6734. </div>
  6735. <div class="card" v-if="st.rightAnswer.length == 0">
  6736. <img
  6737. src="../../assets/icon/conSentences/noAnswer.png"
  6738. alt=""
  6739. />
  6740. </div>
  6741. <div class="card" v-else>
  6742. <img
  6743. src="../../assets/icon/conSentences/clickNo.png"
  6744. alt=""
  6745. />
  6746. </div>
  6747. </div>
  6748. </div>
  6749. </div>
  6750. </div>
  6751. </div>
  6752. <span slot="footer" class="dialog-footer">
  6753. <el-button @click="closePan(47)">取 消</el-button>
  6754. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6755. </span>
  6756. </el-dialog>
  6757. <el-dialog
  6758. title="添加表格"
  6759. :visible.sync="dialogVisibleTable"
  6760. :append-to-body="true"
  6761. width="95%"
  6762. :before-close="handleClose"
  6763. class="dialog_diy"
  6764. >
  6765. <el-form>
  6766. <!-- <el-form-item label="文本标题">
  6767. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6768. </el-form-item> -->
  6769. <div>表格内容</div>
  6770. <Table v-model="tableJson.text" @change="change"></Table>
  6771. </el-form>
  6772. <span slot="footer" class="dialog-footer">
  6773. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6774. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6775. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6776. </span>
  6777. </el-dialog>
  6778. <el-dialog
  6779. title="添加文档"
  6780. :visible.sync="dialogVisibleWord"
  6781. :append-to-body="true"
  6782. width="800px"
  6783. :before-close="handleClose"
  6784. class="dialog_diy"
  6785. >
  6786. <el-form>
  6787. <!-- <el-form-item label="文本标题">
  6788. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6789. </el-form-item> -->
  6790. <div>文档内容</div>
  6791. <editor-bar v-model="wordJson.text"></editor-bar>
  6792. </el-form>
  6793. <span slot="footer" class="dialog-footer">
  6794. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6795. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6796. </span>
  6797. </el-dialog>
  6798. <el-dialog
  6799. title="添加班级"
  6800. :visible.sync="dialogVisibleMoreUpload"
  6801. :append-to-body="true"
  6802. width="30%"
  6803. :before-close="handleClose"
  6804. class="dialog_diy"
  6805. >
  6806. <div
  6807. style="
  6808. width: 100%;
  6809. display: flex;
  6810. flex-direction: row;
  6811. flex-wrap: nowrap;
  6812. align-items: center;
  6813. justify-content: center;
  6814. "
  6815. >
  6816. <div>班级:</div>
  6817. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6818. <el-option
  6819. v-for="item in classJuri"
  6820. :key="item.id"
  6821. :label="item.name"
  6822. :value="item.id"
  6823. >
  6824. </el-option>
  6825. </el-select>
  6826. </div>
  6827. <span slot="footer" class="dialog-footer">
  6828. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6829. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6830. </span>
  6831. </el-dialog>
  6832. <el-dialog
  6833. title="设置随机码"
  6834. :visible.sync="dialogVisibleInvite"
  6835. :append-to-body="true"
  6836. width="360px"
  6837. :before-close="handleClose"
  6838. class="dialog_diy"
  6839. >
  6840. <div
  6841. style="
  6842. width: 100%;
  6843. display: flex;
  6844. flex-direction: row;
  6845. flex-wrap: nowrap;
  6846. align-items: center;
  6847. justify-content: center;
  6848. "
  6849. >
  6850. <div>随机码:</div>
  6851. <el-input
  6852. v-model="icode"
  6853. style="width: 240px"
  6854. placeholder="请输入随机码"
  6855. ></el-input>
  6856. </div>
  6857. <span slot="footer" class="dialog-footer">
  6858. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6859. <el-button type="primary" @click="addInvite">确定</el-button>
  6860. </span>
  6861. </el-dialog>
  6862. <el-dialog
  6863. title="添加预设时间"
  6864. :visible.sync="dialogVisiblePreTime"
  6865. :append-to-body="true"
  6866. width="450px"
  6867. :before-close="handleClose"
  6868. class="dialog_diy"
  6869. >
  6870. <div>
  6871. <div style="margin-bottom: 20px; color: #999">
  6872. 提示:点击“+”或“-”修改倒计时时长。
  6873. </div>
  6874. <Time
  6875. :preTime="preTime"
  6876. @updateTimeNum="updateTime"
  6877. v-if="dialogVisiblePreTime"
  6878. ></Time>
  6879. </div>
  6880. <span slot="footer" class="dialog-footer">
  6881. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6882. <el-button type="primary" @click="addPreTime">确定</el-button>
  6883. </span>
  6884. </el-dialog>
  6885. <el-dialog
  6886. title="导入目标"
  6887. :visible.sync="dialogVisiblemb"
  6888. :append-to-body="true"
  6889. width="70%"
  6890. :before-close="handleClose"
  6891. class="dialog_diy"
  6892. >
  6893. <div>
  6894. <div
  6895. style="
  6896. width: 100%;
  6897. display: flex;
  6898. flex-direction: row;
  6899. flex-wrap: nowrap;
  6900. align-content: center;
  6901. align-items: center;
  6902. justify-content: space-between;
  6903. "
  6904. >
  6905. <div
  6906. style="
  6907. display: flex;
  6908. flex-flow: row nowrap;
  6909. align-items: flex-start;
  6910. width: 100%;
  6911. flex-direction: column;
  6912. flex-wrap: nowrap;
  6913. position: relative;
  6914. "
  6915. >
  6916. <div class="e_box">
  6917. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6918. <div class="e_card_picture">
  6919. <img src="../../assets/e_picture.png" />
  6920. </div>
  6921. <div class="e_card_name">
  6922. <span>{{ item.title }}</span>
  6923. </div>
  6924. <div class="e_card_btn">
  6925. <span @click="checkEva(item.id, 2)">导入</span>
  6926. </div>
  6927. </div> -->
  6928. <!-- <div class="addEva" @click="openT">
  6929. <img src="../../assets/icon/addEva.png" alt="" />
  6930. </div> -->
  6931. <div
  6932. style="
  6933. display: flex;
  6934. justify-content: flex-end;
  6935. margin-bottom: 10px;
  6936. "
  6937. >
  6938. <el-button @click="openT" type="primary" size="small"
  6939. >添加目标</el-button
  6940. >
  6941. </div>
  6942. <el-table
  6943. v-if="evaJuri.length"
  6944. ref="table"
  6945. :data="evaJuri"
  6946. border
  6947. :fit="true"
  6948. style="width: 100%"
  6949. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  6950. :row-class-name="tableRowClassName"
  6951. >
  6952. <el-table-column
  6953. label="目标名称"
  6954. min-width="15"
  6955. align="center"
  6956. prop="title"
  6957. >
  6958. </el-table-column>
  6959. <el-table-column
  6960. prop="username"
  6961. label="负责人"
  6962. min-width="15"
  6963. align="center"
  6964. >
  6965. </el-table-column>
  6966. <el-table-column label="操作" width="250px">
  6967. <template slot-scope="scope">
  6968. <div class="btnBox">
  6969. <el-button
  6970. type="primary"
  6971. size="small"
  6972. @click="checkEva(scope.row.id, 2)"
  6973. >导入</el-button
  6974. >
  6975. </div>
  6976. </template>
  6977. </el-table-column>
  6978. </el-table>
  6979. <div
  6980. v-if="evaJuri.length === 0"
  6981. style="margin: 0 auto; color: #6e6e6e"
  6982. >
  6983. 暂无数据
  6984. </div>
  6985. </div>
  6986. </div>
  6987. </div>
  6988. </div>
  6989. <span slot="footer" class="dialog-footer">
  6990. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6991. </span>
  6992. </el-dialog>
  6993. <el-dialog
  6994. title="分组设置"
  6995. :visible.sync="dialogVisibleGroup"
  6996. :append-to-body="true"
  6997. width="650px"
  6998. :before-close="handleClose"
  6999. class="dialog_diy"
  7000. >
  7001. <div class="groupBox">
  7002. <div v-if="groupJson.group" class="groupContent">
  7003. <div class="groupTitle">请设置小组数量及名称</div>
  7004. <div
  7005. v-for="(item, index) in groupJson.group"
  7006. :key="index"
  7007. class="groupName"
  7008. >
  7009. <span class="groupn">第{{ index + 1 }}组名称:</span>
  7010. <el-input
  7011. v-model="item.name"
  7012. placeholder="请输入名称..."
  7013. style="width: 250px"
  7014. ></el-input>
  7015. <div class="groupBtn">
  7016. <el-button
  7017. type="primary"
  7018. size="small"
  7019. @click="addGroup(index)"
  7020. v-if="groupJson.group.length - 1 == index"
  7021. >
  7022. 添加</el-button
  7023. >
  7024. <el-button
  7025. type="primary"
  7026. size="small"
  7027. @click="deleteGroup(index)"
  7028. v-if="groupJson.group && groupJson.group.length > 1"
  7029. >删除</el-button
  7030. >
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <div class="groupContent">
  7035. <div class="groupTitle">请设置每组人数</div>
  7036. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7037. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7038. <el-input
  7039. v-model="groupJson.number"
  7040. style="width: 150px"
  7041. placeholder="请输入2-10的数字"
  7042. @change="numberPan"
  7043. ></el-input>
  7044. </div>
  7045. </div>
  7046. <span slot="footer" class="dialog-footer">
  7047. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  7048. <el-button type="primary" @click="addGroupJson">确定</el-button>
  7049. </span>
  7050. </el-dialog>
  7051. <el-dialog
  7052. title="修改名称"
  7053. :visible.sync="dialogVisibleupdataVideoT"
  7054. :append-to-body="true"
  7055. width="500px"
  7056. :before-close="handleClose"
  7057. class="dialog_diy"
  7058. >
  7059. <div
  7060. style="
  7061. width: 100%;
  7062. display: flex;
  7063. flex-direction: row;
  7064. flex-wrap: nowrap;
  7065. align-items: center;
  7066. justify-content: center;
  7067. "
  7068. >
  7069. <div style="min-width: fit-content">文件名称:</div>
  7070. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  7071. </div>
  7072. <span slot="footer" class="dialog-footer">
  7073. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  7074. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  7075. </span>
  7076. </el-dialog>
  7077. <el-dialog
  7078. title="创建作文题目"
  7079. :visible.sync="englishDialogVisible"
  7080. :append-to-body="true"
  7081. width="800px"
  7082. :before-close="
  7083. (done) => {
  7084. closePan(69);
  7085. }
  7086. "
  7087. class="dialog_diy fullStyle fullStyle1"
  7088. >
  7089. <englishRight
  7090. :englishList="englishList"
  7091. :oid="oid"
  7092. ref="engJson"
  7093. @setJson="addEnglish"
  7094. ></englishRight>
  7095. <span slot="footer" class="dialog-footer">
  7096. <el-button @click="englishDialogVisible = false">取 消</el-button>
  7097. <el-button type="primary" @click="addEnglish">确 定</el-button>
  7098. </span>
  7099. </el-dialog>
  7100. <el-dialog
  7101. title="选择课程模板"
  7102. :visible.sync="templateDialog"
  7103. :append-to-body="true"
  7104. width="630px"
  7105. :before-close="handleClose"
  7106. class="dialog_diy"
  7107. >
  7108. <div class="template_box">
  7109. <div
  7110. class="wordTeacher"
  7111. v-for="(aa, indexF) in templateArray"
  7112. :key="indexF"
  7113. @click="checkctJson(aa)"
  7114. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7115. >
  7116. <div class="wordPic">
  7117. <img src="../../assets/icon/new/course_template.png" alt />
  7118. </div>
  7119. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7120. <div
  7121. style="
  7122. margin-top: 10px;
  7123. line-height: 19px;
  7124. overflow: hidden;
  7125. text-overflow: ellipsis;
  7126. white-space: nowrap;
  7127. padding: 0 10px;
  7128. box-sizing: border-box;
  7129. width: 100%;
  7130. "
  7131. >
  7132. {{ aa.title }}
  7133. </div>
  7134. </el-tooltip>
  7135. </div>
  7136. <div
  7137. class="wordTeacher"
  7138. @click="checkctJson({ id: 1 })"
  7139. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7140. :class="{ wordTeacherA: ctJson.id == 1 }"
  7141. >
  7142. <div class="wordPic">
  7143. <img src="../../assets/icon/new/course_template.png" alt />
  7144. </div>
  7145. <div
  7146. style="
  7147. margin-top: 10px;
  7148. line-height: 19px;
  7149. overflow: hidden;
  7150. text-overflow: ellipsis;
  7151. white-space: nowrap;
  7152. padding: 0 20px;
  7153. "
  7154. >
  7155. 简易模板
  7156. </div>
  7157. </div>
  7158. <div
  7159. class="wordTeacher"
  7160. @click="checkctJson({ id: 2 })"
  7161. v-if="isPasteStage"
  7162. :class="{ wordTeacherA: ctJson.id == 2 }"
  7163. >
  7164. <div class="wordPic">
  7165. <img src="../../assets/icon/new/course_template.png" alt />
  7166. </div>
  7167. <div
  7168. style="
  7169. margin-top: 10px;
  7170. line-height: 19px;
  7171. overflow: hidden;
  7172. text-overflow: ellipsis;
  7173. white-space: nowrap;
  7174. padding: 0 20px;
  7175. "
  7176. >
  7177. 智能粘贴模式
  7178. </div>
  7179. </div>
  7180. </div>
  7181. <span slot="footer" class="dialog-footer">
  7182. <el-button @click="templateDialog = false">取 消</el-button>
  7183. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7184. </span>
  7185. </el-dialog>
  7186. <interVideo
  7187. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7188. :videoJson="videoJson"
  7189. @add="addVideoJson"
  7190. ></interVideo>
  7191. <el-dialog
  7192. title="切换阶段顺序"
  7193. :visible.sync="dialogVisibleStageChange"
  7194. :append-to-body="true"
  7195. width="400px"
  7196. :before-close="handleClose"
  7197. class="dialog_diy dialog_diyStage"
  7198. >
  7199. <div class="change_stageBox">
  7200. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7201. <div class="nt_taskBox">
  7202. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  7203. <div class="nt_taskName">
  7204. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7205. <span>{{ t.dyName }}</span>
  7206. </el-tooltip>
  7207. </div>
  7208. </div>
  7209. <div class="moveBtn" v-if="unitJson3.length > 1">
  7210. <div
  7211. class="chapter_upload_up"
  7212. @click.stop="stageMove(1, tIndex)"
  7213. ></div>
  7214. <div
  7215. class="chapter_upload_down"
  7216. @click.stop="stageMove(2, tIndex)"
  7217. ></div>
  7218. </div>
  7219. </div>
  7220. </div>
  7221. <span slot="footer" class="dialog-footer">
  7222. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  7223. <el-button type="primary" @click="updateChange">确定</el-button>
  7224. </span>
  7225. </el-dialog>
  7226. <el-dialog
  7227. title="添加资源模板"
  7228. :visible.sync="cetBoxDialog"
  7229. :append-to-body="true"
  7230. width="400px"
  7231. :before-close="handleClose"
  7232. class="dialog_diy"
  7233. >
  7234. <div class="addTypeChoose" style="justify-content: center">
  7235. <div style="min-width: 100px">模板名称:</div>
  7236. <el-input v-model="templateName" style="width: 200px"></el-input>
  7237. </div>
  7238. <div class="addTypeBox">
  7239. <div class="addTypeChoose">
  7240. <div style="min-width: 100px">选择一级分类:</div>
  7241. <el-select
  7242. v-model="setTypeJson.one"
  7243. placeholder="请选择"
  7244. @change="getTwoType(setTypeJson.one)"
  7245. style="width: 200px"
  7246. >
  7247. <el-option
  7248. v-for="(item, index) in oneJson"
  7249. :key="index"
  7250. :label="item.name"
  7251. :value="item.id"
  7252. >
  7253. </el-option>
  7254. </el-select>
  7255. </div>
  7256. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7257. <div style="min-width: 100px">选择二级分类:</div>
  7258. <el-select
  7259. v-model="setTypeJson.two"
  7260. placeholder="请选择"
  7261. style="width: 200px"
  7262. >
  7263. <el-option
  7264. v-for="(item1, index1) in twoJson"
  7265. :key="index1"
  7266. :label="item1.name"
  7267. :value="item1.id"
  7268. >
  7269. </el-option>
  7270. </el-select>
  7271. </div>
  7272. </div>
  7273. <span slot="footer" class="dialog-footer">
  7274. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  7275. <el-button @click="close()">关 闭</el-button>
  7276. </span>
  7277. </el-dialog>
  7278. <evaBox
  7279. :userid="userid"
  7280. :oid="oid"
  7281. :org="org"
  7282. :dialogVisibleEva.sync="evaBoxDialog"
  7283. @updateEvaJson="updateEvaJson"
  7284. ></evaBox>
  7285. <EnglishVoice
  7286. :oid="oid"
  7287. :org="org"
  7288. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7289. :englishVoiceJson="englishVoiceJson"
  7290. @setEnglishVoiceJson="setEnglishVoiceJson"
  7291. ></EnglishVoice>
  7292. </div>
  7293. </template>
  7294. <script>
  7295. import "../../common/aws-sdk-2.235.1.min.js";
  7296. import { tools as toolsData } from "../../common/tools.js";
  7297. // import "../../common/aws-sdk-2.99.0.min.js";
  7298. import $ from "jquery";
  7299. import EditorBar from "../../components/tools/wangEnduit";
  7300. import Table from "../../components/tools/table";
  7301. import Mind from "../tools/jsmind2";
  7302. import Time from "../tools/time.vue";
  7303. import Sunburst from "../tools/sunburst";
  7304. import SeeBoard from "../tools/seeBoard";
  7305. import weilaiData from "./components/weilai.js";
  7306. import sourceDialog from "./teacherSource/dialog.vue";
  7307. import interVideo from "./interVideo/index.vue";
  7308. import englishRight from "./components/englishRight.vue";
  7309. import evaBox from "./evaBox/index.vue";
  7310. import EnglishVoice from "./EnglishVoice/index.vue";
  7311. export default {
  7312. components: {
  7313. EditorBar,
  7314. Mind,
  7315. Time,
  7316. Sunburst,
  7317. SeeBoard,
  7318. Table,
  7319. sourceDialog,
  7320. interVideo,
  7321. englishRight,
  7322. evaBox,
  7323. EnglishVoice,
  7324. },
  7325. data() {
  7326. return {
  7327. checkAll: false,
  7328. checkAll2: false,
  7329. chooseType: 1,
  7330. checkedCities: [],
  7331. isIndeterminate: true,
  7332. isIndeterminate2: true,
  7333. isSysPic: false,
  7334. isSysPic2: false,
  7335. steps: 1,
  7336. nbOrder: 0,
  7337. courseId: "",
  7338. chapToolsType: 0,
  7339. chapTools: [
  7340. {
  7341. tools: [],
  7342. toolDetail: "",
  7343. },
  7344. ],
  7345. line: "",
  7346. lineTitle: "",
  7347. sysPic: [],
  7348. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7349. sentenceList2: [],
  7350. isPushTitleList: [],
  7351. lineCount: 0,
  7352. lineType: 0,
  7353. chapCount: 0,
  7354. courseName: "",
  7355. isTeacherSee: false,
  7356. courseText: "",
  7357. preTime: 0,
  7358. formLabelWidth: "100px",
  7359. choosePicVisible: false,
  7360. sysPicVisible: false,
  7361. sysPicVisible2: false,
  7362. uploadLoading1: false,
  7363. noneBtnImg: false,
  7364. updateBoolean2: false,
  7365. unitIndex: 0,
  7366. taskCount: 0,
  7367. dialogVisible: false,
  7368. dialogVisible1: false,
  7369. dialogVisible2: false,
  7370. dialogVisible3: false,
  7371. dialogVisible4: false,
  7372. dialogVisible5: false,
  7373. dialogVisible6: false,
  7374. dialogVisible7: false,
  7375. dialogVisible8: false,
  7376. dialogVisible9: false,
  7377. dialogVisibleClass: false,
  7378. dialogVisibleMember: false,
  7379. dialogVisibleMp3: false,
  7380. dialogVisibleSelect: false,
  7381. dialogVisibleSentence: false,
  7382. dialogVisibleRate: false,
  7383. dialogVisibleChoice: false,
  7384. dialogVisiblemb: false,
  7385. dialogVisibleInvite: false,
  7386. dialogVisibleSource: false,
  7387. dialogVisibleVideo: false,
  7388. dialogVisibleStageChange: false,
  7389. dialogVisibleupdataVideoT: false,
  7390. englishDialogVisible: false,
  7391. templateDialog: false,
  7392. ctJson: {},
  7393. isClickColor: 1,
  7394. toolIndexType: "",
  7395. publicTool: 0,
  7396. searchPeople: "",
  7397. searchTN: "",
  7398. userid: this.$route.query.userid,
  7399. oid: this.$route.query.oid,
  7400. org: this.$route.query.org,
  7401. role: this.$route.query.role,
  7402. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7403. dialogVisibleTable: false,
  7404. dialogVisibleWord: false,
  7405. tableJson: { text: "" },
  7406. wordJson: { text: "" },
  7407. dialogVisibleMoreUpload: false,
  7408. dialogVisiblePreTime: false,
  7409. uploadJson: [],
  7410. classJuri: [],
  7411. gradeList: [],
  7412. cover: [], //课程封面
  7413. myWord: [],
  7414. evaJuri: [],
  7415. evalua: "",
  7416. targetArray: [],
  7417. eTitle: "",
  7418. eJson: {},
  7419. fid: "", //一级
  7420. sid: "", //二级
  7421. tid: "", //二级
  7422. typeMode: 1,
  7423. eJSONNum: 0,
  7424. data: {
  7425. meta: {
  7426. name: "example",
  7427. author: "dd@163.com",
  7428. version: "0.2",
  7429. },
  7430. format: "node_array",
  7431. data: [{ id: "root", isroot: true, topic: "" }],
  7432. },
  7433. askJson: {
  7434. askCount: 1,
  7435. askTitle: "",
  7436. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7437. },
  7438. askJson2: {},
  7439. testJson: {},
  7440. testJson2: {},
  7441. selectJson: {},
  7442. selectJson2: {},
  7443. rateJson: [],
  7444. unitJson2: [],
  7445. unitJson3: [],
  7446. unitJson: [
  7447. {
  7448. dyName: "", //单元标题
  7449. chapterInfo: [
  7450. {
  7451. isread: false,
  7452. chapterid: this.guid(),
  7453. title: "",
  7454. courseName: "",
  7455. taskJson: [
  7456. {
  7457. task: "",
  7458. taskDetail: "",
  7459. chapterData: [],
  7460. toolText: "",
  7461. toolChoose: [
  7462. {
  7463. tool: [],
  7464. toolDetail: "",
  7465. toolType: 0,
  7466. askCount: 1,
  7467. askTitle: "",
  7468. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7469. },
  7470. ],
  7471. isShowTools: false,
  7472. askCount: 1,
  7473. isFold: 1,
  7474. askTitle: "",
  7475. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7476. checkJson: [{ checkCount: [], checkPerent: [] }],
  7477. homeworkList: [],
  7478. },
  7479. ],
  7480. itemCount: 1,
  7481. fileList1: [],
  7482. video: [],
  7483. testData: [],
  7484. pData: [],
  7485. templateArray: [],
  7486. },
  7487. ],
  7488. },
  7489. ],
  7490. templateArray: [],
  7491. studentJuri: [],
  7492. teacherJuri: [],
  7493. checkboxList: [],
  7494. checkboxList2: [],
  7495. checkboxList3: [],
  7496. classSearch: "",
  7497. gradeId: "",
  7498. number: "",
  7499. tTitle: "",
  7500. tdetail: "",
  7501. templateC: {},
  7502. AttText: {},
  7503. AttTextType: 0,
  7504. AttTextIndex: 0,
  7505. cTemplate: "",
  7506. CourseType: [],
  7507. CourseType1: [],
  7508. CourseType2: [],
  7509. CourseTypeJson: {},
  7510. CourseTypeJson1: {},
  7511. courseTypeId: [],
  7512. courseTypeId1: [],
  7513. courseTypeSon: [],
  7514. clearArray: [],
  7515. pTypeCheck: [],
  7516. pTypeCheckName: [],
  7517. loading: false,
  7518. toolType: 0,
  7519. inputShow: true,
  7520. inputShow2: true,
  7521. toolIndex: 0,
  7522. cidType: 0,
  7523. answerQ: "",
  7524. answerQ2: "",
  7525. grade: [],
  7526. grade2: [],
  7527. courseUserid: "",
  7528. timer: null,
  7529. timer2: null,
  7530. pasteTimer: null,
  7531. checkId: "",
  7532. isDelete: 1,
  7533. addindex: 0,
  7534. selectSteps: 1,
  7535. groupJson: {},
  7536. dialogVisibleGroup: false,
  7537. rightBoxHeight: 0,
  7538. ManAarray: [],
  7539. checkBoolean: false,
  7540. inviteCode: [],
  7541. inviteId: "",
  7542. icode: "",
  7543. easyArray: [2, 4],
  7544. sourceData: {},
  7545. updateSourcePan: false,
  7546. videoJson: {},
  7547. isBtnDisplay: false,
  7548. isStepDisplay: false,
  7549. isPasteStage: false,
  7550. isPasteTask: false,
  7551. isPasteChoice: false,
  7552. imageList: [],
  7553. imageloading: false,
  7554. searchImageValue: "",
  7555. ppage: 1,
  7556. toolsData: toolsData,
  7557. oldIndex: 0,
  7558. dragType: "",
  7559. oldUnitIndex: 0,
  7560. oldData: null,
  7561. newIndex: "",
  7562. englishList: {},
  7563. typeIndex: "",
  7564. courseState: 2,
  7565. taskJSONa: [
  7566. {
  7567. task: "",
  7568. taskDetail: "",
  7569. chapterData: [],
  7570. toolText: "",
  7571. toolChoose: [
  7572. {
  7573. tool: [],
  7574. toolDetail: "",
  7575. toolType: 0,
  7576. askCount: 1,
  7577. askTitle: "",
  7578. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7579. },
  7580. ],
  7581. isShowTools: false,
  7582. askCount: 1,
  7583. isFold: 1,
  7584. askTitle: "",
  7585. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7586. checkJson: [{ checkCount: [], checkPerent: [] }],
  7587. homeworkList: [],
  7588. },
  7589. ],
  7590. checkUnitIndex: 0,
  7591. isdrag: "",
  7592. evaIndex: "",
  7593. evatIndex: "",
  7594. evaBoxDialog: false,
  7595. EnglishVoiceDialog: false,
  7596. englishVoiceJson: {},
  7597. cetIndex: "",
  7598. cettIndex: "",
  7599. cetBoxDialog: false,
  7600. templateName: "",
  7601. setTypeJson: {
  7602. one: "",
  7603. two: "",
  7604. },
  7605. twoJson: [],
  7606. oneJson: [],
  7607. updateKey:1
  7608. };
  7609. },
  7610. directives: {
  7611. autoHeight: {
  7612. update(el, binding) {
  7613. const { value } = binding;
  7614. if (value && typeof value === "number") {
  7615. el.style.height = `${value}px`;
  7616. } else {
  7617. el.style.height = "auto";
  7618. }
  7619. },
  7620. componentUpdated(el) {
  7621. el.style.height = `${el.scrollHeight + 5}px`;
  7622. },
  7623. },
  7624. },
  7625. computed: {
  7626. // rightBoxHeight: function () {
  7627. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7628. // },
  7629. offsetLetfPx: function () {
  7630. //addnum可以直接在模板语法里面用,相当于data内的值
  7631. return (
  7632. $(".cru_select")[this.unitIndex] &&
  7633. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7634. );
  7635. },
  7636. getMan2() {
  7637. return function (people) {
  7638. let _people = people;
  7639. let _people2 = "";
  7640. if (this.ManAarray.length) {
  7641. for (var i = 0; i < this.ManAarray.length; i++) {
  7642. if (this.ManAarray[i].userid == people) {
  7643. _people2 = this.ManAarray[i].name;
  7644. break;
  7645. }
  7646. }
  7647. }
  7648. if (people == this.courseUserid) {
  7649. return "";
  7650. }
  7651. return this.ManAarray.length ? _people2 : "";
  7652. };
  7653. },
  7654. getListMan2() {
  7655. return function (list) {
  7656. let _people2 = [];
  7657. if (this.ManAarray.length) {
  7658. for (var j = 0; j < list.length; j++) {
  7659. let people = list[j];
  7660. for (var i = 0; i < this.ManAarray.length; i++) {
  7661. if (
  7662. this.ManAarray[i].userid == people &&
  7663. people != this.courseUserid
  7664. ) {
  7665. _people2.push(this.ManAarray[i].name);
  7666. break;
  7667. }
  7668. }
  7669. }
  7670. }
  7671. return this.ManAarray.length ? _people2.join("、") : "";
  7672. };
  7673. },
  7674. isInvite() {
  7675. return function (cid) {
  7676. let array = [];
  7677. for (var i = 0; i < this.inviteCode.length; i++) {
  7678. array.push(this.inviteCode[i].cid);
  7679. }
  7680. return array.indexOf(cid) != -1;
  7681. };
  7682. },
  7683. getInviteCodeC() {
  7684. return function (cid) {
  7685. let array = [];
  7686. for (var i = 0; i < this.inviteCode.length; i++) {
  7687. array.push(this.inviteCode[i].cid);
  7688. }
  7689. return this.inviteCode[array.indexOf(cid)].ic;
  7690. };
  7691. },
  7692. getClassC() {
  7693. return function (c) {
  7694. let _c2 = "";
  7695. if (this.grade.length) {
  7696. for (var i = 0; i < this.grade.length; i++) {
  7697. if (this.grade[i].id == c) {
  7698. _c2 = this.grade[i].name;
  7699. break;
  7700. }
  7701. }
  7702. }
  7703. return this.grade.length ? _c2 : "";
  7704. };
  7705. },
  7706. getListClassC() {
  7707. return function (list) {
  7708. let _c2 = [];
  7709. if (this.grade.length) {
  7710. for (var j = 0; j < list.length; j++) {
  7711. let c = list[j];
  7712. for (var i = 0; i < this.grade.length; i++) {
  7713. if (this.grade[i].id == c) {
  7714. _c2.push(this.grade[i].name);
  7715. break;
  7716. }
  7717. }
  7718. }
  7719. }
  7720. return this.grade.length ? _c2.join("、") : "";
  7721. };
  7722. },
  7723. },
  7724. watch: {
  7725. unitIndex(newValue, oldValue) {
  7726. if (this.isDelete == 2) {
  7727. this.isDelete = 1;
  7728. return;
  7729. }
  7730. if (this.cid != "") {
  7731. let _unitIndex = oldValue;
  7732. if (
  7733. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7734. JSON.stringify(this.unitJson[_unitIndex])
  7735. ) {
  7736. this.$refs.rightboxR.scrollTop = 0;
  7737. return;
  7738. }
  7739. let cPan = 1;
  7740. for (
  7741. var j = 0;
  7742. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7743. j++
  7744. ) {
  7745. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7746. j
  7747. ].proVisible = false;
  7748. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7749. j
  7750. ].proVisible2 = false;
  7751. if (
  7752. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7753. .length > 1
  7754. ) {
  7755. for (
  7756. var z = 0;
  7757. z <
  7758. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7759. .length;
  7760. z++
  7761. ) {
  7762. if (
  7763. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7764. .toolChoose[z].tool.length
  7765. ) {
  7766. this.$message.error("请把工具添加完整");
  7767. cPan = 2;
  7768. break;
  7769. }
  7770. }
  7771. }
  7772. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7773. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7774. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7775. (ele) => {
  7776. return ele.value != "";
  7777. }
  7778. );
  7779. }
  7780. }
  7781. if (cPan == 2) {
  7782. this.unitIndex = oldValue;
  7783. return;
  7784. }
  7785. for (var i = 0; i < this.unitJson.length; i++) {
  7786. if (this.addindex != i) {
  7787. delete this.unitJson[i].isUpdate;
  7788. }
  7789. }
  7790. this.$refs.rightboxR.scrollTop = 0;
  7791. this.addindex = -1;
  7792. let params = [
  7793. {
  7794. cid: this.cid,
  7795. chapters: JSON.stringify(this.unitJson),
  7796. uid: this.userid,
  7797. unitIndex: _unitIndex,
  7798. },
  7799. ];
  7800. this.ajax
  7801. .post(this.$store.state.api + "updateWorkNew4", params)
  7802. .then((res) => {
  7803. // this.$message({
  7804. // message: "修改成功",
  7805. // type: "success",
  7806. // });
  7807. // this.courseId = this.cid;
  7808. })
  7809. .catch((err) => {
  7810. this.$message.error("网络不佳");
  7811. console.error(err);
  7812. });
  7813. }
  7814. },
  7815. steps(newValue, old) {
  7816. if (newValue == 4) {
  7817. let cPan = 1;
  7818. for (var i = 0; i < this.unitJson.length; i++) {
  7819. for (
  7820. var j = 0;
  7821. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7822. j++
  7823. ) {
  7824. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7825. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7826. if (
  7827. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7828. ) {
  7829. for (
  7830. var z = 0;
  7831. z <
  7832. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7833. z++
  7834. ) {
  7835. if (
  7836. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  7837. .tool.length
  7838. ) {
  7839. this.$message.error("请把工具添加完整");
  7840. cPan = 2;
  7841. break;
  7842. }
  7843. }
  7844. }
  7845. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7846. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7847. i
  7848. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7849. return ele.value != "";
  7850. });
  7851. }
  7852. }
  7853. }
  7854. this.inputShow = true;
  7855. if (cPan == 2) {
  7856. this.steps = old;
  7857. return;
  7858. }
  7859. this.goTo(
  7860. "/course?userid=" +
  7861. this.userid +
  7862. "&oid=" +
  7863. this.oid +
  7864. "&org=" +
  7865. this.org +
  7866. "&role=" +
  7867. this.role
  7868. );
  7869. }
  7870. },
  7871. },
  7872. methods: {
  7873. tableRowClassName({ row, rowIndex }) {
  7874. if ((rowIndex + 1) % 2 === 0) {
  7875. return "even_row";
  7876. } else {
  7877. return "";
  7878. }
  7879. },
  7880. close() {
  7881. this.cetIndex = "";
  7882. this.cettIndex = "";
  7883. this.templateName = "";
  7884. this.cetBoxDialog = false;
  7885. },
  7886. openAI() {
  7887. top.postMessage({ tools: "64" }, "*");
  7888. },
  7889. setMan() {
  7890. // let teacherJuri = this.teacherJuri2;
  7891. this.ManAarray = [];
  7892. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7893. if (_user.indexOf(this.userid) == -1) {
  7894. _user.push(this.userid);
  7895. }
  7896. if (_user.indexOf(this.courseUserid) == -1) {
  7897. _user.push(this.courseUserid);
  7898. }
  7899. let params = {
  7900. uid: _user.join(","),
  7901. };
  7902. this.ajax
  7903. .get(this.$store.state.api + "getAllUserById", params)
  7904. .then((res) => {
  7905. let teacherJuri = res.data[0];
  7906. this.ManAarray = teacherJuri;
  7907. })
  7908. .catch((err) => {
  7909. console.error(err);
  7910. });
  7911. },
  7912. previewImg(url) {
  7913. this.$hevueImgPreview(url);
  7914. },
  7915. btnDisplay(bool) {
  7916. this.isBtnDisplay = bool;
  7917. },
  7918. stepDisplay(bool) {
  7919. this.isStepDisplay = bool;
  7920. },
  7921. scrollChange() {
  7922. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  7923. },
  7924. addHw(e) {
  7925. var el = e.currentTarget;
  7926. el.getElementsByTagName("input")[0].click();
  7927. },
  7928. change(val) {
  7929. if (this.dialogVisible1) {
  7930. this.tdetail = val;
  7931. } else if (this.dialogVisible6) {
  7932. this.AttText.text = val;
  7933. } else if (this.dialogVisible2) {
  7934. this.cTemplate = val;
  7935. } else if (this.dialogVisibleTable) {
  7936. this.tableJson.text = val;
  7937. }
  7938. this.$forceUpdate();
  7939. console.log(val);
  7940. },
  7941. change2(val) {
  7942. console.log(val);
  7943. this.$forceUpdate();
  7944. },
  7945. handleClose(done) {
  7946. done();
  7947. },
  7948. closePan(tool) {
  7949. if (tool == 15) {
  7950. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  7951. this.dialogVisible8 = false;
  7952. } else {
  7953. this.closeConfirm(tool);
  7954. }
  7955. } else if (tool == 4) {
  7956. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  7957. this.dialogVisible5 = false;
  7958. } else {
  7959. this.closeConfirm(tool);
  7960. }
  7961. } else if (tool == 45) {
  7962. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  7963. this.dialogVisibleChoice = false;
  7964. } else {
  7965. this.closeConfirm(tool);
  7966. }
  7967. } else if (tool == 41) {
  7968. if (
  7969. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  7970. ) {
  7971. this.dialogVisibleSelect = false;
  7972. } else {
  7973. this.closeConfirm(tool);
  7974. }
  7975. } else if (tool == 47) {
  7976. if (
  7977. JSON.stringify(this.sentenceList) ==
  7978. JSON.stringify(this.sentenceList2)
  7979. ) {
  7980. this.dialogVisibleSentence = false;
  7981. } else {
  7982. this.closeConfirm(tool);
  7983. }
  7984. } else if (tool == 69) {
  7985. if (
  7986. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  7987. ) {
  7988. this.englishDialogVisible = false;
  7989. } else {
  7990. this.closeConfirm(tool);
  7991. }
  7992. }
  7993. },
  7994. closeConfirm(tool) {
  7995. this.$confirm("是否保存已编辑内容?", "提示", {
  7996. confirmButtonText: "保存",
  7997. cancelButtonText: "不保存",
  7998. type: "warning",
  7999. })
  8000. .then(() => {
  8001. if (tool == 15) {
  8002. this.addAnswer();
  8003. } else if (tool == 4) {
  8004. this.addAsk();
  8005. } else if (tool == 45) {
  8006. this.addTest();
  8007. } else if (tool == 41) {
  8008. this.addSelectAnswer();
  8009. } else if (tool == 47) {
  8010. this.addSentenceTool();
  8011. } else if (tool == 69) {
  8012. this.addEnglish();
  8013. }
  8014. })
  8015. .catch(() => {
  8016. if (tool == 15) {
  8017. this.dialogVisible8 = false;
  8018. } else if (tool == 4) {
  8019. this.dialogVisible5 = false;
  8020. } else if (tool == 45) {
  8021. this.dialogVisibleChoice = false;
  8022. } else if (tool == 41) {
  8023. this.dialogVisibleSelect = false;
  8024. } else if (tool == 47) {
  8025. this.dialogVisibleSentence = false;
  8026. } else if (tool == 69) {
  8027. this.englishDialogVisible = false;
  8028. }
  8029. });
  8030. },
  8031. addEnglish(jsonType) {
  8032. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8033. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8034. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8035. if (
  8036. this.englishList.engTitle == "" ||
  8037. this.englishList.englishText == ""
  8038. ) {
  8039. this.$message.error("请将内容填写完整!");
  8040. return;
  8041. }
  8042. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8043. this.taskCount
  8044. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8045. this.englishList = {};
  8046. if (jsonType && jsonType == 1) {
  8047. this.englishDialogVisible = true;
  8048. } else {
  8049. this.englishDialogVisible = false;
  8050. }
  8051. if (
  8052. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8053. .toolChoose[this.toolIndex].tool != 69
  8054. ) {
  8055. this.addTools(69, this.taskCount, this.toolIndex);
  8056. }
  8057. },
  8058. imgChange2(i, j) {
  8059. var _tmp = this.testJson.testJson[i].checkList[j];
  8060. this.noneBtnImg = _tmp.length >= 1;
  8061. },
  8062. imgChange3(i) {
  8063. var _tmp = this.testJson.testJson[i];
  8064. this.noneBtnImg = _tmp.length >= 1;
  8065. },
  8066. imgChange1(file, fileList, type, itemTaskIndex) {
  8067. if (type == 1) {
  8068. var _tmp = this.cover;
  8069. } else if (
  8070. type == 2 ||
  8071. type == 3 ||
  8072. type == 6 ||
  8073. type == 7 ||
  8074. type == 8
  8075. ) {
  8076. var _tmp =
  8077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8078. .chapterData;
  8079. } else if (type == 4) {
  8080. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8081. } else {
  8082. var _tmp =
  8083. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8084. .homeworkList;
  8085. }
  8086. this.noneBtnImg = _tmp.length >= 1;
  8087. },
  8088. goTo(path) {
  8089. this.$router.push(path);
  8090. },
  8091. guid() {
  8092. var _num,
  8093. i,
  8094. _guid = "";
  8095. for (i = 0; i < 32; i++) {
  8096. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8097. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8098. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8099. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8100. _guid += "-";
  8101. }
  8102. }
  8103. return _guid;
  8104. },
  8105. retrunCourse() {
  8106. this.$confirm("是否保存已编辑内容?", "提示", {
  8107. confirmButtonText: "保存",
  8108. cancelButtonText: "不保存",
  8109. distinguishCancelAndClose: true,
  8110. type: "warning",
  8111. })
  8112. .then(() => {
  8113. if (this.cid == "" || this.cid == undefined) {
  8114. if (this.courseName == "") {
  8115. this.$message.error("请补充填写课程名称");
  8116. return;
  8117. } else {
  8118. this.addWork();
  8119. }
  8120. this.steps = 4;
  8121. } else {
  8122. if (this.courseName == "") {
  8123. this.$message.error("请补充填写课程名称");
  8124. return;
  8125. } else {
  8126. if (this.userid != this.courseUserid && this.role != "1") {
  8127. this.updateWork2();
  8128. } else {
  8129. this.updateWork();
  8130. }
  8131. this.steps = 4;
  8132. }
  8133. }
  8134. })
  8135. .catch((v) => {
  8136. console.log(v);
  8137. if (v == "cancel") {
  8138. this.goTo(
  8139. "/course?userid=" +
  8140. this.userid +
  8141. "&oid=" +
  8142. this.oid +
  8143. "&org=" +
  8144. this.org +
  8145. "&role=" +
  8146. this.role
  8147. );
  8148. }
  8149. });
  8150. },
  8151. lastSteps() {
  8152. if (this.steps == 4) {
  8153. this.goTo(
  8154. "/course?userid=" +
  8155. this.userid +
  8156. "&oid=" +
  8157. this.oid +
  8158. "&org=" +
  8159. this.org +
  8160. "&role=" +
  8161. this.role
  8162. );
  8163. } else {
  8164. // if (this.cidType == 0) {
  8165. // this.steps--;
  8166. // if (this.steps == 1) {
  8167. // setTimeout(() => {
  8168. // this.checkEva(this.checkId);
  8169. // setTimeout(() => {
  8170. // this.checkEva(this.checkId);
  8171. // }, 100);
  8172. // }, 100);
  8173. // }
  8174. // } else {
  8175. if (this.steps == 3) {
  8176. this.steps = 1;
  8177. setTimeout(() => {
  8178. this.checkEva(this.checkId);
  8179. setTimeout(() => {
  8180. this.checkEva(this.checkId);
  8181. }, 100);
  8182. }, 100);
  8183. }
  8184. // }
  8185. }
  8186. },
  8187. navSteps(s) {
  8188. if (this.courseName == "") {
  8189. this.$message.error("请补充填写课程名称");
  8190. return;
  8191. }
  8192. if (this.cidType == 0) {
  8193. if (this.steps == 1) {
  8194. if (this.cid == "" || this.cid == undefined) {
  8195. this.addWork();
  8196. } else {
  8197. if (this.userid != this.courseUserid && this.role != "1") {
  8198. // this.updateWork2();
  8199. } else {
  8200. this.updateWork();
  8201. }
  8202. }
  8203. }
  8204. if (s == 1) {
  8205. this.steps = 1;
  8206. setTimeout(() => {
  8207. this.checkEva(this.checkId);
  8208. setTimeout(() => {
  8209. this.checkEva(this.checkId);
  8210. }, 100);
  8211. }, 100);
  8212. }
  8213. if (s == 2) {
  8214. this.steps = 2;
  8215. }
  8216. if (s == 3) {
  8217. this.cTemplate = this.templateC.content;
  8218. this.dialogVisible2 = false;
  8219. this.steps = 3;
  8220. this.isClickColor = 1;
  8221. this.unitJson[
  8222. this.unitIndex
  8223. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8224. this.$forceUpdate();
  8225. setTimeout(() => {
  8226. this.checkEva(this.checkId);
  8227. setTimeout(() => {
  8228. this.checkEva(this.checkId);
  8229. }, 100);
  8230. }, 1000);
  8231. }
  8232. } else {
  8233. if (this.steps == 1) {
  8234. if (this.cid == "" || this.cid == undefined) {
  8235. this.addWork();
  8236. } else {
  8237. if (this.userid != this.courseUserid && this.role != "1") {
  8238. // this.updateWork2();
  8239. } else {
  8240. this.updateWork();
  8241. }
  8242. }
  8243. }
  8244. if (s == 1) {
  8245. this.steps = 1;
  8246. setTimeout(() => {
  8247. this.checkEva(this.checkId);
  8248. setTimeout(() => {
  8249. this.checkEva(this.checkId);
  8250. }, 100);
  8251. }, 100);
  8252. }
  8253. if (s == 3) {
  8254. this.cTemplate = this.templateC.content;
  8255. this.dialogVisible2 = false;
  8256. this.steps = 3;
  8257. this.isClickColor = 1;
  8258. this.unitJson[
  8259. this.unitIndex
  8260. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8261. this.$forceUpdate();
  8262. setTimeout(() => {
  8263. this.checkEva(this.checkId);
  8264. setTimeout(() => {
  8265. this.checkEva(this.checkId);
  8266. }, 100);
  8267. }, 1000);
  8268. }
  8269. }
  8270. this.$refs.stepBox.scrollTop = 0;
  8271. },
  8272. nextSteps() {
  8273. // if (this.cidType == 1) {
  8274. if (this.steps == 1) {
  8275. if (this.courseName != "") {
  8276. this.steps = 3;
  8277. this.isClickColor = 1;
  8278. this.unitJson[
  8279. this.unitIndex
  8280. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8281. this.$forceUpdate();
  8282. setTimeout(() => {
  8283. this.checkEva(this.checkId);
  8284. setTimeout(() => {
  8285. this.checkEva(this.checkId);
  8286. }, 100);
  8287. }, 1000);
  8288. if (this.cid == "" || this.cid == undefined) {
  8289. this.addWork();
  8290. } else {
  8291. if (this.userid != this.courseUserid && this.role != "1") {
  8292. // this.updateWork2();
  8293. } else {
  8294. this.updateWork();
  8295. }
  8296. }
  8297. } else {
  8298. this.$message.error("请补充填写课程名称");
  8299. return;
  8300. }
  8301. } else if (this.steps == 3) {
  8302. if (this.cid == "" || this.cid == undefined) {
  8303. if (this.courseName == "") {
  8304. this.$message.error("请补充填写课程名称");
  8305. return;
  8306. } else {
  8307. this.addWork();
  8308. this.steps++;
  8309. }
  8310. } else {
  8311. if (this.courseName == "") {
  8312. this.$message.error("请补充填写课程名称");
  8313. return;
  8314. } else {
  8315. if (this.userid != this.courseUserid && this.role != "1") {
  8316. this.updateWork2();
  8317. } else {
  8318. this.updateWork();
  8319. }
  8320. this.steps++;
  8321. }
  8322. }
  8323. }
  8324. // } else {
  8325. // if (this.steps == 1) {
  8326. // if (this.courseName != "") {
  8327. // if (this.cid == "" || this.cid == undefined) {
  8328. // this.addWork();
  8329. // } else {
  8330. // if (this.userid != this.courseUserid && this.role != "1") {
  8331. // // this.updateWork2();
  8332. // } else {
  8333. // this.updateWork();
  8334. // }
  8335. // }
  8336. // this.steps++;
  8337. // } else {
  8338. // this.$message.error("请补充填写课程名称");
  8339. // return;
  8340. // }
  8341. // } else if (this.steps == 2) {
  8342. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8343. // this.cTemplate = this.templateC.content;
  8344. // }
  8345. // this.dialogVisible2 = false;
  8346. // this.steps++;
  8347. // setTimeout(() => {
  8348. // this.checkEva(this.checkId);
  8349. // setTimeout(() => {
  8350. // this.checkEva(this.checkId);
  8351. // }, 100);
  8352. // }, 1000);
  8353. // } else if (this.steps == 3) {
  8354. // if (this.cid == "" || this.cid == undefined) {
  8355. // if (this.courseName == "") {
  8356. // this.$message.error("请补充填写课程名称");
  8357. // return;
  8358. // } else {
  8359. // this.addWork();
  8360. // this.steps++;
  8361. // }
  8362. // } else {
  8363. // if (this.courseName == "") {
  8364. // this.$message.error("请补充填写课程名称");
  8365. // return;
  8366. // } else {
  8367. // if (this.userid != this.courseUserid && this.role != "1") {
  8368. // this.updateWork2();
  8369. // } else {
  8370. // this.updateWork();
  8371. // }
  8372. // this.steps++;
  8373. // }
  8374. // }
  8375. // }
  8376. // }
  8377. this.$refs.stepBox.scrollTop = 0;
  8378. },
  8379. unitSet(i) {
  8380. if (this.unitIndex == i) {
  8381. return;
  8382. }
  8383. this.unitIndex = i;
  8384. this.isClickColor = 1;
  8385. // this.$refs.rightboxR.scrollTop = 0;
  8386. this.$refs.unitBox.scrollTop = 0;
  8387. },
  8388. panUnitJson() {
  8389. let _unitIndex = this.unitIndex;
  8390. let cPan = 1;
  8391. for (
  8392. var j = 0;
  8393. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8394. j++
  8395. ) {
  8396. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8397. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8398. j
  8399. ].proVisible2 = false;
  8400. if (
  8401. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8402. .length > 1
  8403. ) {
  8404. for (
  8405. var z = 0;
  8406. z <
  8407. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8408. .length;
  8409. z++
  8410. ) {
  8411. if (
  8412. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8413. z
  8414. ].tool.length
  8415. ) {
  8416. this.$message.error("请把工具添加完整");
  8417. cPan = 2;
  8418. break;
  8419. }
  8420. }
  8421. }
  8422. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8423. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8424. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8425. (ele) => {
  8426. return ele.value != "";
  8427. }
  8428. );
  8429. }
  8430. }
  8431. return cPan;
  8432. },
  8433. unitOpen(i) {
  8434. if (this.unitJson[i].toolOpen) {
  8435. this.unitJson[i].toolOpen = false;
  8436. } else {
  8437. this.unitJson[i].toolOpen = true;
  8438. }
  8439. this.updateWork();
  8440. this.$forceUpdate();
  8441. },
  8442. unitSet2(i) {
  8443. if (this.panUnitJson() == 2) {
  8444. return;
  8445. }
  8446. // if(this.unitJson[i].toolOpen){
  8447. // this.unitJson[i].toolOpen = false
  8448. // this.updateWork()
  8449. // this.$forceUpdate()
  8450. // return
  8451. // }else {
  8452. this.unitJson[i].toolOpen = true;
  8453. // }
  8454. this.$forceUpdate();
  8455. if (this.unitIndex == i) {
  8456. return;
  8457. }
  8458. this.unitIndex = i;
  8459. this.isClickColor = 1;
  8460. // this.$refs.rightboxR.scrollTop = 0;
  8461. this.$refs.unitBox.scrollTop = 0;
  8462. },
  8463. updateCourseState(i) {
  8464. let params = [
  8465. {
  8466. cid: this.cid,
  8467. state: i,
  8468. },
  8469. ];
  8470. this.ajax
  8471. .post(this.$store.state.api + "updateCourseMode", params)
  8472. .then((res) => {
  8473. this.courseState = i;
  8474. })
  8475. .catch((err) => {
  8476. this.$message.error("网络不佳");
  8477. console.error(err);
  8478. });
  8479. },
  8480. time() {
  8481. if (!this.now) {
  8482. this.now = new Date().getTime();
  8483. return true;
  8484. } else {
  8485. let time = new Date().getTime();
  8486. if (time - this.now > 3000) {
  8487. this.now = time;
  8488. return true;
  8489. } else {
  8490. return false;
  8491. }
  8492. }
  8493. },
  8494. deleteUnit(i) {
  8495. var _this = this;
  8496. if (i == 0 && _this.unitJson.length == 1) {
  8497. _this
  8498. .$confirm("确定切换成任务模式吗?", "提示", {
  8499. confirmButtonText: "确定",
  8500. cancelButtonText: "取消",
  8501. type: "warning",
  8502. })
  8503. .then(() => {
  8504. _this.unitJson[i].dyName = "";
  8505. _this.updateCourseState(2);
  8506. })
  8507. .catch(() => {
  8508. return;
  8509. });
  8510. } else {
  8511. _this
  8512. .$confirm("确定删除此阶段吗?", "提示", {
  8513. confirmButtonText: "确定",
  8514. cancelButtonText: "取消",
  8515. type: "warning",
  8516. })
  8517. .then(() => {
  8518. _this.isDelete = 2;
  8519. // _this.unitIndex = _this.unitIndex - 1;
  8520. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8521. // _this.$message.success("删除成功");
  8522. })
  8523. .catch(() => {
  8524. return;
  8525. });
  8526. }
  8527. },
  8528. deleteWork(chapid) {
  8529. let params = [
  8530. {
  8531. cid: this.cid,
  8532. chapters: JSON.stringify(this.unitJson),
  8533. uid: this.userid,
  8534. chapid: chapid,
  8535. },
  8536. ];
  8537. this.ajax
  8538. .post(this.$store.state.api + "deleteWork", params)
  8539. .then((res) => {
  8540. this.$message({
  8541. message: "删除成功",
  8542. type: "success",
  8543. });
  8544. let task = JSON.parse(
  8545. JSON.stringify(
  8546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8547. )
  8548. );
  8549. this.unitJson.splice(this.unitIndex, 1);
  8550. if (this.unitIndex == 0) {
  8551. this.unitIndex = 0;
  8552. } else {
  8553. this.unitIndex = this.unitIndex - 1;
  8554. }
  8555. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8556. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8557. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8558. ...task,
  8559. ];
  8560. }
  8561. })
  8562. .catch((err) => {
  8563. this.$message.error("网络不佳");
  8564. console.error(err);
  8565. });
  8566. },
  8567. deleteTool(itemTaskIndex, i) {
  8568. var _this = this;
  8569. if (_this.time()) {
  8570. _this
  8571. .$confirm("确定删除此工具吗?", "提示", {
  8572. confirmButtonText: "确定",
  8573. cancelButtonText: "取消",
  8574. type: "warning",
  8575. })
  8576. .then(() => {
  8577. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8578. itemTaskIndex
  8579. ].toolChoose.splice(i, 1);
  8580. _this.$message.success("删除成功");
  8581. })
  8582. .catch(() => {
  8583. return;
  8584. });
  8585. }
  8586. },
  8587. deleteSentence(i) {
  8588. var _this = this;
  8589. _this
  8590. .$confirm("确定删除此题目吗?", "提示", {
  8591. confirmButtonText: "确定",
  8592. cancelButtonText: "取消",
  8593. type: "warning",
  8594. })
  8595. .then(() => {
  8596. _this.sentenceList.splice(i, 1);
  8597. _this.$message.success("删除成功");
  8598. })
  8599. .catch(() => {
  8600. return;
  8601. });
  8602. },
  8603. deleteS(s, i, j) {
  8604. this.sentenceList[i].addSentence.splice(j, 1);
  8605. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8606. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8607. this.sentenceList[i].rightAnswer.splice(a, 1);
  8608. }
  8609. },
  8610. openT() {
  8611. top.postMessage({ tools: "25" }, "*");
  8612. },
  8613. deleteTask(i) {
  8614. var _this = this;
  8615. if (_this.time()) {
  8616. _this
  8617. .$confirm(
  8618. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8619. 1 ==
  8620. i
  8621. ? "确定删除此任务吗?"
  8622. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8623. "提示",
  8624. {
  8625. confirmButtonText: "确定",
  8626. cancelButtonText: "取消",
  8627. type: "warning",
  8628. }
  8629. )
  8630. .then(() => {
  8631. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8632. i,
  8633. 1
  8634. );
  8635. _this.$message.success("删除成功");
  8636. })
  8637. .catch(() => {
  8638. return;
  8639. });
  8640. }
  8641. },
  8642. handlePictureCardPreview(file) {
  8643. this.dialogImageUrl = file.url;
  8644. },
  8645. clean(i, c) {
  8646. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8647. },
  8648. handle_remove1(file, fileList, type) {
  8649. var _tmp = this.cover;
  8650. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8651. // if (_tmp[i].uid == file.uid) {
  8652. // _tmp.splice(i, 1);
  8653. // break;
  8654. // }
  8655. // this.cover = _tmp;
  8656. // }
  8657. this.cover = [];
  8658. this.noneBtnImg = this.cover.length >= 1;
  8659. this.isSysPic = false;
  8660. this.isSysPic2 = false;
  8661. this.$forceUpdate();
  8662. },
  8663. addImg(e) {
  8664. var el = e.currentTarget;
  8665. el.getElementsByTagName("input")[0].click();
  8666. e.target.value = "";
  8667. },
  8668. addChaptersTools(i) {
  8669. this.chapTools = [
  8670. {
  8671. tools: [],
  8672. toolDetail: "",
  8673. },
  8674. ];
  8675. this.chapCount = i;
  8676. this.dialogVisible4 = true;
  8677. },
  8678. isNoFinsh() {
  8679. this.$message.warning("功能正在开发中");
  8680. },
  8681. addAttText(i) {
  8682. this.AttText = {
  8683. title: "",
  8684. text: "",
  8685. };
  8686. this.taskCount = i;
  8687. this.AttTextType = 0;
  8688. this.$forceUpdate();
  8689. this.dialogVisible6 = true;
  8690. setTimeout(() => {
  8691. this.$refs["fuInput"].focus();
  8692. }, 100);
  8693. },
  8694. openLine(i) {
  8695. this.line = "";
  8696. this.lineCount = i;
  8697. this.lineType = 0;
  8698. this.$forceUpdate();
  8699. this.dialogVisible7 = true;
  8700. },
  8701. pasteLine(i) {
  8702. navigator.clipboard
  8703. .readText()
  8704. .then((v) => {
  8705. console.log("获取剪贴板成功:", v);
  8706. const html = v;
  8707. const regex = /src="(.*?)"/g;
  8708. const match = regex.exec(html);
  8709. if (match && match[1]) {
  8710. console.log(match[1]);
  8711. this.$message.success("粘贴成功");
  8712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8713. i
  8714. ].chapterData.push({
  8715. name: "链接",
  8716. title: "嵌入代码",
  8717. url: match[1],
  8718. type: 8,
  8719. });
  8720. } else {
  8721. // console.log("未找到包含 src 属性的 iframe");
  8722. this.$message.error(
  8723. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  8724. );
  8725. }
  8726. })
  8727. .catch((v) => {
  8728. console.log("获取剪贴板失败: ", v);
  8729. });
  8730. },
  8731. openSource(i) {
  8732. this.lineCount = i;
  8733. this.sourceData = {};
  8734. this.dialogVisibleSource = true;
  8735. this.updateSourcePan = false;
  8736. },
  8737. addSource() {
  8738. if (!Object.keys(this.sourceData).length) {
  8739. this.$message.error("请选择要上传的资源");
  8740. return;
  8741. }
  8742. let keys = Object.keys(this.sourceData);
  8743. for (var i = 0; i < keys.length; i++) {
  8744. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8745. this.lineCount
  8746. ].chapterData.push({
  8747. name: "链接",
  8748. title: this.sourceData[keys[i]].name,
  8749. url: this.sourceData[keys[i]].url,
  8750. type: 14,
  8751. id: keys[i],
  8752. });
  8753. }
  8754. this.$forceUpdate();
  8755. this.dialogVisibleSource = false;
  8756. },
  8757. updateSource() {
  8758. if (!Object.keys(this.sourceData).length) {
  8759. this.$message.error("请选择要上传的资源");
  8760. return;
  8761. }
  8762. let keys = Object.keys(this.sourceData);
  8763. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8764. this.taskCount
  8765. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  8766. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8767. this.taskCount
  8768. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  8769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8770. this.taskCount
  8771. ].chapterData[this.lineCount].id = keys[0];
  8772. this.updateSourcePan = false;
  8773. this.$forceUpdate();
  8774. this.dialogVisibleSource = false;
  8775. },
  8776. deleteM(i, j) {
  8777. this.testJson.testJson[i].timuList.splice(j, 1);
  8778. },
  8779. beforeUploadTiMu(event, i) {
  8780. const loading = this.openLoading();
  8781. var file = event.target.files[0];
  8782. var credentials = {
  8783. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8784. secretAccessKey: "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",
  8785. }; //秘钥形式的登录上传
  8786. window.AWS.config.update(credentials);
  8787. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8788. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8789. var _this = this;
  8790. if (file) {
  8791. var params = {
  8792. Key:
  8793. file.name.split(".")[0] +
  8794. new Date().getTime() +
  8795. "." +
  8796. file.name.split(".")[file.name.split(".").length - 1],
  8797. ContentType: file.type,
  8798. Body: file,
  8799. "Access-Control-Allow-Credentials": "*",
  8800. ACL: "public-read",
  8801. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8802. var options = {
  8803. partSize: 2048 * 1024 * 1024,
  8804. queueSize: 2,
  8805. leavePartsOnError: true,
  8806. };
  8807. bucket
  8808. .upload(params, options)
  8809. .on("httpUploadProgress", function (evt) {
  8810. //这里可以写进度条
  8811. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8812. })
  8813. .send(function (err, data) {
  8814. loading.close();
  8815. if (err) {
  8816. _this.$message.error("上传失败");
  8817. } else {
  8818. if (_this.testJson.testJson[i].timuList) {
  8819. _this.testJson.testJson[i].timuList.push({
  8820. src: data.Location,
  8821. });
  8822. } else {
  8823. _this.testJson.testJson[i].timuList = [];
  8824. _this.testJson.testJson[i].timuList.push({
  8825. src: data.Location,
  8826. });
  8827. }
  8828. _this.imgChange3(i);
  8829. _this.$forceUpdate();
  8830. }
  8831. });
  8832. }
  8833. },
  8834. beforeUploadTi(event, i, j) {
  8835. const loading = this.openLoading();
  8836. var file = event.target.files[0];
  8837. var credentials = {
  8838. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8839. secretAccessKey: "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",
  8840. }; //秘钥形式的登录上传
  8841. window.AWS.config.update(credentials);
  8842. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8843. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8844. var _this = this;
  8845. if (file) {
  8846. var params = {
  8847. Key:
  8848. file.name.split(".")[0] +
  8849. new Date().getTime() +
  8850. "." +
  8851. file.name.split(".")[file.name.split(".").length - 1],
  8852. ContentType: file.type,
  8853. Body: file,
  8854. "Access-Control-Allow-Credentials": "*",
  8855. ACL: "public-read",
  8856. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8857. var options = {
  8858. partSize: 2048 * 1024 * 1024,
  8859. queueSize: 2,
  8860. leavePartsOnError: true,
  8861. };
  8862. bucket
  8863. .upload(params, options)
  8864. .on("httpUploadProgress", function (evt) {
  8865. //这里可以写进度条
  8866. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8867. })
  8868. .send(function (err, data) {
  8869. loading.close();
  8870. if (err) {
  8871. _this.$message.error("上传失败");
  8872. } else {
  8873. _this.testJson.testJson[i].checkList[j] = {};
  8874. _this.testJson.testJson[i].checkList[j].src = data.Location;
  8875. _this.testJson.testJson[i].checkList[j].imgType = 1;
  8876. _this.imgChange2(i, j);
  8877. _this.$forceUpdate();
  8878. }
  8879. });
  8880. }
  8881. },
  8882. beforeUpload1(event, type) {
  8883. // const loading = this.openLoading();
  8884. var file = event.target.files[0];
  8885. var credentials = {
  8886. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8887. secretAccessKey: "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",
  8888. }; //秘钥形式的登录上传
  8889. window.AWS.config.update(credentials);
  8890. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8891. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8892. var _this = this;
  8893. if (file) {
  8894. var params = {
  8895. Key:
  8896. file.name.split(".")[0] +
  8897. new Date().getTime() +
  8898. "." +
  8899. file.name.split(".")[file.name.split(".").length - 1],
  8900. ContentType: file.type,
  8901. Body: file,
  8902. "Access-Control-Allow-Credentials": "*",
  8903. ACL: "public-read",
  8904. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8905. var options = {
  8906. partSize: 2048 * 1024 * 1024,
  8907. queueSize: 2,
  8908. leavePartsOnError: true,
  8909. };
  8910. bucket
  8911. .upload(params, options)
  8912. .on("httpUploadProgress", function (evt) {
  8913. //这里可以写进度条
  8914. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8915. })
  8916. .send(function (err, data) {
  8917. // loading.close();
  8918. if (err) {
  8919. // var a = _this.$refs.upload1.uploadFiles;
  8920. // a.splice(a.length - 1, a.length);
  8921. _this.$message.error("上传失败");
  8922. } else {
  8923. // _this.cover.push({
  8924. // name: file.name,
  8925. // url: data.Location,
  8926. // uid: file.uid,
  8927. // });
  8928. _this.cover = [
  8929. {
  8930. name: file.name,
  8931. url: data.Location,
  8932. uid: file.uid,
  8933. },
  8934. ];
  8935. _this.imgChange1(null, null, 1, null);
  8936. _this.choosePicVisible = false;
  8937. console.log(data.Location);
  8938. }
  8939. });
  8940. }
  8941. },
  8942. beforeUploadSelect(event, type) {
  8943. // const loading = this.openLoading();
  8944. var file = event.target.files[0];
  8945. var credentials = {
  8946. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8947. secretAccessKey: "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",
  8948. }; //秘钥形式的登录上传
  8949. window.AWS.config.update(credentials);
  8950. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8951. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8952. var _this = this;
  8953. if (file) {
  8954. var params = {
  8955. Key:
  8956. file.name.split(".")[0] +
  8957. new Date().getTime() +
  8958. "." +
  8959. file.name.split(".")[file.name.split(".").length - 1],
  8960. ContentType: file.type,
  8961. Body: file,
  8962. "Access-Control-Allow-Credentials": "*",
  8963. ACL: "public-read",
  8964. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8965. var options = {
  8966. partSize: 2048 * 1024 * 1024,
  8967. queueSize: 2,
  8968. leavePartsOnError: true,
  8969. };
  8970. bucket
  8971. .upload(params, options)
  8972. .on("httpUploadProgress", function (evt) {
  8973. //这里可以写进度条
  8974. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8975. })
  8976. .send(function (err, data) {
  8977. // loading.close();
  8978. if (err) {
  8979. _this.$message.error("上传失败");
  8980. } else {
  8981. _this.selectJson.url = data.Location;
  8982. console.log(data.Location);
  8983. }
  8984. });
  8985. }
  8986. },
  8987. chooseSysPic(p) {
  8988. this.cover = [];
  8989. setTimeout(() => {
  8990. this.cover[0] = {
  8991. name: "系统图片.png",
  8992. url: p,
  8993. };
  8994. this.imgChange1(null, null, 1, null);
  8995. this.$forceUpdate();
  8996. }, 0);
  8997. this.isSysPic = true;
  8998. this.isSysPic2 = false;
  8999. this.sysPicVisible = false;
  9000. this.$forceUpdate();
  9001. },
  9002. chooseSysPic2(p) {
  9003. this.cover = [];
  9004. setTimeout(() => {
  9005. this.cover[0] = {
  9006. name: "网络图片.png",
  9007. url: p,
  9008. };
  9009. this.imgChange1(null, null, 1, null);
  9010. this.$forceUpdate();
  9011. }, 0);
  9012. this.isSysPic2 = true;
  9013. this.isSysPic = false;
  9014. this.sysPicVisible2 = false;
  9015. this.$forceUpdate();
  9016. },
  9017. beforeUpload(data) {
  9018. this.$refs.upload1.uploadFiles;
  9019. this.uploadLoading1 = true;
  9020. var file = data.file;
  9021. var credentials = {
  9022. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9023. secretAccessKey: "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",
  9024. }; //秘钥形式的登录上传
  9025. window.AWS.config.update(credentials);
  9026. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9027. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9028. var _this = this;
  9029. if (file) {
  9030. var params = {
  9031. Key:
  9032. file.name.split(".")[0] +
  9033. new Date().getTime() +
  9034. "." +
  9035. file.name.split(".")[file.name.split(".").length - 1],
  9036. ContentType: file.type,
  9037. Body: file,
  9038. "Access-Control-Allow-Credentials": "*",
  9039. ACL: "public-read",
  9040. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9041. var options = {
  9042. partSize: 2048 * 1024 * 1024,
  9043. queueSize: 2,
  9044. leavePartsOnError: true,
  9045. };
  9046. bucket
  9047. .upload(params, options)
  9048. .on("httpUploadProgress", function (evt) {
  9049. //这里可以写进度条
  9050. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9051. })
  9052. .send(function (err, data) {
  9053. _this.uploadLoading1 = false;
  9054. if (err) {
  9055. // var a = _this.$refs.upload1.uploadFiles;
  9056. // a.splice(a.length - 1, a.length);
  9057. _this.$message.error("上传失败");
  9058. } else {
  9059. //上传成功处理
  9060. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9061. name: file.name,
  9062. url: data.Location,
  9063. uid: file.uid,
  9064. });
  9065. _this.imgChange();
  9066. console.log(data.Location);
  9067. }
  9068. });
  9069. }
  9070. },
  9071. onExceed() {
  9072. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9073. },
  9074. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9075. // const loading = this.openLoading();
  9076. var file = event.target.files[0];
  9077. var credentials = {
  9078. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9079. secretAccessKey: "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",
  9080. }; //秘钥形式的登录上传
  9081. window.AWS.config.update(credentials);
  9082. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9083. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9084. var _this = this;
  9085. if (type == 3) {
  9086. var b = [
  9087. "DOC",
  9088. "DOCX",
  9089. "DOCM",
  9090. "DOTM",
  9091. "DOTX",
  9092. "PPTX",
  9093. "PPSX",
  9094. "PPT",
  9095. "PPS",
  9096. "PPTM",
  9097. "POTM",
  9098. "PPAM",
  9099. "POTX",
  9100. "PPSM",
  9101. ];
  9102. if (
  9103. b.indexOf(
  9104. file.name
  9105. .split(".")
  9106. [file.name.split(".").length - 1].toLocaleUpperCase()
  9107. ) != -1
  9108. ) {
  9109. if (file.size / 1024 / 1024 > 80) {
  9110. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9111. this.inputShow = true;
  9112. // var a = _this.$refs.upload1.uploadFiles;
  9113. // a.splice(a.length - 1, a.length);
  9114. // loading.close();
  9115. return;
  9116. }
  9117. } else if (
  9118. file.name
  9119. .split(".")
  9120. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9121. ) {
  9122. if (file.size / 1024 / 1024 > 80) {
  9123. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9124. this.inputShow = true;
  9125. // var a = _this.$refs.upload1.uploadFiles;
  9126. // a.splice(a.length - 1, a.length);
  9127. // loading.close();
  9128. return;
  9129. }
  9130. }
  9131. }
  9132. this.inputShow = false;
  9133. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9134. itemTaskIndex
  9135. ].progress = 0;
  9136. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9137. itemTaskIndex
  9138. ].proVisible = true;
  9139. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9140. itemTaskIndex
  9141. ].isFinishSize = 0;
  9142. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9143. itemTaskIndex
  9144. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9145. _this.$forceUpdate();
  9146. if (file) {
  9147. var params = {
  9148. Key:
  9149. file.name.split(".")[0] +
  9150. new Date().getTime() +
  9151. "." +
  9152. file.name.split(".")[file.name.split(".").length - 1],
  9153. ContentType: file.type,
  9154. Body: file,
  9155. "Access-Control-Allow-Credentials": "*",
  9156. ACL: "public-read",
  9157. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9158. var options = {
  9159. partSize: 2048 * 1024 * 1024,
  9160. queueSize: 2,
  9161. leavePartsOnError: true,
  9162. };
  9163. bucket
  9164. .upload(params, options)
  9165. .on("httpUploadProgress", function (evt) {
  9166. //这里可以写进度条
  9167. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9168. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9169. itemTaskIndex
  9170. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9171. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9172. itemTaskIndex
  9173. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9174. _this.$forceUpdate();
  9175. })
  9176. .send(function (err, data) {
  9177. // loading.close();
  9178. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9179. itemTaskIndex
  9180. ].progress = 100;
  9181. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9182. itemTaskIndex
  9183. ].isFinishSize =
  9184. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9185. itemTaskIndex
  9186. ].isAllSize;
  9187. _this.$forceUpdate();
  9188. setTimeout(() => {
  9189. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9190. itemTaskIndex
  9191. ].proVisible = false;
  9192. _this.$forceUpdate();
  9193. }, 1000);
  9194. _this.inputShow = true;
  9195. if (err) {
  9196. // var a = _this.$refs.upload1.uploadFiles;
  9197. // a.splice(a.length - 1, a.length);
  9198. _this.$message.error("上传失败");
  9199. } else {
  9200. if (type == 13) {
  9201. let _type = 2;
  9202. var imgA = [
  9203. "png",
  9204. "jpg",
  9205. "jpeg",
  9206. "bmp",
  9207. "gif",
  9208. "webp",
  9209. "psd",
  9210. "svg",
  9211. "tiff",
  9212. ];
  9213. var fileA = [
  9214. "PDF",
  9215. "DOC",
  9216. "DOCX",
  9217. "DOCM",
  9218. "DOTM",
  9219. "DOTX",
  9220. "PPTX",
  9221. "PPSX",
  9222. "PPT",
  9223. "PPS",
  9224. "PPTM",
  9225. "POTM",
  9226. "PPAM",
  9227. "POTX",
  9228. "PPSM",
  9229. "XLSX",
  9230. "XLS",
  9231. ];
  9232. var videoA = [
  9233. "AVI",
  9234. "NAVI",
  9235. "MPEG",
  9236. "ASF",
  9237. "MOV",
  9238. "WMV",
  9239. "3GP",
  9240. "RM",
  9241. "RMVB",
  9242. "FLV",
  9243. "F4V",
  9244. "H.264",
  9245. "H.265",
  9246. "REAL VIDEO",
  9247. "MKV",
  9248. "WebM",
  9249. "HDDVD",
  9250. "MP4",
  9251. "MPG",
  9252. "M4V",
  9253. "MGV",
  9254. "OGV",
  9255. "QTM",
  9256. "STR",
  9257. "AMC",
  9258. "DVX",
  9259. "EVO",
  9260. "DAT",
  9261. "OGG",
  9262. "OGM",
  9263. ];
  9264. if (
  9265. fileA.indexOf(
  9266. data.Location.split(".")[
  9267. data.Location.split(".").length - 1
  9268. ].toLocaleUpperCase()
  9269. ) != -1
  9270. ) {
  9271. _type = 3;
  9272. } else if (
  9273. videoA.indexOf(
  9274. data.Location.split(".")[
  9275. data.Location.split(".").length - 1
  9276. ].toLocaleUpperCase()
  9277. ) != -1
  9278. ) {
  9279. _type = 2;
  9280. } else if (
  9281. imgA.indexOf(
  9282. data.Location.split(".")[
  9283. data.Location.split(".").length - 1
  9284. ].toLocaleLowerCase()
  9285. ) != -1
  9286. ) {
  9287. _type = 13;
  9288. } else {
  9289. _type = 12;
  9290. }
  9291. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9292. itemTaskIndex
  9293. ].chapterData.push({
  9294. name: file.name,
  9295. url: data.Location,
  9296. uid: file.uid,
  9297. type: _type,
  9298. });
  9299. _this.imgChange1(null, null, _type, itemTaskIndex);
  9300. } else if (type == 2 || type == 3 || type == 12) {
  9301. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9302. itemTaskIndex
  9303. ].chapterData.push({
  9304. name: file.name,
  9305. url: data.Location,
  9306. uid: file.uid,
  9307. type: type,
  9308. });
  9309. _this.imgChange1(null, null, type, itemTaskIndex);
  9310. } else if (type == 4) {
  9311. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9312. itemTaskIndex
  9313. ].fileList1.push({
  9314. name: file.name,
  9315. url: data.Location,
  9316. uid: file.uid,
  9317. });
  9318. _this.imgChange1(null, null, type, itemTaskIndex);
  9319. } else if (type == 5) {
  9320. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9321. itemTaskIndex
  9322. ].homeworkList.push({
  9323. name: file.name,
  9324. url: data.Location,
  9325. uid: file.uid,
  9326. });
  9327. _this.imgChange1(null, null, type, itemTaskIndex);
  9328. }
  9329. console.log(data.Location);
  9330. }
  9331. });
  9332. }
  9333. },
  9334. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9335. // const loading = this.openLoading();
  9336. var file = event.target.files[0];
  9337. var credentials = {
  9338. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9339. secretAccessKey: "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",
  9340. }; //秘钥形式的登录上传
  9341. window.AWS.config.update(credentials);
  9342. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9343. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9344. var _this = this;
  9345. if (type == 3) {
  9346. var b = [
  9347. "DOC",
  9348. "DOCX",
  9349. "DOCM",
  9350. "DOTM",
  9351. "DOTX",
  9352. "PPTX",
  9353. "PPSX",
  9354. "PPT",
  9355. "PPS",
  9356. "PPTM",
  9357. "POTM",
  9358. "PPAM",
  9359. "POTX",
  9360. "PPSM",
  9361. ];
  9362. if (
  9363. b.indexOf(
  9364. file.name
  9365. .split(".")
  9366. [file.name.split(".").length - 1].toLocaleUpperCase()
  9367. ) != -1
  9368. ) {
  9369. if (file.size / 1024 / 1024 > 80) {
  9370. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9371. this.inputShow = true;
  9372. // var a = _this.$refs.upload1.uploadFiles;
  9373. // a.splice(a.length - 1, a.length);
  9374. // loading.close();
  9375. return;
  9376. }
  9377. } else if (
  9378. file.name
  9379. .split(".")
  9380. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9381. ) {
  9382. if (file.size / 1024 / 1024 > 80) {
  9383. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9384. this.inputShow = true;
  9385. // var a = _this.$refs.upload1.uploadFiles;
  9386. // a.splice(a.length - 1, a.length);
  9387. // loading.close();
  9388. return;
  9389. }
  9390. }
  9391. }
  9392. this.inputShow = false;
  9393. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9394. itemTaskIndex
  9395. ].progress = 0;
  9396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9397. itemTaskIndex
  9398. ].proVisible = true;
  9399. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9400. itemTaskIndex
  9401. ].isFinishSize = 0;
  9402. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9403. itemTaskIndex
  9404. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9405. _this.$forceUpdate();
  9406. if (file) {
  9407. var params = {
  9408. Key:
  9409. file.name.split(".")[0] +
  9410. new Date().getTime() +
  9411. "." +
  9412. file.name.split(".")[file.name.split(".").length - 1],
  9413. ContentType: file.type,
  9414. Body: file,
  9415. "Access-Control-Allow-Credentials": "*",
  9416. ACL: "public-read",
  9417. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9418. var options = {
  9419. partSize: 2048 * 1024 * 1024,
  9420. queueSize: 2,
  9421. leavePartsOnError: true,
  9422. };
  9423. bucket
  9424. .upload(params, options)
  9425. .on("httpUploadProgress", function (evt) {
  9426. //这里可以写进度条
  9427. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9428. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9429. itemTaskIndex
  9430. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9431. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9432. itemTaskIndex
  9433. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9434. _this.$forceUpdate();
  9435. })
  9436. .send(function (err, data) {
  9437. // loading.close();
  9438. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9439. itemTaskIndex
  9440. ].progress = 100;
  9441. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9442. itemTaskIndex
  9443. ].isFinishSize =
  9444. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9445. itemTaskIndex
  9446. ].isAllSize;
  9447. _this.$forceUpdate();
  9448. setTimeout(() => {
  9449. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9450. itemTaskIndex
  9451. ].proVisible = false;
  9452. _this.$forceUpdate();
  9453. }, 1000);
  9454. _this.inputShow = true;
  9455. if (err) {
  9456. // var a = _this.$refs.upload1.uploadFiles;
  9457. // a.splice(a.length - 1, a.length);
  9458. _this.$message.error("上传失败");
  9459. } else {
  9460. if (type == 2 || type == 3) {
  9461. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9462. itemTaskIndex
  9463. ].chapterData.push({
  9464. name: file.name,
  9465. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9466. // itemTaskIndex
  9467. // ].chapterData.length+1),
  9468. url: data.Location,
  9469. uid: file.uid,
  9470. type: type,
  9471. text: string,
  9472. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9473. // itemTaskIndex
  9474. // ].chapterData.length + 1),
  9475. });
  9476. _this.imgChange1(null, null, type, itemTaskIndex);
  9477. } else if (type == 4) {
  9478. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9479. itemTaskIndex
  9480. ].fileList1.push({
  9481. name: file.name,
  9482. url: data.Location,
  9483. uid: file.uid,
  9484. });
  9485. _this.imgChange1(null, null, type, itemTaskIndex);
  9486. } else if (type == 5) {
  9487. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9488. itemTaskIndex
  9489. ].homeworkList.push({
  9490. name: file.name,
  9491. url: data.Location,
  9492. uid: file.uid,
  9493. });
  9494. _this.imgChange1(null, null, type, itemTaskIndex);
  9495. }
  9496. console.log(data.Location);
  9497. }
  9498. });
  9499. }
  9500. },
  9501. addunit() {
  9502. this.unitJson.push({
  9503. dyName: "", //单元标题
  9504. isUpdate: 1,
  9505. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9506. chapterInfo: [
  9507. {
  9508. isread: false,
  9509. chapterid: this.guid(),
  9510. title: "",
  9511. courseName: "",
  9512. taskJson: [
  9513. {
  9514. task: "",
  9515. taskDetail: "",
  9516. chapterData: [],
  9517. toolText: "",
  9518. toolChoose: [
  9519. {
  9520. tool: [],
  9521. toolDetail: "",
  9522. toolType: 0,
  9523. askCount: 1,
  9524. askTitle: "",
  9525. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9526. },
  9527. ],
  9528. isShowTools: false,
  9529. askCount: 1,
  9530. isFold: 1,
  9531. askTitle: "",
  9532. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9533. checkJson: [{ checkCount: [], checkPerent: [] }],
  9534. homeworkList: [],
  9535. },
  9536. ],
  9537. itemCount: 1,
  9538. fileList1: [],
  9539. video: [],
  9540. testData: [],
  9541. pData: [],
  9542. templateArray: [],
  9543. },
  9544. ],
  9545. });
  9546. this.addindex = this.unitJson.length - 1;
  9547. setTimeout(() => {
  9548. this.unitIndex = this.unitJson.length - 1;
  9549. setTimeout(() => {
  9550. console.log(this.$refs.dyInput);
  9551. this.$refs.dyInput[0].focus();
  9552. }, 100);
  9553. this.unitSet(this.unitIndex);
  9554. }, 0);
  9555. },
  9556. addToolFun(itemTaskIndex) {
  9557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9558. itemTaskIndex
  9559. ].toolChoose.push({
  9560. tool: [],
  9561. toolDetail: "",
  9562. toolType: 0,
  9563. askCount: 1,
  9564. askTitle: "",
  9565. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9566. });
  9567. },
  9568. addTaskBorder() {
  9569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9570. task: "",
  9571. taskDetail: "",
  9572. chapterData: [],
  9573. toolText: "",
  9574. toolChoose: [
  9575. {
  9576. tool: [],
  9577. toolDetail: "",
  9578. toolType: 0,
  9579. askCount: 1,
  9580. askTitle: "",
  9581. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9582. },
  9583. ],
  9584. isShowTools: false,
  9585. askCount: 1,
  9586. isFold: 1, //任务收起状态
  9587. askTitle: "",
  9588. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9589. checkJson: [{ checkCount: [], checkPerent: [] }],
  9590. homeworkList: [],
  9591. });
  9592. setTimeout(() => {
  9593. this.checkEva(this.checkId);
  9594. setTimeout(() => {
  9595. this.checkEva(this.checkId);
  9596. }, 100);
  9597. }, 100);
  9598. },
  9599. add(e, i) {
  9600. var el = e.currentTarget;
  9601. el.getElementsByTagName("input")[0].click();
  9602. },
  9603. fold(i, e) {
  9604. if (
  9605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9606. ) {
  9607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9608. } else {
  9609. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9610. }
  9611. },
  9612. fold2(i) {
  9613. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9614. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9615. i
  9616. ].isFold2 = false;
  9617. } else {
  9618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9619. }
  9620. this.$forceUpdate();
  9621. },
  9622. foldEva(i) {
  9623. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9625. i
  9626. ].isEvaFold = false;
  9627. } else {
  9628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9629. i
  9630. ].isEvaFold = true;
  9631. setTimeout(() => {
  9632. this.checkEva(this.checkId);
  9633. setTimeout(() => {
  9634. this.checkEva(this.checkId);
  9635. }, 500);
  9636. }, 0);
  9637. }
  9638. this.$forceUpdate();
  9639. },
  9640. foldC(i) {
  9641. if (
  9642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9643. ) {
  9644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9645. i
  9646. ].isFoldchapter = false;
  9647. } else {
  9648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9649. i
  9650. ].isFoldchapter = true;
  9651. }
  9652. this.$forceUpdate();
  9653. },
  9654. fold3(i, ti) {
  9655. if (
  9656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9657. .isFold3
  9658. ) {
  9659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9660. ti
  9661. ].isFold3 = false;
  9662. } else {
  9663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9664. ti
  9665. ].isFold3 = true;
  9666. }
  9667. this.$forceUpdate();
  9668. },
  9669. deleteHomeworkBox(unitIndex, index, i) {
  9670. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9671. this.taskCount
  9672. ].homeworkList.splice(i, 1);
  9673. },
  9674. getStudent() {
  9675. let params = {
  9676. oid: this.oid,
  9677. cu: "",
  9678. cn: this.searchPeople,
  9679. };
  9680. this.ajax
  9681. .get(this.$store.state.api + "selectStudentAdd", params)
  9682. .then((res) => {
  9683. this.studentJuri = res.data[0];
  9684. })
  9685. .catch((err) => {
  9686. this.isLoading = false;
  9687. console.error(err);
  9688. });
  9689. },
  9690. getTeacher() {
  9691. let params = {
  9692. oid:
  9693. this.org && this.org != "undefined" && this.org != "null"
  9694. ? this.org
  9695. : this.oid,
  9696. cu: "",
  9697. cn: this.searchTN,
  9698. };
  9699. this.ajax
  9700. .get(
  9701. this.$store.state.api +
  9702. (this.org && this.org != "undefined" && this.org != "null"
  9703. ? "selectTeacherAddOrg"
  9704. : "selectTeacherAdd"),
  9705. params
  9706. )
  9707. .then((res) => {
  9708. let teacherJuri = res.data[0];
  9709. for (var i = 0; i < teacherJuri.length; i++) {
  9710. if (teacherJuri[i].userid == this.userid) {
  9711. teacherJuri.splice(i, 1);
  9712. break;
  9713. }
  9714. }
  9715. this.teacherJuri = teacherJuri;
  9716. let _check = [];
  9717. let _check2 = [];
  9718. for (var i = 0; i < this.teacherJuri.length; i++) {
  9719. var gid = this.teacherJuri[i].userid;
  9720. _check.push(gid);
  9721. }
  9722. for (var i = 0; i < this.checkboxList3.length; i++) {
  9723. var _id = this.checkboxList3[i];
  9724. if (_check.indexOf(_id) !== -1) {
  9725. _check2.push(_id);
  9726. }
  9727. }
  9728. this.checkAll2 = _check2.length === _check.length;
  9729. })
  9730. .catch((err) => {
  9731. console.error(err);
  9732. });
  9733. },
  9734. searchStudent() {
  9735. this.getStudent();
  9736. },
  9737. selectGrage() {
  9738. let params = {
  9739. oid: this.oid,
  9740. };
  9741. this.ajax
  9742. .get(this.$store.state.api + "selectGrageBySchool", params)
  9743. .then((res) => {
  9744. this.gradeList = res.data[0];
  9745. })
  9746. .catch((err) => {
  9747. this.isLoading = false;
  9748. console.error(err);
  9749. });
  9750. },
  9751. //获取班级列表
  9752. getClass() {
  9753. let params = {
  9754. oid: this.oid,
  9755. gid: this.gradeId,
  9756. cn: this.classSearch,
  9757. };
  9758. this.ajax
  9759. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  9760. .then((res) => {
  9761. if (!this.grade.length) {
  9762. this.grade = res.data[0];
  9763. }
  9764. this.grade2 = res.data[0];
  9765. this.classJuri = res.data[0];
  9766. let _check = [];
  9767. let _check2 = [];
  9768. for (var i = 0; i < this.grade2.length; i++) {
  9769. var gid = this.grade2[i].id;
  9770. _check.push(gid);
  9771. }
  9772. for (var i = 0; i < this.checkboxList2.length; i++) {
  9773. var _id = this.checkboxList2[i];
  9774. if (_check.indexOf(_id) !== -1) {
  9775. _check2.push(_id);
  9776. }
  9777. }
  9778. this.checkAll = _check2.length === _check.length;
  9779. })
  9780. .catch((err) => {
  9781. this.isLoading = false;
  9782. console.error(err);
  9783. });
  9784. },
  9785. CourseType2Change(val) {
  9786. this.pTypeCheck = [];
  9787. for (var i = 0; i < this.CourseType2.length; i++) {
  9788. let typeA = this.CourseType2[i];
  9789. if (val.indexOf(typeA.name) != -1) {
  9790. this.pTypeCheck.push(...typeA.id);
  9791. }
  9792. }
  9793. },
  9794. getChapterData(e, i, j, ic, type) {
  9795. e.stopPropagation();
  9796. this.updataC = true;
  9797. this.icc = ic;
  9798. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  9799. console.log("还不能下载图片喔");
  9800. }
  9801. },
  9802. deleteChapterData(e, i, j, ic, taskI) {
  9803. e.stopPropagation();
  9804. let _this = this;
  9805. _this
  9806. .$confirm("确定删除此项?", "提示", {
  9807. confirmButtonText: "确定",
  9808. cancelButtonText: "取消",
  9809. type: "warning",
  9810. })
  9811. .then(() => {
  9812. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  9813. ic,
  9814. 1
  9815. );
  9816. })
  9817. .catch(() => {
  9818. return;
  9819. });
  9820. },
  9821. updataVideoT(e, i, j, ic) {
  9822. // e.stopPropagation();
  9823. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  9824. // ic
  9825. // ].name = JSON.parse(JSON.stringify(e.target.value));
  9826. this.line =
  9827. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  9828. this.taskCount = j;
  9829. this.lineCount = ic;
  9830. this.dialogVisibleupdataVideoT = true;
  9831. this.$forceUpdate();
  9832. },
  9833. updataVideoC() {
  9834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9835. this.taskCount
  9836. ].chapterData[this.lineCount].name = JSON.parse(
  9837. JSON.stringify(this.line)
  9838. );
  9839. this.dialogVisibleupdataVideoT = false;
  9840. this.$forceUpdate();
  9841. },
  9842. upCd(e, i, j, taskCount, ic) {
  9843. e.stopPropagation();
  9844. if (ic == 0) {
  9845. return;
  9846. }
  9847. var a = JSON.parse(
  9848. JSON.stringify(
  9849. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9850. ic - 1
  9851. ]
  9852. )
  9853. );
  9854. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  9855. JSON.parse(
  9856. JSON.stringify(
  9857. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9858. )
  9859. );
  9860. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9861. this.$forceUpdate();
  9862. },
  9863. downCd(e, i, j, taskCount, ic) {
  9864. e.stopPropagation();
  9865. if (
  9866. ic ==
  9867. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  9868. 1
  9869. ) {
  9870. return;
  9871. }
  9872. var a = JSON.parse(
  9873. JSON.stringify(
  9874. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9875. ic + 1
  9876. ]
  9877. )
  9878. );
  9879. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  9880. JSON.parse(
  9881. JSON.stringify(
  9882. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9883. )
  9884. );
  9885. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9886. this.$forceUpdate();
  9887. },
  9888. async upTool(e, i, j, tooli) {
  9889. e.stopPropagation();
  9890. if (tooli == 0) {
  9891. return;
  9892. }
  9893. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  9894. let count2 = await this.getWorksCount(3, i, j, tooli);
  9895. if (count1 > 0 || count2 > 0) {
  9896. this.$confirm(
  9897. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9898. "提示",
  9899. {
  9900. confirmButtonText: "确定",
  9901. cancelButtonText: "取消",
  9902. type: "warning",
  9903. }
  9904. )
  9905. .then(() => {
  9906. var a = JSON.parse(
  9907. JSON.stringify(
  9908. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  9909. tooli - 1
  9910. ]
  9911. )
  9912. );
  9913. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  9914. JSON.parse(
  9915. JSON.stringify(
  9916. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9917. )
  9918. );
  9919. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9920. this.$forceUpdate();
  9921. })
  9922. .catch(() => {
  9923. return;
  9924. });
  9925. } else {
  9926. var a = JSON.parse(
  9927. JSON.stringify(
  9928. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  9929. )
  9930. );
  9931. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  9932. JSON.parse(
  9933. JSON.stringify(
  9934. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9935. )
  9936. );
  9937. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9938. this.$forceUpdate();
  9939. }
  9940. },
  9941. async downTool(e, i, j, tooli) {
  9942. e.stopPropagation();
  9943. if (
  9944. tooli ==
  9945. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  9946. ) {
  9947. return;
  9948. }
  9949. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  9950. let count2 = await this.getWorksCount(3, i, j, tooli);
  9951. if (count1 > 0 || count2 > 0) {
  9952. this.$confirm(
  9953. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9954. "提示",
  9955. {
  9956. confirmButtonText: "确定",
  9957. cancelButtonText: "取消",
  9958. type: "warning",
  9959. }
  9960. )
  9961. .then(() => {
  9962. var a = JSON.parse(
  9963. JSON.stringify(
  9964. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  9965. tooli + 1
  9966. ]
  9967. )
  9968. );
  9969. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  9970. JSON.parse(
  9971. JSON.stringify(
  9972. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9973. )
  9974. );
  9975. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9976. this.$forceUpdate();
  9977. })
  9978. .catch(() => {
  9979. return;
  9980. });
  9981. } else {
  9982. var a = JSON.parse(
  9983. JSON.stringify(
  9984. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  9985. )
  9986. );
  9987. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  9988. JSON.parse(
  9989. JSON.stringify(
  9990. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9991. )
  9992. );
  9993. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9994. this.$forceUpdate();
  9995. }
  9996. },
  9997. addWork() {
  9998. let cPan = 1;
  9999. for (var i = 0; i < this.unitJson.length; i++) {
  10000. for (
  10001. var j = 0;
  10002. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10003. j++
  10004. ) {
  10005. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10006. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10007. if (
  10008. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10009. ) {
  10010. for (
  10011. var z = 0;
  10012. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10013. z++
  10014. ) {
  10015. if (
  10016. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10017. .length
  10018. ) {
  10019. this.$message.error("请把工具添加完整");
  10020. cPan = 2;
  10021. break;
  10022. }
  10023. }
  10024. }
  10025. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10026. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10027. i
  10028. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10029. return ele.value != "";
  10030. });
  10031. }
  10032. }
  10033. }
  10034. this.inputShow = true;
  10035. if (cPan == 2) {
  10036. this.steps--;
  10037. return;
  10038. }
  10039. for (var i = 0; i < this.unitJson.length; i++) {
  10040. delete this.unitJson[i].isUpdate;
  10041. }
  10042. let params = [
  10043. {
  10044. uid: this.userid,
  10045. title: this.courseName.replace(/%/g, "%25"),
  10046. brief: this.courseText.replace(/%/g, "%25"),
  10047. cover:
  10048. this.cover.length > 0
  10049. ? JSON.stringify(this.cover)
  10050. : JSON.stringify([
  10051. {
  10052. name: "noBanner.jpg",
  10053. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10054. uid: 1656409780264,
  10055. status: "success",
  10056. },
  10057. ]),
  10058. evaId: this.evalua,
  10059. astudent:
  10060. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10061. see: this.isTeacherSee == true ? 1 : 0,
  10062. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  10063. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10064. courseType: JSON.stringify(this.courseTypeId),
  10065. ateacher:
  10066. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10067. inviteCode: JSON.stringify(this.inviteCode),
  10068. },
  10069. ];
  10070. this.ajax
  10071. .post(this.$store.state.api + "addWorkNew2", params)
  10072. .then((res) => {
  10073. console.log(this.steps);
  10074. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10075. this.$message({
  10076. message: "新增成功",
  10077. type: "success",
  10078. });
  10079. }
  10080. this.number = res.data.ordernumber;
  10081. this.courseId = res.data.courseId;
  10082. this.cid = res.data.courseId;
  10083. this.courseUserid = this.userid;
  10084. this.islogin = true;
  10085. })
  10086. .catch((err) => {
  10087. this.$message.error("网络不佳");
  10088. console.error(err);
  10089. });
  10090. },
  10091. goCourse() {
  10092. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  10093. },
  10094. updateWork2() {
  10095. let _unitIndex = this.unitIndex;
  10096. let cPan = 1;
  10097. for (
  10098. var j = 0;
  10099. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10100. j++
  10101. ) {
  10102. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10103. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10104. j
  10105. ].proVisible2 = false;
  10106. if (
  10107. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10108. .length > 1
  10109. ) {
  10110. for (
  10111. var z = 0;
  10112. z <
  10113. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10114. .length;
  10115. z++
  10116. ) {
  10117. if (
  10118. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10119. z
  10120. ].tool.length
  10121. ) {
  10122. this.$message.error("请把工具添加完整");
  10123. cPan = 2;
  10124. break;
  10125. }
  10126. }
  10127. }
  10128. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10129. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10130. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10131. (ele) => {
  10132. return ele.value != "";
  10133. }
  10134. );
  10135. }
  10136. }
  10137. this.inputShow = true;
  10138. if (cPan == 2) {
  10139. this.steps--;
  10140. return;
  10141. }
  10142. let params = [
  10143. {
  10144. cid: this.cid,
  10145. chapters: JSON.stringify(this.unitJson),
  10146. uid: this.userid,
  10147. unitIndex: _unitIndex,
  10148. },
  10149. ];
  10150. this.ajax
  10151. .post(this.$store.state.api + "updateWorkNew4", params)
  10152. .then((res) => {
  10153. this.$message({
  10154. message: "修改成功",
  10155. type: "success",
  10156. });
  10157. this.courseId = this.cid;
  10158. })
  10159. .catch((err) => {
  10160. this.$message.error("网络不佳");
  10161. console.error(err);
  10162. });
  10163. },
  10164. updateWork3(unitIndex) {
  10165. let _unitIndex = unitIndex;
  10166. let cPan = 1;
  10167. for (
  10168. var j = 0;
  10169. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10170. j++
  10171. ) {
  10172. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10173. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10174. j
  10175. ].proVisible2 = false;
  10176. if (
  10177. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10178. .length > 1
  10179. ) {
  10180. for (
  10181. var z = 0;
  10182. z <
  10183. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10184. .length;
  10185. z++
  10186. ) {
  10187. if (
  10188. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10189. z
  10190. ].tool.length
  10191. ) {
  10192. this.$message.error("请把工具添加完整");
  10193. cPan = 2;
  10194. break;
  10195. }
  10196. }
  10197. }
  10198. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10199. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10200. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10201. (ele) => {
  10202. return ele.value != "";
  10203. }
  10204. );
  10205. }
  10206. }
  10207. this.inputShow = true;
  10208. if (cPan == 2) {
  10209. this.steps--;
  10210. return;
  10211. }
  10212. let params = [
  10213. {
  10214. cid: this.cid,
  10215. chapters: JSON.stringify(this.unitJson),
  10216. uid: this.userid,
  10217. unitIndex: _unitIndex,
  10218. },
  10219. ];
  10220. this.ajax
  10221. .post(this.$store.state.api + "updateWorkNew4", params)
  10222. .then((res) => {
  10223. // this.$message({
  10224. // message: "修改成功",
  10225. // type: "success",
  10226. // });
  10227. this.courseId = this.cid;
  10228. })
  10229. .catch((err) => {
  10230. this.$message.error("网络不佳");
  10231. console.error(err);
  10232. });
  10233. },
  10234. updateWork() {
  10235. let cPan = 1;
  10236. for (var i = 0; i < this.unitJson.length; i++) {
  10237. for (
  10238. var j = 0;
  10239. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10240. j++
  10241. ) {
  10242. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10243. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10244. if (
  10245. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10246. ) {
  10247. for (
  10248. var z = 0;
  10249. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10250. z++
  10251. ) {
  10252. if (
  10253. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10254. .length
  10255. ) {
  10256. this.$message.error("请把工具添加完整");
  10257. cPan = 2;
  10258. break;
  10259. }
  10260. }
  10261. }
  10262. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10263. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10264. i
  10265. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10266. return ele.value != "";
  10267. });
  10268. }
  10269. }
  10270. }
  10271. this.inputShow = true;
  10272. if (cPan == 2) {
  10273. this.steps--;
  10274. return;
  10275. }
  10276. for (var i = 0; i < this.unitJson.length; i++) {
  10277. delete this.unitJson[i].isUpdate;
  10278. }
  10279. let params = [
  10280. {
  10281. cid: this.cid,
  10282. title: this.courseName.replace(/%/g, "%25"),
  10283. brief: this.courseText.replace(/%/g, "%25"),
  10284. cover:
  10285. this.cover.length > 0
  10286. ? JSON.stringify(this.cover)
  10287. : JSON.stringify([
  10288. {
  10289. name: "noBanner.jpg",
  10290. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10291. uid: 1656409780264,
  10292. status: "success",
  10293. },
  10294. ]),
  10295. evaId: this.evalua,
  10296. astudent:
  10297. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10298. see: this.isTeacherSee == true ? 1 : 0,
  10299. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  10300. template: this.myWord != "undefined" ? this.myWord : [],
  10301. uid: this.userid,
  10302. courseType: JSON.stringify(this.courseTypeId),
  10303. ateacher:
  10304. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10305. inviteCode: JSON.stringify(this.inviteCode),
  10306. },
  10307. ];
  10308. this.ajax
  10309. .post(this.$store.state.api + "updateWorkNew2", params)
  10310. .then((res) => {
  10311. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10312. if (this.cidType == 1) {
  10313. this.$message({
  10314. message: "修改成功",
  10315. type: "success",
  10316. });
  10317. } else {
  10318. this.$message({
  10319. message: "新增成功",
  10320. type: "success",
  10321. });
  10322. }
  10323. }
  10324. this.number = this.nbOrder;
  10325. this.courseId = this.cid;
  10326. })
  10327. .catch((err) => {
  10328. this.$message.error("网络不佳");
  10329. console.error(err);
  10330. });
  10331. },
  10332. insertWord() {
  10333. this.dialogVisible1 = true;
  10334. this.updateBoolean2 = false;
  10335. this.tTitle = "";
  10336. this.tdetail = "";
  10337. },
  10338. addWord() {
  10339. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10340. name: this.tTitle,
  10341. content: this.tdetail,
  10342. uid: this.guid(),
  10343. });
  10344. this.dialogVisible1 = false;
  10345. },
  10346. upWord() {},
  10347. selectWord(uid, i, c) {
  10348. this.dialogVisible1 = true;
  10349. this.updateBoolean2 = true;
  10350. if (
  10351. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10352. ) {
  10353. this.tTitle =
  10354. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10355. this.tdetail =
  10356. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10357. }
  10358. },
  10359. isAddPP() {
  10360. if (this.checkboxList.length > 0) {
  10361. this.$message({
  10362. message: "添加成功",
  10363. type: "success",
  10364. });
  10365. this.dialogVisible3 = false;
  10366. } else {
  10367. this.$message({
  10368. message: "请添加课程成员",
  10369. type: "error",
  10370. });
  10371. }
  10372. },
  10373. isAddClass() {
  10374. this.dialogVisibleClass = false;
  10375. },
  10376. isAddPPTeacher() {
  10377. this.dialogVisibleMember = false;
  10378. this.setMan();
  10379. },
  10380. getTemplate() {
  10381. this.ajax
  10382. .get(this.$store.state.api + "getCourseTemplateT", "")
  10383. .then((res) => {
  10384. this.templateArray = res.data[0];
  10385. this.getTemplateOid();
  10386. this.$forceUpdate();
  10387. })
  10388. .catch((err) => {});
  10389. },
  10390. getTemplateOid() {
  10391. let params = {
  10392. oid: this.oid,
  10393. };
  10394. this.ajax
  10395. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10396. .then((res) => {
  10397. if (res.data[0].length) {
  10398. this.templateArray = [...res.data[0], ...this.templateArray];
  10399. }
  10400. this.getTemplateOrg();
  10401. this.$forceUpdate();
  10402. })
  10403. .catch((err) => {});
  10404. },
  10405. getTemplateOrg() {
  10406. let params = {
  10407. oid: this.org,
  10408. };
  10409. this.ajax
  10410. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10411. .then((res) => {
  10412. if (res.data[0].length) {
  10413. this.templateArray = [...res.data[0], ...this.templateArray];
  10414. }
  10415. this.$forceUpdate();
  10416. })
  10417. .catch((err) => {});
  10418. },
  10419. clearChoose() {
  10420. this.clearArray.splice(this.templateC.id, 1);
  10421. this.dialogVisible2 = false;
  10422. },
  10423. clearAttText() {
  10424. this.AttText = {
  10425. title: "",
  10426. text: "",
  10427. };
  10428. this.dialogVisible6 = false;
  10429. },
  10430. clearLine() {
  10431. this.line = "";
  10432. this.dialogVisible7 = false;
  10433. },
  10434. openTemplate() {
  10435. this.ctJson = {};
  10436. this.templateDialog = true;
  10437. },
  10438. checkctJson(json) {
  10439. if (this.ctJson.id == json.id) {
  10440. this.ctJson = {};
  10441. } else {
  10442. this.ctJson = json;
  10443. }
  10444. },
  10445. addTemplate(res) {
  10446. let _this = this;
  10447. let _res = [];
  10448. if (res.id == 1) {
  10449. _res = [
  10450. {
  10451. dyName: "", //单元标题
  10452. easy: 1,
  10453. chapterInfo: [
  10454. {
  10455. isread: false,
  10456. chapterid: this.guid(),
  10457. title: "",
  10458. courseName: "",
  10459. taskJson: [
  10460. {
  10461. task: "",
  10462. taskDetail: "",
  10463. chapterData: [],
  10464. toolText: "",
  10465. toolChoose: [
  10466. {
  10467. tool: [],
  10468. toolDetail: "",
  10469. toolType: 0,
  10470. askCount: 1,
  10471. askTitle: "",
  10472. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10473. },
  10474. ],
  10475. isShowTools: false,
  10476. askCount: 1,
  10477. isFold: 1,
  10478. askTitle: "",
  10479. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10480. checkJson: [{ checkCount: [], checkPerent: [] }],
  10481. homeworkList: [],
  10482. },
  10483. ],
  10484. itemCount: 1,
  10485. fileList1: [],
  10486. video: [],
  10487. testData: [],
  10488. pData: [],
  10489. templateArray: [],
  10490. },
  10491. ],
  10492. },
  10493. ];
  10494. this.updateCourseState(1);
  10495. } else if (res.id == 2) {
  10496. let stageData = [];
  10497. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10498. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10499. if (!iframe && !iframe2) {
  10500. this.$message.error("请使用AI共创生成");
  10501. return;
  10502. }
  10503. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10504. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10505. if (
  10506. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10507. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10508. ) {
  10509. this.$message.error("请使用AI共创生成");
  10510. return;
  10511. }
  10512. stageData = copyData
  10513. ? copyData.stageData
  10514. : copyData2
  10515. ? copyData2.stageData
  10516. : [""];
  10517. for (var i = 0; i < stageData.length; i++) {
  10518. _res.push({
  10519. dyName: stageData[i], //单元标题
  10520. chapterInfo: [
  10521. {
  10522. isread: false,
  10523. chapterid: this.guid(),
  10524. title: "",
  10525. courseName: "",
  10526. taskJson: [
  10527. {
  10528. task: "",
  10529. taskDetail: "",
  10530. chapterData: [],
  10531. toolText: "",
  10532. toolChoose: [
  10533. {
  10534. tool: [],
  10535. toolDetail: "",
  10536. toolType: 0,
  10537. askCount: 1,
  10538. askTitle: "",
  10539. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10540. },
  10541. ],
  10542. isShowTools: false,
  10543. askCount: 1,
  10544. isFold: 1,
  10545. askTitle: "",
  10546. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10547. checkJson: [{ checkCount: [], checkPerent: [] }],
  10548. homeworkList: [],
  10549. },
  10550. ],
  10551. itemCount: 1,
  10552. fileList1: [],
  10553. video: [],
  10554. testData: [],
  10555. pData: [],
  10556. templateArray: [],
  10557. },
  10558. ],
  10559. });
  10560. }
  10561. this.updateCourseState(1);
  10562. } else if (!Object.keys(res).length) {
  10563. this.$message.error("请选择模板");
  10564. retrun;
  10565. } else {
  10566. _res = JSON.parse(res.chapters);
  10567. this.updateCourseState(parseInt(res.state));
  10568. }
  10569. _this
  10570. .$confirm(
  10571. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10572. "提示",
  10573. {
  10574. confirmButtonText: "确定",
  10575. cancelButtonText: "取消",
  10576. type: "warning",
  10577. }
  10578. )
  10579. .then(() => {
  10580. _this.unitJson = _res;
  10581. _this.updateWork();
  10582. // _this.steps++;
  10583. _this.templateDialog = false;
  10584. setTimeout(() => {
  10585. this.checkEva(this.checkId);
  10586. setTimeout(() => {
  10587. this.checkEva(this.checkId);
  10588. }, 100);
  10589. }, 1000);
  10590. })
  10591. .catch(() => {
  10592. return;
  10593. });
  10594. },
  10595. checkTemplate(res) {
  10596. let _this = this;
  10597. _this
  10598. .$confirm(
  10599. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10600. "提示",
  10601. {
  10602. confirmButtonText: "确定",
  10603. cancelButtonText: "取消",
  10604. type: "warning",
  10605. }
  10606. )
  10607. .then(() => {
  10608. _this.unitJson = JSON.parse(res.chapters);
  10609. _this.steps++;
  10610. setTimeout(() => {
  10611. this.checkEva(this.checkId);
  10612. setTimeout(() => {
  10613. this.checkEva(this.checkId);
  10614. }, 100);
  10615. }, 1000);
  10616. })
  10617. .catch(() => {
  10618. return;
  10619. });
  10620. },
  10621. checkTemplate1(w) {
  10622. this.steps++;
  10623. },
  10624. checkTemplate2() {
  10625. let _this = this;
  10626. _this
  10627. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  10628. confirmButtonText: "确定",
  10629. cancelButtonText: "取消",
  10630. type: "warning",
  10631. })
  10632. .then(() => {
  10633. _this.unitIndex = 0;
  10634. _this.unitJson = [
  10635. {
  10636. dyName: "", //单元标题
  10637. chapterInfo: [
  10638. {
  10639. isread: false,
  10640. chapterid: this.guid(),
  10641. title: "",
  10642. courseName: "",
  10643. taskJson: [
  10644. {
  10645. task: "",
  10646. taskDetail: "",
  10647. chapterData: [],
  10648. toolText: "",
  10649. toolChoose: [
  10650. {
  10651. tool: [],
  10652. toolDetail: "",
  10653. toolType: 0,
  10654. askCount: 1,
  10655. askTitle: "",
  10656. askJson: [
  10657. { askstitle: "", askItem: 1, checkList: [] },
  10658. ],
  10659. },
  10660. ],
  10661. isShowTools: false,
  10662. askCount: 1,
  10663. isFold: 1,
  10664. askTitle: "",
  10665. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10666. checkJson: [{ checkCount: [], checkPerent: [] }],
  10667. homeworkList: [],
  10668. },
  10669. ],
  10670. itemCount: 1,
  10671. fileList1: [],
  10672. video: [],
  10673. testData: [],
  10674. pData: [],
  10675. templateArray: [],
  10676. },
  10677. ],
  10678. },
  10679. ];
  10680. this.steps++;
  10681. setTimeout(() => {
  10682. this.checkEva(this.checkId);
  10683. setTimeout(() => {
  10684. this.checkEva(this.checkId);
  10685. }, 100);
  10686. }, 1000);
  10687. this.updateWork();
  10688. })
  10689. .catch(() => {
  10690. return;
  10691. });
  10692. },
  10693. checkTemplate3() {
  10694. let _this = this;
  10695. _this
  10696. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  10697. confirmButtonText: "确定",
  10698. cancelButtonText: "取消",
  10699. type: "warning",
  10700. })
  10701. .then(() => {
  10702. _this.unitIndex = 0;
  10703. _this.unitJson = [
  10704. {
  10705. dyName: "", //单元标题
  10706. easy: 1,
  10707. chapterInfo: [
  10708. {
  10709. isread: false,
  10710. chapterid: this.guid(),
  10711. title: "",
  10712. courseName: "",
  10713. taskJson: [
  10714. {
  10715. task: "",
  10716. taskDetail: "",
  10717. chapterData: [],
  10718. toolText: "",
  10719. toolChoose: [
  10720. {
  10721. tool: [],
  10722. toolDetail: "",
  10723. toolType: 0,
  10724. askCount: 1,
  10725. askTitle: "",
  10726. askJson: [
  10727. { askstitle: "", askItem: 1, checkList: [] },
  10728. ],
  10729. },
  10730. ],
  10731. isShowTools: false,
  10732. askCount: 1,
  10733. isFold: 1,
  10734. askTitle: "",
  10735. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10736. checkJson: [{ checkCount: [], checkPerent: [] }],
  10737. homeworkList: [],
  10738. },
  10739. ],
  10740. itemCount: 1,
  10741. fileList1: [],
  10742. video: [],
  10743. testData: [],
  10744. pData: [],
  10745. templateArray: [],
  10746. },
  10747. ],
  10748. },
  10749. ];
  10750. // this.steps++;
  10751. this.updateWork();
  10752. })
  10753. .catch(() => {
  10754. return;
  10755. });
  10756. },
  10757. checkTemplate4() {
  10758. let _this = this;
  10759. _this
  10760. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  10761. confirmButtonText: "确定",
  10762. cancelButtonText: "取消",
  10763. type: "warning",
  10764. })
  10765. .then(() => {
  10766. _this.unitIndex = 0;
  10767. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  10768. this.steps++;
  10769. this.updateWork();
  10770. })
  10771. .catch(() => {
  10772. return;
  10773. });
  10774. },
  10775. wordNext() {
  10776. this.dialogVisible2 = false;
  10777. },
  10778. isAddOrUpdateAttText() {
  10779. if (this.AttTextType == 0) {
  10780. this.addAttTextMessage();
  10781. } else {
  10782. this.updateAttText();
  10783. }
  10784. },
  10785. isAddOrUpdateLine() {
  10786. if (!this.lineTitle) {
  10787. this.$message.error("请填写链接标题");
  10788. return;
  10789. }
  10790. if (this.lineType == 0) {
  10791. this.addLine();
  10792. } else {
  10793. this.updateLine();
  10794. }
  10795. },
  10796. addAttTextMessage() {
  10797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10798. this.taskCount
  10799. ].chapterData.push({
  10800. name: this.AttText.title,
  10801. url: this.AttText.text,
  10802. type: 6,
  10803. });
  10804. this.imgChange1(null, null, 6, this.taskCount);
  10805. this.dialogVisible6 = false;
  10806. },
  10807. selectAttText(itemTaskIndex, i) {
  10808. this.AttText.title =
  10809. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10810. itemTaskIndex
  10811. ].chapterData[i].name;
  10812. this.AttText.text =
  10813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10814. itemTaskIndex
  10815. ].chapterData[i].url;
  10816. this.taskCount = itemTaskIndex;
  10817. this.AttTextIndex = i;
  10818. this.AttTextType = 1;
  10819. this.dialogVisible6 = true;
  10820. },
  10821. updateAttText() {
  10822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10823. this.taskCount
  10824. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  10825. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10826. this.taskCount
  10827. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  10828. this.dialogVisible6 = false;
  10829. },
  10830. addLine() {
  10831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10832. this.lineCount
  10833. ].chapterData.push({
  10834. name: "链接",
  10835. title: this.lineTitle,
  10836. url: this.line,
  10837. type: 8,
  10838. });
  10839. this.imgChange1(null, null, 8, this.lineCount);
  10840. this.dialogVisible7 = false;
  10841. },
  10842. selectLine(itemTaskIndex, i) {
  10843. this.line =
  10844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10845. itemTaskIndex
  10846. ].chapterData[i].url;
  10847. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10848. itemTaskIndex
  10849. ].chapterData[i].title
  10850. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10851. .chapterData[i].title
  10852. : "";
  10853. this.taskCount = itemTaskIndex;
  10854. this.lineCount = i;
  10855. this.lineType = 1;
  10856. this.dialogVisible7 = true;
  10857. },
  10858. openUpdateSource(itemTaskIndex, i) {
  10859. this.sourceData = {};
  10860. let source =
  10861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10862. .chapterData[i];
  10863. this.sourceData[source.id] = {};
  10864. this.sourceData[source.id].name = source.title;
  10865. this.sourceData[source.id].url = source.url;
  10866. this.dialogVisibleSource = true;
  10867. this.updateSourcePan = true;
  10868. this.taskCount = itemTaskIndex;
  10869. this.lineCount = i;
  10870. },
  10871. updateLine() {
  10872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10873. this.taskCount
  10874. ].chapterData[this.lineCount].url = this.line;
  10875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10876. this.taskCount
  10877. ].chapterData[this.lineCount].title = this.lineTitle;
  10878. this.dialogVisible7 = false;
  10879. },
  10880. addPP() {
  10881. this.dialogVisible3 = true;
  10882. },
  10883. goTo(path) {
  10884. this.$router.push(path);
  10885. },
  10886. openTools(itemTaskIndex, i, toolIndex) {
  10887. this.toolIndex = toolIndex;
  10888. this.taskCount = itemTaskIndex;
  10889. if (i == 4) {
  10890. if (toolIndex == null) {
  10891. var a =
  10892. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10893. .chapterData;
  10894. for (var i = 0; i < a.length; i++) {
  10895. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  10896. this.askJson =
  10897. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10898. itemTaskIndex
  10899. ].chapterData[i].askJson;
  10900. }
  10901. }
  10902. } else {
  10903. this.askJson = JSON.parse(
  10904. JSON.stringify(
  10905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10906. itemTaskIndex
  10907. ].toolChoose[toolIndex]
  10908. )
  10909. );
  10910. }
  10911. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  10912. this.dialogVisible5 = true;
  10913. } else if (i == 45) {
  10914. if (
  10915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10916. .toolChoose[toolIndex].testJson
  10917. ) {
  10918. this.testJson = JSON.parse(
  10919. JSON.stringify(
  10920. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10921. itemTaskIndex
  10922. ].toolChoose[toolIndex].testJson
  10923. )
  10924. );
  10925. } else {
  10926. var testJson = {
  10927. testCount: 1,
  10928. testTitle: "",
  10929. testJson: [
  10930. {
  10931. teststitle: "",
  10932. testItem: 1,
  10933. checkList: [],
  10934. timuList: [],
  10935. answer: [],
  10936. type: "1",
  10937. },
  10938. ],
  10939. };
  10940. this.testJson = testJson;
  10941. }
  10942. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  10943. this.dialogVisibleChoice = true;
  10944. } else if (i == 47) {
  10945. if (
  10946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10947. .toolChoose[toolIndex].sentenceList
  10948. ) {
  10949. this.sentenceList = JSON.parse(
  10950. JSON.stringify(
  10951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10952. itemTaskIndex
  10953. ].toolChoose[toolIndex].sentenceList
  10954. )
  10955. );
  10956. } else {
  10957. var sentenceList = [
  10958. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10959. ];
  10960. this.sentenceList = sentenceList;
  10961. }
  10962. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  10963. this.dialogVisibleSentence = true;
  10964. } else if (i == 48) {
  10965. if (
  10966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10967. .toolChoose[toolIndex].tableJson
  10968. ) {
  10969. this.tableJson = JSON.parse(
  10970. JSON.stringify(
  10971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10972. itemTaskIndex
  10973. ].toolChoose[toolIndex].tableJson
  10974. )
  10975. );
  10976. } else {
  10977. var tableJson = { text: "" };
  10978. this.tableJson = tableJson;
  10979. }
  10980. this.dialogVisibleTable = true;
  10981. } else if (i == 52) {
  10982. if (
  10983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10984. .toolChoose[toolIndex].wordJson
  10985. ) {
  10986. this.wordJson = JSON.parse(
  10987. JSON.stringify(
  10988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10989. itemTaskIndex
  10990. ].toolChoose[toolIndex].wordJson
  10991. )
  10992. );
  10993. } else {
  10994. var wordJson = { text: "" };
  10995. this.wordJson = wordJson;
  10996. }
  10997. this.dialogVisibleWord = true;
  10998. // else if (i == 50) {
  10999. // if (
  11000. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11001. // .toolChoose[toolIndex].uploadJson
  11002. // ) {
  11003. // this.uploadJson = JSON.parse(
  11004. // JSON.stringify(
  11005. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11006. // itemTaskIndex
  11007. // ].toolChoose[toolIndex].uploadJson
  11008. // )
  11009. // );
  11010. // } else {
  11011. // var uploadJson = [];
  11012. // this.uploadJson = uploadJson;
  11013. // }
  11014. // this.dialogVisibleMoreUpload = true;
  11015. // }
  11016. } else if (i == 10) {
  11017. if (
  11018. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11019. .toolChoose[toolIndex].preTime
  11020. ) {
  11021. this.preTime = JSON.parse(
  11022. JSON.stringify(
  11023. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11024. itemTaskIndex
  11025. ].toolChoose[toolIndex].preTime
  11026. )
  11027. );
  11028. } else {
  11029. var preTime = 0;
  11030. this.preTime = preTime;
  11031. }
  11032. this.dialogVisiblePreTime = true;
  11033. } else if (i == 49) {
  11034. if (
  11035. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11036. .toolChoose[toolIndex].groupJson
  11037. ) {
  11038. this.groupJson = JSON.parse(
  11039. JSON.stringify(
  11040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11041. itemTaskIndex
  11042. ].toolChoose[toolIndex].groupJson
  11043. )
  11044. );
  11045. } else {
  11046. var groupJson = {
  11047. group: [{ name: "第1组" }],
  11048. number: undefined,
  11049. islock: 1,
  11050. };
  11051. this.groupJson = groupJson;
  11052. }
  11053. this.dialogVisibleGroup = true;
  11054. } else if (i == 62) {
  11055. if (
  11056. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11057. .toolChoose[toolIndex].videoJson
  11058. ) {
  11059. this.videoJson = JSON.parse(
  11060. JSON.stringify(
  11061. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11062. itemTaskIndex
  11063. ].toolChoose[toolIndex].videoJson
  11064. )
  11065. );
  11066. } else {
  11067. var videoJson = {
  11068. video: "",
  11069. setting: [],
  11070. };
  11071. this.videoJson = videoJson;
  11072. }
  11073. this.dialogVisibleVideo = true;
  11074. } else if (i == 15) {
  11075. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11076. itemTaskIndex
  11077. ].toolChoose[toolIndex].answerQ
  11078. ? JSON.parse(
  11079. JSON.stringify(
  11080. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11081. itemTaskIndex
  11082. ].toolChoose[toolIndex].answerQ
  11083. )
  11084. )
  11085. : "";
  11086. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11087. this.dialogVisible8 = true;
  11088. } else if (i == 40) {
  11089. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11090. itemTaskIndex
  11091. ].toolChoose[toolIndex].rateJson
  11092. ? JSON.parse(
  11093. JSON.stringify(
  11094. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11095. itemTaskIndex
  11096. ].toolChoose[toolIndex].rateJson
  11097. )
  11098. )
  11099. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11100. this.selectSteps = 1;
  11101. this.dialogVisibleRate = true;
  11102. } else if (i == 42) {
  11103. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11104. itemTaskIndex
  11105. ].toolChoose[toolIndex].answerQ
  11106. ? JSON.parse(
  11107. JSON.stringify(
  11108. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11109. itemTaskIndex
  11110. ].toolChoose[toolIndex].answerQ
  11111. )
  11112. )
  11113. : "";
  11114. this.dialogVisibleMp3 = true;
  11115. } else if (i == 41) {
  11116. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11117. itemTaskIndex
  11118. ].toolChoose[toolIndex].selectJson
  11119. ? JSON.parse(
  11120. JSON.stringify(
  11121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11122. itemTaskIndex
  11123. ].toolChoose[toolIndex].selectJson
  11124. )
  11125. )
  11126. : { url: "", select: [], answer: [] };
  11127. this.selectSteps = 1;
  11128. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11129. this.dialogVisibleSelect = true;
  11130. } else if (i == 3) {
  11131. top.postMessage(
  11132. {
  11133. tools: "3y",
  11134. cid: this.cid,
  11135. stage: this.unitIndex,
  11136. task: itemTaskIndex,
  11137. tool: toolIndex,
  11138. },
  11139. "*"
  11140. );
  11141. } else if (i == 1) {
  11142. top.postMessage(
  11143. {
  11144. tools: "1y",
  11145. cid: this.cid,
  11146. stage: this.unitIndex,
  11147. task: itemTaskIndex,
  11148. tool: toolIndex,
  11149. },
  11150. "*"
  11151. );
  11152. } else if (i == 57) {
  11153. top.postMessage(
  11154. {
  11155. tools: "57y",
  11156. cid: this.cid,
  11157. stage: this.unitIndex,
  11158. task: itemTaskIndex,
  11159. tool: toolIndex,
  11160. },
  11161. "*"
  11162. );
  11163. } else if (i == 69) {
  11164. this.englishList = {};
  11165. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11166. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11167. ? JSON.parse(
  11168. JSON.stringify(
  11169. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11170. itemTaskIndex
  11171. ].toolChoose[toolIndex].englishList
  11172. )
  11173. )
  11174. : {};
  11175. this.$forceUpdate();
  11176. this.englishDialogVisible = true;
  11177. } else if (i == 70) {
  11178. this.englishVoiceJson = {};
  11179. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11180. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11181. ? JSON.parse(
  11182. JSON.stringify(
  11183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11184. itemTaskIndex
  11185. ].toolChoose[toolIndex].englishVoiceJson
  11186. )
  11187. )
  11188. : {
  11189. time: "",
  11190. class: "",
  11191. difficulty: 0,
  11192. topic: "",
  11193. isShow: false,
  11194. eva: 0,
  11195. aiEva: {
  11196. isAiEva: false,
  11197. aiEvaChoose: [],
  11198. },
  11199. allfType: [],
  11200. englishJson: {},
  11201. };
  11202. this.$forceUpdate();
  11203. this.EnglishVoiceDialog = true;
  11204. }
  11205. },
  11206. setEnglishVoiceJson(val) {
  11207. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11208. this.taskCount
  11209. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11210. JSON.stringify(val)
  11211. );
  11212. this.$forceUpdate();
  11213. if (
  11214. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11215. .toolChoose[this.toolIndex].tool != 70
  11216. ) {
  11217. this.addTools(70, this.taskCount, this.toolIndex);
  11218. }
  11219. },
  11220. chapAddTools(i) {
  11221. if (this.chapTools[0].tools.length == 0) {
  11222. this.chapTools[0].tools.push(i);
  11223. } else {
  11224. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11225. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11226. } else {
  11227. this.chapTools[0].tools.push(i);
  11228. }
  11229. }
  11230. this.$forceUpdate();
  11231. },
  11232. addChaptersDataTools() {
  11233. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11235. this.chapCount
  11236. ].chapterData.push({
  11237. name: this.chapTools[0].toolDetail,
  11238. url: this.chapTools[0].tools,
  11239. type: 7,
  11240. askJson: this.askJson,
  11241. });
  11242. } else {
  11243. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11244. this.chapCount
  11245. ].chapterData.push({
  11246. name: this.chapTools[0].toolDetail,
  11247. url: this.chapTools[0].tools,
  11248. type: 7,
  11249. });
  11250. }
  11251. this.imgChange1(null, null, 7, this.chapCount);
  11252. this.dialogVisible4 = false;
  11253. },
  11254. addTools(i, itemTaskIndex, toolIndex) {
  11255. // if (
  11256. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11257. // .toolChoose[toolIndex].tool.length == 0
  11258. // ) {
  11259. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11260. // itemTaskIndex
  11261. // ].toolChoose[toolIndex].tool.push(i);
  11262. // } else {
  11263. // if (
  11264. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11265. // itemTaskIndex
  11266. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11267. // ) {
  11268. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11269. // itemTaskIndex
  11270. // ].toolChoose[toolIndex].tool.splice(
  11271. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11272. // itemTaskIndex
  11273. // ].toolChoose[toolIndex].tool.indexOf(i),
  11274. // 1
  11275. // );
  11276. // } else {
  11277. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11278. // itemTaskIndex
  11279. // ].toolChoose[toolIndex].tool.push(i);
  11280. // }
  11281. // console.log(
  11282. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11283. // .toolChoose[toolIndex].tool
  11284. // );
  11285. // }
  11286. if (i == 4) {
  11287. if (
  11288. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11289. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11291. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11293. .toolChoose[toolIndex].askJson[0].checkList < 2
  11294. ) {
  11295. this.openTools(itemTaskIndex, 4, toolIndex);
  11296. // this.$message({
  11297. // message: "请填写完整问卷内容",
  11298. // type: "error",
  11299. // });
  11300. return;
  11301. }
  11302. }
  11303. if (i == 45) {
  11304. if (
  11305. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11306. .toolChoose[toolIndex].testJson ||
  11307. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11308. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11310. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11311. ) {
  11312. this.openTools(itemTaskIndex, 45, toolIndex);
  11313. // this.$message({
  11314. // message: "请填写完整问卷内容",
  11315. // type: "error",
  11316. // });
  11317. return;
  11318. }
  11319. }
  11320. if (i == 47) {
  11321. if (
  11322. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11323. .toolChoose[toolIndex].sentenceList ||
  11324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11325. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11326. ) {
  11327. this.openTools(itemTaskIndex, 47, toolIndex);
  11328. return;
  11329. }
  11330. }
  11331. if (i == 69) {
  11332. if (
  11333. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11334. .toolChoose[toolIndex].englishList
  11335. ) {
  11336. this.openTools(itemTaskIndex, 69, toolIndex);
  11337. return;
  11338. }
  11339. }
  11340. if (i == 70) {
  11341. if (
  11342. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11343. .toolChoose[toolIndex].englishVoiceJson
  11344. ) {
  11345. this.openTools(itemTaskIndex, 70, toolIndex);
  11346. return;
  11347. }
  11348. }
  11349. // if (i == 48) {
  11350. // if (
  11351. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11352. // .toolChoose[toolIndex].tableJson
  11353. // ) {
  11354. // this.openTools(itemTaskIndex, 48, toolIndex);
  11355. // return;
  11356. // }
  11357. // }
  11358. // if (i == 50) {
  11359. // if (
  11360. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11361. // .toolChoose[toolIndex].uploadJson
  11362. // ) {
  11363. // this.openTools(itemTaskIndex, 50, toolIndex);
  11364. // return;
  11365. // }
  11366. // }
  11367. if (i == 49) {
  11368. if (
  11369. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11370. .toolChoose[toolIndex].groupJson
  11371. ) {
  11372. this.openTools(itemTaskIndex, 49, toolIndex);
  11373. return;
  11374. }
  11375. }
  11376. if (i == 62) {
  11377. if (
  11378. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11379. .toolChoose[toolIndex].videoJson
  11380. ) {
  11381. this.openTools(itemTaskIndex, 62, toolIndex);
  11382. return;
  11383. }
  11384. }
  11385. if (i == 15) {
  11386. if (
  11387. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11388. .toolChoose[toolIndex].answerQ ||
  11389. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11390. .toolChoose[toolIndex].answerQ == ""
  11391. ) {
  11392. this.openTools(itemTaskIndex, 15, toolIndex);
  11393. // this.$message({
  11394. // message: "请填写问答内容",
  11395. // type: "error",
  11396. // });
  11397. return;
  11398. }
  11399. }
  11400. if (i == 40) {
  11401. if (
  11402. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11403. .toolChoose[toolIndex].rateJson ||
  11404. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11405. .toolChoose[toolIndex].rateJson.length
  11406. ) {
  11407. this.openTools(itemTaskIndex, 40, toolIndex);
  11408. return;
  11409. }
  11410. }
  11411. if (i == 41) {
  11412. if (
  11413. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11414. .toolChoose[toolIndex].selectJson ||
  11415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11416. .toolChoose[toolIndex].selectJson.url == "" ||
  11417. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11418. .toolChoose[toolIndex].selectJson.select.length ||
  11419. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11420. .toolChoose[toolIndex].selectJson.answer.length
  11421. ) {
  11422. this.openTools(itemTaskIndex, 41, toolIndex);
  11423. return;
  11424. }
  11425. }
  11426. if (i == 42) {
  11427. if (
  11428. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11429. .toolChoose[toolIndex].answerQ ||
  11430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11431. .toolChoose[toolIndex].answerQ == ""
  11432. ) {
  11433. this.openTools(itemTaskIndex, 42, toolIndex);
  11434. return;
  11435. }
  11436. }
  11437. if (
  11438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11439. .toolChoose[toolIndex].tool.length > 0
  11440. ) {
  11441. if (
  11442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11443. itemTaskIndex
  11444. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11445. ) {
  11446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11447. itemTaskIndex
  11448. ].toolChoose[toolIndex].tool.splice(
  11449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11450. itemTaskIndex
  11451. ].toolChoose[toolIndex].tool.indexOf(i),
  11452. 1
  11453. );
  11454. } else {
  11455. // this.$message({
  11456. // message: "每个工具只能添加一个",
  11457. // type: "error",
  11458. // });
  11459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11460. itemTaskIndex
  11461. ].toolChoose[toolIndex].tool = [];
  11462. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11463. itemTaskIndex
  11464. ].toolChoose[toolIndex].tool.push(i);
  11465. }
  11466. } else {
  11467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11468. itemTaskIndex
  11469. ].toolChoose[toolIndex].tool.push(i);
  11470. }
  11471. this.$forceUpdate();
  11472. },
  11473. addAskList(index) {
  11474. this.askJson.askJson.splice(index + 1, 0, {
  11475. askstitle: "",
  11476. askItem: 1,
  11477. checkList: [],
  11478. });
  11479. this.askJson.askCount++;
  11480. },
  11481. addTestList(index) {
  11482. this.testJson.testJson.splice(index + 1, 0, {
  11483. teststitle: "",
  11484. testItem: 1,
  11485. checkList: [],
  11486. timuList: [],
  11487. answer: [],
  11488. type: "1",
  11489. });
  11490. this.testJson.testCount++;
  11491. },
  11492. deleteAskList(index) {
  11493. if (
  11494. !this.askJson.askJson[index].askstitle &&
  11495. this.askJson.askJson[index].askItem == 1 &&
  11496. !this.askJson.askJson[index].checkList[0]
  11497. ) {
  11498. this.askJson.askJson.splice(index, 1);
  11499. this.askJson.askCount--;
  11500. } else {
  11501. let _this = this;
  11502. _this
  11503. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11504. confirmButtonText: "确定",
  11505. cancelButtonText: "取消",
  11506. type: "warning",
  11507. })
  11508. .then(() => {
  11509. _this.askJson.askJson.splice(index, 1);
  11510. _this.askJson.askCount--;
  11511. })
  11512. .catch(() => {
  11513. return;
  11514. });
  11515. }
  11516. },
  11517. deleteTestList(index) {
  11518. if (
  11519. !this.testJson.testJson[index].teststitle &&
  11520. this.testJson.testJson[index].testItem == 1 &&
  11521. !this.testJson.testJson[index].checkList[0]
  11522. ) {
  11523. this.testJson.testJson.splice(index, 1);
  11524. this.testJson.testCount--;
  11525. } else {
  11526. let _this = this;
  11527. _this
  11528. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11529. confirmButtonText: "确定",
  11530. cancelButtonText: "取消",
  11531. type: "warning",
  11532. })
  11533. .then(() => {
  11534. _this.testJson.testJson.splice(index, 1);
  11535. _this.testJson.testCount--;
  11536. })
  11537. .catch(() => {
  11538. return;
  11539. });
  11540. }
  11541. },
  11542. askMove(type, index) {
  11543. if (type == 1) {
  11544. if (index > 0) {
  11545. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11546. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11547. this.askJson.askJson[index - 1] = b;
  11548. this.askJson.askJson[index] = a;
  11549. }
  11550. } else {
  11551. if (index < this.askJson.askJson.length - 1) {
  11552. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11553. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11554. this.askJson.askJson[index + 1] = b;
  11555. this.askJson.askJson[index] = a;
  11556. }
  11557. }
  11558. this.$forceUpdate();
  11559. },
  11560. checkMove(type, index, checkIndex) {
  11561. if (type == 1) {
  11562. if (checkIndex > 0) {
  11563. let a = JSON.parse(
  11564. JSON.stringify(
  11565. this.askJson.askJson[index].checkList[checkIndex - 1]
  11566. )
  11567. );
  11568. let b = JSON.parse(
  11569. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11570. );
  11571. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11572. this.askJson.askJson[index].checkList[checkIndex] = a;
  11573. }
  11574. } else {
  11575. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11576. let a = JSON.parse(
  11577. JSON.stringify(
  11578. this.askJson.askJson[index].checkList[checkIndex + 1]
  11579. )
  11580. );
  11581. let b = JSON.parse(
  11582. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11583. );
  11584. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11585. this.askJson.askJson[index].checkList[checkIndex] = a;
  11586. }
  11587. }
  11588. this.$forceUpdate();
  11589. },
  11590. testMove(type, index) {
  11591. if (type == 1) {
  11592. if (index > 0) {
  11593. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11594. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11595. this.testJson.testJson[index - 1] = b;
  11596. this.testJson.testJson[index] = a;
  11597. }
  11598. } else {
  11599. if (index < this.testJson.testJson.length - 1) {
  11600. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11601. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11602. this.testJson.testJson[index + 1] = b;
  11603. this.testJson.testJson[index] = a;
  11604. }
  11605. }
  11606. this.$forceUpdate();
  11607. },
  11608. tcheckMove(type, index, checkIndex) {
  11609. if (type == 1) {
  11610. if (checkIndex > 0) {
  11611. let a = JSON.parse(
  11612. JSON.stringify(
  11613. this.testJson.testJson[index].checkList[checkIndex - 1]
  11614. )
  11615. );
  11616. let b = JSON.parse(
  11617. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11618. );
  11619. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11620. this.testJson.testJson[index].checkList[checkIndex] = a;
  11621. }
  11622. } else {
  11623. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11624. let a = JSON.parse(
  11625. JSON.stringify(
  11626. this.testJson.testJson[index].checkList[checkIndex + 1]
  11627. )
  11628. );
  11629. let b = JSON.parse(
  11630. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11631. );
  11632. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  11633. this.testJson.testJson[index].checkList[checkIndex] = a;
  11634. }
  11635. }
  11636. this.$forceUpdate();
  11637. },
  11638. addcheckList(json, index) {
  11639. // json.checkList.length++;
  11640. json.checkList.splice(index + 1, 0, "");
  11641. json.askItem++;
  11642. this.$forceUpdate();
  11643. },
  11644. deletecheckList(json, index) {
  11645. // json.checkList.length--;
  11646. json.checkList.splice(index, 1);
  11647. json.askItem--;
  11648. this.$forceUpdate();
  11649. },
  11650. addTcheckList(json, index) {
  11651. // json.checkList.length++;
  11652. json.checkList.splice(index + 1, 0, "");
  11653. json.testItem++;
  11654. this.$forceUpdate();
  11655. },
  11656. deleteTcheckList(json, index) {
  11657. // json.checkList.length--;
  11658. json.checkList.splice(index, 1);
  11659. json.testItem--;
  11660. this.$forceUpdate();
  11661. },
  11662. checkTestType(type, json) {
  11663. json.type = type;
  11664. setTimeout(() => {
  11665. json.answer = [];
  11666. }, 100);
  11667. },
  11668. checkAskType(type, json) {
  11669. json.type = type;
  11670. // json.checkList = [];
  11671. this.$forceUpdate();
  11672. },
  11673. addSelectList(json) {
  11674. json.select.push("");
  11675. json.answer.push("");
  11676. },
  11677. deleteSelectList(json) {
  11678. // json.select.length--;
  11679. // json.answer.length--;
  11680. json.select.splice(json.select.length - 1, 1);
  11681. json.answer.splice(json.answer.length - 1, 1);
  11682. },
  11683. addAsk() {
  11684. if (this.askJson.askTitle === "") {
  11685. this.$message.error("标题不能为空!");
  11686. return;
  11687. }
  11688. var aj = this.askJson.askJson;
  11689. var b = 1;
  11690. for (var i = 0; i < aj.length; i++) {
  11691. if (aj[i].askstitle === "") {
  11692. var a = 1;
  11693. for (let index = 0; index < aj[i].askItem; index++) {
  11694. const element = aj[i].checkList[index]
  11695. ? aj[i].checkList[index]
  11696. : "";
  11697. if (element != "") {
  11698. b++;
  11699. this.$message.error(`请将题目${i + 1}填写完整。`);
  11700. return;
  11701. } else {
  11702. a++;
  11703. }
  11704. }
  11705. if (b == 1) {
  11706. this.$message.error("至少填写一个问题");
  11707. return;
  11708. }
  11709. } else if (aj[i].askstitle != "") {
  11710. for (let index = 0; index < aj[i].askItem; index++) {
  11711. const element = aj[i].checkList[index]
  11712. ? aj[i].checkList[index]
  11713. : "";
  11714. var index = 0;
  11715. for (var z = 0; z < aj[i].checkList.length; z++) {
  11716. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11717. if (checkC != "") {
  11718. index++;
  11719. } else {
  11720. this.$message.error(`题目${i + 1}选项不能为空!`);
  11721. return;
  11722. }
  11723. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11724. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11725. if (checkC == checkC2) {
  11726. this.$message.error(
  11727. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11728. );
  11729. return;
  11730. }
  11731. }
  11732. }
  11733. b++;
  11734. if (index < 2) {
  11735. this.$message.error("每道题目至少需要设置2个选项。");
  11736. return;
  11737. }
  11738. }
  11739. }
  11740. }
  11741. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  11742. var elc = el.checkList.filter((element) => {
  11743. return element != "";
  11744. });
  11745. return el.askstitle != "" && elc.length != 0;
  11746. });
  11747. if (!this.dialogVisible4) {
  11748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11749. this.taskCount
  11750. ].toolChoose[this.toolIndex] = this.askJson;
  11751. }
  11752. this.dialogVisible5 = false;
  11753. if (
  11754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11755. .toolChoose[this.toolIndex].tool != 4
  11756. ) {
  11757. this.addTools(4, this.taskCount, this.toolIndex);
  11758. }
  11759. },
  11760. addTest() {
  11761. // if (this.testJson.testTitle === "") {
  11762. // this.$message.error("标题不能为空!");
  11763. // return;
  11764. // }
  11765. var aj = this.testJson.testJson;
  11766. var b = 1;
  11767. for (var i = 0; i < aj.length; i++) {
  11768. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  11769. var a = 1;
  11770. for (let index = 0; index < aj[i].testItem; index++) {
  11771. const element = aj[i].checkList[index]
  11772. ? aj[i].checkList[index]
  11773. : "";
  11774. if (element != "") {
  11775. b++;
  11776. this.$message.error(`请将题目${i + 1}填写完整。`);
  11777. return;
  11778. } else {
  11779. a++;
  11780. }
  11781. }
  11782. if (b == 1) {
  11783. this.$message.error("至少填写一个问题");
  11784. return;
  11785. }
  11786. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  11787. for (let index = 0; index < aj[i].testItem; index++) {
  11788. const element = aj[i].checkList[index]
  11789. ? aj[i].checkList[index]
  11790. : "";
  11791. var index = 0;
  11792. for (var z = 0; z < aj[i].checkList.length; z++) {
  11793. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11794. if (checkC != "") {
  11795. index++;
  11796. } else {
  11797. this.$message.error(`题目${i + 1}选项不能为空!`);
  11798. return;
  11799. }
  11800. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11801. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11802. if (checkC == checkC2) {
  11803. this.$message.error(
  11804. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11805. );
  11806. return;
  11807. }
  11808. }
  11809. }
  11810. b++;
  11811. if (index < 2) {
  11812. this.$message.error("每道题目至少需要设置2个选项。");
  11813. return;
  11814. }
  11815. if (
  11816. (aj[i].type == "2" && !aj[i].answer.length) ||
  11817. (aj[i].type == "1" &&
  11818. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  11819. (aj[i].answer !== 0 && !aj[i].answer)))
  11820. ) {
  11821. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  11822. return;
  11823. }
  11824. }
  11825. }
  11826. }
  11827. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11828. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11829. var elc = el.checkList.filter((element) => {
  11830. return element != "";
  11831. });
  11832. return (
  11833. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  11834. );
  11835. });
  11836. isTestJson.testCount = isTestJson.testJson.length;
  11837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11838. this.taskCount
  11839. ].toolChoose[this.toolIndex].testJson = isTestJson;
  11840. this.dialogVisibleChoice = false;
  11841. if (
  11842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11843. .toolChoose[this.toolIndex].tool != 45
  11844. ) {
  11845. this.addTools(45, this.taskCount, this.toolIndex);
  11846. }
  11847. },
  11848. addVideoJson(videoJson) {
  11849. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11850. this.taskCount
  11851. ].toolChoose[this.toolIndex].videoJson = videoJson;
  11852. this.dialogVisibleVideo = false;
  11853. if (
  11854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11855. .toolChoose[this.toolIndex].tool != 62
  11856. ) {
  11857. this.addTools(62, this.taskCount, this.toolIndex);
  11858. }
  11859. },
  11860. //自动获取剪贴板
  11861. pasteOption() {
  11862. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11863. if (!iframe) {
  11864. this.$message.error("请使用AI共创生成题目");
  11865. return;
  11866. }
  11867. let copyData = iframe.contentWindow.copyData;
  11868. if (!copyData || !copyData.selectData.length) {
  11869. this.$message.error("请使用AI共创生成题目");
  11870. return;
  11871. }
  11872. let selectData = copyData.selectData;
  11873. for (var i = 0; i < selectData.length; i++) {
  11874. let answer = 0;
  11875. switch (selectData[i].answer[0]) {
  11876. case "A":
  11877. answer = 0;
  11878. break;
  11879. case "B":
  11880. answer = 1;
  11881. break;
  11882. case "C":
  11883. answer = 2;
  11884. break;
  11885. case "D":
  11886. answer = 3;
  11887. break;
  11888. case "E":
  11889. answer = 4;
  11890. break;
  11891. default:
  11892. break;
  11893. }
  11894. this.testJson.testJson.push({
  11895. teststitle: selectData[i].subject,
  11896. testItem: selectData[i].options.length,
  11897. checkList: selectData[i].options,
  11898. timuList: [],
  11899. answer: answer,
  11900. type: "1",
  11901. });
  11902. this.testJson.testCount++;
  11903. }
  11904. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11905. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11906. var elc = el.checkList.filter((element) => {
  11907. return element != "";
  11908. });
  11909. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  11910. });
  11911. isTestJson.testCount = isTestJson.testJson.length;
  11912. if (!isTestJson.testCount) {
  11913. return;
  11914. }
  11915. this.testJson = isTestJson;
  11916. this.$forceUpdate();
  11917. },
  11918. pasteTask(taskJson) {
  11919. let stageTasksData = [];
  11920. if (taskJson) {
  11921. stageTasksData = taskJson;
  11922. } else {
  11923. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11924. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11925. if (!iframe && !iframe2) {
  11926. this.$message.error("请使用AI共创生成");
  11927. return;
  11928. }
  11929. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11930. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11931. if (
  11932. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  11933. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  11934. ) {
  11935. this.$message.error("请使用AI共创生成");
  11936. return;
  11937. }
  11938. stageTasksData = copyData
  11939. ? copyData.tasksData
  11940. : copyData2
  11941. ? copyData2.tasksData
  11942. : [{ taskName: "", taskDecs: "" }];
  11943. }
  11944. let taskA = [];
  11945. let tasks = stageTasksData;
  11946. for (var j = 0; j < tasks.length; j++) {
  11947. taskA.push({
  11948. task: tasks[j].taskName,
  11949. taskDetail: tasks[j].taskDecs,
  11950. chapterData: [],
  11951. toolText: "",
  11952. toolChoose: [
  11953. {
  11954. tool: [],
  11955. toolDetail: "",
  11956. toolType: 0,
  11957. askCount: 1,
  11958. askTitle: "",
  11959. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11960. },
  11961. ],
  11962. isShowTools: false,
  11963. askCount: 1,
  11964. isFold: 1,
  11965. askTitle: "",
  11966. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11967. checkJson: [{ checkCount: [], checkPerent: [] }],
  11968. homeworkList: [],
  11969. });
  11970. }
  11971. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  11972. this.$forceUpdate();
  11973. },
  11974. pasteStage(stageJson) {
  11975. let stageData = [];
  11976. if (stageJson) {
  11977. stageData = stageJson;
  11978. } else {
  11979. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11980. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11981. if (!iframe && !iframe2) {
  11982. this.$message.error("请使用AI共创生成");
  11983. return;
  11984. }
  11985. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11986. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11987. if (
  11988. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  11989. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  11990. ) {
  11991. this.$message.error("请使用AI共创生成");
  11992. return;
  11993. }
  11994. stageData = copyData
  11995. ? copyData.stageData
  11996. : copyData2
  11997. ? copyData2.stageData
  11998. : [""];
  11999. }
  12000. let stage = [];
  12001. for (var i = 0; i < stageData.length; i++) {
  12002. stage.push({
  12003. dyName: stageData[i], //单元标题
  12004. chapterInfo: [
  12005. {
  12006. isread: false,
  12007. chapterid: this.guid(),
  12008. title: "",
  12009. courseName: "",
  12010. taskJson: [
  12011. {
  12012. task: "",
  12013. taskDetail: "",
  12014. chapterData: [],
  12015. toolText: "",
  12016. toolChoose: [
  12017. {
  12018. tool: [],
  12019. toolDetail: "",
  12020. toolType: 0,
  12021. askCount: 1,
  12022. askTitle: "",
  12023. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12024. },
  12025. ],
  12026. isShowTools: false,
  12027. askCount: 1,
  12028. isFold: 1,
  12029. askTitle: "",
  12030. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12031. checkJson: [{ checkCount: [], checkPerent: [] }],
  12032. homeworkList: [],
  12033. },
  12034. ],
  12035. itemCount: 1,
  12036. fileList1: [],
  12037. video: [],
  12038. testData: [],
  12039. pData: [],
  12040. templateArray: [],
  12041. },
  12042. ],
  12043. });
  12044. }
  12045. let _this = this;
  12046. if (stageJson) {
  12047. if (!_this.cid) {
  12048. _this.unitJson = stage;
  12049. } else {
  12050. _this.unitIndex = 0;
  12051. _this.unitJson = stage;
  12052. _this.updateWork();
  12053. }
  12054. } else {
  12055. _this
  12056. .$confirm(
  12057. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  12058. "提示",
  12059. {
  12060. confirmButtonText: "确定",
  12061. cancelButtonText: "取消",
  12062. type: "warning",
  12063. }
  12064. )
  12065. .then(() => {
  12066. _this.unitIndex = 0;
  12067. _this.unitJson = stage;
  12068. // _this.steps++;
  12069. _this.updateWork();
  12070. })
  12071. .catch(() => {
  12072. return;
  12073. });
  12074. }
  12075. },
  12076. openStageBox() {
  12077. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12078. this.dialogVisibleStageChange = true;
  12079. },
  12080. updateChange() {
  12081. this.$confirm(
  12082. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12083. "提示",
  12084. {
  12085. confirmButtonText: "确定",
  12086. cancelButtonText: "取消",
  12087. type: "warning",
  12088. }
  12089. )
  12090. .then(() => {
  12091. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12092. this.updateWork();
  12093. this.dialogVisibleStageChange = false;
  12094. })
  12095. .catch(() => {
  12096. return;
  12097. });
  12098. },
  12099. addAnswer() {
  12100. if (this.answerQ == "") {
  12101. this.$message.error("请输入您想要问的问题");
  12102. return;
  12103. }
  12104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12105. this.taskCount
  12106. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12107. this.dialogVisible8 = false;
  12108. if (
  12109. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12110. .toolChoose[this.toolIndex].tool != 15
  12111. ) {
  12112. this.addTools(15, this.taskCount, this.toolIndex);
  12113. }
  12114. },
  12115. addMp3Answer() {
  12116. if (this.answerQ == "") {
  12117. this.$message.error("请输入您想要回答的问题");
  12118. return;
  12119. }
  12120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12121. this.taskCount
  12122. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12123. this.dialogVisibleMp3 = false;
  12124. },
  12125. addRateAnswer() {
  12126. var a = 1;
  12127. for (var i = 0; i < this.rateJson.length; i++) {
  12128. if (this.rateJson[i].value == "") {
  12129. a = 2;
  12130. break;
  12131. }
  12132. }
  12133. if (a == 2) {
  12134. this.$message.error("请把评价信息填写完整");
  12135. return;
  12136. }
  12137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12138. this.taskCount
  12139. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12140. this.dialogVisibleRate = false;
  12141. if (
  12142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12143. .toolChoose[this.toolIndex].tool != 40
  12144. ) {
  12145. this.addTools(40, this.taskCount, this.toolIndex);
  12146. }
  12147. },
  12148. addSelectAnswer() {
  12149. if (this.selectJson.url == "") {
  12150. this.$message.error("请上传题目");
  12151. return;
  12152. }
  12153. if (!this.selectJson.select.length) {
  12154. this.$message.error("请添加选项");
  12155. return;
  12156. }
  12157. if (!this.selectJson.answer.length) {
  12158. this.$message.error("请设置答案");
  12159. return;
  12160. }
  12161. var a = 1;
  12162. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12163. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12164. a = 2;
  12165. }
  12166. }
  12167. if (a == 2) {
  12168. this.$message.error("请设置答案");
  12169. return;
  12170. }
  12171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12172. this.taskCount
  12173. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12174. this.dialogVisibleSelect = false;
  12175. if (
  12176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12177. .toolChoose[this.toolIndex].tool != 41
  12178. ) {
  12179. this.addTools(41, this.taskCount, this.toolIndex);
  12180. }
  12181. },
  12182. nextSelectSteps() {
  12183. if (this.selectJson.url == "") {
  12184. this.$message.error("请上传题目");
  12185. return;
  12186. }
  12187. if (!this.selectJson.select.length) {
  12188. this.$message.error("请添加选项");
  12189. return;
  12190. } else {
  12191. for (var z = 0; z < this.selectJson.select.length; z++) {
  12192. let checkC = this.selectJson.select[z];
  12193. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12194. let checkC2 = this.selectJson.select[z2];
  12195. if (checkC == checkC2) {
  12196. this.$message.error(
  12197. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  12198. );
  12199. return;
  12200. }
  12201. }
  12202. }
  12203. }
  12204. var a = 1;
  12205. for (var i = 0; i < this.selectJson.select.length; i++) {
  12206. if (!this.selectJson.select[i]) {
  12207. a = 2;
  12208. }
  12209. }
  12210. if (a == 2) {
  12211. this.$message.error("添加的选项不能为空");
  12212. return;
  12213. }
  12214. this.selectSteps++;
  12215. },
  12216. selectCourseDetail() {
  12217. if (this.cid == "" || this.cid == undefined) {
  12218. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12219. this.isTeacherSee = true;
  12220. }
  12221. console.log("这是新增课程");
  12222. this.selectAllType();
  12223. } else {
  12224. this.cidType = 1;
  12225. let params = {
  12226. cid: this.cid,
  12227. };
  12228. this.ajax
  12229. .get(this.$store.state.api + "select_course_detail", params)
  12230. .then((res) => {
  12231. this.loading = true;
  12232. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12233. this.courseState = res.data[0][0].state;
  12234. for (var j = 0; j < this.unitJson.length; j++) {
  12235. for (
  12236. var k = 0;
  12237. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12238. k++
  12239. ) {
  12240. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12241. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12242. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12243. : [];
  12244. let _chapterData = [];
  12245. for (
  12246. var c = 0;
  12247. c <
  12248. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12249. .length;
  12250. c++
  12251. ) {
  12252. if (
  12253. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12254. ) {
  12255. _chapterData.push(
  12256. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12257. );
  12258. }
  12259. }
  12260. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12261. _chapterData;
  12262. }
  12263. }
  12264. this.$forceUpdate();
  12265. this.courseName = res.data[0][0].title;
  12266. this.courseText = res.data[0][0].brief;
  12267. this.evalua = res.data[0][0].evaId;
  12268. this.cover = JSON.parse(res.data[0][0].cover);
  12269. this.noneBtnImg = this.cover.length >= 1;
  12270. // this.checkboxList =
  12271. // res.data[0][0].course_student.length > 0
  12272. // ? JSON.parse(res.data[0][0].course_student)
  12273. // : [];
  12274. this.checkboxList2 = res.data[0][0].juri
  12275. ? res.data[0][0].juri.split(",")
  12276. : [];
  12277. this.inviteCode = [];
  12278. for (var i = 0; i < res.data[2].length; i++) {
  12279. this.inviteCode.push({
  12280. cid: res.data[2][i].classid,
  12281. ic: res.data[2][i].code,
  12282. });
  12283. }
  12284. this.checkboxList3 = res.data[0][0].course_teacher
  12285. ? res.data[0][0].course_teacher.split(",")
  12286. : [];
  12287. // this.isTeacherSee =
  12288. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12289. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12290. this.myWord = res.data[0][0].template;
  12291. this.templateC.id = "123";
  12292. this.courseUserid = res.data[0][0].userid;
  12293. // if(this.courseUserid == this.userid){
  12294. // this.InviteChange(this.checkboxList2)
  12295. // }
  12296. this.nbOrder = res.data[0][0].ordernumber;
  12297. this.courseTypeId = [];
  12298. for (var i = 0; i < res.data[1].length; i++) {
  12299. this.courseTypeId.push(res.data[1][i].typeid);
  12300. }
  12301. console.log(this.courseTypeId);
  12302. // if (this.timer) clearInterval(this.timer);
  12303. if (this.timer) clearTimeout(this.timer);
  12304. this.timer = null;
  12305. // this.timer = setInterval(() => {
  12306. this.seleteCourseUpdate();
  12307. this.setMan();
  12308. this.selectAllType();
  12309. this.unitJson[
  12310. this.unitIndex
  12311. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12312. // }, 5000);
  12313. this.$forceUpdate();
  12314. setTimeout(() => {
  12315. this.checkEva(this.evalua);
  12316. setTimeout(() => {
  12317. this.checkEva(this.evalua);
  12318. }, 100);
  12319. }, 100);
  12320. })
  12321. .catch((err) => {
  12322. console.error(err);
  12323. });
  12324. }
  12325. },
  12326. seleteCourseUpdate() {
  12327. let params = {
  12328. cid: this.cid,
  12329. };
  12330. this.ajax
  12331. .get(this.$store.state.api + "select_course_detail", params)
  12332. .then((res) => {
  12333. // console.log(this.unitJson);
  12334. let unitJson = JSON.parse(res.data[0][0].chapters);
  12335. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12336. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12337. let _unitJson = [];
  12338. let _chapAarry = [];
  12339. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12340. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12341. let index = 1;
  12342. let chapindex;
  12343. if (_unitJson2.length > unitJson.length) {
  12344. for (let c = 0; c < _unitJson2.length; c++) {
  12345. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12346. }
  12347. for (let j = 0; j < unitJson.length; j++) {
  12348. let count = 0;
  12349. for (let k = 0; k < _unitJson2.length; k++) {
  12350. if (
  12351. unitJson[j].chapterInfo[0].chapterid ==
  12352. _unitJson2[k].chapterInfo[0].chapterid
  12353. ) {
  12354. count++;
  12355. _chapAarry.splice(
  12356. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12357. 1
  12358. );
  12359. _unitJson.push(unitJson[j]);
  12360. break;
  12361. }
  12362. }
  12363. // if(count === 0){
  12364. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12365. // }
  12366. }
  12367. for (let k = 0; k < _unitJson2.length; k++) {
  12368. if (_unitJson2[k].isUpdate == 1) {
  12369. _chapAarry.splice(
  12370. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12371. 1
  12372. );
  12373. _unitJson.push(_unitJson2[k]);
  12374. }
  12375. }
  12376. console.log(_chapAarry);
  12377. for (let d = 0; d < _unitJson2.length; d++) {
  12378. if (
  12379. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12380. ) {
  12381. if (_unitIndex == d) {
  12382. index = 2;
  12383. }
  12384. chapindex = d;
  12385. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12386. }
  12387. }
  12388. } else {
  12389. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12390. }
  12391. for (let i = 0; i < unitJson.length; i++) {
  12392. if (
  12393. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12394. _unitJson[i].chapterInfo[0].chapterid !=
  12395. unitJson[i].chapterInfo[0].chapterid
  12396. ) {
  12397. if (i == _unitJson.length - 1) {
  12398. // this.unitIndex++
  12399. _unitIndex2++;
  12400. }
  12401. _unitJson.splice(i, 0, unitJson[i]);
  12402. } else if (i > _unitJson.length - 1) {
  12403. _unitJson.push(unitJson[i]);
  12404. } else if (
  12405. _unitJson[i].chapterInfo[0].chapterid ==
  12406. unitJson[i].chapterInfo[0].chapterid
  12407. ) {
  12408. _unitJson[i] = unitJson[i];
  12409. }
  12410. // if (i == _unitIndex) {
  12411. // continue;
  12412. // } else
  12413. }
  12414. if (_chapAarry.length && index != 2) {
  12415. if (chapindex < _unitIndex) {
  12416. this.isDelete = 2;
  12417. // this.unitIndex--;
  12418. _unitIndex2--;
  12419. } else if (
  12420. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12421. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12422. ) {
  12423. this.isDelete = 2;
  12424. for (let n = 0; n < _unitJson.length; n++) {
  12425. if (
  12426. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12427. _unitJson[n].chapterInfo[0].chapterid
  12428. ) {
  12429. // this.unitIndex = n;
  12430. _unitIndex2 = n;
  12431. _unitJson[n] = _unitJson2[_unitIndex];
  12432. break;
  12433. }
  12434. }
  12435. }
  12436. } else if (index != 2) {
  12437. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12438. _unitJson2[_unitIndex];
  12439. for (
  12440. var ci = 0;
  12441. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12442. ci++
  12443. ) {
  12444. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12445. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12446. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12447. .toolChoose
  12448. : [];
  12449. let _chapterData = [];
  12450. for (
  12451. var c = 0;
  12452. c <
  12453. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12454. .length;
  12455. c++
  12456. ) {
  12457. if (
  12458. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12459. .chapterData[c]
  12460. ) {
  12461. _chapterData.push(
  12462. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12463. .chapterData[c]
  12464. );
  12465. }
  12466. }
  12467. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12468. _chapterData;
  12469. }
  12470. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12471. }
  12472. if (index == 1) {
  12473. this.unitJson = _unitJson;
  12474. this.$forceUpdate();
  12475. setTimeout(() => {
  12476. if (this.unitIndex != _unitIndex2) {
  12477. this.isDelete = 2;
  12478. this.unitIndex = _unitIndex2;
  12479. }
  12480. }, 0);
  12481. this.timer = setTimeout(() => {
  12482. this.seleteCourseUpdate();
  12483. }, 1000);
  12484. } else if (index == 2) {
  12485. let _this = this;
  12486. _this
  12487. .$confirm(
  12488. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12489. "提示",
  12490. {
  12491. confirmButtonText: "需要",
  12492. cancelButtonText: "取消",
  12493. type: "warning",
  12494. }
  12495. )
  12496. .then(() => {
  12497. if (_this.time()) {
  12498. _this.restoreWork(
  12499. _chapAarry[0],
  12500. _unitJson,
  12501. chapindex,
  12502. _unitJson2,
  12503. _unitIndex2
  12504. );
  12505. }
  12506. })
  12507. .catch(() => {
  12508. _this.unitJson = _unitJson;
  12509. _this.$forceUpdate();
  12510. setTimeout(() => {
  12511. if (this.unitIndex != _unitIndex2) {
  12512. this.isDelete = 2;
  12513. this.unitIndex = _unitIndex2;
  12514. }
  12515. }, 0);
  12516. _this.timer = setTimeout(() => {
  12517. _this.seleteCourseUpdate();
  12518. }, 1000);
  12519. });
  12520. }
  12521. // 在复制操作之前记录滚动位置
  12522. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12523. // 执行复制操作
  12524. // 复制操作完成后恢复滚动位置
  12525. this.$nextTick(() => {
  12526. if(this.$refs.scrollContainer){
  12527. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12528. }
  12529. });
  12530. })
  12531. .catch((err) => {
  12532. console.error(err);
  12533. });
  12534. },
  12535. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12536. let params = [
  12537. {
  12538. cid: this.cid,
  12539. chapters: JSON.stringify(this.unitJson),
  12540. uid: this.userid,
  12541. chapid: chapid,
  12542. },
  12543. ];
  12544. this.ajax
  12545. .post(this.$store.state.api + "restoreWork", params)
  12546. .then((res) => {
  12547. this.$message({
  12548. message: "恢复成功",
  12549. type: "success",
  12550. });
  12551. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12552. this.unitJson = unitJson;
  12553. this.$forceUpdate();
  12554. setTimeout(() => {
  12555. if (this.unitIndex != unitIndex2) {
  12556. this.isDelete = 2;
  12557. this.unitIndex = unitIndex2;
  12558. }
  12559. }, 0);
  12560. this.timer = setTimeout(() => {
  12561. this.seleteCourseUpdate();
  12562. }, 1000);
  12563. })
  12564. .catch((err) => {
  12565. this.$message.error("网络不佳");
  12566. console.error(err);
  12567. });
  12568. },
  12569. getTypeName() {
  12570. console.log(this.courseTypeId);
  12571. this.$forceUpdate();
  12572. },
  12573. selectAllType() {
  12574. let params = {
  12575. org: this.org && this.org != "" ? this.org : "",
  12576. oid: this.oid && this.oid != "" ? this.oid : "",
  12577. };
  12578. this.ajax
  12579. .get(this.$store.state.api + "selectAllType", params)
  12580. .then((res) => {
  12581. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12582. res.data[0] = [...res.data[0], ...res.data[4]];
  12583. }
  12584. this.CourseType = res.data;
  12585. this.CourseType2 = [
  12586. { name: "智见课程", id: [] },
  12587. { name: "智行课程", id: [] },
  12588. { name: "智创课程", id: [] },
  12589. ];
  12590. for (var cti = 0; cti < res.data[0].length; cti++) {
  12591. if (
  12592. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12593. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12594. ) {
  12595. this.CourseType2[0].id.push(res.data[0][cti].id);
  12596. } else if (
  12597. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12598. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12599. ) {
  12600. this.CourseType2[1].id.push(res.data[0][cti].id);
  12601. } else if (
  12602. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12603. ) {
  12604. this.CourseType2[2].id.push(res.data[0][cti].id);
  12605. }
  12606. if (
  12607. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12608. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12609. ) {
  12610. res.data[0][cti].name = "年级";
  12611. } else if (
  12612. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12613. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12614. ) {
  12615. res.data[0][cti].name = "学科";
  12616. } else if (
  12617. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12618. ) {
  12619. res.data[0][cti].name = "主题";
  12620. }
  12621. }
  12622. let _courseTypeId = [];
  12623. for (var i = 0; i < res.data[0].length; i++) {
  12624. if (!this.cid) {
  12625. this.courseTypeId[res.data[0][i].id] = [];
  12626. }
  12627. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  12628. // }
  12629. this.CourseTypeJson[res.data[0][i].id] = [];
  12630. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12631. if (res.data[0][i].name == "栏目") {
  12632. this.CourseType[0][i].name = "主题";
  12633. }
  12634. }
  12635. if (res.data[2].length == 0 && res.data[3].length == 0) {
  12636. for (var j = 0; j < res.data[1].length; j++) {
  12637. if (
  12638. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  12639. _courseTypeId.indexOf(res.data[1][j].id) == -1
  12640. ) {
  12641. _courseTypeId.push(res.data[1][j].id);
  12642. }
  12643. if (res.data[0][i].id == res.data[1][j].pid) {
  12644. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12645. }
  12646. }
  12647. } else {
  12648. if (res.data[2].length > 0) {
  12649. for (var j = 0; j < res.data[2].length; j++) {
  12650. if (
  12651. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  12652. _courseTypeId.indexOf(res.data[2][j].id) == -1
  12653. ) {
  12654. _courseTypeId.push(res.data[2][j].id);
  12655. }
  12656. if (res.data[0][i].id == res.data[2][j].pid) {
  12657. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12658. }
  12659. }
  12660. }
  12661. if (res.data[3].length > 0) {
  12662. for (var j = 0; j < res.data[3].length; j++) {
  12663. if (
  12664. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  12665. _courseTypeId.indexOf(res.data[3][j].id) == -1
  12666. ) {
  12667. _courseTypeId.push(res.data[3][j].id);
  12668. }
  12669. if (res.data[0][i].id == res.data[3][j].pid) {
  12670. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12671. }
  12672. }
  12673. }
  12674. }
  12675. }
  12676. this.courseTypeId = _courseTypeId;
  12677. })
  12678. .catch((err) => {
  12679. console.error(err);
  12680. });
  12681. },
  12682. selectType() {
  12683. this.ajax
  12684. .get(this.$store.state.api + "selectType")
  12685. .then((res) => {
  12686. this.CourseType = res.data;
  12687. for (var i = 0; i < res.data[0].length; i++) {
  12688. if (!this.cid) {
  12689. this.courseTypeId[res.data[0][i].id] = "";
  12690. }
  12691. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12692. if (res.data[0][i].name == "栏目") {
  12693. this.CourseType[0][i].name = "主题";
  12694. }
  12695. }
  12696. for (var j = 0; j < res.data[1].length; j++) {
  12697. if (res.data[0][i].id == res.data[1][j].pid) {
  12698. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12699. this.CourseTypeJson[res.data[0][i].id] = [];
  12700. }
  12701. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12702. }
  12703. }
  12704. }
  12705. this.selectTypeByOid();
  12706. this.selectTypeByOrg();
  12707. })
  12708. .catch((err) => {
  12709. console.error(err);
  12710. });
  12711. },
  12712. selectTypeByOid() {
  12713. let params = {
  12714. oid: this.oid,
  12715. };
  12716. this.ajax
  12717. .get(this.$store.state.api + "selectTypeByOid", params)
  12718. .then((res) => {
  12719. for (var i = 0; i < res.data[0].length; i++) {
  12720. for (var j = 0; j < res.data[1].length; j++) {
  12721. if (res.data[0][i].id == res.data[1][j].pid) {
  12722. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12723. this.CourseTypeJson[res.data[0][i].id] = [];
  12724. }
  12725. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12726. }
  12727. }
  12728. }
  12729. })
  12730. .catch((err) => {
  12731. console.error(err);
  12732. });
  12733. },
  12734. selectTypeByOrg() {
  12735. let params = {
  12736. oid: this.org,
  12737. };
  12738. this.ajax
  12739. .get(this.$store.state.api + "selectTypeByOrg", params)
  12740. .then((res) => {
  12741. for (var i = 0; i < res.data[0].length; i++) {
  12742. for (var j = 0; j < res.data[1].length; j++) {
  12743. if (res.data[0][i].id == res.data[1][j].pid) {
  12744. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12745. this.CourseTypeJson[res.data[0][i].id] = [];
  12746. }
  12747. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12748. }
  12749. }
  12750. }
  12751. this.$forceUpdate();
  12752. })
  12753. .catch((err) => {
  12754. console.error(err);
  12755. });
  12756. },
  12757. OtherMb(type, task) {
  12758. if (task === 0 || task) {
  12759. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12760. task
  12761. ].isEvaFold = true;
  12762. }
  12763. this.typeMode = type;
  12764. setTimeout(() => {
  12765. this.checkEva(this.checkId);
  12766. setTimeout(() => {
  12767. this.checkEva(this.checkId);
  12768. }, 100);
  12769. }, 100);
  12770. },
  12771. openMember() {
  12772. this.searchTN = "";
  12773. this.getTeacher();
  12774. this.dialogVisibleMember = true;
  12775. },
  12776. checkEva(id, type) {
  12777. this.dialogVisiblemb = false;
  12778. this.selectEva();
  12779. if (this.evalua != id && type == 2) {
  12780. this.$message.success("导入成功");
  12781. setTimeout(() => {
  12782. this.checkEva(id);
  12783. }, 100);
  12784. }
  12785. this.evalua = id;
  12786. this.checkId = id;
  12787. if (this.evalua != "") {
  12788. for (var i = 0; i < this.evaJuri.length; i++) {
  12789. if (this.evalua == this.evaJuri[i].id) {
  12790. this.eTitle = this.evaJuri[i].title;
  12791. this.eJson = JSON.parse(this.evaJuri[i].content);
  12792. }
  12793. }
  12794. this.data.data = [];
  12795. this.$forceUpdate();
  12796. setTimeout(() => {
  12797. this.setMindData();
  12798. }, 1000);
  12799. }
  12800. },
  12801. deleteEva() {
  12802. let _this = this;
  12803. if (_this.evalua == "") {
  12804. this.$message.warning("内容已经清空了,请勿重复清空");
  12805. return;
  12806. }
  12807. _this
  12808. .$confirm("确定删除此目标吗?", "提示", {
  12809. confirmButtonText: "确定",
  12810. cancelButtonText: "取消",
  12811. type: "warning",
  12812. })
  12813. .then(() => {
  12814. _this.evalua = "";
  12815. _this.checkId = "";
  12816. _this.eTitle = "";
  12817. let _unitJson = _this.unitJson;
  12818. for (var i = 0; i < _unitJson.length; i++) {
  12819. let _task = _unitJson[i].chapterInfo[0].taskJson;
  12820. for (var j = 0; j < _task.length; j++) {
  12821. let _eList = _task[j].eList;
  12822. for (var k = 0; k < _eList.length; k++) {
  12823. delete _eList[k].target;
  12824. }
  12825. }
  12826. }
  12827. _this.$forceUpdate();
  12828. if (_this.cid) {
  12829. _this.updateWork();
  12830. }
  12831. })
  12832. .catch(() => {
  12833. return;
  12834. });
  12835. },
  12836. selectEva() {
  12837. let params = {
  12838. oid: this.oid,
  12839. };
  12840. this.ajax
  12841. .get(this.$store.state.api + "selectAllEvaluation", params)
  12842. .then((res) => {
  12843. this.evaJuri = res.data[0];
  12844. // 在复制操作之前记录滚动位置
  12845. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12846. // 执行复制操作
  12847. // 复制操作完成后恢复滚动位置
  12848. this.$nextTick(() => {
  12849. if(this.$refs.scrollContainer){
  12850. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12851. }
  12852. });
  12853. })
  12854. .catch((err) => {
  12855. console.error(err);
  12856. });
  12857. },
  12858. setMindData() {
  12859. let targetArray = [];
  12860. this.data.data = [];
  12861. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  12862. let _eJson = Object.keys(this.eJson);
  12863. let _e = this.eJson;
  12864. for (let i = 0; i < _eJson.length; i++) {
  12865. let element = _e[_eJson[i]];
  12866. this.data.data.push({
  12867. id: element.id,
  12868. parentid: "root",
  12869. topic: element.name,
  12870. });
  12871. // targetArray.push({
  12872. // id: element.id,
  12873. // parentid: "root",
  12874. // name: element.name,
  12875. // });
  12876. targetArray.push({
  12877. value: element.name,
  12878. label: element.name,
  12879. children: [],
  12880. });
  12881. let _eJsonc = Object.keys(element.child);
  12882. let _e2 = element.child;
  12883. for (let j = 0; j < _eJsonc.length; j++) {
  12884. let _ec = _e2[_eJsonc[j]];
  12885. this.data.data.push({
  12886. id: _ec.id,
  12887. parentid: element.id,
  12888. topic: _ec.name,
  12889. });
  12890. // targetArray.push({
  12891. // id: _ec.id,
  12892. // parentid: element.id,
  12893. // name: _ec.name,
  12894. // });
  12895. targetArray[i].children.push({
  12896. value: _ec.name,
  12897. label: _ec.name,
  12898. children: [],
  12899. });
  12900. let _eJsonz = Object.keys(_ec.child);
  12901. let _e3 = _ec.child;
  12902. for (let z = 0; z < _eJsonz.length; z++) {
  12903. let _ez = _e3[_eJsonz[z]];
  12904. this.data.data.push({
  12905. id: _ez.id,
  12906. parentid: _ec.id,
  12907. topic: _ez.name,
  12908. });
  12909. // targetArray.push({
  12910. // id: _ez.id,
  12911. // parentid: _ec.id,
  12912. // name: _ez.name,
  12913. // });
  12914. targetArray[i].children[j].children.push({
  12915. value: _ez.name,
  12916. label: _ez.name,
  12917. });
  12918. }
  12919. }
  12920. }
  12921. this.targetArray = targetArray;
  12922. this.$forceUpdate();
  12923. },
  12924. /*添加评价 */
  12925. addEList(index, tIndex) {
  12926. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  12927. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  12928. value: "",
  12929. detail: "",
  12930. score: 5,
  12931. })
  12932. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  12933. { value: "", detail: "", score: 5 },
  12934. ]);
  12935. this.$forceUpdate();
  12936. },
  12937. openEList(index, tIndex) {
  12938. this.evaIndex = index;
  12939. this.evatIndex = tIndex;
  12940. this.evaBoxDialog = true;
  12941. },
  12942. addCET(index, tIndex) {
  12943. this.cetIndex = index;
  12944. this.cettIndex = tIndex;
  12945. this.selectAllType1();
  12946. },
  12947. addCETemplate() {
  12948. var array =
  12949. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  12950. .eList;
  12951. let params = [
  12952. {
  12953. uid: this.userid,
  12954. n: this.templateName,
  12955. json: JSON.stringify(array),
  12956. t: 1,
  12957. oid: this.oid,
  12958. },
  12959. ];
  12960. this.ajax
  12961. .post(this.$store.state.api + "addCETShare", params)
  12962. .then((res) => {
  12963. this.addTypeByCET(res.data[0][0].id);
  12964. })
  12965. .catch((err) => {
  12966. this.$message.error("网络不佳");
  12967. console.error(err);
  12968. });
  12969. },
  12970. addTypeByCET(id) {
  12971. if (this.setTypeJson.two == "") {
  12972. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  12973. return;
  12974. }
  12975. let params = {
  12976. cid: id,
  12977. };
  12978. this.ajax
  12979. .get(this.$store.state.api + "deleteCETLabel", params)
  12980. .then((res) => {
  12981. for (var i = 0; i < 2; i++) {
  12982. let tid = "";
  12983. if (i == 0) {
  12984. tid = this.setTypeJson.one;
  12985. } else {
  12986. tid = this.setTypeJson.two;
  12987. }
  12988. let params = [
  12989. {
  12990. cid: id,
  12991. tid: tid,
  12992. uid: this.userid,
  12993. },
  12994. ];
  12995. this.ajax
  12996. .post(this.$store.state.api + "addCETLabel", params)
  12997. .then((res) => {
  12998. this.$message({
  12999. message: "添加成功",
  13000. type: "success",
  13001. });
  13002. this.close();
  13003. })
  13004. .catch((err) => {
  13005. this.$message.error("网络不佳");
  13006. console.error(err);
  13007. });
  13008. }
  13009. })
  13010. .catch((err) => {
  13011. this.$message.error("网络不佳");
  13012. console.error(err);
  13013. });
  13014. },
  13015. updateEvaJson(array) {
  13016. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13017. this.evatIndex
  13018. ].eList = array;
  13019. },
  13020. forceUpdate() {
  13021. this.$forceUpdate();
  13022. },
  13023. deletEList(index, tIndex, eIndex) {
  13024. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13025. eIndex,
  13026. 1
  13027. );
  13028. this.$forceUpdate();
  13029. },
  13030. getChoosePic(t) {
  13031. this.chooseType = t;
  13032. this.getAllBanner();
  13033. },
  13034. getAllBanner() {
  13035. this.sysPicVisible = true;
  13036. let params = {
  13037. t: this.chooseType,
  13038. };
  13039. this.ajax
  13040. .get(this.$store.state.api + "selectAllBanner", params)
  13041. .then((res) => {
  13042. this.sysPic = res.data[0];
  13043. })
  13044. .catch((err) => {
  13045. console.error(err);
  13046. });
  13047. },
  13048. // getClass() {
  13049. // let params = {
  13050. // oid: this.oid,
  13051. // };
  13052. // this.ajax
  13053. // .get(this.$store.state.api + "selectClassBySchool", params)
  13054. // .then((res) => {
  13055. // this.classJuri = res.data[0];
  13056. // })
  13057. // .catch((err) => {
  13058. // console.error(err);
  13059. // });
  13060. // },
  13061. deleteSysPic() {
  13062. this.cover = [];
  13063. this.isSysPic = false;
  13064. this.isSysPic2 = false;
  13065. },
  13066. deleteSelectPic() {
  13067. this.selectJson.url = "";
  13068. },
  13069. setEListStar() {
  13070. this.$forceUpdate();
  13071. },
  13072. deletRateList(i) {
  13073. this.rateJson.splice(i, 1);
  13074. },
  13075. addRateList() {
  13076. this.rateJson.push({ detail: "", score: 5, value: "" });
  13077. },
  13078. addSt() {
  13079. this.sentenceList.push({
  13080. sentenceTitle: "",
  13081. addSentence: [],
  13082. rightAnswer: [],
  13083. });
  13084. },
  13085. addSen(i) {
  13086. if (!this.sentenceList[i].sentenceTitle) {
  13087. this.$message.error("请填写卡片内容!");
  13088. return;
  13089. }
  13090. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13091. this.$message.error("卡片内容字数不能超过10位");
  13092. return;
  13093. }
  13094. if (
  13095. this.sentenceList[i].addSentence.indexOf(
  13096. this.sentenceList[i].sentenceTitle
  13097. ) !== -1
  13098. ) {
  13099. this.$message.error("不能添加重复的卡片内容!");
  13100. return;
  13101. }
  13102. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13103. // this.isPushTitleList.push(this.sentenceTitle);
  13104. this.sentenceList[i].sentenceTitle = "";
  13105. },
  13106. setRightAnswer(s, i, j) {
  13107. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13108. this.sentenceList[i].rightAnswer.push(s);
  13109. }
  13110. },
  13111. returnCard(r, i, j) {
  13112. this.sentenceList[i].rightAnswer.splice(j, 1);
  13113. },
  13114. addSentenceTool() {
  13115. for (var i = 0; i < this.sentenceList.length; i++) {
  13116. if (this.sentenceList[i].rightAnswer.length == 0) {
  13117. this.$message.error(`请将题目${i + 1}设置完整。`);
  13118. return;
  13119. }
  13120. if (
  13121. this.sentenceList[i].addSentence.length !=
  13122. this.sentenceList[i].rightAnswer.length
  13123. ) {
  13124. this.$message.error(`请将题目${i + 1}设置完整。`);
  13125. return;
  13126. }
  13127. }
  13128. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13129. this.taskCount
  13130. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13131. this.sentenceList = [
  13132. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13133. ];
  13134. this.dialogVisibleSentence = false;
  13135. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13136. // itemTaskIndex
  13137. // ].toolChoose[toolIndex].tool = [];
  13138. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13139. // itemTaskIndex
  13140. // ].toolChoose[toolIndex].tool.push(i);
  13141. if (
  13142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13143. .toolChoose[this.toolIndex].tool != 47
  13144. ) {
  13145. this.addTools(47, this.taskCount, this.toolIndex);
  13146. }
  13147. },
  13148. addTableJson() {
  13149. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13150. // this.$message.error("请将信息填写完整!");
  13151. // return;
  13152. // }
  13153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13154. this.taskCount
  13155. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13156. // this.tableJson = [{ text: "" }];
  13157. // this.dialogVisibleTable = false;
  13158. this.$message.success("上传成功");
  13159. if (
  13160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13161. .toolChoose[this.toolIndex].tool != 48
  13162. ) {
  13163. this.addTools(48, this.taskCount, this.toolIndex);
  13164. }
  13165. },
  13166. addWordJson() {
  13167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13168. this.taskCount
  13169. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13170. // this.wordJson = [{ text: "" }];
  13171. // this.dialogVisibleWord = false;
  13172. this.$message.success("上传成功");
  13173. if (
  13174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13175. .toolChoose[this.toolIndex].tool != 52
  13176. ) {
  13177. this.addTools(52, this.taskCount, this.toolIndex);
  13178. }
  13179. },
  13180. addMoreUpload() {
  13181. if (this.uploadJson.length == 0) {
  13182. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13183. this.taskCount
  13184. ].toolChoose[this.toolIndex].uploadJson = [];
  13185. } else {
  13186. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13187. this.taskCount
  13188. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13189. }
  13190. this.uploadJson = [];
  13191. this.dialogVisibleMoreUpload = false;
  13192. if (
  13193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13194. .toolChoose[this.toolIndex].tool != 50
  13195. ) {
  13196. this.addTools(50, this.taskCount, this.toolIndex);
  13197. }
  13198. },
  13199. addPreTime() {
  13200. if (this.preTime == 0) {
  13201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13202. this.taskCount
  13203. ].toolChoose[this.toolIndex].preTime = 0;
  13204. } else {
  13205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13206. this.taskCount
  13207. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13208. }
  13209. this.preTime = 0;
  13210. this.dialogVisiblePreTime = false;
  13211. if (
  13212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13213. .toolChoose[this.toolIndex].tool != 10
  13214. ) {
  13215. this.addTools(10, this.taskCount, this.toolIndex);
  13216. }
  13217. },
  13218. goToTask(i) {
  13219. this.toolIndexType = "";
  13220. if (this.isClickColor == i + 1) {
  13221. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13222. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13223. // } else {
  13224. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13225. i
  13226. ].toolOpen = true;
  13227. // }
  13228. this.$forceUpdate();
  13229. return;
  13230. }
  13231. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13232. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13233. // } else {
  13234. document.querySelectorAll(".basic_box")[0].scrollTop =
  13235. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13236. this.isClickColor = i + 1;
  13237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13238. // }
  13239. this.$forceUpdate();
  13240. },
  13241. taskOpen(i, stageIndex) {
  13242. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13243. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13244. } else {
  13245. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13246. }
  13247. this.updateWork3(stageIndex);
  13248. this.$forceUpdate();
  13249. },
  13250. goToTask2(i, stage) {
  13251. this.toolIndexType = "";
  13252. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13253. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13254. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13255. // } else {
  13256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13257. i
  13258. ].toolOpen = true;
  13259. // }
  13260. this.$forceUpdate();
  13261. return;
  13262. }
  13263. if (this.unitIndex != stage) {
  13264. if (this.panUnitJson() == 2) {
  13265. return;
  13266. }
  13267. this.unitSet(stage);
  13268. }
  13269. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13270. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13271. // } else {
  13272. document.querySelectorAll(".basic_box")[0].scrollTop =
  13273. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13274. this.isClickColor = i + 1;
  13275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13276. // }
  13277. this.$forceUpdate();
  13278. },
  13279. taskMove(type, index) {
  13280. this.$confirm(
  13281. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13282. "提示",
  13283. {
  13284. confirmButtonText: "确定",
  13285. cancelButtonText: "取消",
  13286. type: "warning",
  13287. }
  13288. )
  13289. .then(() => {
  13290. if (type == 1) {
  13291. if (index > 0) {
  13292. let a = JSON.parse(
  13293. JSON.stringify(
  13294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13295. index - 1
  13296. ]
  13297. )
  13298. );
  13299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13300. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13302. }
  13303. } else {
  13304. if (
  13305. index <
  13306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13307. ) {
  13308. let a = JSON.parse(
  13309. JSON.stringify(
  13310. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13311. index + 1
  13312. ]
  13313. )
  13314. );
  13315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13317. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13318. }
  13319. }
  13320. this.$forceUpdate();
  13321. })
  13322. .catch(() => {
  13323. return;
  13324. });
  13325. },
  13326. stageMove(type, index) {
  13327. if (type == 1) {
  13328. if (index > 0) {
  13329. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13330. let acid = JSON.parse(
  13331. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13332. );
  13333. let bcid = JSON.parse(
  13334. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13335. );
  13336. this.unitJson3[index - 1] = this.unitJson3[index];
  13337. this.unitJson3[index] = a;
  13338. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13339. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13340. }
  13341. } else {
  13342. if (index < this.unitJson3.length - 1) {
  13343. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13344. let acid = JSON.parse(
  13345. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13346. );
  13347. let bcid = JSON.parse(
  13348. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13349. );
  13350. this.unitJson3[index + 1] = this.unitJson3[index];
  13351. this.unitJson3[index] = a;
  13352. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13353. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13354. }
  13355. }
  13356. this.$forceUpdate();
  13357. },
  13358. addGroup(i) {
  13359. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13360. this.groupJson.group.push({
  13361. name: "第" + (this.groupJson.group.length + 1) + "组",
  13362. });
  13363. },
  13364. deleteGroup(i) {
  13365. this.groupJson.group.splice(i, 1);
  13366. },
  13367. numberPan() {
  13368. if (
  13369. /[^\d]/.test(this.groupJson.number) ||
  13370. this.groupJson.number < 2 ||
  13371. this.groupJson.number > 10
  13372. ) {
  13373. this.$message.error("请输入2-10的数字");
  13374. this.groupJson.number = "";
  13375. }
  13376. },
  13377. addGroupJson() {
  13378. for (var i = 0; i < this.groupJson.group.length; i++) {
  13379. if (!this.groupJson.group[i].name) {
  13380. this.$message.error("请将信息填写完整!");
  13381. return;
  13382. }
  13383. }
  13384. if (!this.groupJson.number) {
  13385. this.$message.error("请将信息填写完整!");
  13386. return;
  13387. }
  13388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13389. this.taskCount
  13390. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13391. JSON.stringify(this.groupJson)
  13392. );
  13393. this.dialogVisibleGroup = false;
  13394. this.groupJson = {};
  13395. if (
  13396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13397. .toolChoose[this.toolIndex].tool != 49
  13398. ) {
  13399. this.addTools(49, this.taskCount, this.toolIndex);
  13400. }
  13401. },
  13402. updateTime(preTime) {
  13403. this.preTime = preTime;
  13404. },
  13405. InviteChange(val) {
  13406. console.log(val);
  13407. let _check = [];
  13408. let _check2 = [];
  13409. for (var i = 0; i < this.grade2.length; i++) {
  13410. var gid = this.grade2[i].id;
  13411. _check.push(gid);
  13412. }
  13413. for (var i = 0; i < this.checkboxList2.length; i++) {
  13414. var _id = this.checkboxList2[i];
  13415. if (_check.indexOf(_id) !== -1) {
  13416. _check2.push(_id);
  13417. }
  13418. }
  13419. this.checkAll = _check2.length === _check.length;
  13420. return;
  13421. let array = JSON.parse(JSON.stringify(val));
  13422. this.inviteCode = this.inviteCode.filter((el) => {
  13423. if (val.indexOf(el.cid) != -1) {
  13424. array.splice(array.indexOf(el.cid), 1);
  13425. return el;
  13426. }
  13427. });
  13428. for (var i = 0; i < array.length; i++) {
  13429. this.getInviteCode(array[i]);
  13430. }
  13431. },
  13432. InviteChange2(val) {
  13433. console.log(val);
  13434. let _check = [];
  13435. let _check2 = [];
  13436. for (var i = 0; i < this.teacherJuri.length; i++) {
  13437. var gid = this.teacherJuri[i].userid;
  13438. _check.push(gid);
  13439. }
  13440. for (var i = 0; i < this.checkboxList3.length; i++) {
  13441. var _id = this.checkboxList3[i];
  13442. if (_check.indexOf(_id) !== -1) {
  13443. _check2.push(_id);
  13444. }
  13445. }
  13446. this.checkAll2 = _check2.length === _check.length;
  13447. this.setMan();
  13448. return;
  13449. let array = JSON.parse(JSON.stringify(val));
  13450. this.inviteCode = this.inviteCode.filter((el) => {
  13451. if (val.indexOf(el.cid) != -1) {
  13452. array.splice(array.indexOf(el.cid), 1);
  13453. return el;
  13454. }
  13455. });
  13456. for (var i = 0; i < array.length; i++) {
  13457. this.getInviteCode(array[i]);
  13458. }
  13459. },
  13460. handleCheckAllChange(val) {
  13461. if (val) {
  13462. for (var i = 0; i < this.grade2.length; i++) {
  13463. var gid = this.grade2[i].id;
  13464. if (this.checkboxList2.indexOf(gid) === -1) {
  13465. this.checkboxList2.push(gid);
  13466. }
  13467. }
  13468. } else {
  13469. let _check = [];
  13470. let _check2 = [];
  13471. for (var i = 0; i < this.grade2.length; i++) {
  13472. var gid = this.grade2[i].id;
  13473. _check.push(gid);
  13474. }
  13475. for (var i = 0; i < this.checkboxList2.length; i++) {
  13476. var _id = this.checkboxList2[i];
  13477. if (_check.indexOf(_id) === -1) {
  13478. _check2.push(_id);
  13479. }
  13480. }
  13481. this.checkboxList2 = _check2;
  13482. }
  13483. this.isIndeterminate = false;
  13484. },
  13485. handleCheckAllChange2(val) {
  13486. if (val) {
  13487. for (var i = 0; i < this.teacherJuri.length; i++) {
  13488. var gid = this.teacherJuri[i].userid;
  13489. if (this.checkboxList3.indexOf(gid) === -1) {
  13490. this.checkboxList3.push(gid);
  13491. }
  13492. }
  13493. } else {
  13494. let _check = [];
  13495. let _check2 = [];
  13496. for (var i = 0; i < this.teacherJuri.length; i++) {
  13497. var gid = this.teacherJuri[i].userid;
  13498. _check.push(gid);
  13499. }
  13500. for (var i = 0; i < this.checkboxList3.length; i++) {
  13501. var _id = this.checkboxList3[i];
  13502. if (_check.indexOf(_id) === -1) {
  13503. _check2.push(_id);
  13504. }
  13505. }
  13506. this.checkboxList3 = _check2;
  13507. }
  13508. this.isIndeterminate2 = false;
  13509. },
  13510. async getInviteCode(cid) {
  13511. let code = this.randomNumber();
  13512. let params = {
  13513. code: code,
  13514. oid: this.oid,
  13515. };
  13516. let type = 1;
  13517. for (var i = 0; i < this.inviteCode.length; i++) {
  13518. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13519. type = 2;
  13520. }
  13521. }
  13522. if (type == 2) {
  13523. this.getInviteCode(cid);
  13524. return;
  13525. }
  13526. const res = await this.ajax.get(
  13527. this.$store.state.api + "selectInviteCode2",
  13528. params
  13529. );
  13530. if (
  13531. res.data.length &&
  13532. res.data[0].length &&
  13533. res.data[0][0].courseId != this.cid
  13534. ) {
  13535. this.getInviteCode(cid);
  13536. return;
  13537. }
  13538. let array = [];
  13539. for (var i = 0; i < this.inviteCode.length; i++) {
  13540. array.push(this.inviteCode[i].cid);
  13541. }
  13542. if (array.indexOf(cid) != -1) {
  13543. this.inviteCode[array.indexOf(cid)].ic = code;
  13544. } else {
  13545. this.inviteCode.push({ cid: cid, ic: code });
  13546. }
  13547. },
  13548. OpenInviteD(cid) {
  13549. let array = [];
  13550. this.icode = "";
  13551. for (var i = 0; i < this.inviteCode.length; i++) {
  13552. array.push(this.inviteCode[i].cid);
  13553. }
  13554. if (array.indexOf(cid) != -1) {
  13555. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13556. }
  13557. this.inviteId = cid;
  13558. this.dialogVisibleInvite = true;
  13559. },
  13560. addInvite() {
  13561. let reg = /^[A-Za-z0-9]{4,}$/;
  13562. if (!reg.test(this.icode)) {
  13563. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13564. return;
  13565. }
  13566. let type = 1;
  13567. for (var i = 0; i < this.inviteCode.length; i++) {
  13568. if (
  13569. this.inviteCode[i].cid != this.inviteId &&
  13570. this.icode == this.inviteCode[i].ic
  13571. ) {
  13572. type = 2;
  13573. }
  13574. }
  13575. if (type == 2) {
  13576. this.$message.error("已有此随机码,不能重复");
  13577. return;
  13578. }
  13579. let params = {
  13580. code: this.icode,
  13581. oid: this.oid,
  13582. };
  13583. this.ajax
  13584. .get(this.$store.state.api + "selectInviteCode", params)
  13585. .then((res) => {
  13586. if (
  13587. res.data.length &&
  13588. res.data[0].length &&
  13589. res.data[0][0].courseId != this.cid
  13590. ) {
  13591. this.$message.error("已有此随机码,不能重复");
  13592. return;
  13593. }
  13594. let array = [];
  13595. for (var i = 0; i < this.inviteCode.length; i++) {
  13596. array.push(this.inviteCode[i].cid);
  13597. }
  13598. if (array.indexOf(this.inviteId) != -1) {
  13599. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13600. } else {
  13601. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13602. }
  13603. this.icode = "";
  13604. this.dialogVisibleInvite = false;
  13605. })
  13606. .catch((err) => {
  13607. console.error(err);
  13608. });
  13609. },
  13610. randomNumber() {
  13611. // 随机生成两位数
  13612. // let num = Math.floor(Math.random() * 900) + 100;
  13613. // 生成 0 到 99 之间的随机整数
  13614. const randomNumber = Math.floor(Math.random() * 100);
  13615. // 如果随机数小于 10,补上前导零
  13616. const num =
  13617. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13618. // 随机生成两个大写字母
  13619. let letters = "";
  13620. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13621. for (let i = 0; i < 3; i++) {
  13622. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  13623. }
  13624. // 随机生成两位数字和字母的组合
  13625. let mix = "";
  13626. let chars =
  13627. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13628. for (let i = 0; i < 3; i++) {
  13629. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  13630. mix += char;
  13631. }
  13632. // 随机选择一种类型
  13633. let type = Math.floor(Math.random() * 3);
  13634. return num;
  13635. // 根据类型输出结果
  13636. switch (type) {
  13637. case 0:
  13638. console.log(num); // 输出两位数
  13639. return num;
  13640. case 1:
  13641. console.log(letters); // 输出两个大写字母
  13642. return letters;
  13643. case 2:
  13644. console.log(mix); // 输出两位数字和字母的组合
  13645. return mix;
  13646. }
  13647. },
  13648. getPaste() {
  13649. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  13650. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  13651. if (!iframe && !iframe2) {
  13652. return;
  13653. }
  13654. let copyData = iframe ? iframe.contentWindow.copyData : false;
  13655. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  13656. if (copyData && copyData.stageData && copyData.stageData.length) {
  13657. this.isPasteStage = true;
  13658. }
  13659. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  13660. this.isPasteStage = true;
  13661. }
  13662. if (copyData && copyData.selectData.length) {
  13663. this.isPasteChoice = true;
  13664. }
  13665. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  13666. this.isPasteTask = true;
  13667. }
  13668. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  13669. this.isPasteTask = true;
  13670. }
  13671. },
  13672. searchImage() {
  13673. var _this = this;
  13674. _this.imageList = [];
  13675. if (!_this.searchImageValue) {
  13676. _this.sysPicVisible2 = true;
  13677. return;
  13678. }
  13679. _this.imageloading = true;
  13680. _this.ajax
  13681. .post("https://gpt.cocorobo.cn/search_image", {
  13682. page: _this.ppage,
  13683. pagesize: 9,
  13684. query: _this.searchImageValue,
  13685. })
  13686. .then(function (response) {
  13687. // console.log(response.data.data);
  13688. var data = response.data.FunctionResponse.result;
  13689. for (var i = 0; i < data.length; i++) {
  13690. _this.imageList.push({ url: data[i].thumbnail });
  13691. }
  13692. _this.imageloading = false;
  13693. })
  13694. .catch(function (error) {
  13695. console.log(error);
  13696. });
  13697. _this.sysPicVisible2 = true;
  13698. },
  13699. changePicture() {
  13700. this.ppage++;
  13701. this.searchImage();
  13702. },
  13703. resetImage() {
  13704. this.ppage = 1;
  13705. this.searchImage();
  13706. },
  13707. jumpGj(i, j) {
  13708. if (i + 1 != this.isClickColor) {
  13709. this.isClickColor = i + 1;
  13710. }
  13711. var a = document.scrollingElement;
  13712. this.toolIndexType = `gj${i}${j}`;
  13713. let target = document.querySelector(`#gj${i}${j}`);
  13714. if (target) {
  13715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13716. setTimeout(() => {
  13717. target.scrollIntoView(true);
  13718. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13719. j
  13720. ].isFold3 = false;
  13721. setTimeout(() => {
  13722. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13723. }, 0);
  13724. }, 0);
  13725. }
  13726. },
  13727. jumpGj2(i, j, k) {
  13728. if (this.unitIndex != k) {
  13729. if (this.panUnitJson() == 2) {
  13730. return;
  13731. }
  13732. this.unitSet(k);
  13733. }
  13734. setTimeout(() => {
  13735. if (i + 1 != this.isClickColor) {
  13736. this.isClickColor = i + 1;
  13737. }
  13738. var a = document.scrollingElement;
  13739. this.toolIndexType = `gj${i}${j}${k}`;
  13740. let target = document.querySelector(`#gj${i}${j}`);
  13741. if (target) {
  13742. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13743. setTimeout(() => {
  13744. target.scrollIntoView(true);
  13745. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13746. j
  13747. ].isFold3 = false;
  13748. setTimeout(() => {
  13749. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13750. }, 0);
  13751. }, 0);
  13752. }
  13753. }, 0);
  13754. },
  13755. dragStart(val, i, j) {
  13756. console.log(this.taskCount);
  13757. this.dragType = "drag";
  13758. this.taskCount = j;
  13759. this.oldIndex = i;
  13760. this.oldData = val;
  13761. },
  13762. dragOver(i, j) {
  13763. this.typeIndex = "chapter-" + j + "-" + i;
  13764. this.newIndex = i;
  13765. },
  13766. dragEnd() {
  13767. if (this.dragType != "drag") {
  13768. this.typeIndex = "";
  13769. this.newIndex = "";
  13770. this.dragType = "";
  13771. this.isdrag = "";
  13772. return;
  13773. }
  13774. console.log(this.taskCount);
  13775. let newItems = [
  13776. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13777. .chapterData,
  13778. ];
  13779. // 删除老的节点
  13780. newItems.splice(this.oldIndex, 1);
  13781. // 在列表中目标位置增加新的节点
  13782. newItems.splice(this.newIndex, 0, this.oldData);
  13783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13784. this.taskCount
  13785. ].chapterData = [...newItems];
  13786. this.typeIndex = "";
  13787. this.newIndex = "";
  13788. this.dragType = "";
  13789. this.isdrag = "";
  13790. this.$forceUpdate();
  13791. },
  13792. dragTaskStart(val, i, j) {
  13793. this.dragType = "task";
  13794. this.oldIndex = i;
  13795. this.oldData = val;
  13796. this.oldUnitIndex = j;
  13797. },
  13798. dragTaskOver(i, j) {
  13799. this.typeIndex = "task-" + i;
  13800. this.newIndex = i;
  13801. this.checkUnitIndex = j;
  13802. },
  13803. async dragTaskEnd() {
  13804. if (this.dragType != "task") {
  13805. this.newIndex = "";
  13806. this.dragType = "";
  13807. this.typeIndex = "";
  13808. this.checkUnitIndex = "";
  13809. this.isdrag = "";
  13810. return;
  13811. }
  13812. if (
  13813. this.newIndex == this.oldIndex &&
  13814. this.oldUnitIndex == this.checkUnitIndex
  13815. ) {
  13816. this.newIndex = "";
  13817. this.dragType = "";
  13818. this.typeIndex = "";
  13819. this.checkUnitIndex = "";
  13820. this.isdrag = "";
  13821. return;
  13822. }
  13823. let count1 = await this.getWorksCount(
  13824. 2,
  13825. this.checkUnitIndex,
  13826. this.newIndex,
  13827. 0
  13828. );
  13829. let count2 = await this.getWorksCount(
  13830. 2,
  13831. this.oldUnitIndex,
  13832. this.oldIndex,
  13833. 0
  13834. );
  13835. if (count1 > 0 || count2 > 0) {
  13836. this.$confirm(
  13837. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13838. "提示",
  13839. {
  13840. confirmButtonText: "确定",
  13841. cancelButtonText: "取消",
  13842. type: "warning",
  13843. }
  13844. )
  13845. .then(() => {
  13846. if (this.oldUnitIndex != this.checkUnitIndex) {
  13847. let newItems = [
  13848. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13849. ];
  13850. // 删除老的节点
  13851. newItems.splice(this.oldIndex, 1);
  13852. // 在列表中目标位置增加新的节点
  13853. let newItems2 = [
  13854. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13855. ];
  13856. newItems2.splice(this.newIndex, 0, this.oldData);
  13857. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13858. ...newItems,
  13859. ];
  13860. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13861. ...newItems2,
  13862. ];
  13863. } else {
  13864. let newItems = [
  13865. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13866. ];
  13867. // 删除老的节点
  13868. newItems.splice(this.oldIndex, 1);
  13869. // 在列表中目标位置增加新的节点
  13870. newItems.splice(this.newIndex, 0, this.oldData);
  13871. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13872. ...newItems,
  13873. ];
  13874. }
  13875. this.typeIndex = "";
  13876. this.newIndex = "";
  13877. this.dragType = "";
  13878. this.checkUnitIndex = "";
  13879. this.isdrag = "";
  13880. this.updateWork();
  13881. this.$forceUpdate();
  13882. })
  13883. .catch(() => {
  13884. this.newIndex = "";
  13885. this.dragType = "";
  13886. this.typeIndex = "";
  13887. this.checkUnitIndex = "";
  13888. this.isdrag = "";
  13889. return;
  13890. });
  13891. } else {
  13892. if (this.oldUnitIndex != this.checkUnitIndex) {
  13893. let newItems = [
  13894. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13895. ];
  13896. // 删除老的节点
  13897. newItems.splice(this.oldIndex, 1);
  13898. // 在列表中目标位置增加新的节点
  13899. let newItems2 = [
  13900. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13901. ];
  13902. newItems2.splice(this.newIndex, 0, this.oldData);
  13903. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13904. ...newItems,
  13905. ];
  13906. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13907. ...newItems2,
  13908. ];
  13909. } else {
  13910. let newItems = [
  13911. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13912. ];
  13913. // 删除老的节点
  13914. newItems.splice(this.oldIndex, 1);
  13915. // 在列表中目标位置增加新的节点
  13916. newItems.splice(this.newIndex, 0, this.oldData);
  13917. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13918. ...newItems,
  13919. ];
  13920. }
  13921. this.typeIndex = "";
  13922. this.newIndex = "";
  13923. this.dragType = "";
  13924. this.checkUnitIndex = "";
  13925. this.isdrag = "";
  13926. this.updateWork();
  13927. this.$forceUpdate();
  13928. }
  13929. },
  13930. dragUnitStart(val, i) {
  13931. this.dragType = "Unit";
  13932. this.oldIndex = i;
  13933. this.oldData = val;
  13934. },
  13935. dragUnitOver(i) {
  13936. this.typeIndex = "Unit-" + i;
  13937. this.newIndex = i;
  13938. console.log(i, this.unitJson[i].toolOpen);
  13939. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  13940. this.unitJson[i].toolOpen = true;
  13941. this.updateWork();
  13942. this.$forceUpdate();
  13943. }
  13944. },
  13945. async dragUnitEnd() {
  13946. if (this.dragType != "Unit") {
  13947. this.newIndex = "";
  13948. this.dragType = "";
  13949. this.typeIndex = "";
  13950. this.isdrag = "";
  13951. return;
  13952. }
  13953. if (this.newIndex == this.oldIndex) {
  13954. this.newIndex = "";
  13955. this.dragType = "";
  13956. this.typeIndex = "";
  13957. this.isdrag = "";
  13958. return;
  13959. }
  13960. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  13961. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  13962. console.log(count1, count2);
  13963. if (count1 > 0 || count2 > 0) {
  13964. this.$confirm(
  13965. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  13966. "提示",
  13967. {
  13968. confirmButtonText: "确定",
  13969. cancelButtonText: "取消",
  13970. type: "warning",
  13971. }
  13972. )
  13973. .then(() => {
  13974. let newItems = [...this.unitJson];
  13975. // 删除老的节点
  13976. newItems.splice(this.oldIndex, 1);
  13977. // 在列表中目标位置增加新的节点
  13978. newItems.splice(this.newIndex, 0, this.oldData);
  13979. this.unitJson = [...newItems];
  13980. this.typeIndex = "";
  13981. this.newIndex = "";
  13982. this.dragType = "";
  13983. this.isdrag = "";
  13984. this.updateWork();
  13985. this.$forceUpdate();
  13986. })
  13987. .catch(() => {
  13988. this.newIndex = "";
  13989. this.dragType = "";
  13990. this.typeIndex = "";
  13991. this.isdrag = "";
  13992. return;
  13993. });
  13994. } else {
  13995. let newItems = [...this.unitJson];
  13996. // 删除老的节点
  13997. newItems.splice(this.oldIndex, 1);
  13998. // 在列表中目标位置增加新的节点
  13999. newItems.splice(this.newIndex, 0, this.oldData);
  14000. this.unitJson = [...newItems];
  14001. this.typeIndex = "";
  14002. this.newIndex = "";
  14003. this.dragType = "";
  14004. this.isdrag = "";
  14005. this.updateWork();
  14006. this.$forceUpdate();
  14007. }
  14008. },
  14009. getWorksCount(type, stage, task, tool) {
  14010. return new Promise((resolve, reject) => {
  14011. let params = [
  14012. {
  14013. cid: this.cid,
  14014. stage: stage,
  14015. task: task,
  14016. tool: tool,
  14017. type: type,
  14018. },
  14019. ];
  14020. this.ajax
  14021. .post(this.$store.state.api + "getCourseWorkCount", params)
  14022. .then((res) => {
  14023. let count = res.data[0][0].count;
  14024. resolve(count);
  14025. })
  14026. .catch((err) => {
  14027. resolve(0);
  14028. this.$message.error("网络不佳");
  14029. console.error(err);
  14030. });
  14031. });
  14032. },
  14033. getTwoType(id) {
  14034. this.twoJson = [];
  14035. var array = this.CourseTypeJson1[
  14036. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14037. ].filter((e) => {
  14038. return e.ppid == id;
  14039. });
  14040. this.twoJson = array;
  14041. this.$forceUpdate();
  14042. },
  14043. ctype() {
  14044. this.oneJson =
  14045. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14046. },
  14047. selectAllType1() {
  14048. this.CourseType1 = [];
  14049. this.CourseTypeJson1 = {};
  14050. this.courseTypeId1 = {};
  14051. this.$forceUpdate();
  14052. let params = {
  14053. org: this.org && this.org != "" ? this.org : "",
  14054. oid: this.oid && this.oid != "" ? this.oid : "",
  14055. };
  14056. this.ajax
  14057. .get(this.$store.state.api + "selectAllEvaType", params)
  14058. .then((res) => {
  14059. this.CourseType1 = res.data;
  14060. for (var i = 0; i < res.data[0].length; i++) {
  14061. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14062. res.data[0][i].name = "一级分类";
  14063. } else if (
  14064. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14065. ) {
  14066. res.data[0][i].name = "二级分类";
  14067. }
  14068. if (!this.cid) {
  14069. this.courseTypeId1[res.data[0][i].id] = [];
  14070. }
  14071. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14072. this.CourseTypeJson1[res.data[0][i].id] = [];
  14073. }
  14074. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14075. for (var j = 0; j < res.data[1].length; j++) {
  14076. if (res.data[0][i].id == res.data[1][j].pid) {
  14077. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14078. }
  14079. }
  14080. // } else {
  14081. if (res.data[2].length > 0) {
  14082. for (var j = 0; j < res.data[2].length; j++) {
  14083. if (res.data[0][i].id == res.data[2][j].pid) {
  14084. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14085. }
  14086. }
  14087. }
  14088. if (res.data[3].length > 0) {
  14089. for (var j = 0; j < res.data[3].length; j++) {
  14090. if (res.data[0][i].id == res.data[3][j].pid) {
  14091. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14092. }
  14093. }
  14094. }
  14095. // }
  14096. }
  14097. this.ctype();
  14098. this.cetBoxDialog = true;
  14099. })
  14100. .catch((err) => {
  14101. console.error(err);
  14102. });
  14103. },
  14104. },
  14105. beforeDestroy() {
  14106. clearTimeout(this.timer);
  14107. this.timer = null;
  14108. clearInterval(this.timer2);
  14109. this.timer2 = null;
  14110. clearInterval(this.pasteTimer);
  14111. this.pasteTimer = null;
  14112. },
  14113. beforeRouteLeave(to, from, next) {
  14114. clearTimeout(this.timer);
  14115. this.timer = null;
  14116. clearInterval(this.timer2);
  14117. this.timer2 = null;
  14118. clearInterval(this.pasteTimer);
  14119. this.pasteTimer = null;
  14120. next();
  14121. },
  14122. created() {
  14123. this.getStudent();
  14124. this.getTeacher();
  14125. this.getClass();
  14126. this.selectGrage();
  14127. this.getTemplate();
  14128. // this.selectType();
  14129. this.selectEva();
  14130. this.loading = false;
  14131. this.timer2 = setInterval(() => {
  14132. this.selectEva();
  14133. }, 5000);
  14134. this.pasteTimer = setInterval(() => {
  14135. this.getPaste();
  14136. }, 1000);
  14137. setTimeout(() => {
  14138. this.selectCourseDetail();
  14139. }, 500);
  14140. let _this = this;
  14141. window.pasteStage = function (json) {
  14142. _this.pasteStage(json);
  14143. };
  14144. window.pasteTask = function (json) {
  14145. _this.pasteTask(json);
  14146. };
  14147. },
  14148. };
  14149. </script>
  14150. <style scoped>
  14151. @media screen and (max-width: 1280px) {
  14152. .mbCss {
  14153. flex-direction: column !important;
  14154. }
  14155. .pjCss {
  14156. width: 100% !important;
  14157. }
  14158. .evaCss {
  14159. width: 100% !important;
  14160. margin-top: 10px;
  14161. }
  14162. }
  14163. .el-table >>> .even_row {
  14164. background-color: #f1f1f1 !important;
  14165. }
  14166. .dialog_diy >>> .el-dialog__header {
  14167. background: #3c3c3c !important;
  14168. padding: 15px 20px;
  14169. }
  14170. .dialog_diy >>> .el-dialog__title {
  14171. color: #fff;
  14172. }
  14173. .dialog_diy >>> .el-dialog__headerbtn {
  14174. top: 19px;
  14175. }
  14176. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14177. color: #fff;
  14178. }
  14179. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14180. color: #fff;
  14181. }
  14182. .dialog_diy >>> .el-dialog__body,
  14183. .dialog_diy >>> .el-dialog__footer {
  14184. background: #fafafa;
  14185. }
  14186. .dialog_diy3 >>> .el-dialog__body,
  14187. .dialog_diy3 >>> .el-dialog__footer {
  14188. background: #eee !important;
  14189. }
  14190. .dialog_diy3 >>> .el-dialog__body {
  14191. padding: 20px 20px;
  14192. }
  14193. .dialog_diyStage >>> .el-dialog__body {
  14194. padding: 10px;
  14195. }
  14196. .source_diy >>> .el-dialog {
  14197. height: 100% !important;
  14198. margin: 0 auto !important;
  14199. }
  14200. .source_diy >>> .el-dialog__body {
  14201. height: calc(100% - 185px);
  14202. overflow: auto;
  14203. background: #e6eaf0;
  14204. }
  14205. .source_diy >>> .el-dialog__footer {
  14206. background: #e6eaf0 !important;
  14207. }
  14208. .left {
  14209. border-right: 1px solid rgb(60, 94, 143);
  14210. display: flex;
  14211. flex-direction: column;
  14212. align-items: center;
  14213. min-height: 600px;
  14214. width: 385px;
  14215. height: 80%;
  14216. }
  14217. .tips {
  14218. color: rgb(128, 128, 128);
  14219. font-size: 12px;
  14220. width: 270px;
  14221. margin: 40px;
  14222. }
  14223. .pb_content {
  14224. height: 100% !important;
  14225. /* margin: 0 20px 0 20px; */
  14226. }
  14227. .pb_content_body {
  14228. width: 100% !important;
  14229. height: 100%;
  14230. }
  14231. .info_solid {
  14232. width: 270px;
  14233. height: 30px;
  14234. border-left: 1px solid #bdbdbd;
  14235. margin: 10px 0px 10px 30px;
  14236. }
  14237. .info_steps {
  14238. width: 270px;
  14239. font-size: 0.875rem;
  14240. display: flex;
  14241. align-items: center;
  14242. }
  14243. .info_steps span:nth-child(1) {
  14244. width: 30px;
  14245. height: 30px;
  14246. background: rgba(0, 0, 0, 0.38);
  14247. display: block;
  14248. color: #fff;
  14249. border-radius: 40px;
  14250. text-align: center;
  14251. line-height: 30px;
  14252. }
  14253. .steps_active {
  14254. background: #3d67bc !important;
  14255. }
  14256. .info_steps span:nth-child(2) {
  14257. margin-left: 5px;
  14258. }
  14259. .right {
  14260. height: 100%;
  14261. width: 100%;
  14262. display: flex;
  14263. overflow: hidden;
  14264. flex-direction: column;
  14265. }
  14266. .basic_box {
  14267. margin: 0 auto;
  14268. position: relative;
  14269. padding: 0 20px 0 20px;
  14270. }
  14271. .basic_box_success {
  14272. width: 100%;
  14273. min-height: 455px;
  14274. padding: 50px 0;
  14275. position: relative;
  14276. text-align: center;
  14277. border-bottom: 1px solid #bfbfbf;
  14278. box-sizing: border-box;
  14279. display: flex;
  14280. align-items: center;
  14281. flex-direction: column;
  14282. justify-content: center;
  14283. }
  14284. .info_title {
  14285. font-size: 1.5em;
  14286. margin-right: 25px;
  14287. /* margin: 20px 30px 20px 30px; */
  14288. }
  14289. .bInfo_title {
  14290. text-align: left;
  14291. margin: 10px 0;
  14292. }
  14293. .small_title {
  14294. font-size: 14px;
  14295. line-height: 40px;
  14296. }
  14297. .chapter_beizhu {
  14298. font-size: 12px;
  14299. font-weight: bold;
  14300. float: right;
  14301. color: rgb(128, 128, 128);
  14302. margin-top: 5px;
  14303. }
  14304. .chapter_uploadBox1 {
  14305. text-align: left;
  14306. background-color: rgb(242, 242, 242);
  14307. width: 100%;
  14308. height: 67px;
  14309. padding: 0px 15px;
  14310. border-radius: 8px;
  14311. overflow: hidden;
  14312. font-size: 16px;
  14313. box-sizing: border-box;
  14314. position: relative;
  14315. }
  14316. .chapter_add {
  14317. width: 100%;
  14318. height: 32px;
  14319. margin-top: 15px;
  14320. cursor: pointer;
  14321. }
  14322. .chapter_add_l {
  14323. margin-left: 5px;
  14324. width: 30px;
  14325. height: 30px;
  14326. float: left;
  14327. border: 1px solid #aaa;
  14328. color: #aaa;
  14329. border-radius: 50%;
  14330. font-size: 25px;
  14331. text-align: center;
  14332. }
  14333. .chapter_add_r {
  14334. font-size: 18px;
  14335. height: 40px;
  14336. line-height: 30px;
  14337. text-indent: 10px;
  14338. color: #aaa;
  14339. }
  14340. .chapter_add_r span {
  14341. font-size: 12px;
  14342. color: rgb(204, 204, 204);
  14343. }
  14344. .chapter_add_input {
  14345. display: none;
  14346. }
  14347. .line {
  14348. width: 85%;
  14349. margin: 0 auto;
  14350. border-top: 1px solid #e5e5e5;
  14351. margin-top: 20px;
  14352. }
  14353. .info_btnBox {
  14354. width: calc(100%);
  14355. display: flex;
  14356. justify-content: center;
  14357. height: 80px;
  14358. align-items: center;
  14359. background: #fff;
  14360. margin: 0 auto;
  14361. border-top: 2px solid rgb(228, 232, 237);
  14362. box-sizing: border-box;
  14363. }
  14364. .info_btnBox2 {
  14365. width: calc(100%);
  14366. display: flex;
  14367. justify-content: center;
  14368. height: 20px;
  14369. align-items: center;
  14370. background: #fff;
  14371. margin: 0 auto;
  14372. border-top: 2px solid rgb(228, 232, 237);
  14373. box-sizing: border-box;
  14374. overflow: hidden;
  14375. cursor: pointer;
  14376. }
  14377. .info_btnBox3 {
  14378. width: calc(100%);
  14379. display: flex;
  14380. justify-content: flex-end;
  14381. padding: 0 20px;
  14382. height: 60px;
  14383. align-items: center;
  14384. background: unset;
  14385. margin: 0 auto;
  14386. /* border-top: 1px solid rgb(228, 232, 237); */
  14387. box-sizing: border-box;
  14388. overflow: hidden;
  14389. cursor: pointer;
  14390. background: #fff;
  14391. border-radius: 10px;
  14392. }
  14393. .info_btn + .info_btn {
  14394. margin-left: 15px;
  14395. }
  14396. .info_btn,
  14397. .teacherWord {
  14398. color: #fff;
  14399. background-color: #0f7eff;
  14400. padding: 8px 24px;
  14401. font-size: 0.9375rem;
  14402. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  14403. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  14404. min-width: 64px;
  14405. font-weight: 500;
  14406. border-radius: 4px;
  14407. box-sizing: border-box;
  14408. border: none;
  14409. cursor: pointer;
  14410. }
  14411. .teacherWord {
  14412. width: 105px !important;
  14413. text-align: center !important;
  14414. line-height: 36px !important;
  14415. padding: 0 !important;
  14416. font-size: 14px !important;
  14417. margin: 10px 0 !important;
  14418. }
  14419. .template_box {
  14420. display: flex;
  14421. flex-wrap: wrap;
  14422. }
  14423. .wordTeacher {
  14424. display: flex;
  14425. flex-direction: column;
  14426. width: 100px;
  14427. height: 100px;
  14428. text-align: center;
  14429. font-size: 13px;
  14430. margin: 0 20px 20px 0;
  14431. background: #f0f4fa;
  14432. position: relative;
  14433. border-radius: 5px;
  14434. align-items: center;
  14435. justify-content: center;
  14436. border: 1px solid #cad1dc;
  14437. color: #0e1e33;
  14438. /* padding: 25px 0px; */
  14439. cursor: pointer;
  14440. }
  14441. .wordTeacher::after {
  14442. content: "";
  14443. display: block;
  14444. position: absolute;
  14445. width: 15px;
  14446. height: 15px;
  14447. right: 10px;
  14448. top: 10px;
  14449. background-image: url(../../assets/icon/new/choose_a.png);
  14450. background-size: 100% 100%;
  14451. }
  14452. .wordTeacherA::after {
  14453. background-image: url(../../assets/icon/new/choose_b.png);
  14454. }
  14455. .wordTeacher:nth-child(5n) {
  14456. margin-right: 0px;
  14457. }
  14458. .wordPic {
  14459. margin: 0 auto;
  14460. width: 30px;
  14461. height: 30px;
  14462. cursor: pointer;
  14463. }
  14464. .deleteWord {
  14465. width: 22px;
  14466. height: 22px;
  14467. position: absolute;
  14468. right: 5px;
  14469. top: -15px;
  14470. cursor: pointer;
  14471. display: none;
  14472. z-index: 999;
  14473. }
  14474. .wordPic > img,
  14475. .deleteWord > img,
  14476. .addToolImg > img {
  14477. width: 100%;
  14478. height: 100%;
  14479. }
  14480. .info_btn:hover {
  14481. background-color: #4f7cd5 !important;
  14482. }
  14483. .cru_selectBox {
  14484. display: flex;
  14485. margin: 15px 0;
  14486. flex-wrap: nowrap;
  14487. white-space: nowrap;
  14488. overflow: auto;
  14489. position: relative;
  14490. height: 40px;
  14491. max-width: calc(100% - 175px);
  14492. }
  14493. .cru_selectBox::-webkit-scrollbar {
  14494. /*滚动条整体样式*/
  14495. width: 6px;
  14496. /*高宽分别对应横竖滚动条的尺寸*/
  14497. height: 6px;
  14498. }
  14499. /*定义滚动条轨道 内阴影+圆角*/
  14500. .cru_selectBox::-webkit-scrollbar-track {
  14501. border-radius: 10px;
  14502. background-color: #eee;
  14503. }
  14504. /*定义滑块 内阴影+圆角*/
  14505. .cru_selectBox::-webkit-scrollbar-thumb {
  14506. border-radius: 10px;
  14507. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14508. background-color: rgba(0, 0, 0, 0.1);
  14509. }
  14510. .cru_line {
  14511. position: absolute;
  14512. bottom: 0px;
  14513. transition: all 0.5s;
  14514. left: 0px;
  14515. width: 50px;
  14516. height: 4px;
  14517. left: 10px;
  14518. border-radius: 2px;
  14519. background: #3681fc;
  14520. }
  14521. .cru_select {
  14522. font-size: 18px;
  14523. margin-right: 20px;
  14524. margin-left: 5px;
  14525. cursor: pointer;
  14526. color: #0e1e33;
  14527. }
  14528. .cru_select:hover {
  14529. color: #3681fc !important;
  14530. }
  14531. .cru_selected {
  14532. color: #3681fc !important;
  14533. font-weight: bold;
  14534. }
  14535. .chapter_box {
  14536. margin-top: 10px;
  14537. width: 100%;
  14538. padding: 10px 20px;
  14539. background: #fff;
  14540. border-radius: 8px;
  14541. box-sizing: border-box;
  14542. }
  14543. .chapter_contentbox {
  14544. display: flex;
  14545. align-items: center;
  14546. /* margin-top: 15px; */
  14547. }
  14548. .chapter_contentbox .cc_title {
  14549. margin: 0px;
  14550. color: black;
  14551. display: block;
  14552. white-space: nowrap;
  14553. overflow: hidden;
  14554. text-overflow: ellipsis;
  14555. margin-right: 20px;
  14556. font-size: 18px;
  14557. height: 20px;
  14558. line-height: 22px;
  14559. min-width: fit-content;
  14560. display: flex;
  14561. }
  14562. .chapter_contentbox .cc_title::before {
  14563. content: "";
  14564. height: 100%;
  14565. width: 3px;
  14566. background: #3681fc;
  14567. border-radius: 3px;
  14568. opacity: 1;
  14569. display: block;
  14570. margin-right: 10px;
  14571. }
  14572. .chapter_contentbox .cc_input {
  14573. width: 100%;
  14574. display: flex;
  14575. }
  14576. .show_taskD {
  14577. min-width: fit-content;
  14578. margin-left: 10px;
  14579. display: flex;
  14580. align-items: center;
  14581. font-size: 14px;
  14582. cursor: pointer;
  14583. color: #717c8d;
  14584. }
  14585. .show_taskD > img {
  14586. width: 15px;
  14587. margin-right: 5px;
  14588. transition: 0.2s all;
  14589. transform: rotate(-90deg);
  14590. }
  14591. .show_taskD.show > img {
  14592. transform: rotate(0deg);
  14593. }
  14594. .show_toolD {
  14595. min-width: fit-content;
  14596. margin-left: 10px;
  14597. display: flex;
  14598. align-items: center;
  14599. font-size: 14px;
  14600. cursor: pointer;
  14601. color: #717c8d;
  14602. /* position: absolute;
  14603. right: 45px;
  14604. top: 5px; */
  14605. }
  14606. .show_toolD > img {
  14607. width: 15px;
  14608. margin-right: 5px;
  14609. transition: 0.2s all;
  14610. transform: rotate(-90deg);
  14611. }
  14612. .show_toolD.show > img {
  14613. transform: rotate(0deg);
  14614. }
  14615. .remove {
  14616. background-image: url("../../assets/icon/new/delete_u.png");
  14617. cursor: pointer;
  14618. opacity: 0.5;
  14619. width: 30px;
  14620. min-width: 30px;
  14621. height: 30px;
  14622. background-size: 100% 100%;
  14623. background-repeat: no-repeat;
  14624. margin-left: 10px;
  14625. }
  14626. .remove1 {
  14627. background-image: url("../../assets/remove1.png");
  14628. background-repeat: no-repeat;
  14629. background-position: 5px 10px;
  14630. width: 40px;
  14631. height: 50px;
  14632. cursor: pointer;
  14633. margin-left: 10px;
  14634. }
  14635. .binfo_input {
  14636. width: 100%;
  14637. margin: 0;
  14638. padding: 12px 14px;
  14639. display: block;
  14640. min-width: 0;
  14641. outline: none;
  14642. box-sizing: border-box;
  14643. background: none;
  14644. border: none;
  14645. border-radius: 4px;
  14646. background: #fff;
  14647. font-size: 16px;
  14648. resize: none;
  14649. font-family: "Microsoft YaHei";
  14650. min-height: 48px;
  14651. /* border: 1px solid #3682fc00; */
  14652. border: 1.5px solid #cad1dc;
  14653. }
  14654. .binfo_textarea {
  14655. border: 1.5px solid #cad1dc;
  14656. font-size: 16px;
  14657. resize: none;
  14658. /* background: #f6f6f6; */
  14659. font-family: "Microsoft YaHei";
  14660. }
  14661. .binfo_input:focus-visible {
  14662. border: 1.5px solid #3681fc !important;
  14663. }
  14664. .time {
  14665. display: flex;
  14666. margin: 35px 0 80px 0;
  14667. }
  14668. .chapter_btnbox {
  14669. width: 160px;
  14670. border-radius: 5px;
  14671. border: 2px dashed gray;
  14672. display: flex;
  14673. padding: 8px 50px;
  14674. align-items: center;
  14675. justify-content: center;
  14676. margin: 30px auto 0;
  14677. cursor: pointer;
  14678. }
  14679. .icon_add {
  14680. position: relative;
  14681. width: 24px;
  14682. padding-top: 20px;
  14683. border-radius: 100%;
  14684. border-width: 2px;
  14685. border-style: solid;
  14686. border-color: gray;
  14687. }
  14688. .icon_add i:nth-child(1) {
  14689. position: absolute;
  14690. left: 50%;
  14691. top: 50%;
  14692. height: 60%;
  14693. transform: translate(-50%, -50%);
  14694. border-width: 1px;
  14695. border-style: solid;
  14696. border-color: inherit;
  14697. }
  14698. .icon_add i:nth-child(2) {
  14699. position: absolute;
  14700. top: 50%;
  14701. left: 50%;
  14702. width: 60%;
  14703. transform: translate(-50%, -50%);
  14704. border-width: 1px;
  14705. border-style: solid;
  14706. border-color: inherit;
  14707. }
  14708. .chapter_btn_w {
  14709. font-size: 0.9375rem;
  14710. font-weight: bold;
  14711. color: gray;
  14712. margin-left: 20px;
  14713. }
  14714. .disUoloadSty >>> .el-icon-plus {
  14715. display: none !important;
  14716. /* 上传按钮隐藏 */
  14717. }
  14718. .imgLeft {
  14719. margin: 15px 0;
  14720. }
  14721. .add_info_box {
  14722. margin: 0 0 0 auto;
  14723. display: flex;
  14724. flex-wrap: wrap;
  14725. }
  14726. .add_info_box button {
  14727. margin: 0 5px 10px 0;
  14728. }
  14729. .add_info_box2 {
  14730. display: flex;
  14731. align-items: center;
  14732. flex-wrap: wrap;
  14733. }
  14734. .add_info_box2::after {
  14735. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14736. color: red;
  14737. font-size: 14px;
  14738. margin-bottom: 10px;
  14739. }
  14740. .add_chapters_box {
  14741. text-align: left;
  14742. background-color: #fff;
  14743. width: 100%;
  14744. border-radius: 4px;
  14745. font-size: 16px;
  14746. box-sizing: border-box;
  14747. position: relative;
  14748. padding: 0 15px;
  14749. height: auto;
  14750. overflow-y: auto;
  14751. overflow-x: hidden;
  14752. border: 1px solid #cad1dc;
  14753. }
  14754. .add_chapters_box.add_c_none {
  14755. display: flex;
  14756. justify-content: center;
  14757. align-items: center;
  14758. padding: 15px;
  14759. }
  14760. .add_c_none > img {
  14761. width: 25px;
  14762. }
  14763. .add_chapters_box.add_c_none > span {
  14764. font-size: 14px;
  14765. font-weight: 400;
  14766. margin: 0 0 5px 5px;
  14767. }
  14768. .homework_box {
  14769. display: flex;
  14770. align-items: flex-start;
  14771. flex-wrap: wrap;
  14772. margin: 15px 0 0 0;
  14773. flex-direction: column;
  14774. align-content: flex-start;
  14775. }
  14776. .course_homework {
  14777. display: flex;
  14778. justify-content: center;
  14779. flex-direction: row;
  14780. align-items: center;
  14781. margin: 0 10px 0 0;
  14782. }
  14783. .course_homework >>> .el-input__inner {
  14784. width: 140px;
  14785. margin-left: 15px;
  14786. }
  14787. .chapter_upload_move {
  14788. position: relative;
  14789. background-color: #fff;
  14790. position: absolute;
  14791. width: 100%;
  14792. top: 0px;
  14793. left: 0px;
  14794. border: 1px solid #eee;
  14795. border-radius: 5px;
  14796. transition: width 2s;
  14797. -moz-transition: width 2s;
  14798. -webkit-transition: width 2s;
  14799. -o-transition: width 2s;
  14800. }
  14801. .chapter_upload_l_i {
  14802. background-image: url("../../assets/icon.png");
  14803. background-position: 3px -165px;
  14804. width: 30px;
  14805. height: 30px;
  14806. margin: 10px auto 0 auto;
  14807. }
  14808. .course_input_box {
  14809. display: flex;
  14810. margin-right: 20px;
  14811. width: 100%;
  14812. align-items: center;
  14813. position: relative;
  14814. }
  14815. .course_input_box > .binfo_input {
  14816. width: calc(100% - 0 - 200px - 20px);
  14817. margin: 0 10px;
  14818. }
  14819. .bb_courseIcon {
  14820. width: 57px;
  14821. height: 45px;
  14822. background: #f0f4fa;
  14823. border-radius: 5px 0px 0px 5px;
  14824. display: flex;
  14825. align-items: center;
  14826. justify-content: center;
  14827. border-right: 1.5px solid rgb(202, 209, 220);
  14828. box-sizing: border-box;
  14829. position: absolute;
  14830. left: 1.5px;
  14831. }
  14832. .bb_courseIcon > img {
  14833. width: 25px;
  14834. height: auto;
  14835. }
  14836. .big_box {
  14837. /* margin-top: 20px; */
  14838. display: flex;
  14839. justify-content: space-between;
  14840. /* border-bottom: 1px solid #E0E2ED; */
  14841. }
  14842. .left_first {
  14843. display: flex;
  14844. flex-direction: column;
  14845. flex-wrap: nowrap;
  14846. width: calc(100% - 310px);
  14847. padding: 20px;
  14848. box-sizing: border-box;
  14849. background: #fff;
  14850. border-radius: 5px;
  14851. }
  14852. .right_first {
  14853. width: 300px;
  14854. display: flex;
  14855. align-items: center;
  14856. justify-content: center;
  14857. /* border-left: 1px solid #E0E2ED; */
  14858. box-sizing: border-box;
  14859. padding: 20px;
  14860. flex-direction: column;
  14861. background: #fff;
  14862. border-radius: 5px;
  14863. }
  14864. .ai_box {
  14865. width: 204px;
  14866. display: flex;
  14867. justify-content: flex-end;
  14868. margin-bottom: 15px;
  14869. }
  14870. .ai_content {
  14871. display: flex;
  14872. align-items: center;
  14873. font-size: 14px;
  14874. padding: 7px 20px;
  14875. box-sizing: border-box;
  14876. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14877. border-radius: 12px;
  14878. font-weight: 700;
  14879. cursor: pointer;
  14880. }
  14881. .ai_content > img {
  14882. width: 40px;
  14883. margin-right: 5px;
  14884. }
  14885. .c_info_title {
  14886. padding: 15px 0 15px 0;
  14887. font-size: 16px;
  14888. font-weight: bold;
  14889. margin: 0 0 0 20px;
  14890. box-sizing: border-box;
  14891. display: flex;
  14892. align-items: center;
  14893. line-height: 20px;
  14894. }
  14895. .c_info_title::before {
  14896. content: "";
  14897. display: block;
  14898. width: 3px;
  14899. height: 20px;
  14900. background: #0061ff;
  14901. border-radius: 3px;
  14902. margin: 0 5px 0 0;
  14903. }
  14904. .right_title {
  14905. height: 30px;
  14906. padding: 15px 0 15px 20px;
  14907. border-bottom: 1px solid #f2f2f2;
  14908. font-size: 1.5em;
  14909. font-weight: bold;
  14910. color: #0f7eff;
  14911. margin: 0 auto;
  14912. }
  14913. .people {
  14914. border: 1px solid rgb(229 229 229);
  14915. /* height: 495px; */
  14916. height: 350px;
  14917. border-radius: 5px;
  14918. width: 100%;
  14919. overflow: auto;
  14920. }
  14921. .people_top {
  14922. display: flex;
  14923. width: 100%;
  14924. /* justify-content: space-between; */
  14925. /* align-items: center; */
  14926. flex-direction: column;
  14927. padding: 10px 10px 0;
  14928. box-sizing: border-box;
  14929. }
  14930. .people_nav,
  14931. .people_top_right {
  14932. /* padding: 20px 0 0 20px; */
  14933. }
  14934. .people_top_right {
  14935. height: 40px;
  14936. margin-bottom: 10px;
  14937. }
  14938. .people_search {
  14939. display: flex;
  14940. position: relative;
  14941. }
  14942. .people_search >>> .el-input__inner {
  14943. /* height: 25px; */
  14944. width: 100%;
  14945. }
  14946. .search_img {
  14947. width: 20px;
  14948. height: 20px;
  14949. position: absolute;
  14950. right: 10px;
  14951. top: 50%;
  14952. transform: translateY(-50%);
  14953. }
  14954. .search_img > img {
  14955. width: 100%;
  14956. height: 100%;
  14957. }
  14958. .people_name {
  14959. display: flex;
  14960. justify-content: flex-start;
  14961. padding: 20px 10px;
  14962. flex-direction: column;
  14963. flex-wrap: wrap;
  14964. }
  14965. .p_box {
  14966. position: relative;
  14967. }
  14968. .people_name >>> .el-checkbox {
  14969. width: 100%;
  14970. display: flex;
  14971. align-items: center;
  14972. margin-bottom: 10px;
  14973. }
  14974. .people_name >>> .el-checkbox__label {
  14975. text-overflow: ellipsis;
  14976. overflow: hidden;
  14977. width: calc(100%);
  14978. }
  14979. .people_name2 >>> .el-checkbox__label {
  14980. width: calc(100% - 130px);
  14981. }
  14982. .inviteCode {
  14983. position: absolute;
  14984. right: 30px;
  14985. color: #237ade;
  14986. top: 0;
  14987. cursor: pointer;
  14988. font-size: 13px;
  14989. }
  14990. .noneInvite {
  14991. color: #a8a8a8;
  14992. }
  14993. .inviteImg {
  14994. position: absolute;
  14995. right: 5px;
  14996. top: 0;
  14997. width: 20px;
  14998. }
  14999. .right_img {
  15000. width: 150px;
  15001. height: 150px;
  15002. margin: 0 auto;
  15003. }
  15004. .right_img > img {
  15005. width: 100%;
  15006. height: 100%;
  15007. }
  15008. .number {
  15009. margin-top: 20px;
  15010. color: #4aa6ff;
  15011. text-decoration: underline;
  15012. }
  15013. .success_button {
  15014. display: flex;
  15015. text-align: center;
  15016. margin: 5% 0 auto;
  15017. flex-direction: row;
  15018. justify-content: center;
  15019. }
  15020. .look_course {
  15021. margin-right: 40px;
  15022. background: #3d67bc;
  15023. width: 200px;
  15024. height: 35px;
  15025. line-height: 35px;
  15026. color: #fff;
  15027. text-align: center;
  15028. font-size: 14px;
  15029. border-radius: 5px;
  15030. cursor: pointer;
  15031. }
  15032. .attend_others {
  15033. width: 250px;
  15034. background: #4fb13c;
  15035. height: 35px;
  15036. line-height: 35px;
  15037. color: #fff;
  15038. text-align: center;
  15039. font-size: 14px;
  15040. border-radius: 5px;
  15041. cursor: pointer;
  15042. }
  15043. .dialog_diy2 >>> .el-dialog__body {
  15044. text-align: center;
  15045. }
  15046. .write_togother {
  15047. position: absolute;
  15048. right: 45px;
  15049. display: flex;
  15050. top: 5%;
  15051. }
  15052. .write_people {
  15053. font-size: 14px;
  15054. line-height: 50px;
  15055. padding-right: 10px;
  15056. }
  15057. .end_write {
  15058. background: #3d67bc;
  15059. color: #fff;
  15060. width: 100px;
  15061. height: 35px;
  15062. line-height: 35px;
  15063. text-align: center;
  15064. font-size: 14px;
  15065. border-radius: 5px;
  15066. cursor: pointer;
  15067. }
  15068. .chapter_upload + .chapter_upload {
  15069. /* margin-top: 15px; */
  15070. border-top: 1px solid #e7ebf1;
  15071. }
  15072. .chapter_upload {
  15073. height: 45px;
  15074. position: relative;
  15075. display: flex;
  15076. align-items: center;
  15077. width: 100%;
  15078. min-height: 45px;
  15079. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15080. /* border-radius: 4px; */
  15081. /* overflow: hidden; */
  15082. box-sizing: border-box;
  15083. }
  15084. .chapter_upload_drag {
  15085. position: absolute;
  15086. cursor: pointer;
  15087. width: 16px;
  15088. height: 16px;
  15089. left: -9px;
  15090. background-image: url("../../assets/icon/new/icon_course_drag.png");
  15091. background-size: 100% 100%;
  15092. z-index: 10;
  15093. display: none;
  15094. }
  15095. .isNavStage > .chapter_upload_drag {
  15096. background-image: url("../../assets/icon/new/icon_course_drag_active2.png");
  15097. }
  15098. .chapter_upload_t {
  15099. background-color: #fff;
  15100. position: absolute;
  15101. height: 100%;
  15102. top: 0px;
  15103. left: 0px;
  15104. box-sizing: border-box;
  15105. }
  15106. .chapter_upload_o {
  15107. width: 100%;
  15108. height: 100%;
  15109. position: relative;
  15110. z-index: 1;
  15111. }
  15112. .chapter_upload_ic {
  15113. margin: 0 15px 0px auto;
  15114. display: flex;
  15115. align-items: center;
  15116. }
  15117. .chapter_upload_ic_l {
  15118. width: 50px;
  15119. height: 50px;
  15120. float: left;
  15121. }
  15122. .chapter_upload_ic_l div {
  15123. width: 30px;
  15124. height: 35px;
  15125. background: url("../../assets/icon/icon.png");
  15126. }
  15127. .chapter_upload_ic_edit {
  15128. height: 100%;
  15129. display: flex;
  15130. align-items: center;
  15131. cursor: pointer;
  15132. margin: 0 10px 0 0;
  15133. }
  15134. .chapter_upload_ic_edit div {
  15135. width: 18px;
  15136. height: 18px;
  15137. background-image: url("../../assets/icon/new/edit_u.png");
  15138. background-size: 100% 100%;
  15139. }
  15140. .chapter_upload_ic_r {
  15141. height: 100%;
  15142. display: flex;
  15143. align-items: center;
  15144. cursor: pointer;
  15145. }
  15146. .chapter_upload_ic_r div {
  15147. width: 18px;
  15148. height: 18px;
  15149. background-image: url("../../assets/icon/new/delete_u.png");
  15150. background-size: 100% 100%;
  15151. }
  15152. .chapter_upload_n {
  15153. display: flex;
  15154. text-indent: 10px;
  15155. text-decoration: none;
  15156. text-overflow: ellipsis;
  15157. white-space: nowrap;
  15158. overflow: hidden;
  15159. width: 55%;
  15160. margin-left: 10px;
  15161. cursor: pointer;
  15162. margin-top: 2px;
  15163. align-items: center;
  15164. }
  15165. .chapter_upload_l_i2,
  15166. .chapter_upload_l_i3,
  15167. .chapter_upload_l_i8,
  15168. .chapter_upload_l_i6,
  15169. .chapter_upload_l_i12,
  15170. .chapter_upload_l_i14,
  15171. .chapter_upload_l_i13 {
  15172. width: 15px;
  15173. height: 15px;
  15174. background-size: 100% 100%;
  15175. }
  15176. .chapter_upload_l_i2 {
  15177. background-image: url("../../assets/icon/new/u_word.png");
  15178. }
  15179. .chapter_upload_l_i3 {
  15180. background-image: url("../../assets/icon/new/u_video.png");
  15181. }
  15182. .chapter_upload_l_i8 {
  15183. background-image: url("../../assets/icon/new/u_url.png");
  15184. }
  15185. .chapter_upload_l_i14 {
  15186. background-image: url("../../assets/icon/new/u_source.png");
  15187. }
  15188. .chapter_upload_l_i6 {
  15189. background-image: url("../../assets/icon/new/u_picture.png");
  15190. }
  15191. .chapter_upload_l_i12 {
  15192. background-image: url("../../assets/icon/new/u_word.png");
  15193. }
  15194. .chapter_upload_l_i13 {
  15195. background-image: url("../../assets/icon/new/u_img.png");
  15196. }
  15197. .chapter_upload_noSee {
  15198. background-image: url("../../assets/icon/new/u_noUpload.png");
  15199. width: 18px;
  15200. height: 18px;
  15201. background-size: 100% 100%;
  15202. display: block;
  15203. margin-right: 10px;
  15204. }
  15205. .chapter_upload_ud {
  15206. display: flex;
  15207. flex-direction: row;
  15208. justify-content: center;
  15209. margin: 0 10px 0 0;
  15210. }
  15211. .chapter_upload_ud > .chapter_upload_up {
  15212. margin-bottom: 0;
  15213. margin-right: 10px;
  15214. }
  15215. .chapter_upload_down,
  15216. .chapter_upload_up {
  15217. width: 20px;
  15218. height: 20px;
  15219. background: #e4eaf2;
  15220. cursor: pointer;
  15221. margin: 0 auto;
  15222. border-radius: 5px;
  15223. display: flex;
  15224. justify-content: center;
  15225. align-items: center;
  15226. }
  15227. .chapter_upload_up::after,
  15228. .chapter_upload_down::after {
  15229. content: "";
  15230. background-image: url("../../assets/icon/new/downBtn.png");
  15231. width: 13px;
  15232. height: 13px;
  15233. background-size: 100% 100%;
  15234. display: block;
  15235. }
  15236. .chapter_upload_up::after {
  15237. background-image: url("../../assets/icon/new/upBtn.png") !important;
  15238. }
  15239. .chapter_upload_up {
  15240. margin-bottom: 5px;
  15241. }
  15242. .chapter_upload_ud2 {
  15243. display: flex;
  15244. flex-direction: row;
  15245. justify-content: center;
  15246. margin: 0 10px 0 0;
  15247. }
  15248. .chapter_upload_ud2 > .chapter_upload_up2 {
  15249. margin-bottom: 0;
  15250. margin-right: 10px;
  15251. }
  15252. .chapter_upload_down2,
  15253. .chapter_upload_up2 {
  15254. cursor: pointer;
  15255. margin: 0 auto;
  15256. border-radius: 5px;
  15257. display: flex;
  15258. justify-content: center;
  15259. align-items: center;
  15260. color: #717c8d;
  15261. font-size: 14px;
  15262. }
  15263. .chapter_upload_up2 {
  15264. margin-right: 10px;
  15265. }
  15266. .chapter_upload_up2::before,
  15267. .chapter_upload_down2::before {
  15268. content: "";
  15269. background-image: url("../../assets/icon/new/c_down.png");
  15270. width: 14px;
  15271. height: 14px;
  15272. background-size: 100% 100%;
  15273. display: block;
  15274. margin-right: 5px;
  15275. }
  15276. .chapter_upload_up2::before {
  15277. background-image: url("../../assets/icon/new/c_up.png") !important;
  15278. }
  15279. .addWordStyle {
  15280. display: flex;
  15281. flex-direction: row;
  15282. justify-content: flex-start;
  15283. overflow-x: auto;
  15284. white-space: nowrap;
  15285. flex-wrap: wrap;
  15286. }
  15287. /* table 样式 */
  15288. .cont >>> table {
  15289. border-top: 1px solid #ccc;
  15290. border-left: 1px solid #ccc;
  15291. }
  15292. .cont >>> table td,
  15293. .cont >>> table th {
  15294. border-bottom: 1px solid #ccc;
  15295. border-right: 1px solid #ccc;
  15296. /* padding: 20px 5px; */
  15297. padding: 5px 10px;
  15298. max-width: 0px;
  15299. height: 30px;
  15300. vertical-align: baseline;
  15301. }
  15302. .cont >>> table th {
  15303. border-bottom: 2px solid #ccc;
  15304. text-align: center;
  15305. }
  15306. /* blockquote 样式 */
  15307. .cont >>> blockquote {
  15308. display: block;
  15309. border-left: 8px solid #d0e5f2;
  15310. padding: 5px 10px;
  15311. margin: 10px 0;
  15312. line-height: 1.4;
  15313. font-size: 100%;
  15314. background-color: #f1f1f1;
  15315. }
  15316. /* code 样式 */
  15317. .cont >>> code {
  15318. display: inline-block;
  15319. /* *display: inline; */
  15320. zoom: 1;
  15321. background-color: #f1f1f1;
  15322. border-radius: 3px;
  15323. padding: 3px 5px;
  15324. margin: 0 3px;
  15325. }
  15326. .cont >>> pre code {
  15327. display: block;
  15328. }
  15329. /* ul ol 样式 */
  15330. .cont >>> ul,
  15331. ol {
  15332. margin: 10px 0 10px 20px;
  15333. }
  15334. .wordbox {
  15335. display: flex;
  15336. flex-wrap: wrap;
  15337. cursor: pointer;
  15338. width: 100%;
  15339. }
  15340. .checkword {
  15341. width: 22px;
  15342. height: 22px;
  15343. margin: 10px auto 0;
  15344. cursor: pointer;
  15345. }
  15346. .checkword img {
  15347. width: 100%;
  15348. }
  15349. .stepBg {
  15350. display: flex;
  15351. justify-content: space-between;
  15352. align-items: center;
  15353. background: #fff;
  15354. width: calc(100%);
  15355. margin: 0 auto;
  15356. }
  15357. .stepBorder {
  15358. height: 3px !important;
  15359. background: #cad1dc;
  15360. width: 100px !important;
  15361. margin: 0 15px !important;
  15362. position: relative;
  15363. }
  15364. .border-active {
  15365. background: #3681fc !important;
  15366. }
  15367. .border-active::before,
  15368. .border-active::after {
  15369. border-color: #3681fc !important;
  15370. }
  15371. .stepBorder::before,
  15372. .stepBorder::after {
  15373. content: "";
  15374. width: 9px;
  15375. height: 9px;
  15376. background: #ffffff;
  15377. opacity: 1;
  15378. border: 2px solid #acb4bf;
  15379. display: block;
  15380. box-sizing: border-box;
  15381. border-radius: 50%;
  15382. position: absolute;
  15383. top: 50%;
  15384. transform: translateY(-50%);
  15385. }
  15386. .stepBorder::after {
  15387. right: -9px;
  15388. }
  15389. .stepTop {
  15390. width: 100%;
  15391. /* border-radius: 10px; */
  15392. display: flex;
  15393. justify-content: center;
  15394. align-items: center;
  15395. flex-wrap: nowrap;
  15396. background: #fff;
  15397. /* top: 18%; */
  15398. height: 80px;
  15399. border-bottom: 2px solid rgb(228, 232, 237);
  15400. box-sizing: border-box;
  15401. }
  15402. .stepTop2 {
  15403. width: 100%;
  15404. /* border-radius: 10px; */
  15405. display: flex;
  15406. justify-content: center;
  15407. align-items: center;
  15408. flex-wrap: nowrap;
  15409. background: #fff;
  15410. /* top: 18%; */
  15411. height: 20px;
  15412. border-bottom: 2px solid rgb(228, 232, 237);
  15413. box-sizing: border-box;
  15414. overflow: hidden;
  15415. cursor: pointer;
  15416. }
  15417. .stepTop > div img {
  15418. width: 100%;
  15419. }
  15420. .stepTop > div {
  15421. height: 50px;
  15422. width: 180px;
  15423. cursor: pointer;
  15424. margin: 10px 0;
  15425. border-radius: 10px;
  15426. }
  15427. .first,
  15428. .second,
  15429. .third,
  15430. .four {
  15431. background: #3681fc;
  15432. height: 90px;
  15433. color: #fff;
  15434. display: flex;
  15435. flex-direction: row;
  15436. align-items: center;
  15437. justify-content: center;
  15438. }
  15439. .first > div:nth-child(1),
  15440. .second > div:nth-child(1),
  15441. .third > div:nth-child(1),
  15442. .four > div:nth-child(1) {
  15443. margin: 5px 10px 0 0;
  15444. width: 2rem;
  15445. }
  15446. .firstNo,
  15447. .secondNo,
  15448. .thirdNo,
  15449. .fourNo {
  15450. background: #e7e7e7;
  15451. color: #adadad;
  15452. display: flex;
  15453. flex-direction: row;
  15454. align-items: center;
  15455. justify-content: center;
  15456. }
  15457. .firstNo > div:nth-child(1),
  15458. .secondNo > div:nth-child(1),
  15459. .thirdNo > div:nth-child(1),
  15460. .fourNo > div:nth-child(1) {
  15461. margin: 5px 10px 0 0;
  15462. width: 2rem;
  15463. }
  15464. .uploadWidth >>> .el-upload {
  15465. width: 60px;
  15466. height: 60px;
  15467. position: relative;
  15468. }
  15469. .addPeople {
  15470. background: #fa6060;
  15471. width: 150px;
  15472. height: 40px;
  15473. color: #fff;
  15474. border-radius: 5px;
  15475. text-align: center;
  15476. line-height: 40px;
  15477. font-size: 14px;
  15478. cursor: pointer;
  15479. }
  15480. .kcImg {
  15481. width: 60px;
  15482. margin-left: 10px;
  15483. }
  15484. .zyImg {
  15485. width: 55px;
  15486. margin: 0 10px;
  15487. }
  15488. .deleteZy {
  15489. width: 20px;
  15490. position: absolute;
  15491. top: 5px;
  15492. right: 5px;
  15493. cursor: pointer;
  15494. }
  15495. .kcImg > img,
  15496. .zyImg > img,
  15497. .deleteZy > img {
  15498. width: 100%;
  15499. height: 100%;
  15500. }
  15501. .zyBox {
  15502. display: flex;
  15503. flex-direction: row;
  15504. align-items: center;
  15505. background: #67d37d;
  15506. color: #fff;
  15507. width: 210px;
  15508. margin: 20px 20px 0 0;
  15509. border-radius: 10px;
  15510. height: 70px;
  15511. position: relative;
  15512. }
  15513. .upCss {
  15514. display: flex;
  15515. flex-direction: row;
  15516. justify-content: flex-start;
  15517. }
  15518. .upCss >>> .el-icon-plus {
  15519. position: none !important;
  15520. width: 200px;
  15521. height: 100px;
  15522. display: flex;
  15523. flex-wrap: nowrap;
  15524. flex-direction: column;
  15525. align-items: center;
  15526. justify-content: center;
  15527. border: 1px dashed #ccc;
  15528. min-width: 78px;
  15529. min-height: 100px;
  15530. z-index: 999;
  15531. }
  15532. .upCss >>> .el-upload-list__item-name {
  15533. width: 100px;
  15534. white-space: nowrap;
  15535. overflow: hidden;
  15536. text-overflow: ellipsis;
  15537. }
  15538. .upCss >>> .el-upload-list__item .el-icon-close {
  15539. font-size: 20px;
  15540. z-index: 9999;
  15541. }
  15542. .addStageImg {
  15543. min-width: 20px;
  15544. min-height: 20px;
  15545. width: 20px;
  15546. height: 20px;
  15547. cursor: pointer;
  15548. }
  15549. .addHW {
  15550. width: 28px;
  15551. height: 28px;
  15552. cursor: pointer;
  15553. }
  15554. .addStageImg > img,
  15555. .addHW > img {
  15556. width: 100%;
  15557. height: 100%;
  15558. }
  15559. .addNewPP >>> .el-dialog__body {
  15560. padding: 5px 20px;
  15561. }
  15562. .addNewPP >>> .el-dialog {
  15563. margin-top: 5vh !important;
  15564. }
  15565. .addNewPP2 >>> .el-dialog__body {
  15566. padding: 5px 0;
  15567. }
  15568. .addNewPP2 >>> .el-dialog {
  15569. margin-top: 5vh !important;
  15570. }
  15571. .isHeight {
  15572. height: 680px;
  15573. }
  15574. .toolChoose {
  15575. display: flex;
  15576. /* width: 100%; */
  15577. flex-direction: row;
  15578. flex-wrap: wrap;
  15579. }
  15580. .tool,
  15581. .isToolChoose {
  15582. display: flex;
  15583. flex-direction: column;
  15584. flex-wrap: nowrap;
  15585. width: fit-content;
  15586. margin: 10px 0 10px 0;
  15587. align-items: center;
  15588. border: 2px solid #dbdbdb00;
  15589. padding: 10px 20px;
  15590. border-radius: 5px;
  15591. cursor: pointer;
  15592. /* box-shadow: 0 0 2px 0px #dedede; */
  15593. position: relative;
  15594. box-sizing: border-box;
  15595. }
  15596. .tool:hover {
  15597. border: 2px solid #a5c7ff;
  15598. }
  15599. .tool:hover > .noCTool {
  15600. display: block;
  15601. opacity: 0.5;
  15602. }
  15603. .isToolChoose {
  15604. border: 2px solid #438aff !important;
  15605. box-shadow: 0 0 2px 0px #438aff;
  15606. opacity: 1 !important;
  15607. }
  15608. .isCTool,
  15609. .noCTool {
  15610. width: 30px;
  15611. height: 30px;
  15612. position: absolute;
  15613. top: -4px;
  15614. right: -4px;
  15615. }
  15616. .noCTool {
  15617. display: none;
  15618. }
  15619. .isCTool > img,
  15620. .noCTool > img {
  15621. width: 100%;
  15622. height: 100%;
  15623. }
  15624. .tool + .tool {
  15625. margin-right: 10px;
  15626. }
  15627. .whiteBIcon {
  15628. width: 80px;
  15629. cursor: pointer;
  15630. display: flex;
  15631. flex-direction: column;
  15632. flex-wrap: nowrap;
  15633. align-items: center;
  15634. font-size: 14px;
  15635. }
  15636. .whiteBIcon > img,
  15637. .toolIcon > img,
  15638. .arrow > img {
  15639. width: 100%;
  15640. height: 100%;
  15641. }
  15642. .check img {
  15643. width: 20px;
  15644. height: 20px;
  15645. }
  15646. .whiteBIcon > img {
  15647. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15648. border-radius: 15px;
  15649. }
  15650. .whiteBIcon > div:nth-child(2) {
  15651. height: 20px;
  15652. line-height: 20px;
  15653. }
  15654. .check {
  15655. /* width: 20px;
  15656. height: 20px; */
  15657. cursor: pointer;
  15658. margin: 10px 0 0;
  15659. }
  15660. .checkDiv {
  15661. display: flex;
  15662. align-items: center;
  15663. }
  15664. .checkDiv span {
  15665. margin-left: 5px;
  15666. color: #858585;
  15667. }
  15668. .customWidth >>> .el-dialog {
  15669. min-width: 500px !important;
  15670. }
  15671. .a_addBox {
  15672. margin: 10px 0;
  15673. background: #fff;
  15674. padding: 15px;
  15675. /* max-height: 600px; */
  15676. overflow: auto;
  15677. }
  15678. .a_add_box {
  15679. border-bottom: 2px solid #eee;
  15680. padding-bottom: 25px;
  15681. }
  15682. .a_add_head {
  15683. display: flex;
  15684. align-items: center;
  15685. justify-content: space-between;
  15686. margin: 10px 0 0 0;
  15687. font-size: 18px;
  15688. }
  15689. .a_add_checkType {
  15690. margin-top: 10px;
  15691. display: flex;
  15692. font-size: 14px;
  15693. align-items: center;
  15694. }
  15695. .a_add_checkType span {
  15696. box-sizing: border-box;
  15697. padding: 0 0 5px 0;
  15698. cursor: pointer;
  15699. }
  15700. .a_add_checkType span + span {
  15701. margin-left: 10px;
  15702. }
  15703. .a_add_checkType .active {
  15704. border-bottom: 2px solid #409eff;
  15705. color: #409eff;
  15706. }
  15707. .a_add_head .a_add_head_input {
  15708. /* width: 540px; */
  15709. width: 100%;
  15710. }
  15711. .a_add_head .a_add_head_div {
  15712. display: flex;
  15713. align-items: center;
  15714. justify-content: space-between;
  15715. }
  15716. .a_add_body {
  15717. display: flex;
  15718. /* align-items: center; */
  15719. align-items: flex-end;
  15720. }
  15721. .a_add_input {
  15722. display: flex;
  15723. align-items: center;
  15724. flex-wrap: wrap;
  15725. }
  15726. .a_add_input_choice {
  15727. flex-direction: column;
  15728. margin-right: 10px;
  15729. }
  15730. .a_add_input_choice >>> .el-radio {
  15731. display: flex;
  15732. align-items: center;
  15733. flex-direction: row-reverse;
  15734. margin: 30px 0 0 0;
  15735. position: relative;
  15736. }
  15737. .a_add_input_choice >>> .el-checkbox {
  15738. display: flex;
  15739. align-items: center;
  15740. flex-direction: row-reverse;
  15741. margin: 30px 0 0 0;
  15742. position: relative;
  15743. }
  15744. .width100 {
  15745. width: 100%;
  15746. }
  15747. .a_add_input .a_add_persent {
  15748. width: 100%;
  15749. }
  15750. .a_add_persent_div {
  15751. width: 100%;
  15752. display: flex;
  15753. align-items: center;
  15754. }
  15755. .a_add_persent_div span {
  15756. margin: 5px 0;
  15757. }
  15758. .a_add_persent_div span:nth-child(1) {
  15759. width: 30%;
  15760. }
  15761. .a_add_persent_div span:nth-child(2) {
  15762. width: 7%;
  15763. }
  15764. .a_add_persent_div span:nth-child(3) {
  15765. width: 40%;
  15766. }
  15767. .a_add_body_div {
  15768. display: flex;
  15769. align-items: center;
  15770. justify-content: center;
  15771. /* flex-direction: column; */
  15772. position: absolute;
  15773. right: -20px;
  15774. transform: translateX(100%);
  15775. }
  15776. .a_add_body_div >>> .el-button--primary {
  15777. background: #466b99;
  15778. border: none;
  15779. }
  15780. .all_choose {
  15781. display: flex;
  15782. flex-direction: row;
  15783. align-items: flex-start;
  15784. width: 100%;
  15785. }
  15786. .all_choose + .all_choose {
  15787. /* margin-top: 10px */
  15788. }
  15789. .all_choose > span {
  15790. min-width: fit-content;
  15791. display: block;
  15792. white-space: nowrap;
  15793. overflow: hidden;
  15794. text-overflow: ellipsis;
  15795. margin-right: 20px;
  15796. font-weight: bold;
  15797. font-size: 14px;
  15798. }
  15799. .all_choose >>> .el-checkbox-group {
  15800. display: flex;
  15801. flex-direction: row;
  15802. width: 100%;
  15803. flex-wrap: wrap;
  15804. align-content: center;
  15805. justify-content: flex-start;
  15806. align-items: center;
  15807. margin-top: 3px;
  15808. }
  15809. .all_choose > .el-checkbox-group >>> .el-checkbox {
  15810. margin-bottom: 10px;
  15811. display: flex;
  15812. flex-direction: row;
  15813. align-items: center;
  15814. margin-right: 10px;
  15815. }
  15816. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  15817. min-width: 80px;
  15818. overflow: hidden;
  15819. width: 80px;
  15820. text-overflow: ellipsis;
  15821. white-space: nowrap;
  15822. }
  15823. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  15824. width: auto;
  15825. }
  15826. .choose > div:nth-child(3) > span {
  15827. /* letter-spacing: 0 !important; */
  15828. }
  15829. .choose {
  15830. display: flex;
  15831. flex-direction: column;
  15832. flex-wrap: nowrap;
  15833. height: 100%;
  15834. justify-content: space-evenly;
  15835. align-items: flex-start;
  15836. }
  15837. .both {
  15838. display: flex;
  15839. flex-direction: row;
  15840. flex-wrap: wrap;
  15841. width: 100%;
  15842. align-items: center;
  15843. justify-content: flex-start;
  15844. margin: 15px 0;
  15845. }
  15846. .notice >>> .el-dialog {
  15847. width: 500px !important;
  15848. text-align: center;
  15849. }
  15850. .notice >>> .el-button {
  15851. margin-top: 20px;
  15852. }
  15853. .whiteBg {
  15854. /* background: #fff; */
  15855. border-radius: 10px;
  15856. }
  15857. .wb_j_box {
  15858. display: flex;
  15859. width: 100%;
  15860. padding: 0 20px 0;
  15861. box-sizing: border-box;
  15862. }
  15863. .wb_j_box_content {
  15864. width: calc(100% - 55% - 100px);
  15865. display: flex;
  15866. align-items: center;
  15867. }
  15868. .wb_j_box_p_box {
  15869. max-width: calc(100% - 200px);
  15870. word-break: break-all;
  15871. overflow: hidden;
  15872. margin: 0 0 0 10px;
  15873. font-size: 14px;
  15874. color: #6e6e6e;
  15875. z-index: 999;
  15876. }
  15877. .chooseWho {
  15878. display: flex;
  15879. width: 410px;
  15880. flex-direction: row;
  15881. flex-wrap: nowrap;
  15882. justify-content: space-between;
  15883. padding-bottom: 10px;
  15884. }
  15885. .chooseWho > div {
  15886. cursor: pointer;
  15887. padding-bottom: 10px;
  15888. font-weight: bold;
  15889. }
  15890. .isChooseActive {
  15891. color: #3e88f4;
  15892. border-bottom: 2px solid #2f80f3;
  15893. }
  15894. .toolSort {
  15895. display: flex;
  15896. flex-direction: row;
  15897. flex-wrap: wrap;
  15898. justify-content: flex-start;
  15899. align-items: flex-start;
  15900. }
  15901. .toolSort > div {
  15902. margin-right: 10px;
  15903. }
  15904. .tools {
  15905. width: 100%;
  15906. display: flex;
  15907. flex-direction: column;
  15908. flex-wrap: nowrap;
  15909. align-items: flex-start;
  15910. }
  15911. .leftTools,
  15912. .rightTools {
  15913. width: 50%;
  15914. }
  15915. .leftTools + .leftTools {
  15916. border-top: 1px solid #dbdbdb;
  15917. padding-top: 30px;
  15918. }
  15919. .rightTools {
  15920. display: flex;
  15921. flex-direction: row;
  15922. flex-wrap: nowrap;
  15923. justify-content: space-around;
  15924. }
  15925. .firstToolList {
  15926. display: flex;
  15927. flex-direction: column;
  15928. flex-wrap: nowrap;
  15929. align-items: center;
  15930. }
  15931. .iconList {
  15932. display: flex;
  15933. flex-direction: row;
  15934. flex-wrap: wrap;
  15935. justify-content: flex-start;
  15936. align-items: center;
  15937. margin: 20px 0 5px 0;
  15938. width: 240px;
  15939. min-width: 240px;
  15940. }
  15941. .iconTool {
  15942. display: flex;
  15943. flex-direction: column;
  15944. flex-wrap: nowrap;
  15945. align-items: center;
  15946. justify-content: flex-start;
  15947. margin: 15px 10px;
  15948. }
  15949. .toolIcon {
  15950. width: 50px;
  15951. }
  15952. .taskBorder {
  15953. /* border: 1px solid #CAD1DC; */
  15954. border-radius: 10px;
  15955. margin-top: 10px;
  15956. min-height: 670px;
  15957. position: relative;
  15958. background: #fff;
  15959. padding: 20px;
  15960. overflow: hidden;
  15961. box-sizing: border-box;
  15962. }
  15963. .smallTaskBorder {
  15964. height: 405px;
  15965. min-height: 405px !important;
  15966. overflow: hidden;
  15967. }
  15968. /* .taskBorder>div {
  15969. padding: 30px 30px 10px;
  15970. } */
  15971. .addTaskBorder {
  15972. /* border: 2px solid #5E9AFC; */
  15973. border-radius: 8px;
  15974. margin-top: 10px;
  15975. cursor: pointer;
  15976. /* height: 50px;
  15977. line-height: 50px; */
  15978. background: #fff;
  15979. padding: 15px 0;
  15980. display: flex;
  15981. align-items: center;
  15982. justify-content: center;
  15983. }
  15984. /* .addTaskBorder>div {
  15985. margin: 0 auto;
  15986. display: flex;
  15987. align-items: center;
  15988. justify-content: center;
  15989. }
  15990. .addTaskBorder>div>img {
  15991. width: 20px;
  15992. }
  15993. .addTaskBorder>div>span {
  15994. font-size: 16px;
  15995. margin-left: 10px;
  15996. color: #5E9AFC;
  15997. } */
  15998. .funBlock {
  15999. display: flex;
  16000. padding: 15px 0;
  16001. flex-direction: row;
  16002. justify-content: center;
  16003. align-items: center;
  16004. position: absolute;
  16005. right: 0;
  16006. bottom: 0;
  16007. background: #fff;
  16008. width: 100%;
  16009. height: 60px;
  16010. z-index: 9;
  16011. }
  16012. .fold {
  16013. display: flex;
  16014. margin: 0 20px;
  16015. flex-direction: row;
  16016. align-items: center;
  16017. cursor: pointer;
  16018. color: #2b7bff;
  16019. }
  16020. .arrow {
  16021. margin-right: 8px;
  16022. width: 16px;
  16023. height: 16px;
  16024. min-width: 16px;
  16025. min-height: 16px;
  16026. background-size: 100% 100%;
  16027. display: block;
  16028. background-image: url(../../assets/icon/new/u_up.png);
  16029. /* border-left: 7px solid transparent;
  16030. border-bottom: 7px solid #717C8D;
  16031. border-top: 0px solid transparent;
  16032. border-right: 7px solid transparent; */
  16033. /* box-sizing: border-box; */
  16034. transition: all 0.3s;
  16035. }
  16036. .arrowZ {
  16037. transform: rotate(180deg);
  16038. }
  16039. .addToolFun {
  16040. display: flex;
  16041. width: 150px;
  16042. flex-direction: row;
  16043. align-items: center;
  16044. justify-content: center;
  16045. border: 2px dashed #cad1dc;
  16046. border-radius: 5px;
  16047. height: 50px;
  16048. margin: 35px auto 0;
  16049. cursor: pointer;
  16050. }
  16051. .addToolFun2 {
  16052. display: flex;
  16053. width: 150px;
  16054. border: 2px dashed #cad1dc;
  16055. flex-direction: row;
  16056. align-items: center;
  16057. justify-content: center;
  16058. border-radius: 5px;
  16059. height: 50px;
  16060. margin: 0 auto 0;
  16061. cursor: pointer;
  16062. }
  16063. .addToolFun2 > div,
  16064. .addToolFun > div {
  16065. display: flex;
  16066. line-height: 50px;
  16067. }
  16068. .addToolImg {
  16069. width: 20px;
  16070. height: 20px;
  16071. margin-right: 10px;
  16072. }
  16073. .addToolsDia >>> .el-dialog__body {
  16074. padding: 20px;
  16075. }
  16076. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16077. padding: 0;
  16078. }
  16079. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16080. padding: 0;
  16081. border-bottom: none;
  16082. margin-bottom: 0;
  16083. }
  16084. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16085. width: 100%;
  16086. }
  16087. .lineCss >>> .el-form-item__label {
  16088. width: auto !important;
  16089. }
  16090. .lineCss >>> .el-form-item__content {
  16091. margin-left: 50px !important;
  16092. }
  16093. .newSteps {
  16094. display: flex;
  16095. width: 100% !important;
  16096. /* height: 80px; */
  16097. cursor: pointer;
  16098. margin: 10px 0;
  16099. border-radius: 10px;
  16100. flex-direction: row;
  16101. align-content: center;
  16102. justify-content: center;
  16103. align-items: center;
  16104. margin: 0 !important;
  16105. }
  16106. /* 评价样式 */
  16107. .elist_css {
  16108. padding-bottom: 75px !important;
  16109. }
  16110. .elist_title {
  16111. margin-bottom: 10px;
  16112. }
  16113. .elist_input {
  16114. width: 100%;
  16115. }
  16116. .elist_input_box {
  16117. display: flex;
  16118. align-items: center;
  16119. flex-wrap: wrap;
  16120. }
  16121. .elist_input_box + .elist_input_box {
  16122. margin-top: 30px;
  16123. }
  16124. .elist_input .elist_input_box input {
  16125. font: inherit;
  16126. color: currentColor;
  16127. width: 100%;
  16128. /* max-width: calc(100% - 385px); */
  16129. max-width: calc(100% - 150px);
  16130. padding: 8px 14px;
  16131. display: block;
  16132. min-width: 0;
  16133. outline: none;
  16134. border: 1px solid rgba(0, 0, 0, 0.23);
  16135. border-radius: 4px;
  16136. box-sizing: border-box;
  16137. background: #fff;
  16138. margin: 0 20px 0 0;
  16139. }
  16140. .elist_input .elist_input_box span {
  16141. height: 36px;
  16142. line-height: 36px;
  16143. color: rgb(82, 82, 82);
  16144. min-width: 80px;
  16145. }
  16146. .elist_input .elist_input_box .remove {
  16147. height: 20px;
  16148. width: 20px;
  16149. min-height: 20px;
  16150. min-width: 20px;
  16151. background-size: 100% 100%;
  16152. background-position: unset;
  16153. margin-left: 5px;
  16154. }
  16155. .elist_input_box >>> .el-rate {
  16156. display: flex;
  16157. height: 36px;
  16158. align-items: center;
  16159. }
  16160. .elist_input_box .elist_inptu_text {
  16161. width: 100%;
  16162. display: flex;
  16163. align-items: center;
  16164. margin-top: 10px;
  16165. }
  16166. .elist_input_box .elist_inptu_text input {
  16167. /* width: 500px; */
  16168. width: 100%;
  16169. max-width: unset;
  16170. }
  16171. .elist_input_box >>> .el-rate__icon {
  16172. font-size: 24px;
  16173. }
  16174. .elist_btn {
  16175. margin-top: 10px;
  16176. }
  16177. .lineTitle {
  16178. /* margin-top: 15px; */
  16179. width: 110px;
  16180. font-size: 16px;
  16181. display: flex;
  16182. align-items: center;
  16183. line-height: 20px;
  16184. }
  16185. .lineTitle::before {
  16186. content: "";
  16187. display: block;
  16188. width: 3px;
  16189. height: 20px;
  16190. background: #0061ff;
  16191. border-radius: 3px;
  16192. margin: 0 5px 0 0;
  16193. }
  16194. .clineTitle::before {
  16195. content: "";
  16196. display: block;
  16197. min-width: 10px;
  16198. width: 10px;
  16199. height: 10px;
  16200. background: #0061ff;
  16201. border-radius: 50%;
  16202. margin: 0 5px 0 0;
  16203. }
  16204. .courseTop {
  16205. display: flex;
  16206. flex-direction: row;
  16207. justify-content: space-between;
  16208. align-items: center;
  16209. width: calc(100% - 40px);
  16210. margin: 0 auto;
  16211. padding: 10px 0;
  16212. }
  16213. .stepsNav {
  16214. display: flex;
  16215. flex-direction: row;
  16216. justify-content: flex-start;
  16217. align-items: center;
  16218. }
  16219. .stepsWord {
  16220. font-size: 18px;
  16221. color: #fff;
  16222. font-weight: bold;
  16223. margin-left: auto;
  16224. background: rgb(15, 126, 255);
  16225. border-radius: 5px;
  16226. padding: 3px 25px;
  16227. box-sizing: border-box;
  16228. }
  16229. .stepBox {
  16230. width: calc(100% - 40px);
  16231. height: calc(100% - 50px);
  16232. overflow: hidden;
  16233. border-radius: 5px;
  16234. margin: 0 auto;
  16235. }
  16236. .rightBox {
  16237. width: calc(100%);
  16238. background: #f0f2f5;
  16239. /* border-radius: 10px; */
  16240. overflow: auto;
  16241. height: calc(100% - 150px);
  16242. margin: 0 auto;
  16243. position: relative;
  16244. box-sizing: border-box;
  16245. }
  16246. .e_add_top {
  16247. display: flex;
  16248. justify-content: space-between;
  16249. background: #fff;
  16250. position: absolute;
  16251. right: 20px;
  16252. height: 50px;
  16253. align-items: center;
  16254. }
  16255. .e_add_title2 {
  16256. display: flex;
  16257. align-items: center;
  16258. }
  16259. .e_add_title2 span {
  16260. width: 40px;
  16261. }
  16262. .e_add_title {
  16263. display: flex;
  16264. align-items: center;
  16265. color: #b8b8b8;
  16266. font-size: 18px;
  16267. position: relative;
  16268. height: 40px;
  16269. }
  16270. .e_add_title span {
  16271. margin-right: 10px;
  16272. }
  16273. .e_add_title .el_input {
  16274. width: 300px;
  16275. }
  16276. .e_add_title >>> .el-input__inner {
  16277. width: 400px;
  16278. }
  16279. .e_add_btn {
  16280. }
  16281. .e_add_content {
  16282. display: flex;
  16283. width: 100%;
  16284. }
  16285. .e_add_list {
  16286. background: #fff;
  16287. height: 500px;
  16288. width: 210px;
  16289. position: relative;
  16290. margin: 15px 5px 0 0;
  16291. flex-shrink: 0;
  16292. display: flex;
  16293. flex-direction: column;
  16294. }
  16295. .e_add_list_title {
  16296. font-size: 20px;
  16297. width: 100%;
  16298. box-sizing: border-box;
  16299. padding: 15px 40px;
  16300. text-align: center;
  16301. border-bottom: 1px solid #eaeaea;
  16302. position: relative;
  16303. display: flex;
  16304. align-items: center;
  16305. justify-content: center;
  16306. height: 57px;
  16307. background: #f6f6f6;
  16308. }
  16309. .e_add_list_title span {
  16310. overflow: hidden;
  16311. white-space: nowrap;
  16312. text-overflow: ellipsis;
  16313. }
  16314. .e_add_list_title img {
  16315. position: absolute;
  16316. right: 15px;
  16317. width: 25px;
  16318. cursor: pointer;
  16319. top: 50%;
  16320. transform: translateY(-50%);
  16321. }
  16322. .e_add_list_body {
  16323. height: calc(100% - 187px);
  16324. overflow: auto;
  16325. }
  16326. .e_add_list_child {
  16327. width: 100%;
  16328. display: flex;
  16329. align-items: center;
  16330. justify-content: center;
  16331. position: relative;
  16332. box-sizing: border-box;
  16333. padding: 15px 40px;
  16334. text-align: center;
  16335. }
  16336. .e_add_list_child span {
  16337. overflow: hidden;
  16338. white-space: nowrap;
  16339. text-overflow: ellipsis;
  16340. cursor: pointer;
  16341. }
  16342. .e_add_list_child img {
  16343. position: absolute;
  16344. right: 10px;
  16345. width: 21px;
  16346. cursor: pointer;
  16347. top: 50%;
  16348. transform: translateY(-50%);
  16349. }
  16350. .e_add_list_child + .e_add_list_child {
  16351. border-top: 1px solid #eaeaea;
  16352. }
  16353. .e_add_list_child .active {
  16354. color: #409eff;
  16355. }
  16356. .e_add_list_btn {
  16357. position: absolute;
  16358. bottom: 0;
  16359. height: 50px;
  16360. background: rgb(120, 120, 254);
  16361. width: 100%;
  16362. color: #fff;
  16363. font-size: 16px;
  16364. text-align: center;
  16365. line-height: 50px;
  16366. cursor: pointer;
  16367. }
  16368. .e_add_list_detail {
  16369. position: absolute;
  16370. bottom: 0;
  16371. height: 130px;
  16372. background: rgb(120, 120, 254);
  16373. width: 100%;
  16374. color: #fff;
  16375. font-size: 16px;
  16376. display: flex;
  16377. align-items: center;
  16378. justify-content: center;
  16379. }
  16380. .e_add_list_detail textarea {
  16381. height: 90%;
  16382. width: 95%;
  16383. border: none;
  16384. resize: none;
  16385. outline: none;
  16386. padding: 5px;
  16387. box-sizing: border-box;
  16388. }
  16389. .e_add_list_pbox {
  16390. width: 100%;
  16391. }
  16392. .e_add_list_pbox_title {
  16393. height: 50px;
  16394. background: #fff;
  16395. display: flex;
  16396. align-items: center;
  16397. width: 100%;
  16398. box-sizing: border-box;
  16399. padding: 0 20px;
  16400. flex-direction: row;
  16401. flex-wrap: wrap;
  16402. }
  16403. .type_title {
  16404. font-size: 18px;
  16405. font-weight: 700;
  16406. }
  16407. .type_content {
  16408. font-size: 16px;
  16409. margin-left: 30px;
  16410. }
  16411. .type_content span + span {
  16412. margin-left: 20px;
  16413. }
  16414. .type_content span {
  16415. cursor: pointer;
  16416. padding-bottom: 5px;
  16417. box-sizing: border-box;
  16418. }
  16419. .type_content .active {
  16420. color: #409eff;
  16421. border-bottom: 2px solid #409eff;
  16422. }
  16423. .e_add_list_pbox_content {
  16424. height: calc(100% - 50px);
  16425. display: flex;
  16426. align-items: center;
  16427. width: 100%;
  16428. background: #fff;
  16429. }
  16430. .mbCss {
  16431. width: 100%;
  16432. display: flex;
  16433. flex-direction: row;
  16434. flex-wrap: nowrap;
  16435. align-content: center;
  16436. align-items: flex-start;
  16437. justify-content: flex-start;
  16438. }
  16439. .pjCss {
  16440. /* width: 42%; */
  16441. width: calc(100% - 55%);
  16442. display: flex;
  16443. flex-direction: column;
  16444. flex-wrap: nowrap;
  16445. align-items: flex-start;
  16446. }
  16447. .e_box {
  16448. /* display: flex; */
  16449. flex-wrap: wrap;
  16450. max-height: 500px;
  16451. align-items: flex-start;
  16452. overflow: auto;
  16453. width: 100%;
  16454. }
  16455. .e_card {
  16456. border: 1px solid #ccc;
  16457. background: #fff;
  16458. margin-right: 20px;
  16459. width: 270px;
  16460. display: flex;
  16461. flex-direction: column;
  16462. align-items: center;
  16463. border-radius: 5px;
  16464. margin-top: 10px;
  16465. text-align: center;
  16466. }
  16467. .e_card_picture {
  16468. margin: 10px 0;
  16469. }
  16470. .e_card_picture > img {
  16471. width: 50px;
  16472. }
  16473. .e_card_name {
  16474. width: 100%;
  16475. padding: 0 10px;
  16476. box-sizing: border-box;
  16477. margin-bottom: 10px;
  16478. overflow: hidden;
  16479. text-overflow: ellipsis;
  16480. white-space: nowrap;
  16481. }
  16482. .e_card_time {
  16483. width: 100%;
  16484. padding: 0 10px;
  16485. box-sizing: border-box;
  16486. font-size: 15px;
  16487. color: #c3c3c3;
  16488. margin-bottom: 10px;
  16489. }
  16490. .e_card_btn {
  16491. height: 40px;
  16492. display: flex;
  16493. align-items: center;
  16494. width: 100%;
  16495. background: rgb(244, 244, 244);
  16496. }
  16497. .e_card_btn:hover {
  16498. background: rgb(221 221 221);
  16499. }
  16500. .e_card_btn span {
  16501. flex: 1 1 auto;
  16502. text-align: center;
  16503. cursor: pointer;
  16504. }
  16505. .addEva {
  16506. border: 1px solid #ccc;
  16507. background: #fff;
  16508. margin-right: 20px;
  16509. width: 270px;
  16510. height: 149px;
  16511. display: flex;
  16512. flex-direction: column;
  16513. align-items: center;
  16514. border-radius: 5px;
  16515. margin-top: 10px;
  16516. text-align: center;
  16517. cursor: pointer;
  16518. justify-content: center;
  16519. }
  16520. .addEva > img {
  16521. width: 50px;
  16522. object-fit: cover;
  16523. }
  16524. .uploadFm {
  16525. border: 1px dashed #ccc;
  16526. width: 100%;
  16527. height: 140px;
  16528. position: relative;
  16529. cursor: pointer;
  16530. display: flex;
  16531. flex-direction: column;
  16532. justify-content: center;
  16533. align-items: center;
  16534. font-size: 14px;
  16535. color: #6e6e6e;
  16536. position: relative;
  16537. }
  16538. .cover_p {
  16539. width: 100% !important;
  16540. height: 100%;
  16541. object-fit: cover;
  16542. }
  16543. .uploadFm2:hover .cover_mask {
  16544. display: flex !important;
  16545. }
  16546. .cover_mask {
  16547. display: none;
  16548. width: 100%;
  16549. height: 100%;
  16550. position: absolute;
  16551. background: #00000054;
  16552. align-items: center;
  16553. justify-content: center;
  16554. flex-direction: column;
  16555. }
  16556. .cover_mask > img {
  16557. width: 30px;
  16558. }
  16559. .cover_mask > span {
  16560. color: #fff;
  16561. font-size: 12px;
  16562. }
  16563. .uploadFm > img {
  16564. width: 50px;
  16565. }
  16566. .fileCss {
  16567. width: 100%;
  16568. display: flex;
  16569. flex-direction: row;
  16570. flex-wrap: nowrap;
  16571. justify-content: space-around;
  16572. align-items: center;
  16573. padding-top: 15px;
  16574. }
  16575. .fileCss > div {
  16576. display: flex;
  16577. flex-direction: column;
  16578. align-items: center;
  16579. }
  16580. .fileCss .spanName {
  16581. margin-top: 10px;
  16582. }
  16583. .sysPicBox {
  16584. display: flex;
  16585. flex-direction: row;
  16586. flex-wrap: wrap;
  16587. align-content: flex-start;
  16588. height: 435px;
  16589. overflow: auto;
  16590. position: relative;
  16591. }
  16592. .picNone {
  16593. position: absolute;
  16594. left: 50%;
  16595. top: 45%;
  16596. transform: translate(-50%, -50%);
  16597. width: fit-content;
  16598. color: #9c9c9c;
  16599. }
  16600. .sysPic {
  16601. width: 200px;
  16602. height: 115px;
  16603. margin: 0 20px 20px 0;
  16604. cursor: pointer;
  16605. }
  16606. .sysPic > img,
  16607. .isSysPic > img,
  16608. .deletePic > img {
  16609. width: 100%;
  16610. height: 100%;
  16611. object-fit: cover;
  16612. }
  16613. .isSysPic {
  16614. width: 200px;
  16615. height: 115px;
  16616. position: relative;
  16617. }
  16618. .deletePic {
  16619. width: 20px;
  16620. height: 20px;
  16621. position: absolute;
  16622. top: 0;
  16623. right: 0;
  16624. cursor: pointer;
  16625. }
  16626. .select_box1 {
  16627. height: 100%;
  16628. }
  16629. .select_box1_img {
  16630. background: #fff;
  16631. border-radius: 5px;
  16632. padding: 15px;
  16633. box-sizing: border-box;
  16634. margin-bottom: 20px;
  16635. }
  16636. .select_box1_title {
  16637. padding: 0 0 15px 0;
  16638. border-bottom: 1px solid #eee;
  16639. margin-bottom: 15px;
  16640. }
  16641. .select_box1_title span:nth-child(1) {
  16642. font-size: 16px;
  16643. margin-right: 20px;
  16644. color: #000;
  16645. }
  16646. .select_box1_title span:nth-child(2) {
  16647. font-size: 14px;
  16648. color: rgb(112, 112, 112);
  16649. }
  16650. .select_box1_add_img {
  16651. }
  16652. .select_box1_select {
  16653. background: #fff;
  16654. border-radius: 5px;
  16655. padding: 15px;
  16656. box-sizing: border-box;
  16657. height: calc(100% - 200px);
  16658. overflow: auto;
  16659. }
  16660. .select_box2 {
  16661. height: 100%;
  16662. }
  16663. .select_box2_title {
  16664. background: #fff;
  16665. border-radius: 5px;
  16666. padding: 5px 10px;
  16667. box-sizing: border-box;
  16668. margin-bottom: 10px;
  16669. }
  16670. .select_box2_box {
  16671. display: flex;
  16672. height: calc(100% - 30px);
  16673. }
  16674. .select_box2_img {
  16675. width: calc(100% - 310px);
  16676. height: 100%;
  16677. overflow: auto;
  16678. background: #fff;
  16679. border-radius: 5px;
  16680. }
  16681. .select_box2_img img {
  16682. width: 100%;
  16683. }
  16684. .select_box2_answer {
  16685. background: #fff;
  16686. margin-left: 10px;
  16687. border-radius: 5px;
  16688. width: 300px;
  16689. overflow: auto;
  16690. height: 100%;
  16691. display: flex;
  16692. flex-direction: column;
  16693. align-items: center;
  16694. padding-top: 10px;
  16695. box-sizing: border-box;
  16696. }
  16697. .select_box2_answer_box {
  16698. margin: 0 0 10px 0;
  16699. width: 85%;
  16700. }
  16701. .rate_textarea {
  16702. font: inherit;
  16703. color: currentColor;
  16704. width: 100%;
  16705. padding: 8px 14px;
  16706. display: block;
  16707. min-width: 0;
  16708. outline: none;
  16709. border: 1px solid rgba(0, 0, 0, 0.23);
  16710. border-radius: 4px;
  16711. box-sizing: border-box;
  16712. background: #fff;
  16713. margin: 0 20px 0 0;
  16714. resize: none;
  16715. }
  16716. .select_answer_title {
  16717. text-align: left;
  16718. width: 85%;
  16719. margin-bottom: 10px;
  16720. font-size: 18px;
  16721. color: #8e8e8e;
  16722. }
  16723. .mask {
  16724. background-color: rgb(0 0 0 / 30%);
  16725. /* position: fixed; */
  16726. position: absolute;
  16727. top: 0;
  16728. left: 0;
  16729. width: 100%;
  16730. height: 100%;
  16731. z-index: 90;
  16732. display: flex;
  16733. align-items: center;
  16734. justify-content: center;
  16735. }
  16736. .progressBox {
  16737. width: 300px;
  16738. height: 150px;
  16739. background: #fff;
  16740. border-radius: 10px;
  16741. box-shadow: 0 0 6px 1px #bfbfbf;
  16742. display: flex;
  16743. align-items: center;
  16744. justify-content: center;
  16745. flex-direction: column;
  16746. position: relative;
  16747. color: #6c6c6c;
  16748. }
  16749. .progressBox >>> .el-progress-bar__outer {
  16750. background-color: #d1dfff !important;
  16751. }
  16752. .progressBox .lbox {
  16753. height: 50px;
  16754. font-size: 19px;
  16755. display: flex;
  16756. align-items: center;
  16757. color: #747474;
  16758. }
  16759. .progressBox .lbox img {
  16760. width: 40px;
  16761. margin-right: 20px;
  16762. }
  16763. .closeCss {
  16764. position: absolute;
  16765. top: 8px;
  16766. right: 8px;
  16767. cursor: pointer;
  16768. width: 20px;
  16769. height: 20px;
  16770. }
  16771. .closeCss > img {
  16772. width: 100%;
  16773. height: 100%;
  16774. }
  16775. .updateTips::before {
  16776. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16777. font-size: 14px;
  16778. margin-left: 20px;
  16779. font-weight: 400;
  16780. color: #ff3a3a;
  16781. margin-bottom: 10px;
  16782. display: block;
  16783. }
  16784. .updateMask {
  16785. width: 100%;
  16786. z-index: 3;
  16787. top: 0;
  16788. position: absolute;
  16789. /* background-color: rgba(0,0,0,.3); */
  16790. }
  16791. .t_j_box {
  16792. display: flex;
  16793. }
  16794. .t_j_box span:nth-child(1) {
  16795. width: 15%;
  16796. overflow: hidden;
  16797. margin-right: 10px;
  16798. text-overflow: ellipsis;
  16799. white-space: nowrap;
  16800. }
  16801. .t_j_box span:nth-child(2) {
  16802. width: 30%;
  16803. overflow: hidden;
  16804. text-overflow: ellipsis;
  16805. margin-right: 10px;
  16806. }
  16807. .t_j_box span:nth-child(3) {
  16808. max-width: calc(55% - 20px);
  16809. overflow: hidden;
  16810. text-overflow: ellipsis;
  16811. }
  16812. .sentenBox {
  16813. background: #fff;
  16814. height: 600px;
  16815. overflow: auto;
  16816. background-image: url("../../assets/icon/conSentences/csBg.png");
  16817. background-position: 102%;
  16818. background-repeat: no-repeat;
  16819. background-size: 60%;
  16820. }
  16821. .sentenBox > .sentenContent {
  16822. padding-bottom: 10px;
  16823. width: 97%;
  16824. margin: 0 auto;
  16825. }
  16826. .sentenBox > .sentenContent + .sentenContent {
  16827. border-top: 1px solid #cbcbcb;
  16828. }
  16829. .addSen {
  16830. background: #409efe;
  16831. width: 90px;
  16832. color: #fff;
  16833. height: 35px;
  16834. text-align: center;
  16835. line-height: 35px;
  16836. border-radius: 5px;
  16837. float: right;
  16838. margin: 10px 20px 0 0;
  16839. cursor: pointer;
  16840. }
  16841. .sentenTop {
  16842. display: flex;
  16843. flex-direction: row;
  16844. flex-wrap: nowrap;
  16845. align-items: center;
  16846. }
  16847. .sentenTop::before {
  16848. content: attr(index);
  16849. background: #3681fc;
  16850. border-radius: 50%;
  16851. color: #fff;
  16852. width: 25px;
  16853. height: 25px;
  16854. min-width: 25px;
  16855. min-height: 25px;
  16856. text-align: center;
  16857. line-height: 25px;
  16858. margin-right: 5px;
  16859. }
  16860. .sentenTop > div:nth-child(2) {
  16861. width: 300px;
  16862. margin: 0 15px;
  16863. }
  16864. .sentenTop > div:nth-child(3) {
  16865. background: #409efe;
  16866. color: #fff;
  16867. width: 65px;
  16868. height: 35px;
  16869. text-align: center;
  16870. line-height: 35px;
  16871. border-radius: 5px;
  16872. cursor: pointer;
  16873. }
  16874. .cardList {
  16875. padding: 30px 0 20px 0;
  16876. display: flex;
  16877. flex-direction: row;
  16878. flex-wrap: wrap;
  16879. align-items: center;
  16880. box-sizing: border-box;
  16881. border-bottom: 1px solid #f4f4f4;
  16882. width: 98%;
  16883. margin: 0 auto;
  16884. }
  16885. .rightCardList {
  16886. display: flex;
  16887. flex-wrap: wrap;
  16888. }
  16889. .cardBox {
  16890. display: flex;
  16891. flex-direction: row;
  16892. flex-wrap: wrap;
  16893. align-items: center;
  16894. align-content: center;
  16895. }
  16896. .isCard,
  16897. .isCard1 {
  16898. width: auto;
  16899. padding: 0 20px;
  16900. height: 65px;
  16901. text-align: center;
  16902. line-height: 65px;
  16903. font-size: 14px;
  16904. cursor: pointer;
  16905. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  16906. background-size: 100% 100%;
  16907. position: relative;
  16908. z-index: 99;
  16909. }
  16910. .isCard1 {
  16911. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  16912. }
  16913. .isCard:hover .deleteWord {
  16914. display: block;
  16915. }
  16916. .isCard > div:nth-child(1),
  16917. .isCard1 > div:nth-child(1) {
  16918. white-space: nowrap;
  16919. overflow: hidden;
  16920. text-overflow: ellipsis;
  16921. width: 100%;
  16922. margin: 0 auto;
  16923. }
  16924. .card {
  16925. width: 140px;
  16926. height: 65px;
  16927. }
  16928. .card > img {
  16929. width: 100%;
  16930. height: 100%;
  16931. }
  16932. .rightCardBox {
  16933. width: 98%;
  16934. margin: 10px auto 0;
  16935. }
  16936. .rightCardBox > div:nth-child(1) {
  16937. margin-bottom: 10px;
  16938. }
  16939. .cardCss {
  16940. display: flex;
  16941. flex-direction: column;
  16942. flex-wrap: nowrap;
  16943. align-items: center;
  16944. border-bottom: 3px solid #b4c3d3;
  16945. padding: 0 0 5px 0;
  16946. /* margin-right: 10px; */
  16947. }
  16948. .cardCss > div:nth-child(2) {
  16949. background: #5b7b9d;
  16950. color: #fff;
  16951. width: 20px;
  16952. height: 20px;
  16953. border-radius: 50%;
  16954. text-align: center;
  16955. line-height: 20px;
  16956. }
  16957. .sentenTopBox {
  16958. display: flex;
  16959. flex-direction: row;
  16960. flex-wrap: nowrap;
  16961. align-items: center;
  16962. justify-content: space-between;
  16963. padding: 55px 0 0 20px;
  16964. box-sizing: border-box;
  16965. width: 85%;
  16966. }
  16967. .stepsBottom {
  16968. width: 100%;
  16969. box-shadow: 0 0 10px 10px #f7f7f7;
  16970. /* background: #f7f7f7; */
  16971. border-radius: 10px;
  16972. overflow: hidden;
  16973. height: 100%;
  16974. }
  16975. .navTop {
  16976. background: #53749b;
  16977. color: #fff;
  16978. height: 40px;
  16979. line-height: 40px;
  16980. padding-left: 15px;
  16981. font-size: 18px;
  16982. }
  16983. .navBottom {
  16984. /* background: #6b91b7; */
  16985. height: 100%;
  16986. overflow: auto;
  16987. padding: 10px 0;
  16988. }
  16989. .navStage {
  16990. display: flex;
  16991. flex-direction: row;
  16992. flex-wrap: nowrap;
  16993. align-items: center;
  16994. padding: 10px 10px 10px 0;
  16995. cursor: pointer;
  16996. background: #ffffff;
  16997. width: 95%;
  16998. margin: 5px auto 5px;
  16999. box-sizing: border-box;
  17000. border-radius: 5px;
  17001. flex-wrap: wrap;
  17002. position: relative;
  17003. }
  17004. .navStage:hover > .chapter_upload_drag {
  17005. display: block;
  17006. }
  17007. .navTask:hover > .chapter_upload_drag {
  17008. display: block;
  17009. }
  17010. .chapter_upload:hover > .chapter_upload_drag {
  17011. display: block;
  17012. }
  17013. .navStage::before {
  17014. content: "";
  17015. display: block;
  17016. width: 16px;
  17017. height: 16px;
  17018. background-image: url(../../assets/icon/new/icon_stage.png);
  17019. background-size: 100%;
  17020. margin-left: 25px;
  17021. }
  17022. .navStage .chapter_unit_open {
  17023. content: "";
  17024. display: block;
  17025. width: 16px;
  17026. height: 16px;
  17027. background-image: url(../../assets/icon/new/down.png);
  17028. transform: rotate(-90deg);
  17029. background-size: 100%;
  17030. margin-left: 10px;
  17031. transition: all 0.5s;
  17032. }
  17033. .isNavStageOpen .chapter_unit_open {
  17034. transform: rotate(0deg);
  17035. }
  17036. .isNavStage {
  17037. background: #0061ff;
  17038. }
  17039. .isNavStage::before {
  17040. background-image: url(../../assets/icon/new/icon_stage_a.png);
  17041. }
  17042. .isNavStage .chapter_unit_open {
  17043. background-image: url(../../assets/icon/new/downC.png);
  17044. }
  17045. .isNavStage .nt_taskName {
  17046. font-weight: bold !important;
  17047. color: #ffffff !important;
  17048. }
  17049. .isNavStage .nt_taskTitle {
  17050. font-weight: bold !important;
  17051. color: #fff !important;
  17052. }
  17053. .navStage .nt_taskBox {
  17054. width: calc(100% - 68px);
  17055. padding: 0 0 0 5px;
  17056. box-sizing: border-box;
  17057. box-sizing: border-box;
  17058. display: flex;
  17059. flex-direction: row;
  17060. flex-wrap: nowrap;
  17061. align-items: baseline;
  17062. }
  17063. .navStage .nt_taskTitle {
  17064. color: #060e17;
  17065. line-height: 25px;
  17066. font-size: 16px;
  17067. }
  17068. .navStage .nt_taskName {
  17069. max-width: calc(100% - 82px);
  17070. white-space: nowrap;
  17071. overflow: hidden;
  17072. text-overflow: ellipsis;
  17073. font-size: 16px;
  17074. color: #060e17;
  17075. }
  17076. .navTask {
  17077. display: flex;
  17078. flex-direction: row;
  17079. flex-wrap: nowrap;
  17080. align-items: center;
  17081. padding: 10px 10px 10px 0;
  17082. cursor: pointer;
  17083. background: #ffffff;
  17084. width: 95%;
  17085. margin: 5px auto 5px;
  17086. box-sizing: border-box;
  17087. border-radius: 5px;
  17088. flex-wrap: wrap;
  17089. position: relative;
  17090. }
  17091. .navTask .chapter_upload_open {
  17092. content: "";
  17093. display: block;
  17094. width: 16px;
  17095. height: 16px;
  17096. background-image: url(../../assets/icon/new/icon_arrow.png);
  17097. background-size: 100%;
  17098. margin-left: 23px;
  17099. }
  17100. .noImage .chapter_upload_open {
  17101. display: none;
  17102. background-image: unset !important;
  17103. }
  17104. .isNavOpen .chapter_upload_open {
  17105. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  17106. transform: rotate(90deg);
  17107. }
  17108. .isNavTask .chapter_upload_open {
  17109. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  17110. transform: rotate(-90deg);
  17111. }
  17112. .isNavTask.isNavOpen .chapter_upload_open {
  17113. transform: rotate(0deg);
  17114. }
  17115. .dragOverTop {
  17116. border-top: 2px solid #0061ff !important;
  17117. border-radius: 0 !important;
  17118. margin-top: 10px;
  17119. }
  17120. .dragOverBottom {
  17121. border-bottom: 2px solid #0061ff !important;
  17122. border-radius: 0 !important;
  17123. margin-top: 10px;
  17124. }
  17125. .dragOverTop2 {
  17126. border-top: 2px solid #0061ff !important;
  17127. border-radius: 0 !important;
  17128. }
  17129. .dragOverBottom2 {
  17130. border-bottom: 2px solid #0061ff !important;
  17131. border-radius: 0 !important;
  17132. }
  17133. .isNavTask {
  17134. /* background: #3681FC; */
  17135. background: #eef3fb;
  17136. }
  17137. .isNavTask > .chapter_upload_drag {
  17138. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  17139. }
  17140. .isNavTask .nt_taskName {
  17141. /* color: #fff !important; */
  17142. font-weight: bold !important;
  17143. color: #0061ff !important;
  17144. }
  17145. .isNavTask .nt_taskTitle {
  17146. /* color: #AECCFE !important; */
  17147. font-weight: bold !important;
  17148. color: #0061ff !important;
  17149. }
  17150. .navTask .nt_taskBox {
  17151. width: calc(100% - 40px);
  17152. padding: 0 0 0 5px;
  17153. box-sizing: border-box;
  17154. box-sizing: border-box;
  17155. display: flex;
  17156. flex-direction: row;
  17157. flex-wrap: nowrap;
  17158. align-items: baseline;
  17159. }
  17160. .navTask .nt_taskTitle {
  17161. /* color: #717C8D; */
  17162. color: #060e17;
  17163. line-height: 25px;
  17164. font-size: 16px;
  17165. /* min-width: 66px; */
  17166. }
  17167. .navTask .nt_taskName {
  17168. /* color: #fff; */
  17169. /* max-width: 130px; */
  17170. /* width: 100%; */
  17171. max-width: calc(100% - 66px);
  17172. font-size: 16px;
  17173. color: #060e17;
  17174. /* color: #0E1E33; */
  17175. }
  17176. .navTask .nt_taskName span {
  17177. width: 100%;
  17178. white-space: nowrap;
  17179. overflow: hidden;
  17180. text-overflow: ellipsis;
  17181. display: block;
  17182. }
  17183. .gjBox {
  17184. width: calc(100% - 25px);
  17185. padding: 0 0 0 0;
  17186. box-sizing: border-box;
  17187. border-left: 1px solid #cad1dc;
  17188. margin-left: 25px;
  17189. }
  17190. .gjBox > div {
  17191. display: flex;
  17192. align-items: center;
  17193. }
  17194. .gjBox > div::before {
  17195. content: "";
  17196. height: 1px;
  17197. width: 10px;
  17198. background: #cad1dc;
  17199. display: block;
  17200. margin-right: 5px;
  17201. }
  17202. .gjCss {
  17203. display: flex;
  17204. flex-direction: row;
  17205. flex-wrap: nowrap;
  17206. align-items: center;
  17207. padding: 15px 0;
  17208. box-sizing: border-box;
  17209. font-size: 14px;
  17210. cursor: pointer;
  17211. }
  17212. .isGjCss {
  17213. color: #0061ff;
  17214. }
  17215. .groupBox {
  17216. }
  17217. .groupContent + .groupContent {
  17218. margin-top: 30px;
  17219. }
  17220. .groupTitle {
  17221. font-size: 24px;
  17222. color: rgb(80, 80, 80);
  17223. margin-bottom: 20px;
  17224. }
  17225. .groupName {
  17226. display: flex;
  17227. align-items: center;
  17228. }
  17229. .groupn {
  17230. font-size: 15px;
  17231. margin-right: 10px;
  17232. }
  17233. .groupName + .groupName {
  17234. margin-top: 15px;
  17235. }
  17236. .groupBtn {
  17237. margin-left: 10px;
  17238. }
  17239. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  17240. text-align: left;
  17241. }
  17242. .radioBox > div {
  17243. margin: 10px 0 0 10px;
  17244. }
  17245. .radioBox >>> .el-radio__input,
  17246. .radioBox >>> .el-checkbox__inner {
  17247. margin-left: 10px;
  17248. }
  17249. .radioBox >>> .el-radio__label,
  17250. .radioBox >>> .el-checkbox__label {
  17251. display: flex;
  17252. align-items: center;
  17253. }
  17254. .inImg {
  17255. width: 50px;
  17256. }
  17257. .inImg > img {
  17258. width: 100%;
  17259. height: 100%;
  17260. object-fit: cover;
  17261. }
  17262. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  17263. height: auto;
  17264. padding: 10px;
  17265. margin: 0;
  17266. }
  17267. .upCss >>> .el-upload-list {
  17268. width: 100%;
  17269. }
  17270. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  17271. width: 100%;
  17272. height: 120px;
  17273. object-fit: contain;
  17274. background: unset;
  17275. margin-left: 0;
  17276. }
  17277. .upCss
  17278. >>> .el-upload-list--picture
  17279. .el-upload-list__item.is-success
  17280. .el-upload-list__item-name {
  17281. display: none;
  17282. }
  17283. .tcMember + .tcMember::before {
  17284. content: "、";
  17285. }
  17286. .xzUpImg {
  17287. width: 25px;
  17288. height: 25px;
  17289. min-width: 25px;
  17290. min-height: 25px;
  17291. cursor: pointer;
  17292. margin: 0 10px;
  17293. }
  17294. .xzUpImg > img {
  17295. width: 100%;
  17296. height: 100%;
  17297. }
  17298. .closeCss {
  17299. position: absolute;
  17300. top: 8px;
  17301. right: 8px;
  17302. cursor: pointer;
  17303. width: 20px;
  17304. height: 20px;
  17305. }
  17306. .closeCss > img {
  17307. width: 100%;
  17308. height: 100%;
  17309. }
  17310. .moveBtn {
  17311. display: flex;
  17312. flex-direction: row;
  17313. flex-wrap: nowrap;
  17314. align-items: center;
  17315. width: 55px;
  17316. }
  17317. .timuUpImg {
  17318. display: flex;
  17319. flex-direction: row;
  17320. align-items: center;
  17321. width: 100%;
  17322. margin-right: 10px;
  17323. }
  17324. .timuUpImg > div:nth-child(1) {
  17325. margin-right: 10px;
  17326. display: flex;
  17327. align-items: center;
  17328. width: 100%;
  17329. }
  17330. .timuImgBox {
  17331. margin: 10px 0;
  17332. display: flex;
  17333. flex-direction: column;
  17334. flex-wrap: wrap;
  17335. align-items: flex-start;
  17336. }
  17337. .timuImg {
  17338. width: 100px;
  17339. margin: 5px 0;
  17340. cursor: pointer;
  17341. position: relative;
  17342. }
  17343. .timuImg:hover .deleteWord {
  17344. display: block;
  17345. }
  17346. .deleteWord {
  17347. width: 25px;
  17348. height: 25px;
  17349. position: absolute;
  17350. right: -5px;
  17351. top: -5px;
  17352. cursor: pointer;
  17353. display: none;
  17354. }
  17355. .timuImg > img,
  17356. .deleteWord > img {
  17357. width: 100%;
  17358. height: 100%;
  17359. object-fit: cover;
  17360. }
  17361. .e_add_delete {
  17362. cursor: pointer;
  17363. margin-left: 10px;
  17364. }
  17365. .pType_box {
  17366. margin-top: 30px;
  17367. align-items: flex-end;
  17368. }
  17369. .noneBox {
  17370. height: 200px;
  17371. width: 100%;
  17372. display: flex;
  17373. align-items: center;
  17374. justify-content: center;
  17375. flex-direction: column;
  17376. /* margin-top: 150px; */
  17377. }
  17378. .noneBox > img {
  17379. width: 95px;
  17380. }
  17381. .noneBox > span {
  17382. margin-top: 10px;
  17383. color: #717c8d;
  17384. }
  17385. .rb_c_box {
  17386. width: 100%;
  17387. height: 100%;
  17388. display: flex;
  17389. /* padding: 20px; */
  17390. box-sizing: border-box;
  17391. justify-content: space-between;
  17392. }
  17393. .rb_c_box_left {
  17394. height: 100%;
  17395. background: #fff;
  17396. width: 270px;
  17397. min-width: 270px;
  17398. border-radius: 8px;
  17399. margin-right: 10px;
  17400. }
  17401. .rb_c_box_right {
  17402. height: 100%;
  17403. width: calc(100%);
  17404. overflow: hidden;
  17405. }
  17406. .rb_c_box_btn {
  17407. display: flex;
  17408. justify-content: flex-start;
  17409. height: 50px;
  17410. align-items: center;
  17411. }
  17412. .rb_c_box_right > .basic_box {
  17413. /* background: #fff; */
  17414. border-radius: 0;
  17415. height: calc(100% - 0px);
  17416. overflow: auto;
  17417. padding: 0;
  17418. }
  17419. .textarea_css {
  17420. display: block;
  17421. resize: none;
  17422. padding: 10px 15px;
  17423. line-height: 1.5;
  17424. box-sizing: border-box;
  17425. width: 100%;
  17426. font-size: 14px;
  17427. color: #606266;
  17428. background-color: #fff;
  17429. background-image: none;
  17430. border: 1px solid #dcdfe6;
  17431. border-radius: 4px;
  17432. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  17433. outline: none;
  17434. overflow: hidden;
  17435. height: 46px;
  17436. font-family: "Microsoft YaHei";
  17437. }
  17438. .textarea_css::-webkit-input-placeholder {
  17439. color: #c0c4cc;
  17440. }
  17441. .textarea_css:focus {
  17442. border-color: #409eff;
  17443. outline: 0;
  17444. }
  17445. .addEditor >>> .text {
  17446. height: auto;
  17447. min-height: 100px;
  17448. }
  17449. .addEditor >>> .w-e-text-container {
  17450. min-height: 100px;
  17451. }
  17452. .moveBtn2 {
  17453. flex-direction: column;
  17454. width: fit-content;
  17455. margin: 0 10px 0 10px;
  17456. }
  17457. .moveBtn2 .chapter_upload_down,
  17458. .moveBtn2 .chapter_upload_up {
  17459. width: 16px;
  17460. height: 16px;
  17461. }
  17462. .moveBtn2 .chapter_upload_up::after,
  17463. .moveBtn2 .chapter_upload_down::after {
  17464. width: 10px;
  17465. height: 10px;
  17466. }
  17467. .fullStyle >>> .el-dialog__body {
  17468. height: calc(100% - 125px) !important;
  17469. box-sizing: border-box;
  17470. }
  17471. .fullStyle1 >>> .el-dialog__body {
  17472. height: auto !important;
  17473. }
  17474. .fullStyle >>> .el-dialog {
  17475. width: 100% !important;
  17476. max-width: 100% !important;
  17477. height: 100% !important;
  17478. margin: 0 !important;
  17479. }
  17480. .fullStyle {
  17481. width: 100% !important;
  17482. max-width: 100% !important;
  17483. height: 100% !important;
  17484. margin: 0 auto !important;
  17485. }
  17486. .wb_j_box_btn {
  17487. width: calc(100% - 30px);
  17488. display: flex;
  17489. height: 40px;
  17490. border: 1.5px solid #cad1dc;
  17491. border-radius: 4px;
  17492. box-sizing: border-box;
  17493. align-items: center;
  17494. font-size: 14px;
  17495. cursor: pointer;
  17496. overflow: hidden;
  17497. }
  17498. .wb_j_box_btn:hover {
  17499. border: 1.5px solid #0061ff;
  17500. }
  17501. .wb_j_box_title {
  17502. background: #f0f4fa;
  17503. height: 100%;
  17504. line-height: 40px;
  17505. width: 90px;
  17506. text-align: center;
  17507. color: #060e17;
  17508. border-right: 1.5px solid #cad1dc;
  17509. box-sizing: border-box;
  17510. }
  17511. .wb_j_box_btn_c {
  17512. width: calc(100% - 90px);
  17513. padding: 0 35px 0 10px;
  17514. box-sizing: border-box;
  17515. position: relative;
  17516. }
  17517. .wb_j_box_span {
  17518. width: 100%;
  17519. overflow: hidden;
  17520. white-space: nowrap;
  17521. text-overflow: ellipsis;
  17522. word-wrap: break-word;
  17523. color: #717c8d;
  17524. }
  17525. .wb_j_box_arrow {
  17526. content: "";
  17527. width: 14px;
  17528. height: 14px;
  17529. background: url(../../assets/icon/new/u_arrow.png);
  17530. background-size: 100% 100%;
  17531. position: absolute;
  17532. right: 12px;
  17533. top: 50%;
  17534. transform: translateY(-50%);
  17535. }
  17536. .check_classBox {
  17537. height: 400px;
  17538. display: flex;
  17539. border-top: 1.5px solid #e7ebf1;
  17540. border-bottom: 1.5px solid #e7ebf1;
  17541. }
  17542. .check_class_right {
  17543. width: 130px;
  17544. border-right: 1px solid #e7ebf1;
  17545. display: flex;
  17546. align-items: center;
  17547. flex-direction: column;
  17548. height: 100%;
  17549. overflow: auto;
  17550. padding: 15px 0;
  17551. box-sizing: border-box;
  17552. }
  17553. .check_class {
  17554. width: 85%;
  17555. border-radius: 5px;
  17556. height: 30px;
  17557. line-height: 30px;
  17558. text-align: center;
  17559. padding: 0 10px;
  17560. box-sizing: border-box;
  17561. cursor: pointer;
  17562. white-space: nowrap;
  17563. overflow: hidden;
  17564. text-overflow: ellipsis;
  17565. }
  17566. .check_class.activeX {
  17567. background: #e0eafb;
  17568. color: #3681fc;
  17569. font-weight: 700;
  17570. }
  17571. .check_class + .check_class {
  17572. margin-top: 15px;
  17573. }
  17574. .check_class_left {
  17575. background: #fafafa;
  17576. width: calc(100% - 130px);
  17577. padding: 15px;
  17578. box-sizing: border-box;
  17579. }
  17580. .check_class_all_box {
  17581. display: flex;
  17582. margin-bottom: 10px;
  17583. }
  17584. .all_check {
  17585. display: flex;
  17586. align-items: center;
  17587. padding: 2px 0 0;
  17588. margin-left: 10px;
  17589. }
  17590. .all_check >>> .el-checkbox__label {
  17591. line-height: 18px;
  17592. }
  17593. .check_class_left_title {
  17594. font-size: 16px;
  17595. font-weight: 700;
  17596. }
  17597. .check_class_item {
  17598. display: flex;
  17599. flex-wrap: wrap;
  17600. height: calc(100% - 45px);
  17601. overflow: auto;
  17602. justify-content: flex-start;
  17603. align-items: flex-start;
  17604. align-content: flex-start;
  17605. }
  17606. .class_item:first-child {
  17607. /* margin: 0 15px 15px 67px; */
  17608. }
  17609. .class_item {
  17610. margin: 0 15px 15px 0;
  17611. }
  17612. .class_item:hover >>> .el-checkbox__label {
  17613. color: #409eff;
  17614. }
  17615. .class_item >>> .el-checkbox__label {
  17616. color: #0e1e33;
  17617. }
  17618. .class_item:hover >>> .el-checkbox__inner {
  17619. border-color: #409eff;
  17620. }
  17621. .class_item >>> .el-checkbox,
  17622. .class_item >>> .el-checkbox__input {
  17623. display: flex;
  17624. align-items: center;
  17625. }
  17626. .taskTitle {
  17627. font-size: 20px;
  17628. font-weight: bold;
  17629. margin-bottom: 35px;
  17630. }
  17631. .taskTitle:after {
  17632. content: "";
  17633. width: 100%;
  17634. display: block;
  17635. height: 1px;
  17636. background: #cad1dc;
  17637. position: absolute;
  17638. left: 0;
  17639. margin: 15px 0 0;
  17640. }
  17641. .eva_btn_box {
  17642. margin: 20px 0px 0 0;
  17643. display: flex;
  17644. flex-direction: row;
  17645. flex-wrap: nowrap;
  17646. align-items: center;
  17647. justify-content: space-between;
  17648. width: 100%;
  17649. }
  17650. .eva_btn_left_box {
  17651. display: flex;
  17652. flex-direction: row;
  17653. flex-wrap: nowrap;
  17654. align-items: center;
  17655. }
  17656. .addTypeChoose {
  17657. display: flex;
  17658. flex-direction: row;
  17659. flex-wrap: nowrap;
  17660. align-items: center;
  17661. margin: 15px 0;
  17662. }
  17663. .addTypeBox {
  17664. display: flex;
  17665. flex-direction: column;
  17666. flex-wrap: nowrap;
  17667. align-items: center;
  17668. }
  17669. .addTypeChoose {
  17670. display: flex;
  17671. flex-direction: row;
  17672. flex-wrap: nowrap;
  17673. align-items: center;
  17674. margin: 15px 0;
  17675. }
  17676. </style>