addCourse.vue 631 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834
  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="highSetting"
  178. active-text="高级设置"
  179. style="justify-content: center; width: 200px"
  180. ></el-switch>
  181. <el-switch
  182. v-model="isTeacherSee"
  183. active-text="是否公开此课程"
  184. style="justify-content: center; width: 200px"
  185. ></el-switch>
  186. </div>
  187. </div>
  188. </div>
  189. <div
  190. class="pType_box all_choose"
  191. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  192. >
  193. <span>类型</span>
  194. <!-- 学科+ 主题+ 未来+ -->
  195. <el-radio-group
  196. @change="CourseType2Change"
  197. v-model="pTypeCheckName"
  198. style="display: flex; align-items: center"
  199. >
  200. <div
  201. class="all_choose"
  202. style="width: 100px"
  203. v-for="(item, index) in CourseType2"
  204. :key="index"
  205. >
  206. <el-radio :label="item.name">{{
  207. item.name
  208. }}</el-radio>
  209. </div>
  210. </el-radio-group>
  211. </div>
  212. <div class="both">
  213. <div class="choose" v-if="oid != '91796dfb-8791-11ef-9b30-005056b86db5'">
  214. <div
  215. class="all_choose"
  216. v-for="(item, index) in CourseType[0]"
  217. :key="index"
  218. >
  219. <span
  220. v-if="
  221. CourseTypeJson[item.id].length > 0 &&
  222. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  223. ? pTypeCheck.indexOf(item.id) != -1
  224. : true)
  225. "
  226. >{{ item.name }}:</span
  227. >
  228. <el-checkbox-group
  229. v-model="courseTypeId"
  230. v-if="
  231. CourseTypeJson[item.id].length > 0 &&
  232. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  233. ? pTypeCheck.indexOf(item.id) != -1
  234. : true)
  235. "
  236. >
  237. <el-checkbox
  238. v-for="item1 in CourseTypeJson[item.id]"
  239. :key="item1.id"
  240. :label="item1.id"
  241. >{{ item1.name }}</el-checkbox
  242. >
  243. </el-checkbox-group>
  244. <!-- <div
  245. v-else
  246. style="font-size: 14px; margin-left: -8px"
  247. >
  248. 暂无
  249. </div> -->
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="right_first">
  255. <!-- <div class="ai_box">
  256. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  257. </div> -->
  258. <div
  259. class="c_info_title"
  260. style="padding: 0 0 15px; margin: 0 auto 0 0"
  261. >
  262. 上传封面
  263. </div>
  264. <div style="width: 100%">
  265. <div
  266. class="uploadFm"
  267. @click="choosePicVisible = true"
  268. :class="{ uploadFm2: cover.length }"
  269. >
  270. <img
  271. src="../../../assets/icon/addPoster.png"
  272. alt=""
  273. v-if="cover.length == 0"
  274. />
  275. <img
  276. :src="cover[0].url"
  277. alt=""
  278. class="cover_p"
  279. v-else
  280. />
  281. <div v-if="cover.length == 0">点击添加封面</div>
  282. <div class="cover_mask">
  283. <img
  284. src="../../../assets/icon/new/cover_update.png"
  285. /><span style="margin-top: 5px">修改封面</span>
  286. </div>
  287. </div>
  288. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  289. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  290. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  291. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  292. <i class="el-icon-plus"></i>
  293. </el-upload> -->
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="whiteBg" style="background: #fff; margin: 10px 0">
  301. <div class="whiteBg" style="border-radius: 0" :style="{paddingBottom: highSetting ? '0px' : '15px'}">
  302. <div class="c_info_title">课程权限设置</div>
  303. <div class="wb_j_box">
  304. <div class="wb_j_box_content">
  305. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  306. (dialogVisibleClass = true),
  307. (classSearch = ''),
  308. (gradeId = ''),
  309. getClass()
  310. ">添加班级</button>
  311. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  312. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  313. getClassC(tc) }}</span>
  314. </div> -->
  315. <div
  316. class="wb_j_box_btn"
  317. @click="
  318. (dialogVisibleClass = true),
  319. (classSearch = ''),
  320. (gradeId = ''),
  321. getClass()
  322. "
  323. >
  324. <div class="wb_j_box_title">授课班级</div>
  325. <div class="wb_j_box_btn_c">
  326. <el-tooltip
  327. effect="dark"
  328. :content="getListClassC(checkboxList2)"
  329. placement="top"
  330. v-if="checkboxList2.length"
  331. popper-class="text_tooltip2"
  332. >
  333. <div class="wb_j_box_span">
  334. {{ getListClassC(checkboxList2) }}
  335. </div>
  336. </el-tooltip>
  337. <div v-else class="wb_j_box_span">请选择授课班级</div>
  338. <div class="wb_j_box_arrow"></div>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="wb_j_box_content" v-if="highSetting">
  343. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  344. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  345. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  346. checkBoolean
  347. ? checkboxList3
  348. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  349. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  350. </div> -->
  351. <div class="wb_j_box_btn" @click="openMember">
  352. <div class="wb_j_box_title">协同人员</div>
  353. <div class="wb_j_box_btn_c">
  354. <!-- <el-tooltip
  355. effect="dark"
  356. :content="getListMan2(checkboxList3)"
  357. placement="top"
  358. v-if="checkboxList3.length"
  359. popper-class="text_tooltip2"
  360. > -->
  361. <div class="wb_j_box_span" v-if="checkboxList3.length">
  362. {{ getListMan2(checkboxList3) }}
  363. </div>
  364. <!-- </el-tooltip> -->
  365. <div v-else class="wb_j_box_span">请选择协同人员</div>
  366. <div class="wb_j_box_arrow"></div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="highSetting">
  373. <div class="c_info_title">课程简要描述</div>
  374. <div
  375. style="width: 100%; padding: 0px 20px; box-sizing: border-box"
  376. >
  377. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  378. <textarea
  379. v-autoHeight="68"
  380. rows="2"
  381. class="binfo_input binfo_textarea"
  382. cols
  383. v-model="courseText"
  384. placeholder="请输入课程简要描述"
  385. ></textarea>
  386. </div>
  387. </div>
  388. </div>
  389. <div
  390. class="whiteBg"
  391. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  392. v-if="highSetting"
  393. >
  394. <div class="c_info_title">目标管理</div>
  395. <div style="margin: 0 auto; padding: 0 20px">
  396. <div
  397. style="
  398. width: 95%;
  399. min-height: 200px;
  400. border: 1px solid #cad1dc;
  401. border-radius: 4px;
  402. position: relative;
  403. "
  404. >
  405. <div class="e_add_top">
  406. <div class="e_add_title">
  407. <button
  408. class="c_pub_button_delete pub_btn_delete_img"
  409. @click="deleteEva()"
  410. v-if="evalua"
  411. >
  412. 清除
  413. </button>
  414. <button
  415. class="c_pub_button_confirm pub_btn_add_img2"
  416. @click="dialogVisiblemb = true"
  417. >
  418. 添加
  419. </button>
  420. <!-- <span>当前使用目标管理</span>
  421. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  422. <img
  423. src="../../../assets/line.png"
  424. class="cru_line"
  425. style="
  426. width: 125px;
  427. height: 20px;
  428. bottom: -10px;
  429. left: 155px;
  430. "
  431. /> -->
  432. </div>
  433. <div
  434. style="
  435. display: flex;
  436. flex-direction: row;
  437. align-items: center;
  438. "
  439. >
  440. <!-- <el-button
  441. type="primary"
  442. size="small"
  443. @click="dialogVisiblemb = true"
  444. >添加目标管理</el-button
  445. >
  446. <el-button
  447. type="primary"
  448. size="small"
  449. @click="deleteEva()"
  450. >清除内容</el-button
  451. > -->
  452. <!-- <div class="e_add_delete" @click="deleteEva()">
  453. <img src="../../../assets/icon/delete.png" alt="" />
  454. </div> -->
  455. </div>
  456. </div>
  457. <div v-if="evalua == ''">
  458. <div class="noneBox">
  459. <img src="../../../assets/icon/new/eva_none.png" />
  460. <span>请添加目标管理</span>
  461. </div>
  462. </div>
  463. <div class="e_add_content" v-else>
  464. <div class="e_add_list_pbox">
  465. <div class="e_add_list_pbox_title">
  466. <span class="type_title">切换模式</span>
  467. <div class="type_content">
  468. <span
  469. :class="{ active: typeMode == 1 }"
  470. @click="OtherMb(1)"
  471. >目标树</span
  472. >
  473. <span
  474. :class="{ active: typeMode == 2 }"
  475. @click="OtherMb(2)"
  476. >目标罗盘</span
  477. >
  478. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  479. </div>
  480. </div>
  481. <div class="e_add_list_pbox_content">
  482. <Mind
  483. :showBar="false"
  484. :mindData="data"
  485. v-if="typeMode == 1"
  486. ></Mind>
  487. <Sunburst
  488. :Josn="eJson"
  489. :num="eJSONNum"
  490. style="width: 100%"
  491. v-if="typeMode == 2"
  492. ></Sunburst>
  493. <SeeBoard
  494. :Josn="eJson"
  495. :num="eJSONNum"
  496. :ename="eTitle"
  497. style="width: 100%"
  498. v-if="typeMode == 3"
  499. >
  500. </SeeBoard>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. <div class="rb_c_box">
  509. <div
  510. class="rb_c_box_left"
  511. v-if="unitJson[unitIndex].easy != 1"
  512. >
  513. <div class="stepsBottom">
  514. <!-- <div class="navTop">辅助导航</div> -->
  515. <div class="navBottom" v-if="courseState == 2">
  516. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  517. <div class="nt_taskBox" style="width: 100%;">
  518. <div class="nt_taskTitle"
  519. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  520. unitIndex + 1 }}</div>
  521. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  522. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  523. <span>{{ unitJson[unitIndex].dyName }}</span>
  524. </el-tooltip>
  525. </div>
  526. </div>
  527. </div> -->
  528. <div
  529. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  530. .taskJson"
  531. :key="tIndex"
  532. :class="{
  533. dragOverTop:
  534. newIndex === tIndex &&
  535. typeIndex == 'task-' + tIndex &&
  536. oldIndex > tIndex &&
  537. dragType == 'task',
  538. dragOverBottom:
  539. newIndex === tIndex &&
  540. typeIndex == 'task-' + tIndex &&
  541. oldIndex < tIndex &&
  542. dragType == 'task',
  543. }"
  544. >
  545. <div
  546. @dragstart="dragTaskStart(t, tIndex, 0)"
  547. @dragover.prevent="dragTaskOver(tIndex, 0)"
  548. @dragend="dragTaskEnd()"
  549. :draggable="isdrag == 'task-' + tIndex"
  550. @click="goToTask(tIndex)"
  551. class="navTask"
  552. :class="{
  553. isNavTask:
  554. isClickColor > 0 && isClickColor == tIndex + 1,
  555. isNavOpen: t.toolOpen,
  556. }"
  557. >
  558. <div
  559. @click.stop="taskOpen(tIndex, 0)"
  560. class="chapter_upload_open"
  561. ></div>
  562. <div
  563. @mousedown="isdrag = 'task-' + tIndex"
  564. @mouseup="isdrag = ''"
  565. @touchstart="isdrag = 'task-' + tIndex"
  566. @touchend="isdrag = ''"
  567. style="left: 8px"
  568. class="chapter_upload_drag"
  569. ></div>
  570. <div class="nt_taskBox">
  571. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  572. <div class="nt_taskName">
  573. <el-tooltip
  574. effect="light"
  575. :content="t.task ? t.task : '未命名任务'"
  576. placement="top"
  577. >
  578. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  579. </el-tooltip>
  580. </div>
  581. </div>
  582. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  583. 1
  584. ">
  585. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  586. @click.stop="taskMove(1, tIndex)"></div>
  587. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  588. @click.stop="taskMove(2, tIndex)"></div>
  589. </div> -->
  590. </div>
  591. <div
  592. class="gjBox"
  593. v-if="t.toolChoose.length && t.toolOpen"
  594. >
  595. <div
  596. v-for="(tool, toolIndex2) in t.toolChoose"
  597. :key="toolIndex2"
  598. @click="jumpGj(tIndex, toolIndex2)"
  599. >
  600. <div
  601. class="gjCss"
  602. :class="{
  603. isGjCss:
  604. toolIndexType == `gj${tIndex}${toolIndex2}`,
  605. }"
  606. >
  607. <div>工具{{ toolIndex2 + 1 }}:</div>
  608. <div>
  609. {{
  610. toolsData[tool.tool[0]] &&
  611. toolsData[tool.tool[0]].name
  612. }}
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. <div class="navBottom" v-if="courseState == 1">
  620. <div
  621. v-for="(stage, stageIndex) in unitJson"
  622. :key="stageIndex"
  623. class="stageBox"
  624. :class="{
  625. dragOverTop:
  626. newIndex === stageIndex &&
  627. typeIndex == 'Unit-' + stageIndex &&
  628. oldIndex > stageIndex &&
  629. dragType == 'Unit',
  630. dragOverBottom:
  631. newIndex === stageIndex &&
  632. typeIndex == 'Unit-' + stageIndex &&
  633. oldIndex < stageIndex &&
  634. dragType == 'Unit',
  635. }"
  636. >
  637. <div
  638. @dragstart="dragUnitStart(stage, stageIndex)"
  639. @dragover.prevent="dragUnitOver(stageIndex)"
  640. @dragend="dragUnitEnd()"
  641. :draggable="isdrag == 'unit-' + stageIndex"
  642. @click="unitSet2(stageIndex)"
  643. class="navStage"
  644. :class="{
  645. isNavStage: stageIndex == unitIndex,
  646. isNavStageOpen: stage.toolOpen,
  647. }"
  648. >
  649. <div
  650. @mousedown="isdrag = 'unit-' + stageIndex"
  651. @mouseup="isdrag = ''"
  652. @touchstart="isdrag = 'unit-' + stageIndex"
  653. @touchend="isdrag = ''"
  654. style="left: 8px"
  655. class="chapter_upload_drag"
  656. ></div>
  657. <div class="nt_taskBox">
  658. <div class="nt_taskTitle">
  659. 第{{ stageIndex + 1 }}阶段:
  660. </div>
  661. <div class="nt_taskName">
  662. <el-tooltip
  663. effect="light"
  664. :content="
  665. stage.dyName ? stage.dyName : '未命名阶段'
  666. "
  667. placement="top"
  668. >
  669. <span>{{
  670. stage.dyName ? stage.dyName : "未命名阶段"
  671. }}</span>
  672. </el-tooltip>
  673. </div>
  674. </div>
  675. <div
  676. @click.stop="unitOpen(stageIndex)"
  677. class="chapter_unit_open"
  678. ></div>
  679. </div>
  680. <div
  681. v-for="(t, tIndex) in unitJson[stageIndex]
  682. .chapterInfo[0].taskJson"
  683. :key="`${stageIndex}-${tIndex}`"
  684. :class="{
  685. dragOverTop:
  686. newIndex === tIndex &&
  687. typeIndex == 'task-' + tIndex &&
  688. ((oldIndex > tIndex &&
  689. stageIndex == checkUnitIndex) ||
  690. (oldIndex == tIndex &&
  691. stageIndex == checkUnitIndex &&
  692. checkUnitIndex != oldUnitIndex)) &&
  693. dragType == 'task',
  694. dragOverBottom:
  695. newIndex === tIndex &&
  696. typeIndex == 'task-' + tIndex &&
  697. oldIndex < tIndex &&
  698. stageIndex == checkUnitIndex &&
  699. dragType == 'task',
  700. }"
  701. :style="{ display: stage.toolOpen ? 'block' : 'none' }"
  702. >
  703. <div
  704. @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  705. @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  706. @dragend="dragTaskEnd()"
  707. :draggable="
  708. isdrag == 'task-' + stageIndex + '-' + tIndex
  709. "
  710. @click="goToTask2(tIndex, stageIndex)"
  711. class="navTask"
  712. style="padding-left: 12px"
  713. :class="{
  714. isNavTask:
  715. isClickColor > 0 &&
  716. isClickColor == tIndex + 1 &&
  717. stageIndex == unitIndex,
  718. isNavOpen: t.toolOpen,
  719. }"
  720. >
  721. <div
  722. @click.stop="taskOpen(tIndex, stageIndex)"
  723. class="chapter_upload_open"
  724. ></div>
  725. <div
  726. @mousedown="
  727. isdrag = 'task-' + stageIndex + '-' + tIndex
  728. "
  729. @mouseup="isdrag = ''"
  730. @touchstart="
  731. isdrag = 'task-' + stageIndex + '-' + tIndex
  732. "
  733. @touchend="isdrag = ''"
  734. style="left: 20px"
  735. class="chapter_upload_drag"
  736. ></div>
  737. <div
  738. class="nt_taskBox"
  739. style="width: calc(100% - 52px)"
  740. >
  741. <div class="nt_taskTitle">
  742. 任务{{ tIndex + 1 }}:
  743. </div>
  744. <div class="nt_taskName">
  745. <el-tooltip
  746. effect="light"
  747. :content="t.task ? t.task : '未命名任务'"
  748. placement="top"
  749. >
  750. <span>{{
  751. t.task ? t.task : "未命名任务"
  752. }}</span>
  753. </el-tooltip>
  754. </div>
  755. </div>
  756. </div>
  757. <div
  758. class="gjBox"
  759. v-if="t.toolChoose.length && t.toolOpen"
  760. >
  761. <div
  762. v-for="(tool, toolIndex2) in t.toolChoose"
  763. :key="toolIndex2"
  764. @click="jumpGj2(tIndex, toolIndex2, stageIndex)"
  765. >
  766. <div
  767. class="gjCss"
  768. :class="{
  769. isGjCss:
  770. toolIndexType ==
  771. `gj${tIndex}${toolIndex2}${stageIndex}`,
  772. }"
  773. >
  774. <div>工具{{ toolIndex2 + 1 }}:</div>
  775. <div>
  776. {{
  777. toolsData[tool.tool[0]] &&
  778. toolsData[tool.tool[0]].name
  779. }}
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="rb_c_box_right">
  790. <!-- <div class="rb_c_box_btn">
  791. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  792. </div> -->
  793. <div class="basic_box" ref="unitBox">
  794. <div
  795. style="
  796. display: flex;
  797. flex-direction: row;
  798. align-items: center;
  799. position: sticky;
  800. top: 0;
  801. z-index: 99;
  802. width: 100%;
  803. padding: 0 20px 0 20px;
  804. box-sizing: border-box;
  805. background: #fff;
  806. border-radius: 8px;
  807. "
  808. >
  809. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  810. <div
  811. class="cru_selectBox"
  812. :style="{
  813. maxWidth: isPasteTask
  814. ? 'calc(100% - 335px)'
  815. : 'calc(100% - 190px)',
  816. }"
  817. v-if="courseState == 1"
  818. >
  819. <div
  820. v-for="(item, index) in unitJson"
  821. :key="index"
  822. class="cru_select"
  823. :class="unitIndex == index ? 'cru_selected' : ''"
  824. @click="unitSet(index)"
  825. >
  826. <!-- item.dyName ? item.dyName : -->
  827. <span
  828. v-if="
  829. unitJson[unitJson.length - 1].easy == 4 ||
  830. unitJson[unitJson.length - 1].easy == 6
  831. "
  832. >{{
  833. item.dyName
  834. ? item.dyName
  835. : "第" + (index + 1) + "阶段"
  836. }}</span
  837. >
  838. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  839. </div>
  840. <div
  841. class="cru_line"
  842. :style="{
  843. left: offsetLetfPx + 'px',
  844. }"
  845. ></div>
  846. </div>
  847. <div
  848. class="addStageImg"
  849. @click="addunit()"
  850. v-if="
  851. !(unitJson[unitJson.length - 1].easy == 4) &&
  852. !(unitJson[unitJson.length - 1].easy == 6) &&
  853. courseState == 1
  854. "
  855. >
  856. <img src="../../../assets/icon/new/addStage.png" alt />
  857. </div>
  858. <button
  859. class="c_pub_button_add pub_btn_add_img"
  860. @click="updateCourseState(1)"
  861. v-if="courseState == 2"
  862. style="margin: 15px 0"
  863. >
  864. 新建阶段
  865. </button>
  866. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  867. <button
  868. class="c_pub_button_add"
  869. @click="openStageBox"
  870. v-show="false"
  871. style="margin: 0 0 0 auto"
  872. >
  873. 阶段顺序
  874. </button>
  875. <button
  876. class="c_pub_button_add pub_btn_paste_img"
  877. @click="pasteTask()"
  878. v-if="steps == 3 && isPasteTask"
  879. style="margin: 0 0 0 auto"
  880. >
  881. 智能粘贴
  882. </button>
  883. <button
  884. class="c_pub_button_confirm pub_btn_template_img"
  885. @click="openTemplate"
  886. :style="{
  887. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  888. }"
  889. style="padding: 0 12px"
  890. >
  891. 选择课程模板
  892. </button>
  893. </div>
  894. <div
  895. style="margin: 0 0 10px 0; padding: 0"
  896. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  897. :key="index"
  898. >
  899. <div class="chapter_box" v-if="courseState == 1">
  900. <div class="chapter_contentbox">
  901. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  902. <div class="cc_input">
  903. <input
  904. ref="dyInput"
  905. type="text"
  906. placeholder="请输入阶段标题"
  907. class="binfo_input"
  908. v-model="unitJson[unitIndex].dyName"
  909. />
  910. </div>
  911. <div
  912. class="remove"
  913. v-if="
  914. (unitJson.length > 1 || courseState != 2) &&
  915. !(unitJson[unitJson.length - 1].easy == 4) &&
  916. !(unitJson[unitJson.length - 1].easy == 6)
  917. "
  918. @click="deleteUnit(unitIndex)"
  919. ></div>
  920. </div>
  921. </div>
  922. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  923. margin: 50px 0px 10px;
  924. font-size: 1.5em;
  925. font-weight: 700;
  926. color: #0f7eff;
  927. ">
  928. 添加任务
  929. </div> -->
  930. <div
  931. class="taskBorder"
  932. :style="{
  933. minHeight: unitJson[unitIndex].easy && 'unset',
  934. }"
  935. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  936. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  937. :key="itemTaskIndex"
  938. >
  939. <div style="background: #fff; border-radius: 5px">
  940. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  941. <!-- padding: 20px; -->
  942. <div v-if="unitJson[unitIndex].easy != 1">
  943. <div
  944. :style="{
  945. marginBottom:
  946. unitJson[unitIndex].easy == 3 ||
  947. (unitJson[unitIndex].easy == 5 &&
  948. itemTask.taskType == 1)
  949. ? '75px'
  950. : '0',
  951. }"
  952. >
  953. <div
  954. style="
  955. display: flex;
  956. margin: 0px 0 20px;
  957. flex-direction: row;
  958. justify-content: flex-start;
  959. align-items: center;
  960. "
  961. >
  962. <div class="lineTitle">任务概述</div>
  963. </div>
  964. <div
  965. :id="'task' + itemTaskIndex"
  966. class="chapter_contentbox"
  967. style="
  968. flex-direction: row;
  969. justify-content: flex-start;
  970. align-items: center;
  971. margin: 0;
  972. "
  973. >
  974. <!-- <div class="cc_title">
  975. 任务{{ itemTaskIndex + 1 }}
  976. </div> -->
  977. <div class="cc_input">
  978. <input
  979. type="text"
  980. placeholder="输入任务名称"
  981. class="binfo_input"
  982. style="border-radius: 4px"
  983. v-model="
  984. unitJson[unitIndex].chapterInfo[0].taskJson[
  985. itemTaskIndex
  986. ].task
  987. "
  988. />
  989. </div>
  990. <div
  991. class="remove"
  992. v-if="
  993. item.taskJson.length > 1 &&
  994. (!unitJson[unitIndex].easy ||
  995. unitJson[unitIndex].easy == 6)
  996. "
  997. @click="deleteTask(itemTaskIndex)"
  998. ></div>
  999. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1000. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1001. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1002. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1003. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1004. </div> -->
  1005. </div>
  1006. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1007. display: flex;
  1008. margin: 20px 0;
  1009. flex-direction: row;
  1010. justify-content: flex-start;
  1011. align-items: center;
  1012. ">
  1013. <div class="lineTitle">任务描述</div>
  1014. </div> && !itemTask.isFold2-->
  1015. <div
  1016. v-if="
  1017. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1018. -1
  1019. "
  1020. style="margin-top: 20px"
  1021. >
  1022. <div style="margin-bottom: 5px;">提示:如输入数学公式需加$符号包裹。例:$a^2 + b^2 = c^2$</div>
  1023. <editor-bar
  1024. class="addEditor"
  1025. style="margin: 0"
  1026. placeholder="请输入任务描述"
  1027. v-model="
  1028. unitJson[unitIndex].chapterInfo[0].taskJson[
  1029. itemTaskIndex
  1030. ].taskDetail
  1031. "
  1032. @change="change"
  1033. ></editor-bar>
  1034. <!-- <textarea
  1035. rows="6"
  1036. class="binfo_input"
  1037. placeholder="请输入任务描述"
  1038. cols
  1039. style="width: 70.5% !important; height: 120px"
  1040. v-model="
  1041. unitJson[unitIndex].chapterInfo[0].taskJson[
  1042. itemTaskIndex
  1043. ].taskDetail
  1044. "
  1045. ></textarea>-->
  1046. </div>
  1047. </div>
  1048. </div>
  1049. <div
  1050. style="position: relative"
  1051. v-if="
  1052. !unitJson[unitIndex].easy ||
  1053. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1054. "
  1055. >
  1056. <div
  1057. style="
  1058. display: flex;
  1059. flex-direction: row;
  1060. justify-content: space-between;
  1061. align-items: center;
  1062. "
  1063. :style="{
  1064. margin: !itemTask.isFoldchapter
  1065. ? '20px 0 10px'
  1066. : '20px 0 0',
  1067. }"
  1068. >
  1069. <div
  1070. style="margin-bottom: 10px"
  1071. class="lineTitle clineTitle"
  1072. >
  1073. 学习内容
  1074. </div>
  1075. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1076. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1077. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1078. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1079. <!-- <div class="line"></div> -->
  1080. </div>
  1081. <!-- v-if="!itemTask.isFoldchapter" -->
  1082. <div>
  1083. <div
  1084. class="add_chapters_box add_c_none"
  1085. v-if="
  1086. itemTask.chapterData &&
  1087. itemTask.chapterData.length == 0
  1088. "
  1089. >
  1090. <img
  1091. src="../../../assets/icon/new/c_none.png"
  1092. alt
  1093. /><span>请添加学习内容</span>
  1094. </div>
  1095. <div
  1096. v-else
  1097. class="add_chapters_box"
  1098. style="display: flex; flex-direction: column"
  1099. >
  1100. <div
  1101. @dragstart="
  1102. dragStart(item1, index1, itemTaskIndex)
  1103. "
  1104. @dragover.prevent="
  1105. dragOver(index1, itemTaskIndex)
  1106. "
  1107. @dragend="dragEnd()"
  1108. :draggable="
  1109. isdrag ==
  1110. 'chapter-' + itemTaskIndex + '-' + index1
  1111. "
  1112. class="chapter_upload"
  1113. v-for="(item1, index1) in itemTask.chapterData"
  1114. :key="item1.id"
  1115. @click="
  1116. getChapterData(
  1117. $event,
  1118. unitIndex,
  1119. index,
  1120. index1,
  1121. item1.type
  1122. )
  1123. "
  1124. :class="{
  1125. dragOverTop2:
  1126. newIndex === index1 &&
  1127. typeIndex ==
  1128. 'chapter-' +
  1129. itemTaskIndex +
  1130. '-' +
  1131. index1 &&
  1132. oldIndex > index1 &&
  1133. dragType == 'drag',
  1134. dragOverBottom2:
  1135. newIndex === index1 &&
  1136. typeIndex ==
  1137. 'chapter-' +
  1138. itemTaskIndex +
  1139. '-' +
  1140. index1 &&
  1141. oldIndex < index1 &&
  1142. dragType == 'drag',
  1143. }"
  1144. >
  1145. <div
  1146. @mousedown="
  1147. isdrag =
  1148. 'chapter-' + itemTaskIndex + '-' + index1
  1149. "
  1150. @mouseup="isdrag = ''"
  1151. @touchstart="
  1152. isdrag =
  1153. 'chapter-' + itemTaskIndex + '-' + index1
  1154. "
  1155. @touchend="isdrag = ''"
  1156. class="chapter_upload_drag"
  1157. ></div>
  1158. <div
  1159. class="chapter_upload_o"
  1160. style="
  1161. position: relative;
  1162. display: flex;
  1163. align-items: center;
  1164. "
  1165. >
  1166. <div
  1167. class="chapter_upload_l"
  1168. style="padding: 1px 0 0 10px"
  1169. >
  1170. <div
  1171. v-if="item1.type == 2"
  1172. class="chapter_upload_l_i2"
  1173. ></div>
  1174. <div
  1175. v-if="item1.type == 3 || item1.type == 16"
  1176. class="chapter_upload_l_i3"
  1177. style="margin-left: 1px"
  1178. ></div>
  1179. <div
  1180. v-if="item1.type == 6"
  1181. class="chapter_upload_l_i6"
  1182. style="margin-left: 1px"
  1183. ></div>
  1184. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1185. <div
  1186. v-if="item1.type == 8"
  1187. class="chapter_upload_l_i8"
  1188. style="margin-left: 1px"
  1189. ></div>
  1190. <div
  1191. v-if="item1.type == 14"
  1192. class="chapter_upload_l_i14"
  1193. style="margin-left: 1px"
  1194. ></div>
  1195. <div
  1196. v-if="item1.type == 12"
  1197. class="chapter_upload_l_i12"
  1198. style="margin-left: 1px"
  1199. ></div>
  1200. <div
  1201. v-if="item1.type == 13"
  1202. class="chapter_upload_l_i13"
  1203. style="margin-left: 1px"
  1204. ></div>
  1205. <div
  1206. v-if="item1.type == 15"
  1207. class="chapter_upload_l_i15"
  1208. style="margin-left: 1px"
  1209. ></div>
  1210. </div>
  1211. <div class="chapter_upload_n">
  1212. <input
  1213. readonly="true"
  1214. v-if="
  1215. item1.type == 16
  1216. "
  1217. :placeholder="item1.name"
  1218. @click="
  1219. openCodeEditor(1,item1, unitIndex,itemTaskIndex, index1)
  1220. "
  1221. style="
  1222. border: none;
  1223. outline: none;
  1224. width: 80%;
  1225. minwidth: 215px;
  1226. z-index: 99;
  1227. font-size: 14px;
  1228. white-space: nowrap;
  1229. overflow: hidden;
  1230. text-overflow: ellipsis;
  1231. "
  1232. />
  1233. <input
  1234. readonly="true"
  1235. v-if="
  1236. item1.type == 2 ||
  1237. item1.type == 3 ||
  1238. item1.type == 12 ||
  1239. item1.type == 13 ||
  1240. item1.type == 7
  1241. "
  1242. :placeholder="item1.name"
  1243. @click="
  1244. updataVideoT(
  1245. $event,
  1246. unitIndex,
  1247. itemTaskIndex,
  1248. index1
  1249. )
  1250. "
  1251. style="
  1252. border: none;
  1253. outline: none;
  1254. width: 80%;
  1255. minwidth: 215px;
  1256. z-index: 99;
  1257. font-size: 14px;
  1258. white-space: nowrap;
  1259. overflow: hidden;
  1260. text-overflow: ellipsis;
  1261. "
  1262. />
  1263. <input
  1264. :placeholder="item1.name"
  1265. v-if="item1.type == 6"
  1266. style="
  1267. border: none;
  1268. outline: none;
  1269. width: 80%;
  1270. white-space: nowrap;
  1271. overflow: hidden;
  1272. text-overflow: ellipsis;
  1273. "
  1274. readonly="true"
  1275. @click="
  1276. selectAttText(itemTaskIndex, index1)
  1277. "
  1278. />
  1279. <input
  1280. :placeholder="
  1281. item1.title ? item1.title : '链接'
  1282. "
  1283. v-if="item1.type == 8"
  1284. style="
  1285. border: none;
  1286. outline: none;
  1287. width: 80%;
  1288. white-space: nowrap;
  1289. overflow: hidden;
  1290. text-overflow: ellipsis;
  1291. "
  1292. readonly="true"
  1293. @click="selectLine(itemTaskIndex, index1)"
  1294. />
  1295. <input
  1296. :placeholder="
  1297. item1.title ? item1.title : '链接'
  1298. "
  1299. v-if="item1.type == 14"
  1300. style="
  1301. border: none;
  1302. outline: none;
  1303. width: 80%;
  1304. white-space: nowrap;
  1305. overflow: hidden;
  1306. text-overflow: ellipsis;
  1307. "
  1308. readonly="true"
  1309. @click="
  1310. openUpdateSource(itemTaskIndex, index1)
  1311. "
  1312. />
  1313. <input
  1314. :placeholder="
  1315. item1.title ? item1.title : 'Ai应用'
  1316. "
  1317. v-if="item1.type == 15"
  1318. style="
  1319. border: none;
  1320. outline: none;
  1321. width: 80%;
  1322. white-space: nowrap;
  1323. overflow: hidden;
  1324. text-overflow: ellipsis;
  1325. "
  1326. readonly="true"
  1327. @click="selectLine(0, index1)"
  1328. />
  1329. </div>
  1330. <div class="chapter_upload_ic">
  1331. <div
  1332. class="chapter_upload_noSee"
  1333. v-if="item1.type == 12"
  1334. ></div>
  1335. <div
  1336. class="chapter_upload_ud"
  1337. style="z-index: 99"
  1338. >
  1339. <div
  1340. class="chapter_upload_up"
  1341. @click="
  1342. upCd(
  1343. $event,
  1344. unitIndex,
  1345. index,
  1346. itemTaskIndex,
  1347. index1
  1348. )
  1349. "
  1350. ></div>
  1351. <div
  1352. class="chapter_upload_down"
  1353. @click="
  1354. downCd(
  1355. $event,
  1356. unitIndex,
  1357. index,
  1358. itemTaskIndex,
  1359. index1
  1360. )
  1361. "
  1362. ></div>
  1363. </div>
  1364. <div
  1365. class="chapter_upload_ic_edit"
  1366. v-if="
  1367. item1.type == 2 ||
  1368. item1.type == 3 ||
  1369. item1.type == 12 ||
  1370. item1.type == 13 ||
  1371. item1.type == 7
  1372. "
  1373. @click.stop="
  1374. updataVideoT(
  1375. $event,
  1376. unitIndex,
  1377. itemTaskIndex,
  1378. index1
  1379. )
  1380. "
  1381. >
  1382. <div></div>
  1383. </div>
  1384. <div
  1385. class="chapter_upload_ic_edit"
  1386. v-if="
  1387. item1.type == 16
  1388. "
  1389. @click.stop="
  1390. openCodeEditor(1,item1, unitIndex,itemTaskIndex, index1)
  1391. "
  1392. >
  1393. <div></div>
  1394. </div>
  1395. <div
  1396. class="chapter_upload_ic_edit"
  1397. v-if="item1.type == 6"
  1398. @click="
  1399. selectAttText(itemTaskIndex, index1)
  1400. "
  1401. >
  1402. <div></div>
  1403. </div>
  1404. <div
  1405. class="chapter_upload_ic_edit"
  1406. v-if="item1.type == 8 || item1.type == 15"
  1407. @click="selectLine(itemTaskIndex, index1)"
  1408. >
  1409. <div></div>
  1410. </div>
  1411. <div
  1412. class="chapter_upload_ic_edit"
  1413. v-if="item1.type == 14"
  1414. @click="
  1415. openUpdateSource(itemTaskIndex, index1)
  1416. "
  1417. >
  1418. <div></div>
  1419. </div>
  1420. <div
  1421. class="chapter_upload_ic_r"
  1422. @click.stop="
  1423. deleteChapterData(
  1424. $event,
  1425. unitIndex,
  1426. index,
  1427. index1,
  1428. itemTaskIndex
  1429. )
  1430. "
  1431. >
  1432. <div></div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. <!-- v-if="!itemTask.isFoldchapter" -->
  1440. <div class="add_info_box" style="margin: 10px 0 0">
  1441. <button
  1442. class="c_pub_button_add pub_btn_add_img"
  1443. @click="addImg($event)"
  1444. >
  1445. 文件
  1446. <input
  1447. type="file"
  1448. accept="*"
  1449. style="display: none"
  1450. v-if="inputShow"
  1451. @change="
  1452. beforeUpload2(
  1453. $event,
  1454. unitIndex,
  1455. 13,
  1456. itemTaskIndex
  1457. )
  1458. "
  1459. />
  1460. </button>
  1461. <button
  1462. class="c_pub_button_add pub_btn_add_img"
  1463. @click="addAttText(itemTaskIndex)"
  1464. >
  1465. 图文
  1466. </button>
  1467. <button
  1468. class="c_pub_button_add pub_btn_add_img"
  1469. @click="openLine(itemTaskIndex)"
  1470. >
  1471. 链接
  1472. </button>
  1473. <button
  1474. class="c_pub_button_add pub_btn_add_img"
  1475. @click="pasteLine(itemTaskIndex)"
  1476. >
  1477. 代码
  1478. </button>
  1479. <button
  1480. class="c_pub_button_add pub_btn_add_img"
  1481. @click="openSource(itemTaskIndex)"
  1482. >
  1483. 资源
  1484. </button>
  1485. <button
  1486. class="c_pub_button_add pub_btn_add_img"
  1487. @click="openAddApp(itemTaskIndex)"
  1488. >
  1489. 智能应用
  1490. </button>
  1491. <button
  1492. class="c_pub_button_add pub_btn_add_img"
  1493. @click="openCodeEditor(0,'',unitIndex,itemTaskIndex ,'')"
  1494. >
  1495. 代码编辑器
  1496. </button>
  1497. </div>
  1498. <div
  1499. v-if="
  1500. unitJson[unitIndex].chapterInfo[0].taskJson[
  1501. itemTaskIndex
  1502. ].proVisible
  1503. "
  1504. class="mask"
  1505. >
  1506. <div class="progressBox">
  1507. <!-- <div id="closePro" class="closeCss">
  1508. <img src="../../../../assets/icon/close.png" alt />
  1509. </div> -->
  1510. <div class="lbox">
  1511. <img
  1512. src="../../../assets/loading.gif"
  1513. />上传中,请稍后
  1514. </div>
  1515. <div style="margin-bottom: 10px">
  1516. <span
  1517. >{{
  1518. unitJson[unitIndex].chapterInfo[0].taskJson[
  1519. itemTaskIndex
  1520. ].isFinishSize
  1521. }}M</span
  1522. >
  1523. /
  1524. <span
  1525. >{{
  1526. unitJson[unitIndex].chapterInfo[0].taskJson[
  1527. itemTaskIndex
  1528. ].isAllSize
  1529. }}M</span
  1530. >
  1531. </div>
  1532. <el-progress
  1533. :text-inside="true"
  1534. :stroke-width="20"
  1535. :percentage="
  1536. unitJson[unitIndex].chapterInfo[0].taskJson[
  1537. itemTaskIndex
  1538. ].progress
  1539. ? unitJson[unitIndex].chapterInfo[0]
  1540. .taskJson[itemTaskIndex].progress
  1541. : 0
  1542. "
  1543. style="width: 80%"
  1544. ></el-progress>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. <div
  1549. v-if="
  1550. unitJson[unitIndex].easy == 1 ||
  1551. (unitJson[unitIndex].easy == 5 &&
  1552. itemTask.taskType == 2)
  1553. "
  1554. >
  1555. <div>
  1556. <div
  1557. class="add_chapters_box add_c_none"
  1558. v-if="
  1559. itemTask.chapterData &&
  1560. itemTask.chapterData.length == 0
  1561. "
  1562. >
  1563. <img src="../../../assets/icon/new/c_none.png" alt />
  1564. </div>
  1565. <div
  1566. v-else
  1567. class="add_chapters_box"
  1568. style="display: flex; flex-direction: column"
  1569. >
  1570. <div
  1571. @dragstart="dragStart(item1, index1, index)"
  1572. @dragover.prevent="
  1573. dragOver(index1, itemTaskIndex)
  1574. "
  1575. @dragend="dragEnd()"
  1576. :draggable="
  1577. isdrag ==
  1578. 'chapter-' + itemTaskIndex + '-' + index1
  1579. "
  1580. class="chapter_upload"
  1581. v-for="(item1, index1) in itemTask.chapterData"
  1582. :key="item1.id"
  1583. @click="
  1584. getChapterData(
  1585. $event,
  1586. unitIndex,
  1587. index,
  1588. index1,
  1589. item1.type
  1590. )
  1591. "
  1592. :class="{
  1593. dragOverTop2:
  1594. newIndex === index1 &&
  1595. typeIndex ==
  1596. 'chapter-' +
  1597. itemTaskIndex +
  1598. '-' +
  1599. index1 &&
  1600. oldIndex > index1,
  1601. dragOverBottom2:
  1602. newIndex === index1 &&
  1603. typeIndex ==
  1604. 'chapter-' +
  1605. itemTaskIndex +
  1606. '-' +
  1607. index1 &&
  1608. oldIndex < index1,
  1609. }"
  1610. >
  1611. <div
  1612. @mousedown="
  1613. isdrag =
  1614. 'chapter-' + itemTaskIndex + '-' + index1
  1615. "
  1616. @mouseup="isdrag = ''"
  1617. @touchstart="
  1618. isdrag =
  1619. 'chapter-' + itemTaskIndex + '-' + index1
  1620. "
  1621. @touchend="isdrag = ''"
  1622. class="chapter_upload_drag"
  1623. ></div>
  1624. <div
  1625. class="chapter_upload_t"
  1626. style="width: 100%"
  1627. ></div>
  1628. <div
  1629. class="chapter_upload_o"
  1630. style="
  1631. position: relative;
  1632. display: flex;
  1633. align-items: center;
  1634. "
  1635. >
  1636. <div
  1637. class="chapter_upload_l"
  1638. style="padding: 1px 0 0 10px"
  1639. >
  1640. <div
  1641. v-if="item1.type == 2"
  1642. class="chapter_upload_l_i2"
  1643. ></div>
  1644. <div
  1645. v-if="item1.type == 3"
  1646. class="chapter_upload_l_i3"
  1647. style="margin-left: 1px"
  1648. ></div>
  1649. <div
  1650. v-if="item1.type == 6"
  1651. class="chapter_upload_l_i6"
  1652. style="margin-left: 1px"
  1653. ></div>
  1654. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1655. <div
  1656. v-if="item1.type == 8"
  1657. class="chapter_upload_l_i8"
  1658. style="margin-left: 1px"
  1659. ></div>
  1660. <div
  1661. v-if="item1.type == 14"
  1662. class="chapter_upload_l_i14"
  1663. style="margin-left: 1px"
  1664. ></div>
  1665. <div
  1666. v-if="item1.type == 12"
  1667. class="chapter_upload_l_i12"
  1668. style="margin-left: 1px"
  1669. ></div>
  1670. <div
  1671. v-if="item1.type == 13"
  1672. class="chapter_upload_l_i13"
  1673. style="margin-left: 1px"
  1674. ></div>
  1675. <div
  1676. v-if="item1.type == 15"
  1677. class="chapter_upload_l_i15"
  1678. style="margin-left: 1px"
  1679. ></div>
  1680. </div>
  1681. <div class="chapter_upload_n">
  1682. <span
  1683. style="
  1684. font-size: 14px;
  1685. color: rgb(109, 109, 109);
  1686. height: 14px;
  1687. line-height: 14px;
  1688. "
  1689. v-if="
  1690. item1.type == 2 ||
  1691. item1.type == 3 ||
  1692. item1.type == 7
  1693. "
  1694. >{{ item1.text }}-</span
  1695. >
  1696. <input
  1697. readonly="true"
  1698. v-if="
  1699. item1.type == 2 ||
  1700. item1.type == 3 ||
  1701. item1.type == 7
  1702. "
  1703. :placeholder="item1.name"
  1704. @click="
  1705. updataVideoT(
  1706. $event,
  1707. unitIndex,
  1708. itemTaskIndex,
  1709. index1
  1710. )
  1711. "
  1712. style="
  1713. border: none;
  1714. outline: none;
  1715. width: 80%;
  1716. minwidth: 215px;
  1717. z-index: 99;
  1718. font-size: 14px;
  1719. white-space: nowrap;
  1720. overflow: hidden;
  1721. text-overflow: ellipsis;
  1722. "
  1723. />
  1724. <input
  1725. :placeholder="item1.name"
  1726. v-if="item1.type == 6"
  1727. style="
  1728. border: none;
  1729. outline: none;
  1730. width: 80%;
  1731. white-space: nowrap;
  1732. overflow: hidden;
  1733. text-overflow: ellipsis;
  1734. "
  1735. readonly="true"
  1736. @click="
  1737. selectAttText(itemTaskIndex, index1)
  1738. "
  1739. />
  1740. <input
  1741. :placeholder="
  1742. item1.title ? item1.title : '链接'
  1743. "
  1744. v-if="item1.type == 8 || item1.type == 14"
  1745. style="
  1746. border: none;
  1747. outline: none;
  1748. width: 80%;
  1749. white-space: nowrap;
  1750. overflow: hidden;
  1751. text-overflow: ellipsis;
  1752. "
  1753. readonly="true"
  1754. @click="selectLine(itemTaskIndex, index1)"
  1755. />
  1756. <input
  1757. :placeholder="
  1758. item1.title ? item1.title : 'Ai应用'
  1759. "
  1760. v-if="item1.type == 15"
  1761. style="
  1762. border: none;
  1763. outline: none;
  1764. width: 80%;
  1765. white-space: nowrap;
  1766. overflow: hidden;
  1767. text-overflow: ellipsis;
  1768. "
  1769. readonly="true"
  1770. @click="selectLine(0, index1)"
  1771. />
  1772. </div>
  1773. <div class="chapter_upload_ic">
  1774. <div
  1775. class="chapter_upload_noSee"
  1776. v-if="item1.type == 12"
  1777. ></div>
  1778. <div
  1779. class="chapter_upload_ud"
  1780. style="z-index: 99"
  1781. >
  1782. <div
  1783. class="chapter_upload_up"
  1784. @click="
  1785. upCd(
  1786. $event,
  1787. unitIndex,
  1788. index,
  1789. itemTaskIndex,
  1790. index1
  1791. )
  1792. "
  1793. ></div>
  1794. <div
  1795. class="chapter_upload_down"
  1796. @click="
  1797. downCd(
  1798. $event,
  1799. unitIndex,
  1800. index,
  1801. itemTaskIndex,
  1802. index1
  1803. )
  1804. "
  1805. ></div>
  1806. </div>
  1807. <div
  1808. class="chapter_upload_ic_edit"
  1809. v-if="
  1810. item1.type == 2 ||
  1811. item1.type == 3 ||
  1812. item1.type == 12 ||
  1813. item1.type == 13 ||
  1814. item1.type == 7
  1815. "
  1816. @click.stop="
  1817. updataVideoT(
  1818. $event,
  1819. unitIndex,
  1820. itemTaskIndex,
  1821. index1
  1822. )
  1823. "
  1824. >
  1825. <div></div>
  1826. </div>
  1827. <div
  1828. class="chapter_upload_ic_edit"
  1829. v-if="item1.type == 6"
  1830. @click="
  1831. selectAttText(itemTaskIndex, index1)
  1832. "
  1833. >
  1834. <div></div>
  1835. </div>
  1836. <div
  1837. class="chapter_upload_ic_edit"
  1838. v-if="item1.type == 8 || item1.type == 15"
  1839. @click="selectLine(itemTaskIndex, index1)"
  1840. >
  1841. <div></div>
  1842. </div>
  1843. <div
  1844. class="chapter_upload_ic_edit"
  1845. v-if="item1.type == 14"
  1846. @click="
  1847. openUpdateSource(itemTaskIndex, index1)
  1848. "
  1849. >
  1850. <div></div>
  1851. </div>
  1852. <div
  1853. class="chapter_upload_ic_r"
  1854. @click.stop="
  1855. deleteChapterData(
  1856. $event,
  1857. unitIndex,
  1858. index,
  1859. index1,
  1860. itemTaskIndex
  1861. )
  1862. "
  1863. >
  1864. <div></div>
  1865. </div>
  1866. </div>
  1867. </div>
  1868. </div>
  1869. </div>
  1870. </div>
  1871. <div class="add_info_box" style="margin: 10px 0 0">
  1872. <button
  1873. class="c_pub_button_add pub_btn_add_img"
  1874. @click="addImg($event)"
  1875. >
  1876. <span style="color: red">*</span>
  1877. 教学设计
  1878. <input
  1879. type="file"
  1880. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1881. style="display: none"
  1882. v-if="inputShow"
  1883. @change="
  1884. beforeUpload3(
  1885. $event,
  1886. unitIndex,
  1887. 3,
  1888. itemTaskIndex,
  1889. '教学设计'
  1890. )
  1891. "
  1892. />
  1893. </button>
  1894. <button
  1895. class="c_pub_button_add pub_btn_add_img"
  1896. @click="addImg($event)"
  1897. >
  1898. <span style="color: red">*</span>
  1899. 教学课件
  1900. <input
  1901. type="file"
  1902. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1903. style="display: none"
  1904. v-if="inputShow"
  1905. @change="
  1906. beforeUpload3(
  1907. $event,
  1908. unitIndex,
  1909. 3,
  1910. itemTaskIndex,
  1911. '教学课件'
  1912. )
  1913. "
  1914. />
  1915. </button>
  1916. <button
  1917. class="c_pub_button_add pub_btn_add_img"
  1918. @click="addImg($event)"
  1919. >
  1920. 教学视频
  1921. <input
  1922. type="file"
  1923. accept="video/mp4, video/quicktime, video/x-msvideo"
  1924. style="display: none"
  1925. v-if="inputShow"
  1926. @change="
  1927. beforeUpload3(
  1928. $event,
  1929. unitIndex,
  1930. 2,
  1931. itemTaskIndex,
  1932. '教学视频'
  1933. )
  1934. "
  1935. />
  1936. </button>
  1937. <button
  1938. class="c_pub_button_add pub_btn_add_img"
  1939. @click="addImg($event)"
  1940. >
  1941. 教学音频
  1942. <input
  1943. type="file"
  1944. accept="audio/*"
  1945. style="display: none"
  1946. v-if="inputShow"
  1947. @change="
  1948. beforeUpload3(
  1949. $event,
  1950. unitIndex,
  1951. 2,
  1952. itemTaskIndex,
  1953. '教学音频'
  1954. )
  1955. "
  1956. />
  1957. </button>
  1958. <button
  1959. class="c_pub_button_add pub_btn_add_img"
  1960. @click="addImg($event)"
  1961. >
  1962. 学习单
  1963. <input
  1964. type="file"
  1965. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1966. style="display: none"
  1967. v-if="inputShow"
  1968. @change="
  1969. beforeUpload3(
  1970. $event,
  1971. unitIndex,
  1972. 3,
  1973. itemTaskIndex,
  1974. '学习单'
  1975. )
  1976. "
  1977. />
  1978. </button>
  1979. </div>
  1980. <div
  1981. v-if="
  1982. unitJson[unitIndex].chapterInfo[0].taskJson[
  1983. itemTaskIndex
  1984. ].proVisible
  1985. "
  1986. class="mask"
  1987. >
  1988. <div class="progressBox">
  1989. <!-- <div id="closePro" class="closeCss">
  1990. <img src="../../../../assets/icon/close.png" alt />
  1991. </div> -->
  1992. <div class="lbox">
  1993. <img
  1994. src="../../../assets/loading.gif"
  1995. />上传中,请稍后
  1996. </div>
  1997. <div style="margin-bottom: 10px">
  1998. <span
  1999. >{{
  2000. unitJson[unitIndex].chapterInfo[0].taskJson[
  2001. itemTaskIndex
  2002. ].isFinishSize
  2003. }}M</span
  2004. >
  2005. /
  2006. <span
  2007. >{{
  2008. unitJson[unitIndex].chapterInfo[0].taskJson[
  2009. itemTaskIndex
  2010. ].isAllSize
  2011. }}M</span
  2012. >
  2013. </div>
  2014. <el-progress
  2015. :text-inside="true"
  2016. :stroke-width="20"
  2017. :percentage="
  2018. unitJson[unitIndex].chapterInfo[0].taskJson[
  2019. itemTaskIndex
  2020. ].progress
  2021. ? unitJson[unitIndex].chapterInfo[0]
  2022. .taskJson[itemTaskIndex].progress
  2023. : 0
  2024. "
  2025. style="width: 80%"
  2026. ></el-progress>
  2027. </div>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <!-- padding: 20px; -->
  2032. <div
  2033. style="
  2034. background: #fff;
  2035. border-radius: 5px;
  2036. margin-top: 15px;
  2037. "
  2038. >
  2039. <div
  2040. v-if="
  2041. unitJson[unitIndex].easy != 3 &&
  2042. !(
  2043. unitJson[unitIndex].easy == 5 &&
  2044. itemTask.taskType == 1
  2045. )
  2046. "
  2047. style="
  2048. flex-direction: row;
  2049. justify-content: flex-start;
  2050. align-items: center;
  2051. "
  2052. >
  2053. <div
  2054. style="
  2055. display: flex;
  2056. flex-direction: row;
  2057. align-items: center;
  2058. margin: 5px 0 20px;
  2059. "
  2060. >
  2061. <div class="lineTitle clineTitle">
  2062. {{
  2063. !unitJson[unitIndex].easy ||
  2064. unitJson[unitIndex].easy == 6 ||
  2065. easyArray.indexOf(unitJson[unitIndex].easy) !=
  2066. -1
  2067. ? "练习内容"
  2068. : "评价内容"
  2069. }}
  2070. </div>
  2071. <!-- <div class="line" style="width: 90%"></div> -->
  2072. </div>
  2073. </div>
  2074. <div
  2075. v-if="
  2076. unitJson[unitIndex].easy == 6 ||
  2077. !unitJson[unitIndex].easy
  2078. "
  2079. class="toolChoose"
  2080. >
  2081. <div class="tools">
  2082. <div
  2083. class="leftTools"
  2084. style="width: 100%"
  2085. v-for="(
  2086. itemTool, toolIndex
  2087. ) in itemTask.toolChoose"
  2088. :key="toolIndex"
  2089. >
  2090. <div
  2091. style="
  2092. display: flex;
  2093. flex-direction: row;
  2094. align-items: baseline;
  2095. flex-wrap: nowrap;
  2096. justify-content: flex-start;
  2097. position: relative;
  2098. "
  2099. >
  2100. <div
  2101. style="margin-right: 20px; font-weight: bold"
  2102. :id="'gj' + itemTaskIndex + '' + toolIndex"
  2103. >
  2104. 工具 {{ toolIndex + 1 }} :
  2105. </div>
  2106. <div class="chooseWho">
  2107. <div
  2108. :class="
  2109. itemTool.toolType == 0
  2110. ? 'isChooseActive'
  2111. : ''
  2112. "
  2113. @click="
  2114. (itemTool.toolType = 0),
  2115. (itemTool.isFold3 = false),
  2116. $forceUpdate()
  2117. "
  2118. >
  2119. 互动类
  2120. </div>
  2121. <div
  2122. :class="
  2123. itemTool.toolType == 1
  2124. ? 'isChooseActive'
  2125. : ''
  2126. "
  2127. @click="
  2128. (itemTool.toolType = 1),
  2129. (itemTool.isFold3 = false),
  2130. $forceUpdate()
  2131. "
  2132. >
  2133. 思维类
  2134. </div>
  2135. <div
  2136. :class="
  2137. itemTool.toolType == 6
  2138. ? 'isChooseActive'
  2139. : ''
  2140. "
  2141. @click="
  2142. (itemTool.toolType = 6),
  2143. (itemTool.isFold3 = false),
  2144. $forceUpdate()
  2145. "
  2146. >
  2147. 协作类
  2148. </div>
  2149. <div
  2150. :class="
  2151. itemTool.toolType == 2
  2152. ? 'isChooseActive'
  2153. : ''
  2154. "
  2155. @click="
  2156. (itemTool.toolType = 2),
  2157. (itemTool.isFold3 = false),
  2158. $forceUpdate()
  2159. "
  2160. >
  2161. 测评类
  2162. </div>
  2163. <div
  2164. :class="
  2165. itemTool.toolType == 7
  2166. ? 'isChooseActive'
  2167. : ''
  2168. "
  2169. @click="
  2170. (itemTool.toolType = 7),
  2171. (itemTool.isFold3 = false),
  2172. $forceUpdate()
  2173. "
  2174. >
  2175. 评价类
  2176. </div>
  2177. <div
  2178. :class="
  2179. itemTool.toolType == 3
  2180. ? 'isChooseActive'
  2181. : ''
  2182. "
  2183. @click="
  2184. (itemTool.toolType = 3),
  2185. (itemTool.isFold3 = false),
  2186. $forceUpdate()
  2187. "
  2188. >
  2189. 编程类
  2190. </div>
  2191. <div
  2192. :class="
  2193. itemTool.toolType == 5
  2194. ? 'isChooseActive'
  2195. : ''
  2196. "
  2197. @click="
  2198. (itemTool.toolType = 5),
  2199. (itemTool.isFold3 = false),
  2200. $forceUpdate()
  2201. "
  2202. >
  2203. 学科类
  2204. </div>
  2205. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2206. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2207. 其他
  2208. </div> -->
  2209. </div>
  2210. <div
  2211. class="chapter_upload_ud2"
  2212. style="z-index: 9; margin: 0 0 0 auto"
  2213. :style="{
  2214. margin:
  2215. itemTask.toolChoose.length > 1
  2216. ? '0px 35px 0px auto'
  2217. : '0 0 0 auto',
  2218. }"
  2219. v-if="itemTask.toolChoose.length > 1"
  2220. >
  2221. <div
  2222. class="chapter_upload_up2"
  2223. @click.stop="
  2224. upTool(
  2225. $event,
  2226. unitIndex,
  2227. itemTaskIndex,
  2228. toolIndex
  2229. )
  2230. "
  2231. >
  2232. 上移
  2233. </div>
  2234. <div
  2235. class="chapter_upload_down2"
  2236. @click.stop="
  2237. downTool(
  2238. $event,
  2239. unitIndex,
  2240. itemTaskIndex,
  2241. toolIndex
  2242. )
  2243. "
  2244. >
  2245. 下移
  2246. </div>
  2247. </div>
  2248. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2249. @click="fold3(itemTaskIndex, toolIndex)"
  2250. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2251. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2252. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2253. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2254. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2255. <div
  2256. class="remove"
  2257. @click="deleteTool(itemTaskIndex, toolIndex)"
  2258. v-if="itemTask.toolChoose.length > 1"
  2259. style="
  2260. position: absolute;
  2261. right: 0;
  2262. top: -5px;
  2263. "
  2264. ></div>
  2265. </div>
  2266. <!-- v-show="!itemTool.isFold3" -->
  2267. <div style="min-height: 163px">
  2268. <div
  2269. class="toolSort"
  2270. v-if="itemTool.toolType == 0"
  2271. >
  2272. <!-- <div class="tool">
  2273. <div
  2274. class="whiteBIcon"
  2275. @click="addTools(8, itemTaskIndex, toolIndex)"
  2276. >
  2277. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2278. <div style="margin: 5px 0">素材库</div>
  2279. </div>
  2280. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2281. <img
  2282. src="../../../assets/icon/checkNo.png"
  2283. alt
  2284. v-if="itemTool.tool.indexOf(8) == -1"
  2285. />
  2286. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2287. alt /><span>已选择</span></div>
  2288. </div>
  2289. </div>-->
  2290. <!-- <div class="tool">
  2291. <div
  2292. class="whiteBIcon"
  2293. @click="addTools(17, itemTaskIndex, toolIndex)"
  2294. >
  2295. <img
  2296. src="../../../assets/icon/secondToolList/library.png"
  2297. alt
  2298. />
  2299. <div style="margin: 5px 0">学习资料</div>
  2300. </div>
  2301. <div
  2302. class="check"
  2303. @click="addTools(17, itemTaskIndex, toolIndex)"
  2304. >
  2305. <img
  2306. src="../../../assets/icon/checkNo.png"
  2307. alt
  2308. v-if="itemTool.tool.indexOf(17) == -1"
  2309. />
  2310. <img
  2311. src="../../../assets/icon/checkedIs.png"
  2312. alt
  2313. v-else
  2314. />
  2315. </div>10
  2316. </div> -->
  2317. <div
  2318. class="tool"
  2319. :class="{
  2320. isToolChoose:
  2321. itemTool.tool.indexOf(10) != -1,
  2322. }"
  2323. @click="
  2324. addTools(10, itemTaskIndex, toolIndex)
  2325. "
  2326. >
  2327. <div
  2328. class="whiteBIcon"
  2329. @click.stop="
  2330. openTools(itemTaskIndex, 10, toolIndex)
  2331. "
  2332. >
  2333. <img
  2334. src="../../../assets/icon/thirdToolList/time.png"
  2335. alt
  2336. />
  2337. <div style="margin: 5px 0">倒计时</div>
  2338. </div>
  2339. <div class="noCTool">
  2340. <img
  2341. src="../../../assets/icon/new/isToolC.png"
  2342. alt=""
  2343. />
  2344. </div>
  2345. <div
  2346. class="isCTool"
  2347. v-if="itemTool.tool.indexOf(10) != -1"
  2348. >
  2349. <img
  2350. src="../../../assets/icon/new/isToolC.png"
  2351. alt=""
  2352. />
  2353. </div>
  2354. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2355. <img src="../../../assets/icon/checkNo.png" alt
  2356. v-if="itemTool.tool.indexOf(10) == -1" />
  2357. <div class="checkDiv" v-else>
  2358. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2359. </div>
  2360. </div> -->
  2361. </div>
  2362. <div
  2363. class="tool"
  2364. :class="{
  2365. isToolChoose:
  2366. itemTool.tool.indexOf(65) != -1,
  2367. }"
  2368. @click="
  2369. addTools(65, itemTaskIndex, toolIndex)
  2370. "
  2371. >
  2372. <div
  2373. class="whiteBIcon"
  2374. @click.stop="
  2375. addTools(65, itemTaskIndex, toolIndex)
  2376. "
  2377. >
  2378. <img
  2379. src="../../../assets/icon/firstToolList/pickPeople.png"
  2380. alt
  2381. />
  2382. <div style="margin: 5px 0">挑人</div>
  2383. </div>
  2384. <div class="noCTool">
  2385. <img
  2386. src="../../../assets/icon/new/isToolC.png"
  2387. alt=""
  2388. />
  2389. </div>
  2390. <div
  2391. class="isCTool"
  2392. v-if="itemTool.tool.indexOf(65) != -1"
  2393. >
  2394. <img
  2395. src="../../../assets/icon/new/isToolC.png"
  2396. alt=""
  2397. />
  2398. </div>
  2399. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2400. <img src="../../../assets/icon/checkNo.png" alt
  2401. v-if="itemTool.tool.indexOf(65) == -1" />
  2402. <div class="checkDiv" v-else>
  2403. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2404. </div>
  2405. </div> -->
  2406. </div>
  2407. <!-- <div class="tool">
  2408. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2409. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2410. <div style="margin: 5px 0">学生分组</div>
  2411. </div>
  2412. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2413. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2414. <div class="checkDiv" v-else>
  2415. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2416. </div>
  2417. </div>
  2418. </div> -->
  2419. <!-- <div class="tool">
  2420. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2421. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2422. <div style="margin: 5px 0">交互视频</div>
  2423. </div>
  2424. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2425. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2426. <div class="checkDiv" v-else>
  2427. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2428. </div>
  2429. </div>
  2430. </div> -->
  2431. <div class="tool" :class="{
  2432. isToolChoose:
  2433. itemTool.tool.indexOf(72) != -1,
  2434. }" @click="
  2435. addTools(72, itemTaskIndex, toolIndex)
  2436. ">
  2437. <div class="whiteBIcon" @click.stop="
  2438. openTools(itemTaskIndex, 72, toolIndex)
  2439. ">
  2440. <img
  2441. style="object-fit: cover;height: 80px;"
  2442. :src="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson ?
  2443. unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.json.icon :
  2444. require('../../../assets/icon/firstToolList/appStore.png')"
  2445. alt />
  2446. <div style="margin: 5px 0" >
  2447. <div
  2448. v-if="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson"
  2449. >
  2450. <el-tooltip class="item" effect="dark"
  2451. :content="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name"
  2452. placement="top">
  2453. <div class="Ovh">
  2454. {{unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name}}
  2455. </div>
  2456. </el-tooltip>
  2457. </div>
  2458. <span v-else>
  2459. 应用中心
  2460. </span>
  2461. </div>
  2462. </div>
  2463. <div class="noCTool">
  2464. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2465. </div>
  2466. <div class="isCTool" v-if="itemTool.tool.indexOf(72) != -1">
  2467. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  2468. </div>
  2469. </div>
  2470. </div>
  2471. <div
  2472. class="toolSort"
  2473. v-if="itemTool.toolType == 1"
  2474. >
  2475. <div
  2476. class="tool"
  2477. :class="{
  2478. isToolChoose:
  2479. itemTool.tool.indexOf(7) != -1,
  2480. }"
  2481. @click="
  2482. addTools(7, itemTaskIndex, toolIndex)
  2483. "
  2484. >
  2485. <div
  2486. class="whiteBIcon"
  2487. @click.stop="
  2488. addTools(7, itemTaskIndex, toolIndex)
  2489. "
  2490. >
  2491. <img
  2492. src="../../../assets/icon/secondToolList/mindNetwork.png"
  2493. alt
  2494. />
  2495. <div style="margin: 5px 0">思维网格</div>
  2496. </div>
  2497. <div class="noCTool">
  2498. <img
  2499. src="../../../assets/icon/new/isToolC.png"
  2500. alt=""
  2501. />
  2502. </div>
  2503. <div
  2504. class="isCTool"
  2505. v-if="itemTool.tool.indexOf(7) != -1"
  2506. >
  2507. <img
  2508. src="../../../assets/icon/new/isToolC.png"
  2509. alt=""
  2510. />
  2511. </div>
  2512. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2513. <img src="../../../assets/icon/checkNo.png" alt
  2514. v-if="itemTool.tool.indexOf(7) == -1" />
  2515. <div class="checkDiv" v-else>
  2516. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2517. </div>
  2518. </div> -->
  2519. </div>
  2520. <div
  2521. class="tool"
  2522. :class="{
  2523. isToolChoose:
  2524. itemTool.tool.indexOf(1) != -1,
  2525. }"
  2526. @click="
  2527. addTools(1, itemTaskIndex, toolIndex)
  2528. "
  2529. >
  2530. <div
  2531. class="whiteBIcon"
  2532. @click.stop="
  2533. openTools(itemTaskIndex, 1, toolIndex)
  2534. "
  2535. >
  2536. <img
  2537. src="../../../assets/icon/secondToolList/whiteBoard.png"
  2538. alt
  2539. />
  2540. <div style="margin: 5px 0">电子白板</div>
  2541. </div>
  2542. <div class="noCTool">
  2543. <img
  2544. src="../../../assets/icon/new/isToolC.png"
  2545. alt=""
  2546. />
  2547. </div>
  2548. <div
  2549. class="isCTool"
  2550. v-if="itemTool.tool.indexOf(1) != -1"
  2551. >
  2552. <img
  2553. src="../../../assets/icon/new/isToolC.png"
  2554. alt=""
  2555. />
  2556. </div>
  2557. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2558. <img src="../../../assets/icon/checkNo.png" alt
  2559. v-if="itemTool.tool.indexOf(1) == -1" />
  2560. <div class="checkDiv" v-else>
  2561. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2562. </div>
  2563. </div> -->
  2564. </div>
  2565. <!-- <div class="tool">
  2566. <div
  2567. class="whiteBIcon"
  2568. @click="addTools(2, itemTaskIndex, toolIndex)"
  2569. >
  2570. <img
  2571. src="../../../assets/icon/secondToolList/note.png"
  2572. alt
  2573. />
  2574. <div style="margin: 5px 0">便签</div>
  2575. </div>
  2576. <div
  2577. class="check"
  2578. @click="addTools(2, itemTaskIndex, toolIndex)"
  2579. >
  2580. <img
  2581. src="../../../assets/icon/checkNo.png"
  2582. alt
  2583. v-if="itemTool.tool.indexOf(2) == -1"
  2584. />
  2585. <div class="checkDiv" v-else>
  2586. <img
  2587. src="../../../assets/icon/checkedIs.png"
  2588. alt
  2589. /><span>已选择</span>
  2590. </div>
  2591. </div>
  2592. </div> -->
  2593. <!-- <div class="tool">
  2594. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2595. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2596. <div style="margin: 5px 0">协同文档</div>
  2597. </div>
  2598. <div
  2599. class="check"
  2600. @click="addTools(6, itemTaskIndex, toolIndex)"
  2601. >
  2602. <img
  2603. src="../../../assets/icon/checkNo.png"
  2604. alt
  2605. v-if="itemTool.tool.indexOf(6) == -1"
  2606. />
  2607. <div class="checkDiv" v-else>
  2608. <img
  2609. src="../../../assets/icon/checkedIs.png"
  2610. alt
  2611. /><span>已选择</span>
  2612. </div>
  2613. </div>
  2614. </div> -->
  2615. <div
  2616. class="tool"
  2617. :class="{
  2618. isToolChoose:
  2619. itemTool.tool.indexOf(52) != -1,
  2620. }"
  2621. @click="
  2622. addTools(52, itemTaskIndex, toolIndex)
  2623. "
  2624. >
  2625. <div
  2626. class="whiteBIcon"
  2627. @click.stop="
  2628. openTools(itemTaskIndex, 52, toolIndex)
  2629. "
  2630. >
  2631. <img
  2632. src="../../../assets/icon/fourthToolList/text.png"
  2633. alt
  2634. />
  2635. <div style="margin: 5px 0">文档</div>
  2636. </div>
  2637. <div class="noCTool">
  2638. <img
  2639. src="../../../assets/icon/new/isToolC.png"
  2640. alt=""
  2641. />
  2642. </div>
  2643. <div
  2644. class="isCTool"
  2645. v-if="itemTool.tool.indexOf(52) != -1"
  2646. >
  2647. <img
  2648. src="../../../assets/icon/new/isToolC.png"
  2649. alt=""
  2650. />
  2651. </div>
  2652. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2653. <img src="../../../assets/icon/checkNo.png" alt
  2654. v-if="itemTool.tool.indexOf(52) == -1" />
  2655. <div class="checkDiv" v-else>
  2656. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2657. </div>
  2658. </div> -->
  2659. </div>
  2660. <div
  2661. class="tool"
  2662. :class="{
  2663. isToolChoose:
  2664. itemTool.tool.indexOf(3) != -1,
  2665. }"
  2666. @click="
  2667. addTools(3, itemTaskIndex, toolIndex)
  2668. "
  2669. >
  2670. <div
  2671. class="whiteBIcon"
  2672. @click.stop="
  2673. openTools(itemTaskIndex, 3, toolIndex)
  2674. "
  2675. >
  2676. <img
  2677. src="../../../assets/icon/secondToolList/mindMapping.png"
  2678. alt
  2679. />
  2680. <div style="margin: 5px 0">思维导图</div>
  2681. </div>
  2682. <div class="noCTool">
  2683. <img
  2684. src="../../../assets/icon/new/isToolC.png"
  2685. alt=""
  2686. />
  2687. </div>
  2688. <div
  2689. class="isCTool"
  2690. v-if="itemTool.tool.indexOf(3) != -1"
  2691. >
  2692. <img
  2693. src="../../../assets/icon/new/isToolC.png"
  2694. alt=""
  2695. />
  2696. </div>
  2697. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2698. <img src="../../../assets/icon/checkNo.png" alt
  2699. v-if="itemTool.tool.indexOf(3) == -1" />
  2700. <div class="checkDiv" v-else>
  2701. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2702. </div>
  2703. </div> -->
  2704. </div>
  2705. <div
  2706. class="tool"
  2707. :class="{
  2708. isToolChoose:
  2709. itemTool.tool.indexOf(48) != -1,
  2710. }"
  2711. @click="
  2712. addTools(48, itemTaskIndex, toolIndex)
  2713. "
  2714. >
  2715. <div
  2716. class="whiteBIcon"
  2717. @click.stop="
  2718. openTools(itemTaskIndex, 48, toolIndex)
  2719. "
  2720. >
  2721. <img
  2722. src="../../../assets/icon/fourthToolList/table.png"
  2723. alt
  2724. />
  2725. <div style="margin: 5px 0">表格</div>
  2726. </div>
  2727. <div class="noCTool">
  2728. <img
  2729. src="../../../assets/icon/new/isToolC.png"
  2730. alt=""
  2731. />
  2732. </div>
  2733. <div
  2734. class="isCTool"
  2735. v-if="itemTool.tool.indexOf(48) != -1"
  2736. >
  2737. <img
  2738. src="../../../assets/icon/new/isToolC.png"
  2739. alt=""
  2740. />
  2741. </div>
  2742. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt
  2744. v-if="itemTool.tool.indexOf(48) == -1" />
  2745. <div class="checkDiv" v-else>
  2746. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2747. </div>
  2748. </div> -->
  2749. </div>
  2750. </div>
  2751. <div
  2752. class="toolSort"
  2753. v-if="itemTool.toolType == 6"
  2754. >
  2755. <div
  2756. class="tool"
  2757. :class="{
  2758. isToolChoose:
  2759. itemTool.tool.indexOf(49) != -1,
  2760. }"
  2761. @click="
  2762. addTools(49, itemTaskIndex, toolIndex)
  2763. "
  2764. >
  2765. <div
  2766. class="whiteBIcon"
  2767. @click.stop="
  2768. openTools(itemTaskIndex, 49, toolIndex)
  2769. "
  2770. >
  2771. <img
  2772. src="../../../assets/icon/fourthToolList/group.png"
  2773. alt
  2774. />
  2775. <div style="margin: 5px 0">学生分组</div>
  2776. </div>
  2777. <div class="noCTool">
  2778. <img
  2779. src="../../../assets/icon/new/isToolC.png"
  2780. alt=""
  2781. />
  2782. </div>
  2783. <div
  2784. class="isCTool"
  2785. v-if="itemTool.tool.indexOf(49) != -1"
  2786. >
  2787. <img
  2788. src="../../../assets/icon/new/isToolC.png"
  2789. alt=""
  2790. />
  2791. </div>
  2792. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2793. <img src="../../../assets/icon/checkNo.png" alt
  2794. v-if="itemTool.tool.indexOf(49) == -1" />
  2795. <div class="checkDiv" v-else>
  2796. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2797. </div>
  2798. </div> -->
  2799. </div>
  2800. </div>
  2801. <div
  2802. class="toolSort"
  2803. v-if="itemTool.toolType == 2"
  2804. >
  2805. <!-- <div class="tool">
  2806. <div
  2807. class="whiteBIcon"
  2808. @click="addTools(5, itemTaskIndex, toolIndex)"
  2809. >
  2810. <img
  2811. src="../../../assets/icon/thirdToolList/score.png"
  2812. alt
  2813. />
  2814. <div style="margin: 5px 0">量规评分</div>
  2815. </div>
  2816. <div
  2817. class="check"
  2818. @click="addTools(5, itemTaskIndex, toolIndex)"
  2819. >
  2820. <img
  2821. src="../../../assets/icon/checkNo.png"
  2822. alt
  2823. v-if="itemTool.tool.indexOf(5) == -1"
  2824. />
  2825. <img
  2826. src="../../../assets/icon/checkedIs.png"
  2827. alt
  2828. v-else
  2829. />
  2830. </div>
  2831. </div>-->
  2832. <div
  2833. class="tool"
  2834. :class="{
  2835. isToolChoose:
  2836. itemTool.tool.indexOf(4) != -1,
  2837. }"
  2838. @click="
  2839. addTools(4, itemTaskIndex, toolIndex)
  2840. "
  2841. >
  2842. <div
  2843. class="whiteBIcon"
  2844. @click.stop="
  2845. openTools(itemTaskIndex, 4, toolIndex)
  2846. "
  2847. >
  2848. <img
  2849. src="../../../assets/icon/thirdToolList/ask.png"
  2850. alt
  2851. />
  2852. <div style="margin: 5px 0">问卷调查</div>
  2853. </div>
  2854. <div class="noCTool">
  2855. <img
  2856. src="../../../assets/icon/new/isToolC.png"
  2857. alt=""
  2858. />
  2859. </div>
  2860. <div
  2861. class="isCTool"
  2862. v-if="itemTool.tool.indexOf(4) != -1"
  2863. >
  2864. <img
  2865. src="../../../assets/icon/new/isToolC.png"
  2866. alt=""
  2867. />
  2868. </div>
  2869. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2870. <img src="../../../assets/icon/checkNo.png" alt
  2871. v-if="itemTool.tool.indexOf(4) == -1" />
  2872. <div class="checkDiv" v-else>
  2873. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2874. </div>
  2875. </div> -->
  2876. </div>
  2877. <div
  2878. class="tool"
  2879. :class="{
  2880. isToolChoose:
  2881. itemTool.tool.indexOf(45) != -1,
  2882. }"
  2883. @click="
  2884. addTools(45, itemTaskIndex, toolIndex)
  2885. "
  2886. >
  2887. <div
  2888. class="whiteBIcon"
  2889. @click="
  2890. openTools(itemTaskIndex, 45, toolIndex)
  2891. "
  2892. >
  2893. <img
  2894. src="../../../assets/icon/thirdToolList/choose.png"
  2895. alt
  2896. />
  2897. <div style="margin: 5px 0">选择题</div>
  2898. </div>
  2899. <div class="noCTool">
  2900. <img
  2901. src="../../../assets/icon/new/isToolC.png"
  2902. alt=""
  2903. />
  2904. </div>
  2905. <div
  2906. class="isCTool"
  2907. v-if="itemTool.tool.indexOf(45) != -1"
  2908. >
  2909. <img
  2910. src="../../../assets/icon/new/isToolC.png"
  2911. alt=""
  2912. />
  2913. </div>
  2914. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2915. <img src="../../../assets/icon/checkNo.png" alt
  2916. v-if="itemTool.tool.indexOf(45) == -1" />
  2917. <div class="checkDiv" v-else>
  2918. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2919. </div>
  2920. </div> -->
  2921. </div>
  2922. <div
  2923. class="tool"
  2924. :class="{
  2925. isToolChoose:
  2926. itemTool.tool.indexOf(15) != -1,
  2927. }"
  2928. @click="
  2929. addTools(15, itemTaskIndex, toolIndex)
  2930. "
  2931. >
  2932. <div
  2933. class="whiteBIcon"
  2934. @click.stop="
  2935. openTools(itemTaskIndex, 15, toolIndex)
  2936. "
  2937. >
  2938. <img
  2939. src="../../../assets/icon/thirdToolList/answer.png"
  2940. alt
  2941. />
  2942. <div style="margin: 5px 0">问答</div>
  2943. </div>
  2944. <div class="noCTool">
  2945. <img
  2946. src="../../../assets/icon/new/isToolC.png"
  2947. alt=""
  2948. />
  2949. </div>
  2950. <div
  2951. class="isCTool"
  2952. v-if="itemTool.tool.indexOf(15) != -1"
  2953. >
  2954. <img
  2955. src="../../../assets/icon/new/isToolC.png"
  2956. alt=""
  2957. />
  2958. </div>
  2959. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2960. <img src="../../../assets/icon/checkNo.png" alt
  2961. v-if="itemTool.tool.indexOf(15) == -1" />
  2962. <div class="checkDiv" v-else>
  2963. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2964. </div>
  2965. </div> -->
  2966. </div>
  2967. <div
  2968. class="tool"
  2969. :class="{
  2970. isToolChoose:
  2971. itemTool.tool.indexOf(16) != -1,
  2972. }"
  2973. @click="
  2974. addTools(16, itemTaskIndex, toolIndex)
  2975. "
  2976. >
  2977. <div
  2978. class="whiteBIcon"
  2979. @click.stop="
  2980. addTools(16, itemTaskIndex, toolIndex)
  2981. "
  2982. >
  2983. <img
  2984. src="../../../assets/icon/thirdToolList/work.png"
  2985. alt
  2986. />
  2987. <div style="margin: 5px 0">作业提交</div>
  2988. </div>
  2989. <div class="noCTool">
  2990. <img
  2991. src="../../../assets/icon/new/isToolC.png"
  2992. alt=""
  2993. />
  2994. </div>
  2995. <div
  2996. class="isCTool"
  2997. v-if="itemTool.tool.indexOf(16) != -1"
  2998. >
  2999. <img
  3000. src="../../../assets/icon/new/isToolC.png"
  3001. alt=""
  3002. />
  3003. </div>
  3004. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3005. <img src="../../../assets/icon/checkNo.png" alt
  3006. v-if="itemTool.tool.indexOf(16) == -1" />
  3007. <div class="checkDiv" v-else>
  3008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3009. </div>
  3010. </div> -->
  3011. </div>
  3012. <div
  3013. class="tool"
  3014. :class="{
  3015. isToolChoose:
  3016. itemTool.tool.indexOf(50) != -1,
  3017. }"
  3018. @click="
  3019. addTools(50, itemTaskIndex, toolIndex)
  3020. "
  3021. >
  3022. <div
  3023. class="whiteBIcon"
  3024. @click.stop="
  3025. addTools(50, itemTaskIndex, toolIndex)
  3026. "
  3027. >
  3028. <img
  3029. src="../../../assets/icon/thirdToolList/plwork.png"
  3030. alt
  3031. />
  3032. <div style="margin: 5px 0">批量上传</div>
  3033. </div>
  3034. <div class="noCTool">
  3035. <img
  3036. src="../../../assets/icon/new/isToolC.png"
  3037. alt=""
  3038. />
  3039. </div>
  3040. <div
  3041. class="isCTool"
  3042. v-if="itemTool.tool.indexOf(50) != -1"
  3043. >
  3044. <img
  3045. src="../../../assets/icon/new/isToolC.png"
  3046. alt=""
  3047. />
  3048. </div>
  3049. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3050. <img src="../../../assets/icon/checkNo.png" alt
  3051. v-if="itemTool.tool.indexOf(50) == -1" />
  3052. <div class="checkDiv" v-else>
  3053. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3054. </div>
  3055. </div> -->
  3056. </div>
  3057. <!-- <div class="tool">
  3058. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3059. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3060. <div style="margin: 5px 0">个人评价</div>
  3061. </div>
  3062. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3063. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3064. <div class="checkDiv" v-else>
  3065. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3066. </div>
  3067. </div>
  3068. </div> -->
  3069. <div
  3070. class="tool"
  3071. :class="{
  3072. isToolChoose:
  3073. itemTool.tool.indexOf(41) != -1,
  3074. }"
  3075. @click="
  3076. addTools(41, itemTaskIndex, toolIndex)
  3077. "
  3078. >
  3079. <div
  3080. class="whiteBIcon"
  3081. @click.stop="
  3082. openTools(itemTaskIndex, 41, toolIndex)
  3083. "
  3084. >
  3085. <img
  3086. src="../../../assets/icon/thirdToolList/select.png"
  3087. alt
  3088. />
  3089. <div style="margin: 5px 0">选择匹配</div>
  3090. </div>
  3091. <div class="noCTool">
  3092. <img
  3093. src="../../../assets/icon/new/isToolC.png"
  3094. alt=""
  3095. />
  3096. </div>
  3097. <div
  3098. class="isCTool"
  3099. v-if="itemTool.tool.indexOf(41) != -1"
  3100. >
  3101. <img
  3102. src="../../../assets/icon/new/isToolC.png"
  3103. alt=""
  3104. />
  3105. </div>
  3106. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3107. <img src="../../../assets/icon/checkNo.png" alt
  3108. v-if="itemTool.tool.indexOf(41) == -1" />
  3109. <div class="checkDiv" v-else>
  3110. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3111. </div>
  3112. </div> -->
  3113. </div>
  3114. <div
  3115. class="tool"
  3116. :class="{
  3117. isToolChoose:
  3118. itemTool.tool.indexOf(47) != -1,
  3119. }"
  3120. @click="
  3121. addTools(47, itemTaskIndex, toolIndex)
  3122. "
  3123. >
  3124. <div
  3125. class="whiteBIcon"
  3126. @click.stop="
  3127. openTools(itemTaskIndex, 47, toolIndex)
  3128. "
  3129. >
  3130. <img
  3131. src="../../../assets/icon/fourthToolList/conSentences.png"
  3132. alt
  3133. />
  3134. <div style="margin: 5px 0">排序</div>
  3135. </div>
  3136. <div class="noCTool">
  3137. <img
  3138. src="../../../assets/icon/new/isToolC.png"
  3139. alt=""
  3140. />
  3141. </div>
  3142. <div
  3143. class="isCTool"
  3144. v-if="itemTool.tool.indexOf(47) != -1"
  3145. >
  3146. <img
  3147. src="../../../assets/icon/new/isToolC.png"
  3148. alt=""
  3149. />
  3150. </div>
  3151. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3152. <img src="../../../assets/icon/checkNo.png" alt
  3153. v-if="itemTool.tool.indexOf(47) == -1" />
  3154. <div class="checkDiv" v-else>
  3155. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3156. </div>
  3157. </div> -->
  3158. </div>
  3159. <!-- <div class="tool">
  3160. <div
  3161. class="whiteBIcon"
  3162. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3163. >
  3164. <img
  3165. src="../../../assets/icon/thirdToolList/mp3.png"
  3166. alt
  3167. />
  3168. <div style="margin: 5px 0">上传音频</div>
  3169. </div>
  3170. <div
  3171. class="check"
  3172. @click="addTools(42, itemTaskIndex, toolIndex)"
  3173. >
  3174. <img
  3175. src="../../../assets/icon/checkNo.png"
  3176. alt
  3177. v-if="itemTool.tool.indexOf(42) == -1"
  3178. />
  3179. <img
  3180. src="../../../assets/icon/checkedIs.png"
  3181. alt
  3182. v-else
  3183. />
  3184. </div>
  3185. </div> -->
  3186. </div>
  3187. <div
  3188. class="toolSort"
  3189. v-if="itemTool.toolType == 3"
  3190. >
  3191. <div
  3192. class="tool"
  3193. :class="{
  3194. isToolChoose:
  3195. itemTool.tool.indexOf(18) != -1,
  3196. }"
  3197. @click="
  3198. addTools(18, itemTaskIndex, toolIndex)
  3199. "
  3200. >
  3201. <div
  3202. class="whiteBIcon"
  3203. @click.stop="
  3204. addTools(18, itemTaskIndex, toolIndex)
  3205. "
  3206. >
  3207. <img
  3208. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3209. alt
  3210. />
  3211. <div style="margin: 5px 0">训练平台</div>
  3212. </div>
  3213. <div class="noCTool">
  3214. <img
  3215. src="../../../assets/icon/new/isToolC.png"
  3216. alt=""
  3217. />
  3218. </div>
  3219. <div
  3220. class="isCTool"
  3221. v-if="itemTool.tool.indexOf(18) != -1"
  3222. >
  3223. <img
  3224. src="../../../assets/icon/new/isToolC.png"
  3225. alt=""
  3226. />
  3227. </div>
  3228. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3229. <img src="../../../assets/icon/checkNo.png" alt
  3230. v-if="itemTool.tool.indexOf(18) == -1" />
  3231. <div class="checkDiv" v-else>
  3232. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3233. </div>
  3234. </div> -->
  3235. </div>
  3236. <div
  3237. class="tool"
  3238. :class="{
  3239. isToolChoose:
  3240. itemTool.tool.indexOf(21) != -1,
  3241. }"
  3242. @click="
  3243. addTools(21, itemTaskIndex, toolIndex)
  3244. "
  3245. >
  3246. <div
  3247. class="whiteBIcon"
  3248. @click.stop="
  3249. addTools(21, itemTaskIndex, toolIndex)
  3250. "
  3251. >
  3252. <img
  3253. src="../../../assets/icon/fourthToolList/program.png"
  3254. alt
  3255. />
  3256. <div style="margin: 5px 0">
  3257. AIoT Blockly
  3258. </div>
  3259. </div>
  3260. <div class="noCTool">
  3261. <img
  3262. src="../../../assets/icon/new/isToolC.png"
  3263. alt=""
  3264. />
  3265. </div>
  3266. <div
  3267. class="isCTool"
  3268. v-if="itemTool.tool.indexOf(21) != -1"
  3269. >
  3270. <img
  3271. src="../../../assets/icon/new/isToolC.png"
  3272. alt=""
  3273. />
  3274. </div>
  3275. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3276. <img src="../../../assets/icon/checkNo.png" alt
  3277. v-if="itemTool.tool.indexOf(21) == -1" />
  3278. <div class="checkDiv" v-else>
  3279. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3280. </div>
  3281. </div> -->
  3282. </div>
  3283. <!-- <div class="tool">
  3284. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3285. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3286. <div style="margin: 5px 0">AI体验</div>
  3287. </div>
  3288. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3289. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3290. <div class="checkDiv" v-else>
  3291. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3292. </div>
  3293. </div>
  3294. </div> -->
  3295. <div
  3296. class="tool"
  3297. :class="{
  3298. isToolChoose:
  3299. itemTool.tool.indexOf(23) != -1,
  3300. }"
  3301. @click="
  3302. addTools(23, itemTaskIndex, toolIndex)
  3303. "
  3304. >
  3305. <div
  3306. class="whiteBIcon"
  3307. @click.stop="
  3308. addTools(23, itemTaskIndex, toolIndex)
  3309. "
  3310. >
  3311. <img
  3312. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3313. alt
  3314. />
  3315. <div style="margin: 5px 0">AI Python</div>
  3316. </div>
  3317. <div class="noCTool">
  3318. <img
  3319. src="../../../assets/icon/new/isToolC.png"
  3320. alt=""
  3321. />
  3322. </div>
  3323. <div
  3324. class="isCTool"
  3325. v-if="itemTool.tool.indexOf(23) != -1"
  3326. >
  3327. <img
  3328. src="../../../assets/icon/new/isToolC.png"
  3329. alt=""
  3330. />
  3331. </div>
  3332. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3333. <img src="../../../assets/icon/checkNo.png" alt
  3334. v-if="itemTool.tool.indexOf(23) == -1" />
  3335. <div class="checkDiv" v-else>
  3336. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3337. </div>
  3338. </div> -->
  3339. </div>
  3340. <div
  3341. class="tool"
  3342. :class="{
  3343. isToolChoose:
  3344. itemTool.tool.indexOf(24) != -1,
  3345. }"
  3346. @click="
  3347. addTools(24, itemTaskIndex, toolIndex)
  3348. "
  3349. >
  3350. <div
  3351. class="whiteBIcon"
  3352. @click.stop="
  3353. addTools(24, itemTaskIndex, toolIndex)
  3354. "
  3355. >
  3356. <img
  3357. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3358. alt
  3359. />
  3360. <div style="margin: 5px 0">
  3361. AI Blockly
  3362. </div>
  3363. </div>
  3364. <div class="noCTool">
  3365. <img
  3366. src="../../../assets/icon/new/isToolC.png"
  3367. alt=""
  3368. />
  3369. </div>
  3370. <div
  3371. class="isCTool"
  3372. v-if="itemTool.tool.indexOf(24) != -1"
  3373. >
  3374. <img
  3375. src="../../../assets/icon/new/isToolC.png"
  3376. alt=""
  3377. />
  3378. </div>
  3379. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3380. <img src="../../../assets/icon/checkNo.png" alt
  3381. v-if="itemTool.tool.indexOf(24) == -1" />
  3382. <div class="checkDiv" v-else>
  3383. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3384. </div>
  3385. </div> -->
  3386. </div>
  3387. <div
  3388. class="tool"
  3389. :class="{
  3390. isToolChoose:
  3391. itemTool.tool.indexOf(32) != -1,
  3392. }"
  3393. @click="
  3394. addTools(32, itemTaskIndex, toolIndex)
  3395. "
  3396. >
  3397. <div
  3398. class="whiteBIcon"
  3399. @click.stop="
  3400. addTools(32, itemTaskIndex, toolIndex)
  3401. "
  3402. >
  3403. <img
  3404. src="../../../assets/icon/thirdToolList/code.png"
  3405. alt
  3406. />
  3407. <div style="margin: 5px 0">源码编辑</div>
  3408. </div>
  3409. <div class="noCTool">
  3410. <img
  3411. src="../../../assets/icon/new/isToolC.png"
  3412. alt=""
  3413. />
  3414. </div>
  3415. <div
  3416. class="isCTool"
  3417. v-if="itemTool.tool.indexOf(32) != -1"
  3418. >
  3419. <img
  3420. src="../../../assets/icon/new/isToolC.png"
  3421. alt=""
  3422. />
  3423. </div>
  3424. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3425. <img src="../../../assets/icon/checkNo.png" alt
  3426. v-if="itemTool.tool.indexOf(32) == -1" />
  3427. <div class="checkDiv" v-else>
  3428. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3429. </div>
  3430. </div> -->
  3431. </div>
  3432. <div
  3433. class="tool"
  3434. :class="{
  3435. isToolChoose:
  3436. itemTool.tool.indexOf(57) != -1,
  3437. }"
  3438. @click="
  3439. addTools(57, itemTaskIndex, toolIndex)
  3440. "
  3441. >
  3442. <div
  3443. class="whiteBIcon"
  3444. @click.stop="
  3445. openTools(itemTaskIndex, 57, toolIndex)
  3446. "
  3447. >
  3448. <img
  3449. src="../../../assets/icon/fourthToolList/cocopi.png"
  3450. alt
  3451. />
  3452. <div style="margin: 5px 0">CocoPi</div>
  3453. </div>
  3454. <div class="noCTool">
  3455. <img
  3456. src="../../../assets/icon/new/isToolC.png"
  3457. alt=""
  3458. />
  3459. </div>
  3460. <div
  3461. class="isCTool"
  3462. v-if="itemTool.tool.indexOf(57) != -1"
  3463. >
  3464. <img
  3465. src="../../../assets/icon/new/isToolC.png"
  3466. alt=""
  3467. />
  3468. </div>
  3469. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3470. <img src="../../../assets/icon/checkNo.png" alt
  3471. v-if="itemTool.tool.indexOf(57) == -1" />
  3472. <div class="checkDiv" v-else>
  3473. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3474. </div>
  3475. </div> -->
  3476. </div>
  3477. <div
  3478. class="tool"
  3479. :class="{
  3480. isToolChoose:
  3481. itemTool.tool.indexOf(63) != -1,
  3482. }"
  3483. @click="
  3484. addTools(63, itemTaskIndex, toolIndex)
  3485. "
  3486. >
  3487. <div
  3488. class="whiteBIcon"
  3489. @click.stop="
  3490. addTools(63, itemTaskIndex, toolIndex)
  3491. "
  3492. >
  3493. <img
  3494. src="../../../assets/icon/fourthToolList/Wood.png"
  3495. alt
  3496. />
  3497. <div style="margin: 5px 0">海龟编程</div>
  3498. </div>
  3499. <div class="noCTool">
  3500. <img
  3501. src="../../../assets/icon/new/isToolC.png"
  3502. alt=""
  3503. />
  3504. </div>
  3505. <div
  3506. class="isCTool"
  3507. v-if="itemTool.tool.indexOf(63) != -1"
  3508. >
  3509. <img
  3510. src="../../../assets/icon/new/isToolC.png"
  3511. alt=""
  3512. />
  3513. </div>
  3514. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3515. <img src="../../../assets/icon/checkNo.png" alt
  3516. v-if="itemTool.tool.indexOf(63) == -1" />
  3517. <div class="checkDiv" v-else>
  3518. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3519. </div>
  3520. </div> -->
  3521. </div>
  3522. <!-- <div
  3523. class="tool"
  3524. :class="{
  3525. isToolChoose:
  3526. itemTool.tool.indexOf(71) != -1,
  3527. }"
  3528. @click="
  3529. addTools(71, itemTaskIndex, toolIndex)
  3530. "
  3531. >
  3532. <div
  3533. class="whiteBIcon"
  3534. @click.stop="
  3535. addTools(71, itemTaskIndex, toolIndex)
  3536. "
  3537. >
  3538. <img
  3539. src="../../../assets/icon/fourthToolList/chatgpt.png"
  3540. alt
  3541. />
  3542. <div style="margin: 5px 0">AI智能体</div>
  3543. </div>
  3544. <div class="noCTool">
  3545. <img
  3546. src="../../../assets/icon/new/isToolC.png"
  3547. alt=""
  3548. />
  3549. </div>
  3550. <div
  3551. class="isCTool"
  3552. v-if="itemTool.tool.indexOf(71) != -1"
  3553. >
  3554. <img
  3555. src="../../../assets/icon/new/isToolC.png"
  3556. alt=""
  3557. />
  3558. </div>
  3559. </div> -->
  3560. </div>
  3561. <div
  3562. class="toolSort"
  3563. v-if="itemTool.toolType == 7"
  3564. >
  3565. <div
  3566. class="tool"
  3567. :class="{
  3568. isToolChoose:
  3569. itemTool.tool.indexOf(40) != -1,
  3570. }"
  3571. @click.stop="
  3572. addTools(40, itemTaskIndex, toolIndex)
  3573. "
  3574. >
  3575. <div
  3576. class="whiteBIcon"
  3577. @click.stop="
  3578. openTools(itemTaskIndex, 40, toolIndex)
  3579. "
  3580. >
  3581. <img
  3582. src="../../../assets/icon/thirdToolList/eval.png"
  3583. alt
  3584. />
  3585. <div style="margin: 5px 0">个人评价</div>
  3586. </div>
  3587. <div class="noCTool">
  3588. <img
  3589. src="../../../assets/icon/new/isToolC.png"
  3590. alt=""
  3591. />
  3592. </div>
  3593. <div
  3594. class="isCTool"
  3595. v-if="itemTool.tool.indexOf(40) != -1"
  3596. >
  3597. <img
  3598. src="../../../assets/icon/new/isToolC.png"
  3599. alt=""
  3600. />
  3601. </div>
  3602. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3603. <img src="../../../assets/icon/checkNo.png" alt
  3604. v-if="itemTool.tool.indexOf(40) == -1" />
  3605. <div class="checkDiv" v-else>
  3606. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3607. </div>
  3608. </div> -->
  3609. </div>
  3610. </div>
  3611. <div
  3612. class="toolSort"
  3613. v-if="itemTool.toolType == 5"
  3614. >
  3615. <div
  3616. class="tool"
  3617. :class="{
  3618. isToolChoose:
  3619. itemTool.tool.indexOf(28) != -1,
  3620. }"
  3621. @click="
  3622. addTools(28, itemTaskIndex, toolIndex)
  3623. "
  3624. >
  3625. <div
  3626. class="whiteBIcon"
  3627. @click.stop="
  3628. addTools(28, itemTaskIndex, toolIndex)
  3629. "
  3630. >
  3631. <img
  3632. src="../../../assets/icon/secondToolList/translation.png"
  3633. alt
  3634. />
  3635. <div style="margin: 5px 0">翻译</div>
  3636. </div>
  3637. <div class="noCTool">
  3638. <img
  3639. src="../../../assets/icon/new/isToolC.png"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div
  3644. class="isCTool"
  3645. v-if="itemTool.tool.indexOf(28) != -1"
  3646. >
  3647. <img
  3648. src="../../../assets/icon/new/isToolC.png"
  3649. alt=""
  3650. />
  3651. </div>
  3652. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3653. <img src="../../../assets/icon/checkNo.png" alt
  3654. v-if="itemTool.tool.indexOf(28) == -1" />
  3655. <div class="checkDiv" v-else>
  3656. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3657. </div>
  3658. </div> -->
  3659. </div>
  3660. <div
  3661. class="tool"
  3662. :class="{
  3663. isToolChoose:
  3664. itemTool.tool.indexOf(31) != -1,
  3665. }"
  3666. @click="
  3667. addTools(31, itemTaskIndex, toolIndex)
  3668. "
  3669. >
  3670. <div
  3671. class="whiteBIcon"
  3672. @click.stop="
  3673. addTools(31, itemTaskIndex, toolIndex)
  3674. "
  3675. >
  3676. <img
  3677. src="../../../assets/icon/secondToolList/networkPanel.png"
  3678. alt
  3679. />
  3680. <div style="margin: 5px 0">数字画板</div>
  3681. </div>
  3682. <div class="noCTool">
  3683. <img
  3684. src="../../../assets/icon/new/isToolC.png"
  3685. alt=""
  3686. />
  3687. </div>
  3688. <div
  3689. class="isCTool"
  3690. v-if="itemTool.tool.indexOf(31) != -1"
  3691. >
  3692. <img
  3693. src="../../../assets/icon/new/isToolC.png"
  3694. alt=""
  3695. />
  3696. </div>
  3697. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3698. <img src="../../../assets/icon/checkNo.png" alt
  3699. v-if="itemTool.tool.indexOf(31) == -1" />
  3700. <div class="checkDiv" v-else>
  3701. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3702. </div>
  3703. </div> -->
  3704. </div>
  3705. <div
  3706. class="tool"
  3707. :class="{
  3708. isToolChoose:
  3709. itemTool.tool.indexOf(39) != -1,
  3710. }"
  3711. @click="
  3712. addTools(39, itemTaskIndex, toolIndex)
  3713. "
  3714. >
  3715. <div
  3716. class="whiteBIcon"
  3717. @click.stop="
  3718. addTools(39, itemTaskIndex, toolIndex)
  3719. "
  3720. >
  3721. <img
  3722. src="../../../assets/icon/secondToolList/GeoGebra.png"
  3723. alt
  3724. />
  3725. <div style="margin: 5px 0">GeoGebra</div>
  3726. </div>
  3727. <div class="noCTool">
  3728. <img
  3729. src="../../../assets/icon/new/isToolC.png"
  3730. alt=""
  3731. />
  3732. </div>
  3733. <div
  3734. class="isCTool"
  3735. v-if="itemTool.tool.indexOf(39) != -1"
  3736. >
  3737. <img
  3738. src="../../../assets/icon/new/isToolC.png"
  3739. alt=""
  3740. />
  3741. </div>
  3742. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3743. <img src="../../../assets/icon/checkNo.png" alt
  3744. v-if="itemTool.tool.indexOf(39) == -1" />
  3745. <div class="checkDiv" v-else>
  3746. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3747. </div>
  3748. </div> -->
  3749. </div>
  3750. <div
  3751. class="tool"
  3752. :class="{
  3753. isToolChoose:
  3754. itemTool.tool.indexOf(66) != -1,
  3755. }"
  3756. @click="
  3757. addTools(66, itemTaskIndex, toolIndex)
  3758. "
  3759. >
  3760. <div
  3761. class="whiteBIcon"
  3762. @click.stop="
  3763. addTools(66, itemTaskIndex, toolIndex)
  3764. "
  3765. >
  3766. <img
  3767. src="../../../assets/icon/secondToolList/formulaEdi.png"
  3768. alt
  3769. />
  3770. <div style="margin: 5px 0">公式编辑</div>
  3771. </div>
  3772. <div class="noCTool">
  3773. <img
  3774. src="../../../assets/icon/new/isToolC.png"
  3775. alt=""
  3776. />
  3777. </div>
  3778. <div
  3779. class="isCTool"
  3780. v-if="itemTool.tool.indexOf(66) != -1"
  3781. >
  3782. <img
  3783. src="../../../assets/icon/new/isToolC.png"
  3784. alt=""
  3785. />
  3786. </div>
  3787. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3788. <img src="../../../assets/icon/checkNo.png" alt
  3789. v-if="itemTool.tool.indexOf(66) == -1" />
  3790. <div class="checkDiv" v-else>
  3791. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3792. </div>
  3793. </div> -->
  3794. </div>
  3795. <!-- <div class="tool">
  3796. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3797. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3798. <div style="margin: 5px 0">分子结构</div>
  3799. </div>
  3800. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3801. <img src="../../../assets/icon/checkNo.png" alt
  3802. v-if="itemTool.tool.indexOf(67) == -1" />
  3803. <div class="checkDiv" v-else>
  3804. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3805. </div>
  3806. </div>
  3807. </div> -->
  3808. <!-- <div
  3809. class="tool"
  3810. :class="{
  3811. isToolChoose:
  3812. itemTool.tool.indexOf(68) != -1,
  3813. }"
  3814. @click="
  3815. addTools(68, itemTaskIndex, toolIndex)
  3816. "
  3817. >
  3818. <div
  3819. class="whiteBIcon"
  3820. @click.stop="
  3821. addTools(68, itemTaskIndex, toolIndex)
  3822. "
  3823. >
  3824. <img
  3825. src="../../../assets/icon/secondToolList/timeAxis.png"
  3826. alt
  3827. />
  3828. <div style="margin: 5px 0">时间轴</div>
  3829. </div>
  3830. <div class="noCTool">
  3831. <img
  3832. src="../../../assets/icon/new/isToolC.png"
  3833. alt=""
  3834. />
  3835. </div>
  3836. <div
  3837. class="isCTool"
  3838. v-if="itemTool.tool.indexOf(68) != -1"
  3839. >
  3840. <img
  3841. src="../../../assets/icon/new/isToolC.png"
  3842. alt=""
  3843. />
  3844. </div> -->
  3845. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3846. <img src="../../../assets/icon/checkNo.png" alt
  3847. v-if="itemTool.tool.indexOf(68) == -1" />
  3848. <div class="checkDiv" v-else>
  3849. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3850. </div>
  3851. </div> -->
  3852. <!-- </div> -->
  3853. <div
  3854. class="tool"
  3855. :class="{
  3856. isToolChoose:
  3857. itemTool.tool.indexOf(69) != -1,
  3858. }"
  3859. @click="
  3860. addTools(69, itemTaskIndex, toolIndex)
  3861. "
  3862. >
  3863. <div
  3864. class="whiteBIcon"
  3865. @click.stop="
  3866. openTools(itemTaskIndex, 69, toolIndex)
  3867. "
  3868. >
  3869. <img
  3870. src="../../../assets/icon/thirdToolList/english.png"
  3871. alt
  3872. />
  3873. <div style="margin: 5px 0">英语写作</div>
  3874. </div>
  3875. <div class="noCTool">
  3876. <img
  3877. src="../../../assets/icon/new/isToolC.png"
  3878. alt=""
  3879. />
  3880. </div>
  3881. <div
  3882. class="isCTool"
  3883. v-if="itemTool.tool.indexOf(69) != -1"
  3884. >
  3885. <img
  3886. src="../../../assets/icon/new/isToolC.png"
  3887. alt=""
  3888. />
  3889. </div>
  3890. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3891. <img src="../../../assets/icon/checkNo.png" alt
  3892. v-if="itemTool.tool.indexOf(4) == -1" />
  3893. <div class="checkDiv" v-else>
  3894. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3895. </div>
  3896. </div> -->
  3897. </div>
  3898. <div
  3899. class="tool"
  3900. :class="{
  3901. isToolChoose:
  3902. itemTool.tool.indexOf(70) != -1,
  3903. }"
  3904. @click="
  3905. addTools(70, itemTaskIndex, toolIndex)
  3906. "
  3907. >
  3908. <div
  3909. class="whiteBIcon"
  3910. @click.stop="
  3911. openTools(itemTaskIndex, 70, toolIndex)
  3912. "
  3913. >
  3914. <img
  3915. src="../../../assets/icon/thirdToolList/englishVoice.png"
  3916. alt
  3917. />
  3918. <div style="margin: 5px 0">英语口语</div>
  3919. </div>
  3920. <div class="noCTool">
  3921. <img
  3922. src="../../../assets/icon/new/isToolC.png"
  3923. alt=""
  3924. />
  3925. </div>
  3926. <div
  3927. class="isCTool"
  3928. v-if="itemTool.tool.indexOf(70) != -1"
  3929. >
  3930. <img
  3931. src="../../../assets/icon/new/isToolC.png"
  3932. alt=""
  3933. />
  3934. </div>
  3935. </div>
  3936. <!-- <div class="tool">
  3937. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3938. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3939. <div style="margin: 5px 0">翻译</div>
  3940. </div>
  3941. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3942. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3943. <div class="checkDiv" v-else>
  3944. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3945. </div>
  3946. </div>
  3947. </div>
  3948. <div class="tool">
  3949. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3950. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3951. <div style="margin: 5px 0">魔盒识字</div>
  3952. </div>
  3953. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3954. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3955. <div class="checkDiv" v-else>
  3956. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3957. </div>
  3958. </div>
  3959. </div>
  3960. <div class="tool">
  3961. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3962. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3963. <div style="margin: 5px 0">24点</div>
  3964. </div>
  3965. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3966. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3967. <div class="checkDiv" v-else>
  3968. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. <div class="tool">
  3973. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3974. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3975. <div style="margin: 5px 0">数学画板</div>
  3976. </div>
  3977. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3978. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3979. <div class="checkDiv" v-else>
  3980. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3981. </div>
  3982. </div>
  3983. </div>
  3984. <div class="tool">
  3985. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3986. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3987. <div style="margin: 5px 0">GeoGebra</div>
  3988. </div>
  3989. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3990. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3991. <div class="checkDiv" v-else>
  3992. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3993. </div>
  3994. </div>
  3995. </div>
  3996. <div class="tool">
  3997. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3998. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3999. <div style="margin: 5px 0">模拟驾驶</div>
  4000. </div>
  4001. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  4002. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -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 class="tool">
  4009. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  4010. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  4011. <div style="margin: 5px 0">路径搜索</div>
  4012. </div>
  4013. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  4014. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  4015. <div class="checkDiv" v-else>
  4016. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4017. </div>
  4018. </div>
  4019. </div>
  4020. <div class="tool">
  4021. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  4022. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  4023. <div style="margin: 5px 0">深度学习</div>
  4024. </div>
  4025. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  4026. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  4027. <div class="checkDiv" v-else>
  4028. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4029. </div>
  4030. </div>
  4031. </div>
  4032. <div class="tool">
  4033. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  4034. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  4035. <div style="margin: 5px 0">全历史</div>
  4036. </div>
  4037. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  4038. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  4039. <div class="checkDiv" v-else>
  4040. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. <div class="toolSort" v-if="itemTool.toolType == 4">
  4046. <div class="tool">
  4047. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  4048. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  4049. <div style="margin: 5px 0">课程设计</div>
  4050. </div>
  4051. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  4052. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -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(25, itemTaskIndex, toolIndex)">
  4060. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  4061. <div style="margin: 5px 0">目标管理</div>
  4062. </div>
  4063. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  4064. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -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(44, itemTaskIndex, toolIndex)">
  4072. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4073. <div style="margin: 5px 0">汉字宫</div>
  4074. </div>
  4075. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4076. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -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>
  4083. </div>
  4084. <!-- v-show="!itemTool.isFold3" -->
  4085. <div>
  4086. <textarea
  4087. rows="2"
  4088. v-autoHeight="70"
  4089. type="text"
  4090. placeholder="添加工具描述"
  4091. class="binfo_input"
  4092. style="
  4093. margin: 0 0 20px 0;
  4094. width: 100% !important;
  4095. "
  4096. v-model="itemTool.toolDetail"
  4097. ></textarea>
  4098. </div>
  4099. </div>
  4100. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  4101. <div class="addToolImg">
  4102. <img src="../../../assets/icon/add.png" alt />
  4103. </div>
  4104. <div>添加工具</div>
  4105. </div> -->
  4106. <button
  4107. class="c_pub_button_add pub_btn_tool_img"
  4108. @click="addToolFun(itemTaskIndex)"
  4109. style="
  4110. margin: 0 auto;
  4111. padding: 0 30px;
  4112. height: 45px;
  4113. "
  4114. >
  4115. 添加工具
  4116. </button>
  4117. </div>
  4118. </div>
  4119. <div
  4120. v-else-if="
  4121. unitJson[unitIndex].easy == 2 ||
  4122. unitJson[unitIndex].easy == 4
  4123. "
  4124. class="toolChoose"
  4125. style="padding: 0 0 40px"
  4126. >
  4127. <div class="tools">
  4128. <div
  4129. class="leftTools"
  4130. style="width: 100%"
  4131. v-for="(
  4132. itemTool, toolIndex
  4133. ) in itemTask.toolChoose"
  4134. :key="toolIndex"
  4135. >
  4136. <div>
  4137. <textarea
  4138. rows="3"
  4139. type="text"
  4140. placeholder="添加工具描述"
  4141. class="binfo_input"
  4142. style="
  4143. margin: 0 0 20px 0;
  4144. width: 100% !important;
  4145. "
  4146. v-model="itemTool.toolDetail"
  4147. ></textarea>
  4148. </div>
  4149. <div
  4150. style="
  4151. display: flex;
  4152. flex-direction: row;
  4153. align-items: baseline;
  4154. flex-wrap: nowrap;
  4155. justify-content: flex-start;
  4156. position: relative;
  4157. "
  4158. >
  4159. <div
  4160. style="margin-right: 20px; font-weight: bold"
  4161. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4162. >
  4163. 工具 {{ toolIndex + 1 }} :
  4164. </div>
  4165. <div
  4166. class="remove"
  4167. @click="deleteTool(itemTaskIndex, toolIndex)"
  4168. v-if="itemTask.toolChoose.length > 1"
  4169. style="right: 0"
  4170. ></div>
  4171. </div>
  4172. <div style="min-height: 163px">
  4173. <div class="toolSort">
  4174. <div class="tool">
  4175. <div
  4176. class="whiteBIcon"
  4177. @click="
  4178. openTools(itemTaskIndex, 1, toolIndex)
  4179. "
  4180. >
  4181. <img
  4182. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4183. alt
  4184. />
  4185. <div style="margin: 5px 0">电子白板</div>
  4186. </div>
  4187. <div
  4188. class="check"
  4189. @click="
  4190. addTools(1, itemTaskIndex, toolIndex)
  4191. "
  4192. >
  4193. <img
  4194. src="../../../assets/icon/checkNo.png"
  4195. alt
  4196. v-if="itemTool.tool.indexOf(1) == -1"
  4197. />
  4198. <div class="checkDiv" v-else>
  4199. <img
  4200. src="../../../assets/icon/checkedIs.png"
  4201. alt
  4202. /><span>已选择</span>
  4203. </div>
  4204. </div>
  4205. </div>
  4206. <div class="tool">
  4207. <div
  4208. class="whiteBIcon"
  4209. @click="
  4210. openTools(itemTaskIndex, 52, toolIndex)
  4211. "
  4212. >
  4213. <img
  4214. src="../../../assets/icon/fourthToolList/text.png"
  4215. alt
  4216. />
  4217. <div style="margin: 5px 0">文档</div>
  4218. </div>
  4219. <div
  4220. class="check"
  4221. @click="
  4222. addTools(52, itemTaskIndex, toolIndex)
  4223. "
  4224. >
  4225. <img
  4226. src="../../../assets/icon/checkNo.png"
  4227. alt
  4228. v-if="itemTool.tool.indexOf(52) == -1"
  4229. />
  4230. <div class="checkDiv" v-else>
  4231. <img
  4232. src="../../../assets/icon/checkedIs.png"
  4233. alt
  4234. /><span>已选择</span>
  4235. </div>
  4236. </div>
  4237. </div>
  4238. <div class="tool">
  4239. <div
  4240. class="whiteBIcon"
  4241. @click="
  4242. openTools(itemTaskIndex, 3, toolIndex)
  4243. "
  4244. >
  4245. <img
  4246. src="../../../assets/icon/secondToolList/mindMapping.png"
  4247. alt
  4248. />
  4249. <div style="margin: 5px 0">思维导图</div>
  4250. </div>
  4251. <div
  4252. class="check"
  4253. @click="
  4254. addTools(3, itemTaskIndex, toolIndex)
  4255. "
  4256. >
  4257. <img
  4258. src="../../../assets/icon/checkNo.png"
  4259. alt
  4260. v-if="itemTool.tool.indexOf(3) == -1"
  4261. />
  4262. <div class="checkDiv" v-else>
  4263. <img
  4264. src="../../../assets/icon/checkedIs.png"
  4265. alt
  4266. /><span>已选择</span>
  4267. </div>
  4268. </div>
  4269. </div>
  4270. <div class="tool">
  4271. <div
  4272. class="whiteBIcon"
  4273. @click="
  4274. openTools(itemTaskIndex, 4, toolIndex)
  4275. "
  4276. >
  4277. <img
  4278. src="../../../assets/icon/thirdToolList/ask.png"
  4279. alt
  4280. />
  4281. <div style="margin: 5px 0">问卷调查</div>
  4282. </div>
  4283. <div
  4284. class="check"
  4285. @click="
  4286. addTools(4, itemTaskIndex, toolIndex)
  4287. "
  4288. >
  4289. <img
  4290. src="../../../assets/icon/checkNo.png"
  4291. alt
  4292. v-if="itemTool.tool.indexOf(4) == -1"
  4293. />
  4294. <div class="checkDiv" v-else>
  4295. <img
  4296. src="../../../assets/icon/checkedIs.png"
  4297. alt
  4298. /><span>已选择</span>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. <div class="tool">
  4303. <div
  4304. class="whiteBIcon"
  4305. @click="
  4306. openTools(itemTaskIndex, 45, toolIndex)
  4307. "
  4308. >
  4309. <img
  4310. src="../../../assets/icon/thirdToolList/choose.png"
  4311. alt
  4312. />
  4313. <div style="margin: 5px 0">选择题</div>
  4314. </div>
  4315. <div
  4316. class="check"
  4317. @click="
  4318. addTools(45, itemTaskIndex, toolIndex)
  4319. "
  4320. >
  4321. <img
  4322. src="../../../assets/icon/checkNo.png"
  4323. alt
  4324. v-if="itemTool.tool.indexOf(45) == -1"
  4325. />
  4326. <div class="checkDiv" v-else>
  4327. <img
  4328. src="../../../assets/icon/checkedIs.png"
  4329. alt
  4330. /><span>已选择</span>
  4331. </div>
  4332. </div>
  4333. </div>
  4334. <div class="tool">
  4335. <div
  4336. class="whiteBIcon"
  4337. @click="
  4338. openTools(itemTaskIndex, 15, toolIndex)
  4339. "
  4340. >
  4341. <img
  4342. src="../../../assets/icon/thirdToolList/answer.png"
  4343. alt
  4344. />
  4345. <div style="margin: 5px 0">问答</div>
  4346. </div>
  4347. <div
  4348. class="check"
  4349. @click="
  4350. addTools(15, itemTaskIndex, toolIndex)
  4351. "
  4352. >
  4353. <img
  4354. src="../../../assets/icon/checkNo.png"
  4355. alt
  4356. v-if="itemTool.tool.indexOf(15) == -1"
  4357. />
  4358. <div class="checkDiv" v-else>
  4359. <img
  4360. src="../../../assets/icon/checkedIs.png"
  4361. alt
  4362. /><span>已选择</span>
  4363. </div>
  4364. </div>
  4365. </div>
  4366. <div class="tool">
  4367. <div
  4368. class="whiteBIcon"
  4369. @click="
  4370. addTools(16, itemTaskIndex, toolIndex)
  4371. "
  4372. >
  4373. <img
  4374. src="../../../assets/icon/thirdToolList/work.png"
  4375. alt
  4376. />
  4377. <div style="margin: 5px 0">作业提交</div>
  4378. </div>
  4379. <div
  4380. class="check"
  4381. @click="
  4382. addTools(16, itemTaskIndex, toolIndex)
  4383. "
  4384. >
  4385. <img
  4386. src="../../../assets/icon/checkNo.png"
  4387. alt
  4388. v-if="itemTool.tool.indexOf(16) == -1"
  4389. />
  4390. <div class="checkDiv" v-else>
  4391. <img
  4392. src="../../../assets/icon/checkedIs.png"
  4393. alt
  4394. /><span>已选择</span>
  4395. </div>
  4396. </div>
  4397. </div>
  4398. <div class="tool">
  4399. <div
  4400. class="whiteBIcon"
  4401. @click="
  4402. openTools(itemTaskIndex, 50, toolIndex)
  4403. "
  4404. >
  4405. <img
  4406. src="../../../assets/icon/thirdToolList/plwork.png"
  4407. alt
  4408. />
  4409. <div style="margin: 5px 0">批量上传</div>
  4410. </div>
  4411. <div
  4412. class="check"
  4413. @click="
  4414. addTools(50, itemTaskIndex, toolIndex)
  4415. "
  4416. >
  4417. <img
  4418. src="../../../assets/icon/checkNo.png"
  4419. alt
  4420. v-if="itemTool.tool.indexOf(50) == -1"
  4421. />
  4422. <div class="checkDiv" v-else>
  4423. <img
  4424. src="../../../assets/icon/checkedIs.png"
  4425. alt
  4426. /><span>已选择</span>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. <div class="tool">
  4431. <div
  4432. class="whiteBIcon"
  4433. @click="
  4434. openTools(itemTaskIndex, 41, toolIndex)
  4435. "
  4436. >
  4437. <img
  4438. src="../../../assets/icon/thirdToolList/select.png"
  4439. alt
  4440. />
  4441. <div style="margin: 5px 0">选择匹配</div>
  4442. </div>
  4443. <div
  4444. class="check"
  4445. @click="
  4446. addTools(41, itemTaskIndex, toolIndex)
  4447. "
  4448. >
  4449. <img
  4450. src="../../../assets/icon/checkNo.png"
  4451. alt
  4452. v-if="itemTool.tool.indexOf(41) == -1"
  4453. />
  4454. <div class="checkDiv" v-else>
  4455. <img
  4456. src="../../../assets/icon/checkedIs.png"
  4457. alt
  4458. /><span>已选择</span>
  4459. </div>
  4460. </div>
  4461. </div>
  4462. <div class="tool">
  4463. <div
  4464. class="whiteBIcon"
  4465. @click="
  4466. openTools(itemTaskIndex, 47, toolIndex)
  4467. "
  4468. >
  4469. <img
  4470. src="../../../assets/icon/fourthToolList/conSentences.png"
  4471. alt
  4472. />
  4473. <div style="margin: 5px 0">排序</div>
  4474. </div>
  4475. <div
  4476. class="check"
  4477. @click="
  4478. addTools(47, itemTaskIndex, toolIndex)
  4479. "
  4480. >
  4481. <img
  4482. src="../../../assets/icon/checkNo.png"
  4483. alt
  4484. v-if="itemTool.tool.indexOf(47) == -1"
  4485. />
  4486. <div class="checkDiv" v-else>
  4487. <img
  4488. src="../../../assets/icon/checkedIs.png"
  4489. alt
  4490. /><span>已选择</span>
  4491. </div>
  4492. </div>
  4493. </div>
  4494. <div class="tool">
  4495. <div
  4496. class="whiteBIcon"
  4497. @click="
  4498. openTools(itemTaskIndex, 48, toolIndex)
  4499. "
  4500. >
  4501. <img
  4502. src="../../../assets/icon/fourthToolList/table.png"
  4503. alt
  4504. />
  4505. <div style="margin: 5px 0">表格</div>
  4506. </div>
  4507. <div
  4508. class="check"
  4509. @click="
  4510. addTools(48, itemTaskIndex, toolIndex)
  4511. "
  4512. >
  4513. <img
  4514. src="../../../assets/icon/checkNo.png"
  4515. alt
  4516. v-if="itemTool.tool.indexOf(48) == -1"
  4517. />
  4518. <div class="checkDiv" v-else>
  4519. <img
  4520. src="../../../assets/icon/checkedIs.png"
  4521. alt
  4522. /><span>已选择</span>
  4523. </div>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4530. <div class="addToolImg">
  4531. <img src="../../../assets/icon/add.png" alt />
  4532. </div>
  4533. <div>添加工具</div>
  4534. </div> -->
  4535. <button
  4536. class="c_pub_button_add pub_btn_tool_img"
  4537. @click="addToolFun(itemTaskIndex)"
  4538. style="margin: 35px auto 20px"
  4539. >
  4540. 添加工具
  4541. </button>
  4542. </div>
  4543. </div>
  4544. <div
  4545. v-else-if="
  4546. unitJson[unitIndex].easy == 1 ||
  4547. (unitJson[unitIndex].easy == 5 &&
  4548. itemTask.taskType == 2)
  4549. "
  4550. class="toolChoose"
  4551. style="padding: 0 0 40px"
  4552. >
  4553. <div class="tools">
  4554. <div
  4555. class="leftTools"
  4556. style="width: 100%; padding: 0 0 15px 0"
  4557. v-for="(
  4558. itemTool, toolIndex
  4559. ) in itemTask.toolChoose"
  4560. :key="toolIndex"
  4561. >
  4562. <div style="min-height: 163px">
  4563. <div class="toolSort">
  4564. <div class="tool">
  4565. <div
  4566. class="whiteBIcon"
  4567. @click="
  4568. openTools(itemTaskIndex, 50, toolIndex)
  4569. "
  4570. >
  4571. <img
  4572. src="../../../assets/icon/thirdToolList/plwork.png"
  4573. alt
  4574. />
  4575. <div style="margin: 5px 0">批量上传</div>
  4576. </div>
  4577. <div
  4578. class="check"
  4579. @click="
  4580. addTools(50, itemTaskIndex, toolIndex)
  4581. "
  4582. >
  4583. <img
  4584. src="../../../assets/icon/checkNo.png"
  4585. alt
  4586. v-if="itemTool.tool.indexOf(50) == -1"
  4587. />
  4588. <div class="checkDiv" v-else>
  4589. <img
  4590. src="../../../assets/icon/checkedIs.png"
  4591. alt
  4592. /><span>已选择</span>
  4593. </div>
  4594. </div>
  4595. </div>
  4596. </div>
  4597. </div>
  4598. </div>
  4599. </div>
  4600. </div>
  4601. <div
  4602. class="elist_css"
  4603. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4604. >
  4605. <div class="elist_title">
  4606. <div
  4607. style="
  4608. display: flex;
  4609. flex-direction: row;
  4610. align-items: center;
  4611. margin: 20px 0;
  4612. "
  4613. >
  4614. <div class="lineTitle clineTitle">评价设置</div>
  4615. <!-- <div class="line" style="width: 90%"></div> -->
  4616. </div>
  4617. </div>
  4618. <div class="mbCss">
  4619. <div
  4620. class="pjCss"
  4621. :style="{
  4622. width: itemTask.isEvaFold
  4623. ? 'calc(100% - 55%)'
  4624. : 'calc(100% - 120px)',
  4625. }"
  4626. >
  4627. <div
  4628. v-if="itemTask.eList && itemTask.eList.length"
  4629. class="elist_input"
  4630. >
  4631. <div
  4632. v-for="(eItem, eIndex) in itemTask.eList"
  4633. :key="eIndex"
  4634. class="elist_input_box"
  4635. >
  4636. <span>评价维度:</span>
  4637. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4638. <input
  4639. type="input"
  4640. v-model="itemTask.eList[eIndex].value"
  4641. placeholder="填写评价维度"
  4642. />
  4643. <!-- </el-tooltip> -->
  4644. <!-- <span>评星等级:</span>
  4645. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4646. disabled></el-rate> -->
  4647. <div
  4648. class="remove"
  4649. @click="
  4650. deletEList(
  4651. unitIndex,
  4652. itemTaskIndex,
  4653. eIndex
  4654. )
  4655. "
  4656. ></div>
  4657. <div class="elist_inptu_text">
  4658. <span>维度描述:</span>
  4659. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4660. <input
  4661. type="input"
  4662. v-model="itemTask.eList[eIndex].detail"
  4663. placeholder="填写维度描述"
  4664. />
  4665. <!-- </el-tooltip> -->
  4666. </div>
  4667. <div class="elist_inptu_text" v-if="evalua">
  4668. <span>目标:</span>
  4669. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4670. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4671. @change="forceUpdate()">
  4672. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4673. :value="e.name">
  4674. </el-option>
  4675. </el-select> -->
  4676. <el-cascader
  4677. :options="targetArray"
  4678. v-model="itemTask.eList[eIndex].target"
  4679. :props="{ checkStrictly: true }"
  4680. :show-all-levels="false"
  4681. clearable
  4682. ></el-cascader>
  4683. </div>
  4684. </div>
  4685. </div>
  4686. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4687. style="margin: 35px 35px 0 0">
  4688. <div class="addToolImg">
  4689. <img src="../../../assets/icon/add.png" alt />
  4690. </div>
  4691. <div>添加</div>
  4692. </div> -->
  4693. <div class="eva_btn_box">
  4694. <div class="eva_btn_left_box">
  4695. <button
  4696. class="c_pub_button_add pub_btn_eval_img"
  4697. @click="addEList(unitIndex, itemTaskIndex)"
  4698. >
  4699. 添加
  4700. </button>
  4701. <button
  4702. class="c_pub_button_add pub_btn_eval_source_img"
  4703. @click="openEList(unitIndex, itemTaskIndex)"
  4704. >
  4705. 资源
  4706. </button>
  4707. </div>
  4708. <button
  4709. class="c_pub_button_add"
  4710. @click="addCET(unitIndex, itemTaskIndex)"
  4711. v-if="itemTask.eList && itemTask.eList.length"
  4712. >
  4713. 添加资源模板
  4714. </button>
  4715. </div>
  4716. </div>
  4717. <div
  4718. v-if="evalua"
  4719. style="
  4720. border: 1px solid #e5e5e5;
  4721. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4722. "
  4723. :style="{
  4724. width: itemTask.isEvaFold ? '55%' : '116px',
  4725. }"
  4726. class="evaCss"
  4727. >
  4728. <!-- <div class="e_add_top">
  4729. <div class="e_add_title">
  4730. <span>当前使用目标管理</span>
  4731. <span>{{ eTitle }}</span>
  4732. <img src="../../../assets/line.png" class="cru_line" style="
  4733. width: 125px;
  4734. height: 20px;
  4735. bottom: -10px;
  4736. left: 155px;
  4737. " />
  4738. </div>
  4739. </div> -->
  4740. <div class="e_add_content" style="width: 100%">
  4741. <div
  4742. class="e_add_list_pbox"
  4743. style="width: 100%"
  4744. >
  4745. <div class="e_add_list_pbox_title">
  4746. <span
  4747. class="type_title"
  4748. v-if="itemTask.isEvaFold"
  4749. >切换模式</span
  4750. >
  4751. <div
  4752. class="type_content"
  4753. v-if="itemTask.isEvaFold"
  4754. >
  4755. <span
  4756. :class="{ active: typeMode == 1 }"
  4757. @click="OtherMb(1, itemTaskIndex)"
  4758. >目标树</span
  4759. >
  4760. <span
  4761. :class="{ active: typeMode == 2 }"
  4762. @click="OtherMb(2, itemTaskIndex)"
  4763. >目标罗盘</span
  4764. >
  4765. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4766. </div>
  4767. <div
  4768. v-if="itemTask.isEvaFold"
  4769. class="show_taskD show"
  4770. style="margin: 0 0 0 auto"
  4771. @click="foldEva(itemTaskIndex)"
  4772. >
  4773. <img
  4774. src="../../../assets/icon/new/icon-slide.png"
  4775. />收起目标
  4776. </div>
  4777. <div
  4778. v-else
  4779. style="margin: 0 0 0 auto"
  4780. class="show_taskD"
  4781. @click="foldEva(itemTaskIndex)"
  4782. >
  4783. <img
  4784. src="../../../assets/icon/new/icon-slide.png"
  4785. />展开目标
  4786. </div>
  4787. </div>
  4788. <div
  4789. class="e_add_list_pbox_content"
  4790. v-if="itemTask.isEvaFold"
  4791. style="min-height: 200px"
  4792. >
  4793. <Mind
  4794. :showBar="false"
  4795. :mindData="data"
  4796. style="width: 100%"
  4797. :jsmindId="
  4798. unitIndex + '-' + itemTaskIndex + 'mind'
  4799. "
  4800. v-if="typeMode == 1"
  4801. ></Mind>
  4802. <Sunburst
  4803. :Josn="eJson"
  4804. :num="eJSONNum"
  4805. style="width: 100%"
  4806. v-if="typeMode == 2"
  4807. >
  4808. </Sunburst>
  4809. <SeeBoard
  4810. :Josn="eJson"
  4811. :num="eJSONNum"
  4812. :ename="eTitle"
  4813. style="width: 100%"
  4814. v-if="typeMode == 3"
  4815. ></SeeBoard>
  4816. </div>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. <div class="funBlock" style="padding: 0">
  4823. <div
  4824. class="fold"
  4825. @click="fold(itemTaskIndex, $event)"
  4826. >
  4827. <div
  4828. class="arrow"
  4829. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4830. ></div>
  4831. <div>
  4832. {{
  4833. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4834. }}
  4835. </div>
  4836. </div>
  4837. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4838. <div>展开</div>
  4839. <div class="arrow">
  4840. <img src="../../../assets/icon/expand.png" alt />
  4841. </div>
  4842. </div> -->
  4843. </div>
  4844. </div>
  4845. </div>
  4846. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4847. <!-- <div>
  4848. <img src="../../../../assets/icon/new/addStage.png" alt />
  4849. <span>添加任务</span>
  4850. </div> -->
  4851. <button
  4852. class="c_pub_button_confirm pub_btn_add_task_img"
  4853. @click="addTaskBorder"
  4854. >
  4855. 添加任务
  4856. </button>
  4857. </div>
  4858. </div>
  4859. <!-- <div class="info_btnBox3">
  4860. <button
  4861. class="c_pub_button_return pub_btn_return_img"
  4862. v-if="steps == 1"
  4863. @click="
  4864. goTo(
  4865. '/course?userid=' +
  4866. userid +
  4867. '&oid=' +
  4868. oid +
  4869. '&org=' +
  4870. org +
  4871. '&role=' +
  4872. role
  4873. )
  4874. "
  4875. >
  4876. 返回课程
  4877. </button>
  4878. <button
  4879. class="c_pub_button_return pub_btn_last_img"
  4880. v-if="steps > 1 && steps != 5"
  4881. @click="lastSteps"
  4882. style="background: #dbdbdb"
  4883. >
  4884. {{ steps == 4 ? "返回课程" : "上一步" }}
  4885. </button>
  4886. <button
  4887. class="c_pub_button_confirm"
  4888. v-if="steps < 4"
  4889. @click="nextSteps"
  4890. :class="{
  4891. pub_btn_next_img: steps != 3,
  4892. pub_btn_finish_img: steps == 3,
  4893. }"
  4894. >
  4895. {{ steps == 3 ? "确认上传" : "下一步" }}
  4896. </button>
  4897. </div> -->
  4898. </div>
  4899. </div>
  4900. </div>
  4901. <div class="info_btnBox3">
  4902. <button
  4903. class="c_pub_button_return pub_btn_return_img"
  4904. v-if="steps == 1"
  4905. @click="
  4906. goTo(
  4907. '/course?userid=' +
  4908. userid +
  4909. '&oid=' +
  4910. oid +
  4911. '&org=' +
  4912. org +
  4913. '&role=' +
  4914. role
  4915. )
  4916. "
  4917. >
  4918. 返回课程
  4919. </button>
  4920. <button
  4921. class="c_pub_button_return pub_btn_last_img"
  4922. v-if="steps > 1 && steps != 5"
  4923. @click="lastSteps"
  4924. >
  4925. {{ steps == 4 ? "返回课程" : "上一步" }}
  4926. </button>
  4927. <button
  4928. class="c_pub_button_confirm"
  4929. v-if="steps < 4"
  4930. @click="nextSteps"
  4931. :class="{
  4932. pub_btn_next_img: steps != 3,
  4933. pub_btn_finish_img: steps == 3,
  4934. }"
  4935. >
  4936. {{ "确认上传" }}
  4937. </button>
  4938. </div>
  4939. </div>
  4940. <div
  4941. class="rightBox"
  4942. v-if="steps == 2"
  4943. :style="{
  4944. height:
  4945. !isStepDisplay && !isBtnDisplay
  4946. ? 'calc(100% - 40px)'
  4947. : 'calc(100% - 100px)',
  4948. }"
  4949. >
  4950. <div
  4951. class="basic_box"
  4952. style="
  4953. padding: 20px 30px 0px !important;
  4954. box-sizing: border-box;
  4955. height: calc(100% - 80px);
  4956. overflow: auto;
  4957. background: #fff;
  4958. "
  4959. >
  4960. <!-- <div
  4961. style="
  4962. color: #b8b8b8;
  4963. background: #fff;
  4964. width: 26%;
  4965. height: 40px;
  4966. border-radius: 15px;
  4967. padding-left: 20px;
  4968. line-height: 40px;
  4969. font-size: 17px;
  4970. box-shadow: 0px 1px 2px 2px #e0e0e0;
  4971. "
  4972. >-->
  4973. <div
  4974. class="right_title"
  4975. style="border: none; margin: 0; padding: 0"
  4976. >
  4977. 请选择合适的课程模板
  4978. </div>
  4979. <div class="wordbox">
  4980. <div class="wordTeacher" @click="checkTemplate2()">
  4981. <div class="wordPic">
  4982. <img src="../../../assets/icon/new/template_none.png" alt />
  4983. </div>
  4984. <div
  4985. style="
  4986. margin-top: 10px;
  4987. line-height: 19px;
  4988. overflow: hidden;
  4989. text-overflow: ellipsis;
  4990. white-space: nowrap;
  4991. padding: 0 20px;
  4992. "
  4993. >
  4994. 空白模板
  4995. </div>
  4996. </div>
  4997. <div
  4998. class="wordTeacher"
  4999. v-for="(aa, indexF) in templateArray"
  5000. :key="indexF"
  5001. @click="checkTemplate(aa)"
  5002. >
  5003. <div class="wordPic">
  5004. <img src="../../../assets/icon/new/template.png" alt />
  5005. </div>
  5006. <div
  5007. style="
  5008. margin-top: 10px;
  5009. line-height: 19px;
  5010. overflow: hidden;
  5011. text-overflow: ellipsis;
  5012. white-space: nowrap;
  5013. padding: 0 20px;
  5014. "
  5015. >
  5016. {{ aa.title }}
  5017. </div>
  5018. </div>
  5019. <div
  5020. class="wordTeacher"
  5021. @click="checkTemplate3()"
  5022. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  5023. >
  5024. <div class="wordPic">
  5025. <img src="../../../assets/icon/new/template.png" alt />
  5026. </div>
  5027. <div
  5028. style="
  5029. margin-top: 10px;
  5030. line-height: 19px;
  5031. overflow: hidden;
  5032. text-overflow: ellipsis;
  5033. white-space: nowrap;
  5034. padding: 0 20px;
  5035. "
  5036. >
  5037. 简易模板
  5038. </div>
  5039. </div>
  5040. <div
  5041. class="wordTeacher"
  5042. @click="pasteStage()"
  5043. v-if="isPasteStage"
  5044. >
  5045. <div class="wordPic">
  5046. <img src="../../../assets/icon/new/template.png" alt />
  5047. </div>
  5048. <div
  5049. style="
  5050. margin-top: 10px;
  5051. line-height: 19px;
  5052. overflow: hidden;
  5053. text-overflow: ellipsis;
  5054. white-space: nowrap;
  5055. padding: 0 20px;
  5056. "
  5057. >
  5058. 智能粘贴模式
  5059. </div>
  5060. </div>
  5061. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  5062. <div class="wordPic">
  5063. <img src="../../../assets/icon/wordMub.png" alt />
  5064. </div>
  5065. <div style="
  5066. margin-top: 10px;
  5067. line-height: 19px;
  5068. overflow: hidden;
  5069. text-overflow: ellipsis;
  5070. white-space: nowrap;
  5071. padding: 0 20px;
  5072. ">
  5073. 未来小学课程设计
  5074. </div>
  5075. </div> -->
  5076. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  5077. <div class="wordPic">
  5078. <img src="../../../assets/icon/wordMub.png" alt />
  5079. </div>
  5080. <div style="
  5081. margin-top: 10px;
  5082. line-height: 19px;
  5083. overflow: hidden;
  5084. text-overflow: ellipsis;
  5085. white-space: nowrap;
  5086. padding: 0 20px;
  5087. ">
  5088. 我的课程
  5089. </div>
  5090. </div> -->
  5091. </div>
  5092. </div>
  5093. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  5094. <button
  5095. class="c_pub_button_return pub_btn_return_img"
  5096. v-if="steps == 1"
  5097. @click="
  5098. goTo(
  5099. '/course?userid=' +
  5100. userid +
  5101. '&oid=' +
  5102. oid +
  5103. '&org=' +
  5104. org +
  5105. '&role=' +
  5106. role
  5107. )
  5108. "
  5109. >
  5110. 返回课程
  5111. </button>
  5112. <button
  5113. class="c_pub_button_return pub_btn_last_img"
  5114. v-if="steps > 1 && steps != 5"
  5115. @click="lastSteps"
  5116. >
  5117. {{ steps == 4 ? "返回课程" : "上一步" }}
  5118. </button>
  5119. <button
  5120. class="c_pub_button_confirm"
  5121. v-if="steps < 4"
  5122. @click="nextSteps"
  5123. :class="{
  5124. pub_btn_next_img: steps != 3,
  5125. pub_btn_finish_img: steps == 3,
  5126. }"
  5127. >
  5128. {{ steps == 3 ? "确认上传" : "下一步" }}
  5129. </button>
  5130. </div>
  5131. </div>
  5132. <div
  5133. style="
  5134. width: calc(100% - 20px);
  5135. background: rgb(255, 255, 255);
  5136. border-radius: 10px;
  5137. "
  5138. v-if="steps == 4"
  5139. >
  5140. <div class="basic_box_success">
  5141. <div class="right_img">
  5142. <img src="../../../assets/icon/right.png" alt />
  5143. </div>
  5144. <div style="font-weight: bold">成功</div>
  5145. <!-- <div>您的课程编号</div>
  5146. <div class="number">{{ number }}</div>-->
  5147. <!-- <div class="success_button">
  5148. <div class="look_course" @click="isNoFinsh">
  5149. 邀请老师协同编辑
  5150. </div>
  5151. <div class="attend_others" @click="goCourse">预览课程</div>
  5152. </div> -->
  5153. </div>
  5154. </div>
  5155. <div
  5156. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  5157. @mouseenter="btnDisplay(true)"
  5158. @mouseleave="btnDisplay(false)"
  5159. v-if="false"
  5160. >
  5161. <button
  5162. class="c_pub_button_return pub_btn_return_img"
  5163. v-if="steps == 1 && isBtnDisplay"
  5164. @click="
  5165. goTo(
  5166. '/course?userid=' +
  5167. userid +
  5168. '&oid=' +
  5169. oid +
  5170. '&org=' +
  5171. org +
  5172. '&role=' +
  5173. role
  5174. )
  5175. "
  5176. >
  5177. 返回课程
  5178. </button>
  5179. <button
  5180. class="c_pub_button_return pub_btn_last_img"
  5181. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5182. @click="lastSteps"
  5183. >
  5184. {{ steps == 4 ? "返回课程" : "上一步" }}
  5185. </button>
  5186. <button
  5187. class="c_pub_button_confirm"
  5188. v-if="steps < 4 && isBtnDisplay"
  5189. @click="nextSteps"
  5190. :class="{
  5191. pub_btn_next_img: steps != 3,
  5192. pub_btn_finish_img: steps == 3,
  5193. }"
  5194. >
  5195. {{ "确认上传" }}
  5196. </button>
  5197. </div>
  5198. </div>
  5199. </div>
  5200. </div>
  5201. <el-dialog
  5202. title="提示"
  5203. :visible.sync="dialogVisible"
  5204. :append-to-body="true"
  5205. width="25%"
  5206. :before-close="handleClose"
  5207. class="dialog_diy2 customWidth"
  5208. >
  5209. <div>请复制该链接邀请协同编辑</div>
  5210. <div>http://www.boomyon.com/index-zhang.com</div>
  5211. <span slot="footer" class="dialog-footer">
  5212. <el-button type="primary">复制链接分享</el-button>
  5213. <el-button @click="dialogVisible = false">取消</el-button>
  5214. </span>
  5215. </el-dialog>
  5216. <el-dialog
  5217. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5218. :visible.sync="dialogVisible1"
  5219. :append-to-body="true"
  5220. width="25%"
  5221. :before-close="handleClose"
  5222. class="dialog_diy2 customWidth"
  5223. >
  5224. <el-form>
  5225. <el-form-item label="文档标题">
  5226. <el-input
  5227. v-model="tTitle"
  5228. auto-complete="off"
  5229. placeholder="请输入文档标题名..."
  5230. ></el-input>
  5231. </el-form-item>
  5232. <div>文档简介</div>
  5233. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5234. </el-form>
  5235. <span slot="footer" class="dialog-footer">
  5236. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5237. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5238. >添加</el-button
  5239. >
  5240. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5241. </span>
  5242. </el-dialog>
  5243. <el-dialog
  5244. title="添加文档"
  5245. :visible.sync="dialogVisible2"
  5246. :append-to-body="true"
  5247. width="500px"
  5248. :before-close="handleClose"
  5249. class="dialog_diy"
  5250. >
  5251. <el-form>
  5252. <el-form-item label="文档标题">
  5253. <el-input
  5254. v-model="templateC.title"
  5255. auto-complete="off"
  5256. placeholder="请输入文档标题名..."
  5257. ></el-input>
  5258. </el-form-item>
  5259. <div>文档内容</div>
  5260. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5261. </el-form>
  5262. <span slot="footer" class="dialog-footer">
  5263. <el-button @click="clearChoose">取 消</el-button>
  5264. <el-button type="primary" @click="wordNext()">确定</el-button>
  5265. </span>
  5266. </el-dialog>
  5267. <el-dialog
  5268. title="添加富文本"
  5269. :visible.sync="dialogVisible6"
  5270. :append-to-body="true"
  5271. width="500px"
  5272. :before-close="handleClose"
  5273. class="dialog_diy"
  5274. >
  5275. <el-form>
  5276. <el-form-item label="文本标题">
  5277. <el-input
  5278. ref="fuInput"
  5279. v-model="AttText.title"
  5280. auto-complete="off"
  5281. @input="change2"
  5282. placeholder="请输入文本标题..."
  5283. ></el-input>
  5284. </el-form-item>
  5285. <!-- <div>富文本内容</div> -->
  5286. <editor-bar
  5287. v-model="AttText.text"
  5288. @change="change"
  5289. v-if="dialogVisible6"
  5290. ></editor-bar>
  5291. </el-form>
  5292. <span slot="footer" class="dialog-footer">
  5293. <el-button @click="clearAttText">取 消</el-button>
  5294. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5295. </span>
  5296. </el-dialog>
  5297. <el-dialog
  5298. title="添加链接"
  5299. :visible.sync="dialogVisible7"
  5300. :append-to-body="true"
  5301. width="500px"
  5302. :before-close="handleClose"
  5303. class="dialog_diy lineCss"
  5304. >
  5305. <el-form>
  5306. <el-form-item label="标题" :label-width="formLabelWidth">
  5307. <span>
  5308. <el-input
  5309. placeholder="请输入链接标题"
  5310. clearable
  5311. v-model="lineTitle"
  5312. class="add_input"
  5313. ></el-input>
  5314. </span>
  5315. </el-form-item>
  5316. <el-form-item label="链接" :label-width="formLabelWidth">
  5317. <span>
  5318. <el-input
  5319. placeholder="请输入链接"
  5320. clearable
  5321. v-model="line"
  5322. class="add_input"
  5323. ></el-input>
  5324. </span>
  5325. </el-form-item>
  5326. </el-form>
  5327. <span slot="footer" class="dialog-footer">
  5328. <el-button @click="clearLine">取 消</el-button>
  5329. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5330. </span>
  5331. </el-dialog>
  5332. <el-dialog
  5333. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5334. :visible.sync="dialogVisibleSource"
  5335. :append-to-body="true"
  5336. width="100%"
  5337. :before-close="handleClose"
  5338. class="dialog_diy source_diy"
  5339. >
  5340. <div>
  5341. <sourceDialog
  5342. :sourceData.sync="sourceData"
  5343. :updateSourcePan="updateSourcePan"
  5344. ></sourceDialog>
  5345. </div>
  5346. <span slot="footer" class="dialog-footer">
  5347. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5348. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5349. >确定</el-button
  5350. >
  5351. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5352. </span>
  5353. </el-dialog>
  5354. <el-dialog
  5355. title="添加课程成员"
  5356. :visible.sync="dialogVisible3"
  5357. :append-to-body="true"
  5358. width="25%"
  5359. height="80%"
  5360. :before-close="handleClose"
  5361. class="addNewPP customWidth"
  5362. >
  5363. <div class="people">
  5364. <div class="people_top">
  5365. <div class="people_nav">选择成员</div>
  5366. <div class="people_top_right">
  5367. <div class="people_search">
  5368. <el-input
  5369. style="height: 100%"
  5370. placeholder="搜索成员名称"
  5371. v-model="searchPeople"
  5372. ></el-input>
  5373. <div class="search_img" @click="searchStudent">
  5374. <img src="../../../assets/icon/search.png" alt />
  5375. </div>
  5376. </div>
  5377. </div>
  5378. </div>
  5379. <el-checkbox-group v-model="checkboxList" class="people_name">
  5380. <el-checkbox
  5381. v-for="item in studentJuri"
  5382. :key="item.userid"
  5383. :label="item.userid"
  5384. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5385. >
  5386. </el-checkbox-group>
  5387. </div>
  5388. <span slot="footer" class="dialog-footer">
  5389. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5390. <el-button type="primary" @click="isAddPP">确定</el-button>
  5391. </span>
  5392. </el-dialog>
  5393. <el-dialog
  5394. title="选择授课班级"
  5395. :visible.sync="dialogVisibleClass"
  5396. :append-to-body="true"
  5397. width="600px"
  5398. height="80%"
  5399. :before-close="handleClose"
  5400. class="addNewPP2"
  5401. >
  5402. <div class="check_classBox">
  5403. <div class="check_class_right">
  5404. <div
  5405. class="check_class"
  5406. :class="{ activeX: gradeId == '' }"
  5407. @click="(gradeId = ''), getClass()"
  5408. >
  5409. 全部
  5410. </div>
  5411. <el-tooltip
  5412. placement="top"
  5413. :content="item.name"
  5414. v-for="(item, index) in gradeList"
  5415. :key="index"
  5416. >
  5417. <div
  5418. class="check_class"
  5419. :class="{ activeX: gradeId == item.id }"
  5420. @click="(gradeId = item.id), getClass()"
  5421. >
  5422. {{ item.name }}
  5423. </div>
  5424. </el-tooltip>
  5425. </div>
  5426. <div class="check_class_left">
  5427. <div class="check_class_all_box">
  5428. <div class="check_class_left_title">选择班级</div>
  5429. <div style="display: flex; align-items: center; margin-left: auto">
  5430. <el-checkbox
  5431. v-model="checkAll"
  5432. @change="handleCheckAllChange"
  5433. class="all_check"
  5434. >全选</el-checkbox
  5435. >
  5436. </div>
  5437. </div>
  5438. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5439. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5440. </div> -->
  5441. <el-checkbox-group
  5442. v-model="checkboxList2"
  5443. class="check_class_item"
  5444. @change="InviteChange"
  5445. v-if="grade2.length"
  5446. >
  5447. <div v-for="item in grade2" :key="item.id" class="class_item">
  5448. <el-checkbox :label="item.id">
  5449. {{ item.name }}
  5450. </el-checkbox>
  5451. </div>
  5452. </el-checkbox-group>
  5453. <div v-if="!grade2.length">暂无数据</div>
  5454. </div>
  5455. </div>
  5456. <span slot="footer" class="dialog-footer">
  5457. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5458. <el-button type="primary" @click="isAddClass">确定</el-button>
  5459. </span>
  5460. </el-dialog>
  5461. <el-dialog
  5462. title="添加协同成员"
  5463. :visible.sync="dialogVisibleMember"
  5464. :append-to-body="true"
  5465. width="25%"
  5466. height="80%"
  5467. :before-close="handleClose"
  5468. class="addNewPP customWidth"
  5469. >
  5470. <div style="display: flex;justify-content: space-between;">
  5471. <div style="width: 100px;overflow: auto;overflow-x: hidden; height: 350px;flex-shrink:0;padding-right: 10px;">
  5472. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == ''}" @click="getTeacher('')">
  5473. 全部
  5474. </div>
  5475. <div class="CollaborativeCss" :class="{CollaborativeCss2:i.id == collid}" @click="getTeacher(i.id)" v-for="(i) in CollaborativeTeaList" :key="i.id">
  5476. <el-tooltip
  5477. placement="top"
  5478. :content="i.name"
  5479. >
  5480. <span>{{i.name}}</span>
  5481. </el-tooltip>
  5482. </div>
  5483. <div class="CollaborativeCss" :class="{CollaborativeCss2:collid == '1xpz'}" @click="getTeacherCopy()">
  5484. 其他
  5485. </div>
  5486. </div>
  5487. <div style="width: calc(100% - 100px);" v-loading="CollLoading">
  5488. <div class="people">
  5489. <div class="people_top">
  5490. <div class="people_top_right">
  5491. <div class="people_search">
  5492. <el-input
  5493. placeholder="搜索成员名称"
  5494. v-model="searchTN"
  5495. @keyup.enter.native="getTeacher(collid)"
  5496. ></el-input>
  5497. <div class="search_img" @click="getTeacher(collid)">
  5498. <img src="../../../assets/icon/search.png" alt />
  5499. </div>
  5500. </div>
  5501. </div>
  5502. <div class="people_nav" style="display: flex; align-items: center">
  5503. <div class="check_class_left_title">选择成员</div>
  5504. <div style="display: flex; align-items: center; margin-left: auto">
  5505. <el-checkbox
  5506. v-model="checkAll2"
  5507. @change="handleCheckAllChange2"
  5508. class="all_check"
  5509. >全选</el-checkbox
  5510. >
  5511. </div>
  5512. </div>
  5513. </div>
  5514. <el-checkbox-group
  5515. v-model="checkboxList3"
  5516. class="people_name"
  5517. v-if="teacherJuri.length"
  5518. @change="InviteChange2"
  5519. >
  5520. <el-checkbox
  5521. v-for="item in teacherJuri"
  5522. :key="item.userid"
  5523. :label="item.userid"
  5524. >
  5525. <div class="t_j_box">
  5526. <el-tooltip
  5527. placement="top"
  5528. :content="item.name ? item.name : '暂无姓名'"
  5529. >
  5530. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5531. </el-tooltip>
  5532. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5533. <span>{{ item.username.split('@')[0] }}</span>
  5534. </el-tooltip>
  5535. <el-tooltip placement="top" :content="item.school">
  5536. <span>{{ item.school }}</span>
  5537. </el-tooltip>
  5538. </div>
  5539. </el-checkbox>
  5540. </el-checkbox-group>
  5541. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5542. </div>
  5543. </div>
  5544. </div>
  5545. <span slot="footer" class="dialog-footer">
  5546. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5547. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5548. </span>
  5549. </el-dialog>
  5550. <el-dialog
  5551. title="创建问卷"
  5552. :visible.sync="dialogVisible5"
  5553. :append-to-body="true"
  5554. width="800px"
  5555. :before-close="
  5556. (done) => {
  5557. closePan(4);
  5558. }
  5559. "
  5560. class="dialog_diy fullStyle"
  5561. >
  5562. <div style="height: 100%">
  5563. <div
  5564. class="a_add_title"
  5565. style="
  5566. display: flex;
  5567. flex-direction: row;
  5568. align-items: center;
  5569. justify-content: center;
  5570. "
  5571. >
  5572. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5573. <el-input
  5574. v-model="askJson.askTitle"
  5575. placeholder="请输入标题"
  5576. style="width: 400px"
  5577. ></el-input>
  5578. </div>
  5579. <div class="a_addBox" style="height: calc(100% - 50px)">
  5580. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5581. <div
  5582. class="a_add_box"
  5583. v-for="(item1, index1) in askJson.askCount"
  5584. :key="index1"
  5585. >
  5586. <div class="a_add_checkType">
  5587. <span
  5588. :class="{
  5589. active:
  5590. askJson.askJson[index1].type == '1' ||
  5591. !askJson.askJson[index1].type,
  5592. }"
  5593. @click="checkAskType('1', askJson.askJson[index1])"
  5594. >单选题</span
  5595. >
  5596. <span
  5597. :class="{ active: askJson.askJson[index1].type == '2' }"
  5598. @click="checkAskType('2', askJson.askJson[index1])"
  5599. >多选题</span
  5600. >
  5601. </div>
  5602. <div class="a_add_head">
  5603. <div
  5604. style="
  5605. display: flex;
  5606. align-items: center;
  5607. width: 100%;
  5608. margin-right: 20px;
  5609. "
  5610. >
  5611. <span style="min-width: fit-content">{{
  5612. index1 + 1 + "、"
  5613. }}</span>
  5614. <textarea
  5615. class="a_add_head_input textarea_css"
  5616. v-autoHeight="40"
  5617. v-model="askJson.askJson[index1].askstitle"
  5618. placeholder="请输入题目"
  5619. @change="
  5620. () => {
  5621. $forceUpdate();
  5622. }
  5623. "
  5624. ></textarea>
  5625. </div>
  5626. <div
  5627. class="moveBtn moveBtn2"
  5628. style="margin: 0 20px 0 0px"
  5629. v-if="askJson.askCount != 1"
  5630. >
  5631. <div
  5632. class="chapter_upload_up"
  5633. @click.stop="askMove(1, index1)"
  5634. ></div>
  5635. <div
  5636. class="chapter_upload_down"
  5637. @click.stop="askMove(2, index1)"
  5638. ></div>
  5639. </div>
  5640. <div class="a_add_head_div">
  5641. <el-button
  5642. type="primary"
  5643. size="small"
  5644. @click="deleteAskList(index1)"
  5645. v-if="askJson.askCount != 1"
  5646. >删除
  5647. </el-button>
  5648. <el-button
  5649. type="primary"
  5650. size="small"
  5651. @click="addAskList(index1)"
  5652. >添加</el-button
  5653. >
  5654. </div>
  5655. </div>
  5656. <div class="a_add_body">
  5657. <div class="a_add_input" style="flex-direction: column">
  5658. <div
  5659. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5660. :key="checkIndex"
  5661. style="
  5662. margin: 20px 10px 0 0;
  5663. display: flex;
  5664. align-items: center;
  5665. position: relative;
  5666. "
  5667. >
  5668. <div style="margin-right: 10px">{{ optionTypeList[checkIndex] }}.</div>
  5669. <textarea
  5670. class="a_add_head_input textarea_css"
  5671. v-autoHeight="40"
  5672. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5673. placeholder="请输入选项"
  5674. style="width: 300px"
  5675. @change="
  5676. () => {
  5677. $forceUpdate();
  5678. }
  5679. "
  5680. ></textarea>
  5681. <div
  5682. class="moveBtn moveBtn2"
  5683. style="margin: 0 0px 0 20px"
  5684. v-if="askJson.askJson[index1].askItem != 1"
  5685. >
  5686. <div
  5687. class="chapter_upload_up"
  5688. @click.stop="checkMove(1, index1, checkIndex)"
  5689. ></div>
  5690. <div
  5691. class="chapter_upload_down"
  5692. @click.stop="checkMove(2, index1, checkIndex)"
  5693. ></div>
  5694. </div>
  5695. <div class="a_add_body_div">
  5696. <el-button
  5697. type="primary"
  5698. size="small"
  5699. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5700. >添加</el-button
  5701. >
  5702. <el-button
  5703. type="primary"
  5704. size="small"
  5705. @click="
  5706. deletecheckList(askJson.askJson[index1], checkIndex)
  5707. "
  5708. v-if="askJson.askJson[index1].askItem != 1"
  5709. >删除
  5710. </el-button>
  5711. </div>
  5712. </div>
  5713. </div>
  5714. <!-- <div class="a_add_body_div">
  5715. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5716. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5717. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5718. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5719. </el-button>
  5720. </div> -->
  5721. </div>
  5722. </div>
  5723. </div>
  5724. </div>
  5725. <span slot="footer" class="dialog-footer">
  5726. <el-button @click="closePan(4)">取 消</el-button>
  5727. <el-button type="primary" @click="addAsk">确 定</el-button>
  5728. </span>
  5729. </el-dialog>
  5730. <el-dialog
  5731. title="创建选择题"
  5732. :visible.sync="dialogVisibleChoice"
  5733. :append-to-body="true"
  5734. width="800px"
  5735. :before-close="
  5736. (done) => {
  5737. closePan(45);
  5738. }
  5739. "
  5740. class="dialog_diy fullStyle"
  5741. >
  5742. <div style="height: 100%">
  5743. <!-- <div class="a_add_title" style="
  5744. display: flex;
  5745. flex-direction: row;
  5746. align-items: center;
  5747. justify-content: center;
  5748. ">
  5749. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5750. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5751. </div> -->
  5752. <div class="a_addBox" style="height: 100%">
  5753. <div
  5754. style="
  5755. font-size: 16px;
  5756. color: #c7c7c7;
  5757. display: flex;
  5758. align-items: center;
  5759. "
  5760. >
  5761. <!-- 请输入题目内容 -->
  5762. <button
  5763. class="c_pub_button_add pub_btn_paste_img"
  5764. @click="pasteOption"
  5765. style="margin-left: 10px"
  5766. v-if="isPasteChoice"
  5767. >
  5768. 智能粘贴
  5769. </button>
  5770. </div>
  5771. <div
  5772. class="a_add_box"
  5773. v-for="(item1, index1) in testJson.testCount"
  5774. :key="index1"
  5775. >
  5776. <div class="a_add_checkType">
  5777. <span
  5778. :class="{ active: testJson.testJson[index1].type == '1' }"
  5779. @click="checkTestType('1', testJson.testJson[index1])"
  5780. >单选题</span
  5781. >
  5782. <span
  5783. :class="{ active: testJson.testJson[index1].type == '2' }"
  5784. @click="checkTestType('2', testJson.testJson[index1])"
  5785. >多选题</span
  5786. >
  5787. </div>
  5788. <div class="a_add_head">
  5789. <div class="timuUpImg">
  5790. <div style="display: flex; align-items: center">
  5791. <span style="min-width: fit-content">{{
  5792. index1 + 1 + "、"
  5793. }}</span>
  5794. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5795. placeholder="请输入题目">
  5796. </el-input> -->
  5797. <textarea
  5798. class="a_add_head_input textarea_css"
  5799. v-autoHeight="40"
  5800. v-model="testJson.testJson[index1].teststitle"
  5801. placeholder="请输入题目"
  5802. @change="
  5803. () => {
  5804. $forceUpdate();
  5805. }
  5806. "
  5807. ></textarea>
  5808. </div>
  5809. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5810. <div
  5811. class="chapter_upload_up"
  5812. @click.stop="testMove(1, index1)"
  5813. ></div>
  5814. <div
  5815. class="chapter_upload_down"
  5816. @click.stop="testMove(2, index1)"
  5817. ></div>
  5818. </div>
  5819. <div
  5820. class="xzUpImg"
  5821. @click.stop="addImg($event)"
  5822. style="margin-right: 10px"
  5823. >
  5824. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5825. <input
  5826. type="file"
  5827. accept="image/*"
  5828. style="display: none"
  5829. @change="beforeUploadTiMu($event, index1)"
  5830. />
  5831. </div>
  5832. </div>
  5833. <div class="a_add_head_div">
  5834. <el-button
  5835. type="primary"
  5836. size="small"
  5837. @click="deleteTestList(index1)"
  5838. v-if="testJson.testCount != 1"
  5839. >删除
  5840. </el-button>
  5841. <el-button
  5842. type="primary"
  5843. size="small"
  5844. @click="addTestList(index1)"
  5845. >添加</el-button
  5846. >
  5847. </div>
  5848. </div>
  5849. <div
  5850. class="timuImgBox"
  5851. v-if="
  5852. testJson.testJson[index1].timuList &&
  5853. testJson.testJson[index1].timuList.length
  5854. "
  5855. >
  5856. <div
  5857. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5858. :key="tIndex"
  5859. class="timuImg"
  5860. @click.stop="previewImg(timg.src)"
  5861. >
  5862. <img :src="timg.src" alt="" />
  5863. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5864. <img src="../../../assets/icon/delete.png" alt="" />
  5865. </div>
  5866. </div>
  5867. </div>
  5868. <div class="a_add_body">
  5869. <div class="a_add_input a_add_input_choice">
  5870. <el-radio-group
  5871. v-model="testJson.testJson[index1].answer"
  5872. v-if="testJson.testJson[index1].type == 1"
  5873. @change="
  5874. () => {
  5875. $forceUpdate();
  5876. }
  5877. "
  5878. >
  5879. <div class="radioBox">
  5880. <el-radio
  5881. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5882. .testItem"
  5883. :key="checkIndex"
  5884. :label="checkIndex"
  5885. >
  5886. <div style="margin-right: 10px">
  5887. {{ optionTypeList[checkIndex] }}.
  5888. </div>
  5889. <div
  5890. style="margin-right: 10px; width: 300px"
  5891. v-if="
  5892. testJson.testJson[index1].checkList[checkIndex] &&
  5893. testJson.testJson[index1].checkList[checkIndex]
  5894. .imgType &&
  5895. testJson.testJson[index1].checkList[checkIndex]
  5896. .imgType == 1
  5897. "
  5898. >
  5899. <div
  5900. class="inImg"
  5901. @click.stop="
  5902. previewImg(
  5903. testJson.testJson[index1].checkList[checkIndex]
  5904. .src
  5905. )
  5906. "
  5907. >
  5908. <el-image
  5909. :src="
  5910. testJson.testJson[index1].checkList[checkIndex]
  5911. .src
  5912. "
  5913. lazy
  5914. />
  5915. <!-- <img :src="
  5916. testJson.testJson[index1].checkList[checkIndex]
  5917. .src
  5918. " alt="" /> -->
  5919. </div>
  5920. </div>
  5921. <textarea
  5922. class="a_add_head_input textarea_css"
  5923. v-autoHeight="40"
  5924. v-else
  5925. v-model="
  5926. testJson.testJson[index1].checkList[checkIndex]
  5927. "
  5928. placeholder="请输入选项"
  5929. style="width: 300px; margin-right: 10px"
  5930. @change="
  5931. () => {
  5932. $forceUpdate();
  5933. }
  5934. "
  5935. ></textarea>
  5936. <div class="xzUpImg" @click.stop="addImg($event)">
  5937. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5938. <input
  5939. type="file"
  5940. accept="image/*"
  5941. style="display: none"
  5942. @change="beforeUploadTi($event, index1, checkIndex)"
  5943. />
  5944. </div>
  5945. <div
  5946. class="moveBtn moveBtn2"
  5947. v-if="testJson.testJson[index1].testItem != 1"
  5948. >
  5949. <div
  5950. class="chapter_upload_up"
  5951. @click.stop="tcheckMove(1, index1, checkIndex)"
  5952. ></div>
  5953. <div
  5954. class="chapter_upload_down"
  5955. @click.stop="tcheckMove(2, index1, checkIndex)"
  5956. ></div>
  5957. </div>
  5958. <div class="a_add_body_div">
  5959. <el-button
  5960. type="primary"
  5961. size="small"
  5962. @click.stop="
  5963. addTcheckList(testJson.testJson[index1], checkIndex)
  5964. "
  5965. >添加</el-button
  5966. >
  5967. <el-button
  5968. type="primary"
  5969. size="small"
  5970. @click.stop="
  5971. deleteTcheckList(
  5972. testJson.testJson[index1],
  5973. checkIndex
  5974. )
  5975. "
  5976. v-if="testJson.testJson[index1].testItem != 1"
  5977. >删除
  5978. </el-button>
  5979. </div>
  5980. </el-radio>
  5981. </div>
  5982. </el-radio-group>
  5983. <el-checkbox-group
  5984. v-model="testJson.testJson[index1].answer"
  5985. v-if="testJson.testJson[index1].type == '2'"
  5986. @change="
  5987. () => {
  5988. $forceUpdate();
  5989. }
  5990. "
  5991. >
  5992. <div class="radioBox">
  5993. <el-checkbox
  5994. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5995. .testItem"
  5996. :key="checkIndex1"
  5997. :label="checkIndex1"
  5998. >
  5999. <div style="margin-right: 10px">
  6000. {{ optionTypeList[checkIndex1] }}.
  6001. </div>
  6002. <div
  6003. style="margin-right: 10px; width: 300px"
  6004. v-if="
  6005. testJson.testJson[index1].checkList[checkIndex1] &&
  6006. testJson.testJson[index1].checkList[checkIndex1]
  6007. .imgType &&
  6008. testJson.testJson[index1].checkList[checkIndex1]
  6009. .imgType == 1
  6010. "
  6011. >
  6012. <div
  6013. class="inImg"
  6014. @click.stop="
  6015. previewImg(
  6016. testJson.testJson[index1].checkList[checkIndex1]
  6017. .src
  6018. )
  6019. "
  6020. >
  6021. <el-image
  6022. :src="
  6023. testJson.testJson[index1].checkList[checkIndex1]
  6024. .src
  6025. "
  6026. lazy
  6027. />
  6028. <!-- <img :src="
  6029. testJson.testJson[index1].checkList[checkIndex1]
  6030. .src
  6031. " alt="" /> -->
  6032. </div>
  6033. </div>
  6034. <textarea
  6035. class="a_add_head_input textarea_css"
  6036. v-autoHeight="40"
  6037. v-else
  6038. v-model="
  6039. testJson.testJson[index1].checkList[checkIndex1]
  6040. "
  6041. placeholder="请输入选项"
  6042. style="width: 300px; margin-right: 10px"
  6043. @change="
  6044. () => {
  6045. $forceUpdate();
  6046. }
  6047. "
  6048. ></textarea>
  6049. <div class="xzUpImg" @click.stop="addImg($event)">
  6050. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  6051. <input
  6052. type="file"
  6053. accept="image/*"
  6054. style="display: none"
  6055. @change="beforeUploadTi($event, index1, checkIndex1)"
  6056. />
  6057. </div>
  6058. <div
  6059. class="moveBtn moveBtn2"
  6060. v-if="testJson.testJson[index1].testItem != 1"
  6061. >
  6062. <div
  6063. class="chapter_upload_up"
  6064. @click.stop="tcheckMove(1, index1, checkIndex1)"
  6065. ></div>
  6066. <div
  6067. class="chapter_upload_down"
  6068. @click.stop="tcheckMove(2, index1, checkIndex1)"
  6069. ></div>
  6070. </div>
  6071. <div class="a_add_body_div">
  6072. <el-button
  6073. type="primary"
  6074. size="small"
  6075. @click.stop="
  6076. addTcheckList(
  6077. testJson.testJson[index1],
  6078. checkIndex1
  6079. )
  6080. "
  6081. >添加</el-button
  6082. >
  6083. <el-button
  6084. type="primary"
  6085. size="small"
  6086. @click.stop="
  6087. deleteTcheckList(
  6088. testJson.testJson[index1],
  6089. checkIndex1
  6090. )
  6091. "
  6092. v-if="testJson.testJson[index1].testItem != 1"
  6093. >删除
  6094. </el-button>
  6095. </div>
  6096. </el-checkbox>
  6097. </div>
  6098. </el-checkbox-group>
  6099. </div>
  6100. <!-- <div class="a_add_body_div">
  6101. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  6102. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  6103. v-if="testJson.testJson[index1].testItem != 1">删除
  6104. </el-button>
  6105. </div> -->
  6106. </div>
  6107. </div>
  6108. </div>
  6109. </div>
  6110. <span slot="footer" class="dialog-footer">
  6111. <el-button @click="closePan(45)">取 消</el-button>
  6112. <el-button type="primary" @click="addTest">确 定</el-button>
  6113. </span>
  6114. </el-dialog>
  6115. <el-dialog
  6116. title="添加工具"
  6117. :visible.sync="dialogVisible4"
  6118. :append-to-body="true"
  6119. width="600px"
  6120. :before-close="handleClose"
  6121. class="dialog_diy addToolsDia"
  6122. >
  6123. <div class="toolChoose">
  6124. <div class="tools">
  6125. <div
  6126. class="leftTools"
  6127. style="width: 100%; padding: 0 0 15px 0"
  6128. v-for="(itemTools, itemToolsIndex) in chapTools"
  6129. :key="itemToolsIndex"
  6130. >
  6131. <div
  6132. style="
  6133. display: flex;
  6134. flex-direction: row;
  6135. align-items: baseline;
  6136. flex-wrap: nowrap;
  6137. justify-content: flex-start;
  6138. position: relative;
  6139. "
  6140. >
  6141. <div class="chooseWho">
  6142. <div
  6143. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  6144. @click="chapToolsType = 0"
  6145. >
  6146. 互动类
  6147. </div>
  6148. <div
  6149. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  6150. @click="chapToolsType = 1"
  6151. >
  6152. 思维类
  6153. </div>
  6154. <div
  6155. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6156. @click="chapToolsType = 2"
  6157. >
  6158. 评价类
  6159. </div>
  6160. <div
  6161. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6162. @click="chapToolsType = 2"
  6163. >
  6164. 其他
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div style="min-height: 163px">
  6169. <div class="toolSort" v-if="chapToolsType == 0">
  6170. <div
  6171. class="tool"
  6172. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  6173. @click="chapAddTools(8)"
  6174. >
  6175. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  6176. <img
  6177. src="../../../assets/icon/secondToolList/library.png"
  6178. alt
  6179. />
  6180. <div style="margin: 5px 0">素材库</div>
  6181. </div>
  6182. <div class="noCTool">
  6183. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6184. </div>
  6185. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6186. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6187. </div>
  6188. <!-- <div class="check" @click="chapAddTools(8)">
  6189. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6190. <div class="checkDiv" v-else>
  6191. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6192. </div>
  6193. </div> -->
  6194. </div>
  6195. </div>
  6196. <div class="toolSort" v-if="chapToolsType == 1">
  6197. <div
  6198. class="tool"
  6199. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6200. @click="chapAddTools(7)"
  6201. >
  6202. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6203. <img
  6204. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6205. alt
  6206. />
  6207. <div style="margin: 5px 0">思维网格</div>
  6208. </div>
  6209. <div class="noCTool">
  6210. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6211. </div>
  6212. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6213. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6214. </div>
  6215. <!-- <div class="check" @click="chapAddTools(7)">
  6216. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6217. <div class="checkDiv" v-else>
  6218. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6219. </div>
  6220. </div> -->
  6221. </div>
  6222. <div
  6223. class="tool"
  6224. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6225. @click="chapAddTools(1)"
  6226. >
  6227. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6228. <img
  6229. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6230. alt
  6231. />
  6232. <div style="margin: 5px 0">电子白板</div>
  6233. </div>
  6234. <div class="noCTool">
  6235. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6236. </div>
  6237. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6238. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6239. </div>
  6240. <!-- <div class="check" @click="chapAddTools(1)">
  6241. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6242. <div class="checkDiv" v-else>
  6243. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6244. </div>
  6245. </div> -->
  6246. </div>
  6247. <div
  6248. class="tool"
  6249. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6250. @click="chapAddTools(2)"
  6251. >
  6252. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6253. <img src="../../../assets/icon/secondToolList/note.png" alt />
  6254. <div style="margin: 5px 0">便签</div>
  6255. </div>
  6256. <div class="noCTool">
  6257. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6258. </div>
  6259. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6260. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6261. </div>
  6262. <!-- <div class="check" @click="chapAddTools(2)">
  6263. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6264. <div class="checkDiv" v-else>
  6265. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6266. </div>
  6267. </div> -->
  6268. </div>
  6269. <div
  6270. class="tool"
  6271. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6272. @click="chapAddTools(6)"
  6273. >
  6274. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6275. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  6276. <div style="margin: 5px 0">协同文档</div>
  6277. </div>
  6278. <div class="noCTool">
  6279. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6280. </div>
  6281. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6282. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6283. </div>
  6284. <!-- <div class="check" @click="chapAddTools(6)">
  6285. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6286. <div class="checkDiv" v-else>
  6287. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6288. </div>
  6289. </div> -->
  6290. </div>
  6291. <div
  6292. class="tool"
  6293. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6294. @click="chapAddTools(3)"
  6295. >
  6296. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6297. <img
  6298. src="../../../assets/icon/secondToolList/mindMapping.png"
  6299. alt
  6300. />
  6301. <div style="margin: 5px 0">思维导图</div>
  6302. </div>
  6303. <div class="noCTool">
  6304. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6305. </div>
  6306. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6307. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6308. </div>
  6309. <!-- <div class="check" @click="chapAddTools(3)">
  6310. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6311. <div class="checkDiv" v-else>
  6312. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6313. </div>
  6314. </div> -->
  6315. </div>
  6316. <div
  6317. class="tool"
  6318. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6319. @click="chapAddTools(31)"
  6320. >
  6321. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6322. <img
  6323. src="../../../assets/icon/secondToolList/networkPanel.png"
  6324. alt
  6325. />
  6326. <div style="margin: 5px 0">数学画板</div>
  6327. </div>
  6328. <div class="noCTool">
  6329. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6330. </div>
  6331. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6332. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6333. </div>
  6334. <!-- <div class="check" @click="chapAddTools(31)">
  6335. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6336. <div class="checkDiv" v-else>
  6337. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6338. </div>
  6339. </div> -->
  6340. </div>
  6341. </div>
  6342. <div class="toolSort" v-if="chapToolsType == 2">
  6343. <div
  6344. class="tool"
  6345. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6346. @click="chapAddTools(5)"
  6347. >
  6348. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6349. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  6350. <div style="margin: 5px 0">量规评分</div>
  6351. </div>
  6352. <div class="noCTool">
  6353. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6354. </div>
  6355. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6356. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6357. </div>
  6358. <!-- <div class="check" @click="chapAddTools(5)">
  6359. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6360. <div class="checkDiv" v-else>
  6361. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6362. </div>
  6363. </div> -->
  6364. </div>
  6365. <div
  6366. class="tool"
  6367. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6368. @click="chapAddTools(4)"
  6369. >
  6370. <div
  6371. class="whiteBIcon"
  6372. @click.stop="openTools(chapCount, 4, null)"
  6373. >
  6374. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6375. <div style="margin: 5px 0">问卷调查</div>
  6376. </div>
  6377. <div class="noCTool">
  6378. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6379. </div>
  6380. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6381. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6382. </div>
  6383. <!-- <div class="check" @click="chapAddTools(4)">
  6384. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6385. <div class="checkDiv" v-else>
  6386. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6387. </div>
  6388. </div> -->
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div>
  6393. <input
  6394. type="text"
  6395. placeholder="添加工具描述"
  6396. class="binfo_input"
  6397. style="margin: 20px 0; width: 100% !important"
  6398. v-model="itemTools.toolDetail"
  6399. />
  6400. </div>
  6401. </div>
  6402. </div>
  6403. </div>
  6404. <span slot="footer" class="dialog-footer">
  6405. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6406. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6407. </span>
  6408. </el-dialog>
  6409. <el-dialog
  6410. title="添加问答"
  6411. :visible.sync="dialogVisible8"
  6412. :append-to-body="true"
  6413. width="500px"
  6414. :before-close="
  6415. (done) => {
  6416. closePan(15);
  6417. }
  6418. "
  6419. class="dialog_diy"
  6420. >
  6421. <div>
  6422. <div
  6423. class="a_add_title"
  6424. style="
  6425. display: flex;
  6426. flex-direction: column;
  6427. align-items: flex-start;
  6428. justify-content: center;
  6429. "
  6430. >
  6431. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6432. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6433. <textarea
  6434. rows="1"
  6435. v-autoHeight="40"
  6436. type="text"
  6437. placeholder="请输入您要问的问题"
  6438. class="binfo_input"
  6439. style="width: 100% !important; border: 1px solid #dcdfe6"
  6440. v-model="answerQ"
  6441. ></textarea>
  6442. </div>
  6443. </div>
  6444. <span slot="footer" class="dialog-footer">
  6445. <el-button @click="closePan(15)">取 消</el-button>
  6446. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6447. </span>
  6448. </el-dialog>
  6449. <el-dialog
  6450. title="添加问题"
  6451. :visible.sync="dialogVisibleMp3"
  6452. :append-to-body="true"
  6453. width="500px"
  6454. :before-close="handleClose"
  6455. class="dialog_diy"
  6456. >
  6457. <div>
  6458. <div
  6459. class="a_add_title"
  6460. style="
  6461. display: flex;
  6462. flex-direction: column;
  6463. align-items: flex-start;
  6464. justify-content: center;
  6465. "
  6466. >
  6467. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6468. <el-input
  6469. v-model="answerQ"
  6470. placeholder="请输入您想要回答的问题"
  6471. ></el-input>
  6472. </div>
  6473. </div>
  6474. <span slot="footer" class="dialog-footer">
  6475. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6476. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6477. </span>
  6478. </el-dialog>
  6479. <el-dialog
  6480. title="上传图片"
  6481. :visible.sync="choosePicVisible"
  6482. :append-to-body="true"
  6483. width="600px"
  6484. :before-close="handleClose"
  6485. class="dialog_diy"
  6486. >
  6487. <div>
  6488. <div class="fileCss" style="padding-top: 20px">
  6489. <div>
  6490. <button class="info_btn" @click="addImg($event)">
  6491. 选择本地文件
  6492. <input
  6493. type="file"
  6494. accept="image/*"
  6495. style="display: none"
  6496. @change="beforeUpload1"
  6497. />
  6498. </button>
  6499. <div class="spanName">选择本地文件</div>
  6500. </div>
  6501. <!-- <div>
  6502. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6503. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6504. <img :src="cover[0].url" alt="" />
  6505. <div class="deletePic" @click="deleteSysPic">
  6506. <img src="../../../assets/icon/delete.png" alt="" />
  6507. </div>
  6508. </div>
  6509. <div class="spanName">选择系统文件</div>
  6510. </div> -->
  6511. <div>
  6512. <el-button
  6513. @click="(searchImageValue = courseName), resetImage()"
  6514. v-if="isSysPic2 == false"
  6515. >选择网络文件</el-button
  6516. >
  6517. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6518. <img :src="cover[0].url" alt="" />
  6519. <div class="deletePic" @click="deleteSysPic">
  6520. <img src="../../../assets/icon/delete.png" alt="" />
  6521. </div>
  6522. </div>
  6523. <div class="spanName">选择网络文件</div>
  6524. </div>
  6525. </div>
  6526. <!-- <div class="fileCss">
  6527. </div> -->
  6528. </div>
  6529. <span slot="footer" class="dialog-footer">
  6530. <el-button @click="choosePicVisible = false">取 消</el-button>
  6531. <el-button type="primary" @click="choosePicVisible = false"
  6532. >确 定</el-button
  6533. >
  6534. </span>
  6535. </el-dialog>
  6536. <el-dialog
  6537. title="选择系统文件"
  6538. :visible.sync="sysPicVisible"
  6539. :append-to-body="true"
  6540. width="710px"
  6541. :before-close="handleClose"
  6542. class="dialog_diy"
  6543. >
  6544. <div class="cru_selectBox" style="margin: 0">
  6545. <div
  6546. @click="getChoosePic(1)"
  6547. class="cru_select"
  6548. :class="chooseType == 1 ? 'cru_selected' : ''"
  6549. >
  6550. 绘画
  6551. </div>
  6552. <div
  6553. @click="getChoosePic(2)"
  6554. class="cru_select"
  6555. :class="chooseType == 2 ? 'cru_selected' : ''"
  6556. >
  6557. 科技
  6558. </div>
  6559. <div
  6560. @click="getChoosePic(3)"
  6561. class="cru_select"
  6562. :class="chooseType == 3 ? 'cru_selected' : ''"
  6563. >
  6564. 人文
  6565. </div>
  6566. <div
  6567. @click="getChoosePic(4)"
  6568. class="cru_select"
  6569. :class="chooseType == 4 ? 'cru_selected' : ''"
  6570. >
  6571. 艺术
  6572. </div>
  6573. </div>
  6574. <div class="sysPicBox">
  6575. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6576. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6577. </div>
  6578. </div>
  6579. </el-dialog>
  6580. <el-dialog
  6581. title="选择网络文件"
  6582. :visible.sync="sysPicVisible2"
  6583. :append-to-body="true"
  6584. width="710px"
  6585. :before-close="handleClose"
  6586. class="dialog_diy"
  6587. >
  6588. <div>
  6589. <div
  6590. class="people_top_right"
  6591. style="display: flex; align-items: center"
  6592. >
  6593. <div style="position: relative; width: 100%">
  6594. <el-input
  6595. style="height: 100%"
  6596. placeholder="搜索图片关键字"
  6597. v-model="searchImageValue"
  6598. @keyup.enter.native="resetImage()"
  6599. ></el-input>
  6600. <div class="search_img" @click="resetImage" style="right: 10px">
  6601. <img src="../../../assets/icon/search.png" alt />
  6602. </div>
  6603. </div>
  6604. <el-button
  6605. type="primary"
  6606. size="default"
  6607. style="margin-left: 10px"
  6608. @click="changePicture"
  6609. >换一组</el-button
  6610. >
  6611. </div>
  6612. <div class="sysPicBox" v-loading="imageloading">
  6613. <div class="picNone" v-if="!imageList.length">
  6614. 请输入关键词搜索图片
  6615. </div>
  6616. <div
  6617. v-for="(sys, sysIndex) in imageList"
  6618. :key="sysIndex"
  6619. class="sysPic"
  6620. >
  6621. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6622. </div>
  6623. </div>
  6624. </div>
  6625. </el-dialog>
  6626. <el-dialog
  6627. title="选择匹配"
  6628. :visible.sync="dialogVisibleSelect"
  6629. :append-to-body="true"
  6630. width="800px"
  6631. :before-close="
  6632. (done) => {
  6633. closePan(41);
  6634. }
  6635. "
  6636. class="dialog_diy dialog_diy3 fullStyle"
  6637. >
  6638. <div v-if="selectJson" style="height: 100%">
  6639. <div class="select_box1" v-if="selectSteps == 1">
  6640. <div class="select_box1_img">
  6641. <div class="select_box1_title">
  6642. <span>上传题目图片</span
  6643. ><span>提示:请将所有题目上传为一张图片。</span>
  6644. </div>
  6645. <div class="select_box1_add_img">
  6646. <div
  6647. class="uploadFm"
  6648. @click="addImg($event)"
  6649. v-if="!selectJson.url"
  6650. >
  6651. <input
  6652. type="file"
  6653. accept="image/*"
  6654. style="display: none"
  6655. @change="beforeUploadSelect"
  6656. />
  6657. <img src="../../../assets/icon/addPoster.png" alt="" />
  6658. </div>
  6659. <div class="isSysPic" v-else>
  6660. <img
  6661. :src="selectJson.url"
  6662. alt=""
  6663. @click="previewImg(selectJson.url)"
  6664. />
  6665. <div class="deletePic" @click="deleteSelectPic">
  6666. <img src="../../../assets/icon/delete.png" alt="" />
  6667. </div>
  6668. </div>
  6669. </div>
  6670. </div>
  6671. <div class="select_box1_select">
  6672. <div class="select_box1_title">
  6673. <span>添加选项</span
  6674. ><span
  6675. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  6676. >
  6677. </div>
  6678. <div class="select_box1_select_box">
  6679. <el-input
  6680. v-for="(item2, checkIndex) in selectJson.select"
  6681. :key="checkIndex"
  6682. v-model="selectJson.select[checkIndex]"
  6683. placeholder="请输入选项"
  6684. style="width: 150px; margin: 10px 10px 0 0"
  6685. ></el-input>
  6686. <div class="select_box1_select_box_add">
  6687. <el-button
  6688. style="margin: 10px 0px 0 0"
  6689. type="primary"
  6690. size="small"
  6691. @click="addSelectList(selectJson)"
  6692. >
  6693. 添加</el-button
  6694. >
  6695. <el-button
  6696. type="primary"
  6697. size="small"
  6698. style="margin: 10px 0 0 0"
  6699. @click="deleteSelectList(selectJson)"
  6700. v-if="selectJson.select && selectJson.select.length > 0"
  6701. >删除</el-button
  6702. >
  6703. </div>
  6704. </div>
  6705. </div>
  6706. </div>
  6707. <div v-if="selectSteps == 2" style="height: 100%">
  6708. <div class="select_box2">
  6709. <div class="select_box2_title">设置每道题目的正确选项</div>
  6710. <div class="select_box2_box">
  6711. <div class="select_box2_img">
  6712. <img
  6713. :src="selectJson.url"
  6714. alt=""
  6715. @click="previewImg(selectJson.url)"
  6716. />
  6717. </div>
  6718. <div class="select_box2_answer">
  6719. <div class="select_answer_title">根据题目选择对应答案</div>
  6720. <div
  6721. class="select_box2_answer_box"
  6722. v-for="(item2, checkIndex) in selectJson.select"
  6723. :key="checkIndex"
  6724. >
  6725. <span>{{ checkIndex + 1 }}、</span>
  6726. <el-select
  6727. v-model="selectJson.answer[checkIndex]"
  6728. placeholder="请选择正确答案"
  6729. >
  6730. <el-option
  6731. v-for="(e, eIndex) in selectJson.select"
  6732. :key="eIndex"
  6733. :label="e"
  6734. :value="eIndex"
  6735. >
  6736. </el-option>
  6737. </el-select>
  6738. </div>
  6739. </div>
  6740. </div>
  6741. </div>
  6742. </div>
  6743. </div>
  6744. <span slot="footer" class="dialog-footer">
  6745. <el-button
  6746. type="primary"
  6747. @click="nextSelectSteps()"
  6748. v-if="selectSteps == 1"
  6749. >下一步</el-button
  6750. >
  6751. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6752. >上一步</el-button
  6753. >
  6754. <el-button
  6755. type="primary"
  6756. @click="addSelectAnswer"
  6757. v-if="selectSteps == 2"
  6758. >确 定</el-button
  6759. >
  6760. </span>
  6761. </el-dialog>
  6762. <el-dialog
  6763. title="添加评价"
  6764. :visible.sync="dialogVisibleRate"
  6765. :append-to-body="true"
  6766. width="650px"
  6767. :before-close="handleClose"
  6768. class="dialog_diy"
  6769. >
  6770. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6771. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6772. <div class="pjCss" style="width: 100%">
  6773. <div
  6774. v-if="rateJson.length"
  6775. class="elist_input"
  6776. style="height: 360px; overflow: auto"
  6777. >
  6778. <div
  6779. v-for="(eItem, eIndex) in rateJson"
  6780. :key="eIndex"
  6781. class="elist_input_box"
  6782. >
  6783. <span style="min-width: 100px; text-align: right"
  6784. >个人评价指标:</span
  6785. >
  6786. <input
  6787. type="input"
  6788. v-model="eItem.value"
  6789. placeholder="填写评价维度"
  6790. />
  6791. <div class="remove" @click="deletRateList(eIndex)"></div>
  6792. <div style="width: 100%; display: flex">
  6793. <span style="min-width: 100px; text-align: right"
  6794. >评星等级:</span
  6795. >
  6796. <el-rate v-model="eItem.score" disabled></el-rate>
  6797. </div>
  6798. <div class="elist_inptu_text" style="align-items: flex-start">
  6799. <span style="min-width: 100px; text-align: right">描述:</span>
  6800. <textarea
  6801. class="rate_textarea"
  6802. :rows="3"
  6803. v-model="eItem.detail"
  6804. placeholder="填写维度描述"
  6805. ></textarea>
  6806. </div>
  6807. </div>
  6808. </div>
  6809. <div class="addToolFun" @click="addRateList()">
  6810. <div class="addToolImg">
  6811. <img src="../../../assets/icon/add.png" alt />
  6812. </div>
  6813. <div>添加</div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. <span slot="footer" class="dialog-footer">
  6818. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6819. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6820. </span>
  6821. </el-dialog>
  6822. <el-dialog
  6823. title="排序设置"
  6824. :visible.sync="dialogVisibleSentence"
  6825. :append-to-body="true"
  6826. width="1000px"
  6827. :before-close="
  6828. (done) => {
  6829. closePan(47);
  6830. }
  6831. "
  6832. class="dialog_diy dialog_diy3 fullStyle"
  6833. >
  6834. <div style="height: 100%">
  6835. <div class="sentenBox" style="height: 100%">
  6836. <div class="addSen" @click="addSt">添加题目</div>
  6837. <div
  6838. v-for="(st, stIndex) in sentenceList"
  6839. :key="stIndex"
  6840. class="sentenContent"
  6841. >
  6842. <div class="sentenTopBox">
  6843. <div class="sentenTop" :index="stIndex + 1">
  6844. <div>题目设置</div>
  6845. <div>
  6846. <el-input
  6847. placeholder="请输入卡片内容"
  6848. v-model="st.sentenceTitle"
  6849. :maxlength="10"
  6850. ></el-input>
  6851. </div>
  6852. <div @click="addSen(stIndex)">添加</div>
  6853. <div
  6854. class="remove1"
  6855. v-if="sentenceList.length > 1"
  6856. @click="deleteSentence(stIndex)"
  6857. ></div>
  6858. </div>
  6859. </div>
  6860. <div class="cardList">
  6861. <div v-if="st.addSentence.length > 0" class="cardBox">
  6862. <div
  6863. class="isCard"
  6864. v-for="(s, sIndex) in st.addSentence"
  6865. :key="sIndex"
  6866. @click="setRightAnswer(s, stIndex, sIndex)"
  6867. >
  6868. <el-tooltip
  6869. class="item"
  6870. effect="light"
  6871. :content="s"
  6872. placement="top"
  6873. >
  6874. <div>{{ s }}</div>
  6875. </el-tooltip>
  6876. <div
  6877. class="deleteWord"
  6878. @click.stop="deleteS(s, stIndex, sIndex)"
  6879. >
  6880. <img src="../../../assets/icon/delete.png" alt="" />
  6881. </div>
  6882. </div>
  6883. </div>
  6884. <div class="card">
  6885. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  6886. </div>
  6887. </div>
  6888. <div class="rightCardBox">
  6889. <div>正确顺序</div>
  6890. <div class="rightCardList">
  6891. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6892. <div
  6893. v-for="(r, rIndex) in st.rightAnswer"
  6894. :key="rIndex"
  6895. class="cardCss"
  6896. >
  6897. <div
  6898. class="isCard1"
  6899. @click="returnCard(r, stIndex, rIndex)"
  6900. >
  6901. <el-tooltip
  6902. class="item"
  6903. effect="light"
  6904. :content="r"
  6905. placement="top"
  6906. >
  6907. <div>{{ r }}</div>
  6908. </el-tooltip>
  6909. </div>
  6910. <div>{{ rIndex + 1 }}</div>
  6911. </div>
  6912. </div>
  6913. <div class="card" v-if="st.rightAnswer.length == 0">
  6914. <img
  6915. src="../../../assets/icon/conSentences/noAnswer.png"
  6916. alt=""
  6917. />
  6918. </div>
  6919. <div class="card" v-else>
  6920. <img
  6921. src="../../../assets/icon/conSentences/clickNo.png"
  6922. alt=""
  6923. />
  6924. </div>
  6925. </div>
  6926. </div>
  6927. </div>
  6928. </div>
  6929. </div>
  6930. <span slot="footer" class="dialog-footer">
  6931. <el-button @click="closePan(47)">取 消</el-button>
  6932. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6933. </span>
  6934. </el-dialog>
  6935. <el-dialog
  6936. title="添加表格"
  6937. :visible.sync="dialogVisibleTable"
  6938. :append-to-body="true"
  6939. width="95%"
  6940. :before-close="handleClose"
  6941. class="dialog_diy"
  6942. >
  6943. <el-form>
  6944. <!-- <el-form-item label="文本标题">
  6945. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6946. </el-form-item> -->
  6947. <div>表格内容</div>
  6948. <Table v-model="tableJson.text" @change="change"></Table>
  6949. </el-form>
  6950. <span slot="footer" class="dialog-footer">
  6951. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6952. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6953. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6954. </span>
  6955. </el-dialog>
  6956. <el-dialog
  6957. title="添加文档"
  6958. :visible.sync="dialogVisibleWord"
  6959. :append-to-body="true"
  6960. width="95%"
  6961. :before-close="handleClose"
  6962. class="dialog_diy"
  6963. >
  6964. <el-form>
  6965. <!-- <el-form-item label="文本标题">
  6966. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6967. </el-form-item> -->
  6968. <div>文档内容</div>
  6969. <editor-bar v-model="wordJson.text" class="text_panel"></editor-bar>
  6970. </el-form>
  6971. <span slot="footer" class="dialog-footer">
  6972. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6973. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6974. </span>
  6975. </el-dialog>
  6976. <el-dialog
  6977. title="添加班级"
  6978. :visible.sync="dialogVisibleMoreUpload"
  6979. :append-to-body="true"
  6980. width="30%"
  6981. :before-close="handleClose"
  6982. class="dialog_diy"
  6983. >
  6984. <div
  6985. style="
  6986. width: 100%;
  6987. display: flex;
  6988. flex-direction: row;
  6989. flex-wrap: nowrap;
  6990. align-items: center;
  6991. justify-content: center;
  6992. "
  6993. >
  6994. <div>班级:</div>
  6995. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6996. <el-option
  6997. v-for="item in classJuri"
  6998. :key="item.id"
  6999. :label="item.name"
  7000. :value="item.id"
  7001. >
  7002. </el-option>
  7003. </el-select>
  7004. </div>
  7005. <span slot="footer" class="dialog-footer">
  7006. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  7007. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  7008. </span>
  7009. </el-dialog>
  7010. <el-dialog
  7011. title="设置随机码"
  7012. :visible.sync="dialogVisibleInvite"
  7013. :append-to-body="true"
  7014. width="360px"
  7015. :before-close="handleClose"
  7016. class="dialog_diy"
  7017. >
  7018. <div
  7019. style="
  7020. width: 100%;
  7021. display: flex;
  7022. flex-direction: row;
  7023. flex-wrap: nowrap;
  7024. align-items: center;
  7025. justify-content: center;
  7026. "
  7027. >
  7028. <div>随机码:</div>
  7029. <el-input
  7030. v-model="icode"
  7031. style="width: 240px"
  7032. placeholder="请输入随机码"
  7033. ></el-input>
  7034. </div>
  7035. <span slot="footer" class="dialog-footer">
  7036. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  7037. <el-button type="primary" @click="addInvite">确定</el-button>
  7038. </span>
  7039. </el-dialog>
  7040. <el-dialog
  7041. title="添加预设时间"
  7042. :visible.sync="dialogVisiblePreTime"
  7043. :append-to-body="true"
  7044. width="450px"
  7045. :before-close="handleClose"
  7046. class="dialog_diy"
  7047. >
  7048. <div>
  7049. <div style="margin-bottom: 20px; color: #999">
  7050. 提示:点击“+”或“-”修改倒计时时长。
  7051. </div>
  7052. <Time
  7053. :preTime="preTime"
  7054. @updateTimeNum="updateTime"
  7055. v-if="dialogVisiblePreTime"
  7056. ></Time>
  7057. </div>
  7058. <span slot="footer" class="dialog-footer">
  7059. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  7060. <el-button type="primary" @click="addPreTime">确定</el-button>
  7061. </span>
  7062. </el-dialog>
  7063. <el-dialog
  7064. title="导入目标"
  7065. :visible.sync="dialogVisiblemb"
  7066. :append-to-body="true"
  7067. width="70%"
  7068. :before-close="handleClose"
  7069. class="dialog_diy"
  7070. >
  7071. <div>
  7072. <div
  7073. style="
  7074. width: 100%;
  7075. display: flex;
  7076. flex-direction: row;
  7077. flex-wrap: nowrap;
  7078. align-content: center;
  7079. align-items: center;
  7080. justify-content: space-between;
  7081. "
  7082. >
  7083. <div
  7084. style="
  7085. display: flex;
  7086. flex-flow: row nowrap;
  7087. align-items: flex-start;
  7088. width: 100%;
  7089. flex-direction: column;
  7090. flex-wrap: nowrap;
  7091. position: relative;
  7092. "
  7093. >
  7094. <div class="e_box">
  7095. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  7096. <div class="e_card_picture">
  7097. <img src="../../../assets/e_picture.png" />
  7098. </div>
  7099. <div class="e_card_name">
  7100. <span>{{ item.title }}</span>
  7101. </div>
  7102. <div class="e_card_btn">
  7103. <span @click="checkEva(item.id, 2)">导入</span>
  7104. </div>
  7105. </div> -->
  7106. <!-- <div class="addEva" @click="openT">
  7107. <img src="../../../assets/icon/addEva.png" alt="" />
  7108. </div> -->
  7109. <div
  7110. style="
  7111. display: flex;
  7112. justify-content: flex-end;
  7113. margin-bottom: 10px;
  7114. "
  7115. >
  7116. <el-button @click="openT" type="primary" size="small"
  7117. >添加目标</el-button
  7118. >
  7119. </div>
  7120. <el-table
  7121. v-if="evaJuri.length"
  7122. ref="table"
  7123. :data="evaJuri"
  7124. border
  7125. :fit="true"
  7126. style="width: 100%"
  7127. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  7128. :row-class-name="tableRowClassName"
  7129. >
  7130. <el-table-column
  7131. label="目标名称"
  7132. min-width="15"
  7133. align="center"
  7134. prop="title"
  7135. >
  7136. </el-table-column>
  7137. <el-table-column
  7138. prop="username"
  7139. label="负责人"
  7140. min-width="15"
  7141. align="center"
  7142. >
  7143. </el-table-column>
  7144. <el-table-column label="操作" width="250px">
  7145. <template slot-scope="scope">
  7146. <div class="btnBox">
  7147. <el-button
  7148. type="primary"
  7149. size="small"
  7150. @click="checkEva(scope.row.id, 2)"
  7151. >导入</el-button
  7152. >
  7153. </div>
  7154. </template>
  7155. </el-table-column>
  7156. </el-table>
  7157. <div
  7158. v-if="evaJuri.length === 0"
  7159. style="margin: 0 auto; color: #6e6e6e"
  7160. >
  7161. 暂无数据
  7162. </div>
  7163. </div>
  7164. </div>
  7165. </div>
  7166. </div>
  7167. <span slot="footer" class="dialog-footer">
  7168. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  7169. </span>
  7170. </el-dialog>
  7171. <el-dialog
  7172. title="分组设置"
  7173. :visible.sync="dialogVisibleGroup"
  7174. :append-to-body="true"
  7175. width="650px"
  7176. :before-close="handleClose"
  7177. class="dialog_diy"
  7178. >
  7179. <div class="groupBox">
  7180. <div v-if="groupJson.group" class="groupContent">
  7181. <div class="groupTitle">请设置小组数量及名称</div>
  7182. <div
  7183. v-for="(item, index) in groupJson.group"
  7184. :key="index"
  7185. class="groupName"
  7186. >
  7187. <span class="groupn">第{{ index + 1 }}组名称:</span>
  7188. <el-input
  7189. v-model="item.name"
  7190. placeholder="请输入名称..."
  7191. style="width: 250px"
  7192. ></el-input>
  7193. <div class="groupBtn">
  7194. <el-button
  7195. type="primary"
  7196. size="small"
  7197. @click="addGroup(index)"
  7198. v-if="groupJson.group.length - 1 == index"
  7199. >
  7200. 添加</el-button
  7201. >
  7202. <el-button
  7203. type="primary"
  7204. size="small"
  7205. @click="deleteGroup(index)"
  7206. v-if="groupJson.group && groupJson.group.length > 1"
  7207. >删除</el-button
  7208. >
  7209. </div>
  7210. </div>
  7211. </div>
  7212. <div class="groupContent">
  7213. <div class="groupTitle">请设置每组人数</div>
  7214. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7215. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7216. <el-input
  7217. v-model="groupJson.number"
  7218. style="width: 150px"
  7219. placeholder="请输入2-10的数字"
  7220. @change="numberPan"
  7221. ></el-input>
  7222. </div>
  7223. </div>
  7224. <span slot="footer" class="dialog-footer">
  7225. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  7226. <el-button type="primary" @click="addGroupJson">确定</el-button>
  7227. </span>
  7228. </el-dialog>
  7229. <el-dialog
  7230. title="修改名称"
  7231. :visible.sync="dialogVisibleupdataVideoT"
  7232. :append-to-body="true"
  7233. width="500px"
  7234. :before-close="handleClose"
  7235. class="dialog_diy"
  7236. >
  7237. <div
  7238. style="
  7239. width: 100%;
  7240. display: flex;
  7241. flex-direction: row;
  7242. flex-wrap: nowrap;
  7243. align-items: center;
  7244. justify-content: center;
  7245. "
  7246. >
  7247. <div style="min-width: fit-content">文件名称:</div>
  7248. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  7249. </div>
  7250. <span slot="footer" class="dialog-footer">
  7251. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  7252. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  7253. </span>
  7254. </el-dialog>
  7255. <el-dialog
  7256. title="创建作文题目"
  7257. :visible.sync="englishDialogVisible"
  7258. :append-to-body="true"
  7259. width="800px"
  7260. :before-close="
  7261. (done) => {
  7262. closePan(69);
  7263. }
  7264. "
  7265. class="dialog_diy fullStyle fullStyle1"
  7266. >
  7267. <englishRight
  7268. :englishList="englishList"
  7269. :oid="oid"
  7270. ref="engJson"
  7271. @setJson="addEnglish"
  7272. ></englishRight>
  7273. <span slot="footer" class="dialog-footer">
  7274. <el-button @click="englishDialogVisible = false">取 消</el-button>
  7275. <el-button type="primary" @click="addEnglish">确 定</el-button>
  7276. </span>
  7277. </el-dialog>
  7278. <el-dialog
  7279. title="选择课程模板"
  7280. :visible.sync="templateDialog"
  7281. :append-to-body="true"
  7282. width="630px"
  7283. :before-close="handleClose"
  7284. class="dialog_diy"
  7285. >
  7286. <div class="template_box">
  7287. <div
  7288. class="wordTeacher"
  7289. v-for="(aa, indexF) in templateArray"
  7290. :key="indexF"
  7291. @click="checkctJson(aa)"
  7292. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7293. >
  7294. <div class="wordPic">
  7295. <img src="../../../assets/icon/new/course_template.png" alt />
  7296. </div>
  7297. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7298. <div
  7299. style="
  7300. margin-top: 10px;
  7301. line-height: 19px;
  7302. overflow: hidden;
  7303. text-overflow: ellipsis;
  7304. white-space: nowrap;
  7305. padding: 0 10px;
  7306. box-sizing: border-box;
  7307. width: 100%;
  7308. "
  7309. >
  7310. {{ aa.title }}
  7311. </div>
  7312. </el-tooltip>
  7313. </div>
  7314. <div
  7315. class="wordTeacher"
  7316. @click="checkctJson({ id: 1 })"
  7317. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7318. :class="{ wordTeacherA: ctJson.id == 1 }"
  7319. >
  7320. <div class="wordPic">
  7321. <img src="../../../assets/icon/new/course_template.png" alt />
  7322. </div>
  7323. <div
  7324. style="
  7325. margin-top: 10px;
  7326. line-height: 19px;
  7327. overflow: hidden;
  7328. text-overflow: ellipsis;
  7329. white-space: nowrap;
  7330. padding: 0 20px;
  7331. "
  7332. >
  7333. 简易模板
  7334. </div>
  7335. </div>
  7336. <div
  7337. class="wordTeacher"
  7338. @click="checkctJson({ id: 2 })"
  7339. v-if="isPasteStage"
  7340. :class="{ wordTeacherA: ctJson.id == 2 }"
  7341. >
  7342. <div class="wordPic">
  7343. <img src="../../../assets/icon/new/course_template.png" alt />
  7344. </div>
  7345. <div
  7346. style="
  7347. margin-top: 10px;
  7348. line-height: 19px;
  7349. overflow: hidden;
  7350. text-overflow: ellipsis;
  7351. white-space: nowrap;
  7352. padding: 0 20px;
  7353. "
  7354. >
  7355. 智能粘贴模式
  7356. </div>
  7357. </div>
  7358. </div>
  7359. <span slot="footer" class="dialog-footer">
  7360. <el-button @click="templateDialog = false">取 消</el-button>
  7361. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7362. </span>
  7363. </el-dialog>
  7364. <interVideo
  7365. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7366. :videoJson="videoJson"
  7367. @add="addVideoJson"
  7368. ></interVideo>
  7369. <el-dialog
  7370. title="切换阶段顺序"
  7371. :visible.sync="dialogVisibleStageChange"
  7372. :append-to-body="true"
  7373. width="400px"
  7374. :before-close="handleClose"
  7375. class="dialog_diy dialog_diyStage"
  7376. >
  7377. <div class="change_stageBox">
  7378. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7379. <div class="nt_taskBox">
  7380. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  7381. <div class="nt_taskName">
  7382. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7383. <span>{{ t.dyName }}</span>
  7384. </el-tooltip>
  7385. </div>
  7386. </div>
  7387. <div class="moveBtn" v-if="unitJson3.length > 1">
  7388. <div
  7389. class="chapter_upload_up"
  7390. @click.stop="stageMove(1, tIndex)"
  7391. ></div>
  7392. <div
  7393. class="chapter_upload_down"
  7394. @click.stop="stageMove(2, tIndex)"
  7395. ></div>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. <span slot="footer" class="dialog-footer">
  7400. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  7401. <el-button type="primary" @click="updateChange">确定</el-button>
  7402. </span>
  7403. </el-dialog>
  7404. <el-dialog
  7405. title="添加资源模板"
  7406. :visible.sync="cetBoxDialog"
  7407. :append-to-body="true"
  7408. width="400px"
  7409. :before-close="handleClose"
  7410. class="dialog_diy"
  7411. >
  7412. <div class="addTypeChoose" style="justify-content: center">
  7413. <div style="min-width: 100px">模板名称:</div>
  7414. <el-input v-model="templateName" style="width: 200px"></el-input>
  7415. </div>
  7416. <div class="addTypeBox">
  7417. <div class="addTypeChoose">
  7418. <div style="min-width: 100px">选择一级分类:</div>
  7419. <el-select
  7420. v-model="setTypeJson.one"
  7421. placeholder="请选择"
  7422. @change="getTwoType(setTypeJson.one)"
  7423. style="width: 200px"
  7424. >
  7425. <el-option
  7426. v-for="(item, index) in oneJson"
  7427. :key="index"
  7428. :label="item.name"
  7429. :value="item.id"
  7430. >
  7431. </el-option>
  7432. </el-select>
  7433. </div>
  7434. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7435. <div style="min-width: 100px">选择二级分类:</div>
  7436. <el-select
  7437. v-model="setTypeJson.two"
  7438. placeholder="请选择"
  7439. style="width: 200px"
  7440. >
  7441. <el-option
  7442. v-for="(item1, index1) in twoJson"
  7443. :key="index1"
  7444. :label="item1.name"
  7445. :value="item1.id"
  7446. >
  7447. </el-option>
  7448. </el-select>
  7449. </div>
  7450. </div>
  7451. <span slot="footer" class="dialog-footer">
  7452. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  7453. <el-button @click="close()">关 闭</el-button>
  7454. </span>
  7455. </el-dialog>
  7456. <evaBox
  7457. :userid="userid"
  7458. :oid="oid"
  7459. :org="org"
  7460. :dialogVisibleEva.sync="evaBoxDialog"
  7461. @updateEvaJson="updateEvaJson"
  7462. ></evaBox>
  7463. <EnglishVoice
  7464. :oid="oid"
  7465. :org="org"
  7466. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7467. :englishVoiceJson="englishVoiceJson"
  7468. @setEnglishVoiceJson="setEnglishVoiceJson"
  7469. ></EnglishVoice>
  7470. <appDialog ref="appDialog" @success="selectAppSuccess"></appDialog>
  7471. <CodeEditor ref="CodeEditorRef" @success="addHtmlSuccess"></CodeEditor>
  7472. </div>
  7473. </template>
  7474. <script>
  7475. import "../../../common/aws-sdk-2.235.1.min.js";
  7476. import { tools as toolsData } from "../../../common/tools.js";
  7477. // import "../../../common/aws-sdk-2.99.0.min.js";
  7478. import $ from "jquery";
  7479. import EditorBar from "../../../components/tools/wangEnduit";
  7480. import Table from "../../../components/tools/table";
  7481. import Mind from "../../tools/jsmind2";
  7482. import Time from "../../tools/time.vue";
  7483. import Sunburst from "../../tools/sunburst";
  7484. import SeeBoard from "../../tools/seeBoard";
  7485. import weilaiData from "../components/weilai.js";
  7486. import sourceDialog from "../teacherSource/dialog.vue";
  7487. import interVideo from "../interVideo/index.vue";
  7488. import englishRight from "../components/englishRight.vue";
  7489. import evaBox from "../evaBox/index.vue";
  7490. import EnglishVoice from "../EnglishVoice/index.vue";
  7491. import appDialog from '../components/appDialog.vue'
  7492. import { myMixin } from "@/mixins/mixin.js"
  7493. import CodeEditor from "../components/CodeEditor";
  7494. var OpenCC = require("opencc-js");
  7495. let converter = OpenCC.Converter({
  7496. from:'hk',
  7497. to:'cn'
  7498. })
  7499. export default {
  7500. mixins: [ myMixin ],
  7501. components: {
  7502. CodeEditor,
  7503. EditorBar,
  7504. Mind,
  7505. Time,
  7506. Sunburst,
  7507. SeeBoard,
  7508. Table,
  7509. sourceDialog,
  7510. interVideo,
  7511. englishRight,
  7512. evaBox,
  7513. EnglishVoice,
  7514. appDialog,
  7515. },
  7516. data() {
  7517. return {
  7518. checkAll: false,
  7519. checkAll2: false,
  7520. chooseType: 1,
  7521. checkedCities: [],
  7522. isIndeterminate: true,
  7523. isIndeterminate2: true,
  7524. isSysPic: false,
  7525. isSysPic2: false,
  7526. steps: 1,
  7527. nbOrder: 0,
  7528. courseId: "",
  7529. chapToolsType: 0,
  7530. chapTools: [
  7531. {
  7532. tools: [],
  7533. toolDetail: "",
  7534. },
  7535. ],
  7536. line: "",
  7537. lineTitle: "",
  7538. sysPic: [],
  7539. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7540. sentenceList2: [],
  7541. isPushTitleList: [],
  7542. lineCount: 0,
  7543. lineType: 0,
  7544. chapCount: 0,
  7545. courseName: "",
  7546. isTeacherSee: false,
  7547. highSetting: false,
  7548. courseText: "",
  7549. preTime: 0,
  7550. formLabelWidth: "100px",
  7551. choosePicVisible: false,
  7552. sysPicVisible: false,
  7553. sysPicVisible2: false,
  7554. uploadLoading1: false,
  7555. noneBtnImg: false,
  7556. updateBoolean2: false,
  7557. unitIndex: 0,
  7558. taskCount: 0,
  7559. dialogVisible: false,
  7560. dialogVisible1: false,
  7561. dialogVisible2: false,
  7562. dialogVisible3: false,
  7563. dialogVisible4: false,
  7564. dialogVisible5: false,
  7565. dialogVisible6: false,
  7566. dialogVisible7: false,
  7567. dialogVisible8: false,
  7568. dialogVisible9: false,
  7569. dialogVisibleClass: false,
  7570. dialogVisibleMember: false,
  7571. dialogVisibleMp3: false,
  7572. dialogVisibleSelect: false,
  7573. dialogVisibleSentence: false,
  7574. dialogVisibleRate: false,
  7575. dialogVisibleChoice: false,
  7576. dialogVisiblemb: false,
  7577. dialogVisibleInvite: false,
  7578. dialogVisibleSource: false,
  7579. dialogVisibleVideo: false,
  7580. dialogVisibleStageChange: false,
  7581. dialogVisibleupdataVideoT: false,
  7582. englishDialogVisible: false,
  7583. templateDialog: false,
  7584. ctJson: {},
  7585. isClickColor: 1,
  7586. toolIndexType: "",
  7587. publicTool: 0,
  7588. searchPeople: "",
  7589. searchTN: "",
  7590. collid: '',
  7591. CollLoading: false,
  7592. userid: this.$route.query.userid,
  7593. oid: this.$route.query.oid,
  7594. org: this.$route.query.org,
  7595. role: this.$route.query.role,
  7596. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7597. dialogVisibleTable: false,
  7598. dialogVisibleWord: false,
  7599. tableJson: { text: "" },
  7600. wordJson: { text: "" },
  7601. dialogVisibleMoreUpload: false,
  7602. dialogVisiblePreTime: false,
  7603. uploadJson: [],
  7604. classJuri: [],
  7605. gradeList: [],
  7606. cover: [], //课程封面
  7607. myWord: [],
  7608. evaJuri: [],
  7609. evalua: "",
  7610. targetArray: [],
  7611. eTitle: "",
  7612. eJson: {},
  7613. fid: "", //一级
  7614. sid: "", //二级
  7615. tid: "", //二级
  7616. typeMode: 1,
  7617. eJSONNum: 0,
  7618. data: {
  7619. meta: {
  7620. name: "example",
  7621. author: "dd@163.com",
  7622. version: "0.2",
  7623. },
  7624. format: "node_array",
  7625. data: [{ id: "root", isroot: true, topic: "" }],
  7626. },
  7627. askJson: {
  7628. askCount: 1,
  7629. askTitle: "",
  7630. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7631. },
  7632. askJson2: {},
  7633. testJson: {},
  7634. testJson2: {},
  7635. selectJson: {},
  7636. selectJson2: {},
  7637. rateJson: [],
  7638. unitJson2: [],
  7639. unitJson3: [],
  7640. unitJson: [
  7641. {
  7642. dyName: "", //单元标题
  7643. chapterInfo: [
  7644. {
  7645. isread: false,
  7646. chapterid: this.guid(),
  7647. title: "",
  7648. courseName: "",
  7649. taskJson: [
  7650. {
  7651. task: "",
  7652. taskDetail: "",
  7653. chapterData: [],
  7654. toolText: "",
  7655. toolChoose: [
  7656. {
  7657. tool: [],
  7658. toolDetail: "",
  7659. toolType: 0,
  7660. askCount: 1,
  7661. askTitle: "",
  7662. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7663. },
  7664. ],
  7665. isShowTools: false,
  7666. askCount: 1,
  7667. isFold: 1,
  7668. askTitle: "",
  7669. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7670. checkJson: [{ checkCount: [], checkPerent: [] }],
  7671. homeworkList: [],
  7672. },
  7673. ],
  7674. itemCount: 1,
  7675. fileList1: [],
  7676. video: [],
  7677. testData: [],
  7678. pData: [],
  7679. templateArray: [],
  7680. },
  7681. ],
  7682. },
  7683. ],
  7684. templateArray: [],
  7685. studentJuri: [],
  7686. teacherJuri: [],
  7687. CollaborativeTeaList: [],
  7688. checkboxList: [],
  7689. checkboxList2: [],
  7690. checkboxList3: [],
  7691. classSearch: "",
  7692. gradeId: "",
  7693. number: "",
  7694. tTitle: "",
  7695. tdetail: "",
  7696. templateC: {},
  7697. AttText: {},
  7698. AttTextType: 0,
  7699. AttTextIndex: 0,
  7700. cTemplate: "",
  7701. CourseType: [],
  7702. CourseType1: [],
  7703. CourseType2: [],
  7704. CourseTypeJson: {},
  7705. CourseTypeJson1: {},
  7706. courseTypeId: [],
  7707. courseTypeId1: [],
  7708. courseTypeSon: [],
  7709. clearArray: [],
  7710. pTypeCheck: [],
  7711. pTypeCheckName: [],
  7712. loading: false,
  7713. toolType: 0,
  7714. inputShow: true,
  7715. inputShow2: true,
  7716. toolIndex: 0,
  7717. cidType: 0,
  7718. answerQ: "",
  7719. answerQ2: "",
  7720. grade: [],
  7721. grade2: [],
  7722. courseUserid: "",
  7723. timer: null,
  7724. timer2: null,
  7725. pasteTimer: null,
  7726. checkId: "",
  7727. isDelete: 1,
  7728. addindex: 0,
  7729. selectSteps: 1,
  7730. groupJson: {},
  7731. dialogVisibleGroup: false,
  7732. rightBoxHeight: 10,
  7733. ManAarray: [],
  7734. checkBoolean: false,
  7735. inviteCode: [],
  7736. inviteId: "",
  7737. icode: "",
  7738. easyArray: [2, 4],
  7739. sourceData: {},
  7740. updateSourcePan: false,
  7741. videoJson: {},
  7742. isBtnDisplay: false,
  7743. isStepDisplay: false,
  7744. isPasteStage: false,
  7745. isPasteTask: false,
  7746. isPasteChoice: false,
  7747. imageList: [],
  7748. imageloading: false,
  7749. searchImageValue: "",
  7750. ppage: 1,
  7751. toolsData: JSON.parse(converter(JSON.stringify(toolsData))),
  7752. oldIndex: 0,
  7753. dragType: "",
  7754. oldUnitIndex: 0,
  7755. oldData: null,
  7756. newIndex: "",
  7757. englishList: {},
  7758. typeIndex: "",
  7759. courseState: 2,
  7760. taskJSONa: [
  7761. {
  7762. task: "",
  7763. taskDetail: "",
  7764. chapterData: [],
  7765. toolText: "",
  7766. toolChoose: [
  7767. {
  7768. tool: [],
  7769. toolDetail: "",
  7770. toolType: 0,
  7771. askCount: 1,
  7772. askTitle: "",
  7773. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7774. },
  7775. ],
  7776. isShowTools: false,
  7777. askCount: 1,
  7778. isFold: 1,
  7779. askTitle: "",
  7780. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7781. checkJson: [{ checkCount: [], checkPerent: [] }],
  7782. homeworkList: [],
  7783. },
  7784. ],
  7785. checkUnitIndex: 0,
  7786. isdrag: "",
  7787. evaIndex: "",
  7788. evatIndex: "",
  7789. evaBoxDialog: false,
  7790. EnglishVoiceDialog: false,
  7791. englishVoiceJson: {},
  7792. cetIndex: "",
  7793. cettIndex: "",
  7794. cetBoxDialog: false,
  7795. templateName: "",
  7796. setTypeJson: {
  7797. one: "",
  7798. two: "",
  7799. },
  7800. twoJson: [],
  7801. oneJson: [],
  7802. updateKey:1,
  7803. optionTypeList:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
  7804. };
  7805. },
  7806. directives: {
  7807. autoHeight: {
  7808. update(el, binding) {
  7809. const { value } = binding;
  7810. if (value && typeof value === "number") {
  7811. el.style.height = `${value}px`;
  7812. } else {
  7813. el.style.height = "auto";
  7814. }
  7815. },
  7816. componentUpdated(el) {
  7817. el.style.height = `${el.scrollHeight + 5}px`;
  7818. },
  7819. },
  7820. },
  7821. computed: {
  7822. // rightBoxHeight: function () {
  7823. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7824. // },
  7825. offsetLetfPx: function () {
  7826. //addnum可以直接在模板语法里面用,相当于data内的值
  7827. return (
  7828. $(".cru_select")[this.unitIndex] &&
  7829. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7830. );
  7831. },
  7832. getMan2() {
  7833. return function (people) {
  7834. let _people = people;
  7835. let _people2 = "";
  7836. if (this.ManAarray.length) {
  7837. _people2 = this.ManAarray.find(man => man.userid === people).name || "";
  7838. }
  7839. if (people === this.courseUserid) {
  7840. return "";
  7841. }
  7842. return _people2;
  7843. };
  7844. },
  7845. getListMan2() {
  7846. return function (list) {
  7847. console.log('getListMan2',list);
  7848. let _people2 = [];
  7849. if (this.ManAarray.length) {
  7850. list.slice(0, 10).forEach(people => {
  7851. let name = this.ManAarray.find(man => man.userid === people && people !== this.courseUserid).name || "";
  7852. if (name) {
  7853. _people2.push(name);
  7854. }
  7855. });
  7856. }
  7857. return _people2.join("、");
  7858. };
  7859. },
  7860. isInvite() {
  7861. return function (cid) {
  7862. let array = [];
  7863. for (var i = 0; i < this.inviteCode.length; i++) {
  7864. array.push(this.inviteCode[i].cid);
  7865. }
  7866. return array.indexOf(cid) != -1;
  7867. };
  7868. },
  7869. getInviteCodeC() {
  7870. return function (cid) {
  7871. let array = [];
  7872. for (var i = 0; i < this.inviteCode.length; i++) {
  7873. array.push(this.inviteCode[i].cid);
  7874. }
  7875. return this.inviteCode[array.indexOf(cid)].ic;
  7876. };
  7877. },
  7878. getClassC() {
  7879. return function (c) {
  7880. let _c2 = "";
  7881. if (this.grade.length) {
  7882. for (var i = 0; i < this.grade.length; i++) {
  7883. if (this.grade[i].id == c) {
  7884. _c2 = this.grade[i].name;
  7885. break;
  7886. }
  7887. }
  7888. }
  7889. return this.grade.length ? _c2 : "";
  7890. };
  7891. },
  7892. getListClassC() {
  7893. return function (list) {
  7894. let _c2 = [];
  7895. if (this.grade.length) {
  7896. for (var j = 0; j < list.length; j++) {
  7897. let c = list[j];
  7898. for (var i = 0; i < this.grade.length; i++) {
  7899. if (this.grade[i].id == c) {
  7900. _c2.push(this.grade[i].name);
  7901. break;
  7902. }
  7903. }
  7904. }
  7905. }
  7906. return this.grade.length ? _c2.join("、") : "";
  7907. };
  7908. },
  7909. },
  7910. watch: {
  7911. unitIndex(newValue, oldValue) {
  7912. if (this.isDelete == 2) {
  7913. this.isDelete = 1;
  7914. return;
  7915. }
  7916. if (this.cid != "") {
  7917. let _unitIndex = oldValue;
  7918. if (
  7919. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7920. JSON.stringify(this.unitJson[_unitIndex])
  7921. ) {
  7922. // this.$refs.rightboxR.scrollTop = 0;
  7923. return;
  7924. }
  7925. let cPan = 1;
  7926. for (
  7927. var j = 0;
  7928. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7929. j++
  7930. ) {
  7931. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7932. j
  7933. ].proVisible = false;
  7934. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7935. j
  7936. ].proVisible2 = false;
  7937. if (
  7938. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7939. .length > 1
  7940. ) {
  7941. for (
  7942. var z = 0;
  7943. z <
  7944. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7945. .length;
  7946. z++
  7947. ) {
  7948. if (
  7949. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7950. .toolChoose[z].tool.length
  7951. ) {
  7952. this.$message.error("请把工具添加完整");
  7953. cPan = 2;
  7954. break;
  7955. }
  7956. }
  7957. }
  7958. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7959. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7960. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7961. (ele) => {
  7962. return ele.value != "";
  7963. }
  7964. );
  7965. }
  7966. }
  7967. if (cPan == 2) {
  7968. this.unitIndex = oldValue;
  7969. return;
  7970. }
  7971. for (var i = 0; i < this.unitJson.length; i++) {
  7972. if (this.addindex != i) {
  7973. delete this.unitJson[i].isUpdate;
  7974. }
  7975. }
  7976. // this.$refs.rightboxR.scrollTop = 0;
  7977. this.addindex = -1;
  7978. let params = [
  7979. {
  7980. cid: this.cid,
  7981. chapters: JSON.stringify(this.unitJson),
  7982. uid: this.userid,
  7983. unitIndex: _unitIndex,
  7984. },
  7985. ];
  7986. this.ajax
  7987. .post(this.$store.state.api + "updateWorkNew4", params)
  7988. .then((res) => {
  7989. // this.$message({
  7990. // message: "修改成功",
  7991. // type: "success",
  7992. // });
  7993. // this.courseId = this.cid;
  7994. })
  7995. .catch((err) => {
  7996. this.$message.error("网络不佳");
  7997. console.error(err);
  7998. });
  7999. }
  8000. },
  8001. steps(newValue, old) {
  8002. if (newValue == 4) {
  8003. let cPan = 1;
  8004. for (var i = 0; i < this.unitJson.length; i++) {
  8005. for (
  8006. var j = 0;
  8007. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8008. j++
  8009. ) {
  8010. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8011. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8012. if (
  8013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8014. ) {
  8015. for (
  8016. var z = 0;
  8017. z <
  8018. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8019. z++
  8020. ) {
  8021. if (
  8022. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  8023. .tool.length
  8024. ) {
  8025. this.$message.error("请把工具添加完整");
  8026. cPan = 2;
  8027. break;
  8028. }
  8029. }
  8030. }
  8031. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8032. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8033. i
  8034. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8035. return ele.value != "";
  8036. });
  8037. }
  8038. }
  8039. }
  8040. this.inputShow = true;
  8041. if (cPan == 2) {
  8042. this.steps = old;
  8043. return;
  8044. }
  8045. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  8046. window.topU.U.UF.F.closeWindow( window.topU.$("#openCourseUpdate"))
  8047. }
  8048. this.goTo(
  8049. "/course?userid=" +
  8050. this.userid +
  8051. "&oid=" +
  8052. this.oid +
  8053. "&org=" +
  8054. this.org +
  8055. "&role=" +
  8056. this.role
  8057. );
  8058. }
  8059. },
  8060. },
  8061. methods: {
  8062. tableRowClassName({ row, rowIndex }) {
  8063. if ((rowIndex + 1) % 2 === 0) {
  8064. return "even_row";
  8065. } else {
  8066. return "";
  8067. }
  8068. },
  8069. close() {
  8070. this.cetIndex = "";
  8071. this.cettIndex = "";
  8072. this.templateName = "";
  8073. this.cetBoxDialog = false;
  8074. },
  8075. openAI() {
  8076. window.topU.postMessage({ tools: "64" }, "*");
  8077. },
  8078. setMan() {
  8079. // let teacherJuri = this.teacherJuri2;
  8080. this.ManAarray = [];
  8081. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  8082. if (_user.indexOf(this.userid) == -1) {
  8083. _user.push(this.userid);
  8084. }
  8085. if (_user.indexOf(this.courseUserid) == -1) {
  8086. _user.push(this.courseUserid);
  8087. }
  8088. let params = [{
  8089. uid: _user.join(","),
  8090. }];
  8091. this.ajax
  8092. .post(this.$store.state.api + "getAllUserByIdP", params)
  8093. .then((res) => {
  8094. let teacherJuri = res.data[0];
  8095. this.ManAarray = teacherJuri;
  8096. })
  8097. .catch((err) => {
  8098. console.error(err);
  8099. });
  8100. },
  8101. previewImg(url) {
  8102. this.$hevueImgPreview(url);
  8103. },
  8104. btnDisplay(bool) {
  8105. this.isBtnDisplay = bool;
  8106. },
  8107. stepDisplay(bool) {
  8108. this.isStepDisplay = bool;
  8109. },
  8110. scrollChange() {
  8111. // this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  8112. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  8113. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  8114. this.rightBoxHeight = height1 + height2
  8115. },
  8116. addHw(e) {
  8117. var el = e.currentTarget;
  8118. el.getElementsByTagName("input")[0].click();
  8119. },
  8120. change(val) {
  8121. if (this.dialogVisible1) {
  8122. this.tdetail = val;
  8123. } else if (this.dialogVisible6) {
  8124. this.AttText.text = val;
  8125. } else if (this.dialogVisible2) {
  8126. this.cTemplate = val;
  8127. } else if (this.dialogVisibleTable) {
  8128. this.tableJson.text = val;
  8129. }
  8130. this.$forceUpdate();
  8131. console.log(val);
  8132. },
  8133. change2(val) {
  8134. console.log(val);
  8135. this.$forceUpdate();
  8136. },
  8137. handleClose(done) {
  8138. done();
  8139. },
  8140. closePan(tool) {
  8141. if (tool == 15) {
  8142. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  8143. this.dialogVisible8 = false;
  8144. } else {
  8145. this.closeConfirm(tool);
  8146. }
  8147. } else if (tool == 4) {
  8148. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  8149. this.dialogVisible5 = false;
  8150. } else {
  8151. this.closeConfirm(tool);
  8152. }
  8153. } else if (tool == 45) {
  8154. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  8155. this.dialogVisibleChoice = false;
  8156. } else {
  8157. this.closeConfirm(tool);
  8158. }
  8159. } else if (tool == 41) {
  8160. if (
  8161. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8162. ) {
  8163. this.dialogVisibleSelect = false;
  8164. } else {
  8165. this.closeConfirm(tool);
  8166. }
  8167. } else if (tool == 47) {
  8168. if (
  8169. JSON.stringify(this.sentenceList) ==
  8170. JSON.stringify(this.sentenceList2)
  8171. ) {
  8172. this.dialogVisibleSentence = false;
  8173. } else {
  8174. this.closeConfirm(tool);
  8175. }
  8176. } else if (tool == 69) {
  8177. if (
  8178. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8179. ) {
  8180. this.englishDialogVisible = false;
  8181. } else {
  8182. this.closeConfirm(tool);
  8183. }
  8184. }
  8185. },
  8186. closeConfirm(tool) {
  8187. this.$confirm("是否保存已编辑内容?", "提示", {
  8188. confirmButtonText: "保存",
  8189. cancelButtonText: "不保存",
  8190. type: "warning",
  8191. })
  8192. .then(() => {
  8193. if (tool == 15) {
  8194. this.addAnswer();
  8195. } else if (tool == 4) {
  8196. this.addAsk();
  8197. } else if (tool == 45) {
  8198. this.addTest();
  8199. } else if (tool == 41) {
  8200. this.addSelectAnswer();
  8201. } else if (tool == 47) {
  8202. this.addSentenceTool();
  8203. } else if (tool == 69) {
  8204. this.addEnglish();
  8205. }
  8206. })
  8207. .catch(() => {
  8208. if (tool == 15) {
  8209. this.dialogVisible8 = false;
  8210. } else if (tool == 4) {
  8211. this.dialogVisible5 = false;
  8212. } else if (tool == 45) {
  8213. this.dialogVisibleChoice = false;
  8214. } else if (tool == 41) {
  8215. this.dialogVisibleSelect = false;
  8216. } else if (tool == 47) {
  8217. this.dialogVisibleSentence = false;
  8218. } else if (tool == 69) {
  8219. this.englishDialogVisible = false;
  8220. }
  8221. });
  8222. },
  8223. addEnglish(jsonType) {
  8224. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8225. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8226. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8227. if (
  8228. this.englishList.engTitle == "" ||
  8229. this.englishList.englishText == ""
  8230. ) {
  8231. this.$message.error("请将内容填写完整!");
  8232. return;
  8233. }
  8234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8235. this.taskCount
  8236. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8237. this.englishList = {};
  8238. if (jsonType && jsonType == 1) {
  8239. this.englishDialogVisible = true;
  8240. } else {
  8241. this.englishDialogVisible = false;
  8242. }
  8243. if (
  8244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8245. .toolChoose[this.toolIndex].tool != 69
  8246. ) {
  8247. this.addTools(69, this.taskCount, this.toolIndex);
  8248. }
  8249. },
  8250. imgChange2(i, j) {
  8251. var _tmp = this.testJson.testJson[i].checkList[j];
  8252. this.noneBtnImg = _tmp.length >= 1;
  8253. },
  8254. imgChange3(i) {
  8255. var _tmp = this.testJson.testJson[i];
  8256. this.noneBtnImg = _tmp.length >= 1;
  8257. },
  8258. imgChange1(file, fileList, type, itemTaskIndex) {
  8259. if (type == 1) {
  8260. var _tmp = this.cover;
  8261. } else if (
  8262. type == 2 ||
  8263. type == 3 ||
  8264. type == 6 ||
  8265. type == 7 ||
  8266. type == 8
  8267. ) {
  8268. var _tmp =
  8269. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8270. .chapterData;
  8271. } else if (type == 4) {
  8272. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8273. } else {
  8274. var _tmp =
  8275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8276. .homeworkList;
  8277. }
  8278. this.noneBtnImg = _tmp.length >= 1;
  8279. },
  8280. goTo(path) {
  8281. this.$router.push(path);
  8282. },
  8283. guid() {
  8284. var _num,
  8285. i,
  8286. _guid = "";
  8287. for (i = 0; i < 32; i++) {
  8288. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8289. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8290. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8291. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8292. _guid += "-";
  8293. }
  8294. }
  8295. return _guid;
  8296. },
  8297. retrunCourse() {
  8298. this.$confirm("是否保存已编辑内容?", "提示", {
  8299. confirmButtonText: "保存",
  8300. cancelButtonText: "不保存",
  8301. distinguishCancelAndClose: true,
  8302. type: "warning",
  8303. })
  8304. .then(() => {
  8305. if (this.cid == "" || this.cid == undefined) {
  8306. if (this.courseName == "") {
  8307. this.$message.error("请补充填写课程名称");
  8308. return;
  8309. } else {
  8310. this.addWork();
  8311. }
  8312. this.steps = 4;
  8313. } else {
  8314. if (this.courseName == "") {
  8315. this.$message.error("请补充填写课程名称");
  8316. return;
  8317. } else {
  8318. if (this.userid != this.courseUserid && this.role != "1") {
  8319. this.updateWork2();
  8320. } else {
  8321. this.updateWork();
  8322. }
  8323. this.steps = 4;
  8324. }
  8325. }
  8326. })
  8327. .catch((v) => {
  8328. console.log(v);
  8329. if (v == "cancel") {
  8330. this.goTo(
  8331. "/course?userid=" +
  8332. this.userid +
  8333. "&oid=" +
  8334. this.oid +
  8335. "&org=" +
  8336. this.org +
  8337. "&role=" +
  8338. this.role
  8339. );
  8340. }
  8341. });
  8342. },
  8343. lastSteps() {
  8344. if (this.steps == 4) {
  8345. this.goTo(
  8346. "/course?userid=" +
  8347. this.userid +
  8348. "&oid=" +
  8349. this.oid +
  8350. "&org=" +
  8351. this.org +
  8352. "&role=" +
  8353. this.role
  8354. );
  8355. } else {
  8356. // if (this.cidType == 0) {
  8357. // this.steps--;
  8358. // if (this.steps == 1) {
  8359. // setTimeout(() => {
  8360. // this.checkEva(this.checkId);
  8361. // setTimeout(() => {
  8362. // this.checkEva(this.checkId);
  8363. // }, 100);
  8364. // }, 100);
  8365. // }
  8366. // } else {
  8367. if (this.steps == 3) {
  8368. this.steps = 1;
  8369. setTimeout(() => {
  8370. this.checkEva(this.checkId);
  8371. setTimeout(() => {
  8372. this.checkEva(this.checkId);
  8373. }, 100);
  8374. }, 100);
  8375. }
  8376. // }
  8377. }
  8378. },
  8379. navSteps(s) {
  8380. if (this.courseName == "") {
  8381. this.$message.error("请补充填写课程名称");
  8382. return;
  8383. }
  8384. if (this.cidType == 0) {
  8385. if (this.steps == 1) {
  8386. if (this.cid == "" || this.cid == undefined) {
  8387. this.addWork();
  8388. } else {
  8389. if (this.userid != this.courseUserid && this.role != "1") {
  8390. // this.updateWork2();
  8391. } else {
  8392. this.updateWork();
  8393. }
  8394. }
  8395. }
  8396. if (s == 1) {
  8397. this.steps = 1;
  8398. setTimeout(() => {
  8399. this.checkEva(this.checkId);
  8400. setTimeout(() => {
  8401. this.checkEva(this.checkId);
  8402. }, 100);
  8403. }, 100);
  8404. }
  8405. if (s == 2) {
  8406. this.steps = 2;
  8407. }
  8408. if (s == 3) {
  8409. this.cTemplate = this.templateC.content;
  8410. this.dialogVisible2 = false;
  8411. this.steps = 3;
  8412. this.isClickColor = 1;
  8413. this.unitJson[
  8414. this.unitIndex
  8415. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8416. this.$forceUpdate();
  8417. setTimeout(() => {
  8418. this.checkEva(this.checkId);
  8419. setTimeout(() => {
  8420. this.checkEva(this.checkId);
  8421. }, 100);
  8422. }, 1000);
  8423. }
  8424. } else {
  8425. if (this.steps == 1) {
  8426. if (this.cid == "" || this.cid == undefined) {
  8427. this.addWork();
  8428. } else {
  8429. if (this.userid != this.courseUserid && this.role != "1") {
  8430. // this.updateWork2();
  8431. } else {
  8432. this.updateWork();
  8433. }
  8434. }
  8435. }
  8436. if (s == 1) {
  8437. this.steps = 1;
  8438. setTimeout(() => {
  8439. this.checkEva(this.checkId);
  8440. setTimeout(() => {
  8441. this.checkEva(this.checkId);
  8442. }, 100);
  8443. }, 100);
  8444. }
  8445. if (s == 3) {
  8446. this.cTemplate = this.templateC.content;
  8447. this.dialogVisible2 = false;
  8448. this.steps = 3;
  8449. this.isClickColor = 1;
  8450. this.unitJson[
  8451. this.unitIndex
  8452. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8453. this.$forceUpdate();
  8454. setTimeout(() => {
  8455. this.checkEva(this.checkId);
  8456. setTimeout(() => {
  8457. this.checkEva(this.checkId);
  8458. }, 100);
  8459. }, 1000);
  8460. }
  8461. }
  8462. this.$refs.stepBox.scrollTop = 0;
  8463. },
  8464. nextSteps() {
  8465. // if (this.cidType == 1) {
  8466. // if (this.steps == 1) {
  8467. // if (this.courseName != "") {
  8468. // this.steps = 3;
  8469. // this.isClickColor = 1;
  8470. // this.unitJson[
  8471. // this.unitIndex
  8472. // ].chapterInfo[0].taskJson[0].toolOpen = true;
  8473. // this.$forceUpdate();
  8474. // setTimeout(() => {
  8475. // this.checkEva(this.checkId);
  8476. // setTimeout(() => {
  8477. // this.checkEva(this.checkId);
  8478. // }, 100);
  8479. // }, 1000);
  8480. // if (this.cid == "" || this.cid == undefined) {
  8481. // this.addWork();
  8482. // } else {
  8483. // if (this.userid != this.courseUserid && this.role != "1") {
  8484. // // this.updateWork2();
  8485. // } else {
  8486. // this.updateWork();
  8487. // }
  8488. // }
  8489. // } else {
  8490. // this.$message.error("请补充填写课程名称");
  8491. // return;
  8492. // }
  8493. // } else if (this.steps == 3) {
  8494. if (this.cid == "" || this.cid == undefined) {
  8495. if (this.courseName == "") {
  8496. this.$message.error("请补充填写课程名称");
  8497. return;
  8498. } else {
  8499. this.addWork();
  8500. // this.steps++;
  8501. this.steps = 4;
  8502. }
  8503. } else {
  8504. if (this.courseName == "") {
  8505. this.$message.error("请补充填写课程名称");
  8506. return;
  8507. } else {
  8508. if (this.userid != this.courseUserid && this.role != "1") {
  8509. this.updateWork2();
  8510. } else {
  8511. this.updateWork();
  8512. }
  8513. // this.steps++;
  8514. this.steps = 4;
  8515. }
  8516. }
  8517. // }
  8518. // } else {
  8519. // if (this.steps == 1) {
  8520. // if (this.courseName != "") {
  8521. // if (this.cid == "" || this.cid == undefined) {
  8522. // this.addWork();
  8523. // } else {
  8524. // if (this.userid != this.courseUserid && this.role != "1") {
  8525. // // this.updateWork2();
  8526. // } else {
  8527. // this.updateWork();
  8528. // }
  8529. // }
  8530. // this.steps++;
  8531. // } else {
  8532. // this.$message.error("请补充填写课程名称");
  8533. // return;
  8534. // }
  8535. // } else if (this.steps == 2) {
  8536. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8537. // this.cTemplate = this.templateC.content;
  8538. // }
  8539. // this.dialogVisible2 = false;
  8540. // this.steps++;
  8541. // setTimeout(() => {
  8542. // this.checkEva(this.checkId);
  8543. // setTimeout(() => {
  8544. // this.checkEva(this.checkId);
  8545. // }, 100);
  8546. // }, 1000);
  8547. // } else if (this.steps == 3) {
  8548. // if (this.cid == "" || this.cid == undefined) {
  8549. // if (this.courseName == "") {
  8550. // this.$message.error("请补充填写课程名称");
  8551. // return;
  8552. // } else {
  8553. // this.addWork();
  8554. // this.steps++;
  8555. // }
  8556. // } else {
  8557. // if (this.courseName == "") {
  8558. // this.$message.error("请补充填写课程名称");
  8559. // return;
  8560. // } else {
  8561. // if (this.userid != this.courseUserid && this.role != "1") {
  8562. // this.updateWork2();
  8563. // } else {
  8564. // this.updateWork();
  8565. // }
  8566. // this.steps++;
  8567. // }
  8568. // }
  8569. // }
  8570. // }
  8571. // this.$refs.stepBox.scrollTop = 0;
  8572. },
  8573. unitSet(i) {
  8574. if (this.unitIndex == i) {
  8575. return;
  8576. }
  8577. this.unitIndex = i;
  8578. this.isClickColor = 1;
  8579. // this.$refs.rightboxR.scrollTop = 0;
  8580. this.$refs.unitBox.scrollTop = 0;
  8581. },
  8582. panUnitJson() {
  8583. let _unitIndex = this.unitIndex;
  8584. let cPan = 1;
  8585. for (
  8586. var j = 0;
  8587. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8588. j++
  8589. ) {
  8590. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8591. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8592. j
  8593. ].proVisible2 = false;
  8594. if (
  8595. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8596. .length > 1
  8597. ) {
  8598. for (
  8599. var z = 0;
  8600. z <
  8601. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8602. .length;
  8603. z++
  8604. ) {
  8605. if (
  8606. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8607. z
  8608. ].tool.length
  8609. ) {
  8610. this.$message.error("请把工具添加完整");
  8611. cPan = 2;
  8612. break;
  8613. }
  8614. }
  8615. }
  8616. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8617. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8618. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8619. (ele) => {
  8620. return ele.value != "";
  8621. }
  8622. );
  8623. }
  8624. }
  8625. return cPan;
  8626. },
  8627. unitOpen(i) {
  8628. if (this.unitJson[i].toolOpen) {
  8629. this.unitJson[i].toolOpen = false;
  8630. } else {
  8631. this.unitJson[i].toolOpen = true;
  8632. }
  8633. this.updateWork();
  8634. this.$forceUpdate();
  8635. },
  8636. unitSet2(i) {
  8637. if (this.panUnitJson() == 2) {
  8638. return;
  8639. }
  8640. // if(this.unitJson[i].toolOpen){
  8641. // this.unitJson[i].toolOpen = false
  8642. // this.updateWork()
  8643. // this.$forceUpdate()
  8644. // return
  8645. // }else {
  8646. this.unitJson[i].toolOpen = true;
  8647. // }
  8648. this.$forceUpdate();
  8649. if (this.unitIndex == i) {
  8650. return;
  8651. }
  8652. this.unitIndex = i;
  8653. this.isClickColor = 1;
  8654. // this.$refs.rightboxR.scrollTop = 0;
  8655. this.$refs.unitBox.scrollTop = 0;
  8656. },
  8657. updateCourseState(i) {
  8658. let params = [
  8659. {
  8660. cid: this.cid,
  8661. state: i,
  8662. },
  8663. ];
  8664. this.ajax
  8665. .post(this.$store.state.api + "updateCourseMode", params)
  8666. .then((res) => {
  8667. this.courseState = i;
  8668. })
  8669. .catch((err) => {
  8670. this.$message.error("网络不佳");
  8671. console.error(err);
  8672. });
  8673. },
  8674. time() {
  8675. if (!this.now) {
  8676. this.now = new Date().getTime();
  8677. return true;
  8678. } else {
  8679. let time = new Date().getTime();
  8680. if (time - this.now > 3000) {
  8681. this.now = time;
  8682. return true;
  8683. } else {
  8684. return false;
  8685. }
  8686. }
  8687. },
  8688. deleteUnit(i) {
  8689. var _this = this;
  8690. if (i == 0 && _this.unitJson.length == 1) {
  8691. _this
  8692. .$confirm("确定切换成任务模式吗?", "提示", {
  8693. confirmButtonText: "确定",
  8694. cancelButtonText: "取消",
  8695. type: "warning",
  8696. })
  8697. .then(() => {
  8698. _this.unitJson[i].dyName = "";
  8699. _this.updateCourseState(2);
  8700. })
  8701. .catch(() => {
  8702. return;
  8703. });
  8704. } else {
  8705. _this
  8706. .$confirm("确定删除此阶段吗?", "提示", {
  8707. confirmButtonText: "确定",
  8708. cancelButtonText: "取消",
  8709. type: "warning",
  8710. })
  8711. .then(() => {
  8712. _this.isDelete = 2;
  8713. // _this.unitIndex = _this.unitIndex - 1;
  8714. if(_this.cid){
  8715. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8716. }else {
  8717. _this.$message({
  8718. message: "删除成功",
  8719. type: "success",
  8720. });
  8721. let task = JSON.parse(
  8722. JSON.stringify(
  8723. _this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8724. )
  8725. );
  8726. _this.unitJson.splice(_this.unitIndex, 1);
  8727. if (_this.unitIndex == 0) {
  8728. _this.unitIndex = 0;
  8729. } else {
  8730. _this.unitIndex = _this.unitIndex - 1;
  8731. }
  8732. if (JSON.stringify(task) != JSON.stringify(_this.taskJSONa)) {
  8733. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson = [
  8734. ..._this.unitJson[_this.unitIndex].chapterInfo[0].taskJson,
  8735. ...task,
  8736. ];
  8737. }
  8738. }
  8739. // _this.$message.success("删除成功");
  8740. })
  8741. .catch(() => {
  8742. return;
  8743. });
  8744. }
  8745. },
  8746. deleteWork(chapid) {
  8747. let params = [
  8748. {
  8749. cid: this.cid,
  8750. chapters: JSON.stringify(this.unitJson),
  8751. uid: this.userid,
  8752. chapid: chapid,
  8753. },
  8754. ];
  8755. this.ajax
  8756. .post(this.$store.state.api + "deleteWork", params)
  8757. .then((res) => {
  8758. this.$message({
  8759. message: "删除成功",
  8760. type: "success",
  8761. });
  8762. let task = JSON.parse(
  8763. JSON.stringify(
  8764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8765. )
  8766. );
  8767. this.unitJson.splice(this.unitIndex, 1);
  8768. if (this.unitIndex == 0) {
  8769. this.unitIndex = 0;
  8770. } else {
  8771. this.unitIndex = this.unitIndex - 1;
  8772. }
  8773. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8775. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8776. ...task,
  8777. ];
  8778. }
  8779. })
  8780. .catch((err) => {
  8781. this.$message.error("网络不佳");
  8782. console.error(err);
  8783. });
  8784. },
  8785. deleteTool(itemTaskIndex, i) {
  8786. var _this = this;
  8787. if (_this.time()) {
  8788. _this
  8789. .$confirm("确定删除此工具吗?", "提示", {
  8790. confirmButtonText: "确定",
  8791. cancelButtonText: "取消",
  8792. type: "warning",
  8793. })
  8794. .then(() => {
  8795. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8796. itemTaskIndex
  8797. ].toolChoose.splice(i, 1);
  8798. _this.$message.success("删除成功");
  8799. })
  8800. .catch(() => {
  8801. return;
  8802. });
  8803. }
  8804. },
  8805. deleteSentence(i) {
  8806. var _this = this;
  8807. _this
  8808. .$confirm("确定删除此题目吗?", "提示", {
  8809. confirmButtonText: "确定",
  8810. cancelButtonText: "取消",
  8811. type: "warning",
  8812. })
  8813. .then(() => {
  8814. _this.sentenceList.splice(i, 1);
  8815. _this.$message.success("删除成功");
  8816. })
  8817. .catch(() => {
  8818. return;
  8819. });
  8820. },
  8821. deleteS(s, i, j) {
  8822. this.sentenceList[i].addSentence.splice(j, 1);
  8823. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8824. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8825. this.sentenceList[i].rightAnswer.splice(a, 1);
  8826. }
  8827. },
  8828. openT() {
  8829. window.topU.postMessage({ tools: "25" }, "*");
  8830. },
  8831. deleteTask(i) {
  8832. var _this = this;
  8833. if (_this.time()) {
  8834. _this
  8835. .$confirm(
  8836. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8837. 1 ==
  8838. i
  8839. ? "确定删除此任务吗?"
  8840. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8841. "提示",
  8842. {
  8843. confirmButtonText: "确定",
  8844. cancelButtonText: "取消",
  8845. type: "warning",
  8846. }
  8847. )
  8848. .then(() => {
  8849. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8850. i,
  8851. 1
  8852. );
  8853. _this.$message.success("删除成功");
  8854. })
  8855. .catch(() => {
  8856. return;
  8857. });
  8858. }
  8859. },
  8860. handlePictureCardPreview(file) {
  8861. this.dialogImageUrl = file.url;
  8862. },
  8863. clean(i, c) {
  8864. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8865. },
  8866. handle_remove1(file, fileList, type) {
  8867. var _tmp = this.cover;
  8868. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8869. // if (_tmp[i].uid == file.uid) {
  8870. // _tmp.splice(i, 1);
  8871. // break;
  8872. // }
  8873. // this.cover = _tmp;
  8874. // }
  8875. this.cover = [];
  8876. this.noneBtnImg = this.cover.length >= 1;
  8877. this.isSysPic = false;
  8878. this.isSysPic2 = false;
  8879. this.$forceUpdate();
  8880. },
  8881. addImg(e) {
  8882. var el = e.currentTarget;
  8883. el.getElementsByTagName("input")[0].click();
  8884. e.target.value = "";
  8885. },
  8886. addChaptersTools(i) {
  8887. this.chapTools = [
  8888. {
  8889. tools: [],
  8890. toolDetail: "",
  8891. },
  8892. ];
  8893. this.chapCount = i;
  8894. this.dialogVisible4 = true;
  8895. },
  8896. isNoFinsh() {
  8897. this.$message.warning("功能正在开发中");
  8898. },
  8899. addAttText(i) {
  8900. this.AttText = {
  8901. title: "",
  8902. text: "",
  8903. };
  8904. this.taskCount = i;
  8905. this.AttTextType = 0;
  8906. this.$forceUpdate();
  8907. this.dialogVisible6 = true;
  8908. setTimeout(() => {
  8909. this.$refs["fuInput"].focus();
  8910. }, 100);
  8911. },
  8912. openLine(i) {
  8913. this.line = "";
  8914. this.lineCount = i;
  8915. this.lineType = 0;
  8916. this.$forceUpdate();
  8917. this.dialogVisible7 = true;
  8918. },
  8919. pasteLine(i) {
  8920. navigator.clipboard
  8921. .readText()
  8922. .then((v) => {
  8923. console.log("获取剪贴板成功:", v);
  8924. const html = v;
  8925. const regex = /src="(.*?)"/g;
  8926. const match = regex.exec(html);
  8927. if (match && match[1]) {
  8928. console.log(match[1]);
  8929. this.$message.success("粘贴成功");
  8930. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8931. i
  8932. ].chapterData.push({
  8933. name: "链接",
  8934. title: "嵌入代码",
  8935. url: match[1],
  8936. type: 8,
  8937. });
  8938. } else {
  8939. // console.log("未找到包含 src 属性的 iframe");
  8940. this.$message.error(
  8941. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  8942. );
  8943. }
  8944. })
  8945. .catch((v) => {
  8946. console.log("获取剪贴板失败: ", v);
  8947. });
  8948. },
  8949. openSource(i) {
  8950. this.lineCount = i;
  8951. this.sourceData = {};
  8952. this.dialogVisibleSource = true;
  8953. this.updateSourcePan = false;
  8954. },
  8955. addSource() {
  8956. if (!Object.keys(this.sourceData).length) {
  8957. this.$message.error("请选择要上传的资源");
  8958. return;
  8959. }
  8960. let keys = Object.keys(this.sourceData);
  8961. for (var i = 0; i < keys.length; i++) {
  8962. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8963. this.lineCount
  8964. ].chapterData.push({
  8965. name: "链接",
  8966. title: this.sourceData[keys[i]].name,
  8967. url: this.sourceData[keys[i]].url,
  8968. type: 14,
  8969. id: keys[i],
  8970. });
  8971. }
  8972. this.$forceUpdate();
  8973. this.dialogVisibleSource = false;
  8974. },
  8975. updateSource() {
  8976. if (!Object.keys(this.sourceData).length) {
  8977. this.$message.error("请选择要上传的资源");
  8978. return;
  8979. }
  8980. let keys = Object.keys(this.sourceData);
  8981. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8982. this.taskCount
  8983. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  8984. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8985. this.taskCount
  8986. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  8987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8988. this.taskCount
  8989. ].chapterData[this.lineCount].id = keys[0];
  8990. this.updateSourcePan = false;
  8991. this.$forceUpdate();
  8992. this.dialogVisibleSource = false;
  8993. },
  8994. deleteM(i, j) {
  8995. this.testJson.testJson[i].timuList.splice(j, 1);
  8996. },
  8997. beforeUploadTiMu(event, i) {
  8998. const loading = this.openLoading();
  8999. var file = event.target.files[0];
  9000. var credentials = {
  9001. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9002. secretAccessKey: "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",
  9003. }; //秘钥形式的登录上传
  9004. window.AWS.config.update(credentials);
  9005. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9006. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9007. var _this = this;
  9008. if (file) {
  9009. var params = {
  9010. Key:
  9011. file.name.split(".")[0] +
  9012. new Date().getTime() +
  9013. "." +
  9014. file.name.split(".")[file.name.split(".").length - 1],
  9015. ContentType: file.type,
  9016. Body: file,
  9017. "Access-Control-Allow-Credentials": "*",
  9018. ACL: "public-read",
  9019. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9020. var options = {
  9021. partSize: 2048 * 1024 * 1024,
  9022. queueSize: 2,
  9023. leavePartsOnError: true,
  9024. };
  9025. bucket
  9026. .upload(params, options)
  9027. .on("httpUploadProgress", function (evt) {
  9028. //这里可以写进度条
  9029. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9030. })
  9031. .send(function (err, data) {
  9032. loading.close();
  9033. if (err) {
  9034. _this.$message.error("上传失败");
  9035. } else {
  9036. if (_this.testJson.testJson[i].timuList) {
  9037. _this.testJson.testJson[i].timuList.push({
  9038. src: data.Location,
  9039. });
  9040. } else {
  9041. _this.testJson.testJson[i].timuList = [];
  9042. _this.testJson.testJson[i].timuList.push({
  9043. src: data.Location,
  9044. });
  9045. }
  9046. _this.imgChange3(i);
  9047. _this.$forceUpdate();
  9048. }
  9049. });
  9050. }
  9051. },
  9052. beforeUploadTi(event, i, j) {
  9053. const loading = this.openLoading();
  9054. var file = event.target.files[0];
  9055. var credentials = {
  9056. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9057. secretAccessKey: "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",
  9058. }; //秘钥形式的登录上传
  9059. window.AWS.config.update(credentials);
  9060. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9061. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9062. var _this = this;
  9063. if (file) {
  9064. var params = {
  9065. Key:
  9066. file.name.split(".")[0] +
  9067. new Date().getTime() +
  9068. "." +
  9069. file.name.split(".")[file.name.split(".").length - 1],
  9070. ContentType: file.type,
  9071. Body: file,
  9072. "Access-Control-Allow-Credentials": "*",
  9073. ACL: "public-read",
  9074. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9075. var options = {
  9076. partSize: 2048 * 1024 * 1024,
  9077. queueSize: 2,
  9078. leavePartsOnError: true,
  9079. };
  9080. bucket
  9081. .upload(params, options)
  9082. .on("httpUploadProgress", function (evt) {
  9083. //这里可以写进度条
  9084. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9085. })
  9086. .send(function (err, data) {
  9087. loading.close();
  9088. if (err) {
  9089. _this.$message.error("上传失败");
  9090. } else {
  9091. _this.testJson.testJson[i].checkList[j] = {};
  9092. _this.testJson.testJson[i].checkList[j].src = data.Location;
  9093. _this.testJson.testJson[i].checkList[j].imgType = 1;
  9094. _this.imgChange2(i, j);
  9095. _this.$forceUpdate();
  9096. }
  9097. });
  9098. }
  9099. },
  9100. beforeUpload1(event, type) {
  9101. // const loading = this.openLoading();
  9102. var file = event.target.files[0];
  9103. var credentials = {
  9104. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9105. secretAccessKey: "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",
  9106. }; //秘钥形式的登录上传
  9107. window.AWS.config.update(credentials);
  9108. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9109. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9110. var _this = this;
  9111. if (file) {
  9112. var params = {
  9113. Key:
  9114. file.name.split(".")[0] +
  9115. new Date().getTime() +
  9116. "." +
  9117. file.name.split(".")[file.name.split(".").length - 1],
  9118. ContentType: file.type,
  9119. Body: file,
  9120. "Access-Control-Allow-Credentials": "*",
  9121. ACL: "public-read",
  9122. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9123. var options = {
  9124. partSize: 2048 * 1024 * 1024,
  9125. queueSize: 2,
  9126. leavePartsOnError: true,
  9127. };
  9128. bucket
  9129. .upload(params, options)
  9130. .on("httpUploadProgress", function (evt) {
  9131. //这里可以写进度条
  9132. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9133. })
  9134. .send(function (err, data) {
  9135. // loading.close();
  9136. if (err) {
  9137. // var a = _this.$refs.upload1.uploadFiles;
  9138. // a.splice(a.length - 1, a.length);
  9139. _this.$message.error("上传失败");
  9140. } else {
  9141. // _this.cover.push({
  9142. // name: file.name,
  9143. // url: data.Location,
  9144. // uid: file.uid,
  9145. // });
  9146. _this.cover = [
  9147. {
  9148. name: file.name,
  9149. url: data.Location,
  9150. uid: file.uid,
  9151. },
  9152. ];
  9153. _this.imgChange1(null, null, 1, null);
  9154. _this.choosePicVisible = false;
  9155. console.log(data.Location);
  9156. }
  9157. });
  9158. }
  9159. },
  9160. beforeUploadSelect(event, type) {
  9161. // const loading = this.openLoading();
  9162. var file = event.target.files[0];
  9163. var credentials = {
  9164. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9165. secretAccessKey: "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",
  9166. }; //秘钥形式的登录上传
  9167. window.AWS.config.update(credentials);
  9168. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9169. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9170. var _this = this;
  9171. if (file) {
  9172. var params = {
  9173. Key:
  9174. file.name.split(".")[0] +
  9175. new Date().getTime() +
  9176. "." +
  9177. file.name.split(".")[file.name.split(".").length - 1],
  9178. ContentType: file.type,
  9179. Body: file,
  9180. "Access-Control-Allow-Credentials": "*",
  9181. ACL: "public-read",
  9182. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9183. var options = {
  9184. partSize: 2048 * 1024 * 1024,
  9185. queueSize: 2,
  9186. leavePartsOnError: true,
  9187. };
  9188. bucket
  9189. .upload(params, options)
  9190. .on("httpUploadProgress", function (evt) {
  9191. //这里可以写进度条
  9192. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9193. })
  9194. .send(function (err, data) {
  9195. // loading.close();
  9196. if (err) {
  9197. _this.$message.error("上传失败");
  9198. } else {
  9199. _this.selectJson.url = data.Location;
  9200. console.log(data.Location);
  9201. }
  9202. });
  9203. }
  9204. },
  9205. chooseSysPic(p) {
  9206. this.cover = [];
  9207. setTimeout(() => {
  9208. this.cover[0] = {
  9209. name: "系统图片.png",
  9210. url: p,
  9211. };
  9212. this.imgChange1(null, null, 1, null);
  9213. this.$forceUpdate();
  9214. }, 0);
  9215. this.isSysPic = true;
  9216. this.isSysPic2 = false;
  9217. this.sysPicVisible = false;
  9218. this.$forceUpdate();
  9219. },
  9220. chooseSysPic2(p) {
  9221. this.cover = [];
  9222. setTimeout(() => {
  9223. this.cover[0] = {
  9224. name: "网络图片.png",
  9225. url: p,
  9226. };
  9227. this.imgChange1(null, null, 1, null);
  9228. this.$forceUpdate();
  9229. }, 0);
  9230. this.isSysPic2 = true;
  9231. this.isSysPic = false;
  9232. this.sysPicVisible2 = false;
  9233. this.$forceUpdate();
  9234. },
  9235. beforeUpload(data) {
  9236. this.$refs.upload1.uploadFiles;
  9237. this.uploadLoading1 = true;
  9238. var file = data.file;
  9239. var credentials = {
  9240. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9241. secretAccessKey: "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",
  9242. }; //秘钥形式的登录上传
  9243. window.AWS.config.update(credentials);
  9244. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9245. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9246. var _this = this;
  9247. if (file) {
  9248. var params = {
  9249. Key:
  9250. file.name.split(".")[0] +
  9251. new Date().getTime() +
  9252. "." +
  9253. file.name.split(".")[file.name.split(".").length - 1],
  9254. ContentType: file.type,
  9255. Body: file,
  9256. "Access-Control-Allow-Credentials": "*",
  9257. ACL: "public-read",
  9258. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9259. var options = {
  9260. partSize: 2048 * 1024 * 1024,
  9261. queueSize: 2,
  9262. leavePartsOnError: true,
  9263. };
  9264. bucket
  9265. .upload(params, options)
  9266. .on("httpUploadProgress", function (evt) {
  9267. //这里可以写进度条
  9268. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9269. })
  9270. .send(function (err, data) {
  9271. _this.uploadLoading1 = false;
  9272. if (err) {
  9273. // var a = _this.$refs.upload1.uploadFiles;
  9274. // a.splice(a.length - 1, a.length);
  9275. _this.$message.error("上传失败");
  9276. } else {
  9277. //上传成功处理
  9278. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9279. name: file.name,
  9280. url: data.Location,
  9281. uid: file.uid,
  9282. });
  9283. _this.imgChange();
  9284. console.log(data.Location);
  9285. }
  9286. });
  9287. }
  9288. },
  9289. onExceed() {
  9290. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9291. },
  9292. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9293. // const loading = this.openLoading();
  9294. var file = event.target.files[0];
  9295. var credentials = {
  9296. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9297. secretAccessKey: "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",
  9298. }; //秘钥形式的登录上传
  9299. window.AWS.config.update(credentials);
  9300. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9301. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9302. var _this = this;
  9303. if (type == 3) {
  9304. var b = [
  9305. "DOC",
  9306. "DOCX",
  9307. "DOCM",
  9308. "DOTM",
  9309. "DOTX",
  9310. "PPTX",
  9311. "PPSX",
  9312. "PPT",
  9313. "PPS",
  9314. "PPTM",
  9315. "POTM",
  9316. "PPAM",
  9317. "POTX",
  9318. "PPSM",
  9319. ];
  9320. if (
  9321. b.indexOf(
  9322. file.name
  9323. .split(".")
  9324. [file.name.split(".").length - 1].toLocaleUpperCase()
  9325. ) != -1
  9326. ) {
  9327. if (file.size / 1024 / 1024 > 80) {
  9328. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9329. this.inputShow = true;
  9330. // var a = _this.$refs.upload1.uploadFiles;
  9331. // a.splice(a.length - 1, a.length);
  9332. // loading.close();
  9333. return;
  9334. }
  9335. } else if (
  9336. file.name
  9337. .split(".")
  9338. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9339. ) {
  9340. if (file.size / 1024 / 1024 > 80) {
  9341. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9342. this.inputShow = true;
  9343. // var a = _this.$refs.upload1.uploadFiles;
  9344. // a.splice(a.length - 1, a.length);
  9345. // loading.close();
  9346. return;
  9347. }
  9348. }
  9349. }
  9350. this.inputShow = false;
  9351. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9352. itemTaskIndex
  9353. ].progress = 0;
  9354. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9355. itemTaskIndex
  9356. ].proVisible = true;
  9357. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9358. itemTaskIndex
  9359. ].isFinishSize = 0;
  9360. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9361. itemTaskIndex
  9362. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9363. _this.$forceUpdate();
  9364. if (file) {
  9365. var params = {
  9366. Key:
  9367. file.name.split(".")[0] +
  9368. new Date().getTime() +
  9369. "." +
  9370. file.name.split(".")[file.name.split(".").length - 1],
  9371. ContentType: file.type,
  9372. Body: file,
  9373. "Access-Control-Allow-Credentials": "*",
  9374. ACL: "public-read",
  9375. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9376. var options = {
  9377. partSize: 2048 * 1024 * 1024,
  9378. queueSize: 2,
  9379. leavePartsOnError: true,
  9380. };
  9381. bucket
  9382. .upload(params, options)
  9383. .on("httpUploadProgress", function (evt) {
  9384. //这里可以写进度条
  9385. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9386. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9387. itemTaskIndex
  9388. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9389. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9390. itemTaskIndex
  9391. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9392. _this.$forceUpdate();
  9393. })
  9394. .send(function (err, data) {
  9395. // loading.close();
  9396. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9397. itemTaskIndex
  9398. ].progress = 100;
  9399. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9400. itemTaskIndex
  9401. ].isFinishSize =
  9402. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9403. itemTaskIndex
  9404. ].isAllSize;
  9405. _this.$forceUpdate();
  9406. setTimeout(() => {
  9407. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9408. itemTaskIndex
  9409. ].proVisible = false;
  9410. _this.$forceUpdate();
  9411. }, 1000);
  9412. _this.inputShow = true;
  9413. if (err) {
  9414. // var a = _this.$refs.upload1.uploadFiles;
  9415. // a.splice(a.length - 1, a.length);
  9416. _this.$message.error("上传失败");
  9417. } else {
  9418. if (type == 13) {
  9419. let _type = 2;
  9420. var imgA = [
  9421. "png",
  9422. "jpg",
  9423. "jpeg",
  9424. "bmp",
  9425. "gif",
  9426. "webp",
  9427. "psd",
  9428. "svg",
  9429. "tiff",
  9430. ];
  9431. var fileA = [
  9432. "PDF",
  9433. "DOC",
  9434. "DOCX",
  9435. "DOCM",
  9436. "DOTM",
  9437. "DOTX",
  9438. "PPTX",
  9439. "PPSX",
  9440. "PPT",
  9441. "PPS",
  9442. "PPTM",
  9443. "POTM",
  9444. "PPAM",
  9445. "POTX",
  9446. "PPSM",
  9447. "XLSX",
  9448. "XLS",
  9449. ];
  9450. var videoA = [
  9451. "AVI",
  9452. "NAVI",
  9453. "MPEG",
  9454. "ASF",
  9455. "MOV",
  9456. "WMV",
  9457. "3GP",
  9458. "RM",
  9459. "RMVB",
  9460. "FLV",
  9461. "F4V",
  9462. "H.264",
  9463. "H.265",
  9464. "REAL VIDEO",
  9465. "MKV",
  9466. "WebM",
  9467. "HDDVD",
  9468. "MP4",
  9469. "MPG",
  9470. "M4V",
  9471. "MGV",
  9472. "OGV",
  9473. "QTM",
  9474. "STR",
  9475. "AMC",
  9476. "DVX",
  9477. "EVO",
  9478. "DAT",
  9479. "OGG",
  9480. "OGM",
  9481. ];
  9482. if (
  9483. fileA.indexOf(
  9484. data.Location.split(".")[
  9485. data.Location.split(".").length - 1
  9486. ].toLocaleUpperCase()
  9487. ) != -1
  9488. ) {
  9489. _type = 3;
  9490. } else if (
  9491. videoA.indexOf(
  9492. data.Location.split(".")[
  9493. data.Location.split(".").length - 1
  9494. ].toLocaleUpperCase()
  9495. ) != -1
  9496. ) {
  9497. _type = 2;
  9498. } else if (
  9499. imgA.indexOf(
  9500. data.Location.split(".")[
  9501. data.Location.split(".").length - 1
  9502. ].toLocaleLowerCase()
  9503. ) != -1
  9504. ) {
  9505. _type = 13;
  9506. } else {
  9507. _type = 12;
  9508. }
  9509. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9510. itemTaskIndex
  9511. ].chapterData.push({
  9512. name: file.name,
  9513. url: data.Location,
  9514. uid: file.uid,
  9515. type: _type,
  9516. });
  9517. _this.imgChange1(null, null, _type, itemTaskIndex);
  9518. } else if (type == 2 || type == 3 || type == 12) {
  9519. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9520. itemTaskIndex
  9521. ].chapterData.push({
  9522. name: file.name,
  9523. url: data.Location,
  9524. uid: file.uid,
  9525. type: type,
  9526. });
  9527. _this.imgChange1(null, null, type, itemTaskIndex);
  9528. } else if (type == 4) {
  9529. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9530. itemTaskIndex
  9531. ].fileList1.push({
  9532. name: file.name,
  9533. url: data.Location,
  9534. uid: file.uid,
  9535. });
  9536. _this.imgChange1(null, null, type, itemTaskIndex);
  9537. } else if (type == 5) {
  9538. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9539. itemTaskIndex
  9540. ].homeworkList.push({
  9541. name: file.name,
  9542. url: data.Location,
  9543. uid: file.uid,
  9544. });
  9545. _this.imgChange1(null, null, type, itemTaskIndex);
  9546. }
  9547. console.log(data.Location);
  9548. }
  9549. });
  9550. }
  9551. },
  9552. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9553. // const loading = this.openLoading();
  9554. var file = event.target.files[0];
  9555. var credentials = {
  9556. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9557. secretAccessKey: "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",
  9558. }; //秘钥形式的登录上传
  9559. window.AWS.config.update(credentials);
  9560. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9561. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9562. var _this = this;
  9563. if (type == 3) {
  9564. var b = [
  9565. "DOC",
  9566. "DOCX",
  9567. "DOCM",
  9568. "DOTM",
  9569. "DOTX",
  9570. "PPTX",
  9571. "PPSX",
  9572. "PPT",
  9573. "PPS",
  9574. "PPTM",
  9575. "POTM",
  9576. "PPAM",
  9577. "POTX",
  9578. "PPSM",
  9579. ];
  9580. if (
  9581. b.indexOf(
  9582. file.name
  9583. .split(".")
  9584. [file.name.split(".").length - 1].toLocaleUpperCase()
  9585. ) != -1
  9586. ) {
  9587. if (file.size / 1024 / 1024 > 80) {
  9588. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9589. this.inputShow = true;
  9590. // var a = _this.$refs.upload1.uploadFiles;
  9591. // a.splice(a.length - 1, a.length);
  9592. // loading.close();
  9593. return;
  9594. }
  9595. } else if (
  9596. file.name
  9597. .split(".")
  9598. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9599. ) {
  9600. if (file.size / 1024 / 1024 > 80) {
  9601. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9602. this.inputShow = true;
  9603. // var a = _this.$refs.upload1.uploadFiles;
  9604. // a.splice(a.length - 1, a.length);
  9605. // loading.close();
  9606. return;
  9607. }
  9608. }
  9609. }
  9610. this.inputShow = false;
  9611. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9612. itemTaskIndex
  9613. ].progress = 0;
  9614. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9615. itemTaskIndex
  9616. ].proVisible = true;
  9617. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9618. itemTaskIndex
  9619. ].isFinishSize = 0;
  9620. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9621. itemTaskIndex
  9622. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9623. _this.$forceUpdate();
  9624. if (file) {
  9625. var params = {
  9626. Key:
  9627. file.name.split(".")[0] +
  9628. new Date().getTime() +
  9629. "." +
  9630. file.name.split(".")[file.name.split(".").length - 1],
  9631. ContentType: file.type,
  9632. Body: file,
  9633. "Access-Control-Allow-Credentials": "*",
  9634. ACL: "public-read",
  9635. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9636. var options = {
  9637. partSize: 2048 * 1024 * 1024,
  9638. queueSize: 2,
  9639. leavePartsOnError: true,
  9640. };
  9641. bucket
  9642. .upload(params, options)
  9643. .on("httpUploadProgress", function (evt) {
  9644. //这里可以写进度条
  9645. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9646. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9647. itemTaskIndex
  9648. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9649. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9650. itemTaskIndex
  9651. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9652. _this.$forceUpdate();
  9653. })
  9654. .send(function (err, data) {
  9655. // loading.close();
  9656. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9657. itemTaskIndex
  9658. ].progress = 100;
  9659. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9660. itemTaskIndex
  9661. ].isFinishSize =
  9662. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9663. itemTaskIndex
  9664. ].isAllSize;
  9665. _this.$forceUpdate();
  9666. setTimeout(() => {
  9667. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9668. itemTaskIndex
  9669. ].proVisible = false;
  9670. _this.$forceUpdate();
  9671. }, 1000);
  9672. _this.inputShow = true;
  9673. if (err) {
  9674. // var a = _this.$refs.upload1.uploadFiles;
  9675. // a.splice(a.length - 1, a.length);
  9676. _this.$message.error("上传失败");
  9677. } else {
  9678. if (type == 2 || type == 3) {
  9679. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9680. itemTaskIndex
  9681. ].chapterData.push({
  9682. name: file.name,
  9683. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9684. // itemTaskIndex
  9685. // ].chapterData.length+1),
  9686. url: data.Location,
  9687. uid: file.uid,
  9688. type: type,
  9689. text: string,
  9690. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9691. // itemTaskIndex
  9692. // ].chapterData.length + 1),
  9693. });
  9694. _this.imgChange1(null, null, type, itemTaskIndex);
  9695. } else if (type == 4) {
  9696. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9697. itemTaskIndex
  9698. ].fileList1.push({
  9699. name: file.name,
  9700. url: data.Location,
  9701. uid: file.uid,
  9702. });
  9703. _this.imgChange1(null, null, type, itemTaskIndex);
  9704. } else if (type == 5) {
  9705. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9706. itemTaskIndex
  9707. ].homeworkList.push({
  9708. name: file.name,
  9709. url: data.Location,
  9710. uid: file.uid,
  9711. });
  9712. _this.imgChange1(null, null, type, itemTaskIndex);
  9713. }
  9714. console.log(data.Location);
  9715. }
  9716. });
  9717. }
  9718. },
  9719. addunit() {
  9720. this.unitJson.push({
  9721. dyName: "", //单元标题
  9722. isUpdate: 1,
  9723. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9724. chapterInfo: [
  9725. {
  9726. isread: false,
  9727. chapterid: this.guid(),
  9728. title: "",
  9729. courseName: "",
  9730. taskJson: [
  9731. {
  9732. task: "",
  9733. taskDetail: "",
  9734. chapterData: [],
  9735. toolText: "",
  9736. toolChoose: [
  9737. {
  9738. tool: [],
  9739. toolDetail: "",
  9740. toolType: 0,
  9741. askCount: 1,
  9742. askTitle: "",
  9743. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9744. },
  9745. ],
  9746. isShowTools: false,
  9747. askCount: 1,
  9748. isFold: 1,
  9749. askTitle: "",
  9750. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9751. checkJson: [{ checkCount: [], checkPerent: [] }],
  9752. homeworkList: [],
  9753. },
  9754. ],
  9755. itemCount: 1,
  9756. fileList1: [],
  9757. video: [],
  9758. testData: [],
  9759. pData: [],
  9760. templateArray: [],
  9761. },
  9762. ],
  9763. });
  9764. this.addindex = this.unitJson.length - 1;
  9765. setTimeout(() => {
  9766. this.unitIndex = this.unitJson.length - 1;
  9767. setTimeout(() => {
  9768. console.log(this.$refs.dyInput);
  9769. this.$refs.dyInput[0].focus();
  9770. }, 100);
  9771. this.unitSet(this.unitIndex);
  9772. }, 0);
  9773. },
  9774. addToolFun(itemTaskIndex) {
  9775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9776. itemTaskIndex
  9777. ].toolChoose.push({
  9778. tool: [],
  9779. toolDetail: "",
  9780. toolType: 0,
  9781. askCount: 1,
  9782. askTitle: "",
  9783. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9784. });
  9785. },
  9786. addTaskBorder() {
  9787. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9788. task: "",
  9789. taskDetail: "",
  9790. chapterData: [],
  9791. toolText: "",
  9792. toolChoose: [
  9793. {
  9794. tool: [],
  9795. toolDetail: "",
  9796. toolType: 0,
  9797. askCount: 1,
  9798. askTitle: "",
  9799. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9800. },
  9801. ],
  9802. isShowTools: false,
  9803. askCount: 1,
  9804. isFold: 1, //任务收起状态
  9805. askTitle: "",
  9806. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9807. checkJson: [{ checkCount: [], checkPerent: [] }],
  9808. homeworkList: [],
  9809. });
  9810. setTimeout(() => {
  9811. this.checkEva(this.checkId);
  9812. setTimeout(() => {
  9813. this.checkEva(this.checkId);
  9814. }, 100);
  9815. }, 100);
  9816. },
  9817. add(e, i) {
  9818. var el = e.currentTarget;
  9819. el.getElementsByTagName("input")[0].click();
  9820. },
  9821. fold(i, e) {
  9822. if (
  9823. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9824. ) {
  9825. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9826. } else {
  9827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9828. }
  9829. },
  9830. fold2(i) {
  9831. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9833. i
  9834. ].isFold2 = false;
  9835. } else {
  9836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9837. }
  9838. this.$forceUpdate();
  9839. },
  9840. foldEva(i) {
  9841. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9843. i
  9844. ].isEvaFold = false;
  9845. } else {
  9846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9847. i
  9848. ].isEvaFold = true;
  9849. setTimeout(() => {
  9850. this.checkEva(this.checkId);
  9851. setTimeout(() => {
  9852. this.checkEva(this.checkId);
  9853. }, 500);
  9854. }, 0);
  9855. }
  9856. this.$forceUpdate();
  9857. },
  9858. foldC(i) {
  9859. if (
  9860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9861. ) {
  9862. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9863. i
  9864. ].isFoldchapter = false;
  9865. } else {
  9866. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9867. i
  9868. ].isFoldchapter = true;
  9869. }
  9870. this.$forceUpdate();
  9871. },
  9872. fold3(i, ti) {
  9873. if (
  9874. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9875. .isFold3
  9876. ) {
  9877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9878. ti
  9879. ].isFold3 = false;
  9880. } else {
  9881. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9882. ti
  9883. ].isFold3 = true;
  9884. }
  9885. this.$forceUpdate();
  9886. },
  9887. deleteHomeworkBox(unitIndex, index, i) {
  9888. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9889. this.taskCount
  9890. ].homeworkList.splice(i, 1);
  9891. },
  9892. getStudent() {
  9893. let params = {
  9894. oid: this.oid,
  9895. cu: "",
  9896. cn: this.searchPeople,
  9897. };
  9898. this.ajax
  9899. .get(this.$store.state.api + "selectStudentAdd", params)
  9900. .then((res) => {
  9901. this.studentJuri = res.data[0];
  9902. })
  9903. .catch((err) => {
  9904. this.isLoading = false;
  9905. console.error(err);
  9906. });
  9907. },
  9908. // 添加协同成员其他选项按钮
  9909. getTeacherCopy(){
  9910. this.CollLoading=true
  9911. this.collid = ''
  9912. this.collid = '1xpz'
  9913. let params = {
  9914. oid:
  9915. this.org && this.org != "undefined" && this.org != "null"
  9916. ? this.org
  9917. : this.oid,
  9918. cu: "",
  9919. cn: this.searchTN,
  9920. coll: ''
  9921. };
  9922. this.ajax
  9923. .get(
  9924. this.$store.state.api +
  9925. (this.org && this.org != "undefined" && this.org != "null"
  9926. ? "selectCollaborativeMembersOrg"
  9927. : "selectCollaborativeMembers"),
  9928. params
  9929. )
  9930. .then((res) => {
  9931. let teacherJuri = res.data[0];
  9932. this.CollaborativeTeaList = res.data[1];
  9933. for (var i = 0; i < teacherJuri.length; i++) {
  9934. if (teacherJuri[i].userid == this.userid) {
  9935. teacherJuri.splice(i, 1);
  9936. break;
  9937. }
  9938. }
  9939. this.teacherJuri = teacherJuri.filter((i,index)=>{
  9940. return (i.cclassid == '' || i.cclassid == null)
  9941. })
  9942. console.log(' this.teacherJuri', this.teacherJuri);
  9943. let _check = [];
  9944. let _check2 = [];
  9945. for (var i = 0; i < this.teacherJuri.length; i++) {
  9946. var gid = this.teacherJuri[i].userid;
  9947. _check.push(gid);
  9948. }
  9949. for (var i = 0; i < this.checkboxList3.length; i++) {
  9950. var _id = this.checkboxList3[i];
  9951. if (_check.indexOf(_id) !== -1) {
  9952. _check2.push(_id);
  9953. }
  9954. }
  9955. if (_check2.length==0 && _check.length==0) {
  9956. }else{
  9957. this.checkAll2 = _check2.length === _check.length;
  9958. }
  9959. this.CollLoading=false
  9960. })
  9961. .catch((err) => {
  9962. console.error(err);
  9963. this.CollLoading=false
  9964. });
  9965. },
  9966. getTeacher(val) {
  9967. this.CollLoading=true
  9968. this.collid = ''
  9969. this.collid = !val ? '' : val
  9970. let params = {
  9971. oid:
  9972. this.org && this.org != "undefined" && this.org != "null"
  9973. ? this.org
  9974. : this.oid,
  9975. cu: "",
  9976. cn: this.searchTN,
  9977. coll: this.collid
  9978. };
  9979. this.ajax
  9980. .get(
  9981. this.$store.state.api +
  9982. (this.org && this.org != "undefined" && this.org != "null"
  9983. ? "selectCollaborativeMembersOrg"
  9984. : "selectCollaborativeMembers"),
  9985. params
  9986. )
  9987. .then((res) => {
  9988. let teacherJuri = res.data[0];
  9989. this.CollaborativeTeaList = res.data[1];
  9990. for (var i = 0; i < teacherJuri.length; i++) {
  9991. if (teacherJuri[i].userid == this.userid) {
  9992. teacherJuri.splice(i, 1);
  9993. break;
  9994. }
  9995. }
  9996. this.teacherJuri = teacherJuri;
  9997. let _check = [];
  9998. let _check2 = [];
  9999. for (var i = 0; i < this.teacherJuri.length; i++) {
  10000. var gid = this.teacherJuri[i].userid;
  10001. _check.push(gid);
  10002. }
  10003. for (var i = 0; i < this.checkboxList3.length; i++) {
  10004. var _id = this.checkboxList3[i];
  10005. if (_check.indexOf(_id) !== -1) {
  10006. _check2.push(_id);
  10007. }
  10008. }
  10009. if (_check2.length==0 && _check.length==0) {
  10010. }else{
  10011. this.checkAll2 = _check2.length === _check.length;
  10012. }
  10013. this.CollLoading=false
  10014. })
  10015. .catch((err) => {
  10016. console.error(err);
  10017. this.CollLoading=false
  10018. });
  10019. },
  10020. searchStudent() {
  10021. this.getStudent();
  10022. },
  10023. selectGrage() {
  10024. let params = {
  10025. oid: this.oid,
  10026. };
  10027. this.ajax
  10028. .get(this.$store.state.api + "selectGrageBySchool", params)
  10029. .then((res) => {
  10030. this.gradeList = res.data[0];
  10031. })
  10032. .catch((err) => {
  10033. this.isLoading = false;
  10034. console.error(err);
  10035. });
  10036. },
  10037. //获取班级列表
  10038. getClass() {
  10039. let params = {
  10040. oid: this.oid,
  10041. gid: this.gradeId,
  10042. cn: this.classSearch,
  10043. };
  10044. this.ajax
  10045. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  10046. .then((res) => {
  10047. if (!this.grade.length) {
  10048. this.grade = res.data[0];
  10049. }
  10050. this.grade2 = res.data[0];
  10051. this.classJuri = res.data[0];
  10052. let _check = [];
  10053. let _check2 = [];
  10054. for (var i = 0; i < this.grade2.length; i++) {
  10055. var gid = this.grade2[i].id;
  10056. _check.push(gid);
  10057. }
  10058. for (var i = 0; i < this.checkboxList2.length; i++) {
  10059. var _id = this.checkboxList2[i];
  10060. if (_check.indexOf(_id) !== -1) {
  10061. _check2.push(_id);
  10062. }
  10063. }
  10064. this.checkAll = _check2.length === _check.length;
  10065. })
  10066. .catch((err) => {
  10067. this.isLoading = false;
  10068. console.error(err);
  10069. });
  10070. },
  10071. CourseType2Change(val) {
  10072. this.pTypeCheck = [];
  10073. for (var i = 0; i < this.CourseType2.length; i++) {
  10074. let typeA = this.CourseType2[i];
  10075. if (val.indexOf(typeA.name) != -1) {
  10076. this.pTypeCheck.push(...typeA.id);
  10077. }
  10078. }
  10079. },
  10080. getChapterData(e, i, j, ic, type) {
  10081. e.stopPropagation();
  10082. this.updataC = true;
  10083. this.icc = ic;
  10084. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  10085. console.log("还不能下载图片喔");
  10086. }
  10087. },
  10088. deleteChapterData(e, i, j, ic, taskI) {
  10089. e.stopPropagation();
  10090. let _this = this;
  10091. _this
  10092. .$confirm("确定删除此项?", "提示", {
  10093. confirmButtonText: "确定",
  10094. cancelButtonText: "取消",
  10095. type: "warning",
  10096. })
  10097. .then(() => {
  10098. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  10099. ic,
  10100. 1
  10101. );
  10102. })
  10103. .catch(() => {
  10104. return;
  10105. });
  10106. },
  10107. updataVideoT(e, i, j, ic) {
  10108. // e.stopPropagation();
  10109. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  10110. // ic
  10111. // ].name = JSON.parse(JSON.stringify(e.target.value));
  10112. this.line =
  10113. this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[ic].name;
  10114. this.taskCount = j;
  10115. this.lineCount = ic;
  10116. this.dialogVisibleupdataVideoT = true;
  10117. this.$forceUpdate();
  10118. },
  10119. updataVideoC() {
  10120. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10121. this.taskCount
  10122. ].chapterData[this.lineCount].name = JSON.parse(
  10123. JSON.stringify(this.line)
  10124. );
  10125. this.dialogVisibleupdataVideoT = false;
  10126. this.$forceUpdate();
  10127. },
  10128. upCd(e, i, j, taskCount, ic) {
  10129. e.stopPropagation();
  10130. if (ic == 0) {
  10131. return;
  10132. }
  10133. var a = JSON.parse(
  10134. JSON.stringify(
  10135. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10136. ic - 1
  10137. ]
  10138. )
  10139. );
  10140. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  10141. JSON.parse(
  10142. JSON.stringify(
  10143. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10144. )
  10145. );
  10146. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10147. this.$forceUpdate();
  10148. },
  10149. downCd(e, i, j, taskCount, ic) {
  10150. e.stopPropagation();
  10151. if (
  10152. ic ==
  10153. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  10154. 1
  10155. ) {
  10156. return;
  10157. }
  10158. var a = JSON.parse(
  10159. JSON.stringify(
  10160. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  10161. ic + 1
  10162. ]
  10163. )
  10164. );
  10165. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  10166. JSON.parse(
  10167. JSON.stringify(
  10168. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  10169. )
  10170. );
  10171. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  10172. this.$forceUpdate();
  10173. },
  10174. async upTool(e, i, j, tooli) {
  10175. e.stopPropagation();
  10176. if (tooli == 0) {
  10177. return;
  10178. }
  10179. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  10180. let count2 = await this.getWorksCount(3, i, j, tooli);
  10181. if (count1 > 0 || count2 > 0) {
  10182. this.$confirm(
  10183. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10184. "提示",
  10185. {
  10186. confirmButtonText: "确定",
  10187. cancelButtonText: "取消",
  10188. type: "warning",
  10189. }
  10190. )
  10191. .then(() => {
  10192. var a = JSON.parse(
  10193. JSON.stringify(
  10194. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10195. tooli - 1
  10196. ]
  10197. )
  10198. );
  10199. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10200. JSON.parse(
  10201. JSON.stringify(
  10202. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10203. )
  10204. );
  10205. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10206. this.$forceUpdate();
  10207. })
  10208. .catch(() => {
  10209. return;
  10210. });
  10211. } else {
  10212. var a = JSON.parse(
  10213. JSON.stringify(
  10214. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  10215. )
  10216. );
  10217. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  10218. JSON.parse(
  10219. JSON.stringify(
  10220. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10221. )
  10222. );
  10223. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10224. this.$forceUpdate();
  10225. }
  10226. },
  10227. async downTool(e, i, j, tooli) {
  10228. e.stopPropagation();
  10229. if (
  10230. tooli ==
  10231. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  10232. ) {
  10233. return;
  10234. }
  10235. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  10236. let count2 = await this.getWorksCount(3, i, j, tooli);
  10237. if (count1 > 0 || count2 > 0) {
  10238. this.$confirm(
  10239. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  10240. "提示",
  10241. {
  10242. confirmButtonText: "确定",
  10243. cancelButtonText: "取消",
  10244. type: "warning",
  10245. }
  10246. )
  10247. .then(() => {
  10248. var a = JSON.parse(
  10249. JSON.stringify(
  10250. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10251. tooli + 1
  10252. ]
  10253. )
  10254. );
  10255. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10256. JSON.parse(
  10257. JSON.stringify(
  10258. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10259. )
  10260. );
  10261. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10262. this.$forceUpdate();
  10263. })
  10264. .catch(() => {
  10265. return;
  10266. });
  10267. } else {
  10268. var a = JSON.parse(
  10269. JSON.stringify(
  10270. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10271. )
  10272. );
  10273. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10274. JSON.parse(
  10275. JSON.stringify(
  10276. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10277. )
  10278. );
  10279. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10280. this.$forceUpdate();
  10281. }
  10282. },
  10283. addWork() {
  10284. let cPan = 1;
  10285. for (var i = 0; i < this.unitJson.length; i++) {
  10286. for (
  10287. var j = 0;
  10288. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10289. j++
  10290. ) {
  10291. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10292. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10293. if (
  10294. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10295. ) {
  10296. for (
  10297. var z = 0;
  10298. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10299. z++
  10300. ) {
  10301. if (
  10302. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10303. .length
  10304. ) {
  10305. this.$message.error("请把工具添加完整");
  10306. cPan = 2;
  10307. break;
  10308. }
  10309. }
  10310. }
  10311. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10312. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10313. i
  10314. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10315. return ele.value != "";
  10316. });
  10317. }
  10318. }
  10319. }
  10320. this.inputShow = true;
  10321. if (cPan == 2) {
  10322. this.steps--;
  10323. return;
  10324. }
  10325. for (var i = 0; i < this.unitJson.length; i++) {
  10326. delete this.unitJson[i].isUpdate;
  10327. }
  10328. let params = [
  10329. {
  10330. uid: this.userid,
  10331. title: this.courseName,
  10332. brief: this.courseText,
  10333. cover:
  10334. this.cover.length > 0
  10335. ? JSON.stringify(this.cover)
  10336. : JSON.stringify([
  10337. {
  10338. name: "noBanner.jpg",
  10339. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10340. uid: 1656409780264,
  10341. status: "success",
  10342. },
  10343. ]),
  10344. evaId: this.evalua,
  10345. astudent:
  10346. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10347. see: this.isTeacherSee == true ? 1 : 0,
  10348. chapters: JSON.stringify(this.unitJson),
  10349. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10350. courseType: JSON.stringify(this.courseTypeId),
  10351. ateacher:
  10352. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10353. inviteCode: JSON.stringify(this.inviteCode),
  10354. highSetting: this.highSetting == true ? 1 : 0,
  10355. courseState: this.courseState,
  10356. },
  10357. ];
  10358. this.ajax
  10359. .post(this.$store.state.api + "addWorkNew2New", params)
  10360. .then((res) => {
  10361. console.log(this.steps);
  10362. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10363. this.$message({
  10364. message: "新增成功",
  10365. type: "success",
  10366. });
  10367. }
  10368. this.number = res.data.ordernumber;
  10369. this.courseId = res.data.courseId;
  10370. this.cid = res.data.courseId;
  10371. this.courseUserid = this.userid;
  10372. this.islogin = true;
  10373. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10374. })
  10375. .catch((err) => {
  10376. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10377. this.$message.error("网络不佳");
  10378. console.error(err);
  10379. });
  10380. },
  10381. goCourse() {
  10382. window.topU.postMessage({ cid: this.courseId, type: "1" }, "*");
  10383. },
  10384. updateWork2() {
  10385. let _unitIndex = this.unitIndex;
  10386. let cPan = 1;
  10387. for (
  10388. var j = 0;
  10389. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10390. j++
  10391. ) {
  10392. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10393. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10394. j
  10395. ].proVisible2 = false;
  10396. if (
  10397. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10398. .length > 1
  10399. ) {
  10400. for (
  10401. var z = 0;
  10402. z <
  10403. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10404. .length;
  10405. z++
  10406. ) {
  10407. if (
  10408. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10409. z
  10410. ].tool.length
  10411. ) {
  10412. this.$message.error("请把工具添加完整");
  10413. cPan = 2;
  10414. break;
  10415. }
  10416. }
  10417. }
  10418. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10419. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10420. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10421. (ele) => {
  10422. return ele.value != "";
  10423. }
  10424. );
  10425. }
  10426. }
  10427. this.inputShow = true;
  10428. if (cPan == 2) {
  10429. this.steps--;
  10430. return;
  10431. }
  10432. let params = [
  10433. {
  10434. cid: this.cid,
  10435. chapters: JSON.stringify(this.unitJson),
  10436. uid: this.userid,
  10437. unitIndex: _unitIndex,
  10438. },
  10439. ];
  10440. this.ajax
  10441. .post(this.$store.state.api + "updateWorkNew4", params)
  10442. .then((res) => {
  10443. this.$message({
  10444. message: "修改成功",
  10445. type: "success",
  10446. });
  10447. this.courseId = this.cid;
  10448. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10449. })
  10450. .catch((err) => {
  10451. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10452. this.$message.error("网络不佳");
  10453. console.error(err);
  10454. });
  10455. },
  10456. updateWork3(unitIndex) {
  10457. let _unitIndex = unitIndex;
  10458. let cPan = 1;
  10459. for (
  10460. var j = 0;
  10461. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10462. j++
  10463. ) {
  10464. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10465. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10466. j
  10467. ].proVisible2 = false;
  10468. if (
  10469. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10470. .length > 1
  10471. ) {
  10472. for (
  10473. var z = 0;
  10474. z <
  10475. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10476. .length;
  10477. z++
  10478. ) {
  10479. if (
  10480. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10481. z
  10482. ].tool.length
  10483. ) {
  10484. this.$message.error("请把工具添加完整");
  10485. cPan = 2;
  10486. break;
  10487. }
  10488. }
  10489. }
  10490. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10491. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10492. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10493. (ele) => {
  10494. return ele.value != "";
  10495. }
  10496. );
  10497. }
  10498. }
  10499. this.inputShow = true;
  10500. if (cPan == 2) {
  10501. this.steps--;
  10502. return;
  10503. }
  10504. let params = [
  10505. {
  10506. cid: this.cid,
  10507. chapters: JSON.stringify(this.unitJson),
  10508. uid: this.userid,
  10509. unitIndex: _unitIndex,
  10510. },
  10511. ];
  10512. this.ajax
  10513. .post(this.$store.state.api + "updateWorkNew4", params)
  10514. .then((res) => {
  10515. // this.$message({
  10516. // message: "修改成功",
  10517. // type: "success",
  10518. // });
  10519. this.courseId = this.cid;
  10520. })
  10521. .catch((err) => {
  10522. this.$message.error("网络不佳");
  10523. console.error(err);
  10524. });
  10525. },
  10526. updateWork() {
  10527. let cPan = 1;
  10528. for (var i = 0; i < this.unitJson.length; i++) {
  10529. for (
  10530. var j = 0;
  10531. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10532. j++
  10533. ) {
  10534. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10535. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10536. if (
  10537. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10538. ) {
  10539. for (
  10540. var z = 0;
  10541. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10542. z++
  10543. ) {
  10544. if (
  10545. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10546. .length
  10547. ) {
  10548. this.$message.error("请把工具添加完整");
  10549. cPan = 2;
  10550. break;
  10551. }
  10552. }
  10553. }
  10554. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10555. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10556. i
  10557. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10558. return ele.value != "";
  10559. });
  10560. }
  10561. }
  10562. }
  10563. this.inputShow = true;
  10564. if (cPan == 2) {
  10565. this.steps--;
  10566. return;
  10567. }
  10568. for (var i = 0; i < this.unitJson.length; i++) {
  10569. delete this.unitJson[i].isUpdate;
  10570. }
  10571. let params = [
  10572. {
  10573. cid: this.cid,
  10574. title: this.courseName,
  10575. brief: this.courseText,
  10576. cover:
  10577. this.cover.length > 0
  10578. ? JSON.stringify(this.cover)
  10579. : JSON.stringify([
  10580. {
  10581. name: "noBanner.jpg",
  10582. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10583. uid: 1656409780264,
  10584. status: "success",
  10585. },
  10586. ]),
  10587. evaId: this.evalua,
  10588. astudent:
  10589. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10590. see: this.isTeacherSee == true ? 1 : 0,
  10591. chapters: JSON.stringify(this.unitJson),
  10592. template: this.myWord != "undefined" ? this.myWord : [],
  10593. uid: this.userid,
  10594. courseType: JSON.stringify(this.courseTypeId),
  10595. ateacher:
  10596. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10597. inviteCode: JSON.stringify(this.inviteCode),
  10598. highSetting: this.highSetting == true ? 1 : 0,
  10599. },
  10600. ];
  10601. this.ajax
  10602. .post(this.$store.state.api + "updateWorkNew2New", params)
  10603. .then((res) => {
  10604. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10605. if (this.cidType == 1) {
  10606. this.$message({
  10607. message: "修改成功",
  10608. type: "success",
  10609. });
  10610. } else {
  10611. this.$message({
  10612. message: "新增成功",
  10613. type: "success",
  10614. });
  10615. }
  10616. }
  10617. this.number = this.nbOrder;
  10618. this.courseId = this.cid;
  10619. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, "success")
  10620. })
  10621. .catch((err) => {
  10622. this.addOp3('1', "", { courseid: this.courseId ,type: "course_stageMode_clickUpload" }, err)
  10623. this.$message.error("网络不佳");
  10624. console.error(err);
  10625. });
  10626. },
  10627. insertWord() {
  10628. this.dialogVisible1 = true;
  10629. this.updateBoolean2 = false;
  10630. this.tTitle = "";
  10631. this.tdetail = "";
  10632. },
  10633. addWord() {
  10634. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10635. name: this.tTitle,
  10636. content: this.tdetail,
  10637. uid: this.guid(),
  10638. });
  10639. this.dialogVisible1 = false;
  10640. },
  10641. upWord() {},
  10642. selectWord(uid, i, c) {
  10643. this.dialogVisible1 = true;
  10644. this.updateBoolean2 = true;
  10645. if (
  10646. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10647. ) {
  10648. this.tTitle =
  10649. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10650. this.tdetail =
  10651. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10652. }
  10653. },
  10654. isAddPP() {
  10655. if (this.checkboxList.length > 0) {
  10656. this.$message({
  10657. message: "添加成功",
  10658. type: "success",
  10659. });
  10660. this.dialogVisible3 = false;
  10661. } else {
  10662. this.$message({
  10663. message: "请添加课程成员",
  10664. type: "error",
  10665. });
  10666. }
  10667. },
  10668. isAddClass() {
  10669. this.dialogVisibleClass = false;
  10670. },
  10671. isAddPPTeacher() {
  10672. this.dialogVisibleMember = false;
  10673. this.setMan();
  10674. },
  10675. getTemplate() {
  10676. this.ajax
  10677. .get(this.$store.state.api + "getCourseTemplateT", "")
  10678. .then((res) => {
  10679. this.templateArray = res.data[0];
  10680. this.getTemplateOid();
  10681. this.$forceUpdate();
  10682. })
  10683. .catch((err) => {});
  10684. },
  10685. getTemplateOid() {
  10686. let params = {
  10687. oid: this.oid,
  10688. };
  10689. this.ajax
  10690. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10691. .then((res) => {
  10692. if (res.data[0].length) {
  10693. this.templateArray = [...res.data[0], ...this.templateArray];
  10694. }
  10695. this.getTemplateOrg();
  10696. this.$forceUpdate();
  10697. })
  10698. .catch((err) => {});
  10699. },
  10700. getTemplateOrg() {
  10701. let params = {
  10702. oid: this.org,
  10703. };
  10704. this.ajax
  10705. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10706. .then((res) => {
  10707. if (res.data[0].length) {
  10708. this.templateArray = [...res.data[0], ...this.templateArray];
  10709. }
  10710. this.$forceUpdate();
  10711. })
  10712. .catch((err) => {});
  10713. },
  10714. clearChoose() {
  10715. this.clearArray.splice(this.templateC.id, 1);
  10716. this.dialogVisible2 = false;
  10717. },
  10718. clearAttText() {
  10719. this.AttText = {
  10720. title: "",
  10721. text: "",
  10722. };
  10723. this.dialogVisible6 = false;
  10724. },
  10725. clearLine() {
  10726. this.line = "";
  10727. this.dialogVisible7 = false;
  10728. },
  10729. openTemplate() {
  10730. this.ctJson = {};
  10731. this.templateDialog = true;
  10732. },
  10733. checkctJson(json) {
  10734. if (this.ctJson.id == json.id) {
  10735. this.ctJson = {};
  10736. } else {
  10737. this.ctJson = json;
  10738. }
  10739. },
  10740. addTemplate(res) {
  10741. let _this = this;
  10742. let _res = [];
  10743. if (res.id == 1) {
  10744. _res = [
  10745. {
  10746. dyName: "", //单元标题
  10747. easy: 1,
  10748. chapterInfo: [
  10749. {
  10750. isread: false,
  10751. chapterid: this.guid(),
  10752. title: "",
  10753. courseName: "",
  10754. taskJson: [
  10755. {
  10756. task: "",
  10757. taskDetail: "",
  10758. chapterData: [],
  10759. toolText: "",
  10760. toolChoose: [
  10761. {
  10762. tool: [],
  10763. toolDetail: "",
  10764. toolType: 0,
  10765. askCount: 1,
  10766. askTitle: "",
  10767. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10768. },
  10769. ],
  10770. isShowTools: false,
  10771. askCount: 1,
  10772. isFold: 1,
  10773. askTitle: "",
  10774. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10775. checkJson: [{ checkCount: [], checkPerent: [] }],
  10776. homeworkList: [],
  10777. },
  10778. ],
  10779. itemCount: 1,
  10780. fileList1: [],
  10781. video: [],
  10782. testData: [],
  10783. pData: [],
  10784. templateArray: [],
  10785. },
  10786. ],
  10787. },
  10788. ];
  10789. this.updateCourseState(1);
  10790. } else if (res.id == 2) {
  10791. let stageData = [];
  10792. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  10793. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  10794. if (!iframe && !iframe2) {
  10795. this.$message.error("请使用AI共创生成");
  10796. return;
  10797. }
  10798. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10799. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10800. if (
  10801. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10802. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10803. ) {
  10804. this.$message.error("请使用AI共创生成");
  10805. return;
  10806. }
  10807. stageData = copyData
  10808. ? copyData.stageData
  10809. : copyData2
  10810. ? copyData2.stageData
  10811. : [""];
  10812. for (var i = 0; i < stageData.length; i++) {
  10813. _res.push({
  10814. dyName: stageData[i], //单元标题
  10815. chapterInfo: [
  10816. {
  10817. isread: false,
  10818. chapterid: this.guid(),
  10819. title: "",
  10820. courseName: "",
  10821. taskJson: [
  10822. {
  10823. task: "",
  10824. taskDetail: "",
  10825. chapterData: [],
  10826. toolText: "",
  10827. toolChoose: [
  10828. {
  10829. tool: [],
  10830. toolDetail: "",
  10831. toolType: 0,
  10832. askCount: 1,
  10833. askTitle: "",
  10834. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10835. },
  10836. ],
  10837. isShowTools: false,
  10838. askCount: 1,
  10839. isFold: 1,
  10840. askTitle: "",
  10841. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10842. checkJson: [{ checkCount: [], checkPerent: [] }],
  10843. homeworkList: [],
  10844. },
  10845. ],
  10846. itemCount: 1,
  10847. fileList1: [],
  10848. video: [],
  10849. testData: [],
  10850. pData: [],
  10851. templateArray: [],
  10852. },
  10853. ],
  10854. });
  10855. }
  10856. this.updateCourseState(1);
  10857. } else if (!Object.keys(res).length) {
  10858. this.$message.error("请选择模板");
  10859. retrun;
  10860. } else {
  10861. _res = JSON.parse(res.chapters);
  10862. this.updateCourseState(parseInt(res.state));
  10863. }
  10864. if(_this.unitJson.length == 1
  10865. && _this.unitJson[0].chapterInfo[0].taskJson.length == 1
  10866. && !_this.unitJson[0].chapterInfo[0].taskJson[0].task
  10867. && !_this.unitJson[0].chapterInfo[0].taskJson[0].taskDetail
  10868. && !_this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.length){
  10869. _this.unitJson = _res;
  10870. if(_this.cid){
  10871. _this.updateWork();
  10872. }
  10873. // _this.steps++;
  10874. _this.templateDialog = false;
  10875. setTimeout(() => {
  10876. this.checkEva(this.checkId);
  10877. setTimeout(() => {
  10878. this.checkEva(this.checkId);
  10879. }, 100);
  10880. }, 1000);
  10881. }else{
  10882. _this
  10883. .$confirm(
  10884. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10885. "提示",
  10886. {
  10887. confirmButtonText: "确定",
  10888. cancelButtonText: "取消",
  10889. type: "warning",
  10890. }
  10891. )
  10892. .then(() => {
  10893. _this.unitJson = _res;
  10894. if(_this.cid){
  10895. _this.updateWork();
  10896. }
  10897. // _this.steps++;
  10898. _this.templateDialog = false;
  10899. setTimeout(() => {
  10900. this.checkEva(this.checkId);
  10901. setTimeout(() => {
  10902. this.checkEva(this.checkId);
  10903. }, 100);
  10904. }, 1000);
  10905. })
  10906. .catch(() => {
  10907. return;
  10908. });
  10909. }
  10910. },
  10911. checkTemplate(res) {
  10912. let _this = this;
  10913. _this
  10914. .$confirm(
  10915. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10916. "提示",
  10917. {
  10918. confirmButtonText: "确定",
  10919. cancelButtonText: "取消",
  10920. type: "warning",
  10921. }
  10922. )
  10923. .then(() => {
  10924. _this.unitJson = JSON.parse(res.chapters);
  10925. _this.steps++;
  10926. setTimeout(() => {
  10927. this.checkEva(this.checkId);
  10928. setTimeout(() => {
  10929. this.checkEva(this.checkId);
  10930. }, 100);
  10931. }, 1000);
  10932. })
  10933. .catch(() => {
  10934. return;
  10935. });
  10936. },
  10937. checkTemplate1(w) {
  10938. this.steps++;
  10939. },
  10940. checkTemplate2() {
  10941. let _this = this;
  10942. _this
  10943. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  10944. confirmButtonText: "确定",
  10945. cancelButtonText: "取消",
  10946. type: "warning",
  10947. })
  10948. .then(() => {
  10949. _this.unitIndex = 0;
  10950. _this.unitJson = [
  10951. {
  10952. dyName: "", //单元标题
  10953. chapterInfo: [
  10954. {
  10955. isread: false,
  10956. chapterid: this.guid(),
  10957. title: "",
  10958. courseName: "",
  10959. taskJson: [
  10960. {
  10961. task: "",
  10962. taskDetail: "",
  10963. chapterData: [],
  10964. toolText: "",
  10965. toolChoose: [
  10966. {
  10967. tool: [],
  10968. toolDetail: "",
  10969. toolType: 0,
  10970. askCount: 1,
  10971. askTitle: "",
  10972. askJson: [
  10973. { askstitle: "", askItem: 1, checkList: [] },
  10974. ],
  10975. },
  10976. ],
  10977. isShowTools: false,
  10978. askCount: 1,
  10979. isFold: 1,
  10980. askTitle: "",
  10981. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10982. checkJson: [{ checkCount: [], checkPerent: [] }],
  10983. homeworkList: [],
  10984. },
  10985. ],
  10986. itemCount: 1,
  10987. fileList1: [],
  10988. video: [],
  10989. testData: [],
  10990. pData: [],
  10991. templateArray: [],
  10992. },
  10993. ],
  10994. },
  10995. ];
  10996. this.steps++;
  10997. setTimeout(() => {
  10998. this.checkEva(this.checkId);
  10999. setTimeout(() => {
  11000. this.checkEva(this.checkId);
  11001. }, 100);
  11002. }, 1000);
  11003. this.updateWork();
  11004. })
  11005. .catch(() => {
  11006. return;
  11007. });
  11008. },
  11009. checkTemplate3() {
  11010. let _this = this;
  11011. _this
  11012. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  11013. confirmButtonText: "确定",
  11014. cancelButtonText: "取消",
  11015. type: "warning",
  11016. })
  11017. .then(() => {
  11018. _this.unitIndex = 0;
  11019. _this.unitJson = [
  11020. {
  11021. dyName: "", //单元标题
  11022. easy: 1,
  11023. chapterInfo: [
  11024. {
  11025. isread: false,
  11026. chapterid: this.guid(),
  11027. title: "",
  11028. courseName: "",
  11029. taskJson: [
  11030. {
  11031. task: "",
  11032. taskDetail: "",
  11033. chapterData: [],
  11034. toolText: "",
  11035. toolChoose: [
  11036. {
  11037. tool: [],
  11038. toolDetail: "",
  11039. toolType: 0,
  11040. askCount: 1,
  11041. askTitle: "",
  11042. askJson: [
  11043. { askstitle: "", askItem: 1, checkList: [] },
  11044. ],
  11045. },
  11046. ],
  11047. isShowTools: false,
  11048. askCount: 1,
  11049. isFold: 1,
  11050. askTitle: "",
  11051. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11052. checkJson: [{ checkCount: [], checkPerent: [] }],
  11053. homeworkList: [],
  11054. },
  11055. ],
  11056. itemCount: 1,
  11057. fileList1: [],
  11058. video: [],
  11059. testData: [],
  11060. pData: [],
  11061. templateArray: [],
  11062. },
  11063. ],
  11064. },
  11065. ];
  11066. // this.steps++;
  11067. this.updateWork();
  11068. })
  11069. .catch(() => {
  11070. return;
  11071. });
  11072. },
  11073. checkTemplate4() {
  11074. let _this = this;
  11075. _this
  11076. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  11077. confirmButtonText: "确定",
  11078. cancelButtonText: "取消",
  11079. type: "warning",
  11080. })
  11081. .then(() => {
  11082. _this.unitIndex = 0;
  11083. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  11084. this.steps++;
  11085. this.updateWork();
  11086. })
  11087. .catch(() => {
  11088. return;
  11089. });
  11090. },
  11091. wordNext() {
  11092. this.dialogVisible2 = false;
  11093. },
  11094. isAddOrUpdateAttText() {
  11095. if (this.AttTextType == 0) {
  11096. this.addAttTextMessage();
  11097. } else {
  11098. this.updateAttText();
  11099. }
  11100. },
  11101. isAddOrUpdateLine() {
  11102. if (!this.lineTitle) {
  11103. this.$message.error("请填写链接标题");
  11104. return;
  11105. }
  11106. if (this.lineType == 0) {
  11107. this.addLine();
  11108. } else {
  11109. this.updateLine();
  11110. }
  11111. },
  11112. addAttTextMessage() {
  11113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11114. this.taskCount
  11115. ].chapterData.push({
  11116. name: this.AttText.title,
  11117. url: this.AttText.text,
  11118. type: 6,
  11119. });
  11120. this.imgChange1(null, null, 6, this.taskCount);
  11121. this.dialogVisible6 = false;
  11122. },
  11123. selectAttText(itemTaskIndex, i) {
  11124. this.AttText.title =
  11125. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11126. itemTaskIndex
  11127. ].chapterData[i].name;
  11128. this.AttText.text =
  11129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11130. itemTaskIndex
  11131. ].chapterData[i].url;
  11132. this.taskCount = itemTaskIndex;
  11133. this.AttTextIndex = i;
  11134. this.AttTextType = 1;
  11135. this.dialogVisible6 = true;
  11136. },
  11137. updateAttText() {
  11138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11139. this.taskCount
  11140. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  11141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11142. this.taskCount
  11143. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  11144. this.dialogVisible6 = false;
  11145. },
  11146. addLine() {
  11147. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11148. this.lineCount
  11149. ].chapterData.push({
  11150. name: "链接",
  11151. title: this.lineTitle,
  11152. url: this.line,
  11153. type: 8,
  11154. });
  11155. this.imgChange1(null, null, 8, this.lineCount);
  11156. this.dialogVisible7 = false;
  11157. },
  11158. selectLine(itemTaskIndex, i) {
  11159. this.line =
  11160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11161. itemTaskIndex
  11162. ].chapterData[i].url;
  11163. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11164. itemTaskIndex
  11165. ].chapterData[i].title
  11166. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11167. .chapterData[i].title
  11168. : "";
  11169. this.taskCount = itemTaskIndex;
  11170. this.lineCount = i;
  11171. this.lineType = 1;
  11172. this.dialogVisible7 = true;
  11173. },
  11174. openUpdateSource(itemTaskIndex, i) {
  11175. this.sourceData = {};
  11176. let source =
  11177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11178. .chapterData[i];
  11179. this.sourceData[source.id] = {};
  11180. this.sourceData[source.id].name = source.title;
  11181. this.sourceData[source.id].url = source.url;
  11182. this.dialogVisibleSource = true;
  11183. this.updateSourcePan = true;
  11184. this.taskCount = itemTaskIndex;
  11185. this.lineCount = i;
  11186. },
  11187. updateLine() {
  11188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11189. this.taskCount
  11190. ].chapterData[this.lineCount].url = this.line;
  11191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11192. this.taskCount
  11193. ].chapterData[this.lineCount].title = this.lineTitle;
  11194. this.dialogVisible7 = false;
  11195. },
  11196. addPP() {
  11197. this.dialogVisible3 = true;
  11198. },
  11199. goTo(path) {
  11200. this.$router.push(path);
  11201. },
  11202. openTools(itemTaskIndex, i, toolIndex) {
  11203. this.toolIndex = toolIndex;
  11204. this.taskCount = itemTaskIndex;
  11205. if (i == 4) {
  11206. if (toolIndex == null) {
  11207. var a =
  11208. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11209. .chapterData;
  11210. for (var i = 0; i < a.length; i++) {
  11211. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  11212. this.askJson =
  11213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11214. itemTaskIndex
  11215. ].chapterData[i].askJson;
  11216. }
  11217. }
  11218. } else {
  11219. this.askJson = JSON.parse(
  11220. JSON.stringify(
  11221. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11222. itemTaskIndex
  11223. ].toolChoose[toolIndex]
  11224. )
  11225. );
  11226. }
  11227. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  11228. this.dialogVisible5 = true;
  11229. } else if (i == 45) {
  11230. if (
  11231. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11232. .toolChoose[toolIndex].testJson
  11233. ) {
  11234. this.testJson = JSON.parse(
  11235. JSON.stringify(
  11236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11237. itemTaskIndex
  11238. ].toolChoose[toolIndex].testJson
  11239. )
  11240. );
  11241. } else {
  11242. var testJson = {
  11243. testCount: 1,
  11244. testTitle: "",
  11245. testJson: [
  11246. {
  11247. teststitle: "",
  11248. testItem: 1,
  11249. checkList: [],
  11250. timuList: [],
  11251. answer: [],
  11252. type: "1",
  11253. },
  11254. ],
  11255. };
  11256. this.testJson = testJson;
  11257. }
  11258. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  11259. this.dialogVisibleChoice = true;
  11260. } else if (i == 47) {
  11261. if (
  11262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11263. .toolChoose[toolIndex].sentenceList
  11264. ) {
  11265. this.sentenceList = JSON.parse(
  11266. JSON.stringify(
  11267. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11268. itemTaskIndex
  11269. ].toolChoose[toolIndex].sentenceList
  11270. )
  11271. );
  11272. } else {
  11273. var sentenceList = [
  11274. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11275. ];
  11276. this.sentenceList = sentenceList;
  11277. }
  11278. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11279. this.dialogVisibleSentence = true;
  11280. } else if (i == 48) {
  11281. if (
  11282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11283. .toolChoose[toolIndex].tableJson
  11284. ) {
  11285. this.tableJson = JSON.parse(
  11286. JSON.stringify(
  11287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11288. itemTaskIndex
  11289. ].toolChoose[toolIndex].tableJson
  11290. )
  11291. );
  11292. } else {
  11293. var tableJson = { text: "" };
  11294. this.tableJson = tableJson;
  11295. }
  11296. this.dialogVisibleTable = true;
  11297. } else if (i == 52) {
  11298. if (
  11299. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11300. .toolChoose[toolIndex].wordJson
  11301. ) {
  11302. this.wordJson = JSON.parse(
  11303. JSON.stringify(
  11304. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11305. itemTaskIndex
  11306. ].toolChoose[toolIndex].wordJson
  11307. )
  11308. );
  11309. } else {
  11310. var wordJson = { text: "" };
  11311. this.wordJson = wordJson;
  11312. }
  11313. this.dialogVisibleWord = true;
  11314. // else if (i == 50) {
  11315. // if (
  11316. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11317. // .toolChoose[toolIndex].uploadJson
  11318. // ) {
  11319. // this.uploadJson = JSON.parse(
  11320. // JSON.stringify(
  11321. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11322. // itemTaskIndex
  11323. // ].toolChoose[toolIndex].uploadJson
  11324. // )
  11325. // );
  11326. // } else {
  11327. // var uploadJson = [];
  11328. // this.uploadJson = uploadJson;
  11329. // }
  11330. // this.dialogVisibleMoreUpload = true;
  11331. // }
  11332. } else if (i == 10) {
  11333. if (
  11334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11335. .toolChoose[toolIndex].preTime
  11336. ) {
  11337. this.preTime = JSON.parse(
  11338. JSON.stringify(
  11339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11340. itemTaskIndex
  11341. ].toolChoose[toolIndex].preTime
  11342. )
  11343. );
  11344. } else {
  11345. var preTime = 0;
  11346. this.preTime = preTime;
  11347. }
  11348. this.dialogVisiblePreTime = true;
  11349. } else if (i == 49) {
  11350. if (
  11351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11352. .toolChoose[toolIndex].groupJson
  11353. ) {
  11354. this.groupJson = JSON.parse(
  11355. JSON.stringify(
  11356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11357. itemTaskIndex
  11358. ].toolChoose[toolIndex].groupJson
  11359. )
  11360. );
  11361. } else {
  11362. var groupJson = {
  11363. group: [{ name: "第1组" }],
  11364. number: undefined,
  11365. islock: 1,
  11366. };
  11367. this.groupJson = groupJson;
  11368. }
  11369. this.dialogVisibleGroup = true;
  11370. } else if (i == 62) {
  11371. if (
  11372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11373. .toolChoose[toolIndex].videoJson
  11374. ) {
  11375. this.videoJson = JSON.parse(
  11376. JSON.stringify(
  11377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11378. itemTaskIndex
  11379. ].toolChoose[toolIndex].videoJson
  11380. )
  11381. );
  11382. } else {
  11383. var videoJson = {
  11384. video: "",
  11385. setting: [],
  11386. };
  11387. this.videoJson = videoJson;
  11388. }
  11389. this.dialogVisibleVideo = true;
  11390. } else if (i == 15) {
  11391. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11392. itemTaskIndex
  11393. ].toolChoose[toolIndex].answerQ
  11394. ? JSON.parse(
  11395. JSON.stringify(
  11396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11397. itemTaskIndex
  11398. ].toolChoose[toolIndex].answerQ
  11399. )
  11400. )
  11401. : "";
  11402. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11403. this.dialogVisible8 = true;
  11404. } else if (i == 40) {
  11405. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11406. itemTaskIndex
  11407. ].toolChoose[toolIndex].rateJson
  11408. ? JSON.parse(
  11409. JSON.stringify(
  11410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11411. itemTaskIndex
  11412. ].toolChoose[toolIndex].rateJson
  11413. )
  11414. )
  11415. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11416. this.selectSteps = 1;
  11417. this.dialogVisibleRate = true;
  11418. } else if (i == 42) {
  11419. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11420. itemTaskIndex
  11421. ].toolChoose[toolIndex].answerQ
  11422. ? JSON.parse(
  11423. JSON.stringify(
  11424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11425. itemTaskIndex
  11426. ].toolChoose[toolIndex].answerQ
  11427. )
  11428. )
  11429. : "";
  11430. this.dialogVisibleMp3 = true;
  11431. } else if (i == 41) {
  11432. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11433. itemTaskIndex
  11434. ].toolChoose[toolIndex].selectJson
  11435. ? JSON.parse(
  11436. JSON.stringify(
  11437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11438. itemTaskIndex
  11439. ].toolChoose[toolIndex].selectJson
  11440. )
  11441. )
  11442. : { url: "", select: [], answer: [] };
  11443. this.selectSteps = 1;
  11444. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11445. this.dialogVisibleSelect = true;
  11446. } else if (i == 3) {
  11447. if (!this.cid) {
  11448. this.$message.error(
  11449. "添加时不能添加模板,请添加课程后再修改添加模板"
  11450. );
  11451. return;
  11452. }
  11453. window.topU.postMessage(
  11454. {
  11455. tools: "3y",
  11456. cid: this.cid,
  11457. stage: this.unitIndex,
  11458. task: itemTaskIndex,
  11459. tool: toolIndex,
  11460. },
  11461. "*"
  11462. );
  11463. } else if (i == 1) {
  11464. if (!this.cid) {
  11465. this.$message.error(
  11466. "添加时不能添加模板,请添加课程后再修改添加模板"
  11467. );
  11468. return;
  11469. }
  11470. window.topU.postMessage(
  11471. {
  11472. tools: "1y",
  11473. cid: this.cid,
  11474. stage: this.unitIndex,
  11475. task: itemTaskIndex,
  11476. tool: toolIndex,
  11477. },
  11478. "*"
  11479. );
  11480. } else if (i == 57) {
  11481. if (!this.cid) {
  11482. this.$message.error(
  11483. "添加时不能添加模板,请添加课程后再修改添加模板"
  11484. );
  11485. return;
  11486. }
  11487. window.topU.postMessage(
  11488. {
  11489. tools: "57y",
  11490. cid: this.cid,
  11491. stage: this.unitIndex,
  11492. task: itemTaskIndex,
  11493. tool: toolIndex,
  11494. },
  11495. "*"
  11496. );
  11497. } else if (i == 69) {
  11498. this.englishList = {};
  11499. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11500. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11501. ? JSON.parse(
  11502. JSON.stringify(
  11503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11504. itemTaskIndex
  11505. ].toolChoose[toolIndex].englishList
  11506. )
  11507. )
  11508. : {};
  11509. this.$forceUpdate();
  11510. this.englishDialogVisible = true;
  11511. } else if (i == 70) {
  11512. this.englishVoiceJson = {};
  11513. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11514. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11515. ? JSON.parse(
  11516. JSON.stringify(
  11517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11518. itemTaskIndex
  11519. ].toolChoose[toolIndex].englishVoiceJson
  11520. )
  11521. )
  11522. : {
  11523. title:'',
  11524. detail:'',
  11525. array:[]
  11526. };
  11527. // {
  11528. // time: "",
  11529. // class: "",
  11530. // difficulty: 0,
  11531. // topic: "",
  11532. // isShow: false,
  11533. // eva: 0,
  11534. // aiEva: {
  11535. // isAiEva: false,
  11536. // aiEvaChoose: [],
  11537. // },
  11538. // allfType: [],
  11539. // englishJson: {},
  11540. // };
  11541. this.$forceUpdate();
  11542. this.EnglishVoiceDialog = true;
  11543. }else if(i == 72){
  11544. let appJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11545. itemTaskIndex
  11546. ].toolChoose[toolIndex].appJson
  11547. ? JSON.parse(
  11548. JSON.stringify(
  11549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11550. itemTaskIndex
  11551. ].toolChoose[toolIndex].appJson
  11552. )
  11553. )
  11554. : {
  11555. url:'',
  11556. };
  11557. this.$forceUpdate();
  11558. this.$refs.appDialog.openG(appJson,this.unitIndex,itemTaskIndex,toolIndex);
  11559. }
  11560. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
  11561. && !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
  11562. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
  11563. }
  11564. },
  11565. setEnglishVoiceJson(val) {
  11566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11567. this.taskCount
  11568. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11569. JSON.stringify(val)
  11570. );
  11571. this.$forceUpdate();
  11572. if (
  11573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11574. .toolChoose[this.toolIndex].tool != 70
  11575. ) {
  11576. this.addTools(70, this.taskCount, this.toolIndex);
  11577. }
  11578. },
  11579. chapAddTools(i) {
  11580. if (this.chapTools[0].tools.length == 0) {
  11581. this.chapTools[0].tools.push(i);
  11582. } else {
  11583. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11584. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11585. } else {
  11586. this.chapTools[0].tools.push(i);
  11587. }
  11588. }
  11589. this.$forceUpdate();
  11590. },
  11591. addChaptersDataTools() {
  11592. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11593. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11594. this.chapCount
  11595. ].chapterData.push({
  11596. name: this.chapTools[0].toolDetail,
  11597. url: this.chapTools[0].tools,
  11598. type: 7,
  11599. askJson: this.askJson,
  11600. });
  11601. } else {
  11602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11603. this.chapCount
  11604. ].chapterData.push({
  11605. name: this.chapTools[0].toolDetail,
  11606. url: this.chapTools[0].tools,
  11607. type: 7,
  11608. });
  11609. }
  11610. this.imgChange1(null, null, 7, this.chapCount);
  11611. this.dialogVisible4 = false;
  11612. },
  11613. addTools(i, itemTaskIndex, toolIndex) {
  11614. // if (
  11615. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11616. // .toolChoose[toolIndex].tool.length == 0
  11617. // ) {
  11618. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11619. // itemTaskIndex
  11620. // ].toolChoose[toolIndex].tool.push(i);
  11621. // } else {
  11622. // if (
  11623. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11624. // itemTaskIndex
  11625. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11626. // ) {
  11627. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11628. // itemTaskIndex
  11629. // ].toolChoose[toolIndex].tool.splice(
  11630. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11631. // itemTaskIndex
  11632. // ].toolChoose[toolIndex].tool.indexOf(i),
  11633. // 1
  11634. // );
  11635. // } else {
  11636. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11637. // itemTaskIndex
  11638. // ].toolChoose[toolIndex].tool.push(i);
  11639. // }
  11640. // console.log(
  11641. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11642. // .toolChoose[toolIndex].tool
  11643. // );
  11644. // }
  11645. if (i == 4) {
  11646. if (
  11647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11648. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11650. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11651. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11652. .toolChoose[toolIndex].askJson[0].checkList < 2
  11653. ) {
  11654. this.openTools(itemTaskIndex, 4, toolIndex);
  11655. // this.$message({
  11656. // message: "请填写完整问卷内容",
  11657. // type: "error",
  11658. // });
  11659. return;
  11660. }
  11661. }
  11662. if (i == 45) {
  11663. if (
  11664. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11665. .toolChoose[toolIndex].testJson ||
  11666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11667. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11669. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11670. ) {
  11671. this.openTools(itemTaskIndex, 45, toolIndex);
  11672. // this.$message({
  11673. // message: "请填写完整问卷内容",
  11674. // type: "error",
  11675. // });
  11676. return;
  11677. }
  11678. }
  11679. if (i == 47) {
  11680. if (
  11681. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11682. .toolChoose[toolIndex].sentenceList ||
  11683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11684. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11685. ) {
  11686. this.openTools(itemTaskIndex, 47, toolIndex);
  11687. return;
  11688. }
  11689. }
  11690. if (i == 69) {
  11691. if (
  11692. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11693. .toolChoose[toolIndex].englishList
  11694. ) {
  11695. this.openTools(itemTaskIndex, 69, toolIndex);
  11696. return;
  11697. }
  11698. }
  11699. if (i == 70) {
  11700. if (
  11701. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11702. .toolChoose[toolIndex].englishVoiceJson
  11703. ) {
  11704. this.openTools(itemTaskIndex, 70, toolIndex);
  11705. return;
  11706. }
  11707. }
  11708. if(i == 72){
  11709. if (
  11710. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11711. .toolChoose[toolIndex].appJson || Object.keys(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11712. .toolChoose[toolIndex].appJson).length == 0
  11713. ) {
  11714. this.openTools(itemTaskIndex, 72, toolIndex);
  11715. return;
  11716. }
  11717. }
  11718. // if (i == 48) {
  11719. // if (
  11720. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11721. // .toolChoose[toolIndex].tableJson
  11722. // ) {
  11723. // this.openTools(itemTaskIndex, 48, toolIndex);
  11724. // return;
  11725. // }
  11726. // }
  11727. // if (i == 50) {
  11728. // if (
  11729. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11730. // .toolChoose[toolIndex].uploadJson
  11731. // ) {
  11732. // this.openTools(itemTaskIndex, 50, toolIndex);
  11733. // return;
  11734. // }
  11735. // }
  11736. if (i == 49) {
  11737. if (
  11738. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11739. .toolChoose[toolIndex].groupJson
  11740. ) {
  11741. this.openTools(itemTaskIndex, 49, toolIndex);
  11742. return;
  11743. }
  11744. }
  11745. if (i == 62) {
  11746. if (
  11747. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11748. .toolChoose[toolIndex].videoJson
  11749. ) {
  11750. this.openTools(itemTaskIndex, 62, toolIndex);
  11751. return;
  11752. }
  11753. }
  11754. if (i == 15) {
  11755. if (
  11756. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11757. .toolChoose[toolIndex].answerQ ||
  11758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11759. .toolChoose[toolIndex].answerQ == ""
  11760. ) {
  11761. this.openTools(itemTaskIndex, 15, toolIndex);
  11762. // this.$message({
  11763. // message: "请填写问答内容",
  11764. // type: "error",
  11765. // });
  11766. return;
  11767. }
  11768. }
  11769. if (i == 40) {
  11770. if (
  11771. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11772. .toolChoose[toolIndex].rateJson ||
  11773. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11774. .toolChoose[toolIndex].rateJson.length
  11775. ) {
  11776. this.openTools(itemTaskIndex, 40, toolIndex);
  11777. return;
  11778. }
  11779. }
  11780. if (i == 41) {
  11781. if (
  11782. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11783. .toolChoose[toolIndex].selectJson ||
  11784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11785. .toolChoose[toolIndex].selectJson.url == "" ||
  11786. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11787. .toolChoose[toolIndex].selectJson.select.length ||
  11788. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11789. .toolChoose[toolIndex].selectJson.answer.length
  11790. ) {
  11791. this.openTools(itemTaskIndex, 41, toolIndex);
  11792. return;
  11793. }
  11794. }
  11795. if (i == 42) {
  11796. if (
  11797. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11798. .toolChoose[toolIndex].answerQ ||
  11799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11800. .toolChoose[toolIndex].answerQ == ""
  11801. ) {
  11802. this.openTools(itemTaskIndex, 42, toolIndex);
  11803. return;
  11804. }
  11805. }
  11806. if (
  11807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11808. .toolChoose[toolIndex].tool.length > 0
  11809. ) {
  11810. if (
  11811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11812. itemTaskIndex
  11813. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11814. ) {
  11815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11816. itemTaskIndex
  11817. ].toolChoose[toolIndex].tool.splice(
  11818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11819. itemTaskIndex
  11820. ].toolChoose[toolIndex].tool.indexOf(i),
  11821. 1
  11822. );
  11823. } else {
  11824. // this.$message({
  11825. // message: "每个工具只能添加一个",
  11826. // type: "error",
  11827. // });
  11828. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11829. itemTaskIndex
  11830. ].toolChoose[toolIndex].tool = [];
  11831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11832. itemTaskIndex
  11833. ].toolChoose[toolIndex].tool.push(i);
  11834. }
  11835. } else {
  11836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11837. itemTaskIndex
  11838. ].toolChoose[toolIndex].tool.push(i);
  11839. }
  11840. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
  11841. && !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
  11842. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
  11843. }
  11844. this.$forceUpdate();
  11845. },
  11846. addAskList(index) {
  11847. this.askJson.askJson.splice(index + 1, 0, {
  11848. askstitle: "",
  11849. askItem: 1,
  11850. checkList: [],
  11851. });
  11852. this.askJson.askCount++;
  11853. },
  11854. addTestList(index) {
  11855. this.testJson.testJson.splice(index + 1, 0, {
  11856. teststitle: "",
  11857. testItem: 1,
  11858. checkList: [],
  11859. timuList: [],
  11860. answer: [],
  11861. type: "1",
  11862. });
  11863. this.testJson.testCount++;
  11864. },
  11865. deleteAskList(index) {
  11866. if (
  11867. !this.askJson.askJson[index].askstitle &&
  11868. this.askJson.askJson[index].askItem == 1 &&
  11869. !this.askJson.askJson[index].checkList[0]
  11870. ) {
  11871. this.askJson.askJson.splice(index, 1);
  11872. this.askJson.askCount--;
  11873. } else {
  11874. let _this = this;
  11875. _this
  11876. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11877. confirmButtonText: "确定",
  11878. cancelButtonText: "取消",
  11879. type: "warning",
  11880. })
  11881. .then(() => {
  11882. _this.askJson.askJson.splice(index, 1);
  11883. _this.askJson.askCount--;
  11884. })
  11885. .catch(() => {
  11886. return;
  11887. });
  11888. }
  11889. },
  11890. deleteTestList(index) {
  11891. if (
  11892. !this.testJson.testJson[index].teststitle &&
  11893. this.testJson.testJson[index].testItem == 1 &&
  11894. !this.testJson.testJson[index].checkList[0]
  11895. ) {
  11896. this.testJson.testJson.splice(index, 1);
  11897. this.testJson.testCount--;
  11898. } else {
  11899. let _this = this;
  11900. _this
  11901. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11902. confirmButtonText: "确定",
  11903. cancelButtonText: "取消",
  11904. type: "warning",
  11905. })
  11906. .then(() => {
  11907. _this.testJson.testJson.splice(index, 1);
  11908. _this.testJson.testCount--;
  11909. })
  11910. .catch(() => {
  11911. return;
  11912. });
  11913. }
  11914. },
  11915. askMove(type, index) {
  11916. if (type == 1) {
  11917. if (index > 0) {
  11918. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11919. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11920. this.askJson.askJson[index - 1] = b;
  11921. this.askJson.askJson[index] = a;
  11922. }
  11923. } else {
  11924. if (index < this.askJson.askJson.length - 1) {
  11925. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11926. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11927. this.askJson.askJson[index + 1] = b;
  11928. this.askJson.askJson[index] = a;
  11929. }
  11930. }
  11931. this.$forceUpdate();
  11932. },
  11933. checkMove(type, index, checkIndex) {
  11934. if (type == 1) {
  11935. if (checkIndex > 0) {
  11936. let a = JSON.parse(
  11937. JSON.stringify(
  11938. this.askJson.askJson[index].checkList[checkIndex - 1]
  11939. )
  11940. );
  11941. let b = JSON.parse(
  11942. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11943. );
  11944. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11945. this.askJson.askJson[index].checkList[checkIndex] = a;
  11946. }
  11947. } else {
  11948. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11949. let a = JSON.parse(
  11950. JSON.stringify(
  11951. this.askJson.askJson[index].checkList[checkIndex + 1]
  11952. )
  11953. );
  11954. let b = JSON.parse(
  11955. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11956. );
  11957. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11958. this.askJson.askJson[index].checkList[checkIndex] = a;
  11959. }
  11960. }
  11961. this.$forceUpdate();
  11962. },
  11963. testMove(type, index) {
  11964. if (type == 1) {
  11965. if (index > 0) {
  11966. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11967. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11968. this.testJson.testJson[index - 1] = b;
  11969. this.testJson.testJson[index] = a;
  11970. }
  11971. } else {
  11972. if (index < this.testJson.testJson.length - 1) {
  11973. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11974. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11975. this.testJson.testJson[index + 1] = b;
  11976. this.testJson.testJson[index] = a;
  11977. }
  11978. }
  11979. this.$forceUpdate();
  11980. },
  11981. tcheckMove(type, index, checkIndex) {
  11982. if (type == 1) {
  11983. if (checkIndex > 0) {
  11984. let a = JSON.parse(
  11985. JSON.stringify(
  11986. this.testJson.testJson[index].checkList[checkIndex - 1]
  11987. )
  11988. );
  11989. let b = JSON.parse(
  11990. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11991. );
  11992. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11993. this.testJson.testJson[index].checkList[checkIndex] = a;
  11994. }
  11995. } else {
  11996. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11997. let a = JSON.parse(
  11998. JSON.stringify(
  11999. this.testJson.testJson[index].checkList[checkIndex + 1]
  12000. )
  12001. );
  12002. let b = JSON.parse(
  12003. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  12004. );
  12005. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  12006. this.testJson.testJson[index].checkList[checkIndex] = a;
  12007. }
  12008. }
  12009. this.$forceUpdate();
  12010. },
  12011. addcheckList(json, index) {
  12012. // json.checkList.length++;
  12013. json.checkList.splice(index + 1, 0, "");
  12014. json.askItem++;
  12015. this.$forceUpdate();
  12016. },
  12017. deletecheckList(json, index) {
  12018. // json.checkList.length--;
  12019. json.checkList.splice(index, 1);
  12020. json.askItem--;
  12021. this.$forceUpdate();
  12022. },
  12023. addTcheckList(json, index) {
  12024. // json.checkList.length++;
  12025. json.checkList.splice(index + 1, 0, "");
  12026. json.testItem++;
  12027. this.$forceUpdate();
  12028. },
  12029. deleteTcheckList(json, index) {
  12030. // json.checkList.length--;
  12031. json.checkList.splice(index, 1);
  12032. json.testItem--;
  12033. this.$forceUpdate();
  12034. },
  12035. checkTestType(type, json) {
  12036. json.type = type;
  12037. setTimeout(() => {
  12038. json.answer = [];
  12039. }, 100);
  12040. },
  12041. checkAskType(type, json) {
  12042. json.type = type;
  12043. // json.checkList = [];
  12044. this.$forceUpdate();
  12045. },
  12046. addSelectList(json) {
  12047. json.select.push("");
  12048. json.answer.push("");
  12049. },
  12050. deleteSelectList(json) {
  12051. // json.select.length--;
  12052. // json.answer.length--;
  12053. json.select.splice(json.select.length - 1, 1);
  12054. json.answer.splice(json.answer.length - 1, 1);
  12055. },
  12056. addAsk() {
  12057. if (this.askJson.askTitle === "") {
  12058. this.$message.error("标题不能为空!");
  12059. return;
  12060. }
  12061. var aj = this.askJson.askJson;
  12062. var b = 1;
  12063. for (var i = 0; i < aj.length; i++) {
  12064. if (aj[i].askstitle === "") {
  12065. var a = 1;
  12066. for (let index = 0; index < aj[i].askItem; index++) {
  12067. const element = aj[i].checkList[index]
  12068. ? aj[i].checkList[index]
  12069. : "";
  12070. if (element != "") {
  12071. b++;
  12072. this.$message.error(`请将题目${i + 1}填写完整。`);
  12073. return;
  12074. } else {
  12075. a++;
  12076. }
  12077. }
  12078. if (b == 1) {
  12079. this.$message.error("至少填写一个问题");
  12080. return;
  12081. }
  12082. } else if (aj[i].askstitle != "") {
  12083. for (let index = 0; index < aj[i].askItem; index++) {
  12084. const element = aj[i].checkList[index]
  12085. ? aj[i].checkList[index]
  12086. : "";
  12087. var index = 0;
  12088. for (var z = 0; z < aj[i].checkList.length; z++) {
  12089. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  12090. if (checkC != "") {
  12091. index++;
  12092. } else {
  12093. this.$message.error(`题目${i + 1}选项不能为空!`);
  12094. return;
  12095. }
  12096. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  12097. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  12098. if (checkC == checkC2) {
  12099. this.$message.error(
  12100. `第${i + 1}题的选项${this.optionTypeList[z]}和选项${this.optionTypeList[z2]}重复了,请修改!`
  12101. );
  12102. return;
  12103. }
  12104. }
  12105. }
  12106. b++;
  12107. if (index < 2) {
  12108. this.$message.error("每道题目至少需要设置2个选项。");
  12109. return;
  12110. }
  12111. }
  12112. }
  12113. }
  12114. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  12115. var elc = el.checkList.filter((element) => {
  12116. return element != "";
  12117. });
  12118. return el.askstitle != "" && elc.length != 0;
  12119. });
  12120. if (!this.dialogVisible4) {
  12121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12122. this.taskCount
  12123. ].toolChoose[this.toolIndex] = this.askJson;
  12124. }
  12125. this.dialogVisible5 = false;
  12126. if (
  12127. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12128. .toolChoose[this.toolIndex].tool != 4
  12129. ) {
  12130. this.addTools(4, this.taskCount, this.toolIndex);
  12131. }
  12132. },
  12133. addTest() {
  12134. // if (this.testJson.testTitle === "") {
  12135. // this.$message.error("标题不能为空!");
  12136. // return;
  12137. // }
  12138. var aj = this.testJson.testJson;
  12139. var b = 1;
  12140. for (var i = 0; i < aj.length; i++) {
  12141. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  12142. var a = 1;
  12143. for (let index = 0; index < aj[i].testItem; index++) {
  12144. const element = aj[i].checkList[index]
  12145. ? aj[i].checkList[index]
  12146. : "";
  12147. if (element != "") {
  12148. b++;
  12149. this.$message.error(`请将题目${i + 1}填写完整。`);
  12150. return;
  12151. } else {
  12152. a++;
  12153. }
  12154. }
  12155. if (b == 1) {
  12156. this.$message.error("至少填写一个问题");
  12157. return;
  12158. }
  12159. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  12160. for (let index = 0; index < aj[i].testItem; index++) {
  12161. const element = aj[i].checkList[index]
  12162. ? aj[i].checkList[index]
  12163. : "";
  12164. var index = 0;
  12165. for (var z = 0; z < aj[i].checkList.length; z++) {
  12166. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  12167. if (checkC != "") {
  12168. index++;
  12169. } else {
  12170. this.$message.error(`题目${i + 1}选项不能为空!`);
  12171. return;
  12172. }
  12173. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  12174. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  12175. if (checkC == checkC2) {
  12176. this.$message.error(
  12177. `第${i + 1}题的选项${this.optionTypeList[z]}和选项${this.optionTypeList[z2]}重复了,请修改!`
  12178. );
  12179. return;
  12180. }
  12181. }
  12182. }
  12183. b++;
  12184. if (index < 2) {
  12185. this.$message.error("每道题目至少需要设置2个选项。");
  12186. return;
  12187. }
  12188. if (
  12189. (aj[i].type == "2" && !aj[i].answer.length) ||
  12190. (aj[i].type == "1" &&
  12191. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  12192. (aj[i].answer !== 0 && !aj[i].answer)))
  12193. ) {
  12194. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  12195. return;
  12196. }
  12197. }
  12198. }
  12199. }
  12200. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12201. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12202. var elc = el.checkList.filter((element) => {
  12203. return element != "";
  12204. });
  12205. return (
  12206. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  12207. );
  12208. });
  12209. isTestJson.testCount = isTestJson.testJson.length;
  12210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12211. this.taskCount
  12212. ].toolChoose[this.toolIndex].testJson = isTestJson;
  12213. this.dialogVisibleChoice = false;
  12214. if (
  12215. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12216. .toolChoose[this.toolIndex].tool != 45
  12217. ) {
  12218. this.addTools(45, this.taskCount, this.toolIndex);
  12219. }
  12220. },
  12221. addVideoJson(videoJson) {
  12222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12223. this.taskCount
  12224. ].toolChoose[this.toolIndex].videoJson = videoJson;
  12225. this.dialogVisibleVideo = false;
  12226. if (
  12227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12228. .toolChoose[this.toolIndex].tool != 62
  12229. ) {
  12230. this.addTools(62, this.taskCount, this.toolIndex);
  12231. }
  12232. },
  12233. //自动获取剪贴板
  12234. pasteOption() {
  12235. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12236. if (!iframe) {
  12237. this.$message.error("请使用AI共创生成题目");
  12238. return;
  12239. }
  12240. let copyData = iframe.contentWindow.copyData;
  12241. if (!copyData || !copyData.selectData.length) {
  12242. this.$message.error("请使用AI共创生成题目");
  12243. return;
  12244. }
  12245. let selectData = copyData.selectData;
  12246. for (var i = 0; i < selectData.length; i++) {
  12247. let answer = 0;
  12248. switch (selectData[i].answer[0]) {
  12249. case "A":
  12250. answer = 0;
  12251. break;
  12252. case "B":
  12253. answer = 1;
  12254. break;
  12255. case "C":
  12256. answer = 2;
  12257. break;
  12258. case "D":
  12259. answer = 3;
  12260. break;
  12261. case "E":
  12262. answer = 4;
  12263. break;
  12264. default:
  12265. break;
  12266. }
  12267. this.testJson.testJson.push({
  12268. teststitle: selectData[i].subject,
  12269. testItem: selectData[i].options.length,
  12270. checkList: selectData[i].options,
  12271. timuList: [],
  12272. answer: answer,
  12273. type: "1",
  12274. });
  12275. this.testJson.testCount++;
  12276. }
  12277. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  12278. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  12279. var elc = el.checkList.filter((element) => {
  12280. return element != "";
  12281. });
  12282. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  12283. });
  12284. isTestJson.testCount = isTestJson.testJson.length;
  12285. if (!isTestJson.testCount) {
  12286. return;
  12287. }
  12288. this.testJson = isTestJson;
  12289. this.$forceUpdate();
  12290. },
  12291. pasteTask(taskJson) {
  12292. let stageTasksData = [];
  12293. if (taskJson) {
  12294. stageTasksData = taskJson;
  12295. } else {
  12296. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12297. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  12298. if (!iframe && !iframe2) {
  12299. this.$message.error("请使用AI共创生成");
  12300. return;
  12301. }
  12302. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12303. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12304. if (
  12305. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  12306. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  12307. ) {
  12308. this.$message.error("请使用AI共创生成");
  12309. return;
  12310. }
  12311. stageTasksData = copyData
  12312. ? copyData.tasksData
  12313. : copyData2
  12314. ? copyData2.tasksData
  12315. : [{ taskName: "", taskDecs: "" }];
  12316. }
  12317. let taskA = [];
  12318. let tasks = stageTasksData;
  12319. for (var j = 0; j < tasks.length; j++) {
  12320. taskA.push({
  12321. task: tasks[j].taskName,
  12322. taskDetail: tasks[j].taskDecs,
  12323. chapterData: [],
  12324. toolText: "",
  12325. toolChoose: [
  12326. {
  12327. tool: [],
  12328. toolDetail: "",
  12329. toolType: 0,
  12330. askCount: 1,
  12331. askTitle: "",
  12332. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12333. },
  12334. ],
  12335. isShowTools: false,
  12336. askCount: 1,
  12337. isFold: 1,
  12338. askTitle: "",
  12339. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12340. checkJson: [{ checkCount: [], checkPerent: [] }],
  12341. homeworkList: [],
  12342. });
  12343. }
  12344. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12345. this.$forceUpdate();
  12346. },
  12347. pasteStage(stageJson) {
  12348. let stageData = [];
  12349. if (stageJson) {
  12350. stageData = stageJson;
  12351. } else {
  12352. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  12353. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  12354. if (!iframe && !iframe2) {
  12355. this.$message.error("请使用AI共创生成");
  12356. return;
  12357. }
  12358. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12359. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12360. if (
  12361. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  12362. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  12363. ) {
  12364. this.$message.error("请使用AI共创生成");
  12365. return;
  12366. }
  12367. stageData = copyData
  12368. ? copyData.stageData
  12369. : copyData2
  12370. ? copyData2.stageData
  12371. : [""];
  12372. }
  12373. let stage = [];
  12374. for (var i = 0; i < stageData.length; i++) {
  12375. stage.push({
  12376. dyName: stageData[i], //单元标题
  12377. chapterInfo: [
  12378. {
  12379. isread: false,
  12380. chapterid: this.guid(),
  12381. title: "",
  12382. courseName: "",
  12383. taskJson: [
  12384. {
  12385. task: "",
  12386. taskDetail: "",
  12387. chapterData: [],
  12388. toolText: "",
  12389. toolChoose: [
  12390. {
  12391. tool: [],
  12392. toolDetail: "",
  12393. toolType: 0,
  12394. askCount: 1,
  12395. askTitle: "",
  12396. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12397. },
  12398. ],
  12399. isShowTools: false,
  12400. askCount: 1,
  12401. isFold: 1,
  12402. askTitle: "",
  12403. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12404. checkJson: [{ checkCount: [], checkPerent: [] }],
  12405. homeworkList: [],
  12406. },
  12407. ],
  12408. itemCount: 1,
  12409. fileList1: [],
  12410. video: [],
  12411. testData: [],
  12412. pData: [],
  12413. templateArray: [],
  12414. },
  12415. ],
  12416. });
  12417. }
  12418. let _this = this;
  12419. if (stageJson) {
  12420. if (!_this.cid) {
  12421. _this.unitJson = stage;
  12422. } else {
  12423. _this.unitIndex = 0;
  12424. _this.unitJson = stage;
  12425. _this.updateWork();
  12426. }
  12427. } else {
  12428. _this
  12429. .$confirm(
  12430. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  12431. "提示",
  12432. {
  12433. confirmButtonText: "确定",
  12434. cancelButtonText: "取消",
  12435. type: "warning",
  12436. }
  12437. )
  12438. .then(() => {
  12439. _this.unitIndex = 0;
  12440. _this.unitJson = stage;
  12441. // _this.steps++;
  12442. _this.updateWork();
  12443. })
  12444. .catch(() => {
  12445. return;
  12446. });
  12447. }
  12448. },
  12449. openStageBox() {
  12450. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12451. this.dialogVisibleStageChange = true;
  12452. },
  12453. updateChange() {
  12454. this.$confirm(
  12455. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12456. "提示",
  12457. {
  12458. confirmButtonText: "确定",
  12459. cancelButtonText: "取消",
  12460. type: "warning",
  12461. }
  12462. )
  12463. .then(() => {
  12464. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12465. this.updateWork();
  12466. this.dialogVisibleStageChange = false;
  12467. })
  12468. .catch(() => {
  12469. return;
  12470. });
  12471. },
  12472. addAnswer() {
  12473. if (this.answerQ == "") {
  12474. this.$message.error("请输入您想要问的问题");
  12475. return;
  12476. }
  12477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12478. this.taskCount
  12479. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12480. this.dialogVisible8 = false;
  12481. if (
  12482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12483. .toolChoose[this.toolIndex].tool != 15
  12484. ) {
  12485. this.addTools(15, this.taskCount, this.toolIndex);
  12486. }
  12487. },
  12488. addMp3Answer() {
  12489. if (this.answerQ == "") {
  12490. this.$message.error("请输入您想要回答的问题");
  12491. return;
  12492. }
  12493. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12494. this.taskCount
  12495. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12496. this.dialogVisibleMp3 = false;
  12497. },
  12498. addRateAnswer() {
  12499. var a = 1;
  12500. for (var i = 0; i < this.rateJson.length; i++) {
  12501. if (this.rateJson[i].value == "") {
  12502. a = 2;
  12503. break;
  12504. }
  12505. }
  12506. if (a == 2) {
  12507. this.$message.error("请把评价信息填写完整");
  12508. return;
  12509. }
  12510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12511. this.taskCount
  12512. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12513. this.dialogVisibleRate = false;
  12514. if (
  12515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12516. .toolChoose[this.toolIndex].tool != 40
  12517. ) {
  12518. this.addTools(40, this.taskCount, this.toolIndex);
  12519. }
  12520. },
  12521. addSelectAnswer() {
  12522. if (this.selectJson.url == "") {
  12523. this.$message.error("请上传题目");
  12524. return;
  12525. }
  12526. if (!this.selectJson.select.length) {
  12527. this.$message.error("请添加选项");
  12528. return;
  12529. }
  12530. if (!this.selectJson.answer.length) {
  12531. this.$message.error("请设置答案");
  12532. return;
  12533. }
  12534. var a = 1;
  12535. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12536. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12537. a = 2;
  12538. }
  12539. }
  12540. if (a == 2) {
  12541. this.$message.error("请设置答案");
  12542. return;
  12543. }
  12544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12545. this.taskCount
  12546. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12547. this.dialogVisibleSelect = false;
  12548. if (
  12549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12550. .toolChoose[this.toolIndex].tool != 41
  12551. ) {
  12552. this.addTools(41, this.taskCount, this.toolIndex);
  12553. }
  12554. },
  12555. nextSelectSteps() {
  12556. if (this.selectJson.url == "") {
  12557. this.$message.error("请上传题目");
  12558. return;
  12559. }
  12560. if (!this.selectJson.select.length) {
  12561. this.$message.error("请添加选项");
  12562. return;
  12563. } else {
  12564. for (var z = 0; z < this.selectJson.select.length; z++) {
  12565. let checkC = this.selectJson.select[z];
  12566. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12567. let checkC2 = this.selectJson.select[z2];
  12568. if (checkC == checkC2) {
  12569. this.$message.error(
  12570. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  12571. );
  12572. return;
  12573. }
  12574. }
  12575. }
  12576. }
  12577. var a = 1;
  12578. for (var i = 0; i < this.selectJson.select.length; i++) {
  12579. if (!this.selectJson.select[i]) {
  12580. a = 2;
  12581. }
  12582. }
  12583. if (a == 2) {
  12584. this.$message.error("添加的选项不能为空");
  12585. return;
  12586. }
  12587. this.selectSteps++;
  12588. },
  12589. selectCourseDetail() {
  12590. if (this.cid == "" || this.cid == undefined) {
  12591. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12592. this.isTeacherSee = true;
  12593. }
  12594. console.log("这是新增课程");
  12595. this.selectAllType();
  12596. } else {
  12597. this.cidType = 1;
  12598. let params = {
  12599. cid: this.cid,
  12600. };
  12601. this.ajax
  12602. .get(this.$store.state.api + "select_course_detail", params)
  12603. .then((res) => {
  12604. this.loading = true;
  12605. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12606. this.courseState = res.data[0][0].state;
  12607. for (var j = 0; j < this.unitJson.length; j++) {
  12608. for (
  12609. var k = 0;
  12610. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12611. k++
  12612. ) {
  12613. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12614. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12615. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12616. : [];
  12617. let _chapterData = [];
  12618. for (
  12619. var c = 0;
  12620. c <
  12621. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12622. .length;
  12623. c++
  12624. ) {
  12625. if (
  12626. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12627. ) {
  12628. _chapterData.push(
  12629. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12630. );
  12631. }
  12632. }
  12633. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12634. _chapterData;
  12635. }
  12636. }
  12637. this.$forceUpdate();
  12638. this.courseName = res.data[0][0].title;
  12639. this.courseText = res.data[0][0].brief;
  12640. this.evalua = res.data[0][0].evaId;
  12641. this.cover = JSON.parse(res.data[0][0].cover);
  12642. this.noneBtnImg = this.cover.length >= 1;
  12643. // this.checkboxList =
  12644. // res.data[0][0].course_student.length > 0
  12645. // ? JSON.parse(res.data[0][0].course_student)
  12646. // : [];
  12647. this.checkboxList2 = res.data[0][0].juri
  12648. ? res.data[0][0].juri.split(",")
  12649. : [];
  12650. this.inviteCode = [];
  12651. for (var i = 0; i < res.data[2].length; i++) {
  12652. this.inviteCode.push({
  12653. cid: res.data[2][i].classid,
  12654. ic: res.data[2][i].code,
  12655. });
  12656. }
  12657. this.checkboxList3 = res.data[0][0].course_teacher
  12658. ? res.data[0][0].course_teacher.split(",")
  12659. : [];
  12660. // this.isTeacherSee =
  12661. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12662. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12663. this.highSetting = res.data[0][0].highSetting == 1 ? true : false;
  12664. this.myWord = res.data[0][0].template;
  12665. this.templateC.id = "123";
  12666. this.courseUserid = res.data[0][0].userid;
  12667. // if(this.courseUserid == this.userid){
  12668. // this.InviteChange(this.checkboxList2)
  12669. // }
  12670. this.nbOrder = res.data[0][0].ordernumber;
  12671. this.courseTypeId = [];
  12672. for (var i = 0; i < res.data[1].length; i++) {
  12673. this.courseTypeId.push(res.data[1][i].typeid);
  12674. }
  12675. console.log(this.courseTypeId);
  12676. // if (this.timer) clearInterval(this.timer);
  12677. if (this.timer) clearTimeout(this.timer);
  12678. this.timer = null;
  12679. // this.timer = setInterval(() => {
  12680. this.seleteCourseUpdate();
  12681. this.setMan();
  12682. this.selectAllType();
  12683. this.unitJson[
  12684. this.unitIndex
  12685. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12686. // }, 5000);
  12687. this.$forceUpdate();
  12688. setTimeout(() => {
  12689. this.checkEva(this.evalua);
  12690. setTimeout(() => {
  12691. this.checkEva(this.evalua);
  12692. }, 100);
  12693. }, 100);
  12694. })
  12695. .catch((err) => {
  12696. console.error(err);
  12697. });
  12698. }
  12699. },
  12700. seleteCourseUpdate() {
  12701. let params = {
  12702. cid: this.cid,
  12703. };
  12704. this.ajax
  12705. .get(this.$store.state.api + "select_course_detail", params)
  12706. .then((res) => {
  12707. // console.log(this.unitJson);
  12708. let unitJson = JSON.parse(res.data[0][0].chapters);
  12709. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12710. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12711. let _unitJson = [];
  12712. let _chapAarry = [];
  12713. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12714. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12715. let index = 1;
  12716. let chapindex;
  12717. if (_unitJson2.length > unitJson.length) {
  12718. for (let c = 0; c < _unitJson2.length; c++) {
  12719. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12720. }
  12721. for (let j = 0; j < unitJson.length; j++) {
  12722. let count = 0;
  12723. for (let k = 0; k < _unitJson2.length; k++) {
  12724. if (
  12725. unitJson[j].chapterInfo[0].chapterid ==
  12726. _unitJson2[k].chapterInfo[0].chapterid
  12727. ) {
  12728. count++;
  12729. _chapAarry.splice(
  12730. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12731. 1
  12732. );
  12733. _unitJson.push(unitJson[j]);
  12734. break;
  12735. }
  12736. }
  12737. // if(count === 0){
  12738. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12739. // }
  12740. }
  12741. for (let k = 0; k < _unitJson2.length; k++) {
  12742. if (_unitJson2[k].isUpdate == 1) {
  12743. _chapAarry.splice(
  12744. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12745. 1
  12746. );
  12747. _unitJson.push(_unitJson2[k]);
  12748. }
  12749. }
  12750. console.log(_chapAarry);
  12751. for (let d = 0; d < _unitJson2.length; d++) {
  12752. if (
  12753. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12754. ) {
  12755. if (_unitIndex == d) {
  12756. index = 2;
  12757. }
  12758. chapindex = d;
  12759. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12760. }
  12761. }
  12762. } else {
  12763. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12764. }
  12765. for (let i = 0; i < unitJson.length; i++) {
  12766. if (
  12767. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12768. _unitJson[i].chapterInfo[0].chapterid !=
  12769. unitJson[i].chapterInfo[0].chapterid
  12770. ) {
  12771. if (i == _unitJson.length - 1) {
  12772. // this.unitIndex++
  12773. _unitIndex2++;
  12774. }
  12775. _unitJson.splice(i, 0, unitJson[i]);
  12776. } else if (i > _unitJson.length - 1) {
  12777. _unitJson.push(unitJson[i]);
  12778. } else if (
  12779. _unitJson[i].chapterInfo[0].chapterid ==
  12780. unitJson[i].chapterInfo[0].chapterid
  12781. ) {
  12782. _unitJson[i] = unitJson[i];
  12783. }
  12784. // if (i == _unitIndex) {
  12785. // continue;
  12786. // } else
  12787. }
  12788. if (_chapAarry.length && index != 2) {
  12789. if (chapindex < _unitIndex) {
  12790. this.isDelete = 2;
  12791. // this.unitIndex--;
  12792. _unitIndex2--;
  12793. } else if (
  12794. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12795. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12796. ) {
  12797. this.isDelete = 2;
  12798. for (let n = 0; n < _unitJson.length; n++) {
  12799. if (
  12800. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12801. _unitJson[n].chapterInfo[0].chapterid
  12802. ) {
  12803. // this.unitIndex = n;
  12804. _unitIndex2 = n;
  12805. _unitJson[n] = _unitJson2[_unitIndex];
  12806. break;
  12807. }
  12808. }
  12809. }
  12810. } else if (index != 2) {
  12811. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12812. _unitJson2[_unitIndex];
  12813. for (
  12814. var ci = 0;
  12815. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12816. ci++
  12817. ) {
  12818. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12819. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12820. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12821. .toolChoose
  12822. : [];
  12823. let _chapterData = [];
  12824. for (
  12825. var c = 0;
  12826. c <
  12827. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12828. .length;
  12829. c++
  12830. ) {
  12831. if (
  12832. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12833. .chapterData[c]
  12834. ) {
  12835. _chapterData.push(
  12836. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12837. .chapterData[c]
  12838. );
  12839. }
  12840. }
  12841. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12842. _chapterData;
  12843. }
  12844. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12845. }
  12846. if (index == 1) {
  12847. this.unitJson = _unitJson;
  12848. this.$forceUpdate();
  12849. setTimeout(() => {
  12850. if (this.unitIndex != _unitIndex2) {
  12851. this.isDelete = 2;
  12852. this.unitIndex = _unitIndex2;
  12853. }
  12854. }, 0);
  12855. this.timer = setTimeout(() => {
  12856. this.seleteCourseUpdate();
  12857. }, 5000);
  12858. } else if (index == 2) {
  12859. let _this = this;
  12860. _this
  12861. .$confirm(
  12862. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12863. "提示",
  12864. {
  12865. confirmButtonText: "需要",
  12866. cancelButtonText: "取消",
  12867. type: "warning",
  12868. }
  12869. )
  12870. .then(() => {
  12871. if (_this.time()) {
  12872. _this.restoreWork(
  12873. _chapAarry[0],
  12874. _unitJson,
  12875. chapindex,
  12876. _unitJson2,
  12877. _unitIndex2
  12878. );
  12879. }
  12880. })
  12881. .catch(() => {
  12882. _this.unitJson = _unitJson;
  12883. _this.$forceUpdate();
  12884. setTimeout(() => {
  12885. if (this.unitIndex != _unitIndex2) {
  12886. this.isDelete = 2;
  12887. this.unitIndex = _unitIndex2;
  12888. }
  12889. }, 0);
  12890. _this.timer = setTimeout(() => {
  12891. _this.seleteCourseUpdate();
  12892. }, 5000);
  12893. });
  12894. }
  12895. // 在复制操作之前记录滚动位置
  12896. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12897. // 执行复制操作
  12898. // 复制操作完成后恢复滚动位置
  12899. this.$nextTick(() => {
  12900. if(this.$refs.scrollContainer){
  12901. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12902. }
  12903. });
  12904. })
  12905. .catch((err) => {
  12906. console.error(err);
  12907. });
  12908. },
  12909. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12910. let params = [
  12911. {
  12912. cid: this.cid,
  12913. chapters: JSON.stringify(this.unitJson),
  12914. uid: this.userid,
  12915. chapid: chapid,
  12916. },
  12917. ];
  12918. this.ajax
  12919. .post(this.$store.state.api + "restoreWork", params)
  12920. .then((res) => {
  12921. this.$message({
  12922. message: "恢复成功",
  12923. type: "success",
  12924. });
  12925. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12926. this.unitJson = unitJson;
  12927. this.$forceUpdate();
  12928. setTimeout(() => {
  12929. if (this.unitIndex != unitIndex2) {
  12930. this.isDelete = 2;
  12931. this.unitIndex = unitIndex2;
  12932. }
  12933. }, 0);
  12934. this.timer = setTimeout(() => {
  12935. this.seleteCourseUpdate();
  12936. }, 5000);
  12937. })
  12938. .catch((err) => {
  12939. this.$message.error("网络不佳");
  12940. console.error(err);
  12941. });
  12942. },
  12943. getTypeName() {
  12944. console.log(this.courseTypeId);
  12945. this.$forceUpdate();
  12946. },
  12947. selectAllType() {
  12948. let params = {
  12949. org: this.org && this.org != "" ? this.org : "",
  12950. oid: this.oid && this.oid != "" ? this.oid : "",
  12951. stand: "cn"
  12952. };
  12953. this.ajax
  12954. .get(this.$store.state.api + "selectAllTypeStand", params)
  12955. .then((res) => {
  12956. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12957. res.data[0] = [...res.data[0], ...res.data[4]];
  12958. }
  12959. this.CourseType = res.data;
  12960. this.CourseType2 = [
  12961. { name: "智见课程", id: [] },
  12962. { name: "智行课程", id: [] },
  12963. { name: "智创课程", id: [] },
  12964. ];
  12965. for (var cti = 0; cti < res.data[0].length; cti++) {
  12966. if (
  12967. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12968. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12969. ) {
  12970. this.CourseType2[0].id.push(res.data[0][cti].id);
  12971. } else if (
  12972. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12973. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12974. ) {
  12975. this.CourseType2[1].id.push(res.data[0][cti].id);
  12976. } else if (
  12977. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12978. ) {
  12979. this.CourseType2[2].id.push(res.data[0][cti].id);
  12980. }
  12981. if (
  12982. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12983. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12984. ) {
  12985. res.data[0][cti].name = "年级";
  12986. } else if (
  12987. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12988. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12989. ) {
  12990. res.data[0][cti].name = "学科";
  12991. } else if (
  12992. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12993. ) {
  12994. res.data[0][cti].name = "主题";
  12995. }
  12996. }
  12997. let _courseTypeId = [];
  12998. for (var i = 0; i < res.data[0].length; i++) {
  12999. if (!this.cid) {
  13000. this.courseTypeId[res.data[0][i].id] = [];
  13001. }
  13002. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  13003. // }
  13004. this.CourseTypeJson[res.data[0][i].id] = [];
  13005. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  13006. if (res.data[0][i].name == "栏目") {
  13007. this.CourseType[0][i].name = "主题";
  13008. }
  13009. }
  13010. if (res.data[2].length == 0 && res.data[3].length == 0) {
  13011. for (var j = 0; j < res.data[1].length; j++) {
  13012. if (
  13013. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  13014. _courseTypeId.indexOf(res.data[1][j].id) == -1
  13015. ) {
  13016. _courseTypeId.push(res.data[1][j].id);
  13017. }
  13018. if (res.data[0][i].id == res.data[1][j].pid) {
  13019. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  13020. }
  13021. }
  13022. } else {
  13023. if (res.data[2].length > 0) {
  13024. for (var j = 0; j < res.data[2].length; j++) {
  13025. if (
  13026. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  13027. _courseTypeId.indexOf(res.data[2][j].id) == -1
  13028. ) {
  13029. _courseTypeId.push(res.data[2][j].id);
  13030. }
  13031. if (res.data[0][i].id == res.data[2][j].pid) {
  13032. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  13033. }
  13034. }
  13035. }
  13036. if (res.data[3].length > 0) {
  13037. for (var j = 0; j < res.data[3].length; j++) {
  13038. if (
  13039. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  13040. _courseTypeId.indexOf(res.data[3][j].id) == -1
  13041. ) {
  13042. _courseTypeId.push(res.data[3][j].id);
  13043. }
  13044. if (res.data[0][i].id == res.data[3][j].pid) {
  13045. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  13046. }
  13047. }
  13048. }
  13049. }
  13050. }
  13051. this.courseTypeId = _courseTypeId;
  13052. })
  13053. .catch((err) => {
  13054. console.error(err);
  13055. });
  13056. },
  13057. selectType() {
  13058. this.ajax
  13059. .get(this.$store.state.api + "selectType")
  13060. .then((res) => {
  13061. this.CourseType = res.data;
  13062. for (var i = 0; i < res.data[0].length; i++) {
  13063. if (!this.cid) {
  13064. this.courseTypeId[res.data[0][i].id] = "";
  13065. }
  13066. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  13067. if (res.data[0][i].name == "栏目") {
  13068. this.CourseType[0][i].name = "主题";
  13069. }
  13070. }
  13071. for (var j = 0; j < res.data[1].length; j++) {
  13072. if (res.data[0][i].id == res.data[1][j].pid) {
  13073. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13074. this.CourseTypeJson[res.data[0][i].id] = [];
  13075. }
  13076. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  13077. }
  13078. }
  13079. }
  13080. this.selectTypeByOid();
  13081. this.selectTypeByOrg();
  13082. })
  13083. .catch((err) => {
  13084. console.error(err);
  13085. });
  13086. },
  13087. selectTypeByOid() {
  13088. let params = {
  13089. oid: this.oid,
  13090. };
  13091. this.ajax
  13092. .get(this.$store.state.api + "selectTypeByOid", params)
  13093. .then((res) => {
  13094. for (var i = 0; i < res.data[0].length; i++) {
  13095. for (var j = 0; j < res.data[1].length; j++) {
  13096. if (res.data[0][i].id == res.data[1][j].pid) {
  13097. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13098. this.CourseTypeJson[res.data[0][i].id] = [];
  13099. }
  13100. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  13101. }
  13102. }
  13103. }
  13104. })
  13105. .catch((err) => {
  13106. console.error(err);
  13107. });
  13108. },
  13109. selectTypeByOrg() {
  13110. let params = {
  13111. oid: this.org,
  13112. };
  13113. this.ajax
  13114. .get(this.$store.state.api + "selectTypeByOrg", params)
  13115. .then((res) => {
  13116. for (var i = 0; i < res.data[0].length; i++) {
  13117. for (var j = 0; j < res.data[1].length; j++) {
  13118. if (res.data[0][i].id == res.data[1][j].pid) {
  13119. if (!this.CourseTypeJson[res.data[0][i].id]) {
  13120. this.CourseTypeJson[res.data[0][i].id] = [];
  13121. }
  13122. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  13123. }
  13124. }
  13125. }
  13126. this.$forceUpdate();
  13127. })
  13128. .catch((err) => {
  13129. console.error(err);
  13130. });
  13131. },
  13132. OtherMb(type, task) {
  13133. if (task === 0 || task) {
  13134. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13135. task
  13136. ].isEvaFold = true;
  13137. }
  13138. this.typeMode = type;
  13139. setTimeout(() => {
  13140. this.checkEva(this.checkId);
  13141. setTimeout(() => {
  13142. this.checkEva(this.checkId);
  13143. }, 100);
  13144. }, 100);
  13145. },
  13146. openMember() {
  13147. this.searchTN = "";
  13148. this.getTeacher();
  13149. this.dialogVisibleMember = true;
  13150. },
  13151. checkEva(id, type) {
  13152. this.dialogVisiblemb = false;
  13153. this.selectEva();
  13154. if (this.evalua != id && type == 2) {
  13155. this.$message.success("导入成功");
  13156. setTimeout(() => {
  13157. this.checkEva(id);
  13158. }, 100);
  13159. }
  13160. this.evalua = id;
  13161. this.checkId = id;
  13162. if (this.evalua != "") {
  13163. for (var i = 0; i < this.evaJuri.length; i++) {
  13164. if (this.evalua == this.evaJuri[i].id) {
  13165. this.eTitle = this.evaJuri[i].title;
  13166. this.eJson = JSON.parse(this.evaJuri[i].content);
  13167. }
  13168. }
  13169. this.data.data = [];
  13170. this.$forceUpdate();
  13171. setTimeout(() => {
  13172. this.setMindData();
  13173. }, 1000);
  13174. }
  13175. },
  13176. deleteEva() {
  13177. let _this = this;
  13178. if (_this.evalua == "") {
  13179. this.$message.warning("内容已经清空了,请勿重复清空");
  13180. return;
  13181. }
  13182. _this
  13183. .$confirm("确定删除此目标吗?", "提示", {
  13184. confirmButtonText: "确定",
  13185. cancelButtonText: "取消",
  13186. type: "warning",
  13187. })
  13188. .then(() => {
  13189. _this.evalua = "";
  13190. _this.checkId = "";
  13191. _this.eTitle = "";
  13192. let _unitJson = _this.unitJson;
  13193. for (var i = 0; i < _unitJson.length; i++) {
  13194. let _task = _unitJson[i].chapterInfo[0].taskJson;
  13195. for (var j = 0; j < _task.length; j++) {
  13196. let _eList = _task[j].eList;
  13197. for (var k = 0; k < _eList.length; k++) {
  13198. delete _eList[k].target;
  13199. }
  13200. }
  13201. }
  13202. _this.$forceUpdate();
  13203. if (_this.cid) {
  13204. _this.updateWork();
  13205. }
  13206. })
  13207. .catch(() => {
  13208. return;
  13209. });
  13210. },
  13211. selectEva() {
  13212. let params = {
  13213. oid: this.oid,
  13214. };
  13215. this.ajax
  13216. .get(this.$store.state.api + "selectAllEvaluation", params)
  13217. .then((res) => {
  13218. this.evaJuri = res.data[0];
  13219. // 在复制操作之前记录滚动位置
  13220. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  13221. // 执行复制操作
  13222. // 复制操作完成后恢复滚动位置
  13223. this.$nextTick(() => {
  13224. if(this.$refs.scrollContainer){
  13225. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  13226. }
  13227. });
  13228. })
  13229. .catch((err) => {
  13230. console.error(err);
  13231. });
  13232. },
  13233. setMindData() {
  13234. let targetArray = [];
  13235. this.data.data = [];
  13236. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  13237. let _eJson = Object.keys(this.eJson);
  13238. let _e = this.eJson;
  13239. for (let i = 0; i < _eJson.length; i++) {
  13240. let element = _e[_eJson[i]];
  13241. this.data.data.push({
  13242. id: element.id,
  13243. parentid: "root",
  13244. topic: element.name,
  13245. });
  13246. // targetArray.push({
  13247. // id: element.id,
  13248. // parentid: "root",
  13249. // name: element.name,
  13250. // });
  13251. targetArray.push({
  13252. value: element.name,
  13253. label: element.name,
  13254. children: [],
  13255. });
  13256. let _eJsonc = Object.keys(element.child);
  13257. let _e2 = element.child;
  13258. for (let j = 0; j < _eJsonc.length; j++) {
  13259. let _ec = _e2[_eJsonc[j]];
  13260. this.data.data.push({
  13261. id: _ec.id,
  13262. parentid: element.id,
  13263. topic: _ec.name,
  13264. });
  13265. // targetArray.push({
  13266. // id: _ec.id,
  13267. // parentid: element.id,
  13268. // name: _ec.name,
  13269. // });
  13270. targetArray[i].children.push({
  13271. value: _ec.name,
  13272. label: _ec.name,
  13273. children: [],
  13274. });
  13275. let _eJsonz = Object.keys(_ec.child);
  13276. let _e3 = _ec.child;
  13277. for (let z = 0; z < _eJsonz.length; z++) {
  13278. let _ez = _e3[_eJsonz[z]];
  13279. this.data.data.push({
  13280. id: _ez.id,
  13281. parentid: _ec.id,
  13282. topic: _ez.name,
  13283. });
  13284. // targetArray.push({
  13285. // id: _ez.id,
  13286. // parentid: _ec.id,
  13287. // name: _ez.name,
  13288. // });
  13289. targetArray[i].children[j].children.push({
  13290. value: _ez.name,
  13291. label: _ez.name,
  13292. });
  13293. }
  13294. }
  13295. }
  13296. this.targetArray = targetArray;
  13297. this.$forceUpdate();
  13298. },
  13299. /*添加评价 */
  13300. addEList(index, tIndex) {
  13301. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  13302. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  13303. value: "",
  13304. detail: "",
  13305. score: 5,
  13306. })
  13307. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  13308. { value: "", detail: "", score: 5 },
  13309. ]);
  13310. this.$forceUpdate();
  13311. },
  13312. openEList(index, tIndex) {
  13313. this.evaIndex = index;
  13314. this.evatIndex = tIndex;
  13315. this.evaBoxDialog = true;
  13316. },
  13317. addCET(index, tIndex) {
  13318. this.cetIndex = index;
  13319. this.cettIndex = tIndex;
  13320. this.selectAllType1();
  13321. },
  13322. addCETemplate() {
  13323. var array =
  13324. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  13325. .eList;
  13326. let params = [
  13327. {
  13328. uid: this.userid,
  13329. n: this.templateName,
  13330. json: JSON.stringify(array),
  13331. t: 1,
  13332. oid: this.oid,
  13333. },
  13334. ];
  13335. this.ajax
  13336. .post(this.$store.state.api + "addCETShare", params)
  13337. .then((res) => {
  13338. this.addTypeByCET(res.data[0][0].id);
  13339. })
  13340. .catch((err) => {
  13341. this.$message.error("网络不佳");
  13342. console.error(err);
  13343. });
  13344. },
  13345. addTypeByCET(id) {
  13346. if (this.setTypeJson.two == "") {
  13347. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  13348. return;
  13349. }
  13350. let params = {
  13351. cid: id,
  13352. };
  13353. this.ajax
  13354. .get(this.$store.state.api + "deleteCETLabel", params)
  13355. .then((res) => {
  13356. for (var i = 0; i < 2; i++) {
  13357. let tid = "";
  13358. if (i == 0) {
  13359. tid = this.setTypeJson.one;
  13360. } else {
  13361. tid = this.setTypeJson.two;
  13362. }
  13363. let params = [
  13364. {
  13365. cid: id,
  13366. tid: tid,
  13367. uid: this.userid,
  13368. },
  13369. ];
  13370. this.ajax
  13371. .post(this.$store.state.api + "addCETLabel", params)
  13372. .then((res) => {
  13373. this.$message({
  13374. message: "添加成功",
  13375. type: "success",
  13376. });
  13377. this.close();
  13378. })
  13379. .catch((err) => {
  13380. this.$message.error("网络不佳");
  13381. console.error(err);
  13382. });
  13383. }
  13384. })
  13385. .catch((err) => {
  13386. this.$message.error("网络不佳");
  13387. console.error(err);
  13388. });
  13389. },
  13390. updateEvaJson(array) {
  13391. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13392. this.evatIndex
  13393. ].eList = array;
  13394. },
  13395. forceUpdate() {
  13396. this.$forceUpdate();
  13397. },
  13398. deletEList(index, tIndex, eIndex) {
  13399. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13400. eIndex,
  13401. 1
  13402. );
  13403. this.$forceUpdate();
  13404. },
  13405. getChoosePic(t) {
  13406. this.chooseType = t;
  13407. this.getAllBanner();
  13408. },
  13409. getAllBanner() {
  13410. this.sysPicVisible = true;
  13411. let params = {
  13412. t: this.chooseType,
  13413. };
  13414. this.ajax
  13415. .get(this.$store.state.api + "selectAllBanner", params)
  13416. .then((res) => {
  13417. this.sysPic = res.data[0];
  13418. })
  13419. .catch((err) => {
  13420. console.error(err);
  13421. });
  13422. },
  13423. // getClass() {
  13424. // let params = {
  13425. // oid: this.oid,
  13426. // };
  13427. // this.ajax
  13428. // .get(this.$store.state.api + "selectClassBySchool", params)
  13429. // .then((res) => {
  13430. // this.classJuri = res.data[0];
  13431. // })
  13432. // .catch((err) => {
  13433. // console.error(err);
  13434. // });
  13435. // },
  13436. deleteSysPic() {
  13437. this.cover = [];
  13438. this.isSysPic = false;
  13439. this.isSysPic2 = false;
  13440. },
  13441. deleteSelectPic() {
  13442. this.selectJson.url = "";
  13443. },
  13444. setEListStar() {
  13445. this.$forceUpdate();
  13446. },
  13447. deletRateList(i) {
  13448. this.rateJson.splice(i, 1);
  13449. },
  13450. addRateList() {
  13451. this.rateJson.push({ detail: "", score: 5, value: "" });
  13452. },
  13453. addSt() {
  13454. this.sentenceList.push({
  13455. sentenceTitle: "",
  13456. addSentence: [],
  13457. rightAnswer: [],
  13458. });
  13459. },
  13460. addSen(i) {
  13461. if (!this.sentenceList[i].sentenceTitle) {
  13462. this.$message.error("请填写卡片内容!");
  13463. return;
  13464. }
  13465. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13466. this.$message.error("卡片内容字数不能超过10位");
  13467. return;
  13468. }
  13469. if (
  13470. this.sentenceList[i].addSentence.indexOf(
  13471. this.sentenceList[i].sentenceTitle
  13472. ) !== -1
  13473. ) {
  13474. this.$message.error("不能添加重复的卡片内容!");
  13475. return;
  13476. }
  13477. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13478. // this.isPushTitleList.push(this.sentenceTitle);
  13479. this.sentenceList[i].sentenceTitle = "";
  13480. },
  13481. setRightAnswer(s, i, j) {
  13482. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13483. this.sentenceList[i].rightAnswer.push(s);
  13484. }
  13485. },
  13486. returnCard(r, i, j) {
  13487. this.sentenceList[i].rightAnswer.splice(j, 1);
  13488. },
  13489. addSentenceTool() {
  13490. for (var i = 0; i < this.sentenceList.length; i++) {
  13491. if (this.sentenceList[i].rightAnswer.length == 0) {
  13492. this.$message.error(`请将题目${i + 1}设置完整。`);
  13493. return;
  13494. }
  13495. if (
  13496. this.sentenceList[i].addSentence.length !=
  13497. this.sentenceList[i].rightAnswer.length
  13498. ) {
  13499. this.$message.error(`请将题目${i + 1}设置完整。`);
  13500. return;
  13501. }
  13502. }
  13503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13504. this.taskCount
  13505. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13506. this.sentenceList = [
  13507. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13508. ];
  13509. this.dialogVisibleSentence = false;
  13510. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13511. // itemTaskIndex
  13512. // ].toolChoose[toolIndex].tool = [];
  13513. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13514. // itemTaskIndex
  13515. // ].toolChoose[toolIndex].tool.push(i);
  13516. if (
  13517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13518. .toolChoose[this.toolIndex].tool != 47
  13519. ) {
  13520. this.addTools(47, this.taskCount, this.toolIndex);
  13521. }
  13522. },
  13523. addTableJson() {
  13524. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13525. // this.$message.error("请将信息填写完整!");
  13526. // return;
  13527. // }
  13528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13529. this.taskCount
  13530. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13531. // this.tableJson = [{ text: "" }];
  13532. // this.dialogVisibleTable = false;
  13533. this.$message.success("上传成功");
  13534. if (
  13535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13536. .toolChoose[this.toolIndex].tool != 48
  13537. ) {
  13538. this.addTools(48, this.taskCount, this.toolIndex);
  13539. }
  13540. },
  13541. addWordJson() {
  13542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13543. this.taskCount
  13544. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13545. // this.wordJson = [{ text: "" }];
  13546. // this.dialogVisibleWord = false;
  13547. this.$message.success("上传成功");
  13548. if (
  13549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13550. .toolChoose[this.toolIndex].tool != 52
  13551. ) {
  13552. this.addTools(52, this.taskCount, this.toolIndex);
  13553. }
  13554. },
  13555. addMoreUpload() {
  13556. if (this.uploadJson.length == 0) {
  13557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13558. this.taskCount
  13559. ].toolChoose[this.toolIndex].uploadJson = [];
  13560. } else {
  13561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13562. this.taskCount
  13563. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13564. }
  13565. this.uploadJson = [];
  13566. this.dialogVisibleMoreUpload = false;
  13567. if (
  13568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13569. .toolChoose[this.toolIndex].tool != 50
  13570. ) {
  13571. this.addTools(50, this.taskCount, this.toolIndex);
  13572. }
  13573. },
  13574. addPreTime() {
  13575. if (this.preTime == 0) {
  13576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13577. this.taskCount
  13578. ].toolChoose[this.toolIndex].preTime = 0;
  13579. } else {
  13580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13581. this.taskCount
  13582. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13583. }
  13584. this.preTime = 0;
  13585. this.dialogVisiblePreTime = false;
  13586. if (
  13587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13588. .toolChoose[this.toolIndex].tool != 10
  13589. ) {
  13590. this.addTools(10, this.taskCount, this.toolIndex);
  13591. }
  13592. },
  13593. goToTask(i) {
  13594. this.toolIndexType = "";
  13595. if (this.isClickColor == i + 1) {
  13596. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13597. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13598. // } else {
  13599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13600. i
  13601. ].toolOpen = true;
  13602. // }
  13603. this.$forceUpdate();
  13604. return;
  13605. }
  13606. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13607. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13608. // } else {
  13609. document.querySelectorAll(".basic_box")[0].scrollTop =
  13610. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13611. this.isClickColor = i + 1;
  13612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13613. // }
  13614. this.$forceUpdate();
  13615. },
  13616. taskOpen(i, stageIndex) {
  13617. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13618. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13619. } else {
  13620. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13621. }
  13622. if(this.this.cid){
  13623. this.updateWork3(stageIndex);
  13624. }
  13625. this.$forceUpdate();
  13626. },
  13627. goToTask2(i, stage) {
  13628. this.toolIndexType = "";
  13629. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13630. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13631. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13632. // } else {
  13633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13634. i
  13635. ].toolOpen = true;
  13636. // }
  13637. this.$forceUpdate();
  13638. return;
  13639. }
  13640. if (this.unitIndex != stage) {
  13641. if (this.panUnitJson() == 2) {
  13642. return;
  13643. }
  13644. this.unitSet(stage);
  13645. }
  13646. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13647. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13648. // } else {
  13649. document.querySelectorAll(".basic_box")[0].scrollTop =
  13650. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13651. this.isClickColor = i + 1;
  13652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13653. // }
  13654. this.$forceUpdate();
  13655. },
  13656. taskMove(type, index) {
  13657. this.$confirm(
  13658. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13659. "提示",
  13660. {
  13661. confirmButtonText: "确定",
  13662. cancelButtonText: "取消",
  13663. type: "warning",
  13664. }
  13665. )
  13666. .then(() => {
  13667. if (type == 1) {
  13668. if (index > 0) {
  13669. let a = JSON.parse(
  13670. JSON.stringify(
  13671. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13672. index - 1
  13673. ]
  13674. )
  13675. );
  13676. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13679. }
  13680. } else {
  13681. if (
  13682. index <
  13683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13684. ) {
  13685. let a = JSON.parse(
  13686. JSON.stringify(
  13687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13688. index + 1
  13689. ]
  13690. )
  13691. );
  13692. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13695. }
  13696. }
  13697. this.$forceUpdate();
  13698. })
  13699. .catch(() => {
  13700. return;
  13701. });
  13702. },
  13703. stageMove(type, index) {
  13704. if (type == 1) {
  13705. if (index > 0) {
  13706. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13707. let acid = JSON.parse(
  13708. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13709. );
  13710. let bcid = JSON.parse(
  13711. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13712. );
  13713. this.unitJson3[index - 1] = this.unitJson3[index];
  13714. this.unitJson3[index] = a;
  13715. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13716. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13717. }
  13718. } else {
  13719. if (index < this.unitJson3.length - 1) {
  13720. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13721. let acid = JSON.parse(
  13722. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13723. );
  13724. let bcid = JSON.parse(
  13725. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13726. );
  13727. this.unitJson3[index + 1] = this.unitJson3[index];
  13728. this.unitJson3[index] = a;
  13729. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13730. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13731. }
  13732. }
  13733. this.$forceUpdate();
  13734. },
  13735. addGroup(i) {
  13736. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13737. this.groupJson.group.push({
  13738. name: "第" + (this.groupJson.group.length + 1) + "组",
  13739. });
  13740. },
  13741. deleteGroup(i) {
  13742. this.groupJson.group.splice(i, 1);
  13743. },
  13744. numberPan() {
  13745. if (
  13746. /[^\d]/.test(this.groupJson.number) ||
  13747. this.groupJson.number < 2 ||
  13748. this.groupJson.number > 10
  13749. ) {
  13750. this.$message.error("请输入2-10的数字");
  13751. this.groupJson.number = "";
  13752. }
  13753. },
  13754. addGroupJson() {
  13755. for (var i = 0; i < this.groupJson.group.length; i++) {
  13756. if (!this.groupJson.group[i].name) {
  13757. this.$message.error("请将信息填写完整!");
  13758. return;
  13759. }
  13760. }
  13761. if (!this.groupJson.number) {
  13762. this.$message.error("请将信息填写完整!");
  13763. return;
  13764. }
  13765. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13766. this.taskCount
  13767. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13768. JSON.stringify(this.groupJson)
  13769. );
  13770. this.dialogVisibleGroup = false;
  13771. this.groupJson = {};
  13772. if (
  13773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13774. .toolChoose[this.toolIndex].tool != 49
  13775. ) {
  13776. this.addTools(49, this.taskCount, this.toolIndex);
  13777. }
  13778. },
  13779. updateTime(preTime) {
  13780. this.preTime = preTime;
  13781. },
  13782. InviteChange(val) {
  13783. console.log(val);
  13784. let _check = [];
  13785. let _check2 = [];
  13786. for (var i = 0; i < this.grade2.length; i++) {
  13787. var gid = this.grade2[i].id;
  13788. _check.push(gid);
  13789. }
  13790. for (var i = 0; i < this.checkboxList2.length; i++) {
  13791. var _id = this.checkboxList2[i];
  13792. if (_check.indexOf(_id) !== -1) {
  13793. _check2.push(_id);
  13794. }
  13795. }
  13796. this.checkAll = _check2.length === _check.length;
  13797. return;
  13798. let array = JSON.parse(JSON.stringify(val));
  13799. this.inviteCode = this.inviteCode.filter((el) => {
  13800. if (val.indexOf(el.cid) != -1) {
  13801. array.splice(array.indexOf(el.cid), 1);
  13802. return el;
  13803. }
  13804. });
  13805. for (var i = 0; i < array.length; i++) {
  13806. this.getInviteCode(array[i]);
  13807. }
  13808. },
  13809. InviteChange2(val) {
  13810. console.log(val);
  13811. let _check = [];
  13812. let _check2 = [];
  13813. for (var i = 0; i < this.teacherJuri.length; i++) {
  13814. var gid = this.teacherJuri[i].userid;
  13815. _check.push(gid);
  13816. }
  13817. for (var i = 0; i < this.checkboxList3.length; i++) {
  13818. var _id = this.checkboxList3[i];
  13819. if (_check.indexOf(_id) !== -1) {
  13820. _check2.push(_id);
  13821. }
  13822. }
  13823. this.checkAll2 = _check2.length === _check.length;
  13824. this.setMan();
  13825. return;
  13826. let array = JSON.parse(JSON.stringify(val));
  13827. this.inviteCode = this.inviteCode.filter((el) => {
  13828. if (val.indexOf(el.cid) != -1) {
  13829. array.splice(array.indexOf(el.cid), 1);
  13830. return el;
  13831. }
  13832. });
  13833. for (var i = 0; i < array.length; i++) {
  13834. this.getInviteCode(array[i]);
  13835. }
  13836. },
  13837. handleCheckAllChange(val) {
  13838. if (val) {
  13839. for (var i = 0; i < this.grade2.length; i++) {
  13840. var gid = this.grade2[i].id;
  13841. if (this.checkboxList2.indexOf(gid) === -1) {
  13842. this.checkboxList2.push(gid);
  13843. }
  13844. }
  13845. } else {
  13846. let _check = [];
  13847. let _check2 = [];
  13848. for (var i = 0; i < this.grade2.length; i++) {
  13849. var gid = this.grade2[i].id;
  13850. _check.push(gid);
  13851. }
  13852. for (var i = 0; i < this.checkboxList2.length; i++) {
  13853. var _id = this.checkboxList2[i];
  13854. if (_check.indexOf(_id) === -1) {
  13855. _check2.push(_id);
  13856. }
  13857. }
  13858. this.checkboxList2 = _check2;
  13859. }
  13860. this.isIndeterminate = false;
  13861. },
  13862. handleCheckAllChange2(val) {
  13863. if (val) {
  13864. for (var i = 0; i < this.teacherJuri.length; i++) {
  13865. var gid = this.teacherJuri[i].userid;
  13866. if (this.checkboxList3.indexOf(gid) === -1) {
  13867. this.checkboxList3.push(gid);
  13868. }
  13869. }
  13870. } else {
  13871. let _check = [];
  13872. let _check2 = [];
  13873. for (var i = 0; i < this.teacherJuri.length; i++) {
  13874. var gid = this.teacherJuri[i].userid;
  13875. _check.push(gid);
  13876. }
  13877. for (var i = 0; i < this.checkboxList3.length; i++) {
  13878. var _id = this.checkboxList3[i];
  13879. if (_check.indexOf(_id) === -1) {
  13880. _check2.push(_id);
  13881. }
  13882. }
  13883. this.checkboxList3 = _check2;
  13884. }
  13885. this.isIndeterminate2 = false;
  13886. },
  13887. async getInviteCode(cid) {
  13888. let code = this.randomNumber();
  13889. let params = {
  13890. code: code,
  13891. oid: this.oid,
  13892. };
  13893. let type = 1;
  13894. for (var i = 0; i < this.inviteCode.length; i++) {
  13895. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13896. type = 2;
  13897. }
  13898. }
  13899. if (type == 2) {
  13900. this.getInviteCode(cid);
  13901. return;
  13902. }
  13903. const res = await this.ajax.get(
  13904. this.$store.state.api + "selectInviteCode2",
  13905. params
  13906. );
  13907. if (
  13908. res.data.length &&
  13909. res.data[0].length &&
  13910. res.data[0][0].courseId != this.cid
  13911. ) {
  13912. this.getInviteCode(cid);
  13913. return;
  13914. }
  13915. let array = [];
  13916. for (var i = 0; i < this.inviteCode.length; i++) {
  13917. array.push(this.inviteCode[i].cid);
  13918. }
  13919. if (array.indexOf(cid) != -1) {
  13920. this.inviteCode[array.indexOf(cid)].ic = code;
  13921. } else {
  13922. this.inviteCode.push({ cid: cid, ic: code });
  13923. }
  13924. },
  13925. OpenInviteD(cid) {
  13926. let array = [];
  13927. this.icode = "";
  13928. for (var i = 0; i < this.inviteCode.length; i++) {
  13929. array.push(this.inviteCode[i].cid);
  13930. }
  13931. if (array.indexOf(cid) != -1) {
  13932. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13933. }
  13934. this.inviteId = cid;
  13935. this.dialogVisibleInvite = true;
  13936. },
  13937. addInvite() {
  13938. let reg = /^[A-Za-z0-9]{4,}$/;
  13939. if (!reg.test(this.icode)) {
  13940. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13941. return;
  13942. }
  13943. let type = 1;
  13944. for (var i = 0; i < this.inviteCode.length; i++) {
  13945. if (
  13946. this.inviteCode[i].cid != this.inviteId &&
  13947. this.icode == this.inviteCode[i].ic
  13948. ) {
  13949. type = 2;
  13950. }
  13951. }
  13952. if (type == 2) {
  13953. this.$message.error("已有此随机码,不能重复");
  13954. return;
  13955. }
  13956. let params = {
  13957. code: this.icode,
  13958. oid: this.oid,
  13959. };
  13960. this.ajax
  13961. .get(this.$store.state.api + "selectInviteCode", params)
  13962. .then((res) => {
  13963. if (
  13964. res.data.length &&
  13965. res.data[0].length &&
  13966. res.data[0][0].courseId != this.cid
  13967. ) {
  13968. this.$message.error("已有此随机码,不能重复");
  13969. return;
  13970. }
  13971. let array = [];
  13972. for (var i = 0; i < this.inviteCode.length; i++) {
  13973. array.push(this.inviteCode[i].cid);
  13974. }
  13975. if (array.indexOf(this.inviteId) != -1) {
  13976. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13977. } else {
  13978. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13979. }
  13980. this.icode = "";
  13981. this.dialogVisibleInvite = false;
  13982. })
  13983. .catch((err) => {
  13984. console.error(err);
  13985. });
  13986. },
  13987. randomNumber() {
  13988. // 随机生成两位数
  13989. // let num = Math.floor(Math.random() * 900) + 100;
  13990. // 生成 0 到 99 之间的随机整数
  13991. const randomNumber = Math.floor(Math.random() * 100);
  13992. // 如果随机数小于 10,补上前导零
  13993. const num =
  13994. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13995. // 随机生成两个大写字母
  13996. let letters = "";
  13997. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13998. for (let i = 0; i < 3; i++) {
  13999. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  14000. }
  14001. // 随机生成两位数字和字母的组合
  14002. let mix = "";
  14003. let chars =
  14004. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  14005. for (let i = 0; i < 3; i++) {
  14006. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  14007. mix += char;
  14008. }
  14009. // 随机选择一种类型
  14010. let type = Math.floor(Math.random() * 3);
  14011. return num;
  14012. // 根据类型输出结果
  14013. switch (type) {
  14014. case 0:
  14015. console.log(num); // 输出两位数
  14016. return num;
  14017. case 1:
  14018. console.log(letters); // 输出两个大写字母
  14019. return letters;
  14020. case 2:
  14021. console.log(mix); // 输出两位数字和字母的组合
  14022. return mix;
  14023. }
  14024. },
  14025. getPaste() {
  14026. let iframe = window.topU.document.querySelectorAll("#AIChat iframe")[0];
  14027. let iframe2 = window.topU.document.querySelectorAll("#AIChat aigpt")[0];
  14028. if (!iframe && !iframe2) {
  14029. return;
  14030. }
  14031. let copyData = iframe ? iframe.contentWindow.copyData : false;
  14032. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  14033. if (copyData && copyData.stageData && copyData.stageData.length) {
  14034. this.isPasteStage = true;
  14035. }
  14036. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  14037. this.isPasteStage = true;
  14038. }
  14039. if (copyData && copyData.selectData.length) {
  14040. this.isPasteChoice = true;
  14041. }
  14042. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  14043. this.isPasteTask = true;
  14044. }
  14045. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  14046. this.isPasteTask = true;
  14047. }
  14048. },
  14049. searchImage() {
  14050. var _this = this;
  14051. _this.imageList = [];
  14052. if (!_this.searchImageValue) {
  14053. _this.sysPicVisible2 = true;
  14054. return;
  14055. }
  14056. _this.imageloading = true;
  14057. _this.ajax
  14058. .post("https://gpt.cocorobo.cn/search_image", {
  14059. page: _this.ppage,
  14060. pagesize: 9,
  14061. query: _this.searchImageValue,
  14062. })
  14063. .then(function (response) {
  14064. // console.log(response.data.data);
  14065. var data = response.data.FunctionResponse.result;
  14066. for (var i = 0; i < data.length; i++) {
  14067. _this.imageList.push({ url: data[i].thumbnail });
  14068. }
  14069. _this.imageloading = false;
  14070. })
  14071. .catch(function (error) {
  14072. console.log(error);
  14073. });
  14074. _this.sysPicVisible2 = true;
  14075. },
  14076. changePicture() {
  14077. this.ppage++;
  14078. this.searchImage();
  14079. },
  14080. resetImage() {
  14081. this.ppage = 1;
  14082. this.searchImage();
  14083. },
  14084. jumpGj(i, j) {
  14085. if (i + 1 != this.isClickColor) {
  14086. this.isClickColor = i + 1;
  14087. }
  14088. var a = document.scrollingElement;
  14089. this.toolIndexType = `gj${i}${j}`;
  14090. let target = document.querySelector(`#gj${i}${j}`);
  14091. if (target) {
  14092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  14093. setTimeout(() => {
  14094. target.scrollIntoView(true);
  14095. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  14096. j
  14097. ].isFold3 = false;
  14098. setTimeout(() => {
  14099. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  14100. }, 0);
  14101. }, 0);
  14102. }
  14103. },
  14104. jumpGj2(i, j, k) {
  14105. if (this.unitIndex != k) {
  14106. if (this.panUnitJson() == 2) {
  14107. return;
  14108. }
  14109. this.unitSet(k);
  14110. }
  14111. setTimeout(() => {
  14112. if (i + 1 != this.isClickColor) {
  14113. this.isClickColor = i + 1;
  14114. }
  14115. var a = document.scrollingElement;
  14116. this.toolIndexType = `gj${i}${j}${k}`;
  14117. let target = document.querySelector(`#gj${i}${j}`);
  14118. if (target) {
  14119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  14120. setTimeout(() => {
  14121. target.scrollIntoView(true);
  14122. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  14123. j
  14124. ].isFold3 = false;
  14125. setTimeout(() => {
  14126. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  14127. }, 0);
  14128. }, 0);
  14129. }
  14130. }, 0);
  14131. },
  14132. dragStart(val, i, j) {
  14133. console.log(this.taskCount);
  14134. this.dragType = "drag";
  14135. this.taskCount = j;
  14136. this.oldIndex = i;
  14137. this.oldData = val;
  14138. },
  14139. dragOver(i, j) {
  14140. this.typeIndex = "chapter-" + j + "-" + i;
  14141. this.newIndex = i;
  14142. },
  14143. dragEnd() {
  14144. if (this.dragType != "drag") {
  14145. this.typeIndex = "";
  14146. this.newIndex = "";
  14147. this.dragType = "";
  14148. this.isdrag = "";
  14149. return;
  14150. }
  14151. console.log(this.taskCount);
  14152. let newItems = [
  14153. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  14154. .chapterData,
  14155. ];
  14156. // 删除老的节点
  14157. newItems.splice(this.oldIndex, 1);
  14158. // 在列表中目标位置增加新的节点
  14159. newItems.splice(this.newIndex, 0, this.oldData);
  14160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14161. this.taskCount
  14162. ].chapterData = [...newItems];
  14163. this.typeIndex = "";
  14164. this.newIndex = "";
  14165. this.dragType = "";
  14166. this.isdrag = "";
  14167. this.$forceUpdate();
  14168. },
  14169. dragTaskStart(val, i, j) {
  14170. this.dragType = "task";
  14171. this.oldIndex = i;
  14172. this.oldData = val;
  14173. this.oldUnitIndex = j;
  14174. },
  14175. dragTaskOver(i, j) {
  14176. this.typeIndex = "task-" + i;
  14177. this.newIndex = i;
  14178. this.checkUnitIndex = j;
  14179. },
  14180. async dragTaskEnd() {
  14181. if (this.dragType != "task") {
  14182. this.newIndex = "";
  14183. this.dragType = "";
  14184. this.typeIndex = "";
  14185. this.checkUnitIndex = "";
  14186. this.isdrag = "";
  14187. return;
  14188. }
  14189. if (
  14190. this.newIndex == this.oldIndex &&
  14191. this.oldUnitIndex == this.checkUnitIndex
  14192. ) {
  14193. this.newIndex = "";
  14194. this.dragType = "";
  14195. this.typeIndex = "";
  14196. this.checkUnitIndex = "";
  14197. this.isdrag = "";
  14198. return;
  14199. }
  14200. let count1 = await this.getWorksCount(
  14201. 2,
  14202. this.checkUnitIndex,
  14203. this.newIndex,
  14204. 0
  14205. );
  14206. let count2 = await this.getWorksCount(
  14207. 2,
  14208. this.oldUnitIndex,
  14209. this.oldIndex,
  14210. 0
  14211. );
  14212. if (count1 > 0 || count2 > 0) {
  14213. this.$confirm(
  14214. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  14215. "提示",
  14216. {
  14217. confirmButtonText: "确定",
  14218. cancelButtonText: "取消",
  14219. type: "warning",
  14220. }
  14221. )
  14222. .then(() => {
  14223. if (this.oldUnitIndex != this.checkUnitIndex) {
  14224. let newItems = [
  14225. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14226. ];
  14227. // 删除老的节点
  14228. newItems.splice(this.oldIndex, 1);
  14229. // 在列表中目标位置增加新的节点
  14230. let newItems2 = [
  14231. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14232. ];
  14233. newItems2.splice(this.newIndex, 0, this.oldData);
  14234. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14235. ...newItems,
  14236. ];
  14237. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14238. ...newItems2,
  14239. ];
  14240. } else {
  14241. let newItems = [
  14242. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14243. ];
  14244. // 删除老的节点
  14245. newItems.splice(this.oldIndex, 1);
  14246. // 在列表中目标位置增加新的节点
  14247. newItems.splice(this.newIndex, 0, this.oldData);
  14248. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14249. ...newItems,
  14250. ];
  14251. }
  14252. this.typeIndex = "";
  14253. this.newIndex = "";
  14254. this.dragType = "";
  14255. this.checkUnitIndex = "";
  14256. this.isdrag = "";
  14257. this.updateWork();
  14258. this.$forceUpdate();
  14259. })
  14260. .catch(() => {
  14261. this.newIndex = "";
  14262. this.dragType = "";
  14263. this.typeIndex = "";
  14264. this.checkUnitIndex = "";
  14265. this.isdrag = "";
  14266. return;
  14267. });
  14268. } else {
  14269. if (this.oldUnitIndex != this.checkUnitIndex) {
  14270. let newItems = [
  14271. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14272. ];
  14273. // 删除老的节点
  14274. newItems.splice(this.oldIndex, 1);
  14275. // 在列表中目标位置增加新的节点
  14276. let newItems2 = [
  14277. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  14278. ];
  14279. newItems2.splice(this.newIndex, 0, this.oldData);
  14280. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14281. ...newItems,
  14282. ];
  14283. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  14284. ...newItems2,
  14285. ];
  14286. } else {
  14287. let newItems = [
  14288. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  14289. ];
  14290. // 删除老的节点
  14291. newItems.splice(this.oldIndex, 1);
  14292. // 在列表中目标位置增加新的节点
  14293. newItems.splice(this.newIndex, 0, this.oldData);
  14294. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  14295. ...newItems,
  14296. ];
  14297. }
  14298. this.typeIndex = "";
  14299. this.newIndex = "";
  14300. this.dragType = "";
  14301. this.checkUnitIndex = "";
  14302. this.isdrag = "";
  14303. this.updateWork();
  14304. this.$forceUpdate();
  14305. }
  14306. },
  14307. dragUnitStart(val, i) {
  14308. this.dragType = "Unit";
  14309. this.oldIndex = i;
  14310. this.oldData = val;
  14311. },
  14312. dragUnitOver(i) {
  14313. this.typeIndex = "Unit-" + i;
  14314. this.newIndex = i;
  14315. console.log(i, this.unitJson[i].toolOpen);
  14316. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  14317. this.unitJson[i].toolOpen = true;
  14318. this.updateWork();
  14319. this.$forceUpdate();
  14320. }
  14321. },
  14322. async dragUnitEnd() {
  14323. if (this.dragType != "Unit") {
  14324. this.newIndex = "";
  14325. this.dragType = "";
  14326. this.typeIndex = "";
  14327. this.isdrag = "";
  14328. return;
  14329. }
  14330. if (this.newIndex == this.oldIndex) {
  14331. this.newIndex = "";
  14332. this.dragType = "";
  14333. this.typeIndex = "";
  14334. this.isdrag = "";
  14335. return;
  14336. }
  14337. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  14338. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  14339. console.log(count1, count2);
  14340. if (count1 > 0 || count2 > 0) {
  14341. this.$confirm(
  14342. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  14343. "提示",
  14344. {
  14345. confirmButtonText: "确定",
  14346. cancelButtonText: "取消",
  14347. type: "warning",
  14348. }
  14349. )
  14350. .then(() => {
  14351. let newItems = [...this.unitJson];
  14352. // 删除老的节点
  14353. newItems.splice(this.oldIndex, 1);
  14354. // 在列表中目标位置增加新的节点
  14355. newItems.splice(this.newIndex, 0, this.oldData);
  14356. this.unitJson = [...newItems];
  14357. this.typeIndex = "";
  14358. this.newIndex = "";
  14359. this.dragType = "";
  14360. this.isdrag = "";
  14361. this.updateWork();
  14362. this.$forceUpdate();
  14363. })
  14364. .catch(() => {
  14365. this.newIndex = "";
  14366. this.dragType = "";
  14367. this.typeIndex = "";
  14368. this.isdrag = "";
  14369. return;
  14370. });
  14371. } else {
  14372. let newItems = [...this.unitJson];
  14373. // 删除老的节点
  14374. newItems.splice(this.oldIndex, 1);
  14375. // 在列表中目标位置增加新的节点
  14376. newItems.splice(this.newIndex, 0, this.oldData);
  14377. this.unitJson = [...newItems];
  14378. this.typeIndex = "";
  14379. this.newIndex = "";
  14380. this.dragType = "";
  14381. this.isdrag = "";
  14382. this.updateWork();
  14383. this.$forceUpdate();
  14384. }
  14385. },
  14386. getWorksCount(type, stage, task, tool) {
  14387. return new Promise((resolve, reject) => {
  14388. let params = [
  14389. {
  14390. cid: this.cid,
  14391. stage: stage,
  14392. task: task,
  14393. tool: tool,
  14394. type: type,
  14395. },
  14396. ];
  14397. this.ajax
  14398. .post(this.$store.state.api + "getCourseWorkCount", params)
  14399. .then((res) => {
  14400. let count = res.data[0][0].count;
  14401. resolve(count);
  14402. })
  14403. .catch((err) => {
  14404. resolve(0);
  14405. this.$message.error("网络不佳");
  14406. console.error(err);
  14407. });
  14408. });
  14409. },
  14410. getTwoType(id) {
  14411. this.twoJson = [];
  14412. var array = this.CourseTypeJson1[
  14413. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14414. ].filter((e) => {
  14415. return e.ppid == id;
  14416. });
  14417. this.twoJson = array;
  14418. this.$forceUpdate();
  14419. },
  14420. ctype() {
  14421. this.oneJson =
  14422. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14423. },
  14424. selectAllType1() {
  14425. this.CourseType1 = [];
  14426. this.CourseTypeJson1 = {};
  14427. this.courseTypeId1 = {};
  14428. this.$forceUpdate();
  14429. let params = {
  14430. org: this.org && this.org != "" ? this.org : "",
  14431. oid: this.oid && this.oid != "" ? this.oid : "",
  14432. };
  14433. this.ajax
  14434. .get(this.$store.state.api + "selectAllEvaType", params)
  14435. .then((res) => {
  14436. this.CourseType1 = res.data;
  14437. for (var i = 0; i < res.data[0].length; i++) {
  14438. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14439. res.data[0][i].name = "一级分类";
  14440. } else if (
  14441. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14442. ) {
  14443. res.data[0][i].name = "二级分类";
  14444. }
  14445. if (!this.cid) {
  14446. this.courseTypeId1[res.data[0][i].id] = [];
  14447. }
  14448. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14449. this.CourseTypeJson1[res.data[0][i].id] = [];
  14450. }
  14451. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14452. for (var j = 0; j < res.data[1].length; j++) {
  14453. if (res.data[0][i].id == res.data[1][j].pid) {
  14454. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14455. }
  14456. }
  14457. // } else {
  14458. if (res.data[2].length > 0) {
  14459. for (var j = 0; j < res.data[2].length; j++) {
  14460. if (res.data[0][i].id == res.data[2][j].pid) {
  14461. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14462. }
  14463. }
  14464. }
  14465. if (res.data[3].length > 0) {
  14466. for (var j = 0; j < res.data[3].length; j++) {
  14467. if (res.data[0][i].id == res.data[3][j].pid) {
  14468. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14469. }
  14470. }
  14471. }
  14472. // }
  14473. }
  14474. this.ctype();
  14475. this.cetBoxDialog = true;
  14476. })
  14477. .catch((err) => {
  14478. console.error(err);
  14479. });
  14480. },
  14481. openCodeEditor(type,val, unitIndex,itemTaskIndex,index1){
  14482. console.log('openCodeEditor',type,val,unitIndex,itemTaskIndex,index1);
  14483. this.$refs.CodeEditorRef.open(type,val, unitIndex,itemTaskIndex, index1)
  14484. },
  14485. addHtmlSuccess({Tname,url,type,unitIndex,itemTaskIndex,index1}){
  14486. console.log('addHtmlSuccess',name,url,'type:',type,'unitIndex',unitIndex,'itemTaskIndex',itemTaskIndex,'index1',index1);
  14487. if (type == 1) {
  14488. this.unitJson[unitIndex].chapterInfo[0].taskJson[
  14489. itemTaskIndex
  14490. ].chapterData.splice(index1,1,{
  14491. name: Tname,
  14492. url: url,
  14493. type: 16
  14494. })
  14495. }else{
  14496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14497. itemTaskIndex
  14498. ].chapterData.push({
  14499. name: Tname,
  14500. url: url,
  14501. type: 16
  14502. });
  14503. }
  14504. },
  14505. openAddApp(i) {
  14506. this.lineCount = i;
  14507. let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14508. this.lineCount
  14509. ].chapterData.findIndex(i => i.type == 15);
  14510. let _obj = {}
  14511. if (_index != -1) {
  14512. _obj = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14513. this.lineCount
  14514. ].chapterData[_index]
  14515. }
  14516. this.$refs.appDialog.openG(_obj, "", "", "", 2);
  14517. },
  14518. selectAppSuccess({ data, type }) {
  14519. let _index = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14520. this.lineCount
  14521. ].chapterData.findIndex(i => i.type == 15);
  14522. if (_index != -1) {
  14523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14524. this.lineCount
  14525. ].chapterData.splice(_index, 1);
  14526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14527. this.lineCount
  14528. ].chapterData.push({
  14529. name: data.name,
  14530. title: data.name,
  14531. id:data.id,
  14532. url: data.url,
  14533. type: 15
  14534. });
  14535. } else {
  14536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  14537. this.lineCount
  14538. ].chapterData.push({
  14539. name: data.name,
  14540. title: data.name,
  14541. id:data.id,
  14542. url: data.url,
  14543. type: 15
  14544. });
  14545. }
  14546. this.imgChange1(null, null, 8, this.lineCount);
  14547. this.dialogVisible7 = false;
  14548. }
  14549. },
  14550. beforeDestroy() {
  14551. clearTimeout(this.timer);
  14552. this.timer = null;
  14553. clearInterval(this.timer2);
  14554. this.timer2 = null;
  14555. clearInterval(this.pasteTimer);
  14556. this.pasteTimer = null;
  14557. },
  14558. beforeRouteLeave(to, from, next) {
  14559. clearTimeout(this.timer);
  14560. this.timer = null;
  14561. clearInterval(this.timer2);
  14562. this.timer2 = null;
  14563. clearInterval(this.pasteTimer);
  14564. this.pasteTimer = null;
  14565. next();
  14566. },
  14567. mounted(){
  14568. this.$nextTick(()=>{
  14569. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  14570. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  14571. this.rightBoxHeight = height1 + height2
  14572. })
  14573. },
  14574. created() {
  14575. this.getStudent();
  14576. this.getTeacher();
  14577. this.getClass();
  14578. this.selectGrage();
  14579. this.getTemplate();
  14580. // this.selectType();
  14581. this.selectEva();
  14582. this.loading = false;
  14583. this.timer2 = setInterval(() => {
  14584. this.selectEva();
  14585. }, 5000);
  14586. this.pasteTimer = setInterval(() => {
  14587. this.getPaste();
  14588. }, 1000);
  14589. setTimeout(() => {
  14590. this.selectCourseDetail();
  14591. }, 500);
  14592. let _this = this;
  14593. window.pasteStage = function (json) {
  14594. _this.pasteStage(json);
  14595. };
  14596. window.pasteTask = function (json) {
  14597. _this.pasteTask(json);
  14598. };
  14599. },
  14600. };
  14601. </script>
  14602. <style scoped>
  14603. @media screen and (max-width: 1280px) {
  14604. .mbCss {
  14605. flex-direction: column !important;
  14606. }
  14607. .pjCss {
  14608. width: 100% !important;
  14609. }
  14610. .evaCss {
  14611. width: 100% !important;
  14612. margin-top: 10px;
  14613. }
  14614. }
  14615. .el-table >>> .even_row {
  14616. background-color: #f1f1f1 !important;
  14617. }
  14618. .dialog_diy >>> .el-dialog__header {
  14619. background: #3c3c3c !important;
  14620. padding: 15px 20px;
  14621. }
  14622. .dialog_diy >>> .el-dialog__title {
  14623. color: #fff;
  14624. }
  14625. .dialog_diy >>> .el-dialog__headerbtn {
  14626. top: 19px;
  14627. }
  14628. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14629. color: #fff;
  14630. }
  14631. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14632. color: #fff;
  14633. }
  14634. .dialog_diy >>> .el-dialog__body,
  14635. .dialog_diy >>> .el-dialog__footer {
  14636. background: #fafafa;
  14637. }
  14638. .dialog_diy3 >>> .el-dialog__body,
  14639. .dialog_diy3 >>> .el-dialog__footer {
  14640. background: #eee !important;
  14641. }
  14642. .dialog_diy3 >>> .el-dialog__body {
  14643. padding: 20px 20px;
  14644. }
  14645. .dialog_diyStage >>> .el-dialog__body {
  14646. padding: 10px;
  14647. }
  14648. .source_diy >>> .el-dialog {
  14649. height: 100% !important;
  14650. margin: 0 auto !important;
  14651. }
  14652. .source_diy >>> .el-dialog__body {
  14653. height: calc(100% - 185px);
  14654. overflow: auto;
  14655. background: #e6eaf0;
  14656. }
  14657. .source_diy >>> .el-dialog__footer {
  14658. background: #e6eaf0 !important;
  14659. }
  14660. .left {
  14661. border-right: 1px solid rgb(60, 94, 143);
  14662. display: flex;
  14663. flex-direction: column;
  14664. align-items: center;
  14665. min-height: 600px;
  14666. width: 385px;
  14667. height: 80%;
  14668. }
  14669. .tips {
  14670. color: rgb(128, 128, 128);
  14671. font-size: 12px;
  14672. width: 270px;
  14673. margin: 40px;
  14674. }
  14675. .pb_content {
  14676. height: 100% !important;
  14677. /* margin: 0 20px 0 20px; */
  14678. }
  14679. .pb_content_body {
  14680. width: 100% !important;
  14681. height: 100%;
  14682. }
  14683. .info_solid {
  14684. width: 270px;
  14685. height: 30px;
  14686. border-left: 1px solid #bdbdbd;
  14687. margin: 10px 0px 10px 30px;
  14688. }
  14689. .info_steps {
  14690. width: 270px;
  14691. font-size: 0.875rem;
  14692. display: flex;
  14693. align-items: center;
  14694. }
  14695. .info_steps span:nth-child(1) {
  14696. width: 30px;
  14697. height: 30px;
  14698. background: rgba(0, 0, 0, 0.38);
  14699. display: block;
  14700. color: #fff;
  14701. border-radius: 40px;
  14702. text-align: center;
  14703. line-height: 30px;
  14704. }
  14705. .steps_active {
  14706. background: #3d67bc !important;
  14707. }
  14708. .info_steps span:nth-child(2) {
  14709. margin-left: 5px;
  14710. }
  14711. .right {
  14712. height: 100%;
  14713. width: 100%;
  14714. display: flex;
  14715. overflow: hidden;
  14716. flex-direction: column;
  14717. }
  14718. .basic_box {
  14719. margin: 0 auto;
  14720. position: relative;
  14721. padding: 0 20px 0 20px;
  14722. }
  14723. .basic_box_success {
  14724. width: 100%;
  14725. min-height: 455px;
  14726. padding: 50px 0;
  14727. position: relative;
  14728. text-align: center;
  14729. border-bottom: 1px solid #bfbfbf;
  14730. box-sizing: border-box;
  14731. display: flex;
  14732. align-items: center;
  14733. flex-direction: column;
  14734. justify-content: center;
  14735. }
  14736. .info_title {
  14737. font-size: 1.5em;
  14738. margin-right: 25px;
  14739. /* margin: 20px 30px 20px 30px; */
  14740. }
  14741. .bInfo_title {
  14742. text-align: left;
  14743. margin: 10px 0;
  14744. }
  14745. .small_title {
  14746. font-size: 14px;
  14747. line-height: 40px;
  14748. }
  14749. .chapter_beizhu {
  14750. font-size: 12px;
  14751. font-weight: bold;
  14752. float: right;
  14753. color: rgb(128, 128, 128);
  14754. margin-top: 5px;
  14755. }
  14756. .chapter_uploadBox1 {
  14757. text-align: left;
  14758. background-color: rgb(242, 242, 242);
  14759. width: 100%;
  14760. height: 67px;
  14761. padding: 0px 15px;
  14762. border-radius: 8px;
  14763. overflow: hidden;
  14764. font-size: 16px;
  14765. box-sizing: border-box;
  14766. position: relative;
  14767. }
  14768. .chapter_add {
  14769. width: 100%;
  14770. height: 32px;
  14771. margin-top: 15px;
  14772. cursor: pointer;
  14773. }
  14774. .chapter_add_l {
  14775. margin-left: 5px;
  14776. width: 30px;
  14777. height: 30px;
  14778. float: left;
  14779. border: 1px solid #aaa;
  14780. color: #aaa;
  14781. border-radius: 50%;
  14782. font-size: 25px;
  14783. text-align: center;
  14784. }
  14785. .chapter_add_r {
  14786. font-size: 18px;
  14787. height: 40px;
  14788. line-height: 30px;
  14789. text-indent: 10px;
  14790. color: #aaa;
  14791. }
  14792. .chapter_add_r span {
  14793. font-size: 12px;
  14794. color: rgb(204, 204, 204);
  14795. }
  14796. .chapter_add_input {
  14797. display: none;
  14798. }
  14799. .line {
  14800. width: 85%;
  14801. margin: 0 auto;
  14802. border-top: 1px solid #e5e5e5;
  14803. margin-top: 20px;
  14804. }
  14805. .info_btnBox {
  14806. width: calc(100%);
  14807. display: flex;
  14808. justify-content: center;
  14809. height: 80px;
  14810. align-items: center;
  14811. background: #fff;
  14812. margin: 0 auto;
  14813. border-top: 2px solid rgb(228, 232, 237);
  14814. box-sizing: border-box;
  14815. }
  14816. .info_btnBox2 {
  14817. width: calc(100%);
  14818. display: flex;
  14819. justify-content: center;
  14820. height: 20px;
  14821. align-items: center;
  14822. background: #fff;
  14823. margin: 0 auto;
  14824. border-top: 2px solid rgb(228, 232, 237);
  14825. box-sizing: border-box;
  14826. overflow: hidden;
  14827. cursor: pointer;
  14828. }
  14829. .info_btnBox3 {
  14830. width: calc(100%);
  14831. display: flex;
  14832. justify-content: flex-end;
  14833. padding: 0 20px;
  14834. height: 60px;
  14835. align-items: center;
  14836. background: unset;
  14837. margin: 0 auto;
  14838. /* border-top: 1px solid rgb(228, 232, 237); */
  14839. box-sizing: border-box;
  14840. overflow: hidden;
  14841. cursor: pointer;
  14842. background: #fff;
  14843. border-radius: 10px;
  14844. }
  14845. .info_btn + .info_btn {
  14846. margin-left: 15px;
  14847. }
  14848. .info_btn,
  14849. .teacherWord {
  14850. color: #fff;
  14851. background-color: #0f7eff;
  14852. padding: 8px 24px;
  14853. font-size: 0.9375rem;
  14854. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  14855. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  14856. min-width: 64px;
  14857. font-weight: 500;
  14858. border-radius: 4px;
  14859. box-sizing: border-box;
  14860. border: none;
  14861. cursor: pointer;
  14862. }
  14863. .teacherWord {
  14864. width: 105px !important;
  14865. text-align: center !important;
  14866. line-height: 36px !important;
  14867. padding: 0 !important;
  14868. font-size: 14px !important;
  14869. margin: 10px 0 !important;
  14870. }
  14871. .template_box {
  14872. display: flex;
  14873. flex-wrap: wrap;
  14874. }
  14875. .wordTeacher {
  14876. display: flex;
  14877. flex-direction: column;
  14878. width: 100px;
  14879. height: 100px;
  14880. text-align: center;
  14881. font-size: 13px;
  14882. margin: 0 20px 20px 0;
  14883. background: #f0f4fa;
  14884. position: relative;
  14885. border-radius: 5px;
  14886. align-items: center;
  14887. justify-content: center;
  14888. border: 1px solid #cad1dc;
  14889. color: #0e1e33;
  14890. /* padding: 25px 0px; */
  14891. cursor: pointer;
  14892. }
  14893. .wordTeacher::after {
  14894. content: "";
  14895. display: block;
  14896. position: absolute;
  14897. width: 15px;
  14898. height: 15px;
  14899. right: 10px;
  14900. top: 10px;
  14901. background-image: url(../../../assets/icon/new/choose_a.png);
  14902. background-size: 100% 100%;
  14903. }
  14904. .wordTeacherA::after {
  14905. background-image: url(../../../assets/icon/new/choose_b.png);
  14906. }
  14907. .wordTeacher:nth-child(5n) {
  14908. margin-right: 0px;
  14909. }
  14910. .wordPic {
  14911. margin: 0 auto;
  14912. width: 30px;
  14913. height: 30px;
  14914. cursor: pointer;
  14915. }
  14916. .deleteWord {
  14917. width: 22px;
  14918. height: 22px;
  14919. position: absolute;
  14920. right: 5px;
  14921. top: -15px;
  14922. cursor: pointer;
  14923. display: none;
  14924. z-index: 999;
  14925. }
  14926. .wordPic > img,
  14927. .deleteWord > img,
  14928. .addToolImg > img {
  14929. width: 100%;
  14930. height: 100%;
  14931. }
  14932. .info_btn:hover {
  14933. background-color: #4f7cd5 !important;
  14934. }
  14935. .cru_selectBox {
  14936. display: flex;
  14937. margin: 15px 0;
  14938. flex-wrap: nowrap;
  14939. white-space: nowrap;
  14940. overflow: auto;
  14941. position: relative;
  14942. height: 40px;
  14943. max-width: calc(100% - 175px);
  14944. }
  14945. .cru_selectBox::-webkit-scrollbar {
  14946. /*滚动条整体样式*/
  14947. width: 6px;
  14948. /*高宽分别对应横竖滚动条的尺寸*/
  14949. height: 6px;
  14950. }
  14951. /*定义滚动条轨道 内阴影+圆角*/
  14952. .cru_selectBox::-webkit-scrollbar-track {
  14953. border-radius: 10px;
  14954. background-color: #eee;
  14955. }
  14956. /*定义滑块 内阴影+圆角*/
  14957. .cru_selectBox::-webkit-scrollbar-thumb {
  14958. border-radius: 10px;
  14959. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14960. background-color: rgba(0, 0, 0, 0.1);
  14961. }
  14962. .cru_line {
  14963. position: absolute;
  14964. bottom: 0px;
  14965. transition: all 0.5s;
  14966. left: 0px;
  14967. width: 50px;
  14968. height: 4px;
  14969. left: 10px;
  14970. border-radius: 2px;
  14971. background: #3681fc;
  14972. }
  14973. .cru_select {
  14974. font-size: 18px;
  14975. margin-right: 20px;
  14976. margin-left: 5px;
  14977. cursor: pointer;
  14978. color: #0e1e33;
  14979. }
  14980. .cru_select:hover {
  14981. color: #3681fc !important;
  14982. }
  14983. .cru_selected {
  14984. color: #3681fc !important;
  14985. font-weight: bold;
  14986. }
  14987. .chapter_box {
  14988. margin-top: 10px;
  14989. width: 100%;
  14990. padding: 10px 20px;
  14991. background: #fff;
  14992. border-radius: 8px;
  14993. box-sizing: border-box;
  14994. }
  14995. .chapter_contentbox {
  14996. display: flex;
  14997. align-items: center;
  14998. /* margin-top: 15px; */
  14999. }
  15000. .chapter_contentbox .cc_title {
  15001. margin: 0px;
  15002. color: black;
  15003. display: block;
  15004. white-space: nowrap;
  15005. overflow: hidden;
  15006. text-overflow: ellipsis;
  15007. margin-right: 20px;
  15008. font-size: 18px;
  15009. height: 20px;
  15010. line-height: 22px;
  15011. min-width: fit-content;
  15012. display: flex;
  15013. }
  15014. .chapter_contentbox .cc_title::before {
  15015. content: "";
  15016. height: 100%;
  15017. width: 3px;
  15018. background: #3681fc;
  15019. border-radius: 3px;
  15020. opacity: 1;
  15021. display: block;
  15022. margin-right: 10px;
  15023. }
  15024. .chapter_contentbox .cc_input {
  15025. width: 100%;
  15026. display: flex;
  15027. }
  15028. .show_taskD {
  15029. min-width: fit-content;
  15030. margin-left: 10px;
  15031. display: flex;
  15032. align-items: center;
  15033. font-size: 14px;
  15034. cursor: pointer;
  15035. color: #717c8d;
  15036. }
  15037. .show_taskD > img {
  15038. width: 15px;
  15039. margin-right: 5px;
  15040. transition: 0.2s all;
  15041. transform: rotate(-90deg);
  15042. }
  15043. .show_taskD.show > img {
  15044. transform: rotate(0deg);
  15045. }
  15046. .show_toolD {
  15047. min-width: fit-content;
  15048. margin-left: 10px;
  15049. display: flex;
  15050. align-items: center;
  15051. font-size: 14px;
  15052. cursor: pointer;
  15053. color: #717c8d;
  15054. /* position: absolute;
  15055. right: 45px;
  15056. top: 5px; */
  15057. }
  15058. .show_toolD > img {
  15059. width: 15px;
  15060. margin-right: 5px;
  15061. transition: 0.2s all;
  15062. transform: rotate(-90deg);
  15063. }
  15064. .show_toolD.show > img {
  15065. transform: rotate(0deg);
  15066. }
  15067. .remove {
  15068. background-image: url("../../../assets/icon/new/delete_u.png");
  15069. cursor: pointer;
  15070. opacity: 0.5;
  15071. width: 30px;
  15072. min-width: 30px;
  15073. height: 30px;
  15074. background-size: 100% 100%;
  15075. background-repeat: no-repeat;
  15076. margin-left: 10px;
  15077. }
  15078. .remove1 {
  15079. background-image: url("../../../assets/remove1.png");
  15080. background-repeat: no-repeat;
  15081. background-position: 5px 10px;
  15082. width: 40px;
  15083. height: 50px;
  15084. cursor: pointer;
  15085. margin-left: 10px;
  15086. }
  15087. .binfo_input {
  15088. width: 100%;
  15089. margin: 0;
  15090. padding: 12px 14px;
  15091. display: block;
  15092. min-width: 0;
  15093. outline: none;
  15094. box-sizing: border-box;
  15095. background: none;
  15096. border: none;
  15097. border-radius: 4px;
  15098. background: #fff;
  15099. font-size: 16px;
  15100. resize: none;
  15101. font-family: "Microsoft YaHei";
  15102. min-height: 48px;
  15103. /* border: 1px solid #3682fc00; */
  15104. border: 1.5px solid #cad1dc;
  15105. }
  15106. .binfo_textarea {
  15107. border: 1.5px solid #cad1dc;
  15108. font-size: 16px;
  15109. resize: none;
  15110. /* background: #f6f6f6; */
  15111. font-family: "Microsoft YaHei";
  15112. }
  15113. .binfo_input:focus-visible {
  15114. border: 1.5px solid #3681fc !important;
  15115. }
  15116. .time {
  15117. display: flex;
  15118. margin: 35px 0 80px 0;
  15119. }
  15120. .chapter_btnbox {
  15121. width: 160px;
  15122. border-radius: 5px;
  15123. border: 2px dashed gray;
  15124. display: flex;
  15125. padding: 8px 50px;
  15126. align-items: center;
  15127. justify-content: center;
  15128. margin: 30px auto 0;
  15129. cursor: pointer;
  15130. }
  15131. .icon_add {
  15132. position: relative;
  15133. width: 24px;
  15134. padding-top: 20px;
  15135. border-radius: 100%;
  15136. border-width: 2px;
  15137. border-style: solid;
  15138. border-color: gray;
  15139. }
  15140. .icon_add i:nth-child(1) {
  15141. position: absolute;
  15142. left: 50%;
  15143. top: 50%;
  15144. height: 60%;
  15145. transform: translate(-50%, -50%);
  15146. border-width: 1px;
  15147. border-style: solid;
  15148. border-color: inherit;
  15149. }
  15150. .icon_add i:nth-child(2) {
  15151. position: absolute;
  15152. top: 50%;
  15153. left: 50%;
  15154. width: 60%;
  15155. transform: translate(-50%, -50%);
  15156. border-width: 1px;
  15157. border-style: solid;
  15158. border-color: inherit;
  15159. }
  15160. .chapter_btn_w {
  15161. font-size: 0.9375rem;
  15162. font-weight: bold;
  15163. color: gray;
  15164. margin-left: 20px;
  15165. }
  15166. .disUoloadSty >>> .el-icon-plus {
  15167. display: none !important;
  15168. /* 上传按钮隐藏 */
  15169. }
  15170. .imgLeft {
  15171. margin: 15px 0;
  15172. }
  15173. .add_info_box {
  15174. margin: 0 0 0 auto;
  15175. display: flex;
  15176. flex-wrap: wrap;
  15177. }
  15178. .add_info_box button {
  15179. margin: 0 5px 10px 0;
  15180. }
  15181. .add_info_box2 {
  15182. display: flex;
  15183. align-items: center;
  15184. flex-wrap: wrap;
  15185. }
  15186. .add_info_box2::after {
  15187. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  15188. color: red;
  15189. font-size: 14px;
  15190. margin-bottom: 10px;
  15191. }
  15192. .add_chapters_box {
  15193. text-align: left;
  15194. background-color: #fff;
  15195. width: 100%;
  15196. border-radius: 4px;
  15197. font-size: 16px;
  15198. box-sizing: border-box;
  15199. position: relative;
  15200. padding: 0 15px;
  15201. height: auto;
  15202. overflow-y: auto;
  15203. overflow-x: hidden;
  15204. border: 1px solid #cad1dc;
  15205. }
  15206. .add_chapters_box.add_c_none {
  15207. display: flex;
  15208. justify-content: center;
  15209. align-items: center;
  15210. padding: 15px;
  15211. }
  15212. .add_c_none > img {
  15213. width: 25px;
  15214. }
  15215. .add_chapters_box.add_c_none > span {
  15216. font-size: 14px;
  15217. font-weight: 400;
  15218. margin: 0 0 5px 5px;
  15219. }
  15220. .homework_box {
  15221. display: flex;
  15222. align-items: flex-start;
  15223. flex-wrap: wrap;
  15224. margin: 15px 0 0 0;
  15225. flex-direction: column;
  15226. align-content: flex-start;
  15227. }
  15228. .course_homework {
  15229. display: flex;
  15230. justify-content: center;
  15231. flex-direction: row;
  15232. align-items: center;
  15233. margin: 0 10px 0 0;
  15234. }
  15235. .course_homework >>> .el-input__inner {
  15236. width: 140px;
  15237. margin-left: 15px;
  15238. }
  15239. .chapter_upload_move {
  15240. position: relative;
  15241. background-color: #fff;
  15242. position: absolute;
  15243. width: 100%;
  15244. top: 0px;
  15245. left: 0px;
  15246. border: 1px solid #eee;
  15247. border-radius: 5px;
  15248. transition: width 2s;
  15249. -moz-transition: width 2s;
  15250. -webkit-transition: width 2s;
  15251. -o-transition: width 2s;
  15252. }
  15253. .chapter_upload_l_i {
  15254. background-image: url("../../../assets/icon.png");
  15255. background-position: 3px -165px;
  15256. width: 30px;
  15257. height: 30px;
  15258. margin: 10px auto 0 auto;
  15259. }
  15260. .course_input_box {
  15261. display: flex;
  15262. margin-right: 20px;
  15263. width: 100%;
  15264. align-items: center;
  15265. position: relative;
  15266. }
  15267. .course_input_box > .binfo_input {
  15268. width: calc(100% - 0 - 200px - 20px);
  15269. margin: 0 10px;
  15270. }
  15271. .bb_courseIcon {
  15272. width: 57px;
  15273. height: 45px;
  15274. background: #f0f4fa;
  15275. border-radius: 5px 0px 0px 5px;
  15276. display: flex;
  15277. align-items: center;
  15278. justify-content: center;
  15279. border-right: 1.5px solid rgb(202, 209, 220);
  15280. box-sizing: border-box;
  15281. position: absolute;
  15282. left: 1.5px;
  15283. }
  15284. .bb_courseIcon > img {
  15285. width: 25px;
  15286. height: auto;
  15287. }
  15288. .big_box {
  15289. /* margin-top: 20px; */
  15290. display: flex;
  15291. justify-content: space-between;
  15292. /* border-bottom: 1px solid #E0E2ED; */
  15293. }
  15294. .left_first {
  15295. display: flex;
  15296. flex-direction: column;
  15297. flex-wrap: nowrap;
  15298. width: calc(100% - 310px);
  15299. padding: 20px;
  15300. box-sizing: border-box;
  15301. background: #fff;
  15302. border-radius: 5px;
  15303. }
  15304. .right_first {
  15305. width: 300px;
  15306. display: flex;
  15307. align-items: center;
  15308. justify-content: center;
  15309. /* border-left: 1px solid #E0E2ED; */
  15310. box-sizing: border-box;
  15311. padding: 20px;
  15312. flex-direction: column;
  15313. background: #fff;
  15314. border-radius: 5px;
  15315. }
  15316. .ai_box {
  15317. width: 204px;
  15318. display: flex;
  15319. justify-content: flex-end;
  15320. margin-bottom: 15px;
  15321. }
  15322. .ai_content {
  15323. display: flex;
  15324. align-items: center;
  15325. font-size: 14px;
  15326. padding: 7px 20px;
  15327. box-sizing: border-box;
  15328. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  15329. border-radius: 12px;
  15330. font-weight: 700;
  15331. cursor: pointer;
  15332. }
  15333. .ai_content > img {
  15334. width: 40px;
  15335. margin-right: 5px;
  15336. }
  15337. .c_info_title {
  15338. padding: 15px 0 15px 0;
  15339. font-size: 16px;
  15340. font-weight: bold;
  15341. margin: 0 0 0 20px;
  15342. box-sizing: border-box;
  15343. display: flex;
  15344. align-items: center;
  15345. line-height: 20px;
  15346. }
  15347. .c_info_title::before {
  15348. content: "";
  15349. display: block;
  15350. width: 3px;
  15351. height: 20px;
  15352. background: #0061ff;
  15353. border-radius: 3px;
  15354. margin: 0 5px 0 0;
  15355. }
  15356. .right_title {
  15357. height: 30px;
  15358. padding: 15px 0 15px 20px;
  15359. border-bottom: 1px solid #f2f2f2;
  15360. font-size: 1.5em;
  15361. font-weight: bold;
  15362. color: #0f7eff;
  15363. margin: 0 auto;
  15364. }
  15365. .people {
  15366. border: 1px solid rgb(229 229 229);
  15367. /* height: 495px; */
  15368. height: 350px;
  15369. border-radius: 5px;
  15370. width: 100%;
  15371. overflow: auto;
  15372. }
  15373. .people_top {
  15374. display: flex;
  15375. width: 100%;
  15376. /* justify-content: space-between; */
  15377. /* align-items: center; */
  15378. flex-direction: column;
  15379. padding: 10px 10px 0;
  15380. box-sizing: border-box;
  15381. }
  15382. .people_nav,
  15383. .people_top_right {
  15384. /* padding: 20px 0 0 20px; */
  15385. }
  15386. .people_top_right {
  15387. height: 40px;
  15388. margin-bottom: 10px;
  15389. }
  15390. .people_search {
  15391. display: flex;
  15392. position: relative;
  15393. }
  15394. .people_search >>> .el-input__inner {
  15395. /* height: 25px; */
  15396. width: 100%;
  15397. }
  15398. .search_img {
  15399. width: 20px;
  15400. height: 20px;
  15401. position: absolute;
  15402. right: 10px;
  15403. top: 50%;
  15404. transform: translateY(-50%);
  15405. }
  15406. .search_img > img {
  15407. width: 100%;
  15408. height: 100%;
  15409. }
  15410. .people_name {
  15411. display: flex;
  15412. justify-content: flex-start;
  15413. padding: 20px 10px;
  15414. flex-direction: column;
  15415. flex-wrap: wrap;
  15416. }
  15417. .p_box {
  15418. position: relative;
  15419. }
  15420. .people_name >>> .el-checkbox {
  15421. width: 100%;
  15422. display: flex;
  15423. align-items: center;
  15424. margin-bottom: 10px;
  15425. }
  15426. .people_name >>> .el-checkbox__label {
  15427. text-overflow: ellipsis;
  15428. overflow: hidden;
  15429. width: calc(100%);
  15430. }
  15431. .people_name2 >>> .el-checkbox__label {
  15432. width: calc(100% - 130px);
  15433. }
  15434. .inviteCode {
  15435. position: absolute;
  15436. right: 30px;
  15437. color: #237ade;
  15438. top: 0;
  15439. cursor: pointer;
  15440. font-size: 13px;
  15441. }
  15442. .noneInvite {
  15443. color: #a8a8a8;
  15444. }
  15445. .inviteImg {
  15446. position: absolute;
  15447. right: 5px;
  15448. top: 0;
  15449. width: 20px;
  15450. }
  15451. .right_img {
  15452. width: 150px;
  15453. height: 150px;
  15454. margin: 0 auto;
  15455. }
  15456. .right_img > img {
  15457. width: 100%;
  15458. height: 100%;
  15459. }
  15460. .number {
  15461. margin-top: 20px;
  15462. color: #4aa6ff;
  15463. text-decoration: underline;
  15464. }
  15465. .success_button {
  15466. display: flex;
  15467. text-align: center;
  15468. margin: 5% 0 auto;
  15469. flex-direction: row;
  15470. justify-content: center;
  15471. }
  15472. .look_course {
  15473. margin-right: 40px;
  15474. background: #3d67bc;
  15475. width: 200px;
  15476. height: 35px;
  15477. line-height: 35px;
  15478. color: #fff;
  15479. text-align: center;
  15480. font-size: 14px;
  15481. border-radius: 5px;
  15482. cursor: pointer;
  15483. }
  15484. .attend_others {
  15485. width: 250px;
  15486. background: #4fb13c;
  15487. height: 35px;
  15488. line-height: 35px;
  15489. color: #fff;
  15490. text-align: center;
  15491. font-size: 14px;
  15492. border-radius: 5px;
  15493. cursor: pointer;
  15494. }
  15495. .dialog_diy2 >>> .el-dialog__body {
  15496. text-align: center;
  15497. }
  15498. .write_togother {
  15499. position: absolute;
  15500. right: 45px;
  15501. display: flex;
  15502. top: 5%;
  15503. }
  15504. .write_people {
  15505. font-size: 14px;
  15506. line-height: 50px;
  15507. padding-right: 10px;
  15508. }
  15509. .end_write {
  15510. background: #3d67bc;
  15511. color: #fff;
  15512. width: 100px;
  15513. height: 35px;
  15514. line-height: 35px;
  15515. text-align: center;
  15516. font-size: 14px;
  15517. border-radius: 5px;
  15518. cursor: pointer;
  15519. }
  15520. .chapter_upload + .chapter_upload {
  15521. /* margin-top: 15px; */
  15522. border-top: 1px solid #e7ebf1;
  15523. }
  15524. .chapter_upload {
  15525. height: 45px;
  15526. position: relative;
  15527. display: flex;
  15528. align-items: center;
  15529. width: 100%;
  15530. min-height: 45px;
  15531. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15532. /* border-radius: 4px; */
  15533. /* overflow: hidden; */
  15534. box-sizing: border-box;
  15535. }
  15536. .chapter_upload_drag {
  15537. position: absolute;
  15538. cursor: pointer;
  15539. width: 16px;
  15540. height: 16px;
  15541. left: -9px;
  15542. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  15543. background-size: 100% 100%;
  15544. z-index: 10;
  15545. display: none;
  15546. }
  15547. .isNavStage > .chapter_upload_drag {
  15548. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  15549. }
  15550. .chapter_upload_t {
  15551. background-color: #fff;
  15552. position: absolute;
  15553. height: 100%;
  15554. top: 0px;
  15555. left: 0px;
  15556. box-sizing: border-box;
  15557. }
  15558. .chapter_upload_o {
  15559. width: 100%;
  15560. height: 100%;
  15561. position: relative;
  15562. z-index: 1;
  15563. }
  15564. .chapter_upload_ic {
  15565. margin: 0 15px 0px auto;
  15566. display: flex;
  15567. align-items: center;
  15568. }
  15569. .chapter_upload_ic_l {
  15570. width: 50px;
  15571. height: 50px;
  15572. float: left;
  15573. }
  15574. .chapter_upload_ic_l div {
  15575. width: 30px;
  15576. height: 35px;
  15577. background: url("../../../assets/icon/icon.png");
  15578. }
  15579. .chapter_upload_ic_edit {
  15580. height: 100%;
  15581. display: flex;
  15582. align-items: center;
  15583. cursor: pointer;
  15584. margin: 0 10px 0 0;
  15585. }
  15586. .chapter_upload_ic_edit div {
  15587. width: 18px;
  15588. height: 18px;
  15589. background-image: url("../../../assets/icon/new/edit_u.png");
  15590. background-size: 100% 100%;
  15591. }
  15592. .chapter_upload_ic_r {
  15593. height: 100%;
  15594. display: flex;
  15595. align-items: center;
  15596. cursor: pointer;
  15597. }
  15598. .chapter_upload_ic_r div {
  15599. width: 18px;
  15600. height: 18px;
  15601. background-image: url("../../../assets/icon/new/delete_u.png");
  15602. background-size: 100% 100%;
  15603. }
  15604. .chapter_upload_n {
  15605. display: flex;
  15606. text-indent: 10px;
  15607. text-decoration: none;
  15608. text-overflow: ellipsis;
  15609. white-space: nowrap;
  15610. overflow: hidden;
  15611. width: 55%;
  15612. margin-left: 10px;
  15613. cursor: pointer;
  15614. margin-top: 2px;
  15615. align-items: center;
  15616. }
  15617. .chapter_upload_l_i2,
  15618. .chapter_upload_l_i3,
  15619. .chapter_upload_l_i8,
  15620. .chapter_upload_l_i6,
  15621. .chapter_upload_l_i12,
  15622. .chapter_upload_l_i14,
  15623. .chapter_upload_l_i13,
  15624. .chapter_upload_l_i15 {
  15625. width: 15px;
  15626. height: 15px;
  15627. background-size: 100% 100%;
  15628. }
  15629. .chapter_upload_l_i2 {
  15630. background-image: url("../../../assets/icon/new/u_word.png");
  15631. }
  15632. .chapter_upload_l_i3 {
  15633. background-image: url("../../../assets/icon/new/u_video.png");
  15634. }
  15635. .chapter_upload_l_i8 {
  15636. background-image: url("../../../assets/icon/new/u_url.png");
  15637. }
  15638. .chapter_upload_l_i14 {
  15639. background-image: url("../../../assets/icon/new/u_source.png");
  15640. }
  15641. .chapter_upload_l_i15 {
  15642. background-image: url("../../../assets/icon/new/appStore.png");
  15643. }
  15644. .chapter_upload_l_i6 {
  15645. background-image: url("../../../assets/icon/new/u_picture.png");
  15646. }
  15647. .chapter_upload_l_i12 {
  15648. background-image: url("../../../assets/icon/new/u_word.png");
  15649. }
  15650. .chapter_upload_l_i13 {
  15651. background-image: url("../../../assets/icon/new/u_img.png");
  15652. }
  15653. .chapter_upload_noSee {
  15654. background-image: url("../../../assets/icon/new/u_noUpload.png");
  15655. width: 18px;
  15656. height: 18px;
  15657. background-size: 100% 100%;
  15658. display: block;
  15659. margin-right: 10px;
  15660. }
  15661. .chapter_upload_ud {
  15662. display: flex;
  15663. flex-direction: row;
  15664. justify-content: center;
  15665. margin: 0 10px 0 0;
  15666. }
  15667. .chapter_upload_ud > .chapter_upload_up {
  15668. margin-bottom: 0;
  15669. margin-right: 10px;
  15670. }
  15671. .chapter_upload_down,
  15672. .chapter_upload_up {
  15673. width: 20px;
  15674. height: 20px;
  15675. background: #e4eaf2;
  15676. cursor: pointer;
  15677. margin: 0 auto;
  15678. border-radius: 5px;
  15679. display: flex;
  15680. justify-content: center;
  15681. align-items: center;
  15682. }
  15683. .chapter_upload_up::after,
  15684. .chapter_upload_down::after {
  15685. content: "";
  15686. background-image: url("../../../assets/icon/new/downBtn.png");
  15687. width: 13px;
  15688. height: 13px;
  15689. background-size: 100% 100%;
  15690. display: block;
  15691. }
  15692. .chapter_upload_up::after {
  15693. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  15694. }
  15695. .chapter_upload_up {
  15696. margin-bottom: 5px;
  15697. }
  15698. .chapter_upload_ud2 {
  15699. display: flex;
  15700. flex-direction: row;
  15701. justify-content: center;
  15702. margin: 0 10px 0 0;
  15703. }
  15704. .chapter_upload_ud2 > .chapter_upload_up2 {
  15705. margin-bottom: 0;
  15706. margin-right: 10px;
  15707. }
  15708. .chapter_upload_down2,
  15709. .chapter_upload_up2 {
  15710. cursor: pointer;
  15711. margin: 0 auto;
  15712. border-radius: 5px;
  15713. display: flex;
  15714. justify-content: center;
  15715. align-items: center;
  15716. color: #717c8d;
  15717. font-size: 14px;
  15718. }
  15719. .chapter_upload_up2 {
  15720. margin-right: 10px;
  15721. }
  15722. .chapter_upload_up2::before,
  15723. .chapter_upload_down2::before {
  15724. content: "";
  15725. background-image: url("../../../assets/icon/new/c_down.png");
  15726. width: 14px;
  15727. height: 14px;
  15728. background-size: 100% 100%;
  15729. display: block;
  15730. margin-right: 5px;
  15731. }
  15732. .chapter_upload_up2::before {
  15733. background-image: url("../../../assets/icon/new/c_up.png") !important;
  15734. }
  15735. .addWordStyle {
  15736. display: flex;
  15737. flex-direction: row;
  15738. justify-content: flex-start;
  15739. overflow-x: auto;
  15740. white-space: nowrap;
  15741. flex-wrap: wrap;
  15742. }
  15743. /* table 样式 */
  15744. .cont >>> table {
  15745. border-top: 1px solid #ccc;
  15746. border-left: 1px solid #ccc;
  15747. }
  15748. .cont >>> table td,
  15749. .cont >>> table th {
  15750. border-bottom: 1px solid #ccc;
  15751. border-right: 1px solid #ccc;
  15752. /* padding: 20px 5px; */
  15753. padding: 5px 10px;
  15754. max-width: 0px;
  15755. height: 30px;
  15756. vertical-align: baseline;
  15757. }
  15758. .cont >>> table th {
  15759. border-bottom: 2px solid #ccc;
  15760. text-align: center;
  15761. }
  15762. /* blockquote 样式 */
  15763. .cont >>> blockquote {
  15764. display: block;
  15765. border-left: 8px solid #d0e5f2;
  15766. padding: 5px 10px;
  15767. margin: 10px 0;
  15768. line-height: 1.4;
  15769. font-size: 100%;
  15770. background-color: #f1f1f1;
  15771. }
  15772. /* code 样式 */
  15773. .cont >>> code {
  15774. display: inline-block;
  15775. /* *display: inline; */
  15776. zoom: 1;
  15777. background-color: #f1f1f1;
  15778. border-radius: 3px;
  15779. padding: 3px 5px;
  15780. margin: 0 3px;
  15781. }
  15782. .cont >>> pre code {
  15783. display: block;
  15784. }
  15785. /* ul ol 样式 */
  15786. .cont >>> ul,
  15787. ol {
  15788. margin: 10px 0 10px 20px;
  15789. }
  15790. .wordbox {
  15791. display: flex;
  15792. flex-wrap: wrap;
  15793. cursor: pointer;
  15794. width: 100%;
  15795. }
  15796. .checkword {
  15797. width: 22px;
  15798. height: 22px;
  15799. margin: 10px auto 0;
  15800. cursor: pointer;
  15801. }
  15802. .checkword img {
  15803. width: 100%;
  15804. }
  15805. .stepBg {
  15806. display: flex;
  15807. justify-content: space-between;
  15808. align-items: center;
  15809. background: #fff;
  15810. width: calc(100%);
  15811. margin: 0 auto;
  15812. }
  15813. .stepBorder {
  15814. height: 3px !important;
  15815. background: #cad1dc;
  15816. width: 100px !important;
  15817. margin: 0 15px !important;
  15818. position: relative;
  15819. }
  15820. .border-active {
  15821. background: #3681fc !important;
  15822. }
  15823. .border-active::before,
  15824. .border-active::after {
  15825. border-color: #3681fc !important;
  15826. }
  15827. .stepBorder::before,
  15828. .stepBorder::after {
  15829. content: "";
  15830. width: 9px;
  15831. height: 9px;
  15832. background: #ffffff;
  15833. opacity: 1;
  15834. border: 2px solid #acb4bf;
  15835. display: block;
  15836. box-sizing: border-box;
  15837. border-radius: 50%;
  15838. position: absolute;
  15839. top: 50%;
  15840. transform: translateY(-50%);
  15841. }
  15842. .stepBorder::after {
  15843. right: -9px;
  15844. }
  15845. .stepTop {
  15846. width: 100%;
  15847. /* border-radius: 10px; */
  15848. display: flex;
  15849. justify-content: center;
  15850. align-items: center;
  15851. flex-wrap: nowrap;
  15852. background: #fff;
  15853. /* top: 18%; */
  15854. height: 80px;
  15855. border-bottom: 2px solid rgb(228, 232, 237);
  15856. box-sizing: border-box;
  15857. }
  15858. .stepTop2 {
  15859. width: 100%;
  15860. /* border-radius: 10px; */
  15861. display: flex;
  15862. justify-content: center;
  15863. align-items: center;
  15864. flex-wrap: nowrap;
  15865. background: #fff;
  15866. /* top: 18%; */
  15867. height: 20px;
  15868. border-bottom: 2px solid rgb(228, 232, 237);
  15869. box-sizing: border-box;
  15870. overflow: hidden;
  15871. cursor: pointer;
  15872. }
  15873. .stepTop > div img {
  15874. width: 100%;
  15875. }
  15876. .stepTop > div {
  15877. height: 50px;
  15878. width: 180px;
  15879. cursor: pointer;
  15880. margin: 10px 0;
  15881. border-radius: 10px;
  15882. }
  15883. .first,
  15884. .second,
  15885. .third,
  15886. .four {
  15887. background: #3681fc;
  15888. height: 90px;
  15889. color: #fff;
  15890. display: flex;
  15891. flex-direction: row;
  15892. align-items: center;
  15893. justify-content: center;
  15894. }
  15895. .first > div:nth-child(1),
  15896. .second > div:nth-child(1),
  15897. .third > div:nth-child(1),
  15898. .four > div:nth-child(1) {
  15899. margin: 5px 10px 0 0;
  15900. width: 2rem;
  15901. }
  15902. .firstNo,
  15903. .secondNo,
  15904. .thirdNo,
  15905. .fourNo {
  15906. background: #e7e7e7;
  15907. color: #adadad;
  15908. display: flex;
  15909. flex-direction: row;
  15910. align-items: center;
  15911. justify-content: center;
  15912. }
  15913. .firstNo > div:nth-child(1),
  15914. .secondNo > div:nth-child(1),
  15915. .thirdNo > div:nth-child(1),
  15916. .fourNo > div:nth-child(1) {
  15917. margin: 5px 10px 0 0;
  15918. width: 2rem;
  15919. }
  15920. .uploadWidth >>> .el-upload {
  15921. width: 60px;
  15922. height: 60px;
  15923. position: relative;
  15924. }
  15925. .addPeople {
  15926. background: #fa6060;
  15927. width: 150px;
  15928. height: 40px;
  15929. color: #fff;
  15930. border-radius: 5px;
  15931. text-align: center;
  15932. line-height: 40px;
  15933. font-size: 14px;
  15934. cursor: pointer;
  15935. }
  15936. .kcImg {
  15937. width: 60px;
  15938. margin-left: 10px;
  15939. }
  15940. .zyImg {
  15941. width: 55px;
  15942. margin: 0 10px;
  15943. }
  15944. .deleteZy {
  15945. width: 20px;
  15946. position: absolute;
  15947. top: 5px;
  15948. right: 5px;
  15949. cursor: pointer;
  15950. }
  15951. .kcImg > img,
  15952. .zyImg > img,
  15953. .deleteZy > img {
  15954. width: 100%;
  15955. height: 100%;
  15956. }
  15957. .zyBox {
  15958. display: flex;
  15959. flex-direction: row;
  15960. align-items: center;
  15961. background: #67d37d;
  15962. color: #fff;
  15963. width: 210px;
  15964. margin: 20px 20px 0 0;
  15965. border-radius: 10px;
  15966. height: 70px;
  15967. position: relative;
  15968. }
  15969. .upCss {
  15970. display: flex;
  15971. flex-direction: row;
  15972. justify-content: flex-start;
  15973. }
  15974. .upCss >>> .el-icon-plus {
  15975. position: none !important;
  15976. width: 200px;
  15977. height: 100px;
  15978. display: flex;
  15979. flex-wrap: nowrap;
  15980. flex-direction: column;
  15981. align-items: center;
  15982. justify-content: center;
  15983. border: 1px dashed #ccc;
  15984. min-width: 78px;
  15985. min-height: 100px;
  15986. z-index: 999;
  15987. }
  15988. .upCss >>> .el-upload-list__item-name {
  15989. width: 100px;
  15990. white-space: nowrap;
  15991. overflow: hidden;
  15992. text-overflow: ellipsis;
  15993. }
  15994. .upCss >>> .el-upload-list__item .el-icon-close {
  15995. font-size: 20px;
  15996. z-index: 9999;
  15997. }
  15998. .addStageImg {
  15999. min-width: 20px;
  16000. min-height: 20px;
  16001. width: 20px;
  16002. height: 20px;
  16003. cursor: pointer;
  16004. }
  16005. .addHW {
  16006. width: 28px;
  16007. height: 28px;
  16008. cursor: pointer;
  16009. }
  16010. .addStageImg > img,
  16011. .addHW > img {
  16012. width: 100%;
  16013. height: 100%;
  16014. }
  16015. .addNewPP >>> .el-dialog__body {
  16016. padding: 5px 20px;
  16017. }
  16018. .addNewPP >>> .el-dialog {
  16019. margin-top: 5vh !important;
  16020. }
  16021. .addNewPP2 >>> .el-dialog__body {
  16022. padding: 5px 0;
  16023. }
  16024. .addNewPP2 >>> .el-dialog {
  16025. margin-top: 5vh !important;
  16026. }
  16027. .isHeight {
  16028. height: 680px;
  16029. }
  16030. .toolChoose {
  16031. display: flex;
  16032. /* width: 100%; */
  16033. flex-direction: row;
  16034. flex-wrap: wrap;
  16035. }
  16036. .tool,
  16037. .isToolChoose {
  16038. display: flex;
  16039. flex-direction: column;
  16040. flex-wrap: nowrap;
  16041. width: fit-content;
  16042. margin: 10px 0 10px 0;
  16043. align-items: center;
  16044. border: 2px solid #dbdbdb00;
  16045. padding: 10px 20px;
  16046. border-radius: 5px;
  16047. cursor: pointer;
  16048. /* box-shadow: 0 0 2px 0px #dedede; */
  16049. position: relative;
  16050. box-sizing: border-box;
  16051. }
  16052. .tool:hover {
  16053. border: 2px solid #a5c7ff;
  16054. }
  16055. .tool:hover > .noCTool {
  16056. display: block;
  16057. opacity: 0.5;
  16058. }
  16059. .isToolChoose {
  16060. border: 2px solid #438aff !important;
  16061. box-shadow: 0 0 2px 0px #438aff;
  16062. opacity: 1 !important;
  16063. }
  16064. .isCTool,
  16065. .noCTool {
  16066. width: 30px;
  16067. height: 30px;
  16068. position: absolute;
  16069. top: -4px;
  16070. right: -4px;
  16071. }
  16072. .noCTool {
  16073. display: none;
  16074. }
  16075. .isCTool > img,
  16076. .noCTool > img {
  16077. width: 100%;
  16078. height: 100%;
  16079. }
  16080. .tool + .tool {
  16081. margin-right: 10px;
  16082. }
  16083. .whiteBIcon {
  16084. width: 80px;
  16085. cursor: pointer;
  16086. display: flex;
  16087. flex-direction: column;
  16088. flex-wrap: nowrap;
  16089. align-items: center;
  16090. font-size: 14px;
  16091. }
  16092. .whiteBIcon > img,
  16093. .toolIcon > img,
  16094. .arrow > img {
  16095. width: 100%;
  16096. height: 100%;
  16097. }
  16098. .check img {
  16099. width: 20px;
  16100. height: 20px;
  16101. }
  16102. .whiteBIcon > img {
  16103. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  16104. border-radius: 15px;
  16105. }
  16106. .whiteBIcon > div:nth-child(2) {
  16107. height: 20px;
  16108. line-height: 20px;
  16109. }
  16110. .check {
  16111. /* width: 20px;
  16112. height: 20px; */
  16113. cursor: pointer;
  16114. margin: 10px 0 0;
  16115. }
  16116. .checkDiv {
  16117. display: flex;
  16118. align-items: center;
  16119. }
  16120. .checkDiv span {
  16121. margin-left: 5px;
  16122. color: #858585;
  16123. }
  16124. .customWidth >>> .el-dialog {
  16125. min-width: 600px !important;
  16126. }
  16127. .CollaborativeCss {
  16128. width: 100%;
  16129. display: flex;
  16130. justify-content: center;
  16131. align-items: center;
  16132. box-sizing: border-box;
  16133. padding: 10px 0;
  16134. cursor: pointer;
  16135. }
  16136. .CollaborativeCss >>> .el-tooltip {
  16137. overflow: hidden;
  16138. white-space: nowrap;
  16139. text-overflow: ellipsis;
  16140. }
  16141. .CollaborativeCss2 {
  16142. background: #e0eafb;
  16143. color: #3681fc;
  16144. font-weight: 700;
  16145. border-radius: 5px;
  16146. }
  16147. .a_addBox {
  16148. margin: 10px 0;
  16149. background: #fff;
  16150. padding: 15px;
  16151. /* max-height: 600px; */
  16152. overflow: auto;
  16153. }
  16154. .a_add_box {
  16155. border-bottom: 2px solid #eee;
  16156. padding-bottom: 25px;
  16157. }
  16158. .a_add_head {
  16159. display: flex;
  16160. align-items: center;
  16161. justify-content: space-between;
  16162. margin: 10px 0 0 0;
  16163. font-size: 18px;
  16164. }
  16165. .a_add_checkType {
  16166. margin-top: 10px;
  16167. display: flex;
  16168. font-size: 14px;
  16169. align-items: center;
  16170. }
  16171. .a_add_checkType span {
  16172. box-sizing: border-box;
  16173. padding: 0 0 5px 0;
  16174. cursor: pointer;
  16175. }
  16176. .a_add_checkType span + span {
  16177. margin-left: 10px;
  16178. }
  16179. .a_add_checkType .active {
  16180. border-bottom: 2px solid #409eff;
  16181. color: #409eff;
  16182. }
  16183. .a_add_head .a_add_head_input {
  16184. /* width: 540px; */
  16185. width: 100%;
  16186. }
  16187. .a_add_head .a_add_head_div {
  16188. display: flex;
  16189. align-items: center;
  16190. justify-content: space-between;
  16191. }
  16192. .a_add_body {
  16193. display: flex;
  16194. /* align-items: center; */
  16195. align-items: flex-end;
  16196. }
  16197. .a_add_input {
  16198. display: flex;
  16199. align-items: center;
  16200. flex-wrap: wrap;
  16201. }
  16202. .a_add_input_choice {
  16203. flex-direction: column;
  16204. margin-right: 10px;
  16205. }
  16206. .a_add_input_choice >>> .el-radio {
  16207. display: flex;
  16208. align-items: center;
  16209. flex-direction: row-reverse;
  16210. margin: 30px 0 0 0;
  16211. position: relative;
  16212. }
  16213. .a_add_input_choice >>> .el-checkbox {
  16214. display: flex;
  16215. align-items: center;
  16216. flex-direction: row-reverse;
  16217. margin: 30px 0 0 0;
  16218. position: relative;
  16219. }
  16220. .width100 {
  16221. width: 100%;
  16222. }
  16223. .a_add_input .a_add_persent {
  16224. width: 100%;
  16225. }
  16226. .a_add_persent_div {
  16227. width: 100%;
  16228. display: flex;
  16229. align-items: center;
  16230. }
  16231. .a_add_persent_div span {
  16232. margin: 5px 0;
  16233. }
  16234. .a_add_persent_div span:nth-child(1) {
  16235. width: 30%;
  16236. }
  16237. .a_add_persent_div span:nth-child(2) {
  16238. width: 7%;
  16239. }
  16240. .a_add_persent_div span:nth-child(3) {
  16241. width: 40%;
  16242. }
  16243. .a_add_body_div {
  16244. display: flex;
  16245. align-items: center;
  16246. justify-content: center;
  16247. /* flex-direction: column; */
  16248. position: absolute;
  16249. right: -20px;
  16250. transform: translateX(100%);
  16251. }
  16252. .a_add_body_div >>> .el-button--primary {
  16253. background: #466b99;
  16254. border: none;
  16255. }
  16256. .all_choose {
  16257. display: flex;
  16258. flex-direction: row;
  16259. align-items: flex-start;
  16260. width: 100%;
  16261. }
  16262. .all_choose + .all_choose {
  16263. /* margin-top: 10px */
  16264. }
  16265. .all_choose > span {
  16266. min-width: fit-content;
  16267. display: block;
  16268. white-space: nowrap;
  16269. overflow: hidden;
  16270. text-overflow: ellipsis;
  16271. margin-right: 20px;
  16272. font-weight: bold;
  16273. font-size: 14px;
  16274. }
  16275. .all_choose >>> .el-checkbox-group {
  16276. display: flex;
  16277. flex-direction: row;
  16278. width: 100%;
  16279. flex-wrap: wrap;
  16280. align-content: center;
  16281. justify-content: flex-start;
  16282. align-items: center;
  16283. margin-top: 3px;
  16284. }
  16285. .all_choose > .el-checkbox-group >>> .el-checkbox {
  16286. margin-bottom: 10px;
  16287. display: flex;
  16288. flex-direction: row;
  16289. align-items: center;
  16290. margin-right: 10px;
  16291. }
  16292. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  16293. min-width: 80px;
  16294. overflow: hidden;
  16295. width: 80px;
  16296. text-overflow: ellipsis;
  16297. white-space: nowrap;
  16298. }
  16299. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  16300. width: auto;
  16301. }
  16302. .choose > div:nth-child(3) > span {
  16303. /* letter-spacing: 0 !important; */
  16304. }
  16305. .choose {
  16306. display: flex;
  16307. flex-direction: column;
  16308. flex-wrap: nowrap;
  16309. height: 100%;
  16310. justify-content: space-evenly;
  16311. align-items: flex-start;
  16312. }
  16313. .both {
  16314. display: flex;
  16315. flex-direction: row;
  16316. flex-wrap: wrap;
  16317. width: 100%;
  16318. align-items: center;
  16319. justify-content: flex-start;
  16320. margin: 15px 0;
  16321. }
  16322. .notice >>> .el-dialog {
  16323. width: 500px !important;
  16324. text-align: center;
  16325. }
  16326. .notice >>> .el-button {
  16327. margin-top: 20px;
  16328. }
  16329. .whiteBg {
  16330. /* background: #fff; */
  16331. border-radius: 10px;
  16332. }
  16333. .wb_j_box {
  16334. display: flex;
  16335. width: 100%;
  16336. padding: 0 20px 0;
  16337. box-sizing: border-box;
  16338. }
  16339. .wb_j_box_content {
  16340. width: calc(100% - 55% - 100px);
  16341. display: flex;
  16342. align-items: center;
  16343. }
  16344. .wb_j_box_p_box {
  16345. max-width: calc(100% - 200px);
  16346. word-break: break-all;
  16347. overflow: hidden;
  16348. margin: 0 0 0 10px;
  16349. font-size: 14px;
  16350. color: #6e6e6e;
  16351. z-index: 999;
  16352. }
  16353. .chooseWho {
  16354. display: flex;
  16355. width: 410px;
  16356. flex-direction: row;
  16357. flex-wrap: nowrap;
  16358. justify-content: space-between;
  16359. padding-bottom: 10px;
  16360. }
  16361. .chooseWho > div {
  16362. cursor: pointer;
  16363. padding-bottom: 10px;
  16364. font-weight: bold;
  16365. }
  16366. .isChooseActive {
  16367. color: #3e88f4;
  16368. border-bottom: 2px solid #2f80f3;
  16369. }
  16370. .toolSort {
  16371. display: flex;
  16372. flex-direction: row;
  16373. flex-wrap: wrap;
  16374. justify-content: flex-start;
  16375. align-items: flex-start;
  16376. }
  16377. .toolSort > div {
  16378. margin-right: 10px;
  16379. }
  16380. .tools {
  16381. width: 100%;
  16382. display: flex;
  16383. flex-direction: column;
  16384. flex-wrap: nowrap;
  16385. align-items: flex-start;
  16386. }
  16387. .leftTools,
  16388. .rightTools {
  16389. width: 50%;
  16390. }
  16391. .leftTools + .leftTools {
  16392. border-top: 1px solid #dbdbdb;
  16393. padding-top: 30px;
  16394. }
  16395. .rightTools {
  16396. display: flex;
  16397. flex-direction: row;
  16398. flex-wrap: nowrap;
  16399. justify-content: space-around;
  16400. }
  16401. .firstToolList {
  16402. display: flex;
  16403. flex-direction: column;
  16404. flex-wrap: nowrap;
  16405. align-items: center;
  16406. }
  16407. .iconList {
  16408. display: flex;
  16409. flex-direction: row;
  16410. flex-wrap: wrap;
  16411. justify-content: flex-start;
  16412. align-items: center;
  16413. margin: 20px 0 5px 0;
  16414. width: 240px;
  16415. min-width: 240px;
  16416. }
  16417. .iconTool {
  16418. display: flex;
  16419. flex-direction: column;
  16420. flex-wrap: nowrap;
  16421. align-items: center;
  16422. justify-content: flex-start;
  16423. margin: 15px 10px;
  16424. }
  16425. .toolIcon {
  16426. width: 50px;
  16427. }
  16428. .taskBorder {
  16429. /* border: 1px solid #CAD1DC; */
  16430. border-radius: 10px;
  16431. margin-top: 10px;
  16432. min-height: 670px;
  16433. position: relative;
  16434. background: #fff;
  16435. padding: 20px;
  16436. overflow: hidden;
  16437. box-sizing: border-box;
  16438. }
  16439. .smallTaskBorder {
  16440. height: 405px;
  16441. min-height: 405px !important;
  16442. overflow: hidden;
  16443. }
  16444. /* .taskBorder>div {
  16445. padding: 30px 30px 10px;
  16446. } */
  16447. .addTaskBorder {
  16448. /* border: 2px solid #5E9AFC; */
  16449. border-radius: 8px;
  16450. margin-top: 10px;
  16451. cursor: pointer;
  16452. /* height: 50px;
  16453. line-height: 50px; */
  16454. background: #fff;
  16455. padding: 15px 0;
  16456. display: flex;
  16457. align-items: center;
  16458. justify-content: center;
  16459. }
  16460. /* .addTaskBorder>div {
  16461. margin: 0 auto;
  16462. display: flex;
  16463. align-items: center;
  16464. justify-content: center;
  16465. }
  16466. .addTaskBorder>div>img {
  16467. width: 20px;
  16468. }
  16469. .addTaskBorder>div>span {
  16470. font-size: 16px;
  16471. margin-left: 10px;
  16472. color: #5E9AFC;
  16473. } */
  16474. .funBlock {
  16475. display: flex;
  16476. padding: 15px 0;
  16477. flex-direction: row;
  16478. justify-content: center;
  16479. align-items: center;
  16480. position: absolute;
  16481. right: 0;
  16482. bottom: 0;
  16483. background: #fff;
  16484. width: 100%;
  16485. height: 60px;
  16486. z-index: 9;
  16487. }
  16488. .fold {
  16489. display: flex;
  16490. margin: 0 20px;
  16491. flex-direction: row;
  16492. align-items: center;
  16493. cursor: pointer;
  16494. color: #2b7bff;
  16495. }
  16496. .arrow {
  16497. margin-right: 8px;
  16498. width: 16px;
  16499. height: 16px;
  16500. min-width: 16px;
  16501. min-height: 16px;
  16502. background-size: 100% 100%;
  16503. display: block;
  16504. background-image: url(../../../assets/icon/new/u_up.png);
  16505. /* border-left: 7px solid transparent;
  16506. border-bottom: 7px solid #717C8D;
  16507. border-top: 0px solid transparent;
  16508. border-right: 7px solid transparent; */
  16509. /* box-sizing: border-box; */
  16510. transition: all 0.3s;
  16511. }
  16512. .arrowZ {
  16513. transform: rotate(180deg);
  16514. }
  16515. .addToolFun {
  16516. display: flex;
  16517. width: 150px;
  16518. flex-direction: row;
  16519. align-items: center;
  16520. justify-content: center;
  16521. border: 2px dashed #cad1dc;
  16522. border-radius: 5px;
  16523. height: 50px;
  16524. margin: 35px auto 0;
  16525. cursor: pointer;
  16526. }
  16527. .addToolFun2 {
  16528. display: flex;
  16529. width: 150px;
  16530. border: 2px dashed #cad1dc;
  16531. flex-direction: row;
  16532. align-items: center;
  16533. justify-content: center;
  16534. border-radius: 5px;
  16535. height: 50px;
  16536. margin: 0 auto 0;
  16537. cursor: pointer;
  16538. }
  16539. .addToolFun2 > div,
  16540. .addToolFun > div {
  16541. display: flex;
  16542. line-height: 50px;
  16543. }
  16544. .addToolImg {
  16545. width: 20px;
  16546. height: 20px;
  16547. margin-right: 10px;
  16548. }
  16549. .addToolsDia >>> .el-dialog__body {
  16550. padding: 20px;
  16551. }
  16552. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16553. padding: 0;
  16554. }
  16555. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16556. padding: 0;
  16557. border-bottom: none;
  16558. margin-bottom: 0;
  16559. }
  16560. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16561. width: 100%;
  16562. }
  16563. .lineCss >>> .el-form-item__label {
  16564. width: auto !important;
  16565. }
  16566. .lineCss >>> .el-form-item__content {
  16567. margin-left: 50px !important;
  16568. }
  16569. .newSteps {
  16570. display: flex;
  16571. width: 100% !important;
  16572. /* height: 80px; */
  16573. cursor: pointer;
  16574. margin: 10px 0;
  16575. border-radius: 10px;
  16576. flex-direction: row;
  16577. align-content: center;
  16578. justify-content: center;
  16579. align-items: center;
  16580. margin: 0 !important;
  16581. }
  16582. /* 评价样式 */
  16583. .elist_css {
  16584. padding-bottom: 75px !important;
  16585. }
  16586. .elist_title {
  16587. margin-bottom: 10px;
  16588. }
  16589. .elist_input {
  16590. width: 100%;
  16591. }
  16592. .elist_input_box {
  16593. display: flex;
  16594. align-items: center;
  16595. flex-wrap: wrap;
  16596. }
  16597. .elist_input_box + .elist_input_box {
  16598. margin-top: 30px;
  16599. }
  16600. .elist_input .elist_input_box input {
  16601. font: inherit;
  16602. color: currentColor;
  16603. width: 100%;
  16604. /* max-width: calc(100% - 385px); */
  16605. max-width: calc(100% - 150px);
  16606. padding: 8px 14px;
  16607. display: block;
  16608. min-width: 0;
  16609. outline: none;
  16610. border: 1px solid rgba(0, 0, 0, 0.23);
  16611. border-radius: 4px;
  16612. box-sizing: border-box;
  16613. background: #fff;
  16614. margin: 0 20px 0 0;
  16615. }
  16616. .elist_input .elist_input_box span {
  16617. height: 36px;
  16618. line-height: 36px;
  16619. color: rgb(82, 82, 82);
  16620. min-width: 80px;
  16621. }
  16622. .elist_input .elist_input_box .remove {
  16623. height: 20px;
  16624. width: 20px;
  16625. min-height: 20px;
  16626. min-width: 20px;
  16627. background-size: 100% 100%;
  16628. background-position: unset;
  16629. margin-left: 5px;
  16630. }
  16631. .elist_input_box >>> .el-rate {
  16632. display: flex;
  16633. height: 36px;
  16634. align-items: center;
  16635. }
  16636. .elist_input_box .elist_inptu_text {
  16637. width: 100%;
  16638. display: flex;
  16639. align-items: center;
  16640. margin-top: 10px;
  16641. }
  16642. .elist_input_box .elist_inptu_text input {
  16643. /* width: 500px; */
  16644. width: 100%;
  16645. max-width: unset;
  16646. }
  16647. .elist_input_box >>> .el-rate__icon {
  16648. font-size: 24px;
  16649. }
  16650. .elist_btn {
  16651. margin-top: 10px;
  16652. }
  16653. .lineTitle {
  16654. /* margin-top: 15px; */
  16655. width: 110px;
  16656. font-size: 16px;
  16657. display: flex;
  16658. align-items: center;
  16659. line-height: 20px;
  16660. }
  16661. .lineTitle::before {
  16662. content: "";
  16663. display: block;
  16664. width: 3px;
  16665. height: 20px;
  16666. background: #0061ff;
  16667. border-radius: 3px;
  16668. margin: 0 5px 0 0;
  16669. }
  16670. .clineTitle::before {
  16671. content: "";
  16672. display: block;
  16673. min-width: 10px;
  16674. width: 10px;
  16675. height: 10px;
  16676. background: #0061ff;
  16677. border-radius: 50%;
  16678. margin: 0 5px 0 0;
  16679. }
  16680. .courseTop {
  16681. display: flex;
  16682. flex-direction: row;
  16683. justify-content: space-between;
  16684. align-items: center;
  16685. width: calc(100% - 40px);
  16686. margin: 0 auto;
  16687. padding: 10px 0;
  16688. }
  16689. .stepsNav {
  16690. display: flex;
  16691. flex-direction: row;
  16692. justify-content: flex-start;
  16693. align-items: center;
  16694. }
  16695. .stepsWord {
  16696. font-size: 18px;
  16697. color: #fff;
  16698. font-weight: bold;
  16699. margin-left: auto;
  16700. background: rgb(15, 126, 255);
  16701. border-radius: 5px;
  16702. padding: 3px 25px;
  16703. box-sizing: border-box;
  16704. }
  16705. .stepBox {
  16706. width: calc(100% - 40px);
  16707. height: calc(100% - 50px);
  16708. overflow: hidden;
  16709. border-radius: 5px;
  16710. margin: 0 auto;
  16711. }
  16712. .rightBox {
  16713. width: calc(100%);
  16714. background: #f0f2f5;
  16715. /* border-radius: 10px; */
  16716. overflow: auto;
  16717. height: calc(100% - 150px);
  16718. margin: 0 auto;
  16719. position: relative;
  16720. box-sizing: border-box;
  16721. }
  16722. .e_add_top {
  16723. display: flex;
  16724. justify-content: space-between;
  16725. background: #fff;
  16726. position: absolute;
  16727. right: 20px;
  16728. height: 50px;
  16729. align-items: center;
  16730. }
  16731. .e_add_title2 {
  16732. display: flex;
  16733. align-items: center;
  16734. }
  16735. .e_add_title2 span {
  16736. width: 40px;
  16737. }
  16738. .e_add_title {
  16739. display: flex;
  16740. align-items: center;
  16741. color: #b8b8b8;
  16742. font-size: 18px;
  16743. position: relative;
  16744. height: 40px;
  16745. }
  16746. .e_add_title span {
  16747. margin-right: 10px;
  16748. }
  16749. .e_add_title .el_input {
  16750. width: 300px;
  16751. }
  16752. .e_add_title >>> .el-input__inner {
  16753. width: 400px;
  16754. }
  16755. .e_add_btn {
  16756. }
  16757. .e_add_content {
  16758. display: flex;
  16759. width: 100%;
  16760. }
  16761. .e_add_list {
  16762. background: #fff;
  16763. height: 500px;
  16764. width: 210px;
  16765. position: relative;
  16766. margin: 15px 5px 0 0;
  16767. flex-shrink: 0;
  16768. display: flex;
  16769. flex-direction: column;
  16770. }
  16771. .e_add_list_title {
  16772. font-size: 20px;
  16773. width: 100%;
  16774. box-sizing: border-box;
  16775. padding: 15px 40px;
  16776. text-align: center;
  16777. border-bottom: 1px solid #eaeaea;
  16778. position: relative;
  16779. display: flex;
  16780. align-items: center;
  16781. justify-content: center;
  16782. height: 57px;
  16783. background: #f6f6f6;
  16784. }
  16785. .e_add_list_title span {
  16786. overflow: hidden;
  16787. white-space: nowrap;
  16788. text-overflow: ellipsis;
  16789. }
  16790. .e_add_list_title img {
  16791. position: absolute;
  16792. right: 15px;
  16793. width: 25px;
  16794. cursor: pointer;
  16795. top: 50%;
  16796. transform: translateY(-50%);
  16797. }
  16798. .e_add_list_body {
  16799. height: calc(100% - 187px);
  16800. overflow: auto;
  16801. }
  16802. .e_add_list_child {
  16803. width: 100%;
  16804. display: flex;
  16805. align-items: center;
  16806. justify-content: center;
  16807. position: relative;
  16808. box-sizing: border-box;
  16809. padding: 15px 40px;
  16810. text-align: center;
  16811. }
  16812. .e_add_list_child span {
  16813. overflow: hidden;
  16814. white-space: nowrap;
  16815. text-overflow: ellipsis;
  16816. cursor: pointer;
  16817. }
  16818. .e_add_list_child img {
  16819. position: absolute;
  16820. right: 10px;
  16821. width: 21px;
  16822. cursor: pointer;
  16823. top: 50%;
  16824. transform: translateY(-50%);
  16825. }
  16826. .e_add_list_child + .e_add_list_child {
  16827. border-top: 1px solid #eaeaea;
  16828. }
  16829. .e_add_list_child .active {
  16830. color: #409eff;
  16831. }
  16832. .e_add_list_btn {
  16833. position: absolute;
  16834. bottom: 0;
  16835. height: 50px;
  16836. background: rgb(120, 120, 254);
  16837. width: 100%;
  16838. color: #fff;
  16839. font-size: 16px;
  16840. text-align: center;
  16841. line-height: 50px;
  16842. cursor: pointer;
  16843. }
  16844. .e_add_list_detail {
  16845. position: absolute;
  16846. bottom: 0;
  16847. height: 130px;
  16848. background: rgb(120, 120, 254);
  16849. width: 100%;
  16850. color: #fff;
  16851. font-size: 16px;
  16852. display: flex;
  16853. align-items: center;
  16854. justify-content: center;
  16855. }
  16856. .e_add_list_detail textarea {
  16857. height: 90%;
  16858. width: 95%;
  16859. border: none;
  16860. resize: none;
  16861. outline: none;
  16862. padding: 5px;
  16863. box-sizing: border-box;
  16864. }
  16865. .e_add_list_pbox {
  16866. width: 100%;
  16867. }
  16868. .e_add_list_pbox_title {
  16869. height: 50px;
  16870. background: #fff;
  16871. display: flex;
  16872. align-items: center;
  16873. width: 100%;
  16874. box-sizing: border-box;
  16875. padding: 0 20px;
  16876. flex-direction: row;
  16877. flex-wrap: wrap;
  16878. }
  16879. .type_title {
  16880. font-size: 18px;
  16881. font-weight: 700;
  16882. }
  16883. .type_content {
  16884. font-size: 16px;
  16885. margin-left: 30px;
  16886. }
  16887. .type_content span + span {
  16888. margin-left: 20px;
  16889. }
  16890. .type_content span {
  16891. cursor: pointer;
  16892. padding-bottom: 5px;
  16893. box-sizing: border-box;
  16894. }
  16895. .type_content .active {
  16896. color: #409eff;
  16897. border-bottom: 2px solid #409eff;
  16898. }
  16899. .e_add_list_pbox_content {
  16900. height: calc(100% - 50px);
  16901. display: flex;
  16902. align-items: center;
  16903. width: 100%;
  16904. background: #fff;
  16905. }
  16906. .mbCss {
  16907. width: 100%;
  16908. display: flex;
  16909. flex-direction: row;
  16910. flex-wrap: nowrap;
  16911. align-content: center;
  16912. align-items: flex-start;
  16913. justify-content: flex-start;
  16914. }
  16915. .pjCss {
  16916. /* width: 42%; */
  16917. width: calc(100% - 55%);
  16918. display: flex;
  16919. flex-direction: column;
  16920. flex-wrap: nowrap;
  16921. align-items: flex-start;
  16922. }
  16923. .e_box {
  16924. /* display: flex; */
  16925. flex-wrap: wrap;
  16926. max-height: 500px;
  16927. align-items: flex-start;
  16928. overflow: auto;
  16929. width: 100%;
  16930. }
  16931. .e_card {
  16932. border: 1px solid #ccc;
  16933. background: #fff;
  16934. margin-right: 20px;
  16935. width: 270px;
  16936. display: flex;
  16937. flex-direction: column;
  16938. align-items: center;
  16939. border-radius: 5px;
  16940. margin-top: 10px;
  16941. text-align: center;
  16942. }
  16943. .e_card_picture {
  16944. margin: 10px 0;
  16945. }
  16946. .e_card_picture > img {
  16947. width: 50px;
  16948. }
  16949. .e_card_name {
  16950. width: 100%;
  16951. padding: 0 10px;
  16952. box-sizing: border-box;
  16953. margin-bottom: 10px;
  16954. overflow: hidden;
  16955. text-overflow: ellipsis;
  16956. white-space: nowrap;
  16957. }
  16958. .e_card_time {
  16959. width: 100%;
  16960. padding: 0 10px;
  16961. box-sizing: border-box;
  16962. font-size: 15px;
  16963. color: #c3c3c3;
  16964. margin-bottom: 10px;
  16965. }
  16966. .e_card_btn {
  16967. height: 40px;
  16968. display: flex;
  16969. align-items: center;
  16970. width: 100%;
  16971. background: rgb(244, 244, 244);
  16972. }
  16973. .e_card_btn:hover {
  16974. background: rgb(221 221 221);
  16975. }
  16976. .e_card_btn span {
  16977. flex: 1 1 auto;
  16978. text-align: center;
  16979. cursor: pointer;
  16980. }
  16981. .addEva {
  16982. border: 1px solid #ccc;
  16983. background: #fff;
  16984. margin-right: 20px;
  16985. width: 270px;
  16986. height: 149px;
  16987. display: flex;
  16988. flex-direction: column;
  16989. align-items: center;
  16990. border-radius: 5px;
  16991. margin-top: 10px;
  16992. text-align: center;
  16993. cursor: pointer;
  16994. justify-content: center;
  16995. }
  16996. .addEva > img {
  16997. width: 50px;
  16998. object-fit: cover;
  16999. }
  17000. .uploadFm {
  17001. border: 1px dashed #ccc;
  17002. width: 100%;
  17003. height: 140px;
  17004. position: relative;
  17005. cursor: pointer;
  17006. display: flex;
  17007. flex-direction: column;
  17008. justify-content: center;
  17009. align-items: center;
  17010. font-size: 14px;
  17011. color: #6e6e6e;
  17012. position: relative;
  17013. }
  17014. .cover_p {
  17015. width: 100% !important;
  17016. height: 100%;
  17017. object-fit: cover;
  17018. }
  17019. .uploadFm2:hover .cover_mask {
  17020. display: flex !important;
  17021. }
  17022. .cover_mask {
  17023. display: none;
  17024. width: 100%;
  17025. height: 100%;
  17026. position: absolute;
  17027. background: #00000054;
  17028. align-items: center;
  17029. justify-content: center;
  17030. flex-direction: column;
  17031. }
  17032. .cover_mask > img {
  17033. width: 30px;
  17034. }
  17035. .cover_mask > span {
  17036. color: #fff;
  17037. font-size: 12px;
  17038. }
  17039. .uploadFm > img {
  17040. width: 50px;
  17041. }
  17042. .fileCss {
  17043. width: 100%;
  17044. display: flex;
  17045. flex-direction: row;
  17046. flex-wrap: nowrap;
  17047. justify-content: space-around;
  17048. align-items: center;
  17049. padding-top: 15px;
  17050. }
  17051. .fileCss > div {
  17052. display: flex;
  17053. flex-direction: column;
  17054. align-items: center;
  17055. }
  17056. .fileCss .spanName {
  17057. margin-top: 10px;
  17058. }
  17059. .sysPicBox {
  17060. display: flex;
  17061. flex-direction: row;
  17062. flex-wrap: wrap;
  17063. align-content: flex-start;
  17064. height: 435px;
  17065. overflow: auto;
  17066. position: relative;
  17067. }
  17068. .picNone {
  17069. position: absolute;
  17070. left: 50%;
  17071. top: 45%;
  17072. transform: translate(-50%, -50%);
  17073. width: fit-content;
  17074. color: #9c9c9c;
  17075. }
  17076. .sysPic {
  17077. width: 200px;
  17078. height: 115px;
  17079. margin: 0 20px 20px 0;
  17080. cursor: pointer;
  17081. }
  17082. .sysPic > img,
  17083. .isSysPic > img,
  17084. .deletePic > img {
  17085. width: 100%;
  17086. height: 100%;
  17087. object-fit: cover;
  17088. }
  17089. .isSysPic {
  17090. width: 200px;
  17091. height: 115px;
  17092. position: relative;
  17093. }
  17094. .deletePic {
  17095. width: 20px;
  17096. height: 20px;
  17097. position: absolute;
  17098. top: 0;
  17099. right: 0;
  17100. cursor: pointer;
  17101. }
  17102. .select_box1 {
  17103. height: 100%;
  17104. }
  17105. .select_box1_img {
  17106. background: #fff;
  17107. border-radius: 5px;
  17108. padding: 15px;
  17109. box-sizing: border-box;
  17110. margin-bottom: 20px;
  17111. }
  17112. .select_box1_title {
  17113. padding: 0 0 15px 0;
  17114. border-bottom: 1px solid #eee;
  17115. margin-bottom: 15px;
  17116. }
  17117. .select_box1_title span:nth-child(1) {
  17118. font-size: 16px;
  17119. margin-right: 20px;
  17120. color: #000;
  17121. }
  17122. .select_box1_title span:nth-child(2) {
  17123. font-size: 14px;
  17124. color: rgb(112, 112, 112);
  17125. }
  17126. .select_box1_add_img {
  17127. }
  17128. .select_box1_select {
  17129. background: #fff;
  17130. border-radius: 5px;
  17131. padding: 15px;
  17132. box-sizing: border-box;
  17133. height: calc(100% - 200px);
  17134. overflow: auto;
  17135. }
  17136. .select_box2 {
  17137. height: 100%;
  17138. }
  17139. .select_box2_title {
  17140. background: #fff;
  17141. border-radius: 5px;
  17142. padding: 5px 10px;
  17143. box-sizing: border-box;
  17144. margin-bottom: 10px;
  17145. }
  17146. .select_box2_box {
  17147. display: flex;
  17148. height: calc(100% - 30px);
  17149. }
  17150. .select_box2_img {
  17151. width: calc(100% - 310px);
  17152. height: 100%;
  17153. overflow: auto;
  17154. background: #fff;
  17155. border-radius: 5px;
  17156. }
  17157. .select_box2_img img {
  17158. width: 100%;
  17159. }
  17160. .select_box2_answer {
  17161. background: #fff;
  17162. margin-left: 10px;
  17163. border-radius: 5px;
  17164. width: 300px;
  17165. overflow: auto;
  17166. height: 100%;
  17167. display: flex;
  17168. flex-direction: column;
  17169. align-items: center;
  17170. padding-top: 10px;
  17171. box-sizing: border-box;
  17172. }
  17173. .select_box2_answer_box {
  17174. margin: 0 0 10px 0;
  17175. width: 85%;
  17176. }
  17177. .rate_textarea {
  17178. font: inherit;
  17179. color: currentColor;
  17180. width: 100%;
  17181. padding: 8px 14px;
  17182. display: block;
  17183. min-width: 0;
  17184. outline: none;
  17185. border: 1px solid rgba(0, 0, 0, 0.23);
  17186. border-radius: 4px;
  17187. box-sizing: border-box;
  17188. background: #fff;
  17189. margin: 0 20px 0 0;
  17190. resize: none;
  17191. }
  17192. .select_answer_title {
  17193. text-align: left;
  17194. width: 85%;
  17195. margin-bottom: 10px;
  17196. font-size: 18px;
  17197. color: #8e8e8e;
  17198. }
  17199. .mask {
  17200. background-color: rgb(0 0 0 / 30%);
  17201. /* position: fixed; */
  17202. position: absolute;
  17203. top: 0;
  17204. left: 0;
  17205. width: 100%;
  17206. height: 100%;
  17207. z-index: 90;
  17208. display: flex;
  17209. align-items: center;
  17210. justify-content: center;
  17211. }
  17212. .progressBox {
  17213. width: 300px;
  17214. height: 150px;
  17215. background: #fff;
  17216. border-radius: 10px;
  17217. box-shadow: 0 0 6px 1px #bfbfbf;
  17218. display: flex;
  17219. align-items: center;
  17220. justify-content: center;
  17221. flex-direction: column;
  17222. position: relative;
  17223. color: #6c6c6c;
  17224. }
  17225. .progressBox >>> .el-progress-bar__outer {
  17226. background-color: #d1dfff !important;
  17227. }
  17228. .progressBox .lbox {
  17229. height: 50px;
  17230. font-size: 19px;
  17231. display: flex;
  17232. align-items: center;
  17233. color: #747474;
  17234. }
  17235. .progressBox .lbox img {
  17236. width: 40px;
  17237. margin-right: 20px;
  17238. }
  17239. .closeCss {
  17240. position: absolute;
  17241. top: 8px;
  17242. right: 8px;
  17243. cursor: pointer;
  17244. width: 20px;
  17245. height: 20px;
  17246. }
  17247. .closeCss > img {
  17248. width: 100%;
  17249. height: 100%;
  17250. }
  17251. .updateTips::before {
  17252. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  17253. font-size: 14px;
  17254. margin-left: 20px;
  17255. font-weight: 400;
  17256. color: #ff3a3a;
  17257. margin-bottom: 10px;
  17258. display: block;
  17259. }
  17260. .updateMask {
  17261. width: 100%;
  17262. z-index: 3;
  17263. top: 0;
  17264. position: absolute;
  17265. /* background-color: rgba(0,0,0,.3); */
  17266. }
  17267. .t_j_box {
  17268. display: flex;
  17269. }
  17270. .t_j_box span:nth-child(1) {
  17271. width: 15%;
  17272. overflow: hidden;
  17273. margin-right: 10px;
  17274. text-overflow: ellipsis;
  17275. white-space: nowrap;
  17276. }
  17277. .t_j_box span:nth-child(2) {
  17278. width: 30%;
  17279. overflow: hidden;
  17280. text-overflow: ellipsis;
  17281. margin-right: 10px;
  17282. }
  17283. .t_j_box span:nth-child(3) {
  17284. max-width: calc(55% - 20px);
  17285. overflow: hidden;
  17286. text-overflow: ellipsis;
  17287. }
  17288. .sentenBox {
  17289. background: #fff;
  17290. height: 600px;
  17291. overflow: auto;
  17292. background-image: url("../../../assets/icon/conSentences/csBg.png");
  17293. background-position: 102%;
  17294. background-repeat: no-repeat;
  17295. background-size: 60%;
  17296. }
  17297. .sentenBox > .sentenContent {
  17298. padding-bottom: 10px;
  17299. width: 97%;
  17300. margin: 0 auto;
  17301. }
  17302. .sentenBox > .sentenContent + .sentenContent {
  17303. border-top: 1px solid #cbcbcb;
  17304. }
  17305. .addSen {
  17306. background: #409efe;
  17307. width: 90px;
  17308. color: #fff;
  17309. height: 35px;
  17310. text-align: center;
  17311. line-height: 35px;
  17312. border-radius: 5px;
  17313. float: right;
  17314. margin: 10px 20px 0 0;
  17315. cursor: pointer;
  17316. }
  17317. .sentenTop {
  17318. display: flex;
  17319. flex-direction: row;
  17320. flex-wrap: nowrap;
  17321. align-items: center;
  17322. }
  17323. .sentenTop::before {
  17324. content: attr(index);
  17325. background: #3681fc;
  17326. border-radius: 50%;
  17327. color: #fff;
  17328. width: 25px;
  17329. height: 25px;
  17330. min-width: 25px;
  17331. min-height: 25px;
  17332. text-align: center;
  17333. line-height: 25px;
  17334. margin-right: 5px;
  17335. }
  17336. .sentenTop > div:nth-child(2) {
  17337. width: 300px;
  17338. margin: 0 15px;
  17339. }
  17340. .sentenTop > div:nth-child(3) {
  17341. background: #409efe;
  17342. color: #fff;
  17343. width: 65px;
  17344. height: 35px;
  17345. text-align: center;
  17346. line-height: 35px;
  17347. border-radius: 5px;
  17348. cursor: pointer;
  17349. }
  17350. .cardList {
  17351. padding: 30px 0 20px 0;
  17352. display: flex;
  17353. flex-direction: row;
  17354. flex-wrap: wrap;
  17355. align-items: center;
  17356. box-sizing: border-box;
  17357. border-bottom: 1px solid #f4f4f4;
  17358. width: 98%;
  17359. margin: 0 auto;
  17360. }
  17361. .rightCardList {
  17362. display: flex;
  17363. flex-wrap: wrap;
  17364. }
  17365. .cardBox {
  17366. display: flex;
  17367. flex-direction: row;
  17368. flex-wrap: wrap;
  17369. align-items: center;
  17370. align-content: center;
  17371. }
  17372. .isCard,
  17373. .isCard1 {
  17374. width: auto;
  17375. padding: 0 20px;
  17376. height: 65px;
  17377. text-align: center;
  17378. line-height: 65px;
  17379. font-size: 14px;
  17380. cursor: pointer;
  17381. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  17382. background-size: 100% 100%;
  17383. position: relative;
  17384. z-index: 99;
  17385. }
  17386. .isCard1 {
  17387. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  17388. }
  17389. .isCard:hover .deleteWord {
  17390. display: block;
  17391. }
  17392. .isCard > div:nth-child(1),
  17393. .isCard1 > div:nth-child(1) {
  17394. white-space: nowrap;
  17395. overflow: hidden;
  17396. text-overflow: ellipsis;
  17397. width: 100%;
  17398. margin: 0 auto;
  17399. }
  17400. .card {
  17401. width: 140px;
  17402. height: 65px;
  17403. }
  17404. .card > img {
  17405. width: 100%;
  17406. height: 100%;
  17407. }
  17408. .rightCardBox {
  17409. width: 98%;
  17410. margin: 10px auto 0;
  17411. }
  17412. .rightCardBox > div:nth-child(1) {
  17413. margin-bottom: 10px;
  17414. }
  17415. .cardCss {
  17416. display: flex;
  17417. flex-direction: column;
  17418. flex-wrap: nowrap;
  17419. align-items: center;
  17420. border-bottom: 3px solid #b4c3d3;
  17421. padding: 0 0 5px 0;
  17422. /* margin-right: 10px; */
  17423. }
  17424. .cardCss > div:nth-child(2) {
  17425. background: #5b7b9d;
  17426. color: #fff;
  17427. width: 20px;
  17428. height: 20px;
  17429. border-radius: 50%;
  17430. text-align: center;
  17431. line-height: 20px;
  17432. }
  17433. .sentenTopBox {
  17434. display: flex;
  17435. flex-direction: row;
  17436. flex-wrap: nowrap;
  17437. align-items: center;
  17438. justify-content: space-between;
  17439. padding: 55px 0 0 20px;
  17440. box-sizing: border-box;
  17441. width: 85%;
  17442. }
  17443. .stepsBottom {
  17444. width: 100%;
  17445. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17446. background: #fff;
  17447. border-radius: 10px;
  17448. overflow: hidden;
  17449. height: 100%;
  17450. height: calc(100vh - 300px);
  17451. position: sticky;
  17452. top: 0;
  17453. }
  17454. .navTop {
  17455. background: #53749b;
  17456. color: #fff;
  17457. height: 40px;
  17458. line-height: 40px;
  17459. padding-left: 15px;
  17460. font-size: 18px;
  17461. }
  17462. .navBottom {
  17463. /* background: #6b91b7; */
  17464. height: 100%;
  17465. overflow: auto;
  17466. padding: 10px 0;
  17467. box-sizing: border-box;
  17468. }
  17469. .navStage {
  17470. display: flex;
  17471. flex-direction: row;
  17472. flex-wrap: nowrap;
  17473. align-items: center;
  17474. padding: 10px 10px 10px 0;
  17475. cursor: pointer;
  17476. background: #ffffff;
  17477. width: 95%;
  17478. margin: 5px auto 5px;
  17479. box-sizing: border-box;
  17480. border-radius: 5px;
  17481. flex-wrap: wrap;
  17482. position: relative;
  17483. }
  17484. .navStage:hover > .chapter_upload_drag {
  17485. display: block;
  17486. }
  17487. .navTask:hover > .chapter_upload_drag {
  17488. display: block;
  17489. }
  17490. .chapter_upload:hover > .chapter_upload_drag {
  17491. display: block;
  17492. }
  17493. .navStage::before {
  17494. content: "";
  17495. display: block;
  17496. width: 16px;
  17497. height: 16px;
  17498. background-image: url(../../../assets/icon/new/icon_stage.png);
  17499. background-size: 100%;
  17500. margin-left: 25px;
  17501. }
  17502. .navStage .chapter_unit_open {
  17503. content: "";
  17504. display: block;
  17505. width: 16px;
  17506. height: 16px;
  17507. background-image: url(../../../assets/icon/new/down.png);
  17508. transform: rotate(-90deg);
  17509. background-size: 100%;
  17510. margin-left: 10px;
  17511. transition: all 0.5s;
  17512. }
  17513. .isNavStageOpen .chapter_unit_open {
  17514. transform: rotate(0deg);
  17515. }
  17516. .isNavStage {
  17517. background: #0061ff;
  17518. }
  17519. .isNavStage::before {
  17520. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  17521. }
  17522. .isNavStage .chapter_unit_open {
  17523. background-image: url(../../../assets/icon/new/downC.png);
  17524. }
  17525. .isNavStage .nt_taskName {
  17526. font-weight: bold !important;
  17527. color: #ffffff !important;
  17528. }
  17529. .isNavStage .nt_taskTitle {
  17530. font-weight: bold !important;
  17531. color: #fff !important;
  17532. }
  17533. .navStage .nt_taskBox {
  17534. width: calc(100% - 68px);
  17535. padding: 0 0 0 5px;
  17536. box-sizing: border-box;
  17537. box-sizing: border-box;
  17538. display: flex;
  17539. flex-direction: row;
  17540. flex-wrap: nowrap;
  17541. align-items: baseline;
  17542. }
  17543. .navStage .nt_taskTitle {
  17544. color: #060e17;
  17545. line-height: 25px;
  17546. font-size: 16px;
  17547. }
  17548. .navStage .nt_taskName {
  17549. max-width: calc(100% - 82px);
  17550. white-space: nowrap;
  17551. overflow: hidden;
  17552. text-overflow: ellipsis;
  17553. font-size: 16px;
  17554. color: #060e17;
  17555. }
  17556. .navTask {
  17557. display: flex;
  17558. flex-direction: row;
  17559. flex-wrap: nowrap;
  17560. align-items: center;
  17561. padding: 10px 10px 10px 0;
  17562. cursor: pointer;
  17563. background: #ffffff;
  17564. width: 95%;
  17565. margin: 5px auto 5px;
  17566. box-sizing: border-box;
  17567. border-radius: 5px;
  17568. flex-wrap: wrap;
  17569. position: relative;
  17570. }
  17571. .navTask .chapter_upload_open {
  17572. content: "";
  17573. display: block;
  17574. width: 16px;
  17575. height: 16px;
  17576. background-image: url(../../../assets/icon/new/icon_arrow.png);
  17577. background-size: 100%;
  17578. margin-left: 23px;
  17579. }
  17580. .noImage .chapter_upload_open {
  17581. display: none;
  17582. background-image: unset !important;
  17583. }
  17584. .isNavOpen .chapter_upload_open {
  17585. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  17586. transform: rotate(90deg);
  17587. }
  17588. .isNavTask .chapter_upload_open {
  17589. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  17590. transform: rotate(-90deg);
  17591. }
  17592. .isNavTask.isNavOpen .chapter_upload_open {
  17593. transform: rotate(0deg);
  17594. }
  17595. .dragOverTop {
  17596. border-top: 2px solid #0061ff !important;
  17597. border-radius: 0 !important;
  17598. margin-top: 10px;
  17599. }
  17600. .dragOverBottom {
  17601. border-bottom: 2px solid #0061ff !important;
  17602. border-radius: 0 !important;
  17603. margin-top: 10px;
  17604. }
  17605. .dragOverTop2 {
  17606. border-top: 2px solid #0061ff !important;
  17607. border-radius: 0 !important;
  17608. }
  17609. .dragOverBottom2 {
  17610. border-bottom: 2px solid #0061ff !important;
  17611. border-radius: 0 !important;
  17612. }
  17613. .isNavTask {
  17614. /* background: #3681FC; */
  17615. background: #eef3fb;
  17616. }
  17617. .isNavTask > .chapter_upload_drag {
  17618. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  17619. }
  17620. .isNavTask .nt_taskName {
  17621. /* color: #fff !important; */
  17622. font-weight: bold !important;
  17623. color: #0061ff !important;
  17624. }
  17625. .isNavTask .nt_taskTitle {
  17626. /* color: #AECCFE !important; */
  17627. font-weight: bold !important;
  17628. color: #0061ff !important;
  17629. }
  17630. .navTask .nt_taskBox {
  17631. width: calc(100% - 40px);
  17632. padding: 0 0 0 5px;
  17633. box-sizing: border-box;
  17634. box-sizing: border-box;
  17635. display: flex;
  17636. flex-direction: row;
  17637. flex-wrap: nowrap;
  17638. align-items: baseline;
  17639. }
  17640. .navTask .nt_taskTitle {
  17641. /* color: #717C8D; */
  17642. color: #060e17;
  17643. line-height: 25px;
  17644. font-size: 16px;
  17645. /* min-width: 66px; */
  17646. }
  17647. .navTask .nt_taskName {
  17648. /* color: #fff; */
  17649. /* max-width: 130px; */
  17650. /* width: 100%; */
  17651. max-width: calc(100% - 66px);
  17652. font-size: 16px;
  17653. color: #060e17;
  17654. /* color: #0E1E33; */
  17655. }
  17656. .navTask .nt_taskName span {
  17657. width: 100%;
  17658. white-space: nowrap;
  17659. overflow: hidden;
  17660. text-overflow: ellipsis;
  17661. display: block;
  17662. }
  17663. .gjBox {
  17664. width: calc(100% - 25px);
  17665. padding: 0 0 0 0;
  17666. box-sizing: border-box;
  17667. border-left: 1px solid #cad1dc;
  17668. margin-left: 25px;
  17669. }
  17670. .gjBox > div {
  17671. display: flex;
  17672. align-items: center;
  17673. }
  17674. .gjBox > div::before {
  17675. content: "";
  17676. height: 1px;
  17677. width: 10px;
  17678. background: #cad1dc;
  17679. display: block;
  17680. margin-right: 5px;
  17681. }
  17682. .gjCss {
  17683. display: flex;
  17684. flex-direction: row;
  17685. flex-wrap: nowrap;
  17686. align-items: center;
  17687. padding: 15px 0;
  17688. box-sizing: border-box;
  17689. font-size: 14px;
  17690. cursor: pointer;
  17691. }
  17692. .isGjCss {
  17693. color: #0061ff;
  17694. }
  17695. .groupBox {
  17696. }
  17697. .groupContent + .groupContent {
  17698. margin-top: 30px;
  17699. }
  17700. .groupTitle {
  17701. font-size: 24px;
  17702. color: rgb(80, 80, 80);
  17703. margin-bottom: 20px;
  17704. }
  17705. .groupName {
  17706. display: flex;
  17707. align-items: center;
  17708. }
  17709. .groupn {
  17710. font-size: 15px;
  17711. margin-right: 10px;
  17712. }
  17713. .groupName + .groupName {
  17714. margin-top: 15px;
  17715. }
  17716. .groupBtn {
  17717. margin-left: 10px;
  17718. }
  17719. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  17720. text-align: left;
  17721. }
  17722. .radioBox > div {
  17723. margin: 10px 0 0 10px;
  17724. }
  17725. .radioBox >>> .el-radio__input,
  17726. .radioBox >>> .el-checkbox__inner {
  17727. margin-left: 10px;
  17728. }
  17729. .radioBox >>> .el-radio__label,
  17730. .radioBox >>> .el-checkbox__label {
  17731. display: flex;
  17732. align-items: center;
  17733. }
  17734. .inImg {
  17735. width: 50px;
  17736. }
  17737. .inImg > img {
  17738. width: 100%;
  17739. height: 100%;
  17740. object-fit: cover;
  17741. }
  17742. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  17743. height: auto;
  17744. padding: 10px;
  17745. margin: 0;
  17746. }
  17747. .upCss >>> .el-upload-list {
  17748. width: 100%;
  17749. }
  17750. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  17751. width: 100%;
  17752. height: 120px;
  17753. object-fit: contain;
  17754. background: unset;
  17755. margin-left: 0;
  17756. }
  17757. .upCss
  17758. >>> .el-upload-list--picture
  17759. .el-upload-list__item.is-success
  17760. .el-upload-list__item-name {
  17761. display: none;
  17762. }
  17763. .tcMember + .tcMember::before {
  17764. content: "、";
  17765. }
  17766. .xzUpImg {
  17767. width: 25px;
  17768. height: 25px;
  17769. min-width: 25px;
  17770. min-height: 25px;
  17771. cursor: pointer;
  17772. margin: 0 10px;
  17773. }
  17774. .xzUpImg > img {
  17775. width: 100%;
  17776. height: 100%;
  17777. }
  17778. .closeCss {
  17779. position: absolute;
  17780. top: 8px;
  17781. right: 8px;
  17782. cursor: pointer;
  17783. width: 20px;
  17784. height: 20px;
  17785. }
  17786. .closeCss > img {
  17787. width: 100%;
  17788. height: 100%;
  17789. }
  17790. .moveBtn {
  17791. display: flex;
  17792. flex-direction: row;
  17793. flex-wrap: nowrap;
  17794. align-items: center;
  17795. width: 55px;
  17796. }
  17797. .timuUpImg {
  17798. display: flex;
  17799. flex-direction: row;
  17800. align-items: center;
  17801. width: 100%;
  17802. margin-right: 10px;
  17803. }
  17804. .timuUpImg > div:nth-child(1) {
  17805. margin-right: 10px;
  17806. display: flex;
  17807. align-items: center;
  17808. width: 100%;
  17809. }
  17810. .timuImgBox {
  17811. margin: 10px 0;
  17812. display: flex;
  17813. flex-direction: column;
  17814. flex-wrap: wrap;
  17815. align-items: flex-start;
  17816. }
  17817. .timuImg {
  17818. width: 100px;
  17819. margin: 5px 0;
  17820. cursor: pointer;
  17821. position: relative;
  17822. }
  17823. .timuImg:hover .deleteWord {
  17824. display: block;
  17825. }
  17826. .deleteWord {
  17827. width: 25px;
  17828. height: 25px;
  17829. position: absolute;
  17830. right: -5px;
  17831. top: -5px;
  17832. cursor: pointer;
  17833. display: none;
  17834. }
  17835. .timuImg > img,
  17836. .deleteWord > img {
  17837. width: 100%;
  17838. height: 100%;
  17839. object-fit: cover;
  17840. }
  17841. .e_add_delete {
  17842. cursor: pointer;
  17843. margin-left: 10px;
  17844. }
  17845. .pType_box {
  17846. margin-top: 30px;
  17847. align-items: flex-end;
  17848. }
  17849. .noneBox {
  17850. height: 200px;
  17851. width: 100%;
  17852. display: flex;
  17853. align-items: center;
  17854. justify-content: center;
  17855. flex-direction: column;
  17856. /* margin-top: 150px; */
  17857. }
  17858. .noneBox > img {
  17859. width: 95px;
  17860. }
  17861. .noneBox > span {
  17862. margin-top: 10px;
  17863. color: #717c8d;
  17864. }
  17865. .rb_c_box {
  17866. width: 100%;
  17867. /* height: 100%; */
  17868. display: flex;
  17869. /* padding: 20px; */
  17870. box-sizing: border-box;
  17871. justify-content: space-between;
  17872. margin-top: 10px;
  17873. }
  17874. .rb_c_box_left {
  17875. /* min-height: 500px; */
  17876. /* background: #fff; */
  17877. width: 270px;
  17878. min-width: 270px;
  17879. border-radius: 8px;
  17880. margin-right: 10px;
  17881. /* position: sticky; */
  17882. }
  17883. .rb_c_box_right {
  17884. height: auto;
  17885. width: calc(100% - 280px);
  17886. /* overflow: hidden; */
  17887. }
  17888. .rb_c_box_btn {
  17889. display: flex;
  17890. justify-content: flex-start;
  17891. height: 50px;
  17892. align-items: center;
  17893. }
  17894. .rb_c_box_right > .basic_box {
  17895. /* background: #fff; */
  17896. border-radius: 0;
  17897. /* height: calc(100% - 0px); */
  17898. /* overflow: auto; */
  17899. padding: 0;
  17900. }
  17901. .textarea_css {
  17902. display: block;
  17903. resize: none;
  17904. padding: 10px 15px;
  17905. line-height: 1.5;
  17906. box-sizing: border-box;
  17907. width: 100%;
  17908. font-size: 14px;
  17909. color: #606266;
  17910. background-color: #fff;
  17911. background-image: none;
  17912. border: 1px solid #dcdfe6;
  17913. border-radius: 4px;
  17914. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  17915. outline: none;
  17916. overflow: hidden;
  17917. height: 46px;
  17918. font-family: "Microsoft YaHei";
  17919. }
  17920. .textarea_css::-webkit-input-placeholder {
  17921. color: #c0c4cc;
  17922. }
  17923. .textarea_css:focus {
  17924. border-color: #409eff;
  17925. outline: 0;
  17926. }
  17927. .addEditor >>> .text {
  17928. height: auto;
  17929. min-height: 200px;
  17930. }
  17931. .addEditor >>> .w-e-text-container {
  17932. min-height: 100px;
  17933. }
  17934. .moveBtn2 {
  17935. flex-direction: column;
  17936. width: fit-content;
  17937. margin: 0 10px 0 10px;
  17938. }
  17939. .moveBtn2 .chapter_upload_down,
  17940. .moveBtn2 .chapter_upload_up {
  17941. width: 16px;
  17942. height: 16px;
  17943. }
  17944. .moveBtn2 .chapter_upload_up::after,
  17945. .moveBtn2 .chapter_upload_down::after {
  17946. width: 10px;
  17947. height: 10px;
  17948. }
  17949. .fullStyle >>> .el-dialog__body {
  17950. height: calc(100% - 125px) !important;
  17951. box-sizing: border-box;
  17952. }
  17953. .fullStyle1 >>> .el-dialog__body {
  17954. height: auto !important;
  17955. }
  17956. .fullStyle >>> .el-dialog {
  17957. width: 100% !important;
  17958. max-width: 100% !important;
  17959. height: 100% !important;
  17960. margin: 0 !important;
  17961. }
  17962. .fullStyle {
  17963. width: 100% !important;
  17964. max-width: 100% !important;
  17965. height: 100% !important;
  17966. margin: 0 auto !important;
  17967. }
  17968. .wb_j_box_btn {
  17969. width: calc(100% - 30px);
  17970. display: flex;
  17971. height: 40px;
  17972. border: 1.5px solid #cad1dc;
  17973. border-radius: 4px;
  17974. box-sizing: border-box;
  17975. align-items: center;
  17976. font-size: 14px;
  17977. cursor: pointer;
  17978. overflow: hidden;
  17979. }
  17980. .wb_j_box_btn:hover {
  17981. border: 1.5px solid #0061ff;
  17982. }
  17983. .wb_j_box_title {
  17984. background: #f0f4fa;
  17985. height: 100%;
  17986. line-height: 40px;
  17987. width: 90px;
  17988. text-align: center;
  17989. color: #060e17;
  17990. border-right: 1.5px solid #cad1dc;
  17991. box-sizing: border-box;
  17992. }
  17993. .wb_j_box_btn_c {
  17994. width: calc(100% - 90px);
  17995. padding: 0 35px 0 10px;
  17996. box-sizing: border-box;
  17997. position: relative;
  17998. }
  17999. .wb_j_box_span {
  18000. width: 100%;
  18001. overflow: hidden;
  18002. white-space: nowrap;
  18003. text-overflow: ellipsis;
  18004. word-wrap: break-word;
  18005. color: #717c8d;
  18006. }
  18007. .wb_j_box_arrow {
  18008. content: "";
  18009. width: 14px;
  18010. height: 14px;
  18011. background: url(../../../assets/icon/new/u_arrow.png);
  18012. background-size: 100% 100%;
  18013. position: absolute;
  18014. right: 12px;
  18015. top: 50%;
  18016. transform: translateY(-50%);
  18017. }
  18018. .check_classBox {
  18019. height: 400px;
  18020. display: flex;
  18021. border-top: 1.5px solid #e7ebf1;
  18022. border-bottom: 1.5px solid #e7ebf1;
  18023. }
  18024. .check_class_right {
  18025. width: 130px;
  18026. border-right: 1px solid #e7ebf1;
  18027. display: flex;
  18028. align-items: center;
  18029. flex-direction: column;
  18030. height: 100%;
  18031. overflow: auto;
  18032. padding: 15px 0;
  18033. box-sizing: border-box;
  18034. }
  18035. .check_class {
  18036. width: 85%;
  18037. border-radius: 5px;
  18038. height: 30px;
  18039. min-height: 30px;
  18040. line-height: 30px;
  18041. text-align: center;
  18042. padding: 0 10px;
  18043. box-sizing: border-box;
  18044. cursor: pointer;
  18045. white-space: nowrap;
  18046. overflow: hidden;
  18047. text-overflow: ellipsis;
  18048. }
  18049. .check_class.activeX {
  18050. background: #e0eafb;
  18051. color: #3681fc;
  18052. font-weight: 700;
  18053. }
  18054. .check_class + .check_class {
  18055. margin-top: 15px;
  18056. }
  18057. .check_class_left {
  18058. background: #fafafa;
  18059. width: calc(100% - 130px);
  18060. padding: 15px;
  18061. box-sizing: border-box;
  18062. }
  18063. .check_class_all_box {
  18064. display: flex;
  18065. margin-bottom: 10px;
  18066. }
  18067. .all_check {
  18068. display: flex;
  18069. align-items: center;
  18070. padding: 2px 0 0;
  18071. margin-left: 10px;
  18072. }
  18073. .all_check >>> .el-checkbox__label {
  18074. line-height: 18px;
  18075. }
  18076. .check_class_left_title {
  18077. font-size: 16px;
  18078. font-weight: 700;
  18079. }
  18080. .check_class_item {
  18081. display: flex;
  18082. flex-wrap: wrap;
  18083. height: calc(100% - 45px);
  18084. overflow: auto;
  18085. justify-content: flex-start;
  18086. align-items: flex-start;
  18087. align-content: flex-start;
  18088. }
  18089. .class_item:first-child {
  18090. /* margin: 0 15px 15px 67px; */
  18091. }
  18092. .class_item {
  18093. margin: 0 15px 15px 0;
  18094. }
  18095. .class_item:hover >>> .el-checkbox__label {
  18096. color: #409eff;
  18097. }
  18098. .class_item >>> .el-checkbox__label {
  18099. color: #0e1e33;
  18100. }
  18101. .class_item:hover >>> .el-checkbox__inner {
  18102. border-color: #409eff;
  18103. }
  18104. .class_item >>> .el-checkbox,
  18105. .class_item >>> .el-checkbox__input {
  18106. display: flex;
  18107. align-items: center;
  18108. }
  18109. .taskTitle {
  18110. font-size: 20px;
  18111. font-weight: bold;
  18112. margin-bottom: 35px;
  18113. }
  18114. .taskTitle:after {
  18115. content: "";
  18116. width: 100%;
  18117. display: block;
  18118. height: 1px;
  18119. background: #cad1dc;
  18120. position: absolute;
  18121. left: 0;
  18122. margin: 15px 0 0;
  18123. }
  18124. .eva_btn_box {
  18125. margin: 20px 0px 0 0;
  18126. display: flex;
  18127. flex-direction: row;
  18128. flex-wrap: nowrap;
  18129. align-items: center;
  18130. justify-content: space-between;
  18131. width: 100%;
  18132. }
  18133. .eva_btn_left_box {
  18134. display: flex;
  18135. flex-direction: row;
  18136. flex-wrap: nowrap;
  18137. align-items: center;
  18138. }
  18139. .addTypeChoose {
  18140. display: flex;
  18141. flex-direction: row;
  18142. flex-wrap: nowrap;
  18143. align-items: center;
  18144. margin: 15px 0;
  18145. }
  18146. .addTypeBox {
  18147. display: flex;
  18148. flex-direction: column;
  18149. flex-wrap: nowrap;
  18150. align-items: center;
  18151. }
  18152. .addTypeChoose {
  18153. display: flex;
  18154. flex-direction: row;
  18155. flex-wrap: nowrap;
  18156. align-items: center;
  18157. margin: 15px 0;
  18158. }
  18159. .text_panel >>> .text{
  18160. height: 400px;
  18161. }
  18162. .Ovh{
  18163. width: 4em;
  18164. -webkit-line-clamp: 2;
  18165. text-align: center;
  18166. display: -webkit-box;
  18167. -webkit-box-orient: vertical;
  18168. overflow: hidden;
  18169. text-overflow: ellipsis;
  18170. }
  18171. </style>