addCourse.vue 610 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361
  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. class="tool"
  3634. :class="{
  3635. isToolChoose:
  3636. itemTool.tool.indexOf(71) != -1,
  3637. }"
  3638. @click="
  3639. addTools(71, itemTaskIndex, toolIndex)
  3640. "
  3641. >
  3642. <div
  3643. class="whiteBIcon"
  3644. @click.stop="
  3645. addTools(71, itemTaskIndex, toolIndex)
  3646. "
  3647. >
  3648. <img
  3649. src="../../assets/icon/fourthToolList/chatgpt.png"
  3650. alt
  3651. />
  3652. <div style="margin: 5px 0">AI智能体</div>
  3653. </div>
  3654. <div class="noCTool">
  3655. <img
  3656. src="../../assets/icon/new/isToolC.png"
  3657. alt=""
  3658. />
  3659. </div>
  3660. <div
  3661. class="isCTool"
  3662. v-if="itemTool.tool.indexOf(71) != -1"
  3663. >
  3664. <img
  3665. src="../../assets/icon/new/isToolC.png"
  3666. alt=""
  3667. />
  3668. </div>
  3669. </div>
  3670. </div>
  3671. <div
  3672. class="toolSort"
  3673. v-if="itemTool.toolType == 7"
  3674. >
  3675. <div
  3676. class="tool"
  3677. :class="{
  3678. isToolChoose:
  3679. itemTool.tool.indexOf(40) != -1,
  3680. }"
  3681. @click.stop="
  3682. addTools(40, itemTaskIndex, toolIndex)
  3683. "
  3684. >
  3685. <div
  3686. class="whiteBIcon"
  3687. @click.stop="
  3688. openTools(itemTaskIndex, 40, toolIndex)
  3689. "
  3690. >
  3691. <img
  3692. src="../../assets/icon/thirdToolList/eval.png"
  3693. alt
  3694. />
  3695. <div style="margin: 5px 0">个人评价</div>
  3696. </div>
  3697. <div class="noCTool">
  3698. <img
  3699. src="../../assets/icon/new/isToolC.png"
  3700. alt=""
  3701. />
  3702. </div>
  3703. <div
  3704. class="isCTool"
  3705. v-if="itemTool.tool.indexOf(40) != -1"
  3706. >
  3707. <img
  3708. src="../../assets/icon/new/isToolC.png"
  3709. alt=""
  3710. />
  3711. </div>
  3712. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3713. <img src="../../assets/icon/checkNo.png" alt
  3714. v-if="itemTool.tool.indexOf(40) == -1" />
  3715. <div class="checkDiv" v-else>
  3716. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3717. </div>
  3718. </div> -->
  3719. </div>
  3720. </div>
  3721. <div
  3722. class="toolSort"
  3723. v-if="itemTool.toolType == 5"
  3724. >
  3725. <div
  3726. class="tool"
  3727. :class="{
  3728. isToolChoose:
  3729. itemTool.tool.indexOf(28) != -1,
  3730. }"
  3731. @click="
  3732. addTools(28, itemTaskIndex, toolIndex)
  3733. "
  3734. >
  3735. <div
  3736. class="whiteBIcon"
  3737. @click.stop="
  3738. addTools(28, itemTaskIndex, toolIndex)
  3739. "
  3740. >
  3741. <img
  3742. src="../../assets/icon/secondToolList/translation.png"
  3743. alt
  3744. />
  3745. <div style="margin: 5px 0">翻译</div>
  3746. </div>
  3747. <div class="noCTool">
  3748. <img
  3749. src="../../assets/icon/new/isToolC.png"
  3750. alt=""
  3751. />
  3752. </div>
  3753. <div
  3754. class="isCTool"
  3755. v-if="itemTool.tool.indexOf(28) != -1"
  3756. >
  3757. <img
  3758. src="../../assets/icon/new/isToolC.png"
  3759. alt=""
  3760. />
  3761. </div>
  3762. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3763. <img src="../../assets/icon/checkNo.png" alt
  3764. v-if="itemTool.tool.indexOf(28) == -1" />
  3765. <div class="checkDiv" v-else>
  3766. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3767. </div>
  3768. </div> -->
  3769. </div>
  3770. <div
  3771. class="tool"
  3772. :class="{
  3773. isToolChoose:
  3774. itemTool.tool.indexOf(31) != -1,
  3775. }"
  3776. @click="
  3777. addTools(31, itemTaskIndex, toolIndex)
  3778. "
  3779. >
  3780. <div
  3781. class="whiteBIcon"
  3782. @click.stop="
  3783. addTools(31, itemTaskIndex, toolIndex)
  3784. "
  3785. >
  3786. <img
  3787. src="../../assets/icon/secondToolList/networkPanel.png"
  3788. alt
  3789. />
  3790. <div style="margin: 5px 0">数字画板</div>
  3791. </div>
  3792. <div class="noCTool">
  3793. <img
  3794. src="../../assets/icon/new/isToolC.png"
  3795. alt=""
  3796. />
  3797. </div>
  3798. <div
  3799. class="isCTool"
  3800. v-if="itemTool.tool.indexOf(31) != -1"
  3801. >
  3802. <img
  3803. src="../../assets/icon/new/isToolC.png"
  3804. alt=""
  3805. />
  3806. </div>
  3807. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3808. <img src="../../assets/icon/checkNo.png" alt
  3809. v-if="itemTool.tool.indexOf(31) == -1" />
  3810. <div class="checkDiv" v-else>
  3811. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3812. </div>
  3813. </div> -->
  3814. </div>
  3815. <div
  3816. class="tool"
  3817. :class="{
  3818. isToolChoose:
  3819. itemTool.tool.indexOf(39) != -1,
  3820. }"
  3821. @click="
  3822. addTools(39, itemTaskIndex, toolIndex)
  3823. "
  3824. >
  3825. <div
  3826. class="whiteBIcon"
  3827. @click.stop="
  3828. addTools(39, itemTaskIndex, toolIndex)
  3829. "
  3830. >
  3831. <img
  3832. src="../../assets/icon/secondToolList/GeoGebra.png"
  3833. alt
  3834. />
  3835. <div style="margin: 5px 0">GeoGebra</div>
  3836. </div>
  3837. <div class="noCTool">
  3838. <img
  3839. src="../../assets/icon/new/isToolC.png"
  3840. alt=""
  3841. />
  3842. </div>
  3843. <div
  3844. class="isCTool"
  3845. v-if="itemTool.tool.indexOf(39) != -1"
  3846. >
  3847. <img
  3848. src="../../assets/icon/new/isToolC.png"
  3849. alt=""
  3850. />
  3851. </div>
  3852. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3853. <img src="../../assets/icon/checkNo.png" alt
  3854. v-if="itemTool.tool.indexOf(39) == -1" />
  3855. <div class="checkDiv" v-else>
  3856. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3857. </div>
  3858. </div> -->
  3859. </div>
  3860. <div
  3861. class="tool"
  3862. :class="{
  3863. isToolChoose:
  3864. itemTool.tool.indexOf(66) != -1,
  3865. }"
  3866. @click="
  3867. addTools(66, itemTaskIndex, toolIndex)
  3868. "
  3869. >
  3870. <div
  3871. class="whiteBIcon"
  3872. @click.stop="
  3873. addTools(66, itemTaskIndex, toolIndex)
  3874. "
  3875. >
  3876. <img
  3877. src="../../assets/icon/secondToolList/formulaEdi.png"
  3878. alt
  3879. />
  3880. <div style="margin: 5px 0">公式编辑</div>
  3881. </div>
  3882. <div class="noCTool">
  3883. <img
  3884. src="../../assets/icon/new/isToolC.png"
  3885. alt=""
  3886. />
  3887. </div>
  3888. <div
  3889. class="isCTool"
  3890. v-if="itemTool.tool.indexOf(66) != -1"
  3891. >
  3892. <img
  3893. src="../../assets/icon/new/isToolC.png"
  3894. alt=""
  3895. />
  3896. </div>
  3897. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3898. <img src="../../assets/icon/checkNo.png" alt
  3899. v-if="itemTool.tool.indexOf(66) == -1" />
  3900. <div class="checkDiv" v-else>
  3901. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3902. </div>
  3903. </div> -->
  3904. </div>
  3905. <!-- <div class="tool">
  3906. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3907. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  3908. <div style="margin: 5px 0">分子结构</div>
  3909. </div>
  3910. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3911. <img src="../../assets/icon/checkNo.png" alt
  3912. v-if="itemTool.tool.indexOf(67) == -1" />
  3913. <div class="checkDiv" v-else>
  3914. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3915. </div>
  3916. </div>
  3917. </div> -->
  3918. <div
  3919. class="tool"
  3920. :class="{
  3921. isToolChoose:
  3922. itemTool.tool.indexOf(68) != -1,
  3923. }"
  3924. @click="
  3925. addTools(68, itemTaskIndex, toolIndex)
  3926. "
  3927. >
  3928. <div
  3929. class="whiteBIcon"
  3930. @click.stop="
  3931. addTools(68, itemTaskIndex, toolIndex)
  3932. "
  3933. >
  3934. <img
  3935. src="../../assets/icon/secondToolList/timeAxis.png"
  3936. alt
  3937. />
  3938. <div style="margin: 5px 0">时间轴</div>
  3939. </div>
  3940. <div class="noCTool">
  3941. <img
  3942. src="../../assets/icon/new/isToolC.png"
  3943. alt=""
  3944. />
  3945. </div>
  3946. <div
  3947. class="isCTool"
  3948. v-if="itemTool.tool.indexOf(68) != -1"
  3949. >
  3950. <img
  3951. src="../../assets/icon/new/isToolC.png"
  3952. alt=""
  3953. />
  3954. </div>
  3955. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3956. <img src="../../assets/icon/checkNo.png" alt
  3957. v-if="itemTool.tool.indexOf(68) == -1" />
  3958. <div class="checkDiv" v-else>
  3959. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3960. </div>
  3961. </div> -->
  3962. </div>
  3963. <div
  3964. class="tool"
  3965. :class="{
  3966. isToolChoose:
  3967. itemTool.tool.indexOf(69) != -1,
  3968. }"
  3969. @click="
  3970. addTools(69, itemTaskIndex, toolIndex)
  3971. "
  3972. >
  3973. <div
  3974. class="whiteBIcon"
  3975. @click.stop="
  3976. openTools(itemTaskIndex, 69, toolIndex)
  3977. "
  3978. >
  3979. <img
  3980. src="../../assets/icon/thirdToolList/english.png"
  3981. alt
  3982. />
  3983. <div style="margin: 5px 0">英语写作</div>
  3984. </div>
  3985. <div class="noCTool">
  3986. <img
  3987. src="../../assets/icon/new/isToolC.png"
  3988. alt=""
  3989. />
  3990. </div>
  3991. <div
  3992. class="isCTool"
  3993. v-if="itemTool.tool.indexOf(69) != -1"
  3994. >
  3995. <img
  3996. src="../../assets/icon/new/isToolC.png"
  3997. alt=""
  3998. />
  3999. </div>
  4000. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  4001. <img src="../../assets/icon/checkNo.png" alt
  4002. v-if="itemTool.tool.indexOf(4) == -1" />
  4003. <div class="checkDiv" v-else>
  4004. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4005. </div>
  4006. </div> -->
  4007. </div>
  4008. <div
  4009. class="tool"
  4010. :class="{
  4011. isToolChoose:
  4012. itemTool.tool.indexOf(70) != -1,
  4013. }"
  4014. @click="
  4015. addTools(70, itemTaskIndex, toolIndex)
  4016. "
  4017. >
  4018. <div
  4019. class="whiteBIcon"
  4020. @click.stop="
  4021. openTools(itemTaskIndex, 70, toolIndex)
  4022. "
  4023. >
  4024. <img
  4025. src="../../assets/icon/thirdToolList/englishVoice.png"
  4026. alt
  4027. />
  4028. <div style="margin: 5px 0">英语口语</div>
  4029. </div>
  4030. <div class="noCTool">
  4031. <img
  4032. src="../../assets/icon/new/isToolC.png"
  4033. alt=""
  4034. />
  4035. </div>
  4036. <div
  4037. class="isCTool"
  4038. v-if="itemTool.tool.indexOf(70) != -1"
  4039. >
  4040. <img
  4041. src="../../assets/icon/new/isToolC.png"
  4042. alt=""
  4043. />
  4044. </div>
  4045. </div>
  4046. <!-- <div class="tool">
  4047. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  4048. <img src="../../assets/icon/secondToolList/translation.png" alt />
  4049. <div style="margin: 5px 0">翻译</div>
  4050. </div>
  4051. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  4052. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  4053. <div class="checkDiv" v-else>
  4054. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4055. </div>
  4056. </div>
  4057. </div>
  4058. <div class="tool">
  4059. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  4060. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  4061. <div style="margin: 5px 0">魔盒识字</div>
  4062. </div>
  4063. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  4064. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  4065. <div class="checkDiv" v-else>
  4066. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4067. </div>
  4068. </div>
  4069. </div>
  4070. <div class="tool">
  4071. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  4072. <img src="../../assets/icon/secondToolList/24game.png" alt />
  4073. <div style="margin: 5px 0">24点</div>
  4074. </div>
  4075. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  4076. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  4077. <div class="checkDiv" v-else>
  4078. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4079. </div>
  4080. </div>
  4081. </div>
  4082. <div class="tool">
  4083. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  4084. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  4085. <div style="margin: 5px 0">数学画板</div>
  4086. </div>
  4087. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  4088. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  4089. <div class="checkDiv" v-else>
  4090. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4091. </div>
  4092. </div>
  4093. </div>
  4094. <div class="tool">
  4095. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  4096. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  4097. <div style="margin: 5px 0">GeoGebra</div>
  4098. </div>
  4099. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  4100. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  4101. <div class="checkDiv" v-else>
  4102. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4103. </div>
  4104. </div>
  4105. </div>
  4106. <div class="tool">
  4107. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  4108. <img src="../../assets/icon/fourthToolList/car.png" alt />
  4109. <div style="margin: 5px 0">模拟驾驶</div>
  4110. </div>
  4111. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  4112. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  4113. <div class="checkDiv" v-else>
  4114. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. <div class="tool">
  4119. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  4120. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  4121. <div style="margin: 5px 0">路径搜索</div>
  4122. </div>
  4123. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  4124. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -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(60, itemTaskIndex, toolIndex)">
  4132. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  4133. <div style="margin: 5px 0">深度学习</div>
  4134. </div>
  4135. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  4136. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -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(61, itemTaskIndex, toolIndex)">
  4144. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  4145. <div style="margin: 5px 0">全历史</div>
  4146. </div>
  4147. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  4148. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -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 class="toolSort" v-if="itemTool.toolType == 4">
  4156. <div class="tool">
  4157. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  4158. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  4159. <div style="margin: 5px 0">课程设计</div>
  4160. </div>
  4161. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  4162. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  4163. <div class="checkDiv" v-else>
  4164. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4165. </div>
  4166. </div>
  4167. </div>
  4168. <div class="tool">
  4169. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  4170. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  4171. <div style="margin: 5px 0">目标管理</div>
  4172. </div>
  4173. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  4174. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  4175. <div class="checkDiv" v-else>
  4176. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4177. </div>
  4178. </div>
  4179. </div> -->
  4180. <!-- <div class="tool">
  4181. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4182. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  4183. <div style="margin: 5px 0">汉字宫</div>
  4184. </div>
  4185. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4186. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4187. <div class="checkDiv" v-else>
  4188. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4189. </div>
  4190. </div>
  4191. </div> -->
  4192. </div>
  4193. </div>
  4194. <!-- v-show="!itemTool.isFold3" -->
  4195. <div>
  4196. <textarea
  4197. rows="2"
  4198. v-autoHeight="70"
  4199. type="text"
  4200. placeholder="添加工具描述"
  4201. class="binfo_input"
  4202. style="
  4203. margin: 0 0 20px 0;
  4204. width: 100% !important;
  4205. "
  4206. v-model="itemTool.toolDetail"
  4207. ></textarea>
  4208. </div>
  4209. </div>
  4210. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  4211. <div class="addToolImg">
  4212. <img src="../../assets/icon/add.png" alt />
  4213. </div>
  4214. <div>添加工具</div>
  4215. </div> -->
  4216. <button
  4217. class="c_pub_button_add pub_btn_tool_img"
  4218. @click="addToolFun(itemTaskIndex)"
  4219. style="
  4220. margin: 0 auto;
  4221. padding: 0 30px;
  4222. height: 45px;
  4223. "
  4224. >
  4225. 添加工具
  4226. </button>
  4227. </div>
  4228. </div>
  4229. <div
  4230. v-else-if="
  4231. unitJson[unitIndex].easy == 2 ||
  4232. unitJson[unitIndex].easy == 4
  4233. "
  4234. class="toolChoose"
  4235. style="padding: 0 0 40px"
  4236. >
  4237. <div class="tools">
  4238. <div
  4239. class="leftTools"
  4240. style="width: 100%"
  4241. v-for="(
  4242. itemTool, toolIndex
  4243. ) in itemTask.toolChoose"
  4244. :key="toolIndex"
  4245. >
  4246. <div>
  4247. <textarea
  4248. rows="3"
  4249. type="text"
  4250. placeholder="添加工具描述"
  4251. class="binfo_input"
  4252. style="
  4253. margin: 0 0 20px 0;
  4254. width: 100% !important;
  4255. "
  4256. v-model="itemTool.toolDetail"
  4257. ></textarea>
  4258. </div>
  4259. <div
  4260. style="
  4261. display: flex;
  4262. flex-direction: row;
  4263. align-items: baseline;
  4264. flex-wrap: nowrap;
  4265. justify-content: flex-start;
  4266. position: relative;
  4267. "
  4268. >
  4269. <div
  4270. style="margin-right: 20px; font-weight: bold"
  4271. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4272. >
  4273. 工具 {{ toolIndex + 1 }} :
  4274. </div>
  4275. <div
  4276. class="remove"
  4277. @click="deleteTool(itemTaskIndex, toolIndex)"
  4278. v-if="itemTask.toolChoose.length > 1"
  4279. style="right: 0"
  4280. ></div>
  4281. </div>
  4282. <div style="min-height: 163px">
  4283. <div class="toolSort">
  4284. <div class="tool">
  4285. <div
  4286. class="whiteBIcon"
  4287. @click="
  4288. openTools(itemTaskIndex, 1, toolIndex)
  4289. "
  4290. >
  4291. <img
  4292. src="../../assets/icon/secondToolList/whiteBoard.png"
  4293. alt
  4294. />
  4295. <div style="margin: 5px 0">电子白板</div>
  4296. </div>
  4297. <div
  4298. class="check"
  4299. @click="
  4300. addTools(1, itemTaskIndex, toolIndex)
  4301. "
  4302. >
  4303. <img
  4304. src="../../assets/icon/checkNo.png"
  4305. alt
  4306. v-if="itemTool.tool.indexOf(1) == -1"
  4307. />
  4308. <div class="checkDiv" v-else>
  4309. <img
  4310. src="../../assets/icon/checkedIs.png"
  4311. alt
  4312. /><span>已选择</span>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. <div class="tool">
  4317. <div
  4318. class="whiteBIcon"
  4319. @click="
  4320. openTools(itemTaskIndex, 52, toolIndex)
  4321. "
  4322. >
  4323. <img
  4324. src="../../assets/icon/fourthToolList/text.png"
  4325. alt
  4326. />
  4327. <div style="margin: 5px 0">文档</div>
  4328. </div>
  4329. <div
  4330. class="check"
  4331. @click="
  4332. addTools(52, itemTaskIndex, toolIndex)
  4333. "
  4334. >
  4335. <img
  4336. src="../../assets/icon/checkNo.png"
  4337. alt
  4338. v-if="itemTool.tool.indexOf(52) == -1"
  4339. />
  4340. <div class="checkDiv" v-else>
  4341. <img
  4342. src="../../assets/icon/checkedIs.png"
  4343. alt
  4344. /><span>已选择</span>
  4345. </div>
  4346. </div>
  4347. </div>
  4348. <div class="tool">
  4349. <div
  4350. class="whiteBIcon"
  4351. @click="
  4352. openTools(itemTaskIndex, 3, toolIndex)
  4353. "
  4354. >
  4355. <img
  4356. src="../../assets/icon/secondToolList/mindMapping.png"
  4357. alt
  4358. />
  4359. <div style="margin: 5px 0">思维导图</div>
  4360. </div>
  4361. <div
  4362. class="check"
  4363. @click="
  4364. addTools(3, itemTaskIndex, toolIndex)
  4365. "
  4366. >
  4367. <img
  4368. src="../../assets/icon/checkNo.png"
  4369. alt
  4370. v-if="itemTool.tool.indexOf(3) == -1"
  4371. />
  4372. <div class="checkDiv" v-else>
  4373. <img
  4374. src="../../assets/icon/checkedIs.png"
  4375. alt
  4376. /><span>已选择</span>
  4377. </div>
  4378. </div>
  4379. </div>
  4380. <div class="tool">
  4381. <div
  4382. class="whiteBIcon"
  4383. @click="
  4384. openTools(itemTaskIndex, 4, toolIndex)
  4385. "
  4386. >
  4387. <img
  4388. src="../../assets/icon/thirdToolList/ask.png"
  4389. alt
  4390. />
  4391. <div style="margin: 5px 0">问卷调查</div>
  4392. </div>
  4393. <div
  4394. class="check"
  4395. @click="
  4396. addTools(4, itemTaskIndex, toolIndex)
  4397. "
  4398. >
  4399. <img
  4400. src="../../assets/icon/checkNo.png"
  4401. alt
  4402. v-if="itemTool.tool.indexOf(4) == -1"
  4403. />
  4404. <div class="checkDiv" v-else>
  4405. <img
  4406. src="../../assets/icon/checkedIs.png"
  4407. alt
  4408. /><span>已选择</span>
  4409. </div>
  4410. </div>
  4411. </div>
  4412. <div class="tool">
  4413. <div
  4414. class="whiteBIcon"
  4415. @click="
  4416. openTools(itemTaskIndex, 45, toolIndex)
  4417. "
  4418. >
  4419. <img
  4420. src="../../assets/icon/thirdToolList/choose.png"
  4421. alt
  4422. />
  4423. <div style="margin: 5px 0">选择题</div>
  4424. </div>
  4425. <div
  4426. class="check"
  4427. @click="
  4428. addTools(45, itemTaskIndex, toolIndex)
  4429. "
  4430. >
  4431. <img
  4432. src="../../assets/icon/checkNo.png"
  4433. alt
  4434. v-if="itemTool.tool.indexOf(45) == -1"
  4435. />
  4436. <div class="checkDiv" v-else>
  4437. <img
  4438. src="../../assets/icon/checkedIs.png"
  4439. alt
  4440. /><span>已选择</span>
  4441. </div>
  4442. </div>
  4443. </div>
  4444. <div class="tool">
  4445. <div
  4446. class="whiteBIcon"
  4447. @click="
  4448. openTools(itemTaskIndex, 15, toolIndex)
  4449. "
  4450. >
  4451. <img
  4452. src="../../assets/icon/thirdToolList/answer.png"
  4453. alt
  4454. />
  4455. <div style="margin: 5px 0">问答</div>
  4456. </div>
  4457. <div
  4458. class="check"
  4459. @click="
  4460. addTools(15, itemTaskIndex, toolIndex)
  4461. "
  4462. >
  4463. <img
  4464. src="../../assets/icon/checkNo.png"
  4465. alt
  4466. v-if="itemTool.tool.indexOf(15) == -1"
  4467. />
  4468. <div class="checkDiv" v-else>
  4469. <img
  4470. src="../../assets/icon/checkedIs.png"
  4471. alt
  4472. /><span>已选择</span>
  4473. </div>
  4474. </div>
  4475. </div>
  4476. <div class="tool">
  4477. <div
  4478. class="whiteBIcon"
  4479. @click="
  4480. addTools(16, itemTaskIndex, toolIndex)
  4481. "
  4482. >
  4483. <img
  4484. src="../../assets/icon/thirdToolList/work.png"
  4485. alt
  4486. />
  4487. <div style="margin: 5px 0">作业提交</div>
  4488. </div>
  4489. <div
  4490. class="check"
  4491. @click="
  4492. addTools(16, itemTaskIndex, toolIndex)
  4493. "
  4494. >
  4495. <img
  4496. src="../../assets/icon/checkNo.png"
  4497. alt
  4498. v-if="itemTool.tool.indexOf(16) == -1"
  4499. />
  4500. <div class="checkDiv" v-else>
  4501. <img
  4502. src="../../assets/icon/checkedIs.png"
  4503. alt
  4504. /><span>已选择</span>
  4505. </div>
  4506. </div>
  4507. </div>
  4508. <div class="tool">
  4509. <div
  4510. class="whiteBIcon"
  4511. @click="
  4512. openTools(itemTaskIndex, 50, toolIndex)
  4513. "
  4514. >
  4515. <img
  4516. src="../../assets/icon/thirdToolList/plwork.png"
  4517. alt
  4518. />
  4519. <div style="margin: 5px 0">批量上传</div>
  4520. </div>
  4521. <div
  4522. class="check"
  4523. @click="
  4524. addTools(50, itemTaskIndex, toolIndex)
  4525. "
  4526. >
  4527. <img
  4528. src="../../assets/icon/checkNo.png"
  4529. alt
  4530. v-if="itemTool.tool.indexOf(50) == -1"
  4531. />
  4532. <div class="checkDiv" v-else>
  4533. <img
  4534. src="../../assets/icon/checkedIs.png"
  4535. alt
  4536. /><span>已选择</span>
  4537. </div>
  4538. </div>
  4539. </div>
  4540. <div class="tool">
  4541. <div
  4542. class="whiteBIcon"
  4543. @click="
  4544. openTools(itemTaskIndex, 41, toolIndex)
  4545. "
  4546. >
  4547. <img
  4548. src="../../assets/icon/thirdToolList/select.png"
  4549. alt
  4550. />
  4551. <div style="margin: 5px 0">选择匹配</div>
  4552. </div>
  4553. <div
  4554. class="check"
  4555. @click="
  4556. addTools(41, itemTaskIndex, toolIndex)
  4557. "
  4558. >
  4559. <img
  4560. src="../../assets/icon/checkNo.png"
  4561. alt
  4562. v-if="itemTool.tool.indexOf(41) == -1"
  4563. />
  4564. <div class="checkDiv" v-else>
  4565. <img
  4566. src="../../assets/icon/checkedIs.png"
  4567. alt
  4568. /><span>已选择</span>
  4569. </div>
  4570. </div>
  4571. </div>
  4572. <div class="tool">
  4573. <div
  4574. class="whiteBIcon"
  4575. @click="
  4576. openTools(itemTaskIndex, 47, toolIndex)
  4577. "
  4578. >
  4579. <img
  4580. src="../../assets/icon/fourthToolList/conSentences.png"
  4581. alt
  4582. />
  4583. <div style="margin: 5px 0">排序</div>
  4584. </div>
  4585. <div
  4586. class="check"
  4587. @click="
  4588. addTools(47, itemTaskIndex, toolIndex)
  4589. "
  4590. >
  4591. <img
  4592. src="../../assets/icon/checkNo.png"
  4593. alt
  4594. v-if="itemTool.tool.indexOf(47) == -1"
  4595. />
  4596. <div class="checkDiv" v-else>
  4597. <img
  4598. src="../../assets/icon/checkedIs.png"
  4599. alt
  4600. /><span>已选择</span>
  4601. </div>
  4602. </div>
  4603. </div>
  4604. <div class="tool">
  4605. <div
  4606. class="whiteBIcon"
  4607. @click="
  4608. openTools(itemTaskIndex, 48, toolIndex)
  4609. "
  4610. >
  4611. <img
  4612. src="../../assets/icon/fourthToolList/table.png"
  4613. alt
  4614. />
  4615. <div style="margin: 5px 0">表格</div>
  4616. </div>
  4617. <div
  4618. class="check"
  4619. @click="
  4620. addTools(48, itemTaskIndex, toolIndex)
  4621. "
  4622. >
  4623. <img
  4624. src="../../assets/icon/checkNo.png"
  4625. alt
  4626. v-if="itemTool.tool.indexOf(48) == -1"
  4627. />
  4628. <div class="checkDiv" v-else>
  4629. <img
  4630. src="../../assets/icon/checkedIs.png"
  4631. alt
  4632. /><span>已选择</span>
  4633. </div>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. </div>
  4638. </div>
  4639. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4640. <div class="addToolImg">
  4641. <img src="../../assets/icon/add.png" alt />
  4642. </div>
  4643. <div>添加工具</div>
  4644. </div> -->
  4645. <button
  4646. class="c_pub_button_add pub_btn_tool_img"
  4647. @click="addToolFun(itemTaskIndex)"
  4648. style="margin: 35px auto 20px"
  4649. >
  4650. 添加工具
  4651. </button>
  4652. </div>
  4653. </div>
  4654. <div
  4655. v-else-if="
  4656. unitJson[unitIndex].easy == 1 ||
  4657. (unitJson[unitIndex].easy == 5 &&
  4658. itemTask.taskType == 2)
  4659. "
  4660. class="toolChoose"
  4661. style="padding: 0 0 40px"
  4662. >
  4663. <div class="tools">
  4664. <div
  4665. class="leftTools"
  4666. style="width: 100%; padding: 0 0 15px 0"
  4667. v-for="(
  4668. itemTool, toolIndex
  4669. ) in itemTask.toolChoose"
  4670. :key="toolIndex"
  4671. >
  4672. <div style="min-height: 163px">
  4673. <div class="toolSort">
  4674. <div class="tool">
  4675. <div
  4676. class="whiteBIcon"
  4677. @click="
  4678. openTools(itemTaskIndex, 50, toolIndex)
  4679. "
  4680. >
  4681. <img
  4682. src="../../assets/icon/thirdToolList/plwork.png"
  4683. alt
  4684. />
  4685. <div style="margin: 5px 0">批量上传</div>
  4686. </div>
  4687. <div
  4688. class="check"
  4689. @click="
  4690. addTools(50, itemTaskIndex, toolIndex)
  4691. "
  4692. >
  4693. <img
  4694. src="../../assets/icon/checkNo.png"
  4695. alt
  4696. v-if="itemTool.tool.indexOf(50) == -1"
  4697. />
  4698. <div class="checkDiv" v-else>
  4699. <img
  4700. src="../../assets/icon/checkedIs.png"
  4701. alt
  4702. /><span>已选择</span>
  4703. </div>
  4704. </div>
  4705. </div>
  4706. </div>
  4707. </div>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. <div
  4712. class="elist_css"
  4713. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4714. >
  4715. <div class="elist_title">
  4716. <div
  4717. style="
  4718. display: flex;
  4719. flex-direction: row;
  4720. align-items: center;
  4721. margin: 20px 0;
  4722. "
  4723. >
  4724. <div class="lineTitle clineTitle">评价设置</div>
  4725. <!-- <div class="line" style="width: 90%"></div> -->
  4726. </div>
  4727. </div>
  4728. <div class="mbCss">
  4729. <div
  4730. class="pjCss"
  4731. :style="{
  4732. width: itemTask.isEvaFold
  4733. ? 'calc(100% - 55%)'
  4734. : 'calc(100% - 120px)',
  4735. }"
  4736. >
  4737. <div
  4738. v-if="itemTask.eList && itemTask.eList.length"
  4739. class="elist_input"
  4740. >
  4741. <div
  4742. v-for="(eItem, eIndex) in itemTask.eList"
  4743. :key="eIndex"
  4744. class="elist_input_box"
  4745. >
  4746. <span>评价维度:</span>
  4747. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4748. <input
  4749. type="input"
  4750. v-model="itemTask.eList[eIndex].value"
  4751. placeholder="填写评价维度"
  4752. />
  4753. <!-- </el-tooltip> -->
  4754. <!-- <span>评星等级:</span>
  4755. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4756. disabled></el-rate> -->
  4757. <div
  4758. class="remove"
  4759. @click="
  4760. deletEList(
  4761. unitIndex,
  4762. itemTaskIndex,
  4763. eIndex
  4764. )
  4765. "
  4766. ></div>
  4767. <div class="elist_inptu_text">
  4768. <span>维度描述:</span>
  4769. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4770. <input
  4771. type="input"
  4772. v-model="itemTask.eList[eIndex].detail"
  4773. placeholder="填写维度描述"
  4774. />
  4775. <!-- </el-tooltip> -->
  4776. </div>
  4777. <div class="elist_inptu_text" v-if="evalua">
  4778. <span>目标:</span>
  4779. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4780. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4781. @change="forceUpdate()">
  4782. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4783. :value="e.name">
  4784. </el-option>
  4785. </el-select> -->
  4786. <el-cascader
  4787. :options="targetArray"
  4788. v-model="itemTask.eList[eIndex].target"
  4789. :props="{ checkStrictly: true }"
  4790. :show-all-levels="false"
  4791. clearable
  4792. ></el-cascader>
  4793. </div>
  4794. </div>
  4795. </div>
  4796. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4797. style="margin: 35px 35px 0 0">
  4798. <div class="addToolImg">
  4799. <img src="../../assets/icon/add.png" alt />
  4800. </div>
  4801. <div>添加</div>
  4802. </div> -->
  4803. <div class="eva_btn_box">
  4804. <div class="eva_btn_left_box">
  4805. <button
  4806. class="c_pub_button_add pub_btn_eval_img"
  4807. @click="addEList(unitIndex, itemTaskIndex)"
  4808. >
  4809. 添加
  4810. </button>
  4811. <button
  4812. class="c_pub_button_add pub_btn_eval_source_img"
  4813. @click="openEList(unitIndex, itemTaskIndex)"
  4814. >
  4815. 资源
  4816. </button>
  4817. </div>
  4818. <button
  4819. class="c_pub_button_add"
  4820. @click="addCET(unitIndex, itemTaskIndex)"
  4821. v-if="itemTask.eList && itemTask.eList.length"
  4822. >
  4823. 添加资源模板
  4824. </button>
  4825. </div>
  4826. </div>
  4827. <div
  4828. v-if="evalua"
  4829. style="
  4830. border: 1px solid #e5e5e5;
  4831. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4832. "
  4833. :style="{
  4834. width: itemTask.isEvaFold ? '55%' : '116px',
  4835. }"
  4836. class="evaCss"
  4837. >
  4838. <!-- <div class="e_add_top">
  4839. <div class="e_add_title">
  4840. <span>当前使用目标管理</span>
  4841. <span>{{ eTitle }}</span>
  4842. <img src="../../assets/line.png" class="cru_line" style="
  4843. width: 125px;
  4844. height: 20px;
  4845. bottom: -10px;
  4846. left: 155px;
  4847. " />
  4848. </div>
  4849. </div> -->
  4850. <div class="e_add_content" style="width: 100%">
  4851. <div
  4852. class="e_add_list_pbox"
  4853. style="width: 100%"
  4854. >
  4855. <div class="e_add_list_pbox_title">
  4856. <span
  4857. class="type_title"
  4858. v-if="itemTask.isEvaFold"
  4859. >切换模式</span
  4860. >
  4861. <div
  4862. class="type_content"
  4863. v-if="itemTask.isEvaFold"
  4864. >
  4865. <span
  4866. :class="{ active: typeMode == 1 }"
  4867. @click="OtherMb(1, itemTaskIndex)"
  4868. >目标树</span
  4869. >
  4870. <span
  4871. :class="{ active: typeMode == 2 }"
  4872. @click="OtherMb(2, itemTaskIndex)"
  4873. >目标罗盘</span
  4874. >
  4875. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4876. </div>
  4877. <div
  4878. v-if="itemTask.isEvaFold"
  4879. class="show_taskD show"
  4880. style="margin: 0 0 0 auto"
  4881. @click="foldEva(itemTaskIndex)"
  4882. >
  4883. <img
  4884. src="../../assets/icon/new/icon-slide.png"
  4885. />收起目标
  4886. </div>
  4887. <div
  4888. v-else
  4889. style="margin: 0 0 0 auto"
  4890. class="show_taskD"
  4891. @click="foldEva(itemTaskIndex)"
  4892. >
  4893. <img
  4894. src="../../assets/icon/new/icon-slide.png"
  4895. />展开目标
  4896. </div>
  4897. </div>
  4898. <div
  4899. class="e_add_list_pbox_content"
  4900. v-if="itemTask.isEvaFold"
  4901. style="min-height: 200px"
  4902. >
  4903. <Mind
  4904. :showBar="false"
  4905. :mindData="data"
  4906. style="width: 100%"
  4907. :jsmindId="
  4908. unitIndex + '-' + itemTaskIndex + 'mind'
  4909. "
  4910. v-if="typeMode == 1"
  4911. ></Mind>
  4912. <Sunburst
  4913. :Josn="eJson"
  4914. :num="eJSONNum"
  4915. style="width: 100%"
  4916. v-if="typeMode == 2"
  4917. >
  4918. </Sunburst>
  4919. <SeeBoard
  4920. :Josn="eJson"
  4921. :num="eJSONNum"
  4922. :ename="eTitle"
  4923. style="width: 100%"
  4924. v-if="typeMode == 3"
  4925. ></SeeBoard>
  4926. </div>
  4927. </div>
  4928. </div>
  4929. </div>
  4930. </div>
  4931. </div>
  4932. <div class="funBlock" style="padding: 0">
  4933. <div
  4934. class="fold"
  4935. @click="fold(itemTaskIndex, $event)"
  4936. >
  4937. <div
  4938. class="arrow"
  4939. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4940. ></div>
  4941. <div>
  4942. {{
  4943. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4944. }}
  4945. </div>
  4946. </div>
  4947. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4948. <div>展开</div>
  4949. <div class="arrow">
  4950. <img src="../../assets/icon/expand.png" alt />
  4951. </div>
  4952. </div> -->
  4953. </div>
  4954. </div>
  4955. </div>
  4956. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4957. <!-- <div>
  4958. <img src="../../../assets/icon/new/addStage.png" alt />
  4959. <span>添加任务</span>
  4960. </div> -->
  4961. <button
  4962. class="c_pub_button_confirm pub_btn_add_task_img"
  4963. @click="addTaskBorder"
  4964. >
  4965. 添加任务
  4966. </button>
  4967. </div>
  4968. </div>
  4969. <div class="info_btnBox3">
  4970. <button
  4971. class="c_pub_button_return pub_btn_return_img"
  4972. v-if="steps == 1"
  4973. @click="
  4974. goTo(
  4975. '/course?userid=' +
  4976. userid +
  4977. '&oid=' +
  4978. oid +
  4979. '&org=' +
  4980. org +
  4981. '&role=' +
  4982. role
  4983. )
  4984. "
  4985. >
  4986. 返回课程
  4987. </button>
  4988. <button
  4989. class="c_pub_button_return pub_btn_last_img"
  4990. v-if="steps > 1 && steps != 5"
  4991. @click="lastSteps"
  4992. style="background: #dbdbdb"
  4993. >
  4994. {{ steps == 4 ? "返回课程" : "上一步" }}
  4995. </button>
  4996. <button
  4997. class="c_pub_button_confirm"
  4998. v-if="steps < 4"
  4999. @click="nextSteps"
  5000. :class="{
  5001. pub_btn_next_img: steps != 3,
  5002. pub_btn_finish_img: steps == 3,
  5003. }"
  5004. >
  5005. {{ steps == 3 ? "确认上传" : "下一步" }}
  5006. </button>
  5007. </div>
  5008. </div>
  5009. </div>
  5010. </div>
  5011. </div>
  5012. <div
  5013. style="
  5014. width: calc(100% - 20px);
  5015. background: rgb(255, 255, 255);
  5016. border-radius: 10px;
  5017. "
  5018. v-if="steps == 4"
  5019. >
  5020. <div class="basic_box_success">
  5021. <div class="right_img">
  5022. <img src="../../assets/icon/right.png" alt />
  5023. </div>
  5024. <div style="font-weight: bold">成功</div>
  5025. <!-- <div>您的课程编号</div>
  5026. <div class="number">{{ number }}</div>-->
  5027. <!-- <div class="success_button">
  5028. <div class="look_course" @click="isNoFinsh">
  5029. 邀请老师协同编辑
  5030. </div>
  5031. <div class="attend_others" @click="goCourse">预览课程</div>
  5032. </div> -->
  5033. </div>
  5034. </div>
  5035. <div
  5036. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  5037. @mouseenter="btnDisplay(true)"
  5038. @mouseleave="btnDisplay(false)"
  5039. v-if="false"
  5040. >
  5041. <button
  5042. class="c_pub_button_return pub_btn_return_img"
  5043. v-if="steps == 1 && isBtnDisplay"
  5044. @click="
  5045. goTo(
  5046. '/course?userid=' +
  5047. userid +
  5048. '&oid=' +
  5049. oid +
  5050. '&org=' +
  5051. org +
  5052. '&role=' +
  5053. role
  5054. )
  5055. "
  5056. >
  5057. 返回课程
  5058. </button>
  5059. <button
  5060. class="c_pub_button_return pub_btn_last_img"
  5061. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5062. @click="lastSteps"
  5063. >
  5064. {{ steps == 4 ? "返回课程" : "上一步" }}
  5065. </button>
  5066. <button
  5067. class="c_pub_button_confirm"
  5068. v-if="steps < 4 && isBtnDisplay"
  5069. @click="nextSteps"
  5070. :class="{
  5071. pub_btn_next_img: steps != 3,
  5072. pub_btn_finish_img: steps == 3,
  5073. }"
  5074. >
  5075. {{ steps == 3 ? "确认上传" : "下一步" }}
  5076. </button>
  5077. </div>
  5078. </div>
  5079. </div>
  5080. </div>
  5081. <el-dialog
  5082. title="提示"
  5083. :visible.sync="dialogVisible"
  5084. :append-to-body="true"
  5085. width="25%"
  5086. :before-close="handleClose"
  5087. class="dialog_diy2 customWidth"
  5088. >
  5089. <div>请复制该链接邀请协同编辑</div>
  5090. <div>http://www.boomyon.com/index-zhang.com</div>
  5091. <span slot="footer" class="dialog-footer">
  5092. <el-button type="primary">复制链接分享</el-button>
  5093. <el-button @click="dialogVisible = false">取消</el-button>
  5094. </span>
  5095. </el-dialog>
  5096. <el-dialog
  5097. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5098. :visible.sync="dialogVisible1"
  5099. :append-to-body="true"
  5100. width="25%"
  5101. :before-close="handleClose"
  5102. class="dialog_diy2 customWidth"
  5103. >
  5104. <el-form>
  5105. <el-form-item label="文档标题">
  5106. <el-input
  5107. v-model="tTitle"
  5108. auto-complete="off"
  5109. placeholder="请输入文档标题名..."
  5110. ></el-input>
  5111. </el-form-item>
  5112. <div>文档简介</div>
  5113. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5114. </el-form>
  5115. <span slot="footer" class="dialog-footer">
  5116. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5117. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5118. >添加</el-button
  5119. >
  5120. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5121. </span>
  5122. </el-dialog>
  5123. <el-dialog
  5124. title="添加文档"
  5125. :visible.sync="dialogVisible2"
  5126. :append-to-body="true"
  5127. width="500px"
  5128. :before-close="handleClose"
  5129. class="dialog_diy"
  5130. >
  5131. <el-form>
  5132. <el-form-item label="文档标题">
  5133. <el-input
  5134. v-model="templateC.title"
  5135. auto-complete="off"
  5136. placeholder="请输入文档标题名..."
  5137. ></el-input>
  5138. </el-form-item>
  5139. <div>文档内容</div>
  5140. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5141. </el-form>
  5142. <span slot="footer" class="dialog-footer">
  5143. <el-button @click="clearChoose">取 消</el-button>
  5144. <el-button type="primary" @click="wordNext()">确定</el-button>
  5145. </span>
  5146. </el-dialog>
  5147. <el-dialog
  5148. title="添加富文本"
  5149. :visible.sync="dialogVisible6"
  5150. :append-to-body="true"
  5151. width="500px"
  5152. :before-close="handleClose"
  5153. class="dialog_diy"
  5154. >
  5155. <el-form>
  5156. <el-form-item label="文本标题">
  5157. <el-input
  5158. ref="fuInput"
  5159. v-model="AttText.title"
  5160. auto-complete="off"
  5161. @input="change2"
  5162. placeholder="请输入文本标题..."
  5163. ></el-input>
  5164. </el-form-item>
  5165. <!-- <div>富文本内容</div> -->
  5166. <editor-bar
  5167. v-model="AttText.text"
  5168. @change="change"
  5169. v-if="dialogVisible6"
  5170. ></editor-bar>
  5171. </el-form>
  5172. <span slot="footer" class="dialog-footer">
  5173. <el-button @click="clearAttText">取 消</el-button>
  5174. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5175. </span>
  5176. </el-dialog>
  5177. <el-dialog
  5178. title="添加链接"
  5179. :visible.sync="dialogVisible7"
  5180. :append-to-body="true"
  5181. width="500px"
  5182. :before-close="handleClose"
  5183. class="dialog_diy lineCss"
  5184. >
  5185. <el-form>
  5186. <el-form-item label="标题" :label-width="formLabelWidth">
  5187. <span>
  5188. <el-input
  5189. placeholder="请输入链接标题"
  5190. clearable
  5191. v-model="lineTitle"
  5192. class="add_input"
  5193. ></el-input>
  5194. </span>
  5195. </el-form-item>
  5196. <el-form-item label="链接" :label-width="formLabelWidth">
  5197. <span>
  5198. <el-input
  5199. placeholder="请输入链接"
  5200. clearable
  5201. v-model="line"
  5202. class="add_input"
  5203. ></el-input>
  5204. </span>
  5205. </el-form-item>
  5206. </el-form>
  5207. <span slot="footer" class="dialog-footer">
  5208. <el-button @click="clearLine">取 消</el-button>
  5209. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5210. </span>
  5211. </el-dialog>
  5212. <el-dialog
  5213. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5214. :visible.sync="dialogVisibleSource"
  5215. :append-to-body="true"
  5216. width="100%"
  5217. :before-close="handleClose"
  5218. class="dialog_diy source_diy"
  5219. >
  5220. <div>
  5221. <sourceDialog
  5222. :sourceData.sync="sourceData"
  5223. :updateSourcePan="updateSourcePan"
  5224. ></sourceDialog>
  5225. </div>
  5226. <span slot="footer" class="dialog-footer">
  5227. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5228. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5229. >确定</el-button
  5230. >
  5231. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5232. </span>
  5233. </el-dialog>
  5234. <el-dialog
  5235. title="添加课程成员"
  5236. :visible.sync="dialogVisible3"
  5237. :append-to-body="true"
  5238. width="25%"
  5239. height="80%"
  5240. :before-close="handleClose"
  5241. class="addNewPP customWidth"
  5242. >
  5243. <div class="people">
  5244. <div class="people_top">
  5245. <div class="people_nav">选择成员</div>
  5246. <div class="people_top_right">
  5247. <div class="people_search">
  5248. <el-input
  5249. style="height: 100%"
  5250. placeholder="搜索成员名称"
  5251. v-model="searchPeople"
  5252. ></el-input>
  5253. <div class="search_img" @click="searchStudent">
  5254. <img src="../../assets/icon/search.png" alt />
  5255. </div>
  5256. </div>
  5257. </div>
  5258. </div>
  5259. <el-checkbox-group v-model="checkboxList" class="people_name">
  5260. <el-checkbox
  5261. v-for="item in studentJuri"
  5262. :key="item.userid"
  5263. :label="item.userid"
  5264. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5265. >
  5266. </el-checkbox-group>
  5267. </div>
  5268. <span slot="footer" class="dialog-footer">
  5269. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5270. <el-button type="primary" @click="isAddPP">确定</el-button>
  5271. </span>
  5272. </el-dialog>
  5273. <el-dialog
  5274. title="选择授课班级"
  5275. :visible.sync="dialogVisibleClass"
  5276. :append-to-body="true"
  5277. width="600px"
  5278. height="80%"
  5279. :before-close="handleClose"
  5280. class="addNewPP2"
  5281. >
  5282. <div class="check_classBox">
  5283. <div class="check_class_right">
  5284. <div
  5285. class="check_class"
  5286. :class="{ activeX: gradeId == '' }"
  5287. @click="(gradeId = ''), getClass()"
  5288. >
  5289. 全部
  5290. </div>
  5291. <el-tooltip
  5292. placement="top"
  5293. :content="item.name"
  5294. v-for="(item, index) in gradeList"
  5295. :key="index"
  5296. >
  5297. <div
  5298. class="check_class"
  5299. :class="{ activeX: gradeId == item.id }"
  5300. @click="(gradeId = item.id), getClass()"
  5301. >
  5302. {{ item.name }}
  5303. </div>
  5304. </el-tooltip>
  5305. </div>
  5306. <div class="check_class_left">
  5307. <div class="check_class_all_box">
  5308. <div class="check_class_left_title">选择班级</div>
  5309. <div style="display: flex; align-items: center; margin-left: auto">
  5310. <el-checkbox
  5311. v-model="checkAll"
  5312. @change="handleCheckAllChange"
  5313. class="all_check"
  5314. >全选</el-checkbox
  5315. >
  5316. </div>
  5317. </div>
  5318. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5319. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5320. </div> -->
  5321. <el-checkbox-group
  5322. v-model="checkboxList2"
  5323. class="check_class_item"
  5324. @change="InviteChange"
  5325. v-if="grade2.length"
  5326. >
  5327. <div v-for="item in grade2" :key="item.id" class="class_item">
  5328. <el-checkbox :label="item.id">
  5329. {{ item.name }}
  5330. </el-checkbox>
  5331. </div>
  5332. </el-checkbox-group>
  5333. <div v-if="!grade2.length">暂无数据</div>
  5334. </div>
  5335. </div>
  5336. <span slot="footer" class="dialog-footer">
  5337. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5338. <el-button type="primary" @click="isAddClass">确定</el-button>
  5339. </span>
  5340. </el-dialog>
  5341. <el-dialog
  5342. title="添加协同成员"
  5343. :visible.sync="dialogVisibleMember"
  5344. :append-to-body="true"
  5345. width="25%"
  5346. height="80%"
  5347. :before-close="handleClose"
  5348. class="addNewPP customWidth"
  5349. >
  5350. <div class="people">
  5351. <div class="people_top">
  5352. <div class="people_top_right">
  5353. <div class="people_search">
  5354. <el-input
  5355. placeholder="搜索成员名称"
  5356. v-model="searchTN"
  5357. @keyup.enter.native="getTeacher"
  5358. ></el-input>
  5359. <div class="search_img" @click="getTeacher">
  5360. <img src="../../assets/icon/search.png" alt />
  5361. </div>
  5362. </div>
  5363. </div>
  5364. <div class="people_nav" style="display: flex; align-items: center">
  5365. <div class="check_class_left_title">选择成员</div>
  5366. <div style="display: flex; align-items: center; margin-left: auto">
  5367. <el-checkbox
  5368. v-model="checkAll2"
  5369. @change="handleCheckAllChange2"
  5370. class="all_check"
  5371. >全选</el-checkbox
  5372. >
  5373. </div>
  5374. </div>
  5375. </div>
  5376. <el-checkbox-group
  5377. v-model="checkboxList3"
  5378. class="people_name"
  5379. v-if="teacherJuri.length"
  5380. @change="InviteChange2"
  5381. >
  5382. <el-checkbox
  5383. v-for="item in teacherJuri"
  5384. :key="item.userid"
  5385. :label="item.userid"
  5386. >
  5387. <div class="t_j_box">
  5388. <el-tooltip
  5389. placement="top"
  5390. :content="item.name ? item.name : '暂无姓名'"
  5391. >
  5392. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5393. </el-tooltip>
  5394. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5395. <span>{{ item.username.split('@')[0] }}</span>
  5396. </el-tooltip>
  5397. <el-tooltip placement="top" :content="item.school">
  5398. <span>{{ item.school }}</span>
  5399. </el-tooltip>
  5400. </div>
  5401. </el-checkbox>
  5402. </el-checkbox-group>
  5403. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5404. </div>
  5405. <span slot="footer" class="dialog-footer">
  5406. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5407. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5408. </span>
  5409. </el-dialog>
  5410. <el-dialog
  5411. title="创建问卷"
  5412. :visible.sync="dialogVisible5"
  5413. :append-to-body="true"
  5414. width="800px"
  5415. :before-close="
  5416. (done) => {
  5417. closePan(4);
  5418. }
  5419. "
  5420. class="dialog_diy fullStyle"
  5421. >
  5422. <div style="height: 100%">
  5423. <div
  5424. class="a_add_title"
  5425. style="
  5426. display: flex;
  5427. flex-direction: row;
  5428. align-items: center;
  5429. justify-content: center;
  5430. "
  5431. >
  5432. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5433. <el-input
  5434. v-model="askJson.askTitle"
  5435. placeholder="请输入标题"
  5436. style="width: 400px"
  5437. ></el-input>
  5438. </div>
  5439. <div class="a_addBox" style="height: calc(100% - 50px)">
  5440. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5441. <div
  5442. class="a_add_box"
  5443. v-for="(item1, index1) in askJson.askCount"
  5444. :key="index1"
  5445. >
  5446. <div class="a_add_checkType">
  5447. <span
  5448. :class="{
  5449. active:
  5450. askJson.askJson[index1].type == '1' ||
  5451. !askJson.askJson[index1].type,
  5452. }"
  5453. @click="checkAskType('1', askJson.askJson[index1])"
  5454. >单选题</span
  5455. >
  5456. <span
  5457. :class="{ active: askJson.askJson[index1].type == '2' }"
  5458. @click="checkAskType('2', askJson.askJson[index1])"
  5459. >多选题</span
  5460. >
  5461. </div>
  5462. <div class="a_add_head">
  5463. <div
  5464. style="
  5465. display: flex;
  5466. align-items: center;
  5467. width: 100%;
  5468. margin-right: 20px;
  5469. "
  5470. >
  5471. <span style="min-width: fit-content">{{
  5472. index1 + 1 + "、"
  5473. }}</span>
  5474. <textarea
  5475. class="a_add_head_input textarea_css"
  5476. v-autoHeight="40"
  5477. v-model="askJson.askJson[index1].askstitle"
  5478. placeholder="请输入题目"
  5479. @change="
  5480. () => {
  5481. $forceUpdate();
  5482. }
  5483. "
  5484. ></textarea>
  5485. </div>
  5486. <div
  5487. class="moveBtn moveBtn2"
  5488. style="margin: 0 20px 0 0px"
  5489. v-if="askJson.askCount != 1"
  5490. >
  5491. <div
  5492. class="chapter_upload_up"
  5493. @click.stop="askMove(1, index1)"
  5494. ></div>
  5495. <div
  5496. class="chapter_upload_down"
  5497. @click.stop="askMove(2, index1)"
  5498. ></div>
  5499. </div>
  5500. <div class="a_add_head_div">
  5501. <el-button
  5502. type="primary"
  5503. size="small"
  5504. @click="deleteAskList(index1)"
  5505. v-if="askJson.askCount != 1"
  5506. >删除
  5507. </el-button>
  5508. <el-button
  5509. type="primary"
  5510. size="small"
  5511. @click="addAskList(index1)"
  5512. >添加</el-button
  5513. >
  5514. </div>
  5515. </div>
  5516. <div class="a_add_body">
  5517. <div class="a_add_input" style="flex-direction: column">
  5518. <div
  5519. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5520. :key="checkIndex"
  5521. style="
  5522. margin: 20px 10px 0 0;
  5523. display: flex;
  5524. align-items: center;
  5525. position: relative;
  5526. "
  5527. >
  5528. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  5529. <textarea
  5530. class="a_add_head_input textarea_css"
  5531. v-autoHeight="40"
  5532. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5533. placeholder="请输入选项"
  5534. style="width: 300px"
  5535. @change="
  5536. () => {
  5537. $forceUpdate();
  5538. }
  5539. "
  5540. ></textarea>
  5541. <div
  5542. class="moveBtn moveBtn2"
  5543. style="margin: 0 0px 0 20px"
  5544. v-if="askJson.askJson[index1].askItem != 1"
  5545. >
  5546. <div
  5547. class="chapter_upload_up"
  5548. @click.stop="checkMove(1, index1, checkIndex)"
  5549. ></div>
  5550. <div
  5551. class="chapter_upload_down"
  5552. @click.stop="checkMove(2, index1, checkIndex)"
  5553. ></div>
  5554. </div>
  5555. <div class="a_add_body_div">
  5556. <el-button
  5557. type="primary"
  5558. size="small"
  5559. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5560. >添加</el-button
  5561. >
  5562. <el-button
  5563. type="primary"
  5564. size="small"
  5565. @click="
  5566. deletecheckList(askJson.askJson[index1], checkIndex)
  5567. "
  5568. v-if="askJson.askJson[index1].askItem != 1"
  5569. >删除
  5570. </el-button>
  5571. </div>
  5572. </div>
  5573. </div>
  5574. <!-- <div class="a_add_body_div">
  5575. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5576. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5577. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5578. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5579. </el-button>
  5580. </div> -->
  5581. </div>
  5582. </div>
  5583. </div>
  5584. </div>
  5585. <span slot="footer" class="dialog-footer">
  5586. <el-button @click="closePan(4)">取 消</el-button>
  5587. <el-button type="primary" @click="addAsk">确 定</el-button>
  5588. </span>
  5589. </el-dialog>
  5590. <el-dialog
  5591. title="创建选择题"
  5592. :visible.sync="dialogVisibleChoice"
  5593. :append-to-body="true"
  5594. width="800px"
  5595. :before-close="
  5596. (done) => {
  5597. closePan(45);
  5598. }
  5599. "
  5600. class="dialog_diy fullStyle"
  5601. >
  5602. <div style="height: 100%">
  5603. <!-- <div class="a_add_title" style="
  5604. display: flex;
  5605. flex-direction: row;
  5606. align-items: center;
  5607. justify-content: center;
  5608. ">
  5609. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5610. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5611. </div> -->
  5612. <div class="a_addBox" style="height: 100%">
  5613. <div
  5614. style="
  5615. font-size: 16px;
  5616. color: #c7c7c7;
  5617. display: flex;
  5618. align-items: center;
  5619. "
  5620. >
  5621. <!-- 请输入题目内容 -->
  5622. <button
  5623. class="c_pub_button_add pub_btn_paste_img"
  5624. @click="pasteOption"
  5625. style="margin-left: 10px"
  5626. v-if="isPasteChoice"
  5627. >
  5628. 智能粘贴
  5629. </button>
  5630. </div>
  5631. <div
  5632. class="a_add_box"
  5633. v-for="(item1, index1) in testJson.testCount"
  5634. :key="index1"
  5635. >
  5636. <div class="a_add_checkType">
  5637. <span
  5638. :class="{ active: testJson.testJson[index1].type == '1' }"
  5639. @click="checkTestType('1', testJson.testJson[index1])"
  5640. >单选题</span
  5641. >
  5642. <span
  5643. :class="{ active: testJson.testJson[index1].type == '2' }"
  5644. @click="checkTestType('2', testJson.testJson[index1])"
  5645. >多选题</span
  5646. >
  5647. </div>
  5648. <div class="a_add_head">
  5649. <div class="timuUpImg">
  5650. <div style="display: flex; align-items: center">
  5651. <span style="min-width: fit-content">{{
  5652. index1 + 1 + "、"
  5653. }}</span>
  5654. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5655. placeholder="请输入题目">
  5656. </el-input> -->
  5657. <textarea
  5658. class="a_add_head_input textarea_css"
  5659. v-autoHeight="40"
  5660. v-model="testJson.testJson[index1].teststitle"
  5661. placeholder="请输入题目"
  5662. @change="
  5663. () => {
  5664. $forceUpdate();
  5665. }
  5666. "
  5667. ></textarea>
  5668. </div>
  5669. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5670. <div
  5671. class="chapter_upload_up"
  5672. @click.stop="testMove(1, index1)"
  5673. ></div>
  5674. <div
  5675. class="chapter_upload_down"
  5676. @click.stop="testMove(2, index1)"
  5677. ></div>
  5678. </div>
  5679. <div
  5680. class="xzUpImg"
  5681. @click.stop="addImg($event)"
  5682. style="margin-right: 10px"
  5683. >
  5684. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5685. <input
  5686. type="file"
  5687. accept="image/*"
  5688. style="display: none"
  5689. @change="beforeUploadTiMu($event, index1)"
  5690. />
  5691. </div>
  5692. </div>
  5693. <div class="a_add_head_div">
  5694. <el-button
  5695. type="primary"
  5696. size="small"
  5697. @click="deleteTestList(index1)"
  5698. v-if="testJson.testCount != 1"
  5699. >删除
  5700. </el-button>
  5701. <el-button
  5702. type="primary"
  5703. size="small"
  5704. @click="addTestList(index1)"
  5705. >添加</el-button
  5706. >
  5707. </div>
  5708. </div>
  5709. <div
  5710. class="timuImgBox"
  5711. v-if="
  5712. testJson.testJson[index1].timuList &&
  5713. testJson.testJson[index1].timuList.length
  5714. "
  5715. >
  5716. <div
  5717. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5718. :key="tIndex"
  5719. class="timuImg"
  5720. @click.stop="previewImg(timg.src)"
  5721. >
  5722. <img :src="timg.src" alt="" />
  5723. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5724. <img src="../../assets/icon/delete.png" alt="" />
  5725. </div>
  5726. </div>
  5727. </div>
  5728. <div class="a_add_body">
  5729. <div class="a_add_input a_add_input_choice">
  5730. <el-radio-group
  5731. v-model="testJson.testJson[index1].answer"
  5732. v-if="testJson.testJson[index1].type == 1"
  5733. @change="
  5734. () => {
  5735. $forceUpdate();
  5736. }
  5737. "
  5738. >
  5739. <div class="radioBox">
  5740. <el-radio
  5741. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5742. .testItem"
  5743. :key="checkIndex"
  5744. :label="checkIndex"
  5745. >
  5746. <div style="margin-right: 10px">
  5747. 选项{{ checkIndex + 1 }}
  5748. </div>
  5749. <div
  5750. style="margin-right: 10px; width: 300px"
  5751. v-if="
  5752. testJson.testJson[index1].checkList[checkIndex] &&
  5753. testJson.testJson[index1].checkList[checkIndex]
  5754. .imgType &&
  5755. testJson.testJson[index1].checkList[checkIndex]
  5756. .imgType == 1
  5757. "
  5758. >
  5759. <div
  5760. class="inImg"
  5761. @click.stop="
  5762. previewImg(
  5763. testJson.testJson[index1].checkList[checkIndex]
  5764. .src
  5765. )
  5766. "
  5767. >
  5768. <el-image
  5769. :src="
  5770. testJson.testJson[index1].checkList[checkIndex]
  5771. .src
  5772. "
  5773. lazy
  5774. />
  5775. <!-- <img :src="
  5776. testJson.testJson[index1].checkList[checkIndex]
  5777. .src
  5778. " alt="" /> -->
  5779. </div>
  5780. </div>
  5781. <textarea
  5782. class="a_add_head_input textarea_css"
  5783. v-autoHeight="40"
  5784. v-else
  5785. v-model="
  5786. testJson.testJson[index1].checkList[checkIndex]
  5787. "
  5788. placeholder="请输入选项"
  5789. style="width: 300px; margin-right: 10px"
  5790. @change="
  5791. () => {
  5792. $forceUpdate();
  5793. }
  5794. "
  5795. ></textarea>
  5796. <div class="xzUpImg" @click.stop="addImg($event)">
  5797. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5798. <input
  5799. type="file"
  5800. accept="image/*"
  5801. style="display: none"
  5802. @change="beforeUploadTi($event, index1, checkIndex)"
  5803. />
  5804. </div>
  5805. <div
  5806. class="moveBtn moveBtn2"
  5807. v-if="testJson.testJson[index1].testItem != 1"
  5808. >
  5809. <div
  5810. class="chapter_upload_up"
  5811. @click.stop="tcheckMove(1, index1, checkIndex)"
  5812. ></div>
  5813. <div
  5814. class="chapter_upload_down"
  5815. @click.stop="tcheckMove(2, index1, checkIndex)"
  5816. ></div>
  5817. </div>
  5818. <div class="a_add_body_div">
  5819. <el-button
  5820. type="primary"
  5821. size="small"
  5822. @click.stop="
  5823. addTcheckList(testJson.testJson[index1], checkIndex)
  5824. "
  5825. >添加</el-button
  5826. >
  5827. <el-button
  5828. type="primary"
  5829. size="small"
  5830. @click.stop="
  5831. deleteTcheckList(
  5832. testJson.testJson[index1],
  5833. checkIndex
  5834. )
  5835. "
  5836. v-if="testJson.testJson[index1].testItem != 1"
  5837. >删除
  5838. </el-button>
  5839. </div>
  5840. </el-radio>
  5841. </div>
  5842. </el-radio-group>
  5843. <el-checkbox-group
  5844. v-model="testJson.testJson[index1].answer"
  5845. v-if="testJson.testJson[index1].type == '2'"
  5846. @change="
  5847. () => {
  5848. $forceUpdate();
  5849. }
  5850. "
  5851. >
  5852. <div class="radioBox">
  5853. <el-checkbox
  5854. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5855. .testItem"
  5856. :key="checkIndex1"
  5857. :label="checkIndex1"
  5858. >
  5859. <div style="margin-right: 10px">
  5860. 选项{{ checkIndex1 + 1 }}
  5861. </div>
  5862. <div
  5863. style="margin-right: 10px; width: 300px"
  5864. v-if="
  5865. testJson.testJson[index1].checkList[checkIndex1] &&
  5866. testJson.testJson[index1].checkList[checkIndex1]
  5867. .imgType &&
  5868. testJson.testJson[index1].checkList[checkIndex1]
  5869. .imgType == 1
  5870. "
  5871. >
  5872. <div
  5873. class="inImg"
  5874. @click.stop="
  5875. previewImg(
  5876. testJson.testJson[index1].checkList[checkIndex1]
  5877. .src
  5878. )
  5879. "
  5880. >
  5881. <el-image
  5882. :src="
  5883. testJson.testJson[index1].checkList[checkIndex1]
  5884. .src
  5885. "
  5886. lazy
  5887. />
  5888. <!-- <img :src="
  5889. testJson.testJson[index1].checkList[checkIndex1]
  5890. .src
  5891. " alt="" /> -->
  5892. </div>
  5893. </div>
  5894. <textarea
  5895. class="a_add_head_input textarea_css"
  5896. v-autoHeight="40"
  5897. v-else
  5898. v-model="
  5899. testJson.testJson[index1].checkList[checkIndex1]
  5900. "
  5901. placeholder="请输入选项"
  5902. style="width: 300px; margin-right: 10px"
  5903. @change="
  5904. () => {
  5905. $forceUpdate();
  5906. }
  5907. "
  5908. ></textarea>
  5909. <div class="xzUpImg" @click.stop="addImg($event)">
  5910. <img src="../../assets/icon/xzUpImg.png" alt="" />
  5911. <input
  5912. type="file"
  5913. accept="image/*"
  5914. style="display: none"
  5915. @change="beforeUploadTi($event, index1, checkIndex1)"
  5916. />
  5917. </div>
  5918. <div
  5919. class="moveBtn moveBtn2"
  5920. v-if="testJson.testJson[index1].testItem != 1"
  5921. >
  5922. <div
  5923. class="chapter_upload_up"
  5924. @click.stop="tcheckMove(1, index1, checkIndex1)"
  5925. ></div>
  5926. <div
  5927. class="chapter_upload_down"
  5928. @click.stop="tcheckMove(2, index1, checkIndex1)"
  5929. ></div>
  5930. </div>
  5931. <div class="a_add_body_div">
  5932. <el-button
  5933. type="primary"
  5934. size="small"
  5935. @click.stop="
  5936. addTcheckList(
  5937. testJson.testJson[index1],
  5938. checkIndex1
  5939. )
  5940. "
  5941. >添加</el-button
  5942. >
  5943. <el-button
  5944. type="primary"
  5945. size="small"
  5946. @click.stop="
  5947. deleteTcheckList(
  5948. testJson.testJson[index1],
  5949. checkIndex1
  5950. )
  5951. "
  5952. v-if="testJson.testJson[index1].testItem != 1"
  5953. >删除
  5954. </el-button>
  5955. </div>
  5956. </el-checkbox>
  5957. </div>
  5958. </el-checkbox-group>
  5959. </div>
  5960. <!-- <div class="a_add_body_div">
  5961. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  5962. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  5963. v-if="testJson.testJson[index1].testItem != 1">删除
  5964. </el-button>
  5965. </div> -->
  5966. </div>
  5967. </div>
  5968. </div>
  5969. </div>
  5970. <span slot="footer" class="dialog-footer">
  5971. <el-button @click="closePan(45)">取 消</el-button>
  5972. <el-button type="primary" @click="addTest">确 定</el-button>
  5973. </span>
  5974. </el-dialog>
  5975. <el-dialog
  5976. title="添加工具"
  5977. :visible.sync="dialogVisible4"
  5978. :append-to-body="true"
  5979. width="600px"
  5980. :before-close="handleClose"
  5981. class="dialog_diy addToolsDia"
  5982. >
  5983. <div class="toolChoose">
  5984. <div class="tools">
  5985. <div
  5986. class="leftTools"
  5987. style="width: 100%; padding: 0 0 15px 0"
  5988. v-for="(itemTools, itemToolsIndex) in chapTools"
  5989. :key="itemToolsIndex"
  5990. >
  5991. <div
  5992. style="
  5993. display: flex;
  5994. flex-direction: row;
  5995. align-items: baseline;
  5996. flex-wrap: nowrap;
  5997. justify-content: flex-start;
  5998. position: relative;
  5999. "
  6000. >
  6001. <div class="chooseWho">
  6002. <div
  6003. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  6004. @click="chapToolsType = 0"
  6005. >
  6006. 互动类
  6007. </div>
  6008. <div
  6009. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  6010. @click="chapToolsType = 1"
  6011. >
  6012. 思维类
  6013. </div>
  6014. <div
  6015. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6016. @click="chapToolsType = 2"
  6017. >
  6018. 评价类
  6019. </div>
  6020. <div
  6021. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6022. @click="chapToolsType = 2"
  6023. >
  6024. 其他
  6025. </div>
  6026. </div>
  6027. </div>
  6028. <div style="min-height: 163px">
  6029. <div class="toolSort" v-if="chapToolsType == 0">
  6030. <div
  6031. class="tool"
  6032. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  6033. @click="chapAddTools(8)"
  6034. >
  6035. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  6036. <img
  6037. src="../../assets/icon/secondToolList/library.png"
  6038. alt
  6039. />
  6040. <div style="margin: 5px 0">素材库</div>
  6041. </div>
  6042. <div class="noCTool">
  6043. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6044. </div>
  6045. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6046. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6047. </div>
  6048. <!-- <div class="check" @click="chapAddTools(8)">
  6049. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6050. <div class="checkDiv" v-else>
  6051. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6052. </div>
  6053. </div> -->
  6054. </div>
  6055. </div>
  6056. <div class="toolSort" v-if="chapToolsType == 1">
  6057. <div
  6058. class="tool"
  6059. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6060. @click="chapAddTools(7)"
  6061. >
  6062. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6063. <img
  6064. src="../../assets/icon/secondToolList/mindNetwork.png"
  6065. alt
  6066. />
  6067. <div style="margin: 5px 0">思维网格</div>
  6068. </div>
  6069. <div class="noCTool">
  6070. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6071. </div>
  6072. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6073. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6074. </div>
  6075. <!-- <div class="check" @click="chapAddTools(7)">
  6076. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6077. <div class="checkDiv" v-else>
  6078. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6079. </div>
  6080. </div> -->
  6081. </div>
  6082. <div
  6083. class="tool"
  6084. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6085. @click="chapAddTools(1)"
  6086. >
  6087. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6088. <img
  6089. src="../../assets/icon/secondToolList/whiteBoard.png"
  6090. alt
  6091. />
  6092. <div style="margin: 5px 0">电子白板</div>
  6093. </div>
  6094. <div class="noCTool">
  6095. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6096. </div>
  6097. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6098. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6099. </div>
  6100. <!-- <div class="check" @click="chapAddTools(1)">
  6101. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6102. <div class="checkDiv" v-else>
  6103. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6104. </div>
  6105. </div> -->
  6106. </div>
  6107. <div
  6108. class="tool"
  6109. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6110. @click="chapAddTools(2)"
  6111. >
  6112. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6113. <img src="../../assets/icon/secondToolList/note.png" alt />
  6114. <div style="margin: 5px 0">便签</div>
  6115. </div>
  6116. <div class="noCTool">
  6117. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6118. </div>
  6119. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6120. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6121. </div>
  6122. <!-- <div class="check" @click="chapAddTools(2)">
  6123. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6124. <div class="checkDiv" v-else>
  6125. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6126. </div>
  6127. </div> -->
  6128. </div>
  6129. <div
  6130. class="tool"
  6131. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6132. @click="chapAddTools(6)"
  6133. >
  6134. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6135. <img src="../../assets/icon/secondToolList/doc.png" alt />
  6136. <div style="margin: 5px 0">协同文档</div>
  6137. </div>
  6138. <div class="noCTool">
  6139. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6140. </div>
  6141. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6142. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6143. </div>
  6144. <!-- <div class="check" @click="chapAddTools(6)">
  6145. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6146. <div class="checkDiv" v-else>
  6147. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6148. </div>
  6149. </div> -->
  6150. </div>
  6151. <div
  6152. class="tool"
  6153. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6154. @click="chapAddTools(3)"
  6155. >
  6156. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6157. <img
  6158. src="../../assets/icon/secondToolList/mindMapping.png"
  6159. alt
  6160. />
  6161. <div style="margin: 5px 0">思维导图</div>
  6162. </div>
  6163. <div class="noCTool">
  6164. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6165. </div>
  6166. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6167. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6168. </div>
  6169. <!-- <div class="check" @click="chapAddTools(3)">
  6170. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6171. <div class="checkDiv" v-else>
  6172. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6173. </div>
  6174. </div> -->
  6175. </div>
  6176. <div
  6177. class="tool"
  6178. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6179. @click="chapAddTools(31)"
  6180. >
  6181. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6182. <img
  6183. src="../../assets/icon/secondToolList/networkPanel.png"
  6184. alt
  6185. />
  6186. <div style="margin: 5px 0">数学画板</div>
  6187. </div>
  6188. <div class="noCTool">
  6189. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6190. </div>
  6191. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6192. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6193. </div>
  6194. <!-- <div class="check" @click="chapAddTools(31)">
  6195. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6196. <div class="checkDiv" v-else>
  6197. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6198. </div>
  6199. </div> -->
  6200. </div>
  6201. </div>
  6202. <div class="toolSort" v-if="chapToolsType == 2">
  6203. <div
  6204. class="tool"
  6205. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6206. @click="chapAddTools(5)"
  6207. >
  6208. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6209. <img src="../../assets/icon/thirdToolList/score.png" alt />
  6210. <div style="margin: 5px 0">量规评分</div>
  6211. </div>
  6212. <div class="noCTool">
  6213. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6214. </div>
  6215. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6216. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6217. </div>
  6218. <!-- <div class="check" @click="chapAddTools(5)">
  6219. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6220. <div class="checkDiv" v-else>
  6221. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6222. </div>
  6223. </div> -->
  6224. </div>
  6225. <div
  6226. class="tool"
  6227. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6228. @click="chapAddTools(4)"
  6229. >
  6230. <div
  6231. class="whiteBIcon"
  6232. @click.stop="openTools(chapCount, 4, null)"
  6233. >
  6234. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  6235. <div style="margin: 5px 0">问卷调查</div>
  6236. </div>
  6237. <div class="noCTool">
  6238. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6239. </div>
  6240. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6241. <img src="../../assets/icon/new/isToolC.png" alt="" />
  6242. </div>
  6243. <!-- <div class="check" @click="chapAddTools(4)">
  6244. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6245. <div class="checkDiv" v-else>
  6246. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6247. </div>
  6248. </div> -->
  6249. </div>
  6250. </div>
  6251. </div>
  6252. <div>
  6253. <input
  6254. type="text"
  6255. placeholder="添加工具描述"
  6256. class="binfo_input"
  6257. style="margin: 20px 0; width: 100% !important"
  6258. v-model="itemTools.toolDetail"
  6259. />
  6260. </div>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. <span slot="footer" class="dialog-footer">
  6265. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6266. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6267. </span>
  6268. </el-dialog>
  6269. <el-dialog
  6270. title="添加问答"
  6271. :visible.sync="dialogVisible8"
  6272. :append-to-body="true"
  6273. width="500px"
  6274. :before-close="
  6275. (done) => {
  6276. closePan(15);
  6277. }
  6278. "
  6279. class="dialog_diy"
  6280. >
  6281. <div>
  6282. <div
  6283. class="a_add_title"
  6284. style="
  6285. display: flex;
  6286. flex-direction: column;
  6287. align-items: flex-start;
  6288. justify-content: center;
  6289. "
  6290. >
  6291. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6292. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6293. <textarea
  6294. rows="1"
  6295. v-autoHeight="40"
  6296. type="text"
  6297. placeholder="请输入您要问的问题"
  6298. class="binfo_input"
  6299. style="width: 100% !important; border: 1px solid #dcdfe6"
  6300. v-model="answerQ"
  6301. ></textarea>
  6302. </div>
  6303. </div>
  6304. <span slot="footer" class="dialog-footer">
  6305. <el-button @click="closePan(15)">取 消</el-button>
  6306. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6307. </span>
  6308. </el-dialog>
  6309. <el-dialog
  6310. title="添加问题"
  6311. :visible.sync="dialogVisibleMp3"
  6312. :append-to-body="true"
  6313. width="500px"
  6314. :before-close="handleClose"
  6315. class="dialog_diy"
  6316. >
  6317. <div>
  6318. <div
  6319. class="a_add_title"
  6320. style="
  6321. display: flex;
  6322. flex-direction: column;
  6323. align-items: flex-start;
  6324. justify-content: center;
  6325. "
  6326. >
  6327. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6328. <el-input
  6329. v-model="answerQ"
  6330. placeholder="请输入您想要回答的问题"
  6331. ></el-input>
  6332. </div>
  6333. </div>
  6334. <span slot="footer" class="dialog-footer">
  6335. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6336. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6337. </span>
  6338. </el-dialog>
  6339. <el-dialog
  6340. title="上传图片"
  6341. :visible.sync="choosePicVisible"
  6342. :append-to-body="true"
  6343. width="600px"
  6344. :before-close="handleClose"
  6345. class="dialog_diy"
  6346. >
  6347. <div>
  6348. <div class="fileCss" style="padding-top: 20px">
  6349. <div>
  6350. <button class="info_btn" @click="addImg($event)">
  6351. 选择本地文件
  6352. <input
  6353. type="file"
  6354. accept="image/*"
  6355. style="display: none"
  6356. @change="beforeUpload1"
  6357. />
  6358. </button>
  6359. <div class="spanName">选择本地文件</div>
  6360. </div>
  6361. <!-- <div>
  6362. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6363. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6364. <img :src="cover[0].url" alt="" />
  6365. <div class="deletePic" @click="deleteSysPic">
  6366. <img src="../../assets/icon/delete.png" alt="" />
  6367. </div>
  6368. </div>
  6369. <div class="spanName">选择系统文件</div>
  6370. </div> -->
  6371. <div>
  6372. <el-button
  6373. @click="(searchImageValue = courseName), resetImage()"
  6374. v-if="isSysPic2 == false"
  6375. >选择网络文件</el-button
  6376. >
  6377. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6378. <img :src="cover[0].url" alt="" />
  6379. <div class="deletePic" @click="deleteSysPic">
  6380. <img src="../../assets/icon/delete.png" alt="" />
  6381. </div>
  6382. </div>
  6383. <div class="spanName">选择网络文件</div>
  6384. </div>
  6385. </div>
  6386. <!-- <div class="fileCss">
  6387. </div> -->
  6388. </div>
  6389. <span slot="footer" class="dialog-footer">
  6390. <el-button @click="choosePicVisible = false">取 消</el-button>
  6391. <el-button type="primary" @click="choosePicVisible = false"
  6392. >确 定</el-button
  6393. >
  6394. </span>
  6395. </el-dialog>
  6396. <el-dialog
  6397. title="选择系统文件"
  6398. :visible.sync="sysPicVisible"
  6399. :append-to-body="true"
  6400. width="710px"
  6401. :before-close="handleClose"
  6402. class="dialog_diy"
  6403. >
  6404. <div class="cru_selectBox" style="margin: 0">
  6405. <div
  6406. @click="getChoosePic(1)"
  6407. class="cru_select"
  6408. :class="chooseType == 1 ? 'cru_selected' : ''"
  6409. >
  6410. 绘画
  6411. </div>
  6412. <div
  6413. @click="getChoosePic(2)"
  6414. class="cru_select"
  6415. :class="chooseType == 2 ? 'cru_selected' : ''"
  6416. >
  6417. 科技
  6418. </div>
  6419. <div
  6420. @click="getChoosePic(3)"
  6421. class="cru_select"
  6422. :class="chooseType == 3 ? 'cru_selected' : ''"
  6423. >
  6424. 人文
  6425. </div>
  6426. <div
  6427. @click="getChoosePic(4)"
  6428. class="cru_select"
  6429. :class="chooseType == 4 ? 'cru_selected' : ''"
  6430. >
  6431. 艺术
  6432. </div>
  6433. </div>
  6434. <div class="sysPicBox">
  6435. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6436. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6437. </div>
  6438. </div>
  6439. </el-dialog>
  6440. <el-dialog
  6441. title="选择网络文件"
  6442. :visible.sync="sysPicVisible2"
  6443. :append-to-body="true"
  6444. width="710px"
  6445. :before-close="handleClose"
  6446. class="dialog_diy"
  6447. >
  6448. <div>
  6449. <div
  6450. class="people_top_right"
  6451. style="display: flex; align-items: center"
  6452. >
  6453. <div style="position: relative; width: 100%">
  6454. <el-input
  6455. style="height: 100%"
  6456. placeholder="搜索图片关键字"
  6457. v-model="searchImageValue"
  6458. @keyup.enter.native="resetImage()"
  6459. ></el-input>
  6460. <div class="search_img" @click="resetImage" style="right: 10px">
  6461. <img src="../../assets/icon/search.png" alt />
  6462. </div>
  6463. </div>
  6464. <el-button
  6465. type="primary"
  6466. size="default"
  6467. style="margin-left: 10px"
  6468. @click="changePicture"
  6469. >换一组</el-button
  6470. >
  6471. </div>
  6472. <div class="sysPicBox" v-loading="imageloading">
  6473. <div class="picNone" v-if="!imageList.length">
  6474. 请输入关键词搜索图片
  6475. </div>
  6476. <div
  6477. v-for="(sys, sysIndex) in imageList"
  6478. :key="sysIndex"
  6479. class="sysPic"
  6480. >
  6481. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6482. </div>
  6483. </div>
  6484. </div>
  6485. </el-dialog>
  6486. <el-dialog
  6487. title="选择匹配"
  6488. :visible.sync="dialogVisibleSelect"
  6489. :append-to-body="true"
  6490. width="800px"
  6491. :before-close="
  6492. (done) => {
  6493. closePan(41);
  6494. }
  6495. "
  6496. class="dialog_diy dialog_diy3 fullStyle"
  6497. >
  6498. <div v-if="selectJson" style="height: 100%">
  6499. <div class="select_box1" v-if="selectSteps == 1">
  6500. <div class="select_box1_img">
  6501. <div class="select_box1_title">
  6502. <span>上传题目图片</span
  6503. ><span>提示:请将所有题目上传为一张图片。</span>
  6504. </div>
  6505. <div class="select_box1_add_img">
  6506. <div
  6507. class="uploadFm"
  6508. @click="addImg($event)"
  6509. v-if="!selectJson.url"
  6510. >
  6511. <input
  6512. type="file"
  6513. accept="image/*"
  6514. style="display: none"
  6515. @change="beforeUploadSelect"
  6516. />
  6517. <img src="../../assets/icon/addPoster.png" alt="" />
  6518. </div>
  6519. <div class="isSysPic" v-else>
  6520. <img
  6521. :src="selectJson.url"
  6522. alt=""
  6523. @click="previewImg(selectJson.url)"
  6524. />
  6525. <div class="deletePic" @click="deleteSelectPic">
  6526. <img src="../../assets/icon/delete.png" alt="" />
  6527. </div>
  6528. </div>
  6529. </div>
  6530. </div>
  6531. <div class="select_box1_select">
  6532. <div class="select_box1_title">
  6533. <span>添加选项</span
  6534. ><span
  6535. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  6536. >
  6537. </div>
  6538. <div class="select_box1_select_box">
  6539. <el-input
  6540. v-for="(item2, checkIndex) in selectJson.select"
  6541. :key="checkIndex"
  6542. v-model="selectJson.select[checkIndex]"
  6543. placeholder="请输入选项"
  6544. style="width: 150px; margin: 10px 10px 0 0"
  6545. ></el-input>
  6546. <div class="select_box1_select_box_add">
  6547. <el-button
  6548. style="margin: 10px 0px 0 0"
  6549. type="primary"
  6550. size="small"
  6551. @click="addSelectList(selectJson)"
  6552. >
  6553. 添加</el-button
  6554. >
  6555. <el-button
  6556. type="primary"
  6557. size="small"
  6558. style="margin: 10px 0 0 0"
  6559. @click="deleteSelectList(selectJson)"
  6560. v-if="selectJson.select && selectJson.select.length > 0"
  6561. >删除</el-button
  6562. >
  6563. </div>
  6564. </div>
  6565. </div>
  6566. </div>
  6567. <div v-if="selectSteps == 2" style="height: 100%">
  6568. <div class="select_box2">
  6569. <div class="select_box2_title">设置每道题目的正确选项</div>
  6570. <div class="select_box2_box">
  6571. <div class="select_box2_img">
  6572. <img
  6573. :src="selectJson.url"
  6574. alt=""
  6575. @click="previewImg(selectJson.url)"
  6576. />
  6577. </div>
  6578. <div class="select_box2_answer">
  6579. <div class="select_answer_title">根据题目选择对应答案</div>
  6580. <div
  6581. class="select_box2_answer_box"
  6582. v-for="(item2, checkIndex) in selectJson.select"
  6583. :key="checkIndex"
  6584. >
  6585. <span>{{ checkIndex + 1 }}、</span>
  6586. <el-select
  6587. v-model="selectJson.answer[checkIndex]"
  6588. placeholder="请选择正确答案"
  6589. >
  6590. <el-option
  6591. v-for="(e, eIndex) in selectJson.select"
  6592. :key="eIndex"
  6593. :label="e"
  6594. :value="eIndex"
  6595. >
  6596. </el-option>
  6597. </el-select>
  6598. </div>
  6599. </div>
  6600. </div>
  6601. </div>
  6602. </div>
  6603. </div>
  6604. <span slot="footer" class="dialog-footer">
  6605. <el-button
  6606. type="primary"
  6607. @click="nextSelectSteps()"
  6608. v-if="selectSteps == 1"
  6609. >下一步</el-button
  6610. >
  6611. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6612. >上一步</el-button
  6613. >
  6614. <el-button
  6615. type="primary"
  6616. @click="addSelectAnswer"
  6617. v-if="selectSteps == 2"
  6618. >确 定</el-button
  6619. >
  6620. </span>
  6621. </el-dialog>
  6622. <el-dialog
  6623. title="添加评价"
  6624. :visible.sync="dialogVisibleRate"
  6625. :append-to-body="true"
  6626. width="650px"
  6627. :before-close="handleClose"
  6628. class="dialog_diy"
  6629. >
  6630. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6631. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6632. <div class="pjCss" style="width: 100%">
  6633. <div
  6634. v-if="rateJson.length"
  6635. class="elist_input"
  6636. style="height: 360px; overflow: auto"
  6637. >
  6638. <div
  6639. v-for="(eItem, eIndex) in rateJson"
  6640. :key="eIndex"
  6641. class="elist_input_box"
  6642. >
  6643. <span style="min-width: 100px; text-align: right"
  6644. >个人评价指标:</span
  6645. >
  6646. <input
  6647. type="input"
  6648. v-model="eItem.value"
  6649. placeholder="填写评价维度"
  6650. />
  6651. <div class="remove" @click="deletRateList(eIndex)"></div>
  6652. <div style="width: 100%; display: flex">
  6653. <span style="min-width: 100px; text-align: right"
  6654. >评星等级:</span
  6655. >
  6656. <el-rate v-model="eItem.score" disabled></el-rate>
  6657. </div>
  6658. <div class="elist_inptu_text" style="align-items: flex-start">
  6659. <span style="min-width: 100px; text-align: right">描述:</span>
  6660. <textarea
  6661. class="rate_textarea"
  6662. :rows="3"
  6663. v-model="eItem.detail"
  6664. placeholder="填写维度描述"
  6665. ></textarea>
  6666. </div>
  6667. </div>
  6668. </div>
  6669. <div class="addToolFun" @click="addRateList()">
  6670. <div class="addToolImg">
  6671. <img src="../../assets/icon/add.png" alt />
  6672. </div>
  6673. <div>添加</div>
  6674. </div>
  6675. </div>
  6676. </div>
  6677. <span slot="footer" class="dialog-footer">
  6678. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6679. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6680. </span>
  6681. </el-dialog>
  6682. <el-dialog
  6683. title="排序设置"
  6684. :visible.sync="dialogVisibleSentence"
  6685. :append-to-body="true"
  6686. width="1000px"
  6687. :before-close="
  6688. (done) => {
  6689. closePan(47);
  6690. }
  6691. "
  6692. class="dialog_diy dialog_diy3 fullStyle"
  6693. >
  6694. <div style="height: 100%">
  6695. <div class="sentenBox" style="height: 100%">
  6696. <div class="addSen" @click="addSt">添加题目</div>
  6697. <div
  6698. v-for="(st, stIndex) in sentenceList"
  6699. :key="stIndex"
  6700. class="sentenContent"
  6701. >
  6702. <div class="sentenTopBox">
  6703. <div class="sentenTop" :index="stIndex + 1">
  6704. <div>题目设置</div>
  6705. <div>
  6706. <el-input
  6707. placeholder="请输入卡片内容"
  6708. v-model="st.sentenceTitle"
  6709. :maxlength="10"
  6710. ></el-input>
  6711. </div>
  6712. <div @click="addSen(stIndex)">添加</div>
  6713. <div
  6714. class="remove1"
  6715. v-if="sentenceList.length > 1"
  6716. @click="deleteSentence(stIndex)"
  6717. ></div>
  6718. </div>
  6719. </div>
  6720. <div class="cardList">
  6721. <div v-if="st.addSentence.length > 0" class="cardBox">
  6722. <div
  6723. class="isCard"
  6724. v-for="(s, sIndex) in st.addSentence"
  6725. :key="sIndex"
  6726. @click="setRightAnswer(s, stIndex, sIndex)"
  6727. >
  6728. <el-tooltip
  6729. class="item"
  6730. effect="light"
  6731. :content="s"
  6732. placement="top"
  6733. >
  6734. <div>{{ s }}</div>
  6735. </el-tooltip>
  6736. <div
  6737. class="deleteWord"
  6738. @click.stop="deleteS(s, stIndex, sIndex)"
  6739. >
  6740. <img src="../../assets/icon/delete.png" alt="" />
  6741. </div>
  6742. </div>
  6743. </div>
  6744. <div class="card">
  6745. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  6746. </div>
  6747. </div>
  6748. <div class="rightCardBox">
  6749. <div>正确顺序</div>
  6750. <div class="rightCardList">
  6751. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6752. <div
  6753. v-for="(r, rIndex) in st.rightAnswer"
  6754. :key="rIndex"
  6755. class="cardCss"
  6756. >
  6757. <div
  6758. class="isCard1"
  6759. @click="returnCard(r, stIndex, rIndex)"
  6760. >
  6761. <el-tooltip
  6762. class="item"
  6763. effect="light"
  6764. :content="r"
  6765. placement="top"
  6766. >
  6767. <div>{{ r }}</div>
  6768. </el-tooltip>
  6769. </div>
  6770. <div>{{ rIndex + 1 }}</div>
  6771. </div>
  6772. </div>
  6773. <div class="card" v-if="st.rightAnswer.length == 0">
  6774. <img
  6775. src="../../assets/icon/conSentences/noAnswer.png"
  6776. alt=""
  6777. />
  6778. </div>
  6779. <div class="card" v-else>
  6780. <img
  6781. src="../../assets/icon/conSentences/clickNo.png"
  6782. alt=""
  6783. />
  6784. </div>
  6785. </div>
  6786. </div>
  6787. </div>
  6788. </div>
  6789. </div>
  6790. <span slot="footer" class="dialog-footer">
  6791. <el-button @click="closePan(47)">取 消</el-button>
  6792. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6793. </span>
  6794. </el-dialog>
  6795. <el-dialog
  6796. title="添加表格"
  6797. :visible.sync="dialogVisibleTable"
  6798. :append-to-body="true"
  6799. width="95%"
  6800. :before-close="handleClose"
  6801. class="dialog_diy"
  6802. >
  6803. <el-form>
  6804. <!-- <el-form-item label="文本标题">
  6805. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6806. </el-form-item> -->
  6807. <div>表格内容</div>
  6808. <Table v-model="tableJson.text" @change="change"></Table>
  6809. </el-form>
  6810. <span slot="footer" class="dialog-footer">
  6811. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6812. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6813. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6814. </span>
  6815. </el-dialog>
  6816. <el-dialog
  6817. title="添加文档"
  6818. :visible.sync="dialogVisibleWord"
  6819. :append-to-body="true"
  6820. width="95%"
  6821. :before-close="handleClose"
  6822. class="dialog_diy"
  6823. >
  6824. <el-form>
  6825. <!-- <el-form-item label="文本标题">
  6826. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6827. </el-form-item> -->
  6828. <div>文档内容</div>
  6829. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  6830. </el-form>
  6831. <span slot="footer" class="dialog-footer">
  6832. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6833. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6834. </span>
  6835. </el-dialog>
  6836. <el-dialog
  6837. title="添加班级"
  6838. :visible.sync="dialogVisibleMoreUpload"
  6839. :append-to-body="true"
  6840. width="30%"
  6841. :before-close="handleClose"
  6842. class="dialog_diy"
  6843. >
  6844. <div
  6845. style="
  6846. width: 100%;
  6847. display: flex;
  6848. flex-direction: row;
  6849. flex-wrap: nowrap;
  6850. align-items: center;
  6851. justify-content: center;
  6852. "
  6853. >
  6854. <div>班级:</div>
  6855. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6856. <el-option
  6857. v-for="item in classJuri"
  6858. :key="item.id"
  6859. :label="item.name"
  6860. :value="item.id"
  6861. >
  6862. </el-option>
  6863. </el-select>
  6864. </div>
  6865. <span slot="footer" class="dialog-footer">
  6866. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6867. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6868. </span>
  6869. </el-dialog>
  6870. <el-dialog
  6871. title="设置随机码"
  6872. :visible.sync="dialogVisibleInvite"
  6873. :append-to-body="true"
  6874. width="360px"
  6875. :before-close="handleClose"
  6876. class="dialog_diy"
  6877. >
  6878. <div
  6879. style="
  6880. width: 100%;
  6881. display: flex;
  6882. flex-direction: row;
  6883. flex-wrap: nowrap;
  6884. align-items: center;
  6885. justify-content: center;
  6886. "
  6887. >
  6888. <div>随机码:</div>
  6889. <el-input
  6890. v-model="icode"
  6891. style="width: 240px"
  6892. placeholder="请输入随机码"
  6893. ></el-input>
  6894. </div>
  6895. <span slot="footer" class="dialog-footer">
  6896. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6897. <el-button type="primary" @click="addInvite">确定</el-button>
  6898. </span>
  6899. </el-dialog>
  6900. <el-dialog
  6901. title="添加预设时间"
  6902. :visible.sync="dialogVisiblePreTime"
  6903. :append-to-body="true"
  6904. width="450px"
  6905. :before-close="handleClose"
  6906. class="dialog_diy"
  6907. >
  6908. <div>
  6909. <div style="margin-bottom: 20px; color: #999">
  6910. 提示:点击“+”或“-”修改倒计时时长。
  6911. </div>
  6912. <Time
  6913. :preTime="preTime"
  6914. @updateTimeNum="updateTime"
  6915. v-if="dialogVisiblePreTime"
  6916. ></Time>
  6917. </div>
  6918. <span slot="footer" class="dialog-footer">
  6919. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6920. <el-button type="primary" @click="addPreTime">确定</el-button>
  6921. </span>
  6922. </el-dialog>
  6923. <el-dialog
  6924. title="导入目标"
  6925. :visible.sync="dialogVisiblemb"
  6926. :append-to-body="true"
  6927. width="70%"
  6928. :before-close="handleClose"
  6929. class="dialog_diy"
  6930. >
  6931. <div>
  6932. <div
  6933. style="
  6934. width: 100%;
  6935. display: flex;
  6936. flex-direction: row;
  6937. flex-wrap: nowrap;
  6938. align-content: center;
  6939. align-items: center;
  6940. justify-content: space-between;
  6941. "
  6942. >
  6943. <div
  6944. style="
  6945. display: flex;
  6946. flex-flow: row nowrap;
  6947. align-items: flex-start;
  6948. width: 100%;
  6949. flex-direction: column;
  6950. flex-wrap: nowrap;
  6951. position: relative;
  6952. "
  6953. >
  6954. <div class="e_box">
  6955. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6956. <div class="e_card_picture">
  6957. <img src="../../assets/e_picture.png" />
  6958. </div>
  6959. <div class="e_card_name">
  6960. <span>{{ item.title }}</span>
  6961. </div>
  6962. <div class="e_card_btn">
  6963. <span @click="checkEva(item.id, 2)">导入</span>
  6964. </div>
  6965. </div> -->
  6966. <!-- <div class="addEva" @click="openT">
  6967. <img src="../../assets/icon/addEva.png" alt="" />
  6968. </div> -->
  6969. <div
  6970. style="
  6971. display: flex;
  6972. justify-content: flex-end;
  6973. margin-bottom: 10px;
  6974. "
  6975. >
  6976. <el-button @click="openT" type="primary" size="small"
  6977. >添加目标</el-button
  6978. >
  6979. </div>
  6980. <el-table
  6981. v-if="evaJuri.length"
  6982. ref="table"
  6983. :data="evaJuri"
  6984. border
  6985. :fit="true"
  6986. style="width: 100%"
  6987. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  6988. :row-class-name="tableRowClassName"
  6989. >
  6990. <el-table-column
  6991. label="目标名称"
  6992. min-width="15"
  6993. align="center"
  6994. prop="title"
  6995. >
  6996. </el-table-column>
  6997. <el-table-column
  6998. prop="username"
  6999. label="负责人"
  7000. min-width="15"
  7001. align="center"
  7002. >
  7003. </el-table-column>
  7004. <el-table-column label="操作" width="250px">
  7005. <template slot-scope="scope">
  7006. <div class="btnBox">
  7007. <el-button
  7008. type="primary"
  7009. size="small"
  7010. @click="checkEva(scope.row.id, 2)"
  7011. >导入</el-button
  7012. >
  7013. </div>
  7014. </template>
  7015. </el-table-column>
  7016. </el-table>
  7017. <div
  7018. v-if="evaJuri.length === 0"
  7019. style="margin: 0 auto; color: #6e6e6e"
  7020. >
  7021. 暂无数据
  7022. </div>
  7023. </div>
  7024. </div>
  7025. </div>
  7026. </div>
  7027. <span slot="footer" class="dialog-footer">
  7028. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  7029. </span>
  7030. </el-dialog>
  7031. <el-dialog
  7032. title="分组设置"
  7033. :visible.sync="dialogVisibleGroup"
  7034. :append-to-body="true"
  7035. width="650px"
  7036. :before-close="handleClose"
  7037. class="dialog_diy"
  7038. >
  7039. <div class="groupBox">
  7040. <div v-if="groupJson.group" class="groupContent">
  7041. <div class="groupTitle">请设置小组数量及名称</div>
  7042. <div
  7043. v-for="(item, index) in groupJson.group"
  7044. :key="index"
  7045. class="groupName"
  7046. >
  7047. <span class="groupn">第{{ index + 1 }}组名称:</span>
  7048. <el-input
  7049. v-model="item.name"
  7050. placeholder="请输入名称..."
  7051. style="width: 250px"
  7052. ></el-input>
  7053. <div class="groupBtn">
  7054. <el-button
  7055. type="primary"
  7056. size="small"
  7057. @click="addGroup(index)"
  7058. v-if="groupJson.group.length - 1 == index"
  7059. >
  7060. 添加</el-button
  7061. >
  7062. <el-button
  7063. type="primary"
  7064. size="small"
  7065. @click="deleteGroup(index)"
  7066. v-if="groupJson.group && groupJson.group.length > 1"
  7067. >删除</el-button
  7068. >
  7069. </div>
  7070. </div>
  7071. </div>
  7072. <div class="groupContent">
  7073. <div class="groupTitle">请设置每组人数</div>
  7074. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7075. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7076. <el-input
  7077. v-model="groupJson.number"
  7078. style="width: 150px"
  7079. placeholder="请输入2-10的数字"
  7080. @change="numberPan"
  7081. ></el-input>
  7082. </div>
  7083. </div>
  7084. <span slot="footer" class="dialog-footer">
  7085. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  7086. <el-button type="primary" @click="addGroupJson">确定</el-button>
  7087. </span>
  7088. </el-dialog>
  7089. <el-dialog
  7090. title="修改名称"
  7091. :visible.sync="dialogVisibleupdataVideoT"
  7092. :append-to-body="true"
  7093. width="500px"
  7094. :before-close="handleClose"
  7095. class="dialog_diy"
  7096. >
  7097. <div
  7098. style="
  7099. width: 100%;
  7100. display: flex;
  7101. flex-direction: row;
  7102. flex-wrap: nowrap;
  7103. align-items: center;
  7104. justify-content: center;
  7105. "
  7106. >
  7107. <div style="min-width: fit-content">文件名称:</div>
  7108. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  7109. </div>
  7110. <span slot="footer" class="dialog-footer">
  7111. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  7112. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  7113. </span>
  7114. </el-dialog>
  7115. <el-dialog
  7116. title="创建作文题目"
  7117. :visible.sync="englishDialogVisible"
  7118. :append-to-body="true"
  7119. width="800px"
  7120. :before-close="
  7121. (done) => {
  7122. closePan(69);
  7123. }
  7124. "
  7125. class="dialog_diy fullStyle fullStyle1"
  7126. >
  7127. <englishRight
  7128. :englishList="englishList"
  7129. :oid="oid"
  7130. ref="engJson"
  7131. @setJson="addEnglish"
  7132. ></englishRight>
  7133. <span slot="footer" class="dialog-footer">
  7134. <el-button @click="englishDialogVisible = false">取 消</el-button>
  7135. <el-button type="primary" @click="addEnglish">确 定</el-button>
  7136. </span>
  7137. </el-dialog>
  7138. <el-dialog
  7139. title="选择课程模板"
  7140. :visible.sync="templateDialog"
  7141. :append-to-body="true"
  7142. width="630px"
  7143. :before-close="handleClose"
  7144. class="dialog_diy"
  7145. >
  7146. <div class="template_box">
  7147. <div
  7148. class="wordTeacher"
  7149. v-for="(aa, indexF) in templateArray"
  7150. :key="indexF"
  7151. @click="checkctJson(aa)"
  7152. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7153. >
  7154. <div class="wordPic">
  7155. <img src="../../assets/icon/new/course_template.png" alt />
  7156. </div>
  7157. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7158. <div
  7159. style="
  7160. margin-top: 10px;
  7161. line-height: 19px;
  7162. overflow: hidden;
  7163. text-overflow: ellipsis;
  7164. white-space: nowrap;
  7165. padding: 0 10px;
  7166. box-sizing: border-box;
  7167. width: 100%;
  7168. "
  7169. >
  7170. {{ aa.title }}
  7171. </div>
  7172. </el-tooltip>
  7173. </div>
  7174. <div
  7175. class="wordTeacher"
  7176. @click="checkctJson({ id: 1 })"
  7177. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7178. :class="{ wordTeacherA: ctJson.id == 1 }"
  7179. >
  7180. <div class="wordPic">
  7181. <img src="../../assets/icon/new/course_template.png" alt />
  7182. </div>
  7183. <div
  7184. style="
  7185. margin-top: 10px;
  7186. line-height: 19px;
  7187. overflow: hidden;
  7188. text-overflow: ellipsis;
  7189. white-space: nowrap;
  7190. padding: 0 20px;
  7191. "
  7192. >
  7193. 简易模板
  7194. </div>
  7195. </div>
  7196. <div
  7197. class="wordTeacher"
  7198. @click="checkctJson({ id: 2 })"
  7199. v-if="isPasteStage"
  7200. :class="{ wordTeacherA: ctJson.id == 2 }"
  7201. >
  7202. <div class="wordPic">
  7203. <img src="../../assets/icon/new/course_template.png" alt />
  7204. </div>
  7205. <div
  7206. style="
  7207. margin-top: 10px;
  7208. line-height: 19px;
  7209. overflow: hidden;
  7210. text-overflow: ellipsis;
  7211. white-space: nowrap;
  7212. padding: 0 20px;
  7213. "
  7214. >
  7215. 智能粘贴模式
  7216. </div>
  7217. </div>
  7218. </div>
  7219. <span slot="footer" class="dialog-footer">
  7220. <el-button @click="templateDialog = false">取 消</el-button>
  7221. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7222. </span>
  7223. </el-dialog>
  7224. <interVideo
  7225. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7226. :videoJson="videoJson"
  7227. @add="addVideoJson"
  7228. ></interVideo>
  7229. <el-dialog
  7230. title="切换阶段顺序"
  7231. :visible.sync="dialogVisibleStageChange"
  7232. :append-to-body="true"
  7233. width="400px"
  7234. :before-close="handleClose"
  7235. class="dialog_diy dialog_diyStage"
  7236. >
  7237. <div class="change_stageBox">
  7238. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7239. <div class="nt_taskBox">
  7240. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  7241. <div class="nt_taskName">
  7242. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7243. <span>{{ t.dyName }}</span>
  7244. </el-tooltip>
  7245. </div>
  7246. </div>
  7247. <div class="moveBtn" v-if="unitJson3.length > 1">
  7248. <div
  7249. class="chapter_upload_up"
  7250. @click.stop="stageMove(1, tIndex)"
  7251. ></div>
  7252. <div
  7253. class="chapter_upload_down"
  7254. @click.stop="stageMove(2, tIndex)"
  7255. ></div>
  7256. </div>
  7257. </div>
  7258. </div>
  7259. <span slot="footer" class="dialog-footer">
  7260. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  7261. <el-button type="primary" @click="updateChange">确定</el-button>
  7262. </span>
  7263. </el-dialog>
  7264. <el-dialog
  7265. title="添加资源模板"
  7266. :visible.sync="cetBoxDialog"
  7267. :append-to-body="true"
  7268. width="400px"
  7269. :before-close="handleClose"
  7270. class="dialog_diy"
  7271. >
  7272. <div class="addTypeChoose" style="justify-content: center">
  7273. <div style="min-width: 100px">模板名称:</div>
  7274. <el-input v-model="templateName" style="width: 200px"></el-input>
  7275. </div>
  7276. <div class="addTypeBox">
  7277. <div class="addTypeChoose">
  7278. <div style="min-width: 100px">选择一级分类:</div>
  7279. <el-select
  7280. v-model="setTypeJson.one"
  7281. placeholder="请选择"
  7282. @change="getTwoType(setTypeJson.one)"
  7283. style="width: 200px"
  7284. >
  7285. <el-option
  7286. v-for="(item, index) in oneJson"
  7287. :key="index"
  7288. :label="item.name"
  7289. :value="item.id"
  7290. >
  7291. </el-option>
  7292. </el-select>
  7293. </div>
  7294. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7295. <div style="min-width: 100px">选择二级分类:</div>
  7296. <el-select
  7297. v-model="setTypeJson.two"
  7298. placeholder="请选择"
  7299. style="width: 200px"
  7300. >
  7301. <el-option
  7302. v-for="(item1, index1) in twoJson"
  7303. :key="index1"
  7304. :label="item1.name"
  7305. :value="item1.id"
  7306. >
  7307. </el-option>
  7308. </el-select>
  7309. </div>
  7310. </div>
  7311. <span slot="footer" class="dialog-footer">
  7312. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  7313. <el-button @click="close()">关 闭</el-button>
  7314. </span>
  7315. </el-dialog>
  7316. <evaBox
  7317. :userid="userid"
  7318. :oid="oid"
  7319. :org="org"
  7320. :dialogVisibleEva.sync="evaBoxDialog"
  7321. @updateEvaJson="updateEvaJson"
  7322. ></evaBox>
  7323. <EnglishVoice
  7324. :oid="oid"
  7325. :org="org"
  7326. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7327. :englishVoiceJson="englishVoiceJson"
  7328. @setEnglishVoiceJson="setEnglishVoiceJson"
  7329. ></EnglishVoice>
  7330. </div>
  7331. </template>
  7332. <script>
  7333. import "../../common/aws-sdk-2.235.1.min.js";
  7334. import { tools as toolsData } from "../../common/tools.js";
  7335. // import "../../common/aws-sdk-2.99.0.min.js";
  7336. import $ from "jquery";
  7337. import EditorBar from "../../components/tools/wangEnduit";
  7338. import Table from "../../components/tools/table";
  7339. import Mind from "../tools/jsmind2";
  7340. import Time from "../tools/time.vue";
  7341. import Sunburst from "../tools/sunburst";
  7342. import SeeBoard from "../tools/seeBoard";
  7343. import weilaiData from "./components/weilai.js";
  7344. import sourceDialog from "./teacherSource/dialog.vue";
  7345. import interVideo from "./interVideo/index.vue";
  7346. import englishRight from "./components/englishRight.vue";
  7347. import evaBox from "./evaBox/index.vue";
  7348. import EnglishVoice from "./EnglishVoice/index.vue";
  7349. export default {
  7350. components: {
  7351. EditorBar,
  7352. Mind,
  7353. Time,
  7354. Sunburst,
  7355. SeeBoard,
  7356. Table,
  7357. sourceDialog,
  7358. interVideo,
  7359. englishRight,
  7360. evaBox,
  7361. EnglishVoice,
  7362. },
  7363. data() {
  7364. return {
  7365. checkAll: false,
  7366. checkAll2: false,
  7367. chooseType: 1,
  7368. checkedCities: [],
  7369. isIndeterminate: true,
  7370. isIndeterminate2: true,
  7371. isSysPic: false,
  7372. isSysPic2: false,
  7373. steps: 1,
  7374. nbOrder: 0,
  7375. courseId: "",
  7376. chapToolsType: 0,
  7377. chapTools: [
  7378. {
  7379. tools: [],
  7380. toolDetail: "",
  7381. },
  7382. ],
  7383. line: "",
  7384. lineTitle: "",
  7385. sysPic: [],
  7386. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7387. sentenceList2: [],
  7388. isPushTitleList: [],
  7389. lineCount: 0,
  7390. lineType: 0,
  7391. chapCount: 0,
  7392. courseName: "",
  7393. isTeacherSee: false,
  7394. courseText: "",
  7395. preTime: 0,
  7396. formLabelWidth: "100px",
  7397. choosePicVisible: false,
  7398. sysPicVisible: false,
  7399. sysPicVisible2: false,
  7400. uploadLoading1: false,
  7401. noneBtnImg: false,
  7402. updateBoolean2: false,
  7403. unitIndex: 0,
  7404. taskCount: 0,
  7405. dialogVisible: false,
  7406. dialogVisible1: false,
  7407. dialogVisible2: false,
  7408. dialogVisible3: false,
  7409. dialogVisible4: false,
  7410. dialogVisible5: false,
  7411. dialogVisible6: false,
  7412. dialogVisible7: false,
  7413. dialogVisible8: false,
  7414. dialogVisible9: false,
  7415. dialogVisibleClass: false,
  7416. dialogVisibleMember: false,
  7417. dialogVisibleMp3: false,
  7418. dialogVisibleSelect: false,
  7419. dialogVisibleSentence: false,
  7420. dialogVisibleRate: false,
  7421. dialogVisibleChoice: false,
  7422. dialogVisiblemb: false,
  7423. dialogVisibleInvite: false,
  7424. dialogVisibleSource: false,
  7425. dialogVisibleVideo: false,
  7426. dialogVisibleStageChange: false,
  7427. dialogVisibleupdataVideoT: false,
  7428. englishDialogVisible: false,
  7429. templateDialog: false,
  7430. ctJson: {},
  7431. isClickColor: 1,
  7432. toolIndexType: "",
  7433. publicTool: 0,
  7434. searchPeople: "",
  7435. searchTN: "",
  7436. userid: this.$route.query.userid,
  7437. oid: this.$route.query.oid,
  7438. org: this.$route.query.org,
  7439. role: this.$route.query.role,
  7440. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7441. dialogVisibleTable: false,
  7442. dialogVisibleWord: false,
  7443. tableJson: { text: "" },
  7444. wordJson: { text: "" },
  7445. dialogVisibleMoreUpload: false,
  7446. dialogVisiblePreTime: false,
  7447. uploadJson: [],
  7448. classJuri: [],
  7449. gradeList: [],
  7450. cover: [], //课程封面
  7451. myWord: [],
  7452. evaJuri: [],
  7453. evalua: "",
  7454. targetArray: [],
  7455. eTitle: "",
  7456. eJson: {},
  7457. fid: "", //一级
  7458. sid: "", //二级
  7459. tid: "", //二级
  7460. typeMode: 1,
  7461. eJSONNum: 0,
  7462. data: {
  7463. meta: {
  7464. name: "example",
  7465. author: "dd@163.com",
  7466. version: "0.2",
  7467. },
  7468. format: "node_array",
  7469. data: [{ id: "root", isroot: true, topic: "" }],
  7470. },
  7471. askJson: {
  7472. askCount: 1,
  7473. askTitle: "",
  7474. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7475. },
  7476. askJson2: {},
  7477. testJson: {},
  7478. testJson2: {},
  7479. selectJson: {},
  7480. selectJson2: {},
  7481. rateJson: [],
  7482. unitJson2: [],
  7483. unitJson3: [],
  7484. unitJson: [
  7485. {
  7486. dyName: "", //单元标题
  7487. chapterInfo: [
  7488. {
  7489. isread: false,
  7490. chapterid: this.guid(),
  7491. title: "",
  7492. courseName: "",
  7493. taskJson: [
  7494. {
  7495. task: "",
  7496. taskDetail: "",
  7497. chapterData: [],
  7498. toolText: "",
  7499. toolChoose: [
  7500. {
  7501. tool: [],
  7502. toolDetail: "",
  7503. toolType: 0,
  7504. askCount: 1,
  7505. askTitle: "",
  7506. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7507. },
  7508. ],
  7509. isShowTools: false,
  7510. askCount: 1,
  7511. isFold: 1,
  7512. askTitle: "",
  7513. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7514. checkJson: [{ checkCount: [], checkPerent: [] }],
  7515. homeworkList: [],
  7516. },
  7517. ],
  7518. itemCount: 1,
  7519. fileList1: [],
  7520. video: [],
  7521. testData: [],
  7522. pData: [],
  7523. templateArray: [],
  7524. },
  7525. ],
  7526. },
  7527. ],
  7528. templateArray: [],
  7529. studentJuri: [],
  7530. teacherJuri: [],
  7531. checkboxList: [],
  7532. checkboxList2: [],
  7533. checkboxList3: [],
  7534. classSearch: "",
  7535. gradeId: "",
  7536. number: "",
  7537. tTitle: "",
  7538. tdetail: "",
  7539. templateC: {},
  7540. AttText: {},
  7541. AttTextType: 0,
  7542. AttTextIndex: 0,
  7543. cTemplate: "",
  7544. CourseType: [],
  7545. CourseType1: [],
  7546. CourseType2: [],
  7547. CourseTypeJson: {},
  7548. CourseTypeJson1: {},
  7549. courseTypeId: [],
  7550. courseTypeId1: [],
  7551. courseTypeSon: [],
  7552. clearArray: [],
  7553. pTypeCheck: [],
  7554. pTypeCheckName: [],
  7555. loading: false,
  7556. toolType: 0,
  7557. inputShow: true,
  7558. inputShow2: true,
  7559. toolIndex: 0,
  7560. cidType: 0,
  7561. answerQ: "",
  7562. answerQ2: "",
  7563. grade: [],
  7564. grade2: [],
  7565. courseUserid: "",
  7566. timer: null,
  7567. timer2: null,
  7568. pasteTimer: null,
  7569. checkId: "",
  7570. isDelete: 1,
  7571. addindex: 0,
  7572. selectSteps: 1,
  7573. groupJson: {},
  7574. dialogVisibleGroup: false,
  7575. rightBoxHeight: 0,
  7576. ManAarray: [],
  7577. checkBoolean: false,
  7578. inviteCode: [],
  7579. inviteId: "",
  7580. icode: "",
  7581. easyArray: [2, 4],
  7582. sourceData: {},
  7583. updateSourcePan: false,
  7584. videoJson: {},
  7585. isBtnDisplay: false,
  7586. isStepDisplay: false,
  7587. isPasteStage: false,
  7588. isPasteTask: false,
  7589. isPasteChoice: false,
  7590. imageList: [],
  7591. imageloading: false,
  7592. searchImageValue: "",
  7593. ppage: 1,
  7594. toolsData: toolsData,
  7595. oldIndex: 0,
  7596. dragType: "",
  7597. oldUnitIndex: 0,
  7598. oldData: null,
  7599. newIndex: "",
  7600. englishList: {},
  7601. typeIndex: "",
  7602. courseState: 2,
  7603. taskJSONa: [
  7604. {
  7605. task: "",
  7606. taskDetail: "",
  7607. chapterData: [],
  7608. toolText: "",
  7609. toolChoose: [
  7610. {
  7611. tool: [],
  7612. toolDetail: "",
  7613. toolType: 0,
  7614. askCount: 1,
  7615. askTitle: "",
  7616. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7617. },
  7618. ],
  7619. isShowTools: false,
  7620. askCount: 1,
  7621. isFold: 1,
  7622. askTitle: "",
  7623. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7624. checkJson: [{ checkCount: [], checkPerent: [] }],
  7625. homeworkList: [],
  7626. },
  7627. ],
  7628. checkUnitIndex: 0,
  7629. isdrag: "",
  7630. evaIndex: "",
  7631. evatIndex: "",
  7632. evaBoxDialog: false,
  7633. EnglishVoiceDialog: false,
  7634. englishVoiceJson: {},
  7635. cetIndex: "",
  7636. cettIndex: "",
  7637. cetBoxDialog: false,
  7638. templateName: "",
  7639. setTypeJson: {
  7640. one: "",
  7641. two: "",
  7642. },
  7643. twoJson: [],
  7644. oneJson: [],
  7645. updateKey:1
  7646. };
  7647. },
  7648. directives: {
  7649. autoHeight: {
  7650. update(el, binding) {
  7651. const { value } = binding;
  7652. if (value && typeof value === "number") {
  7653. el.style.height = `${value}px`;
  7654. } else {
  7655. el.style.height = "auto";
  7656. }
  7657. },
  7658. componentUpdated(el) {
  7659. el.style.height = `${el.scrollHeight + 5}px`;
  7660. },
  7661. },
  7662. },
  7663. computed: {
  7664. // rightBoxHeight: function () {
  7665. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7666. // },
  7667. offsetLetfPx: function () {
  7668. //addnum可以直接在模板语法里面用,相当于data内的值
  7669. return (
  7670. $(".cru_select")[this.unitIndex] &&
  7671. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7672. );
  7673. },
  7674. getMan2() {
  7675. return function (people) {
  7676. let _people = people;
  7677. let _people2 = "";
  7678. if (this.ManAarray.length) {
  7679. for (var i = 0; i < this.ManAarray.length; i++) {
  7680. if (this.ManAarray[i].userid == people) {
  7681. _people2 = this.ManAarray[i].name;
  7682. break;
  7683. }
  7684. }
  7685. }
  7686. if (people == this.courseUserid) {
  7687. return "";
  7688. }
  7689. return this.ManAarray.length ? _people2 : "";
  7690. };
  7691. },
  7692. getListMan2() {
  7693. return function (list) {
  7694. let _people2 = [];
  7695. if (this.ManAarray.length) {
  7696. for (var j = 0; j < list.length; j++) {
  7697. let people = list[j];
  7698. for (var i = 0; i < this.ManAarray.length; i++) {
  7699. if (
  7700. this.ManAarray[i].userid == people &&
  7701. people != this.courseUserid
  7702. ) {
  7703. _people2.push(this.ManAarray[i].name);
  7704. break;
  7705. }
  7706. }
  7707. }
  7708. }
  7709. return this.ManAarray.length ? _people2.join("、") : "";
  7710. };
  7711. },
  7712. isInvite() {
  7713. return function (cid) {
  7714. let array = [];
  7715. for (var i = 0; i < this.inviteCode.length; i++) {
  7716. array.push(this.inviteCode[i].cid);
  7717. }
  7718. return array.indexOf(cid) != -1;
  7719. };
  7720. },
  7721. getInviteCodeC() {
  7722. return function (cid) {
  7723. let array = [];
  7724. for (var i = 0; i < this.inviteCode.length; i++) {
  7725. array.push(this.inviteCode[i].cid);
  7726. }
  7727. return this.inviteCode[array.indexOf(cid)].ic;
  7728. };
  7729. },
  7730. getClassC() {
  7731. return function (c) {
  7732. let _c2 = "";
  7733. if (this.grade.length) {
  7734. for (var i = 0; i < this.grade.length; i++) {
  7735. if (this.grade[i].id == c) {
  7736. _c2 = this.grade[i].name;
  7737. break;
  7738. }
  7739. }
  7740. }
  7741. return this.grade.length ? _c2 : "";
  7742. };
  7743. },
  7744. getListClassC() {
  7745. return function (list) {
  7746. let _c2 = [];
  7747. if (this.grade.length) {
  7748. for (var j = 0; j < list.length; j++) {
  7749. let c = list[j];
  7750. for (var i = 0; i < this.grade.length; i++) {
  7751. if (this.grade[i].id == c) {
  7752. _c2.push(this.grade[i].name);
  7753. break;
  7754. }
  7755. }
  7756. }
  7757. }
  7758. return this.grade.length ? _c2.join("、") : "";
  7759. };
  7760. },
  7761. },
  7762. watch: {
  7763. unitIndex(newValue, oldValue) {
  7764. if (this.isDelete == 2) {
  7765. this.isDelete = 1;
  7766. return;
  7767. }
  7768. if (this.cid != "") {
  7769. let _unitIndex = oldValue;
  7770. if (
  7771. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7772. JSON.stringify(this.unitJson[_unitIndex])
  7773. ) {
  7774. this.$refs.rightboxR.scrollTop = 0;
  7775. return;
  7776. }
  7777. let cPan = 1;
  7778. for (
  7779. var j = 0;
  7780. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7781. j++
  7782. ) {
  7783. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7784. j
  7785. ].proVisible = false;
  7786. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7787. j
  7788. ].proVisible2 = false;
  7789. if (
  7790. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7791. .length > 1
  7792. ) {
  7793. for (
  7794. var z = 0;
  7795. z <
  7796. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7797. .length;
  7798. z++
  7799. ) {
  7800. if (
  7801. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7802. .toolChoose[z].tool.length
  7803. ) {
  7804. this.$message.error("请把工具添加完整");
  7805. cPan = 2;
  7806. break;
  7807. }
  7808. }
  7809. }
  7810. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7811. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7812. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7813. (ele) => {
  7814. return ele.value != "";
  7815. }
  7816. );
  7817. }
  7818. }
  7819. if (cPan == 2) {
  7820. this.unitIndex = oldValue;
  7821. return;
  7822. }
  7823. for (var i = 0; i < this.unitJson.length; i++) {
  7824. if (this.addindex != i) {
  7825. delete this.unitJson[i].isUpdate;
  7826. }
  7827. }
  7828. this.$refs.rightboxR.scrollTop = 0;
  7829. this.addindex = -1;
  7830. let params = [
  7831. {
  7832. cid: this.cid,
  7833. chapters: JSON.stringify(this.unitJson),
  7834. uid: this.userid,
  7835. unitIndex: _unitIndex,
  7836. },
  7837. ];
  7838. this.ajax
  7839. .post(this.$store.state.api + "updateWorkNew4", params)
  7840. .then((res) => {
  7841. // this.$message({
  7842. // message: "修改成功",
  7843. // type: "success",
  7844. // });
  7845. // this.courseId = this.cid;
  7846. })
  7847. .catch((err) => {
  7848. this.$message.error("网络不佳");
  7849. console.error(err);
  7850. });
  7851. }
  7852. },
  7853. steps(newValue, old) {
  7854. if (newValue == 4) {
  7855. let cPan = 1;
  7856. for (var i = 0; i < this.unitJson.length; i++) {
  7857. for (
  7858. var j = 0;
  7859. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7860. j++
  7861. ) {
  7862. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7863. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7864. if (
  7865. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7866. ) {
  7867. for (
  7868. var z = 0;
  7869. z <
  7870. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7871. z++
  7872. ) {
  7873. if (
  7874. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  7875. .tool.length
  7876. ) {
  7877. this.$message.error("请把工具添加完整");
  7878. cPan = 2;
  7879. break;
  7880. }
  7881. }
  7882. }
  7883. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7884. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7885. i
  7886. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7887. return ele.value != "";
  7888. });
  7889. }
  7890. }
  7891. }
  7892. this.inputShow = true;
  7893. if (cPan == 2) {
  7894. this.steps = old;
  7895. return;
  7896. }
  7897. this.goTo(
  7898. "/course?userid=" +
  7899. this.userid +
  7900. "&oid=" +
  7901. this.oid +
  7902. "&org=" +
  7903. this.org +
  7904. "&role=" +
  7905. this.role
  7906. );
  7907. }
  7908. },
  7909. },
  7910. methods: {
  7911. tableRowClassName({ row, rowIndex }) {
  7912. if ((rowIndex + 1) % 2 === 0) {
  7913. return "even_row";
  7914. } else {
  7915. return "";
  7916. }
  7917. },
  7918. close() {
  7919. this.cetIndex = "";
  7920. this.cettIndex = "";
  7921. this.templateName = "";
  7922. this.cetBoxDialog = false;
  7923. },
  7924. openAI() {
  7925. window.topU.postMessage({ tools: "64" }, "*");
  7926. },
  7927. setMan() {
  7928. // let teacherJuri = this.teacherJuri2;
  7929. this.ManAarray = [];
  7930. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7931. if (_user.indexOf(this.userid) == -1) {
  7932. _user.push(this.userid);
  7933. }
  7934. if (_user.indexOf(this.courseUserid) == -1) {
  7935. _user.push(this.courseUserid);
  7936. }
  7937. let params = [{
  7938. uid: _user.join(","),
  7939. }];
  7940. this.ajax
  7941. .post(this.$store.state.api + "getAllUserByIdP", params)
  7942. .then((res) => {
  7943. let teacherJuri = res.data[0];
  7944. this.ManAarray = teacherJuri;
  7945. })
  7946. .catch((err) => {
  7947. console.error(err);
  7948. });
  7949. },
  7950. previewImg(url) {
  7951. this.$hevueImgPreview(url);
  7952. },
  7953. btnDisplay(bool) {
  7954. this.isBtnDisplay = bool;
  7955. },
  7956. stepDisplay(bool) {
  7957. this.isStepDisplay = bool;
  7958. },
  7959. scrollChange() {
  7960. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  7961. },
  7962. addHw(e) {
  7963. var el = e.currentTarget;
  7964. el.getElementsByTagName("input")[0].click();
  7965. },
  7966. change(val) {
  7967. if (this.dialogVisible1) {
  7968. this.tdetail = val;
  7969. } else if (this.dialogVisible6) {
  7970. this.AttText.text = val;
  7971. } else if (this.dialogVisible2) {
  7972. this.cTemplate = val;
  7973. } else if (this.dialogVisibleTable) {
  7974. this.tableJson.text = val;
  7975. }
  7976. this.$forceUpdate();
  7977. console.log(val);
  7978. },
  7979. change2(val) {
  7980. console.log(val);
  7981. this.$forceUpdate();
  7982. },
  7983. handleClose(done) {
  7984. done();
  7985. },
  7986. closePan(tool) {
  7987. if (tool == 15) {
  7988. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  7989. this.dialogVisible8 = false;
  7990. } else {
  7991. this.closeConfirm(tool);
  7992. }
  7993. } else if (tool == 4) {
  7994. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  7995. this.dialogVisible5 = false;
  7996. } else {
  7997. this.closeConfirm(tool);
  7998. }
  7999. } else if (tool == 45) {
  8000. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  8001. this.dialogVisibleChoice = false;
  8002. } else {
  8003. this.closeConfirm(tool);
  8004. }
  8005. } else if (tool == 41) {
  8006. if (
  8007. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8008. ) {
  8009. this.dialogVisibleSelect = false;
  8010. } else {
  8011. this.closeConfirm(tool);
  8012. }
  8013. } else if (tool == 47) {
  8014. if (
  8015. JSON.stringify(this.sentenceList) ==
  8016. JSON.stringify(this.sentenceList2)
  8017. ) {
  8018. this.dialogVisibleSentence = false;
  8019. } else {
  8020. this.closeConfirm(tool);
  8021. }
  8022. } else if (tool == 69) {
  8023. if (
  8024. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8025. ) {
  8026. this.englishDialogVisible = false;
  8027. } else {
  8028. this.closeConfirm(tool);
  8029. }
  8030. }
  8031. },
  8032. closeConfirm(tool) {
  8033. this.$confirm("是否保存已编辑内容?", "提示", {
  8034. confirmButtonText: "保存",
  8035. cancelButtonText: "不保存",
  8036. type: "warning",
  8037. })
  8038. .then(() => {
  8039. if (tool == 15) {
  8040. this.addAnswer();
  8041. } else if (tool == 4) {
  8042. this.addAsk();
  8043. } else if (tool == 45) {
  8044. this.addTest();
  8045. } else if (tool == 41) {
  8046. this.addSelectAnswer();
  8047. } else if (tool == 47) {
  8048. this.addSentenceTool();
  8049. } else if (tool == 69) {
  8050. this.addEnglish();
  8051. }
  8052. })
  8053. .catch(() => {
  8054. if (tool == 15) {
  8055. this.dialogVisible8 = false;
  8056. } else if (tool == 4) {
  8057. this.dialogVisible5 = false;
  8058. } else if (tool == 45) {
  8059. this.dialogVisibleChoice = false;
  8060. } else if (tool == 41) {
  8061. this.dialogVisibleSelect = false;
  8062. } else if (tool == 47) {
  8063. this.dialogVisibleSentence = false;
  8064. } else if (tool == 69) {
  8065. this.englishDialogVisible = false;
  8066. }
  8067. });
  8068. },
  8069. addEnglish(jsonType) {
  8070. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8071. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8072. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8073. if (
  8074. this.englishList.engTitle == "" ||
  8075. this.englishList.englishText == ""
  8076. ) {
  8077. this.$message.error("请将内容填写完整!");
  8078. return;
  8079. }
  8080. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8081. this.taskCount
  8082. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8083. this.englishList = {};
  8084. if (jsonType && jsonType == 1) {
  8085. this.englishDialogVisible = true;
  8086. } else {
  8087. this.englishDialogVisible = false;
  8088. }
  8089. if (
  8090. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8091. .toolChoose[this.toolIndex].tool != 69
  8092. ) {
  8093. this.addTools(69, this.taskCount, this.toolIndex);
  8094. }
  8095. },
  8096. imgChange2(i, j) {
  8097. var _tmp = this.testJson.testJson[i].checkList[j];
  8098. this.noneBtnImg = _tmp.length >= 1;
  8099. },
  8100. imgChange3(i) {
  8101. var _tmp = this.testJson.testJson[i];
  8102. this.noneBtnImg = _tmp.length >= 1;
  8103. },
  8104. imgChange1(file, fileList, type, itemTaskIndex) {
  8105. if (type == 1) {
  8106. var _tmp = this.cover;
  8107. } else if (
  8108. type == 2 ||
  8109. type == 3 ||
  8110. type == 6 ||
  8111. type == 7 ||
  8112. type == 8
  8113. ) {
  8114. var _tmp =
  8115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8116. .chapterData;
  8117. } else if (type == 4) {
  8118. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8119. } else {
  8120. var _tmp =
  8121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8122. .homeworkList;
  8123. }
  8124. this.noneBtnImg = _tmp.length >= 1;
  8125. },
  8126. goTo(path) {
  8127. this.$router.push(path);
  8128. },
  8129. guid() {
  8130. var _num,
  8131. i,
  8132. _guid = "";
  8133. for (i = 0; i < 32; i++) {
  8134. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8135. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8136. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8137. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8138. _guid += "-";
  8139. }
  8140. }
  8141. return _guid;
  8142. },
  8143. retrunCourse() {
  8144. this.$confirm("是否保存已编辑内容?", "提示", {
  8145. confirmButtonText: "保存",
  8146. cancelButtonText: "不保存",
  8147. distinguishCancelAndClose: true,
  8148. type: "warning",
  8149. })
  8150. .then(() => {
  8151. if (this.cid == "" || this.cid == undefined) {
  8152. if (this.courseName == "") {
  8153. this.$message.error("请补充填写课程名称");
  8154. return;
  8155. } else {
  8156. this.addWork();
  8157. }
  8158. this.steps = 4;
  8159. } else {
  8160. if (this.courseName == "") {
  8161. this.$message.error("请补充填写课程名称");
  8162. return;
  8163. } else {
  8164. if (this.userid != this.courseUserid && this.role != "1") {
  8165. this.updateWork2();
  8166. } else {
  8167. this.updateWork();
  8168. }
  8169. this.steps = 4;
  8170. }
  8171. }
  8172. })
  8173. .catch((v) => {
  8174. console.log(v);
  8175. if (v == "cancel") {
  8176. this.goTo(
  8177. "/course?userid=" +
  8178. this.userid +
  8179. "&oid=" +
  8180. this.oid +
  8181. "&org=" +
  8182. this.org +
  8183. "&role=" +
  8184. this.role
  8185. );
  8186. }
  8187. });
  8188. },
  8189. lastSteps() {
  8190. if (this.steps == 4) {
  8191. this.goTo(
  8192. "/course?userid=" +
  8193. this.userid +
  8194. "&oid=" +
  8195. this.oid +
  8196. "&org=" +
  8197. this.org +
  8198. "&role=" +
  8199. this.role
  8200. );
  8201. } else {
  8202. // if (this.cidType == 0) {
  8203. // this.steps--;
  8204. // if (this.steps == 1) {
  8205. // setTimeout(() => {
  8206. // this.checkEva(this.checkId);
  8207. // setTimeout(() => {
  8208. // this.checkEva(this.checkId);
  8209. // }, 100);
  8210. // }, 100);
  8211. // }
  8212. // } else {
  8213. if (this.steps == 3) {
  8214. this.steps = 1;
  8215. setTimeout(() => {
  8216. this.checkEva(this.checkId);
  8217. setTimeout(() => {
  8218. this.checkEva(this.checkId);
  8219. }, 100);
  8220. }, 100);
  8221. }
  8222. // }
  8223. }
  8224. },
  8225. navSteps(s) {
  8226. if (this.courseName == "") {
  8227. this.$message.error("请补充填写课程名称");
  8228. return;
  8229. }
  8230. if (this.cidType == 0) {
  8231. if (this.steps == 1) {
  8232. if (this.cid == "" || this.cid == undefined) {
  8233. this.addWork();
  8234. } else {
  8235. if (this.userid != this.courseUserid && this.role != "1") {
  8236. // this.updateWork2();
  8237. } else {
  8238. this.updateWork();
  8239. }
  8240. }
  8241. }
  8242. if (s == 1) {
  8243. this.steps = 1;
  8244. setTimeout(() => {
  8245. this.checkEva(this.checkId);
  8246. setTimeout(() => {
  8247. this.checkEva(this.checkId);
  8248. }, 100);
  8249. }, 100);
  8250. }
  8251. if (s == 2) {
  8252. this.steps = 2;
  8253. }
  8254. if (s == 3) {
  8255. this.cTemplate = this.templateC.content;
  8256. this.dialogVisible2 = false;
  8257. this.steps = 3;
  8258. this.isClickColor = 1;
  8259. this.unitJson[
  8260. this.unitIndex
  8261. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8262. this.$forceUpdate();
  8263. setTimeout(() => {
  8264. this.checkEva(this.checkId);
  8265. setTimeout(() => {
  8266. this.checkEva(this.checkId);
  8267. }, 100);
  8268. }, 1000);
  8269. }
  8270. } else {
  8271. if (this.steps == 1) {
  8272. if (this.cid == "" || this.cid == undefined) {
  8273. this.addWork();
  8274. } else {
  8275. if (this.userid != this.courseUserid && this.role != "1") {
  8276. // this.updateWork2();
  8277. } else {
  8278. this.updateWork();
  8279. }
  8280. }
  8281. }
  8282. if (s == 1) {
  8283. this.steps = 1;
  8284. setTimeout(() => {
  8285. this.checkEva(this.checkId);
  8286. setTimeout(() => {
  8287. this.checkEva(this.checkId);
  8288. }, 100);
  8289. }, 100);
  8290. }
  8291. if (s == 3) {
  8292. this.cTemplate = this.templateC.content;
  8293. this.dialogVisible2 = false;
  8294. this.steps = 3;
  8295. this.isClickColor = 1;
  8296. this.unitJson[
  8297. this.unitIndex
  8298. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8299. this.$forceUpdate();
  8300. setTimeout(() => {
  8301. this.checkEva(this.checkId);
  8302. setTimeout(() => {
  8303. this.checkEva(this.checkId);
  8304. }, 100);
  8305. }, 1000);
  8306. }
  8307. }
  8308. this.$refs.stepBox.scrollTop = 0;
  8309. },
  8310. nextSteps() {
  8311. // if (this.cidType == 1) {
  8312. if (this.steps == 1) {
  8313. if (this.courseName != "") {
  8314. this.steps = 3;
  8315. this.isClickColor = 1;
  8316. this.unitJson[
  8317. this.unitIndex
  8318. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8319. this.$forceUpdate();
  8320. setTimeout(() => {
  8321. this.checkEva(this.checkId);
  8322. setTimeout(() => {
  8323. this.checkEva(this.checkId);
  8324. }, 100);
  8325. }, 1000);
  8326. if (this.cid == "" || this.cid == undefined) {
  8327. this.addWork();
  8328. } else {
  8329. if (this.userid != this.courseUserid && this.role != "1") {
  8330. // this.updateWork2();
  8331. } else {
  8332. this.updateWork();
  8333. }
  8334. }
  8335. } else {
  8336. this.$message.error("请补充填写课程名称");
  8337. return;
  8338. }
  8339. } else if (this.steps == 3) {
  8340. if (this.cid == "" || this.cid == undefined) {
  8341. if (this.courseName == "") {
  8342. this.$message.error("请补充填写课程名称");
  8343. return;
  8344. } else {
  8345. this.addWork();
  8346. this.steps++;
  8347. }
  8348. } else {
  8349. if (this.courseName == "") {
  8350. this.$message.error("请补充填写课程名称");
  8351. return;
  8352. } else {
  8353. if (this.userid != this.courseUserid && this.role != "1") {
  8354. this.updateWork2();
  8355. } else {
  8356. this.updateWork();
  8357. }
  8358. this.steps++;
  8359. }
  8360. }
  8361. }
  8362. // } else {
  8363. // if (this.steps == 1) {
  8364. // if (this.courseName != "") {
  8365. // if (this.cid == "" || this.cid == undefined) {
  8366. // this.addWork();
  8367. // } else {
  8368. // if (this.userid != this.courseUserid && this.role != "1") {
  8369. // // this.updateWork2();
  8370. // } else {
  8371. // this.updateWork();
  8372. // }
  8373. // }
  8374. // this.steps++;
  8375. // } else {
  8376. // this.$message.error("请补充填写课程名称");
  8377. // return;
  8378. // }
  8379. // } else if (this.steps == 2) {
  8380. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8381. // this.cTemplate = this.templateC.content;
  8382. // }
  8383. // this.dialogVisible2 = false;
  8384. // this.steps++;
  8385. // setTimeout(() => {
  8386. // this.checkEva(this.checkId);
  8387. // setTimeout(() => {
  8388. // this.checkEva(this.checkId);
  8389. // }, 100);
  8390. // }, 1000);
  8391. // } else if (this.steps == 3) {
  8392. // if (this.cid == "" || this.cid == undefined) {
  8393. // if (this.courseName == "") {
  8394. // this.$message.error("请补充填写课程名称");
  8395. // return;
  8396. // } else {
  8397. // this.addWork();
  8398. // this.steps++;
  8399. // }
  8400. // } else {
  8401. // if (this.courseName == "") {
  8402. // this.$message.error("请补充填写课程名称");
  8403. // return;
  8404. // } else {
  8405. // if (this.userid != this.courseUserid && this.role != "1") {
  8406. // this.updateWork2();
  8407. // } else {
  8408. // this.updateWork();
  8409. // }
  8410. // this.steps++;
  8411. // }
  8412. // }
  8413. // }
  8414. // }
  8415. this.$refs.stepBox.scrollTop = 0;
  8416. },
  8417. unitSet(i) {
  8418. if (this.unitIndex == i) {
  8419. return;
  8420. }
  8421. this.unitIndex = i;
  8422. this.isClickColor = 1;
  8423. // this.$refs.rightboxR.scrollTop = 0;
  8424. this.$refs.unitBox.scrollTop = 0;
  8425. },
  8426. panUnitJson() {
  8427. let _unitIndex = this.unitIndex;
  8428. let cPan = 1;
  8429. for (
  8430. var j = 0;
  8431. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8432. j++
  8433. ) {
  8434. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8435. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8436. j
  8437. ].proVisible2 = false;
  8438. if (
  8439. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8440. .length > 1
  8441. ) {
  8442. for (
  8443. var z = 0;
  8444. z <
  8445. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8446. .length;
  8447. z++
  8448. ) {
  8449. if (
  8450. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8451. z
  8452. ].tool.length
  8453. ) {
  8454. this.$message.error("请把工具添加完整");
  8455. cPan = 2;
  8456. break;
  8457. }
  8458. }
  8459. }
  8460. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8461. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8462. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8463. (ele) => {
  8464. return ele.value != "";
  8465. }
  8466. );
  8467. }
  8468. }
  8469. return cPan;
  8470. },
  8471. unitOpen(i) {
  8472. if (this.unitJson[i].toolOpen) {
  8473. this.unitJson[i].toolOpen = false;
  8474. } else {
  8475. this.unitJson[i].toolOpen = true;
  8476. }
  8477. this.updateWork();
  8478. this.$forceUpdate();
  8479. },
  8480. unitSet2(i) {
  8481. if (this.panUnitJson() == 2) {
  8482. return;
  8483. }
  8484. // if(this.unitJson[i].toolOpen){
  8485. // this.unitJson[i].toolOpen = false
  8486. // this.updateWork()
  8487. // this.$forceUpdate()
  8488. // return
  8489. // }else {
  8490. this.unitJson[i].toolOpen = true;
  8491. // }
  8492. this.$forceUpdate();
  8493. if (this.unitIndex == i) {
  8494. return;
  8495. }
  8496. this.unitIndex = i;
  8497. this.isClickColor = 1;
  8498. // this.$refs.rightboxR.scrollTop = 0;
  8499. this.$refs.unitBox.scrollTop = 0;
  8500. },
  8501. updateCourseState(i) {
  8502. let params = [
  8503. {
  8504. cid: this.cid,
  8505. state: i,
  8506. },
  8507. ];
  8508. this.ajax
  8509. .post(this.$store.state.api + "updateCourseMode", params)
  8510. .then((res) => {
  8511. this.courseState = i;
  8512. })
  8513. .catch((err) => {
  8514. this.$message.error("网络不佳");
  8515. console.error(err);
  8516. });
  8517. },
  8518. time() {
  8519. if (!this.now) {
  8520. this.now = new Date().getTime();
  8521. return true;
  8522. } else {
  8523. let time = new Date().getTime();
  8524. if (time - this.now > 3000) {
  8525. this.now = time;
  8526. return true;
  8527. } else {
  8528. return false;
  8529. }
  8530. }
  8531. },
  8532. deleteUnit(i) {
  8533. var _this = this;
  8534. if (i == 0 && _this.unitJson.length == 1) {
  8535. _this
  8536. .$confirm("确定切换成任务模式吗?", "提示", {
  8537. confirmButtonText: "确定",
  8538. cancelButtonText: "取消",
  8539. type: "warning",
  8540. })
  8541. .then(() => {
  8542. _this.unitJson[i].dyName = "";
  8543. _this.updateCourseState(2);
  8544. })
  8545. .catch(() => {
  8546. return;
  8547. });
  8548. } else {
  8549. _this
  8550. .$confirm("确定删除此阶段吗?", "提示", {
  8551. confirmButtonText: "确定",
  8552. cancelButtonText: "取消",
  8553. type: "warning",
  8554. })
  8555. .then(() => {
  8556. _this.isDelete = 2;
  8557. // _this.unitIndex = _this.unitIndex - 1;
  8558. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8559. // _this.$message.success("删除成功");
  8560. })
  8561. .catch(() => {
  8562. return;
  8563. });
  8564. }
  8565. },
  8566. deleteWork(chapid) {
  8567. let params = [
  8568. {
  8569. cid: this.cid,
  8570. chapters: JSON.stringify(this.unitJson),
  8571. uid: this.userid,
  8572. chapid: chapid,
  8573. },
  8574. ];
  8575. this.ajax
  8576. .post(this.$store.state.api + "deleteWork", params)
  8577. .then((res) => {
  8578. this.$message({
  8579. message: "删除成功",
  8580. type: "success",
  8581. });
  8582. let task = JSON.parse(
  8583. JSON.stringify(
  8584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8585. )
  8586. );
  8587. this.unitJson.splice(this.unitIndex, 1);
  8588. if (this.unitIndex == 0) {
  8589. this.unitIndex = 0;
  8590. } else {
  8591. this.unitIndex = this.unitIndex - 1;
  8592. }
  8593. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8595. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8596. ...task,
  8597. ];
  8598. }
  8599. })
  8600. .catch((err) => {
  8601. this.$message.error("网络不佳");
  8602. console.error(err);
  8603. });
  8604. },
  8605. deleteTool(itemTaskIndex, i) {
  8606. var _this = this;
  8607. if (_this.time()) {
  8608. _this
  8609. .$confirm("确定删除此工具吗?", "提示", {
  8610. confirmButtonText: "确定",
  8611. cancelButtonText: "取消",
  8612. type: "warning",
  8613. })
  8614. .then(() => {
  8615. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8616. itemTaskIndex
  8617. ].toolChoose.splice(i, 1);
  8618. _this.$message.success("删除成功");
  8619. })
  8620. .catch(() => {
  8621. return;
  8622. });
  8623. }
  8624. },
  8625. deleteSentence(i) {
  8626. var _this = this;
  8627. _this
  8628. .$confirm("确定删除此题目吗?", "提示", {
  8629. confirmButtonText: "确定",
  8630. cancelButtonText: "取消",
  8631. type: "warning",
  8632. })
  8633. .then(() => {
  8634. _this.sentenceList.splice(i, 1);
  8635. _this.$message.success("删除成功");
  8636. })
  8637. .catch(() => {
  8638. return;
  8639. });
  8640. },
  8641. deleteS(s, i, j) {
  8642. this.sentenceList[i].addSentence.splice(j, 1);
  8643. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8644. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8645. this.sentenceList[i].rightAnswer.splice(a, 1);
  8646. }
  8647. },
  8648. openT() {
  8649. window.topU.postMessage({ tools: "25" }, "*");
  8650. },
  8651. deleteTask(i) {
  8652. var _this = this;
  8653. if (_this.time()) {
  8654. _this
  8655. .$confirm(
  8656. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8657. 1 ==
  8658. i
  8659. ? "确定删除此任务吗?"
  8660. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8661. "提示",
  8662. {
  8663. confirmButtonText: "确定",
  8664. cancelButtonText: "取消",
  8665. type: "warning",
  8666. }
  8667. )
  8668. .then(() => {
  8669. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8670. i,
  8671. 1
  8672. );
  8673. _this.$message.success("删除成功");
  8674. })
  8675. .catch(() => {
  8676. return;
  8677. });
  8678. }
  8679. },
  8680. handlePictureCardPreview(file) {
  8681. this.dialogImageUrl = file.url;
  8682. },
  8683. clean(i, c) {
  8684. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8685. },
  8686. handle_remove1(file, fileList, type) {
  8687. var _tmp = this.cover;
  8688. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8689. // if (_tmp[i].uid == file.uid) {
  8690. // _tmp.splice(i, 1);
  8691. // break;
  8692. // }
  8693. // this.cover = _tmp;
  8694. // }
  8695. this.cover = [];
  8696. this.noneBtnImg = this.cover.length >= 1;
  8697. this.isSysPic = false;
  8698. this.isSysPic2 = false;
  8699. this.$forceUpdate();
  8700. },
  8701. addImg(e) {
  8702. var el = e.currentTarget;
  8703. el.getElementsByTagName("input")[0].click();
  8704. e.target.value = "";
  8705. },
  8706. addChaptersTools(i) {
  8707. this.chapTools = [
  8708. {
  8709. tools: [],
  8710. toolDetail: "",
  8711. },
  8712. ];
  8713. this.chapCount = i;
  8714. this.dialogVisible4 = true;
  8715. },
  8716. isNoFinsh() {
  8717. this.$message.warning("功能正在开发中");
  8718. },
  8719. addAttText(i) {
  8720. this.AttText = {
  8721. title: "",
  8722. text: "",
  8723. };
  8724. this.taskCount = i;
  8725. this.AttTextType = 0;
  8726. this.$forceUpdate();
  8727. this.dialogVisible6 = true;
  8728. setTimeout(() => {
  8729. this.$refs["fuInput"].focus();
  8730. }, 100);
  8731. },
  8732. openLine(i) {
  8733. this.line = "";
  8734. this.lineCount = i;
  8735. this.lineType = 0;
  8736. this.$forceUpdate();
  8737. this.dialogVisible7 = true;
  8738. },
  8739. pasteLine(i) {
  8740. navigator.clipboard
  8741. .readText()
  8742. .then((v) => {
  8743. console.log("获取剪贴板成功:", v);
  8744. const html = v;
  8745. const regex = /src="(.*?)"/g;
  8746. const match = regex.exec(html);
  8747. if (match && match[1]) {
  8748. console.log(match[1]);
  8749. this.$message.success("粘贴成功");
  8750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8751. i
  8752. ].chapterData.push({
  8753. name: "链接",
  8754. title: "嵌入代码",
  8755. url: match[1],
  8756. type: 8,
  8757. });
  8758. } else {
  8759. // console.log("未找到包含 src 属性的 iframe");
  8760. this.$message.error(
  8761. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  8762. );
  8763. }
  8764. })
  8765. .catch((v) => {
  8766. console.log("获取剪贴板失败: ", v);
  8767. });
  8768. },
  8769. openSource(i) {
  8770. this.lineCount = i;
  8771. this.sourceData = {};
  8772. this.dialogVisibleSource = true;
  8773. this.updateSourcePan = false;
  8774. },
  8775. addSource() {
  8776. if (!Object.keys(this.sourceData).length) {
  8777. this.$message.error("请选择要上传的资源");
  8778. return;
  8779. }
  8780. let keys = Object.keys(this.sourceData);
  8781. for (var i = 0; i < keys.length; i++) {
  8782. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8783. this.lineCount
  8784. ].chapterData.push({
  8785. name: "链接",
  8786. title: this.sourceData[keys[i]].name,
  8787. url: this.sourceData[keys[i]].url,
  8788. type: 14,
  8789. id: keys[i],
  8790. });
  8791. }
  8792. this.$forceUpdate();
  8793. this.dialogVisibleSource = false;
  8794. },
  8795. updateSource() {
  8796. if (!Object.keys(this.sourceData).length) {
  8797. this.$message.error("请选择要上传的资源");
  8798. return;
  8799. }
  8800. let keys = Object.keys(this.sourceData);
  8801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8802. this.taskCount
  8803. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  8804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8805. this.taskCount
  8806. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  8807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8808. this.taskCount
  8809. ].chapterData[this.lineCount].id = keys[0];
  8810. this.updateSourcePan = false;
  8811. this.$forceUpdate();
  8812. this.dialogVisibleSource = false;
  8813. },
  8814. deleteM(i, j) {
  8815. this.testJson.testJson[i].timuList.splice(j, 1);
  8816. },
  8817. beforeUploadTiMu(event, i) {
  8818. const loading = this.openLoading();
  8819. var file = event.target.files[0];
  8820. var credentials = {
  8821. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8822. secretAccessKey: "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",
  8823. }; //秘钥形式的登录上传
  8824. window.AWS.config.update(credentials);
  8825. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8826. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8827. var _this = this;
  8828. if (file) {
  8829. var params = {
  8830. Key:
  8831. file.name.split(".")[0] +
  8832. new Date().getTime() +
  8833. "." +
  8834. file.name.split(".")[file.name.split(".").length - 1],
  8835. ContentType: file.type,
  8836. Body: file,
  8837. "Access-Control-Allow-Credentials": "*",
  8838. ACL: "public-read",
  8839. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8840. var options = {
  8841. partSize: 2048 * 1024 * 1024,
  8842. queueSize: 2,
  8843. leavePartsOnError: true,
  8844. };
  8845. bucket
  8846. .upload(params, options)
  8847. .on("httpUploadProgress", function (evt) {
  8848. //这里可以写进度条
  8849. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8850. })
  8851. .send(function (err, data) {
  8852. loading.close();
  8853. if (err) {
  8854. _this.$message.error("上传失败");
  8855. } else {
  8856. if (_this.testJson.testJson[i].timuList) {
  8857. _this.testJson.testJson[i].timuList.push({
  8858. src: data.Location,
  8859. });
  8860. } else {
  8861. _this.testJson.testJson[i].timuList = [];
  8862. _this.testJson.testJson[i].timuList.push({
  8863. src: data.Location,
  8864. });
  8865. }
  8866. _this.imgChange3(i);
  8867. _this.$forceUpdate();
  8868. }
  8869. });
  8870. }
  8871. },
  8872. beforeUploadTi(event, i, j) {
  8873. const loading = this.openLoading();
  8874. var file = event.target.files[0];
  8875. var credentials = {
  8876. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8877. secretAccessKey: "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",
  8878. }; //秘钥形式的登录上传
  8879. window.AWS.config.update(credentials);
  8880. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8881. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8882. var _this = this;
  8883. if (file) {
  8884. var params = {
  8885. Key:
  8886. file.name.split(".")[0] +
  8887. new Date().getTime() +
  8888. "." +
  8889. file.name.split(".")[file.name.split(".").length - 1],
  8890. ContentType: file.type,
  8891. Body: file,
  8892. "Access-Control-Allow-Credentials": "*",
  8893. ACL: "public-read",
  8894. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8895. var options = {
  8896. partSize: 2048 * 1024 * 1024,
  8897. queueSize: 2,
  8898. leavePartsOnError: true,
  8899. };
  8900. bucket
  8901. .upload(params, options)
  8902. .on("httpUploadProgress", function (evt) {
  8903. //这里可以写进度条
  8904. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8905. })
  8906. .send(function (err, data) {
  8907. loading.close();
  8908. if (err) {
  8909. _this.$message.error("上传失败");
  8910. } else {
  8911. _this.testJson.testJson[i].checkList[j] = {};
  8912. _this.testJson.testJson[i].checkList[j].src = data.Location;
  8913. _this.testJson.testJson[i].checkList[j].imgType = 1;
  8914. _this.imgChange2(i, j);
  8915. _this.$forceUpdate();
  8916. }
  8917. });
  8918. }
  8919. },
  8920. beforeUpload1(event, type) {
  8921. // const loading = this.openLoading();
  8922. var file = event.target.files[0];
  8923. var credentials = {
  8924. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8925. secretAccessKey: "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",
  8926. }; //秘钥形式的登录上传
  8927. window.AWS.config.update(credentials);
  8928. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8929. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8930. var _this = this;
  8931. if (file) {
  8932. var params = {
  8933. Key:
  8934. file.name.split(".")[0] +
  8935. new Date().getTime() +
  8936. "." +
  8937. file.name.split(".")[file.name.split(".").length - 1],
  8938. ContentType: file.type,
  8939. Body: file,
  8940. "Access-Control-Allow-Credentials": "*",
  8941. ACL: "public-read",
  8942. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8943. var options = {
  8944. partSize: 2048 * 1024 * 1024,
  8945. queueSize: 2,
  8946. leavePartsOnError: true,
  8947. };
  8948. bucket
  8949. .upload(params, options)
  8950. .on("httpUploadProgress", function (evt) {
  8951. //这里可以写进度条
  8952. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8953. })
  8954. .send(function (err, data) {
  8955. // loading.close();
  8956. if (err) {
  8957. // var a = _this.$refs.upload1.uploadFiles;
  8958. // a.splice(a.length - 1, a.length);
  8959. _this.$message.error("上传失败");
  8960. } else {
  8961. // _this.cover.push({
  8962. // name: file.name,
  8963. // url: data.Location,
  8964. // uid: file.uid,
  8965. // });
  8966. _this.cover = [
  8967. {
  8968. name: file.name,
  8969. url: data.Location,
  8970. uid: file.uid,
  8971. },
  8972. ];
  8973. _this.imgChange1(null, null, 1, null);
  8974. _this.choosePicVisible = false;
  8975. console.log(data.Location);
  8976. }
  8977. });
  8978. }
  8979. },
  8980. beforeUploadSelect(event, type) {
  8981. // const loading = this.openLoading();
  8982. var file = event.target.files[0];
  8983. var credentials = {
  8984. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8985. secretAccessKey: "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",
  8986. }; //秘钥形式的登录上传
  8987. window.AWS.config.update(credentials);
  8988. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8989. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8990. var _this = this;
  8991. if (file) {
  8992. var params = {
  8993. Key:
  8994. file.name.split(".")[0] +
  8995. new Date().getTime() +
  8996. "." +
  8997. file.name.split(".")[file.name.split(".").length - 1],
  8998. ContentType: file.type,
  8999. Body: file,
  9000. "Access-Control-Allow-Credentials": "*",
  9001. ACL: "public-read",
  9002. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9003. var options = {
  9004. partSize: 2048 * 1024 * 1024,
  9005. queueSize: 2,
  9006. leavePartsOnError: true,
  9007. };
  9008. bucket
  9009. .upload(params, options)
  9010. .on("httpUploadProgress", function (evt) {
  9011. //这里可以写进度条
  9012. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9013. })
  9014. .send(function (err, data) {
  9015. // loading.close();
  9016. if (err) {
  9017. _this.$message.error("上传失败");
  9018. } else {
  9019. _this.selectJson.url = data.Location;
  9020. console.log(data.Location);
  9021. }
  9022. });
  9023. }
  9024. },
  9025. chooseSysPic(p) {
  9026. this.cover = [];
  9027. setTimeout(() => {
  9028. this.cover[0] = {
  9029. name: "系统图片.png",
  9030. url: p,
  9031. };
  9032. this.imgChange1(null, null, 1, null);
  9033. this.$forceUpdate();
  9034. }, 0);
  9035. this.isSysPic = true;
  9036. this.isSysPic2 = false;
  9037. this.sysPicVisible = false;
  9038. this.$forceUpdate();
  9039. },
  9040. chooseSysPic2(p) {
  9041. this.cover = [];
  9042. setTimeout(() => {
  9043. this.cover[0] = {
  9044. name: "网络图片.png",
  9045. url: p,
  9046. };
  9047. this.imgChange1(null, null, 1, null);
  9048. this.$forceUpdate();
  9049. }, 0);
  9050. this.isSysPic2 = true;
  9051. this.isSysPic = false;
  9052. this.sysPicVisible2 = false;
  9053. this.$forceUpdate();
  9054. },
  9055. beforeUpload(data) {
  9056. this.$refs.upload1.uploadFiles;
  9057. this.uploadLoading1 = true;
  9058. var file = data.file;
  9059. var credentials = {
  9060. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9061. secretAccessKey: "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",
  9062. }; //秘钥形式的登录上传
  9063. window.AWS.config.update(credentials);
  9064. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9065. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9066. var _this = this;
  9067. if (file) {
  9068. var params = {
  9069. Key:
  9070. file.name.split(".")[0] +
  9071. new Date().getTime() +
  9072. "." +
  9073. file.name.split(".")[file.name.split(".").length - 1],
  9074. ContentType: file.type,
  9075. Body: file,
  9076. "Access-Control-Allow-Credentials": "*",
  9077. ACL: "public-read",
  9078. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9079. var options = {
  9080. partSize: 2048 * 1024 * 1024,
  9081. queueSize: 2,
  9082. leavePartsOnError: true,
  9083. };
  9084. bucket
  9085. .upload(params, options)
  9086. .on("httpUploadProgress", function (evt) {
  9087. //这里可以写进度条
  9088. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9089. })
  9090. .send(function (err, data) {
  9091. _this.uploadLoading1 = false;
  9092. if (err) {
  9093. // var a = _this.$refs.upload1.uploadFiles;
  9094. // a.splice(a.length - 1, a.length);
  9095. _this.$message.error("上传失败");
  9096. } else {
  9097. //上传成功处理
  9098. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9099. name: file.name,
  9100. url: data.Location,
  9101. uid: file.uid,
  9102. });
  9103. _this.imgChange();
  9104. console.log(data.Location);
  9105. }
  9106. });
  9107. }
  9108. },
  9109. onExceed() {
  9110. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9111. },
  9112. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9113. // const loading = this.openLoading();
  9114. var file = event.target.files[0];
  9115. var credentials = {
  9116. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9117. secretAccessKey: "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",
  9118. }; //秘钥形式的登录上传
  9119. window.AWS.config.update(credentials);
  9120. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9121. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9122. var _this = this;
  9123. if (type == 3) {
  9124. var b = [
  9125. "DOC",
  9126. "DOCX",
  9127. "DOCM",
  9128. "DOTM",
  9129. "DOTX",
  9130. "PPTX",
  9131. "PPSX",
  9132. "PPT",
  9133. "PPS",
  9134. "PPTM",
  9135. "POTM",
  9136. "PPAM",
  9137. "POTX",
  9138. "PPSM",
  9139. ];
  9140. if (
  9141. b.indexOf(
  9142. file.name
  9143. .split(".")
  9144. [file.name.split(".").length - 1].toLocaleUpperCase()
  9145. ) != -1
  9146. ) {
  9147. if (file.size / 1024 / 1024 > 80) {
  9148. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9149. this.inputShow = true;
  9150. // var a = _this.$refs.upload1.uploadFiles;
  9151. // a.splice(a.length - 1, a.length);
  9152. // loading.close();
  9153. return;
  9154. }
  9155. } else if (
  9156. file.name
  9157. .split(".")
  9158. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9159. ) {
  9160. if (file.size / 1024 / 1024 > 80) {
  9161. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9162. this.inputShow = true;
  9163. // var a = _this.$refs.upload1.uploadFiles;
  9164. // a.splice(a.length - 1, a.length);
  9165. // loading.close();
  9166. return;
  9167. }
  9168. }
  9169. }
  9170. this.inputShow = false;
  9171. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9172. itemTaskIndex
  9173. ].progress = 0;
  9174. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9175. itemTaskIndex
  9176. ].proVisible = true;
  9177. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9178. itemTaskIndex
  9179. ].isFinishSize = 0;
  9180. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9181. itemTaskIndex
  9182. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9183. _this.$forceUpdate();
  9184. if (file) {
  9185. var params = {
  9186. Key:
  9187. file.name.split(".")[0] +
  9188. new Date().getTime() +
  9189. "." +
  9190. file.name.split(".")[file.name.split(".").length - 1],
  9191. ContentType: file.type,
  9192. Body: file,
  9193. "Access-Control-Allow-Credentials": "*",
  9194. ACL: "public-read",
  9195. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9196. var options = {
  9197. partSize: 2048 * 1024 * 1024,
  9198. queueSize: 2,
  9199. leavePartsOnError: true,
  9200. };
  9201. bucket
  9202. .upload(params, options)
  9203. .on("httpUploadProgress", function (evt) {
  9204. //这里可以写进度条
  9205. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9206. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9207. itemTaskIndex
  9208. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9209. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9210. itemTaskIndex
  9211. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9212. _this.$forceUpdate();
  9213. })
  9214. .send(function (err, data) {
  9215. // loading.close();
  9216. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9217. itemTaskIndex
  9218. ].progress = 100;
  9219. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9220. itemTaskIndex
  9221. ].isFinishSize =
  9222. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9223. itemTaskIndex
  9224. ].isAllSize;
  9225. _this.$forceUpdate();
  9226. setTimeout(() => {
  9227. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9228. itemTaskIndex
  9229. ].proVisible = false;
  9230. _this.$forceUpdate();
  9231. }, 1000);
  9232. _this.inputShow = true;
  9233. if (err) {
  9234. // var a = _this.$refs.upload1.uploadFiles;
  9235. // a.splice(a.length - 1, a.length);
  9236. _this.$message.error("上传失败");
  9237. } else {
  9238. if (type == 13) {
  9239. let _type = 2;
  9240. var imgA = [
  9241. "png",
  9242. "jpg",
  9243. "jpeg",
  9244. "bmp",
  9245. "gif",
  9246. "webp",
  9247. "psd",
  9248. "svg",
  9249. "tiff",
  9250. ];
  9251. var fileA = [
  9252. "PDF",
  9253. "DOC",
  9254. "DOCX",
  9255. "DOCM",
  9256. "DOTM",
  9257. "DOTX",
  9258. "PPTX",
  9259. "PPSX",
  9260. "PPT",
  9261. "PPS",
  9262. "PPTM",
  9263. "POTM",
  9264. "PPAM",
  9265. "POTX",
  9266. "PPSM",
  9267. "XLSX",
  9268. "XLS",
  9269. ];
  9270. var videoA = [
  9271. "AVI",
  9272. "NAVI",
  9273. "MPEG",
  9274. "ASF",
  9275. "MOV",
  9276. "WMV",
  9277. "3GP",
  9278. "RM",
  9279. "RMVB",
  9280. "FLV",
  9281. "F4V",
  9282. "H.264",
  9283. "H.265",
  9284. "REAL VIDEO",
  9285. "MKV",
  9286. "WebM",
  9287. "HDDVD",
  9288. "MP4",
  9289. "MPG",
  9290. "M4V",
  9291. "MGV",
  9292. "OGV",
  9293. "QTM",
  9294. "STR",
  9295. "AMC",
  9296. "DVX",
  9297. "EVO",
  9298. "DAT",
  9299. "OGG",
  9300. "OGM",
  9301. ];
  9302. if (
  9303. fileA.indexOf(
  9304. data.Location.split(".")[
  9305. data.Location.split(".").length - 1
  9306. ].toLocaleUpperCase()
  9307. ) != -1
  9308. ) {
  9309. _type = 3;
  9310. } else if (
  9311. videoA.indexOf(
  9312. data.Location.split(".")[
  9313. data.Location.split(".").length - 1
  9314. ].toLocaleUpperCase()
  9315. ) != -1
  9316. ) {
  9317. _type = 2;
  9318. } else if (
  9319. imgA.indexOf(
  9320. data.Location.split(".")[
  9321. data.Location.split(".").length - 1
  9322. ].toLocaleLowerCase()
  9323. ) != -1
  9324. ) {
  9325. _type = 13;
  9326. } else {
  9327. _type = 12;
  9328. }
  9329. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9330. itemTaskIndex
  9331. ].chapterData.push({
  9332. name: file.name,
  9333. url: data.Location,
  9334. uid: file.uid,
  9335. type: _type,
  9336. });
  9337. _this.imgChange1(null, null, _type, itemTaskIndex);
  9338. } else if (type == 2 || type == 3 || type == 12) {
  9339. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9340. itemTaskIndex
  9341. ].chapterData.push({
  9342. name: file.name,
  9343. url: data.Location,
  9344. uid: file.uid,
  9345. type: type,
  9346. });
  9347. _this.imgChange1(null, null, type, itemTaskIndex);
  9348. } else if (type == 4) {
  9349. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9350. itemTaskIndex
  9351. ].fileList1.push({
  9352. name: file.name,
  9353. url: data.Location,
  9354. uid: file.uid,
  9355. });
  9356. _this.imgChange1(null, null, type, itemTaskIndex);
  9357. } else if (type == 5) {
  9358. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9359. itemTaskIndex
  9360. ].homeworkList.push({
  9361. name: file.name,
  9362. url: data.Location,
  9363. uid: file.uid,
  9364. });
  9365. _this.imgChange1(null, null, type, itemTaskIndex);
  9366. }
  9367. console.log(data.Location);
  9368. }
  9369. });
  9370. }
  9371. },
  9372. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9373. // const loading = this.openLoading();
  9374. var file = event.target.files[0];
  9375. var credentials = {
  9376. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9377. secretAccessKey: "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",
  9378. }; //秘钥形式的登录上传
  9379. window.AWS.config.update(credentials);
  9380. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9381. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9382. var _this = this;
  9383. if (type == 3) {
  9384. var b = [
  9385. "DOC",
  9386. "DOCX",
  9387. "DOCM",
  9388. "DOTM",
  9389. "DOTX",
  9390. "PPTX",
  9391. "PPSX",
  9392. "PPT",
  9393. "PPS",
  9394. "PPTM",
  9395. "POTM",
  9396. "PPAM",
  9397. "POTX",
  9398. "PPSM",
  9399. ];
  9400. if (
  9401. b.indexOf(
  9402. file.name
  9403. .split(".")
  9404. [file.name.split(".").length - 1].toLocaleUpperCase()
  9405. ) != -1
  9406. ) {
  9407. if (file.size / 1024 / 1024 > 80) {
  9408. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9409. this.inputShow = true;
  9410. // var a = _this.$refs.upload1.uploadFiles;
  9411. // a.splice(a.length - 1, a.length);
  9412. // loading.close();
  9413. return;
  9414. }
  9415. } else if (
  9416. file.name
  9417. .split(".")
  9418. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9419. ) {
  9420. if (file.size / 1024 / 1024 > 80) {
  9421. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9422. this.inputShow = true;
  9423. // var a = _this.$refs.upload1.uploadFiles;
  9424. // a.splice(a.length - 1, a.length);
  9425. // loading.close();
  9426. return;
  9427. }
  9428. }
  9429. }
  9430. this.inputShow = false;
  9431. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9432. itemTaskIndex
  9433. ].progress = 0;
  9434. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9435. itemTaskIndex
  9436. ].proVisible = true;
  9437. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9438. itemTaskIndex
  9439. ].isFinishSize = 0;
  9440. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9441. itemTaskIndex
  9442. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9443. _this.$forceUpdate();
  9444. if (file) {
  9445. var params = {
  9446. Key:
  9447. file.name.split(".")[0] +
  9448. new Date().getTime() +
  9449. "." +
  9450. file.name.split(".")[file.name.split(".").length - 1],
  9451. ContentType: file.type,
  9452. Body: file,
  9453. "Access-Control-Allow-Credentials": "*",
  9454. ACL: "public-read",
  9455. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9456. var options = {
  9457. partSize: 2048 * 1024 * 1024,
  9458. queueSize: 2,
  9459. leavePartsOnError: true,
  9460. };
  9461. bucket
  9462. .upload(params, options)
  9463. .on("httpUploadProgress", function (evt) {
  9464. //这里可以写进度条
  9465. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9466. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9467. itemTaskIndex
  9468. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9469. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9470. itemTaskIndex
  9471. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9472. _this.$forceUpdate();
  9473. })
  9474. .send(function (err, data) {
  9475. // loading.close();
  9476. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9477. itemTaskIndex
  9478. ].progress = 100;
  9479. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9480. itemTaskIndex
  9481. ].isFinishSize =
  9482. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9483. itemTaskIndex
  9484. ].isAllSize;
  9485. _this.$forceUpdate();
  9486. setTimeout(() => {
  9487. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9488. itemTaskIndex
  9489. ].proVisible = false;
  9490. _this.$forceUpdate();
  9491. }, 1000);
  9492. _this.inputShow = true;
  9493. if (err) {
  9494. // var a = _this.$refs.upload1.uploadFiles;
  9495. // a.splice(a.length - 1, a.length);
  9496. _this.$message.error("上传失败");
  9497. } else {
  9498. if (type == 2 || type == 3) {
  9499. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9500. itemTaskIndex
  9501. ].chapterData.push({
  9502. name: file.name,
  9503. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9504. // itemTaskIndex
  9505. // ].chapterData.length+1),
  9506. url: data.Location,
  9507. uid: file.uid,
  9508. type: type,
  9509. text: string,
  9510. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9511. // itemTaskIndex
  9512. // ].chapterData.length + 1),
  9513. });
  9514. _this.imgChange1(null, null, type, itemTaskIndex);
  9515. } else if (type == 4) {
  9516. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9517. itemTaskIndex
  9518. ].fileList1.push({
  9519. name: file.name,
  9520. url: data.Location,
  9521. uid: file.uid,
  9522. });
  9523. _this.imgChange1(null, null, type, itemTaskIndex);
  9524. } else if (type == 5) {
  9525. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9526. itemTaskIndex
  9527. ].homeworkList.push({
  9528. name: file.name,
  9529. url: data.Location,
  9530. uid: file.uid,
  9531. });
  9532. _this.imgChange1(null, null, type, itemTaskIndex);
  9533. }
  9534. console.log(data.Location);
  9535. }
  9536. });
  9537. }
  9538. },
  9539. addunit() {
  9540. this.unitJson.push({
  9541. dyName: "", //单元标题
  9542. isUpdate: 1,
  9543. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9544. chapterInfo: [
  9545. {
  9546. isread: false,
  9547. chapterid: this.guid(),
  9548. title: "",
  9549. courseName: "",
  9550. taskJson: [
  9551. {
  9552. task: "",
  9553. taskDetail: "",
  9554. chapterData: [],
  9555. toolText: "",
  9556. toolChoose: [
  9557. {
  9558. tool: [],
  9559. toolDetail: "",
  9560. toolType: 0,
  9561. askCount: 1,
  9562. askTitle: "",
  9563. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9564. },
  9565. ],
  9566. isShowTools: false,
  9567. askCount: 1,
  9568. isFold: 1,
  9569. askTitle: "",
  9570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9571. checkJson: [{ checkCount: [], checkPerent: [] }],
  9572. homeworkList: [],
  9573. },
  9574. ],
  9575. itemCount: 1,
  9576. fileList1: [],
  9577. video: [],
  9578. testData: [],
  9579. pData: [],
  9580. templateArray: [],
  9581. },
  9582. ],
  9583. });
  9584. this.addindex = this.unitJson.length - 1;
  9585. setTimeout(() => {
  9586. this.unitIndex = this.unitJson.length - 1;
  9587. setTimeout(() => {
  9588. console.log(this.$refs.dyInput);
  9589. this.$refs.dyInput[0].focus();
  9590. }, 100);
  9591. this.unitSet(this.unitIndex);
  9592. }, 0);
  9593. },
  9594. addToolFun(itemTaskIndex) {
  9595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9596. itemTaskIndex
  9597. ].toolChoose.push({
  9598. tool: [],
  9599. toolDetail: "",
  9600. toolType: 0,
  9601. askCount: 1,
  9602. askTitle: "",
  9603. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9604. });
  9605. },
  9606. addTaskBorder() {
  9607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9608. task: "",
  9609. taskDetail: "",
  9610. chapterData: [],
  9611. toolText: "",
  9612. toolChoose: [
  9613. {
  9614. tool: [],
  9615. toolDetail: "",
  9616. toolType: 0,
  9617. askCount: 1,
  9618. askTitle: "",
  9619. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9620. },
  9621. ],
  9622. isShowTools: false,
  9623. askCount: 1,
  9624. isFold: 1, //任务收起状态
  9625. askTitle: "",
  9626. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9627. checkJson: [{ checkCount: [], checkPerent: [] }],
  9628. homeworkList: [],
  9629. });
  9630. setTimeout(() => {
  9631. this.checkEva(this.checkId);
  9632. setTimeout(() => {
  9633. this.checkEva(this.checkId);
  9634. }, 100);
  9635. }, 100);
  9636. },
  9637. add(e, i) {
  9638. var el = e.currentTarget;
  9639. el.getElementsByTagName("input")[0].click();
  9640. },
  9641. fold(i, e) {
  9642. if (
  9643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9644. ) {
  9645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9646. } else {
  9647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9648. }
  9649. },
  9650. fold2(i) {
  9651. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9653. i
  9654. ].isFold2 = false;
  9655. } else {
  9656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9657. }
  9658. this.$forceUpdate();
  9659. },
  9660. foldEva(i) {
  9661. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9663. i
  9664. ].isEvaFold = false;
  9665. } else {
  9666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9667. i
  9668. ].isEvaFold = true;
  9669. setTimeout(() => {
  9670. this.checkEva(this.checkId);
  9671. setTimeout(() => {
  9672. this.checkEva(this.checkId);
  9673. }, 500);
  9674. }, 0);
  9675. }
  9676. this.$forceUpdate();
  9677. },
  9678. foldC(i) {
  9679. if (
  9680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9681. ) {
  9682. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9683. i
  9684. ].isFoldchapter = false;
  9685. } else {
  9686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9687. i
  9688. ].isFoldchapter = true;
  9689. }
  9690. this.$forceUpdate();
  9691. },
  9692. fold3(i, ti) {
  9693. if (
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9695. .isFold3
  9696. ) {
  9697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9698. ti
  9699. ].isFold3 = false;
  9700. } else {
  9701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9702. ti
  9703. ].isFold3 = true;
  9704. }
  9705. this.$forceUpdate();
  9706. },
  9707. deleteHomeworkBox(unitIndex, index, i) {
  9708. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9709. this.taskCount
  9710. ].homeworkList.splice(i, 1);
  9711. },
  9712. getStudent() {
  9713. let params = {
  9714. oid: this.oid,
  9715. cu: "",
  9716. cn: this.searchPeople,
  9717. };
  9718. this.ajax
  9719. .get(this.$store.state.api + "selectStudentAdd", params)
  9720. .then((res) => {
  9721. this.studentJuri = res.data[0];
  9722. })
  9723. .catch((err) => {
  9724. this.isLoading = false;
  9725. console.error(err);
  9726. });
  9727. },
  9728. getTeacher() {
  9729. let params = {
  9730. oid:
  9731. this.org && this.org != "undefined" && this.org != "null"
  9732. ? this.org
  9733. : this.oid,
  9734. cu: "",
  9735. cn: this.searchTN,
  9736. };
  9737. this.ajax
  9738. .get(
  9739. this.$store.state.api +
  9740. (this.org && this.org != "undefined" && this.org != "null"
  9741. ? "selectTeacherAddOrg"
  9742. : "selectTeacherAdd"),
  9743. params
  9744. )
  9745. .then((res) => {
  9746. let teacherJuri = res.data[0];
  9747. for (var i = 0; i < teacherJuri.length; i++) {
  9748. if (teacherJuri[i].userid == this.userid) {
  9749. teacherJuri.splice(i, 1);
  9750. break;
  9751. }
  9752. }
  9753. this.teacherJuri = teacherJuri;
  9754. let _check = [];
  9755. let _check2 = [];
  9756. for (var i = 0; i < this.teacherJuri.length; i++) {
  9757. var gid = this.teacherJuri[i].userid;
  9758. _check.push(gid);
  9759. }
  9760. for (var i = 0; i < this.checkboxList3.length; i++) {
  9761. var _id = this.checkboxList3[i];
  9762. if (_check.indexOf(_id) !== -1) {
  9763. _check2.push(_id);
  9764. }
  9765. }
  9766. this.checkAll2 = _check2.length === _check.length;
  9767. })
  9768. .catch((err) => {
  9769. console.error(err);
  9770. });
  9771. },
  9772. searchStudent() {
  9773. this.getStudent();
  9774. },
  9775. selectGrage() {
  9776. let params = {
  9777. oid: this.oid,
  9778. };
  9779. this.ajax
  9780. .get(this.$store.state.api + "selectGrageBySchool", params)
  9781. .then((res) => {
  9782. this.gradeList = res.data[0];
  9783. })
  9784. .catch((err) => {
  9785. this.isLoading = false;
  9786. console.error(err);
  9787. });
  9788. },
  9789. //获取班级列表
  9790. getClass() {
  9791. let params = {
  9792. oid: this.oid,
  9793. gid: this.gradeId,
  9794. cn: this.classSearch,
  9795. };
  9796. this.ajax
  9797. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  9798. .then((res) => {
  9799. if (!this.grade.length) {
  9800. this.grade = res.data[0];
  9801. }
  9802. this.grade2 = res.data[0];
  9803. this.classJuri = res.data[0];
  9804. let _check = [];
  9805. let _check2 = [];
  9806. for (var i = 0; i < this.grade2.length; i++) {
  9807. var gid = this.grade2[i].id;
  9808. _check.push(gid);
  9809. }
  9810. for (var i = 0; i < this.checkboxList2.length; i++) {
  9811. var _id = this.checkboxList2[i];
  9812. if (_check.indexOf(_id) !== -1) {
  9813. _check2.push(_id);
  9814. }
  9815. }
  9816. this.checkAll = _check2.length === _check.length;
  9817. })
  9818. .catch((err) => {
  9819. this.isLoading = false;
  9820. console.error(err);
  9821. });
  9822. },
  9823. CourseType2Change(val) {
  9824. this.pTypeCheck = [];
  9825. for (var i = 0; i < this.CourseType2.length; i++) {
  9826. let typeA = this.CourseType2[i];
  9827. if (val.indexOf(typeA.name) != -1) {
  9828. this.pTypeCheck.push(...typeA.id);
  9829. }
  9830. }
  9831. },
  9832. getChapterData(e, i, j, ic, type) {
  9833. e.stopPropagation();
  9834. this.updataC = true;
  9835. this.icc = ic;
  9836. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  9837. console.log("还不能下载图片喔");
  9838. }
  9839. },
  9840. deleteChapterData(e, i, j, ic, taskI) {
  9841. e.stopPropagation();
  9842. let _this = this;
  9843. _this
  9844. .$confirm("确定删除此项?", "提示", {
  9845. confirmButtonText: "确定",
  9846. cancelButtonText: "取消",
  9847. type: "warning",
  9848. })
  9849. .then(() => {
  9850. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  9851. ic,
  9852. 1
  9853. );
  9854. })
  9855. .catch(() => {
  9856. return;
  9857. });
  9858. },
  9859. updataVideoT(e, i, j, ic) {
  9860. // e.stopPropagation();
  9861. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  9862. // ic
  9863. // ].name = JSON.parse(JSON.stringify(e.target.value));
  9864. this.line =
  9865. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  9866. this.taskCount = j;
  9867. this.lineCount = ic;
  9868. this.dialogVisibleupdataVideoT = true;
  9869. this.$forceUpdate();
  9870. },
  9871. updataVideoC() {
  9872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9873. this.taskCount
  9874. ].chapterData[this.lineCount].name = JSON.parse(
  9875. JSON.stringify(this.line)
  9876. );
  9877. this.dialogVisibleupdataVideoT = false;
  9878. this.$forceUpdate();
  9879. },
  9880. upCd(e, i, j, taskCount, ic) {
  9881. e.stopPropagation();
  9882. if (ic == 0) {
  9883. return;
  9884. }
  9885. var a = JSON.parse(
  9886. JSON.stringify(
  9887. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9888. ic - 1
  9889. ]
  9890. )
  9891. );
  9892. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  9893. JSON.parse(
  9894. JSON.stringify(
  9895. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9896. )
  9897. );
  9898. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9899. this.$forceUpdate();
  9900. },
  9901. downCd(e, i, j, taskCount, ic) {
  9902. e.stopPropagation();
  9903. if (
  9904. ic ==
  9905. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  9906. 1
  9907. ) {
  9908. return;
  9909. }
  9910. var a = JSON.parse(
  9911. JSON.stringify(
  9912. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9913. ic + 1
  9914. ]
  9915. )
  9916. );
  9917. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  9918. JSON.parse(
  9919. JSON.stringify(
  9920. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9921. )
  9922. );
  9923. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9924. this.$forceUpdate();
  9925. },
  9926. async upTool(e, i, j, tooli) {
  9927. e.stopPropagation();
  9928. if (tooli == 0) {
  9929. return;
  9930. }
  9931. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  9932. let count2 = await this.getWorksCount(3, i, j, tooli);
  9933. if (count1 > 0 || count2 > 0) {
  9934. this.$confirm(
  9935. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9936. "提示",
  9937. {
  9938. confirmButtonText: "确定",
  9939. cancelButtonText: "取消",
  9940. type: "warning",
  9941. }
  9942. )
  9943. .then(() => {
  9944. var a = JSON.parse(
  9945. JSON.stringify(
  9946. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  9947. tooli - 1
  9948. ]
  9949. )
  9950. );
  9951. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  9952. JSON.parse(
  9953. JSON.stringify(
  9954. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9955. )
  9956. );
  9957. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9958. this.$forceUpdate();
  9959. })
  9960. .catch(() => {
  9961. return;
  9962. });
  9963. } else {
  9964. var a = JSON.parse(
  9965. JSON.stringify(
  9966. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  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. },
  9979. async downTool(e, i, j, tooli) {
  9980. e.stopPropagation();
  9981. if (
  9982. tooli ==
  9983. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  9984. ) {
  9985. return;
  9986. }
  9987. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  9988. let count2 = await this.getWorksCount(3, i, j, tooli);
  9989. if (count1 > 0 || count2 > 0) {
  9990. this.$confirm(
  9991. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9992. "提示",
  9993. {
  9994. confirmButtonText: "确定",
  9995. cancelButtonText: "取消",
  9996. type: "warning",
  9997. }
  9998. )
  9999. .then(() => {
  10000. var a = JSON.parse(
  10001. JSON.stringify(
  10002. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10003. tooli + 1
  10004. ]
  10005. )
  10006. );
  10007. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10008. JSON.parse(
  10009. JSON.stringify(
  10010. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10011. )
  10012. );
  10013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10014. this.$forceUpdate();
  10015. })
  10016. .catch(() => {
  10017. return;
  10018. });
  10019. } else {
  10020. var a = JSON.parse(
  10021. JSON.stringify(
  10022. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10023. )
  10024. );
  10025. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10026. JSON.parse(
  10027. JSON.stringify(
  10028. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10029. )
  10030. );
  10031. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10032. this.$forceUpdate();
  10033. }
  10034. },
  10035. addWork() {
  10036. let cPan = 1;
  10037. for (var i = 0; i < this.unitJson.length; i++) {
  10038. for (
  10039. var j = 0;
  10040. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10041. j++
  10042. ) {
  10043. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10044. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10045. if (
  10046. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10047. ) {
  10048. for (
  10049. var z = 0;
  10050. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10051. z++
  10052. ) {
  10053. if (
  10054. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10055. .length
  10056. ) {
  10057. this.$message.error("请把工具添加完整");
  10058. cPan = 2;
  10059. break;
  10060. }
  10061. }
  10062. }
  10063. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10064. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10065. i
  10066. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10067. return ele.value != "";
  10068. });
  10069. }
  10070. }
  10071. }
  10072. this.inputShow = true;
  10073. if (cPan == 2) {
  10074. this.steps--;
  10075. return;
  10076. }
  10077. for (var i = 0; i < this.unitJson.length; i++) {
  10078. delete this.unitJson[i].isUpdate;
  10079. }
  10080. let imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png'
  10081. if (this.lang.lang == 'com') {
  10082. imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20260112142829_1081_2831768354076152.png'
  10083. }
  10084. let params = [
  10085. {
  10086. uid: this.userid,
  10087. title: this.courseName,
  10088. brief: this.courseText,
  10089. cover:
  10090. this.cover.length > 0
  10091. ? JSON.stringify(this.cover)
  10092. : JSON.stringify([
  10093. {
  10094. name: "noBanner.jpg",
  10095. url: imgUrl,
  10096. uid: 1656409780264,
  10097. status: "success",
  10098. },
  10099. ]),
  10100. evaId: this.evalua,
  10101. astudent:
  10102. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10103. see: this.isTeacherSee == true ? 1 : 0,
  10104. chapters: JSON.stringify(this.unitJson),
  10105. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10106. courseType: JSON.stringify(this.courseTypeId),
  10107. ateacher:
  10108. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10109. inviteCode: JSON.stringify(this.inviteCode),
  10110. },
  10111. ];
  10112. this.ajax
  10113. .post(this.$store.state.api + "addWorkNew2", params)
  10114. .then((res) => {
  10115. console.log(this.steps);
  10116. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10117. this.$message({
  10118. message: "新增成功",
  10119. type: "success",
  10120. });
  10121. }
  10122. this.number = res.data.ordernumber;
  10123. this.courseId = res.data.courseId;
  10124. this.cid = res.data.courseId;
  10125. this.courseUserid = this.userid;
  10126. this.islogin = true;
  10127. })
  10128. .catch((err) => {
  10129. this.$message.error("网络不佳");
  10130. console.error(err);
  10131. });
  10132. },
  10133. goCourse() {
  10134. window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
  10135. },
  10136. updateWork2() {
  10137. let _unitIndex = this.unitIndex;
  10138. let cPan = 1;
  10139. for (
  10140. var j = 0;
  10141. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10142. j++
  10143. ) {
  10144. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10145. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10146. j
  10147. ].proVisible2 = false;
  10148. if (
  10149. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10150. .length > 1
  10151. ) {
  10152. for (
  10153. var z = 0;
  10154. z <
  10155. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10156. .length;
  10157. z++
  10158. ) {
  10159. if (
  10160. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10161. z
  10162. ].tool.length
  10163. ) {
  10164. this.$message.error("请把工具添加完整");
  10165. cPan = 2;
  10166. break;
  10167. }
  10168. }
  10169. }
  10170. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10171. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10172. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10173. (ele) => {
  10174. return ele.value != "";
  10175. }
  10176. );
  10177. }
  10178. }
  10179. this.inputShow = true;
  10180. if (cPan == 2) {
  10181. this.steps--;
  10182. return;
  10183. }
  10184. let params = [
  10185. {
  10186. cid: this.cid,
  10187. chapters: JSON.stringify(this.unitJson),
  10188. uid: this.userid,
  10189. unitIndex: _unitIndex,
  10190. },
  10191. ];
  10192. this.ajax
  10193. .post(this.$store.state.api + "updateWorkNew4", params)
  10194. .then((res) => {
  10195. this.$message({
  10196. message: "修改成功",
  10197. type: "success",
  10198. });
  10199. this.courseId = this.cid;
  10200. })
  10201. .catch((err) => {
  10202. this.$message.error("网络不佳");
  10203. console.error(err);
  10204. });
  10205. },
  10206. updateWork3(unitIndex) {
  10207. let _unitIndex = unitIndex;
  10208. let cPan = 1;
  10209. for (
  10210. var j = 0;
  10211. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10212. j++
  10213. ) {
  10214. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10215. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10216. j
  10217. ].proVisible2 = false;
  10218. if (
  10219. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10220. .length > 1
  10221. ) {
  10222. for (
  10223. var z = 0;
  10224. z <
  10225. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10226. .length;
  10227. z++
  10228. ) {
  10229. if (
  10230. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10231. z
  10232. ].tool.length
  10233. ) {
  10234. this.$message.error("请把工具添加完整");
  10235. cPan = 2;
  10236. break;
  10237. }
  10238. }
  10239. }
  10240. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10241. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10242. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10243. (ele) => {
  10244. return ele.value != "";
  10245. }
  10246. );
  10247. }
  10248. }
  10249. this.inputShow = true;
  10250. if (cPan == 2) {
  10251. this.steps--;
  10252. return;
  10253. }
  10254. let params = [
  10255. {
  10256. cid: this.cid,
  10257. chapters: JSON.stringify(this.unitJson),
  10258. uid: this.userid,
  10259. unitIndex: _unitIndex,
  10260. },
  10261. ];
  10262. this.ajax
  10263. .post(this.$store.state.api + "updateWorkNew4", params)
  10264. .then((res) => {
  10265. // this.$message({
  10266. // message: "修改成功",
  10267. // type: "success",
  10268. // });
  10269. this.courseId = this.cid;
  10270. })
  10271. .catch((err) => {
  10272. this.$message.error("网络不佳");
  10273. console.error(err);
  10274. });
  10275. },
  10276. updateWork() {
  10277. let cPan = 1;
  10278. for (var i = 0; i < this.unitJson.length; i++) {
  10279. for (
  10280. var j = 0;
  10281. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10282. j++
  10283. ) {
  10284. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10285. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10286. if (
  10287. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10288. ) {
  10289. for (
  10290. var z = 0;
  10291. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10292. z++
  10293. ) {
  10294. if (
  10295. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10296. .length
  10297. ) {
  10298. this.$message.error("请把工具添加完整");
  10299. cPan = 2;
  10300. break;
  10301. }
  10302. }
  10303. }
  10304. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10305. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10306. i
  10307. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10308. return ele.value != "";
  10309. });
  10310. }
  10311. }
  10312. }
  10313. this.inputShow = true;
  10314. if (cPan == 2) {
  10315. this.steps--;
  10316. return;
  10317. }
  10318. for (var i = 0; i < this.unitJson.length; i++) {
  10319. delete this.unitJson[i].isUpdate;
  10320. }
  10321. let imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png'
  10322. if (this.lang.lang == 'com') {
  10323. imgUrl = 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20260112142829_1081_2831768354076152.png'
  10324. }
  10325. let params = [
  10326. {
  10327. cid: this.cid,
  10328. title: this.courseName,
  10329. brief: this.courseText,
  10330. cover:
  10331. this.cover.length > 0
  10332. ? JSON.stringify(this.cover)
  10333. : JSON.stringify([
  10334. {
  10335. name: "noBanner.jpg",
  10336. url: imgUrl,
  10337. uid: 1656409780264,
  10338. status: "success",
  10339. },
  10340. ]),
  10341. evaId: this.evalua,
  10342. astudent:
  10343. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10344. see: this.isTeacherSee == true ? 1 : 0,
  10345. chapters: JSON.stringify(this.unitJson),
  10346. template: this.myWord != "undefined" ? this.myWord : [],
  10347. uid: this.userid,
  10348. courseType: JSON.stringify(this.courseTypeId),
  10349. ateacher:
  10350. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10351. inviteCode: JSON.stringify(this.inviteCode),
  10352. },
  10353. ];
  10354. this.ajax
  10355. .post(this.$store.state.api + "updateWorkNew2", params)
  10356. .then((res) => {
  10357. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10358. if (this.cidType == 1) {
  10359. this.$message({
  10360. message: "修改成功",
  10361. type: "success",
  10362. });
  10363. } else {
  10364. this.$message({
  10365. message: "新增成功",
  10366. type: "success",
  10367. });
  10368. }
  10369. }
  10370. this.number = this.nbOrder;
  10371. this.courseId = this.cid;
  10372. })
  10373. .catch((err) => {
  10374. this.$message.error("网络不佳");
  10375. console.error(err);
  10376. });
  10377. },
  10378. insertWord() {
  10379. this.dialogVisible1 = true;
  10380. this.updateBoolean2 = false;
  10381. this.tTitle = "";
  10382. this.tdetail = "";
  10383. },
  10384. addWord() {
  10385. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10386. name: this.tTitle,
  10387. content: this.tdetail,
  10388. uid: this.guid(),
  10389. });
  10390. this.dialogVisible1 = false;
  10391. },
  10392. upWord() {},
  10393. selectWord(uid, i, c) {
  10394. this.dialogVisible1 = true;
  10395. this.updateBoolean2 = true;
  10396. if (
  10397. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10398. ) {
  10399. this.tTitle =
  10400. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10401. this.tdetail =
  10402. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10403. }
  10404. },
  10405. isAddPP() {
  10406. if (this.checkboxList.length > 0) {
  10407. this.$message({
  10408. message: "添加成功",
  10409. type: "success",
  10410. });
  10411. this.dialogVisible3 = false;
  10412. } else {
  10413. this.$message({
  10414. message: "请添加课程成员",
  10415. type: "error",
  10416. });
  10417. }
  10418. },
  10419. isAddClass() {
  10420. this.dialogVisibleClass = false;
  10421. },
  10422. isAddPPTeacher() {
  10423. this.dialogVisibleMember = false;
  10424. this.setMan();
  10425. },
  10426. getTemplate() {
  10427. this.ajax
  10428. .get(this.$store.state.api + "getCourseTemplateT", "")
  10429. .then((res) => {
  10430. this.templateArray = res.data[0];
  10431. this.getTemplateOid();
  10432. this.$forceUpdate();
  10433. })
  10434. .catch((err) => {});
  10435. },
  10436. getTemplateOid() {
  10437. let params = {
  10438. oid: this.oid,
  10439. };
  10440. this.ajax
  10441. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10442. .then((res) => {
  10443. if (res.data[0].length) {
  10444. this.templateArray = [...res.data[0], ...this.templateArray];
  10445. }
  10446. this.getTemplateOrg();
  10447. this.$forceUpdate();
  10448. })
  10449. .catch((err) => {});
  10450. },
  10451. getTemplateOrg() {
  10452. let params = {
  10453. oid: this.org,
  10454. };
  10455. this.ajax
  10456. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10457. .then((res) => {
  10458. if (res.data[0].length) {
  10459. this.templateArray = [...res.data[0], ...this.templateArray];
  10460. }
  10461. this.$forceUpdate();
  10462. })
  10463. .catch((err) => {});
  10464. },
  10465. clearChoose() {
  10466. this.clearArray.splice(this.templateC.id, 1);
  10467. this.dialogVisible2 = false;
  10468. },
  10469. clearAttText() {
  10470. this.AttText = {
  10471. title: "",
  10472. text: "",
  10473. };
  10474. this.dialogVisible6 = false;
  10475. },
  10476. clearLine() {
  10477. this.line = "";
  10478. this.dialogVisible7 = false;
  10479. },
  10480. openTemplate() {
  10481. this.ctJson = {};
  10482. this.templateDialog = true;
  10483. },
  10484. checkctJson(json) {
  10485. if (this.ctJson.id == json.id) {
  10486. this.ctJson = {};
  10487. } else {
  10488. this.ctJson = json;
  10489. }
  10490. },
  10491. addTemplate(res) {
  10492. let _this = this;
  10493. let _res = [];
  10494. if (res.id == 1) {
  10495. _res = [
  10496. {
  10497. dyName: "", //单元标题
  10498. easy: 1,
  10499. chapterInfo: [
  10500. {
  10501. isread: false,
  10502. chapterid: this.guid(),
  10503. title: "",
  10504. courseName: "",
  10505. taskJson: [
  10506. {
  10507. task: "",
  10508. taskDetail: "",
  10509. chapterData: [],
  10510. toolText: "",
  10511. toolChoose: [
  10512. {
  10513. tool: [],
  10514. toolDetail: "",
  10515. toolType: 0,
  10516. askCount: 1,
  10517. askTitle: "",
  10518. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10519. },
  10520. ],
  10521. isShowTools: false,
  10522. askCount: 1,
  10523. isFold: 1,
  10524. askTitle: "",
  10525. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10526. checkJson: [{ checkCount: [], checkPerent: [] }],
  10527. homeworkList: [],
  10528. },
  10529. ],
  10530. itemCount: 1,
  10531. fileList1: [],
  10532. video: [],
  10533. testData: [],
  10534. pData: [],
  10535. templateArray: [],
  10536. },
  10537. ],
  10538. },
  10539. ];
  10540. this.updateCourseState(1);
  10541. } else if (res.id == 2) {
  10542. let stageData = [];
  10543. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  10544. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  10545. if (!iframe && !iframe2) {
  10546. this.$message.error("请使用AI共创生成");
  10547. return;
  10548. }
  10549. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10550. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10551. if (
  10552. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10553. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10554. ) {
  10555. this.$message.error("请使用AI共创生成");
  10556. return;
  10557. }
  10558. stageData = copyData
  10559. ? copyData.stageData
  10560. : copyData2
  10561. ? copyData2.stageData
  10562. : [""];
  10563. for (var i = 0; i < stageData.length; i++) {
  10564. _res.push({
  10565. dyName: stageData[i], //单元标题
  10566. chapterInfo: [
  10567. {
  10568. isread: false,
  10569. chapterid: this.guid(),
  10570. title: "",
  10571. courseName: "",
  10572. taskJson: [
  10573. {
  10574. task: "",
  10575. taskDetail: "",
  10576. chapterData: [],
  10577. toolText: "",
  10578. toolChoose: [
  10579. {
  10580. tool: [],
  10581. toolDetail: "",
  10582. toolType: 0,
  10583. askCount: 1,
  10584. askTitle: "",
  10585. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10586. },
  10587. ],
  10588. isShowTools: false,
  10589. askCount: 1,
  10590. isFold: 1,
  10591. askTitle: "",
  10592. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10593. checkJson: [{ checkCount: [], checkPerent: [] }],
  10594. homeworkList: [],
  10595. },
  10596. ],
  10597. itemCount: 1,
  10598. fileList1: [],
  10599. video: [],
  10600. testData: [],
  10601. pData: [],
  10602. templateArray: [],
  10603. },
  10604. ],
  10605. });
  10606. }
  10607. this.updateCourseState(1);
  10608. } else if (!Object.keys(res).length) {
  10609. this.$message.error("请选择模板");
  10610. retrun;
  10611. } else {
  10612. _res = JSON.parse(res.chapters);
  10613. this.updateCourseState(parseInt(res.state));
  10614. }
  10615. _this
  10616. .$confirm(
  10617. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10618. "提示",
  10619. {
  10620. confirmButtonText: "确定",
  10621. cancelButtonText: "取消",
  10622. type: "warning",
  10623. }
  10624. )
  10625. .then(() => {
  10626. _this.unitJson = _res;
  10627. _this.updateWork();
  10628. // _this.steps++;
  10629. _this.templateDialog = false;
  10630. setTimeout(() => {
  10631. this.checkEva(this.checkId);
  10632. setTimeout(() => {
  10633. this.checkEva(this.checkId);
  10634. }, 100);
  10635. }, 1000);
  10636. })
  10637. .catch(() => {
  10638. return;
  10639. });
  10640. },
  10641. checkTemplate(res) {
  10642. let _this = this;
  10643. _this
  10644. .$confirm(
  10645. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10646. "提示",
  10647. {
  10648. confirmButtonText: "确定",
  10649. cancelButtonText: "取消",
  10650. type: "warning",
  10651. }
  10652. )
  10653. .then(() => {
  10654. _this.unitJson = JSON.parse(res.chapters);
  10655. _this.steps++;
  10656. setTimeout(() => {
  10657. this.checkEva(this.checkId);
  10658. setTimeout(() => {
  10659. this.checkEva(this.checkId);
  10660. }, 100);
  10661. }, 1000);
  10662. })
  10663. .catch(() => {
  10664. return;
  10665. });
  10666. },
  10667. checkTemplate1(w) {
  10668. this.steps++;
  10669. },
  10670. checkTemplate2() {
  10671. let _this = this;
  10672. _this
  10673. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  10674. confirmButtonText: "确定",
  10675. cancelButtonText: "取消",
  10676. type: "warning",
  10677. })
  10678. .then(() => {
  10679. _this.unitIndex = 0;
  10680. _this.unitJson = [
  10681. {
  10682. dyName: "", //单元标题
  10683. chapterInfo: [
  10684. {
  10685. isread: false,
  10686. chapterid: this.guid(),
  10687. title: "",
  10688. courseName: "",
  10689. taskJson: [
  10690. {
  10691. task: "",
  10692. taskDetail: "",
  10693. chapterData: [],
  10694. toolText: "",
  10695. toolChoose: [
  10696. {
  10697. tool: [],
  10698. toolDetail: "",
  10699. toolType: 0,
  10700. askCount: 1,
  10701. askTitle: "",
  10702. askJson: [
  10703. { askstitle: "", askItem: 1, checkList: [] },
  10704. ],
  10705. },
  10706. ],
  10707. isShowTools: false,
  10708. askCount: 1,
  10709. isFold: 1,
  10710. askTitle: "",
  10711. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10712. checkJson: [{ checkCount: [], checkPerent: [] }],
  10713. homeworkList: [],
  10714. },
  10715. ],
  10716. itemCount: 1,
  10717. fileList1: [],
  10718. video: [],
  10719. testData: [],
  10720. pData: [],
  10721. templateArray: [],
  10722. },
  10723. ],
  10724. },
  10725. ];
  10726. this.steps++;
  10727. setTimeout(() => {
  10728. this.checkEva(this.checkId);
  10729. setTimeout(() => {
  10730. this.checkEva(this.checkId);
  10731. }, 100);
  10732. }, 1000);
  10733. this.updateWork();
  10734. })
  10735. .catch(() => {
  10736. return;
  10737. });
  10738. },
  10739. checkTemplate3() {
  10740. let _this = this;
  10741. _this
  10742. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  10743. confirmButtonText: "确定",
  10744. cancelButtonText: "取消",
  10745. type: "warning",
  10746. })
  10747. .then(() => {
  10748. _this.unitIndex = 0;
  10749. _this.unitJson = [
  10750. {
  10751. dyName: "", //单元标题
  10752. easy: 1,
  10753. chapterInfo: [
  10754. {
  10755. isread: false,
  10756. chapterid: this.guid(),
  10757. title: "",
  10758. courseName: "",
  10759. taskJson: [
  10760. {
  10761. task: "",
  10762. taskDetail: "",
  10763. chapterData: [],
  10764. toolText: "",
  10765. toolChoose: [
  10766. {
  10767. tool: [],
  10768. toolDetail: "",
  10769. toolType: 0,
  10770. askCount: 1,
  10771. askTitle: "",
  10772. askJson: [
  10773. { askstitle: "", askItem: 1, checkList: [] },
  10774. ],
  10775. },
  10776. ],
  10777. isShowTools: false,
  10778. askCount: 1,
  10779. isFold: 1,
  10780. askTitle: "",
  10781. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10782. checkJson: [{ checkCount: [], checkPerent: [] }],
  10783. homeworkList: [],
  10784. },
  10785. ],
  10786. itemCount: 1,
  10787. fileList1: [],
  10788. video: [],
  10789. testData: [],
  10790. pData: [],
  10791. templateArray: [],
  10792. },
  10793. ],
  10794. },
  10795. ];
  10796. // this.steps++;
  10797. this.updateWork();
  10798. })
  10799. .catch(() => {
  10800. return;
  10801. });
  10802. },
  10803. checkTemplate4() {
  10804. let _this = this;
  10805. _this
  10806. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  10807. confirmButtonText: "确定",
  10808. cancelButtonText: "取消",
  10809. type: "warning",
  10810. })
  10811. .then(() => {
  10812. _this.unitIndex = 0;
  10813. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  10814. this.steps++;
  10815. this.updateWork();
  10816. })
  10817. .catch(() => {
  10818. return;
  10819. });
  10820. },
  10821. wordNext() {
  10822. this.dialogVisible2 = false;
  10823. },
  10824. isAddOrUpdateAttText() {
  10825. if (this.AttTextType == 0) {
  10826. this.addAttTextMessage();
  10827. } else {
  10828. this.updateAttText();
  10829. }
  10830. },
  10831. isAddOrUpdateLine() {
  10832. if (!this.lineTitle) {
  10833. this.$message.error("请填写链接标题");
  10834. return;
  10835. }
  10836. if (this.lineType == 0) {
  10837. this.addLine();
  10838. } else {
  10839. this.updateLine();
  10840. }
  10841. },
  10842. addAttTextMessage() {
  10843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10844. this.taskCount
  10845. ].chapterData.push({
  10846. name: this.AttText.title,
  10847. url: this.AttText.text,
  10848. type: 6,
  10849. });
  10850. this.imgChange1(null, null, 6, this.taskCount);
  10851. this.dialogVisible6 = false;
  10852. },
  10853. selectAttText(itemTaskIndex, i) {
  10854. this.AttText.title =
  10855. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10856. itemTaskIndex
  10857. ].chapterData[i].name;
  10858. this.AttText.text =
  10859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10860. itemTaskIndex
  10861. ].chapterData[i].url;
  10862. this.taskCount = itemTaskIndex;
  10863. this.AttTextIndex = i;
  10864. this.AttTextType = 1;
  10865. this.dialogVisible6 = true;
  10866. },
  10867. updateAttText() {
  10868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10869. this.taskCount
  10870. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  10871. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10872. this.taskCount
  10873. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  10874. this.dialogVisible6 = false;
  10875. },
  10876. addLine() {
  10877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10878. this.lineCount
  10879. ].chapterData.push({
  10880. name: "链接",
  10881. title: this.lineTitle,
  10882. url: this.line,
  10883. type: 8,
  10884. });
  10885. this.imgChange1(null, null, 8, this.lineCount);
  10886. this.dialogVisible7 = false;
  10887. },
  10888. selectLine(itemTaskIndex, i) {
  10889. this.line =
  10890. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10891. itemTaskIndex
  10892. ].chapterData[i].url;
  10893. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10894. itemTaskIndex
  10895. ].chapterData[i].title
  10896. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10897. .chapterData[i].title
  10898. : "";
  10899. this.taskCount = itemTaskIndex;
  10900. this.lineCount = i;
  10901. this.lineType = 1;
  10902. this.dialogVisible7 = true;
  10903. },
  10904. openUpdateSource(itemTaskIndex, i) {
  10905. this.sourceData = {};
  10906. let source =
  10907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10908. .chapterData[i];
  10909. this.sourceData[source.id] = {};
  10910. this.sourceData[source.id].name = source.title;
  10911. this.sourceData[source.id].url = source.url;
  10912. this.dialogVisibleSource = true;
  10913. this.updateSourcePan = true;
  10914. this.taskCount = itemTaskIndex;
  10915. this.lineCount = i;
  10916. },
  10917. updateLine() {
  10918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10919. this.taskCount
  10920. ].chapterData[this.lineCount].url = this.line;
  10921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10922. this.taskCount
  10923. ].chapterData[this.lineCount].title = this.lineTitle;
  10924. this.dialogVisible7 = false;
  10925. },
  10926. addPP() {
  10927. this.dialogVisible3 = true;
  10928. },
  10929. goTo(path) {
  10930. this.$router.push(path);
  10931. },
  10932. openTools(itemTaskIndex, i, toolIndex) {
  10933. this.toolIndex = toolIndex;
  10934. this.taskCount = itemTaskIndex;
  10935. if (i == 4) {
  10936. if (toolIndex == null) {
  10937. var a =
  10938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10939. .chapterData;
  10940. for (var i = 0; i < a.length; i++) {
  10941. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  10942. this.askJson =
  10943. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10944. itemTaskIndex
  10945. ].chapterData[i].askJson;
  10946. }
  10947. }
  10948. } else {
  10949. this.askJson = JSON.parse(
  10950. JSON.stringify(
  10951. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10952. itemTaskIndex
  10953. ].toolChoose[toolIndex]
  10954. )
  10955. );
  10956. }
  10957. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  10958. this.dialogVisible5 = true;
  10959. } else if (i == 45) {
  10960. if (
  10961. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10962. .toolChoose[toolIndex].testJson
  10963. ) {
  10964. this.testJson = JSON.parse(
  10965. JSON.stringify(
  10966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10967. itemTaskIndex
  10968. ].toolChoose[toolIndex].testJson
  10969. )
  10970. );
  10971. } else {
  10972. var testJson = {
  10973. testCount: 1,
  10974. testTitle: "",
  10975. testJson: [
  10976. {
  10977. teststitle: "",
  10978. testItem: 1,
  10979. checkList: [],
  10980. timuList: [],
  10981. answer: [],
  10982. type: "1",
  10983. },
  10984. ],
  10985. };
  10986. this.testJson = testJson;
  10987. }
  10988. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  10989. this.dialogVisibleChoice = true;
  10990. } else if (i == 47) {
  10991. if (
  10992. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10993. .toolChoose[toolIndex].sentenceList
  10994. ) {
  10995. this.sentenceList = JSON.parse(
  10996. JSON.stringify(
  10997. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10998. itemTaskIndex
  10999. ].toolChoose[toolIndex].sentenceList
  11000. )
  11001. );
  11002. } else {
  11003. var sentenceList = [
  11004. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11005. ];
  11006. this.sentenceList = sentenceList;
  11007. }
  11008. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11009. this.dialogVisibleSentence = true;
  11010. } else if (i == 48) {
  11011. if (
  11012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11013. .toolChoose[toolIndex].tableJson
  11014. ) {
  11015. this.tableJson = JSON.parse(
  11016. JSON.stringify(
  11017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11018. itemTaskIndex
  11019. ].toolChoose[toolIndex].tableJson
  11020. )
  11021. );
  11022. } else {
  11023. var tableJson = { text: "" };
  11024. this.tableJson = tableJson;
  11025. }
  11026. this.dialogVisibleTable = true;
  11027. } else if (i == 52) {
  11028. if (
  11029. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11030. .toolChoose[toolIndex].wordJson
  11031. ) {
  11032. this.wordJson = JSON.parse(
  11033. JSON.stringify(
  11034. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11035. itemTaskIndex
  11036. ].toolChoose[toolIndex].wordJson
  11037. )
  11038. );
  11039. } else {
  11040. var wordJson = { text: "" };
  11041. this.wordJson = wordJson;
  11042. }
  11043. this.dialogVisibleWord = true;
  11044. // else if (i == 50) {
  11045. // if (
  11046. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11047. // .toolChoose[toolIndex].uploadJson
  11048. // ) {
  11049. // this.uploadJson = JSON.parse(
  11050. // JSON.stringify(
  11051. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11052. // itemTaskIndex
  11053. // ].toolChoose[toolIndex].uploadJson
  11054. // )
  11055. // );
  11056. // } else {
  11057. // var uploadJson = [];
  11058. // this.uploadJson = uploadJson;
  11059. // }
  11060. // this.dialogVisibleMoreUpload = true;
  11061. // }
  11062. } else if (i == 10) {
  11063. if (
  11064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11065. .toolChoose[toolIndex].preTime
  11066. ) {
  11067. this.preTime = JSON.parse(
  11068. JSON.stringify(
  11069. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11070. itemTaskIndex
  11071. ].toolChoose[toolIndex].preTime
  11072. )
  11073. );
  11074. } else {
  11075. var preTime = 0;
  11076. this.preTime = preTime;
  11077. }
  11078. this.dialogVisiblePreTime = true;
  11079. } else if (i == 49) {
  11080. if (
  11081. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11082. .toolChoose[toolIndex].groupJson
  11083. ) {
  11084. this.groupJson = JSON.parse(
  11085. JSON.stringify(
  11086. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11087. itemTaskIndex
  11088. ].toolChoose[toolIndex].groupJson
  11089. )
  11090. );
  11091. } else {
  11092. var groupJson = {
  11093. group: [{ name: "第1组" }],
  11094. number: undefined,
  11095. islock: 1,
  11096. };
  11097. this.groupJson = groupJson;
  11098. }
  11099. this.dialogVisibleGroup = true;
  11100. } else if (i == 62) {
  11101. if (
  11102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11103. .toolChoose[toolIndex].videoJson
  11104. ) {
  11105. this.videoJson = JSON.parse(
  11106. JSON.stringify(
  11107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11108. itemTaskIndex
  11109. ].toolChoose[toolIndex].videoJson
  11110. )
  11111. );
  11112. } else {
  11113. var videoJson = {
  11114. video: "",
  11115. setting: [],
  11116. };
  11117. this.videoJson = videoJson;
  11118. }
  11119. this.dialogVisibleVideo = true;
  11120. } else if (i == 15) {
  11121. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11122. itemTaskIndex
  11123. ].toolChoose[toolIndex].answerQ
  11124. ? JSON.parse(
  11125. JSON.stringify(
  11126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11127. itemTaskIndex
  11128. ].toolChoose[toolIndex].answerQ
  11129. )
  11130. )
  11131. : "";
  11132. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11133. this.dialogVisible8 = true;
  11134. } else if (i == 40) {
  11135. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11136. itemTaskIndex
  11137. ].toolChoose[toolIndex].rateJson
  11138. ? JSON.parse(
  11139. JSON.stringify(
  11140. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11141. itemTaskIndex
  11142. ].toolChoose[toolIndex].rateJson
  11143. )
  11144. )
  11145. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11146. this.selectSteps = 1;
  11147. this.dialogVisibleRate = true;
  11148. } else if (i == 42) {
  11149. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11150. itemTaskIndex
  11151. ].toolChoose[toolIndex].answerQ
  11152. ? JSON.parse(
  11153. JSON.stringify(
  11154. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11155. itemTaskIndex
  11156. ].toolChoose[toolIndex].answerQ
  11157. )
  11158. )
  11159. : "";
  11160. this.dialogVisibleMp3 = true;
  11161. } else if (i == 41) {
  11162. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11163. itemTaskIndex
  11164. ].toolChoose[toolIndex].selectJson
  11165. ? JSON.parse(
  11166. JSON.stringify(
  11167. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11168. itemTaskIndex
  11169. ].toolChoose[toolIndex].selectJson
  11170. )
  11171. )
  11172. : { url: "", select: [], answer: [] };
  11173. this.selectSteps = 1;
  11174. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11175. this.dialogVisibleSelect = true;
  11176. } else if (i == 3) {
  11177. window.topU.postMessage(
  11178. {
  11179. tools: "3y",
  11180. cid: this.cid,
  11181. stage: this.unitIndex,
  11182. task: itemTaskIndex,
  11183. tool: toolIndex,
  11184. },
  11185. "*"
  11186. );
  11187. } else if (i == 1) {
  11188. window.topU.postMessage(
  11189. {
  11190. tools: "1y",
  11191. cid: this.cid,
  11192. stage: this.unitIndex,
  11193. task: itemTaskIndex,
  11194. tool: toolIndex,
  11195. },
  11196. "*"
  11197. );
  11198. } else if (i == 57) {
  11199. window.topU.postMessage(
  11200. {
  11201. tools: "57y",
  11202. cid: this.cid,
  11203. stage: this.unitIndex,
  11204. task: itemTaskIndex,
  11205. tool: toolIndex,
  11206. },
  11207. "*"
  11208. );
  11209. } else if (i == 69) {
  11210. this.englishList = {};
  11211. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11212. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11213. ? JSON.parse(
  11214. JSON.stringify(
  11215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11216. itemTaskIndex
  11217. ].toolChoose[toolIndex].englishList
  11218. )
  11219. )
  11220. : {};
  11221. this.$forceUpdate();
  11222. this.englishDialogVisible = true;
  11223. } else if (i == 70) {
  11224. this.englishVoiceJson = {};
  11225. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11226. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11227. ? JSON.parse(
  11228. JSON.stringify(
  11229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11230. itemTaskIndex
  11231. ].toolChoose[toolIndex].englishVoiceJson
  11232. )
  11233. )
  11234. : {
  11235. title:'',
  11236. detail:'',
  11237. array:[]
  11238. };
  11239. // {
  11240. // time: "",
  11241. // class: "",
  11242. // difficulty: 0,
  11243. // topic: "",
  11244. // isShow: false,
  11245. // eva: 0,
  11246. // aiEva: {
  11247. // isAiEva: false,
  11248. // aiEvaChoose: [],
  11249. // },
  11250. // allfType: [],
  11251. // englishJson: {},
  11252. // };
  11253. this.$forceUpdate();
  11254. this.EnglishVoiceDialog = true;
  11255. }
  11256. },
  11257. setEnglishVoiceJson(val) {
  11258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11259. this.taskCount
  11260. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11261. JSON.stringify(val)
  11262. );
  11263. this.$forceUpdate();
  11264. if (
  11265. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11266. .toolChoose[this.toolIndex].tool != 70
  11267. ) {
  11268. this.addTools(70, this.taskCount, this.toolIndex);
  11269. }
  11270. },
  11271. chapAddTools(i) {
  11272. if (this.chapTools[0].tools.length == 0) {
  11273. this.chapTools[0].tools.push(i);
  11274. } else {
  11275. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11276. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11277. } else {
  11278. this.chapTools[0].tools.push(i);
  11279. }
  11280. }
  11281. this.$forceUpdate();
  11282. },
  11283. addChaptersDataTools() {
  11284. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11285. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11286. this.chapCount
  11287. ].chapterData.push({
  11288. name: this.chapTools[0].toolDetail,
  11289. url: this.chapTools[0].tools,
  11290. type: 7,
  11291. askJson: this.askJson,
  11292. });
  11293. } else {
  11294. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11295. this.chapCount
  11296. ].chapterData.push({
  11297. name: this.chapTools[0].toolDetail,
  11298. url: this.chapTools[0].tools,
  11299. type: 7,
  11300. });
  11301. }
  11302. this.imgChange1(null, null, 7, this.chapCount);
  11303. this.dialogVisible4 = false;
  11304. },
  11305. addTools(i, itemTaskIndex, toolIndex) {
  11306. // if (
  11307. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11308. // .toolChoose[toolIndex].tool.length == 0
  11309. // ) {
  11310. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11311. // itemTaskIndex
  11312. // ].toolChoose[toolIndex].tool.push(i);
  11313. // } else {
  11314. // if (
  11315. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11316. // itemTaskIndex
  11317. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11318. // ) {
  11319. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11320. // itemTaskIndex
  11321. // ].toolChoose[toolIndex].tool.splice(
  11322. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11323. // itemTaskIndex
  11324. // ].toolChoose[toolIndex].tool.indexOf(i),
  11325. // 1
  11326. // );
  11327. // } else {
  11328. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11329. // itemTaskIndex
  11330. // ].toolChoose[toolIndex].tool.push(i);
  11331. // }
  11332. // console.log(
  11333. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11334. // .toolChoose[toolIndex].tool
  11335. // );
  11336. // }
  11337. if (i == 4) {
  11338. if (
  11339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11340. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11342. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11344. .toolChoose[toolIndex].askJson[0].checkList < 2
  11345. ) {
  11346. this.openTools(itemTaskIndex, 4, toolIndex);
  11347. // this.$message({
  11348. // message: "请填写完整问卷内容",
  11349. // type: "error",
  11350. // });
  11351. return;
  11352. }
  11353. }
  11354. if (i == 45) {
  11355. if (
  11356. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11357. .toolChoose[toolIndex].testJson ||
  11358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11359. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11361. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11362. ) {
  11363. this.openTools(itemTaskIndex, 45, toolIndex);
  11364. // this.$message({
  11365. // message: "请填写完整问卷内容",
  11366. // type: "error",
  11367. // });
  11368. return;
  11369. }
  11370. }
  11371. if (i == 47) {
  11372. if (
  11373. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11374. .toolChoose[toolIndex].sentenceList ||
  11375. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11376. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11377. ) {
  11378. this.openTools(itemTaskIndex, 47, toolIndex);
  11379. return;
  11380. }
  11381. }
  11382. if (i == 69) {
  11383. if (
  11384. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11385. .toolChoose[toolIndex].englishList
  11386. ) {
  11387. this.openTools(itemTaskIndex, 69, toolIndex);
  11388. return;
  11389. }
  11390. }
  11391. if (i == 70) {
  11392. if (
  11393. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11394. .toolChoose[toolIndex].englishVoiceJson
  11395. ) {
  11396. this.openTools(itemTaskIndex, 70, toolIndex);
  11397. return;
  11398. }
  11399. }
  11400. // if (i == 48) {
  11401. // if (
  11402. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11403. // .toolChoose[toolIndex].tableJson
  11404. // ) {
  11405. // this.openTools(itemTaskIndex, 48, toolIndex);
  11406. // return;
  11407. // }
  11408. // }
  11409. // if (i == 50) {
  11410. // if (
  11411. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11412. // .toolChoose[toolIndex].uploadJson
  11413. // ) {
  11414. // this.openTools(itemTaskIndex, 50, toolIndex);
  11415. // return;
  11416. // }
  11417. // }
  11418. if (i == 49) {
  11419. if (
  11420. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11421. .toolChoose[toolIndex].groupJson
  11422. ) {
  11423. this.openTools(itemTaskIndex, 49, toolIndex);
  11424. return;
  11425. }
  11426. }
  11427. if (i == 62) {
  11428. if (
  11429. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11430. .toolChoose[toolIndex].videoJson
  11431. ) {
  11432. this.openTools(itemTaskIndex, 62, toolIndex);
  11433. return;
  11434. }
  11435. }
  11436. if (i == 15) {
  11437. if (
  11438. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11439. .toolChoose[toolIndex].answerQ ||
  11440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11441. .toolChoose[toolIndex].answerQ == ""
  11442. ) {
  11443. this.openTools(itemTaskIndex, 15, toolIndex);
  11444. // this.$message({
  11445. // message: "请填写问答内容",
  11446. // type: "error",
  11447. // });
  11448. return;
  11449. }
  11450. }
  11451. if (i == 40) {
  11452. if (
  11453. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11454. .toolChoose[toolIndex].rateJson ||
  11455. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11456. .toolChoose[toolIndex].rateJson.length
  11457. ) {
  11458. this.openTools(itemTaskIndex, 40, toolIndex);
  11459. return;
  11460. }
  11461. }
  11462. if (i == 41) {
  11463. if (
  11464. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11465. .toolChoose[toolIndex].selectJson ||
  11466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11467. .toolChoose[toolIndex].selectJson.url == "" ||
  11468. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11469. .toolChoose[toolIndex].selectJson.select.length ||
  11470. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11471. .toolChoose[toolIndex].selectJson.answer.length
  11472. ) {
  11473. this.openTools(itemTaskIndex, 41, toolIndex);
  11474. return;
  11475. }
  11476. }
  11477. if (i == 42) {
  11478. if (
  11479. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11480. .toolChoose[toolIndex].answerQ ||
  11481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11482. .toolChoose[toolIndex].answerQ == ""
  11483. ) {
  11484. this.openTools(itemTaskIndex, 42, toolIndex);
  11485. return;
  11486. }
  11487. }
  11488. if (
  11489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11490. .toolChoose[toolIndex].tool.length > 0
  11491. ) {
  11492. if (
  11493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11494. itemTaskIndex
  11495. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11496. ) {
  11497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11498. itemTaskIndex
  11499. ].toolChoose[toolIndex].tool.splice(
  11500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11501. itemTaskIndex
  11502. ].toolChoose[toolIndex].tool.indexOf(i),
  11503. 1
  11504. );
  11505. } else {
  11506. // this.$message({
  11507. // message: "每个工具只能添加一个",
  11508. // type: "error",
  11509. // });
  11510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11511. itemTaskIndex
  11512. ].toolChoose[toolIndex].tool = [];
  11513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11514. itemTaskIndex
  11515. ].toolChoose[toolIndex].tool.push(i);
  11516. }
  11517. } else {
  11518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11519. itemTaskIndex
  11520. ].toolChoose[toolIndex].tool.push(i);
  11521. }
  11522. this.$forceUpdate();
  11523. },
  11524. addAskList(index) {
  11525. this.askJson.askJson.splice(index + 1, 0, {
  11526. askstitle: "",
  11527. askItem: 1,
  11528. checkList: [],
  11529. });
  11530. this.askJson.askCount++;
  11531. },
  11532. addTestList(index) {
  11533. this.testJson.testJson.splice(index + 1, 0, {
  11534. teststitle: "",
  11535. testItem: 1,
  11536. checkList: [],
  11537. timuList: [],
  11538. answer: [],
  11539. type: "1",
  11540. });
  11541. this.testJson.testCount++;
  11542. },
  11543. deleteAskList(index) {
  11544. if (
  11545. !this.askJson.askJson[index].askstitle &&
  11546. this.askJson.askJson[index].askItem == 1 &&
  11547. !this.askJson.askJson[index].checkList[0]
  11548. ) {
  11549. this.askJson.askJson.splice(index, 1);
  11550. this.askJson.askCount--;
  11551. } else {
  11552. let _this = this;
  11553. _this
  11554. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11555. confirmButtonText: "确定",
  11556. cancelButtonText: "取消",
  11557. type: "warning",
  11558. })
  11559. .then(() => {
  11560. _this.askJson.askJson.splice(index, 1);
  11561. _this.askJson.askCount--;
  11562. })
  11563. .catch(() => {
  11564. return;
  11565. });
  11566. }
  11567. },
  11568. deleteTestList(index) {
  11569. if (
  11570. !this.testJson.testJson[index].teststitle &&
  11571. this.testJson.testJson[index].testItem == 1 &&
  11572. !this.testJson.testJson[index].checkList[0]
  11573. ) {
  11574. this.testJson.testJson.splice(index, 1);
  11575. this.testJson.testCount--;
  11576. } else {
  11577. let _this = this;
  11578. _this
  11579. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11580. confirmButtonText: "确定",
  11581. cancelButtonText: "取消",
  11582. type: "warning",
  11583. })
  11584. .then(() => {
  11585. _this.testJson.testJson.splice(index, 1);
  11586. _this.testJson.testCount--;
  11587. })
  11588. .catch(() => {
  11589. return;
  11590. });
  11591. }
  11592. },
  11593. askMove(type, index) {
  11594. if (type == 1) {
  11595. if (index > 0) {
  11596. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11597. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11598. this.askJson.askJson[index - 1] = b;
  11599. this.askJson.askJson[index] = a;
  11600. }
  11601. } else {
  11602. if (index < this.askJson.askJson.length - 1) {
  11603. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11604. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11605. this.askJson.askJson[index + 1] = b;
  11606. this.askJson.askJson[index] = a;
  11607. }
  11608. }
  11609. this.$forceUpdate();
  11610. },
  11611. checkMove(type, index, checkIndex) {
  11612. if (type == 1) {
  11613. if (checkIndex > 0) {
  11614. let a = JSON.parse(
  11615. JSON.stringify(
  11616. this.askJson.askJson[index].checkList[checkIndex - 1]
  11617. )
  11618. );
  11619. let b = JSON.parse(
  11620. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11621. );
  11622. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11623. this.askJson.askJson[index].checkList[checkIndex] = a;
  11624. }
  11625. } else {
  11626. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11627. let a = JSON.parse(
  11628. JSON.stringify(
  11629. this.askJson.askJson[index].checkList[checkIndex + 1]
  11630. )
  11631. );
  11632. let b = JSON.parse(
  11633. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11634. );
  11635. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11636. this.askJson.askJson[index].checkList[checkIndex] = a;
  11637. }
  11638. }
  11639. this.$forceUpdate();
  11640. },
  11641. testMove(type, index) {
  11642. if (type == 1) {
  11643. if (index > 0) {
  11644. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11645. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11646. this.testJson.testJson[index - 1] = b;
  11647. this.testJson.testJson[index] = a;
  11648. }
  11649. } else {
  11650. if (index < this.testJson.testJson.length - 1) {
  11651. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11652. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11653. this.testJson.testJson[index + 1] = b;
  11654. this.testJson.testJson[index] = a;
  11655. }
  11656. }
  11657. this.$forceUpdate();
  11658. },
  11659. tcheckMove(type, index, checkIndex) {
  11660. if (type == 1) {
  11661. if (checkIndex > 0) {
  11662. let a = JSON.parse(
  11663. JSON.stringify(
  11664. this.testJson.testJson[index].checkList[checkIndex - 1]
  11665. )
  11666. );
  11667. let b = JSON.parse(
  11668. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11669. );
  11670. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11671. this.testJson.testJson[index].checkList[checkIndex] = a;
  11672. }
  11673. } else {
  11674. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11675. let a = JSON.parse(
  11676. JSON.stringify(
  11677. this.testJson.testJson[index].checkList[checkIndex + 1]
  11678. )
  11679. );
  11680. let b = JSON.parse(
  11681. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11682. );
  11683. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  11684. this.testJson.testJson[index].checkList[checkIndex] = a;
  11685. }
  11686. }
  11687. this.$forceUpdate();
  11688. },
  11689. addcheckList(json, index) {
  11690. // json.checkList.length++;
  11691. json.checkList.splice(index + 1, 0, "");
  11692. json.askItem++;
  11693. this.$forceUpdate();
  11694. },
  11695. deletecheckList(json, index) {
  11696. // json.checkList.length--;
  11697. json.checkList.splice(index, 1);
  11698. json.askItem--;
  11699. this.$forceUpdate();
  11700. },
  11701. addTcheckList(json, index) {
  11702. // json.checkList.length++;
  11703. json.checkList.splice(index + 1, 0, "");
  11704. json.testItem++;
  11705. this.$forceUpdate();
  11706. },
  11707. deleteTcheckList(json, index) {
  11708. // json.checkList.length--;
  11709. json.checkList.splice(index, 1);
  11710. json.testItem--;
  11711. this.$forceUpdate();
  11712. },
  11713. checkTestType(type, json) {
  11714. json.type = type;
  11715. setTimeout(() => {
  11716. json.answer = [];
  11717. }, 100);
  11718. },
  11719. checkAskType(type, json) {
  11720. json.type = type;
  11721. // json.checkList = [];
  11722. this.$forceUpdate();
  11723. },
  11724. addSelectList(json) {
  11725. json.select.push("");
  11726. json.answer.push("");
  11727. },
  11728. deleteSelectList(json) {
  11729. // json.select.length--;
  11730. // json.answer.length--;
  11731. json.select.splice(json.select.length - 1, 1);
  11732. json.answer.splice(json.answer.length - 1, 1);
  11733. },
  11734. addAsk() {
  11735. if (this.askJson.askTitle === "") {
  11736. this.$message.error("标题不能为空!");
  11737. return;
  11738. }
  11739. var aj = this.askJson.askJson;
  11740. var b = 1;
  11741. for (var i = 0; i < aj.length; i++) {
  11742. if (aj[i].askstitle === "") {
  11743. var a = 1;
  11744. for (let index = 0; index < aj[i].askItem; index++) {
  11745. const element = aj[i].checkList[index]
  11746. ? aj[i].checkList[index]
  11747. : "";
  11748. if (element != "") {
  11749. b++;
  11750. this.$message.error(`请将题目${i + 1}填写完整。`);
  11751. return;
  11752. } else {
  11753. a++;
  11754. }
  11755. }
  11756. if (b == 1) {
  11757. this.$message.error("至少填写一个问题");
  11758. return;
  11759. }
  11760. } else if (aj[i].askstitle != "") {
  11761. for (let index = 0; index < aj[i].askItem; index++) {
  11762. const element = aj[i].checkList[index]
  11763. ? aj[i].checkList[index]
  11764. : "";
  11765. var index = 0;
  11766. for (var z = 0; z < aj[i].checkList.length; z++) {
  11767. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11768. if (checkC != "") {
  11769. index++;
  11770. } else {
  11771. this.$message.error(`题目${i + 1}选项不能为空!`);
  11772. return;
  11773. }
  11774. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11775. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11776. if (checkC == checkC2) {
  11777. this.$message.error(
  11778. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11779. );
  11780. return;
  11781. }
  11782. }
  11783. }
  11784. b++;
  11785. if (index < 2) {
  11786. this.$message.error("每道题目至少需要设置2个选项。");
  11787. return;
  11788. }
  11789. }
  11790. }
  11791. }
  11792. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  11793. var elc = el.checkList.filter((element) => {
  11794. return element != "";
  11795. });
  11796. return el.askstitle != "" && elc.length != 0;
  11797. });
  11798. if (!this.dialogVisible4) {
  11799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11800. this.taskCount
  11801. ].toolChoose[this.toolIndex] = this.askJson;
  11802. }
  11803. this.dialogVisible5 = false;
  11804. if (
  11805. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11806. .toolChoose[this.toolIndex].tool != 4
  11807. ) {
  11808. this.addTools(4, this.taskCount, this.toolIndex);
  11809. }
  11810. },
  11811. addTest() {
  11812. // if (this.testJson.testTitle === "") {
  11813. // this.$message.error("标题不能为空!");
  11814. // return;
  11815. // }
  11816. var aj = this.testJson.testJson;
  11817. var b = 1;
  11818. for (var i = 0; i < aj.length; i++) {
  11819. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  11820. var a = 1;
  11821. for (let index = 0; index < aj[i].testItem; index++) {
  11822. const element = aj[i].checkList[index]
  11823. ? aj[i].checkList[index]
  11824. : "";
  11825. if (element != "") {
  11826. b++;
  11827. this.$message.error(`请将题目${i + 1}填写完整。`);
  11828. return;
  11829. } else {
  11830. a++;
  11831. }
  11832. }
  11833. if (b == 1) {
  11834. this.$message.error("至少填写一个问题");
  11835. return;
  11836. }
  11837. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  11838. for (let index = 0; index < aj[i].testItem; index++) {
  11839. const element = aj[i].checkList[index]
  11840. ? aj[i].checkList[index]
  11841. : "";
  11842. var index = 0;
  11843. for (var z = 0; z < aj[i].checkList.length; z++) {
  11844. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11845. if (checkC != "") {
  11846. index++;
  11847. } else {
  11848. this.$message.error(`题目${i + 1}选项不能为空!`);
  11849. return;
  11850. }
  11851. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11852. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11853. if (checkC == checkC2) {
  11854. this.$message.error(
  11855. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11856. );
  11857. return;
  11858. }
  11859. }
  11860. }
  11861. b++;
  11862. if (index < 2) {
  11863. this.$message.error("每道题目至少需要设置2个选项。");
  11864. return;
  11865. }
  11866. if (
  11867. (aj[i].type == "2" && !aj[i].answer.length) ||
  11868. (aj[i].type == "1" &&
  11869. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  11870. (aj[i].answer !== 0 && !aj[i].answer)))
  11871. ) {
  11872. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  11873. return;
  11874. }
  11875. }
  11876. }
  11877. }
  11878. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11879. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11880. var elc = el.checkList.filter((element) => {
  11881. return element != "";
  11882. });
  11883. return (
  11884. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  11885. );
  11886. });
  11887. isTestJson.testCount = isTestJson.testJson.length;
  11888. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11889. this.taskCount
  11890. ].toolChoose[this.toolIndex].testJson = isTestJson;
  11891. this.dialogVisibleChoice = false;
  11892. if (
  11893. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11894. .toolChoose[this.toolIndex].tool != 45
  11895. ) {
  11896. this.addTools(45, this.taskCount, this.toolIndex);
  11897. }
  11898. },
  11899. addVideoJson(videoJson) {
  11900. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11901. this.taskCount
  11902. ].toolChoose[this.toolIndex].videoJson = videoJson;
  11903. this.dialogVisibleVideo = false;
  11904. if (
  11905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11906. .toolChoose[this.toolIndex].tool != 62
  11907. ) {
  11908. this.addTools(62, this.taskCount, this.toolIndex);
  11909. }
  11910. },
  11911. //自动获取剪贴板
  11912. pasteOption() {
  11913. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  11914. if (!iframe) {
  11915. this.$message.error("请使用AI共创生成题目");
  11916. return;
  11917. }
  11918. let copyData = iframe.contentWindow.copyData;
  11919. if (!copyData || !copyData.selectData.length) {
  11920. this.$message.error("请使用AI共创生成题目");
  11921. return;
  11922. }
  11923. let selectData = copyData.selectData;
  11924. for (var i = 0; i < selectData.length; i++) {
  11925. let answer = 0;
  11926. switch (selectData[i].answer[0]) {
  11927. case "A":
  11928. answer = 0;
  11929. break;
  11930. case "B":
  11931. answer = 1;
  11932. break;
  11933. case "C":
  11934. answer = 2;
  11935. break;
  11936. case "D":
  11937. answer = 3;
  11938. break;
  11939. case "E":
  11940. answer = 4;
  11941. break;
  11942. default:
  11943. break;
  11944. }
  11945. this.testJson.testJson.push({
  11946. teststitle: selectData[i].subject,
  11947. testItem: selectData[i].options.length,
  11948. checkList: selectData[i].options,
  11949. timuList: [],
  11950. answer: answer,
  11951. type: "1",
  11952. });
  11953. this.testJson.testCount++;
  11954. }
  11955. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11956. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11957. var elc = el.checkList.filter((element) => {
  11958. return element != "";
  11959. });
  11960. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  11961. });
  11962. isTestJson.testCount = isTestJson.testJson.length;
  11963. if (!isTestJson.testCount) {
  11964. return;
  11965. }
  11966. this.testJson = isTestJson;
  11967. this.$forceUpdate();
  11968. },
  11969. pasteTask(taskJson) {
  11970. let stageTasksData = [];
  11971. if (taskJson) {
  11972. stageTasksData = taskJson;
  11973. } else {
  11974. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  11975. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  11976. if (!iframe && !iframe2) {
  11977. this.$message.error("请使用AI共创生成");
  11978. return;
  11979. }
  11980. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11981. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11982. if (
  11983. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  11984. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  11985. ) {
  11986. this.$message.error("请使用AI共创生成");
  11987. return;
  11988. }
  11989. stageTasksData = copyData
  11990. ? copyData.tasksData
  11991. : copyData2
  11992. ? copyData2.tasksData
  11993. : [{ taskName: "", taskDecs: "" }];
  11994. }
  11995. let taskA = [];
  11996. let tasks = stageTasksData;
  11997. for (var j = 0; j < tasks.length; j++) {
  11998. taskA.push({
  11999. task: tasks[j].taskName,
  12000. taskDetail: tasks[j].taskDecs,
  12001. chapterData: [],
  12002. toolText: "",
  12003. toolChoose: [
  12004. {
  12005. tool: [],
  12006. toolDetail: "",
  12007. toolType: 0,
  12008. askCount: 1,
  12009. askTitle: "",
  12010. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12011. },
  12012. ],
  12013. isShowTools: false,
  12014. askCount: 1,
  12015. isFold: 1,
  12016. askTitle: "",
  12017. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12018. checkJson: [{ checkCount: [], checkPerent: [] }],
  12019. homeworkList: [],
  12020. });
  12021. }
  12022. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12023. this.$forceUpdate();
  12024. },
  12025. pasteStage(stageJson) {
  12026. let stageData = [];
  12027. if (stageJson) {
  12028. stageData = stageJson;
  12029. } else {
  12030. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12031. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  12032. if (!iframe && !iframe2) {
  12033. this.$message.error("请使用AI共创生成");
  12034. return;
  12035. }
  12036. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12037. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12038. if (
  12039. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  12040. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  12041. ) {
  12042. this.$message.error("请使用AI共创生成");
  12043. return;
  12044. }
  12045. stageData = copyData
  12046. ? copyData.stageData
  12047. : copyData2
  12048. ? copyData2.stageData
  12049. : [""];
  12050. }
  12051. let stage = [];
  12052. for (var i = 0; i < stageData.length; i++) {
  12053. stage.push({
  12054. dyName: stageData[i], //单元标题
  12055. chapterInfo: [
  12056. {
  12057. isread: false,
  12058. chapterid: this.guid(),
  12059. title: "",
  12060. courseName: "",
  12061. taskJson: [
  12062. {
  12063. task: "",
  12064. taskDetail: "",
  12065. chapterData: [],
  12066. toolText: "",
  12067. toolChoose: [
  12068. {
  12069. tool: [],
  12070. toolDetail: "",
  12071. toolType: 0,
  12072. askCount: 1,
  12073. askTitle: "",
  12074. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12075. },
  12076. ],
  12077. isShowTools: false,
  12078. askCount: 1,
  12079. isFold: 1,
  12080. askTitle: "",
  12081. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12082. checkJson: [{ checkCount: [], checkPerent: [] }],
  12083. homeworkList: [],
  12084. },
  12085. ],
  12086. itemCount: 1,
  12087. fileList1: [],
  12088. video: [],
  12089. testData: [],
  12090. pData: [],
  12091. templateArray: [],
  12092. },
  12093. ],
  12094. });
  12095. }
  12096. let _this = this;
  12097. if (stageJson) {
  12098. if (!_this.cid) {
  12099. _this.unitJson = stage;
  12100. } else {
  12101. _this.unitIndex = 0;
  12102. _this.unitJson = stage;
  12103. _this.updateWork();
  12104. }
  12105. } else {
  12106. _this
  12107. .$confirm(
  12108. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  12109. "提示",
  12110. {
  12111. confirmButtonText: "确定",
  12112. cancelButtonText: "取消",
  12113. type: "warning",
  12114. }
  12115. )
  12116. .then(() => {
  12117. _this.unitIndex = 0;
  12118. _this.unitJson = stage;
  12119. // _this.steps++;
  12120. _this.updateWork();
  12121. })
  12122. .catch(() => {
  12123. return;
  12124. });
  12125. }
  12126. },
  12127. openStageBox() {
  12128. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12129. this.dialogVisibleStageChange = true;
  12130. },
  12131. updateChange() {
  12132. this.$confirm(
  12133. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12134. "提示",
  12135. {
  12136. confirmButtonText: "确定",
  12137. cancelButtonText: "取消",
  12138. type: "warning",
  12139. }
  12140. )
  12141. .then(() => {
  12142. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12143. this.updateWork();
  12144. this.dialogVisibleStageChange = false;
  12145. })
  12146. .catch(() => {
  12147. return;
  12148. });
  12149. },
  12150. addAnswer() {
  12151. if (this.answerQ == "") {
  12152. this.$message.error("请输入您想要问的问题");
  12153. return;
  12154. }
  12155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12156. this.taskCount
  12157. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12158. this.dialogVisible8 = false;
  12159. if (
  12160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12161. .toolChoose[this.toolIndex].tool != 15
  12162. ) {
  12163. this.addTools(15, this.taskCount, this.toolIndex);
  12164. }
  12165. },
  12166. addMp3Answer() {
  12167. if (this.answerQ == "") {
  12168. this.$message.error("请输入您想要回答的问题");
  12169. return;
  12170. }
  12171. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12172. this.taskCount
  12173. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12174. this.dialogVisibleMp3 = false;
  12175. },
  12176. addRateAnswer() {
  12177. var a = 1;
  12178. for (var i = 0; i < this.rateJson.length; i++) {
  12179. if (this.rateJson[i].value == "") {
  12180. a = 2;
  12181. break;
  12182. }
  12183. }
  12184. if (a == 2) {
  12185. this.$message.error("请把评价信息填写完整");
  12186. return;
  12187. }
  12188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12189. this.taskCount
  12190. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12191. this.dialogVisibleRate = false;
  12192. if (
  12193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12194. .toolChoose[this.toolIndex].tool != 40
  12195. ) {
  12196. this.addTools(40, this.taskCount, this.toolIndex);
  12197. }
  12198. },
  12199. addSelectAnswer() {
  12200. if (this.selectJson.url == "") {
  12201. this.$message.error("请上传题目");
  12202. return;
  12203. }
  12204. if (!this.selectJson.select.length) {
  12205. this.$message.error("请添加选项");
  12206. return;
  12207. }
  12208. if (!this.selectJson.answer.length) {
  12209. this.$message.error("请设置答案");
  12210. return;
  12211. }
  12212. var a = 1;
  12213. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12214. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12215. a = 2;
  12216. }
  12217. }
  12218. if (a == 2) {
  12219. this.$message.error("请设置答案");
  12220. return;
  12221. }
  12222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12223. this.taskCount
  12224. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12225. this.dialogVisibleSelect = false;
  12226. if (
  12227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12228. .toolChoose[this.toolIndex].tool != 41
  12229. ) {
  12230. this.addTools(41, this.taskCount, this.toolIndex);
  12231. }
  12232. },
  12233. nextSelectSteps() {
  12234. if (this.selectJson.url == "") {
  12235. this.$message.error("请上传题目");
  12236. return;
  12237. }
  12238. if (!this.selectJson.select.length) {
  12239. this.$message.error("请添加选项");
  12240. return;
  12241. } else {
  12242. for (var z = 0; z < this.selectJson.select.length; z++) {
  12243. let checkC = this.selectJson.select[z];
  12244. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12245. let checkC2 = this.selectJson.select[z2];
  12246. if (checkC == checkC2) {
  12247. this.$message.error(
  12248. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  12249. );
  12250. return;
  12251. }
  12252. }
  12253. }
  12254. }
  12255. var a = 1;
  12256. for (var i = 0; i < this.selectJson.select.length; i++) {
  12257. if (!this.selectJson.select[i]) {
  12258. a = 2;
  12259. }
  12260. }
  12261. if (a == 2) {
  12262. this.$message.error("添加的选项不能为空");
  12263. return;
  12264. }
  12265. this.selectSteps++;
  12266. },
  12267. selectCourseDetail() {
  12268. if (this.cid == "" || this.cid == undefined) {
  12269. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12270. this.isTeacherSee = true;
  12271. }
  12272. console.log("这是新增课程");
  12273. this.selectAllType();
  12274. } else {
  12275. this.cidType = 1;
  12276. let params = {
  12277. cid: this.cid,
  12278. };
  12279. this.ajax
  12280. .get(this.$store.state.api + "select_course_detail", params)
  12281. .then((res) => {
  12282. this.loading = true;
  12283. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12284. this.courseState = res.data[0][0].state;
  12285. for (var j = 0; j < this.unitJson.length; j++) {
  12286. for (
  12287. var k = 0;
  12288. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12289. k++
  12290. ) {
  12291. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12292. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12293. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12294. : [];
  12295. let _chapterData = [];
  12296. for (
  12297. var c = 0;
  12298. c <
  12299. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12300. .length;
  12301. c++
  12302. ) {
  12303. if (
  12304. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12305. ) {
  12306. _chapterData.push(
  12307. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12308. );
  12309. }
  12310. }
  12311. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12312. _chapterData;
  12313. }
  12314. }
  12315. this.$forceUpdate();
  12316. this.courseName = res.data[0][0].title;
  12317. this.courseText = res.data[0][0].brief;
  12318. this.evalua = res.data[0][0].evaId;
  12319. this.cover = JSON.parse(res.data[0][0].cover);
  12320. this.noneBtnImg = this.cover.length >= 1;
  12321. // this.checkboxList =
  12322. // res.data[0][0].course_student.length > 0
  12323. // ? JSON.parse(res.data[0][0].course_student)
  12324. // : [];
  12325. this.checkboxList2 = res.data[0][0].juri
  12326. ? res.data[0][0].juri.split(",")
  12327. : [];
  12328. this.inviteCode = [];
  12329. for (var i = 0; i < res.data[2].length; i++) {
  12330. this.inviteCode.push({
  12331. cid: res.data[2][i].classid,
  12332. ic: res.data[2][i].code,
  12333. });
  12334. }
  12335. this.checkboxList3 = res.data[0][0].course_teacher
  12336. ? res.data[0][0].course_teacher.split(",")
  12337. : [];
  12338. // this.isTeacherSee =
  12339. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12340. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12341. this.myWord = res.data[0][0].template;
  12342. this.templateC.id = "123";
  12343. this.courseUserid = res.data[0][0].userid;
  12344. // if(this.courseUserid == this.userid){
  12345. // this.InviteChange(this.checkboxList2)
  12346. // }
  12347. this.nbOrder = res.data[0][0].ordernumber;
  12348. this.courseTypeId = [];
  12349. for (var i = 0; i < res.data[1].length; i++) {
  12350. this.courseTypeId.push(res.data[1][i].typeid);
  12351. }
  12352. console.log(this.courseTypeId);
  12353. // if (this.timer) clearInterval(this.timer);
  12354. if (this.timer) clearTimeout(this.timer);
  12355. this.timer = null;
  12356. // this.timer = setInterval(() => {
  12357. this.seleteCourseUpdate();
  12358. this.setMan();
  12359. this.selectAllType();
  12360. this.unitJson[
  12361. this.unitIndex
  12362. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12363. // }, 5000);
  12364. this.$forceUpdate();
  12365. setTimeout(() => {
  12366. this.checkEva(this.evalua);
  12367. setTimeout(() => {
  12368. this.checkEva(this.evalua);
  12369. }, 100);
  12370. }, 100);
  12371. })
  12372. .catch((err) => {
  12373. console.error(err);
  12374. });
  12375. }
  12376. },
  12377. seleteCourseUpdate() {
  12378. let params = {
  12379. cid: this.cid,
  12380. };
  12381. this.ajax
  12382. .get(this.$store.state.api + "select_course_detail", params)
  12383. .then((res) => {
  12384. // console.log(this.unitJson);
  12385. let unitJson = JSON.parse(res.data[0][0].chapters);
  12386. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12387. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12388. let _unitJson = [];
  12389. let _chapAarry = [];
  12390. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12391. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12392. let index = 1;
  12393. let chapindex;
  12394. if (_unitJson2.length > unitJson.length) {
  12395. for (let c = 0; c < _unitJson2.length; c++) {
  12396. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12397. }
  12398. for (let j = 0; j < unitJson.length; j++) {
  12399. let count = 0;
  12400. for (let k = 0; k < _unitJson2.length; k++) {
  12401. if (
  12402. unitJson[j].chapterInfo[0].chapterid ==
  12403. _unitJson2[k].chapterInfo[0].chapterid
  12404. ) {
  12405. count++;
  12406. _chapAarry.splice(
  12407. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12408. 1
  12409. );
  12410. _unitJson.push(unitJson[j]);
  12411. break;
  12412. }
  12413. }
  12414. // if(count === 0){
  12415. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12416. // }
  12417. }
  12418. for (let k = 0; k < _unitJson2.length; k++) {
  12419. if (_unitJson2[k].isUpdate == 1) {
  12420. _chapAarry.splice(
  12421. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12422. 1
  12423. );
  12424. _unitJson.push(_unitJson2[k]);
  12425. }
  12426. }
  12427. console.log(_chapAarry);
  12428. for (let d = 0; d < _unitJson2.length; d++) {
  12429. if (
  12430. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12431. ) {
  12432. if (_unitIndex == d) {
  12433. index = 2;
  12434. }
  12435. chapindex = d;
  12436. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12437. }
  12438. }
  12439. } else {
  12440. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12441. }
  12442. for (let i = 0; i < unitJson.length; i++) {
  12443. if (
  12444. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12445. _unitJson[i].chapterInfo[0].chapterid !=
  12446. unitJson[i].chapterInfo[0].chapterid
  12447. ) {
  12448. if (i == _unitJson.length - 1) {
  12449. // this.unitIndex++
  12450. _unitIndex2++;
  12451. }
  12452. _unitJson.splice(i, 0, unitJson[i]);
  12453. } else if (i > _unitJson.length - 1) {
  12454. _unitJson.push(unitJson[i]);
  12455. } else if (
  12456. _unitJson[i].chapterInfo[0].chapterid ==
  12457. unitJson[i].chapterInfo[0].chapterid
  12458. ) {
  12459. _unitJson[i] = unitJson[i];
  12460. }
  12461. // if (i == _unitIndex) {
  12462. // continue;
  12463. // } else
  12464. }
  12465. if (_chapAarry.length && index != 2) {
  12466. if (chapindex < _unitIndex) {
  12467. this.isDelete = 2;
  12468. // this.unitIndex--;
  12469. _unitIndex2--;
  12470. } else if (
  12471. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12472. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12473. ) {
  12474. this.isDelete = 2;
  12475. for (let n = 0; n < _unitJson.length; n++) {
  12476. if (
  12477. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12478. _unitJson[n].chapterInfo[0].chapterid
  12479. ) {
  12480. // this.unitIndex = n;
  12481. _unitIndex2 = n;
  12482. _unitJson[n] = _unitJson2[_unitIndex];
  12483. break;
  12484. }
  12485. }
  12486. }
  12487. } else if (index != 2) {
  12488. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12489. _unitJson2[_unitIndex];
  12490. for (
  12491. var ci = 0;
  12492. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12493. ci++
  12494. ) {
  12495. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12496. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12497. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12498. .toolChoose
  12499. : [];
  12500. let _chapterData = [];
  12501. for (
  12502. var c = 0;
  12503. c <
  12504. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12505. .length;
  12506. c++
  12507. ) {
  12508. if (
  12509. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12510. .chapterData[c]
  12511. ) {
  12512. _chapterData.push(
  12513. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12514. .chapterData[c]
  12515. );
  12516. }
  12517. }
  12518. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12519. _chapterData;
  12520. }
  12521. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12522. }
  12523. if (index == 1) {
  12524. this.unitJson = _unitJson;
  12525. this.$forceUpdate();
  12526. setTimeout(() => {
  12527. if (this.unitIndex != _unitIndex2) {
  12528. this.isDelete = 2;
  12529. this.unitIndex = _unitIndex2;
  12530. }
  12531. }, 0);
  12532. this.timer = setTimeout(() => {
  12533. this.seleteCourseUpdate();
  12534. }, 1000);
  12535. } else if (index == 2) {
  12536. let _this = this;
  12537. _this
  12538. .$confirm(
  12539. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12540. "提示",
  12541. {
  12542. confirmButtonText: "需要",
  12543. cancelButtonText: "取消",
  12544. type: "warning",
  12545. }
  12546. )
  12547. .then(() => {
  12548. if (_this.time()) {
  12549. _this.restoreWork(
  12550. _chapAarry[0],
  12551. _unitJson,
  12552. chapindex,
  12553. _unitJson2,
  12554. _unitIndex2
  12555. );
  12556. }
  12557. })
  12558. .catch(() => {
  12559. _this.unitJson = _unitJson;
  12560. _this.$forceUpdate();
  12561. setTimeout(() => {
  12562. if (this.unitIndex != _unitIndex2) {
  12563. this.isDelete = 2;
  12564. this.unitIndex = _unitIndex2;
  12565. }
  12566. }, 0);
  12567. _this.timer = setTimeout(() => {
  12568. _this.seleteCourseUpdate();
  12569. }, 1000);
  12570. });
  12571. }
  12572. // 在复制操作之前记录滚动位置
  12573. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12574. // 执行复制操作
  12575. // 复制操作完成后恢复滚动位置
  12576. this.$nextTick(() => {
  12577. if(this.$refs.scrollContainer){
  12578. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12579. }
  12580. });
  12581. })
  12582. .catch((err) => {
  12583. console.error(err);
  12584. });
  12585. },
  12586. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12587. let params = [
  12588. {
  12589. cid: this.cid,
  12590. chapters: JSON.stringify(this.unitJson),
  12591. uid: this.userid,
  12592. chapid: chapid,
  12593. },
  12594. ];
  12595. this.ajax
  12596. .post(this.$store.state.api + "restoreWork", params)
  12597. .then((res) => {
  12598. this.$message({
  12599. message: "恢复成功",
  12600. type: "success",
  12601. });
  12602. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12603. this.unitJson = unitJson;
  12604. this.$forceUpdate();
  12605. setTimeout(() => {
  12606. if (this.unitIndex != unitIndex2) {
  12607. this.isDelete = 2;
  12608. this.unitIndex = unitIndex2;
  12609. }
  12610. }, 0);
  12611. this.timer = setTimeout(() => {
  12612. this.seleteCourseUpdate();
  12613. }, 1000);
  12614. })
  12615. .catch((err) => {
  12616. this.$message.error("网络不佳");
  12617. console.error(err);
  12618. });
  12619. },
  12620. getTypeName() {
  12621. console.log(this.courseTypeId);
  12622. this.$forceUpdate();
  12623. },
  12624. selectAllType() {
  12625. let params = {
  12626. org: this.org && this.org != "" ? this.org : "",
  12627. oid: this.oid && this.oid != "" ? this.oid : "",
  12628. stand: this.lang.lang
  12629. };
  12630. this.ajax
  12631. .get(this.$store.state.api + "selectAllTypeStand", params)
  12632. .then((res) => {
  12633. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12634. res.data[0] = [...res.data[0], ...res.data[4]];
  12635. }
  12636. this.CourseType = res.data;
  12637. this.CourseType2 = [
  12638. { name: "智见课程", id: [] },
  12639. { name: "智行课程", id: [] },
  12640. { name: "智创课程", id: [] },
  12641. ];
  12642. for (var cti = 0; cti < res.data[0].length; cti++) {
  12643. if (
  12644. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12645. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12646. ) {
  12647. this.CourseType2[0].id.push(res.data[0][cti].id);
  12648. } else if (
  12649. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12650. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12651. ) {
  12652. this.CourseType2[1].id.push(res.data[0][cti].id);
  12653. } else if (
  12654. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12655. ) {
  12656. this.CourseType2[2].id.push(res.data[0][cti].id);
  12657. }
  12658. if (
  12659. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12660. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12661. ) {
  12662. res.data[0][cti].name = "年级";
  12663. } else if (
  12664. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12665. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12666. ) {
  12667. res.data[0][cti].name = "学科";
  12668. } else if (
  12669. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12670. ) {
  12671. res.data[0][cti].name = "主题";
  12672. }
  12673. }
  12674. let _courseTypeId = [];
  12675. for (var i = 0; i < res.data[0].length; i++) {
  12676. if (!this.cid) {
  12677. this.courseTypeId[res.data[0][i].id] = [];
  12678. }
  12679. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  12680. // }
  12681. this.CourseTypeJson[res.data[0][i].id] = [];
  12682. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12683. if (res.data[0][i].name == "栏目") {
  12684. this.CourseType[0][i].name = "主题";
  12685. }
  12686. }
  12687. if (res.data[2].length == 0 && res.data[3].length == 0) {
  12688. for (var j = 0; j < res.data[1].length; j++) {
  12689. if (
  12690. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  12691. _courseTypeId.indexOf(res.data[1][j].id) == -1
  12692. ) {
  12693. _courseTypeId.push(res.data[1][j].id);
  12694. }
  12695. if (res.data[0][i].id == res.data[1][j].pid) {
  12696. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12697. }
  12698. }
  12699. } else {
  12700. if (res.data[2].length > 0) {
  12701. for (var j = 0; j < res.data[2].length; j++) {
  12702. if (
  12703. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  12704. _courseTypeId.indexOf(res.data[2][j].id) == -1
  12705. ) {
  12706. _courseTypeId.push(res.data[2][j].id);
  12707. }
  12708. if (res.data[0][i].id == res.data[2][j].pid) {
  12709. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12710. }
  12711. }
  12712. }
  12713. if (res.data[3].length > 0) {
  12714. for (var j = 0; j < res.data[3].length; j++) {
  12715. if (
  12716. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  12717. _courseTypeId.indexOf(res.data[3][j].id) == -1
  12718. ) {
  12719. _courseTypeId.push(res.data[3][j].id);
  12720. }
  12721. if (res.data[0][i].id == res.data[3][j].pid) {
  12722. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12723. }
  12724. }
  12725. }
  12726. }
  12727. }
  12728. this.courseTypeId = _courseTypeId;
  12729. })
  12730. .catch((err) => {
  12731. console.error(err);
  12732. });
  12733. },
  12734. selectType() {
  12735. this.ajax
  12736. .get(this.$store.state.api + "selectType")
  12737. .then((res) => {
  12738. this.CourseType = res.data;
  12739. for (var i = 0; i < res.data[0].length; i++) {
  12740. if (!this.cid) {
  12741. this.courseTypeId[res.data[0][i].id] = "";
  12742. }
  12743. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12744. if (res.data[0][i].name == "栏目") {
  12745. this.CourseType[0][i].name = "主题";
  12746. }
  12747. }
  12748. for (var j = 0; j < res.data[1].length; j++) {
  12749. if (res.data[0][i].id == res.data[1][j].pid) {
  12750. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12751. this.CourseTypeJson[res.data[0][i].id] = [];
  12752. }
  12753. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12754. }
  12755. }
  12756. }
  12757. this.selectTypeByOid();
  12758. this.selectTypeByOrg();
  12759. })
  12760. .catch((err) => {
  12761. console.error(err);
  12762. });
  12763. },
  12764. selectTypeByOid() {
  12765. let params = {
  12766. oid: this.oid,
  12767. };
  12768. this.ajax
  12769. .get(this.$store.state.api + "selectTypeByOid", params)
  12770. .then((res) => {
  12771. for (var i = 0; i < res.data[0].length; i++) {
  12772. for (var j = 0; j < res.data[1].length; j++) {
  12773. if (res.data[0][i].id == res.data[1][j].pid) {
  12774. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12775. this.CourseTypeJson[res.data[0][i].id] = [];
  12776. }
  12777. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12778. }
  12779. }
  12780. }
  12781. })
  12782. .catch((err) => {
  12783. console.error(err);
  12784. });
  12785. },
  12786. selectTypeByOrg() {
  12787. let params = {
  12788. oid: this.org,
  12789. };
  12790. this.ajax
  12791. .get(this.$store.state.api + "selectTypeByOrg", params)
  12792. .then((res) => {
  12793. for (var i = 0; i < res.data[0].length; i++) {
  12794. for (var j = 0; j < res.data[1].length; j++) {
  12795. if (res.data[0][i].id == res.data[1][j].pid) {
  12796. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12797. this.CourseTypeJson[res.data[0][i].id] = [];
  12798. }
  12799. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12800. }
  12801. }
  12802. }
  12803. this.$forceUpdate();
  12804. })
  12805. .catch((err) => {
  12806. console.error(err);
  12807. });
  12808. },
  12809. OtherMb(type, task) {
  12810. if (task === 0 || task) {
  12811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12812. task
  12813. ].isEvaFold = true;
  12814. }
  12815. this.typeMode = type;
  12816. setTimeout(() => {
  12817. this.checkEva(this.checkId);
  12818. setTimeout(() => {
  12819. this.checkEva(this.checkId);
  12820. }, 100);
  12821. }, 100);
  12822. },
  12823. openMember() {
  12824. this.searchTN = "";
  12825. this.getTeacher();
  12826. this.dialogVisibleMember = true;
  12827. },
  12828. checkEva(id, type) {
  12829. this.dialogVisiblemb = false;
  12830. this.selectEva();
  12831. if (this.evalua != id && type == 2) {
  12832. this.$message.success("导入成功");
  12833. setTimeout(() => {
  12834. this.checkEva(id);
  12835. }, 100);
  12836. }
  12837. this.evalua = id;
  12838. this.checkId = id;
  12839. if (this.evalua != "") {
  12840. for (var i = 0; i < this.evaJuri.length; i++) {
  12841. if (this.evalua == this.evaJuri[i].id) {
  12842. this.eTitle = this.evaJuri[i].title;
  12843. this.eJson = JSON.parse(this.evaJuri[i].content);
  12844. }
  12845. }
  12846. this.data.data = [];
  12847. this.$forceUpdate();
  12848. setTimeout(() => {
  12849. this.setMindData();
  12850. }, 1000);
  12851. }
  12852. },
  12853. deleteEva() {
  12854. let _this = this;
  12855. if (_this.evalua == "") {
  12856. this.$message.warning("内容已经清空了,请勿重复清空");
  12857. return;
  12858. }
  12859. _this
  12860. .$confirm("确定删除此目标吗?", "提示", {
  12861. confirmButtonText: "确定",
  12862. cancelButtonText: "取消",
  12863. type: "warning",
  12864. })
  12865. .then(() => {
  12866. _this.evalua = "";
  12867. _this.checkId = "";
  12868. _this.eTitle = "";
  12869. let _unitJson = _this.unitJson;
  12870. for (var i = 0; i < _unitJson.length; i++) {
  12871. let _task = _unitJson[i].chapterInfo[0].taskJson;
  12872. for (var j = 0; j < _task.length; j++) {
  12873. let _eList = _task[j].eList;
  12874. for (var k = 0; k < _eList.length; k++) {
  12875. delete _eList[k].target;
  12876. }
  12877. }
  12878. }
  12879. _this.$forceUpdate();
  12880. if (_this.cid) {
  12881. _this.updateWork();
  12882. }
  12883. })
  12884. .catch(() => {
  12885. return;
  12886. });
  12887. },
  12888. selectEva() {
  12889. let params = {
  12890. oid: this.oid,
  12891. };
  12892. this.ajax
  12893. .get(this.$store.state.api + "selectAllEvaluation", params)
  12894. .then((res) => {
  12895. this.evaJuri = res.data[0];
  12896. // 在复制操作之前记录滚动位置
  12897. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12898. // 执行复制操作
  12899. // 复制操作完成后恢复滚动位置
  12900. this.$nextTick(() => {
  12901. if(this.$refs.scrollContainer){
  12902. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12903. }
  12904. });
  12905. })
  12906. .catch((err) => {
  12907. console.error(err);
  12908. });
  12909. },
  12910. setMindData() {
  12911. let targetArray = [];
  12912. this.data.data = [];
  12913. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  12914. let _eJson = Object.keys(this.eJson);
  12915. let _e = this.eJson;
  12916. for (let i = 0; i < _eJson.length; i++) {
  12917. let element = _e[_eJson[i]];
  12918. this.data.data.push({
  12919. id: element.id,
  12920. parentid: "root",
  12921. topic: element.name,
  12922. });
  12923. // targetArray.push({
  12924. // id: element.id,
  12925. // parentid: "root",
  12926. // name: element.name,
  12927. // });
  12928. targetArray.push({
  12929. value: element.name,
  12930. label: element.name,
  12931. children: [],
  12932. });
  12933. let _eJsonc = Object.keys(element.child);
  12934. let _e2 = element.child;
  12935. for (let j = 0; j < _eJsonc.length; j++) {
  12936. let _ec = _e2[_eJsonc[j]];
  12937. this.data.data.push({
  12938. id: _ec.id,
  12939. parentid: element.id,
  12940. topic: _ec.name,
  12941. });
  12942. // targetArray.push({
  12943. // id: _ec.id,
  12944. // parentid: element.id,
  12945. // name: _ec.name,
  12946. // });
  12947. targetArray[i].children.push({
  12948. value: _ec.name,
  12949. label: _ec.name,
  12950. children: [],
  12951. });
  12952. let _eJsonz = Object.keys(_ec.child);
  12953. let _e3 = _ec.child;
  12954. for (let z = 0; z < _eJsonz.length; z++) {
  12955. let _ez = _e3[_eJsonz[z]];
  12956. this.data.data.push({
  12957. id: _ez.id,
  12958. parentid: _ec.id,
  12959. topic: _ez.name,
  12960. });
  12961. // targetArray.push({
  12962. // id: _ez.id,
  12963. // parentid: _ec.id,
  12964. // name: _ez.name,
  12965. // });
  12966. targetArray[i].children[j].children.push({
  12967. value: _ez.name,
  12968. label: _ez.name,
  12969. });
  12970. }
  12971. }
  12972. }
  12973. this.targetArray = targetArray;
  12974. this.$forceUpdate();
  12975. },
  12976. /*添加评价 */
  12977. addEList(index, tIndex) {
  12978. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  12979. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  12980. value: "",
  12981. detail: "",
  12982. score: 5,
  12983. })
  12984. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  12985. { value: "", detail: "", score: 5 },
  12986. ]);
  12987. this.$forceUpdate();
  12988. },
  12989. openEList(index, tIndex) {
  12990. this.evaIndex = index;
  12991. this.evatIndex = tIndex;
  12992. this.evaBoxDialog = true;
  12993. },
  12994. addCET(index, tIndex) {
  12995. this.cetIndex = index;
  12996. this.cettIndex = tIndex;
  12997. this.selectAllType1();
  12998. },
  12999. addCETemplate() {
  13000. var array =
  13001. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  13002. .eList;
  13003. let params = [
  13004. {
  13005. uid: this.userid,
  13006. n: this.templateName,
  13007. json: JSON.stringify(array),
  13008. t: 1,
  13009. oid: this.oid,
  13010. },
  13011. ];
  13012. this.ajax
  13013. .post(this.$store.state.api + "addCETShare", params)
  13014. .then((res) => {
  13015. this.addTypeByCET(res.data[0][0].id);
  13016. })
  13017. .catch((err) => {
  13018. this.$message.error("网络不佳");
  13019. console.error(err);
  13020. });
  13021. },
  13022. addTypeByCET(id) {
  13023. if (this.setTypeJson.two == "") {
  13024. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  13025. return;
  13026. }
  13027. let params = {
  13028. cid: id,
  13029. };
  13030. this.ajax
  13031. .get(this.$store.state.api + "deleteCETLabel", params)
  13032. .then((res) => {
  13033. for (var i = 0; i < 2; i++) {
  13034. let tid = "";
  13035. if (i == 0) {
  13036. tid = this.setTypeJson.one;
  13037. } else {
  13038. tid = this.setTypeJson.two;
  13039. }
  13040. let params = [
  13041. {
  13042. cid: id,
  13043. tid: tid,
  13044. uid: this.userid,
  13045. },
  13046. ];
  13047. this.ajax
  13048. .post(this.$store.state.api + "addCETLabel", params)
  13049. .then((res) => {
  13050. this.$message({
  13051. message: "添加成功",
  13052. type: "success",
  13053. });
  13054. this.close();
  13055. })
  13056. .catch((err) => {
  13057. this.$message.error("网络不佳");
  13058. console.error(err);
  13059. });
  13060. }
  13061. })
  13062. .catch((err) => {
  13063. this.$message.error("网络不佳");
  13064. console.error(err);
  13065. });
  13066. },
  13067. updateEvaJson(array) {
  13068. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13069. this.evatIndex
  13070. ].eList = array;
  13071. },
  13072. forceUpdate() {
  13073. this.$forceUpdate();
  13074. },
  13075. deletEList(index, tIndex, eIndex) {
  13076. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13077. eIndex,
  13078. 1
  13079. );
  13080. this.$forceUpdate();
  13081. },
  13082. getChoosePic(t) {
  13083. this.chooseType = t;
  13084. this.getAllBanner();
  13085. },
  13086. getAllBanner() {
  13087. this.sysPicVisible = true;
  13088. let params = {
  13089. t: this.chooseType,
  13090. };
  13091. this.ajax
  13092. .get(this.$store.state.api + "selectAllBanner", params)
  13093. .then((res) => {
  13094. this.sysPic = res.data[0];
  13095. })
  13096. .catch((err) => {
  13097. console.error(err);
  13098. });
  13099. },
  13100. // getClass() {
  13101. // let params = {
  13102. // oid: this.oid,
  13103. // };
  13104. // this.ajax
  13105. // .get(this.$store.state.api + "selectClassBySchool", params)
  13106. // .then((res) => {
  13107. // this.classJuri = res.data[0];
  13108. // })
  13109. // .catch((err) => {
  13110. // console.error(err);
  13111. // });
  13112. // },
  13113. deleteSysPic() {
  13114. this.cover = [];
  13115. this.isSysPic = false;
  13116. this.isSysPic2 = false;
  13117. },
  13118. deleteSelectPic() {
  13119. this.selectJson.url = "";
  13120. },
  13121. setEListStar() {
  13122. this.$forceUpdate();
  13123. },
  13124. deletRateList(i) {
  13125. this.rateJson.splice(i, 1);
  13126. },
  13127. addRateList() {
  13128. this.rateJson.push({ detail: "", score: 5, value: "" });
  13129. },
  13130. addSt() {
  13131. this.sentenceList.push({
  13132. sentenceTitle: "",
  13133. addSentence: [],
  13134. rightAnswer: [],
  13135. });
  13136. },
  13137. addSen(i) {
  13138. if (!this.sentenceList[i].sentenceTitle) {
  13139. this.$message.error("请填写卡片内容!");
  13140. return;
  13141. }
  13142. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13143. this.$message.error("卡片内容字数不能超过10位");
  13144. return;
  13145. }
  13146. if (
  13147. this.sentenceList[i].addSentence.indexOf(
  13148. this.sentenceList[i].sentenceTitle
  13149. ) !== -1
  13150. ) {
  13151. this.$message.error("不能添加重复的卡片内容!");
  13152. return;
  13153. }
  13154. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13155. // this.isPushTitleList.push(this.sentenceTitle);
  13156. this.sentenceList[i].sentenceTitle = "";
  13157. },
  13158. setRightAnswer(s, i, j) {
  13159. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13160. this.sentenceList[i].rightAnswer.push(s);
  13161. }
  13162. },
  13163. returnCard(r, i, j) {
  13164. this.sentenceList[i].rightAnswer.splice(j, 1);
  13165. },
  13166. addSentenceTool() {
  13167. for (var i = 0; i < this.sentenceList.length; i++) {
  13168. if (this.sentenceList[i].rightAnswer.length == 0) {
  13169. this.$message.error(`请将题目${i + 1}设置完整。`);
  13170. return;
  13171. }
  13172. if (
  13173. this.sentenceList[i].addSentence.length !=
  13174. this.sentenceList[i].rightAnswer.length
  13175. ) {
  13176. this.$message.error(`请将题目${i + 1}设置完整。`);
  13177. return;
  13178. }
  13179. }
  13180. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13181. this.taskCount
  13182. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13183. this.sentenceList = [
  13184. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13185. ];
  13186. this.dialogVisibleSentence = false;
  13187. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13188. // itemTaskIndex
  13189. // ].toolChoose[toolIndex].tool = [];
  13190. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13191. // itemTaskIndex
  13192. // ].toolChoose[toolIndex].tool.push(i);
  13193. if (
  13194. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13195. .toolChoose[this.toolIndex].tool != 47
  13196. ) {
  13197. this.addTools(47, this.taskCount, this.toolIndex);
  13198. }
  13199. },
  13200. addTableJson() {
  13201. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13202. // this.$message.error("请将信息填写完整!");
  13203. // return;
  13204. // }
  13205. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13206. this.taskCount
  13207. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13208. // this.tableJson = [{ text: "" }];
  13209. // this.dialogVisibleTable = false;
  13210. this.$message.success("上传成功");
  13211. if (
  13212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13213. .toolChoose[this.toolIndex].tool != 48
  13214. ) {
  13215. this.addTools(48, this.taskCount, this.toolIndex);
  13216. }
  13217. },
  13218. addWordJson() {
  13219. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13220. this.taskCount
  13221. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13222. // this.wordJson = [{ text: "" }];
  13223. // this.dialogVisibleWord = false;
  13224. this.$message.success("上传成功");
  13225. if (
  13226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13227. .toolChoose[this.toolIndex].tool != 52
  13228. ) {
  13229. this.addTools(52, this.taskCount, this.toolIndex);
  13230. }
  13231. },
  13232. addMoreUpload() {
  13233. if (this.uploadJson.length == 0) {
  13234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13235. this.taskCount
  13236. ].toolChoose[this.toolIndex].uploadJson = [];
  13237. } else {
  13238. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13239. this.taskCount
  13240. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13241. }
  13242. this.uploadJson = [];
  13243. this.dialogVisibleMoreUpload = false;
  13244. if (
  13245. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13246. .toolChoose[this.toolIndex].tool != 50
  13247. ) {
  13248. this.addTools(50, this.taskCount, this.toolIndex);
  13249. }
  13250. },
  13251. addPreTime() {
  13252. if (this.preTime == 0) {
  13253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13254. this.taskCount
  13255. ].toolChoose[this.toolIndex].preTime = 0;
  13256. } else {
  13257. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13258. this.taskCount
  13259. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13260. }
  13261. this.preTime = 0;
  13262. this.dialogVisiblePreTime = false;
  13263. if (
  13264. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13265. .toolChoose[this.toolIndex].tool != 10
  13266. ) {
  13267. this.addTools(10, this.taskCount, this.toolIndex);
  13268. }
  13269. },
  13270. goToTask(i) {
  13271. this.toolIndexType = "";
  13272. if (this.isClickColor == i + 1) {
  13273. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13274. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13275. // } else {
  13276. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13277. i
  13278. ].toolOpen = true;
  13279. // }
  13280. this.$forceUpdate();
  13281. return;
  13282. }
  13283. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13284. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13285. // } else {
  13286. document.querySelectorAll(".basic_box")[0].scrollTop =
  13287. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13288. this.isClickColor = i + 1;
  13289. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13290. // }
  13291. this.$forceUpdate();
  13292. },
  13293. taskOpen(i, stageIndex) {
  13294. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13295. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13296. } else {
  13297. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13298. }
  13299. this.updateWork3(stageIndex);
  13300. this.$forceUpdate();
  13301. },
  13302. goToTask2(i, stage) {
  13303. this.toolIndexType = "";
  13304. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13305. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13306. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13307. // } else {
  13308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13309. i
  13310. ].toolOpen = true;
  13311. // }
  13312. this.$forceUpdate();
  13313. return;
  13314. }
  13315. if (this.unitIndex != stage) {
  13316. if (this.panUnitJson() == 2) {
  13317. return;
  13318. }
  13319. this.unitSet(stage);
  13320. }
  13321. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13322. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13323. // } else {
  13324. document.querySelectorAll(".basic_box")[0].scrollTop =
  13325. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13326. this.isClickColor = i + 1;
  13327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13328. // }
  13329. this.$forceUpdate();
  13330. },
  13331. taskMove(type, index) {
  13332. this.$confirm(
  13333. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13334. "提示",
  13335. {
  13336. confirmButtonText: "确定",
  13337. cancelButtonText: "取消",
  13338. type: "warning",
  13339. }
  13340. )
  13341. .then(() => {
  13342. if (type == 1) {
  13343. if (index > 0) {
  13344. let a = JSON.parse(
  13345. JSON.stringify(
  13346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13347. index - 1
  13348. ]
  13349. )
  13350. );
  13351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13353. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13354. }
  13355. } else {
  13356. if (
  13357. index <
  13358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13359. ) {
  13360. let a = JSON.parse(
  13361. JSON.stringify(
  13362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13363. index + 1
  13364. ]
  13365. )
  13366. );
  13367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13369. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13370. }
  13371. }
  13372. this.$forceUpdate();
  13373. })
  13374. .catch(() => {
  13375. return;
  13376. });
  13377. },
  13378. stageMove(type, index) {
  13379. if (type == 1) {
  13380. if (index > 0) {
  13381. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13382. let acid = JSON.parse(
  13383. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13384. );
  13385. let bcid = JSON.parse(
  13386. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13387. );
  13388. this.unitJson3[index - 1] = this.unitJson3[index];
  13389. this.unitJson3[index] = a;
  13390. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13391. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13392. }
  13393. } else {
  13394. if (index < this.unitJson3.length - 1) {
  13395. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13396. let acid = JSON.parse(
  13397. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13398. );
  13399. let bcid = JSON.parse(
  13400. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13401. );
  13402. this.unitJson3[index + 1] = this.unitJson3[index];
  13403. this.unitJson3[index] = a;
  13404. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13405. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13406. }
  13407. }
  13408. this.$forceUpdate();
  13409. },
  13410. addGroup(i) {
  13411. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13412. this.groupJson.group.push({
  13413. name: "第" + (this.groupJson.group.length + 1) + "组",
  13414. });
  13415. },
  13416. deleteGroup(i) {
  13417. this.groupJson.group.splice(i, 1);
  13418. },
  13419. numberPan() {
  13420. if (
  13421. /[^\d]/.test(this.groupJson.number) ||
  13422. this.groupJson.number < 2 ||
  13423. this.groupJson.number > 10
  13424. ) {
  13425. this.$message.error("请输入2-10的数字");
  13426. this.groupJson.number = "";
  13427. }
  13428. },
  13429. addGroupJson() {
  13430. for (var i = 0; i < this.groupJson.group.length; i++) {
  13431. if (!this.groupJson.group[i].name) {
  13432. this.$message.error("请将信息填写完整!");
  13433. return;
  13434. }
  13435. }
  13436. if (!this.groupJson.number) {
  13437. this.$message.error("请将信息填写完整!");
  13438. return;
  13439. }
  13440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13441. this.taskCount
  13442. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13443. JSON.stringify(this.groupJson)
  13444. );
  13445. this.dialogVisibleGroup = false;
  13446. this.groupJson = {};
  13447. if (
  13448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13449. .toolChoose[this.toolIndex].tool != 49
  13450. ) {
  13451. this.addTools(49, this.taskCount, this.toolIndex);
  13452. }
  13453. },
  13454. updateTime(preTime) {
  13455. this.preTime = preTime;
  13456. },
  13457. InviteChange(val) {
  13458. console.log(val);
  13459. let _check = [];
  13460. let _check2 = [];
  13461. for (var i = 0; i < this.grade2.length; i++) {
  13462. var gid = this.grade2[i].id;
  13463. _check.push(gid);
  13464. }
  13465. for (var i = 0; i < this.checkboxList2.length; i++) {
  13466. var _id = this.checkboxList2[i];
  13467. if (_check.indexOf(_id) !== -1) {
  13468. _check2.push(_id);
  13469. }
  13470. }
  13471. this.checkAll = _check2.length === _check.length;
  13472. return;
  13473. let array = JSON.parse(JSON.stringify(val));
  13474. this.inviteCode = this.inviteCode.filter((el) => {
  13475. if (val.indexOf(el.cid) != -1) {
  13476. array.splice(array.indexOf(el.cid), 1);
  13477. return el;
  13478. }
  13479. });
  13480. for (var i = 0; i < array.length; i++) {
  13481. this.getInviteCode(array[i]);
  13482. }
  13483. },
  13484. InviteChange2(val) {
  13485. console.log(val);
  13486. let _check = [];
  13487. let _check2 = [];
  13488. for (var i = 0; i < this.teacherJuri.length; i++) {
  13489. var gid = this.teacherJuri[i].userid;
  13490. _check.push(gid);
  13491. }
  13492. for (var i = 0; i < this.checkboxList3.length; i++) {
  13493. var _id = this.checkboxList3[i];
  13494. if (_check.indexOf(_id) !== -1) {
  13495. _check2.push(_id);
  13496. }
  13497. }
  13498. this.checkAll2 = _check2.length === _check.length;
  13499. this.setMan();
  13500. return;
  13501. let array = JSON.parse(JSON.stringify(val));
  13502. this.inviteCode = this.inviteCode.filter((el) => {
  13503. if (val.indexOf(el.cid) != -1) {
  13504. array.splice(array.indexOf(el.cid), 1);
  13505. return el;
  13506. }
  13507. });
  13508. for (var i = 0; i < array.length; i++) {
  13509. this.getInviteCode(array[i]);
  13510. }
  13511. },
  13512. handleCheckAllChange(val) {
  13513. if (val) {
  13514. for (var i = 0; i < this.grade2.length; i++) {
  13515. var gid = this.grade2[i].id;
  13516. if (this.checkboxList2.indexOf(gid) === -1) {
  13517. this.checkboxList2.push(gid);
  13518. }
  13519. }
  13520. } else {
  13521. let _check = [];
  13522. let _check2 = [];
  13523. for (var i = 0; i < this.grade2.length; i++) {
  13524. var gid = this.grade2[i].id;
  13525. _check.push(gid);
  13526. }
  13527. for (var i = 0; i < this.checkboxList2.length; i++) {
  13528. var _id = this.checkboxList2[i];
  13529. if (_check.indexOf(_id) === -1) {
  13530. _check2.push(_id);
  13531. }
  13532. }
  13533. this.checkboxList2 = _check2;
  13534. }
  13535. this.isIndeterminate = false;
  13536. },
  13537. handleCheckAllChange2(val) {
  13538. if (val) {
  13539. for (var i = 0; i < this.teacherJuri.length; i++) {
  13540. var gid = this.teacherJuri[i].userid;
  13541. if (this.checkboxList3.indexOf(gid) === -1) {
  13542. this.checkboxList3.push(gid);
  13543. }
  13544. }
  13545. } else {
  13546. let _check = [];
  13547. let _check2 = [];
  13548. for (var i = 0; i < this.teacherJuri.length; i++) {
  13549. var gid = this.teacherJuri[i].userid;
  13550. _check.push(gid);
  13551. }
  13552. for (var i = 0; i < this.checkboxList3.length; i++) {
  13553. var _id = this.checkboxList3[i];
  13554. if (_check.indexOf(_id) === -1) {
  13555. _check2.push(_id);
  13556. }
  13557. }
  13558. this.checkboxList3 = _check2;
  13559. }
  13560. this.isIndeterminate2 = false;
  13561. },
  13562. async getInviteCode(cid) {
  13563. let code = this.randomNumber();
  13564. let params = {
  13565. code: code,
  13566. oid: this.oid,
  13567. };
  13568. let type = 1;
  13569. for (var i = 0; i < this.inviteCode.length; i++) {
  13570. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13571. type = 2;
  13572. }
  13573. }
  13574. if (type == 2) {
  13575. this.getInviteCode(cid);
  13576. return;
  13577. }
  13578. const res = await this.ajax.get(
  13579. this.$store.state.api + "selectInviteCode2",
  13580. params
  13581. );
  13582. if (
  13583. res.data.length &&
  13584. res.data[0].length &&
  13585. res.data[0][0].courseId != this.cid
  13586. ) {
  13587. this.getInviteCode(cid);
  13588. return;
  13589. }
  13590. let array = [];
  13591. for (var i = 0; i < this.inviteCode.length; i++) {
  13592. array.push(this.inviteCode[i].cid);
  13593. }
  13594. if (array.indexOf(cid) != -1) {
  13595. this.inviteCode[array.indexOf(cid)].ic = code;
  13596. } else {
  13597. this.inviteCode.push({ cid: cid, ic: code });
  13598. }
  13599. },
  13600. OpenInviteD(cid) {
  13601. let array = [];
  13602. this.icode = "";
  13603. for (var i = 0; i < this.inviteCode.length; i++) {
  13604. array.push(this.inviteCode[i].cid);
  13605. }
  13606. if (array.indexOf(cid) != -1) {
  13607. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13608. }
  13609. this.inviteId = cid;
  13610. this.dialogVisibleInvite = true;
  13611. },
  13612. addInvite() {
  13613. let reg = /^[A-Za-z0-9]{4,}$/;
  13614. if (!reg.test(this.icode)) {
  13615. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13616. return;
  13617. }
  13618. let type = 1;
  13619. for (var i = 0; i < this.inviteCode.length; i++) {
  13620. if (
  13621. this.inviteCode[i].cid != this.inviteId &&
  13622. this.icode == this.inviteCode[i].ic
  13623. ) {
  13624. type = 2;
  13625. }
  13626. }
  13627. if (type == 2) {
  13628. this.$message.error("已有此随机码,不能重复");
  13629. return;
  13630. }
  13631. let params = {
  13632. code: this.icode,
  13633. oid: this.oid,
  13634. };
  13635. this.ajax
  13636. .get(this.$store.state.api + "selectInviteCode", params)
  13637. .then((res) => {
  13638. if (
  13639. res.data.length &&
  13640. res.data[0].length &&
  13641. res.data[0][0].courseId != this.cid
  13642. ) {
  13643. this.$message.error("已有此随机码,不能重复");
  13644. return;
  13645. }
  13646. let array = [];
  13647. for (var i = 0; i < this.inviteCode.length; i++) {
  13648. array.push(this.inviteCode[i].cid);
  13649. }
  13650. if (array.indexOf(this.inviteId) != -1) {
  13651. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13652. } else {
  13653. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13654. }
  13655. this.icode = "";
  13656. this.dialogVisibleInvite = false;
  13657. })
  13658. .catch((err) => {
  13659. console.error(err);
  13660. });
  13661. },
  13662. randomNumber() {
  13663. // 随机生成两位数
  13664. // let num = Math.floor(Math.random() * 900) + 100;
  13665. // 生成 0 到 99 之间的随机整数
  13666. const randomNumber = Math.floor(Math.random() * 100);
  13667. // 如果随机数小于 10,补上前导零
  13668. const num =
  13669. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13670. // 随机生成两个大写字母
  13671. let letters = "";
  13672. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13673. for (let i = 0; i < 3; i++) {
  13674. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  13675. }
  13676. // 随机生成两位数字和字母的组合
  13677. let mix = "";
  13678. let chars =
  13679. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13680. for (let i = 0; i < 3; i++) {
  13681. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  13682. mix += char;
  13683. }
  13684. // 随机选择一种类型
  13685. let type = Math.floor(Math.random() * 3);
  13686. return num;
  13687. // 根据类型输出结果
  13688. switch (type) {
  13689. case 0:
  13690. console.log(num); // 输出两位数
  13691. return num;
  13692. case 1:
  13693. console.log(letters); // 输出两个大写字母
  13694. return letters;
  13695. case 2:
  13696. console.log(mix); // 输出两位数字和字母的组合
  13697. return mix;
  13698. }
  13699. },
  13700. getPaste() {
  13701. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  13702. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  13703. if (!iframe && !iframe2) {
  13704. return;
  13705. }
  13706. let copyData = iframe ? iframe.contentWindow.copyData : false;
  13707. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  13708. if (copyData && copyData.stageData && copyData.stageData.length) {
  13709. this.isPasteStage = true;
  13710. }
  13711. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  13712. this.isPasteStage = true;
  13713. }
  13714. if (copyData && copyData.selectData.length) {
  13715. this.isPasteChoice = true;
  13716. }
  13717. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  13718. this.isPasteTask = true;
  13719. }
  13720. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  13721. this.isPasteTask = true;
  13722. }
  13723. },
  13724. searchImage() {
  13725. var _this = this;
  13726. _this.imageList = [];
  13727. if (!_this.searchImageValue) {
  13728. _this.sysPicVisible2 = true;
  13729. return;
  13730. }
  13731. _this.imageloading = true;
  13732. _this.ajax
  13733. .post("https://gpt.cocorobo.cn/search_image", {
  13734. page: _this.ppage,
  13735. pagesize: 9,
  13736. query: _this.searchImageValue,
  13737. })
  13738. .then(function (response) {
  13739. // console.log(response.data.data);
  13740. var data = response.data.FunctionResponse.result;
  13741. for (var i = 0; i < data.length; i++) {
  13742. _this.imageList.push({ url: data[i].thumbnail });
  13743. }
  13744. _this.imageloading = false;
  13745. })
  13746. .catch(function (error) {
  13747. console.log(error);
  13748. });
  13749. _this.sysPicVisible2 = true;
  13750. },
  13751. changePicture() {
  13752. this.ppage++;
  13753. this.searchImage();
  13754. },
  13755. resetImage() {
  13756. this.ppage = 1;
  13757. this.searchImage();
  13758. },
  13759. jumpGj(i, j) {
  13760. if (i + 1 != this.isClickColor) {
  13761. this.isClickColor = i + 1;
  13762. }
  13763. var a = document.scrollingElement;
  13764. this.toolIndexType = `gj${i}${j}`;
  13765. let target = document.querySelector(`#gj${i}${j}`);
  13766. if (target) {
  13767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13768. setTimeout(() => {
  13769. target.scrollIntoView(true);
  13770. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13771. j
  13772. ].isFold3 = false;
  13773. setTimeout(() => {
  13774. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13775. }, 0);
  13776. }, 0);
  13777. }
  13778. },
  13779. jumpGj2(i, j, k) {
  13780. if (this.unitIndex != k) {
  13781. if (this.panUnitJson() == 2) {
  13782. return;
  13783. }
  13784. this.unitSet(k);
  13785. }
  13786. setTimeout(() => {
  13787. if (i + 1 != this.isClickColor) {
  13788. this.isClickColor = i + 1;
  13789. }
  13790. var a = document.scrollingElement;
  13791. this.toolIndexType = `gj${i}${j}${k}`;
  13792. let target = document.querySelector(`#gj${i}${j}`);
  13793. if (target) {
  13794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13795. setTimeout(() => {
  13796. target.scrollIntoView(true);
  13797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13798. j
  13799. ].isFold3 = false;
  13800. setTimeout(() => {
  13801. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13802. }, 0);
  13803. }, 0);
  13804. }
  13805. }, 0);
  13806. },
  13807. dragStart(val, i, j) {
  13808. console.log(this.taskCount);
  13809. this.dragType = "drag";
  13810. this.taskCount = j;
  13811. this.oldIndex = i;
  13812. this.oldData = val;
  13813. },
  13814. dragOver(i, j) {
  13815. this.typeIndex = "chapter-" + j + "-" + i;
  13816. this.newIndex = i;
  13817. },
  13818. dragEnd() {
  13819. if (this.dragType != "drag") {
  13820. this.typeIndex = "";
  13821. this.newIndex = "";
  13822. this.dragType = "";
  13823. this.isdrag = "";
  13824. return;
  13825. }
  13826. console.log(this.taskCount);
  13827. let newItems = [
  13828. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13829. .chapterData,
  13830. ];
  13831. // 删除老的节点
  13832. newItems.splice(this.oldIndex, 1);
  13833. // 在列表中目标位置增加新的节点
  13834. newItems.splice(this.newIndex, 0, this.oldData);
  13835. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13836. this.taskCount
  13837. ].chapterData = [...newItems];
  13838. this.typeIndex = "";
  13839. this.newIndex = "";
  13840. this.dragType = "";
  13841. this.isdrag = "";
  13842. this.$forceUpdate();
  13843. },
  13844. dragTaskStart(val, i, j) {
  13845. this.dragType = "task";
  13846. this.oldIndex = i;
  13847. this.oldData = val;
  13848. this.oldUnitIndex = j;
  13849. },
  13850. dragTaskOver(i, j) {
  13851. this.typeIndex = "task-" + i;
  13852. this.newIndex = i;
  13853. this.checkUnitIndex = j;
  13854. },
  13855. async dragTaskEnd() {
  13856. if (this.dragType != "task") {
  13857. this.newIndex = "";
  13858. this.dragType = "";
  13859. this.typeIndex = "";
  13860. this.checkUnitIndex = "";
  13861. this.isdrag = "";
  13862. return;
  13863. }
  13864. if (
  13865. this.newIndex == this.oldIndex &&
  13866. this.oldUnitIndex == this.checkUnitIndex
  13867. ) {
  13868. this.newIndex = "";
  13869. this.dragType = "";
  13870. this.typeIndex = "";
  13871. this.checkUnitIndex = "";
  13872. this.isdrag = "";
  13873. return;
  13874. }
  13875. let count1 = await this.getWorksCount(
  13876. 2,
  13877. this.checkUnitIndex,
  13878. this.newIndex,
  13879. 0
  13880. );
  13881. let count2 = await this.getWorksCount(
  13882. 2,
  13883. this.oldUnitIndex,
  13884. this.oldIndex,
  13885. 0
  13886. );
  13887. if (count1 > 0 || count2 > 0) {
  13888. this.$confirm(
  13889. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13890. "提示",
  13891. {
  13892. confirmButtonText: "确定",
  13893. cancelButtonText: "取消",
  13894. type: "warning",
  13895. }
  13896. )
  13897. .then(() => {
  13898. if (this.oldUnitIndex != this.checkUnitIndex) {
  13899. let newItems = [
  13900. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13901. ];
  13902. // 删除老的节点
  13903. newItems.splice(this.oldIndex, 1);
  13904. // 在列表中目标位置增加新的节点
  13905. let newItems2 = [
  13906. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13907. ];
  13908. newItems2.splice(this.newIndex, 0, this.oldData);
  13909. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13910. ...newItems,
  13911. ];
  13912. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13913. ...newItems2,
  13914. ];
  13915. } else {
  13916. let newItems = [
  13917. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13918. ];
  13919. // 删除老的节点
  13920. newItems.splice(this.oldIndex, 1);
  13921. // 在列表中目标位置增加新的节点
  13922. newItems.splice(this.newIndex, 0, this.oldData);
  13923. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13924. ...newItems,
  13925. ];
  13926. }
  13927. this.typeIndex = "";
  13928. this.newIndex = "";
  13929. this.dragType = "";
  13930. this.checkUnitIndex = "";
  13931. this.isdrag = "";
  13932. this.updateWork();
  13933. this.$forceUpdate();
  13934. })
  13935. .catch(() => {
  13936. this.newIndex = "";
  13937. this.dragType = "";
  13938. this.typeIndex = "";
  13939. this.checkUnitIndex = "";
  13940. this.isdrag = "";
  13941. return;
  13942. });
  13943. } else {
  13944. if (this.oldUnitIndex != this.checkUnitIndex) {
  13945. let newItems = [
  13946. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13947. ];
  13948. // 删除老的节点
  13949. newItems.splice(this.oldIndex, 1);
  13950. // 在列表中目标位置增加新的节点
  13951. let newItems2 = [
  13952. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13953. ];
  13954. newItems2.splice(this.newIndex, 0, this.oldData);
  13955. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13956. ...newItems,
  13957. ];
  13958. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13959. ...newItems2,
  13960. ];
  13961. } else {
  13962. let newItems = [
  13963. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13964. ];
  13965. // 删除老的节点
  13966. newItems.splice(this.oldIndex, 1);
  13967. // 在列表中目标位置增加新的节点
  13968. newItems.splice(this.newIndex, 0, this.oldData);
  13969. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13970. ...newItems,
  13971. ];
  13972. }
  13973. this.typeIndex = "";
  13974. this.newIndex = "";
  13975. this.dragType = "";
  13976. this.checkUnitIndex = "";
  13977. this.isdrag = "";
  13978. this.updateWork();
  13979. this.$forceUpdate();
  13980. }
  13981. },
  13982. dragUnitStart(val, i) {
  13983. this.dragType = "Unit";
  13984. this.oldIndex = i;
  13985. this.oldData = val;
  13986. },
  13987. dragUnitOver(i) {
  13988. this.typeIndex = "Unit-" + i;
  13989. this.newIndex = i;
  13990. console.log(i, this.unitJson[i].toolOpen);
  13991. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  13992. this.unitJson[i].toolOpen = true;
  13993. this.updateWork();
  13994. this.$forceUpdate();
  13995. }
  13996. },
  13997. async dragUnitEnd() {
  13998. if (this.dragType != "Unit") {
  13999. this.newIndex = "";
  14000. this.dragType = "";
  14001. this.typeIndex = "";
  14002. this.isdrag = "";
  14003. return;
  14004. }
  14005. if (this.newIndex == this.oldIndex) {
  14006. this.newIndex = "";
  14007. this.dragType = "";
  14008. this.typeIndex = "";
  14009. this.isdrag = "";
  14010. return;
  14011. }
  14012. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  14013. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  14014. console.log(count1, count2);
  14015. if (count1 > 0 || count2 > 0) {
  14016. this.$confirm(
  14017. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  14018. "提示",
  14019. {
  14020. confirmButtonText: "确定",
  14021. cancelButtonText: "取消",
  14022. type: "warning",
  14023. }
  14024. )
  14025. .then(() => {
  14026. let newItems = [...this.unitJson];
  14027. // 删除老的节点
  14028. newItems.splice(this.oldIndex, 1);
  14029. // 在列表中目标位置增加新的节点
  14030. newItems.splice(this.newIndex, 0, this.oldData);
  14031. this.unitJson = [...newItems];
  14032. this.typeIndex = "";
  14033. this.newIndex = "";
  14034. this.dragType = "";
  14035. this.isdrag = "";
  14036. this.updateWork();
  14037. this.$forceUpdate();
  14038. })
  14039. .catch(() => {
  14040. this.newIndex = "";
  14041. this.dragType = "";
  14042. this.typeIndex = "";
  14043. this.isdrag = "";
  14044. return;
  14045. });
  14046. } else {
  14047. let newItems = [...this.unitJson];
  14048. // 删除老的节点
  14049. newItems.splice(this.oldIndex, 1);
  14050. // 在列表中目标位置增加新的节点
  14051. newItems.splice(this.newIndex, 0, this.oldData);
  14052. this.unitJson = [...newItems];
  14053. this.typeIndex = "";
  14054. this.newIndex = "";
  14055. this.dragType = "";
  14056. this.isdrag = "";
  14057. this.updateWork();
  14058. this.$forceUpdate();
  14059. }
  14060. },
  14061. getWorksCount(type, stage, task, tool) {
  14062. return new Promise((resolve, reject) => {
  14063. let params = [
  14064. {
  14065. cid: this.cid,
  14066. stage: stage,
  14067. task: task,
  14068. tool: tool,
  14069. type: type,
  14070. },
  14071. ];
  14072. this.ajax
  14073. .post(this.$store.state.api + "getCourseWorkCount", params)
  14074. .then((res) => {
  14075. let count = res.data[0][0].count;
  14076. resolve(count);
  14077. })
  14078. .catch((err) => {
  14079. resolve(0);
  14080. this.$message.error("网络不佳");
  14081. console.error(err);
  14082. });
  14083. });
  14084. },
  14085. getTwoType(id) {
  14086. this.twoJson = [];
  14087. var array = this.CourseTypeJson1[
  14088. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14089. ].filter((e) => {
  14090. return e.ppid == id;
  14091. });
  14092. this.twoJson = array;
  14093. this.$forceUpdate();
  14094. },
  14095. ctype() {
  14096. this.oneJson =
  14097. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14098. },
  14099. selectAllType1() {
  14100. this.CourseType1 = [];
  14101. this.CourseTypeJson1 = {};
  14102. this.courseTypeId1 = {};
  14103. this.$forceUpdate();
  14104. let params = {
  14105. org: this.org && this.org != "" ? this.org : "",
  14106. oid: this.oid && this.oid != "" ? this.oid : "",
  14107. };
  14108. this.ajax
  14109. .get(this.$store.state.api + "selectAllEvaType", params)
  14110. .then((res) => {
  14111. this.CourseType1 = res.data;
  14112. for (var i = 0; i < res.data[0].length; i++) {
  14113. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14114. res.data[0][i].name = "一级分类";
  14115. } else if (
  14116. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14117. ) {
  14118. res.data[0][i].name = "二级分类";
  14119. }
  14120. if (!this.cid) {
  14121. this.courseTypeId1[res.data[0][i].id] = [];
  14122. }
  14123. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14124. this.CourseTypeJson1[res.data[0][i].id] = [];
  14125. }
  14126. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14127. for (var j = 0; j < res.data[1].length; j++) {
  14128. if (res.data[0][i].id == res.data[1][j].pid) {
  14129. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14130. }
  14131. }
  14132. // } else {
  14133. if (res.data[2].length > 0) {
  14134. for (var j = 0; j < res.data[2].length; j++) {
  14135. if (res.data[0][i].id == res.data[2][j].pid) {
  14136. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14137. }
  14138. }
  14139. }
  14140. if (res.data[3].length > 0) {
  14141. for (var j = 0; j < res.data[3].length; j++) {
  14142. if (res.data[0][i].id == res.data[3][j].pid) {
  14143. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14144. }
  14145. }
  14146. }
  14147. // }
  14148. }
  14149. this.ctype();
  14150. this.cetBoxDialog = true;
  14151. })
  14152. .catch((err) => {
  14153. console.error(err);
  14154. });
  14155. },
  14156. },
  14157. beforeDestroy() {
  14158. clearTimeout(this.timer);
  14159. this.timer = null;
  14160. clearInterval(this.timer2);
  14161. this.timer2 = null;
  14162. clearInterval(this.pasteTimer);
  14163. this.pasteTimer = null;
  14164. },
  14165. beforeRouteLeave(to, from, next) {
  14166. clearTimeout(this.timer);
  14167. this.timer = null;
  14168. clearInterval(this.timer2);
  14169. this.timer2 = null;
  14170. clearInterval(this.pasteTimer);
  14171. this.pasteTimer = null;
  14172. next();
  14173. },
  14174. created() {
  14175. this.getStudent();
  14176. this.getTeacher();
  14177. this.getClass();
  14178. this.selectGrage();
  14179. this.getTemplate();
  14180. // this.selectType();
  14181. this.selectEva();
  14182. this.loading = false;
  14183. this.timer2 = setInterval(() => {
  14184. this.selectEva();
  14185. }, 5000);
  14186. this.pasteTimer = setInterval(() => {
  14187. this.getPaste();
  14188. }, 1000);
  14189. setTimeout(() => {
  14190. this.selectCourseDetail();
  14191. }, 500);
  14192. let _this = this;
  14193. window.pasteStage = function (json) {
  14194. _this.pasteStage(json);
  14195. };
  14196. window.pasteTask = function (json) {
  14197. _this.pasteTask(json);
  14198. };
  14199. },
  14200. };
  14201. </script>
  14202. <style scoped>
  14203. @media screen and (max-width: 1280px) {
  14204. .mbCss {
  14205. flex-direction: column !important;
  14206. }
  14207. .pjCss {
  14208. width: 100% !important;
  14209. }
  14210. .evaCss {
  14211. width: 100% !important;
  14212. margin-top: 10px;
  14213. }
  14214. }
  14215. .el-table >>> .even_row {
  14216. background-color: #f1f1f1 !important;
  14217. }
  14218. .dialog_diy >>> .el-dialog__header {
  14219. background: #3c3c3c !important;
  14220. padding: 15px 20px;
  14221. }
  14222. .dialog_diy >>> .el-dialog__title {
  14223. color: #fff;
  14224. }
  14225. .dialog_diy >>> .el-dialog__headerbtn {
  14226. top: 19px;
  14227. }
  14228. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14229. color: #fff;
  14230. }
  14231. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14232. color: #fff;
  14233. }
  14234. .dialog_diy >>> .el-dialog__body,
  14235. .dialog_diy >>> .el-dialog__footer {
  14236. background: #fafafa;
  14237. }
  14238. .dialog_diy3 >>> .el-dialog__body,
  14239. .dialog_diy3 >>> .el-dialog__footer {
  14240. background: #eee !important;
  14241. }
  14242. .dialog_diy3 >>> .el-dialog__body {
  14243. padding: 20px 20px;
  14244. }
  14245. .dialog_diyStage >>> .el-dialog__body {
  14246. padding: 10px;
  14247. }
  14248. .source_diy >>> .el-dialog {
  14249. height: 100% !important;
  14250. margin: 0 auto !important;
  14251. }
  14252. .source_diy >>> .el-dialog__body {
  14253. height: calc(100% - 185px);
  14254. overflow: auto;
  14255. background: #e6eaf0;
  14256. }
  14257. .source_diy >>> .el-dialog__footer {
  14258. background: #e6eaf0 !important;
  14259. }
  14260. .left {
  14261. border-right: 1px solid rgb(60, 94, 143);
  14262. display: flex;
  14263. flex-direction: column;
  14264. align-items: center;
  14265. min-height: 600px;
  14266. width: 385px;
  14267. height: 80%;
  14268. }
  14269. .tips {
  14270. color: rgb(128, 128, 128);
  14271. font-size: 12px;
  14272. width: 270px;
  14273. margin: 40px;
  14274. }
  14275. .pb_content {
  14276. height: 100% !important;
  14277. /* margin: 0 20px 0 20px; */
  14278. }
  14279. .pb_content_body {
  14280. width: 100% !important;
  14281. height: 100%;
  14282. }
  14283. .info_solid {
  14284. width: 270px;
  14285. height: 30px;
  14286. border-left: 1px solid #bdbdbd;
  14287. margin: 10px 0px 10px 30px;
  14288. }
  14289. .info_steps {
  14290. width: 270px;
  14291. font-size: 0.875rem;
  14292. display: flex;
  14293. align-items: center;
  14294. }
  14295. .info_steps span:nth-child(1) {
  14296. width: 30px;
  14297. height: 30px;
  14298. background: rgba(0, 0, 0, 0.38);
  14299. display: block;
  14300. color: #fff;
  14301. border-radius: 40px;
  14302. text-align: center;
  14303. line-height: 30px;
  14304. }
  14305. .steps_active {
  14306. background: #3d67bc !important;
  14307. }
  14308. .info_steps span:nth-child(2) {
  14309. margin-left: 5px;
  14310. }
  14311. .right {
  14312. height: 100%;
  14313. width: 100%;
  14314. display: flex;
  14315. overflow: hidden;
  14316. flex-direction: column;
  14317. }
  14318. .basic_box {
  14319. margin: 0 auto;
  14320. position: relative;
  14321. padding: 0 20px 0 20px;
  14322. }
  14323. .basic_box_success {
  14324. width: 100%;
  14325. min-height: 455px;
  14326. padding: 50px 0;
  14327. position: relative;
  14328. text-align: center;
  14329. border-bottom: 1px solid #bfbfbf;
  14330. box-sizing: border-box;
  14331. display: flex;
  14332. align-items: center;
  14333. flex-direction: column;
  14334. justify-content: center;
  14335. }
  14336. .info_title {
  14337. font-size: 1.5em;
  14338. margin-right: 25px;
  14339. /* margin: 20px 30px 20px 30px; */
  14340. }
  14341. .bInfo_title {
  14342. text-align: left;
  14343. margin: 10px 0;
  14344. }
  14345. .small_title {
  14346. font-size: 14px;
  14347. line-height: 40px;
  14348. }
  14349. .chapter_beizhu {
  14350. font-size: 12px;
  14351. font-weight: bold;
  14352. float: right;
  14353. color: rgb(128, 128, 128);
  14354. margin-top: 5px;
  14355. }
  14356. .chapter_uploadBox1 {
  14357. text-align: left;
  14358. background-color: rgb(242, 242, 242);
  14359. width: 100%;
  14360. height: 67px;
  14361. padding: 0px 15px;
  14362. border-radius: 8px;
  14363. overflow: hidden;
  14364. font-size: 16px;
  14365. box-sizing: border-box;
  14366. position: relative;
  14367. }
  14368. .chapter_add {
  14369. width: 100%;
  14370. height: 32px;
  14371. margin-top: 15px;
  14372. cursor: pointer;
  14373. }
  14374. .chapter_add_l {
  14375. margin-left: 5px;
  14376. width: 30px;
  14377. height: 30px;
  14378. float: left;
  14379. border: 1px solid #aaa;
  14380. color: #aaa;
  14381. border-radius: 50%;
  14382. font-size: 25px;
  14383. text-align: center;
  14384. }
  14385. .chapter_add_r {
  14386. font-size: 18px;
  14387. height: 40px;
  14388. line-height: 30px;
  14389. text-indent: 10px;
  14390. color: #aaa;
  14391. }
  14392. .chapter_add_r span {
  14393. font-size: 12px;
  14394. color: rgb(204, 204, 204);
  14395. }
  14396. .chapter_add_input {
  14397. display: none;
  14398. }
  14399. .line {
  14400. width: 85%;
  14401. margin: 0 auto;
  14402. border-top: 1px solid #e5e5e5;
  14403. margin-top: 20px;
  14404. }
  14405. .info_btnBox {
  14406. width: calc(100%);
  14407. display: flex;
  14408. justify-content: center;
  14409. height: 80px;
  14410. align-items: center;
  14411. background: #fff;
  14412. margin: 0 auto;
  14413. border-top: 2px solid rgb(228, 232, 237);
  14414. box-sizing: border-box;
  14415. }
  14416. .info_btnBox2 {
  14417. width: calc(100%);
  14418. display: flex;
  14419. justify-content: center;
  14420. height: 20px;
  14421. align-items: center;
  14422. background: #fff;
  14423. margin: 0 auto;
  14424. border-top: 2px solid rgb(228, 232, 237);
  14425. box-sizing: border-box;
  14426. overflow: hidden;
  14427. cursor: pointer;
  14428. }
  14429. .info_btnBox3 {
  14430. width: calc(100%);
  14431. display: flex;
  14432. justify-content: flex-end;
  14433. padding: 0 20px;
  14434. height: 60px;
  14435. align-items: center;
  14436. background: unset;
  14437. margin: 0 auto;
  14438. /* border-top: 1px solid rgb(228, 232, 237); */
  14439. box-sizing: border-box;
  14440. overflow: hidden;
  14441. cursor: pointer;
  14442. background: #fff;
  14443. border-radius: 10px;
  14444. }
  14445. .info_btn + .info_btn {
  14446. margin-left: 15px;
  14447. }
  14448. .info_btn,
  14449. .teacherWord {
  14450. color: #fff;
  14451. background-color: #0f7eff;
  14452. padding: 8px 24px;
  14453. font-size: 0.9375rem;
  14454. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  14455. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  14456. min-width: 64px;
  14457. font-weight: 500;
  14458. border-radius: 4px;
  14459. box-sizing: border-box;
  14460. border: none;
  14461. cursor: pointer;
  14462. }
  14463. .teacherWord {
  14464. width: 105px !important;
  14465. text-align: center !important;
  14466. line-height: 36px !important;
  14467. padding: 0 !important;
  14468. font-size: 14px !important;
  14469. margin: 10px 0 !important;
  14470. }
  14471. .template_box {
  14472. display: flex;
  14473. flex-wrap: wrap;
  14474. }
  14475. .wordTeacher {
  14476. display: flex;
  14477. flex-direction: column;
  14478. width: 100px;
  14479. height: 100px;
  14480. text-align: center;
  14481. font-size: 13px;
  14482. margin: 0 20px 20px 0;
  14483. background: #f0f4fa;
  14484. position: relative;
  14485. border-radius: 5px;
  14486. align-items: center;
  14487. justify-content: center;
  14488. border: 1px solid #cad1dc;
  14489. color: #0e1e33;
  14490. /* padding: 25px 0px; */
  14491. cursor: pointer;
  14492. }
  14493. .wordTeacher::after {
  14494. content: "";
  14495. display: block;
  14496. position: absolute;
  14497. width: 15px;
  14498. height: 15px;
  14499. right: 10px;
  14500. top: 10px;
  14501. background-image: url(../../assets/icon/new/choose_a.png);
  14502. background-size: 100% 100%;
  14503. }
  14504. .wordTeacherA::after {
  14505. background-image: url(../../assets/icon/new/choose_b.png);
  14506. }
  14507. .wordTeacher:nth-child(5n) {
  14508. margin-right: 0px;
  14509. }
  14510. .wordPic {
  14511. margin: 0 auto;
  14512. width: 30px;
  14513. height: 30px;
  14514. cursor: pointer;
  14515. }
  14516. .deleteWord {
  14517. width: 22px;
  14518. height: 22px;
  14519. position: absolute;
  14520. right: 5px;
  14521. top: -15px;
  14522. cursor: pointer;
  14523. display: none;
  14524. z-index: 999;
  14525. }
  14526. .wordPic > img,
  14527. .deleteWord > img,
  14528. .addToolImg > img {
  14529. width: 100%;
  14530. height: 100%;
  14531. }
  14532. .info_btn:hover {
  14533. background-color: #4f7cd5 !important;
  14534. }
  14535. .cru_selectBox {
  14536. display: flex;
  14537. margin: 15px 0;
  14538. flex-wrap: nowrap;
  14539. white-space: nowrap;
  14540. overflow: auto;
  14541. position: relative;
  14542. height: 40px;
  14543. max-width: calc(100% - 175px);
  14544. }
  14545. .cru_selectBox::-webkit-scrollbar {
  14546. /*滚动条整体样式*/
  14547. width: 6px;
  14548. /*高宽分别对应横竖滚动条的尺寸*/
  14549. height: 6px;
  14550. }
  14551. /*定义滚动条轨道 内阴影+圆角*/
  14552. .cru_selectBox::-webkit-scrollbar-track {
  14553. border-radius: 10px;
  14554. background-color: #eee;
  14555. }
  14556. /*定义滑块 内阴影+圆角*/
  14557. .cru_selectBox::-webkit-scrollbar-thumb {
  14558. border-radius: 10px;
  14559. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14560. background-color: rgba(0, 0, 0, 0.1);
  14561. }
  14562. .cru_line {
  14563. position: absolute;
  14564. bottom: 0px;
  14565. transition: all 0.5s;
  14566. left: 0px;
  14567. width: 50px;
  14568. height: 4px;
  14569. left: 10px;
  14570. border-radius: 2px;
  14571. background: #3681fc;
  14572. }
  14573. .cru_select {
  14574. font-size: 18px;
  14575. margin-right: 20px;
  14576. margin-left: 5px;
  14577. cursor: pointer;
  14578. color: #0e1e33;
  14579. }
  14580. .cru_select:hover {
  14581. color: #3681fc !important;
  14582. }
  14583. .cru_selected {
  14584. color: #3681fc !important;
  14585. font-weight: bold;
  14586. }
  14587. .chapter_box {
  14588. margin-top: 10px;
  14589. width: 100%;
  14590. padding: 10px 20px;
  14591. background: #fff;
  14592. border-radius: 8px;
  14593. box-sizing: border-box;
  14594. }
  14595. .chapter_contentbox {
  14596. display: flex;
  14597. align-items: center;
  14598. /* margin-top: 15px; */
  14599. }
  14600. .chapter_contentbox .cc_title {
  14601. margin: 0px;
  14602. color: black;
  14603. display: block;
  14604. white-space: nowrap;
  14605. overflow: hidden;
  14606. text-overflow: ellipsis;
  14607. margin-right: 20px;
  14608. font-size: 18px;
  14609. height: 20px;
  14610. line-height: 22px;
  14611. min-width: fit-content;
  14612. display: flex;
  14613. }
  14614. .chapter_contentbox .cc_title::before {
  14615. content: "";
  14616. height: 100%;
  14617. width: 3px;
  14618. background: #3681fc;
  14619. border-radius: 3px;
  14620. opacity: 1;
  14621. display: block;
  14622. margin-right: 10px;
  14623. }
  14624. .chapter_contentbox .cc_input {
  14625. width: 100%;
  14626. display: flex;
  14627. }
  14628. .show_taskD {
  14629. min-width: fit-content;
  14630. margin-left: 10px;
  14631. display: flex;
  14632. align-items: center;
  14633. font-size: 14px;
  14634. cursor: pointer;
  14635. color: #717c8d;
  14636. }
  14637. .show_taskD > img {
  14638. width: 15px;
  14639. margin-right: 5px;
  14640. transition: 0.2s all;
  14641. transform: rotate(-90deg);
  14642. }
  14643. .show_taskD.show > img {
  14644. transform: rotate(0deg);
  14645. }
  14646. .show_toolD {
  14647. min-width: fit-content;
  14648. margin-left: 10px;
  14649. display: flex;
  14650. align-items: center;
  14651. font-size: 14px;
  14652. cursor: pointer;
  14653. color: #717c8d;
  14654. /* position: absolute;
  14655. right: 45px;
  14656. top: 5px; */
  14657. }
  14658. .show_toolD > img {
  14659. width: 15px;
  14660. margin-right: 5px;
  14661. transition: 0.2s all;
  14662. transform: rotate(-90deg);
  14663. }
  14664. .show_toolD.show > img {
  14665. transform: rotate(0deg);
  14666. }
  14667. .remove {
  14668. background-image: url("../../assets/icon/new/delete_u.png");
  14669. cursor: pointer;
  14670. opacity: 0.5;
  14671. width: 30px;
  14672. min-width: 30px;
  14673. height: 30px;
  14674. background-size: 100% 100%;
  14675. background-repeat: no-repeat;
  14676. margin-left: 10px;
  14677. }
  14678. .remove1 {
  14679. background-image: url("../../assets/remove1.png");
  14680. background-repeat: no-repeat;
  14681. background-position: 5px 10px;
  14682. width: 40px;
  14683. height: 50px;
  14684. cursor: pointer;
  14685. margin-left: 10px;
  14686. }
  14687. .binfo_input {
  14688. width: 100%;
  14689. margin: 0;
  14690. padding: 12px 14px;
  14691. display: block;
  14692. min-width: 0;
  14693. outline: none;
  14694. box-sizing: border-box;
  14695. background: none;
  14696. border: none;
  14697. border-radius: 4px;
  14698. background: #fff;
  14699. font-size: 16px;
  14700. resize: none;
  14701. font-family: "Microsoft YaHei";
  14702. min-height: 48px;
  14703. /* border: 1px solid #3682fc00; */
  14704. border: 1.5px solid #cad1dc;
  14705. }
  14706. .binfo_textarea {
  14707. border: 1.5px solid #cad1dc;
  14708. font-size: 16px;
  14709. resize: none;
  14710. /* background: #f6f6f6; */
  14711. font-family: "Microsoft YaHei";
  14712. }
  14713. .binfo_input:focus-visible {
  14714. border: 1.5px solid #3681fc !important;
  14715. }
  14716. .time {
  14717. display: flex;
  14718. margin: 35px 0 80px 0;
  14719. }
  14720. .chapter_btnbox {
  14721. width: 160px;
  14722. border-radius: 5px;
  14723. border: 2px dashed gray;
  14724. display: flex;
  14725. padding: 8px 50px;
  14726. align-items: center;
  14727. justify-content: center;
  14728. margin: 30px auto 0;
  14729. cursor: pointer;
  14730. }
  14731. .icon_add {
  14732. position: relative;
  14733. width: 24px;
  14734. padding-top: 20px;
  14735. border-radius: 100%;
  14736. border-width: 2px;
  14737. border-style: solid;
  14738. border-color: gray;
  14739. }
  14740. .icon_add i:nth-child(1) {
  14741. position: absolute;
  14742. left: 50%;
  14743. top: 50%;
  14744. height: 60%;
  14745. transform: translate(-50%, -50%);
  14746. border-width: 1px;
  14747. border-style: solid;
  14748. border-color: inherit;
  14749. }
  14750. .icon_add i:nth-child(2) {
  14751. position: absolute;
  14752. top: 50%;
  14753. left: 50%;
  14754. width: 60%;
  14755. transform: translate(-50%, -50%);
  14756. border-width: 1px;
  14757. border-style: solid;
  14758. border-color: inherit;
  14759. }
  14760. .chapter_btn_w {
  14761. font-size: 0.9375rem;
  14762. font-weight: bold;
  14763. color: gray;
  14764. margin-left: 20px;
  14765. }
  14766. .disUoloadSty >>> .el-icon-plus {
  14767. display: none !important;
  14768. /* 上传按钮隐藏 */
  14769. }
  14770. .imgLeft {
  14771. margin: 15px 0;
  14772. }
  14773. .add_info_box {
  14774. margin: 0 0 0 auto;
  14775. display: flex;
  14776. flex-wrap: wrap;
  14777. }
  14778. .add_info_box button {
  14779. margin: 0 5px 10px 0;
  14780. }
  14781. .add_info_box2 {
  14782. display: flex;
  14783. align-items: center;
  14784. flex-wrap: wrap;
  14785. }
  14786. .add_info_box2::after {
  14787. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14788. color: red;
  14789. font-size: 14px;
  14790. margin-bottom: 10px;
  14791. }
  14792. .add_chapters_box {
  14793. text-align: left;
  14794. background-color: #fff;
  14795. width: 100%;
  14796. border-radius: 4px;
  14797. font-size: 16px;
  14798. box-sizing: border-box;
  14799. position: relative;
  14800. padding: 0 15px;
  14801. height: auto;
  14802. overflow-y: auto;
  14803. overflow-x: hidden;
  14804. border: 1px solid #cad1dc;
  14805. }
  14806. .add_chapters_box.add_c_none {
  14807. display: flex;
  14808. justify-content: center;
  14809. align-items: center;
  14810. padding: 15px;
  14811. }
  14812. .add_c_none > img {
  14813. width: 25px;
  14814. }
  14815. .add_chapters_box.add_c_none > span {
  14816. font-size: 14px;
  14817. font-weight: 400;
  14818. margin: 0 0 5px 5px;
  14819. }
  14820. .homework_box {
  14821. display: flex;
  14822. align-items: flex-start;
  14823. flex-wrap: wrap;
  14824. margin: 15px 0 0 0;
  14825. flex-direction: column;
  14826. align-content: flex-start;
  14827. }
  14828. .course_homework {
  14829. display: flex;
  14830. justify-content: center;
  14831. flex-direction: row;
  14832. align-items: center;
  14833. margin: 0 10px 0 0;
  14834. }
  14835. .course_homework >>> .el-input__inner {
  14836. width: 140px;
  14837. margin-left: 15px;
  14838. }
  14839. .chapter_upload_move {
  14840. position: relative;
  14841. background-color: #fff;
  14842. position: absolute;
  14843. width: 100%;
  14844. top: 0px;
  14845. left: 0px;
  14846. border: 1px solid #eee;
  14847. border-radius: 5px;
  14848. transition: width 2s;
  14849. -moz-transition: width 2s;
  14850. -webkit-transition: width 2s;
  14851. -o-transition: width 2s;
  14852. }
  14853. .chapter_upload_l_i {
  14854. background-image: url("../../assets/icon.png");
  14855. background-position: 3px -165px;
  14856. width: 30px;
  14857. height: 30px;
  14858. margin: 10px auto 0 auto;
  14859. }
  14860. .course_input_box {
  14861. display: flex;
  14862. margin-right: 20px;
  14863. width: 100%;
  14864. align-items: center;
  14865. position: relative;
  14866. }
  14867. .course_input_box > .binfo_input {
  14868. width: calc(100% - 0 - 200px - 20px);
  14869. margin: 0 10px;
  14870. }
  14871. .bb_courseIcon {
  14872. width: 57px;
  14873. height: 45px;
  14874. background: #f0f4fa;
  14875. border-radius: 5px 0px 0px 5px;
  14876. display: flex;
  14877. align-items: center;
  14878. justify-content: center;
  14879. border-right: 1.5px solid rgb(202, 209, 220);
  14880. box-sizing: border-box;
  14881. position: absolute;
  14882. left: 1.5px;
  14883. }
  14884. .bb_courseIcon > img {
  14885. width: 25px;
  14886. height: auto;
  14887. }
  14888. .big_box {
  14889. /* margin-top: 20px; */
  14890. display: flex;
  14891. justify-content: space-between;
  14892. /* border-bottom: 1px solid #E0E2ED; */
  14893. }
  14894. .left_first {
  14895. display: flex;
  14896. flex-direction: column;
  14897. flex-wrap: nowrap;
  14898. width: calc(100% - 310px);
  14899. padding: 20px;
  14900. box-sizing: border-box;
  14901. background: #fff;
  14902. border-radius: 5px;
  14903. }
  14904. .right_first {
  14905. width: 300px;
  14906. display: flex;
  14907. align-items: center;
  14908. justify-content: center;
  14909. /* border-left: 1px solid #E0E2ED; */
  14910. box-sizing: border-box;
  14911. padding: 20px;
  14912. flex-direction: column;
  14913. background: #fff;
  14914. border-radius: 5px;
  14915. }
  14916. .ai_box {
  14917. width: 204px;
  14918. display: flex;
  14919. justify-content: flex-end;
  14920. margin-bottom: 15px;
  14921. }
  14922. .ai_content {
  14923. display: flex;
  14924. align-items: center;
  14925. font-size: 14px;
  14926. padding: 7px 20px;
  14927. box-sizing: border-box;
  14928. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14929. border-radius: 12px;
  14930. font-weight: 700;
  14931. cursor: pointer;
  14932. }
  14933. .ai_content > img {
  14934. width: 40px;
  14935. margin-right: 5px;
  14936. }
  14937. .c_info_title {
  14938. padding: 15px 0 15px 0;
  14939. font-size: 16px;
  14940. font-weight: bold;
  14941. margin: 0 0 0 20px;
  14942. box-sizing: border-box;
  14943. display: flex;
  14944. align-items: center;
  14945. line-height: 20px;
  14946. }
  14947. .c_info_title::before {
  14948. content: "";
  14949. display: block;
  14950. width: 3px;
  14951. height: 20px;
  14952. background: #0061ff;
  14953. border-radius: 3px;
  14954. margin: 0 5px 0 0;
  14955. }
  14956. .right_title {
  14957. height: 30px;
  14958. padding: 15px 0 15px 20px;
  14959. border-bottom: 1px solid #f2f2f2;
  14960. font-size: 1.5em;
  14961. font-weight: bold;
  14962. color: #0f7eff;
  14963. margin: 0 auto;
  14964. }
  14965. .people {
  14966. border: 1px solid rgb(229 229 229);
  14967. /* height: 495px; */
  14968. height: 350px;
  14969. border-radius: 5px;
  14970. width: 100%;
  14971. overflow: auto;
  14972. }
  14973. .people_top {
  14974. display: flex;
  14975. width: 100%;
  14976. /* justify-content: space-between; */
  14977. /* align-items: center; */
  14978. flex-direction: column;
  14979. padding: 10px 10px 0;
  14980. box-sizing: border-box;
  14981. }
  14982. .people_nav,
  14983. .people_top_right {
  14984. /* padding: 20px 0 0 20px; */
  14985. }
  14986. .people_top_right {
  14987. height: 40px;
  14988. margin-bottom: 10px;
  14989. }
  14990. .people_search {
  14991. display: flex;
  14992. position: relative;
  14993. }
  14994. .people_search >>> .el-input__inner {
  14995. /* height: 25px; */
  14996. width: 100%;
  14997. }
  14998. .search_img {
  14999. width: 20px;
  15000. height: 20px;
  15001. position: absolute;
  15002. right: 10px;
  15003. top: 50%;
  15004. transform: translateY(-50%);
  15005. }
  15006. .search_img > img {
  15007. width: 100%;
  15008. height: 100%;
  15009. }
  15010. .people_name {
  15011. display: flex;
  15012. justify-content: flex-start;
  15013. padding: 20px 10px;
  15014. flex-direction: column;
  15015. flex-wrap: wrap;
  15016. }
  15017. .p_box {
  15018. position: relative;
  15019. }
  15020. .people_name >>> .el-checkbox {
  15021. width: 100%;
  15022. display: flex;
  15023. align-items: center;
  15024. margin-bottom: 10px;
  15025. }
  15026. .people_name >>> .el-checkbox__label {
  15027. text-overflow: ellipsis;
  15028. overflow: hidden;
  15029. width: calc(100%);
  15030. }
  15031. .people_name2 >>> .el-checkbox__label {
  15032. width: calc(100% - 130px);
  15033. }
  15034. .inviteCode {
  15035. position: absolute;
  15036. right: 30px;
  15037. color: #237ade;
  15038. top: 0;
  15039. cursor: pointer;
  15040. font-size: 13px;
  15041. }
  15042. .noneInvite {
  15043. color: #a8a8a8;
  15044. }
  15045. .inviteImg {
  15046. position: absolute;
  15047. right: 5px;
  15048. top: 0;
  15049. width: 20px;
  15050. }
  15051. .right_img {
  15052. width: 150px;
  15053. height: 150px;
  15054. margin: 0 auto;
  15055. }
  15056. .right_img > img {
  15057. width: 100%;
  15058. height: 100%;
  15059. }
  15060. .number {
  15061. margin-top: 20px;
  15062. color: #4aa6ff;
  15063. text-decoration: underline;
  15064. }
  15065. .success_button {
  15066. display: flex;
  15067. text-align: center;
  15068. margin: 5% 0 auto;
  15069. flex-direction: row;
  15070. justify-content: center;
  15071. }
  15072. .look_course {
  15073. margin-right: 40px;
  15074. background: #3d67bc;
  15075. width: 200px;
  15076. height: 35px;
  15077. line-height: 35px;
  15078. color: #fff;
  15079. text-align: center;
  15080. font-size: 14px;
  15081. border-radius: 5px;
  15082. cursor: pointer;
  15083. }
  15084. .attend_others {
  15085. width: 250px;
  15086. background: #4fb13c;
  15087. height: 35px;
  15088. line-height: 35px;
  15089. color: #fff;
  15090. text-align: center;
  15091. font-size: 14px;
  15092. border-radius: 5px;
  15093. cursor: pointer;
  15094. }
  15095. .dialog_diy2 >>> .el-dialog__body {
  15096. text-align: center;
  15097. }
  15098. .write_togother {
  15099. position: absolute;
  15100. right: 45px;
  15101. display: flex;
  15102. top: 5%;
  15103. }
  15104. .write_people {
  15105. font-size: 14px;
  15106. line-height: 50px;
  15107. padding-right: 10px;
  15108. }
  15109. .end_write {
  15110. background: #3d67bc;
  15111. color: #fff;
  15112. width: 100px;
  15113. height: 35px;
  15114. line-height: 35px;
  15115. text-align: center;
  15116. font-size: 14px;
  15117. border-radius: 5px;
  15118. cursor: pointer;
  15119. }
  15120. .chapter_upload + .chapter_upload {
  15121. /* margin-top: 15px; */
  15122. border-top: 1px solid #e7ebf1;
  15123. }
  15124. .chapter_upload {
  15125. height: 45px;
  15126. position: relative;
  15127. display: flex;
  15128. align-items: center;
  15129. width: 100%;
  15130. min-height: 45px;
  15131. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15132. /* border-radius: 4px; */
  15133. /* overflow: hidden; */
  15134. box-sizing: border-box;
  15135. }
  15136. .chapter_upload_drag {
  15137. position: absolute;
  15138. cursor: pointer;
  15139. width: 16px;
  15140. height: 16px;
  15141. left: -9px;
  15142. background-image: url("../../assets/icon/new/icon_course_drag.png");
  15143. background-size: 100% 100%;
  15144. z-index: 10;
  15145. display: none;
  15146. }
  15147. .isNavStage > .chapter_upload_drag {
  15148. background-image: url("../../assets/icon/new/icon_course_drag_active2.png");
  15149. }
  15150. .chapter_upload_t {
  15151. background-color: #fff;
  15152. position: absolute;
  15153. height: 100%;
  15154. top: 0px;
  15155. left: 0px;
  15156. box-sizing: border-box;
  15157. }
  15158. .chapter_upload_o {
  15159. width: 100%;
  15160. height: 100%;
  15161. position: relative;
  15162. z-index: 1;
  15163. }
  15164. .chapter_upload_ic {
  15165. margin: 0 15px 0px auto;
  15166. display: flex;
  15167. align-items: center;
  15168. }
  15169. .chapter_upload_ic_l {
  15170. width: 50px;
  15171. height: 50px;
  15172. float: left;
  15173. }
  15174. .chapter_upload_ic_l div {
  15175. width: 30px;
  15176. height: 35px;
  15177. background: url("../../assets/icon/icon.png");
  15178. }
  15179. .chapter_upload_ic_edit {
  15180. height: 100%;
  15181. display: flex;
  15182. align-items: center;
  15183. cursor: pointer;
  15184. margin: 0 10px 0 0;
  15185. }
  15186. .chapter_upload_ic_edit div {
  15187. width: 18px;
  15188. height: 18px;
  15189. background-image: url("../../assets/icon/new/edit_u.png");
  15190. background-size: 100% 100%;
  15191. }
  15192. .chapter_upload_ic_r {
  15193. height: 100%;
  15194. display: flex;
  15195. align-items: center;
  15196. cursor: pointer;
  15197. }
  15198. .chapter_upload_ic_r div {
  15199. width: 18px;
  15200. height: 18px;
  15201. background-image: url("../../assets/icon/new/delete_u.png");
  15202. background-size: 100% 100%;
  15203. }
  15204. .chapter_upload_n {
  15205. display: flex;
  15206. text-indent: 10px;
  15207. text-decoration: none;
  15208. text-overflow: ellipsis;
  15209. white-space: nowrap;
  15210. overflow: hidden;
  15211. width: 55%;
  15212. margin-left: 10px;
  15213. cursor: pointer;
  15214. margin-top: 2px;
  15215. align-items: center;
  15216. }
  15217. .chapter_upload_l_i2,
  15218. .chapter_upload_l_i3,
  15219. .chapter_upload_l_i8,
  15220. .chapter_upload_l_i6,
  15221. .chapter_upload_l_i12,
  15222. .chapter_upload_l_i14,
  15223. .chapter_upload_l_i13 {
  15224. width: 15px;
  15225. height: 15px;
  15226. background-size: 100% 100%;
  15227. }
  15228. .chapter_upload_l_i2 {
  15229. background-image: url("../../assets/icon/new/u_word.png");
  15230. }
  15231. .chapter_upload_l_i3 {
  15232. background-image: url("../../assets/icon/new/u_video.png");
  15233. }
  15234. .chapter_upload_l_i8 {
  15235. background-image: url("../../assets/icon/new/u_url.png");
  15236. }
  15237. .chapter_upload_l_i14 {
  15238. background-image: url("../../assets/icon/new/u_source.png");
  15239. }
  15240. .chapter_upload_l_i6 {
  15241. background-image: url("../../assets/icon/new/u_picture.png");
  15242. }
  15243. .chapter_upload_l_i12 {
  15244. background-image: url("../../assets/icon/new/u_word.png");
  15245. }
  15246. .chapter_upload_l_i13 {
  15247. background-image: url("../../assets/icon/new/u_img.png");
  15248. }
  15249. .chapter_upload_noSee {
  15250. background-image: url("../../assets/icon/new/u_noUpload.png");
  15251. width: 18px;
  15252. height: 18px;
  15253. background-size: 100% 100%;
  15254. display: block;
  15255. margin-right: 10px;
  15256. }
  15257. .chapter_upload_ud {
  15258. display: flex;
  15259. flex-direction: row;
  15260. justify-content: center;
  15261. margin: 0 10px 0 0;
  15262. }
  15263. .chapter_upload_ud > .chapter_upload_up {
  15264. margin-bottom: 0;
  15265. margin-right: 10px;
  15266. }
  15267. .chapter_upload_down,
  15268. .chapter_upload_up {
  15269. width: 20px;
  15270. height: 20px;
  15271. background: #e4eaf2;
  15272. cursor: pointer;
  15273. margin: 0 auto;
  15274. border-radius: 5px;
  15275. display: flex;
  15276. justify-content: center;
  15277. align-items: center;
  15278. }
  15279. .chapter_upload_up::after,
  15280. .chapter_upload_down::after {
  15281. content: "";
  15282. background-image: url("../../assets/icon/new/downBtn.png");
  15283. width: 13px;
  15284. height: 13px;
  15285. background-size: 100% 100%;
  15286. display: block;
  15287. }
  15288. .chapter_upload_up::after {
  15289. background-image: url("../../assets/icon/new/upBtn.png") !important;
  15290. }
  15291. .chapter_upload_up {
  15292. margin-bottom: 5px;
  15293. }
  15294. .chapter_upload_ud2 {
  15295. display: flex;
  15296. flex-direction: row;
  15297. justify-content: center;
  15298. margin: 0 10px 0 0;
  15299. }
  15300. .chapter_upload_ud2 > .chapter_upload_up2 {
  15301. margin-bottom: 0;
  15302. margin-right: 10px;
  15303. }
  15304. .chapter_upload_down2,
  15305. .chapter_upload_up2 {
  15306. cursor: pointer;
  15307. margin: 0 auto;
  15308. border-radius: 5px;
  15309. display: flex;
  15310. justify-content: center;
  15311. align-items: center;
  15312. color: #717c8d;
  15313. font-size: 14px;
  15314. }
  15315. .chapter_upload_up2 {
  15316. margin-right: 10px;
  15317. }
  15318. .chapter_upload_up2::before,
  15319. .chapter_upload_down2::before {
  15320. content: "";
  15321. background-image: url("../../assets/icon/new/c_down.png");
  15322. width: 14px;
  15323. height: 14px;
  15324. background-size: 100% 100%;
  15325. display: block;
  15326. margin-right: 5px;
  15327. }
  15328. .chapter_upload_up2::before {
  15329. background-image: url("../../assets/icon/new/c_up.png") !important;
  15330. }
  15331. .addWordStyle {
  15332. display: flex;
  15333. flex-direction: row;
  15334. justify-content: flex-start;
  15335. overflow-x: auto;
  15336. white-space: nowrap;
  15337. flex-wrap: wrap;
  15338. }
  15339. /* table 样式 */
  15340. .cont >>> table {
  15341. border-top: 1px solid #ccc;
  15342. border-left: 1px solid #ccc;
  15343. }
  15344. .cont >>> table td,
  15345. .cont >>> table th {
  15346. border-bottom: 1px solid #ccc;
  15347. border-right: 1px solid #ccc;
  15348. /* padding: 20px 5px; */
  15349. padding: 5px 10px;
  15350. max-width: 0px;
  15351. height: 30px;
  15352. vertical-align: baseline;
  15353. }
  15354. .cont >>> table th {
  15355. border-bottom: 2px solid #ccc;
  15356. text-align: center;
  15357. }
  15358. /* blockquote 样式 */
  15359. .cont >>> blockquote {
  15360. display: block;
  15361. border-left: 8px solid #d0e5f2;
  15362. padding: 5px 10px;
  15363. margin: 10px 0;
  15364. line-height: 1.4;
  15365. font-size: 100%;
  15366. background-color: #f1f1f1;
  15367. }
  15368. /* code 样式 */
  15369. .cont >>> code {
  15370. display: inline-block;
  15371. /* *display: inline; */
  15372. zoom: 1;
  15373. background-color: #f1f1f1;
  15374. border-radius: 3px;
  15375. padding: 3px 5px;
  15376. margin: 0 3px;
  15377. }
  15378. .cont >>> pre code {
  15379. display: block;
  15380. }
  15381. /* ul ol 样式 */
  15382. .cont >>> ul,
  15383. ol {
  15384. margin: 10px 0 10px 20px;
  15385. }
  15386. .wordbox {
  15387. display: flex;
  15388. flex-wrap: wrap;
  15389. cursor: pointer;
  15390. width: 100%;
  15391. }
  15392. .checkword {
  15393. width: 22px;
  15394. height: 22px;
  15395. margin: 10px auto 0;
  15396. cursor: pointer;
  15397. }
  15398. .checkword img {
  15399. width: 100%;
  15400. }
  15401. .stepBg {
  15402. display: flex;
  15403. justify-content: space-between;
  15404. align-items: center;
  15405. background: #fff;
  15406. width: calc(100%);
  15407. margin: 0 auto;
  15408. }
  15409. .stepBorder {
  15410. height: 3px !important;
  15411. background: #cad1dc;
  15412. width: 100px !important;
  15413. margin: 0 15px !important;
  15414. position: relative;
  15415. }
  15416. .border-active {
  15417. background: #3681fc !important;
  15418. }
  15419. .border-active::before,
  15420. .border-active::after {
  15421. border-color: #3681fc !important;
  15422. }
  15423. .stepBorder::before,
  15424. .stepBorder::after {
  15425. content: "";
  15426. width: 9px;
  15427. height: 9px;
  15428. background: #ffffff;
  15429. opacity: 1;
  15430. border: 2px solid #acb4bf;
  15431. display: block;
  15432. box-sizing: border-box;
  15433. border-radius: 50%;
  15434. position: absolute;
  15435. top: 50%;
  15436. transform: translateY(-50%);
  15437. }
  15438. .stepBorder::after {
  15439. right: -9px;
  15440. }
  15441. .stepTop {
  15442. width: 100%;
  15443. /* border-radius: 10px; */
  15444. display: flex;
  15445. justify-content: center;
  15446. align-items: center;
  15447. flex-wrap: nowrap;
  15448. background: #fff;
  15449. /* top: 18%; */
  15450. height: 80px;
  15451. border-bottom: 2px solid rgb(228, 232, 237);
  15452. box-sizing: border-box;
  15453. }
  15454. .stepTop2 {
  15455. width: 100%;
  15456. /* border-radius: 10px; */
  15457. display: flex;
  15458. justify-content: center;
  15459. align-items: center;
  15460. flex-wrap: nowrap;
  15461. background: #fff;
  15462. /* top: 18%; */
  15463. height: 20px;
  15464. border-bottom: 2px solid rgb(228, 232, 237);
  15465. box-sizing: border-box;
  15466. overflow: hidden;
  15467. cursor: pointer;
  15468. }
  15469. .stepTop > div img {
  15470. width: 100%;
  15471. }
  15472. .stepTop > div {
  15473. height: 50px;
  15474. width: 180px;
  15475. cursor: pointer;
  15476. margin: 10px 0;
  15477. border-radius: 10px;
  15478. }
  15479. .first,
  15480. .second,
  15481. .third,
  15482. .four {
  15483. background: #3681fc;
  15484. height: 90px;
  15485. color: #fff;
  15486. display: flex;
  15487. flex-direction: row;
  15488. align-items: center;
  15489. justify-content: center;
  15490. }
  15491. .first > div:nth-child(1),
  15492. .second > div:nth-child(1),
  15493. .third > div:nth-child(1),
  15494. .four > div:nth-child(1) {
  15495. margin: 5px 10px 0 0;
  15496. width: 2rem;
  15497. }
  15498. .firstNo,
  15499. .secondNo,
  15500. .thirdNo,
  15501. .fourNo {
  15502. background: #e7e7e7;
  15503. color: #adadad;
  15504. display: flex;
  15505. flex-direction: row;
  15506. align-items: center;
  15507. justify-content: center;
  15508. }
  15509. .firstNo > div:nth-child(1),
  15510. .secondNo > div:nth-child(1),
  15511. .thirdNo > div:nth-child(1),
  15512. .fourNo > div:nth-child(1) {
  15513. margin: 5px 10px 0 0;
  15514. width: 2rem;
  15515. }
  15516. .uploadWidth >>> .el-upload {
  15517. width: 60px;
  15518. height: 60px;
  15519. position: relative;
  15520. }
  15521. .addPeople {
  15522. background: #fa6060;
  15523. width: 150px;
  15524. height: 40px;
  15525. color: #fff;
  15526. border-radius: 5px;
  15527. text-align: center;
  15528. line-height: 40px;
  15529. font-size: 14px;
  15530. cursor: pointer;
  15531. }
  15532. .kcImg {
  15533. width: 60px;
  15534. margin-left: 10px;
  15535. }
  15536. .zyImg {
  15537. width: 55px;
  15538. margin: 0 10px;
  15539. }
  15540. .deleteZy {
  15541. width: 20px;
  15542. position: absolute;
  15543. top: 5px;
  15544. right: 5px;
  15545. cursor: pointer;
  15546. }
  15547. .kcImg > img,
  15548. .zyImg > img,
  15549. .deleteZy > img {
  15550. width: 100%;
  15551. height: 100%;
  15552. }
  15553. .zyBox {
  15554. display: flex;
  15555. flex-direction: row;
  15556. align-items: center;
  15557. background: #67d37d;
  15558. color: #fff;
  15559. width: 210px;
  15560. margin: 20px 20px 0 0;
  15561. border-radius: 10px;
  15562. height: 70px;
  15563. position: relative;
  15564. }
  15565. .upCss {
  15566. display: flex;
  15567. flex-direction: row;
  15568. justify-content: flex-start;
  15569. }
  15570. .upCss >>> .el-icon-plus {
  15571. position: none !important;
  15572. width: 200px;
  15573. height: 100px;
  15574. display: flex;
  15575. flex-wrap: nowrap;
  15576. flex-direction: column;
  15577. align-items: center;
  15578. justify-content: center;
  15579. border: 1px dashed #ccc;
  15580. min-width: 78px;
  15581. min-height: 100px;
  15582. z-index: 999;
  15583. }
  15584. .upCss >>> .el-upload-list__item-name {
  15585. width: 100px;
  15586. white-space: nowrap;
  15587. overflow: hidden;
  15588. text-overflow: ellipsis;
  15589. }
  15590. .upCss >>> .el-upload-list__item .el-icon-close {
  15591. font-size: 20px;
  15592. z-index: 9999;
  15593. }
  15594. .addStageImg {
  15595. min-width: 20px;
  15596. min-height: 20px;
  15597. width: 20px;
  15598. height: 20px;
  15599. cursor: pointer;
  15600. }
  15601. .addHW {
  15602. width: 28px;
  15603. height: 28px;
  15604. cursor: pointer;
  15605. }
  15606. .addStageImg > img,
  15607. .addHW > img {
  15608. width: 100%;
  15609. height: 100%;
  15610. }
  15611. .addNewPP >>> .el-dialog__body {
  15612. padding: 5px 20px;
  15613. }
  15614. .addNewPP >>> .el-dialog {
  15615. margin-top: 5vh !important;
  15616. }
  15617. .addNewPP2 >>> .el-dialog__body {
  15618. padding: 5px 0;
  15619. }
  15620. .addNewPP2 >>> .el-dialog {
  15621. margin-top: 5vh !important;
  15622. }
  15623. .isHeight {
  15624. height: 680px;
  15625. }
  15626. .toolChoose {
  15627. display: flex;
  15628. /* width: 100%; */
  15629. flex-direction: row;
  15630. flex-wrap: wrap;
  15631. }
  15632. .tool,
  15633. .isToolChoose {
  15634. display: flex;
  15635. flex-direction: column;
  15636. flex-wrap: nowrap;
  15637. width: fit-content;
  15638. margin: 10px 0 10px 0;
  15639. align-items: center;
  15640. border: 2px solid #dbdbdb00;
  15641. padding: 10px 20px;
  15642. border-radius: 5px;
  15643. cursor: pointer;
  15644. /* box-shadow: 0 0 2px 0px #dedede; */
  15645. position: relative;
  15646. box-sizing: border-box;
  15647. }
  15648. .tool:hover {
  15649. border: 2px solid #a5c7ff;
  15650. }
  15651. .tool:hover > .noCTool {
  15652. display: block;
  15653. opacity: 0.5;
  15654. }
  15655. .isToolChoose {
  15656. border: 2px solid #438aff !important;
  15657. box-shadow: 0 0 2px 0px #438aff;
  15658. opacity: 1 !important;
  15659. }
  15660. .isCTool,
  15661. .noCTool {
  15662. width: 30px;
  15663. height: 30px;
  15664. position: absolute;
  15665. top: -4px;
  15666. right: -4px;
  15667. }
  15668. .noCTool {
  15669. display: none;
  15670. }
  15671. .isCTool > img,
  15672. .noCTool > img {
  15673. width: 100%;
  15674. height: 100%;
  15675. }
  15676. .tool + .tool {
  15677. margin-right: 10px;
  15678. }
  15679. .whiteBIcon {
  15680. width: 80px;
  15681. cursor: pointer;
  15682. display: flex;
  15683. flex-direction: column;
  15684. flex-wrap: nowrap;
  15685. align-items: center;
  15686. font-size: 14px;
  15687. }
  15688. .whiteBIcon > img,
  15689. .toolIcon > img,
  15690. .arrow > img {
  15691. width: 100%;
  15692. height: 100%;
  15693. }
  15694. .check img {
  15695. width: 20px;
  15696. height: 20px;
  15697. }
  15698. .whiteBIcon > img {
  15699. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15700. border-radius: 15px;
  15701. }
  15702. .whiteBIcon > div:nth-child(2) {
  15703. height: 20px;
  15704. line-height: 20px;
  15705. }
  15706. .check {
  15707. /* width: 20px;
  15708. height: 20px; */
  15709. cursor: pointer;
  15710. margin: 10px 0 0;
  15711. }
  15712. .checkDiv {
  15713. display: flex;
  15714. align-items: center;
  15715. }
  15716. .checkDiv span {
  15717. margin-left: 5px;
  15718. color: #858585;
  15719. }
  15720. .customWidth >>> .el-dialog {
  15721. min-width: 500px !important;
  15722. }
  15723. .a_addBox {
  15724. margin: 10px 0;
  15725. background: #fff;
  15726. padding: 15px;
  15727. /* max-height: 600px; */
  15728. overflow: auto;
  15729. }
  15730. .a_add_box {
  15731. border-bottom: 2px solid #eee;
  15732. padding-bottom: 25px;
  15733. }
  15734. .a_add_head {
  15735. display: flex;
  15736. align-items: center;
  15737. justify-content: space-between;
  15738. margin: 10px 0 0 0;
  15739. font-size: 18px;
  15740. }
  15741. .a_add_checkType {
  15742. margin-top: 10px;
  15743. display: flex;
  15744. font-size: 14px;
  15745. align-items: center;
  15746. }
  15747. .a_add_checkType span {
  15748. box-sizing: border-box;
  15749. padding: 0 0 5px 0;
  15750. cursor: pointer;
  15751. }
  15752. .a_add_checkType span + span {
  15753. margin-left: 10px;
  15754. }
  15755. .a_add_checkType .active {
  15756. border-bottom: 2px solid #409eff;
  15757. color: #409eff;
  15758. }
  15759. .a_add_head .a_add_head_input {
  15760. /* width: 540px; */
  15761. width: 100%;
  15762. }
  15763. .a_add_head .a_add_head_div {
  15764. display: flex;
  15765. align-items: center;
  15766. justify-content: space-between;
  15767. }
  15768. .a_add_body {
  15769. display: flex;
  15770. /* align-items: center; */
  15771. align-items: flex-end;
  15772. }
  15773. .a_add_input {
  15774. display: flex;
  15775. align-items: center;
  15776. flex-wrap: wrap;
  15777. }
  15778. .a_add_input_choice {
  15779. flex-direction: column;
  15780. margin-right: 10px;
  15781. }
  15782. .a_add_input_choice >>> .el-radio {
  15783. display: flex;
  15784. align-items: center;
  15785. flex-direction: row-reverse;
  15786. margin: 30px 0 0 0;
  15787. position: relative;
  15788. }
  15789. .a_add_input_choice >>> .el-checkbox {
  15790. display: flex;
  15791. align-items: center;
  15792. flex-direction: row-reverse;
  15793. margin: 30px 0 0 0;
  15794. position: relative;
  15795. }
  15796. .width100 {
  15797. width: 100%;
  15798. }
  15799. .a_add_input .a_add_persent {
  15800. width: 100%;
  15801. }
  15802. .a_add_persent_div {
  15803. width: 100%;
  15804. display: flex;
  15805. align-items: center;
  15806. }
  15807. .a_add_persent_div span {
  15808. margin: 5px 0;
  15809. }
  15810. .a_add_persent_div span:nth-child(1) {
  15811. width: 30%;
  15812. }
  15813. .a_add_persent_div span:nth-child(2) {
  15814. width: 7%;
  15815. }
  15816. .a_add_persent_div span:nth-child(3) {
  15817. width: 40%;
  15818. }
  15819. .a_add_body_div {
  15820. display: flex;
  15821. align-items: center;
  15822. justify-content: center;
  15823. /* flex-direction: column; */
  15824. position: absolute;
  15825. right: -20px;
  15826. transform: translateX(100%);
  15827. }
  15828. .a_add_body_div >>> .el-button--primary {
  15829. background: #466b99;
  15830. border: none;
  15831. }
  15832. .all_choose {
  15833. display: flex;
  15834. flex-direction: row;
  15835. align-items: flex-start;
  15836. width: 100%;
  15837. }
  15838. .all_choose + .all_choose {
  15839. /* margin-top: 10px */
  15840. }
  15841. .all_choose > span {
  15842. min-width: fit-content;
  15843. display: block;
  15844. white-space: nowrap;
  15845. overflow: hidden;
  15846. text-overflow: ellipsis;
  15847. margin-right: 20px;
  15848. font-weight: bold;
  15849. font-size: 14px;
  15850. }
  15851. .all_choose >>> .el-checkbox-group {
  15852. display: flex;
  15853. flex-direction: row;
  15854. width: 100%;
  15855. flex-wrap: wrap;
  15856. align-content: center;
  15857. justify-content: flex-start;
  15858. align-items: center;
  15859. margin-top: 3px;
  15860. }
  15861. .all_choose > .el-checkbox-group >>> .el-checkbox {
  15862. margin-bottom: 10px;
  15863. display: flex;
  15864. flex-direction: row;
  15865. align-items: center;
  15866. margin-right: 10px;
  15867. }
  15868. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  15869. min-width: 80px;
  15870. overflow: hidden;
  15871. width: 80px;
  15872. text-overflow: ellipsis;
  15873. white-space: nowrap;
  15874. }
  15875. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  15876. width: auto;
  15877. }
  15878. .choose > div:nth-child(3) > span {
  15879. /* letter-spacing: 0 !important; */
  15880. }
  15881. .choose {
  15882. display: flex;
  15883. flex-direction: column;
  15884. flex-wrap: nowrap;
  15885. height: 100%;
  15886. justify-content: space-evenly;
  15887. align-items: flex-start;
  15888. }
  15889. .both {
  15890. display: flex;
  15891. flex-direction: row;
  15892. flex-wrap: wrap;
  15893. width: 100%;
  15894. align-items: center;
  15895. justify-content: flex-start;
  15896. margin: 15px 0;
  15897. }
  15898. .notice >>> .el-dialog {
  15899. width: 500px !important;
  15900. text-align: center;
  15901. }
  15902. .notice >>> .el-button {
  15903. margin-top: 20px;
  15904. }
  15905. .whiteBg {
  15906. /* background: #fff; */
  15907. border-radius: 10px;
  15908. }
  15909. .wb_j_box {
  15910. display: flex;
  15911. width: 100%;
  15912. padding: 0 20px 0;
  15913. box-sizing: border-box;
  15914. }
  15915. .wb_j_box_content {
  15916. width: calc(100% - 55% - 100px);
  15917. display: flex;
  15918. align-items: center;
  15919. }
  15920. .wb_j_box_p_box {
  15921. max-width: calc(100% - 200px);
  15922. word-break: break-all;
  15923. overflow: hidden;
  15924. margin: 0 0 0 10px;
  15925. font-size: 14px;
  15926. color: #6e6e6e;
  15927. z-index: 999;
  15928. }
  15929. .chooseWho {
  15930. display: flex;
  15931. width: 410px;
  15932. flex-direction: row;
  15933. flex-wrap: nowrap;
  15934. justify-content: space-between;
  15935. padding-bottom: 10px;
  15936. }
  15937. .chooseWho > div {
  15938. cursor: pointer;
  15939. padding-bottom: 10px;
  15940. font-weight: bold;
  15941. }
  15942. .isChooseActive {
  15943. color: #3e88f4;
  15944. border-bottom: 2px solid #2f80f3;
  15945. }
  15946. .toolSort {
  15947. display: flex;
  15948. flex-direction: row;
  15949. flex-wrap: wrap;
  15950. justify-content: flex-start;
  15951. align-items: flex-start;
  15952. }
  15953. .toolSort > div {
  15954. margin-right: 10px;
  15955. }
  15956. .tools {
  15957. width: 100%;
  15958. display: flex;
  15959. flex-direction: column;
  15960. flex-wrap: nowrap;
  15961. align-items: flex-start;
  15962. }
  15963. .leftTools,
  15964. .rightTools {
  15965. width: 50%;
  15966. }
  15967. .leftTools + .leftTools {
  15968. border-top: 1px solid #dbdbdb;
  15969. padding-top: 30px;
  15970. }
  15971. .rightTools {
  15972. display: flex;
  15973. flex-direction: row;
  15974. flex-wrap: nowrap;
  15975. justify-content: space-around;
  15976. }
  15977. .firstToolList {
  15978. display: flex;
  15979. flex-direction: column;
  15980. flex-wrap: nowrap;
  15981. align-items: center;
  15982. }
  15983. .iconList {
  15984. display: flex;
  15985. flex-direction: row;
  15986. flex-wrap: wrap;
  15987. justify-content: flex-start;
  15988. align-items: center;
  15989. margin: 20px 0 5px 0;
  15990. width: 240px;
  15991. min-width: 240px;
  15992. }
  15993. .iconTool {
  15994. display: flex;
  15995. flex-direction: column;
  15996. flex-wrap: nowrap;
  15997. align-items: center;
  15998. justify-content: flex-start;
  15999. margin: 15px 10px;
  16000. }
  16001. .toolIcon {
  16002. width: 50px;
  16003. }
  16004. .taskBorder {
  16005. /* border: 1px solid #CAD1DC; */
  16006. border-radius: 10px;
  16007. margin-top: 10px;
  16008. min-height: 670px;
  16009. position: relative;
  16010. background: #fff;
  16011. padding: 20px;
  16012. overflow: hidden;
  16013. box-sizing: border-box;
  16014. }
  16015. .smallTaskBorder {
  16016. height: 405px;
  16017. min-height: 405px !important;
  16018. overflow: hidden;
  16019. }
  16020. /* .taskBorder>div {
  16021. padding: 30px 30px 10px;
  16022. } */
  16023. .addTaskBorder {
  16024. /* border: 2px solid #5E9AFC; */
  16025. border-radius: 8px;
  16026. margin-top: 10px;
  16027. cursor: pointer;
  16028. /* height: 50px;
  16029. line-height: 50px; */
  16030. background: #fff;
  16031. padding: 15px 0;
  16032. display: flex;
  16033. align-items: center;
  16034. justify-content: center;
  16035. }
  16036. /* .addTaskBorder>div {
  16037. margin: 0 auto;
  16038. display: flex;
  16039. align-items: center;
  16040. justify-content: center;
  16041. }
  16042. .addTaskBorder>div>img {
  16043. width: 20px;
  16044. }
  16045. .addTaskBorder>div>span {
  16046. font-size: 16px;
  16047. margin-left: 10px;
  16048. color: #5E9AFC;
  16049. } */
  16050. .funBlock {
  16051. display: flex;
  16052. padding: 15px 0;
  16053. flex-direction: row;
  16054. justify-content: center;
  16055. align-items: center;
  16056. position: absolute;
  16057. right: 0;
  16058. bottom: 0;
  16059. background: #fff;
  16060. width: 100%;
  16061. height: 60px;
  16062. z-index: 9;
  16063. }
  16064. .fold {
  16065. display: flex;
  16066. margin: 0 20px;
  16067. flex-direction: row;
  16068. align-items: center;
  16069. cursor: pointer;
  16070. color: #2b7bff;
  16071. }
  16072. .arrow {
  16073. margin-right: 8px;
  16074. width: 16px;
  16075. height: 16px;
  16076. min-width: 16px;
  16077. min-height: 16px;
  16078. background-size: 100% 100%;
  16079. display: block;
  16080. background-image: url(../../assets/icon/new/u_up.png);
  16081. /* border-left: 7px solid transparent;
  16082. border-bottom: 7px solid #717C8D;
  16083. border-top: 0px solid transparent;
  16084. border-right: 7px solid transparent; */
  16085. /* box-sizing: border-box; */
  16086. transition: all 0.3s;
  16087. }
  16088. .arrowZ {
  16089. transform: rotate(180deg);
  16090. }
  16091. .addToolFun {
  16092. display: flex;
  16093. width: 150px;
  16094. flex-direction: row;
  16095. align-items: center;
  16096. justify-content: center;
  16097. border: 2px dashed #cad1dc;
  16098. border-radius: 5px;
  16099. height: 50px;
  16100. margin: 35px auto 0;
  16101. cursor: pointer;
  16102. }
  16103. .addToolFun2 {
  16104. display: flex;
  16105. width: 150px;
  16106. border: 2px dashed #cad1dc;
  16107. flex-direction: row;
  16108. align-items: center;
  16109. justify-content: center;
  16110. border-radius: 5px;
  16111. height: 50px;
  16112. margin: 0 auto 0;
  16113. cursor: pointer;
  16114. }
  16115. .addToolFun2 > div,
  16116. .addToolFun > div {
  16117. display: flex;
  16118. line-height: 50px;
  16119. }
  16120. .addToolImg {
  16121. width: 20px;
  16122. height: 20px;
  16123. margin-right: 10px;
  16124. }
  16125. .addToolsDia >>> .el-dialog__body {
  16126. padding: 20px;
  16127. }
  16128. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16129. padding: 0;
  16130. }
  16131. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16132. padding: 0;
  16133. border-bottom: none;
  16134. margin-bottom: 0;
  16135. }
  16136. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16137. width: 100%;
  16138. }
  16139. .lineCss >>> .el-form-item__label {
  16140. width: auto !important;
  16141. }
  16142. .lineCss >>> .el-form-item__content {
  16143. margin-left: 50px !important;
  16144. }
  16145. .newSteps {
  16146. display: flex;
  16147. width: 100% !important;
  16148. /* height: 80px; */
  16149. cursor: pointer;
  16150. margin: 10px 0;
  16151. border-radius: 10px;
  16152. flex-direction: row;
  16153. align-content: center;
  16154. justify-content: center;
  16155. align-items: center;
  16156. margin: 0 !important;
  16157. }
  16158. /* 评价样式 */
  16159. .elist_css {
  16160. padding-bottom: 75px !important;
  16161. }
  16162. .elist_title {
  16163. margin-bottom: 10px;
  16164. }
  16165. .elist_input {
  16166. width: 100%;
  16167. }
  16168. .elist_input_box {
  16169. display: flex;
  16170. align-items: center;
  16171. flex-wrap: wrap;
  16172. }
  16173. .elist_input_box + .elist_input_box {
  16174. margin-top: 30px;
  16175. }
  16176. .elist_input .elist_input_box input {
  16177. font: inherit;
  16178. color: currentColor;
  16179. width: 100%;
  16180. /* max-width: calc(100% - 385px); */
  16181. max-width: calc(100% - 150px);
  16182. padding: 8px 14px;
  16183. display: block;
  16184. min-width: 0;
  16185. outline: none;
  16186. border: 1px solid rgba(0, 0, 0, 0.23);
  16187. border-radius: 4px;
  16188. box-sizing: border-box;
  16189. background: #fff;
  16190. margin: 0 20px 0 0;
  16191. }
  16192. .elist_input .elist_input_box span {
  16193. height: 36px;
  16194. line-height: 36px;
  16195. color: rgb(82, 82, 82);
  16196. min-width: 80px;
  16197. }
  16198. .elist_input .elist_input_box .remove {
  16199. height: 20px;
  16200. width: 20px;
  16201. min-height: 20px;
  16202. min-width: 20px;
  16203. background-size: 100% 100%;
  16204. background-position: unset;
  16205. margin-left: 5px;
  16206. }
  16207. .elist_input_box >>> .el-rate {
  16208. display: flex;
  16209. height: 36px;
  16210. align-items: center;
  16211. }
  16212. .elist_input_box .elist_inptu_text {
  16213. width: 100%;
  16214. display: flex;
  16215. align-items: center;
  16216. margin-top: 10px;
  16217. }
  16218. .elist_input_box .elist_inptu_text input {
  16219. /* width: 500px; */
  16220. width: 100%;
  16221. max-width: unset;
  16222. }
  16223. .elist_input_box >>> .el-rate__icon {
  16224. font-size: 24px;
  16225. }
  16226. .elist_btn {
  16227. margin-top: 10px;
  16228. }
  16229. .lineTitle {
  16230. /* margin-top: 15px; */
  16231. width: 110px;
  16232. font-size: 16px;
  16233. display: flex;
  16234. align-items: center;
  16235. line-height: 20px;
  16236. }
  16237. .lineTitle::before {
  16238. content: "";
  16239. display: block;
  16240. width: 3px;
  16241. height: 20px;
  16242. background: #0061ff;
  16243. border-radius: 3px;
  16244. margin: 0 5px 0 0;
  16245. }
  16246. .clineTitle::before {
  16247. content: "";
  16248. display: block;
  16249. min-width: 10px;
  16250. width: 10px;
  16251. height: 10px;
  16252. background: #0061ff;
  16253. border-radius: 50%;
  16254. margin: 0 5px 0 0;
  16255. }
  16256. .courseTop {
  16257. display: flex;
  16258. flex-direction: row;
  16259. justify-content: space-between;
  16260. align-items: center;
  16261. width: calc(100% - 40px);
  16262. margin: 0 auto;
  16263. padding: 10px 0;
  16264. }
  16265. .stepsNav {
  16266. display: flex;
  16267. flex-direction: row;
  16268. justify-content: flex-start;
  16269. align-items: center;
  16270. }
  16271. .stepsWord {
  16272. font-size: 18px;
  16273. color: #fff;
  16274. font-weight: bold;
  16275. margin-left: auto;
  16276. background: rgb(15, 126, 255);
  16277. border-radius: 5px;
  16278. padding: 3px 25px;
  16279. box-sizing: border-box;
  16280. }
  16281. .stepBox {
  16282. width: calc(100% - 40px);
  16283. height: calc(100% - 50px);
  16284. overflow: hidden;
  16285. border-radius: 5px;
  16286. margin: 0 auto;
  16287. }
  16288. .rightBox {
  16289. width: calc(100%);
  16290. background: #f0f2f5;
  16291. /* border-radius: 10px; */
  16292. overflow: auto;
  16293. height: calc(100% - 150px);
  16294. margin: 0 auto;
  16295. position: relative;
  16296. box-sizing: border-box;
  16297. }
  16298. .e_add_top {
  16299. display: flex;
  16300. justify-content: space-between;
  16301. background: #fff;
  16302. position: absolute;
  16303. right: 20px;
  16304. height: 50px;
  16305. align-items: center;
  16306. }
  16307. .e_add_title2 {
  16308. display: flex;
  16309. align-items: center;
  16310. }
  16311. .e_add_title2 span {
  16312. width: 40px;
  16313. }
  16314. .e_add_title {
  16315. display: flex;
  16316. align-items: center;
  16317. color: #b8b8b8;
  16318. font-size: 18px;
  16319. position: relative;
  16320. height: 40px;
  16321. }
  16322. .e_add_title span {
  16323. margin-right: 10px;
  16324. }
  16325. .e_add_title .el_input {
  16326. width: 300px;
  16327. }
  16328. .e_add_title >>> .el-input__inner {
  16329. width: 400px;
  16330. }
  16331. .e_add_btn {
  16332. }
  16333. .e_add_content {
  16334. display: flex;
  16335. width: 100%;
  16336. }
  16337. .e_add_list {
  16338. background: #fff;
  16339. height: 500px;
  16340. width: 210px;
  16341. position: relative;
  16342. margin: 15px 5px 0 0;
  16343. flex-shrink: 0;
  16344. display: flex;
  16345. flex-direction: column;
  16346. }
  16347. .e_add_list_title {
  16348. font-size: 20px;
  16349. width: 100%;
  16350. box-sizing: border-box;
  16351. padding: 15px 40px;
  16352. text-align: center;
  16353. border-bottom: 1px solid #eaeaea;
  16354. position: relative;
  16355. display: flex;
  16356. align-items: center;
  16357. justify-content: center;
  16358. height: 57px;
  16359. background: #f6f6f6;
  16360. }
  16361. .e_add_list_title span {
  16362. overflow: hidden;
  16363. white-space: nowrap;
  16364. text-overflow: ellipsis;
  16365. }
  16366. .e_add_list_title img {
  16367. position: absolute;
  16368. right: 15px;
  16369. width: 25px;
  16370. cursor: pointer;
  16371. top: 50%;
  16372. transform: translateY(-50%);
  16373. }
  16374. .e_add_list_body {
  16375. height: calc(100% - 187px);
  16376. overflow: auto;
  16377. }
  16378. .e_add_list_child {
  16379. width: 100%;
  16380. display: flex;
  16381. align-items: center;
  16382. justify-content: center;
  16383. position: relative;
  16384. box-sizing: border-box;
  16385. padding: 15px 40px;
  16386. text-align: center;
  16387. }
  16388. .e_add_list_child span {
  16389. overflow: hidden;
  16390. white-space: nowrap;
  16391. text-overflow: ellipsis;
  16392. cursor: pointer;
  16393. }
  16394. .e_add_list_child img {
  16395. position: absolute;
  16396. right: 10px;
  16397. width: 21px;
  16398. cursor: pointer;
  16399. top: 50%;
  16400. transform: translateY(-50%);
  16401. }
  16402. .e_add_list_child + .e_add_list_child {
  16403. border-top: 1px solid #eaeaea;
  16404. }
  16405. .e_add_list_child .active {
  16406. color: #409eff;
  16407. }
  16408. .e_add_list_btn {
  16409. position: absolute;
  16410. bottom: 0;
  16411. height: 50px;
  16412. background: rgb(120, 120, 254);
  16413. width: 100%;
  16414. color: #fff;
  16415. font-size: 16px;
  16416. text-align: center;
  16417. line-height: 50px;
  16418. cursor: pointer;
  16419. }
  16420. .e_add_list_detail {
  16421. position: absolute;
  16422. bottom: 0;
  16423. height: 130px;
  16424. background: rgb(120, 120, 254);
  16425. width: 100%;
  16426. color: #fff;
  16427. font-size: 16px;
  16428. display: flex;
  16429. align-items: center;
  16430. justify-content: center;
  16431. }
  16432. .e_add_list_detail textarea {
  16433. height: 90%;
  16434. width: 95%;
  16435. border: none;
  16436. resize: none;
  16437. outline: none;
  16438. padding: 5px;
  16439. box-sizing: border-box;
  16440. }
  16441. .e_add_list_pbox {
  16442. width: 100%;
  16443. }
  16444. .e_add_list_pbox_title {
  16445. height: 50px;
  16446. background: #fff;
  16447. display: flex;
  16448. align-items: center;
  16449. width: 100%;
  16450. box-sizing: border-box;
  16451. padding: 0 20px;
  16452. flex-direction: row;
  16453. flex-wrap: wrap;
  16454. }
  16455. .type_title {
  16456. font-size: 18px;
  16457. font-weight: 700;
  16458. }
  16459. .type_content {
  16460. font-size: 16px;
  16461. margin-left: 30px;
  16462. }
  16463. .type_content span + span {
  16464. margin-left: 20px;
  16465. }
  16466. .type_content span {
  16467. cursor: pointer;
  16468. padding-bottom: 5px;
  16469. box-sizing: border-box;
  16470. }
  16471. .type_content .active {
  16472. color: #409eff;
  16473. border-bottom: 2px solid #409eff;
  16474. }
  16475. .e_add_list_pbox_content {
  16476. height: calc(100% - 50px);
  16477. display: flex;
  16478. align-items: center;
  16479. width: 100%;
  16480. background: #fff;
  16481. }
  16482. .mbCss {
  16483. width: 100%;
  16484. display: flex;
  16485. flex-direction: row;
  16486. flex-wrap: nowrap;
  16487. align-content: center;
  16488. align-items: flex-start;
  16489. justify-content: flex-start;
  16490. }
  16491. .pjCss {
  16492. /* width: 42%; */
  16493. width: calc(100% - 55%);
  16494. display: flex;
  16495. flex-direction: column;
  16496. flex-wrap: nowrap;
  16497. align-items: flex-start;
  16498. }
  16499. .e_box {
  16500. /* display: flex; */
  16501. flex-wrap: wrap;
  16502. max-height: 500px;
  16503. align-items: flex-start;
  16504. overflow: auto;
  16505. width: 100%;
  16506. }
  16507. .e_card {
  16508. border: 1px solid #ccc;
  16509. background: #fff;
  16510. margin-right: 20px;
  16511. width: 270px;
  16512. display: flex;
  16513. flex-direction: column;
  16514. align-items: center;
  16515. border-radius: 5px;
  16516. margin-top: 10px;
  16517. text-align: center;
  16518. }
  16519. .e_card_picture {
  16520. margin: 10px 0;
  16521. }
  16522. .e_card_picture > img {
  16523. width: 50px;
  16524. }
  16525. .e_card_name {
  16526. width: 100%;
  16527. padding: 0 10px;
  16528. box-sizing: border-box;
  16529. margin-bottom: 10px;
  16530. overflow: hidden;
  16531. text-overflow: ellipsis;
  16532. white-space: nowrap;
  16533. }
  16534. .e_card_time {
  16535. width: 100%;
  16536. padding: 0 10px;
  16537. box-sizing: border-box;
  16538. font-size: 15px;
  16539. color: #c3c3c3;
  16540. margin-bottom: 10px;
  16541. }
  16542. .e_card_btn {
  16543. height: 40px;
  16544. display: flex;
  16545. align-items: center;
  16546. width: 100%;
  16547. background: rgb(244, 244, 244);
  16548. }
  16549. .e_card_btn:hover {
  16550. background: rgb(221 221 221);
  16551. }
  16552. .e_card_btn span {
  16553. flex: 1 1 auto;
  16554. text-align: center;
  16555. cursor: pointer;
  16556. }
  16557. .addEva {
  16558. border: 1px solid #ccc;
  16559. background: #fff;
  16560. margin-right: 20px;
  16561. width: 270px;
  16562. height: 149px;
  16563. display: flex;
  16564. flex-direction: column;
  16565. align-items: center;
  16566. border-radius: 5px;
  16567. margin-top: 10px;
  16568. text-align: center;
  16569. cursor: pointer;
  16570. justify-content: center;
  16571. }
  16572. .addEva > img {
  16573. width: 50px;
  16574. object-fit: cover;
  16575. }
  16576. .uploadFm {
  16577. border: 1px dashed #ccc;
  16578. width: 100%;
  16579. height: 140px;
  16580. position: relative;
  16581. cursor: pointer;
  16582. display: flex;
  16583. flex-direction: column;
  16584. justify-content: center;
  16585. align-items: center;
  16586. font-size: 14px;
  16587. color: #6e6e6e;
  16588. position: relative;
  16589. }
  16590. .cover_p {
  16591. width: 100% !important;
  16592. height: 100%;
  16593. object-fit: cover;
  16594. }
  16595. .uploadFm2:hover .cover_mask {
  16596. display: flex !important;
  16597. }
  16598. .cover_mask {
  16599. display: none;
  16600. width: 100%;
  16601. height: 100%;
  16602. position: absolute;
  16603. background: #00000054;
  16604. align-items: center;
  16605. justify-content: center;
  16606. flex-direction: column;
  16607. }
  16608. .cover_mask > img {
  16609. width: 30px;
  16610. }
  16611. .cover_mask > span {
  16612. color: #fff;
  16613. font-size: 12px;
  16614. }
  16615. .uploadFm > img {
  16616. width: 50px;
  16617. }
  16618. .fileCss {
  16619. width: 100%;
  16620. display: flex;
  16621. flex-direction: row;
  16622. flex-wrap: nowrap;
  16623. justify-content: space-around;
  16624. align-items: center;
  16625. padding-top: 15px;
  16626. }
  16627. .fileCss > div {
  16628. display: flex;
  16629. flex-direction: column;
  16630. align-items: center;
  16631. }
  16632. .fileCss .spanName {
  16633. margin-top: 10px;
  16634. }
  16635. .sysPicBox {
  16636. display: flex;
  16637. flex-direction: row;
  16638. flex-wrap: wrap;
  16639. align-content: flex-start;
  16640. height: 435px;
  16641. overflow: auto;
  16642. position: relative;
  16643. }
  16644. .picNone {
  16645. position: absolute;
  16646. left: 50%;
  16647. top: 45%;
  16648. transform: translate(-50%, -50%);
  16649. width: fit-content;
  16650. color: #9c9c9c;
  16651. }
  16652. .sysPic {
  16653. width: 200px;
  16654. height: 115px;
  16655. margin: 0 20px 20px 0;
  16656. cursor: pointer;
  16657. }
  16658. .sysPic > img,
  16659. .isSysPic > img,
  16660. .deletePic > img {
  16661. width: 100%;
  16662. height: 100%;
  16663. object-fit: cover;
  16664. }
  16665. .isSysPic {
  16666. width: 200px;
  16667. height: 115px;
  16668. position: relative;
  16669. }
  16670. .deletePic {
  16671. width: 20px;
  16672. height: 20px;
  16673. position: absolute;
  16674. top: 0;
  16675. right: 0;
  16676. cursor: pointer;
  16677. }
  16678. .select_box1 {
  16679. height: 100%;
  16680. }
  16681. .select_box1_img {
  16682. background: #fff;
  16683. border-radius: 5px;
  16684. padding: 15px;
  16685. box-sizing: border-box;
  16686. margin-bottom: 20px;
  16687. }
  16688. .select_box1_title {
  16689. padding: 0 0 15px 0;
  16690. border-bottom: 1px solid #eee;
  16691. margin-bottom: 15px;
  16692. }
  16693. .select_box1_title span:nth-child(1) {
  16694. font-size: 16px;
  16695. margin-right: 20px;
  16696. color: #000;
  16697. }
  16698. .select_box1_title span:nth-child(2) {
  16699. font-size: 14px;
  16700. color: rgb(112, 112, 112);
  16701. }
  16702. .select_box1_add_img {
  16703. }
  16704. .select_box1_select {
  16705. background: #fff;
  16706. border-radius: 5px;
  16707. padding: 15px;
  16708. box-sizing: border-box;
  16709. height: calc(100% - 200px);
  16710. overflow: auto;
  16711. }
  16712. .select_box2 {
  16713. height: 100%;
  16714. }
  16715. .select_box2_title {
  16716. background: #fff;
  16717. border-radius: 5px;
  16718. padding: 5px 10px;
  16719. box-sizing: border-box;
  16720. margin-bottom: 10px;
  16721. }
  16722. .select_box2_box {
  16723. display: flex;
  16724. height: calc(100% - 30px);
  16725. }
  16726. .select_box2_img {
  16727. width: calc(100% - 310px);
  16728. height: 100%;
  16729. overflow: auto;
  16730. background: #fff;
  16731. border-radius: 5px;
  16732. }
  16733. .select_box2_img img {
  16734. width: 100%;
  16735. }
  16736. .select_box2_answer {
  16737. background: #fff;
  16738. margin-left: 10px;
  16739. border-radius: 5px;
  16740. width: 300px;
  16741. overflow: auto;
  16742. height: 100%;
  16743. display: flex;
  16744. flex-direction: column;
  16745. align-items: center;
  16746. padding-top: 10px;
  16747. box-sizing: border-box;
  16748. }
  16749. .select_box2_answer_box {
  16750. margin: 0 0 10px 0;
  16751. width: 85%;
  16752. }
  16753. .rate_textarea {
  16754. font: inherit;
  16755. color: currentColor;
  16756. width: 100%;
  16757. padding: 8px 14px;
  16758. display: block;
  16759. min-width: 0;
  16760. outline: none;
  16761. border: 1px solid rgba(0, 0, 0, 0.23);
  16762. border-radius: 4px;
  16763. box-sizing: border-box;
  16764. background: #fff;
  16765. margin: 0 20px 0 0;
  16766. resize: none;
  16767. }
  16768. .select_answer_title {
  16769. text-align: left;
  16770. width: 85%;
  16771. margin-bottom: 10px;
  16772. font-size: 18px;
  16773. color: #8e8e8e;
  16774. }
  16775. .mask {
  16776. background-color: rgb(0 0 0 / 30%);
  16777. /* position: fixed; */
  16778. position: absolute;
  16779. top: 0;
  16780. left: 0;
  16781. width: 100%;
  16782. height: 100%;
  16783. z-index: 90;
  16784. display: flex;
  16785. align-items: center;
  16786. justify-content: center;
  16787. }
  16788. .progressBox {
  16789. width: 300px;
  16790. height: 150px;
  16791. background: #fff;
  16792. border-radius: 10px;
  16793. box-shadow: 0 0 6px 1px #bfbfbf;
  16794. display: flex;
  16795. align-items: center;
  16796. justify-content: center;
  16797. flex-direction: column;
  16798. position: relative;
  16799. color: #6c6c6c;
  16800. }
  16801. .progressBox >>> .el-progress-bar__outer {
  16802. background-color: #d1dfff !important;
  16803. }
  16804. .progressBox .lbox {
  16805. height: 50px;
  16806. font-size: 19px;
  16807. display: flex;
  16808. align-items: center;
  16809. color: #747474;
  16810. }
  16811. .progressBox .lbox img {
  16812. width: 40px;
  16813. margin-right: 20px;
  16814. }
  16815. .closeCss {
  16816. position: absolute;
  16817. top: 8px;
  16818. right: 8px;
  16819. cursor: pointer;
  16820. width: 20px;
  16821. height: 20px;
  16822. }
  16823. .closeCss > img {
  16824. width: 100%;
  16825. height: 100%;
  16826. }
  16827. .updateTips::before {
  16828. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16829. font-size: 14px;
  16830. margin-left: 20px;
  16831. font-weight: 400;
  16832. color: #ff3a3a;
  16833. margin-bottom: 10px;
  16834. display: block;
  16835. }
  16836. .updateMask {
  16837. width: 100%;
  16838. z-index: 3;
  16839. top: 0;
  16840. position: absolute;
  16841. /* background-color: rgba(0,0,0,.3); */
  16842. }
  16843. .t_j_box {
  16844. display: flex;
  16845. }
  16846. .t_j_box span:nth-child(1) {
  16847. width: 15%;
  16848. overflow: hidden;
  16849. margin-right: 10px;
  16850. text-overflow: ellipsis;
  16851. white-space: nowrap;
  16852. }
  16853. .t_j_box span:nth-child(2) {
  16854. width: 30%;
  16855. overflow: hidden;
  16856. text-overflow: ellipsis;
  16857. margin-right: 10px;
  16858. }
  16859. .t_j_box span:nth-child(3) {
  16860. max-width: calc(55% - 20px);
  16861. overflow: hidden;
  16862. text-overflow: ellipsis;
  16863. }
  16864. .sentenBox {
  16865. background: #fff;
  16866. height: 600px;
  16867. overflow: auto;
  16868. background-image: url("../../assets/icon/conSentences/csBg.png");
  16869. background-position: 102%;
  16870. background-repeat: no-repeat;
  16871. background-size: 60%;
  16872. }
  16873. .sentenBox > .sentenContent {
  16874. padding-bottom: 10px;
  16875. width: 97%;
  16876. margin: 0 auto;
  16877. }
  16878. .sentenBox > .sentenContent + .sentenContent {
  16879. border-top: 1px solid #cbcbcb;
  16880. }
  16881. .addSen {
  16882. background: #409efe;
  16883. width: 90px;
  16884. color: #fff;
  16885. height: 35px;
  16886. text-align: center;
  16887. line-height: 35px;
  16888. border-radius: 5px;
  16889. float: right;
  16890. margin: 10px 20px 0 0;
  16891. cursor: pointer;
  16892. }
  16893. .sentenTop {
  16894. display: flex;
  16895. flex-direction: row;
  16896. flex-wrap: nowrap;
  16897. align-items: center;
  16898. }
  16899. .sentenTop::before {
  16900. content: attr(index);
  16901. background: #3681fc;
  16902. border-radius: 50%;
  16903. color: #fff;
  16904. width: 25px;
  16905. height: 25px;
  16906. min-width: 25px;
  16907. min-height: 25px;
  16908. text-align: center;
  16909. line-height: 25px;
  16910. margin-right: 5px;
  16911. }
  16912. .sentenTop > div:nth-child(2) {
  16913. width: 300px;
  16914. margin: 0 15px;
  16915. }
  16916. .sentenTop > div:nth-child(3) {
  16917. background: #409efe;
  16918. color: #fff;
  16919. width: 65px;
  16920. height: 35px;
  16921. text-align: center;
  16922. line-height: 35px;
  16923. border-radius: 5px;
  16924. cursor: pointer;
  16925. }
  16926. .cardList {
  16927. padding: 30px 0 20px 0;
  16928. display: flex;
  16929. flex-direction: row;
  16930. flex-wrap: wrap;
  16931. align-items: center;
  16932. box-sizing: border-box;
  16933. border-bottom: 1px solid #f4f4f4;
  16934. width: 98%;
  16935. margin: 0 auto;
  16936. }
  16937. .rightCardList {
  16938. display: flex;
  16939. flex-wrap: wrap;
  16940. }
  16941. .cardBox {
  16942. display: flex;
  16943. flex-direction: row;
  16944. flex-wrap: wrap;
  16945. align-items: center;
  16946. align-content: center;
  16947. }
  16948. .isCard,
  16949. .isCard1 {
  16950. width: auto;
  16951. padding: 0 20px;
  16952. height: 65px;
  16953. text-align: center;
  16954. line-height: 65px;
  16955. font-size: 14px;
  16956. cursor: pointer;
  16957. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  16958. background-size: 100% 100%;
  16959. position: relative;
  16960. z-index: 99;
  16961. }
  16962. .isCard1 {
  16963. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  16964. }
  16965. .isCard:hover .deleteWord {
  16966. display: block;
  16967. }
  16968. .isCard > div:nth-child(1),
  16969. .isCard1 > div:nth-child(1) {
  16970. white-space: nowrap;
  16971. overflow: hidden;
  16972. text-overflow: ellipsis;
  16973. width: 100%;
  16974. margin: 0 auto;
  16975. }
  16976. .card {
  16977. width: 140px;
  16978. height: 65px;
  16979. }
  16980. .card > img {
  16981. width: 100%;
  16982. height: 100%;
  16983. }
  16984. .rightCardBox {
  16985. width: 98%;
  16986. margin: 10px auto 0;
  16987. }
  16988. .rightCardBox > div:nth-child(1) {
  16989. margin-bottom: 10px;
  16990. }
  16991. .cardCss {
  16992. display: flex;
  16993. flex-direction: column;
  16994. flex-wrap: nowrap;
  16995. align-items: center;
  16996. border-bottom: 3px solid #b4c3d3;
  16997. padding: 0 0 5px 0;
  16998. /* margin-right: 10px; */
  16999. }
  17000. .cardCss > div:nth-child(2) {
  17001. background: #5b7b9d;
  17002. color: #fff;
  17003. width: 20px;
  17004. height: 20px;
  17005. border-radius: 50%;
  17006. text-align: center;
  17007. line-height: 20px;
  17008. }
  17009. .sentenTopBox {
  17010. display: flex;
  17011. flex-direction: row;
  17012. flex-wrap: nowrap;
  17013. align-items: center;
  17014. justify-content: space-between;
  17015. padding: 55px 0 0 20px;
  17016. box-sizing: border-box;
  17017. width: 85%;
  17018. }
  17019. .stepsBottom {
  17020. width: 100%;
  17021. box-shadow: 0 0 10px 10px #f7f7f7;
  17022. /* background: #f7f7f7; */
  17023. border-radius: 10px;
  17024. overflow: hidden;
  17025. height: 100%;
  17026. }
  17027. .navTop {
  17028. background: #53749b;
  17029. color: #fff;
  17030. height: 40px;
  17031. line-height: 40px;
  17032. padding-left: 15px;
  17033. font-size: 18px;
  17034. }
  17035. .navBottom {
  17036. /* background: #6b91b7; */
  17037. height: 100%;
  17038. overflow: auto;
  17039. padding: 10px 0;
  17040. }
  17041. .navStage {
  17042. display: flex;
  17043. flex-direction: row;
  17044. flex-wrap: nowrap;
  17045. align-items: center;
  17046. padding: 10px 10px 10px 0;
  17047. cursor: pointer;
  17048. background: #ffffff;
  17049. width: 95%;
  17050. margin: 5px auto 5px;
  17051. box-sizing: border-box;
  17052. border-radius: 5px;
  17053. flex-wrap: wrap;
  17054. position: relative;
  17055. }
  17056. .navStage:hover > .chapter_upload_drag {
  17057. display: block;
  17058. }
  17059. .navTask:hover > .chapter_upload_drag {
  17060. display: block;
  17061. }
  17062. .chapter_upload:hover > .chapter_upload_drag {
  17063. display: block;
  17064. }
  17065. .navStage::before {
  17066. content: "";
  17067. display: block;
  17068. width: 16px;
  17069. height: 16px;
  17070. background-image: url(../../assets/icon/new/icon_stage.png);
  17071. background-size: 100%;
  17072. margin-left: 25px;
  17073. }
  17074. .navStage .chapter_unit_open {
  17075. content: "";
  17076. display: block;
  17077. width: 16px;
  17078. height: 16px;
  17079. background-image: url(../../assets/icon/new/down.png);
  17080. transform: rotate(-90deg);
  17081. background-size: 100%;
  17082. margin-left: 10px;
  17083. transition: all 0.5s;
  17084. }
  17085. .isNavStageOpen .chapter_unit_open {
  17086. transform: rotate(0deg);
  17087. }
  17088. .isNavStage {
  17089. background: #0061ff;
  17090. }
  17091. .isNavStage::before {
  17092. background-image: url(../../assets/icon/new/icon_stage_a.png);
  17093. }
  17094. .isNavStage .chapter_unit_open {
  17095. background-image: url(../../assets/icon/new/downC.png);
  17096. }
  17097. .isNavStage .nt_taskName {
  17098. font-weight: bold !important;
  17099. color: #ffffff !important;
  17100. }
  17101. .isNavStage .nt_taskTitle {
  17102. font-weight: bold !important;
  17103. color: #fff !important;
  17104. }
  17105. .navStage .nt_taskBox {
  17106. width: calc(100% - 68px);
  17107. padding: 0 0 0 5px;
  17108. box-sizing: border-box;
  17109. box-sizing: border-box;
  17110. display: flex;
  17111. flex-direction: row;
  17112. flex-wrap: nowrap;
  17113. align-items: baseline;
  17114. }
  17115. .navStage .nt_taskTitle {
  17116. color: #060e17;
  17117. line-height: 25px;
  17118. font-size: 16px;
  17119. }
  17120. .navStage .nt_taskName {
  17121. max-width: calc(100% - 82px);
  17122. white-space: nowrap;
  17123. overflow: hidden;
  17124. text-overflow: ellipsis;
  17125. font-size: 16px;
  17126. color: #060e17;
  17127. }
  17128. .navTask {
  17129. display: flex;
  17130. flex-direction: row;
  17131. flex-wrap: nowrap;
  17132. align-items: center;
  17133. padding: 10px 10px 10px 0;
  17134. cursor: pointer;
  17135. background: #ffffff;
  17136. width: 95%;
  17137. margin: 5px auto 5px;
  17138. box-sizing: border-box;
  17139. border-radius: 5px;
  17140. flex-wrap: wrap;
  17141. position: relative;
  17142. }
  17143. .navTask .chapter_upload_open {
  17144. content: "";
  17145. display: block;
  17146. width: 16px;
  17147. height: 16px;
  17148. background-image: url(../../assets/icon/new/icon_arrow.png);
  17149. background-size: 100%;
  17150. margin-left: 23px;
  17151. }
  17152. .noImage .chapter_upload_open {
  17153. display: none;
  17154. background-image: unset !important;
  17155. }
  17156. .isNavOpen .chapter_upload_open {
  17157. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  17158. transform: rotate(90deg);
  17159. }
  17160. .isNavTask .chapter_upload_open {
  17161. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  17162. transform: rotate(-90deg);
  17163. }
  17164. .isNavTask.isNavOpen .chapter_upload_open {
  17165. transform: rotate(0deg);
  17166. }
  17167. .dragOverTop {
  17168. border-top: 2px solid #0061ff !important;
  17169. border-radius: 0 !important;
  17170. margin-top: 10px;
  17171. }
  17172. .dragOverBottom {
  17173. border-bottom: 2px solid #0061ff !important;
  17174. border-radius: 0 !important;
  17175. margin-top: 10px;
  17176. }
  17177. .dragOverTop2 {
  17178. border-top: 2px solid #0061ff !important;
  17179. border-radius: 0 !important;
  17180. }
  17181. .dragOverBottom2 {
  17182. border-bottom: 2px solid #0061ff !important;
  17183. border-radius: 0 !important;
  17184. }
  17185. .isNavTask {
  17186. /* background: #3681FC; */
  17187. background: #eef3fb;
  17188. }
  17189. .isNavTask > .chapter_upload_drag {
  17190. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  17191. }
  17192. .isNavTask .nt_taskName {
  17193. /* color: #fff !important; */
  17194. font-weight: bold !important;
  17195. color: #0061ff !important;
  17196. }
  17197. .isNavTask .nt_taskTitle {
  17198. /* color: #AECCFE !important; */
  17199. font-weight: bold !important;
  17200. color: #0061ff !important;
  17201. }
  17202. .navTask .nt_taskBox {
  17203. width: calc(100% - 40px);
  17204. padding: 0 0 0 5px;
  17205. box-sizing: border-box;
  17206. box-sizing: border-box;
  17207. display: flex;
  17208. flex-direction: row;
  17209. flex-wrap: nowrap;
  17210. align-items: baseline;
  17211. }
  17212. .navTask .nt_taskTitle {
  17213. /* color: #717C8D; */
  17214. color: #060e17;
  17215. line-height: 25px;
  17216. font-size: 16px;
  17217. /* min-width: 66px; */
  17218. }
  17219. .navTask .nt_taskName {
  17220. /* color: #fff; */
  17221. /* max-width: 130px; */
  17222. /* width: 100%; */
  17223. max-width: calc(100% - 66px);
  17224. font-size: 16px;
  17225. color: #060e17;
  17226. /* color: #0E1E33; */
  17227. }
  17228. .navTask .nt_taskName span {
  17229. width: 100%;
  17230. white-space: nowrap;
  17231. overflow: hidden;
  17232. text-overflow: ellipsis;
  17233. display: block;
  17234. }
  17235. .gjBox {
  17236. width: calc(100% - 25px);
  17237. padding: 0 0 0 0;
  17238. box-sizing: border-box;
  17239. border-left: 1px solid #cad1dc;
  17240. margin-left: 25px;
  17241. }
  17242. .gjBox > div {
  17243. display: flex;
  17244. align-items: center;
  17245. }
  17246. .gjBox > div::before {
  17247. content: "";
  17248. height: 1px;
  17249. width: 10px;
  17250. background: #cad1dc;
  17251. display: block;
  17252. margin-right: 5px;
  17253. }
  17254. .gjCss {
  17255. display: flex;
  17256. flex-direction: row;
  17257. flex-wrap: nowrap;
  17258. align-items: center;
  17259. padding: 15px 0;
  17260. box-sizing: border-box;
  17261. font-size: 14px;
  17262. cursor: pointer;
  17263. }
  17264. .isGjCss {
  17265. color: #0061ff;
  17266. }
  17267. .groupBox {
  17268. }
  17269. .groupContent + .groupContent {
  17270. margin-top: 30px;
  17271. }
  17272. .groupTitle {
  17273. font-size: 24px;
  17274. color: rgb(80, 80, 80);
  17275. margin-bottom: 20px;
  17276. }
  17277. .groupName {
  17278. display: flex;
  17279. align-items: center;
  17280. }
  17281. .groupn {
  17282. font-size: 15px;
  17283. margin-right: 10px;
  17284. }
  17285. .groupName + .groupName {
  17286. margin-top: 15px;
  17287. }
  17288. .groupBtn {
  17289. margin-left: 10px;
  17290. }
  17291. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  17292. text-align: left;
  17293. }
  17294. .radioBox > div {
  17295. margin: 10px 0 0 10px;
  17296. }
  17297. .radioBox >>> .el-radio__input,
  17298. .radioBox >>> .el-checkbox__inner {
  17299. margin-left: 10px;
  17300. }
  17301. .radioBox >>> .el-radio__label,
  17302. .radioBox >>> .el-checkbox__label {
  17303. display: flex;
  17304. align-items: center;
  17305. }
  17306. .inImg {
  17307. width: 50px;
  17308. }
  17309. .inImg > img {
  17310. width: 100%;
  17311. height: 100%;
  17312. object-fit: cover;
  17313. }
  17314. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  17315. height: auto;
  17316. padding: 10px;
  17317. margin: 0;
  17318. }
  17319. .upCss >>> .el-upload-list {
  17320. width: 100%;
  17321. }
  17322. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  17323. width: 100%;
  17324. height: 120px;
  17325. object-fit: contain;
  17326. background: unset;
  17327. margin-left: 0;
  17328. }
  17329. .upCss
  17330. >>> .el-upload-list--picture
  17331. .el-upload-list__item.is-success
  17332. .el-upload-list__item-name {
  17333. display: none;
  17334. }
  17335. .tcMember + .tcMember::before {
  17336. content: "、";
  17337. }
  17338. .xzUpImg {
  17339. width: 25px;
  17340. height: 25px;
  17341. min-width: 25px;
  17342. min-height: 25px;
  17343. cursor: pointer;
  17344. margin: 0 10px;
  17345. }
  17346. .xzUpImg > img {
  17347. width: 100%;
  17348. height: 100%;
  17349. }
  17350. .closeCss {
  17351. position: absolute;
  17352. top: 8px;
  17353. right: 8px;
  17354. cursor: pointer;
  17355. width: 20px;
  17356. height: 20px;
  17357. }
  17358. .closeCss > img {
  17359. width: 100%;
  17360. height: 100%;
  17361. }
  17362. .moveBtn {
  17363. display: flex;
  17364. flex-direction: row;
  17365. flex-wrap: nowrap;
  17366. align-items: center;
  17367. width: 55px;
  17368. }
  17369. .timuUpImg {
  17370. display: flex;
  17371. flex-direction: row;
  17372. align-items: center;
  17373. width: 100%;
  17374. margin-right: 10px;
  17375. }
  17376. .timuUpImg > div:nth-child(1) {
  17377. margin-right: 10px;
  17378. display: flex;
  17379. align-items: center;
  17380. width: 100%;
  17381. }
  17382. .timuImgBox {
  17383. margin: 10px 0;
  17384. display: flex;
  17385. flex-direction: column;
  17386. flex-wrap: wrap;
  17387. align-items: flex-start;
  17388. }
  17389. .timuImg {
  17390. width: 100px;
  17391. margin: 5px 0;
  17392. cursor: pointer;
  17393. position: relative;
  17394. }
  17395. .timuImg:hover .deleteWord {
  17396. display: block;
  17397. }
  17398. .deleteWord {
  17399. width: 25px;
  17400. height: 25px;
  17401. position: absolute;
  17402. right: -5px;
  17403. top: -5px;
  17404. cursor: pointer;
  17405. display: none;
  17406. }
  17407. .timuImg > img,
  17408. .deleteWord > img {
  17409. width: 100%;
  17410. height: 100%;
  17411. object-fit: cover;
  17412. }
  17413. .e_add_delete {
  17414. cursor: pointer;
  17415. margin-left: 10px;
  17416. }
  17417. .pType_box {
  17418. margin-top: 30px;
  17419. align-items: flex-end;
  17420. }
  17421. .noneBox {
  17422. height: 200px;
  17423. width: 100%;
  17424. display: flex;
  17425. align-items: center;
  17426. justify-content: center;
  17427. flex-direction: column;
  17428. /* margin-top: 150px; */
  17429. }
  17430. .noneBox > img {
  17431. width: 95px;
  17432. }
  17433. .noneBox > span {
  17434. margin-top: 10px;
  17435. color: #717c8d;
  17436. }
  17437. .rb_c_box {
  17438. width: 100%;
  17439. height: 100%;
  17440. display: flex;
  17441. /* padding: 20px; */
  17442. box-sizing: border-box;
  17443. justify-content: space-between;
  17444. }
  17445. .rb_c_box_left {
  17446. height: 100%;
  17447. background: #fff;
  17448. width: 270px;
  17449. min-width: 270px;
  17450. border-radius: 8px;
  17451. margin-right: 10px;
  17452. }
  17453. .rb_c_box_right {
  17454. height: 100%;
  17455. width: calc(100%);
  17456. overflow: hidden;
  17457. }
  17458. .rb_c_box_btn {
  17459. display: flex;
  17460. justify-content: flex-start;
  17461. height: 50px;
  17462. align-items: center;
  17463. }
  17464. .rb_c_box_right > .basic_box {
  17465. /* background: #fff; */
  17466. border-radius: 0;
  17467. height: calc(100% - 0px);
  17468. overflow: auto;
  17469. padding: 0;
  17470. }
  17471. .textarea_css {
  17472. display: block;
  17473. resize: none;
  17474. padding: 10px 15px;
  17475. line-height: 1.5;
  17476. box-sizing: border-box;
  17477. width: 100%;
  17478. font-size: 14px;
  17479. color: #606266;
  17480. background-color: #fff;
  17481. background-image: none;
  17482. border: 1px solid #dcdfe6;
  17483. border-radius: 4px;
  17484. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  17485. outline: none;
  17486. overflow: hidden;
  17487. height: 46px;
  17488. font-family: "Microsoft YaHei";
  17489. }
  17490. .textarea_css::-webkit-input-placeholder {
  17491. color: #c0c4cc;
  17492. }
  17493. .textarea_css:focus {
  17494. border-color: #409eff;
  17495. outline: 0;
  17496. }
  17497. .addEditor >>> .text {
  17498. height: auto;
  17499. min-height: 100px;
  17500. }
  17501. .addEditor >>> .w-e-text-container {
  17502. min-height: 100px;
  17503. }
  17504. .moveBtn2 {
  17505. flex-direction: column;
  17506. width: fit-content;
  17507. margin: 0 10px 0 10px;
  17508. }
  17509. .moveBtn2 .chapter_upload_down,
  17510. .moveBtn2 .chapter_upload_up {
  17511. width: 16px;
  17512. height: 16px;
  17513. }
  17514. .moveBtn2 .chapter_upload_up::after,
  17515. .moveBtn2 .chapter_upload_down::after {
  17516. width: 10px;
  17517. height: 10px;
  17518. }
  17519. .fullStyle >>> .el-dialog__body {
  17520. height: calc(100% - 125px) !important;
  17521. box-sizing: border-box;
  17522. }
  17523. .fullStyle1 >>> .el-dialog__body {
  17524. height: auto !important;
  17525. }
  17526. .fullStyle >>> .el-dialog {
  17527. width: 100% !important;
  17528. max-width: 100% !important;
  17529. height: 100% !important;
  17530. margin: 0 !important;
  17531. }
  17532. .fullStyle {
  17533. width: 100% !important;
  17534. max-width: 100% !important;
  17535. height: 100% !important;
  17536. margin: 0 auto !important;
  17537. }
  17538. .wb_j_box_btn {
  17539. width: calc(100% - 30px);
  17540. display: flex;
  17541. height: 40px;
  17542. border: 1.5px solid #cad1dc;
  17543. border-radius: 4px;
  17544. box-sizing: border-box;
  17545. align-items: center;
  17546. font-size: 14px;
  17547. cursor: pointer;
  17548. overflow: hidden;
  17549. }
  17550. .wb_j_box_btn:hover {
  17551. border: 1.5px solid #0061ff;
  17552. }
  17553. .wb_j_box_title {
  17554. background: #f0f4fa;
  17555. height: 100%;
  17556. line-height: 40px;
  17557. width: 90px;
  17558. text-align: center;
  17559. color: #060e17;
  17560. border-right: 1.5px solid #cad1dc;
  17561. box-sizing: border-box;
  17562. }
  17563. .wb_j_box_btn_c {
  17564. width: calc(100% - 90px);
  17565. padding: 0 35px 0 10px;
  17566. box-sizing: border-box;
  17567. position: relative;
  17568. }
  17569. .wb_j_box_span {
  17570. width: 100%;
  17571. overflow: hidden;
  17572. white-space: nowrap;
  17573. text-overflow: ellipsis;
  17574. word-wrap: break-word;
  17575. color: #717c8d;
  17576. }
  17577. .wb_j_box_arrow {
  17578. content: "";
  17579. width: 14px;
  17580. height: 14px;
  17581. background: url(../../assets/icon/new/u_arrow.png);
  17582. background-size: 100% 100%;
  17583. position: absolute;
  17584. right: 12px;
  17585. top: 50%;
  17586. transform: translateY(-50%);
  17587. }
  17588. .check_classBox {
  17589. height: 400px;
  17590. display: flex;
  17591. border-top: 1.5px solid #e7ebf1;
  17592. border-bottom: 1.5px solid #e7ebf1;
  17593. }
  17594. .check_class_right {
  17595. width: 130px;
  17596. border-right: 1px solid #e7ebf1;
  17597. display: flex;
  17598. align-items: center;
  17599. flex-direction: column;
  17600. height: 100%;
  17601. overflow: auto;
  17602. padding: 15px 0;
  17603. box-sizing: border-box;
  17604. }
  17605. .check_class {
  17606. width: 85%;
  17607. border-radius: 5px;
  17608. height: 30px;
  17609. min-height: 30px;
  17610. line-height: 30px;
  17611. text-align: center;
  17612. padding: 0 10px;
  17613. box-sizing: border-box;
  17614. cursor: pointer;
  17615. white-space: nowrap;
  17616. overflow: hidden;
  17617. text-overflow: ellipsis;
  17618. }
  17619. .check_class.activeX {
  17620. background: #e0eafb;
  17621. color: #3681fc;
  17622. font-weight: 700;
  17623. }
  17624. .check_class + .check_class {
  17625. margin-top: 15px;
  17626. }
  17627. .check_class_left {
  17628. background: #fafafa;
  17629. width: calc(100% - 130px);
  17630. padding: 15px;
  17631. box-sizing: border-box;
  17632. }
  17633. .check_class_all_box {
  17634. display: flex;
  17635. margin-bottom: 10px;
  17636. }
  17637. .all_check {
  17638. display: flex;
  17639. align-items: center;
  17640. padding: 2px 0 0;
  17641. margin-left: 10px;
  17642. }
  17643. .all_check >>> .el-checkbox__label {
  17644. line-height: 18px;
  17645. }
  17646. .check_class_left_title {
  17647. font-size: 16px;
  17648. font-weight: 700;
  17649. }
  17650. .check_class_item {
  17651. display: flex;
  17652. flex-wrap: wrap;
  17653. height: calc(100% - 45px);
  17654. overflow: auto;
  17655. justify-content: flex-start;
  17656. align-items: flex-start;
  17657. align-content: flex-start;
  17658. }
  17659. .class_item:first-child {
  17660. /* margin: 0 15px 15px 67px; */
  17661. }
  17662. .class_item {
  17663. margin: 0 15px 15px 0;
  17664. }
  17665. .class_item:hover >>> .el-checkbox__label {
  17666. color: #409eff;
  17667. }
  17668. .class_item >>> .el-checkbox__label {
  17669. color: #0e1e33;
  17670. }
  17671. .class_item:hover >>> .el-checkbox__inner {
  17672. border-color: #409eff;
  17673. }
  17674. .class_item >>> .el-checkbox,
  17675. .class_item >>> .el-checkbox__input {
  17676. display: flex;
  17677. align-items: center;
  17678. }
  17679. .taskTitle {
  17680. font-size: 20px;
  17681. font-weight: bold;
  17682. margin-bottom: 35px;
  17683. }
  17684. .taskTitle:after {
  17685. content: "";
  17686. width: 100%;
  17687. display: block;
  17688. height: 1px;
  17689. background: #cad1dc;
  17690. position: absolute;
  17691. left: 0;
  17692. margin: 15px 0 0;
  17693. }
  17694. .eva_btn_box {
  17695. margin: 20px 0px 0 0;
  17696. display: flex;
  17697. flex-direction: row;
  17698. flex-wrap: nowrap;
  17699. align-items: center;
  17700. justify-content: space-between;
  17701. width: 100%;
  17702. }
  17703. .eva_btn_left_box {
  17704. display: flex;
  17705. flex-direction: row;
  17706. flex-wrap: nowrap;
  17707. align-items: center;
  17708. }
  17709. .addTypeChoose {
  17710. display: flex;
  17711. flex-direction: row;
  17712. flex-wrap: nowrap;
  17713. align-items: center;
  17714. margin: 15px 0;
  17715. }
  17716. .addTypeBox {
  17717. display: flex;
  17718. flex-direction: column;
  17719. flex-wrap: nowrap;
  17720. align-items: center;
  17721. }
  17722. .addTypeChoose {
  17723. display: flex;
  17724. flex-direction: row;
  17725. flex-wrap: nowrap;
  17726. align-items: center;
  17727. margin: 15px 0;
  17728. }
  17729. .text_panel >>> .text{
  17730. height: 400px;
  17731. }
  17732. </style>