addCourse.vue 499 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358
  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 :to="{
  9. path:
  10. '/trainCourse?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">培训管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加培训</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择培训模板</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择培训模板</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传培训内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传培训内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入培训名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此培训"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">培训权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">培训简要描述</div>
  226. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  227. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  228. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入培训简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/trainCourse?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回培训
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回培训" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的培训模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的培训
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/trainCourse?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回培训
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回培训" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom" v-if="courseState == 2">
  479. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex && dragType == 'task',
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && dragType == 'task',
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  497. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  503. <div
  504. @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  505. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''"
  506. style="left: 8px;"
  507. class="chapter_upload_drag"
  508. ></div>
  509. <div class="nt_taskBox">
  510. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  511. <div class="nt_taskName">
  512. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  513. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  514. </el-tooltip>
  515. </div>
  516. </div>
  517. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  518. 1
  519. ">
  520. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  521. @click.stop="taskMove(1, tIndex)"></div>
  522. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  523. @click.stop="taskMove(2, tIndex)"></div>
  524. </div> -->
  525. </div>
  526. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  527. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  528. @click="jumpGj(tIndex, toolIndex2)">
  529. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  530. <div>工具{{ toolIndex2 + 1 }}:</div>
  531. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="navBottom" v-if="courseState == 1">
  538. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  539. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  540. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  541. }">
  542. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  543. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-'+stageIndex" @click="unitSet2(stageIndex)" class="navStage" :class="{
  544. isNavStage: stageIndex == unitIndex,
  545. isNavStageOpen: stage.toolOpen
  546. }">
  547. <div
  548. @mousedown="isdrag = 'unit-'+stageIndex" @mouseup="isdrag = ''"
  549. @touchstart="isdrag = 'unit-'+stageIndex" @touchend="isdrag = ''"
  550. style="left: 8px;"
  551. class="chapter_upload_drag"
  552. ></div>
  553. <div class="nt_taskBox">
  554. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  555. <div class="nt_taskName">
  556. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  557. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  558. </el-tooltip>
  559. </div>
  560. </div>
  561. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  562. </div>
  563. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  564. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  565. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  566. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  567. }" :style="{display:stage.toolOpen ? 'block' : 'none'}">
  568. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)" @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  569. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+stageIndex+'-'+tIndex" @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px;" :class="{
  570. isNavTask:
  571. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  572. isNavOpen: t.toolOpen
  573. }">
  574. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  575. <div
  576. @mousedown="isdrag = 'task-'+stageIndex+'-'+tIndex" @mouseup="isdrag = ''"
  577. @touchstart="isdrag = 'task-'+stageIndex+'-'+tIndex" @touchend="isdrag = ''"
  578. style="left: 20px;"
  579. class="chapter_upload_drag"
  580. ></div>
  581. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  582. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  583. <div class="nt_taskName">
  584. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  585. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  586. </el-tooltip>
  587. </div>
  588. </div>
  589. </div>
  590. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  591. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  592. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  593. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  594. <div>工具{{ toolIndex2 + 1 }}:</div>
  595. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="rb_c_box_right">
  605. <!-- <div class="rb_c_box_btn">
  606. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  607. </div> -->
  608. <div class="basic_box" ref="unitBox">
  609. <div style="
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. position: sticky;
  614. top: 0;
  615. z-index: 99;
  616. width: 100%;
  617. padding: 0 20px 0 20px;
  618. box-sizing: border-box;
  619. background: #fff;
  620. border-radius: 8px;
  621. ">
  622. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  623. <div class="cru_selectBox"
  624. :style="{ maxWidth: isPasteTask ? 'calc(100% - 335px)' : 'calc(100% - 190px)' }" v-if="courseState == 1">
  625. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  626. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  627. <!-- item.dyName ? item.dyName : -->
  628. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  629. unitJson[unitJson.length - 1].easy == 6
  630. ">{{
  631. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  632. }}</span>
  633. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  634. </div>
  635. <div class="cru_line" :style="{
  636. left: offsetLetfPx + 'px',
  637. }"></div>
  638. </div>
  639. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  640. !(unitJson[unitJson.length - 1].easy == 6) && courseState == 1
  641. ">
  642. <img src="../../../assets/icon/new/addStage.png" alt />
  643. </div>
  644. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)" v-if="courseState == 2" style="margin: 15px 0">新建阶段</button>
  645. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  646. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  647. style="margin: 0 0 0 auto;">阶段顺序</button>
  648. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  649. style="margin: 0 0 0 auto;">智能粘贴</button>
  650. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  651. :style="{margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto'}" style="padding:0 12px">选择培训模板</button>
  652. </div>
  653. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  654. :key="index">
  655. <div class="chapter_box" v-if="courseState == 1">
  656. <div class="chapter_contentbox">
  657. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  658. <div class="cc_input">
  659. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  660. v-model="unitJson[unitIndex].dyName" />
  661. </div>
  662. <div class="remove" v-if="(unitJson.length > 1 || courseState != 2) &&
  663. !(unitJson[unitJson.length - 1].easy == 4) &&
  664. !(unitJson[unitJson.length - 1].easy == 6)
  665. " @click="deleteUnit(unitIndex)"></div>
  666. </div>
  667. </div>
  668. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  669. margin: 50px 0px 10px;
  670. font-size: 1.5em;
  671. font-weight: 700;
  672. color: #0f7eff;
  673. ">
  674. 添加任务
  675. </div> -->
  676. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  677. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  678. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  679. <div style="background: #fff;border-radius: 5px;">
  680. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  681. <!-- padding: 20px; -->
  682. <div v-if="unitJson[unitIndex].easy != 1">
  683. <div :style="{
  684. marginBottom:
  685. unitJson[unitIndex].easy == 3 ||
  686. (unitJson[unitIndex].easy == 5 &&
  687. itemTask.taskType == 1)
  688. ? '75px'
  689. : '0',
  690. }">
  691. <div style="
  692. display: flex;
  693. margin: 0px 0 20px;
  694. flex-direction: row;
  695. justify-content: flex-start;
  696. align-items: center;
  697. ">
  698. <div class="lineTitle">任务概述</div>
  699. </div>
  700. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  701. flex-direction: row;
  702. justify-content: flex-start;
  703. align-items: center;
  704. margin:0;
  705. ">
  706. <!-- <div class="cc_title">
  707. 任务{{ itemTaskIndex + 1 }}
  708. </div> -->
  709. <div class="cc_input">
  710. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  711. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  712. itemTaskIndex
  713. ].task
  714. " />
  715. </div>
  716. <div class="remove" v-if="item.taskJson.length > 1 &&
  717. (!unitJson[unitIndex].easy ||
  718. unitJson[unitIndex].easy == 6)
  719. " @click="deleteTask(itemTaskIndex)"></div>
  720. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  721. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  722. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  723. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  724. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  725. </div> -->
  726. </div>
  727. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  728. display: flex;
  729. margin: 20px 0;
  730. flex-direction: row;
  731. justify-content: flex-start;
  732. align-items: center;
  733. ">
  734. <div class="lineTitle">任务描述</div>
  735. </div> && !itemTask.isFold2-->
  736. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 "
  737. style="margin-top: 20px;">
  738. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  739. itemTaskIndex
  740. ].taskDetail
  741. " @change="change"></editor-bar>
  742. <!-- <textarea
  743. rows="6"
  744. class="binfo_input"
  745. placeholder="请输入任务描述"
  746. cols
  747. style="width: 70.5% !important; height: 120px"
  748. v-model="
  749. unitJson[unitIndex].chapterInfo[0].taskJson[
  750. itemTaskIndex
  751. ].taskDetail
  752. "
  753. ></textarea>-->
  754. </div>
  755. </div>
  756. </div>
  757. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  758. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  759. ">
  760. <div style="
  761. display: flex;
  762. flex-direction: row;
  763. justify-content: space-between;
  764. align-items: center;
  765. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  766. <div style="margin-bottom:10px" class="lineTitle clineTitle">学习内容</div>
  767. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  768. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  769. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  770. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  771. <!-- <div class="line"></div> -->
  772. </div>
  773. <!-- v-if="!itemTask.isFoldchapter" -->
  774. <div>
  775. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  776. itemTask.chapterData.length == 0
  777. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  778. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  779. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  780. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  781. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  782. getChapterData(
  783. $event,
  784. unitIndex,
  785. index,
  786. index1,
  787. item1.type
  788. )
  789. " :class="{
  790. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1 && dragType == 'drag',
  791. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1 && dragType == 'drag',
  792. }">
  793. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  794. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  795. <div class="chapter_upload_o" style="
  796. position: relative;
  797. display: flex;
  798. align-items: center;
  799. ">
  800. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  801. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  802. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  803. </div>
  804. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  805. </div>
  806. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  807. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  808. </div>
  809. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  810. </div>
  811. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  812. </div>
  813. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  814. </div>
  815. </div>
  816. <div class="chapter_upload_n">
  817. <input readonly="true" v-if="item1.type == 2 ||
  818. item1.type == 3 ||
  819. item1.type == 12 ||
  820. item1.type == 13 ||
  821. item1.type == 7
  822. " :placeholder="item1.name" @click="
  823. updataVideoT(
  824. $event,
  825. unitIndex,
  826. itemTaskIndex,
  827. index1
  828. )
  829. " style="
  830. border: none;
  831. outline: none;
  832. width: 80%;
  833. minwidth: 215px;
  834. z-index: 99;
  835. font-size: 14px;
  836. white-space: nowrap;
  837. overflow: hidden;
  838. text-overflow: ellipsis;
  839. " />
  840. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  841. border: none;
  842. outline: none;
  843. width: 80%;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  848. <input :placeholder="item1.title ? item1.title : '链接'
  849. " v-if="item1.type == 8" style="
  850. border: none;
  851. outline: none;
  852. width: 80%;
  853. white-space: nowrap;
  854. overflow: hidden;
  855. text-overflow: ellipsis;
  856. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  857. <input :placeholder="item1.title ? item1.title : '链接'
  858. " v-if="item1.type == 14" style="
  859. border: none;
  860. outline: none;
  861. width: 80%;
  862. white-space: nowrap;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  866. </div>
  867. <div class="chapter_upload_ic">
  868. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  869. </div>
  870. <div class="chapter_upload_ud" style="z-index: 99">
  871. <div class="chapter_upload_up" @click="
  872. upCd(
  873. $event,
  874. unitIndex,
  875. index,
  876. itemTaskIndex,
  877. index1
  878. )
  879. "></div>
  880. <div class="chapter_upload_down" @click="
  881. downCd(
  882. $event,
  883. unitIndex,
  884. index,
  885. itemTaskIndex,
  886. index1
  887. )
  888. "></div>
  889. </div>
  890. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  891. item1.type == 3 ||
  892. item1.type == 12 ||
  893. item1.type == 13 ||
  894. item1.type == 7
  895. " @click.stop="
  896. updataVideoT(
  897. $event,
  898. unitIndex,
  899. itemTaskIndex,
  900. index1
  901. )
  902. ">
  903. <div></div>
  904. </div>
  905. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  906. @click="selectAttText(itemTaskIndex, index1)">
  907. <div></div>
  908. </div>
  909. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  910. @click="selectLine(itemTaskIndex, index1)">
  911. <div></div>
  912. </div>
  913. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  914. @click="openUpdateSource(itemTaskIndex, index1)">
  915. <div></div>
  916. </div>
  917. <div class="chapter_upload_ic_r" @click.stop="
  918. deleteChapterData(
  919. $event,
  920. unitIndex,
  921. index,
  922. index1,
  923. itemTaskIndex
  924. )
  925. ">
  926. <div></div>
  927. </div>
  928. </div>
  929. </div>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- v-if="!itemTask.isFoldchapter" -->
  934. <div class="add_info_box" style="margin: 10px 0 0">
  935. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  936. 文件
  937. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  938. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  939. " />
  940. </button>
  941. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  942. 图文
  943. </button>
  944. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  945. 链接
  946. </button>
  947. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  948. 代码
  949. </button>
  950. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  951. 资源
  952. </button>
  953. </div>
  954. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  955. itemTaskIndex
  956. ].proVisible
  957. " class="mask">
  958. <div class="progressBox">
  959. <!-- <div id="closePro" class="closeCss">
  960. <img src="../../../../assets/icon/close.png" alt />
  961. </div> -->
  962. <div class="lbox">
  963. <img src="../../../assets/loading.gif" />上传中,请稍后
  964. </div>
  965. <div style="margin-bottom: 10px">
  966. <span>{{
  967. unitJson[unitIndex].chapterInfo[0].taskJson[
  968. itemTaskIndex
  969. ].isFinishSize
  970. }}M</span>
  971. /
  972. <span>{{
  973. unitJson[unitIndex].chapterInfo[0].taskJson[
  974. itemTaskIndex
  975. ].isAllSize
  976. }}M</span>
  977. </div>
  978. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  979. itemTaskIndex
  980. ].progress
  981. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  982. itemTaskIndex
  983. ].progress
  984. : 0
  985. " style="width: 80%"></el-progress>
  986. </div>
  987. </div>
  988. </div>
  989. <div v-if="unitJson[unitIndex].easy == 1 ||
  990. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  991. ">
  992. <div>
  993. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  994. itemTask.chapterData.length == 0
  995. "><img src="../../../assets/icon/new/c_none.png" alt /></div>
  996. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  997. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  998. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  999. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  1000. getChapterData(
  1001. $event,
  1002. unitIndex,
  1003. index,
  1004. index1,
  1005. item1.type
  1006. )
  1007. " :class="{
  1008. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  1009. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  1010. }">
  1011. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  1012. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1013. <div class="chapter_upload_t" style="width: 100%"></div>
  1014. <div class="chapter_upload_o" style="
  1015. position: relative;
  1016. display: flex;
  1017. align-items: center;
  1018. ">
  1019. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1020. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1021. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1022. </div>
  1023. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1024. </div>
  1025. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1026. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1027. </div>
  1028. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1029. </div>
  1030. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1031. </div>
  1032. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1033. </div>
  1034. </div>
  1035. <div class="chapter_upload_n">
  1036. <span style="
  1037. font-size: 14px;
  1038. color: rgb(109, 109, 109);
  1039. height: 14px;
  1040. line-height: 14px;
  1041. " v-if="item1.type == 2 ||
  1042. item1.type == 3 ||
  1043. item1.type == 7
  1044. ">{{ item1.text }}-</span>
  1045. <input readonly="true" v-if="item1.type == 2 ||
  1046. item1.type == 3 ||
  1047. item1.type == 7
  1048. " :placeholder="item1.name" @click="
  1049. updataVideoT(
  1050. $event,
  1051. unitIndex,
  1052. itemTaskIndex,
  1053. index1
  1054. )
  1055. " style="
  1056. border: none;
  1057. outline: none;
  1058. width: 80%;
  1059. minwidth: 215px;
  1060. z-index: 99;
  1061. font-size: 14px;
  1062. white-space: nowrap;
  1063. overflow: hidden;
  1064. text-overflow: ellipsis;
  1065. " />
  1066. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1067. border: none;
  1068. outline: none;
  1069. width: 80%;
  1070. white-space: nowrap;
  1071. overflow: hidden;
  1072. text-overflow: ellipsis;
  1073. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1074. <input :placeholder="item1.title ? item1.title : '链接'
  1075. " v-if="item1.type == 8 || item1.type == 14" style="
  1076. border: none;
  1077. outline: none;
  1078. width: 80%;
  1079. white-space: nowrap;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1083. </div>
  1084. <div class="chapter_upload_ic">
  1085. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1086. </div>
  1087. <div class="chapter_upload_ud" style="z-index: 99">
  1088. <div class="chapter_upload_up" @click="
  1089. upCd(
  1090. $event,
  1091. unitIndex,
  1092. index,
  1093. itemTaskIndex,
  1094. index1
  1095. )
  1096. "></div>
  1097. <div class="chapter_upload_down" @click="
  1098. downCd(
  1099. $event,
  1100. unitIndex,
  1101. index,
  1102. itemTaskIndex,
  1103. index1
  1104. )
  1105. "></div>
  1106. </div>
  1107. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1108. item1.type == 3 ||
  1109. item1.type == 12 ||
  1110. item1.type == 13 ||
  1111. item1.type == 7
  1112. " @click.stop="
  1113. updataVideoT(
  1114. $event,
  1115. unitIndex,
  1116. itemTaskIndex,
  1117. index1
  1118. )
  1119. ">
  1120. <div></div>
  1121. </div>
  1122. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1123. @click="selectAttText(itemTaskIndex, index1)">
  1124. <div></div>
  1125. </div>
  1126. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1127. @click="selectLine(itemTaskIndex, index1)">
  1128. <div></div>
  1129. </div>
  1130. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1131. @click="openUpdateSource(itemTaskIndex, index1)">
  1132. <div></div>
  1133. </div>
  1134. <div class="chapter_upload_ic_r" @click.stop="
  1135. deleteChapterData(
  1136. $event,
  1137. unitIndex,
  1138. index,
  1139. index1,
  1140. itemTaskIndex
  1141. )
  1142. ">
  1143. <div></div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="add_info_box" style="margin: 10px 0 0">
  1151. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1152. <span style="color: red">*</span>
  1153. 教学设计
  1154. <input type="file"
  1155. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1156. style="display: none" v-if="inputShow" @change="
  1157. beforeUpload3(
  1158. $event,
  1159. unitIndex,
  1160. 3,
  1161. itemTaskIndex,
  1162. '教学设计'
  1163. )
  1164. " />
  1165. </button>
  1166. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1167. <span style="color: red">*</span>
  1168. 教学课件
  1169. <input type="file"
  1170. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1171. style="display: none" v-if="inputShow" @change="
  1172. beforeUpload3(
  1173. $event,
  1174. unitIndex,
  1175. 3,
  1176. itemTaskIndex,
  1177. '教学课件'
  1178. )
  1179. " />
  1180. </button>
  1181. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1182. 教学视频
  1183. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1184. style="display: none" v-if="inputShow" @change="
  1185. beforeUpload3(
  1186. $event,
  1187. unitIndex,
  1188. 2,
  1189. itemTaskIndex,
  1190. '教学视频'
  1191. )
  1192. " />
  1193. </button>
  1194. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1195. 教学音频
  1196. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1197. beforeUpload3(
  1198. $event,
  1199. unitIndex,
  1200. 2,
  1201. itemTaskIndex,
  1202. '教学音频'
  1203. )
  1204. " />
  1205. </button>
  1206. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1207. 学习单
  1208. <input type="file"
  1209. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1210. style="display: none" v-if="inputShow" @change="
  1211. beforeUpload3(
  1212. $event,
  1213. unitIndex,
  1214. 3,
  1215. itemTaskIndex,
  1216. '学习单'
  1217. )
  1218. " />
  1219. </button>
  1220. </div>
  1221. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1222. itemTaskIndex
  1223. ].proVisible
  1224. " class="mask">
  1225. <div class="progressBox">
  1226. <!-- <div id="closePro" class="closeCss">
  1227. <img src="../../../../assets/icon/close.png" alt />
  1228. </div> -->
  1229. <div class="lbox">
  1230. <img src="../../../assets/loading.gif" />上传中,请稍后
  1231. </div>
  1232. <div style="margin-bottom: 10px">
  1233. <span>{{
  1234. unitJson[unitIndex].chapterInfo[0].taskJson[
  1235. itemTaskIndex
  1236. ].isFinishSize
  1237. }}M</span>
  1238. /
  1239. <span>{{
  1240. unitJson[unitIndex].chapterInfo[0].taskJson[
  1241. itemTaskIndex
  1242. ].isAllSize
  1243. }}M</span>
  1244. </div>
  1245. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1246. itemTaskIndex
  1247. ].progress
  1248. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1249. itemTaskIndex
  1250. ].progress
  1251. : 0
  1252. " style="width: 80%"></el-progress>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <!-- padding: 20px; -->
  1258. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1259. <div v-if="unitJson[unitIndex].easy != 3 &&
  1260. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1261. " style="
  1262. flex-direction: row;
  1263. justify-content: flex-start;
  1264. align-items: center;
  1265. ">
  1266. <div style="
  1267. display: flex;
  1268. flex-direction: row;
  1269. align-items: center;
  1270. margin: 5px 0 20px;
  1271. ">
  1272. <div class="lineTitle clineTitle">
  1273. {{
  1274. !unitJson[unitIndex].easy ||
  1275. unitJson[unitIndex].easy == 6 ||
  1276. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1277. ? "练习内容"
  1278. : "评价内容"
  1279. }}
  1280. </div>
  1281. <!-- <div class="line" style="width: 90%"></div> -->
  1282. </div>
  1283. </div>
  1284. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1285. " class="toolChoose">
  1286. <div class="tools">
  1287. <div class="leftTools" style="
  1288. width: 100%;
  1289. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1290. <div style="
  1291. display: flex;
  1292. flex-direction: row;
  1293. align-items: baseline;
  1294. flex-wrap: nowrap;
  1295. justify-content: flex-start;
  1296. position: relative;
  1297. ">
  1298. <div style="margin-right: 20px; font-weight: bold"
  1299. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1300. 工具 {{ toolIndex + 1 }} :
  1301. </div>
  1302. <div class="chooseWho">
  1303. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1304. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1305. 互动类
  1306. </div>
  1307. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1308. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1309. 思维类
  1310. </div>
  1311. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1312. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1313. 协作类
  1314. </div>
  1315. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1316. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1317. 测评类
  1318. </div>
  1319. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1320. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1321. 评价类
  1322. </div>
  1323. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1324. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1325. 编程类
  1326. </div>
  1327. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1328. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1329. 学科类
  1330. </div>
  1331. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1332. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1333. 其他
  1334. </div> -->
  1335. </div>
  1336. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  1337. <div class="chapter_upload_up2" @click.stop="
  1338. upTool(
  1339. $event,
  1340. unitIndex,
  1341. itemTaskIndex,
  1342. toolIndex
  1343. )
  1344. ">上移</div>
  1345. <div class="chapter_upload_down2" @click.stop="
  1346. downTool(
  1347. $event,
  1348. unitIndex,
  1349. itemTaskIndex,
  1350. toolIndex
  1351. )
  1352. ">下移</div>
  1353. </div>
  1354. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1355. @click="fold3(itemTaskIndex, toolIndex)"
  1356. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1357. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1358. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1359. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1360. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1361. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1362. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1363. </div>
  1364. <!-- v-show="!itemTool.isFold3" -->
  1365. <div style="min-height: 163px">
  1366. <div class="toolSort" v-if="itemTool.toolType == 0">
  1367. <!-- <div class="tool">
  1368. <div
  1369. class="whiteBIcon"
  1370. @click="addTools(8, itemTaskIndex, toolIndex)"
  1371. >
  1372. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1373. <div style="margin: 5px 0">素材库</div>
  1374. </div>
  1375. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1376. <img
  1377. src="../../../assets/icon/checkNo.png"
  1378. alt
  1379. v-if="itemTool.tool.indexOf(8) == -1"
  1380. />
  1381. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1382. alt /><span>已选择</span></div>
  1383. </div>
  1384. </div>-->
  1385. <!-- <div class="tool">
  1386. <div
  1387. class="whiteBIcon"
  1388. @click="addTools(17, itemTaskIndex, toolIndex)"
  1389. >
  1390. <img
  1391. src="../../../assets/icon/secondToolList/library.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">学习资料</div>
  1395. </div>
  1396. <div
  1397. class="check"
  1398. @click="addTools(17, itemTaskIndex, toolIndex)"
  1399. >
  1400. <img
  1401. src="../../../assets/icon/checkNo.png"
  1402. alt
  1403. v-if="itemTool.tool.indexOf(17) == -1"
  1404. />
  1405. <img
  1406. src="../../../assets/icon/checkedIs.png"
  1407. alt
  1408. v-else
  1409. />
  1410. </div>10
  1411. </div> -->
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1413. @click="addTools(10, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1415. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1416. <div style="margin: 5px 0">倒计时</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1420. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1422. <img src="../../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(10) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1430. @click="addTools(65, itemTaskIndex, toolIndex)">
  1431. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1432. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  1433. <div style="margin: 5px 0">挑人</div>
  1434. </div>
  1435. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1436. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1437. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1438. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1439. <img src="../../../assets/icon/checkNo.png" alt
  1440. v-if="itemTool.tool.indexOf(65) == -1" />
  1441. <div class="checkDiv" v-else>
  1442. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1443. </div>
  1444. </div> -->
  1445. </div>
  1446. <!-- <div class="tool">
  1447. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1448. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1449. <div style="margin: 5px 0">学生分组</div>
  1450. </div>
  1451. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1452. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div> -->
  1458. <!-- <div class="tool">
  1459. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1460. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1464. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div> -->
  1470. </div>
  1471. <div class="toolSort" v-if="itemTool.toolType == 1">
  1472. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1473. @click="addTools(7, itemTaskIndex, toolIndex)">
  1474. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1475. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1476. <div style="margin: 5px 0">思维网格</div>
  1477. </div>
  1478. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1479. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1480. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1481. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1482. <img src="../../../assets/icon/checkNo.png" alt
  1483. v-if="itemTool.tool.indexOf(7) == -1" />
  1484. <div class="checkDiv" v-else>
  1485. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1486. </div>
  1487. </div> -->
  1488. </div>
  1489. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1490. @click="addTools(1, itemTaskIndex, toolIndex)">
  1491. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1492. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1493. <div style="margin: 5px 0">电子白板</div>
  1494. </div>
  1495. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1496. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1497. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1498. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1499. <img src="../../../assets/icon/checkNo.png" alt
  1500. v-if="itemTool.tool.indexOf(1) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div> -->
  1505. </div>
  1506. <!-- <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="addTools(2, itemTaskIndex, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../../assets/icon/secondToolList/note.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">便签</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(2, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(2) == -1"
  1525. />
  1526. <div class="checkDiv" v-else>
  1527. <img
  1528. src="../../../assets/icon/checkedIs.png"
  1529. alt
  1530. /><span>已选择</span>
  1531. </div>
  1532. </div>
  1533. </div> -->
  1534. <!-- <div class="tool">
  1535. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1536. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1537. <div style="margin: 5px 0">协同文档</div>
  1538. </div>
  1539. <div
  1540. class="check"
  1541. @click="addTools(6, itemTaskIndex, toolIndex)"
  1542. >
  1543. <img
  1544. src="../../../assets/icon/checkNo.png"
  1545. alt
  1546. v-if="itemTool.tool.indexOf(6) == -1"
  1547. />
  1548. <div class="checkDiv" v-else>
  1549. <img
  1550. src="../../../assets/icon/checkedIs.png"
  1551. alt
  1552. /><span>已选择</span>
  1553. </div>
  1554. </div>
  1555. </div> -->
  1556. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1557. @click="addTools(52, itemTaskIndex, toolIndex)">
  1558. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1559. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1560. <div style="margin: 5px 0">文档</div>
  1561. </div>
  1562. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1563. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1564. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1565. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1566. <img src="../../../assets/icon/checkNo.png" alt
  1567. v-if="itemTool.tool.indexOf(52) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div> -->
  1572. </div>
  1573. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1574. @click="addTools(3, itemTaskIndex, toolIndex)">
  1575. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1576. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1577. <div style="margin: 5px 0">思维导图</div>
  1578. </div>
  1579. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1580. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1581. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1582. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1583. <img src="../../../assets/icon/checkNo.png" alt
  1584. v-if="itemTool.tool.indexOf(3) == -1" />
  1585. <div class="checkDiv" v-else>
  1586. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1587. </div>
  1588. </div> -->
  1589. </div>
  1590. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1591. @click="addTools(48, itemTaskIndex, toolIndex)">
  1592. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1593. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1594. <div style="margin: 5px 0">表格</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1598. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1600. <img src="../../../assets/icon/checkNo.png" alt
  1601. v-if="itemTool.tool.indexOf(48) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div> -->
  1606. </div>
  1607. </div>
  1608. <div class="toolSort" v-if="itemTool.toolType == 6">
  1609. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1610. @click="addTools(49, itemTaskIndex, toolIndex)">
  1611. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1612. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1613. <div style="margin: 5px 0">学生分组</div>
  1614. </div>
  1615. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1616. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1617. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1618. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1619. <img src="../../../assets/icon/checkNo.png" alt
  1620. v-if="itemTool.tool.indexOf(49) == -1" />
  1621. <div class="checkDiv" v-else>
  1622. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1623. </div>
  1624. </div> -->
  1625. </div>
  1626. </div>
  1627. <div class="toolSort" v-if="itemTool.toolType == 2">
  1628. <!-- <div class="tool">
  1629. <div
  1630. class="whiteBIcon"
  1631. @click="addTools(5, itemTaskIndex, toolIndex)"
  1632. >
  1633. <img
  1634. src="../../../assets/icon/thirdToolList/score.png"
  1635. alt
  1636. />
  1637. <div style="margin: 5px 0">量规评分</div>
  1638. </div>
  1639. <div
  1640. class="check"
  1641. @click="addTools(5, itemTaskIndex, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../../assets/icon/checkNo.png"
  1645. alt
  1646. v-if="itemTool.tool.indexOf(5) == -1"
  1647. />
  1648. <img
  1649. src="../../../assets/icon/checkedIs.png"
  1650. alt
  1651. v-else
  1652. />
  1653. </div>
  1654. </div>-->
  1655. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1656. @click="addTools(4, itemTaskIndex, toolIndex)">
  1657. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1658. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1659. <div style="margin: 5px 0">问卷调查</div>
  1660. </div>
  1661. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1662. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1663. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1664. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1665. <img src="../../../assets/icon/checkNo.png" alt
  1666. v-if="itemTool.tool.indexOf(4) == -1" />
  1667. <div class="checkDiv" v-else>
  1668. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1669. </div>
  1670. </div> -->
  1671. </div>
  1672. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1673. @click="addTools(45, itemTaskIndex, toolIndex)">
  1674. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1675. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1676. <div style="margin: 5px 0">选择题</div>
  1677. </div>
  1678. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1679. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1680. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1681. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1682. <img src="../../../assets/icon/checkNo.png" alt
  1683. v-if="itemTool.tool.indexOf(45) == -1" />
  1684. <div class="checkDiv" v-else>
  1685. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1686. </div>
  1687. </div> -->
  1688. </div>
  1689. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1690. @click="addTools(15, itemTaskIndex, toolIndex)">
  1691. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1692. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1693. <div style="margin: 5px 0">问答</div>
  1694. </div>
  1695. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1696. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1697. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1698. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1699. <img src="../../../assets/icon/checkNo.png" alt
  1700. v-if="itemTool.tool.indexOf(15) == -1" />
  1701. <div class="checkDiv" v-else>
  1702. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1703. </div>
  1704. </div> -->
  1705. </div>
  1706. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1707. @click="addTools(16, itemTaskIndex, toolIndex)">
  1708. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1709. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1710. <div style="margin: 5px 0">作业提交</div>
  1711. </div>
  1712. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1713. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1714. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1715. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1716. <img src="../../../assets/icon/checkNo.png" alt
  1717. v-if="itemTool.tool.indexOf(16) == -1" />
  1718. <div class="checkDiv" v-else>
  1719. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1720. </div>
  1721. </div> -->
  1722. </div>
  1723. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1724. @click="addTools(50, itemTaskIndex, toolIndex)">
  1725. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1726. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1727. <div style="margin: 5px 0">批量上传</div>
  1728. </div>
  1729. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1730. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1731. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1732. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1733. <img src="../../../assets/icon/checkNo.png" alt
  1734. v-if="itemTool.tool.indexOf(50) == -1" />
  1735. <div class="checkDiv" v-else>
  1736. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1737. </div>
  1738. </div> -->
  1739. </div>
  1740. <!-- <div class="tool">
  1741. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1742. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1743. <div style="margin: 5px 0">个人评价</div>
  1744. </div>
  1745. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1746. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1747. <div class="checkDiv" v-else>
  1748. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1749. </div>
  1750. </div>
  1751. </div> -->
  1752. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1753. @click="addTools(41, itemTaskIndex, toolIndex)">
  1754. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1755. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1756. <div style="margin: 5px 0">选择匹配</div>
  1757. </div>
  1758. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1759. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1760. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1761. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1762. <img src="../../../assets/icon/checkNo.png" alt
  1763. v-if="itemTool.tool.indexOf(41) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div> -->
  1768. </div>
  1769. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1770. @click="addTools(47, itemTaskIndex, toolIndex)">
  1771. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1772. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1773. <div style="margin: 5px 0">排序</div>
  1774. </div>
  1775. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1776. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1777. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1778. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1779. <img src="../../../assets/icon/checkNo.png" alt
  1780. v-if="itemTool.tool.indexOf(47) == -1" />
  1781. <div class="checkDiv" v-else>
  1782. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1783. </div>
  1784. </div> -->
  1785. </div>
  1786. <!-- <div class="tool">
  1787. <div
  1788. class="whiteBIcon"
  1789. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1790. >
  1791. <img
  1792. src="../../../assets/icon/thirdToolList/mp3.png"
  1793. alt
  1794. />
  1795. <div style="margin: 5px 0">上传音频</div>
  1796. </div>
  1797. <div
  1798. class="check"
  1799. @click="addTools(42, itemTaskIndex, toolIndex)"
  1800. >
  1801. <img
  1802. src="../../../assets/icon/checkNo.png"
  1803. alt
  1804. v-if="itemTool.tool.indexOf(42) == -1"
  1805. />
  1806. <img
  1807. src="../../../assets/icon/checkedIs.png"
  1808. alt
  1809. v-else
  1810. />
  1811. </div>
  1812. </div> -->
  1813. </div>
  1814. <div class="toolSort" v-if="itemTool.toolType == 3">
  1815. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1816. @click="addTools(18, itemTaskIndex, toolIndex)">
  1817. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1818. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1819. <div style="margin: 5px 0">训练平台</div>
  1820. </div>
  1821. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1822. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1823. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1824. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1825. <img src="../../../assets/icon/checkNo.png" alt
  1826. v-if="itemTool.tool.indexOf(18) == -1" />
  1827. <div class="checkDiv" v-else>
  1828. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1829. </div>
  1830. </div> -->
  1831. </div>
  1832. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1833. @click="addTools(21, itemTaskIndex, toolIndex)">
  1834. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1835. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1836. <div style="margin: 5px 0">AIoT Blockly</div>
  1837. </div>
  1838. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1839. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1840. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1841. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1842. <img src="../../../assets/icon/checkNo.png" alt
  1843. v-if="itemTool.tool.indexOf(21) == -1" />
  1844. <div class="checkDiv" v-else>
  1845. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1846. </div>
  1847. </div> -->
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1851. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1852. <div style="margin: 5px 0">AI体验</div>
  1853. </div>
  1854. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1855. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1856. <div class="checkDiv" v-else>
  1857. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1858. </div>
  1859. </div>
  1860. </div> -->
  1861. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1862. @click="addTools(23, itemTaskIndex, toolIndex)">
  1863. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1864. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1865. <div style="margin: 5px 0">AI Python</div>
  1866. </div>
  1867. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1869. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1870. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1871. <img src="../../../assets/icon/checkNo.png" alt
  1872. v-if="itemTool.tool.indexOf(23) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div> -->
  1877. </div>
  1878. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1879. @click="addTools(24, itemTaskIndex, toolIndex)">
  1880. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1881. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1882. <div style="margin: 5px 0">AI Blockly</div>
  1883. </div>
  1884. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1886. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1887. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1888. <img src="../../../assets/icon/checkNo.png" alt
  1889. v-if="itemTool.tool.indexOf(24) == -1" />
  1890. <div class="checkDiv" v-else>
  1891. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1892. </div>
  1893. </div> -->
  1894. </div>
  1895. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1896. @click="addTools(32, itemTaskIndex, toolIndex)">
  1897. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1898. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1899. <div style="margin: 5px 0">源码编辑</div>
  1900. </div>
  1901. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1903. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1904. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1905. <img src="../../../assets/icon/checkNo.png" alt
  1906. v-if="itemTool.tool.indexOf(32) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div> -->
  1911. </div>
  1912. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1913. @click="addTools(57, itemTaskIndex, toolIndex)">
  1914. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1915. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1916. <div style="margin: 5px 0">CocoPi</div>
  1917. </div>
  1918. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1920. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1921. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1922. <img src="../../../assets/icon/checkNo.png" alt
  1923. v-if="itemTool.tool.indexOf(57) == -1" />
  1924. <div class="checkDiv" v-else>
  1925. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1926. </div>
  1927. </div> -->
  1928. </div>
  1929. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1930. @click="addTools(63, itemTaskIndex, toolIndex)">
  1931. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1932. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1933. <div style="margin: 5px 0">海龟编程</div>
  1934. </div>
  1935. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1936. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1937. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1938. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1939. <img src="../../../assets/icon/checkNo.png" alt
  1940. v-if="itemTool.tool.indexOf(63) == -1" />
  1941. <div class="checkDiv" v-else>
  1942. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1943. </div>
  1944. </div> -->
  1945. </div>
  1946. </div>
  1947. <div class="toolSort" v-if="itemTool.toolType == 7">
  1948. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1949. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1950. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1951. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1952. <div style="margin: 5px 0">个人评价</div>
  1953. </div>
  1954. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1955. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1956. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1958. <img src="../../../assets/icon/checkNo.png" alt
  1959. v-if="itemTool.tool.indexOf(40) == -1" />
  1960. <div class="checkDiv" v-else>
  1961. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. </div>
  1966. <div class="toolSort" v-if="itemTool.toolType == 5">
  1967. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1968. @click="addTools(28, itemTaskIndex, toolIndex)">
  1969. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1970. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1971. <div style="margin: 5px 0">翻译</div>
  1972. </div>
  1973. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1974. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1975. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1976. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1977. <img src="../../../assets/icon/checkNo.png" alt
  1978. v-if="itemTool.tool.indexOf(28) == -1" />
  1979. <div class="checkDiv" v-else>
  1980. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1981. </div>
  1982. </div> -->
  1983. </div>
  1984. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1985. @click="addTools(31, itemTaskIndex, toolIndex)">
  1986. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1987. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1988. <div style="margin: 5px 0">数字画板</div>
  1989. </div>
  1990. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1991. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1992. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1993. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1994. <img src="../../../assets/icon/checkNo.png" alt
  1995. v-if="itemTool.tool.indexOf(31) == -1" />
  1996. <div class="checkDiv" v-else>
  1997. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  2002. @click="addTools(39, itemTaskIndex, toolIndex)">
  2003. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  2004. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2005. <div style="margin: 5px 0">GeoGebra</div>
  2006. </div>
  2007. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2008. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  2009. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2010. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2011. <img src="../../../assets/icon/checkNo.png" alt
  2012. v-if="itemTool.tool.indexOf(39) == -1" />
  2013. <div class="checkDiv" v-else>
  2014. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2015. </div>
  2016. </div> -->
  2017. </div>
  2018. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  2019. @click="addTools(66, itemTaskIndex, toolIndex)">
  2020. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  2021. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  2022. <div style="margin: 5px 0">公式编辑</div>
  2023. </div>
  2024. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2025. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  2026. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2027. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2028. <img src="../../../assets/icon/checkNo.png" alt
  2029. v-if="itemTool.tool.indexOf(66) == -1" />
  2030. <div class="checkDiv" v-else>
  2031. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2032. </div>
  2033. </div> -->
  2034. </div>
  2035. <!-- <div class="tool">
  2036. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2037. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  2038. <div style="margin: 5px 0">分子结构</div>
  2039. </div>
  2040. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2041. <img src="../../../assets/icon/checkNo.png" alt
  2042. v-if="itemTool.tool.indexOf(67) == -1" />
  2043. <div class="checkDiv" v-else>
  2044. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2045. </div>
  2046. </div>
  2047. </div> -->
  2048. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  2049. @click="addTools(68, itemTaskIndex, toolIndex)">
  2050. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  2051. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  2052. <div style="margin: 5px 0">时间轴</div>
  2053. </div>
  2054. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  2056. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2057. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2058. <img src="../../../assets/icon/checkNo.png" alt
  2059. v-if="itemTool.tool.indexOf(68) == -1" />
  2060. <div class="checkDiv" v-else>
  2061. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2062. </div>
  2063. </div> -->
  2064. </div>
  2065. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  2066. @click="addTools(69, itemTaskIndex, toolIndex)">
  2067. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  2068. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  2069. <div style="margin: 5px 0">英语写作</div>
  2070. </div>
  2071. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2072. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  2073. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  2074. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2075. <img src="../../../assets/icon/checkNo.png" alt
  2076. v-if="itemTool.tool.indexOf(4) == -1" />
  2077. <div class="checkDiv" v-else>
  2078. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2079. </div>
  2080. </div> -->
  2081. </div>
  2082. <!-- <div class="tool">
  2083. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2084. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2085. <div style="margin: 5px 0">翻译</div>
  2086. </div>
  2087. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2088. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2089. <div class="checkDiv" v-else>
  2090. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2091. </div>
  2092. </div>
  2093. </div>
  2094. <div class="tool">
  2095. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2096. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  2097. <div style="margin: 5px 0">魔盒识字</div>
  2098. </div>
  2099. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2100. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2101. <div class="checkDiv" v-else>
  2102. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. <div class="tool">
  2107. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2108. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  2109. <div style="margin: 5px 0">24点</div>
  2110. </div>
  2111. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2112. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2113. <div class="checkDiv" v-else>
  2114. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. <div class="tool">
  2119. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2120. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2121. <div style="margin: 5px 0">数学画板</div>
  2122. </div>
  2123. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2124. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2125. <div class="checkDiv" v-else>
  2126. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div class="tool">
  2131. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2132. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2133. <div style="margin: 5px 0">GeoGebra</div>
  2134. </div>
  2135. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2136. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2137. <div class="checkDiv" v-else>
  2138. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <div class="tool">
  2143. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2144. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  2145. <div style="margin: 5px 0">模拟驾驶</div>
  2146. </div>
  2147. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2148. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2149. <div class="checkDiv" v-else>
  2150. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. <div class="tool">
  2155. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2156. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  2157. <div style="margin: 5px 0">路径搜索</div>
  2158. </div>
  2159. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2160. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2161. <div class="checkDiv" v-else>
  2162. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div class="tool">
  2167. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2168. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  2169. <div style="margin: 5px 0">深度学习</div>
  2170. </div>
  2171. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2172. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2173. <div class="checkDiv" v-else>
  2174. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. <div class="tool">
  2179. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2180. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  2181. <div style="margin: 5px 0">全历史</div>
  2182. </div>
  2183. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2184. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2185. <div class="checkDiv" v-else>
  2186. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2187. </div>
  2188. </div>
  2189. </div>
  2190. </div>
  2191. <div class="toolSort" v-if="itemTool.toolType == 4">
  2192. <div class="tool">
  2193. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2194. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  2195. <div style="margin: 5px 0">课程设计</div>
  2196. </div>
  2197. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2198. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2199. <div class="checkDiv" v-else>
  2200. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. <div class="tool">
  2205. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2206. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  2207. <div style="margin: 5px 0">目标管理</div>
  2208. </div>
  2209. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2210. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2211. <div class="checkDiv" v-else>
  2212. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2213. </div>
  2214. </div>
  2215. </div> -->
  2216. <!-- <div class="tool">
  2217. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2218. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2219. <div style="margin: 5px 0">汉字宫</div>
  2220. </div>
  2221. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2222. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2223. <div class="checkDiv" v-else>
  2224. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2225. </div>
  2226. </div>
  2227. </div> -->
  2228. </div>
  2229. </div>
  2230. <!-- v-show="!itemTool.isFold3" -->
  2231. <div>
  2232. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2233. style="margin: 0 0 20px 0; width: 100% !important"
  2234. v-model="itemTool.toolDetail"></textarea>
  2235. </div>
  2236. </div>
  2237. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2238. <div class="addToolImg">
  2239. <img src="../../../assets/icon/add.png" alt />
  2240. </div>
  2241. <div>添加工具</div>
  2242. </div> -->
  2243. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2244. 添加工具
  2245. </button>
  2246. </div>
  2247. </div>
  2248. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2249. unitJson[unitIndex].easy == 4
  2250. " class="toolChoose" style="padding: 0 0 40px;">
  2251. <div class="tools">
  2252. <div class="leftTools" style="width: 100%"
  2253. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2254. <div>
  2255. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2256. style="margin: 0 0 20px 0; width: 100% !important"
  2257. v-model="itemTool.toolDetail"></textarea>
  2258. </div>
  2259. <div style="
  2260. display: flex;
  2261. flex-direction: row;
  2262. align-items: baseline;
  2263. flex-wrap: nowrap;
  2264. justify-content: flex-start;
  2265. position: relative;
  2266. ">
  2267. <div style="margin-right: 20px; font-weight: bold"
  2268. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2269. 工具 {{ toolIndex + 1 }} :
  2270. </div>
  2271. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2272. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2273. </div>
  2274. <div style="min-height: 163px">
  2275. <div class="toolSort">
  2276. <div class="tool">
  2277. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2278. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2279. <div style="margin: 5px 0">电子白板</div>
  2280. </div>
  2281. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2282. <img src="../../../assets/icon/checkNo.png" alt
  2283. v-if="itemTool.tool.indexOf(1) == -1" />
  2284. <div class="checkDiv" v-else>
  2285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2286. </div>
  2287. </div>
  2288. </div>
  2289. <div class="tool">
  2290. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2291. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2292. <div style="margin: 5px 0">文档</div>
  2293. </div>
  2294. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2295. <img src="../../../assets/icon/checkNo.png" alt
  2296. v-if="itemTool.tool.indexOf(52) == -1" />
  2297. <div class="checkDiv" v-else>
  2298. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. <div class="tool">
  2303. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2304. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2305. <div style="margin: 5px 0">思维导图</div>
  2306. </div>
  2307. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2308. <img src="../../../assets/icon/checkNo.png" alt
  2309. v-if="itemTool.tool.indexOf(3) == -1" />
  2310. <div class="checkDiv" v-else>
  2311. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <div class="tool">
  2316. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2317. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2318. <div style="margin: 5px 0">问卷调查</div>
  2319. </div>
  2320. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2321. <img src="../../../assets/icon/checkNo.png" alt
  2322. v-if="itemTool.tool.indexOf(4) == -1" />
  2323. <div class="checkDiv" v-else>
  2324. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. <div class="tool">
  2329. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2330. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2331. <div style="margin: 5px 0">选择题</div>
  2332. </div>
  2333. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2334. <img src="../../../assets/icon/checkNo.png" alt
  2335. v-if="itemTool.tool.indexOf(45) == -1" />
  2336. <div class="checkDiv" v-else>
  2337. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <div class="tool">
  2342. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2343. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2344. <div style="margin: 5px 0">问答</div>
  2345. </div>
  2346. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2347. <img src="../../../assets/icon/checkNo.png" alt
  2348. v-if="itemTool.tool.indexOf(15) == -1" />
  2349. <div class="checkDiv" v-else>
  2350. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2351. </div>
  2352. </div>
  2353. </div>
  2354. <div class="tool">
  2355. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2356. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2357. <div style="margin: 5px 0">作业提交</div>
  2358. </div>
  2359. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2360. <img src="../../../assets/icon/checkNo.png" alt
  2361. v-if="itemTool.tool.indexOf(16) == -1" />
  2362. <div class="checkDiv" v-else>
  2363. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. <div class="tool">
  2368. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2369. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2370. <div style="margin: 5px 0">批量上传</div>
  2371. </div>
  2372. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2373. <img src="../../../assets/icon/checkNo.png" alt
  2374. v-if="itemTool.tool.indexOf(50) == -1" />
  2375. <div class="checkDiv" v-else>
  2376. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2377. </div>
  2378. </div>
  2379. </div>
  2380. <div class="tool">
  2381. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2382. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2383. <div style="margin: 5px 0">选择匹配</div>
  2384. </div>
  2385. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2386. <img src="../../../assets/icon/checkNo.png" alt
  2387. v-if="itemTool.tool.indexOf(41) == -1" />
  2388. <div class="checkDiv" v-else>
  2389. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. <div class="tool">
  2394. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2395. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2396. <div style="margin: 5px 0">排序</div>
  2397. </div>
  2398. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2399. <img src="../../../assets/icon/checkNo.png" alt
  2400. v-if="itemTool.tool.indexOf(47) == -1" />
  2401. <div class="checkDiv" v-else>
  2402. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. <div class="tool">
  2407. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2408. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2409. <div style="margin: 5px 0">表格</div>
  2410. </div>
  2411. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2412. <img src="../../../assets/icon/checkNo.png" alt
  2413. v-if="itemTool.tool.indexOf(48) == -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>
  2420. </div>
  2421. </div>
  2422. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2423. <div class="addToolImg">
  2424. <img src="../../../assets/icon/add.png" alt />
  2425. </div>
  2426. <div>添加工具</div>
  2427. </div> -->
  2428. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2429. 添加工具
  2430. </button>
  2431. </div>
  2432. </div>
  2433. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2434. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2435. " class="toolChoose" style="padding: 0 0 40px;">
  2436. <div class="tools">
  2437. <div class="leftTools" style="
  2438. width: 100%;
  2439. padding: 0 0 15px 0;
  2440. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2441. <div style="min-height: 163px">
  2442. <div class="toolSort">
  2443. <div class="tool">
  2444. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2445. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2446. <div style="margin: 5px 0">批量上传</div>
  2447. </div>
  2448. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2449. <img src="../../../assets/icon/checkNo.png" alt
  2450. v-if="itemTool.tool.indexOf(50) == -1" />
  2451. <div class="checkDiv" v-else>
  2452. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2453. </div>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. </div>
  2458. </div>
  2459. </div>
  2460. </div>
  2461. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2462. <div class="elist_title">
  2463. <div style="
  2464. display: flex;
  2465. flex-direction: row;
  2466. align-items: center;
  2467. margin: 20px 0;
  2468. ">
  2469. <div class="lineTitle clineTitle">评价设置</div>
  2470. <!-- <div class="line" style="width: 90%"></div> -->
  2471. </div>
  2472. </div>
  2473. <div class="mbCss">
  2474. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2475. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2476. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2477. <span>评价名称:</span>
  2478. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价名称'" placement="top" popper-class="text_tooltip2"> -->
  2479. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2480. <!-- </el-tooltip> -->
  2481. <!-- <span>评星等级:</span>
  2482. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2483. disabled></el-rate> -->
  2484. <div class="remove" @click="
  2485. deletEList(unitIndex, itemTaskIndex, eIndex)
  2486. "></div>
  2487. <div class="elist_inptu_text">
  2488. <span>评价描述:</span>
  2489. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写评价描述'" placement="top" popper-class="text_tooltip2"> -->
  2490. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2491. <!-- </el-tooltip> -->
  2492. </div>
  2493. <div class="elist_inptu_text" v-if="evalua">
  2494. <span>目标:</span>
  2495. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2496. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2497. @change="forceUpdate()">
  2498. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2499. :value="e.name">
  2500. </el-option>
  2501. </el-select> -->
  2502. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2503. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2508. style="margin: 35px 35px 0 0">
  2509. <div class="addToolImg">
  2510. <img src="../../../assets/icon/add.png" alt />
  2511. </div>
  2512. <div>添加</div>
  2513. </div> -->
  2514. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2515. 添加
  2516. </button>
  2517. </div>
  2518. <div v-if="evalua" style="
  2519. border: 1px solid #e5e5e5;
  2520. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2521. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2522. <!-- <div class="e_add_top">
  2523. <div class="e_add_title">
  2524. <span>当前使用目标管理</span>
  2525. <span>{{ eTitle }}</span>
  2526. <img src="../../../assets/line.png" class="cru_line" style="
  2527. width: 125px;
  2528. height: 20px;
  2529. bottom: -10px;
  2530. left: 155px;
  2531. " />
  2532. </div>
  2533. </div> -->
  2534. <div class="e_add_content" style="width: 100%">
  2535. <div class="e_add_list_pbox" style="width: 100%">
  2536. <div class="e_add_list_pbox_title">
  2537. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2538. <div class="type_content" v-if="itemTask.isEvaFold">
  2539. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2540. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2541. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2542. </div>
  2543. <div v-if="itemTask.isEvaFold"
  2544. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2545. src="../../../assets/icon/new/icon-slide.png" />收起目标</div>
  2546. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2547. @click="foldEva(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开目标
  2548. </div>
  2549. </div>
  2550. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2551. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2552. " v-if="typeMode == 1"></Mind>
  2553. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2554. </Sunburst>
  2555. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2556. v-if="typeMode == 3"></SeeBoard>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. <div class="funBlock" style="padding: 0">
  2564. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2565. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2566. </div>
  2567. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2568. </div>
  2569. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2570. <div>展开</div>
  2571. <div class="arrow">
  2572. <img src="../../../assets/icon/expand.png" alt />
  2573. </div>
  2574. </div> -->
  2575. </div>
  2576. </div>
  2577. </div>
  2578. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2579. <!-- <div>
  2580. <img src="../../../../assets/icon/new/addStage.png" alt />
  2581. <span>添加任务</span>
  2582. </div> -->
  2583. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2584. 添加任务
  2585. </button>
  2586. </div>
  2587. </div>
  2588. <div class="info_btnBox3">
  2589. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2590. goTo(
  2591. '/trainCourse?userid=' +
  2592. userid +
  2593. '&oid=' +
  2594. oid +
  2595. '&org=' +
  2596. org +
  2597. '&role=' +
  2598. role
  2599. )
  2600. ">
  2601. 返回培训
  2602. </button>
  2603. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2604. style="background:#dbdbdb">
  2605. {{ steps == 4 ? "返回培训" : "上一步" }}
  2606. </button>
  2607. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2608. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2609. {{ steps == 3 ? "确认上传" : "下一步" }}
  2610. </button>
  2611. </div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. <div style="
  2617. width: calc(100% - 20px);
  2618. background: rgb(255, 255, 255);
  2619. border-radius: 10px;
  2620. " v-if="this.steps == 4">
  2621. <div class="basic_box_success">
  2622. <div class="right_img">
  2623. <img src="../../../assets/icon/right.png" alt />
  2624. </div>
  2625. <div style="font-weight: bold">成功</div>
  2626. <!-- <div>您的培训编号</div>
  2627. <div class="number">{{ number }}</div>-->
  2628. <!-- <div class="success_button">
  2629. <div class="look_course" @click="isNoFinsh">
  2630. 邀请老师协同编辑
  2631. </div>
  2632. <div class="attend_others" @click="goCourse">预览培训</div>
  2633. </div> -->
  2634. </div>
  2635. </div>
  2636. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2637. @mouseleave="btnDisplay(false)" v-if="false">
  2638. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2639. goTo(
  2640. '/trainCourse?userid=' +
  2641. userid +
  2642. '&oid=' +
  2643. oid +
  2644. '&org=' +
  2645. org +
  2646. '&role=' +
  2647. role
  2648. )
  2649. ">
  2650. 返回培训
  2651. </button>
  2652. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2653. @click="lastSteps">
  2654. {{ steps == 4 ? "返回培训" : "上一步" }}
  2655. </button>
  2656. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2657. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2658. {{ steps == 3 ? "确认上传" : "下一步" }}
  2659. </button>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2665. class="dialog_diy2 customWidth">
  2666. <div>请复制该链接邀请协同编辑</div>
  2667. <div>http://www.boomyon.com/index-zhang.com</div>
  2668. <span slot="footer" class="dialog-footer">
  2669. <el-button type="primary">复制链接分享</el-button>
  2670. <el-button @click="dialogVisible = false">取消</el-button>
  2671. </span>
  2672. </el-dialog>
  2673. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2674. :before-close="handleClose" class="dialog_diy2 customWidth">
  2675. <el-form>
  2676. <el-form-item label="文档标题">
  2677. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2678. </el-form-item>
  2679. <div>文档简介</div>
  2680. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2681. </el-form>
  2682. <span slot="footer" class="dialog-footer">
  2683. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2684. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2685. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2686. </span>
  2687. </el-dialog>
  2688. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2689. :before-close="handleClose" class="dialog_diy">
  2690. <el-form>
  2691. <el-form-item label="文档标题">
  2692. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2693. </el-form-item>
  2694. <div>文档内容</div>
  2695. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2696. </el-form>
  2697. <span slot="footer" class="dialog-footer">
  2698. <el-button @click="clearChoose">取 消</el-button>
  2699. <el-button type="primary" @click="wordNext()">确定</el-button>
  2700. </span>
  2701. </el-dialog>
  2702. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2703. :before-close="handleClose" class="dialog_diy">
  2704. <el-form>
  2705. <el-form-item label="文本标题">
  2706. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2707. placeholder="请输入文本标题..."></el-input>
  2708. </el-form-item>
  2709. <!-- <div>富文本内容</div> -->
  2710. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2711. </el-form>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="clearAttText">取 消</el-button>
  2714. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2718. :before-close="handleClose" class="dialog_diy lineCss">
  2719. <el-form>
  2720. <el-form-item label="标题" :label-width="formLabelWidth">
  2721. <span>
  2722. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2723. </span>
  2724. </el-form-item>
  2725. <el-form-item label="链接" :label-width="formLabelWidth">
  2726. <span>
  2727. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2728. </span>
  2729. </el-form-item>
  2730. </el-form>
  2731. <span slot="footer" class="dialog-footer">
  2732. <el-button @click="clearLine">取 消</el-button>
  2733. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2734. </span>
  2735. </el-dialog>
  2736. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2737. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2738. <div>
  2739. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2740. </div>
  2741. <span slot="footer" class="dialog-footer">
  2742. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2743. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2744. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2745. </span>
  2746. </el-dialog>
  2747. <el-dialog title="添加培训成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2748. :before-close="handleClose" class="addNewPP customWidth">
  2749. <div class="people">
  2750. <div class="people_top">
  2751. <div class="people_nav">选择成员</div>
  2752. <div class="people_top_right">
  2753. <div class="people_search">
  2754. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2755. <div class="search_img" @click="searchStudent">
  2756. <img src="../../../assets/icon/search.png" alt />
  2757. </div>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. <el-checkbox-group v-model="checkboxList" class="people_name">
  2762. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2763. "暂无学生可选" }}</el-checkbox>
  2764. </el-checkbox-group>
  2765. </div>
  2766. <span slot="footer" class="dialog-footer">
  2767. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2768. <el-button type="primary" @click="isAddPP">确定</el-button>
  2769. </span>
  2770. </el-dialog>
  2771. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2772. :before-close="handleClose" class="addNewPP2">
  2773. <div class="check_classBox">
  2774. <div class="check_class_right">
  2775. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2776. 全部
  2777. </div>
  2778. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2779. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2780. {{ item.name }}
  2781. </div>
  2782. </el-tooltip>
  2783. </div>
  2784. <div class="check_class_left">
  2785. <div class="check_class_all_box">
  2786. <div class="check_class_left_title">选择班级</div>
  2787. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2788. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2789. </div>
  2790. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2791. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2792. </div> -->
  2793. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2794. <div v-for="item in grade2" :key="item.id" class="class_item">
  2795. <el-checkbox :label="item.id">
  2796. {{ item.name }}
  2797. </el-checkbox>
  2798. </div>
  2799. </el-checkbox-group>
  2800. <div v-if="!grade2.length">暂无数据</div>
  2801. </div>
  2802. </div>
  2803. <span slot="footer" class="dialog-footer">
  2804. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2805. <el-button type="primary" @click="isAddClass">确定</el-button>
  2806. </span>
  2807. </el-dialog>
  2808. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2809. :before-close="handleClose" class="addNewPP customWidth">
  2810. <div class="people">
  2811. <div class="people_top">
  2812. <div class="people_top_right">
  2813. <div class="people_search">
  2814. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2815. <div class="search_img" @click="getTeacher">
  2816. <img src="../../../assets/icon/search.png" alt />
  2817. </div>
  2818. </div>
  2819. </div>
  2820. <div class="people_nav" style="display: flex;align-items: center;">
  2821. <div class="check_class_left_title">选择成员</div>
  2822. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll2"
  2823. @change="handleCheckAllChange2" class="all_check">全选</el-checkbox></div>
  2824. </div>
  2825. </div>
  2826. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" @change="InviteChange2">
  2827. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2828. <div class="t_j_box">
  2829. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2830. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2831. </el-tooltip>
  2832. <el-tooltip placement="top" :content="item.username">
  2833. <span>{{ item.username }}</span>
  2834. </el-tooltip>
  2835. <el-tooltip placement="top" :content="item.school">
  2836. <span>{{ item.school }}</span>
  2837. </el-tooltip>
  2838. </div>
  2839. </el-checkbox>
  2840. </el-checkbox-group>
  2841. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2842. </div>
  2843. <span slot="footer" class="dialog-footer">
  2844. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2845. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2846. </span>
  2847. </el-dialog>
  2848. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2849. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2850. <div style="height:100%">
  2851. <div class="a_add_title" style="
  2852. display: flex;
  2853. flex-direction: row;
  2854. align-items: center;
  2855. justify-content: center;
  2856. ">
  2857. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2858. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2859. </div>
  2860. <div class="a_addBox" style="height:calc(100% - 50px)">
  2861. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2862. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2863. <div class="a_add_checkType">
  2864. <span :class="{
  2865. active:
  2866. askJson.askJson[index1].type == '1' ||
  2867. !askJson.askJson[index1].type,
  2868. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2869. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2870. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2871. </div>
  2872. <div class="a_add_head">
  2873. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2874. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2875. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2876. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2877. </div>
  2878. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2879. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2880. </div>
  2881. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2882. </div>
  2883. <div class="a_add_head_div">
  2884. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2885. </el-button>
  2886. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2887. </div>
  2888. </div>
  2889. <div class="a_add_body">
  2890. <div class="a_add_input" style="flex-direction: column;">
  2891. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2892. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2893. <div style="margin-right: 10px">
  2894. 选项{{ checkIndex + 1 }}
  2895. </div>
  2896. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2897. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2898. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2899. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2900. </div>
  2901. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2902. </div>
  2903. <div class="a_add_body_div">
  2904. <el-button type="primary" size="small"
  2905. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2906. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2907. v-if="askJson.askJson[index1].askItem != 1">删除
  2908. </el-button>
  2909. </div>
  2910. </div>
  2911. </div>
  2912. <!-- <div class="a_add_body_div">
  2913. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2914. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2915. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2916. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2917. </el-button>
  2918. </div> -->
  2919. </div>
  2920. </div>
  2921. </div>
  2922. </div>
  2923. <span slot="footer" class="dialog-footer">
  2924. <el-button @click="closePan(4)">取 消</el-button>
  2925. <el-button type="primary" @click="addAsk">确 定</el-button>
  2926. </span>
  2927. </el-dialog>
  2928. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2929. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2930. <div style="height:100%">
  2931. <!-- <div class="a_add_title" style="
  2932. display: flex;
  2933. flex-direction: row;
  2934. align-items: center;
  2935. justify-content: center;
  2936. ">
  2937. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2938. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2939. </div> -->
  2940. <div class="a_addBox" style="height:100%">
  2941. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2942. <!-- 请输入题目内容 -->
  2943. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2944. v-if="isPasteChoice">智能粘贴</button>
  2945. </div>
  2946. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2947. <div class="a_add_checkType">
  2948. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2949. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2950. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2951. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2952. </div>
  2953. <div class="a_add_head">
  2954. <div class="timuUpImg">
  2955. <div style="display: flex;align-items: center;">
  2956. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2957. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2958. placeholder="请输入题目">
  2959. </el-input> -->
  2960. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2961. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2962. @change="() => { $forceUpdate() }"></textarea>
  2963. </div>
  2964. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2965. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2966. </div>
  2967. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2968. </div>
  2969. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2970. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2971. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2972. </div>
  2973. </div>
  2974. <div class="a_add_head_div">
  2975. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2976. </el-button>
  2977. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2978. </div>
  2979. </div>
  2980. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2981. testJson.testJson[index1].timuList.length
  2982. ">
  2983. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2984. @click.stop="previewImg(timg.src)">
  2985. <img :src="timg.src" alt="" />
  2986. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2987. <img src="../../../assets/icon/delete.png" alt="" />
  2988. </div>
  2989. </div>
  2990. </div>
  2991. <div class="a_add_body">
  2992. <div class="a_add_input a_add_input_choice">
  2993. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2994. @change="() => { $forceUpdate() }">
  2995. <div class="radioBox">
  2996. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2997. .testItem" :key="checkIndex" :label="checkIndex">
  2998. <div style="margin-right: 10px">
  2999. 选项{{ checkIndex + 1 }}
  3000. </div>
  3001. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3002. testJson.testJson[index1].checkList[checkIndex]
  3003. .imgType &&
  3004. testJson.testJson[index1].checkList[checkIndex]
  3005. .imgType == 1
  3006. ">
  3007. <div class="inImg" @click.stop="
  3008. previewImg(
  3009. testJson.testJson[index1].checkList[checkIndex]
  3010. .src
  3011. )
  3012. ">
  3013. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3014. .src
  3015. " lazy />
  3016. <!-- <img :src="
  3017. testJson.testJson[index1].checkList[checkIndex]
  3018. .src
  3019. " alt="" /> -->
  3020. </div>
  3021. </div>
  3022. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3023. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3024. @change="() => { $forceUpdate() }"></textarea>
  3025. <div class="xzUpImg" @click.stop="addImg($event)">
  3026. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3027. <input type="file" accept="image/*" style="display: none"
  3028. @change="beforeUploadTi($event, index1, checkIndex)" />
  3029. </div>
  3030. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3031. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3032. </div>
  3033. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3034. </div>
  3035. <div class="a_add_body_div">
  3036. <el-button type="primary" size="small"
  3037. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3038. <el-button type="primary" size="small"
  3039. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3040. v-if="testJson.testJson[index1].testItem != 1">删除
  3041. </el-button>
  3042. </div>
  3043. </el-radio>
  3044. </div>
  3045. </el-radio-group>
  3046. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3047. @change="() => { $forceUpdate() }">
  3048. <div class="radioBox">
  3049. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3050. .testItem" :key="checkIndex1" :label="checkIndex1">
  3051. <div style="margin-right: 10px">
  3052. 选项{{ checkIndex1 + 1 }}
  3053. </div>
  3054. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3055. testJson.testJson[index1].checkList[checkIndex1]
  3056. .imgType &&
  3057. testJson.testJson[index1].checkList[checkIndex1]
  3058. .imgType == 1
  3059. ">
  3060. <div class="inImg" @click.stop="
  3061. previewImg(
  3062. testJson.testJson[index1].checkList[checkIndex1]
  3063. .src
  3064. )
  3065. ">
  3066. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3067. .src
  3068. " lazy />
  3069. <!-- <img :src="
  3070. testJson.testJson[index1].checkList[checkIndex1]
  3071. .src
  3072. " alt="" /> -->
  3073. </div>
  3074. </div>
  3075. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3076. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3077. @change="() => { $forceUpdate() }"></textarea>
  3078. <div class="xzUpImg" @click.stop="addImg($event)">
  3079. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3080. <input type="file" accept="image/*" style="display: none"
  3081. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3082. </div>
  3083. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3084. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3085. </div>
  3086. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3087. </div>
  3088. <div class="a_add_body_div">
  3089. <el-button type="primary" size="small"
  3090. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3091. <el-button type="primary" size="small"
  3092. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3093. v-if="testJson.testJson[index1].testItem != 1">删除
  3094. </el-button>
  3095. </div>
  3096. </el-checkbox>
  3097. </div>
  3098. </el-checkbox-group>
  3099. </div>
  3100. <!-- <div class="a_add_body_div">
  3101. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3102. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3103. v-if="testJson.testJson[index1].testItem != 1">删除
  3104. </el-button>
  3105. </div> -->
  3106. </div>
  3107. </div>
  3108. </div>
  3109. </div>
  3110. <span slot="footer" class="dialog-footer">
  3111. <el-button @click="closePan(45)">取 消</el-button>
  3112. <el-button type="primary" @click="addTest">确 定</el-button>
  3113. </span>
  3114. </el-dialog>
  3115. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3116. :before-close="handleClose" class="dialog_diy addToolsDia">
  3117. <div class="toolChoose">
  3118. <div class="tools">
  3119. <div class="leftTools" style="
  3120. width: 100%;
  3121. padding: 0 0 15px 0;
  3122. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3123. <div style="
  3124. display: flex;
  3125. flex-direction: row;
  3126. align-items: baseline;
  3127. flex-wrap: nowrap;
  3128. justify-content: flex-start;
  3129. position: relative;
  3130. ">
  3131. <div class="chooseWho">
  3132. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3133. 互动类
  3134. </div>
  3135. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3136. 思维类
  3137. </div>
  3138. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3139. 评价类
  3140. </div>
  3141. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3142. 其他
  3143. </div>
  3144. </div>
  3145. </div>
  3146. <div style="min-height: 163px">
  3147. <div class="toolSort" v-if="chapToolsType == 0">
  3148. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3149. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3150. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3151. <div style="margin: 5px 0">素材库</div>
  3152. </div>
  3153. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3154. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3155. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3156. <!-- <div class="check" @click="chapAddTools(8)">
  3157. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3158. <div class="checkDiv" v-else>
  3159. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3160. </div>
  3161. </div> -->
  3162. </div>
  3163. </div>
  3164. <div class="toolSort" v-if="chapToolsType == 1">
  3165. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3166. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3167. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  3168. <div style="margin: 5px 0">思维网格</div>
  3169. </div>
  3170. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3171. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3172. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3173. <!-- <div class="check" @click="chapAddTools(7)">
  3174. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3175. <div class="checkDiv" v-else>
  3176. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3177. </div>
  3178. </div> -->
  3179. </div>
  3180. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3181. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3182. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3183. <div style="margin: 5px 0">电子白板</div>
  3184. </div>
  3185. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3186. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3187. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3188. <!-- <div class="check" @click="chapAddTools(1)">
  3189. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3190. <div class="checkDiv" v-else>
  3191. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3192. </div>
  3193. </div> -->
  3194. </div>
  3195. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3196. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3197. <img src="../../../assets/icon/secondToolList/note.png" alt />
  3198. <div style="margin: 5px 0">便签</div>
  3199. </div>
  3200. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3201. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3202. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3203. <!-- <div class="check" @click="chapAddTools(2)">
  3204. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3205. <div class="checkDiv" v-else>
  3206. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3207. </div>
  3208. </div> -->
  3209. </div>
  3210. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3211. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3212. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3213. <div style="margin: 5px 0">协同文档</div>
  3214. </div>
  3215. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3216. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3217. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3218. <!-- <div class="check" @click="chapAddTools(6)">
  3219. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3220. <div class="checkDiv" v-else>
  3221. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3222. </div>
  3223. </div> -->
  3224. </div>
  3225. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3226. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3227. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3228. <div style="margin: 5px 0">思维导图</div>
  3229. </div>
  3230. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3231. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3232. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3233. <!-- <div class="check" @click="chapAddTools(3)">
  3234. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3235. <div class="checkDiv" v-else>
  3236. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3237. </div>
  3238. </div> -->
  3239. </div>
  3240. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3241. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3242. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3243. <div style="margin: 5px 0">数学画板</div>
  3244. </div>
  3245. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3246. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3247. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3248. <!-- <div class="check" @click="chapAddTools(31)">
  3249. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3250. <div class="checkDiv" v-else>
  3251. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3252. </div>
  3253. </div> -->
  3254. </div>
  3255. </div>
  3256. <div class="toolSort" v-if="chapToolsType == 2">
  3257. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3258. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3259. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  3260. <div style="margin: 5px 0">量规评分</div>
  3261. </div>
  3262. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3263. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3264. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3265. <!-- <div class="check" @click="chapAddTools(5)">
  3266. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3267. <div class="checkDiv" v-else>
  3268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3269. </div>
  3270. </div> -->
  3271. </div>
  3272. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3273. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3274. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3275. <div style="margin: 5px 0">问卷调查</div>
  3276. </div>
  3277. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3278. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3279. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  3280. <!-- <div class="check" @click="chapAddTools(4)">
  3281. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3282. <div class="checkDiv" v-else>
  3283. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3284. </div>
  3285. </div> -->
  3286. </div>
  3287. </div>
  3288. </div>
  3289. <div>
  3290. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3291. v-model="itemTools.toolDetail" />
  3292. </div>
  3293. </div>
  3294. </div>
  3295. </div>
  3296. <span slot="footer" class="dialog-footer">
  3297. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3298. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3299. </span>
  3300. </el-dialog>
  3301. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3302. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3303. <div>
  3304. <div class="a_add_title" style="
  3305. display: flex;
  3306. flex-direction: column;
  3307. align-items: flex-start;
  3308. justify-content: center;
  3309. ">
  3310. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3311. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3312. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3313. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3314. </div>
  3315. </div>
  3316. <span slot="footer" class="dialog-footer">
  3317. <el-button @click="closePan(15)">取 消</el-button>
  3318. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3319. </span>
  3320. </el-dialog>
  3321. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3322. :before-close="handleClose" class="dialog_diy">
  3323. <div>
  3324. <div class="a_add_title" style="
  3325. display: flex;
  3326. flex-direction: column;
  3327. align-items: flex-start;
  3328. justify-content: center;
  3329. ">
  3330. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3331. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3332. </div>
  3333. </div>
  3334. <span slot="footer" class="dialog-footer">
  3335. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3336. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3337. </span>
  3338. </el-dialog>
  3339. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3340. :before-close="handleClose" class="dialog_diy">
  3341. <div>
  3342. <div class="fileCss" style="padding-top: 20px">
  3343. <div>
  3344. <button class="info_btn" @click="addImg($event)">
  3345. 选择本地文件
  3346. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3347. </button>
  3348. <div class="spanName">选择本地文件</div>
  3349. </div>
  3350. <!-- <div>
  3351. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3352. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3353. <img :src="cover[0].url" alt="" />
  3354. <div class="deletePic" @click="deleteSysPic">
  3355. <img src="../../../assets/icon/delete.png" alt="" />
  3356. </div>
  3357. </div>
  3358. <div class="spanName">选择系统文件</div>
  3359. </div> -->
  3360. <div>
  3361. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3362. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3363. <img :src="cover[0].url" alt="" />
  3364. <div class="deletePic" @click="deleteSysPic">
  3365. <img src="../../../assets/icon/delete.png" alt="" />
  3366. </div>
  3367. </div>
  3368. <div class="spanName">选择网络文件</div>
  3369. </div>
  3370. </div>
  3371. <!-- <div class="fileCss">
  3372. </div> -->
  3373. </div>
  3374. <span slot="footer" class="dialog-footer">
  3375. <el-button @click="choosePicVisible = false">取 消</el-button>
  3376. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3377. </span>
  3378. </el-dialog>
  3379. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3380. :before-close="handleClose" class="dialog_diy">
  3381. <div class="cru_selectBox" style="margin: 0">
  3382. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3383. 绘画
  3384. </div>
  3385. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3386. 科技
  3387. </div>
  3388. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3389. 人文
  3390. </div>
  3391. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3392. 艺术
  3393. </div>
  3394. </div>
  3395. <div class="sysPicBox">
  3396. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3397. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3398. </div>
  3399. </div>
  3400. </el-dialog>
  3401. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3402. :before-close="handleClose" class="dialog_diy">
  3403. <div>
  3404. <div class="people_top_right" style="display: flex;align-items: center;">
  3405. <div style="position: relative; width: 100%;">
  3406. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3407. @keyup.enter.native="resetImage()"></el-input>
  3408. <div class="search_img" @click="resetImage" style="right: 10px;">
  3409. <img src="../../../assets/icon/search.png" alt />
  3410. </div>
  3411. </div>
  3412. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3413. </div>
  3414. <div class="sysPicBox" v-loading="imageloading">
  3415. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3416. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3417. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3418. </div>
  3419. </div>
  3420. </div>
  3421. </el-dialog>
  3422. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3423. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3424. <div v-if="selectJson" style="height:100%">
  3425. <div class="select_box1" v-if="selectSteps == 1">
  3426. <div class="select_box1_img">
  3427. <div class="select_box1_title">
  3428. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3429. </div>
  3430. <div class="select_box1_add_img">
  3431. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3432. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3433. <img src="../../../assets/icon/addPoster.png" alt="" />
  3434. </div>
  3435. <div class="isSysPic" v-else>
  3436. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3437. <div class="deletePic" @click="deleteSelectPic">
  3438. <img src="../../../assets/icon/delete.png" alt="" />
  3439. </div>
  3440. </div>
  3441. </div>
  3442. </div>
  3443. <div class="select_box1_select">
  3444. <div class="select_box1_title">
  3445. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3446. </div>
  3447. <div class="select_box1_select_box">
  3448. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3449. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3450. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3451. <div class="select_box1_select_box_add">
  3452. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3453. 添加</el-button>
  3454. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3455. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. <div v-if="selectSteps == 2" style="height:100%">
  3461. <div class="select_box2">
  3462. <div class="select_box2_title">设置每道题目的正确选项</div>
  3463. <div class="select_box2_box">
  3464. <div class="select_box2_img">
  3465. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3466. </div>
  3467. <div class="select_box2_answer">
  3468. <div class="select_answer_title">根据题目选择对应答案</div>
  3469. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3470. <span>{{ checkIndex + 1 }}、</span>
  3471. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3472. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3473. </el-option>
  3474. </el-select>
  3475. </div>
  3476. </div>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. </div>
  3481. <span slot="footer" class="dialog-footer">
  3482. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3483. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3484. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3485. </span>
  3486. </el-dialog>
  3487. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3488. :before-close="handleClose" class="dialog_diy">
  3489. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3490. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3491. <div class="pjCss" style="width: 100%">
  3492. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3493. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3494. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3495. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3496. <div class="remove" @click="deletRateList(eIndex)"></div>
  3497. <div style="width: 100%; display: flex">
  3498. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3499. <el-rate v-model="eItem.score" disabled></el-rate>
  3500. </div>
  3501. <div class="elist_inptu_text" style="align-items: flex-start">
  3502. <span style="min-width: 100px; text-align: right">描述:</span>
  3503. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <div class="addToolFun" @click="addRateList()">
  3508. <div class="addToolImg">
  3509. <img src="../../../assets/icon/add.png" alt />
  3510. </div>
  3511. <div>添加</div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. <span slot="footer" class="dialog-footer">
  3516. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3517. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3518. </span>
  3519. </el-dialog>
  3520. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3521. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3522. <div style="height: 100%;">
  3523. <div class="sentenBox" style="height: 100%;">
  3524. <div class="addSen" @click="addSt">添加题目</div>
  3525. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3526. <div class="sentenTopBox">
  3527. <div class="sentenTop" :index="stIndex + 1">
  3528. <div>题目设置</div>
  3529. <div>
  3530. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3531. </div>
  3532. <div @click="addSen(stIndex)">添加</div>
  3533. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3534. </div>
  3535. </div>
  3536. <div class="cardList">
  3537. <div v-if="st.addSentence.length > 0" class="cardBox">
  3538. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3539. @click="setRightAnswer(s, stIndex, sIndex)">
  3540. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3541. <div>{{ s }}</div>
  3542. </el-tooltip>
  3543. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3544. <img src="../../../assets/icon/delete.png" alt="" />
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div class="card">
  3549. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  3550. </div>
  3551. </div>
  3552. <div class="rightCardBox">
  3553. <div>正确顺序</div>
  3554. <div class="rightCardList">
  3555. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3556. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3557. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3558. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3559. <div>{{ r }}</div>
  3560. </el-tooltip>
  3561. </div>
  3562. <div>{{ rIndex + 1 }}</div>
  3563. </div>
  3564. </div>
  3565. <div class="card" v-if="st.rightAnswer.length == 0">
  3566. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  3567. </div>
  3568. <div class="card" v-else>
  3569. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  3570. </div>
  3571. </div>
  3572. </div>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. <span slot="footer" class="dialog-footer">
  3577. <el-button @click="closePan(47)">取 消</el-button>
  3578. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3579. </span>
  3580. </el-dialog>
  3581. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3582. :before-close="handleClose" class="dialog_diy">
  3583. <el-form>
  3584. <!-- <el-form-item label="文本标题">
  3585. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3586. </el-form-item> -->
  3587. <div>表格内容</div>
  3588. <Table v-model="tableJson.text" @change="change"></Table>
  3589. </el-form>
  3590. <span slot="footer" class="dialog-footer">
  3591. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3592. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3593. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3594. </span>
  3595. </el-dialog>
  3596. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3597. :before-close="handleClose" class="dialog_diy">
  3598. <el-form>
  3599. <!-- <el-form-item label="文本标题">
  3600. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3601. </el-form-item> -->
  3602. <div>文档内容</div>
  3603. <editor-bar v-model="wordJson.text"></editor-bar>
  3604. </el-form>
  3605. <span slot="footer" class="dialog-footer">
  3606. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3607. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3608. </span>
  3609. </el-dialog>
  3610. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3611. :before-close="handleClose" class="dialog_diy">
  3612. <div style="
  3613. width: 100%;
  3614. display: flex;
  3615. flex-direction: row;
  3616. flex-wrap: nowrap;
  3617. align-items: center;
  3618. justify-content: center;
  3619. ">
  3620. <div>班级:</div>
  3621. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3622. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3623. </el-option>
  3624. </el-select>
  3625. </div>
  3626. <span slot="footer" class="dialog-footer">
  3627. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3628. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3629. </span>
  3630. </el-dialog>
  3631. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3632. :before-close="handleClose" class="dialog_diy">
  3633. <div style="
  3634. width: 100%;
  3635. display: flex;
  3636. flex-direction: row;
  3637. flex-wrap: nowrap;
  3638. align-items: center;
  3639. justify-content: center;
  3640. ">
  3641. <div>随机码:</div>
  3642. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3643. </div>
  3644. <span slot="footer" class="dialog-footer">
  3645. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3646. <el-button type="primary" @click="addInvite">确定</el-button>
  3647. </span>
  3648. </el-dialog>
  3649. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3650. :before-close="handleClose" class="dialog_diy">
  3651. <div>
  3652. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3653. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3654. </div>
  3655. <span slot="footer" class="dialog-footer">
  3656. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3657. <el-button type="primary" @click="addPreTime">确定</el-button>
  3658. </span>
  3659. </el-dialog>
  3660. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3661. class="dialog_diy">
  3662. <div>
  3663. <div style="
  3664. width: 100%;
  3665. display: flex;
  3666. flex-direction: row;
  3667. flex-wrap: nowrap;
  3668. align-content: center;
  3669. align-items: center;
  3670. justify-content: space-between;
  3671. ">
  3672. <div style="
  3673. display: flex;
  3674. flex-flow: row nowrap;
  3675. align-items: flex-start;
  3676. width: 100%;
  3677. flex-direction: column;
  3678. flex-wrap: nowrap;
  3679. position: relative;
  3680. ">
  3681. <div class="e_box">
  3682. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3683. <div class="e_card_picture">
  3684. <img src="../../../assets/e_picture.png" />
  3685. </div>
  3686. <div class="e_card_name">
  3687. <span>{{ item.title }}</span>
  3688. </div>
  3689. <div class="e_card_btn">
  3690. <span @click="checkEva(item.id, 2)">导入</span>
  3691. </div>
  3692. </div> -->
  3693. <!-- <div class="addEva" @click="openT">
  3694. <img src="../../../assets/icon/addEva.png" alt="" />
  3695. </div> -->
  3696. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3697. <el-table
  3698. v-if="evaJuri.length"
  3699. ref="table"
  3700. :data="evaJuri"
  3701. border
  3702. :fit="true"
  3703. style="width: 100%"
  3704. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3705. :row-class-name="tableRowClassName"
  3706. >
  3707. <el-table-column
  3708. label="目标名称"
  3709. min-width="15"
  3710. align="center"
  3711. prop="title"
  3712. >
  3713. </el-table-column>
  3714. <el-table-column
  3715. prop="username"
  3716. label="负责人"
  3717. min-width="15"
  3718. align="center"
  3719. >
  3720. </el-table-column>
  3721. <el-table-column label="操作" width="250px">
  3722. <template slot-scope="scope">
  3723. <div class="btnBox">
  3724. <el-button
  3725. type="primary"
  3726. size="small"
  3727. @click="checkEva(scope.row.id, 2)"
  3728. >导入</el-button
  3729. >
  3730. </div>
  3731. </template>
  3732. </el-table-column>
  3733. </el-table>
  3734. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3735. 暂无数据
  3736. </div>
  3737. </div>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. <span slot="footer" class="dialog-footer">
  3742. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3743. </span>
  3744. </el-dialog>
  3745. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3746. :before-close="handleClose" class="dialog_diy">
  3747. <div class="groupBox">
  3748. <div v-if="groupJson.group" class="groupContent">
  3749. <div class="groupTitle">请设置小组数量及名称</div>
  3750. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3751. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3752. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3753. <div class="groupBtn">
  3754. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3755. 添加</el-button>
  3756. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3757. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3758. </div>
  3759. </div>
  3760. </div>
  3761. <div class="groupContent">
  3762. <div class="groupTitle">请设置每组人数</div>
  3763. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3764. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3765. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3766. @change="numberPan"></el-input>
  3767. </div>
  3768. </div>
  3769. <span slot="footer" class="dialog-footer">
  3770. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3771. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3772. </span>
  3773. </el-dialog>
  3774. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3775. :before-close="handleClose" class="dialog_diy">
  3776. <div style="
  3777. width: 100%;
  3778. display: flex;
  3779. flex-direction: row;
  3780. flex-wrap: nowrap;
  3781. align-items: center;
  3782. justify-content: center;
  3783. ">
  3784. <div style="min-width: fit-content;">文件名称:</div>
  3785. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3786. </div>
  3787. <span slot="footer" class="dialog-footer">
  3788. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3789. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3790. </span>
  3791. </el-dialog>
  3792. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3793. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  3794. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  3795. <span slot="footer" class="dialog-footer">
  3796. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3797. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3798. </span>
  3799. </el-dialog>
  3800. <el-dialog title="选择培训模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  3801. :before-close="handleClose" class="dialog_diy">
  3802. <div class="template_box">
  3803. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)" :class="{wordTeacherA:ctJson.id == aa.id}">
  3804. <div class="wordPic">
  3805. <img src="../../../assets/icon/new/course_template.png" alt />
  3806. </div>
  3807. <el-tooltip effect="dark" :content="aa.title" placement="top">
  3808. <div style="
  3809. margin-top: 10px;
  3810. line-height: 19px;
  3811. overflow: hidden;
  3812. text-overflow: ellipsis;
  3813. white-space: nowrap;
  3814. padding: 0 10px;
  3815. box-sizing: border-box;
  3816. width: 100%;
  3817. ">
  3818. {{ aa.title }}
  3819. </div>
  3820. </el-tooltip>
  3821. </div>
  3822. <div class="wordTeacher" @click="checkctJson({id: 1})" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'" :class="{wordTeacherA:ctJson.id == 1}">
  3823. <div class="wordPic">
  3824. <img src="../../../assets/icon/new/course_template.png" alt />
  3825. </div>
  3826. <div style="
  3827. margin-top: 10px;
  3828. line-height: 19px;
  3829. overflow: hidden;
  3830. text-overflow: ellipsis;
  3831. white-space: nowrap;
  3832. padding: 0 20px;
  3833. ">
  3834. 简易模板
  3835. </div>
  3836. </div>
  3837. <div class="wordTeacher" @click="checkctJson({id: 2})" v-if="isPasteStage" :class="{wordTeacherA:ctJson.id == 2}">
  3838. <div class="wordPic">
  3839. <img src="../../../assets/icon/new/course_template.png" alt />
  3840. </div>
  3841. <div style="
  3842. margin-top: 10px;
  3843. line-height: 19px;
  3844. overflow: hidden;
  3845. text-overflow: ellipsis;
  3846. white-space: nowrap;
  3847. padding: 0 20px;
  3848. ">
  3849. 智能粘贴模式
  3850. </div>
  3851. </div>
  3852. </div>
  3853. <span slot="footer" class="dialog-footer">
  3854. <el-button @click="templateDialog = false">取 消</el-button>
  3855. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  3856. </span>
  3857. </el-dialog>
  3858. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3859. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3860. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3861. <div class="change_stageBox">
  3862. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3863. <div class="nt_taskBox">
  3864. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3865. <div class="nt_taskName">
  3866. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3867. <span>{{ t.dyName }}</span>
  3868. </el-tooltip>
  3869. </div>
  3870. </div>
  3871. <div class="moveBtn" v-if="unitJson3.length > 1">
  3872. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3873. </div>
  3874. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3875. </div>
  3876. </div>
  3877. </div>
  3878. <span slot="footer" class="dialog-footer">
  3879. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3880. <el-button type="primary" @click="updateChange">确定</el-button>
  3881. </span>
  3882. </el-dialog>
  3883. </div>
  3884. </template>
  3885. <script>
  3886. import "../../../common/aws-sdk-2.235.1.min.js";
  3887. import { tools as toolsData } from "../../../common/tools.js";
  3888. // import "../../../common/aws-sdk-2.99.0.min.js";
  3889. import $ from "jquery";
  3890. import EditorBar from "../../../components/tools/wangEnduit";
  3891. import Table from "../../../components/tools/table";
  3892. import Mind from "../../tools/jsmind2";
  3893. import Time from "../../tools/time.vue";
  3894. import Sunburst from "../../tools/sunburst";
  3895. import SeeBoard from "../../tools/seeBoard";
  3896. import weilaiData from "../components/weilai.js";
  3897. import sourceDialog from "../teacherSource/dialog.vue";
  3898. import interVideo from "../interVideo/index.vue";
  3899. import englishRight from "../components/englishRight.vue";
  3900. var OpenCC = require("opencc-js");
  3901. let converter = OpenCC.Converter({
  3902. from:'hk',
  3903. to:'cn'
  3904. })
  3905. export default {
  3906. components: {
  3907. EditorBar,
  3908. Mind,
  3909. Time,
  3910. Sunburst,
  3911. SeeBoard,
  3912. Table,
  3913. sourceDialog,
  3914. interVideo,
  3915. englishRight,
  3916. },
  3917. data() {
  3918. return {
  3919. checkAll: false,
  3920. checkAll2: false,
  3921. chooseType: 1,
  3922. checkedCities: [],
  3923. isIndeterminate: true,
  3924. isIndeterminate2: true,
  3925. isSysPic: false,
  3926. isSysPic2: false,
  3927. steps: 1,
  3928. nbOrder: 0,
  3929. courseId: "",
  3930. chapToolsType: 0,
  3931. chapTools: [
  3932. {
  3933. tools: [],
  3934. toolDetail: "",
  3935. },
  3936. ],
  3937. line: "",
  3938. lineTitle: "",
  3939. sysPic: [],
  3940. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3941. sentenceList2: [],
  3942. isPushTitleList: [],
  3943. lineCount: 0,
  3944. lineType: 0,
  3945. chapCount: 0,
  3946. courseName: "",
  3947. isTeacherSee: false,
  3948. courseText: "",
  3949. preTime: 0,
  3950. formLabelWidth: "100px",
  3951. choosePicVisible: false,
  3952. sysPicVisible: false,
  3953. sysPicVisible2: false,
  3954. uploadLoading1: false,
  3955. noneBtnImg: false,
  3956. updateBoolean2: false,
  3957. unitIndex: 0,
  3958. taskCount: 0,
  3959. dialogVisible: false,
  3960. dialogVisible1: false,
  3961. dialogVisible2: false,
  3962. dialogVisible3: false,
  3963. dialogVisible4: false,
  3964. dialogVisible5: false,
  3965. dialogVisible6: false,
  3966. dialogVisible7: false,
  3967. dialogVisible8: false,
  3968. dialogVisible9: false,
  3969. dialogVisibleClass: false,
  3970. dialogVisibleMember: false,
  3971. dialogVisibleMp3: false,
  3972. dialogVisibleSelect: false,
  3973. dialogVisibleSentence: false,
  3974. dialogVisibleRate: false,
  3975. dialogVisibleChoice: false,
  3976. dialogVisiblemb: false,
  3977. dialogVisibleInvite: false,
  3978. dialogVisibleSource: false,
  3979. dialogVisibleVideo: false,
  3980. dialogVisibleStageChange: false,
  3981. dialogVisibleupdataVideoT: false,
  3982. englishDialogVisible: false,
  3983. templateDialog: false,
  3984. ctJson: {},
  3985. isClickColor: 1,
  3986. toolIndexType: "",
  3987. publicTool: 0,
  3988. searchPeople: "",
  3989. searchTN: "",
  3990. userid: this.$route.query.userid,
  3991. oid: this.$route.query.oid,
  3992. org: this.$route.query.org,
  3993. role: this.$route.query.role,
  3994. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3995. dialogVisibleTable: false,
  3996. dialogVisibleWord: false,
  3997. tableJson: { text: "" },
  3998. wordJson: { text: "" },
  3999. dialogVisibleMoreUpload: false,
  4000. dialogVisiblePreTime: false,
  4001. uploadJson: [],
  4002. classJuri: [],
  4003. gradeList: [],
  4004. cover: [], //培训封面
  4005. myWord: [],
  4006. evaJuri: [],
  4007. evalua: "",
  4008. targetArray: [],
  4009. eTitle: "",
  4010. eJson: {},
  4011. fid: "", //一级
  4012. sid: "", //二级
  4013. tid: "", //二级
  4014. typeMode: 1,
  4015. eJSONNum: 0,
  4016. data: {
  4017. meta: {
  4018. name: "example",
  4019. author: "dd@163.com",
  4020. version: "0.2",
  4021. },
  4022. format: "node_array",
  4023. data: [{ id: "root", isroot: true, topic: "" }],
  4024. },
  4025. askJson: {
  4026. askCount: 1,
  4027. askTitle: "",
  4028. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4029. },
  4030. askJson2: {},
  4031. testJson: {},
  4032. testJson2: {},
  4033. selectJson: {},
  4034. selectJson2: {},
  4035. rateJson: [],
  4036. unitJson2: [],
  4037. unitJson3: [],
  4038. unitJson: [
  4039. {
  4040. dyName: "", //单元标题
  4041. chapterInfo: [
  4042. {
  4043. isread: false,
  4044. chapterid: this.guid(),
  4045. title: "",
  4046. courseName: "",
  4047. taskJson: [
  4048. {
  4049. task: "",
  4050. taskDetail: "",
  4051. chapterData: [],
  4052. toolText: "",
  4053. toolChoose: [
  4054. {
  4055. tool: [],
  4056. toolDetail: "",
  4057. toolType: 0,
  4058. askCount: 1,
  4059. askTitle: "",
  4060. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4061. },
  4062. ],
  4063. isShowTools: false,
  4064. askCount: 1,
  4065. isFold: 1,
  4066. askTitle: "",
  4067. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4068. checkJson: [{ checkCount: [], checkPerent: [] }],
  4069. homeworkList: [],
  4070. },
  4071. ],
  4072. itemCount: 1,
  4073. fileList1: [],
  4074. video: [],
  4075. testData: [],
  4076. pData: [],
  4077. templateArray: [],
  4078. },
  4079. ],
  4080. },
  4081. ],
  4082. templateArray: [],
  4083. studentJuri: [],
  4084. teacherJuri: [],
  4085. checkboxList: [],
  4086. checkboxList2: [],
  4087. checkboxList3: [],
  4088. classSearch: "",
  4089. gradeId: "",
  4090. number: "",
  4091. tTitle: "",
  4092. tdetail: "",
  4093. templateC: {},
  4094. AttText: {},
  4095. AttTextType: 0,
  4096. AttTextIndex: 0,
  4097. cTemplate: "",
  4098. CourseType: [],
  4099. CourseType2: [],
  4100. CourseTypeJson: {},
  4101. courseTypeId: [],
  4102. courseTypeSon: [],
  4103. clearArray: [],
  4104. pTypeCheck: [],
  4105. pTypeCheckName: [],
  4106. loading: false,
  4107. toolType: 0,
  4108. inputShow: true,
  4109. inputShow2: true,
  4110. toolIndex: 0,
  4111. cidType: 0,
  4112. answerQ: "",
  4113. answerQ2: "",
  4114. grade: [],
  4115. grade2: [],
  4116. courseUserid: "",
  4117. timer: null,
  4118. timer2: null,
  4119. pasteTimer: null,
  4120. checkId: "",
  4121. isDelete: 1,
  4122. addindex: 0,
  4123. selectSteps: 1,
  4124. groupJson: {},
  4125. dialogVisibleGroup: false,
  4126. rightBoxHeight: 0,
  4127. ManAarray: [],
  4128. checkBoolean: false,
  4129. inviteCode: [],
  4130. inviteId: "",
  4131. icode: "",
  4132. easyArray: [2, 4],
  4133. sourceData: {},
  4134. updateSourcePan: false,
  4135. videoJson: {},
  4136. isBtnDisplay: false,
  4137. isStepDisplay: false,
  4138. isPasteStage: false,
  4139. isPasteTask: false,
  4140. isPasteChoice: false,
  4141. imageList: [],
  4142. imageloading: false,
  4143. searchImageValue: "",
  4144. ppage: 1,
  4145. toolsData: converter(toolsData),
  4146. oldIndex: 0,
  4147. dragType:'',
  4148. oldUnitIndex: 0,
  4149. oldData: null,
  4150. newIndex: "",
  4151. englishList:{},
  4152. typeIndex: "",
  4153. courseState: 2,
  4154. taskJSONa: [
  4155. {
  4156. task: "",
  4157. taskDetail: "",
  4158. chapterData: [],
  4159. toolText: "",
  4160. toolChoose: [
  4161. {
  4162. tool: [],
  4163. toolDetail: "",
  4164. toolType: 0,
  4165. askCount: 1,
  4166. askTitle: "",
  4167. askJson: [
  4168. { askstitle: "", askItem: 1, checkList: [] },
  4169. ],
  4170. },
  4171. ],
  4172. isShowTools: false,
  4173. askCount: 1,
  4174. isFold: 1,
  4175. askTitle: "",
  4176. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4177. checkJson: [{ checkCount: [], checkPerent: [] }],
  4178. homeworkList: [],
  4179. },
  4180. ],
  4181. checkUnitIndex: 0,
  4182. isdrag: '',
  4183. };
  4184. },
  4185. directives: {
  4186. autoHeight: {
  4187. update(el, binding) {
  4188. const { value } = binding
  4189. if (value && typeof value === 'number') {
  4190. el.style.height = `${value}px`
  4191. } else {
  4192. el.style.height = 'auto'
  4193. }
  4194. },
  4195. componentUpdated(el) {
  4196. el.style.height = `${el.scrollHeight + 5}px`
  4197. },
  4198. },
  4199. },
  4200. computed: {
  4201. // rightBoxHeight: function () {
  4202. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4203. // },
  4204. offsetLetfPx: function () {
  4205. //addnum可以直接在模板语法里面用,相当于data内的值
  4206. return (
  4207. $(".cru_select")[this.unitIndex] &&
  4208. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4209. );
  4210. },
  4211. getMan2() {
  4212. return function (people) {
  4213. let _people = people;
  4214. let _people2 = "";
  4215. if (this.ManAarray.length) {
  4216. for (var i = 0; i < this.ManAarray.length; i++) {
  4217. if (this.ManAarray[i].userid == people) {
  4218. _people2 = this.ManAarray[i].name;
  4219. break;
  4220. }
  4221. }
  4222. }
  4223. if (people == this.courseUserid) {
  4224. return "";
  4225. }
  4226. return this.ManAarray.length ? _people2 : "";
  4227. };
  4228. },
  4229. getListMan2() {
  4230. return function (list) {
  4231. let _people2 = [];
  4232. if (this.ManAarray.length) {
  4233. for (var j = 0; j < list.length; j++) {
  4234. let people = list[j];
  4235. for (var i = 0; i < this.ManAarray.length; i++) {
  4236. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4237. _people2.push(this.ManAarray[i].name);
  4238. break;
  4239. }
  4240. }
  4241. }
  4242. }
  4243. return this.ManAarray.length ? _people2.join("、") : "";
  4244. };
  4245. },
  4246. isInvite() {
  4247. return function (cid) {
  4248. let array = [];
  4249. for (var i = 0; i < this.inviteCode.length; i++) {
  4250. array.push(this.inviteCode[i].cid);
  4251. }
  4252. return array.indexOf(cid) != -1;
  4253. };
  4254. },
  4255. getInviteCodeC() {
  4256. return function (cid) {
  4257. let array = [];
  4258. for (var i = 0; i < this.inviteCode.length; i++) {
  4259. array.push(this.inviteCode[i].cid);
  4260. }
  4261. return this.inviteCode[array.indexOf(cid)].ic;
  4262. };
  4263. },
  4264. getClassC() {
  4265. return function (c) {
  4266. let _c2 = "";
  4267. if (this.grade.length) {
  4268. for (var i = 0; i < this.grade.length; i++) {
  4269. if (this.grade[i].id == c) {
  4270. _c2 = this.grade[i].name;
  4271. break;
  4272. }
  4273. }
  4274. }
  4275. return this.grade.length ? _c2 : "";
  4276. };
  4277. },
  4278. getListClassC() {
  4279. return function (list) {
  4280. let _c2 = [];
  4281. if (this.grade.length) {
  4282. for (var j = 0; j < list.length; j++) {
  4283. let c = list[j]
  4284. for (var i = 0; i < this.grade.length; i++) {
  4285. if (this.grade[i].id == c) {
  4286. _c2.push(this.grade[i].name);
  4287. break;
  4288. }
  4289. }
  4290. }
  4291. }
  4292. return this.grade.length ? _c2.join('、') : "";
  4293. };
  4294. },
  4295. },
  4296. watch: {
  4297. unitIndex(newValue, oldValue) {
  4298. if (this.isDelete == 2) {
  4299. this.isDelete = 1;
  4300. return;
  4301. }
  4302. if (this.cid != "") {
  4303. let _unitIndex = oldValue;
  4304. if (
  4305. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4306. JSON.stringify(this.unitJson[_unitIndex])
  4307. ) {
  4308. this.$refs.rightboxR.scrollTop = 0;
  4309. return;
  4310. }
  4311. let cPan = 1;
  4312. for (
  4313. var j = 0;
  4314. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4315. j++
  4316. ) {
  4317. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4318. j
  4319. ].proVisible = false;
  4320. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4321. j
  4322. ].proVisible2 = false;
  4323. if (
  4324. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4325. .length > 1
  4326. ) {
  4327. for (
  4328. var z = 0;
  4329. z <
  4330. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4331. .length;
  4332. z++
  4333. ) {
  4334. if (
  4335. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4336. .toolChoose[z].tool.length
  4337. ) {
  4338. this.$message.error("请把工具添加完整");
  4339. cPan = 2;
  4340. break;
  4341. }
  4342. }
  4343. }
  4344. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4345. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4346. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4347. (ele) => {
  4348. return ele.value != "";
  4349. }
  4350. );
  4351. }
  4352. }
  4353. if (cPan == 2) {
  4354. this.unitIndex = oldValue;
  4355. return;
  4356. }
  4357. for (var i = 0; i < this.unitJson.length; i++) {
  4358. if (this.addindex != i) {
  4359. delete this.unitJson[i].isUpdate;
  4360. }
  4361. }
  4362. this.$refs.rightboxR.scrollTop = 0;
  4363. this.addindex = -1;
  4364. let params = [
  4365. {
  4366. cid: this.cid,
  4367. chapters: JSON.stringify(this.unitJson),
  4368. uid: this.userid,
  4369. unitIndex: _unitIndex,
  4370. },
  4371. ];
  4372. this.ajax
  4373. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  4374. .then((res) => {
  4375. // this.$message({
  4376. // message: "修改成功",
  4377. // type: "success",
  4378. // });
  4379. // this.courseId = this.cid;
  4380. })
  4381. .catch((err) => {
  4382. this.$message.error("网络不佳");
  4383. console.error(err);
  4384. });
  4385. }
  4386. },
  4387. steps(newValue, old) {
  4388. if (newValue == 4) {
  4389. let cPan = 1;
  4390. for (var i = 0; i < this.unitJson.length; i++) {
  4391. for (
  4392. var j = 0;
  4393. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4394. j++
  4395. ) {
  4396. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4397. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4398. if (
  4399. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4400. ) {
  4401. for (
  4402. var z = 0;
  4403. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4404. z++
  4405. ) {
  4406. if (
  4407. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4408. .length
  4409. ) {
  4410. this.$message.error("请把工具添加完整");
  4411. cPan = 2;
  4412. break;
  4413. }
  4414. }
  4415. }
  4416. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4417. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4418. i
  4419. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4420. return ele.value != "";
  4421. });
  4422. }
  4423. }
  4424. }
  4425. this.inputShow = true;
  4426. if (cPan == 2) {
  4427. this.steps = old;
  4428. return;
  4429. }
  4430. this.goTo(
  4431. "/trainCourse?userid=" +
  4432. this.userid +
  4433. "&oid=" +
  4434. this.oid +
  4435. "&org=" +
  4436. this.org +
  4437. "&role=" +
  4438. this.role
  4439. );
  4440. }
  4441. },
  4442. },
  4443. methods: {
  4444. tableRowClassName({ row, rowIndex }) {
  4445. if ((rowIndex + 1) % 2 === 0) {
  4446. return "even_row";
  4447. } else {
  4448. return "";
  4449. }
  4450. },
  4451. openAI() {
  4452. window.parent.postMessage({ tools: "64" }, "*");
  4453. },
  4454. setMan() {
  4455. // let teacherJuri = this.teacherJuri2;
  4456. this.ManAarray = [];
  4457. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4458. if (_user.indexOf(this.userid) == -1) {
  4459. _user.push(this.userid);
  4460. }
  4461. if (_user.indexOf(this.courseUserid) == -1) {
  4462. _user.push(this.courseUserid);
  4463. }
  4464. let params = {
  4465. uid: _user.join(","),
  4466. };
  4467. this.ajax
  4468. .get(this.$store.state.api + "getAllUserById", params)
  4469. .then((res) => {
  4470. let teacherJuri = res.data[0];
  4471. this.ManAarray = teacherJuri;
  4472. })
  4473. .catch((err) => {
  4474. console.error(err);
  4475. });
  4476. },
  4477. previewImg(url) {
  4478. this.$hevueImgPreview(url);
  4479. },
  4480. btnDisplay(bool) {
  4481. this.isBtnDisplay = bool
  4482. },
  4483. stepDisplay(bool) {
  4484. this.isStepDisplay = bool
  4485. },
  4486. scrollChange() {
  4487. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4488. },
  4489. addHw(e) {
  4490. var el = e.currentTarget;
  4491. el.getElementsByTagName("input")[0].click();
  4492. },
  4493. change(val) {
  4494. if (this.dialogVisible1) {
  4495. this.tdetail = val
  4496. } else if (this.dialogVisible6) {
  4497. this.AttText.text = val
  4498. } else if (this.dialogVisible2) {
  4499. this.cTemplate = val
  4500. } else if (this.dialogVisibleTable) {
  4501. this.tableJson.text = val
  4502. }
  4503. this.$forceUpdate();
  4504. console.log(val);
  4505. },
  4506. change2(val) {
  4507. console.log(val);
  4508. this.$forceUpdate();
  4509. },
  4510. handleClose(done) {
  4511. done();
  4512. },
  4513. closePan(tool) {
  4514. if (tool == 15) {
  4515. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4516. this.dialogVisible8 = false
  4517. } else {
  4518. this.closeConfirm(tool);
  4519. }
  4520. } else if (tool == 4) {
  4521. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4522. this.dialogVisible5 = false
  4523. } else {
  4524. this.closeConfirm(tool);
  4525. }
  4526. } else if (tool == 45) {
  4527. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4528. this.dialogVisibleChoice = false
  4529. } else {
  4530. this.closeConfirm(tool);
  4531. }
  4532. } else if (tool == 41) {
  4533. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4534. this.dialogVisibleSelect = false
  4535. } else {
  4536. this.closeConfirm(tool);
  4537. }
  4538. } else if (tool == 47) {
  4539. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4540. this.dialogVisibleSentence = false
  4541. } else {
  4542. this.closeConfirm(tool);
  4543. }
  4544. }else if (tool == 69){
  4545. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4546. this.englishDialogVisible = false
  4547. } else {
  4548. this.closeConfirm(tool);
  4549. }
  4550. }
  4551. },
  4552. closeConfirm(tool) {
  4553. this
  4554. .$confirm("是否保存已编辑内容?", "提示", {
  4555. confirmButtonText: "保存",
  4556. cancelButtonText: "不保存",
  4557. type: "warning",
  4558. })
  4559. .then(() => {
  4560. if (tool == 15) {
  4561. this.addAnswer();
  4562. } else if (tool == 4) {
  4563. this.addAsk();
  4564. } else if (tool == 45) {
  4565. this.addTest();
  4566. } else if (tool == 41) {
  4567. this.addSelectAnswer();
  4568. } else if (tool == 47) {
  4569. this.addSentenceTool();
  4570. }else if(tool == 69){
  4571. this.addEnglish();
  4572. }
  4573. })
  4574. .catch(() => {
  4575. if (tool == 15) {
  4576. this.dialogVisible8 = false;
  4577. } else if (tool == 4) {
  4578. this.dialogVisible5 = false;
  4579. } else if (tool == 45) {
  4580. this.dialogVisibleChoice = false;
  4581. } else if (tool == 41) {
  4582. this.dialogVisibleSelect = false;
  4583. } else if (tool == 47) {
  4584. this.dialogVisibleSentence = false;
  4585. } else if (tool == 69) {
  4586. this.englishDialogVisible = false;
  4587. }
  4588. });
  4589. },
  4590. addEnglish(jsonType){
  4591. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  4592. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  4593. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  4594. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4595. this.$message.error("请将内容填写完整!");
  4596. return;
  4597. }
  4598. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4599. this.taskCount
  4600. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4601. this.englishList = {};
  4602. if(jsonType && jsonType == 1){
  4603. this.englishDialogVisible = true;
  4604. }else{
  4605. this.englishDialogVisible = false;
  4606. }
  4607. if (
  4608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4609. .toolChoose[this.toolIndex].tool != 69
  4610. ) {
  4611. this.addTools(69, this.taskCount, this.toolIndex);
  4612. }
  4613. },
  4614. imgChange2(i, j) {
  4615. var _tmp = this.testJson.testJson[i].checkList[j];
  4616. this.noneBtnImg = _tmp.length >= 1;
  4617. },
  4618. imgChange3(i) {
  4619. var _tmp = this.testJson.testJson[i];
  4620. this.noneBtnImg = _tmp.length >= 1;
  4621. },
  4622. imgChange1(file, fileList, type, itemTaskIndex) {
  4623. if (type == 1) {
  4624. var _tmp = this.cover;
  4625. } else if (
  4626. type == 2 ||
  4627. type == 3 ||
  4628. type == 6 ||
  4629. type == 7 ||
  4630. type == 8
  4631. ) {
  4632. var _tmp =
  4633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4634. .chapterData;
  4635. } else if (type == 4) {
  4636. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4637. } else {
  4638. var _tmp =
  4639. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4640. .homeworkList;
  4641. }
  4642. this.noneBtnImg = _tmp.length >= 1;
  4643. },
  4644. goTo(path) {
  4645. this.$router.push(path);
  4646. },
  4647. guid() {
  4648. var _num,
  4649. i,
  4650. _guid = "";
  4651. for (i = 0; i < 32; i++) {
  4652. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4653. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4654. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4655. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4656. _guid += "-";
  4657. }
  4658. }
  4659. return _guid;
  4660. },
  4661. retrunCourse() {
  4662. this
  4663. .$confirm("是否保存已编辑内容?", "提示", {
  4664. confirmButtonText: "保存",
  4665. cancelButtonText: "不保存",
  4666. distinguishCancelAndClose: true,
  4667. type: "warning",
  4668. })
  4669. .then(() => {
  4670. if (this.cid == "" || this.cid == undefined) {
  4671. if (this.courseName == "") {
  4672. this.$message.error("请补充填写培训名称");
  4673. return;
  4674. } else {
  4675. this.addWork();
  4676. }
  4677. this.steps = 4
  4678. } else {
  4679. if (this.courseName == "") {
  4680. this.$message.error("请补充填写培训名称");
  4681. return;
  4682. } else {
  4683. if (this.userid != this.courseUserid && this.role != "1") {
  4684. this.updateWork2();
  4685. } else {
  4686. this.updateWork();
  4687. }
  4688. this.steps = 4
  4689. }
  4690. }
  4691. })
  4692. .catch((v) => {
  4693. console.log(v)
  4694. if(v == "cancel"){
  4695. this.goTo(
  4696. "/trainCourse?userid=" +
  4697. this.userid +
  4698. "&oid=" +
  4699. this.oid +
  4700. "&org=" +
  4701. this.org +
  4702. "&role=" +
  4703. this.role
  4704. );
  4705. }
  4706. });
  4707. },
  4708. lastSteps() {
  4709. if (this.steps == 4) {
  4710. this.goTo(
  4711. "/trainCourse?userid=" +
  4712. this.userid +
  4713. "&oid=" +
  4714. this.oid +
  4715. "&org=" +
  4716. this.org +
  4717. "&role=" +
  4718. this.role
  4719. );
  4720. } else {
  4721. // if (this.cidType == 0) {
  4722. // this.steps--;
  4723. // if (this.steps == 1) {
  4724. // setTimeout(() => {
  4725. // this.checkEva(this.checkId);
  4726. // setTimeout(() => {
  4727. // this.checkEva(this.checkId);
  4728. // }, 100);
  4729. // }, 100);
  4730. // }
  4731. // } else {
  4732. if (this.steps == 3) {
  4733. this.steps = 1;
  4734. setTimeout(() => {
  4735. this.checkEva(this.checkId);
  4736. setTimeout(() => {
  4737. this.checkEva(this.checkId);
  4738. }, 100);
  4739. }, 100);
  4740. }
  4741. // }
  4742. }
  4743. },
  4744. navSteps(s) {
  4745. if (this.courseName == "") {
  4746. this.$message.error("请补充填写培训名称");
  4747. return;
  4748. }
  4749. if (this.cidType == 0) {
  4750. if (this.steps == 1) {
  4751. if (this.cid == "" || this.cid == undefined) {
  4752. this.addWork();
  4753. } else {
  4754. if (this.userid != this.courseUserid && this.role != "1") {
  4755. // this.updateWork2();
  4756. } else {
  4757. this.updateWork();
  4758. }
  4759. }
  4760. }
  4761. if (s == 1) {
  4762. this.steps = 1;
  4763. setTimeout(() => {
  4764. this.checkEva(this.checkId);
  4765. setTimeout(() => {
  4766. this.checkEva(this.checkId);
  4767. }, 100);
  4768. }, 100);
  4769. }
  4770. if (s == 2) {
  4771. this.steps = 2;
  4772. }
  4773. if (s == 3) {
  4774. this.cTemplate = this.templateC.content;
  4775. this.dialogVisible2 = false;
  4776. this.steps = 3;
  4777. this.isClickColor = 1
  4778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4779. this.$forceUpdate();
  4780. setTimeout(() => {
  4781. this.checkEva(this.checkId);
  4782. setTimeout(() => {
  4783. this.checkEva(this.checkId);
  4784. }, 100);
  4785. }, 1000);
  4786. }
  4787. } else {
  4788. if (this.steps == 1) {
  4789. if (this.cid == "" || this.cid == undefined) {
  4790. this.addWork();
  4791. } else {
  4792. if (this.userid != this.courseUserid && this.role != "1") {
  4793. // this.updateWork2();
  4794. } else {
  4795. this.updateWork();
  4796. }
  4797. }
  4798. }
  4799. if (s == 1) {
  4800. this.steps = 1;
  4801. setTimeout(() => {
  4802. this.checkEva(this.checkId);
  4803. setTimeout(() => {
  4804. this.checkEva(this.checkId);
  4805. }, 100);
  4806. }, 100);
  4807. }
  4808. if (s == 3) {
  4809. this.cTemplate = this.templateC.content;
  4810. this.dialogVisible2 = false;
  4811. this.steps = 3;
  4812. this.isClickColor = 1
  4813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4814. this.$forceUpdate();
  4815. setTimeout(() => {
  4816. this.checkEva(this.checkId);
  4817. setTimeout(() => {
  4818. this.checkEva(this.checkId);
  4819. }, 100);
  4820. }, 1000);
  4821. }
  4822. }
  4823. this.$refs.stepBox.scrollTop = 0;
  4824. },
  4825. nextSteps() {
  4826. // if (this.cidType == 1) {
  4827. if (this.steps == 1) {
  4828. if (this.courseName != "") {
  4829. this.steps = 3;
  4830. this.isClickColor = 1
  4831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4832. this.$forceUpdate();
  4833. setTimeout(() => {
  4834. this.checkEva(this.checkId);
  4835. setTimeout(() => {
  4836. this.checkEva(this.checkId);
  4837. }, 100);
  4838. }, 1000);
  4839. if (this.cid == "" || this.cid == undefined) {
  4840. this.addWork();
  4841. } else {
  4842. if (this.userid != this.courseUserid && this.role != "1") {
  4843. // this.updateWork2();
  4844. } else {
  4845. this.updateWork();
  4846. }
  4847. }
  4848. } else {
  4849. this.$message.error("请补充填写培训名称");
  4850. return;
  4851. }
  4852. } else if (this.steps == 3) {
  4853. if (this.cid == "" || this.cid == undefined) {
  4854. if (this.courseName == "") {
  4855. this.$message.error("请补充填写培训名称");
  4856. return;
  4857. } else {
  4858. this.addWork();
  4859. this.steps++;
  4860. }
  4861. } else {
  4862. if (this.courseName == "") {
  4863. this.$message.error("请补充填写培训名称");
  4864. return;
  4865. } else {
  4866. if (this.userid != this.courseUserid && this.role != "1") {
  4867. this.updateWork2();
  4868. } else {
  4869. this.updateWork();
  4870. }
  4871. this.steps++;
  4872. }
  4873. }
  4874. }
  4875. // } else {
  4876. // if (this.steps == 1) {
  4877. // if (this.courseName != "") {
  4878. // if (this.cid == "" || this.cid == undefined) {
  4879. // this.addWork();
  4880. // } else {
  4881. // if (this.userid != this.courseUserid && this.role != "1") {
  4882. // // this.updateWork2();
  4883. // } else {
  4884. // this.updateWork();
  4885. // }
  4886. // }
  4887. // this.steps++;
  4888. // } else {
  4889. // this.$message.error("请补充填写培训名称");
  4890. // return;
  4891. // }
  4892. // } else if (this.steps == 2) {
  4893. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  4894. // this.cTemplate = this.templateC.content;
  4895. // }
  4896. // this.dialogVisible2 = false;
  4897. // this.steps++;
  4898. // setTimeout(() => {
  4899. // this.checkEva(this.checkId);
  4900. // setTimeout(() => {
  4901. // this.checkEva(this.checkId);
  4902. // }, 100);
  4903. // }, 1000);
  4904. // } else if (this.steps == 3) {
  4905. // if (this.cid == "" || this.cid == undefined) {
  4906. // if (this.courseName == "") {
  4907. // this.$message.error("请补充填写培训名称");
  4908. // return;
  4909. // } else {
  4910. // this.addWork();
  4911. // this.steps++;
  4912. // }
  4913. // } else {
  4914. // if (this.courseName == "") {
  4915. // this.$message.error("请补充填写培训名称");
  4916. // return;
  4917. // } else {
  4918. // if (this.userid != this.courseUserid && this.role != "1") {
  4919. // this.updateWork2();
  4920. // } else {
  4921. // this.updateWork();
  4922. // }
  4923. // this.steps++;
  4924. // }
  4925. // }
  4926. // }
  4927. // }
  4928. this.$refs.stepBox.scrollTop = 0;
  4929. },
  4930. unitSet(i) {
  4931. if(this.unitIndex == i){
  4932. return;
  4933. }
  4934. this.unitIndex = i;
  4935. this.isClickColor = 1
  4936. // this.$refs.rightboxR.scrollTop = 0;
  4937. this.$refs.unitBox.scrollTop = 0
  4938. },
  4939. panUnitJson(){
  4940. let _unitIndex = this.unitIndex;
  4941. let cPan = 1;
  4942. for (
  4943. var j = 0;
  4944. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4945. j++
  4946. ) {
  4947. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4948. j
  4949. ].proVisible = false;
  4950. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4951. j
  4952. ].proVisible2 = false;
  4953. if (
  4954. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4955. .length > 1
  4956. ) {
  4957. for (
  4958. var z = 0;
  4959. z <
  4960. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4961. .length;
  4962. z++
  4963. ) {
  4964. if (
  4965. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4966. .toolChoose[z].tool.length
  4967. ) {
  4968. this.$message.error("请把工具添加完整");
  4969. cPan = 2;
  4970. break;
  4971. }
  4972. }
  4973. }
  4974. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4975. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4976. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4977. (ele) => {
  4978. return ele.value != "";
  4979. }
  4980. );
  4981. }
  4982. }
  4983. return cPan;
  4984. },
  4985. unitOpen(i){
  4986. if(this.unitJson[i].toolOpen){
  4987. this.unitJson[i].toolOpen = false
  4988. }else {
  4989. this.unitJson[i].toolOpen = true
  4990. }
  4991. this.updateWork()
  4992. this.$forceUpdate()
  4993. },
  4994. unitSet2(i) {
  4995. if(this.panUnitJson() == 2){
  4996. return;
  4997. }
  4998. // if(this.unitJson[i].toolOpen){
  4999. // this.unitJson[i].toolOpen = false
  5000. // this.updateWork()
  5001. // this.$forceUpdate()
  5002. // return
  5003. // }else {
  5004. this.unitJson[i].toolOpen = true
  5005. // }
  5006. this.$forceUpdate()
  5007. if(this.unitIndex == i){
  5008. return;
  5009. }
  5010. this.unitIndex = i;
  5011. this.isClickColor = 1
  5012. // this.$refs.rightboxR.scrollTop = 0;
  5013. this.$refs.unitBox.scrollTop = 0
  5014. },
  5015. updateCourseState(i){
  5016. let params = [
  5017. {
  5018. cid: this.cid,
  5019. state: i,
  5020. },
  5021. ];
  5022. this.ajax
  5023. .post(this.$store.state.api + "updateTrainCourseMode", params)
  5024. .then((res) => {
  5025. this.courseState = i
  5026. })
  5027. .catch((err) => {
  5028. this.$message.error("网络不佳");
  5029. console.error(err);
  5030. });
  5031. },
  5032. time() {
  5033. if (!this.now) {
  5034. this.now = new Date().getTime();
  5035. return true;
  5036. } else {
  5037. let time = new Date().getTime();
  5038. if (time - this.now > 3000) {
  5039. this.now = time;
  5040. return true;
  5041. } else {
  5042. return false;
  5043. }
  5044. }
  5045. },
  5046. deleteUnit(i) {
  5047. var _this = this;
  5048. if(i == 0 && _this.unitJson.length == 1){
  5049. _this
  5050. .$confirm("确定切换成任务模式吗?", "提示", {
  5051. confirmButtonText: "确定",
  5052. cancelButtonText: "取消",
  5053. type: "warning",
  5054. })
  5055. .then(() => {
  5056. _this.unitJson[i].dyName = ''
  5057. _this.updateCourseState(2)
  5058. })
  5059. .catch(() => {
  5060. return;
  5061. });
  5062. }else {
  5063. _this
  5064. .$confirm("确定删除此阶段吗?", "提示", {
  5065. confirmButtonText: "确定",
  5066. cancelButtonText: "取消",
  5067. type: "warning",
  5068. })
  5069. .then(() => {
  5070. _this.isDelete = 2;
  5071. // _this.unitIndex = _this.unitIndex - 1;
  5072. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5073. // _this.$message.success("删除成功");
  5074. })
  5075. .catch(() => {
  5076. return;
  5077. });
  5078. }
  5079. },
  5080. deleteWork(chapid) {
  5081. let params = [
  5082. {
  5083. cid: this.cid,
  5084. chapters: JSON.stringify(this.unitJson),
  5085. uid: this.userid,
  5086. chapid: chapid,
  5087. },
  5088. ];
  5089. this.ajax
  5090. .post(this.$store.state.api + "deletetrainCourseWork", params)
  5091. .then((res) => {
  5092. this.$message({
  5093. message: "删除成功",
  5094. type: "success",
  5095. });
  5096. let task = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson))
  5097. this.unitJson.splice(this.unitIndex, 1);
  5098. if(this.unitIndex == 0){
  5099. this.unitIndex = 0;
  5100. }else{
  5101. this.unitIndex = this.unitIndex - 1;
  5102. }
  5103. if(JSON.stringify(task) != JSON.stringify(this.taskJSONa)){
  5104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson, ...task]
  5105. }
  5106. })
  5107. .catch((err) => {
  5108. this.$message.error("网络不佳");
  5109. console.error(err);
  5110. });
  5111. },
  5112. deleteTool(itemTaskIndex, i) {
  5113. var _this = this;
  5114. if (_this.time()) {
  5115. _this
  5116. .$confirm("确定删除此工具吗?", "提示", {
  5117. confirmButtonText: "确定",
  5118. cancelButtonText: "取消",
  5119. type: "warning",
  5120. })
  5121. .then(() => {
  5122. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5123. itemTaskIndex
  5124. ].toolChoose.splice(i, 1);
  5125. _this.$message.success("删除成功");
  5126. })
  5127. .catch(() => {
  5128. return;
  5129. });
  5130. }
  5131. },
  5132. deleteSentence(i) {
  5133. var _this = this;
  5134. _this
  5135. .$confirm("确定删除此题目吗?", "提示", {
  5136. confirmButtonText: "确定",
  5137. cancelButtonText: "取消",
  5138. type: "warning",
  5139. })
  5140. .then(() => {
  5141. _this.sentenceList.splice(i, 1);
  5142. _this.$message.success("删除成功");
  5143. })
  5144. .catch(() => {
  5145. return;
  5146. });
  5147. },
  5148. deleteS(s, i, j) {
  5149. this.sentenceList[i].addSentence.splice(j, 1);
  5150. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5151. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5152. this.sentenceList[i].rightAnswer.splice(a, 1);
  5153. }
  5154. },
  5155. openT() {
  5156. window.parent.postMessage({ tools: "25" }, "*");
  5157. },
  5158. deleteTask(i) {
  5159. var _this = this;
  5160. if (_this.time()) {
  5161. _this
  5162. .$confirm(
  5163. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  5164. 1 ==
  5165. i
  5166. ? "确定删除此任务吗?"
  5167. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  5168. "提示",
  5169. {
  5170. confirmButtonText: "确定",
  5171. cancelButtonText: "取消",
  5172. type: "warning",
  5173. }
  5174. )
  5175. .then(() => {
  5176. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5177. i,
  5178. 1
  5179. );
  5180. _this.$message.success("删除成功");
  5181. })
  5182. .catch(() => {
  5183. return;
  5184. });
  5185. }
  5186. },
  5187. handlePictureCardPreview(file) {
  5188. this.dialogImageUrl = file.url;
  5189. },
  5190. clean(i, c) {
  5191. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5192. },
  5193. handle_remove1(file, fileList, type) {
  5194. var _tmp = this.cover;
  5195. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5196. // if (_tmp[i].uid == file.uid) {
  5197. // _tmp.splice(i, 1);
  5198. // break;
  5199. // }
  5200. // this.cover = _tmp;
  5201. // }
  5202. this.cover = [];
  5203. this.noneBtnImg = this.cover.length >= 1;
  5204. this.isSysPic = false;
  5205. this.isSysPic2 = false;
  5206. this.$forceUpdate();
  5207. },
  5208. addImg(e) {
  5209. var el = e.currentTarget;
  5210. el.getElementsByTagName("input")[0].click();
  5211. e.target.value = "";
  5212. },
  5213. addChaptersTools(i) {
  5214. this.chapTools = [
  5215. {
  5216. tools: [],
  5217. toolDetail: "",
  5218. },
  5219. ];
  5220. this.chapCount = i;
  5221. this.dialogVisible4 = true;
  5222. },
  5223. isNoFinsh() {
  5224. this.$message.warning("功能正在开发中");
  5225. },
  5226. addAttText(i) {
  5227. this.AttText = {
  5228. title: "",
  5229. text: "",
  5230. };
  5231. this.taskCount = i;
  5232. this.AttTextType = 0;
  5233. this.$forceUpdate();
  5234. this.dialogVisible6 = true;
  5235. setTimeout(() => {
  5236. this.$refs['fuInput'].focus();
  5237. }, 100);
  5238. },
  5239. openLine(i) {
  5240. this.line = "";
  5241. this.lineCount = i;
  5242. this.lineType = 0;
  5243. this.$forceUpdate();
  5244. this.dialogVisible7 = true;
  5245. },
  5246. pasteLine(i) {
  5247. navigator.clipboard
  5248. .readText()
  5249. .then((v) => {
  5250. console.log("获取剪贴板成功:", v);
  5251. const html = v;
  5252. const regex = /src="(.*?)"/g;
  5253. const match = regex.exec(html);
  5254. if (match && match[1]) {
  5255. console.log(match[1]);
  5256. this.$message.success("粘贴成功");
  5257. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5258. i
  5259. ].chapterData.push({
  5260. name: "链接",
  5261. title: "嵌入代码",
  5262. url: match[1],
  5263. type: 8,
  5264. });
  5265. } else {
  5266. // console.log("未找到包含 src 属性的 iframe");
  5267. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5268. }
  5269. })
  5270. .catch((v) => {
  5271. console.log("获取剪贴板失败: ", v);
  5272. });
  5273. },
  5274. openSource(i) {
  5275. this.lineCount = i;
  5276. this.sourceData = {};
  5277. this.dialogVisibleSource = true;
  5278. this.updateSourcePan = false;
  5279. },
  5280. addSource() {
  5281. if (!Object.keys(this.sourceData).length) {
  5282. this.$message.error("请选择要上传的资源");
  5283. return;
  5284. }
  5285. let keys = Object.keys(this.sourceData);
  5286. for (var i = 0; i < keys.length; i++) {
  5287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5288. this.lineCount
  5289. ].chapterData.push({
  5290. name: "链接",
  5291. title: this.sourceData[keys[i]].name,
  5292. url: this.sourceData[keys[i]].url,
  5293. type: 14,
  5294. id: keys[i]
  5295. });
  5296. }
  5297. this.$forceUpdate();
  5298. this.dialogVisibleSource = false;
  5299. },
  5300. updateSource() {
  5301. if (!Object.keys(this.sourceData).length) {
  5302. this.$message.error("请选择要上传的资源");
  5303. return;
  5304. }
  5305. let keys = Object.keys(this.sourceData);
  5306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5307. this.taskCount
  5308. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5309. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5310. this.taskCount
  5311. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5313. this.taskCount
  5314. ].chapterData[this.lineCount].id = keys[0];
  5315. this.updateSourcePan = false;
  5316. this.$forceUpdate();
  5317. this.dialogVisibleSource = false;
  5318. },
  5319. deleteM(i, j) {
  5320. this.testJson.testJson[i].timuList.splice(j, 1);
  5321. },
  5322. beforeUploadTiMu(event, i) {
  5323. const loading = this.openLoading();
  5324. var file = event.target.files[0];
  5325. var credentials = {
  5326. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5327. secretAccessKey: "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",
  5328. }; //秘钥形式的登录上传
  5329. window.AWS.config.update(credentials);
  5330. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5331. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5332. var _this = this;
  5333. if (file) {
  5334. var params = {
  5335. Key:
  5336. file.name.split(".")[0] +
  5337. new Date().getTime() +
  5338. "." +
  5339. file.name.split(".")[file.name.split(".").length - 1],
  5340. ContentType: file.type,
  5341. Body: file,
  5342. "Access-Control-Allow-Credentials": "*",
  5343. ACL: "public-read",
  5344. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5345. var options = {
  5346. partSize: 2048 * 1024 * 1024,
  5347. queueSize: 2,
  5348. leavePartsOnError: true,
  5349. };
  5350. bucket
  5351. .upload(params, options)
  5352. .on("httpUploadProgress", function (evt) {
  5353. //这里可以写进度条
  5354. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5355. })
  5356. .send(function (err, data) {
  5357. loading.close();
  5358. if (err) {
  5359. _this.$message.error("上传失败");
  5360. } else {
  5361. if (_this.testJson.testJson[i].timuList) {
  5362. _this.testJson.testJson[i].timuList.push({
  5363. src: data.Location,
  5364. });
  5365. } else {
  5366. _this.testJson.testJson[i].timuList = [];
  5367. _this.testJson.testJson[i].timuList.push({
  5368. src: data.Location,
  5369. });
  5370. }
  5371. _this.imgChange3(i);
  5372. _this.$forceUpdate();
  5373. }
  5374. });
  5375. }
  5376. },
  5377. beforeUploadTi(event, i, j) {
  5378. const loading = this.openLoading();
  5379. var file = event.target.files[0];
  5380. var credentials = {
  5381. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5382. secretAccessKey: "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",
  5383. }; //秘钥形式的登录上传
  5384. window.AWS.config.update(credentials);
  5385. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5386. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5387. var _this = this;
  5388. if (file) {
  5389. var params = {
  5390. Key:
  5391. file.name.split(".")[0] +
  5392. new Date().getTime() +
  5393. "." +
  5394. file.name.split(".")[file.name.split(".").length - 1],
  5395. ContentType: file.type,
  5396. Body: file,
  5397. "Access-Control-Allow-Credentials": "*",
  5398. ACL: "public-read",
  5399. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5400. var options = {
  5401. partSize: 2048 * 1024 * 1024,
  5402. queueSize: 2,
  5403. leavePartsOnError: true,
  5404. };
  5405. bucket
  5406. .upload(params, options)
  5407. .on("httpUploadProgress", function (evt) {
  5408. //这里可以写进度条
  5409. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5410. })
  5411. .send(function (err, data) {
  5412. loading.close();
  5413. if (err) {
  5414. _this.$message.error("上传失败");
  5415. } else {
  5416. _this.testJson.testJson[i].checkList[j] = {};
  5417. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5418. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5419. _this.imgChange2(i, j);
  5420. _this.$forceUpdate();
  5421. }
  5422. });
  5423. }
  5424. },
  5425. beforeUpload1(event, type) {
  5426. // const loading = this.openLoading();
  5427. var file = event.target.files[0];
  5428. var credentials = {
  5429. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5430. secretAccessKey: "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",
  5431. }; //秘钥形式的登录上传
  5432. window.AWS.config.update(credentials);
  5433. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5434. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5435. var _this = this;
  5436. if (file) {
  5437. var params = {
  5438. Key:
  5439. file.name.split(".")[0] +
  5440. new Date().getTime() +
  5441. "." +
  5442. file.name.split(".")[file.name.split(".").length - 1],
  5443. ContentType: file.type,
  5444. Body: file,
  5445. "Access-Control-Allow-Credentials": "*",
  5446. ACL: "public-read",
  5447. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5448. var options = {
  5449. partSize: 2048 * 1024 * 1024,
  5450. queueSize: 2,
  5451. leavePartsOnError: true,
  5452. };
  5453. bucket
  5454. .upload(params, options)
  5455. .on("httpUploadProgress", function (evt) {
  5456. //这里可以写进度条
  5457. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5458. })
  5459. .send(function (err, data) {
  5460. // loading.close();
  5461. if (err) {
  5462. // var a = _this.$refs.upload1.uploadFiles;
  5463. // a.splice(a.length - 1, a.length);
  5464. _this.$message.error("上传失败");
  5465. } else {
  5466. // _this.cover.push({
  5467. // name: file.name,
  5468. // url: data.Location,
  5469. // uid: file.uid,
  5470. // });
  5471. _this.cover = [{
  5472. name: file.name,
  5473. url: data.Location,
  5474. uid: file.uid,
  5475. }];
  5476. _this.imgChange1(null, null, 1, null);
  5477. _this.choosePicVisible = false;
  5478. console.log(data.Location);
  5479. }
  5480. });
  5481. }
  5482. },
  5483. beforeUploadSelect(event, type) {
  5484. // const loading = this.openLoading();
  5485. var file = event.target.files[0];
  5486. var credentials = {
  5487. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5488. secretAccessKey: "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",
  5489. }; //秘钥形式的登录上传
  5490. window.AWS.config.update(credentials);
  5491. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5492. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5493. var _this = this;
  5494. if (file) {
  5495. var params = {
  5496. Key:
  5497. file.name.split(".")[0] +
  5498. new Date().getTime() +
  5499. "." +
  5500. file.name.split(".")[file.name.split(".").length - 1],
  5501. ContentType: file.type,
  5502. Body: file,
  5503. "Access-Control-Allow-Credentials": "*",
  5504. ACL: "public-read",
  5505. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5506. var options = {
  5507. partSize: 2048 * 1024 * 1024,
  5508. queueSize: 2,
  5509. leavePartsOnError: true,
  5510. };
  5511. bucket
  5512. .upload(params, options)
  5513. .on("httpUploadProgress", function (evt) {
  5514. //这里可以写进度条
  5515. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5516. })
  5517. .send(function (err, data) {
  5518. // loading.close();
  5519. if (err) {
  5520. _this.$message.error("上传失败");
  5521. } else {
  5522. _this.selectJson.url = data.Location;
  5523. console.log(data.Location);
  5524. }
  5525. });
  5526. }
  5527. },
  5528. chooseSysPic(p) {
  5529. this.cover = []
  5530. setTimeout(() => {
  5531. this.cover[0] = {
  5532. name: "系统图片.png",
  5533. url: p,
  5534. };
  5535. this.imgChange1(null, null, 1, null);
  5536. this.$forceUpdate();
  5537. }, 0);
  5538. this.isSysPic = true;
  5539. this.isSysPic2 = false;
  5540. this.sysPicVisible = false;
  5541. this.$forceUpdate();
  5542. },
  5543. chooseSysPic2(p) {
  5544. this.cover = []
  5545. setTimeout(() => {
  5546. this.cover[0] = {
  5547. name: "网络图片.png",
  5548. url: p,
  5549. };
  5550. this.imgChange1(null, null, 1, null);
  5551. this.$forceUpdate();
  5552. }, 0);
  5553. this.isSysPic2 = true;
  5554. this.isSysPic = false;
  5555. this.sysPicVisible2 = false;
  5556. this.$forceUpdate();
  5557. },
  5558. beforeUpload(data) {
  5559. this.$refs.upload1.uploadFiles;
  5560. this.uploadLoading1 = true;
  5561. var file = data.file;
  5562. var credentials = {
  5563. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5564. secretAccessKey: "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",
  5565. }; //秘钥形式的登录上传
  5566. window.AWS.config.update(credentials);
  5567. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5568. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5569. var _this = this;
  5570. if (file) {
  5571. var params = {
  5572. Key:
  5573. file.name.split(".")[0] +
  5574. new Date().getTime() +
  5575. "." +
  5576. file.name.split(".")[file.name.split(".").length - 1],
  5577. ContentType: file.type,
  5578. Body: file,
  5579. "Access-Control-Allow-Credentials": "*",
  5580. ACL: "public-read",
  5581. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5582. var options = {
  5583. partSize: 2048 * 1024 * 1024,
  5584. queueSize: 2,
  5585. leavePartsOnError: true,
  5586. };
  5587. bucket
  5588. .upload(params, options)
  5589. .on("httpUploadProgress", function (evt) {
  5590. //这里可以写进度条
  5591. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5592. })
  5593. .send(function (err, data) {
  5594. _this.uploadLoading1 = false;
  5595. if (err) {
  5596. // var a = _this.$refs.upload1.uploadFiles;
  5597. // a.splice(a.length - 1, a.length);
  5598. _this.$message.error("上传失败");
  5599. } else {
  5600. //上传成功处理
  5601. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5602. name: file.name,
  5603. url: data.Location,
  5604. uid: file.uid,
  5605. });
  5606. _this.imgChange();
  5607. console.log(data.Location);
  5608. }
  5609. });
  5610. }
  5611. },
  5612. onExceed() {
  5613. this.$message.error("培训封面仅支持上传一张,请删除后再进行上传");
  5614. },
  5615. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5616. // const loading = this.openLoading();
  5617. var file = event.target.files[0];
  5618. var credentials = {
  5619. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5620. secretAccessKey: "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",
  5621. }; //秘钥形式的登录上传
  5622. window.AWS.config.update(credentials);
  5623. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5624. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5625. var _this = this;
  5626. if (type == 3) {
  5627. var b = [
  5628. "DOC",
  5629. "DOCX",
  5630. "DOCM",
  5631. "DOTM",
  5632. "DOTX",
  5633. "PPTX",
  5634. "PPSX",
  5635. "PPT",
  5636. "PPS",
  5637. "PPTM",
  5638. "POTM",
  5639. "PPAM",
  5640. "POTX",
  5641. "PPSM",
  5642. ];
  5643. if (
  5644. b.indexOf(
  5645. file.name
  5646. .split(".")
  5647. [file.name.split(".").length - 1].toLocaleUpperCase()
  5648. ) != -1
  5649. ) {
  5650. if (file.size / 1024 / 1024 > 80) {
  5651. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5652. this.inputShow = true;
  5653. // var a = _this.$refs.upload1.uploadFiles;
  5654. // a.splice(a.length - 1, a.length);
  5655. // loading.close();
  5656. return;
  5657. }
  5658. } else if (
  5659. file.name
  5660. .split(".")
  5661. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5662. ) {
  5663. if (file.size / 1024 / 1024 > 80) {
  5664. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5665. this.inputShow = true;
  5666. // var a = _this.$refs.upload1.uploadFiles;
  5667. // a.splice(a.length - 1, a.length);
  5668. // loading.close();
  5669. return;
  5670. }
  5671. }
  5672. }
  5673. this.inputShow = false;
  5674. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5675. itemTaskIndex
  5676. ].progress = 0;
  5677. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5678. itemTaskIndex
  5679. ].proVisible = true;
  5680. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5681. itemTaskIndex
  5682. ].isFinishSize = 0;
  5683. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5684. itemTaskIndex
  5685. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5686. _this.$forceUpdate();
  5687. if (file) {
  5688. var params = {
  5689. Key:
  5690. file.name.split(".")[0] +
  5691. new Date().getTime() +
  5692. "." +
  5693. file.name.split(".")[file.name.split(".").length - 1],
  5694. ContentType: file.type,
  5695. Body: file,
  5696. "Access-Control-Allow-Credentials": "*",
  5697. ACL: "public-read",
  5698. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5699. var options = {
  5700. partSize: 2048 * 1024 * 1024,
  5701. queueSize: 2,
  5702. leavePartsOnError: true,
  5703. };
  5704. bucket
  5705. .upload(params, options)
  5706. .on("httpUploadProgress", function (evt) {
  5707. //这里可以写进度条
  5708. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5709. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5710. itemTaskIndex
  5711. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5712. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5713. itemTaskIndex
  5714. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5715. _this.$forceUpdate();
  5716. })
  5717. .send(function (err, data) {
  5718. // loading.close();
  5719. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5720. itemTaskIndex
  5721. ].progress = 100;
  5722. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5723. itemTaskIndex
  5724. ].isFinishSize =
  5725. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5726. itemTaskIndex
  5727. ].isAllSize;
  5728. _this.$forceUpdate();
  5729. setTimeout(() => {
  5730. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5731. itemTaskIndex
  5732. ].proVisible = false;
  5733. _this.$forceUpdate();
  5734. }, 1000);
  5735. _this.inputShow = true;
  5736. if (err) {
  5737. // var a = _this.$refs.upload1.uploadFiles;
  5738. // a.splice(a.length - 1, a.length);
  5739. _this.$message.error("上传失败");
  5740. } else {
  5741. if (type == 13) {
  5742. let _type = 2;
  5743. var imgA = [
  5744. "png",
  5745. "jpg",
  5746. "jpeg",
  5747. "bmp",
  5748. "gif",
  5749. "webp",
  5750. "psd",
  5751. "svg",
  5752. "tiff",
  5753. ];
  5754. var fileA = [
  5755. "PDF",
  5756. "DOC",
  5757. "DOCX",
  5758. "DOCM",
  5759. "DOTM",
  5760. "DOTX",
  5761. "PPTX",
  5762. "PPSX",
  5763. "PPT",
  5764. "PPS",
  5765. "PPTM",
  5766. "POTM",
  5767. "PPAM",
  5768. "POTX",
  5769. "PPSM",
  5770. "XLSX",
  5771. "XLS",
  5772. ];
  5773. var videoA = [
  5774. "AVI",
  5775. "NAVI",
  5776. "MPEG",
  5777. "ASF",
  5778. "MOV",
  5779. "WMV",
  5780. "3GP",
  5781. "RM",
  5782. "RMVB",
  5783. "FLV",
  5784. "F4V",
  5785. "H.264",
  5786. "H.265",
  5787. "REAL VIDEO",
  5788. "MKV",
  5789. "WebM",
  5790. "HDDVD",
  5791. "MP4",
  5792. "MPG",
  5793. "M4V",
  5794. "MGV",
  5795. "OGV",
  5796. "QTM",
  5797. "STR",
  5798. "AMC",
  5799. "DVX",
  5800. "EVO",
  5801. "DAT",
  5802. "OGG",
  5803. "OGM",
  5804. ];
  5805. if (
  5806. fileA.indexOf(
  5807. data.Location.split(".")[
  5808. data.Location.split(".").length - 1
  5809. ].toLocaleUpperCase()
  5810. ) != -1
  5811. ) {
  5812. _type = 3;
  5813. } else if (
  5814. videoA.indexOf(
  5815. data.Location.split(".")[
  5816. data.Location.split(".").length - 1
  5817. ].toLocaleUpperCase()
  5818. ) != -1
  5819. ) {
  5820. _type = 2;
  5821. } else if (
  5822. imgA.indexOf(
  5823. data.Location.split(".")[
  5824. data.Location.split(".").length - 1
  5825. ].toLocaleLowerCase()
  5826. ) != -1
  5827. ) {
  5828. _type = 13;
  5829. } else {
  5830. _type = 12;
  5831. }
  5832. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5833. itemTaskIndex
  5834. ].chapterData.push({
  5835. name: file.name,
  5836. url: data.Location,
  5837. uid: file.uid,
  5838. type: _type,
  5839. });
  5840. _this.imgChange1(null, null, _type, itemTaskIndex);
  5841. } else if (type == 2 || type == 3 || type == 12) {
  5842. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5843. itemTaskIndex
  5844. ].chapterData.push({
  5845. name: file.name,
  5846. url: data.Location,
  5847. uid: file.uid,
  5848. type: type,
  5849. });
  5850. _this.imgChange1(null, null, type, itemTaskIndex);
  5851. } else if (type == 4) {
  5852. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5853. itemTaskIndex
  5854. ].fileList1.push({
  5855. name: file.name,
  5856. url: data.Location,
  5857. uid: file.uid,
  5858. });
  5859. _this.imgChange1(null, null, type, itemTaskIndex);
  5860. } else if (type == 5) {
  5861. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5862. itemTaskIndex
  5863. ].homeworkList.push({
  5864. name: file.name,
  5865. url: data.Location,
  5866. uid: file.uid,
  5867. });
  5868. _this.imgChange1(null, null, type, itemTaskIndex);
  5869. }
  5870. console.log(data.Location);
  5871. }
  5872. });
  5873. }
  5874. },
  5875. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5876. // const loading = this.openLoading();
  5877. var file = event.target.files[0];
  5878. var credentials = {
  5879. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5880. secretAccessKey: "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",
  5881. }; //秘钥形式的登录上传
  5882. window.AWS.config.update(credentials);
  5883. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5884. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5885. var _this = this;
  5886. if (type == 3) {
  5887. var b = [
  5888. "DOC",
  5889. "DOCX",
  5890. "DOCM",
  5891. "DOTM",
  5892. "DOTX",
  5893. "PPTX",
  5894. "PPSX",
  5895. "PPT",
  5896. "PPS",
  5897. "PPTM",
  5898. "POTM",
  5899. "PPAM",
  5900. "POTX",
  5901. "PPSM",
  5902. ];
  5903. if (
  5904. b.indexOf(
  5905. file.name
  5906. .split(".")
  5907. [file.name.split(".").length - 1].toLocaleUpperCase()
  5908. ) != -1
  5909. ) {
  5910. if (file.size / 1024 / 1024 > 80) {
  5911. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5912. this.inputShow = true;
  5913. // var a = _this.$refs.upload1.uploadFiles;
  5914. // a.splice(a.length - 1, a.length);
  5915. // loading.close();
  5916. return;
  5917. }
  5918. } else if (
  5919. file.name
  5920. .split(".")
  5921. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5922. ) {
  5923. if (file.size / 1024 / 1024 > 80) {
  5924. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5925. this.inputShow = true;
  5926. // var a = _this.$refs.upload1.uploadFiles;
  5927. // a.splice(a.length - 1, a.length);
  5928. // loading.close();
  5929. return;
  5930. }
  5931. }
  5932. }
  5933. this.inputShow = false;
  5934. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5935. itemTaskIndex
  5936. ].progress = 0;
  5937. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5938. itemTaskIndex
  5939. ].proVisible = true;
  5940. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5941. itemTaskIndex
  5942. ].isFinishSize = 0;
  5943. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5944. itemTaskIndex
  5945. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5946. _this.$forceUpdate();
  5947. if (file) {
  5948. var params = {
  5949. Key:
  5950. file.name.split(".")[0] +
  5951. new Date().getTime() +
  5952. "." +
  5953. file.name.split(".")[file.name.split(".").length - 1],
  5954. ContentType: file.type,
  5955. Body: file,
  5956. "Access-Control-Allow-Credentials": "*",
  5957. ACL: "public-read",
  5958. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5959. var options = {
  5960. partSize: 2048 * 1024 * 1024,
  5961. queueSize: 2,
  5962. leavePartsOnError: true,
  5963. };
  5964. bucket
  5965. .upload(params, options)
  5966. .on("httpUploadProgress", function (evt) {
  5967. //这里可以写进度条
  5968. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5969. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5970. itemTaskIndex
  5971. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5972. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5973. itemTaskIndex
  5974. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5975. _this.$forceUpdate();
  5976. })
  5977. .send(function (err, data) {
  5978. // loading.close();
  5979. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5980. itemTaskIndex
  5981. ].progress = 100;
  5982. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5983. itemTaskIndex
  5984. ].isFinishSize =
  5985. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5986. itemTaskIndex
  5987. ].isAllSize;
  5988. _this.$forceUpdate();
  5989. setTimeout(() => {
  5990. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5991. itemTaskIndex
  5992. ].proVisible = false;
  5993. _this.$forceUpdate();
  5994. }, 1000);
  5995. _this.inputShow = true;
  5996. if (err) {
  5997. // var a = _this.$refs.upload1.uploadFiles;
  5998. // a.splice(a.length - 1, a.length);
  5999. _this.$message.error("上传失败");
  6000. } else {
  6001. if (type == 2 || type == 3) {
  6002. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6003. itemTaskIndex
  6004. ].chapterData.push({
  6005. name: file.name,
  6006. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6007. // itemTaskIndex
  6008. // ].chapterData.length+1),
  6009. url: data.Location,
  6010. uid: file.uid,
  6011. type: type,
  6012. text: string,
  6013. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6014. // itemTaskIndex
  6015. // ].chapterData.length + 1),
  6016. });
  6017. _this.imgChange1(null, null, type, itemTaskIndex);
  6018. } else if (type == 4) {
  6019. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6020. itemTaskIndex
  6021. ].fileList1.push({
  6022. name: file.name,
  6023. url: data.Location,
  6024. uid: file.uid,
  6025. });
  6026. _this.imgChange1(null, null, type, itemTaskIndex);
  6027. } else if (type == 5) {
  6028. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6029. itemTaskIndex
  6030. ].homeworkList.push({
  6031. name: file.name,
  6032. url: data.Location,
  6033. uid: file.uid,
  6034. });
  6035. _this.imgChange1(null, null, type, itemTaskIndex);
  6036. }
  6037. console.log(data.Location);
  6038. }
  6039. });
  6040. }
  6041. },
  6042. addunit() {
  6043. this.unitJson.push({
  6044. dyName: "", //单元标题
  6045. isUpdate: 1,
  6046. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6047. chapterInfo: [
  6048. {
  6049. isread: false,
  6050. chapterid: this.guid(),
  6051. title: "",
  6052. courseName: "",
  6053. taskJson: [
  6054. {
  6055. task: "",
  6056. taskDetail: "",
  6057. chapterData: [],
  6058. toolText: "",
  6059. toolChoose: [
  6060. {
  6061. tool: [],
  6062. toolDetail: "",
  6063. toolType: 0,
  6064. askCount: 1,
  6065. askTitle: "",
  6066. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6067. },
  6068. ],
  6069. isShowTools: false,
  6070. askCount: 1,
  6071. isFold: 1,
  6072. askTitle: "",
  6073. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6074. checkJson: [{ checkCount: [], checkPerent: [] }],
  6075. homeworkList: [],
  6076. },
  6077. ],
  6078. itemCount: 1,
  6079. fileList1: [],
  6080. video: [],
  6081. testData: [],
  6082. pData: [],
  6083. templateArray: [],
  6084. },
  6085. ],
  6086. });
  6087. this.addindex = this.unitJson.length - 1;
  6088. setTimeout(() => {
  6089. this.unitIndex = this.unitJson.length - 1;
  6090. setTimeout(() => {
  6091. console.log(this.$refs.dyInput)
  6092. this.$refs.dyInput[0].focus()
  6093. }, 100);
  6094. this.unitSet(this.unitIndex);
  6095. }, 0);
  6096. },
  6097. addToolFun(itemTaskIndex) {
  6098. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6099. itemTaskIndex
  6100. ].toolChoose.push({
  6101. tool: [],
  6102. toolDetail: "",
  6103. toolType: 0,
  6104. askCount: 1,
  6105. askTitle: "",
  6106. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6107. });
  6108. },
  6109. addTaskBorder() {
  6110. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6111. task: "",
  6112. taskDetail: "",
  6113. chapterData: [],
  6114. toolText: "",
  6115. toolChoose: [
  6116. {
  6117. tool: [],
  6118. toolDetail: "",
  6119. toolType: 0,
  6120. askCount: 1,
  6121. askTitle: "",
  6122. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6123. },
  6124. ],
  6125. isShowTools: false,
  6126. askCount: 1,
  6127. isFold: 1,//任务收起状态
  6128. askTitle: "",
  6129. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6130. checkJson: [{ checkCount: [], checkPerent: [] }],
  6131. homeworkList: [],
  6132. });
  6133. setTimeout(() => {
  6134. this.checkEva(this.checkId);
  6135. setTimeout(() => {
  6136. this.checkEva(this.checkId);
  6137. }, 100);
  6138. }, 100);
  6139. },
  6140. add(e, i) {
  6141. var el = e.currentTarget;
  6142. el.getElementsByTagName("input")[0].click();
  6143. },
  6144. fold(i, e) {
  6145. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6147. } else {
  6148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6149. }
  6150. },
  6151. fold2(i) {
  6152. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6153. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6154. } else {
  6155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6156. }
  6157. this.$forceUpdate();
  6158. },
  6159. foldEva(i) {
  6160. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  6161. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  6162. } else {
  6163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  6164. setTimeout(() => {
  6165. this.checkEva(this.checkId);
  6166. setTimeout(() => {
  6167. this.checkEva(this.checkId);
  6168. }, 500);
  6169. }, 0);
  6170. }
  6171. this.$forceUpdate();
  6172. },
  6173. foldC(i) {
  6174. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6175. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6176. } else {
  6177. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6178. }
  6179. this.$forceUpdate();
  6180. },
  6181. fold3(i, ti) {
  6182. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6183. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6184. } else {
  6185. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6186. }
  6187. this.$forceUpdate();
  6188. },
  6189. deleteHomeworkBox(unitIndex, index, i) {
  6190. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6191. this.taskCount
  6192. ].homeworkList.splice(i, 1);
  6193. },
  6194. getStudent() {
  6195. let params = {
  6196. oid: this.oid,
  6197. cu: "",
  6198. cn: this.searchPeople,
  6199. };
  6200. this.ajax
  6201. .get(this.$store.state.api + "selectStudentAdd", params)
  6202. .then((res) => {
  6203. this.studentJuri = res.data[0];
  6204. })
  6205. .catch((err) => {
  6206. this.isLoading = false;
  6207. console.error(err);
  6208. });
  6209. },
  6210. getTeacher() {
  6211. let params = {
  6212. oid:
  6213. this.org && this.org != "undefined" && this.org != "null"
  6214. ? this.org
  6215. : this.oid,
  6216. cu: "",
  6217. cn: this.searchTN,
  6218. };
  6219. this.ajax
  6220. .get(
  6221. this.$store.state.api +
  6222. (this.org && this.org != "undefined" && this.org != "null"
  6223. ? "selectTeacherAddOrg"
  6224. : "selectTeacherAdd"),
  6225. params
  6226. )
  6227. .then((res) => {
  6228. let teacherJuri = res.data[0];
  6229. for (var i = 0; i < teacherJuri.length; i++) {
  6230. if (teacherJuri[i].userid == this.userid) {
  6231. teacherJuri.splice(i, 1);
  6232. break;
  6233. }
  6234. }
  6235. this.teacherJuri = teacherJuri;
  6236. let _check = []
  6237. let _check2 = []
  6238. for (var i = 0; i < this.teacherJuri.length; i++) {
  6239. var gid = this.teacherJuri[i].userid
  6240. _check.push(gid)
  6241. }
  6242. for (var i = 0; i < this.checkboxList3.length; i++) {
  6243. var _id = this.checkboxList3[i]
  6244. if (_check.indexOf(_id) !== -1) {
  6245. _check2.push(_id)
  6246. }
  6247. }
  6248. this.checkAll2 = _check2.length === _check.length;
  6249. })
  6250. .catch((err) => {
  6251. console.error(err);
  6252. });
  6253. },
  6254. searchStudent() {
  6255. this.getStudent();
  6256. },
  6257. selectGrage() {
  6258. let params = {
  6259. oid: this.oid,
  6260. };
  6261. this.ajax
  6262. .get(this.$store.state.api + "selectGrageBySchool", params)
  6263. .then((res) => {
  6264. this.gradeList = res.data[0];
  6265. })
  6266. .catch((err) => {
  6267. this.isLoading = false;
  6268. console.error(err);
  6269. });
  6270. },
  6271. //获取班级列表
  6272. getClass() {
  6273. let params = {
  6274. oid: this.oid,
  6275. gid: this.gradeId,
  6276. cn: this.classSearch,
  6277. };
  6278. this.ajax
  6279. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6280. .then((res) => {
  6281. if (!this.grade.length) {
  6282. this.grade = res.data[0];
  6283. }
  6284. this.grade2 = res.data[0];
  6285. this.classJuri = res.data[0];
  6286. let _check = []
  6287. let _check2 = []
  6288. for (var i = 0; i < this.grade2.length; i++) {
  6289. var gid = this.grade2[i].id
  6290. _check.push(gid)
  6291. }
  6292. for (var i = 0; i < this.checkboxList2.length; i++) {
  6293. var _id = this.checkboxList2[i]
  6294. if (_check.indexOf(_id) !== -1) {
  6295. _check2.push(_id)
  6296. }
  6297. }
  6298. this.checkAll = _check2.length === _check.length;
  6299. })
  6300. .catch((err) => {
  6301. this.isLoading = false;
  6302. console.error(err);
  6303. });
  6304. },
  6305. CourseType2Change(val) {
  6306. this.pTypeCheck = [];
  6307. for (var i = 0; i < this.CourseType2.length; i++) {
  6308. let typeA = this.CourseType2[i];
  6309. if (val.indexOf(typeA.name) != -1) {
  6310. this.pTypeCheck.push(...typeA.id);
  6311. }
  6312. }
  6313. },
  6314. getChapterData(e, i, j, ic, type) {
  6315. e.stopPropagation();
  6316. this.updataC = true;
  6317. this.icc = ic;
  6318. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6319. console.log("还不能下载图片喔");
  6320. }
  6321. },
  6322. deleteChapterData(e, i, j, ic, taskI) {
  6323. e.stopPropagation();
  6324. let _this = this;
  6325. _this
  6326. .$confirm("确定删除此项?", "提示", {
  6327. confirmButtonText: "确定",
  6328. cancelButtonText: "取消",
  6329. type: "warning",
  6330. })
  6331. .then(() => {
  6332. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6333. })
  6334. .catch(() => {
  6335. return;
  6336. });
  6337. },
  6338. updataVideoT(e, i, j, ic) {
  6339. // e.stopPropagation();
  6340. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6341. // ic
  6342. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6343. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6344. ic
  6345. ].name;
  6346. this.taskCount = j;
  6347. this.lineCount = ic;
  6348. this.dialogVisibleupdataVideoT = true;
  6349. this.$forceUpdate();
  6350. },
  6351. updataVideoC() {
  6352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6353. this.dialogVisibleupdataVideoT = false;
  6354. this.$forceUpdate();
  6355. },
  6356. upCd(e, i, j, taskCount, ic) {
  6357. e.stopPropagation();
  6358. if (ic == 0) {
  6359. return;
  6360. }
  6361. var a =
  6362. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6363. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6364. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6365. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6366. this.$forceUpdate();
  6367. },
  6368. downCd(e, i, j, taskCount, ic) {
  6369. e.stopPropagation();
  6370. if (
  6371. ic ==
  6372. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6373. 1
  6374. ) {
  6375. return;
  6376. }
  6377. var a =
  6378. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6379. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6380. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6381. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6382. this.$forceUpdate();
  6383. },
  6384. async upTool(e, i, j, tooli){
  6385. e.stopPropagation();
  6386. if (tooli == 0) {
  6387. return;
  6388. }
  6389. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6390. let count2 = await this.getWorksCount(3, i, j, tooli)
  6391. if(count1 > 0 || count2 > 0){
  6392. this.$confirm(
  6393. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6394. "提示",
  6395. {
  6396. confirmButtonText: "确定",
  6397. cancelButtonText: "取消",
  6398. type: "warning",
  6399. }
  6400. )
  6401. .then(() => {
  6402. var a =
  6403. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6404. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6405. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6406. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6407. this.$forceUpdate()
  6408. })
  6409. .catch(() => {
  6410. return;
  6411. });
  6412. }else{
  6413. var a =
  6414. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6415. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6416. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6417. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6418. this.$forceUpdate()
  6419. }
  6420. },
  6421. async downTool(e, i, j, tooli){
  6422. e.stopPropagation();
  6423. if ( tooli ==
  6424. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6425. 1) {
  6426. return;
  6427. }
  6428. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6429. let count2 = await this.getWorksCount(3, i, j, tooli)
  6430. if(count1 > 0 || count2 > 0){
  6431. this.$confirm(
  6432. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6433. "提示",
  6434. {
  6435. confirmButtonText: "确定",
  6436. cancelButtonText: "取消",
  6437. type: "warning",
  6438. }
  6439. )
  6440. .then(() => {
  6441. var a =
  6442. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6443. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6444. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6445. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6446. this.$forceUpdate()
  6447. })
  6448. .catch(() => {
  6449. return;
  6450. });
  6451. }else{
  6452. var a =
  6453. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6454. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6455. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6456. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6457. this.$forceUpdate()
  6458. }
  6459. },
  6460. addWork() {
  6461. let cPan = 1;
  6462. for (var i = 0; i < this.unitJson.length; i++) {
  6463. for (
  6464. var j = 0;
  6465. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6466. j++
  6467. ) {
  6468. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6469. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6470. if (
  6471. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6472. ) {
  6473. for (
  6474. var z = 0;
  6475. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6476. z++
  6477. ) {
  6478. if (
  6479. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6480. .length
  6481. ) {
  6482. this.$message.error("请把工具添加完整");
  6483. cPan = 2;
  6484. break;
  6485. }
  6486. }
  6487. }
  6488. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6489. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6490. i
  6491. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6492. return ele.value != "";
  6493. });
  6494. }
  6495. }
  6496. }
  6497. this.inputShow = true;
  6498. if (cPan == 2) {
  6499. this.steps--;
  6500. return;
  6501. }
  6502. for (var i = 0; i < this.unitJson.length; i++) {
  6503. delete this.unitJson[i].isUpdate;
  6504. }
  6505. let params = [
  6506. {
  6507. uid: this.userid,
  6508. title: this.courseName,
  6509. brief: this.courseText,
  6510. cover:
  6511. this.cover.length > 0
  6512. ? JSON.stringify(this.cover)
  6513. : JSON.stringify([
  6514. {
  6515. name: "noBanner.jpg",
  6516. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6517. uid: 1656409780264,
  6518. status: "success",
  6519. },
  6520. ]),
  6521. evaId: this.evalua,
  6522. astudent:
  6523. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6524. see: this.isTeacherSee == true ? 1 : 0,
  6525. chapters: JSON.stringify(this.unitJson),
  6526. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6527. courseType: JSON.stringify(this.courseTypeId),
  6528. ateacher:
  6529. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6530. inviteCode: JSON.stringify(this.inviteCode),
  6531. },
  6532. ];
  6533. this.ajax
  6534. .post(this.$store.state.api + "addTrainCourseNew2", params)
  6535. .then((res) => {
  6536. console.log(this.steps);
  6537. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6538. this.$message({
  6539. message: "新增成功",
  6540. type: "success",
  6541. });
  6542. }
  6543. this.number = res.data.ordernumber;
  6544. this.courseId = res.data.courseId;
  6545. this.cid = res.data.courseId;
  6546. this.courseUserid = this.userid;
  6547. this.islogin = true;
  6548. })
  6549. .catch((err) => {
  6550. this.$message.error("网络不佳");
  6551. console.error(err);
  6552. });
  6553. },
  6554. goCourse() {
  6555. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6556. },
  6557. updateWork2() {
  6558. let _unitIndex = this.unitIndex;
  6559. let cPan = 1;
  6560. for (
  6561. var j = 0;
  6562. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6563. j++
  6564. ) {
  6565. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6566. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6567. j
  6568. ].proVisible2 = false;
  6569. if (
  6570. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6571. .length > 1
  6572. ) {
  6573. for (
  6574. var z = 0;
  6575. z <
  6576. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6577. .length;
  6578. z++
  6579. ) {
  6580. if (
  6581. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6582. z
  6583. ].tool.length
  6584. ) {
  6585. this.$message.error("请把工具添加完整");
  6586. cPan = 2;
  6587. break;
  6588. }
  6589. }
  6590. }
  6591. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6592. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6593. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6594. (ele) => {
  6595. return ele.value != "";
  6596. }
  6597. );
  6598. }
  6599. }
  6600. this.inputShow = true;
  6601. if (cPan == 2) {
  6602. this.steps--;
  6603. return;
  6604. }
  6605. let params = [
  6606. {
  6607. cid: this.cid,
  6608. chapters: JSON.stringify(this.unitJson),
  6609. uid: this.userid,
  6610. unitIndex: _unitIndex,
  6611. },
  6612. ];
  6613. this.ajax
  6614. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  6615. .then((res) => {
  6616. this.$message({
  6617. message: "修改成功",
  6618. type: "success",
  6619. });
  6620. this.courseId = this.cid;
  6621. })
  6622. .catch((err) => {
  6623. this.$message.error("网络不佳");
  6624. console.error(err);
  6625. });
  6626. },
  6627. updateWork3(unitIndex) {
  6628. let _unitIndex = unitIndex;
  6629. let cPan = 1;
  6630. for (
  6631. var j = 0;
  6632. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6633. j++
  6634. ) {
  6635. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6636. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6637. j
  6638. ].proVisible2 = false;
  6639. if (
  6640. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6641. .length > 1
  6642. ) {
  6643. for (
  6644. var z = 0;
  6645. z <
  6646. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6647. .length;
  6648. z++
  6649. ) {
  6650. if (
  6651. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6652. z
  6653. ].tool.length
  6654. ) {
  6655. this.$message.error("请把工具添加完整");
  6656. cPan = 2;
  6657. break;
  6658. }
  6659. }
  6660. }
  6661. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6662. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6663. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6664. (ele) => {
  6665. return ele.value != "";
  6666. }
  6667. );
  6668. }
  6669. }
  6670. this.inputShow = true;
  6671. if (cPan == 2) {
  6672. this.steps--;
  6673. return;
  6674. }
  6675. let params = [
  6676. {
  6677. cid: this.cid,
  6678. chapters: JSON.stringify(this.unitJson),
  6679. uid: this.userid,
  6680. unitIndex: _unitIndex,
  6681. },
  6682. ];
  6683. this.ajax
  6684. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  6685. .then((res) => {
  6686. // this.$message({
  6687. // message: "修改成功",
  6688. // type: "success",
  6689. // });
  6690. this.courseId = this.cid;
  6691. })
  6692. .catch((err) => {
  6693. this.$message.error("网络不佳");
  6694. console.error(err);
  6695. });
  6696. },
  6697. updateWork() {
  6698. let cPan = 1;
  6699. for (var i = 0; i < this.unitJson.length; i++) {
  6700. for (
  6701. var j = 0;
  6702. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6703. j++
  6704. ) {
  6705. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6706. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6707. if (
  6708. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6709. ) {
  6710. for (
  6711. var z = 0;
  6712. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6713. z++
  6714. ) {
  6715. if (
  6716. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6717. .length
  6718. ) {
  6719. this.$message.error("请把工具添加完整");
  6720. cPan = 2;
  6721. break;
  6722. }
  6723. }
  6724. }
  6725. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6726. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6727. i
  6728. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6729. return ele.value != "";
  6730. });
  6731. }
  6732. }
  6733. }
  6734. this.inputShow = true;
  6735. if (cPan == 2) {
  6736. this.steps--;
  6737. return;
  6738. }
  6739. for (var i = 0; i < this.unitJson.length; i++) {
  6740. delete this.unitJson[i].isUpdate;
  6741. }
  6742. let params = [
  6743. {
  6744. cid: this.cid,
  6745. title: this.courseName,
  6746. brief: this.courseText,
  6747. cover:
  6748. this.cover.length > 0
  6749. ? JSON.stringify(this.cover)
  6750. : JSON.stringify([
  6751. {
  6752. name: "noBanner.jpg",
  6753. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6754. uid: 1656409780264,
  6755. status: "success",
  6756. },
  6757. ]),
  6758. evaId: this.evalua,
  6759. astudent:
  6760. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6761. see: this.isTeacherSee == true ? 1 : 0,
  6762. chapters: JSON.stringify(this.unitJson),
  6763. template: this.myWord != "undefined" ? this.myWord : [],
  6764. uid: this.userid,
  6765. courseType: JSON.stringify(this.courseTypeId),
  6766. ateacher:
  6767. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6768. inviteCode: JSON.stringify(this.inviteCode),
  6769. },
  6770. ];
  6771. this.ajax
  6772. .post(this.$store.state.api + "updateTrainCourseNew2", params)
  6773. .then((res) => {
  6774. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6775. if (this.cidType == 1) {
  6776. this.$message({
  6777. message: "修改成功",
  6778. type: "success",
  6779. });
  6780. } else {
  6781. this.$message({
  6782. message: "新增成功",
  6783. type: "success",
  6784. });
  6785. }
  6786. }
  6787. this.number = this.nbOrder;
  6788. this.courseId = this.cid;
  6789. })
  6790. .catch((err) => {
  6791. this.$message.error("网络不佳");
  6792. console.error(err);
  6793. });
  6794. },
  6795. guid() {
  6796. var _num,
  6797. i,
  6798. _guid = "";
  6799. for (i = 0; i < 32; i++) {
  6800. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6801. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6802. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6803. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6804. _guid += "-";
  6805. }
  6806. }
  6807. return _guid;
  6808. },
  6809. insertWord() {
  6810. this.dialogVisible1 = true;
  6811. this.updateBoolean2 = false;
  6812. this.tTitle = "";
  6813. this.tdetail = "";
  6814. },
  6815. addWord() {
  6816. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6817. name: this.tTitle,
  6818. content: this.tdetail,
  6819. uid: this.guid(),
  6820. });
  6821. this.dialogVisible1 = false;
  6822. },
  6823. upWord() { },
  6824. selectWord(uid, i, c) {
  6825. this.dialogVisible1 = true;
  6826. this.updateBoolean2 = true;
  6827. if (
  6828. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6829. ) {
  6830. this.tTitle =
  6831. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6832. this.tdetail =
  6833. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6834. }
  6835. },
  6836. isAddPP() {
  6837. if (this.checkboxList.length > 0) {
  6838. this.$message({
  6839. message: "添加成功",
  6840. type: "success",
  6841. });
  6842. this.dialogVisible3 = false;
  6843. } else {
  6844. this.$message({
  6845. message: "请添加培训成员",
  6846. type: "error",
  6847. });
  6848. }
  6849. },
  6850. isAddClass() {
  6851. this.dialogVisibleClass = false;
  6852. },
  6853. isAddPPTeacher() {
  6854. this.dialogVisibleMember = false;
  6855. this.setMan();
  6856. },
  6857. getTemplate() {
  6858. this.ajax
  6859. .get(this.$store.state.api + "getTrainCourseTemplateT", "")
  6860. .then((res) => {
  6861. this.templateArray = res.data[0];
  6862. this.getTemplateOid();
  6863. this.$forceUpdate();
  6864. })
  6865. .catch((err) => { });
  6866. },
  6867. getTemplateOid() {
  6868. let params = {
  6869. oid: this.oid,
  6870. };
  6871. this.ajax
  6872. .get(this.$store.state.api + "getTrainCourseTemplateTByOid", params)
  6873. .then((res) => {
  6874. if (res.data[0].length) {
  6875. this.templateArray = [...res.data[0], ...this.templateArray];
  6876. }
  6877. this.getTemplateOrg();
  6878. this.$forceUpdate();
  6879. })
  6880. .catch((err) => { });
  6881. },
  6882. getTemplateOrg() {
  6883. let params = {
  6884. oid: this.org,
  6885. };
  6886. this.ajax
  6887. .get(this.$store.state.api + "getTrainCourseTemplateTByOid", params)
  6888. .then((res) => {
  6889. if (res.data[0].length) {
  6890. this.templateArray = [...res.data[0], ...this.templateArray];
  6891. }
  6892. this.$forceUpdate();
  6893. })
  6894. .catch((err) => { });
  6895. },
  6896. clearChoose() {
  6897. this.clearArray.splice(this.templateC.id, 1);
  6898. this.dialogVisible2 = false;
  6899. },
  6900. clearAttText() {
  6901. this.AttText = {
  6902. title: "",
  6903. text: "",
  6904. };
  6905. this.dialogVisible6 = false;
  6906. },
  6907. clearLine() {
  6908. this.line = "";
  6909. this.dialogVisible7 = false;
  6910. },
  6911. openTemplate(){
  6912. this.ctJson = {}
  6913. this.templateDialog = true
  6914. },
  6915. checkctJson(json){
  6916. if(this.ctJson.id == json.id){
  6917. this.ctJson = {}
  6918. }else{
  6919. this.ctJson = json
  6920. }
  6921. },
  6922. addTemplate(res){
  6923. let _this = this;
  6924. let _res = []
  6925. if(res.id == 1){
  6926. _res = [
  6927. {
  6928. dyName: "", //单元标题
  6929. easy: 1,
  6930. chapterInfo: [
  6931. {
  6932. isread: false,
  6933. chapterid: this.guid(),
  6934. title: "",
  6935. courseName: "",
  6936. taskJson: [
  6937. {
  6938. task: "",
  6939. taskDetail: "",
  6940. chapterData: [],
  6941. toolText: "",
  6942. toolChoose: [
  6943. {
  6944. tool: [],
  6945. toolDetail: "",
  6946. toolType: 0,
  6947. askCount: 1,
  6948. askTitle: "",
  6949. askJson: [
  6950. { askstitle: "", askItem: 1, checkList: [] },
  6951. ],
  6952. },
  6953. ],
  6954. isShowTools: false,
  6955. askCount: 1,
  6956. isFold: 1,
  6957. askTitle: "",
  6958. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6959. checkJson: [{ checkCount: [], checkPerent: [] }],
  6960. homeworkList: [],
  6961. },
  6962. ],
  6963. itemCount: 1,
  6964. fileList1: [],
  6965. video: [],
  6966. testData: [],
  6967. pData: [],
  6968. templateArray: [],
  6969. },
  6970. ],
  6971. },
  6972. ];
  6973. this.updateCourseState(1)
  6974. }else if(res.id == 2){
  6975. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6976. if (!iframe) {
  6977. this.$message.error("请使用AI共创生成");
  6978. return;
  6979. }
  6980. let copyData = iframe.contentWindow.copyData;
  6981. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6982. this.$message.error("请使用AI共创生成");
  6983. return;
  6984. }
  6985. let stageData = copyData.stageData;
  6986. for (var i = 0; i < stageData.length; i++) {
  6987. res.push({
  6988. dyName: stageData[i], //单元标题
  6989. chapterInfo: [
  6990. {
  6991. isread: false,
  6992. chapterid: this.guid(),
  6993. title: "",
  6994. courseName: "",
  6995. taskJson: [
  6996. {
  6997. task: "",
  6998. taskDetail: "",
  6999. chapterData: [],
  7000. toolText: "",
  7001. toolChoose: [
  7002. {
  7003. tool: [],
  7004. toolDetail: "",
  7005. toolType: 0,
  7006. askCount: 1,
  7007. askTitle: "",
  7008. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7009. },
  7010. ],
  7011. isShowTools: false,
  7012. askCount: 1,
  7013. isFold: 1,
  7014. askTitle: "",
  7015. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7016. checkJson: [{ checkCount: [], checkPerent: [] }],
  7017. homeworkList: [],
  7018. },
  7019. ],
  7020. itemCount: 1,
  7021. fileList1: [],
  7022. video: [],
  7023. testData: [],
  7024. pData: [],
  7025. templateArray: [],
  7026. },
  7027. ],
  7028. });
  7029. }
  7030. this.updateCourseState(1)
  7031. }else if(!Object.keys(res).length){
  7032. this.$message.error("请选择模板")
  7033. retrun;
  7034. }else{
  7035. _res = JSON.parse(res.chapters)
  7036. this.updateCourseState(parseInt(res.state))
  7037. }
  7038. _this
  7039. .$confirm("确定选择培训模板吗?此操作将删除所有已编辑培训内容。", "提示", {
  7040. confirmButtonText: "确定",
  7041. cancelButtonText: "取消",
  7042. type: "warning",
  7043. })
  7044. .then(() => {
  7045. _this.unitJson = _res;
  7046. _this.updateWork();
  7047. // _this.steps++;
  7048. _this.templateDialog = false
  7049. setTimeout(() => {
  7050. this.checkEva(this.checkId);
  7051. setTimeout(() => {
  7052. this.checkEva(this.checkId);
  7053. }, 100);
  7054. }, 1000);
  7055. })
  7056. .catch(() => {
  7057. return;
  7058. });
  7059. },
  7060. checkTemplate(res) {
  7061. let _this = this;
  7062. _this
  7063. .$confirm("确定选择培训模板吗?此操作将删除所有已编辑培训内容。", "提示", {
  7064. confirmButtonText: "确定",
  7065. cancelButtonText: "取消",
  7066. type: "warning",
  7067. })
  7068. .then(() => {
  7069. _this.unitJson = JSON.parse(res.chapters);
  7070. _this.steps++;
  7071. setTimeout(() => {
  7072. this.checkEva(this.checkId);
  7073. setTimeout(() => {
  7074. this.checkEva(this.checkId);
  7075. }, 100);
  7076. }, 1000);
  7077. })
  7078. .catch(() => {
  7079. return;
  7080. });
  7081. },
  7082. checkTemplate1(w) {
  7083. this.steps++;
  7084. },
  7085. checkTemplate2() {
  7086. let _this = this;
  7087. _this
  7088. .$confirm("确定选择空模板吗?修改培训时无法重置培训模板。", "提示", {
  7089. confirmButtonText: "确定",
  7090. cancelButtonText: "取消",
  7091. type: "warning",
  7092. })
  7093. .then(() => {
  7094. _this.unitIndex = 0;
  7095. _this.unitJson = [
  7096. {
  7097. dyName: "", //单元标题
  7098. chapterInfo: [
  7099. {
  7100. isread: false,
  7101. chapterid: this.guid(),
  7102. title: "",
  7103. courseName: "",
  7104. taskJson: [
  7105. {
  7106. task: "",
  7107. taskDetail: "",
  7108. chapterData: [],
  7109. toolText: "",
  7110. toolChoose: [
  7111. {
  7112. tool: [],
  7113. toolDetail: "",
  7114. toolType: 0,
  7115. askCount: 1,
  7116. askTitle: "",
  7117. askJson: [
  7118. { askstitle: "", askItem: 1, checkList: [] },
  7119. ],
  7120. },
  7121. ],
  7122. isShowTools: false,
  7123. askCount: 1,
  7124. isFold: 1,
  7125. askTitle: "",
  7126. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7127. checkJson: [{ checkCount: [], checkPerent: [] }],
  7128. homeworkList: [],
  7129. },
  7130. ],
  7131. itemCount: 1,
  7132. fileList1: [],
  7133. video: [],
  7134. testData: [],
  7135. pData: [],
  7136. templateArray: [],
  7137. },
  7138. ],
  7139. },
  7140. ];
  7141. this.steps++;
  7142. setTimeout(() => {
  7143. this.checkEva(this.checkId);
  7144. setTimeout(() => {
  7145. this.checkEva(this.checkId);
  7146. }, 100);
  7147. }, 1000);
  7148. this.updateWork();
  7149. })
  7150. .catch(() => {
  7151. return;
  7152. });
  7153. },
  7154. checkTemplate3() {
  7155. let _this = this;
  7156. _this
  7157. .$confirm("确定选择简易模板吗?修改培训时无法重置培训模板。", "提示", {
  7158. confirmButtonText: "确定",
  7159. cancelButtonText: "取消",
  7160. type: "warning",
  7161. })
  7162. .then(() => {
  7163. _this.unitIndex = 0;
  7164. _this.unitJson = [
  7165. {
  7166. dyName: "", //单元标题
  7167. easy: 1,
  7168. chapterInfo: [
  7169. {
  7170. isread: false,
  7171. chapterid: this.guid(),
  7172. title: "",
  7173. courseName: "",
  7174. taskJson: [
  7175. {
  7176. task: "",
  7177. taskDetail: "",
  7178. chapterData: [],
  7179. toolText: "",
  7180. toolChoose: [
  7181. {
  7182. tool: [],
  7183. toolDetail: "",
  7184. toolType: 0,
  7185. askCount: 1,
  7186. askTitle: "",
  7187. askJson: [
  7188. { askstitle: "", askItem: 1, checkList: [] },
  7189. ],
  7190. },
  7191. ],
  7192. isShowTools: false,
  7193. askCount: 1,
  7194. isFold: 1,
  7195. askTitle: "",
  7196. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7197. checkJson: [{ checkCount: [], checkPerent: [] }],
  7198. homeworkList: [],
  7199. },
  7200. ],
  7201. itemCount: 1,
  7202. fileList1: [],
  7203. video: [],
  7204. testData: [],
  7205. pData: [],
  7206. templateArray: [],
  7207. },
  7208. ],
  7209. },
  7210. ];
  7211. // this.steps++;
  7212. this.updateWork();
  7213. })
  7214. .catch(() => {
  7215. return;
  7216. });
  7217. },
  7218. checkTemplate4() {
  7219. let _this = this;
  7220. _this
  7221. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7222. confirmButtonText: "确定",
  7223. cancelButtonText: "取消",
  7224. type: "warning",
  7225. })
  7226. .then(() => {
  7227. _this.unitIndex = 0;
  7228. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7229. this.steps++;
  7230. this.updateWork();
  7231. })
  7232. .catch(() => {
  7233. return;
  7234. });
  7235. },
  7236. wordNext() {
  7237. this.dialogVisible2 = false;
  7238. },
  7239. isAddOrUpdateAttText() {
  7240. if (this.AttTextType == 0) {
  7241. this.addAttTextMessage();
  7242. } else {
  7243. this.updateAttText();
  7244. }
  7245. },
  7246. isAddOrUpdateLine() {
  7247. if (!this.lineTitle) {
  7248. this.$message.error("请填写链接标题");
  7249. return;
  7250. }
  7251. if (this.lineType == 0) {
  7252. this.addLine();
  7253. } else {
  7254. this.updateLine();
  7255. }
  7256. },
  7257. addAttTextMessage() {
  7258. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7259. this.taskCount
  7260. ].chapterData.push({
  7261. name: this.AttText.title,
  7262. url: this.AttText.text,
  7263. type: 6,
  7264. });
  7265. this.imgChange1(null, null, 6, this.taskCount);
  7266. this.dialogVisible6 = false;
  7267. },
  7268. selectAttText(itemTaskIndex, i) {
  7269. this.AttText.title =
  7270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7271. itemTaskIndex
  7272. ].chapterData[i].name;
  7273. this.AttText.text =
  7274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7275. itemTaskIndex
  7276. ].chapterData[i].url;
  7277. this.taskCount = itemTaskIndex;
  7278. this.AttTextIndex = i;
  7279. this.AttTextType = 1;
  7280. this.dialogVisible6 = true;
  7281. },
  7282. updateAttText() {
  7283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7284. this.taskCount
  7285. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7286. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7287. this.taskCount
  7288. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7289. this.dialogVisible6 = false;
  7290. },
  7291. addLine() {
  7292. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7293. this.lineCount
  7294. ].chapterData.push({
  7295. name: "链接",
  7296. title: this.lineTitle,
  7297. url: this.line,
  7298. type: 8,
  7299. });
  7300. this.imgChange1(null, null, 8, this.lineCount);
  7301. this.dialogVisible7 = false;
  7302. },
  7303. selectLine(itemTaskIndex, i) {
  7304. this.line =
  7305. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7306. itemTaskIndex
  7307. ].chapterData[i].url;
  7308. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7309. itemTaskIndex
  7310. ].chapterData[i].title
  7311. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7312. .chapterData[i].title
  7313. : "";
  7314. this.taskCount = itemTaskIndex;
  7315. this.lineCount = i;
  7316. this.lineType = 1;
  7317. this.dialogVisible7 = true;
  7318. },
  7319. openUpdateSource(itemTaskIndex, i) {
  7320. this.sourceData = {}
  7321. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7322. this.sourceData[source.id] = {}
  7323. this.sourceData[source.id].name = source.title
  7324. this.sourceData[source.id].url = source.url
  7325. this.dialogVisibleSource = true;
  7326. this.updateSourcePan = true;
  7327. this.taskCount = itemTaskIndex;
  7328. this.lineCount = i;
  7329. },
  7330. updateLine() {
  7331. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7332. this.taskCount
  7333. ].chapterData[this.lineCount].url = this.line;
  7334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7335. this.taskCount
  7336. ].chapterData[this.lineCount].title = this.lineTitle;
  7337. this.dialogVisible7 = false;
  7338. },
  7339. addPP() {
  7340. this.dialogVisible3 = true;
  7341. },
  7342. goTo(path) {
  7343. this.$router.push(path);
  7344. },
  7345. openTools(itemTaskIndex, i, toolIndex) {
  7346. this.toolIndex = toolIndex;
  7347. this.taskCount = itemTaskIndex;
  7348. if (i == 4) {
  7349. if (toolIndex == null) {
  7350. var a =
  7351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7352. .chapterData;
  7353. for (var i = 0; i < a.length; i++) {
  7354. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7355. this.askJson =
  7356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7357. itemTaskIndex
  7358. ].chapterData[i].askJson;
  7359. }
  7360. }
  7361. } else {
  7362. this.askJson = JSON.parse(
  7363. JSON.stringify(
  7364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7365. itemTaskIndex
  7366. ].toolChoose[toolIndex]
  7367. )
  7368. );
  7369. }
  7370. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7371. this.dialogVisible5 = true;
  7372. } else if (i == 45) {
  7373. if (
  7374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7375. .toolChoose[toolIndex].testJson
  7376. ) {
  7377. this.testJson = JSON.parse(
  7378. JSON.stringify(
  7379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7380. itemTaskIndex
  7381. ].toolChoose[toolIndex].testJson
  7382. )
  7383. );
  7384. } else {
  7385. var testJson = {
  7386. testCount: 1,
  7387. testTitle: "",
  7388. testJson: [
  7389. {
  7390. teststitle: "",
  7391. testItem: 1,
  7392. checkList: [],
  7393. timuList: [],
  7394. answer: [],
  7395. type: "1",
  7396. },
  7397. ],
  7398. };
  7399. this.testJson = testJson;
  7400. }
  7401. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7402. this.dialogVisibleChoice = true;
  7403. } else if (i == 47) {
  7404. if (
  7405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7406. .toolChoose[toolIndex].sentenceList
  7407. ) {
  7408. this.sentenceList = JSON.parse(
  7409. JSON.stringify(
  7410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7411. itemTaskIndex
  7412. ].toolChoose[toolIndex].sentenceList
  7413. )
  7414. );
  7415. } else {
  7416. var sentenceList = [
  7417. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7418. ];
  7419. this.sentenceList = sentenceList;
  7420. }
  7421. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7422. this.dialogVisibleSentence = true;
  7423. } else if (i == 48) {
  7424. if (
  7425. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7426. .toolChoose[toolIndex].tableJson
  7427. ) {
  7428. this.tableJson = JSON.parse(
  7429. JSON.stringify(
  7430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7431. itemTaskIndex
  7432. ].toolChoose[toolIndex].tableJson
  7433. )
  7434. );
  7435. } else {
  7436. var tableJson = { text: "" };
  7437. this.tableJson = tableJson;
  7438. }
  7439. this.dialogVisibleTable = true;
  7440. } else if (i == 52) {
  7441. if (
  7442. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7443. .toolChoose[toolIndex].wordJson
  7444. ) {
  7445. this.wordJson = JSON.parse(
  7446. JSON.stringify(
  7447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7448. itemTaskIndex
  7449. ].toolChoose[toolIndex].wordJson
  7450. )
  7451. );
  7452. } else {
  7453. var wordJson = { text: "" };
  7454. this.wordJson = wordJson;
  7455. }
  7456. this.dialogVisibleWord = true;
  7457. // else if (i == 50) {
  7458. // if (
  7459. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7460. // .toolChoose[toolIndex].uploadJson
  7461. // ) {
  7462. // this.uploadJson = JSON.parse(
  7463. // JSON.stringify(
  7464. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7465. // itemTaskIndex
  7466. // ].toolChoose[toolIndex].uploadJson
  7467. // )
  7468. // );
  7469. // } else {
  7470. // var uploadJson = [];
  7471. // this.uploadJson = uploadJson;
  7472. // }
  7473. // this.dialogVisibleMoreUpload = true;
  7474. // }
  7475. } else if (i == 10) {
  7476. if (
  7477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7478. .toolChoose[toolIndex].preTime
  7479. ) {
  7480. this.preTime = JSON.parse(
  7481. JSON.stringify(
  7482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7483. itemTaskIndex
  7484. ].toolChoose[toolIndex].preTime
  7485. )
  7486. );
  7487. } else {
  7488. var preTime = 0;
  7489. this.preTime = preTime;
  7490. }
  7491. this.dialogVisiblePreTime = true;
  7492. } else if (i == 49) {
  7493. if (
  7494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7495. .toolChoose[toolIndex].groupJson
  7496. ) {
  7497. this.groupJson = JSON.parse(
  7498. JSON.stringify(
  7499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7500. itemTaskIndex
  7501. ].toolChoose[toolIndex].groupJson
  7502. )
  7503. );
  7504. } else {
  7505. var groupJson = {
  7506. group: [{ name: "第1组" }],
  7507. number: undefined,
  7508. islock: 1,
  7509. };
  7510. this.groupJson = groupJson;
  7511. }
  7512. this.dialogVisibleGroup = true;
  7513. } else if (i == 62) {
  7514. if (
  7515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7516. .toolChoose[toolIndex].videoJson
  7517. ) {
  7518. this.videoJson = JSON.parse(
  7519. JSON.stringify(
  7520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7521. itemTaskIndex
  7522. ].toolChoose[toolIndex].videoJson
  7523. )
  7524. );
  7525. } else {
  7526. var videoJson = {
  7527. video: "",
  7528. setting: [],
  7529. };
  7530. this.videoJson = videoJson;
  7531. }
  7532. this.dialogVisibleVideo = true;
  7533. } else if (i == 15) {
  7534. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7535. itemTaskIndex
  7536. ].toolChoose[toolIndex].answerQ
  7537. ? JSON.parse(
  7538. JSON.stringify(
  7539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7540. itemTaskIndex
  7541. ].toolChoose[toolIndex].answerQ
  7542. )
  7543. )
  7544. : "";
  7545. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7546. this.dialogVisible8 = true;
  7547. } else if (i == 40) {
  7548. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7549. itemTaskIndex
  7550. ].toolChoose[toolIndex].rateJson
  7551. ? JSON.parse(
  7552. JSON.stringify(
  7553. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7554. itemTaskIndex
  7555. ].toolChoose[toolIndex].rateJson
  7556. )
  7557. )
  7558. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7559. this.selectSteps = 1;
  7560. this.dialogVisibleRate = true;
  7561. } else if (i == 42) {
  7562. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7563. itemTaskIndex
  7564. ].toolChoose[toolIndex].answerQ
  7565. ? JSON.parse(
  7566. JSON.stringify(
  7567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7568. itemTaskIndex
  7569. ].toolChoose[toolIndex].answerQ
  7570. )
  7571. )
  7572. : "";
  7573. this.dialogVisibleMp3 = true;
  7574. } else if (i == 41) {
  7575. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7576. itemTaskIndex
  7577. ].toolChoose[toolIndex].selectJson
  7578. ? JSON.parse(
  7579. JSON.stringify(
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7581. itemTaskIndex
  7582. ].toolChoose[toolIndex].selectJson
  7583. )
  7584. )
  7585. : { url: "", select: [], answer: [] };
  7586. this.selectSteps = 1;
  7587. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7588. this.dialogVisibleSelect = true;
  7589. } else if (i == 3) {
  7590. window.parent.postMessage(
  7591. {
  7592. tools: "3y",
  7593. cid: this.cid,
  7594. stage: this.unitIndex,
  7595. task: itemTaskIndex,
  7596. tool: toolIndex,
  7597. },
  7598. "*"
  7599. );
  7600. } else if (i == 1) {
  7601. window.parent.postMessage(
  7602. {
  7603. tools: "1y",
  7604. cid: this.cid,
  7605. stage: this.unitIndex,
  7606. task: itemTaskIndex,
  7607. tool: toolIndex,
  7608. },
  7609. "*"
  7610. );
  7611. } else if (i == 57) {
  7612. window.parent.postMessage(
  7613. {
  7614. tools: "57y",
  7615. cid: this.cid,
  7616. stage: this.unitIndex,
  7617. task: itemTaskIndex,
  7618. tool: toolIndex,
  7619. },
  7620. "*"
  7621. );
  7622. }else if(i == 69){
  7623. this.englishList = {};
  7624. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7625. itemTaskIndex
  7626. ].toolChoose[toolIndex].englishList
  7627. ? JSON.parse(
  7628. JSON.stringify(
  7629. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7630. itemTaskIndex
  7631. ].toolChoose[toolIndex].englishList
  7632. )
  7633. )
  7634. : { };
  7635. this.$forceUpdate();
  7636. this.englishDialogVisible = true;
  7637. }
  7638. },
  7639. chapAddTools(i) {
  7640. if (this.chapTools[0].tools.length == 0) {
  7641. this.chapTools[0].tools.push(i);
  7642. } else {
  7643. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7644. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7645. } else {
  7646. this.chapTools[0].tools.push(i);
  7647. }
  7648. }
  7649. this.$forceUpdate();
  7650. },
  7651. addChaptersDataTools() {
  7652. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. this.chapCount
  7655. ].chapterData.push({
  7656. name: this.chapTools[0].toolDetail,
  7657. url: this.chapTools[0].tools,
  7658. type: 7,
  7659. askJson: this.askJson,
  7660. });
  7661. } else {
  7662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7663. this.chapCount
  7664. ].chapterData.push({
  7665. name: this.chapTools[0].toolDetail,
  7666. url: this.chapTools[0].tools,
  7667. type: 7,
  7668. });
  7669. }
  7670. this.imgChange1(null, null, 7, this.chapCount);
  7671. this.dialogVisible4 = false;
  7672. },
  7673. addTools(i, itemTaskIndex, toolIndex) {
  7674. // if (
  7675. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7676. // .toolChoose[toolIndex].tool.length == 0
  7677. // ) {
  7678. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7679. // itemTaskIndex
  7680. // ].toolChoose[toolIndex].tool.push(i);
  7681. // } else {
  7682. // if (
  7683. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7684. // itemTaskIndex
  7685. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7686. // ) {
  7687. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7688. // itemTaskIndex
  7689. // ].toolChoose[toolIndex].tool.splice(
  7690. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7691. // itemTaskIndex
  7692. // ].toolChoose[toolIndex].tool.indexOf(i),
  7693. // 1
  7694. // );
  7695. // } else {
  7696. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7697. // itemTaskIndex
  7698. // ].toolChoose[toolIndex].tool.push(i);
  7699. // }
  7700. // console.log(
  7701. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7702. // .toolChoose[toolIndex].tool
  7703. // );
  7704. // }
  7705. if (i == 4) {
  7706. if (
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7708. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7709. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7710. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7712. .toolChoose[toolIndex].askJson[0].checkList < 2
  7713. ) {
  7714. this.openTools(itemTaskIndex, 4, toolIndex);
  7715. // this.$message({
  7716. // message: "请填写完整问卷内容",
  7717. // type: "error",
  7718. // });
  7719. return;
  7720. }
  7721. }
  7722. if (i == 45) {
  7723. if (
  7724. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7725. .toolChoose[toolIndex].testJson ||
  7726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7727. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7728. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7729. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7730. ) {
  7731. this.openTools(itemTaskIndex, 45, toolIndex);
  7732. // this.$message({
  7733. // message: "请填写完整问卷内容",
  7734. // type: "error",
  7735. // });
  7736. return;
  7737. }
  7738. }
  7739. if (i == 47) {
  7740. if (
  7741. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7742. .toolChoose[toolIndex].sentenceList ||
  7743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7744. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7745. ) {
  7746. this.openTools(itemTaskIndex, 47, toolIndex);
  7747. return;
  7748. }
  7749. }
  7750. if(i == 69){
  7751. if (
  7752. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7753. .toolChoose[toolIndex].englishList
  7754. ) {
  7755. this.openTools(itemTaskIndex, 69, toolIndex);
  7756. return;
  7757. }
  7758. }
  7759. // if (i == 48) {
  7760. // if (
  7761. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7762. // .toolChoose[toolIndex].tableJson
  7763. // ) {
  7764. // this.openTools(itemTaskIndex, 48, toolIndex);
  7765. // return;
  7766. // }
  7767. // }
  7768. // if (i == 50) {
  7769. // if (
  7770. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7771. // .toolChoose[toolIndex].uploadJson
  7772. // ) {
  7773. // this.openTools(itemTaskIndex, 50, toolIndex);
  7774. // return;
  7775. // }
  7776. // }
  7777. if (i == 49) {
  7778. if (
  7779. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7780. .toolChoose[toolIndex].groupJson
  7781. ) {
  7782. this.openTools(itemTaskIndex, 49, toolIndex);
  7783. return;
  7784. }
  7785. }
  7786. if (i == 62) {
  7787. if (
  7788. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7789. .toolChoose[toolIndex].videoJson
  7790. ) {
  7791. this.openTools(itemTaskIndex, 62, toolIndex);
  7792. return;
  7793. }
  7794. }
  7795. if (i == 15) {
  7796. if (
  7797. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7798. .toolChoose[toolIndex].answerQ ||
  7799. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7800. .toolChoose[toolIndex].answerQ == ""
  7801. ) {
  7802. this.openTools(itemTaskIndex, 15, toolIndex);
  7803. // this.$message({
  7804. // message: "请填写问答内容",
  7805. // type: "error",
  7806. // });
  7807. return;
  7808. }
  7809. }
  7810. if (i == 40) {
  7811. if (
  7812. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7813. .toolChoose[toolIndex].rateJson ||
  7814. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7815. .toolChoose[toolIndex].rateJson.length
  7816. ) {
  7817. this.openTools(itemTaskIndex, 40, toolIndex);
  7818. return;
  7819. }
  7820. }
  7821. if (i == 41) {
  7822. if (
  7823. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7824. .toolChoose[toolIndex].selectJson ||
  7825. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7826. .toolChoose[toolIndex].selectJson.url == "" ||
  7827. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7828. .toolChoose[toolIndex].selectJson.select.length ||
  7829. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7830. .toolChoose[toolIndex].selectJson.answer.length
  7831. ) {
  7832. this.openTools(itemTaskIndex, 41, toolIndex);
  7833. return;
  7834. }
  7835. }
  7836. if (i == 42) {
  7837. if (
  7838. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7839. .toolChoose[toolIndex].answerQ ||
  7840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7841. .toolChoose[toolIndex].answerQ == ""
  7842. ) {
  7843. this.openTools(itemTaskIndex, 42, toolIndex);
  7844. return;
  7845. }
  7846. }
  7847. if (
  7848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7849. .toolChoose[toolIndex].tool.length > 0
  7850. ) {
  7851. if (
  7852. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7853. itemTaskIndex
  7854. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7855. ) {
  7856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7857. itemTaskIndex
  7858. ].toolChoose[toolIndex].tool.splice(
  7859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7860. itemTaskIndex
  7861. ].toolChoose[toolIndex].tool.indexOf(i),
  7862. 1
  7863. );
  7864. } else {
  7865. // this.$message({
  7866. // message: "每个工具只能添加一个",
  7867. // type: "error",
  7868. // });
  7869. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7870. itemTaskIndex
  7871. ].toolChoose[toolIndex].tool = [];
  7872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7873. itemTaskIndex
  7874. ].toolChoose[toolIndex].tool.push(i);
  7875. }
  7876. } else {
  7877. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7878. itemTaskIndex
  7879. ].toolChoose[toolIndex].tool.push(i);
  7880. }
  7881. this.$forceUpdate();
  7882. },
  7883. addAskList(index) {
  7884. this.askJson.askJson.splice(index + 1, 0, {
  7885. askstitle: "",
  7886. askItem: 1,
  7887. checkList: [],
  7888. })
  7889. this.askJson.askCount++;
  7890. },
  7891. addTestList(index) {
  7892. this.testJson.testJson.splice(index + 1, 0, {
  7893. teststitle: "",
  7894. testItem: 1,
  7895. checkList: [],
  7896. timuList: [],
  7897. answer: [],
  7898. type: "1",
  7899. })
  7900. this.testJson.testCount++;
  7901. },
  7902. deleteAskList(index) {
  7903. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7904. this.askJson.askJson.splice(index, 1);
  7905. this.askJson.askCount--;
  7906. } else {
  7907. let _this = this;
  7908. _this
  7909. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7910. confirmButtonText: "确定",
  7911. cancelButtonText: "取消",
  7912. type: "warning",
  7913. })
  7914. .then(() => {
  7915. _this.askJson.askJson.splice(index, 1);
  7916. _this.askJson.askCount--;
  7917. })
  7918. .catch(() => {
  7919. return;
  7920. });
  7921. }
  7922. },
  7923. deleteTestList(index) {
  7924. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7925. this.testJson.testJson.splice(index, 1);
  7926. this.testJson.testCount--;
  7927. } else {
  7928. let _this = this;
  7929. _this
  7930. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7931. confirmButtonText: "确定",
  7932. cancelButtonText: "取消",
  7933. type: "warning",
  7934. })
  7935. .then(() => {
  7936. _this.testJson.testJson.splice(index, 1);
  7937. _this.testJson.testCount--;
  7938. })
  7939. .catch(() => {
  7940. return;
  7941. });
  7942. }
  7943. },
  7944. askMove(type, index) {
  7945. if (type == 1) {
  7946. if (index > 0) {
  7947. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7948. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7949. this.askJson.askJson[index - 1] = b;
  7950. this.askJson.askJson[index] = a;
  7951. }
  7952. } else {
  7953. if (
  7954. index < this.askJson.askJson.length - 1
  7955. ) {
  7956. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7957. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7958. this.askJson.askJson[index + 1] = b;
  7959. this.askJson.askJson[index] = a;
  7960. }
  7961. }
  7962. this.$forceUpdate();
  7963. },
  7964. checkMove(type, index, checkIndex) {
  7965. if (type == 1) {
  7966. if (checkIndex > 0) {
  7967. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7968. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7969. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7970. this.askJson.askJson[index].checkList[checkIndex] = a;
  7971. }
  7972. } else {
  7973. if (
  7974. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7975. ) {
  7976. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7977. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7978. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7979. this.askJson.askJson[index].checkList[checkIndex] = a;
  7980. }
  7981. }
  7982. this.$forceUpdate();
  7983. },
  7984. testMove(type, index) {
  7985. if (type == 1) {
  7986. if (index > 0) {
  7987. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7988. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7989. this.testJson.testJson[index - 1] = b;
  7990. this.testJson.testJson[index] = a;
  7991. }
  7992. } else {
  7993. if (
  7994. index < this.testJson.testJson.length - 1
  7995. ) {
  7996. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7997. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7998. this.testJson.testJson[index + 1] = b;
  7999. this.testJson.testJson[index] = a;
  8000. }
  8001. }
  8002. this.$forceUpdate();
  8003. },
  8004. tcheckMove(type, index, checkIndex) {
  8005. if (type == 1) {
  8006. if (checkIndex > 0) {
  8007. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8008. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8009. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8010. this.testJson.testJson[index].checkList[checkIndex] = a;
  8011. }
  8012. } else {
  8013. if (
  8014. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8015. ) {
  8016. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8017. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8018. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8019. this.testJson.testJson[index].checkList[checkIndex] = a;
  8020. }
  8021. }
  8022. this.$forceUpdate();
  8023. },
  8024. addcheckList(json, index) {
  8025. // json.checkList.length++;
  8026. json.checkList.splice(index + 1, 0, '')
  8027. json.askItem++;
  8028. this.$forceUpdate();
  8029. },
  8030. deletecheckList(json, index) {
  8031. // json.checkList.length--;
  8032. json.checkList.splice(index, 1)
  8033. json.askItem--;
  8034. this.$forceUpdate();
  8035. },
  8036. addTcheckList(json, index) {
  8037. // json.checkList.length++;
  8038. json.checkList.splice(index + 1, 0, '')
  8039. json.testItem++;
  8040. this.$forceUpdate();
  8041. },
  8042. deleteTcheckList(json, index) {
  8043. // json.checkList.length--;
  8044. json.checkList.splice(index, 1)
  8045. json.testItem--;
  8046. this.$forceUpdate();
  8047. },
  8048. checkTestType(type, json) {
  8049. json.type = type;
  8050. setTimeout(() => {
  8051. json.answer = [];
  8052. }, 100)
  8053. },
  8054. checkAskType(type, json) {
  8055. json.type = type;
  8056. // json.checkList = [];
  8057. this.$forceUpdate();
  8058. },
  8059. addSelectList(json) {
  8060. json.select.push("");
  8061. json.answer.push("");
  8062. },
  8063. deleteSelectList(json) {
  8064. // json.select.length--;
  8065. // json.answer.length--;
  8066. json.select.splice(json.select.length - 1, 1);
  8067. json.answer.splice(json.answer.length - 1, 1);
  8068. },
  8069. addAsk() {
  8070. if (this.askJson.askTitle === "") {
  8071. this.$message.error("标题不能为空!");
  8072. return;
  8073. }
  8074. var aj = this.askJson.askJson;
  8075. var b = 1;
  8076. for (var i = 0; i < aj.length; i++) {
  8077. if (aj[i].askstitle === "") {
  8078. var a = 1;
  8079. for (let index = 0; index < aj[i].askItem; index++) {
  8080. const element = aj[i].checkList[index]
  8081. ? aj[i].checkList[index]
  8082. : "";
  8083. if (element != "") {
  8084. b++;
  8085. this.$message.error(`请将题目${i + 1}填写完整。`);
  8086. return;
  8087. } else {
  8088. a++;
  8089. }
  8090. }
  8091. if (b == 1) {
  8092. this.$message.error("至少填写一个问题");
  8093. return;
  8094. }
  8095. } else if (aj[i].askstitle != "") {
  8096. for (let index = 0; index < aj[i].askItem; index++) {
  8097. const element = aj[i].checkList[index]
  8098. ? aj[i].checkList[index]
  8099. : "";
  8100. var index = 0;
  8101. for (var z = 0; z < aj[i].checkList.length; z++) {
  8102. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8103. if (checkC != "") {
  8104. index++;
  8105. } else {
  8106. this.$message.error(`题目${i + 1}选项不能为空!`);
  8107. return;
  8108. }
  8109. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8110. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8111. if (checkC == checkC2) {
  8112. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8113. return;
  8114. }
  8115. }
  8116. }
  8117. b++;
  8118. if (index < 2) {
  8119. this.$message.error("每道题目至少需要设置2个选项。");
  8120. return;
  8121. }
  8122. }
  8123. }
  8124. }
  8125. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8126. var elc = el.checkList.filter((element) => {
  8127. return element != "";
  8128. });
  8129. return el.askstitle != "" && elc.length != 0;
  8130. });
  8131. if (!this.dialogVisible4) {
  8132. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8133. this.taskCount
  8134. ].toolChoose[this.toolIndex] = this.askJson;
  8135. }
  8136. this.dialogVisible5 = false;
  8137. if (
  8138. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8139. .toolChoose[this.toolIndex].tool != 4
  8140. ) {
  8141. this.addTools(4, this.taskCount, this.toolIndex);
  8142. }
  8143. },
  8144. addTest() {
  8145. // if (this.testJson.testTitle === "") {
  8146. // this.$message.error("标题不能为空!");
  8147. // return;
  8148. // }
  8149. var aj = this.testJson.testJson;
  8150. var b = 1;
  8151. for (var i = 0; i < aj.length; i++) {
  8152. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8153. var a = 1;
  8154. for (let index = 0; index < aj[i].testItem; index++) {
  8155. const element = aj[i].checkList[index]
  8156. ? aj[i].checkList[index]
  8157. : "";
  8158. if (element != "") {
  8159. b++;
  8160. this.$message.error(`请将题目${i + 1}填写完整。`);
  8161. return;
  8162. } else {
  8163. a++;
  8164. }
  8165. }
  8166. if (b == 1) {
  8167. this.$message.error("至少填写一个问题");
  8168. return;
  8169. }
  8170. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8171. for (let index = 0; index < aj[i].testItem; index++) {
  8172. const element = aj[i].checkList[index]
  8173. ? aj[i].checkList[index]
  8174. : "";
  8175. var index = 0;
  8176. for (var z = 0; z < aj[i].checkList.length; z++) {
  8177. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8178. if (checkC != "") {
  8179. index++;
  8180. } else {
  8181. this.$message.error(`题目${i + 1}选项不能为空!`);
  8182. return;
  8183. }
  8184. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8185. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8186. if (checkC == checkC2) {
  8187. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8188. return;
  8189. }
  8190. }
  8191. }
  8192. b++;
  8193. if (index < 2) {
  8194. this.$message.error("每道题目至少需要设置2个选项。");
  8195. return;
  8196. }
  8197. if (
  8198. (aj[i].type == "2" && !aj[i].answer.length) ||
  8199. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8200. ) {
  8201. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8202. return;
  8203. }
  8204. }
  8205. }
  8206. }
  8207. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8208. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8209. var elc = el.checkList.filter((element) => {
  8210. return element != "";
  8211. });
  8212. return (
  8213. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8214. );
  8215. });
  8216. isTestJson.testCount = isTestJson.testJson.length;
  8217. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8218. this.taskCount
  8219. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8220. this.dialogVisibleChoice = false;
  8221. if (
  8222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8223. .toolChoose[this.toolIndex].tool != 45
  8224. ) {
  8225. this.addTools(45, this.taskCount, this.toolIndex);
  8226. }
  8227. },
  8228. addVideoJson(videoJson) {
  8229. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8230. this.taskCount
  8231. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8232. this.dialogVisibleVideo = false;
  8233. if (
  8234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8235. .toolChoose[this.toolIndex].tool != 62
  8236. ) {
  8237. this.addTools(62, this.taskCount, this.toolIndex);
  8238. }
  8239. },
  8240. //自动获取剪贴板
  8241. pasteOption() {
  8242. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8243. if (!iframe) {
  8244. this.$message.error("请使用AI共创生成题目");
  8245. return;
  8246. }
  8247. let copyData = iframe.contentWindow.copyData;
  8248. if (!copyData || !copyData.selectData.length) {
  8249. this.$message.error("请使用AI共创生成题目");
  8250. return;
  8251. }
  8252. let selectData = copyData.selectData;
  8253. for (var i = 0; i < selectData.length; i++) {
  8254. let answer = 0;
  8255. switch (selectData[i].answer[0]) {
  8256. case "A":
  8257. answer = 0;
  8258. break;
  8259. case "B":
  8260. answer = 1;
  8261. break;
  8262. case "C":
  8263. answer = 2;
  8264. break;
  8265. case "D":
  8266. answer = 3;
  8267. break;
  8268. case "E":
  8269. answer = 4;
  8270. break;
  8271. default:
  8272. break;
  8273. }
  8274. this.testJson.testJson.push({
  8275. teststitle: selectData[i].subject,
  8276. testItem: selectData[i].options.length,
  8277. checkList: selectData[i].options,
  8278. timuList: [],
  8279. answer: answer,
  8280. type: "1",
  8281. });
  8282. this.testJson.testCount++;
  8283. }
  8284. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8285. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8286. var elc = el.checkList.filter((element) => {
  8287. return element != "";
  8288. });
  8289. return (
  8290. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8291. );
  8292. });
  8293. isTestJson.testCount = isTestJson.testJson.length;
  8294. if(!isTestJson.testCount){
  8295. return;
  8296. }
  8297. this.testJson = isTestJson;
  8298. this.$forceUpdate();
  8299. },
  8300. pasteTask() {
  8301. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8302. if (!iframe) {
  8303. this.$message.error("请使用AI共创生成");
  8304. return;
  8305. }
  8306. let copyData = iframe.contentWindow.copyData;
  8307. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8308. this.$message.error("请使用AI共创生成");
  8309. return;
  8310. }
  8311. let stageTasksData = copyData.tasksData;
  8312. let taskA = [];
  8313. let tasks = stageTasksData;
  8314. for (var j = 0; j < tasks.length; j++) {
  8315. taskA.push({
  8316. task: tasks[j].taskName,
  8317. taskDetail: tasks[j].taskDecs,
  8318. chapterData: [],
  8319. toolText: "",
  8320. toolChoose: [
  8321. {
  8322. tool: [],
  8323. toolDetail: "",
  8324. toolType: 0,
  8325. askCount: 1,
  8326. askTitle: "",
  8327. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8328. },
  8329. ],
  8330. isShowTools: false,
  8331. askCount: 1,
  8332. isFold: 1,
  8333. askTitle: "",
  8334. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8335. checkJson: [{ checkCount: [], checkPerent: [] }],
  8336. homeworkList: [],
  8337. });
  8338. }
  8339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8340. this.$forceUpdate();
  8341. },
  8342. pasteStage() {
  8343. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8344. if (!iframe) {
  8345. this.$message.error("请使用AI共创生成");
  8346. return;
  8347. }
  8348. let copyData = iframe.contentWindow.copyData;
  8349. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8350. this.$message.error("请使用AI共创生成");
  8351. return;
  8352. }
  8353. let stageData = copyData.stageData;
  8354. let stage = [];
  8355. for (var i = 0; i < stageData.length; i++) {
  8356. stage.push({
  8357. dyName: stageData[i], //单元标题
  8358. chapterInfo: [
  8359. {
  8360. isread: false,
  8361. chapterid: this.guid(),
  8362. title: "",
  8363. courseName: "",
  8364. taskJson: [
  8365. {
  8366. task: "",
  8367. taskDetail: "",
  8368. chapterData: [],
  8369. toolText: "",
  8370. toolChoose: [
  8371. {
  8372. tool: [],
  8373. toolDetail: "",
  8374. toolType: 0,
  8375. askCount: 1,
  8376. askTitle: "",
  8377. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8378. },
  8379. ],
  8380. isShowTools: false,
  8381. askCount: 1,
  8382. isFold: 1,
  8383. askTitle: "",
  8384. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8385. checkJson: [{ checkCount: [], checkPerent: [] }],
  8386. homeworkList: [],
  8387. },
  8388. ],
  8389. itemCount: 1,
  8390. fileList1: [],
  8391. video: [],
  8392. testData: [],
  8393. pData: [],
  8394. templateArray: [],
  8395. },
  8396. ],
  8397. });
  8398. }
  8399. let _this = this;
  8400. _this
  8401. .$confirm("确定选择智能粘贴模板吗?修改培训时无法重置培训模板。", "提示", {
  8402. confirmButtonText: "确定",
  8403. cancelButtonText: "取消",
  8404. type: "warning",
  8405. })
  8406. .then(() => {
  8407. _this.unitIndex = 0;
  8408. _this.unitJson = stage;
  8409. // _this.steps++;
  8410. _this.updateWork();
  8411. })
  8412. .catch(() => {
  8413. return;
  8414. });
  8415. },
  8416. openStageBox() {
  8417. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  8418. this.dialogVisibleStageChange = true;
  8419. },
  8420. updateChange() {
  8421. this.$confirm(
  8422. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8423. "提示",
  8424. {
  8425. confirmButtonText: "确定",
  8426. cancelButtonText: "取消",
  8427. type: "warning",
  8428. }
  8429. )
  8430. .then(() => {
  8431. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  8432. this.updateWork()
  8433. this.dialogVisibleStageChange = false;
  8434. })
  8435. .catch(() => {
  8436. return;
  8437. });
  8438. },
  8439. addAnswer() {
  8440. if (this.answerQ == "") {
  8441. this.$message.error("请输入您想要问的问题");
  8442. return;
  8443. }
  8444. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8445. this.taskCount
  8446. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8447. this.dialogVisible8 = false;
  8448. if (
  8449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8450. .toolChoose[this.toolIndex].tool != 15
  8451. ) {
  8452. this.addTools(15, this.taskCount, this.toolIndex);
  8453. }
  8454. },
  8455. addMp3Answer() {
  8456. if (this.answerQ == "") {
  8457. this.$message.error("请输入您想要回答的问题");
  8458. return;
  8459. }
  8460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8461. this.taskCount
  8462. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8463. this.dialogVisibleMp3 = false;
  8464. },
  8465. addRateAnswer() {
  8466. var a = 1;
  8467. for (var i = 0; i < this.rateJson.length; i++) {
  8468. if (this.rateJson[i].value == "") {
  8469. a = 2;
  8470. break;
  8471. }
  8472. }
  8473. if (a == 2) {
  8474. this.$message.error("请把评价信息填写完整");
  8475. return;
  8476. }
  8477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8478. this.taskCount
  8479. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8480. this.dialogVisibleRate = false;
  8481. if (
  8482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8483. .toolChoose[this.toolIndex].tool != 40
  8484. ) {
  8485. this.addTools(40, this.taskCount, this.toolIndex);
  8486. }
  8487. },
  8488. addSelectAnswer() {
  8489. if (this.selectJson.url == "") {
  8490. this.$message.error("请上传题目");
  8491. return;
  8492. }
  8493. if (!this.selectJson.select.length) {
  8494. this.$message.error("请添加选项");
  8495. return;
  8496. }
  8497. if (!this.selectJson.answer.length) {
  8498. this.$message.error("请设置答案");
  8499. return;
  8500. }
  8501. var a = 1;
  8502. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8503. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8504. a = 2;
  8505. }
  8506. }
  8507. if (a == 2) {
  8508. this.$message.error("请设置答案");
  8509. return;
  8510. }
  8511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8512. this.taskCount
  8513. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8514. this.dialogVisibleSelect = false;
  8515. if (
  8516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8517. .toolChoose[this.toolIndex].tool != 41
  8518. ) {
  8519. this.addTools(41, this.taskCount, this.toolIndex);
  8520. }
  8521. },
  8522. nextSelectSteps() {
  8523. if (this.selectJson.url == "") {
  8524. this.$message.error("请上传题目");
  8525. return;
  8526. }
  8527. if (!this.selectJson.select.length) {
  8528. this.$message.error("请添加选项");
  8529. return;
  8530. } else {
  8531. for (var z = 0; z < this.selectJson.select.length; z++) {
  8532. let checkC = this.selectJson.select[z];
  8533. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8534. let checkC2 = this.selectJson.select[z2];
  8535. if (checkC == checkC2) {
  8536. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8537. return;
  8538. }
  8539. }
  8540. }
  8541. }
  8542. var a = 1;
  8543. for (var i = 0; i < this.selectJson.select.length; i++) {
  8544. if (!this.selectJson.select[i]) {
  8545. a = 2;
  8546. }
  8547. }
  8548. if (a == 2) {
  8549. this.$message.error("添加的选项不能为空");
  8550. return;
  8551. }
  8552. this.selectSteps++;
  8553. },
  8554. selectCourseDetail() {
  8555. if (this.cid == "" || this.cid == undefined) {
  8556. console.log("这是新增培训");
  8557. this.selectAllType();
  8558. } else {
  8559. this.cidType = 1;
  8560. let params = {
  8561. cid: this.cid,
  8562. };
  8563. this.ajax
  8564. .get(this.$store.state.api + "select_trainCourse_detail", params)
  8565. .then((res) => {
  8566. this.loading = true;
  8567. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8568. this.courseState = res.data[0][0].state
  8569. for (var j = 0; j < this.unitJson.length; j++) {
  8570. for (
  8571. var k = 0;
  8572. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8573. k++
  8574. ) {
  8575. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8576. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8577. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8578. : [];
  8579. let _chapterData = [];
  8580. for (
  8581. var c = 0;
  8582. c <
  8583. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8584. .length;
  8585. c++
  8586. ) {
  8587. if (
  8588. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8589. ) {
  8590. _chapterData.push(
  8591. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8592. );
  8593. }
  8594. }
  8595. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8596. _chapterData;
  8597. }
  8598. }
  8599. this.$forceUpdate();
  8600. this.courseName = res.data[0][0].title;
  8601. this.courseText = res.data[0][0].brief;
  8602. this.evalua = res.data[0][0].evaId;
  8603. this.cover = JSON.parse(res.data[0][0].cover);
  8604. this.noneBtnImg = this.cover.length >= 1;
  8605. // this.checkboxList =
  8606. // res.data[0][0].course_student.length > 0
  8607. // ? JSON.parse(res.data[0][0].course_student)
  8608. // : [];
  8609. this.checkboxList2 = res.data[0][0].juri
  8610. ? res.data[0][0].juri.split(",")
  8611. : [];
  8612. this.inviteCode = [];
  8613. for (var i = 0; i < res.data[2].length; i++) {
  8614. this.inviteCode.push({
  8615. cid: res.data[2][i].classid,
  8616. ic: res.data[2][i].code,
  8617. });
  8618. }
  8619. this.checkboxList3 = res.data[0][0].course_teacher
  8620. ? res.data[0][0].course_teacher.split(",")
  8621. : [];
  8622. // this.isTeacherSee =
  8623. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8624. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8625. this.myWord = res.data[0][0].template;
  8626. this.templateC.id = "123";
  8627. this.courseUserid = res.data[0][0].userid;
  8628. // if(this.courseUserid == this.userid){
  8629. // this.InviteChange(this.checkboxList2)
  8630. // }
  8631. this.nbOrder = res.data[0][0].ordernumber;
  8632. this.courseTypeId = [];
  8633. for (var i = 0; i < res.data[1].length; i++) {
  8634. this.courseTypeId.push(res.data[1][i].typeid);
  8635. }
  8636. console.log(this.courseTypeId);
  8637. // if (this.timer) clearInterval(this.timer);
  8638. if (this.timer) clearTimeout(this.timer);
  8639. this.timer = null;
  8640. // this.timer = setInterval(() => {
  8641. this.seleteCourseUpdate();
  8642. this.setMan();
  8643. this.selectAllType();
  8644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8645. // }, 5000);
  8646. this.$forceUpdate();
  8647. setTimeout(() => {
  8648. this.checkEva(this.evalua);
  8649. setTimeout(() => {
  8650. this.checkEva(this.evalua);
  8651. }, 100);
  8652. }, 100);
  8653. })
  8654. .catch((err) => {
  8655. console.error(err);
  8656. });
  8657. }
  8658. },
  8659. seleteCourseUpdate() {
  8660. let params = {
  8661. cid: this.cid,
  8662. };
  8663. this.ajax
  8664. .get(this.$store.state.api + "select_trainCourse_detail", params)
  8665. .then((res) => {
  8666. // console.log(this.unitJson);
  8667. let unitJson = JSON.parse(res.data[0][0].chapters);
  8668. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8669. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8670. let _unitJson = [];
  8671. let _chapAarry = [];
  8672. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8673. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8674. let index = 1;
  8675. let chapindex;
  8676. if (_unitJson2.length > unitJson.length) {
  8677. for (let c = 0; c < _unitJson2.length; c++) {
  8678. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8679. }
  8680. for (let j = 0; j < unitJson.length; j++) {
  8681. let count = 0;
  8682. for (let k = 0; k < _unitJson2.length; k++) {
  8683. if (
  8684. unitJson[j].chapterInfo[0].chapterid ==
  8685. _unitJson2[k].chapterInfo[0].chapterid
  8686. ) {
  8687. count++;
  8688. _chapAarry.splice(
  8689. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8690. 1
  8691. );
  8692. _unitJson.push(unitJson[j]);
  8693. break;
  8694. }
  8695. }
  8696. // if(count === 0){
  8697. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8698. // }
  8699. }
  8700. for (let k = 0; k < _unitJson2.length; k++) {
  8701. if (_unitJson2[k].isUpdate == 1) {
  8702. _chapAarry.splice(
  8703. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8704. 1
  8705. );
  8706. _unitJson.push(_unitJson2[k]);
  8707. }
  8708. }
  8709. console.log(_chapAarry);
  8710. for (let d = 0; d < _unitJson2.length; d++) {
  8711. if (
  8712. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8713. ) {
  8714. if (_unitIndex == d) {
  8715. index = 2;
  8716. }
  8717. chapindex = d;
  8718. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8719. }
  8720. }
  8721. } else {
  8722. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8723. }
  8724. for (let i = 0; i < unitJson.length; i++) {
  8725. if (
  8726. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8727. _unitJson[i].chapterInfo[0].chapterid !=
  8728. unitJson[i].chapterInfo[0].chapterid
  8729. ) {
  8730. if (i == _unitJson.length - 1) {
  8731. // this.unitIndex++
  8732. _unitIndex2++;
  8733. }
  8734. _unitJson.splice(i, 0, unitJson[i]);
  8735. } else if (i > _unitJson.length - 1) {
  8736. _unitJson.push(unitJson[i]);
  8737. } else if (
  8738. _unitJson[i].chapterInfo[0].chapterid ==
  8739. unitJson[i].chapterInfo[0].chapterid
  8740. ) {
  8741. _unitJson[i] = unitJson[i];
  8742. }
  8743. // if (i == _unitIndex) {
  8744. // continue;
  8745. // } else
  8746. }
  8747. if (_chapAarry.length && index != 2) {
  8748. if (chapindex < _unitIndex) {
  8749. this.isDelete = 2;
  8750. // this.unitIndex--;
  8751. _unitIndex2--;
  8752. } else if (
  8753. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8754. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8755. ) {
  8756. this.isDelete = 2;
  8757. for (let n = 0; n < _unitJson.length; n++) {
  8758. if (
  8759. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8760. _unitJson[n].chapterInfo[0].chapterid
  8761. ) {
  8762. // this.unitIndex = n;
  8763. _unitIndex2 = n;
  8764. _unitJson[n] = _unitJson2[_unitIndex];
  8765. break;
  8766. }
  8767. }
  8768. }
  8769. } else if (index != 2) {
  8770. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8771. _unitJson2[_unitIndex];
  8772. for (
  8773. var ci = 0;
  8774. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8775. ci++
  8776. ) {
  8777. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8778. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8779. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8780. .toolChoose
  8781. : [];
  8782. let _chapterData = [];
  8783. for (
  8784. var c = 0;
  8785. c <
  8786. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8787. .length;
  8788. c++
  8789. ) {
  8790. if (
  8791. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8792. .chapterData[c]
  8793. ) {
  8794. _chapterData.push(
  8795. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8796. .chapterData[c]
  8797. );
  8798. }
  8799. }
  8800. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8801. _chapterData;
  8802. }
  8803. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8804. }
  8805. if (index == 1) {
  8806. this.unitJson = _unitJson;
  8807. this.$forceUpdate();
  8808. setTimeout(() => {
  8809. if (this.unitIndex != _unitIndex2) {
  8810. this.isDelete = 2;
  8811. this.unitIndex = _unitIndex2;
  8812. }
  8813. }, 0);
  8814. this.timer = setTimeout(() => {
  8815. this.seleteCourseUpdate();
  8816. }, 1000);
  8817. } else if (index == 2) {
  8818. let _this = this;
  8819. _this
  8820. .$confirm(
  8821. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8822. "提示",
  8823. {
  8824. confirmButtonText: "需要",
  8825. cancelButtonText: "取消",
  8826. type: "warning",
  8827. }
  8828. )
  8829. .then(() => {
  8830. if (_this.time()) {
  8831. _this.restoreWork(
  8832. _chapAarry[0],
  8833. _unitJson,
  8834. chapindex,
  8835. _unitJson2,
  8836. _unitIndex2
  8837. );
  8838. }
  8839. })
  8840. .catch(() => {
  8841. _this.unitJson = _unitJson;
  8842. _this.$forceUpdate();
  8843. setTimeout(() => {
  8844. if (this.unitIndex != _unitIndex2) {
  8845. this.isDelete = 2;
  8846. this.unitIndex = _unitIndex2;
  8847. }
  8848. }, 0);
  8849. _this.timer = setTimeout(() => {
  8850. _this.seleteCourseUpdate();
  8851. }, 1000);
  8852. });
  8853. }
  8854. })
  8855. .catch((err) => {
  8856. console.error(err);
  8857. });
  8858. },
  8859. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8860. let params = [
  8861. {
  8862. cid: this.cid,
  8863. chapters: JSON.stringify(this.unitJson),
  8864. uid: this.userid,
  8865. chapid: chapid,
  8866. },
  8867. ];
  8868. this.ajax
  8869. .post(this.$store.state.api + "restoreTrainCourse", params)
  8870. .then((res) => {
  8871. this.$message({
  8872. message: "恢复成功",
  8873. type: "success",
  8874. });
  8875. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8876. this.unitJson = unitJson;
  8877. this.$forceUpdate();
  8878. setTimeout(() => {
  8879. if (this.unitIndex != unitIndex2) {
  8880. this.isDelete = 2;
  8881. this.unitIndex = unitIndex2;
  8882. }
  8883. }, 0);
  8884. this.timer = setTimeout(() => {
  8885. this.seleteCourseUpdate();
  8886. }, 1000);
  8887. })
  8888. .catch((err) => {
  8889. this.$message.error("网络不佳");
  8890. console.error(err);
  8891. });
  8892. },
  8893. getTypeName() {
  8894. console.log(this.courseTypeId);
  8895. this.$forceUpdate();
  8896. },
  8897. selectAllType() {
  8898. let params = {
  8899. org: this.org && this.org != "" ? this.org : "",
  8900. oid: this.oid && this.oid != "" ? this.oid : "",
  8901. };
  8902. this.ajax
  8903. .get(this.$store.state.api + "selectAllTrainType", params)
  8904. .then((res) => {
  8905. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8906. res.data[0] = [...res.data[0], ...res.data[4]]
  8907. }
  8908. this.CourseType = res.data;
  8909. this.CourseType2 = [
  8910. { name: "智见培训", id: [] },
  8911. { name: "智行培训", id: [] },
  8912. { name: "智创培训", id: [] },
  8913. ];
  8914. for (var cti = 0; cti < res.data[0].length; cti++) {
  8915. if (
  8916. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8917. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8918. ) {
  8919. this.CourseType2[0].id.push(res.data[0][cti].id);
  8920. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8921. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8922. this.CourseType2[1].id.push(res.data[0][cti].id);
  8923. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8924. this.CourseType2[2].id.push(res.data[0][cti].id);
  8925. }
  8926. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8927. res.data[0][cti].name = "年级";
  8928. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8929. res.data[0][cti].name = "学科";
  8930. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8931. res.data[0][cti].name = "主题";
  8932. }
  8933. }
  8934. let _courseTypeId = [];
  8935. for (var i = 0; i < res.data[0].length; i++) {
  8936. if (!this.cid) {
  8937. this.courseTypeId[res.data[0][i].id] = [];
  8938. }
  8939. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8940. // }
  8941. this.CourseTypeJson[res.data[0][i].id] = [];
  8942. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8943. if (res.data[0][i].name == "栏目") {
  8944. this.CourseType[0][i].name = "主题";
  8945. }
  8946. }
  8947. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8948. for (var j = 0; j < res.data[1].length; j++) {
  8949. if (
  8950. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8951. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8952. ) {
  8953. _courseTypeId.push(res.data[1][j].id);
  8954. }
  8955. if (res.data[0][i].id == res.data[1][j].pid) {
  8956. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8957. }
  8958. }
  8959. } else {
  8960. if (res.data[2].length > 0) {
  8961. for (var j = 0; j < res.data[2].length; j++) {
  8962. if (
  8963. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8964. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8965. ) {
  8966. _courseTypeId.push(res.data[2][j].id);
  8967. }
  8968. if (res.data[0][i].id == res.data[2][j].pid) {
  8969. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8970. }
  8971. }
  8972. }
  8973. if (res.data[3].length > 0) {
  8974. for (var j = 0; j < res.data[3].length; j++) {
  8975. if (
  8976. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8977. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8978. ) {
  8979. _courseTypeId.push(res.data[3][j].id);
  8980. }
  8981. if (res.data[0][i].id == res.data[3][j].pid) {
  8982. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8983. }
  8984. }
  8985. }
  8986. }
  8987. }
  8988. this.courseTypeId = _courseTypeId;
  8989. })
  8990. .catch((err) => {
  8991. console.error(err);
  8992. });
  8993. },
  8994. selectType() {
  8995. this.ajax
  8996. .get(this.$store.state.api + "selectType")
  8997. .then((res) => {
  8998. this.CourseType = res.data;
  8999. for (var i = 0; i < res.data[0].length; i++) {
  9000. if (!this.cid) {
  9001. this.courseTypeId[res.data[0][i].id] = "";
  9002. }
  9003. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9004. if (res.data[0][i].name == "栏目") {
  9005. this.CourseType[0][i].name = "主题";
  9006. }
  9007. }
  9008. for (var j = 0; j < res.data[1].length; j++) {
  9009. if (res.data[0][i].id == res.data[1][j].pid) {
  9010. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9011. this.CourseTypeJson[res.data[0][i].id] = [];
  9012. }
  9013. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9014. }
  9015. }
  9016. }
  9017. this.selectTypeByOid();
  9018. this.selectTypeByOrg();
  9019. })
  9020. .catch((err) => {
  9021. console.error(err);
  9022. });
  9023. },
  9024. selectTypeByOid() {
  9025. let params = {
  9026. oid: this.oid,
  9027. };
  9028. this.ajax
  9029. .get(this.$store.state.api + "selectTypeByOid", params)
  9030. .then((res) => {
  9031. for (var i = 0; i < res.data[0].length; i++) {
  9032. for (var j = 0; j < res.data[1].length; j++) {
  9033. if (res.data[0][i].id == res.data[1][j].pid) {
  9034. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9035. this.CourseTypeJson[res.data[0][i].id] = [];
  9036. }
  9037. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9038. }
  9039. }
  9040. }
  9041. })
  9042. .catch((err) => {
  9043. console.error(err);
  9044. });
  9045. },
  9046. selectTypeByOrg() {
  9047. let params = {
  9048. oid: this.org,
  9049. };
  9050. this.ajax
  9051. .get(this.$store.state.api + "selectTypeByOrg", params)
  9052. .then((res) => {
  9053. for (var i = 0; i < res.data[0].length; i++) {
  9054. for (var j = 0; j < res.data[1].length; j++) {
  9055. if (res.data[0][i].id == res.data[1][j].pid) {
  9056. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9057. this.CourseTypeJson[res.data[0][i].id] = [];
  9058. }
  9059. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9060. }
  9061. }
  9062. }
  9063. this.$forceUpdate();
  9064. })
  9065. .catch((err) => {
  9066. console.error(err);
  9067. });
  9068. },
  9069. OtherMb(type, task) {
  9070. if(task === 0 || task){
  9071. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  9072. }
  9073. this.typeMode = type;
  9074. setTimeout(() => {
  9075. this.checkEva(this.checkId);
  9076. setTimeout(() => {
  9077. this.checkEva(this.checkId);
  9078. }, 100);
  9079. }, 100);
  9080. },
  9081. openMember() {
  9082. this.searchTN = "";
  9083. this.getTeacher();
  9084. this.dialogVisibleMember = true;
  9085. },
  9086. checkEva(id, type) {
  9087. this.dialogVisiblemb = false;
  9088. this.selectEva();
  9089. if (this.evalua != id && type == 2) {
  9090. this.$message.success("导入成功");
  9091. setTimeout(() => {
  9092. this.checkEva(id)
  9093. }, 100);
  9094. }
  9095. this.evalua = id;
  9096. this.checkId = id;
  9097. if (this.evalua != "") {
  9098. for (var i = 0; i < this.evaJuri.length; i++) {
  9099. if (this.evalua == this.evaJuri[i].id) {
  9100. this.eTitle = this.evaJuri[i].title;
  9101. this.eJson = JSON.parse(this.evaJuri[i].content);
  9102. }
  9103. }
  9104. this.data.data = [];
  9105. this.$forceUpdate();
  9106. setTimeout(() => {
  9107. this.setMindData();
  9108. }, 1000);
  9109. }
  9110. },
  9111. deleteEva() {
  9112. let _this = this;
  9113. if (_this.evalua == "") {
  9114. this.$message.warning("内容已经清空了,请勿重复清空");
  9115. return;
  9116. }
  9117. _this
  9118. .$confirm("确定删除此目标吗?", "提示", {
  9119. confirmButtonText: "确定",
  9120. cancelButtonText: "取消",
  9121. type: "warning",
  9122. })
  9123. .then(() => {
  9124. _this.evalua = "";
  9125. _this.checkId = "";
  9126. _this.eTitle = "";
  9127. let _unitJson = _this.unitJson;
  9128. for (var i = 0; i < _unitJson.length; i++) {
  9129. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9130. for (var j = 0; j < _task.length; j++) {
  9131. let _eList = _task[j].eList;
  9132. for (var k = 0; k < _eList.length; k++) {
  9133. delete _eList[k].target;
  9134. }
  9135. }
  9136. }
  9137. _this.$forceUpdate();
  9138. if (_this.cid) {
  9139. _this.updateWork();
  9140. }
  9141. })
  9142. .catch(() => {
  9143. return;
  9144. });
  9145. },
  9146. selectEva() {
  9147. let params = {
  9148. oid: this.oid,
  9149. };
  9150. this.ajax
  9151. .get(this.$store.state.api + "selectAllEvaluation", params)
  9152. .then((res) => {
  9153. this.evaJuri = res.data[0];
  9154. })
  9155. .catch((err) => {
  9156. console.error(err);
  9157. });
  9158. },
  9159. setMindData() {
  9160. let targetArray = [];
  9161. this.data.data = [];
  9162. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9163. let _eJson = Object.keys(this.eJson);
  9164. let _e = this.eJson;
  9165. for (let i = 0; i < _eJson.length; i++) {
  9166. let element = _e[_eJson[i]];
  9167. this.data.data.push({
  9168. id: element.id,
  9169. parentid: "root",
  9170. topic: element.name,
  9171. });
  9172. // targetArray.push({
  9173. // id: element.id,
  9174. // parentid: "root",
  9175. // name: element.name,
  9176. // });
  9177. targetArray.push({
  9178. value: element.name,
  9179. label: element.name,
  9180. children: [],
  9181. });
  9182. let _eJsonc = Object.keys(element.child);
  9183. let _e2 = element.child;
  9184. for (let j = 0; j < _eJsonc.length; j++) {
  9185. let _ec = _e2[_eJsonc[j]];
  9186. this.data.data.push({
  9187. id: _ec.id,
  9188. parentid: element.id,
  9189. topic: _ec.name,
  9190. });
  9191. // targetArray.push({
  9192. // id: _ec.id,
  9193. // parentid: element.id,
  9194. // name: _ec.name,
  9195. // });
  9196. targetArray[i].children.push({
  9197. value: _ec.name,
  9198. label: _ec.name,
  9199. children: [],
  9200. });
  9201. let _eJsonz = Object.keys(_ec.child);
  9202. let _e3 = _ec.child;
  9203. for (let z = 0; z < _eJsonz.length; z++) {
  9204. let _ez = _e3[_eJsonz[z]];
  9205. this.data.data.push({
  9206. id: _ez.id,
  9207. parentid: _ec.id,
  9208. topic: _ez.name,
  9209. });
  9210. // targetArray.push({
  9211. // id: _ez.id,
  9212. // parentid: _ec.id,
  9213. // name: _ez.name,
  9214. // });
  9215. targetArray[i].children[j].children.push({
  9216. value: _ez.name,
  9217. label: _ez.name,
  9218. });
  9219. }
  9220. }
  9221. }
  9222. this.targetArray = targetArray;
  9223. this.$forceUpdate();
  9224. },
  9225. /*添加评价 */
  9226. addEList(index, tIndex) {
  9227. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9228. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9229. value: "",
  9230. detail: "",
  9231. score: 5,
  9232. })
  9233. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9234. { value: "", detail: "", score: 5 },
  9235. ]);
  9236. this.$forceUpdate();
  9237. },
  9238. forceUpdate() {
  9239. this.$forceUpdate();
  9240. },
  9241. deletEList(index, tIndex, eIndex) {
  9242. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9243. eIndex,
  9244. 1
  9245. );
  9246. this.$forceUpdate();
  9247. },
  9248. getChoosePic(t) {
  9249. this.chooseType = t;
  9250. this.getAllBanner();
  9251. },
  9252. getAllBanner() {
  9253. this.sysPicVisible = true;
  9254. let params = {
  9255. t: this.chooseType,
  9256. };
  9257. this.ajax
  9258. .get(this.$store.state.api + "selectAllBanner", params)
  9259. .then((res) => {
  9260. this.sysPic = res.data[0];
  9261. })
  9262. .catch((err) => {
  9263. console.error(err);
  9264. });
  9265. },
  9266. // getClass() {
  9267. // let params = {
  9268. // oid: this.oid,
  9269. // };
  9270. // this.ajax
  9271. // .get(this.$store.state.api + "selectClassBySchool", params)
  9272. // .then((res) => {
  9273. // this.classJuri = res.data[0];
  9274. // })
  9275. // .catch((err) => {
  9276. // console.error(err);
  9277. // });
  9278. // },
  9279. deleteSysPic() {
  9280. this.cover = [];
  9281. this.isSysPic = false;
  9282. this.isSysPic2 = false;
  9283. },
  9284. deleteSelectPic() {
  9285. this.selectJson.url = "";
  9286. },
  9287. setEListStar() {
  9288. this.$forceUpdate();
  9289. },
  9290. deletRateList(i) {
  9291. this.rateJson.splice(i, 1);
  9292. },
  9293. addRateList() {
  9294. this.rateJson.push({ detail: "", score: 5, value: "" });
  9295. },
  9296. addSt() {
  9297. this.sentenceList.push({
  9298. sentenceTitle: "",
  9299. addSentence: [],
  9300. rightAnswer: [],
  9301. });
  9302. },
  9303. addSen(i) {
  9304. if (!this.sentenceList[i].sentenceTitle) {
  9305. this.$message.error("请填写卡片内容!");
  9306. return;
  9307. }
  9308. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9309. this.$message.error("卡片内容字数不能超过10位");
  9310. return;
  9311. }
  9312. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9313. this.$message.error("不能添加重复的卡片内容!");
  9314. return;
  9315. }
  9316. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9317. // this.isPushTitleList.push(this.sentenceTitle);
  9318. this.sentenceList[i].sentenceTitle = "";
  9319. },
  9320. setRightAnswer(s, i, j) {
  9321. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9322. this.sentenceList[i].rightAnswer.push(s);
  9323. }
  9324. },
  9325. returnCard(r, i, j) {
  9326. this.sentenceList[i].rightAnswer.splice(j, 1);
  9327. },
  9328. addSentenceTool() {
  9329. for (var i = 0; i < this.sentenceList.length; i++) {
  9330. if (this.sentenceList[i].rightAnswer.length == 0) {
  9331. this.$message.error(`请将题目${i + 1}设置完整。`);
  9332. return;
  9333. }
  9334. if (
  9335. this.sentenceList[i].addSentence.length !=
  9336. this.sentenceList[i].rightAnswer.length
  9337. ) {
  9338. this.$message.error(`请将题目${i + 1}设置完整。`);
  9339. return;
  9340. }
  9341. }
  9342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9343. this.taskCount
  9344. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9345. this.sentenceList = [
  9346. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9347. ];
  9348. this.dialogVisibleSentence = false;
  9349. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9350. // itemTaskIndex
  9351. // ].toolChoose[toolIndex].tool = [];
  9352. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9353. // itemTaskIndex
  9354. // ].toolChoose[toolIndex].tool.push(i);
  9355. if (
  9356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9357. .toolChoose[this.toolIndex].tool != 47
  9358. ) {
  9359. this.addTools(47, this.taskCount, this.toolIndex);
  9360. }
  9361. },
  9362. addTableJson() {
  9363. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9364. // this.$message.error("请将信息填写完整!");
  9365. // return;
  9366. // }
  9367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9368. this.taskCount
  9369. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9370. // this.tableJson = [{ text: "" }];
  9371. // this.dialogVisibleTable = false;
  9372. this.$message.success("上传成功");
  9373. if (
  9374. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9375. .toolChoose[this.toolIndex].tool != 48
  9376. ) {
  9377. this.addTools(48, this.taskCount, this.toolIndex);
  9378. }
  9379. },
  9380. addWordJson() {
  9381. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9382. this.taskCount
  9383. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9384. // this.wordJson = [{ text: "" }];
  9385. // this.dialogVisibleWord = false;
  9386. this.$message.success("上传成功");
  9387. if (
  9388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9389. .toolChoose[this.toolIndex].tool != 52
  9390. ) {
  9391. this.addTools(52, this.taskCount, this.toolIndex);
  9392. }
  9393. },
  9394. addMoreUpload() {
  9395. if (this.uploadJson.length == 0) {
  9396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9397. this.taskCount
  9398. ].toolChoose[this.toolIndex].uploadJson = [];
  9399. } else {
  9400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9401. this.taskCount
  9402. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9403. }
  9404. this.uploadJson = [];
  9405. this.dialogVisibleMoreUpload = false;
  9406. if (
  9407. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9408. .toolChoose[this.toolIndex].tool != 50
  9409. ) {
  9410. this.addTools(50, this.taskCount, this.toolIndex);
  9411. }
  9412. },
  9413. addPreTime() {
  9414. if (this.preTime == 0) {
  9415. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9416. this.taskCount
  9417. ].toolChoose[this.toolIndex].preTime = 0;
  9418. } else {
  9419. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9420. this.taskCount
  9421. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9422. }
  9423. this.preTime = 0;
  9424. this.dialogVisiblePreTime = false;
  9425. if (
  9426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9427. .toolChoose[this.toolIndex].tool != 10
  9428. ) {
  9429. this.addTools(10, this.taskCount, this.toolIndex);
  9430. }
  9431. },
  9432. goToTask(i) {
  9433. this.toolIndexType = ''
  9434. if (this.isClickColor == (i + 1)) {
  9435. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9436. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9437. // } else {
  9438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9439. // }
  9440. this.$forceUpdate();
  9441. return;
  9442. }
  9443. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9444. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9445. // } else {
  9446. document.querySelectorAll(".basic_box")[0].scrollTop =
  9447. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9448. this.isClickColor = i + 1;
  9449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9450. // }
  9451. this.$forceUpdate();
  9452. },
  9453. taskOpen(i, stageIndex){
  9454. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9455. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9456. } else {
  9457. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9458. }
  9459. this.updateWork3(stageIndex)
  9460. this.$forceUpdate();
  9461. },
  9462. goToTask2(i, stage) {
  9463. this.toolIndexType = ''
  9464. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  9465. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9466. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9467. // } else {
  9468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9469. // }
  9470. this.$forceUpdate();
  9471. return;
  9472. }
  9473. if(this.unitIndex != stage){
  9474. if(this.panUnitJson() == 2){
  9475. return;
  9476. }
  9477. this.unitSet(stage)
  9478. }
  9479. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9480. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9481. // } else {
  9482. document.querySelectorAll(".basic_box")[0].scrollTop =
  9483. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9484. this.isClickColor = i + 1;
  9485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9486. // }
  9487. this.$forceUpdate();
  9488. },
  9489. taskMove(type, index) {
  9490. this.$confirm(
  9491. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9492. "提示",
  9493. {
  9494. confirmButtonText: "确定",
  9495. cancelButtonText: "取消",
  9496. type: "warning",
  9497. }
  9498. )
  9499. .then(() => {
  9500. if (type == 1) {
  9501. if (index > 0) {
  9502. let a = JSON.parse(
  9503. JSON.stringify(
  9504. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9505. index - 1
  9506. ]
  9507. )
  9508. );
  9509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9510. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9512. }
  9513. } else {
  9514. if (
  9515. index <
  9516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9517. ) {
  9518. let a = JSON.parse(
  9519. JSON.stringify(
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9521. index + 1
  9522. ]
  9523. )
  9524. );
  9525. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9528. }
  9529. }
  9530. this.$forceUpdate();
  9531. })
  9532. .catch(() => {
  9533. return;
  9534. });
  9535. },
  9536. stageMove(type, index) {
  9537. if (type == 1) {
  9538. if (index > 0) {
  9539. let a = JSON.parse(
  9540. JSON.stringify(
  9541. this.unitJson3[index - 1]
  9542. )
  9543. );
  9544. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  9545. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9546. this.unitJson3[index - 1] = this.unitJson3[index];
  9547. this.unitJson3[index] = a;
  9548. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  9549. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9550. }
  9551. } else {
  9552. if (
  9553. index <
  9554. this.unitJson3.length - 1
  9555. ) {
  9556. let a = JSON.parse(
  9557. JSON.stringify(
  9558. this.unitJson3[
  9559. index + 1
  9560. ]
  9561. )
  9562. );
  9563. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  9564. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9565. this.unitJson3[index + 1] =
  9566. this.unitJson3[index];
  9567. this.unitJson3[index] = a;
  9568. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  9569. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9570. }
  9571. }
  9572. this.$forceUpdate();
  9573. },
  9574. addGroup(i) {
  9575. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9576. this.groupJson.group.push({
  9577. name: "第" + (this.groupJson.group.length + 1) + "组",
  9578. });
  9579. },
  9580. deleteGroup(i) {
  9581. this.groupJson.group.splice(i, 1);
  9582. },
  9583. numberPan() {
  9584. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9585. this.$message.error('请输入2-10的数字')
  9586. this.groupJson.number = ''
  9587. }
  9588. },
  9589. addGroupJson() {
  9590. for (var i = 0; i < this.groupJson.group.length; i++) {
  9591. if (!this.groupJson.group[i].name) {
  9592. this.$message.error("请将信息填写完整!");
  9593. return;
  9594. }
  9595. }
  9596. if (!this.groupJson.number) {
  9597. this.$message.error("请将信息填写完整!");
  9598. return;
  9599. }
  9600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9601. this.taskCount
  9602. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9603. JSON.stringify(this.groupJson)
  9604. );
  9605. this.dialogVisibleGroup = false;
  9606. this.groupJson = {};
  9607. if (
  9608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9609. .toolChoose[this.toolIndex].tool != 49
  9610. ) {
  9611. this.addTools(49, this.taskCount, this.toolIndex);
  9612. }
  9613. },
  9614. updateTime(preTime) {
  9615. this.preTime = preTime;
  9616. },
  9617. InviteChange(val) {
  9618. console.log(val);
  9619. let _check = []
  9620. let _check2 = []
  9621. for (var i = 0; i < this.grade2.length; i++) {
  9622. var gid = this.grade2[i].id
  9623. _check.push(gid)
  9624. }
  9625. for (var i = 0; i < this.checkboxList2.length; i++) {
  9626. var _id = this.checkboxList2[i]
  9627. if (_check.indexOf(_id) !== -1) {
  9628. _check2.push(_id)
  9629. }
  9630. }
  9631. this.checkAll = _check2.length === _check.length;
  9632. return;
  9633. let array = JSON.parse(JSON.stringify(val));
  9634. this.inviteCode = this.inviteCode.filter((el) => {
  9635. if (val.indexOf(el.cid) != -1) {
  9636. array.splice(array.indexOf(el.cid), 1);
  9637. return el;
  9638. }
  9639. });
  9640. for (var i = 0; i < array.length; i++) {
  9641. this.getInviteCode(array[i]);
  9642. }
  9643. },
  9644. InviteChange2(val) {
  9645. console.log(val);
  9646. let _check = []
  9647. let _check2 = []
  9648. for (var i = 0; i < this.teacherJuri.length; i++) {
  9649. var gid = this.teacherJuri[i].userid
  9650. _check.push(gid)
  9651. }
  9652. for (var i = 0; i < this.checkboxList3.length; i++) {
  9653. var _id = this.checkboxList3[i]
  9654. if (_check.indexOf(_id) !== -1) {
  9655. _check2.push(_id)
  9656. }
  9657. }
  9658. this.checkAll2 = _check2.length === _check.length;
  9659. this.setMan();
  9660. return;
  9661. let array = JSON.parse(JSON.stringify(val));
  9662. this.inviteCode = this.inviteCode.filter((el) => {
  9663. if (val.indexOf(el.cid) != -1) {
  9664. array.splice(array.indexOf(el.cid), 1);
  9665. return el;
  9666. }
  9667. });
  9668. for (var i = 0; i < array.length; i++) {
  9669. this.getInviteCode(array[i]);
  9670. }
  9671. },
  9672. handleCheckAllChange(val) {
  9673. if (val) {
  9674. for (var i = 0; i < this.grade2.length; i++) {
  9675. var gid = this.grade2[i].id
  9676. if (this.checkboxList2.indexOf(gid) === -1) {
  9677. this.checkboxList2.push(gid)
  9678. }
  9679. }
  9680. } else {
  9681. let _check = []
  9682. let _check2 = []
  9683. for (var i = 0; i < this.grade2.length; i++) {
  9684. var gid = this.grade2[i].id
  9685. _check.push(gid)
  9686. }
  9687. for (var i = 0; i < this.checkboxList2.length; i++) {
  9688. var _id = this.checkboxList2[i]
  9689. if (_check.indexOf(_id) === -1) {
  9690. _check2.push(_id)
  9691. }
  9692. }
  9693. this.checkboxList2 = _check2
  9694. }
  9695. this.isIndeterminate = false;
  9696. },
  9697. handleCheckAllChange2(val) {
  9698. if (val) {
  9699. for (var i = 0; i < this.teacherJuri.length; i++) {
  9700. var gid = this.teacherJuri[i].userid
  9701. if (this.checkboxList3.indexOf(gid) === -1) {
  9702. this.checkboxList3.push(gid)
  9703. }
  9704. }
  9705. } else {
  9706. let _check = []
  9707. let _check2 = []
  9708. for (var i = 0; i < this.teacherJuri.length; i++) {
  9709. var gid = this.teacherJuri[i].userid
  9710. _check.push(gid)
  9711. }
  9712. for (var i = 0; i < this.checkboxList3.length; i++) {
  9713. var _id = this.checkboxList3[i]
  9714. if (_check.indexOf(_id) === -1) {
  9715. _check2.push(_id)
  9716. }
  9717. }
  9718. this.checkboxList3 = _check2
  9719. }
  9720. this.isIndeterminate2 = false;
  9721. },
  9722. async getInviteCode(cid) {
  9723. let code = this.randomNumber();
  9724. let params = {
  9725. code: code,
  9726. oid: this.oid,
  9727. };
  9728. let type = 1;
  9729. for (var i = 0; i < this.inviteCode.length; i++) {
  9730. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9731. type = 2;
  9732. }
  9733. }
  9734. if (type == 2) {
  9735. this.getInviteCode(cid);
  9736. return;
  9737. }
  9738. const res = await this.ajax.get(
  9739. this.$store.state.api + "selectInviteCode2",
  9740. params
  9741. );
  9742. if (
  9743. res.data.length &&
  9744. res.data[0].length &&
  9745. res.data[0][0].courseId != this.cid
  9746. ) {
  9747. this.getInviteCode(cid);
  9748. return;
  9749. }
  9750. let array = [];
  9751. for (var i = 0; i < this.inviteCode.length; i++) {
  9752. array.push(this.inviteCode[i].cid);
  9753. }
  9754. if (array.indexOf(cid) != -1) {
  9755. this.inviteCode[array.indexOf(cid)].ic = code;
  9756. } else {
  9757. this.inviteCode.push({ cid: cid, ic: code });
  9758. }
  9759. },
  9760. OpenInviteD(cid) {
  9761. let array = [];
  9762. this.icode = "";
  9763. for (var i = 0; i < this.inviteCode.length; i++) {
  9764. array.push(this.inviteCode[i].cid);
  9765. }
  9766. if (array.indexOf(cid) != -1) {
  9767. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9768. }
  9769. this.inviteId = cid;
  9770. this.dialogVisibleInvite = true;
  9771. },
  9772. addInvite() {
  9773. let reg = /^[A-Za-z0-9]{4,}$/;
  9774. if (!reg.test(this.icode)) {
  9775. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9776. return;
  9777. }
  9778. let type = 1;
  9779. for (var i = 0; i < this.inviteCode.length; i++) {
  9780. if (
  9781. this.inviteCode[i].cid != this.inviteId &&
  9782. this.icode == this.inviteCode[i].ic
  9783. ) {
  9784. type = 2;
  9785. }
  9786. }
  9787. if (type == 2) {
  9788. this.$message.error("已有此随机码,不能重复");
  9789. return;
  9790. }
  9791. let params = {
  9792. code: this.icode,
  9793. oid: this.oid,
  9794. };
  9795. this.ajax
  9796. .get(this.$store.state.api + "selectInviteCode", params)
  9797. .then((res) => {
  9798. if (
  9799. res.data.length &&
  9800. res.data[0].length &&
  9801. res.data[0][0].courseId != this.cid
  9802. ) {
  9803. this.$message.error("已有此随机码,不能重复");
  9804. return;
  9805. }
  9806. let array = [];
  9807. for (var i = 0; i < this.inviteCode.length; i++) {
  9808. array.push(this.inviteCode[i].cid);
  9809. }
  9810. if (array.indexOf(this.inviteId) != -1) {
  9811. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9812. } else {
  9813. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9814. }
  9815. this.icode = "";
  9816. this.dialogVisibleInvite = false;
  9817. })
  9818. .catch((err) => {
  9819. console.error(err);
  9820. });
  9821. },
  9822. randomNumber() {
  9823. // 随机生成两位数
  9824. // let num = Math.floor(Math.random() * 900) + 100;
  9825. // 生成 0 到 99 之间的随机整数
  9826. const randomNumber = Math.floor(Math.random() * 100);
  9827. // 如果随机数小于 10,补上前导零
  9828. const num =
  9829. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9830. // 随机生成两个大写字母
  9831. let letters = "";
  9832. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9833. for (let i = 0; i < 3; i++) {
  9834. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9835. }
  9836. // 随机生成两位数字和字母的组合
  9837. let mix = "";
  9838. let chars =
  9839. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9840. for (let i = 0; i < 3; i++) {
  9841. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9842. mix += char;
  9843. }
  9844. // 随机选择一种类型
  9845. let type = Math.floor(Math.random() * 3);
  9846. return num;
  9847. // 根据类型输出结果
  9848. switch (type) {
  9849. case 0:
  9850. console.log(num); // 输出两位数
  9851. return num;
  9852. case 1:
  9853. console.log(letters); // 输出两个大写字母
  9854. return letters;
  9855. case 2:
  9856. console.log(mix); // 输出两位数字和字母的组合
  9857. return mix;
  9858. }
  9859. },
  9860. getPaste() {
  9861. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9862. if (!iframe) {
  9863. return;
  9864. }
  9865. let copyData = iframe.contentWindow.copyData;
  9866. if (copyData && copyData.stageData && copyData.stageData.length) {
  9867. this.isPasteStage = true
  9868. }
  9869. if (copyData && copyData.selectData.length) {
  9870. this.isPasteChoice = true
  9871. }
  9872. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9873. this.isPasteTask = true
  9874. }
  9875. },
  9876. searchImage() {
  9877. var _this = this;
  9878. _this.imageList = []
  9879. if (!_this.searchImageValue) {
  9880. _this.sysPicVisible2 = true
  9881. return
  9882. }
  9883. _this.imageloading = true
  9884. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9885. page: _this.ppage,
  9886. pagesize: 9,
  9887. query: _this.searchImageValue
  9888. }).then(function (response) {
  9889. // console.log(response.data.data);
  9890. var data = response.data.FunctionResponse.result;
  9891. for (var i = 0; i < data.length; i++) {
  9892. _this.imageList.push({ url: data[i].thumbnail })
  9893. }
  9894. _this.imageloading = false
  9895. }).catch(function (error) {
  9896. console.log(error);
  9897. });
  9898. _this.sysPicVisible2 = true
  9899. },
  9900. changePicture() {
  9901. this.ppage++
  9902. this.searchImage()
  9903. },
  9904. resetImage() {
  9905. this.ppage = 1
  9906. this.searchImage()
  9907. },
  9908. jumpGj(i, j) {
  9909. if ((i + 1) != this.isClickColor) {
  9910. this.isClickColor = (i + 1)
  9911. }
  9912. var a = document.scrollingElement;
  9913. this.toolIndexType = `gj${i}${j}`
  9914. let target = document.querySelector(`#gj${i}${j}`);
  9915. if (target) {
  9916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9917. setTimeout(() => {
  9918. target.scrollIntoView(true);
  9919. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9920. setTimeout(() => {
  9921. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9922. }, 0);
  9923. }, 0);
  9924. }
  9925. },
  9926. jumpGj2(i, j, k) {
  9927. if(this.unitIndex != k){
  9928. if(this.panUnitJson() == 2){
  9929. return;
  9930. }
  9931. this.unitSet(k)
  9932. }
  9933. setTimeout(() => {
  9934. if ((i + 1) != this.isClickColor) {
  9935. this.isClickColor = (i + 1)
  9936. }
  9937. var a = document.scrollingElement;
  9938. this.toolIndexType = `gj${i}${j}${k}`
  9939. let target = document.querySelector(`#gj${i}${j}`);
  9940. if (target) {
  9941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9942. setTimeout(() => {
  9943. target.scrollIntoView(true);
  9944. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9945. setTimeout(() => {
  9946. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9947. }, 0);
  9948. }, 0);
  9949. }
  9950. }, 0);
  9951. },
  9952. dragStart(val, i, j) {
  9953. console.log(this.taskCount);
  9954. this.dragType = 'drag'
  9955. this.taskCount = j
  9956. this.oldIndex = i;
  9957. this.oldData = val;
  9958. },
  9959. dragOver(i, j) {
  9960. this.typeIndex = "chapter-" + j + '-' + i
  9961. this.newIndex = i;
  9962. },
  9963. dragEnd() {
  9964. if(this.dragType != 'drag'){
  9965. this.typeIndex = "";
  9966. this.newIndex = "";
  9967. this.dragType = "";
  9968. this.isdrag = "";
  9969. return;
  9970. }
  9971. console.log(this.taskCount);
  9972. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9973. // 删除老的节点
  9974. newItems.splice(this.oldIndex, 1);
  9975. // 在列表中目标位置增加新的节点
  9976. newItems.splice(this.newIndex, 0, this.oldData);
  9977. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9978. this.typeIndex = "";
  9979. this.newIndex = "";
  9980. this.dragType = "";
  9981. this.isdrag = "";
  9982. this.$forceUpdate()
  9983. },
  9984. dragTaskStart(val, i, j) {
  9985. this.dragType = 'task'
  9986. this.oldIndex = i;
  9987. this.oldData = val;
  9988. this.oldUnitIndex = j;
  9989. },
  9990. dragTaskOver(i, j) {
  9991. this.typeIndex = "task-" + i
  9992. this.newIndex = i;
  9993. this.checkUnitIndex = j;
  9994. },
  9995. async dragTaskEnd() {
  9996. if(this.dragType != 'task'){
  9997. this.newIndex = "";
  9998. this.dragType = "";
  9999. this.typeIndex = "";
  10000. this.checkUnitIndex = "";
  10001. this.isdrag = "";
  10002. return;
  10003. }
  10004. if((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)){
  10005. this.newIndex = "";
  10006. this.dragType = "";
  10007. this.typeIndex = "";
  10008. this.checkUnitIndex = "";
  10009. this.isdrag = "";
  10010. return;
  10011. }
  10012. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  10013. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  10014. if(count1 > 0 || count2 > 0){
  10015. this.$confirm(
  10016. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10017. "提示",
  10018. {
  10019. confirmButtonText: "确定",
  10020. cancelButtonText: "取消",
  10021. type: "warning",
  10022. }
  10023. )
  10024. .then(() => {
  10025. if(this.oldUnitIndex != this.checkUnitIndex){
  10026. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10027. // 删除老的节点
  10028. newItems.splice(this.oldIndex, 1);
  10029. // 在列表中目标位置增加新的节点
  10030. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10031. newItems2.splice(this.newIndex, 0, this.oldData);
  10032. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10033. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10034. }else{
  10035. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10036. // 删除老的节点
  10037. newItems.splice(this.oldIndex, 1);
  10038. // 在列表中目标位置增加新的节点
  10039. newItems.splice(this.newIndex, 0, this.oldData);
  10040. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10041. }
  10042. this.typeIndex = "";
  10043. this.newIndex = "";
  10044. this.dragType = "";
  10045. this.checkUnitIndex = "";
  10046. this.isdrag = "";
  10047. this.updateWork();
  10048. this.$forceUpdate()
  10049. })
  10050. .catch(() => {
  10051. this.newIndex = "";
  10052. this.dragType = "";
  10053. this.typeIndex = "";
  10054. this.checkUnitIndex = "";
  10055. this.isdrag = "";
  10056. return;
  10057. });
  10058. }else{
  10059. if(this.oldUnitIndex != this.checkUnitIndex){
  10060. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10061. // 删除老的节点
  10062. newItems.splice(this.oldIndex, 1);
  10063. // 在列表中目标位置增加新的节点
  10064. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10065. newItems2.splice(this.newIndex, 0, this.oldData);
  10066. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10067. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10068. }else{
  10069. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10070. // 删除老的节点
  10071. newItems.splice(this.oldIndex, 1);
  10072. // 在列表中目标位置增加新的节点
  10073. newItems.splice(this.newIndex, 0, this.oldData);
  10074. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10075. }
  10076. this.typeIndex = "";
  10077. this.newIndex = "";
  10078. this.dragType = "";
  10079. this.checkUnitIndex = "";
  10080. this.isdrag = "";
  10081. this.updateWork();
  10082. this.$forceUpdate()
  10083. }
  10084. },
  10085. dragUnitStart(val, i) {
  10086. this.dragType = 'Unit'
  10087. this.oldIndex = i;
  10088. this.oldData = val;
  10089. },
  10090. dragUnitOver(i) {
  10091. this.typeIndex = "Unit-" + i
  10092. this.newIndex = i;
  10093. console.log(i,this.unitJson[i].toolOpen)
  10094. if(!this.unitJson[i].toolOpen && this.dragType == 'task'){
  10095. this.unitJson[i].toolOpen = true
  10096. this.updateWork()
  10097. this.$forceUpdate()
  10098. }
  10099. },
  10100. async dragUnitEnd() {
  10101. if(this.dragType != 'Unit'){
  10102. this.newIndex = "";
  10103. this.dragType = "";
  10104. this.typeIndex = "";
  10105. this.isdrag = "";
  10106. return;
  10107. }
  10108. if(this.newIndex == this.oldIndex){
  10109. this.newIndex = "";
  10110. this.dragType = "";
  10111. this.typeIndex = "";
  10112. this.isdrag = "";
  10113. return;
  10114. }
  10115. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  10116. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  10117. console.log(count1, count2)
  10118. if(count1 > 0 || count2 > 0){
  10119. this.$confirm(
  10120. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10121. "提示",
  10122. {
  10123. confirmButtonText: "确定",
  10124. cancelButtonText: "取消",
  10125. type: "warning",
  10126. }
  10127. )
  10128. .then(() => {
  10129. let newItems = [...this.unitJson];
  10130. // 删除老的节点
  10131. newItems.splice(this.oldIndex, 1);
  10132. // 在列表中目标位置增加新的节点
  10133. newItems.splice(this.newIndex, 0, this.oldData);
  10134. this.unitJson = [...newItems];
  10135. this.typeIndex = "";
  10136. this.newIndex = "";
  10137. this.dragType = "";
  10138. this.isdrag = "";
  10139. this.updateWork();
  10140. this.$forceUpdate()
  10141. })
  10142. .catch(() => {
  10143. this.newIndex = "";
  10144. this.dragType = "";
  10145. this.typeIndex = "";
  10146. this.isdrag = "";
  10147. return;
  10148. });
  10149. }else{
  10150. let newItems = [...this.unitJson];
  10151. // 删除老的节点
  10152. newItems.splice(this.oldIndex, 1);
  10153. // 在列表中目标位置增加新的节点
  10154. newItems.splice(this.newIndex, 0, this.oldData);
  10155. this.unitJson = [...newItems];
  10156. this.typeIndex = "";
  10157. this.newIndex = "";
  10158. this.dragType = "";
  10159. this.isdrag = "";
  10160. this.updateWork();
  10161. this.$forceUpdate()
  10162. }
  10163. },
  10164. getWorksCount(type, stage, task, tool){
  10165. return new Promise((resolve, reject) => {
  10166. let params = [
  10167. {
  10168. cid: this.cid,
  10169. stage: stage,
  10170. task: task,
  10171. tool: tool,
  10172. type: type
  10173. },
  10174. ];
  10175. this.ajax
  10176. .post(this.$store.state.api + "getCourseWorkCount", params)
  10177. .then((res) => {
  10178. let count = res.data[0][0].count
  10179. resolve(count)
  10180. })
  10181. .catch((err) => {
  10182. resolve(0)
  10183. this.$message.error("网络不佳");
  10184. console.error(err);
  10185. });
  10186. });
  10187. }
  10188. },
  10189. beforeDestroy() {
  10190. clearTimeout(this.timer);
  10191. this.timer = null;
  10192. clearInterval(this.timer2);
  10193. this.timer2 = null;
  10194. clearInterval(this.pasteTimer);
  10195. this.pasteTimer = null;
  10196. },
  10197. beforeRouteLeave(to, from, next) {
  10198. clearTimeout(this.timer);
  10199. this.timer = null;
  10200. clearInterval(this.timer2);
  10201. this.timer2 = null;
  10202. clearInterval(this.pasteTimer);
  10203. this.pasteTimer = null;
  10204. next();
  10205. },
  10206. created() {
  10207. this.getStudent();
  10208. this.getTeacher();
  10209. this.getClass();
  10210. this.selectGrage();
  10211. this.getTemplate();
  10212. // this.selectType();
  10213. this.selectEva();
  10214. this.loading = false;
  10215. this.timer2 = setInterval(() => {
  10216. this.selectEva();
  10217. }, 5000);
  10218. this.pasteTimer = setInterval(() => {
  10219. this.getPaste();
  10220. }, 1000);
  10221. setTimeout(() => {
  10222. this.selectCourseDetail();
  10223. }, 500);
  10224. },
  10225. };
  10226. </script>
  10227. <style scoped>
  10228. @media screen and (max-width: 1280px) {
  10229. .mbCss {
  10230. flex-direction: column !important;
  10231. }
  10232. .pjCss {
  10233. width: 100% !important;
  10234. }
  10235. .evaCss {
  10236. width: 100% !important;
  10237. margin-top: 10px;
  10238. }
  10239. }
  10240. .el-table >>> .even_row {
  10241. background-color: #f1f1f1 !important;
  10242. }
  10243. .dialog_diy>>>.el-dialog__header {
  10244. background: #3c3c3c !important;
  10245. padding: 15px 20px;
  10246. }
  10247. .dialog_diy>>>.el-dialog__title {
  10248. color: #fff;
  10249. }
  10250. .dialog_diy>>>.el-dialog__headerbtn {
  10251. top: 19px;
  10252. }
  10253. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10254. color: #fff;
  10255. }
  10256. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10257. color: #fff;
  10258. }
  10259. .dialog_diy>>>.el-dialog__body,
  10260. .dialog_diy>>>.el-dialog__footer {
  10261. background: #fafafa;
  10262. }
  10263. .dialog_diy3>>>.el-dialog__body,
  10264. .dialog_diy3>>>.el-dialog__footer {
  10265. background: #eee !important;
  10266. }
  10267. .dialog_diy3>>>.el-dialog__body {
  10268. padding: 20px 20px;
  10269. }
  10270. .dialog_diyStage>>>.el-dialog__body {
  10271. padding: 10px;
  10272. }
  10273. .source_diy>>>.el-dialog {
  10274. height: 100% !important;
  10275. margin: 0 auto !important;
  10276. }
  10277. .source_diy>>>.el-dialog__body {
  10278. height: calc(100% - 185px);
  10279. overflow: auto;
  10280. background: #e6eaf0;
  10281. }
  10282. .source_diy>>>.el-dialog__footer {
  10283. background: #e6eaf0 !important;
  10284. }
  10285. .left {
  10286. border-right: 1px solid rgb(60, 94, 143);
  10287. display: flex;
  10288. flex-direction: column;
  10289. align-items: center;
  10290. min-height: 600px;
  10291. width: 385px;
  10292. height: 80%;
  10293. }
  10294. .tips {
  10295. color: rgb(128, 128, 128);
  10296. font-size: 12px;
  10297. width: 270px;
  10298. margin: 40px;
  10299. }
  10300. .pb_content {
  10301. height: 100% !important;
  10302. /* margin: 0 20px 0 20px; */
  10303. }
  10304. .pb_content_body {
  10305. width: 100% !important;
  10306. height: 100%;
  10307. }
  10308. .info_solid {
  10309. width: 270px;
  10310. height: 30px;
  10311. border-left: 1px solid #bdbdbd;
  10312. margin: 10px 0px 10px 30px;
  10313. }
  10314. .info_steps {
  10315. width: 270px;
  10316. font-size: 0.875rem;
  10317. display: flex;
  10318. align-items: center;
  10319. }
  10320. .info_steps span:nth-child(1) {
  10321. width: 30px;
  10322. height: 30px;
  10323. background: rgba(0, 0, 0, 0.38);
  10324. display: block;
  10325. color: #fff;
  10326. border-radius: 40px;
  10327. text-align: center;
  10328. line-height: 30px;
  10329. }
  10330. .steps_active {
  10331. background: #3d67bc !important;
  10332. }
  10333. .info_steps span:nth-child(2) {
  10334. margin-left: 5px;
  10335. }
  10336. .right {
  10337. height: 100%;
  10338. width: 100%;
  10339. display: flex;
  10340. overflow: hidden;
  10341. flex-direction: column;
  10342. }
  10343. .basic_box {
  10344. margin: 0 auto;
  10345. position: relative;
  10346. padding: 0 20px 0 20px;
  10347. }
  10348. .basic_box_success {
  10349. width: 100%;
  10350. min-height: 455px;
  10351. padding: 50px 0;
  10352. position: relative;
  10353. text-align: center;
  10354. border-bottom: 1px solid #bfbfbf;
  10355. box-sizing: border-box;
  10356. display: flex;
  10357. align-items: center;
  10358. flex-direction: column;
  10359. justify-content: center;
  10360. }
  10361. .info_title {
  10362. font-size: 1.5em;
  10363. margin-right: 25px;
  10364. /* margin: 20px 30px 20px 30px; */
  10365. }
  10366. .bInfo_title {
  10367. text-align: left;
  10368. margin: 10px 0;
  10369. }
  10370. .small_title {
  10371. font-size: 14px;
  10372. line-height: 40px;
  10373. }
  10374. .chapter_beizhu {
  10375. font-size: 12px;
  10376. font-weight: bold;
  10377. float: right;
  10378. color: rgb(128, 128, 128);
  10379. margin-top: 5px;
  10380. }
  10381. .chapter_uploadBox1 {
  10382. text-align: left;
  10383. background-color: rgb(242, 242, 242);
  10384. width: 100%;
  10385. height: 67px;
  10386. padding: 0px 15px;
  10387. border-radius: 8px;
  10388. overflow: hidden;
  10389. font-size: 16px;
  10390. box-sizing: border-box;
  10391. position: relative;
  10392. }
  10393. .chapter_add {
  10394. width: 100%;
  10395. height: 32px;
  10396. margin-top: 15px;
  10397. cursor: pointer;
  10398. }
  10399. .chapter_add_l {
  10400. margin-left: 5px;
  10401. width: 30px;
  10402. height: 30px;
  10403. float: left;
  10404. border: 1px solid #aaa;
  10405. color: #aaa;
  10406. border-radius: 50%;
  10407. font-size: 25px;
  10408. text-align: center;
  10409. }
  10410. .chapter_add_r {
  10411. font-size: 18px;
  10412. height: 40px;
  10413. line-height: 30px;
  10414. text-indent: 10px;
  10415. color: #aaa;
  10416. }
  10417. .chapter_add_r span {
  10418. font-size: 12px;
  10419. color: rgb(204, 204, 204);
  10420. }
  10421. .chapter_add_input {
  10422. display: none;
  10423. }
  10424. .line {
  10425. width: 85%;
  10426. margin: 0 auto;
  10427. border-top: 1px solid #e5e5e5;
  10428. margin-top: 20px;
  10429. }
  10430. .info_btnBox {
  10431. width: calc(100%);
  10432. display: flex;
  10433. justify-content: center;
  10434. height: 80px;
  10435. align-items: center;
  10436. background: #fff;
  10437. margin: 0 auto;
  10438. border-top: 2px solid rgb(228, 232, 237);
  10439. box-sizing: border-box;
  10440. }
  10441. .info_btnBox2 {
  10442. width: calc(100%);
  10443. display: flex;
  10444. justify-content: center;
  10445. height: 20px;
  10446. align-items: center;
  10447. background: #fff;
  10448. margin: 0 auto;
  10449. border-top: 2px solid rgb(228, 232, 237);
  10450. box-sizing: border-box;
  10451. overflow: hidden;
  10452. cursor: pointer;
  10453. }
  10454. .info_btnBox3 {
  10455. width: calc(100%);
  10456. display: flex;
  10457. justify-content: flex-end;
  10458. padding: 0 20px;
  10459. height: 60px;
  10460. align-items: center;
  10461. background: unset;
  10462. margin: 0 auto;
  10463. /* border-top: 1px solid rgb(228, 232, 237); */
  10464. box-sizing: border-box;
  10465. overflow: hidden;
  10466. cursor: pointer;
  10467. background: #fff;
  10468. border-radius: 10px;
  10469. }
  10470. .info_btn+.info_btn {
  10471. margin-left: 15px;
  10472. }
  10473. .info_btn,
  10474. .teacherWord {
  10475. color: #fff;
  10476. background-color: #0f7eff;
  10477. padding: 8px 24px;
  10478. font-size: 0.9375rem;
  10479. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10480. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10481. min-width: 64px;
  10482. font-weight: 500;
  10483. border-radius: 4px;
  10484. box-sizing: border-box;
  10485. border: none;
  10486. cursor: pointer;
  10487. }
  10488. .teacherWord {
  10489. width: 105px !important;
  10490. text-align: center !important;
  10491. line-height: 36px !important;
  10492. padding: 0 !important;
  10493. font-size: 14px !important;
  10494. margin: 10px 0 !important;
  10495. }
  10496. .template_box{
  10497. display: flex;
  10498. flex-wrap: wrap;
  10499. }
  10500. .wordTeacher {
  10501. display: flex;
  10502. flex-direction: column;
  10503. width: 100px;
  10504. height: 100px;
  10505. text-align: center;
  10506. font-size: 13px;
  10507. margin: 0 20px 20px 0 ;
  10508. background: #F0F4FA;;
  10509. position: relative;
  10510. border-radius: 5px;
  10511. align-items: center;
  10512. justify-content: center;
  10513. border: 1px solid #CAD1DC;
  10514. color: #0E1E33;
  10515. /* padding: 25px 0px; */
  10516. cursor: pointer;
  10517. }
  10518. .wordTeacher::after{
  10519. content: '';
  10520. display:block;
  10521. position: absolute;
  10522. width: 15px;
  10523. height: 15px;
  10524. right:10px;
  10525. top:10px;
  10526. background-image: url(../../../assets/icon/new/choose_a.png);
  10527. background-size:100% 100%;
  10528. }
  10529. .wordTeacherA::after{
  10530. background-image: url(../../../assets/icon/new/choose_b.png)
  10531. }
  10532. .wordTeacher:nth-child(5n){
  10533. margin-right: 0px;
  10534. }
  10535. .wordPic {
  10536. margin: 0 auto;
  10537. width: 30px;
  10538. height: 30px;
  10539. cursor: pointer;
  10540. }
  10541. .deleteWord {
  10542. width: 22px;
  10543. height: 22px;
  10544. position: absolute;
  10545. right: 5px;
  10546. top: -15px;
  10547. cursor: pointer;
  10548. display: none;
  10549. z-index: 999;
  10550. }
  10551. .wordPic>img,
  10552. .deleteWord>img,
  10553. .addToolImg>img {
  10554. width: 100%;
  10555. height: 100%;
  10556. }
  10557. .info_btn:hover {
  10558. background-color: #4f7cd5 !important;
  10559. }
  10560. .cru_selectBox {
  10561. display: flex;
  10562. margin: 15px 0;
  10563. flex-wrap: nowrap;
  10564. white-space: nowrap;
  10565. overflow: auto;
  10566. position: relative;
  10567. height: 40px;
  10568. max-width: calc(100% - 175px);
  10569. }
  10570. .cru_selectBox::-webkit-scrollbar {
  10571. /*滚动条整体样式*/
  10572. width: 6px;
  10573. /*高宽分别对应横竖滚动条的尺寸*/
  10574. height: 6px;
  10575. }
  10576. /*定义滚动条轨道 内阴影+圆角*/
  10577. .cru_selectBox::-webkit-scrollbar-track {
  10578. border-radius: 10px;
  10579. background-color: #eee;
  10580. }
  10581. /*定义滑块 内阴影+圆角*/
  10582. .cru_selectBox::-webkit-scrollbar-thumb {
  10583. border-radius: 10px;
  10584. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10585. background-color: rgba(0, 0, 0, 0.1);
  10586. }
  10587. .cru_line {
  10588. position: absolute;
  10589. bottom: 0px;
  10590. transition: all 0.5s;
  10591. left: 0px;
  10592. width: 50px;
  10593. height: 4px;
  10594. left: 10px;
  10595. border-radius: 2px;
  10596. background: #3681FC;
  10597. }
  10598. .cru_select {
  10599. font-size: 18px;
  10600. margin-right: 20px;
  10601. margin-left: 5px;
  10602. cursor: pointer;
  10603. color: #0E1E33;
  10604. }
  10605. .cru_select:hover {
  10606. color: #3681FC !important;
  10607. }
  10608. .cru_selected {
  10609. color: #3681FC !important;
  10610. font-weight: bold;
  10611. }
  10612. .chapter_box {
  10613. margin-top: 10px;
  10614. width: 100%;
  10615. padding: 10px 20px;
  10616. background: #fff;
  10617. border-radius: 8px;
  10618. box-sizing: border-box;
  10619. }
  10620. .chapter_contentbox {
  10621. display: flex;
  10622. align-items: center;
  10623. /* margin-top: 15px; */
  10624. }
  10625. .chapter_contentbox .cc_title {
  10626. margin: 0px;
  10627. color: black;
  10628. display: block;
  10629. white-space: nowrap;
  10630. overflow: hidden;
  10631. text-overflow: ellipsis;
  10632. margin-right: 20px;
  10633. font-size: 18px;
  10634. height: 20px;
  10635. line-height: 22px;
  10636. min-width: fit-content;
  10637. display: flex;
  10638. }
  10639. .chapter_contentbox .cc_title::before {
  10640. content: '';
  10641. height: 100%;
  10642. width: 3px;
  10643. background: #3681FC;
  10644. border-radius: 3px;
  10645. opacity: 1;
  10646. display: block;
  10647. margin-right: 10px;
  10648. }
  10649. .chapter_contentbox .cc_input {
  10650. width: 100%;
  10651. display: flex;
  10652. }
  10653. .show_taskD {
  10654. min-width: fit-content;
  10655. margin-left: 10px;
  10656. display: flex;
  10657. align-items: center;
  10658. font-size: 14px;
  10659. cursor: pointer;
  10660. color: #717C8D;
  10661. }
  10662. .show_taskD>img {
  10663. width: 15px;
  10664. margin-right: 5px;
  10665. transition: .2s all;
  10666. transform: rotate(-90deg);
  10667. }
  10668. .show_taskD.show>img {
  10669. transform: rotate(0deg);
  10670. }
  10671. .show_toolD {
  10672. min-width: fit-content;
  10673. margin-left: 10px;
  10674. display: flex;
  10675. align-items: center;
  10676. font-size: 14px;
  10677. cursor: pointer;
  10678. color: #717C8D;
  10679. /* position: absolute;
  10680. right: 45px;
  10681. top: 5px; */
  10682. }
  10683. .show_toolD>img {
  10684. width: 15px;
  10685. margin-right: 5px;
  10686. transition: .2s all;
  10687. transform: rotate(-90deg);
  10688. }
  10689. .show_toolD.show>img {
  10690. transform: rotate(0deg);
  10691. }
  10692. .remove {
  10693. background-image: url("../../../assets/icon/new/delete_u.png");
  10694. cursor: pointer;
  10695. opacity: 0.5;
  10696. width: 30px;
  10697. min-width: 30px;
  10698. height: 30px;
  10699. background-size: 100% 100%;
  10700. background-repeat: no-repeat;
  10701. margin-left: 10px;
  10702. }
  10703. .remove1 {
  10704. background-image: url("../../../assets/remove1.png");
  10705. background-repeat: no-repeat;
  10706. background-position: 5px 10px;
  10707. width: 40px;
  10708. height: 50px;
  10709. cursor: pointer;
  10710. margin-left: 10px;
  10711. }
  10712. .binfo_input {
  10713. width: 100%;
  10714. margin: 0;
  10715. padding: 12px 14px;
  10716. display: block;
  10717. min-width: 0;
  10718. outline: none;
  10719. box-sizing: border-box;
  10720. background: none;
  10721. border: none;
  10722. border-radius: 4px;
  10723. background: #fff;
  10724. font-size: 16px;
  10725. resize: none;
  10726. font-family: 'Microsoft YaHei';
  10727. min-height: 48px;
  10728. /* border: 1px solid #3682fc00; */
  10729. border: 1.5px solid #CAD1DC;
  10730. }
  10731. .binfo_textarea {
  10732. border: 1.5px solid #CAD1DC;
  10733. font-size: 16px;
  10734. resize: none;
  10735. /* background: #f6f6f6; */
  10736. font-family: 'Microsoft YaHei';
  10737. }
  10738. .binfo_input:focus-visible {
  10739. border: 1.5px solid #3681FC !important;
  10740. }
  10741. .time {
  10742. display: flex;
  10743. margin: 35px 0 80px 0;
  10744. }
  10745. .chapter_btnbox {
  10746. width: 160px;
  10747. border-radius: 5px;
  10748. border: 2px dashed gray;
  10749. display: flex;
  10750. padding: 8px 50px;
  10751. align-items: center;
  10752. justify-content: center;
  10753. margin: 30px auto 0;
  10754. cursor: pointer;
  10755. }
  10756. .icon_add {
  10757. position: relative;
  10758. width: 24px;
  10759. padding-top: 20px;
  10760. border-radius: 100%;
  10761. border-width: 2px;
  10762. border-style: solid;
  10763. border-color: gray;
  10764. }
  10765. .icon_add i:nth-child(1) {
  10766. position: absolute;
  10767. left: 50%;
  10768. top: 50%;
  10769. height: 60%;
  10770. transform: translate(-50%, -50%);
  10771. border-width: 1px;
  10772. border-style: solid;
  10773. border-color: inherit;
  10774. }
  10775. .icon_add i:nth-child(2) {
  10776. position: absolute;
  10777. top: 50%;
  10778. left: 50%;
  10779. width: 60%;
  10780. transform: translate(-50%, -50%);
  10781. border-width: 1px;
  10782. border-style: solid;
  10783. border-color: inherit;
  10784. }
  10785. .chapter_btn_w {
  10786. font-size: 0.9375rem;
  10787. font-weight: bold;
  10788. color: gray;
  10789. margin-left: 20px;
  10790. }
  10791. .disUoloadSty>>>.el-icon-plus {
  10792. display: none !important;
  10793. /* 上传按钮隐藏 */
  10794. }
  10795. .imgLeft {
  10796. margin: 15px 0;
  10797. }
  10798. .add_info_box {
  10799. margin: 0 0 0 auto;
  10800. display: flex;
  10801. flex-wrap: wrap;
  10802. }
  10803. .add_info_box button {
  10804. margin: 0 5px 10px 0;
  10805. }
  10806. .add_info_box2 {
  10807. display: flex;
  10808. align-items: center;
  10809. flex-wrap: wrap;
  10810. }
  10811. .add_info_box2::after {
  10812. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10813. color: red;
  10814. font-size: 14px;
  10815. margin-bottom: 10px;
  10816. }
  10817. .add_chapters_box {
  10818. text-align: left;
  10819. background-color: #fff;
  10820. width: 100%;
  10821. border-radius: 4px;
  10822. font-size: 16px;
  10823. box-sizing: border-box;
  10824. position: relative;
  10825. padding: 0 15px;
  10826. height: auto;
  10827. overflow-y: auto;
  10828. overflow-x: hidden;
  10829. border: 1px solid #CAD1DC;
  10830. }
  10831. .add_chapters_box.add_c_none {
  10832. display: flex;
  10833. justify-content: center;
  10834. align-items: center;
  10835. padding: 15px;
  10836. }
  10837. .add_c_none>img {
  10838. width: 25px;
  10839. }
  10840. .add_chapters_box.add_c_none>span {
  10841. font-size: 14px;
  10842. font-weight: 400;
  10843. margin: 0 0 5px 5px;
  10844. }
  10845. .homework_box {
  10846. display: flex;
  10847. align-items: flex-start;
  10848. flex-wrap: wrap;
  10849. margin: 15px 0 0 0;
  10850. flex-direction: column;
  10851. align-content: flex-start;
  10852. }
  10853. .course_homework {
  10854. display: flex;
  10855. justify-content: center;
  10856. flex-direction: row;
  10857. align-items: center;
  10858. margin: 0 10px 0 0;
  10859. }
  10860. .course_homework>>>.el-input__inner {
  10861. width: 140px;
  10862. margin-left: 15px;
  10863. }
  10864. .chapter_upload_move {
  10865. position: relative;
  10866. background-color: #fff;
  10867. position: absolute;
  10868. width: 100%;
  10869. top: 0px;
  10870. left: 0px;
  10871. border: 1px solid #eee;
  10872. border-radius: 5px;
  10873. transition: width 2s;
  10874. -moz-transition: width 2s;
  10875. -webkit-transition: width 2s;
  10876. -o-transition: width 2s;
  10877. }
  10878. .chapter_upload_l_i {
  10879. background-image: url("../../../assets/icon.png");
  10880. background-position: 3px -165px;
  10881. width: 30px;
  10882. height: 30px;
  10883. margin: 10px auto 0 auto;
  10884. }
  10885. .course_input_box {
  10886. display: flex;
  10887. margin-right: 20px;
  10888. width: 100%;
  10889. align-items: center;
  10890. position: relative;
  10891. }
  10892. .course_input_box>.binfo_input {
  10893. width: calc(100% - 0 - 200px - 20px);
  10894. margin: 0 10px;
  10895. }
  10896. .bb_courseIcon {
  10897. width: 57px;
  10898. height: 45px;
  10899. background: #F0F4FA;
  10900. border-radius: 5px 0px 0px 5px;
  10901. display: flex;
  10902. align-items: center;
  10903. justify-content: center;
  10904. border-right: 1.5px solid rgb(202, 209, 220);
  10905. box-sizing: border-box;
  10906. position: absolute;
  10907. left: 1.5px
  10908. }
  10909. .bb_courseIcon>img {
  10910. width: 25px;
  10911. height: auto
  10912. }
  10913. .big_box {
  10914. /* margin-top: 20px; */
  10915. display: flex;
  10916. justify-content: space-between;
  10917. /* border-bottom: 1px solid #E0E2ED; */
  10918. }
  10919. .left_first {
  10920. display: flex;
  10921. flex-direction: column;
  10922. flex-wrap: nowrap;
  10923. width: calc(100% - 310px);
  10924. padding: 20px;
  10925. box-sizing: border-box;
  10926. background: #fff;
  10927. border-radius: 5px;
  10928. }
  10929. .right_first {
  10930. width: 300px;
  10931. display: flex;
  10932. align-items: center;
  10933. justify-content: center;
  10934. /* border-left: 1px solid #E0E2ED; */
  10935. box-sizing: border-box;
  10936. padding: 20px;
  10937. flex-direction: column;
  10938. background: #fff;
  10939. border-radius: 5px;
  10940. }
  10941. .ai_box {
  10942. width: 204px;
  10943. display: flex;
  10944. justify-content: flex-end;
  10945. margin-bottom: 15px;
  10946. }
  10947. .ai_content {
  10948. display: flex;
  10949. align-items: center;
  10950. font-size: 14px;
  10951. padding: 7px 20px;
  10952. box-sizing: border-box;
  10953. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10954. border-radius: 12px;
  10955. font-weight: 700;
  10956. cursor: pointer;
  10957. }
  10958. .ai_content>img {
  10959. width: 40px;
  10960. margin-right: 5px;
  10961. }
  10962. .c_info_title {
  10963. padding: 15px 0 15px 0;
  10964. font-size: 16px;
  10965. font-weight: bold;
  10966. margin: 0 0 0 20px;
  10967. box-sizing: border-box;
  10968. display: flex;
  10969. align-items: center;
  10970. line-height: 20px;
  10971. }
  10972. .c_info_title::before {
  10973. content: '';
  10974. display: block;
  10975. width: 3px;
  10976. height: 20px;
  10977. background: #0061FF;
  10978. border-radius: 3px;
  10979. margin: 0 5px 0 0;
  10980. }
  10981. .right_title {
  10982. height: 30px;
  10983. padding: 15px 0 15px 20px;
  10984. border-bottom: 1px solid #f2f2f2;
  10985. font-size: 1.5em;
  10986. font-weight: bold;
  10987. color: #0f7eff;
  10988. margin: 0 auto;
  10989. }
  10990. .people {
  10991. border: 1px solid rgb(229 229 229);
  10992. /* height: 495px; */
  10993. height: 350px;
  10994. border-radius: 5px;
  10995. width: 100%;
  10996. overflow: auto;
  10997. }
  10998. .people_top {
  10999. display: flex;
  11000. width: 100%;
  11001. /* justify-content: space-between; */
  11002. /* align-items: center; */
  11003. flex-direction: column;
  11004. padding: 10px 10px 0;
  11005. box-sizing: border-box;
  11006. }
  11007. .people_nav,
  11008. .people_top_right {
  11009. /* padding: 20px 0 0 20px; */
  11010. }
  11011. .people_top_right {
  11012. height: 40px;
  11013. margin-bottom: 10px;
  11014. }
  11015. .people_search {
  11016. display: flex;
  11017. position: relative;
  11018. }
  11019. .people_search>>>.el-input__inner {
  11020. /* height: 25px; */
  11021. width: 100%;
  11022. }
  11023. .search_img {
  11024. width: 20px;
  11025. height: 20px;
  11026. position: absolute;
  11027. right: 10px;
  11028. top: 50%;
  11029. transform: translateY(-50%);
  11030. }
  11031. .search_img>img {
  11032. width: 100%;
  11033. height: 100%;
  11034. }
  11035. .people_name {
  11036. display: flex;
  11037. justify-content: flex-start;
  11038. padding: 20px 10px;
  11039. flex-direction: column;
  11040. flex-wrap: wrap;
  11041. }
  11042. .p_box {
  11043. position: relative;
  11044. }
  11045. .people_name>>>.el-checkbox {
  11046. width: 100%;
  11047. display: flex;
  11048. align-items: center;
  11049. margin-bottom: 10px;
  11050. }
  11051. .people_name>>>.el-checkbox__label {
  11052. text-overflow: ellipsis;
  11053. overflow: hidden;
  11054. width: calc(100%);
  11055. }
  11056. .people_name2>>>.el-checkbox__label {
  11057. width: calc(100% - 130px);
  11058. }
  11059. .inviteCode {
  11060. position: absolute;
  11061. right: 30px;
  11062. color: #237ade;
  11063. top: 0;
  11064. cursor: pointer;
  11065. font-size: 13px;
  11066. }
  11067. .noneInvite {
  11068. color: #a8a8a8;
  11069. }
  11070. .inviteImg {
  11071. position: absolute;
  11072. right: 5px;
  11073. top: 0;
  11074. width: 20px;
  11075. }
  11076. .right_img {
  11077. width: 150px;
  11078. height: 150px;
  11079. margin: 0 auto;
  11080. }
  11081. .right_img>img {
  11082. width: 100%;
  11083. height: 100%;
  11084. }
  11085. .number {
  11086. margin-top: 20px;
  11087. color: #4aa6ff;
  11088. text-decoration: underline;
  11089. }
  11090. .success_button {
  11091. display: flex;
  11092. text-align: center;
  11093. margin: 5% 0 auto;
  11094. flex-direction: row;
  11095. justify-content: center;
  11096. }
  11097. .look_course {
  11098. margin-right: 40px;
  11099. background: #3d67bc;
  11100. width: 200px;
  11101. height: 35px;
  11102. line-height: 35px;
  11103. color: #fff;
  11104. text-align: center;
  11105. font-size: 14px;
  11106. border-radius: 5px;
  11107. cursor: pointer;
  11108. }
  11109. .attend_others {
  11110. width: 250px;
  11111. background: #4fb13c;
  11112. height: 35px;
  11113. line-height: 35px;
  11114. color: #fff;
  11115. text-align: center;
  11116. font-size: 14px;
  11117. border-radius: 5px;
  11118. cursor: pointer;
  11119. }
  11120. .dialog_diy2>>>.el-dialog__body {
  11121. text-align: center;
  11122. }
  11123. .write_togother {
  11124. position: absolute;
  11125. right: 45px;
  11126. display: flex;
  11127. top: 5%;
  11128. }
  11129. .write_people {
  11130. font-size: 14px;
  11131. line-height: 50px;
  11132. padding-right: 10px;
  11133. }
  11134. .end_write {
  11135. background: #3d67bc;
  11136. color: #fff;
  11137. width: 100px;
  11138. height: 35px;
  11139. line-height: 35px;
  11140. text-align: center;
  11141. font-size: 14px;
  11142. border-radius: 5px;
  11143. cursor: pointer;
  11144. }
  11145. .chapter_upload+.chapter_upload {
  11146. /* margin-top: 15px; */
  11147. border-top: 1px solid #E7EBF1;
  11148. }
  11149. .chapter_upload {
  11150. height: 45px;
  11151. position: relative;
  11152. display: flex;
  11153. align-items: center;
  11154. width: 100%;
  11155. min-height: 45px;
  11156. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11157. /* border-radius: 4px; */
  11158. /* overflow: hidden; */
  11159. box-sizing: border-box;
  11160. }
  11161. .chapter_upload_drag {
  11162. position: absolute;
  11163. cursor: pointer;
  11164. width: 16px;
  11165. height: 16px;
  11166. left: -9px;
  11167. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  11168. background-size: 100% 100%;
  11169. z-index: 10;
  11170. display: none;
  11171. }
  11172. .isNavStage > .chapter_upload_drag{
  11173. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  11174. }
  11175. .chapter_upload_t {
  11176. background-color: #fff;
  11177. position: absolute;
  11178. height: 100%;
  11179. top: 0px;
  11180. left: 0px;
  11181. box-sizing: border-box;
  11182. }
  11183. .chapter_upload_o {
  11184. width: 100%;
  11185. height: 100%;
  11186. position: relative;
  11187. z-index: 1;
  11188. }
  11189. .chapter_upload_ic {
  11190. margin: 0 15px 0px auto;
  11191. display: flex;
  11192. align-items: center;
  11193. }
  11194. .chapter_upload_ic_l {
  11195. width: 50px;
  11196. height: 50px;
  11197. float: left;
  11198. }
  11199. .chapter_upload_ic_l div {
  11200. width: 30px;
  11201. height: 35px;
  11202. background: url("../../../assets/icon/icon.png");
  11203. }
  11204. .chapter_upload_ic_edit {
  11205. height: 100%;
  11206. display: flex;
  11207. align-items: center;
  11208. cursor: pointer;
  11209. margin: 0 10px 0 0;
  11210. }
  11211. .chapter_upload_ic_edit div {
  11212. width: 18px;
  11213. height: 18px;
  11214. background-image: url("../../../assets/icon/new/edit_u.png");
  11215. background-size: 100% 100%;
  11216. }
  11217. .chapter_upload_ic_r {
  11218. height: 100%;
  11219. display: flex;
  11220. align-items: center;
  11221. cursor: pointer;
  11222. }
  11223. .chapter_upload_ic_r div {
  11224. width: 18px;
  11225. height: 18px;
  11226. background-image: url("../../../assets/icon/new/delete_u.png");
  11227. background-size: 100% 100%;
  11228. }
  11229. .chapter_upload_n {
  11230. display: flex;
  11231. text-indent: 10px;
  11232. text-decoration: none;
  11233. text-overflow: ellipsis;
  11234. white-space: nowrap;
  11235. overflow: hidden;
  11236. width: 55%;
  11237. margin-left: 10px;
  11238. cursor: pointer;
  11239. margin-top: 2px;
  11240. align-items: center;
  11241. }
  11242. .chapter_upload_l_i2,
  11243. .chapter_upload_l_i3,
  11244. .chapter_upload_l_i8,
  11245. .chapter_upload_l_i6,
  11246. .chapter_upload_l_i12,
  11247. .chapter_upload_l_i14,
  11248. .chapter_upload_l_i13 {
  11249. width: 15px;
  11250. height: 15px;
  11251. background-size: 100% 100%;
  11252. }
  11253. .chapter_upload_l_i2 {
  11254. background-image: url("../../../assets/icon/new/u_word.png");
  11255. }
  11256. .chapter_upload_l_i3 {
  11257. background-image: url("../../../assets/icon/new/u_video.png");
  11258. }
  11259. .chapter_upload_l_i8 {
  11260. background-image: url("../../../assets/icon/new/u_url.png");
  11261. }
  11262. .chapter_upload_l_i14 {
  11263. background-image: url("../../../assets/icon/new/u_source.png");
  11264. }
  11265. .chapter_upload_l_i6 {
  11266. background-image: url("../../../assets/icon/new/u_picture.png");
  11267. }
  11268. .chapter_upload_l_i12 {
  11269. background-image: url("../../../assets/icon/new/u_word.png");
  11270. }
  11271. .chapter_upload_l_i13 {
  11272. background-image: url("../../../assets/icon/new/u_img.png");
  11273. }
  11274. .chapter_upload_noSee {
  11275. background-image: url("../../../assets/icon/new/u_noUpload.png");
  11276. width: 18px;
  11277. height: 18px;
  11278. background-size: 100% 100%;
  11279. display: block;
  11280. margin-right: 10px;
  11281. }
  11282. .chapter_upload_ud {
  11283. display: flex;
  11284. flex-direction: row;
  11285. justify-content: center;
  11286. margin: 0 10px 0 0;
  11287. }
  11288. .chapter_upload_ud>.chapter_upload_up {
  11289. margin-bottom: 0;
  11290. margin-right: 10px;
  11291. }
  11292. .chapter_upload_down,
  11293. .chapter_upload_up {
  11294. width: 20px;
  11295. height: 20px;
  11296. background: #e4eaf2;
  11297. cursor: pointer;
  11298. margin: 0 auto;
  11299. border-radius: 5px;
  11300. display: flex;
  11301. justify-content: center;
  11302. align-items: center;
  11303. }
  11304. .chapter_upload_up::after,
  11305. .chapter_upload_down::after {
  11306. content: '';
  11307. background-image: url('../../../assets/icon/new/downBtn.png');
  11308. width: 13px;
  11309. height: 13px;
  11310. background-size: 100% 100%;
  11311. display: block;
  11312. }
  11313. .chapter_upload_up::after {
  11314. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  11315. }
  11316. .chapter_upload_up {
  11317. margin-bottom: 5px;
  11318. }
  11319. .chapter_upload_ud2 {
  11320. display: flex;
  11321. flex-direction: row;
  11322. justify-content: center;
  11323. margin: 0 10px 0 0;
  11324. }
  11325. .chapter_upload_ud2>.chapter_upload_up2 {
  11326. margin-bottom: 0;
  11327. margin-right: 10px;
  11328. }
  11329. .chapter_upload_down2,
  11330. .chapter_upload_up2 {
  11331. cursor: pointer;
  11332. margin: 0 auto;
  11333. border-radius: 5px;
  11334. display: flex;
  11335. justify-content: center;
  11336. align-items: center;
  11337. color: #717C8D;
  11338. font-size: 14px;
  11339. }
  11340. .chapter_upload_up2{
  11341. margin-right:10px;
  11342. }
  11343. .chapter_upload_up2::before,
  11344. .chapter_upload_down2::before {
  11345. content: '';
  11346. background-image: url('../../../assets/icon/new/c_down.png');
  11347. width: 14px;
  11348. height: 14px;
  11349. background-size: 100% 100%;
  11350. display: block;
  11351. margin-right: 5px;
  11352. }
  11353. .chapter_upload_up2::before {
  11354. background-image: url('../../../assets/icon/new/c_up.png') !important;
  11355. }
  11356. .addWordStyle {
  11357. display: flex;
  11358. flex-direction: row;
  11359. justify-content: flex-start;
  11360. overflow-x: auto;
  11361. white-space: nowrap;
  11362. flex-wrap: wrap;
  11363. }
  11364. /* table 样式 */
  11365. .cont>>>table {
  11366. border-top: 1px solid #ccc;
  11367. border-left: 1px solid #ccc;
  11368. }
  11369. .cont>>>table td,
  11370. .cont>>>table th {
  11371. border-bottom: 1px solid #ccc;
  11372. border-right: 1px solid #ccc;
  11373. /* padding: 20px 5px; */
  11374. padding: 5px 10px;
  11375. max-width: 0px;
  11376. height: 30px;
  11377. vertical-align: baseline;
  11378. }
  11379. .cont>>>table th {
  11380. border-bottom: 2px solid #ccc;
  11381. text-align: center;
  11382. }
  11383. /* blockquote 样式 */
  11384. .cont>>>blockquote {
  11385. display: block;
  11386. border-left: 8px solid #d0e5f2;
  11387. padding: 5px 10px;
  11388. margin: 10px 0;
  11389. line-height: 1.4;
  11390. font-size: 100%;
  11391. background-color: #f1f1f1;
  11392. }
  11393. /* code 样式 */
  11394. .cont>>>code {
  11395. display: inline-block;
  11396. /* *display: inline; */
  11397. zoom: 1;
  11398. background-color: #f1f1f1;
  11399. border-radius: 3px;
  11400. padding: 3px 5px;
  11401. margin: 0 3px;
  11402. }
  11403. .cont>>>pre code {
  11404. display: block;
  11405. }
  11406. /* ul ol 样式 */
  11407. .cont>>>ul,
  11408. ol {
  11409. margin: 10px 0 10px 20px;
  11410. }
  11411. .wordbox {
  11412. display: flex;
  11413. flex-wrap: wrap;
  11414. cursor: pointer;
  11415. width: 100%;
  11416. }
  11417. .checkword {
  11418. width: 22px;
  11419. height: 22px;
  11420. margin: 10px auto 0;
  11421. cursor: pointer;
  11422. }
  11423. .checkword img {
  11424. width: 100%;
  11425. }
  11426. .stepBg {
  11427. display: flex;
  11428. justify-content: space-between;
  11429. align-items: center;
  11430. background: #fff;
  11431. width: calc(100%);
  11432. margin: 0 auto;
  11433. }
  11434. .stepBorder {
  11435. height: 3px !important;
  11436. background: #CAD1DC;
  11437. width: 100px !important;
  11438. margin: 0 15px !important;
  11439. position: relative;
  11440. }
  11441. .border-active {
  11442. background: #3681FC !important
  11443. }
  11444. .border-active::before,
  11445. .border-active::after {
  11446. border-color: #3681FC !important
  11447. }
  11448. .stepBorder::before,
  11449. .stepBorder::after {
  11450. content: '';
  11451. width: 9px;
  11452. height: 9px;
  11453. background: #FFFFFF;
  11454. opacity: 1;
  11455. border: 2px solid #ACB4BF;
  11456. display: block;
  11457. box-sizing: border-box;
  11458. border-radius: 50%;
  11459. position: absolute;
  11460. top: 50%;
  11461. transform: translateY(-50%);
  11462. }
  11463. .stepBorder::after {
  11464. right: -9px;
  11465. }
  11466. .stepTop {
  11467. width: 100%;
  11468. /* border-radius: 10px; */
  11469. display: flex;
  11470. justify-content: center;
  11471. align-items: center;
  11472. flex-wrap: nowrap;
  11473. background: #fff;
  11474. /* top: 18%; */
  11475. height: 80px;
  11476. border-bottom: 2px solid rgb(228, 232, 237);
  11477. box-sizing: border-box;
  11478. }
  11479. .stepTop2 {
  11480. width: 100%;
  11481. /* border-radius: 10px; */
  11482. display: flex;
  11483. justify-content: center;
  11484. align-items: center;
  11485. flex-wrap: nowrap;
  11486. background: #fff;
  11487. /* top: 18%; */
  11488. height: 20px;
  11489. border-bottom: 2px solid rgb(228, 232, 237);
  11490. box-sizing: border-box;
  11491. overflow: hidden;
  11492. cursor: pointer;
  11493. }
  11494. .stepTop>div img {
  11495. width: 100%;
  11496. }
  11497. .stepTop>div {
  11498. height: 50px;
  11499. width: 180px;
  11500. cursor: pointer;
  11501. margin: 10px 0;
  11502. border-radius: 10px;
  11503. }
  11504. .first,
  11505. .second,
  11506. .third,
  11507. .four {
  11508. background: #3681FC;
  11509. height: 90px;
  11510. color: #fff;
  11511. display: flex;
  11512. flex-direction: row;
  11513. align-items: center;
  11514. justify-content: center;
  11515. }
  11516. .first>div:nth-child(1),
  11517. .second>div:nth-child(1),
  11518. .third>div:nth-child(1),
  11519. .four>div:nth-child(1) {
  11520. margin: 5px 10px 0 0;
  11521. width: 2rem;
  11522. }
  11523. .firstNo,
  11524. .secondNo,
  11525. .thirdNo,
  11526. .fourNo {
  11527. background: #e7e7e7;
  11528. color: #adadad;
  11529. display: flex;
  11530. flex-direction: row;
  11531. align-items: center;
  11532. justify-content: center;
  11533. }
  11534. .firstNo>div:nth-child(1),
  11535. .secondNo>div:nth-child(1),
  11536. .thirdNo>div:nth-child(1),
  11537. .fourNo>div:nth-child(1) {
  11538. margin: 5px 10px 0 0;
  11539. width: 2rem;
  11540. }
  11541. .uploadWidth>>>.el-upload {
  11542. width: 60px;
  11543. height: 60px;
  11544. position: relative;
  11545. }
  11546. .addPeople {
  11547. background: #fa6060;
  11548. width: 150px;
  11549. height: 40px;
  11550. color: #fff;
  11551. border-radius: 5px;
  11552. text-align: center;
  11553. line-height: 40px;
  11554. font-size: 14px;
  11555. cursor: pointer;
  11556. }
  11557. .kcImg {
  11558. width: 60px;
  11559. margin-left: 10px;
  11560. }
  11561. .zyImg {
  11562. width: 55px;
  11563. margin: 0 10px;
  11564. }
  11565. .deleteZy {
  11566. width: 20px;
  11567. position: absolute;
  11568. top: 5px;
  11569. right: 5px;
  11570. cursor: pointer;
  11571. }
  11572. .kcImg>img,
  11573. .zyImg>img,
  11574. .deleteZy>img {
  11575. width: 100%;
  11576. height: 100%;
  11577. }
  11578. .zyBox {
  11579. display: flex;
  11580. flex-direction: row;
  11581. align-items: center;
  11582. background: #67d37d;
  11583. color: #fff;
  11584. width: 210px;
  11585. margin: 20px 20px 0 0;
  11586. border-radius: 10px;
  11587. height: 70px;
  11588. position: relative;
  11589. }
  11590. .upCss {
  11591. display: flex;
  11592. flex-direction: row;
  11593. justify-content: flex-start;
  11594. }
  11595. .upCss>>>.el-icon-plus {
  11596. position: none !important;
  11597. width: 200px;
  11598. height: 100px;
  11599. display: flex;
  11600. flex-wrap: nowrap;
  11601. flex-direction: column;
  11602. align-items: center;
  11603. justify-content: center;
  11604. border: 1px dashed #ccc;
  11605. min-width: 78px;
  11606. min-height: 100px;
  11607. z-index: 999;
  11608. }
  11609. .upCss>>>.el-upload-list__item-name {
  11610. width: 100px;
  11611. white-space: nowrap;
  11612. overflow: hidden;
  11613. text-overflow: ellipsis;
  11614. }
  11615. .upCss>>>.el-upload-list__item .el-icon-close {
  11616. font-size: 20px;
  11617. z-index: 9999;
  11618. }
  11619. .addStageImg {
  11620. min-width: 20px;
  11621. min-height: 20px;
  11622. width: 20px;
  11623. height: 20px;
  11624. cursor: pointer;
  11625. }
  11626. .addHW {
  11627. width: 28px;
  11628. height: 28px;
  11629. cursor: pointer;
  11630. }
  11631. .addStageImg>img,
  11632. .addHW>img {
  11633. width: 100%;
  11634. height: 100%;
  11635. }
  11636. .addNewPP>>>.el-dialog__body {
  11637. padding: 5px 20px;
  11638. }
  11639. .addNewPP>>>.el-dialog {
  11640. margin-top: 5vh !important;
  11641. }
  11642. .addNewPP2>>>.el-dialog__body {
  11643. padding: 5px 0;
  11644. }
  11645. .addNewPP2>>>.el-dialog {
  11646. margin-top: 5vh !important;
  11647. }
  11648. .isHeight {
  11649. height: 680px;
  11650. }
  11651. .toolChoose {
  11652. display: flex;
  11653. /* width: 100%; */
  11654. flex-direction: row;
  11655. flex-wrap: wrap;
  11656. }
  11657. .tool,
  11658. .isToolChoose {
  11659. display: flex;
  11660. flex-direction: column;
  11661. flex-wrap: nowrap;
  11662. width: fit-content;
  11663. margin: 10px 0 10px 0;
  11664. align-items: center;
  11665. border: 2px solid #dbdbdb00;
  11666. padding: 10px 20px;
  11667. border-radius: 5px;
  11668. cursor: pointer;
  11669. /* box-shadow: 0 0 2px 0px #dedede; */
  11670. position: relative;
  11671. box-sizing: border-box;
  11672. }
  11673. .tool:hover {
  11674. border: 2px solid #a5c7ff;
  11675. }
  11676. .tool:hover>.noCTool {
  11677. display: block;
  11678. opacity: 0.5;
  11679. }
  11680. .isToolChoose {
  11681. border: 2px solid #438aff !important;
  11682. box-shadow: 0 0 2px 0px #438aff;
  11683. opacity: 1 !important;
  11684. }
  11685. .isCTool,
  11686. .noCTool {
  11687. width: 30px;
  11688. height: 30px;
  11689. position: absolute;
  11690. top: -4px;
  11691. right: -4px;
  11692. }
  11693. .noCTool {
  11694. display: none;
  11695. }
  11696. .isCTool>img,
  11697. .noCTool>img {
  11698. width: 100%;
  11699. height: 100%;
  11700. }
  11701. .tool+.tool {
  11702. margin-right: 10px;
  11703. }
  11704. .whiteBIcon {
  11705. width: 80px;
  11706. cursor: pointer;
  11707. display: flex;
  11708. flex-direction: column;
  11709. flex-wrap: nowrap;
  11710. align-items: center;
  11711. font-size: 14px;
  11712. }
  11713. .whiteBIcon>img,
  11714. .toolIcon>img,
  11715. .arrow>img {
  11716. width: 100%;
  11717. height: 100%;
  11718. }
  11719. .check img {
  11720. width: 20px;
  11721. height: 20px;
  11722. }
  11723. .whiteBIcon>img {
  11724. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11725. border-radius: 15px;
  11726. }
  11727. .whiteBIcon>div:nth-child(2) {
  11728. height: 20px;
  11729. line-height: 20px;
  11730. }
  11731. .check {
  11732. /* width: 20px;
  11733. height: 20px; */
  11734. cursor: pointer;
  11735. margin: 10px 0 0;
  11736. }
  11737. .checkDiv {
  11738. display: flex;
  11739. align-items: center;
  11740. }
  11741. .checkDiv span {
  11742. margin-left: 5px;
  11743. color: #858585;
  11744. }
  11745. .customWidth>>>.el-dialog {
  11746. min-width: 500px !important;
  11747. }
  11748. .a_addBox {
  11749. margin: 10px 0;
  11750. background: #fff;
  11751. padding: 15px;
  11752. /* max-height: 600px; */
  11753. overflow: auto;
  11754. }
  11755. .a_add_box {
  11756. border-bottom: 2px solid #eee;
  11757. padding-bottom: 25px;
  11758. }
  11759. .a_add_head {
  11760. display: flex;
  11761. align-items: center;
  11762. justify-content: space-between;
  11763. margin: 10px 0 0 0;
  11764. font-size: 18px;
  11765. }
  11766. .a_add_checkType {
  11767. margin-top: 10px;
  11768. display: flex;
  11769. font-size: 14px;
  11770. align-items: center;
  11771. }
  11772. .a_add_checkType span {
  11773. box-sizing: border-box;
  11774. padding: 0 0 5px 0;
  11775. cursor: pointer;
  11776. }
  11777. .a_add_checkType span+span {
  11778. margin-left: 10px;
  11779. }
  11780. .a_add_checkType .active {
  11781. border-bottom: 2px solid #409eff;
  11782. color: #409eff;
  11783. }
  11784. .a_add_head .a_add_head_input {
  11785. /* width: 540px; */
  11786. width: 100%;
  11787. }
  11788. .a_add_head .a_add_head_div {
  11789. display: flex;
  11790. align-items: center;
  11791. justify-content: space-between;
  11792. }
  11793. .a_add_body {
  11794. display: flex;
  11795. /* align-items: center; */
  11796. align-items: flex-end;
  11797. }
  11798. .a_add_input {
  11799. display: flex;
  11800. align-items: center;
  11801. flex-wrap: wrap;
  11802. }
  11803. .a_add_input_choice {
  11804. flex-direction: column;
  11805. margin-right: 10px;
  11806. }
  11807. .a_add_input_choice>>>.el-radio {
  11808. display: flex;
  11809. align-items: center;
  11810. flex-direction: row-reverse;
  11811. margin: 30px 0 0 0;
  11812. position: relative;
  11813. }
  11814. .a_add_input_choice>>>.el-checkbox {
  11815. display: flex;
  11816. align-items: center;
  11817. flex-direction: row-reverse;
  11818. margin: 30px 0 0 0;
  11819. position: relative;
  11820. }
  11821. .width100 {
  11822. width: 100%;
  11823. }
  11824. .a_add_input .a_add_persent {
  11825. width: 100%;
  11826. }
  11827. .a_add_persent_div {
  11828. width: 100%;
  11829. display: flex;
  11830. align-items: center;
  11831. }
  11832. .a_add_persent_div span {
  11833. margin: 5px 0;
  11834. }
  11835. .a_add_persent_div span:nth-child(1) {
  11836. width: 30%;
  11837. }
  11838. .a_add_persent_div span:nth-child(2) {
  11839. width: 7%;
  11840. }
  11841. .a_add_persent_div span:nth-child(3) {
  11842. width: 40%;
  11843. }
  11844. .a_add_body_div {
  11845. display: flex;
  11846. align-items: center;
  11847. justify-content: center;
  11848. /* flex-direction: column; */
  11849. position: absolute;
  11850. right: -20px;
  11851. transform: translateX(100%);
  11852. }
  11853. .a_add_body_div>>>.el-button--primary {
  11854. background: #466b99;
  11855. border: none;
  11856. }
  11857. .all_choose {
  11858. display: flex;
  11859. flex-direction: row;
  11860. align-items: flex-start;
  11861. width: 100%;
  11862. }
  11863. .all_choose+.all_choose {
  11864. /* margin-top: 10px */
  11865. }
  11866. .all_choose>span {
  11867. min-width: fit-content;
  11868. display: block;
  11869. white-space: nowrap;
  11870. overflow: hidden;
  11871. text-overflow: ellipsis;
  11872. margin-right: 20px;
  11873. font-weight: bold;
  11874. font-size: 14px;
  11875. }
  11876. .all_choose>>>.el-checkbox-group {
  11877. display: flex;
  11878. flex-direction: row;
  11879. width: 100%;
  11880. flex-wrap: wrap;
  11881. align-content: center;
  11882. justify-content: flex-start;
  11883. align-items: center;
  11884. margin-top: 3px;
  11885. }
  11886. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11887. margin-bottom: 10px;
  11888. display: flex;
  11889. flex-direction: row;
  11890. align-items: center;
  11891. margin-right: 10px;
  11892. }
  11893. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11894. min-width: 80px;
  11895. overflow: hidden;
  11896. width: 80px;
  11897. text-overflow: ellipsis;
  11898. white-space: nowrap;
  11899. }
  11900. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11901. width: auto;
  11902. }
  11903. .choose>div:nth-child(3)>span {
  11904. /* letter-spacing: 0 !important; */
  11905. }
  11906. .choose {
  11907. display: flex;
  11908. flex-direction: column;
  11909. flex-wrap: nowrap;
  11910. height: 100%;
  11911. justify-content: space-evenly;
  11912. align-items: flex-start;
  11913. }
  11914. .both {
  11915. display: flex;
  11916. flex-direction: row;
  11917. flex-wrap: wrap;
  11918. width: 100%;
  11919. align-items: center;
  11920. justify-content: flex-start;
  11921. margin: 15px 0;
  11922. }
  11923. .notice>>>.el-dialog {
  11924. width: 500px !important;
  11925. text-align: center;
  11926. }
  11927. .notice>>>.el-button {
  11928. margin-top: 20px;
  11929. }
  11930. .whiteBg {
  11931. /* background: #fff; */
  11932. border-radius: 10px;
  11933. }
  11934. .wb_j_box {
  11935. display: flex;
  11936. width: 100%;
  11937. padding: 0 20px 0;
  11938. box-sizing: border-box;
  11939. }
  11940. .wb_j_box_content {
  11941. width: calc(100% - 55% - 100px);
  11942. display: flex;
  11943. align-items: center;
  11944. }
  11945. .wb_j_box_p_box {
  11946. max-width: calc(100% - 200px);
  11947. word-break: break-all;
  11948. overflow: hidden;
  11949. margin: 0 0 0 10px;
  11950. font-size: 14px;
  11951. color: #6e6e6e;
  11952. z-index: 999;
  11953. }
  11954. .chooseWho {
  11955. display: flex;
  11956. width: 410px;
  11957. flex-direction: row;
  11958. flex-wrap: nowrap;
  11959. justify-content: space-between;
  11960. padding-bottom: 10px;
  11961. }
  11962. .chooseWho>div {
  11963. cursor: pointer;
  11964. padding-bottom: 10px;
  11965. font-weight: bold;
  11966. }
  11967. .isChooseActive {
  11968. color: #3e88f4;
  11969. border-bottom: 2px solid #2f80f3;
  11970. }
  11971. .toolSort {
  11972. display: flex;
  11973. flex-direction: row;
  11974. flex-wrap: wrap;
  11975. justify-content: flex-start;
  11976. align-items: flex-start;
  11977. }
  11978. .toolSort>div {
  11979. margin-right: 10px;
  11980. }
  11981. .tools {
  11982. width: 100%;
  11983. display: flex;
  11984. flex-direction: column;
  11985. flex-wrap: nowrap;
  11986. align-items: flex-start;
  11987. }
  11988. .leftTools,
  11989. .rightTools {
  11990. width: 50%;
  11991. }
  11992. .leftTools+.leftTools {
  11993. border-top: 1px solid #dbdbdb;
  11994. padding-top: 30px;
  11995. }
  11996. .rightTools {
  11997. display: flex;
  11998. flex-direction: row;
  11999. flex-wrap: nowrap;
  12000. justify-content: space-around;
  12001. }
  12002. .firstToolList {
  12003. display: flex;
  12004. flex-direction: column;
  12005. flex-wrap: nowrap;
  12006. align-items: center;
  12007. }
  12008. .iconList {
  12009. display: flex;
  12010. flex-direction: row;
  12011. flex-wrap: wrap;
  12012. justify-content: flex-start;
  12013. align-items: center;
  12014. margin: 20px 0 5px 0;
  12015. width: 240px;
  12016. min-width: 240px;
  12017. }
  12018. .iconTool {
  12019. display: flex;
  12020. flex-direction: column;
  12021. flex-wrap: nowrap;
  12022. align-items: center;
  12023. justify-content: flex-start;
  12024. margin: 15px 10px;
  12025. }
  12026. .toolIcon {
  12027. width: 50px;
  12028. }
  12029. .taskBorder {
  12030. /* border: 1px solid #CAD1DC; */
  12031. border-radius: 10px;
  12032. margin-top: 10px;
  12033. min-height: 670px;
  12034. position: relative;
  12035. background: #fff;
  12036. padding: 20px;
  12037. overflow: hidden;
  12038. box-sizing: border-box;
  12039. }
  12040. .smallTaskBorder {
  12041. height: 405px;
  12042. min-height: 405px !important;
  12043. overflow: hidden;
  12044. }
  12045. /* .taskBorder>div {
  12046. padding: 30px 30px 10px;
  12047. } */
  12048. .addTaskBorder {
  12049. /* border: 2px solid #5E9AFC; */
  12050. border-radius: 8px;
  12051. margin-top: 10px;
  12052. cursor: pointer;
  12053. /* height: 50px;
  12054. line-height: 50px; */
  12055. background: #fff;
  12056. padding: 15px 0;
  12057. display: flex;
  12058. align-items: center;
  12059. justify-content: center;
  12060. }
  12061. /* .addTaskBorder>div {
  12062. margin: 0 auto;
  12063. display: flex;
  12064. align-items: center;
  12065. justify-content: center;
  12066. }
  12067. .addTaskBorder>div>img {
  12068. width: 20px;
  12069. }
  12070. .addTaskBorder>div>span {
  12071. font-size: 16px;
  12072. margin-left: 10px;
  12073. color: #5E9AFC;
  12074. } */
  12075. .funBlock {
  12076. display: flex;
  12077. padding: 15px 0;
  12078. flex-direction: row;
  12079. justify-content: center;
  12080. align-items: center;
  12081. position: absolute;
  12082. right: 0;
  12083. bottom: 0;
  12084. background: #fff;
  12085. width: 100%;
  12086. height: 60px;
  12087. z-index: 9;
  12088. }
  12089. .fold {
  12090. display: flex;
  12091. margin: 0 20px;
  12092. flex-direction: row;
  12093. align-items: center;
  12094. cursor: pointer;
  12095. color: #2b7bff;
  12096. }
  12097. .arrow {
  12098. margin-right: 8px;
  12099. width: 16px;
  12100. height: 16px;
  12101. min-width: 16px;
  12102. min-height: 16px;
  12103. background-size: 100% 100%;
  12104. display: block;
  12105. background-image: url(../../../assets/icon/new/u_up.png);
  12106. /* border-left: 7px solid transparent;
  12107. border-bottom: 7px solid #717C8D;
  12108. border-top: 0px solid transparent;
  12109. border-right: 7px solid transparent; */
  12110. /* box-sizing: border-box; */
  12111. transition: all .3s;
  12112. }
  12113. .arrowZ {
  12114. transform: rotate(180deg);
  12115. }
  12116. .addToolFun {
  12117. display: flex;
  12118. width: 150px;
  12119. flex-direction: row;
  12120. align-items: center;
  12121. justify-content: center;
  12122. border: 2px dashed #CAD1DC;
  12123. border-radius: 5px;
  12124. height: 50px;
  12125. margin: 35px auto 0;
  12126. cursor: pointer;
  12127. }
  12128. .addToolFun2 {
  12129. display: flex;
  12130. width: 150px;
  12131. border: 2px dashed #CAD1DC;
  12132. flex-direction: row;
  12133. align-items: center;
  12134. justify-content: center;
  12135. border-radius: 5px;
  12136. height: 50px;
  12137. margin: 0 auto 0;
  12138. cursor: pointer;
  12139. }
  12140. .addToolFun2>div,
  12141. .addToolFun>div {
  12142. display: flex;
  12143. line-height: 50px;
  12144. }
  12145. .addToolImg {
  12146. width: 20px;
  12147. height: 20px;
  12148. margin-right: 10px;
  12149. }
  12150. .addToolsDia>>>.el-dialog__body {
  12151. padding: 20px;
  12152. }
  12153. .addToolsDia>>>.el-dialog__body>.toolChoose {
  12154. padding: 0;
  12155. }
  12156. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  12157. padding: 0;
  12158. border-bottom: none;
  12159. margin-bottom: 0;
  12160. }
  12161. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  12162. width: 100%;
  12163. }
  12164. .lineCss>>>.el-form-item__label {
  12165. width: auto !important;
  12166. }
  12167. .lineCss>>>.el-form-item__content {
  12168. margin-left: 50px !important;
  12169. }
  12170. .newSteps {
  12171. display: flex;
  12172. width: 100% !important;
  12173. /* height: 80px; */
  12174. cursor: pointer;
  12175. margin: 10px 0;
  12176. border-radius: 10px;
  12177. flex-direction: row;
  12178. align-content: center;
  12179. justify-content: center;
  12180. align-items: center;
  12181. margin: 0 !important;
  12182. }
  12183. /* 评价样式 */
  12184. .elist_css {
  12185. padding-bottom: 75px !important;
  12186. }
  12187. .elist_title {
  12188. margin-bottom: 10px;
  12189. }
  12190. .elist_input {
  12191. width: 100%;
  12192. }
  12193. .elist_input_box {
  12194. display: flex;
  12195. align-items: center;
  12196. flex-wrap: wrap;
  12197. }
  12198. .elist_input_box+.elist_input_box {
  12199. margin-top: 30px;
  12200. }
  12201. .elist_input .elist_input_box input {
  12202. font: inherit;
  12203. color: currentColor;
  12204. width: 100%;
  12205. /* max-width: calc(100% - 385px); */
  12206. max-width: calc(100% - 150px);
  12207. padding: 8px 14px;
  12208. display: block;
  12209. min-width: 0;
  12210. outline: none;
  12211. border: 1px solid rgba(0, 0, 0, 0.23);
  12212. border-radius: 4px;
  12213. box-sizing: border-box;
  12214. background: #fff;
  12215. margin: 0 20px 0 0;
  12216. }
  12217. .elist_input .elist_input_box span {
  12218. height: 36px;
  12219. line-height: 36px;
  12220. color: rgb(82, 82, 82);
  12221. min-width: 80px;
  12222. }
  12223. .elist_input .elist_input_box .remove {
  12224. height: 20px;
  12225. width: 20px;
  12226. min-height: 20px;
  12227. min-width: 20px;
  12228. background-size: 100% 100%;
  12229. background-position: unset;
  12230. margin-left: 5px;
  12231. }
  12232. .elist_input_box>>>.el-rate {
  12233. display: flex;
  12234. height: 36px;
  12235. align-items: center;
  12236. }
  12237. .elist_input_box .elist_inptu_text {
  12238. width: 100%;
  12239. display: flex;
  12240. align-items: center;
  12241. margin-top: 10px;
  12242. }
  12243. .elist_input_box .elist_inptu_text input {
  12244. /* width: 500px; */
  12245. width: 100%;
  12246. max-width: unset;
  12247. }
  12248. .elist_input_box>>>.el-rate__icon {
  12249. font-size: 24px;
  12250. }
  12251. .elist_btn {
  12252. margin-top: 10px;
  12253. }
  12254. .lineTitle {
  12255. /* margin-top: 15px; */
  12256. width: 110px;
  12257. font-size: 16px;
  12258. display: flex;
  12259. align-items: center;
  12260. line-height: 20px;
  12261. }
  12262. .lineTitle::before {
  12263. content: '';
  12264. display: block;
  12265. width: 3px;
  12266. height: 20px;
  12267. background: #0061FF;
  12268. border-radius: 3px;
  12269. margin: 0 5px 0 0;
  12270. }
  12271. .clineTitle::before {
  12272. content: '';
  12273. display: block;
  12274. min-width: 10px;
  12275. width: 10px;
  12276. height: 10px;
  12277. background: #0061ff;
  12278. border-radius: 50%;
  12279. margin: 0 5px 0 0;
  12280. }
  12281. .courseTop {
  12282. display: flex;
  12283. flex-direction: row;
  12284. justify-content: space-between;
  12285. align-items: center;
  12286. width: calc(100% - 40px);
  12287. margin: 0 auto;
  12288. padding: 10px 0;
  12289. }
  12290. .stepsNav {
  12291. display: flex;
  12292. flex-direction: row;
  12293. justify-content: flex-start;
  12294. align-items: center;
  12295. }
  12296. .stepsWord {
  12297. font-size: 18px;
  12298. color: #fff;
  12299. font-weight: bold;
  12300. margin-left: auto;
  12301. background: rgb(15, 126, 255);
  12302. border-radius: 5px;
  12303. padding: 3px 25px;
  12304. box-sizing: border-box;
  12305. }
  12306. .stepBox {
  12307. width: calc(100% - 40px);
  12308. height: calc(100% - 50px);
  12309. overflow: hidden;
  12310. border-radius: 5px;
  12311. margin: 0 auto;
  12312. }
  12313. .rightBox {
  12314. width: calc(100%);
  12315. background: #F0F2F5;
  12316. /* border-radius: 10px; */
  12317. overflow: auto;
  12318. height: calc(100% - 150px);
  12319. margin: 0 auto;
  12320. position: relative;
  12321. box-sizing: border-box;
  12322. }
  12323. .e_add_top {
  12324. display: flex;
  12325. justify-content: space-between;
  12326. background: #fff;
  12327. position: absolute;
  12328. right: 20px;
  12329. height: 50px;
  12330. align-items: center;
  12331. }
  12332. .e_add_title2 {
  12333. display: flex;
  12334. align-items: center;
  12335. }
  12336. .e_add_title2 span {
  12337. width: 40px;
  12338. }
  12339. .e_add_title {
  12340. display: flex;
  12341. align-items: center;
  12342. color: #b8b8b8;
  12343. font-size: 18px;
  12344. position: relative;
  12345. height: 40px;
  12346. }
  12347. .e_add_title span {
  12348. margin-right: 10px;
  12349. }
  12350. .e_add_title .el_input {
  12351. width: 300px;
  12352. }
  12353. .e_add_title>>>.el-input__inner {
  12354. width: 400px;
  12355. }
  12356. .e_add_btn {}
  12357. .e_add_content {
  12358. display: flex;
  12359. width: 100%;
  12360. }
  12361. .e_add_list {
  12362. background: #fff;
  12363. height: 500px;
  12364. width: 210px;
  12365. position: relative;
  12366. margin: 15px 5px 0 0;
  12367. flex-shrink: 0;
  12368. display: flex;
  12369. flex-direction: column;
  12370. }
  12371. .e_add_list_title {
  12372. font-size: 20px;
  12373. width: 100%;
  12374. box-sizing: border-box;
  12375. padding: 15px 40px;
  12376. text-align: center;
  12377. border-bottom: 1px solid #eaeaea;
  12378. position: relative;
  12379. display: flex;
  12380. align-items: center;
  12381. justify-content: center;
  12382. height: 57px;
  12383. background: #f6f6f6;
  12384. }
  12385. .e_add_list_title span {
  12386. overflow: hidden;
  12387. white-space: nowrap;
  12388. text-overflow: ellipsis;
  12389. }
  12390. .e_add_list_title img {
  12391. position: absolute;
  12392. right: 15px;
  12393. width: 25px;
  12394. cursor: pointer;
  12395. top: 50%;
  12396. transform: translateY(-50%);
  12397. }
  12398. .e_add_list_body {
  12399. height: calc(100% - 187px);
  12400. overflow: auto;
  12401. }
  12402. .e_add_list_child {
  12403. width: 100%;
  12404. display: flex;
  12405. align-items: center;
  12406. justify-content: center;
  12407. position: relative;
  12408. box-sizing: border-box;
  12409. padding: 15px 40px;
  12410. text-align: center;
  12411. }
  12412. .e_add_list_child span {
  12413. overflow: hidden;
  12414. white-space: nowrap;
  12415. text-overflow: ellipsis;
  12416. cursor: pointer;
  12417. }
  12418. .e_add_list_child img {
  12419. position: absolute;
  12420. right: 10px;
  12421. width: 21px;
  12422. cursor: pointer;
  12423. top: 50%;
  12424. transform: translateY(-50%);
  12425. }
  12426. .e_add_list_child+.e_add_list_child {
  12427. border-top: 1px solid #eaeaea;
  12428. }
  12429. .e_add_list_child .active {
  12430. color: #409eff;
  12431. }
  12432. .e_add_list_btn {
  12433. position: absolute;
  12434. bottom: 0;
  12435. height: 50px;
  12436. background: rgb(120, 120, 254);
  12437. width: 100%;
  12438. color: #fff;
  12439. font-size: 16px;
  12440. text-align: center;
  12441. line-height: 50px;
  12442. cursor: pointer;
  12443. }
  12444. .e_add_list_detail {
  12445. position: absolute;
  12446. bottom: 0;
  12447. height: 130px;
  12448. background: rgb(120, 120, 254);
  12449. width: 100%;
  12450. color: #fff;
  12451. font-size: 16px;
  12452. display: flex;
  12453. align-items: center;
  12454. justify-content: center;
  12455. }
  12456. .e_add_list_detail textarea {
  12457. height: 90%;
  12458. width: 95%;
  12459. border: none;
  12460. resize: none;
  12461. outline: none;
  12462. padding: 5px;
  12463. box-sizing: border-box;
  12464. }
  12465. .e_add_list_pbox {
  12466. width: 100%;
  12467. }
  12468. .e_add_list_pbox_title {
  12469. height: 50px;
  12470. background: #fff;
  12471. display: flex;
  12472. align-items: center;
  12473. width: 100%;
  12474. box-sizing: border-box;
  12475. padding: 0 20px;
  12476. flex-direction: row;
  12477. flex-wrap: wrap;
  12478. }
  12479. .type_title {
  12480. font-size: 18px;
  12481. font-weight: 700;
  12482. }
  12483. .type_content {
  12484. font-size: 16px;
  12485. margin-left: 30px;
  12486. }
  12487. .type_content span+span {
  12488. margin-left: 20px;
  12489. }
  12490. .type_content span {
  12491. cursor: pointer;
  12492. padding-bottom: 5px;
  12493. box-sizing: border-box;
  12494. }
  12495. .type_content .active {
  12496. color: #409eff;
  12497. border-bottom: 2px solid #409eff;
  12498. }
  12499. .e_add_list_pbox_content {
  12500. height: calc(100% - 50px);
  12501. display: flex;
  12502. align-items: center;
  12503. width: 100%;
  12504. background: #fff;
  12505. }
  12506. .mbCss {
  12507. width: 100%;
  12508. display: flex;
  12509. flex-direction: row;
  12510. flex-wrap: nowrap;
  12511. align-content: center;
  12512. align-items: flex-start;
  12513. justify-content: flex-start;
  12514. }
  12515. .pjCss {
  12516. /* width: 42%; */
  12517. width: calc(100% - 55%);
  12518. display: flex;
  12519. flex-direction: column;
  12520. flex-wrap: nowrap;
  12521. align-items: flex-start;
  12522. }
  12523. .e_box {
  12524. /* display: flex; */
  12525. flex-wrap: wrap;
  12526. max-height: 500px;
  12527. align-items: flex-start;
  12528. overflow: auto;
  12529. width:100%;
  12530. }
  12531. .e_card {
  12532. border: 1px solid #ccc;
  12533. background: #fff;
  12534. margin-right: 20px;
  12535. width: 270px;
  12536. display: flex;
  12537. flex-direction: column;
  12538. align-items: center;
  12539. border-radius: 5px;
  12540. margin-top: 10px;
  12541. text-align: center;
  12542. }
  12543. .e_card_picture {
  12544. margin: 10px 0;
  12545. }
  12546. .e_card_picture>img {
  12547. width: 50px;
  12548. }
  12549. .e_card_name {
  12550. width: 100%;
  12551. padding: 0 10px;
  12552. box-sizing: border-box;
  12553. margin-bottom: 10px;
  12554. overflow: hidden;
  12555. text-overflow: ellipsis;
  12556. white-space: nowrap;
  12557. }
  12558. .e_card_time {
  12559. width: 100%;
  12560. padding: 0 10px;
  12561. box-sizing: border-box;
  12562. font-size: 15px;
  12563. color: #c3c3c3;
  12564. margin-bottom: 10px;
  12565. }
  12566. .e_card_btn {
  12567. height: 40px;
  12568. display: flex;
  12569. align-items: center;
  12570. width: 100%;
  12571. background: rgb(244, 244, 244);
  12572. }
  12573. .e_card_btn:hover {
  12574. background: rgb(221 221 221);
  12575. }
  12576. .e_card_btn span {
  12577. flex: 1 1 auto;
  12578. text-align: center;
  12579. cursor: pointer;
  12580. }
  12581. .addEva {
  12582. border: 1px solid #ccc;
  12583. background: #fff;
  12584. margin-right: 20px;
  12585. width: 270px;
  12586. height: 149px;
  12587. display: flex;
  12588. flex-direction: column;
  12589. align-items: center;
  12590. border-radius: 5px;
  12591. margin-top: 10px;
  12592. text-align: center;
  12593. cursor: pointer;
  12594. justify-content: center;
  12595. }
  12596. .addEva>img {
  12597. width: 50px;
  12598. object-fit: cover;
  12599. }
  12600. .uploadFm {
  12601. border: 1px dashed #ccc;
  12602. width: 100%;
  12603. height: 140px;
  12604. position: relative;
  12605. cursor: pointer;
  12606. display: flex;
  12607. flex-direction: column;
  12608. justify-content: center;
  12609. align-items: center;
  12610. font-size: 14px;
  12611. color: #6e6e6e;
  12612. position:relative;
  12613. }
  12614. .cover_p{
  12615. width: 100% !important;
  12616. height: 100%;
  12617. object-fit: cover;
  12618. }
  12619. .uploadFm2:hover .cover_mask{
  12620. display: flex !important;
  12621. }
  12622. .cover_mask{
  12623. display:none;
  12624. width:100%;
  12625. height:100%;
  12626. position:absolute;
  12627. background:#00000054;
  12628. align-items: center;
  12629. justify-content: center;
  12630. flex-direction: column;
  12631. }
  12632. .cover_mask > img{
  12633. width: 30px;
  12634. }
  12635. .cover_mask > span{
  12636. color: #fff;
  12637. font-size: 12px;
  12638. }
  12639. .uploadFm>img {
  12640. width: 50px;
  12641. }
  12642. .fileCss {
  12643. width: 100%;
  12644. display: flex;
  12645. flex-direction: row;
  12646. flex-wrap: nowrap;
  12647. justify-content: space-around;
  12648. align-items: center;
  12649. padding-top: 15px;
  12650. }
  12651. .fileCss>div {
  12652. display: flex;
  12653. flex-direction: column;
  12654. align-items: center;
  12655. }
  12656. .fileCss .spanName {
  12657. margin-top: 10px
  12658. }
  12659. .sysPicBox {
  12660. display: flex;
  12661. flex-direction: row;
  12662. flex-wrap: wrap;
  12663. align-content: flex-start;
  12664. height: 435px;
  12665. overflow: auto;
  12666. position: relative;
  12667. }
  12668. .picNone {
  12669. position: absolute;
  12670. left: 50%;
  12671. top: 45%;
  12672. transform: translate(-50%, -50%);
  12673. width: fit-content;
  12674. color: #9c9c9c;
  12675. }
  12676. .sysPic {
  12677. width: 200px;
  12678. height: 115px;
  12679. margin: 0 20px 20px 0;
  12680. cursor: pointer;
  12681. }
  12682. .sysPic>img,
  12683. .isSysPic>img,
  12684. .deletePic>img {
  12685. width: 100%;
  12686. height: 100%;
  12687. object-fit: cover;
  12688. }
  12689. .isSysPic {
  12690. width: 200px;
  12691. height: 115px;
  12692. position: relative;
  12693. }
  12694. .deletePic {
  12695. width: 20px;
  12696. height: 20px;
  12697. position: absolute;
  12698. top: 0;
  12699. right: 0;
  12700. cursor: pointer;
  12701. }
  12702. .select_box1 {
  12703. height: 100%;
  12704. }
  12705. .select_box1_img {
  12706. background: #fff;
  12707. border-radius: 5px;
  12708. padding: 15px;
  12709. box-sizing: border-box;
  12710. margin-bottom: 20px;
  12711. }
  12712. .select_box1_title {
  12713. padding: 0 0 15px 0;
  12714. border-bottom: 1px solid #eee;
  12715. margin-bottom: 15px;
  12716. }
  12717. .select_box1_title span:nth-child(1) {
  12718. font-size: 16px;
  12719. margin-right: 20px;
  12720. color: #000;
  12721. }
  12722. .select_box1_title span:nth-child(2) {
  12723. font-size: 14px;
  12724. color: rgb(112, 112, 112);
  12725. }
  12726. .select_box1_add_img {}
  12727. .select_box1_select {
  12728. background: #fff;
  12729. border-radius: 5px;
  12730. padding: 15px;
  12731. box-sizing: border-box;
  12732. height: calc(100% - 200px);
  12733. overflow: auto;
  12734. }
  12735. .select_box2 {
  12736. height: 100%;
  12737. }
  12738. .select_box2_title {
  12739. background: #fff;
  12740. border-radius: 5px;
  12741. padding: 5px 10px;
  12742. box-sizing: border-box;
  12743. margin-bottom: 10px;
  12744. }
  12745. .select_box2_box {
  12746. display: flex;
  12747. height: calc(100% - 30px);
  12748. }
  12749. .select_box2_img {
  12750. width: calc(100% - 310px);
  12751. height: 100%;
  12752. overflow: auto;
  12753. background: #fff;
  12754. border-radius: 5px;
  12755. }
  12756. .select_box2_img img {
  12757. width: 100%;
  12758. }
  12759. .select_box2_answer {
  12760. background: #fff;
  12761. margin-left: 10px;
  12762. border-radius: 5px;
  12763. width: 300px;
  12764. overflow: auto;
  12765. height: 100%;
  12766. display: flex;
  12767. flex-direction: column;
  12768. align-items: center;
  12769. padding-top: 10px;
  12770. box-sizing: border-box;
  12771. }
  12772. .select_box2_answer_box {
  12773. margin: 0 0 10px 0;
  12774. width: 85%;
  12775. }
  12776. .rate_textarea {
  12777. font: inherit;
  12778. color: currentColor;
  12779. width: 100%;
  12780. padding: 8px 14px;
  12781. display: block;
  12782. min-width: 0;
  12783. outline: none;
  12784. border: 1px solid rgba(0, 0, 0, 0.23);
  12785. border-radius: 4px;
  12786. box-sizing: border-box;
  12787. background: #fff;
  12788. margin: 0 20px 0 0;
  12789. resize: none;
  12790. }
  12791. .select_answer_title {
  12792. text-align: left;
  12793. width: 85%;
  12794. margin-bottom: 10px;
  12795. font-size: 18px;
  12796. color: #8e8e8e;
  12797. }
  12798. .mask {
  12799. background-color: rgb(0 0 0 / 30%);
  12800. /* position: fixed; */
  12801. position: absolute;
  12802. top: 0;
  12803. left: 0;
  12804. width: 100%;
  12805. height: 100%;
  12806. z-index: 90;
  12807. display: flex;
  12808. align-items: center;
  12809. justify-content: center;
  12810. }
  12811. .progressBox {
  12812. width: 300px;
  12813. height: 150px;
  12814. background: #fff;
  12815. border-radius: 10px;
  12816. box-shadow: 0 0 6px 1px #bfbfbf;
  12817. display: flex;
  12818. align-items: center;
  12819. justify-content: center;
  12820. flex-direction: column;
  12821. position: relative;
  12822. color: #6c6c6c;
  12823. }
  12824. .progressBox>>>.el-progress-bar__outer {
  12825. background-color: #d1dfff !important;
  12826. }
  12827. .progressBox .lbox {
  12828. height: 50px;
  12829. font-size: 19px;
  12830. display: flex;
  12831. align-items: center;
  12832. color: #747474;
  12833. }
  12834. .progressBox .lbox img {
  12835. width: 40px;
  12836. margin-right: 20px;
  12837. }
  12838. .closeCss {
  12839. position: absolute;
  12840. top: 8px;
  12841. right: 8px;
  12842. cursor: pointer;
  12843. width: 20px;
  12844. height: 20px;
  12845. }
  12846. .closeCss>img {
  12847. width: 100%;
  12848. height: 100%;
  12849. }
  12850. .updateTips::before {
  12851. content: "协同编辑培训暂不支持修改基本信息,只支持修改阶段内容。";
  12852. font-size: 14px;
  12853. margin-left: 20px;
  12854. font-weight: 400;
  12855. color: #ff3a3a;
  12856. margin-bottom: 10px;
  12857. display: block;
  12858. }
  12859. .updateMask {
  12860. width: 100%;
  12861. z-index: 3;
  12862. top: 0;
  12863. position: absolute;
  12864. /* background-color: rgba(0,0,0,.3); */
  12865. }
  12866. .t_j_box {
  12867. display: flex;
  12868. }
  12869. .t_j_box span:nth-child(1) {
  12870. width: 15%;
  12871. overflow: hidden;
  12872. margin-right: 10px;
  12873. text-overflow: ellipsis;
  12874. white-space: nowrap;
  12875. }
  12876. .t_j_box span:nth-child(2) {
  12877. width: 30%;
  12878. overflow: hidden;
  12879. text-overflow: ellipsis;
  12880. margin-right: 10px;
  12881. }
  12882. .t_j_box span:nth-child(3) {
  12883. max-width: calc(55% - 20px);
  12884. overflow: hidden;
  12885. text-overflow: ellipsis;
  12886. }
  12887. .sentenBox {
  12888. background: #fff;
  12889. height: 600px;
  12890. overflow: auto;
  12891. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12892. background-position: 102%;
  12893. background-repeat: no-repeat;
  12894. background-size: 60%;
  12895. }
  12896. .sentenBox>.sentenContent {
  12897. padding-bottom: 10px;
  12898. width: 97%;
  12899. margin: 0 auto;
  12900. }
  12901. .sentenBox>.sentenContent+.sentenContent {
  12902. border-top: 1px solid #cbcbcb;
  12903. }
  12904. .addSen {
  12905. background: #409efe;
  12906. width: 90px;
  12907. color: #fff;
  12908. height: 35px;
  12909. text-align: center;
  12910. line-height: 35px;
  12911. border-radius: 5px;
  12912. float: right;
  12913. margin: 10px 20px 0 0;
  12914. cursor: pointer;
  12915. }
  12916. .sentenTop {
  12917. display: flex;
  12918. flex-direction: row;
  12919. flex-wrap: nowrap;
  12920. align-items: center;
  12921. }
  12922. .sentenTop::before {
  12923. content: attr(index);
  12924. background: #3681fc;
  12925. border-radius: 50%;
  12926. color: #fff;
  12927. width: 25px;
  12928. height: 25px;
  12929. min-width: 25px;
  12930. min-height: 25px;
  12931. text-align: center;
  12932. line-height: 25px;
  12933. margin-right: 5px;
  12934. }
  12935. .sentenTop>div:nth-child(2) {
  12936. width: 300px;
  12937. margin: 0 15px;
  12938. }
  12939. .sentenTop>div:nth-child(3) {
  12940. background: #409efe;
  12941. color: #fff;
  12942. width: 65px;
  12943. height: 35px;
  12944. text-align: center;
  12945. line-height: 35px;
  12946. border-radius: 5px;
  12947. cursor: pointer;
  12948. }
  12949. .cardList {
  12950. padding: 30px 0 20px 0;
  12951. display: flex;
  12952. flex-direction: row;
  12953. flex-wrap: wrap;
  12954. align-items: center;
  12955. box-sizing: border-box;
  12956. border-bottom: 1px solid #f4f4f4;
  12957. width: 98%;
  12958. margin: 0 auto;
  12959. }
  12960. .rightCardList {
  12961. display: flex;
  12962. flex-wrap: wrap;
  12963. }
  12964. .cardBox {
  12965. display: flex;
  12966. flex-direction: row;
  12967. flex-wrap: wrap;
  12968. align-items: center;
  12969. align-content: center;
  12970. }
  12971. .isCard,
  12972. .isCard1 {
  12973. width: auto;
  12974. padding: 0 20px;
  12975. height: 65px;
  12976. text-align: center;
  12977. line-height: 65px;
  12978. font-size: 14px;
  12979. cursor: pointer;
  12980. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12981. background-size: 100% 100%;
  12982. position: relative;
  12983. z-index: 99;
  12984. }
  12985. .isCard1 {
  12986. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12987. }
  12988. .isCard:hover .deleteWord {
  12989. display: block;
  12990. }
  12991. .isCard>div:nth-child(1),
  12992. .isCard1>div:nth-child(1) {
  12993. white-space: nowrap;
  12994. overflow: hidden;
  12995. text-overflow: ellipsis;
  12996. width: 100%;
  12997. margin: 0 auto;
  12998. }
  12999. .card {
  13000. width: 140px;
  13001. height: 65px;
  13002. }
  13003. .card>img {
  13004. width: 100%;
  13005. height: 100%;
  13006. }
  13007. .rightCardBox {
  13008. width: 98%;
  13009. margin: 10px auto 0;
  13010. }
  13011. .rightCardBox>div:nth-child(1) {
  13012. margin-bottom: 10px;
  13013. }
  13014. .cardCss {
  13015. display: flex;
  13016. flex-direction: column;
  13017. flex-wrap: nowrap;
  13018. align-items: center;
  13019. border-bottom: 3px solid #b4c3d3;
  13020. padding: 0 0 5px 0;
  13021. /* margin-right: 10px; */
  13022. }
  13023. .cardCss>div:nth-child(2) {
  13024. background: #5b7b9d;
  13025. color: #fff;
  13026. width: 20px;
  13027. height: 20px;
  13028. border-radius: 50%;
  13029. text-align: center;
  13030. line-height: 20px;
  13031. }
  13032. .sentenTopBox {
  13033. display: flex;
  13034. flex-direction: row;
  13035. flex-wrap: nowrap;
  13036. align-items: center;
  13037. justify-content: space-between;
  13038. padding: 55px 0 0 20px;
  13039. box-sizing: border-box;
  13040. width: 85%;
  13041. }
  13042. .stepsBottom {
  13043. width: 100%;
  13044. box-shadow: 0 0 10px 10px #f7f7f7;
  13045. /* background: #f7f7f7; */
  13046. border-radius: 10px;
  13047. overflow: hidden;
  13048. height: 100%
  13049. }
  13050. .navTop {
  13051. background: #53749b;
  13052. color: #fff;
  13053. height: 40px;
  13054. line-height: 40px;
  13055. padding-left: 15px;
  13056. font-size: 18px;
  13057. }
  13058. .navBottom {
  13059. /* background: #6b91b7; */
  13060. height: 100%;
  13061. overflow: auto;
  13062. padding: 10px 0;
  13063. }
  13064. .navStage {
  13065. display: flex;
  13066. flex-direction: row;
  13067. flex-wrap: nowrap;
  13068. align-items: center;
  13069. padding: 10px 10px 10px 0;
  13070. cursor: pointer;
  13071. background: #ffffff;
  13072. width: 95%;
  13073. margin: 5px auto 5px;
  13074. box-sizing: border-box;
  13075. border-radius: 5px;
  13076. flex-wrap: wrap;
  13077. position: relative;
  13078. }
  13079. .navStage:hover > .chapter_upload_drag{
  13080. display: block;
  13081. }
  13082. .navTask:hover > .chapter_upload_drag{
  13083. display: block;
  13084. }
  13085. .chapter_upload:hover > .chapter_upload_drag{
  13086. display: block;
  13087. }
  13088. .navStage::before {
  13089. content: '';
  13090. display: block;
  13091. width: 16px;
  13092. height: 16px;
  13093. background-image: url(../../../assets/icon/new/icon_stage.png);
  13094. background-size: 100%;
  13095. margin-left: 25px;
  13096. }
  13097. .navStage .chapter_unit_open {
  13098. content: '';
  13099. display: block;
  13100. width: 16px;
  13101. height: 16px;
  13102. background-image: url(../../../assets/icon/new/down.png);
  13103. transform: rotate(-90deg);
  13104. background-size: 100%;
  13105. margin-left: 10px;
  13106. transition: all .5s;
  13107. }
  13108. .isNavStageOpen .chapter_unit_open {
  13109. transform: rotate(0deg);
  13110. }
  13111. .isNavStage {
  13112. background: #0061FF;
  13113. }
  13114. .isNavStage::before{
  13115. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  13116. }
  13117. .isNavStage .chapter_unit_open{
  13118. background-image: url(../../../assets/icon/new/downC.png);
  13119. }
  13120. .isNavStage .nt_taskName {
  13121. font-weight: bold !important;
  13122. color: #FFFFFF !important;
  13123. }
  13124. .isNavStage .nt_taskTitle {
  13125. font-weight: bold !important;
  13126. color: #fff !important;
  13127. }
  13128. .navStage .nt_taskBox {
  13129. width: calc(100% - 68px);
  13130. padding: 0 0 0 5px;
  13131. box-sizing: border-box;
  13132. box-sizing: border-box;
  13133. display: flex;
  13134. flex-direction: row;
  13135. flex-wrap: nowrap;
  13136. align-items: baseline;
  13137. }
  13138. .navStage .nt_taskTitle {
  13139. color: #060E17;
  13140. line-height: 25px;
  13141. font-size: 16px;
  13142. }
  13143. .navStage .nt_taskName {
  13144. max-width: calc(100% - 82px);
  13145. white-space: nowrap;
  13146. overflow: hidden;
  13147. text-overflow: ellipsis;
  13148. font-size: 16px;
  13149. color: #060E17;
  13150. }
  13151. .navTask {
  13152. display: flex;
  13153. flex-direction: row;
  13154. flex-wrap: nowrap;
  13155. align-items: center;
  13156. padding: 10px 10px 10px 0;
  13157. cursor: pointer;
  13158. background: #ffffff;
  13159. width: 95%;
  13160. margin: 5px auto 5px;
  13161. box-sizing: border-box;
  13162. border-radius: 5px;
  13163. flex-wrap: wrap;
  13164. position: relative;
  13165. }
  13166. .navTask .chapter_upload_open {
  13167. content: '';
  13168. display: block;
  13169. width: 16px;
  13170. height: 16px;
  13171. background-image: url(../../../assets/icon/new/icon_arrow.png);
  13172. background-size: 100%;
  13173. margin-left: 23px;
  13174. }
  13175. .noImage .chapter_upload_open {
  13176. display: none;
  13177. background-image: unset !important;
  13178. }
  13179. .isNavOpen .chapter_upload_open {
  13180. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  13181. transform: rotate(90deg);
  13182. }
  13183. .isNavTask .chapter_upload_open {
  13184. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  13185. transform: rotate(-90deg);
  13186. }
  13187. .isNavTask.isNavOpen .chapter_upload_open{
  13188. transform: rotate(0deg);
  13189. }
  13190. .dragOverTop {
  13191. border-top: 2px solid #0061FF !important;
  13192. border-radius: 0 !important;
  13193. margin-top: 10px;
  13194. }
  13195. .dragOverBottom {
  13196. border-bottom: 2px solid #0061FF !important;
  13197. border-radius: 0 !important;
  13198. margin-top: 10px;
  13199. }
  13200. .dragOverTop2 {
  13201. border-top: 2px solid #0061FF !important;
  13202. border-radius: 0 !important;
  13203. }
  13204. .dragOverBottom2 {
  13205. border-bottom: 2px solid #0061FF !important;
  13206. border-radius: 0 !important;
  13207. }
  13208. .isNavTask {
  13209. /* background: #3681FC; */
  13210. background: #EEF3FB;
  13211. }
  13212. .isNavTask>.chapter_upload_drag {
  13213. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  13214. }
  13215. .isNavTask .nt_taskName {
  13216. /* color: #fff !important; */
  13217. font-weight: bold !important;
  13218. color: #0061FF !important;
  13219. }
  13220. .isNavTask .nt_taskTitle {
  13221. /* color: #AECCFE !important; */
  13222. font-weight: bold !important;
  13223. color: #0061FF !important;
  13224. }
  13225. .navTask .nt_taskBox {
  13226. width: calc(100% - 40px);
  13227. padding: 0 0 0 5px;
  13228. box-sizing: border-box;
  13229. box-sizing: border-box;
  13230. display: flex;
  13231. flex-direction: row;
  13232. flex-wrap: nowrap;
  13233. align-items: baseline;
  13234. }
  13235. .navTask .nt_taskTitle {
  13236. /* color: #717C8D; */
  13237. color: #060E17;
  13238. line-height: 25px;
  13239. font-size: 16px;
  13240. /* min-width: 66px; */
  13241. }
  13242. .navTask .nt_taskName {
  13243. /* color: #fff; */
  13244. /* max-width: 130px; */
  13245. /* width: 100%; */
  13246. max-width: calc(100% - 66px);
  13247. font-size: 16px;
  13248. color: #060E17;
  13249. /* color: #0E1E33; */
  13250. }
  13251. .navTask .nt_taskName span{
  13252. width: 100%;
  13253. white-space: nowrap;
  13254. overflow: hidden;
  13255. text-overflow: ellipsis;
  13256. display:block;
  13257. }
  13258. .gjBox {
  13259. width: calc(100% - 25px);
  13260. padding: 0 0 0 0;
  13261. box-sizing: border-box;
  13262. border-left: 1px solid #CAD1DC;
  13263. margin-left: 25px;
  13264. }
  13265. .gjBox>div {
  13266. display: flex;
  13267. align-items: center;
  13268. }
  13269. .gjBox>div::before {
  13270. content: '';
  13271. height: 1px;
  13272. width: 10px;
  13273. background: #CAD1DC;
  13274. display: block;
  13275. margin-right: 5px;
  13276. }
  13277. .gjCss {
  13278. display: flex;
  13279. flex-direction: row;
  13280. flex-wrap: nowrap;
  13281. align-items: center;
  13282. padding: 15px 0;
  13283. box-sizing: border-box;
  13284. font-size: 14px;
  13285. cursor: pointer;
  13286. }
  13287. .isGjCss {
  13288. color: #0061ff;
  13289. }
  13290. .groupBox {}
  13291. .groupContent+.groupContent {
  13292. margin-top: 30px;
  13293. }
  13294. .groupTitle {
  13295. font-size: 24px;
  13296. color: rgb(80, 80, 80);
  13297. margin-bottom: 20px;
  13298. }
  13299. .groupName {
  13300. display: flex;
  13301. align-items: center;
  13302. }
  13303. .groupn {
  13304. font-size: 15px;
  13305. margin-right: 10px;
  13306. }
  13307. .groupName+.groupName {
  13308. margin-top: 15px;
  13309. }
  13310. .groupBtn {
  13311. margin-left: 10px;
  13312. }
  13313. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13314. text-align: left;
  13315. }
  13316. .radioBox>div {
  13317. margin: 10px 0 0 10px;
  13318. }
  13319. .radioBox>>>.el-radio__input,
  13320. .radioBox>>>.el-checkbox__inner {
  13321. margin-left: 10px;
  13322. }
  13323. .radioBox>>>.el-radio__label,
  13324. .radioBox>>>.el-checkbox__label {
  13325. display: flex;
  13326. align-items: center;
  13327. }
  13328. .inImg {
  13329. width: 50px;
  13330. }
  13331. .inImg>img {
  13332. width: 100%;
  13333. height: 100%;
  13334. object-fit: cover;
  13335. }
  13336. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13337. height: auto;
  13338. padding: 10px;
  13339. margin: 0;
  13340. }
  13341. .upCss>>>.el-upload-list {
  13342. width: 100%;
  13343. }
  13344. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13345. width: 100%;
  13346. height: 120px;
  13347. object-fit: contain;
  13348. background: unset;
  13349. margin-left: 0;
  13350. }
  13351. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13352. display: none;
  13353. }
  13354. .tcMember+.tcMember::before {
  13355. content: "、";
  13356. }
  13357. .xzUpImg {
  13358. width: 25px;
  13359. height: 25px;
  13360. min-width: 25px;
  13361. min-height: 25px;
  13362. cursor: pointer;
  13363. margin: 0 10px;
  13364. }
  13365. .xzUpImg>img {
  13366. width: 100%;
  13367. height: 100%;
  13368. }
  13369. .closeCss {
  13370. position: absolute;
  13371. top: 8px;
  13372. right: 8px;
  13373. cursor: pointer;
  13374. width: 20px;
  13375. height: 20px;
  13376. }
  13377. .closeCss>img {
  13378. width: 100%;
  13379. height: 100%;
  13380. }
  13381. .moveBtn {
  13382. display: flex;
  13383. flex-direction: row;
  13384. flex-wrap: nowrap;
  13385. align-items: center;
  13386. width: 55px;
  13387. }
  13388. .timuUpImg {
  13389. display: flex;
  13390. flex-direction: row;
  13391. align-items: center;
  13392. width: 100%;
  13393. margin-right: 10px;
  13394. }
  13395. .timuUpImg>div:nth-child(1) {
  13396. margin-right: 10px;
  13397. display: flex;
  13398. align-items: center;
  13399. width: 100%;
  13400. }
  13401. .timuImgBox {
  13402. margin: 10px 0;
  13403. display: flex;
  13404. flex-direction: column;
  13405. flex-wrap: wrap;
  13406. align-items: flex-start;
  13407. }
  13408. .timuImg {
  13409. width: 100px;
  13410. margin: 5px 0;
  13411. cursor: pointer;
  13412. position: relative;
  13413. }
  13414. .timuImg:hover .deleteWord {
  13415. display: block;
  13416. }
  13417. .deleteWord {
  13418. width: 25px;
  13419. height: 25px;
  13420. position: absolute;
  13421. right: -5px;
  13422. top: -5px;
  13423. cursor: pointer;
  13424. display: none;
  13425. }
  13426. .timuImg>img,
  13427. .deleteWord>img {
  13428. width: 100%;
  13429. height: 100%;
  13430. object-fit: cover;
  13431. }
  13432. .e_add_delete {
  13433. cursor: pointer;
  13434. margin-left: 10px;
  13435. }
  13436. .pType_box {
  13437. margin-top: 30px;
  13438. align-items: flex-end;
  13439. }
  13440. .noneBox {
  13441. height: 200px;
  13442. width: 100%;
  13443. display: flex;
  13444. align-items: center;
  13445. justify-content: center;
  13446. flex-direction: column;
  13447. /* margin-top: 150px; */
  13448. }
  13449. .noneBox>img {
  13450. width: 95px;
  13451. }
  13452. .noneBox>span {
  13453. margin-top: 10px;
  13454. color: #717C8D;
  13455. }
  13456. .rb_c_box {
  13457. width: 100%;
  13458. height: 100%;
  13459. display: flex;
  13460. /* padding: 20px; */
  13461. box-sizing: border-box;
  13462. justify-content: space-between;
  13463. }
  13464. .rb_c_box_left {
  13465. height: 100%;
  13466. background: #fff;
  13467. width: 270px;
  13468. min-width: 270px;
  13469. border-radius: 8px;
  13470. margin-right: 10px;
  13471. }
  13472. .rb_c_box_right {
  13473. height: 100%;
  13474. width: calc(100%);
  13475. overflow: hidden;
  13476. }
  13477. .rb_c_box_btn {
  13478. display: flex;
  13479. justify-content: flex-start;
  13480. height: 50px;
  13481. align-items: center;
  13482. }
  13483. .rb_c_box_right>.basic_box {
  13484. /* background: #fff; */
  13485. border-radius: 0;
  13486. height: calc(100% - 0px);
  13487. overflow: auto;
  13488. padding: 0;
  13489. }
  13490. .textarea_css {
  13491. display: block;
  13492. resize: none;
  13493. padding: 10px 15px;
  13494. line-height: 1.5;
  13495. box-sizing: border-box;
  13496. width: 100%;
  13497. font-size: 14px;
  13498. color: #606266;
  13499. background-color: #FFF;
  13500. background-image: none;
  13501. border: 1px solid #DCDFE6;
  13502. border-radius: 4px;
  13503. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13504. outline: none;
  13505. overflow: hidden;
  13506. height: 46px;
  13507. font-family: 'Microsoft YaHei';
  13508. }
  13509. .textarea_css::-webkit-input-placeholder {
  13510. color: #C0C4CC
  13511. }
  13512. .textarea_css:focus {
  13513. border-color: #409EFF;
  13514. outline: 0;
  13515. }
  13516. .addEditor>>>.text {
  13517. height: auto;
  13518. min-height: 100px;
  13519. }
  13520. .addEditor>>>.w-e-text-container {
  13521. min-height: 100px;
  13522. }
  13523. .moveBtn2 {
  13524. flex-direction: column;
  13525. width: fit-content;
  13526. margin: 0 10px 0 10px;
  13527. }
  13528. .moveBtn2 .chapter_upload_down,
  13529. .moveBtn2 .chapter_upload_up {
  13530. width: 16px;
  13531. height: 16px;
  13532. }
  13533. .moveBtn2 .chapter_upload_up::after,
  13534. .moveBtn2 .chapter_upload_down::after {
  13535. width: 10px;
  13536. height: 10px;
  13537. }
  13538. .fullStyle>>>.el-dialog__body {
  13539. height: calc(100% - 125px) !important;
  13540. box-sizing: border-box;
  13541. }
  13542. .fullStyle1>>>.el-dialog__body {
  13543. height: auto !important;
  13544. }
  13545. .fullStyle>>>.el-dialog {
  13546. width: 100% !important;
  13547. max-width: 100% !important;
  13548. height: 100% !important;
  13549. margin: 0 !important;
  13550. }
  13551. .fullStyle {
  13552. width: 100% !important;
  13553. max-width: 100% !important;
  13554. height: 100% !important;
  13555. margin: 0 auto !important;
  13556. }
  13557. .wb_j_box_btn {
  13558. width: calc(100% - 30px);
  13559. display: flex;
  13560. height: 40px;
  13561. border: 1.5px solid #CAD1DC;
  13562. border-radius: 4px;
  13563. box-sizing: border-box;
  13564. align-items: center;
  13565. font-size: 14px;
  13566. cursor: pointer;
  13567. overflow: hidden;
  13568. }
  13569. .wb_j_box_btn:hover {
  13570. border: 1.5px solid #0061FF;
  13571. }
  13572. .wb_j_box_title {
  13573. background: #F0F4FA;
  13574. height: 100%;
  13575. line-height: 40px;
  13576. width: 90px;
  13577. text-align: center;
  13578. color: #060E17;
  13579. border-right: 1.5px solid #CAD1DC;
  13580. box-sizing: border-box;
  13581. }
  13582. .wb_j_box_btn_c {
  13583. width: calc(100% - 90px);
  13584. padding: 0 35px 0 10px;
  13585. box-sizing: border-box;
  13586. position: relative;
  13587. }
  13588. .wb_j_box_span {
  13589. width: 100%;
  13590. overflow: hidden;
  13591. white-space: nowrap;
  13592. text-overflow: ellipsis;
  13593. word-wrap: break-word;
  13594. color: #717C8D;
  13595. }
  13596. .wb_j_box_arrow {
  13597. content: '';
  13598. width: 14px;
  13599. height: 14px;
  13600. background: url(../../../assets/icon/new/u_arrow.png);
  13601. background-size: 100% 100%;
  13602. position: absolute;
  13603. right: 12px;
  13604. top: 50%;
  13605. transform: translateY(-50%);
  13606. }
  13607. .check_classBox {
  13608. height: 400px;
  13609. display: flex;
  13610. border-top: 1.5px solid #E7EBF1;
  13611. border-bottom: 1.5px solid #E7EBF1;
  13612. }
  13613. .check_class_right {
  13614. width: 130px;
  13615. border-right: 1px solid #E7EBF1;
  13616. display: flex;
  13617. align-items: center;
  13618. flex-direction: column;
  13619. height: 100%;
  13620. overflow: auto;
  13621. padding: 15px 0;
  13622. box-sizing: border-box;
  13623. }
  13624. .check_class {
  13625. width: 85%;
  13626. border-radius: 5px;
  13627. height: 30px;
  13628. min-height: 30px;
  13629. line-height: 30px;
  13630. text-align: center;
  13631. padding: 0 10px;
  13632. box-sizing: border-box;
  13633. cursor: pointer;
  13634. white-space: nowrap;
  13635. overflow: hidden;
  13636. text-overflow: ellipsis;
  13637. }
  13638. .check_class.activeX {
  13639. background: #E0EAFB;
  13640. color: #3681FC;
  13641. font-weight: 700;
  13642. }
  13643. .check_class+.check_class {
  13644. margin-top: 15px;
  13645. }
  13646. .check_class_left {
  13647. background: #FAFAFA;
  13648. width: calc(100% - 130px);
  13649. padding: 15px;
  13650. box-sizing: border-box;
  13651. }
  13652. .check_class_all_box {
  13653. display: flex;
  13654. margin-bottom: 10px;
  13655. }
  13656. .all_check {
  13657. display: flex;
  13658. align-items: center;
  13659. padding: 2px 0 0;
  13660. margin-left: 10px;
  13661. }
  13662. .all_check>>>.el-checkbox__label {
  13663. line-height: 18px;
  13664. }
  13665. .check_class_left_title {
  13666. font-size: 16px;
  13667. font-weight: 700;
  13668. }
  13669. .check_class_item {
  13670. display: flex;
  13671. flex-wrap: wrap;
  13672. height: calc(100% - 45px);
  13673. overflow: auto;
  13674. justify-content: flex-start;
  13675. align-items: flex-start;
  13676. align-content: flex-start;
  13677. }
  13678. .class_item:first-child {
  13679. /* margin: 0 15px 15px 67px; */
  13680. }
  13681. .class_item {
  13682. margin: 0 15px 15px 0;
  13683. }
  13684. .class_item:hover>>>.el-checkbox__label {
  13685. color: #409EFF;
  13686. }
  13687. .class_item>>>.el-checkbox__label {
  13688. color: #0E1E33;
  13689. }
  13690. .class_item:hover>>>.el-checkbox__inner {
  13691. border-color: #409EFF;
  13692. }
  13693. .class_item>>>.el-checkbox,
  13694. .class_item>>>.el-checkbox__input {
  13695. display: flex;
  13696. align-items: center;
  13697. }
  13698. .taskTitle{
  13699. font-size: 20px;
  13700. font-weight: bold;
  13701. margin-bottom: 35px;
  13702. }
  13703. .taskTitle:after{
  13704. content: '';
  13705. width: 100%;
  13706. display: block;
  13707. height: 1px;
  13708. background: #CAD1DC;
  13709. position: absolute;
  13710. left: 0;
  13711. margin: 15px 0 0;
  13712. }
  13713. </style>