addCourse.vue 612 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379
  1. <template>
  2. <div class="pb_content" style="background: #f0f2f5">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item
  9. :to="{
  10. path:
  11. '/course?userid=' +
  12. userid +
  13. '&oid=' +
  14. oid +
  15. '&org=' +
  16. org +
  17. '&role=' +
  18. role,
  19. }"
  20. >课程管理</el-breadcrumb-item
  21. >
  22. <el-breadcrumb-item>
  23. <span style="color: rgb(15, 126, 255)">添加课程</span>
  24. </el-breadcrumb-item>
  25. </el-breadcrumb>
  26. </div>
  27. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  28. </div>
  29. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  30. <div ref="stepBox" class="stepBox">
  31. <div class="stepBg" v-if="false">
  32. <div
  33. :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }"
  34. @mouseenter="stepDisplay(true)"
  35. @mouseleave="stepDisplay(false)"
  36. >
  37. <div
  38. v-if="steps > 0 && isStepDisplay"
  39. class="first"
  40. @click="navSteps(1)"
  41. >
  42. <div>
  43. <img src="../../../assets/icon/first.png" alt />
  44. </div>
  45. <div>填写基本信息</div>
  46. </div>
  47. <div
  48. v-else-if="isStepDisplay"
  49. class="firstNo"
  50. @click="navSteps(1)"
  51. >
  52. <div>
  53. <img src="../../../assets/icon/firstNo.png" alt />
  54. </div>
  55. <div>填写基本信息</div>
  56. </div>
  57. <div
  58. class="stepBorder"
  59. :class="{ 'border-active': steps > 1 }"
  60. v-if="cidType === 0 && isStepDisplay"
  61. ></div>
  62. <div
  63. v-if="steps > 1 && cidType === 0 && isStepDisplay"
  64. class="second"
  65. @click="navSteps(2)"
  66. >
  67. <div style="margin: 5px 10px 0 0; width: 2rem">
  68. <img src="../../../assets/icon/second.png" alt />
  69. </div>
  70. <div>选择课程模板</div>
  71. </div>
  72. <div
  73. v-else-if="cidType === 0 && isStepDisplay"
  74. class="secondNo"
  75. @click="navSteps(2)"
  76. >
  77. <div>
  78. <img src="../../../assets/icon/secondNo.png" alt />
  79. </div>
  80. <div>选择课程模板</div>
  81. </div>
  82. <div
  83. v-if="isStepDisplay"
  84. class="stepBorder"
  85. :class="{ 'border-active': steps > 2 }"
  86. ></div>
  87. <div
  88. v-if="steps > 2 && isStepDisplay"
  89. class="third"
  90. @click="navSteps(3)"
  91. >
  92. <div>
  93. <img src="../../../assets/icon/third.png" alt />
  94. </div>
  95. <div>上传课程内容</div>
  96. </div>
  97. <div
  98. v-else-if="isStepDisplay"
  99. class="thirdNo"
  100. @click="navSteps(3)"
  101. >
  102. <div>
  103. <img src="../../../assets/icon/thirdNo.png" alt />
  104. </div>
  105. <div>上传课程内容</div>
  106. </div>
  107. <div
  108. v-if="isStepDisplay"
  109. class="stepBorder"
  110. :class="{ 'border-active': steps > 3 }"
  111. ></div>
  112. <div v-if="steps > 3 && isStepDisplay" class="four">
  113. <div>
  114. <img src="../../../assets/icon/four.png" alt />
  115. </div>
  116. <div>上传完成</div>
  117. </div>
  118. <div v-else-if="isStepDisplay" class="fourNo">
  119. <div>
  120. <img src="../../../assets/icon/fourNo.png" alt />
  121. </div>
  122. <div>上传完成</div>
  123. </div>
  124. </div>
  125. </div>
  126. <div
  127. class="rightBox"
  128. :key="updateKey"
  129. ref='scrollContainer'
  130. v-if="steps == 1"
  131. @mousewheel="scrollChange"
  132. style="padding: 0"
  133. :style="{
  134. height:
  135. !isStepDisplay && !isBtnDisplay
  136. ? 'calc(100% - 20px)'
  137. : 'calc(100% - 100px)',
  138. }"
  139. >
  140. <div
  141. class="updateMask"
  142. :style="{
  143. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  144. }"
  145. v-if="cid && userid != courseUserid && role != '1'"
  146. ></div>
  147. <div class="whiteBg" style="background: unset; padding: 0">
  148. <div>
  149. <div class="basic_box" style="padding: 0">
  150. <div class="big_box">
  151. <div class="left_first">
  152. <div
  153. :class="{
  154. updateTips:
  155. cid && userid != courseUserid && role != '1',
  156. }"
  157. >
  158. <div style="width: 100%">
  159. <div class="course_input_box">
  160. <div class="bb_courseIcon">
  161. <img src="../../../assets/icon/new/course.png" />
  162. </div>
  163. <input
  164. type="text"
  165. placeholder="请输入课程名称"
  166. class="binfo_input"
  167. v-model="courseName"
  168. style="
  169. border: 1.5px solid rgb(202, 209, 220);
  170. margin: 0px 10px 0px 0px;
  171. border-radius: 5px;
  172. font-weight: 600;
  173. padding: 12px 14px 12px 71px;
  174. "
  175. />
  176. <el-switch
  177. v-model="highSetting"
  178. active-text="高级设置"
  179. style="justify-content: center; width: 200px"
  180. ></el-switch>
  181. <el-switch
  182. v-model="isTeacherSee"
  183. active-text="是否公开此课程"
  184. style="justify-content: center; width: 200px"
  185. ></el-switch>
  186. </div>
  187. </div>
  188. </div>
  189. <div
  190. class="pType_box all_choose"
  191. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  192. >
  193. <span>类型</span>
  194. <!-- 学科+ 主题+ 未来+ -->
  195. <el-radio-group
  196. @change="CourseType2Change"
  197. v-model="pTypeCheckName"
  198. style="display: flex; align-items: center"
  199. >
  200. <div
  201. class="all_choose"
  202. style="width: 100px"
  203. v-for="(item, index) in CourseType2"
  204. :key="index"
  205. >
  206. <el-radio :label="item.name">{{
  207. item.name
  208. }}</el-radio>
  209. </div>
  210. </el-radio-group>
  211. </div>
  212. <div class="both">
  213. <div class="choose">
  214. <div
  215. class="all_choose"
  216. v-for="(item, index) in CourseType[0]"
  217. :key="index"
  218. >
  219. <span
  220. v-if="
  221. CourseTypeJson[item.id].length > 0 &&
  222. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  223. ? pTypeCheck.indexOf(item.id) != -1
  224. : true)
  225. "
  226. >{{ item.name }}:</span
  227. >
  228. <el-checkbox-group
  229. v-model="courseTypeId"
  230. v-if="
  231. CourseTypeJson[item.id].length > 0 &&
  232. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  233. ? pTypeCheck.indexOf(item.id) != -1
  234. : true)
  235. "
  236. >
  237. <el-checkbox
  238. v-for="item1 in CourseTypeJson[item.id]"
  239. :key="item1.id"
  240. :label="item1.id"
  241. >{{ item1.name }}</el-checkbox
  242. >
  243. </el-checkbox-group>
  244. <!-- <div
  245. v-else
  246. style="font-size: 14px; margin-left: -8px"
  247. >
  248. 暂无
  249. </div> -->
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="right_first">
  255. <!-- <div class="ai_box">
  256. <div class="ai_content" @click="openAI"><img src="../../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  257. </div> -->
  258. <div
  259. class="c_info_title"
  260. style="padding: 0 0 15px; margin: 0 auto 0 0"
  261. >
  262. 上传封面
  263. </div>
  264. <div style="width: 100%">
  265. <div
  266. class="uploadFm"
  267. @click="choosePicVisible = true"
  268. :class="{ uploadFm2: cover.length }"
  269. >
  270. <img
  271. src="../../../assets/icon/addPoster.png"
  272. alt=""
  273. v-if="cover.length == 0"
  274. />
  275. <img
  276. :src="cover[0].url"
  277. alt=""
  278. class="cover_p"
  279. v-else
  280. />
  281. <div v-if="cover.length == 0">点击添加封面</div>
  282. <div class="cover_mask">
  283. <img
  284. src="../../../assets/icon/new/cover_update.png"
  285. /><span style="margin-top: 5px">修改封面</span>
  286. </div>
  287. </div>
  288. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  289. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  290. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  291. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  292. <i class="el-icon-plus"></i>
  293. </el-upload> -->
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="whiteBg" style="background: #fff; margin: 10px 0">
  301. <div class="whiteBg" style="border-radius: 0" :style="{paddingBottom: highSetting ? '0px' : '15px'}">
  302. <div class="c_info_title">课程权限设置</div>
  303. <div class="wb_j_box">
  304. <div class="wb_j_box_content">
  305. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  306. (dialogVisibleClass = true),
  307. (classSearch = ''),
  308. (gradeId = ''),
  309. getClass()
  310. ">添加班级</button>
  311. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  312. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  313. getClassC(tc) }}</span>
  314. </div> -->
  315. <div
  316. class="wb_j_box_btn"
  317. @click="
  318. (dialogVisibleClass = true),
  319. (classSearch = ''),
  320. (gradeId = ''),
  321. getClass()
  322. "
  323. >
  324. <div class="wb_j_box_title">授课班级</div>
  325. <div class="wb_j_box_btn_c">
  326. <el-tooltip
  327. effect="dark"
  328. :content="getListClassC(checkboxList2)"
  329. placement="top"
  330. v-if="checkboxList2.length"
  331. popper-class="text_tooltip2"
  332. >
  333. <div class="wb_j_box_span">
  334. {{ getListClassC(checkboxList2) }}
  335. </div>
  336. </el-tooltip>
  337. <div v-else class="wb_j_box_span">请选择授课班级</div>
  338. <div class="wb_j_box_arrow"></div>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="wb_j_box_content" v-if="highSetting">
  343. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  344. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  345. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  346. checkBoolean
  347. ? checkboxList3
  348. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  349. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  350. </div> -->
  351. <div class="wb_j_box_btn" @click="openMember">
  352. <div class="wb_j_box_title">协同人员</div>
  353. <div class="wb_j_box_btn_c">
  354. <el-tooltip
  355. effect="dark"
  356. :content="getListMan2(checkboxList3)"
  357. placement="top"
  358. v-if="checkboxList3.length"
  359. popper-class="text_tooltip2"
  360. >
  361. <div class="wb_j_box_span">
  362. {{ getListMan2(checkboxList3) }}
  363. </div>
  364. </el-tooltip>
  365. <div v-else class="wb_j_box_span">请选择协同人员</div>
  366. <div class="wb_j_box_arrow"></div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="highSetting">
  373. <div class="c_info_title">课程简要描述</div>
  374. <div
  375. style="width: 100%; padding: 0px 20px; box-sizing: border-box"
  376. >
  377. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  378. <textarea
  379. v-autoHeight="68"
  380. rows="2"
  381. class="binfo_input binfo_textarea"
  382. cols
  383. v-model="courseText"
  384. placeholder="请输入课程简要描述"
  385. ></textarea>
  386. </div>
  387. </div>
  388. </div>
  389. <div
  390. class="whiteBg"
  391. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  392. v-if="highSetting"
  393. >
  394. <div class="c_info_title">目标管理</div>
  395. <div style="margin: 0 auto; padding: 0 20px">
  396. <div
  397. style="
  398. width: 95%;
  399. min-height: 200px;
  400. border: 1px solid #cad1dc;
  401. border-radius: 4px;
  402. position: relative;
  403. "
  404. >
  405. <div class="e_add_top">
  406. <div class="e_add_title">
  407. <button
  408. class="c_pub_button_delete pub_btn_delete_img"
  409. @click="deleteEva()"
  410. v-if="evalua"
  411. >
  412. 清除
  413. </button>
  414. <button
  415. class="c_pub_button_confirm pub_btn_add_img2"
  416. @click="dialogVisiblemb = true"
  417. >
  418. 添加
  419. </button>
  420. <!-- <span>当前使用目标管理</span>
  421. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  422. <img
  423. src="../../../assets/line.png"
  424. class="cru_line"
  425. style="
  426. width: 125px;
  427. height: 20px;
  428. bottom: -10px;
  429. left: 155px;
  430. "
  431. /> -->
  432. </div>
  433. <div
  434. style="
  435. display: flex;
  436. flex-direction: row;
  437. align-items: center;
  438. "
  439. >
  440. <!-- <el-button
  441. type="primary"
  442. size="small"
  443. @click="dialogVisiblemb = true"
  444. >添加目标管理</el-button
  445. >
  446. <el-button
  447. type="primary"
  448. size="small"
  449. @click="deleteEva()"
  450. >清除内容</el-button
  451. > -->
  452. <!-- <div class="e_add_delete" @click="deleteEva()">
  453. <img src="../../../assets/icon/delete.png" alt="" />
  454. </div> -->
  455. </div>
  456. </div>
  457. <div v-if="evalua == ''">
  458. <div class="noneBox">
  459. <img src="../../../assets/icon/new/eva_none.png" />
  460. <span>请添加目标管理</span>
  461. </div>
  462. </div>
  463. <div class="e_add_content" v-else>
  464. <div class="e_add_list_pbox">
  465. <div class="e_add_list_pbox_title">
  466. <span class="type_title">切换模式</span>
  467. <div class="type_content">
  468. <span
  469. :class="{ active: typeMode == 1 }"
  470. @click="OtherMb(1)"
  471. >目标树</span
  472. >
  473. <span
  474. :class="{ active: typeMode == 2 }"
  475. @click="OtherMb(2)"
  476. >目标罗盘</span
  477. >
  478. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  479. </div>
  480. </div>
  481. <div class="e_add_list_pbox_content">
  482. <Mind
  483. :showBar="false"
  484. :mindData="data"
  485. v-if="typeMode == 1"
  486. ></Mind>
  487. <Sunburst
  488. :Josn="eJson"
  489. :num="eJSONNum"
  490. style="width: 100%"
  491. v-if="typeMode == 2"
  492. ></Sunburst>
  493. <SeeBoard
  494. :Josn="eJson"
  495. :num="eJSONNum"
  496. :ename="eTitle"
  497. style="width: 100%"
  498. v-if="typeMode == 3"
  499. >
  500. </SeeBoard>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. <div class="rb_c_box">
  509. <div
  510. class="rb_c_box_left"
  511. v-if="unitJson[unitIndex].easy != 1"
  512. >
  513. <div class="stepsBottom">
  514. <!-- <div class="navTop">辅助导航</div> -->
  515. <div class="navBottom" v-if="courseState == 2">
  516. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  517. <div class="nt_taskBox" style="width: 100%;">
  518. <div class="nt_taskTitle"
  519. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  520. unitIndex + 1 }}</div>
  521. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  522. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  523. <span>{{ unitJson[unitIndex].dyName }}</span>
  524. </el-tooltip>
  525. </div>
  526. </div>
  527. </div> -->
  528. <div
  529. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  530. .taskJson"
  531. :key="tIndex"
  532. :class="{
  533. dragOverTop:
  534. newIndex === tIndex &&
  535. typeIndex == 'task-' + tIndex &&
  536. oldIndex > tIndex &&
  537. dragType == 'task',
  538. dragOverBottom:
  539. newIndex === tIndex &&
  540. typeIndex == 'task-' + tIndex &&
  541. oldIndex < tIndex &&
  542. dragType == 'task',
  543. }"
  544. >
  545. <div
  546. @dragstart="dragTaskStart(t, tIndex, 0)"
  547. @dragover.prevent="dragTaskOver(tIndex, 0)"
  548. @dragend="dragTaskEnd()"
  549. :draggable="isdrag == 'task-' + tIndex"
  550. @click="goToTask(tIndex)"
  551. class="navTask"
  552. :class="{
  553. isNavTask:
  554. isClickColor > 0 && isClickColor == tIndex + 1,
  555. isNavOpen: t.toolOpen,
  556. }"
  557. >
  558. <div
  559. @click.stop="taskOpen(tIndex, 0)"
  560. class="chapter_upload_open"
  561. ></div>
  562. <div
  563. @mousedown="isdrag = 'task-' + tIndex"
  564. @mouseup="isdrag = ''"
  565. @touchstart="isdrag = 'task-' + tIndex"
  566. @touchend="isdrag = ''"
  567. style="left: 8px"
  568. class="chapter_upload_drag"
  569. ></div>
  570. <div class="nt_taskBox">
  571. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  572. <div class="nt_taskName">
  573. <el-tooltip
  574. effect="light"
  575. :content="t.task ? t.task : '未命名任务'"
  576. placement="top"
  577. >
  578. <span>{{ t.task ? t.task : "未命名任务" }}</span>
  579. </el-tooltip>
  580. </div>
  581. </div>
  582. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  583. 1
  584. ">
  585. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  586. @click.stop="taskMove(1, tIndex)"></div>
  587. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  588. @click.stop="taskMove(2, tIndex)"></div>
  589. </div> -->
  590. </div>
  591. <div
  592. class="gjBox"
  593. v-if="t.toolChoose.length && t.toolOpen"
  594. >
  595. <div
  596. v-for="(tool, toolIndex2) in t.toolChoose"
  597. :key="toolIndex2"
  598. @click="jumpGj(tIndex, toolIndex2)"
  599. >
  600. <div
  601. class="gjCss"
  602. :class="{
  603. isGjCss:
  604. toolIndexType == `gj${tIndex}${toolIndex2}`,
  605. }"
  606. >
  607. <div>工具{{ toolIndex2 + 1 }}:</div>
  608. <div>
  609. {{
  610. toolsData[tool.tool[0]] &&
  611. toolsData[tool.tool[0]].name
  612. }}
  613. </div>
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. <div class="navBottom" v-if="courseState == 1">
  620. <div
  621. v-for="(stage, stageIndex) in unitJson"
  622. :key="stageIndex"
  623. class="stageBox"
  624. :class="{
  625. dragOverTop:
  626. newIndex === stageIndex &&
  627. typeIndex == 'Unit-' + stageIndex &&
  628. oldIndex > stageIndex &&
  629. dragType == 'Unit',
  630. dragOverBottom:
  631. newIndex === stageIndex &&
  632. typeIndex == 'Unit-' + stageIndex &&
  633. oldIndex < stageIndex &&
  634. dragType == 'Unit',
  635. }"
  636. >
  637. <div
  638. @dragstart="dragUnitStart(stage, stageIndex)"
  639. @dragover.prevent="dragUnitOver(stageIndex)"
  640. @dragend="dragUnitEnd()"
  641. :draggable="isdrag == 'unit-' + stageIndex"
  642. @click="unitSet2(stageIndex)"
  643. class="navStage"
  644. :class="{
  645. isNavStage: stageIndex == unitIndex,
  646. isNavStageOpen: stage.toolOpen,
  647. }"
  648. >
  649. <div
  650. @mousedown="isdrag = 'unit-' + stageIndex"
  651. @mouseup="isdrag = ''"
  652. @touchstart="isdrag = 'unit-' + stageIndex"
  653. @touchend="isdrag = ''"
  654. style="left: 8px"
  655. class="chapter_upload_drag"
  656. ></div>
  657. <div class="nt_taskBox">
  658. <div class="nt_taskTitle">
  659. 第{{ stageIndex + 1 }}阶段:
  660. </div>
  661. <div class="nt_taskName">
  662. <el-tooltip
  663. effect="light"
  664. :content="
  665. stage.dyName ? stage.dyName : '未命名阶段'
  666. "
  667. placement="top"
  668. >
  669. <span>{{
  670. stage.dyName ? stage.dyName : "未命名阶段"
  671. }}</span>
  672. </el-tooltip>
  673. </div>
  674. </div>
  675. <div
  676. @click.stop="unitOpen(stageIndex)"
  677. class="chapter_unit_open"
  678. ></div>
  679. </div>
  680. <div
  681. v-for="(t, tIndex) in unitJson[stageIndex]
  682. .chapterInfo[0].taskJson"
  683. :key="`${stageIndex}-${tIndex}`"
  684. :class="{
  685. dragOverTop:
  686. newIndex === tIndex &&
  687. typeIndex == 'task-' + tIndex &&
  688. ((oldIndex > tIndex &&
  689. stageIndex == checkUnitIndex) ||
  690. (oldIndex == tIndex &&
  691. stageIndex == checkUnitIndex &&
  692. checkUnitIndex != oldUnitIndex)) &&
  693. dragType == 'task',
  694. dragOverBottom:
  695. newIndex === tIndex &&
  696. typeIndex == 'task-' + tIndex &&
  697. oldIndex < tIndex &&
  698. stageIndex == checkUnitIndex &&
  699. dragType == 'task',
  700. }"
  701. :style="{ display: stage.toolOpen ? 'block' : 'none' }"
  702. >
  703. <div
  704. @dragstart="dragTaskStart(t, tIndex, stageIndex)"
  705. @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  706. @dragend="dragTaskEnd()"
  707. :draggable="
  708. isdrag == 'task-' + stageIndex + '-' + tIndex
  709. "
  710. @click="goToTask2(tIndex, stageIndex)"
  711. class="navTask"
  712. style="padding-left: 12px"
  713. :class="{
  714. isNavTask:
  715. isClickColor > 0 &&
  716. isClickColor == tIndex + 1 &&
  717. stageIndex == unitIndex,
  718. isNavOpen: t.toolOpen,
  719. }"
  720. >
  721. <div
  722. @click.stop="taskOpen(tIndex, stageIndex)"
  723. class="chapter_upload_open"
  724. ></div>
  725. <div
  726. @mousedown="
  727. isdrag = 'task-' + stageIndex + '-' + tIndex
  728. "
  729. @mouseup="isdrag = ''"
  730. @touchstart="
  731. isdrag = 'task-' + stageIndex + '-' + tIndex
  732. "
  733. @touchend="isdrag = ''"
  734. style="left: 20px"
  735. class="chapter_upload_drag"
  736. ></div>
  737. <div
  738. class="nt_taskBox"
  739. style="width: calc(100% - 52px)"
  740. >
  741. <div class="nt_taskTitle">
  742. 任务{{ tIndex + 1 }}:
  743. </div>
  744. <div class="nt_taskName">
  745. <el-tooltip
  746. effect="light"
  747. :content="t.task ? t.task : '未命名任务'"
  748. placement="top"
  749. >
  750. <span>{{
  751. t.task ? t.task : "未命名任务"
  752. }}</span>
  753. </el-tooltip>
  754. </div>
  755. </div>
  756. </div>
  757. <div
  758. class="gjBox"
  759. v-if="t.toolChoose.length && t.toolOpen"
  760. >
  761. <div
  762. v-for="(tool, toolIndex2) in t.toolChoose"
  763. :key="toolIndex2"
  764. @click="jumpGj2(tIndex, toolIndex2, stageIndex)"
  765. >
  766. <div
  767. class="gjCss"
  768. :class="{
  769. isGjCss:
  770. toolIndexType ==
  771. `gj${tIndex}${toolIndex2}${stageIndex}`,
  772. }"
  773. >
  774. <div>工具{{ toolIndex2 + 1 }}:</div>
  775. <div>
  776. {{
  777. toolsData[tool.tool[0]] &&
  778. toolsData[tool.tool[0]].name
  779. }}
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="rb_c_box_right">
  790. <!-- <div class="rb_c_box_btn">
  791. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  792. </div> -->
  793. <div class="basic_box" ref="unitBox">
  794. <div
  795. style="
  796. display: flex;
  797. flex-direction: row;
  798. align-items: center;
  799. position: sticky;
  800. top: 0;
  801. z-index: 99;
  802. width: 100%;
  803. padding: 0 20px 0 20px;
  804. box-sizing: border-box;
  805. background: #fff;
  806. border-radius: 8px;
  807. "
  808. >
  809. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  810. <div
  811. class="cru_selectBox"
  812. :style="{
  813. maxWidth: isPasteTask
  814. ? 'calc(100% - 335px)'
  815. : 'calc(100% - 190px)',
  816. }"
  817. v-if="courseState == 1"
  818. >
  819. <div
  820. v-for="(item, index) in unitJson"
  821. :key="index"
  822. class="cru_select"
  823. :class="unitIndex == index ? 'cru_selected' : ''"
  824. @click="unitSet(index)"
  825. >
  826. <!-- item.dyName ? item.dyName : -->
  827. <span
  828. v-if="
  829. unitJson[unitJson.length - 1].easy == 4 ||
  830. unitJson[unitJson.length - 1].easy == 6
  831. "
  832. >{{
  833. item.dyName
  834. ? item.dyName
  835. : "第" + (index + 1) + "阶段"
  836. }}</span
  837. >
  838. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  839. </div>
  840. <div
  841. class="cru_line"
  842. :style="{
  843. left: offsetLetfPx + 'px',
  844. }"
  845. ></div>
  846. </div>
  847. <div
  848. class="addStageImg"
  849. @click="addunit()"
  850. v-if="
  851. !(unitJson[unitJson.length - 1].easy == 4) &&
  852. !(unitJson[unitJson.length - 1].easy == 6) &&
  853. courseState == 1
  854. "
  855. >
  856. <img src="../../../assets/icon/new/addStage.png" alt />
  857. </div>
  858. <button
  859. class="c_pub_button_add pub_btn_add_img"
  860. @click="updateCourseState(1)"
  861. v-if="courseState == 2"
  862. style="margin: 15px 0"
  863. >
  864. 新建阶段
  865. </button>
  866. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  867. <button
  868. class="c_pub_button_add"
  869. @click="openStageBox"
  870. v-show="false"
  871. style="margin: 0 0 0 auto"
  872. >
  873. 阶段顺序
  874. </button>
  875. <button
  876. class="c_pub_button_add pub_btn_paste_img"
  877. @click="pasteTask()"
  878. v-if="steps == 3 && isPasteTask"
  879. style="margin: 0 0 0 auto"
  880. >
  881. 智能粘贴
  882. </button>
  883. <button
  884. class="c_pub_button_confirm pub_btn_template_img"
  885. @click="openTemplate"
  886. :style="{
  887. margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto',
  888. }"
  889. style="padding: 0 12px"
  890. >
  891. 选择课程模板
  892. </button>
  893. </div>
  894. <div
  895. style="margin: 0 0 10px 0; padding: 0"
  896. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  897. :key="index"
  898. >
  899. <div class="chapter_box" v-if="courseState == 1">
  900. <div class="chapter_contentbox">
  901. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  902. <div class="cc_input">
  903. <input
  904. ref="dyInput"
  905. type="text"
  906. placeholder="请输入阶段标题"
  907. class="binfo_input"
  908. v-model="unitJson[unitIndex].dyName"
  909. />
  910. </div>
  911. <div
  912. class="remove"
  913. v-if="
  914. (unitJson.length > 1 || courseState != 2) &&
  915. !(unitJson[unitJson.length - 1].easy == 4) &&
  916. !(unitJson[unitJson.length - 1].easy == 6)
  917. "
  918. @click="deleteUnit(unitIndex)"
  919. ></div>
  920. </div>
  921. </div>
  922. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  923. margin: 50px 0px 10px;
  924. font-size: 1.5em;
  925. font-weight: 700;
  926. color: #0f7eff;
  927. ">
  928. 添加任务
  929. </div> -->
  930. <div
  931. class="taskBorder"
  932. :style="{
  933. minHeight: unitJson[unitIndex].easy && 'unset',
  934. }"
  935. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  936. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  937. :key="itemTaskIndex"
  938. >
  939. <div style="background: #fff; border-radius: 5px">
  940. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  941. <!-- padding: 20px; -->
  942. <div v-if="unitJson[unitIndex].easy != 1">
  943. <div
  944. :style="{
  945. marginBottom:
  946. unitJson[unitIndex].easy == 3 ||
  947. (unitJson[unitIndex].easy == 5 &&
  948. itemTask.taskType == 1)
  949. ? '75px'
  950. : '0',
  951. }"
  952. >
  953. <div
  954. style="
  955. display: flex;
  956. margin: 0px 0 20px;
  957. flex-direction: row;
  958. justify-content: flex-start;
  959. align-items: center;
  960. "
  961. >
  962. <div class="lineTitle">任务概述</div>
  963. </div>
  964. <div
  965. :id="'task' + itemTaskIndex"
  966. class="chapter_contentbox"
  967. style="
  968. flex-direction: row;
  969. justify-content: flex-start;
  970. align-items: center;
  971. margin: 0;
  972. "
  973. >
  974. <!-- <div class="cc_title">
  975. 任务{{ itemTaskIndex + 1 }}
  976. </div> -->
  977. <div class="cc_input">
  978. <input
  979. type="text"
  980. placeholder="输入任务名称"
  981. class="binfo_input"
  982. style="border-radius: 4px"
  983. v-model="
  984. unitJson[unitIndex].chapterInfo[0].taskJson[
  985. itemTaskIndex
  986. ].task
  987. "
  988. />
  989. </div>
  990. <div
  991. class="remove"
  992. v-if="
  993. item.taskJson.length > 1 &&
  994. (!unitJson[unitIndex].easy ||
  995. unitJson[unitIndex].easy == 6)
  996. "
  997. @click="deleteTask(itemTaskIndex)"
  998. ></div>
  999. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  1000. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  1001. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  1002. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  1003. @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述
  1004. </div> -->
  1005. </div>
  1006. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  1007. display: flex;
  1008. margin: 20px 0;
  1009. flex-direction: row;
  1010. justify-content: flex-start;
  1011. align-items: center;
  1012. ">
  1013. <div class="lineTitle">任务描述</div>
  1014. </div> && !itemTask.isFold2-->
  1015. <div
  1016. v-if="
  1017. easyArray.indexOf(unitJson[unitIndex].easy) ==
  1018. -1
  1019. "
  1020. style="margin-top: 20px"
  1021. >
  1022. <editor-bar
  1023. class="addEditor"
  1024. style="margin: 0"
  1025. placeholder="请输入任务描述"
  1026. v-model="
  1027. unitJson[unitIndex].chapterInfo[0].taskJson[
  1028. itemTaskIndex
  1029. ].taskDetail
  1030. "
  1031. @change="change"
  1032. ></editor-bar>
  1033. <!-- <textarea
  1034. rows="6"
  1035. class="binfo_input"
  1036. placeholder="请输入任务描述"
  1037. cols
  1038. style="width: 70.5% !important; height: 120px"
  1039. v-model="
  1040. unitJson[unitIndex].chapterInfo[0].taskJson[
  1041. itemTaskIndex
  1042. ].taskDetail
  1043. "
  1044. ></textarea>-->
  1045. </div>
  1046. </div>
  1047. </div>
  1048. <div
  1049. style="position: relative"
  1050. v-if="
  1051. !unitJson[unitIndex].easy ||
  1052. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1053. "
  1054. >
  1055. <div
  1056. style="
  1057. display: flex;
  1058. flex-direction: row;
  1059. justify-content: space-between;
  1060. align-items: center;
  1061. "
  1062. :style="{
  1063. margin: !itemTask.isFoldchapter
  1064. ? '20px 0 10px'
  1065. : '20px 0 0',
  1066. }"
  1067. >
  1068. <div
  1069. style="margin-bottom: 10px"
  1070. class="lineTitle clineTitle"
  1071. >
  1072. 学习内容
  1073. </div>
  1074. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  1075. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  1076. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  1077. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  1078. <!-- <div class="line"></div> -->
  1079. </div>
  1080. <!-- v-if="!itemTask.isFoldchapter" -->
  1081. <div>
  1082. <div
  1083. class="add_chapters_box add_c_none"
  1084. v-if="
  1085. itemTask.chapterData &&
  1086. itemTask.chapterData.length == 0
  1087. "
  1088. >
  1089. <img
  1090. src="../../../assets/icon/new/c_none.png"
  1091. alt
  1092. /><span>请添加学习内容</span>
  1093. </div>
  1094. <div
  1095. v-else
  1096. class="add_chapters_box"
  1097. style="display: flex; flex-direction: column"
  1098. >
  1099. <div
  1100. @dragstart="
  1101. dragStart(item1, index1, itemTaskIndex)
  1102. "
  1103. @dragover.prevent="
  1104. dragOver(index1, itemTaskIndex)
  1105. "
  1106. @dragend="dragEnd()"
  1107. :draggable="
  1108. isdrag ==
  1109. 'chapter-' + itemTaskIndex + '-' + index1
  1110. "
  1111. class="chapter_upload"
  1112. v-for="(item1, index1) in itemTask.chapterData"
  1113. :key="item1.id"
  1114. @click="
  1115. getChapterData(
  1116. $event,
  1117. unitIndex,
  1118. index,
  1119. index1,
  1120. item1.type
  1121. )
  1122. "
  1123. :class="{
  1124. dragOverTop2:
  1125. newIndex === index1 &&
  1126. typeIndex ==
  1127. 'chapter-' +
  1128. itemTaskIndex +
  1129. '-' +
  1130. index1 &&
  1131. oldIndex > index1 &&
  1132. dragType == 'drag',
  1133. dragOverBottom2:
  1134. newIndex === index1 &&
  1135. typeIndex ==
  1136. 'chapter-' +
  1137. itemTaskIndex +
  1138. '-' +
  1139. index1 &&
  1140. oldIndex < index1 &&
  1141. dragType == 'drag',
  1142. }"
  1143. >
  1144. <div
  1145. @mousedown="
  1146. isdrag =
  1147. 'chapter-' + itemTaskIndex + '-' + index1
  1148. "
  1149. @mouseup="isdrag = ''"
  1150. @touchstart="
  1151. isdrag =
  1152. 'chapter-' + itemTaskIndex + '-' + index1
  1153. "
  1154. @touchend="isdrag = ''"
  1155. class="chapter_upload_drag"
  1156. ></div>
  1157. <div
  1158. class="chapter_upload_o"
  1159. style="
  1160. position: relative;
  1161. display: flex;
  1162. align-items: center;
  1163. "
  1164. >
  1165. <div
  1166. class="chapter_upload_l"
  1167. style="padding: 1px 0 0 10px"
  1168. >
  1169. <div
  1170. v-if="item1.type == 2"
  1171. class="chapter_upload_l_i2"
  1172. ></div>
  1173. <div
  1174. v-if="item1.type == 3"
  1175. class="chapter_upload_l_i3"
  1176. style="margin-left: 1px"
  1177. ></div>
  1178. <div
  1179. v-if="item1.type == 6"
  1180. class="chapter_upload_l_i6"
  1181. style="margin-left: 1px"
  1182. ></div>
  1183. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1184. <div
  1185. v-if="item1.type == 8"
  1186. class="chapter_upload_l_i8"
  1187. style="margin-left: 1px"
  1188. ></div>
  1189. <div
  1190. v-if="item1.type == 14"
  1191. class="chapter_upload_l_i14"
  1192. style="margin-left: 1px"
  1193. ></div>
  1194. <div
  1195. v-if="item1.type == 12"
  1196. class="chapter_upload_l_i12"
  1197. style="margin-left: 1px"
  1198. ></div>
  1199. <div
  1200. v-if="item1.type == 13"
  1201. class="chapter_upload_l_i13"
  1202. style="margin-left: 1px"
  1203. ></div>
  1204. </div>
  1205. <div class="chapter_upload_n">
  1206. <input
  1207. readonly="true"
  1208. v-if="
  1209. item1.type == 2 ||
  1210. item1.type == 3 ||
  1211. item1.type == 12 ||
  1212. item1.type == 13 ||
  1213. item1.type == 7
  1214. "
  1215. :placeholder="item1.name"
  1216. @click="
  1217. updataVideoT(
  1218. $event,
  1219. unitIndex,
  1220. itemTaskIndex,
  1221. index1
  1222. )
  1223. "
  1224. style="
  1225. border: none;
  1226. outline: none;
  1227. width: 80%;
  1228. minwidth: 215px;
  1229. z-index: 99;
  1230. font-size: 14px;
  1231. white-space: nowrap;
  1232. overflow: hidden;
  1233. text-overflow: ellipsis;
  1234. "
  1235. />
  1236. <input
  1237. :placeholder="item1.name"
  1238. v-if="item1.type == 6"
  1239. style="
  1240. border: none;
  1241. outline: none;
  1242. width: 80%;
  1243. white-space: nowrap;
  1244. overflow: hidden;
  1245. text-overflow: ellipsis;
  1246. "
  1247. readonly="true"
  1248. @click="
  1249. selectAttText(itemTaskIndex, index1)
  1250. "
  1251. />
  1252. <input
  1253. :placeholder="
  1254. item1.title ? item1.title : '链接'
  1255. "
  1256. v-if="item1.type == 8"
  1257. style="
  1258. border: none;
  1259. outline: none;
  1260. width: 80%;
  1261. white-space: nowrap;
  1262. overflow: hidden;
  1263. text-overflow: ellipsis;
  1264. "
  1265. readonly="true"
  1266. @click="selectLine(itemTaskIndex, index1)"
  1267. />
  1268. <input
  1269. :placeholder="
  1270. item1.title ? item1.title : '链接'
  1271. "
  1272. v-if="item1.type == 14"
  1273. style="
  1274. border: none;
  1275. outline: none;
  1276. width: 80%;
  1277. white-space: nowrap;
  1278. overflow: hidden;
  1279. text-overflow: ellipsis;
  1280. "
  1281. readonly="true"
  1282. @click="
  1283. openUpdateSource(itemTaskIndex, index1)
  1284. "
  1285. />
  1286. </div>
  1287. <div class="chapter_upload_ic">
  1288. <div
  1289. class="chapter_upload_noSee"
  1290. v-if="item1.type == 12"
  1291. ></div>
  1292. <div
  1293. class="chapter_upload_ud"
  1294. style="z-index: 99"
  1295. >
  1296. <div
  1297. class="chapter_upload_up"
  1298. @click="
  1299. upCd(
  1300. $event,
  1301. unitIndex,
  1302. index,
  1303. itemTaskIndex,
  1304. index1
  1305. )
  1306. "
  1307. ></div>
  1308. <div
  1309. class="chapter_upload_down"
  1310. @click="
  1311. downCd(
  1312. $event,
  1313. unitIndex,
  1314. index,
  1315. itemTaskIndex,
  1316. index1
  1317. )
  1318. "
  1319. ></div>
  1320. </div>
  1321. <div
  1322. class="chapter_upload_ic_edit"
  1323. v-if="
  1324. item1.type == 2 ||
  1325. item1.type == 3 ||
  1326. item1.type == 12 ||
  1327. item1.type == 13 ||
  1328. item1.type == 7
  1329. "
  1330. @click.stop="
  1331. updataVideoT(
  1332. $event,
  1333. unitIndex,
  1334. itemTaskIndex,
  1335. index1
  1336. )
  1337. "
  1338. >
  1339. <div></div>
  1340. </div>
  1341. <div
  1342. class="chapter_upload_ic_edit"
  1343. v-if="item1.type == 6"
  1344. @click="
  1345. selectAttText(itemTaskIndex, index1)
  1346. "
  1347. >
  1348. <div></div>
  1349. </div>
  1350. <div
  1351. class="chapter_upload_ic_edit"
  1352. v-if="item1.type == 8"
  1353. @click="selectLine(itemTaskIndex, index1)"
  1354. >
  1355. <div></div>
  1356. </div>
  1357. <div
  1358. class="chapter_upload_ic_edit"
  1359. v-if="item1.type == 14"
  1360. @click="
  1361. openUpdateSource(itemTaskIndex, index1)
  1362. "
  1363. >
  1364. <div></div>
  1365. </div>
  1366. <div
  1367. class="chapter_upload_ic_r"
  1368. @click.stop="
  1369. deleteChapterData(
  1370. $event,
  1371. unitIndex,
  1372. index,
  1373. index1,
  1374. itemTaskIndex
  1375. )
  1376. "
  1377. >
  1378. <div></div>
  1379. </div>
  1380. </div>
  1381. </div>
  1382. </div>
  1383. </div>
  1384. </div>
  1385. <!-- v-if="!itemTask.isFoldchapter" -->
  1386. <div class="add_info_box" style="margin: 10px 0 0">
  1387. <button
  1388. class="c_pub_button_add pub_btn_add_img"
  1389. @click="addImg($event)"
  1390. >
  1391. 文件
  1392. <input
  1393. type="file"
  1394. accept="*"
  1395. style="display: none"
  1396. v-if="inputShow"
  1397. @change="
  1398. beforeUpload2(
  1399. $event,
  1400. unitIndex,
  1401. 13,
  1402. itemTaskIndex
  1403. )
  1404. "
  1405. />
  1406. </button>
  1407. <button
  1408. class="c_pub_button_add pub_btn_add_img"
  1409. @click="addAttText(itemTaskIndex)"
  1410. >
  1411. 图文
  1412. </button>
  1413. <button
  1414. class="c_pub_button_add pub_btn_add_img"
  1415. @click="openLine(itemTaskIndex)"
  1416. >
  1417. 链接
  1418. </button>
  1419. <button
  1420. class="c_pub_button_add pub_btn_add_img"
  1421. @click="pasteLine(itemTaskIndex)"
  1422. >
  1423. 代码
  1424. </button>
  1425. <button
  1426. class="c_pub_button_add pub_btn_add_img"
  1427. @click="openSource(itemTaskIndex)"
  1428. >
  1429. 资源
  1430. </button>
  1431. </div>
  1432. <div
  1433. v-if="
  1434. unitJson[unitIndex].chapterInfo[0].taskJson[
  1435. itemTaskIndex
  1436. ].proVisible
  1437. "
  1438. class="mask"
  1439. >
  1440. <div class="progressBox">
  1441. <!-- <div id="closePro" class="closeCss">
  1442. <img src="../../../../assets/icon/close.png" alt />
  1443. </div> -->
  1444. <div class="lbox">
  1445. <img
  1446. src="../../../assets/loading.gif"
  1447. />上传中,请稍后
  1448. </div>
  1449. <div style="margin-bottom: 10px">
  1450. <span
  1451. >{{
  1452. unitJson[unitIndex].chapterInfo[0].taskJson[
  1453. itemTaskIndex
  1454. ].isFinishSize
  1455. }}M</span
  1456. >
  1457. /
  1458. <span
  1459. >{{
  1460. unitJson[unitIndex].chapterInfo[0].taskJson[
  1461. itemTaskIndex
  1462. ].isAllSize
  1463. }}M</span
  1464. >
  1465. </div>
  1466. <el-progress
  1467. :text-inside="true"
  1468. :stroke-width="20"
  1469. :percentage="
  1470. unitJson[unitIndex].chapterInfo[0].taskJson[
  1471. itemTaskIndex
  1472. ].progress
  1473. ? unitJson[unitIndex].chapterInfo[0]
  1474. .taskJson[itemTaskIndex].progress
  1475. : 0
  1476. "
  1477. style="width: 80%"
  1478. ></el-progress>
  1479. </div>
  1480. </div>
  1481. </div>
  1482. <div
  1483. v-if="
  1484. unitJson[unitIndex].easy == 1 ||
  1485. (unitJson[unitIndex].easy == 5 &&
  1486. itemTask.taskType == 2)
  1487. "
  1488. >
  1489. <div>
  1490. <div
  1491. class="add_chapters_box add_c_none"
  1492. v-if="
  1493. itemTask.chapterData &&
  1494. itemTask.chapterData.length == 0
  1495. "
  1496. >
  1497. <img src="../../../assets/icon/new/c_none.png" alt />
  1498. </div>
  1499. <div
  1500. v-else
  1501. class="add_chapters_box"
  1502. style="display: flex; flex-direction: column"
  1503. >
  1504. <div
  1505. @dragstart="dragStart(item1, index1, index)"
  1506. @dragover.prevent="
  1507. dragOver(index1, itemTaskIndex)
  1508. "
  1509. @dragend="dragEnd()"
  1510. :draggable="
  1511. isdrag ==
  1512. 'chapter-' + itemTaskIndex + '-' + index1
  1513. "
  1514. class="chapter_upload"
  1515. v-for="(item1, index1) in itemTask.chapterData"
  1516. :key="item1.id"
  1517. @click="
  1518. getChapterData(
  1519. $event,
  1520. unitIndex,
  1521. index,
  1522. index1,
  1523. item1.type
  1524. )
  1525. "
  1526. :class="{
  1527. dragOverTop2:
  1528. newIndex === index1 &&
  1529. typeIndex ==
  1530. 'chapter-' +
  1531. itemTaskIndex +
  1532. '-' +
  1533. index1 &&
  1534. oldIndex > index1,
  1535. dragOverBottom2:
  1536. newIndex === index1 &&
  1537. typeIndex ==
  1538. 'chapter-' +
  1539. itemTaskIndex +
  1540. '-' +
  1541. index1 &&
  1542. oldIndex < index1,
  1543. }"
  1544. >
  1545. <div
  1546. @mousedown="
  1547. isdrag =
  1548. 'chapter-' + itemTaskIndex + '-' + index1
  1549. "
  1550. @mouseup="isdrag = ''"
  1551. @touchstart="
  1552. isdrag =
  1553. 'chapter-' + itemTaskIndex + '-' + index1
  1554. "
  1555. @touchend="isdrag = ''"
  1556. class="chapter_upload_drag"
  1557. ></div>
  1558. <div
  1559. class="chapter_upload_t"
  1560. style="width: 100%"
  1561. ></div>
  1562. <div
  1563. class="chapter_upload_o"
  1564. style="
  1565. position: relative;
  1566. display: flex;
  1567. align-items: center;
  1568. "
  1569. >
  1570. <div
  1571. class="chapter_upload_l"
  1572. style="padding: 1px 0 0 10px"
  1573. >
  1574. <div
  1575. v-if="item1.type == 2"
  1576. class="chapter_upload_l_i2"
  1577. ></div>
  1578. <div
  1579. v-if="item1.type == 3"
  1580. class="chapter_upload_l_i3"
  1581. style="margin-left: 1px"
  1582. ></div>
  1583. <div
  1584. v-if="item1.type == 6"
  1585. class="chapter_upload_l_i6"
  1586. style="margin-left: 1px"
  1587. ></div>
  1588. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1589. <div
  1590. v-if="item1.type == 8"
  1591. class="chapter_upload_l_i8"
  1592. style="margin-left: 1px"
  1593. ></div>
  1594. <div
  1595. v-if="item1.type == 14"
  1596. class="chapter_upload_l_i14"
  1597. style="margin-left: 1px"
  1598. ></div>
  1599. <div
  1600. v-if="item1.type == 12"
  1601. class="chapter_upload_l_i12"
  1602. style="margin-left: 1px"
  1603. ></div>
  1604. <div
  1605. v-if="item1.type == 13"
  1606. class="chapter_upload_l_i13"
  1607. style="margin-left: 1px"
  1608. ></div>
  1609. </div>
  1610. <div class="chapter_upload_n">
  1611. <span
  1612. style="
  1613. font-size: 14px;
  1614. color: rgb(109, 109, 109);
  1615. height: 14px;
  1616. line-height: 14px;
  1617. "
  1618. v-if="
  1619. item1.type == 2 ||
  1620. item1.type == 3 ||
  1621. item1.type == 7
  1622. "
  1623. >{{ item1.text }}-</span
  1624. >
  1625. <input
  1626. readonly="true"
  1627. v-if="
  1628. item1.type == 2 ||
  1629. item1.type == 3 ||
  1630. item1.type == 7
  1631. "
  1632. :placeholder="item1.name"
  1633. @click="
  1634. updataVideoT(
  1635. $event,
  1636. unitIndex,
  1637. itemTaskIndex,
  1638. index1
  1639. )
  1640. "
  1641. style="
  1642. border: none;
  1643. outline: none;
  1644. width: 80%;
  1645. minwidth: 215px;
  1646. z-index: 99;
  1647. font-size: 14px;
  1648. white-space: nowrap;
  1649. overflow: hidden;
  1650. text-overflow: ellipsis;
  1651. "
  1652. />
  1653. <input
  1654. :placeholder="item1.name"
  1655. v-if="item1.type == 6"
  1656. style="
  1657. border: none;
  1658. outline: none;
  1659. width: 80%;
  1660. white-space: nowrap;
  1661. overflow: hidden;
  1662. text-overflow: ellipsis;
  1663. "
  1664. readonly="true"
  1665. @click="
  1666. selectAttText(itemTaskIndex, index1)
  1667. "
  1668. />
  1669. <input
  1670. :placeholder="
  1671. item1.title ? item1.title : '链接'
  1672. "
  1673. v-if="item1.type == 8 || item1.type == 14"
  1674. style="
  1675. border: none;
  1676. outline: none;
  1677. width: 80%;
  1678. white-space: nowrap;
  1679. overflow: hidden;
  1680. text-overflow: ellipsis;
  1681. "
  1682. readonly="true"
  1683. @click="selectLine(itemTaskIndex, index1)"
  1684. />
  1685. </div>
  1686. <div class="chapter_upload_ic">
  1687. <div
  1688. class="chapter_upload_noSee"
  1689. v-if="item1.type == 12"
  1690. ></div>
  1691. <div
  1692. class="chapter_upload_ud"
  1693. style="z-index: 99"
  1694. >
  1695. <div
  1696. class="chapter_upload_up"
  1697. @click="
  1698. upCd(
  1699. $event,
  1700. unitIndex,
  1701. index,
  1702. itemTaskIndex,
  1703. index1
  1704. )
  1705. "
  1706. ></div>
  1707. <div
  1708. class="chapter_upload_down"
  1709. @click="
  1710. downCd(
  1711. $event,
  1712. unitIndex,
  1713. index,
  1714. itemTaskIndex,
  1715. index1
  1716. )
  1717. "
  1718. ></div>
  1719. </div>
  1720. <div
  1721. class="chapter_upload_ic_edit"
  1722. v-if="
  1723. item1.type == 2 ||
  1724. item1.type == 3 ||
  1725. item1.type == 12 ||
  1726. item1.type == 13 ||
  1727. item1.type == 7
  1728. "
  1729. @click.stop="
  1730. updataVideoT(
  1731. $event,
  1732. unitIndex,
  1733. itemTaskIndex,
  1734. index1
  1735. )
  1736. "
  1737. >
  1738. <div></div>
  1739. </div>
  1740. <div
  1741. class="chapter_upload_ic_edit"
  1742. v-if="item1.type == 6"
  1743. @click="
  1744. selectAttText(itemTaskIndex, index1)
  1745. "
  1746. >
  1747. <div></div>
  1748. </div>
  1749. <div
  1750. class="chapter_upload_ic_edit"
  1751. v-if="item1.type == 8"
  1752. @click="selectLine(itemTaskIndex, index1)"
  1753. >
  1754. <div></div>
  1755. </div>
  1756. <div
  1757. class="chapter_upload_ic_edit"
  1758. v-if="item1.type == 14"
  1759. @click="
  1760. openUpdateSource(itemTaskIndex, index1)
  1761. "
  1762. >
  1763. <div></div>
  1764. </div>
  1765. <div
  1766. class="chapter_upload_ic_r"
  1767. @click.stop="
  1768. deleteChapterData(
  1769. $event,
  1770. unitIndex,
  1771. index,
  1772. index1,
  1773. itemTaskIndex
  1774. )
  1775. "
  1776. >
  1777. <div></div>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div class="add_info_box" style="margin: 10px 0 0">
  1785. <button
  1786. class="c_pub_button_add pub_btn_add_img"
  1787. @click="addImg($event)"
  1788. >
  1789. <span style="color: red">*</span>
  1790. 教学设计
  1791. <input
  1792. type="file"
  1793. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1794. style="display: none"
  1795. v-if="inputShow"
  1796. @change="
  1797. beforeUpload3(
  1798. $event,
  1799. unitIndex,
  1800. 3,
  1801. itemTaskIndex,
  1802. '教学设计'
  1803. )
  1804. "
  1805. />
  1806. </button>
  1807. <button
  1808. class="c_pub_button_add pub_btn_add_img"
  1809. @click="addImg($event)"
  1810. >
  1811. <span style="color: red">*</span>
  1812. 教学课件
  1813. <input
  1814. type="file"
  1815. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1816. style="display: none"
  1817. v-if="inputShow"
  1818. @change="
  1819. beforeUpload3(
  1820. $event,
  1821. unitIndex,
  1822. 3,
  1823. itemTaskIndex,
  1824. '教学课件'
  1825. )
  1826. "
  1827. />
  1828. </button>
  1829. <button
  1830. class="c_pub_button_add pub_btn_add_img"
  1831. @click="addImg($event)"
  1832. >
  1833. 教学视频
  1834. <input
  1835. type="file"
  1836. accept="video/mp4, video/quicktime, video/x-msvideo"
  1837. style="display: none"
  1838. v-if="inputShow"
  1839. @change="
  1840. beforeUpload3(
  1841. $event,
  1842. unitIndex,
  1843. 2,
  1844. itemTaskIndex,
  1845. '教学视频'
  1846. )
  1847. "
  1848. />
  1849. </button>
  1850. <button
  1851. class="c_pub_button_add pub_btn_add_img"
  1852. @click="addImg($event)"
  1853. >
  1854. 教学音频
  1855. <input
  1856. type="file"
  1857. accept="audio/*"
  1858. style="display: none"
  1859. v-if="inputShow"
  1860. @change="
  1861. beforeUpload3(
  1862. $event,
  1863. unitIndex,
  1864. 2,
  1865. itemTaskIndex,
  1866. '教学音频'
  1867. )
  1868. "
  1869. />
  1870. </button>
  1871. <button
  1872. class="c_pub_button_add pub_btn_add_img"
  1873. @click="addImg($event)"
  1874. >
  1875. 学习单
  1876. <input
  1877. type="file"
  1878. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1879. style="display: none"
  1880. v-if="inputShow"
  1881. @change="
  1882. beforeUpload3(
  1883. $event,
  1884. unitIndex,
  1885. 3,
  1886. itemTaskIndex,
  1887. '学习单'
  1888. )
  1889. "
  1890. />
  1891. </button>
  1892. </div>
  1893. <div
  1894. v-if="
  1895. unitJson[unitIndex].chapterInfo[0].taskJson[
  1896. itemTaskIndex
  1897. ].proVisible
  1898. "
  1899. class="mask"
  1900. >
  1901. <div class="progressBox">
  1902. <!-- <div id="closePro" class="closeCss">
  1903. <img src="../../../../assets/icon/close.png" alt />
  1904. </div> -->
  1905. <div class="lbox">
  1906. <img
  1907. src="../../../assets/loading.gif"
  1908. />上传中,请稍后
  1909. </div>
  1910. <div style="margin-bottom: 10px">
  1911. <span
  1912. >{{
  1913. unitJson[unitIndex].chapterInfo[0].taskJson[
  1914. itemTaskIndex
  1915. ].isFinishSize
  1916. }}M</span
  1917. >
  1918. /
  1919. <span
  1920. >{{
  1921. unitJson[unitIndex].chapterInfo[0].taskJson[
  1922. itemTaskIndex
  1923. ].isAllSize
  1924. }}M</span
  1925. >
  1926. </div>
  1927. <el-progress
  1928. :text-inside="true"
  1929. :stroke-width="20"
  1930. :percentage="
  1931. unitJson[unitIndex].chapterInfo[0].taskJson[
  1932. itemTaskIndex
  1933. ].progress
  1934. ? unitJson[unitIndex].chapterInfo[0]
  1935. .taskJson[itemTaskIndex].progress
  1936. : 0
  1937. "
  1938. style="width: 80%"
  1939. ></el-progress>
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <!-- padding: 20px; -->
  1945. <div
  1946. style="
  1947. background: #fff;
  1948. border-radius: 5px;
  1949. margin-top: 15px;
  1950. "
  1951. >
  1952. <div
  1953. v-if="
  1954. unitJson[unitIndex].easy != 3 &&
  1955. !(
  1956. unitJson[unitIndex].easy == 5 &&
  1957. itemTask.taskType == 1
  1958. )
  1959. "
  1960. style="
  1961. flex-direction: row;
  1962. justify-content: flex-start;
  1963. align-items: center;
  1964. "
  1965. >
  1966. <div
  1967. style="
  1968. display: flex;
  1969. flex-direction: row;
  1970. align-items: center;
  1971. margin: 5px 0 20px;
  1972. "
  1973. >
  1974. <div class="lineTitle clineTitle">
  1975. {{
  1976. !unitJson[unitIndex].easy ||
  1977. unitJson[unitIndex].easy == 6 ||
  1978. easyArray.indexOf(unitJson[unitIndex].easy) !=
  1979. -1
  1980. ? "练习内容"
  1981. : "评价内容"
  1982. }}
  1983. </div>
  1984. <!-- <div class="line" style="width: 90%"></div> -->
  1985. </div>
  1986. </div>
  1987. <div
  1988. v-if="
  1989. unitJson[unitIndex].easy == 6 ||
  1990. !unitJson[unitIndex].easy
  1991. "
  1992. class="toolChoose"
  1993. >
  1994. <div class="tools">
  1995. <div
  1996. class="leftTools"
  1997. style="width: 100%"
  1998. v-for="(
  1999. itemTool, toolIndex
  2000. ) in itemTask.toolChoose"
  2001. :key="toolIndex"
  2002. >
  2003. <div
  2004. style="
  2005. display: flex;
  2006. flex-direction: row;
  2007. align-items: baseline;
  2008. flex-wrap: nowrap;
  2009. justify-content: flex-start;
  2010. position: relative;
  2011. "
  2012. >
  2013. <div
  2014. style="margin-right: 20px; font-weight: bold"
  2015. :id="'gj' + itemTaskIndex + '' + toolIndex"
  2016. >
  2017. 工具 {{ toolIndex + 1 }} :
  2018. </div>
  2019. <div class="chooseWho">
  2020. <div
  2021. :class="
  2022. itemTool.toolType == 0
  2023. ? 'isChooseActive'
  2024. : ''
  2025. "
  2026. @click="
  2027. (itemTool.toolType = 0),
  2028. (itemTool.isFold3 = false),
  2029. $forceUpdate()
  2030. "
  2031. >
  2032. 互动类
  2033. </div>
  2034. <div
  2035. :class="
  2036. itemTool.toolType == 1
  2037. ? 'isChooseActive'
  2038. : ''
  2039. "
  2040. @click="
  2041. (itemTool.toolType = 1),
  2042. (itemTool.isFold3 = false),
  2043. $forceUpdate()
  2044. "
  2045. >
  2046. 思维类
  2047. </div>
  2048. <div
  2049. :class="
  2050. itemTool.toolType == 6
  2051. ? 'isChooseActive'
  2052. : ''
  2053. "
  2054. @click="
  2055. (itemTool.toolType = 6),
  2056. (itemTool.isFold3 = false),
  2057. $forceUpdate()
  2058. "
  2059. >
  2060. 协作类
  2061. </div>
  2062. <div
  2063. :class="
  2064. itemTool.toolType == 2
  2065. ? 'isChooseActive'
  2066. : ''
  2067. "
  2068. @click="
  2069. (itemTool.toolType = 2),
  2070. (itemTool.isFold3 = false),
  2071. $forceUpdate()
  2072. "
  2073. >
  2074. 测评类
  2075. </div>
  2076. <div
  2077. :class="
  2078. itemTool.toolType == 7
  2079. ? 'isChooseActive'
  2080. : ''
  2081. "
  2082. @click="
  2083. (itemTool.toolType = 7),
  2084. (itemTool.isFold3 = false),
  2085. $forceUpdate()
  2086. "
  2087. >
  2088. 评价类
  2089. </div>
  2090. <div
  2091. :class="
  2092. itemTool.toolType == 3
  2093. ? 'isChooseActive'
  2094. : ''
  2095. "
  2096. @click="
  2097. (itemTool.toolType = 3),
  2098. (itemTool.isFold3 = false),
  2099. $forceUpdate()
  2100. "
  2101. >
  2102. 编程类
  2103. </div>
  2104. <div
  2105. :class="
  2106. itemTool.toolType == 5
  2107. ? 'isChooseActive'
  2108. : ''
  2109. "
  2110. @click="
  2111. (itemTool.toolType = 5),
  2112. (itemTool.isFold3 = false),
  2113. $forceUpdate()
  2114. "
  2115. >
  2116. 学科类
  2117. </div>
  2118. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2119. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2120. 其他
  2121. </div> -->
  2122. </div>
  2123. <div
  2124. class="chapter_upload_ud2"
  2125. style="z-index: 9; margin: 0 0 0 auto"
  2126. :style="{
  2127. margin:
  2128. itemTask.toolChoose.length > 1
  2129. ? '0px 35px 0px auto'
  2130. : '0 0 0 auto',
  2131. }"
  2132. v-if="itemTask.toolChoose.length > 1"
  2133. >
  2134. <div
  2135. class="chapter_upload_up2"
  2136. @click.stop="
  2137. upTool(
  2138. $event,
  2139. unitIndex,
  2140. itemTaskIndex,
  2141. toolIndex
  2142. )
  2143. "
  2144. >
  2145. 上移
  2146. </div>
  2147. <div
  2148. class="chapter_upload_down2"
  2149. @click.stop="
  2150. downTool(
  2151. $event,
  2152. unitIndex,
  2153. itemTaskIndex,
  2154. toolIndex
  2155. )
  2156. "
  2157. >
  2158. 下移
  2159. </div>
  2160. </div>
  2161. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  2162. @click="fold3(itemTaskIndex, toolIndex)"
  2163. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2164. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  2165. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  2166. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  2167. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  2168. <div
  2169. class="remove"
  2170. @click="deleteTool(itemTaskIndex, toolIndex)"
  2171. v-if="itemTask.toolChoose.length > 1"
  2172. style="
  2173. position: absolute;
  2174. right: 0;
  2175. top: -5px;
  2176. "
  2177. ></div>
  2178. </div>
  2179. <!-- v-show="!itemTool.isFold3" -->
  2180. <div style="min-height: 163px">
  2181. <div
  2182. class="toolSort"
  2183. v-if="itemTool.toolType == 0"
  2184. >
  2185. <!-- <div class="tool">
  2186. <div
  2187. class="whiteBIcon"
  2188. @click="addTools(8, itemTaskIndex, toolIndex)"
  2189. >
  2190. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2191. <div style="margin: 5px 0">素材库</div>
  2192. </div>
  2193. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2194. <img
  2195. src="../../../assets/icon/checkNo.png"
  2196. alt
  2197. v-if="itemTool.tool.indexOf(8) == -1"
  2198. />
  2199. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2200. alt /><span>已选择</span></div>
  2201. </div>
  2202. </div>-->
  2203. <!-- <div class="tool">
  2204. <div
  2205. class="whiteBIcon"
  2206. @click="addTools(17, itemTaskIndex, toolIndex)"
  2207. >
  2208. <img
  2209. src="../../../assets/icon/secondToolList/library.png"
  2210. alt
  2211. />
  2212. <div style="margin: 5px 0">学习资料</div>
  2213. </div>
  2214. <div
  2215. class="check"
  2216. @click="addTools(17, itemTaskIndex, toolIndex)"
  2217. >
  2218. <img
  2219. src="../../../assets/icon/checkNo.png"
  2220. alt
  2221. v-if="itemTool.tool.indexOf(17) == -1"
  2222. />
  2223. <img
  2224. src="../../../assets/icon/checkedIs.png"
  2225. alt
  2226. v-else
  2227. />
  2228. </div>10
  2229. </div> -->
  2230. <div
  2231. class="tool"
  2232. :class="{
  2233. isToolChoose:
  2234. itemTool.tool.indexOf(10) != -1,
  2235. }"
  2236. @click="
  2237. addTools(10, itemTaskIndex, toolIndex)
  2238. "
  2239. >
  2240. <div
  2241. class="whiteBIcon"
  2242. @click.stop="
  2243. openTools(itemTaskIndex, 10, toolIndex)
  2244. "
  2245. >
  2246. <img
  2247. src="../../../assets/icon/thirdToolList/time.png"
  2248. alt
  2249. />
  2250. <div style="margin: 5px 0">倒计时</div>
  2251. </div>
  2252. <div class="noCTool">
  2253. <img
  2254. src="../../../assets/icon/new/isToolC.png"
  2255. alt=""
  2256. />
  2257. </div>
  2258. <div
  2259. class="isCTool"
  2260. v-if="itemTool.tool.indexOf(10) != -1"
  2261. >
  2262. <img
  2263. src="../../../assets/icon/new/isToolC.png"
  2264. alt=""
  2265. />
  2266. </div>
  2267. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2268. <img src="../../../assets/icon/checkNo.png" alt
  2269. v-if="itemTool.tool.indexOf(10) == -1" />
  2270. <div class="checkDiv" v-else>
  2271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2272. </div>
  2273. </div> -->
  2274. </div>
  2275. <div
  2276. class="tool"
  2277. :class="{
  2278. isToolChoose:
  2279. itemTool.tool.indexOf(65) != -1,
  2280. }"
  2281. @click="
  2282. addTools(65, itemTaskIndex, toolIndex)
  2283. "
  2284. >
  2285. <div
  2286. class="whiteBIcon"
  2287. @click.stop="
  2288. addTools(65, itemTaskIndex, toolIndex)
  2289. "
  2290. >
  2291. <img
  2292. src="../../../assets/icon/firstToolList/pickPeople.png"
  2293. alt
  2294. />
  2295. <div style="margin: 5px 0">挑人</div>
  2296. </div>
  2297. <div class="noCTool">
  2298. <img
  2299. src="../../../assets/icon/new/isToolC.png"
  2300. alt=""
  2301. />
  2302. </div>
  2303. <div
  2304. class="isCTool"
  2305. v-if="itemTool.tool.indexOf(65) != -1"
  2306. >
  2307. <img
  2308. src="../../../assets/icon/new/isToolC.png"
  2309. alt=""
  2310. />
  2311. </div>
  2312. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  2313. <img src="../../../assets/icon/checkNo.png" alt
  2314. v-if="itemTool.tool.indexOf(65) == -1" />
  2315. <div class="checkDiv" v-else>
  2316. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2317. </div>
  2318. </div> -->
  2319. </div>
  2320. <!-- <div class="tool">
  2321. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2322. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2323. <div style="margin: 5px 0">学生分组</div>
  2324. </div>
  2325. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2326. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2327. <div class="checkDiv" v-else>
  2328. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2329. </div>
  2330. </div>
  2331. </div> -->
  2332. <!-- <div class="tool">
  2333. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2334. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2335. <div style="margin: 5px 0">交互视频</div>
  2336. </div>
  2337. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2338. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2339. <div class="checkDiv" v-else>
  2340. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2341. </div>
  2342. </div>
  2343. </div> -->
  2344. </div>
  2345. <div
  2346. class="toolSort"
  2347. v-if="itemTool.toolType == 1"
  2348. >
  2349. <div
  2350. class="tool"
  2351. :class="{
  2352. isToolChoose:
  2353. itemTool.tool.indexOf(7) != -1,
  2354. }"
  2355. @click="
  2356. addTools(7, itemTaskIndex, toolIndex)
  2357. "
  2358. >
  2359. <div
  2360. class="whiteBIcon"
  2361. @click.stop="
  2362. addTools(7, itemTaskIndex, toolIndex)
  2363. "
  2364. >
  2365. <img
  2366. src="../../../assets/icon/secondToolList/mindNetwork.png"
  2367. alt
  2368. />
  2369. <div style="margin: 5px 0">思维网格</div>
  2370. </div>
  2371. <div class="noCTool">
  2372. <img
  2373. src="../../../assets/icon/new/isToolC.png"
  2374. alt=""
  2375. />
  2376. </div>
  2377. <div
  2378. class="isCTool"
  2379. v-if="itemTool.tool.indexOf(7) != -1"
  2380. >
  2381. <img
  2382. src="../../../assets/icon/new/isToolC.png"
  2383. alt=""
  2384. />
  2385. </div>
  2386. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2387. <img src="../../../assets/icon/checkNo.png" alt
  2388. v-if="itemTool.tool.indexOf(7) == -1" />
  2389. <div class="checkDiv" v-else>
  2390. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2391. </div>
  2392. </div> -->
  2393. </div>
  2394. <div
  2395. class="tool"
  2396. :class="{
  2397. isToolChoose:
  2398. itemTool.tool.indexOf(1) != -1,
  2399. }"
  2400. @click="
  2401. addTools(1, itemTaskIndex, toolIndex)
  2402. "
  2403. >
  2404. <div
  2405. class="whiteBIcon"
  2406. @click.stop="
  2407. openTools(itemTaskIndex, 1, toolIndex)
  2408. "
  2409. >
  2410. <img
  2411. src="../../../assets/icon/secondToolList/whiteBoard.png"
  2412. alt
  2413. />
  2414. <div style="margin: 5px 0">电子白板</div>
  2415. </div>
  2416. <div class="noCTool">
  2417. <img
  2418. src="../../../assets/icon/new/isToolC.png"
  2419. alt=""
  2420. />
  2421. </div>
  2422. <div
  2423. class="isCTool"
  2424. v-if="itemTool.tool.indexOf(1) != -1"
  2425. >
  2426. <img
  2427. src="../../../assets/icon/new/isToolC.png"
  2428. alt=""
  2429. />
  2430. </div>
  2431. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2432. <img src="../../../assets/icon/checkNo.png" alt
  2433. v-if="itemTool.tool.indexOf(1) == -1" />
  2434. <div class="checkDiv" v-else>
  2435. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2436. </div>
  2437. </div> -->
  2438. </div>
  2439. <!-- <div class="tool">
  2440. <div
  2441. class="whiteBIcon"
  2442. @click="addTools(2, itemTaskIndex, toolIndex)"
  2443. >
  2444. <img
  2445. src="../../../assets/icon/secondToolList/note.png"
  2446. alt
  2447. />
  2448. <div style="margin: 5px 0">便签</div>
  2449. </div>
  2450. <div
  2451. class="check"
  2452. @click="addTools(2, itemTaskIndex, toolIndex)"
  2453. >
  2454. <img
  2455. src="../../../assets/icon/checkNo.png"
  2456. alt
  2457. v-if="itemTool.tool.indexOf(2) == -1"
  2458. />
  2459. <div class="checkDiv" v-else>
  2460. <img
  2461. src="../../../assets/icon/checkedIs.png"
  2462. alt
  2463. /><span>已选择</span>
  2464. </div>
  2465. </div>
  2466. </div> -->
  2467. <!-- <div class="tool">
  2468. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2469. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2470. <div style="margin: 5px 0">协同文档</div>
  2471. </div>
  2472. <div
  2473. class="check"
  2474. @click="addTools(6, itemTaskIndex, toolIndex)"
  2475. >
  2476. <img
  2477. src="../../../assets/icon/checkNo.png"
  2478. alt
  2479. v-if="itemTool.tool.indexOf(6) == -1"
  2480. />
  2481. <div class="checkDiv" v-else>
  2482. <img
  2483. src="../../../assets/icon/checkedIs.png"
  2484. alt
  2485. /><span>已选择</span>
  2486. </div>
  2487. </div>
  2488. </div> -->
  2489. <div
  2490. class="tool"
  2491. :class="{
  2492. isToolChoose:
  2493. itemTool.tool.indexOf(52) != -1,
  2494. }"
  2495. @click="
  2496. addTools(52, itemTaskIndex, toolIndex)
  2497. "
  2498. >
  2499. <div
  2500. class="whiteBIcon"
  2501. @click.stop="
  2502. openTools(itemTaskIndex, 52, toolIndex)
  2503. "
  2504. >
  2505. <img
  2506. src="../../../assets/icon/fourthToolList/text.png"
  2507. alt
  2508. />
  2509. <div style="margin: 5px 0">文档</div>
  2510. </div>
  2511. <div class="noCTool">
  2512. <img
  2513. src="../../../assets/icon/new/isToolC.png"
  2514. alt=""
  2515. />
  2516. </div>
  2517. <div
  2518. class="isCTool"
  2519. v-if="itemTool.tool.indexOf(52) != -1"
  2520. >
  2521. <img
  2522. src="../../../assets/icon/new/isToolC.png"
  2523. alt=""
  2524. />
  2525. </div>
  2526. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2527. <img src="../../../assets/icon/checkNo.png" alt
  2528. v-if="itemTool.tool.indexOf(52) == -1" />
  2529. <div class="checkDiv" v-else>
  2530. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2531. </div>
  2532. </div> -->
  2533. </div>
  2534. <div
  2535. class="tool"
  2536. :class="{
  2537. isToolChoose:
  2538. itemTool.tool.indexOf(3) != -1,
  2539. }"
  2540. @click="
  2541. addTools(3, itemTaskIndex, toolIndex)
  2542. "
  2543. >
  2544. <div
  2545. class="whiteBIcon"
  2546. @click.stop="
  2547. openTools(itemTaskIndex, 3, toolIndex)
  2548. "
  2549. >
  2550. <img
  2551. src="../../../assets/icon/secondToolList/mindMapping.png"
  2552. alt
  2553. />
  2554. <div style="margin: 5px 0">思维导图</div>
  2555. </div>
  2556. <div class="noCTool">
  2557. <img
  2558. src="../../../assets/icon/new/isToolC.png"
  2559. alt=""
  2560. />
  2561. </div>
  2562. <div
  2563. class="isCTool"
  2564. v-if="itemTool.tool.indexOf(3) != -1"
  2565. >
  2566. <img
  2567. src="../../../assets/icon/new/isToolC.png"
  2568. alt=""
  2569. />
  2570. </div>
  2571. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2572. <img src="../../../assets/icon/checkNo.png" alt
  2573. v-if="itemTool.tool.indexOf(3) == -1" />
  2574. <div class="checkDiv" v-else>
  2575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2576. </div>
  2577. </div> -->
  2578. </div>
  2579. <div
  2580. class="tool"
  2581. :class="{
  2582. isToolChoose:
  2583. itemTool.tool.indexOf(48) != -1,
  2584. }"
  2585. @click="
  2586. addTools(48, itemTaskIndex, toolIndex)
  2587. "
  2588. >
  2589. <div
  2590. class="whiteBIcon"
  2591. @click.stop="
  2592. openTools(itemTaskIndex, 48, toolIndex)
  2593. "
  2594. >
  2595. <img
  2596. src="../../../assets/icon/fourthToolList/table.png"
  2597. alt
  2598. />
  2599. <div style="margin: 5px 0">表格</div>
  2600. </div>
  2601. <div class="noCTool">
  2602. <img
  2603. src="../../../assets/icon/new/isToolC.png"
  2604. alt=""
  2605. />
  2606. </div>
  2607. <div
  2608. class="isCTool"
  2609. v-if="itemTool.tool.indexOf(48) != -1"
  2610. >
  2611. <img
  2612. src="../../../assets/icon/new/isToolC.png"
  2613. alt=""
  2614. />
  2615. </div>
  2616. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2617. <img src="../../../assets/icon/checkNo.png" alt
  2618. v-if="itemTool.tool.indexOf(48) == -1" />
  2619. <div class="checkDiv" v-else>
  2620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2621. </div>
  2622. </div> -->
  2623. </div>
  2624. </div>
  2625. <div
  2626. class="toolSort"
  2627. v-if="itemTool.toolType == 6"
  2628. >
  2629. <div
  2630. class="tool"
  2631. :class="{
  2632. isToolChoose:
  2633. itemTool.tool.indexOf(49) != -1,
  2634. }"
  2635. @click="
  2636. addTools(49, itemTaskIndex, toolIndex)
  2637. "
  2638. >
  2639. <div
  2640. class="whiteBIcon"
  2641. @click.stop="
  2642. openTools(itemTaskIndex, 49, toolIndex)
  2643. "
  2644. >
  2645. <img
  2646. src="../../../assets/icon/fourthToolList/group.png"
  2647. alt
  2648. />
  2649. <div style="margin: 5px 0">学生分组</div>
  2650. </div>
  2651. <div class="noCTool">
  2652. <img
  2653. src="../../../assets/icon/new/isToolC.png"
  2654. alt=""
  2655. />
  2656. </div>
  2657. <div
  2658. class="isCTool"
  2659. v-if="itemTool.tool.indexOf(49) != -1"
  2660. >
  2661. <img
  2662. src="../../../assets/icon/new/isToolC.png"
  2663. alt=""
  2664. />
  2665. </div>
  2666. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2667. <img src="../../../assets/icon/checkNo.png" alt
  2668. v-if="itemTool.tool.indexOf(49) == -1" />
  2669. <div class="checkDiv" v-else>
  2670. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2671. </div>
  2672. </div> -->
  2673. </div>
  2674. </div>
  2675. <div
  2676. class="toolSort"
  2677. v-if="itemTool.toolType == 2"
  2678. >
  2679. <!-- <div class="tool">
  2680. <div
  2681. class="whiteBIcon"
  2682. @click="addTools(5, itemTaskIndex, toolIndex)"
  2683. >
  2684. <img
  2685. src="../../../assets/icon/thirdToolList/score.png"
  2686. alt
  2687. />
  2688. <div style="margin: 5px 0">量规评分</div>
  2689. </div>
  2690. <div
  2691. class="check"
  2692. @click="addTools(5, itemTaskIndex, toolIndex)"
  2693. >
  2694. <img
  2695. src="../../../assets/icon/checkNo.png"
  2696. alt
  2697. v-if="itemTool.tool.indexOf(5) == -1"
  2698. />
  2699. <img
  2700. src="../../../assets/icon/checkedIs.png"
  2701. alt
  2702. v-else
  2703. />
  2704. </div>
  2705. </div>-->
  2706. <div
  2707. class="tool"
  2708. :class="{
  2709. isToolChoose:
  2710. itemTool.tool.indexOf(4) != -1,
  2711. }"
  2712. @click="
  2713. addTools(4, itemTaskIndex, toolIndex)
  2714. "
  2715. >
  2716. <div
  2717. class="whiteBIcon"
  2718. @click.stop="
  2719. openTools(itemTaskIndex, 4, toolIndex)
  2720. "
  2721. >
  2722. <img
  2723. src="../../../assets/icon/thirdToolList/ask.png"
  2724. alt
  2725. />
  2726. <div style="margin: 5px 0">问卷调查</div>
  2727. </div>
  2728. <div class="noCTool">
  2729. <img
  2730. src="../../../assets/icon/new/isToolC.png"
  2731. alt=""
  2732. />
  2733. </div>
  2734. <div
  2735. class="isCTool"
  2736. v-if="itemTool.tool.indexOf(4) != -1"
  2737. >
  2738. <img
  2739. src="../../../assets/icon/new/isToolC.png"
  2740. alt=""
  2741. />
  2742. </div>
  2743. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2744. <img src="../../../assets/icon/checkNo.png" alt
  2745. v-if="itemTool.tool.indexOf(4) == -1" />
  2746. <div class="checkDiv" v-else>
  2747. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2748. </div>
  2749. </div> -->
  2750. </div>
  2751. <div
  2752. class="tool"
  2753. :class="{
  2754. isToolChoose:
  2755. itemTool.tool.indexOf(45) != -1,
  2756. }"
  2757. @click="
  2758. addTools(45, itemTaskIndex, toolIndex)
  2759. "
  2760. >
  2761. <div
  2762. class="whiteBIcon"
  2763. @click="
  2764. openTools(itemTaskIndex, 45, toolIndex)
  2765. "
  2766. >
  2767. <img
  2768. src="../../../assets/icon/thirdToolList/choose.png"
  2769. alt
  2770. />
  2771. <div style="margin: 5px 0">选择题</div>
  2772. </div>
  2773. <div class="noCTool">
  2774. <img
  2775. src="../../../assets/icon/new/isToolC.png"
  2776. alt=""
  2777. />
  2778. </div>
  2779. <div
  2780. class="isCTool"
  2781. v-if="itemTool.tool.indexOf(45) != -1"
  2782. >
  2783. <img
  2784. src="../../../assets/icon/new/isToolC.png"
  2785. alt=""
  2786. />
  2787. </div>
  2788. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2789. <img src="../../../assets/icon/checkNo.png" alt
  2790. v-if="itemTool.tool.indexOf(45) == -1" />
  2791. <div class="checkDiv" v-else>
  2792. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2793. </div>
  2794. </div> -->
  2795. </div>
  2796. <div
  2797. class="tool"
  2798. :class="{
  2799. isToolChoose:
  2800. itemTool.tool.indexOf(15) != -1,
  2801. }"
  2802. @click="
  2803. addTools(15, itemTaskIndex, toolIndex)
  2804. "
  2805. >
  2806. <div
  2807. class="whiteBIcon"
  2808. @click.stop="
  2809. openTools(itemTaskIndex, 15, toolIndex)
  2810. "
  2811. >
  2812. <img
  2813. src="../../../assets/icon/thirdToolList/answer.png"
  2814. alt
  2815. />
  2816. <div style="margin: 5px 0">问答</div>
  2817. </div>
  2818. <div class="noCTool">
  2819. <img
  2820. src="../../../assets/icon/new/isToolC.png"
  2821. alt=""
  2822. />
  2823. </div>
  2824. <div
  2825. class="isCTool"
  2826. v-if="itemTool.tool.indexOf(15) != -1"
  2827. >
  2828. <img
  2829. src="../../../assets/icon/new/isToolC.png"
  2830. alt=""
  2831. />
  2832. </div>
  2833. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2834. <img src="../../../assets/icon/checkNo.png" alt
  2835. v-if="itemTool.tool.indexOf(15) == -1" />
  2836. <div class="checkDiv" v-else>
  2837. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2838. </div>
  2839. </div> -->
  2840. </div>
  2841. <div
  2842. class="tool"
  2843. :class="{
  2844. isToolChoose:
  2845. itemTool.tool.indexOf(16) != -1,
  2846. }"
  2847. @click="
  2848. addTools(16, itemTaskIndex, toolIndex)
  2849. "
  2850. >
  2851. <div
  2852. class="whiteBIcon"
  2853. @click.stop="
  2854. addTools(16, itemTaskIndex, toolIndex)
  2855. "
  2856. >
  2857. <img
  2858. src="../../../assets/icon/thirdToolList/work.png"
  2859. alt
  2860. />
  2861. <div style="margin: 5px 0">作业提交</div>
  2862. </div>
  2863. <div class="noCTool">
  2864. <img
  2865. src="../../../assets/icon/new/isToolC.png"
  2866. alt=""
  2867. />
  2868. </div>
  2869. <div
  2870. class="isCTool"
  2871. v-if="itemTool.tool.indexOf(16) != -1"
  2872. >
  2873. <img
  2874. src="../../../assets/icon/new/isToolC.png"
  2875. alt=""
  2876. />
  2877. </div>
  2878. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2879. <img src="../../../assets/icon/checkNo.png" alt
  2880. v-if="itemTool.tool.indexOf(16) == -1" />
  2881. <div class="checkDiv" v-else>
  2882. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2883. </div>
  2884. </div> -->
  2885. </div>
  2886. <div
  2887. class="tool"
  2888. :class="{
  2889. isToolChoose:
  2890. itemTool.tool.indexOf(50) != -1,
  2891. }"
  2892. @click="
  2893. addTools(50, itemTaskIndex, toolIndex)
  2894. "
  2895. >
  2896. <div
  2897. class="whiteBIcon"
  2898. @click.stop="
  2899. addTools(50, itemTaskIndex, toolIndex)
  2900. "
  2901. >
  2902. <img
  2903. src="../../../assets/icon/thirdToolList/plwork.png"
  2904. alt
  2905. />
  2906. <div style="margin: 5px 0">批量上传</div>
  2907. </div>
  2908. <div class="noCTool">
  2909. <img
  2910. src="../../../assets/icon/new/isToolC.png"
  2911. alt=""
  2912. />
  2913. </div>
  2914. <div
  2915. class="isCTool"
  2916. v-if="itemTool.tool.indexOf(50) != -1"
  2917. >
  2918. <img
  2919. src="../../../assets/icon/new/isToolC.png"
  2920. alt=""
  2921. />
  2922. </div>
  2923. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2924. <img src="../../../assets/icon/checkNo.png" alt
  2925. v-if="itemTool.tool.indexOf(50) == -1" />
  2926. <div class="checkDiv" v-else>
  2927. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2928. </div>
  2929. </div> -->
  2930. </div>
  2931. <!-- <div class="tool">
  2932. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2933. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2934. <div style="margin: 5px 0">个人评价</div>
  2935. </div>
  2936. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2937. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2938. <div class="checkDiv" v-else>
  2939. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2940. </div>
  2941. </div>
  2942. </div> -->
  2943. <div
  2944. class="tool"
  2945. :class="{
  2946. isToolChoose:
  2947. itemTool.tool.indexOf(41) != -1,
  2948. }"
  2949. @click="
  2950. addTools(41, itemTaskIndex, toolIndex)
  2951. "
  2952. >
  2953. <div
  2954. class="whiteBIcon"
  2955. @click.stop="
  2956. openTools(itemTaskIndex, 41, toolIndex)
  2957. "
  2958. >
  2959. <img
  2960. src="../../../assets/icon/thirdToolList/select.png"
  2961. alt
  2962. />
  2963. <div style="margin: 5px 0">选择匹配</div>
  2964. </div>
  2965. <div class="noCTool">
  2966. <img
  2967. src="../../../assets/icon/new/isToolC.png"
  2968. alt=""
  2969. />
  2970. </div>
  2971. <div
  2972. class="isCTool"
  2973. v-if="itemTool.tool.indexOf(41) != -1"
  2974. >
  2975. <img
  2976. src="../../../assets/icon/new/isToolC.png"
  2977. alt=""
  2978. />
  2979. </div>
  2980. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2981. <img src="../../../assets/icon/checkNo.png" alt
  2982. v-if="itemTool.tool.indexOf(41) == -1" />
  2983. <div class="checkDiv" v-else>
  2984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2985. </div>
  2986. </div> -->
  2987. </div>
  2988. <div
  2989. class="tool"
  2990. :class="{
  2991. isToolChoose:
  2992. itemTool.tool.indexOf(47) != -1,
  2993. }"
  2994. @click="
  2995. addTools(47, itemTaskIndex, toolIndex)
  2996. "
  2997. >
  2998. <div
  2999. class="whiteBIcon"
  3000. @click.stop="
  3001. openTools(itemTaskIndex, 47, toolIndex)
  3002. "
  3003. >
  3004. <img
  3005. src="../../../assets/icon/fourthToolList/conSentences.png"
  3006. alt
  3007. />
  3008. <div style="margin: 5px 0">排序</div>
  3009. </div>
  3010. <div class="noCTool">
  3011. <img
  3012. src="../../../assets/icon/new/isToolC.png"
  3013. alt=""
  3014. />
  3015. </div>
  3016. <div
  3017. class="isCTool"
  3018. v-if="itemTool.tool.indexOf(47) != -1"
  3019. >
  3020. <img
  3021. src="../../../assets/icon/new/isToolC.png"
  3022. alt=""
  3023. />
  3024. </div>
  3025. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3026. <img src="../../../assets/icon/checkNo.png" alt
  3027. v-if="itemTool.tool.indexOf(47) == -1" />
  3028. <div class="checkDiv" v-else>
  3029. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3030. </div>
  3031. </div> -->
  3032. </div>
  3033. <!-- <div class="tool">
  3034. <div
  3035. class="whiteBIcon"
  3036. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3037. >
  3038. <img
  3039. src="../../../assets/icon/thirdToolList/mp3.png"
  3040. alt
  3041. />
  3042. <div style="margin: 5px 0">上传音频</div>
  3043. </div>
  3044. <div
  3045. class="check"
  3046. @click="addTools(42, itemTaskIndex, toolIndex)"
  3047. >
  3048. <img
  3049. src="../../../assets/icon/checkNo.png"
  3050. alt
  3051. v-if="itemTool.tool.indexOf(42) == -1"
  3052. />
  3053. <img
  3054. src="../../../assets/icon/checkedIs.png"
  3055. alt
  3056. v-else
  3057. />
  3058. </div>
  3059. </div> -->
  3060. </div>
  3061. <div
  3062. class="toolSort"
  3063. v-if="itemTool.toolType == 3"
  3064. >
  3065. <div
  3066. class="tool"
  3067. :class="{
  3068. isToolChoose:
  3069. itemTool.tool.indexOf(18) != -1,
  3070. }"
  3071. @click="
  3072. addTools(18, itemTaskIndex, toolIndex)
  3073. "
  3074. >
  3075. <div
  3076. class="whiteBIcon"
  3077. @click.stop="
  3078. addTools(18, itemTaskIndex, toolIndex)
  3079. "
  3080. >
  3081. <img
  3082. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  3083. alt
  3084. />
  3085. <div style="margin: 5px 0">训练平台</div>
  3086. </div>
  3087. <div class="noCTool">
  3088. <img
  3089. src="../../../assets/icon/new/isToolC.png"
  3090. alt=""
  3091. />
  3092. </div>
  3093. <div
  3094. class="isCTool"
  3095. v-if="itemTool.tool.indexOf(18) != -1"
  3096. >
  3097. <img
  3098. src="../../../assets/icon/new/isToolC.png"
  3099. alt=""
  3100. />
  3101. </div>
  3102. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3103. <img src="../../../assets/icon/checkNo.png" alt
  3104. v-if="itemTool.tool.indexOf(18) == -1" />
  3105. <div class="checkDiv" v-else>
  3106. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3107. </div>
  3108. </div> -->
  3109. </div>
  3110. <div
  3111. class="tool"
  3112. :class="{
  3113. isToolChoose:
  3114. itemTool.tool.indexOf(21) != -1,
  3115. }"
  3116. @click="
  3117. addTools(21, itemTaskIndex, toolIndex)
  3118. "
  3119. >
  3120. <div
  3121. class="whiteBIcon"
  3122. @click.stop="
  3123. addTools(21, itemTaskIndex, toolIndex)
  3124. "
  3125. >
  3126. <img
  3127. src="../../../assets/icon/fourthToolList/program.png"
  3128. alt
  3129. />
  3130. <div style="margin: 5px 0">
  3131. AIoT Blockly
  3132. </div>
  3133. </div>
  3134. <div class="noCTool">
  3135. <img
  3136. src="../../../assets/icon/new/isToolC.png"
  3137. alt=""
  3138. />
  3139. </div>
  3140. <div
  3141. class="isCTool"
  3142. v-if="itemTool.tool.indexOf(21) != -1"
  3143. >
  3144. <img
  3145. src="../../../assets/icon/new/isToolC.png"
  3146. alt=""
  3147. />
  3148. </div>
  3149. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3150. <img src="../../../assets/icon/checkNo.png" alt
  3151. v-if="itemTool.tool.indexOf(21) == -1" />
  3152. <div class="checkDiv" v-else>
  3153. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3154. </div>
  3155. </div> -->
  3156. </div>
  3157. <!-- <div class="tool">
  3158. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3159. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3160. <div style="margin: 5px 0">AI体验</div>
  3161. </div>
  3162. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3163. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3164. <div class="checkDiv" v-else>
  3165. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3166. </div>
  3167. </div>
  3168. </div> -->
  3169. <div
  3170. class="tool"
  3171. :class="{
  3172. isToolChoose:
  3173. itemTool.tool.indexOf(23) != -1,
  3174. }"
  3175. @click="
  3176. addTools(23, itemTaskIndex, toolIndex)
  3177. "
  3178. >
  3179. <div
  3180. class="whiteBIcon"
  3181. @click.stop="
  3182. addTools(23, itemTaskIndex, toolIndex)
  3183. "
  3184. >
  3185. <img
  3186. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  3187. alt
  3188. />
  3189. <div style="margin: 5px 0">AI Python</div>
  3190. </div>
  3191. <div class="noCTool">
  3192. <img
  3193. src="../../../assets/icon/new/isToolC.png"
  3194. alt=""
  3195. />
  3196. </div>
  3197. <div
  3198. class="isCTool"
  3199. v-if="itemTool.tool.indexOf(23) != -1"
  3200. >
  3201. <img
  3202. src="../../../assets/icon/new/isToolC.png"
  3203. alt=""
  3204. />
  3205. </div>
  3206. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3207. <img src="../../../assets/icon/checkNo.png" alt
  3208. v-if="itemTool.tool.indexOf(23) == -1" />
  3209. <div class="checkDiv" v-else>
  3210. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3211. </div>
  3212. </div> -->
  3213. </div>
  3214. <div
  3215. class="tool"
  3216. :class="{
  3217. isToolChoose:
  3218. itemTool.tool.indexOf(24) != -1,
  3219. }"
  3220. @click="
  3221. addTools(24, itemTaskIndex, toolIndex)
  3222. "
  3223. >
  3224. <div
  3225. class="whiteBIcon"
  3226. @click.stop="
  3227. addTools(24, itemTaskIndex, toolIndex)
  3228. "
  3229. >
  3230. <img
  3231. src="../../../assets/icon/fourthToolList/AIprogram.png"
  3232. alt
  3233. />
  3234. <div style="margin: 5px 0">
  3235. AI Blockly
  3236. </div>
  3237. </div>
  3238. <div class="noCTool">
  3239. <img
  3240. src="../../../assets/icon/new/isToolC.png"
  3241. alt=""
  3242. />
  3243. </div>
  3244. <div
  3245. class="isCTool"
  3246. v-if="itemTool.tool.indexOf(24) != -1"
  3247. >
  3248. <img
  3249. src="../../../assets/icon/new/isToolC.png"
  3250. alt=""
  3251. />
  3252. </div>
  3253. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3254. <img src="../../../assets/icon/checkNo.png" alt
  3255. v-if="itemTool.tool.indexOf(24) == -1" />
  3256. <div class="checkDiv" v-else>
  3257. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3258. </div>
  3259. </div> -->
  3260. </div>
  3261. <div
  3262. class="tool"
  3263. :class="{
  3264. isToolChoose:
  3265. itemTool.tool.indexOf(32) != -1,
  3266. }"
  3267. @click="
  3268. addTools(32, itemTaskIndex, toolIndex)
  3269. "
  3270. >
  3271. <div
  3272. class="whiteBIcon"
  3273. @click.stop="
  3274. addTools(32, itemTaskIndex, toolIndex)
  3275. "
  3276. >
  3277. <img
  3278. src="../../../assets/icon/thirdToolList/code.png"
  3279. alt
  3280. />
  3281. <div style="margin: 5px 0">源码编辑</div>
  3282. </div>
  3283. <div class="noCTool">
  3284. <img
  3285. src="../../../assets/icon/new/isToolC.png"
  3286. alt=""
  3287. />
  3288. </div>
  3289. <div
  3290. class="isCTool"
  3291. v-if="itemTool.tool.indexOf(32) != -1"
  3292. >
  3293. <img
  3294. src="../../../assets/icon/new/isToolC.png"
  3295. alt=""
  3296. />
  3297. </div>
  3298. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  3299. <img src="../../../assets/icon/checkNo.png" alt
  3300. v-if="itemTool.tool.indexOf(32) == -1" />
  3301. <div class="checkDiv" v-else>
  3302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3303. </div>
  3304. </div> -->
  3305. </div>
  3306. <div
  3307. class="tool"
  3308. :class="{
  3309. isToolChoose:
  3310. itemTool.tool.indexOf(57) != -1,
  3311. }"
  3312. @click="
  3313. addTools(57, itemTaskIndex, toolIndex)
  3314. "
  3315. >
  3316. <div
  3317. class="whiteBIcon"
  3318. @click.stop="
  3319. openTools(itemTaskIndex, 57, toolIndex)
  3320. "
  3321. >
  3322. <img
  3323. src="../../../assets/icon/fourthToolList/cocopi.png"
  3324. alt
  3325. />
  3326. <div style="margin: 5px 0">CocoPi</div>
  3327. </div>
  3328. <div class="noCTool">
  3329. <img
  3330. src="../../../assets/icon/new/isToolC.png"
  3331. alt=""
  3332. />
  3333. </div>
  3334. <div
  3335. class="isCTool"
  3336. v-if="itemTool.tool.indexOf(57) != -1"
  3337. >
  3338. <img
  3339. src="../../../assets/icon/new/isToolC.png"
  3340. alt=""
  3341. />
  3342. </div>
  3343. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3344. <img src="../../../assets/icon/checkNo.png" alt
  3345. v-if="itemTool.tool.indexOf(57) == -1" />
  3346. <div class="checkDiv" v-else>
  3347. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3348. </div>
  3349. </div> -->
  3350. </div>
  3351. <div
  3352. class="tool"
  3353. :class="{
  3354. isToolChoose:
  3355. itemTool.tool.indexOf(63) != -1,
  3356. }"
  3357. @click="
  3358. addTools(63, itemTaskIndex, toolIndex)
  3359. "
  3360. >
  3361. <div
  3362. class="whiteBIcon"
  3363. @click.stop="
  3364. addTools(63, itemTaskIndex, toolIndex)
  3365. "
  3366. >
  3367. <img
  3368. src="../../../assets/icon/fourthToolList/Wood.png"
  3369. alt
  3370. />
  3371. <div style="margin: 5px 0">海龟编程</div>
  3372. </div>
  3373. <div class="noCTool">
  3374. <img
  3375. src="../../../assets/icon/new/isToolC.png"
  3376. alt=""
  3377. />
  3378. </div>
  3379. <div
  3380. class="isCTool"
  3381. v-if="itemTool.tool.indexOf(63) != -1"
  3382. >
  3383. <img
  3384. src="../../../assets/icon/new/isToolC.png"
  3385. alt=""
  3386. />
  3387. </div>
  3388. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3389. <img src="../../../assets/icon/checkNo.png" alt
  3390. v-if="itemTool.tool.indexOf(63) == -1" />
  3391. <div class="checkDiv" v-else>
  3392. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3393. </div>
  3394. </div> -->
  3395. </div>
  3396. <div
  3397. class="tool"
  3398. :class="{
  3399. isToolChoose:
  3400. itemTool.tool.indexOf(71) != -1,
  3401. }"
  3402. @click="
  3403. addTools(71, itemTaskIndex, toolIndex)
  3404. "
  3405. >
  3406. <div
  3407. class="whiteBIcon"
  3408. @click.stop="
  3409. addTools(71, itemTaskIndex, toolIndex)
  3410. "
  3411. >
  3412. <img
  3413. src="../../../assets/icon/fourthToolList/chatgpt.png"
  3414. alt
  3415. />
  3416. <div style="margin: 5px 0">AI智能体</div>
  3417. </div>
  3418. <div class="noCTool">
  3419. <img
  3420. src="../../../assets/icon/new/isToolC.png"
  3421. alt=""
  3422. />
  3423. </div>
  3424. <div
  3425. class="isCTool"
  3426. v-if="itemTool.tool.indexOf(71) != -1"
  3427. >
  3428. <img
  3429. src="../../../assets/icon/new/isToolC.png"
  3430. alt=""
  3431. />
  3432. </div>
  3433. </div>
  3434. </div>
  3435. <div
  3436. class="toolSort"
  3437. v-if="itemTool.toolType == 7"
  3438. >
  3439. <div
  3440. class="tool"
  3441. :class="{
  3442. isToolChoose:
  3443. itemTool.tool.indexOf(40) != -1,
  3444. }"
  3445. @click.stop="
  3446. addTools(40, itemTaskIndex, toolIndex)
  3447. "
  3448. >
  3449. <div
  3450. class="whiteBIcon"
  3451. @click.stop="
  3452. openTools(itemTaskIndex, 40, toolIndex)
  3453. "
  3454. >
  3455. <img
  3456. src="../../../assets/icon/thirdToolList/eval.png"
  3457. alt
  3458. />
  3459. <div style="margin: 5px 0">个人评价</div>
  3460. </div>
  3461. <div class="noCTool">
  3462. <img
  3463. src="../../../assets/icon/new/isToolC.png"
  3464. alt=""
  3465. />
  3466. </div>
  3467. <div
  3468. class="isCTool"
  3469. v-if="itemTool.tool.indexOf(40) != -1"
  3470. >
  3471. <img
  3472. src="../../../assets/icon/new/isToolC.png"
  3473. alt=""
  3474. />
  3475. </div>
  3476. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3477. <img src="../../../assets/icon/checkNo.png" alt
  3478. v-if="itemTool.tool.indexOf(40) == -1" />
  3479. <div class="checkDiv" v-else>
  3480. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3481. </div>
  3482. </div> -->
  3483. </div>
  3484. </div>
  3485. <div
  3486. class="toolSort"
  3487. v-if="itemTool.toolType == 5"
  3488. >
  3489. <div
  3490. class="tool"
  3491. :class="{
  3492. isToolChoose:
  3493. itemTool.tool.indexOf(28) != -1,
  3494. }"
  3495. @click="
  3496. addTools(28, itemTaskIndex, toolIndex)
  3497. "
  3498. >
  3499. <div
  3500. class="whiteBIcon"
  3501. @click.stop="
  3502. addTools(28, itemTaskIndex, toolIndex)
  3503. "
  3504. >
  3505. <img
  3506. src="../../../assets/icon/secondToolList/translation.png"
  3507. alt
  3508. />
  3509. <div style="margin: 5px 0">翻译</div>
  3510. </div>
  3511. <div class="noCTool">
  3512. <img
  3513. src="../../../assets/icon/new/isToolC.png"
  3514. alt=""
  3515. />
  3516. </div>
  3517. <div
  3518. class="isCTool"
  3519. v-if="itemTool.tool.indexOf(28) != -1"
  3520. >
  3521. <img
  3522. src="../../../assets/icon/new/isToolC.png"
  3523. alt=""
  3524. />
  3525. </div>
  3526. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3527. <img src="../../../assets/icon/checkNo.png" alt
  3528. v-if="itemTool.tool.indexOf(28) == -1" />
  3529. <div class="checkDiv" v-else>
  3530. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3531. </div>
  3532. </div> -->
  3533. </div>
  3534. <div
  3535. class="tool"
  3536. :class="{
  3537. isToolChoose:
  3538. itemTool.tool.indexOf(31) != -1,
  3539. }"
  3540. @click="
  3541. addTools(31, itemTaskIndex, toolIndex)
  3542. "
  3543. >
  3544. <div
  3545. class="whiteBIcon"
  3546. @click.stop="
  3547. addTools(31, itemTaskIndex, toolIndex)
  3548. "
  3549. >
  3550. <img
  3551. src="../../../assets/icon/secondToolList/networkPanel.png"
  3552. alt
  3553. />
  3554. <div style="margin: 5px 0">数字画板</div>
  3555. </div>
  3556. <div class="noCTool">
  3557. <img
  3558. src="../../../assets/icon/new/isToolC.png"
  3559. alt=""
  3560. />
  3561. </div>
  3562. <div
  3563. class="isCTool"
  3564. v-if="itemTool.tool.indexOf(31) != -1"
  3565. >
  3566. <img
  3567. src="../../../assets/icon/new/isToolC.png"
  3568. alt=""
  3569. />
  3570. </div>
  3571. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3572. <img src="../../../assets/icon/checkNo.png" alt
  3573. v-if="itemTool.tool.indexOf(31) == -1" />
  3574. <div class="checkDiv" v-else>
  3575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3576. </div>
  3577. </div> -->
  3578. </div>
  3579. <div
  3580. class="tool"
  3581. :class="{
  3582. isToolChoose:
  3583. itemTool.tool.indexOf(39) != -1,
  3584. }"
  3585. @click="
  3586. addTools(39, itemTaskIndex, toolIndex)
  3587. "
  3588. >
  3589. <div
  3590. class="whiteBIcon"
  3591. @click.stop="
  3592. addTools(39, itemTaskIndex, toolIndex)
  3593. "
  3594. >
  3595. <img
  3596. src="../../../assets/icon/secondToolList/GeoGebra.png"
  3597. alt
  3598. />
  3599. <div style="margin: 5px 0">GeoGebra</div>
  3600. </div>
  3601. <div class="noCTool">
  3602. <img
  3603. src="../../../assets/icon/new/isToolC.png"
  3604. alt=""
  3605. />
  3606. </div>
  3607. <div
  3608. class="isCTool"
  3609. v-if="itemTool.tool.indexOf(39) != -1"
  3610. >
  3611. <img
  3612. src="../../../assets/icon/new/isToolC.png"
  3613. alt=""
  3614. />
  3615. </div>
  3616. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3617. <img src="../../../assets/icon/checkNo.png" alt
  3618. v-if="itemTool.tool.indexOf(39) == -1" />
  3619. <div class="checkDiv" v-else>
  3620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3621. </div>
  3622. </div> -->
  3623. </div>
  3624. <div
  3625. class="tool"
  3626. :class="{
  3627. isToolChoose:
  3628. itemTool.tool.indexOf(66) != -1,
  3629. }"
  3630. @click="
  3631. addTools(66, itemTaskIndex, toolIndex)
  3632. "
  3633. >
  3634. <div
  3635. class="whiteBIcon"
  3636. @click.stop="
  3637. addTools(66, itemTaskIndex, toolIndex)
  3638. "
  3639. >
  3640. <img
  3641. src="../../../assets/icon/secondToolList/formulaEdi.png"
  3642. alt
  3643. />
  3644. <div style="margin: 5px 0">公式编辑</div>
  3645. </div>
  3646. <div class="noCTool">
  3647. <img
  3648. src="../../../assets/icon/new/isToolC.png"
  3649. alt=""
  3650. />
  3651. </div>
  3652. <div
  3653. class="isCTool"
  3654. v-if="itemTool.tool.indexOf(66) != -1"
  3655. >
  3656. <img
  3657. src="../../../assets/icon/new/isToolC.png"
  3658. alt=""
  3659. />
  3660. </div>
  3661. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  3662. <img src="../../../assets/icon/checkNo.png" alt
  3663. v-if="itemTool.tool.indexOf(66) == -1" />
  3664. <div class="checkDiv" v-else>
  3665. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3666. </div>
  3667. </div> -->
  3668. </div>
  3669. <!-- <div class="tool">
  3670. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  3671. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  3672. <div style="margin: 5px 0">分子结构</div>
  3673. </div>
  3674. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  3675. <img src="../../../assets/icon/checkNo.png" alt
  3676. v-if="itemTool.tool.indexOf(67) == -1" />
  3677. <div class="checkDiv" v-else>
  3678. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3679. </div>
  3680. </div>
  3681. </div> -->
  3682. <div
  3683. class="tool"
  3684. :class="{
  3685. isToolChoose:
  3686. itemTool.tool.indexOf(68) != -1,
  3687. }"
  3688. @click="
  3689. addTools(68, itemTaskIndex, toolIndex)
  3690. "
  3691. >
  3692. <div
  3693. class="whiteBIcon"
  3694. @click.stop="
  3695. addTools(68, itemTaskIndex, toolIndex)
  3696. "
  3697. >
  3698. <img
  3699. src="../../../assets/icon/secondToolList/timeAxis.png"
  3700. alt
  3701. />
  3702. <div style="margin: 5px 0">时间轴</div>
  3703. </div>
  3704. <div class="noCTool">
  3705. <img
  3706. src="../../../assets/icon/new/isToolC.png"
  3707. alt=""
  3708. />
  3709. </div>
  3710. <div
  3711. class="isCTool"
  3712. v-if="itemTool.tool.indexOf(68) != -1"
  3713. >
  3714. <img
  3715. src="../../../assets/icon/new/isToolC.png"
  3716. alt=""
  3717. />
  3718. </div>
  3719. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  3720. <img src="../../../assets/icon/checkNo.png" alt
  3721. v-if="itemTool.tool.indexOf(68) == -1" />
  3722. <div class="checkDiv" v-else>
  3723. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3724. </div>
  3725. </div> -->
  3726. </div>
  3727. <div
  3728. class="tool"
  3729. :class="{
  3730. isToolChoose:
  3731. itemTool.tool.indexOf(69) != -1,
  3732. }"
  3733. @click="
  3734. addTools(69, itemTaskIndex, toolIndex)
  3735. "
  3736. >
  3737. <div
  3738. class="whiteBIcon"
  3739. @click.stop="
  3740. openTools(itemTaskIndex, 69, toolIndex)
  3741. "
  3742. >
  3743. <img
  3744. src="../../../assets/icon/thirdToolList/english.png"
  3745. alt
  3746. />
  3747. <div style="margin: 5px 0">英语写作</div>
  3748. </div>
  3749. <div class="noCTool">
  3750. <img
  3751. src="../../../assets/icon/new/isToolC.png"
  3752. alt=""
  3753. />
  3754. </div>
  3755. <div
  3756. class="isCTool"
  3757. v-if="itemTool.tool.indexOf(69) != -1"
  3758. >
  3759. <img
  3760. src="../../../assets/icon/new/isToolC.png"
  3761. alt=""
  3762. />
  3763. </div>
  3764. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3765. <img src="../../../assets/icon/checkNo.png" alt
  3766. v-if="itemTool.tool.indexOf(4) == -1" />
  3767. <div class="checkDiv" v-else>
  3768. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3769. </div>
  3770. </div> -->
  3771. </div>
  3772. <div
  3773. class="tool"
  3774. :class="{
  3775. isToolChoose:
  3776. itemTool.tool.indexOf(70) != -1,
  3777. }"
  3778. @click="
  3779. addTools(70, itemTaskIndex, toolIndex)
  3780. "
  3781. >
  3782. <div
  3783. class="whiteBIcon"
  3784. @click.stop="
  3785. openTools(itemTaskIndex, 70, toolIndex)
  3786. "
  3787. >
  3788. <img
  3789. src="../../../assets/icon/thirdToolList/englishVoice.png"
  3790. alt
  3791. />
  3792. <div style="margin: 5px 0">英语口语</div>
  3793. </div>
  3794. <div class="noCTool">
  3795. <img
  3796. src="../../../assets/icon/new/isToolC.png"
  3797. alt=""
  3798. />
  3799. </div>
  3800. <div
  3801. class="isCTool"
  3802. v-if="itemTool.tool.indexOf(70) != -1"
  3803. >
  3804. <img
  3805. src="../../../assets/icon/new/isToolC.png"
  3806. alt=""
  3807. />
  3808. </div>
  3809. </div>
  3810. <!-- <div class="tool">
  3811. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3812. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3813. <div style="margin: 5px 0">翻译</div>
  3814. </div>
  3815. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3816. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3817. <div class="checkDiv" v-else>
  3818. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3819. </div>
  3820. </div>
  3821. </div>
  3822. <div class="tool">
  3823. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3824. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3825. <div style="margin: 5px 0">魔盒识字</div>
  3826. </div>
  3827. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3828. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3829. <div class="checkDiv" v-else>
  3830. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3831. </div>
  3832. </div>
  3833. </div>
  3834. <div class="tool">
  3835. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3836. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3837. <div style="margin: 5px 0">24点</div>
  3838. </div>
  3839. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3840. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3841. <div class="checkDiv" v-else>
  3842. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3843. </div>
  3844. </div>
  3845. </div>
  3846. <div class="tool">
  3847. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3848. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3849. <div style="margin: 5px 0">数学画板</div>
  3850. </div>
  3851. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3852. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3853. <div class="checkDiv" v-else>
  3854. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3855. </div>
  3856. </div>
  3857. </div>
  3858. <div class="tool">
  3859. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3860. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3861. <div style="margin: 5px 0">GeoGebra</div>
  3862. </div>
  3863. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3864. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3865. <div class="checkDiv" v-else>
  3866. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3867. </div>
  3868. </div>
  3869. </div>
  3870. <div class="tool">
  3871. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3872. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3873. <div style="margin: 5px 0">模拟驾驶</div>
  3874. </div>
  3875. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3876. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3877. <div class="checkDiv" v-else>
  3878. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3879. </div>
  3880. </div>
  3881. </div>
  3882. <div class="tool">
  3883. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3884. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3885. <div style="margin: 5px 0">路径搜索</div>
  3886. </div>
  3887. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3888. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3889. <div class="checkDiv" v-else>
  3890. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3891. </div>
  3892. </div>
  3893. </div>
  3894. <div class="tool">
  3895. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3896. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3897. <div style="margin: 5px 0">深度学习</div>
  3898. </div>
  3899. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3900. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3901. <div class="checkDiv" v-else>
  3902. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3903. </div>
  3904. </div>
  3905. </div>
  3906. <div class="tool">
  3907. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3908. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3909. <div style="margin: 5px 0">全历史</div>
  3910. </div>
  3911. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3912. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3913. <div class="checkDiv" v-else>
  3914. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3915. </div>
  3916. </div>
  3917. </div>
  3918. </div>
  3919. <div class="toolSort" v-if="itemTool.toolType == 4">
  3920. <div class="tool">
  3921. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3922. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3923. <div style="margin: 5px 0">课程设计</div>
  3924. </div>
  3925. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3926. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3927. <div class="checkDiv" v-else>
  3928. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3929. </div>
  3930. </div>
  3931. </div>
  3932. <div class="tool">
  3933. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3934. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3935. <div style="margin: 5px 0">目标管理</div>
  3936. </div>
  3937. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3938. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3939. <div class="checkDiv" v-else>
  3940. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3941. </div>
  3942. </div>
  3943. </div> -->
  3944. <!-- <div class="tool">
  3945. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3946. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3947. <div style="margin: 5px 0">汉字宫</div>
  3948. </div>
  3949. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3950. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3951. <div class="checkDiv" v-else>
  3952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3953. </div>
  3954. </div>
  3955. </div> -->
  3956. </div>
  3957. </div>
  3958. <!-- v-show="!itemTool.isFold3" -->
  3959. <div>
  3960. <textarea
  3961. rows="2"
  3962. v-autoHeight="70"
  3963. type="text"
  3964. placeholder="添加工具描述"
  3965. class="binfo_input"
  3966. style="
  3967. margin: 0 0 20px 0;
  3968. width: 100% !important;
  3969. "
  3970. v-model="itemTool.toolDetail"
  3971. ></textarea>
  3972. </div>
  3973. </div>
  3974. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  3975. <div class="addToolImg">
  3976. <img src="../../../assets/icon/add.png" alt />
  3977. </div>
  3978. <div>添加工具</div>
  3979. </div> -->
  3980. <button
  3981. class="c_pub_button_add pub_btn_tool_img"
  3982. @click="addToolFun(itemTaskIndex)"
  3983. style="
  3984. margin: 0 auto;
  3985. padding: 0 30px;
  3986. height: 45px;
  3987. "
  3988. >
  3989. 添加工具
  3990. </button>
  3991. </div>
  3992. </div>
  3993. <div
  3994. v-else-if="
  3995. unitJson[unitIndex].easy == 2 ||
  3996. unitJson[unitIndex].easy == 4
  3997. "
  3998. class="toolChoose"
  3999. style="padding: 0 0 40px"
  4000. >
  4001. <div class="tools">
  4002. <div
  4003. class="leftTools"
  4004. style="width: 100%"
  4005. v-for="(
  4006. itemTool, toolIndex
  4007. ) in itemTask.toolChoose"
  4008. :key="toolIndex"
  4009. >
  4010. <div>
  4011. <textarea
  4012. rows="3"
  4013. type="text"
  4014. placeholder="添加工具描述"
  4015. class="binfo_input"
  4016. style="
  4017. margin: 0 0 20px 0;
  4018. width: 100% !important;
  4019. "
  4020. v-model="itemTool.toolDetail"
  4021. ></textarea>
  4022. </div>
  4023. <div
  4024. style="
  4025. display: flex;
  4026. flex-direction: row;
  4027. align-items: baseline;
  4028. flex-wrap: nowrap;
  4029. justify-content: flex-start;
  4030. position: relative;
  4031. "
  4032. >
  4033. <div
  4034. style="margin-right: 20px; font-weight: bold"
  4035. :id="'gj' + itemTaskIndex + '' + toolIndex"
  4036. >
  4037. 工具 {{ toolIndex + 1 }} :
  4038. </div>
  4039. <div
  4040. class="remove"
  4041. @click="deleteTool(itemTaskIndex, toolIndex)"
  4042. v-if="itemTask.toolChoose.length > 1"
  4043. style="right: 0"
  4044. ></div>
  4045. </div>
  4046. <div style="min-height: 163px">
  4047. <div class="toolSort">
  4048. <div class="tool">
  4049. <div
  4050. class="whiteBIcon"
  4051. @click="
  4052. openTools(itemTaskIndex, 1, toolIndex)
  4053. "
  4054. >
  4055. <img
  4056. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4057. alt
  4058. />
  4059. <div style="margin: 5px 0">电子白板</div>
  4060. </div>
  4061. <div
  4062. class="check"
  4063. @click="
  4064. addTools(1, itemTaskIndex, toolIndex)
  4065. "
  4066. >
  4067. <img
  4068. src="../../../assets/icon/checkNo.png"
  4069. alt
  4070. v-if="itemTool.tool.indexOf(1) == -1"
  4071. />
  4072. <div class="checkDiv" v-else>
  4073. <img
  4074. src="../../../assets/icon/checkedIs.png"
  4075. alt
  4076. /><span>已选择</span>
  4077. </div>
  4078. </div>
  4079. </div>
  4080. <div class="tool">
  4081. <div
  4082. class="whiteBIcon"
  4083. @click="
  4084. openTools(itemTaskIndex, 52, toolIndex)
  4085. "
  4086. >
  4087. <img
  4088. src="../../../assets/icon/fourthToolList/text.png"
  4089. alt
  4090. />
  4091. <div style="margin: 5px 0">文档</div>
  4092. </div>
  4093. <div
  4094. class="check"
  4095. @click="
  4096. addTools(52, itemTaskIndex, toolIndex)
  4097. "
  4098. >
  4099. <img
  4100. src="../../../assets/icon/checkNo.png"
  4101. alt
  4102. v-if="itemTool.tool.indexOf(52) == -1"
  4103. />
  4104. <div class="checkDiv" v-else>
  4105. <img
  4106. src="../../../assets/icon/checkedIs.png"
  4107. alt
  4108. /><span>已选择</span>
  4109. </div>
  4110. </div>
  4111. </div>
  4112. <div class="tool">
  4113. <div
  4114. class="whiteBIcon"
  4115. @click="
  4116. openTools(itemTaskIndex, 3, toolIndex)
  4117. "
  4118. >
  4119. <img
  4120. src="../../../assets/icon/secondToolList/mindMapping.png"
  4121. alt
  4122. />
  4123. <div style="margin: 5px 0">思维导图</div>
  4124. </div>
  4125. <div
  4126. class="check"
  4127. @click="
  4128. addTools(3, itemTaskIndex, toolIndex)
  4129. "
  4130. >
  4131. <img
  4132. src="../../../assets/icon/checkNo.png"
  4133. alt
  4134. v-if="itemTool.tool.indexOf(3) == -1"
  4135. />
  4136. <div class="checkDiv" v-else>
  4137. <img
  4138. src="../../../assets/icon/checkedIs.png"
  4139. alt
  4140. /><span>已选择</span>
  4141. </div>
  4142. </div>
  4143. </div>
  4144. <div class="tool">
  4145. <div
  4146. class="whiteBIcon"
  4147. @click="
  4148. openTools(itemTaskIndex, 4, toolIndex)
  4149. "
  4150. >
  4151. <img
  4152. src="../../../assets/icon/thirdToolList/ask.png"
  4153. alt
  4154. />
  4155. <div style="margin: 5px 0">问卷调查</div>
  4156. </div>
  4157. <div
  4158. class="check"
  4159. @click="
  4160. addTools(4, itemTaskIndex, toolIndex)
  4161. "
  4162. >
  4163. <img
  4164. src="../../../assets/icon/checkNo.png"
  4165. alt
  4166. v-if="itemTool.tool.indexOf(4) == -1"
  4167. />
  4168. <div class="checkDiv" v-else>
  4169. <img
  4170. src="../../../assets/icon/checkedIs.png"
  4171. alt
  4172. /><span>已选择</span>
  4173. </div>
  4174. </div>
  4175. </div>
  4176. <div class="tool">
  4177. <div
  4178. class="whiteBIcon"
  4179. @click="
  4180. openTools(itemTaskIndex, 45, toolIndex)
  4181. "
  4182. >
  4183. <img
  4184. src="../../../assets/icon/thirdToolList/choose.png"
  4185. alt
  4186. />
  4187. <div style="margin: 5px 0">选择题</div>
  4188. </div>
  4189. <div
  4190. class="check"
  4191. @click="
  4192. addTools(45, itemTaskIndex, toolIndex)
  4193. "
  4194. >
  4195. <img
  4196. src="../../../assets/icon/checkNo.png"
  4197. alt
  4198. v-if="itemTool.tool.indexOf(45) == -1"
  4199. />
  4200. <div class="checkDiv" v-else>
  4201. <img
  4202. src="../../../assets/icon/checkedIs.png"
  4203. alt
  4204. /><span>已选择</span>
  4205. </div>
  4206. </div>
  4207. </div>
  4208. <div class="tool">
  4209. <div
  4210. class="whiteBIcon"
  4211. @click="
  4212. openTools(itemTaskIndex, 15, toolIndex)
  4213. "
  4214. >
  4215. <img
  4216. src="../../../assets/icon/thirdToolList/answer.png"
  4217. alt
  4218. />
  4219. <div style="margin: 5px 0">问答</div>
  4220. </div>
  4221. <div
  4222. class="check"
  4223. @click="
  4224. addTools(15, itemTaskIndex, toolIndex)
  4225. "
  4226. >
  4227. <img
  4228. src="../../../assets/icon/checkNo.png"
  4229. alt
  4230. v-if="itemTool.tool.indexOf(15) == -1"
  4231. />
  4232. <div class="checkDiv" v-else>
  4233. <img
  4234. src="../../../assets/icon/checkedIs.png"
  4235. alt
  4236. /><span>已选择</span>
  4237. </div>
  4238. </div>
  4239. </div>
  4240. <div class="tool">
  4241. <div
  4242. class="whiteBIcon"
  4243. @click="
  4244. addTools(16, itemTaskIndex, toolIndex)
  4245. "
  4246. >
  4247. <img
  4248. src="../../../assets/icon/thirdToolList/work.png"
  4249. alt
  4250. />
  4251. <div style="margin: 5px 0">作业提交</div>
  4252. </div>
  4253. <div
  4254. class="check"
  4255. @click="
  4256. addTools(16, itemTaskIndex, toolIndex)
  4257. "
  4258. >
  4259. <img
  4260. src="../../../assets/icon/checkNo.png"
  4261. alt
  4262. v-if="itemTool.tool.indexOf(16) == -1"
  4263. />
  4264. <div class="checkDiv" v-else>
  4265. <img
  4266. src="../../../assets/icon/checkedIs.png"
  4267. alt
  4268. /><span>已选择</span>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div class="tool">
  4273. <div
  4274. class="whiteBIcon"
  4275. @click="
  4276. openTools(itemTaskIndex, 50, toolIndex)
  4277. "
  4278. >
  4279. <img
  4280. src="../../../assets/icon/thirdToolList/plwork.png"
  4281. alt
  4282. />
  4283. <div style="margin: 5px 0">批量上传</div>
  4284. </div>
  4285. <div
  4286. class="check"
  4287. @click="
  4288. addTools(50, itemTaskIndex, toolIndex)
  4289. "
  4290. >
  4291. <img
  4292. src="../../../assets/icon/checkNo.png"
  4293. alt
  4294. v-if="itemTool.tool.indexOf(50) == -1"
  4295. />
  4296. <div class="checkDiv" v-else>
  4297. <img
  4298. src="../../../assets/icon/checkedIs.png"
  4299. alt
  4300. /><span>已选择</span>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. <div class="tool">
  4305. <div
  4306. class="whiteBIcon"
  4307. @click="
  4308. openTools(itemTaskIndex, 41, toolIndex)
  4309. "
  4310. >
  4311. <img
  4312. src="../../../assets/icon/thirdToolList/select.png"
  4313. alt
  4314. />
  4315. <div style="margin: 5px 0">选择匹配</div>
  4316. </div>
  4317. <div
  4318. class="check"
  4319. @click="
  4320. addTools(41, itemTaskIndex, toolIndex)
  4321. "
  4322. >
  4323. <img
  4324. src="../../../assets/icon/checkNo.png"
  4325. alt
  4326. v-if="itemTool.tool.indexOf(41) == -1"
  4327. />
  4328. <div class="checkDiv" v-else>
  4329. <img
  4330. src="../../../assets/icon/checkedIs.png"
  4331. alt
  4332. /><span>已选择</span>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. <div class="tool">
  4337. <div
  4338. class="whiteBIcon"
  4339. @click="
  4340. openTools(itemTaskIndex, 47, toolIndex)
  4341. "
  4342. >
  4343. <img
  4344. src="../../../assets/icon/fourthToolList/conSentences.png"
  4345. alt
  4346. />
  4347. <div style="margin: 5px 0">排序</div>
  4348. </div>
  4349. <div
  4350. class="check"
  4351. @click="
  4352. addTools(47, itemTaskIndex, toolIndex)
  4353. "
  4354. >
  4355. <img
  4356. src="../../../assets/icon/checkNo.png"
  4357. alt
  4358. v-if="itemTool.tool.indexOf(47) == -1"
  4359. />
  4360. <div class="checkDiv" v-else>
  4361. <img
  4362. src="../../../assets/icon/checkedIs.png"
  4363. alt
  4364. /><span>已选择</span>
  4365. </div>
  4366. </div>
  4367. </div>
  4368. <div class="tool">
  4369. <div
  4370. class="whiteBIcon"
  4371. @click="
  4372. openTools(itemTaskIndex, 48, toolIndex)
  4373. "
  4374. >
  4375. <img
  4376. src="../../../assets/icon/fourthToolList/table.png"
  4377. alt
  4378. />
  4379. <div style="margin: 5px 0">表格</div>
  4380. </div>
  4381. <div
  4382. class="check"
  4383. @click="
  4384. addTools(48, itemTaskIndex, toolIndex)
  4385. "
  4386. >
  4387. <img
  4388. src="../../../assets/icon/checkNo.png"
  4389. alt
  4390. v-if="itemTool.tool.indexOf(48) == -1"
  4391. />
  4392. <div class="checkDiv" v-else>
  4393. <img
  4394. src="../../../assets/icon/checkedIs.png"
  4395. alt
  4396. /><span>已选择</span>
  4397. </div>
  4398. </div>
  4399. </div>
  4400. </div>
  4401. </div>
  4402. </div>
  4403. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  4404. <div class="addToolImg">
  4405. <img src="../../../assets/icon/add.png" alt />
  4406. </div>
  4407. <div>添加工具</div>
  4408. </div> -->
  4409. <button
  4410. class="c_pub_button_add pub_btn_tool_img"
  4411. @click="addToolFun(itemTaskIndex)"
  4412. style="margin: 35px auto 20px"
  4413. >
  4414. 添加工具
  4415. </button>
  4416. </div>
  4417. </div>
  4418. <div
  4419. v-else-if="
  4420. unitJson[unitIndex].easy == 1 ||
  4421. (unitJson[unitIndex].easy == 5 &&
  4422. itemTask.taskType == 2)
  4423. "
  4424. class="toolChoose"
  4425. style="padding: 0 0 40px"
  4426. >
  4427. <div class="tools">
  4428. <div
  4429. class="leftTools"
  4430. style="width: 100%; padding: 0 0 15px 0"
  4431. v-for="(
  4432. itemTool, toolIndex
  4433. ) in itemTask.toolChoose"
  4434. :key="toolIndex"
  4435. >
  4436. <div style="min-height: 163px">
  4437. <div class="toolSort">
  4438. <div class="tool">
  4439. <div
  4440. class="whiteBIcon"
  4441. @click="
  4442. openTools(itemTaskIndex, 50, toolIndex)
  4443. "
  4444. >
  4445. <img
  4446. src="../../../assets/icon/thirdToolList/plwork.png"
  4447. alt
  4448. />
  4449. <div style="margin: 5px 0">批量上传</div>
  4450. </div>
  4451. <div
  4452. class="check"
  4453. @click="
  4454. addTools(50, itemTaskIndex, toolIndex)
  4455. "
  4456. >
  4457. <img
  4458. src="../../../assets/icon/checkNo.png"
  4459. alt
  4460. v-if="itemTool.tool.indexOf(50) == -1"
  4461. />
  4462. <div class="checkDiv" v-else>
  4463. <img
  4464. src="../../../assets/icon/checkedIs.png"
  4465. alt
  4466. /><span>已选择</span>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. </div>
  4471. </div>
  4472. </div>
  4473. </div>
  4474. </div>
  4475. <div
  4476. class="elist_css"
  4477. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  4478. >
  4479. <div class="elist_title">
  4480. <div
  4481. style="
  4482. display: flex;
  4483. flex-direction: row;
  4484. align-items: center;
  4485. margin: 20px 0;
  4486. "
  4487. >
  4488. <div class="lineTitle clineTitle">评价设置</div>
  4489. <!-- <div class="line" style="width: 90%"></div> -->
  4490. </div>
  4491. </div>
  4492. <div class="mbCss">
  4493. <div
  4494. class="pjCss"
  4495. :style="{
  4496. width: itemTask.isEvaFold
  4497. ? 'calc(100% - 55%)'
  4498. : 'calc(100% - 120px)',
  4499. }"
  4500. >
  4501. <div
  4502. v-if="itemTask.eList && itemTask.eList.length"
  4503. class="elist_input"
  4504. >
  4505. <div
  4506. v-for="(eItem, eIndex) in itemTask.eList"
  4507. :key="eIndex"
  4508. class="elist_input_box"
  4509. >
  4510. <span>评价维度:</span>
  4511. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价维度'" placement="top" popper-class="text_tooltip2"> -->
  4512. <input
  4513. type="input"
  4514. v-model="itemTask.eList[eIndex].value"
  4515. placeholder="填写评价维度"
  4516. />
  4517. <!-- </el-tooltip> -->
  4518. <!-- <span>评星等级:</span>
  4519. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  4520. disabled></el-rate> -->
  4521. <div
  4522. class="remove"
  4523. @click="
  4524. deletEList(
  4525. unitIndex,
  4526. itemTaskIndex,
  4527. eIndex
  4528. )
  4529. "
  4530. ></div>
  4531. <div class="elist_inptu_text">
  4532. <span>维度描述:</span>
  4533. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写维度描述'" placement="top" popper-class="text_tooltip2"> -->
  4534. <input
  4535. type="input"
  4536. v-model="itemTask.eList[eIndex].detail"
  4537. placeholder="填写维度描述"
  4538. />
  4539. <!-- </el-tooltip> -->
  4540. </div>
  4541. <div class="elist_inptu_text" v-if="evalua">
  4542. <span>目标:</span>
  4543. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写维度描述" /> -->
  4544. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  4545. @change="forceUpdate()">
  4546. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  4547. :value="e.name">
  4548. </el-option>
  4549. </el-select> -->
  4550. <el-cascader
  4551. :options="targetArray"
  4552. v-model="itemTask.eList[eIndex].target"
  4553. :props="{ checkStrictly: true }"
  4554. :show-all-levels="false"
  4555. clearable
  4556. ></el-cascader>
  4557. </div>
  4558. </div>
  4559. </div>
  4560. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  4561. style="margin: 35px 35px 0 0">
  4562. <div class="addToolImg">
  4563. <img src="../../../assets/icon/add.png" alt />
  4564. </div>
  4565. <div>添加</div>
  4566. </div> -->
  4567. <div class="eva_btn_box">
  4568. <div class="eva_btn_left_box">
  4569. <button
  4570. class="c_pub_button_add pub_btn_eval_img"
  4571. @click="addEList(unitIndex, itemTaskIndex)"
  4572. >
  4573. 添加
  4574. </button>
  4575. <button
  4576. class="c_pub_button_add pub_btn_eval_source_img"
  4577. @click="openEList(unitIndex, itemTaskIndex)"
  4578. >
  4579. 资源
  4580. </button>
  4581. </div>
  4582. <button
  4583. class="c_pub_button_add"
  4584. @click="addCET(unitIndex, itemTaskIndex)"
  4585. v-if="itemTask.eList && itemTask.eList.length"
  4586. >
  4587. 添加资源模板
  4588. </button>
  4589. </div>
  4590. </div>
  4591. <div
  4592. v-if="evalua"
  4593. style="
  4594. border: 1px solid #e5e5e5;
  4595. box-shadow: 3px 1px 15px 3px #e0e0e0;
  4596. "
  4597. :style="{
  4598. width: itemTask.isEvaFold ? '55%' : '116px',
  4599. }"
  4600. class="evaCss"
  4601. >
  4602. <!-- <div class="e_add_top">
  4603. <div class="e_add_title">
  4604. <span>当前使用目标管理</span>
  4605. <span>{{ eTitle }}</span>
  4606. <img src="../../../assets/line.png" class="cru_line" style="
  4607. width: 125px;
  4608. height: 20px;
  4609. bottom: -10px;
  4610. left: 155px;
  4611. " />
  4612. </div>
  4613. </div> -->
  4614. <div class="e_add_content" style="width: 100%">
  4615. <div
  4616. class="e_add_list_pbox"
  4617. style="width: 100%"
  4618. >
  4619. <div class="e_add_list_pbox_title">
  4620. <span
  4621. class="type_title"
  4622. v-if="itemTask.isEvaFold"
  4623. >切换模式</span
  4624. >
  4625. <div
  4626. class="type_content"
  4627. v-if="itemTask.isEvaFold"
  4628. >
  4629. <span
  4630. :class="{ active: typeMode == 1 }"
  4631. @click="OtherMb(1, itemTaskIndex)"
  4632. >目标树</span
  4633. >
  4634. <span
  4635. :class="{ active: typeMode == 2 }"
  4636. @click="OtherMb(2, itemTaskIndex)"
  4637. >目标罗盘</span
  4638. >
  4639. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  4640. </div>
  4641. <div
  4642. v-if="itemTask.isEvaFold"
  4643. class="show_taskD show"
  4644. style="margin: 0 0 0 auto"
  4645. @click="foldEva(itemTaskIndex)"
  4646. >
  4647. <img
  4648. src="../../../assets/icon/new/icon-slide.png"
  4649. />收起目标
  4650. </div>
  4651. <div
  4652. v-else
  4653. style="margin: 0 0 0 auto"
  4654. class="show_taskD"
  4655. @click="foldEva(itemTaskIndex)"
  4656. >
  4657. <img
  4658. src="../../../assets/icon/new/icon-slide.png"
  4659. />展开目标
  4660. </div>
  4661. </div>
  4662. <div
  4663. class="e_add_list_pbox_content"
  4664. v-if="itemTask.isEvaFold"
  4665. style="min-height: 200px"
  4666. >
  4667. <Mind
  4668. :showBar="false"
  4669. :mindData="data"
  4670. style="width: 100%"
  4671. :jsmindId="
  4672. unitIndex + '-' + itemTaskIndex + 'mind'
  4673. "
  4674. v-if="typeMode == 1"
  4675. ></Mind>
  4676. <Sunburst
  4677. :Josn="eJson"
  4678. :num="eJSONNum"
  4679. style="width: 100%"
  4680. v-if="typeMode == 2"
  4681. >
  4682. </Sunburst>
  4683. <SeeBoard
  4684. :Josn="eJson"
  4685. :num="eJSONNum"
  4686. :ename="eTitle"
  4687. style="width: 100%"
  4688. v-if="typeMode == 3"
  4689. ></SeeBoard>
  4690. </div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. </div>
  4696. <div class="funBlock" style="padding: 0">
  4697. <div
  4698. class="fold"
  4699. @click="fold(itemTaskIndex, $event)"
  4700. >
  4701. <div
  4702. class="arrow"
  4703. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  4704. ></div>
  4705. <div>
  4706. {{
  4707. itemTask.isFold === 1 ? "展开任务" : "收起任务"
  4708. }}
  4709. </div>
  4710. </div>
  4711. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  4712. <div>展开</div>
  4713. <div class="arrow">
  4714. <img src="../../../assets/icon/expand.png" alt />
  4715. </div>
  4716. </div> -->
  4717. </div>
  4718. </div>
  4719. </div>
  4720. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  4721. <!-- <div>
  4722. <img src="../../../../assets/icon/new/addStage.png" alt />
  4723. <span>添加任务</span>
  4724. </div> -->
  4725. <button
  4726. class="c_pub_button_confirm pub_btn_add_task_img"
  4727. @click="addTaskBorder"
  4728. >
  4729. 添加任务
  4730. </button>
  4731. </div>
  4732. </div>
  4733. <!-- <div class="info_btnBox3">
  4734. <button
  4735. class="c_pub_button_return pub_btn_return_img"
  4736. v-if="steps == 1"
  4737. @click="
  4738. goTo(
  4739. '/course?userid=' +
  4740. userid +
  4741. '&oid=' +
  4742. oid +
  4743. '&org=' +
  4744. org +
  4745. '&role=' +
  4746. role
  4747. )
  4748. "
  4749. >
  4750. 返回课程
  4751. </button>
  4752. <button
  4753. class="c_pub_button_return pub_btn_last_img"
  4754. v-if="steps > 1 && steps != 5"
  4755. @click="lastSteps"
  4756. style="background: #dbdbdb"
  4757. >
  4758. {{ steps == 4 ? "返回课程" : "上一步" }}
  4759. </button>
  4760. <button
  4761. class="c_pub_button_confirm"
  4762. v-if="steps < 4"
  4763. @click="nextSteps"
  4764. :class="{
  4765. pub_btn_next_img: steps != 3,
  4766. pub_btn_finish_img: steps == 3,
  4767. }"
  4768. >
  4769. {{ steps == 3 ? "确认上传" : "下一步" }}
  4770. </button>
  4771. </div> -->
  4772. </div>
  4773. </div>
  4774. </div>
  4775. <div class="info_btnBox3">
  4776. <button
  4777. class="c_pub_button_return pub_btn_return_img"
  4778. v-if="steps == 1"
  4779. @click="
  4780. goTo(
  4781. '/course?userid=' +
  4782. userid +
  4783. '&oid=' +
  4784. oid +
  4785. '&org=' +
  4786. org +
  4787. '&role=' +
  4788. role
  4789. )
  4790. "
  4791. >
  4792. 返回课程
  4793. </button>
  4794. <button
  4795. class="c_pub_button_return pub_btn_last_img"
  4796. v-if="steps > 1 && steps != 5"
  4797. @click="lastSteps"
  4798. >
  4799. {{ steps == 4 ? "返回课程" : "上一步" }}
  4800. </button>
  4801. <button
  4802. class="c_pub_button_confirm"
  4803. v-if="steps < 4"
  4804. @click="nextSteps"
  4805. :class="{
  4806. pub_btn_next_img: steps != 3,
  4807. pub_btn_finish_img: steps == 3,
  4808. }"
  4809. >
  4810. {{ "确认上传" }}
  4811. </button>
  4812. </div>
  4813. </div>
  4814. <div
  4815. class="rightBox"
  4816. v-if="steps == 2"
  4817. :style="{
  4818. height:
  4819. !isStepDisplay && !isBtnDisplay
  4820. ? 'calc(100% - 40px)'
  4821. : 'calc(100% - 100px)',
  4822. }"
  4823. >
  4824. <div
  4825. class="basic_box"
  4826. style="
  4827. padding: 20px 30px 0px !important;
  4828. box-sizing: border-box;
  4829. height: calc(100% - 80px);
  4830. overflow: auto;
  4831. background: #fff;
  4832. "
  4833. >
  4834. <!-- <div
  4835. style="
  4836. color: #b8b8b8;
  4837. background: #fff;
  4838. width: 26%;
  4839. height: 40px;
  4840. border-radius: 15px;
  4841. padding-left: 20px;
  4842. line-height: 40px;
  4843. font-size: 17px;
  4844. box-shadow: 0px 1px 2px 2px #e0e0e0;
  4845. "
  4846. >-->
  4847. <div
  4848. class="right_title"
  4849. style="border: none; margin: 0; padding: 0"
  4850. >
  4851. 请选择合适的课程模板
  4852. </div>
  4853. <div class="wordbox">
  4854. <div class="wordTeacher" @click="checkTemplate2()">
  4855. <div class="wordPic">
  4856. <img src="../../../assets/icon/new/template_none.png" alt />
  4857. </div>
  4858. <div
  4859. style="
  4860. margin-top: 10px;
  4861. line-height: 19px;
  4862. overflow: hidden;
  4863. text-overflow: ellipsis;
  4864. white-space: nowrap;
  4865. padding: 0 20px;
  4866. "
  4867. >
  4868. 空白模板
  4869. </div>
  4870. </div>
  4871. <div
  4872. class="wordTeacher"
  4873. v-for="(aa, indexF) in templateArray"
  4874. :key="indexF"
  4875. @click="checkTemplate(aa)"
  4876. >
  4877. <div class="wordPic">
  4878. <img src="../../../assets/icon/new/template.png" alt />
  4879. </div>
  4880. <div
  4881. style="
  4882. margin-top: 10px;
  4883. line-height: 19px;
  4884. overflow: hidden;
  4885. text-overflow: ellipsis;
  4886. white-space: nowrap;
  4887. padding: 0 20px;
  4888. "
  4889. >
  4890. {{ aa.title }}
  4891. </div>
  4892. </div>
  4893. <div
  4894. class="wordTeacher"
  4895. @click="checkTemplate3()"
  4896. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  4897. >
  4898. <div class="wordPic">
  4899. <img src="../../../assets/icon/new/template.png" alt />
  4900. </div>
  4901. <div
  4902. style="
  4903. margin-top: 10px;
  4904. line-height: 19px;
  4905. overflow: hidden;
  4906. text-overflow: ellipsis;
  4907. white-space: nowrap;
  4908. padding: 0 20px;
  4909. "
  4910. >
  4911. 简易模板
  4912. </div>
  4913. </div>
  4914. <div
  4915. class="wordTeacher"
  4916. @click="pasteStage()"
  4917. v-if="isPasteStage"
  4918. >
  4919. <div class="wordPic">
  4920. <img src="../../../assets/icon/new/template.png" alt />
  4921. </div>
  4922. <div
  4923. style="
  4924. margin-top: 10px;
  4925. line-height: 19px;
  4926. overflow: hidden;
  4927. text-overflow: ellipsis;
  4928. white-space: nowrap;
  4929. padding: 0 20px;
  4930. "
  4931. >
  4932. 智能粘贴模式
  4933. </div>
  4934. </div>
  4935. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  4936. <div class="wordPic">
  4937. <img src="../../../assets/icon/wordMub.png" alt />
  4938. </div>
  4939. <div style="
  4940. margin-top: 10px;
  4941. line-height: 19px;
  4942. overflow: hidden;
  4943. text-overflow: ellipsis;
  4944. white-space: nowrap;
  4945. padding: 0 20px;
  4946. ">
  4947. 未来小学课程设计
  4948. </div>
  4949. </div> -->
  4950. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  4951. <div class="wordPic">
  4952. <img src="../../../assets/icon/wordMub.png" alt />
  4953. </div>
  4954. <div style="
  4955. margin-top: 10px;
  4956. line-height: 19px;
  4957. overflow: hidden;
  4958. text-overflow: ellipsis;
  4959. white-space: nowrap;
  4960. padding: 0 20px;
  4961. ">
  4962. 我的课程
  4963. </div>
  4964. </div> -->
  4965. </div>
  4966. </div>
  4967. <div class="info_btnBox3" style="position: absolute; bottom: 0">
  4968. <button
  4969. class="c_pub_button_return pub_btn_return_img"
  4970. v-if="steps == 1"
  4971. @click="
  4972. goTo(
  4973. '/course?userid=' +
  4974. userid +
  4975. '&oid=' +
  4976. oid +
  4977. '&org=' +
  4978. org +
  4979. '&role=' +
  4980. role
  4981. )
  4982. "
  4983. >
  4984. 返回课程
  4985. </button>
  4986. <button
  4987. class="c_pub_button_return pub_btn_last_img"
  4988. v-if="steps > 1 && steps != 5"
  4989. @click="lastSteps"
  4990. >
  4991. {{ steps == 4 ? "返回课程" : "上一步" }}
  4992. </button>
  4993. <button
  4994. class="c_pub_button_confirm"
  4995. v-if="steps < 4"
  4996. @click="nextSteps"
  4997. :class="{
  4998. pub_btn_next_img: steps != 3,
  4999. pub_btn_finish_img: steps == 3,
  5000. }"
  5001. >
  5002. {{ steps == 3 ? "确认上传" : "下一步" }}
  5003. </button>
  5004. </div>
  5005. </div>
  5006. <div
  5007. style="
  5008. width: calc(100% - 20px);
  5009. background: rgb(255, 255, 255);
  5010. border-radius: 10px;
  5011. "
  5012. v-if="steps == 4"
  5013. >
  5014. <div class="basic_box_success">
  5015. <div class="right_img">
  5016. <img src="../../../assets/icon/right.png" alt />
  5017. </div>
  5018. <div style="font-weight: bold">成功</div>
  5019. <!-- <div>您的课程编号</div>
  5020. <div class="number">{{ number }}</div>-->
  5021. <!-- <div class="success_button">
  5022. <div class="look_course" @click="isNoFinsh">
  5023. 邀请老师协同编辑
  5024. </div>
  5025. <div class="attend_others" @click="goCourse">预览课程</div>
  5026. </div> -->
  5027. </div>
  5028. </div>
  5029. <div
  5030. :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }"
  5031. @mouseenter="btnDisplay(true)"
  5032. @mouseleave="btnDisplay(false)"
  5033. v-if="false"
  5034. >
  5035. <button
  5036. class="c_pub_button_return pub_btn_return_img"
  5037. v-if="steps == 1 && isBtnDisplay"
  5038. @click="
  5039. goTo(
  5040. '/course?userid=' +
  5041. userid +
  5042. '&oid=' +
  5043. oid +
  5044. '&org=' +
  5045. org +
  5046. '&role=' +
  5047. role
  5048. )
  5049. "
  5050. >
  5051. 返回课程
  5052. </button>
  5053. <button
  5054. class="c_pub_button_return pub_btn_last_img"
  5055. v-if="steps > 1 && steps != 5 && isBtnDisplay"
  5056. @click="lastSteps"
  5057. >
  5058. {{ steps == 4 ? "返回课程" : "上一步" }}
  5059. </button>
  5060. <button
  5061. class="c_pub_button_confirm"
  5062. v-if="steps < 4 && isBtnDisplay"
  5063. @click="nextSteps"
  5064. :class="{
  5065. pub_btn_next_img: steps != 3,
  5066. pub_btn_finish_img: steps == 3,
  5067. }"
  5068. >
  5069. {{ "确认上传" }}
  5070. </button>
  5071. </div>
  5072. </div>
  5073. </div>
  5074. </div>
  5075. <el-dialog
  5076. title="提示"
  5077. :visible.sync="dialogVisible"
  5078. :append-to-body="true"
  5079. width="25%"
  5080. :before-close="handleClose"
  5081. class="dialog_diy2 customWidth"
  5082. >
  5083. <div>请复制该链接邀请协同编辑</div>
  5084. <div>http://www.boomyon.com/index-zhang.com</div>
  5085. <span slot="footer" class="dialog-footer">
  5086. <el-button type="primary">复制链接分享</el-button>
  5087. <el-button @click="dialogVisible = false">取消</el-button>
  5088. </span>
  5089. </el-dialog>
  5090. <el-dialog
  5091. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5092. :visible.sync="dialogVisible1"
  5093. :append-to-body="true"
  5094. width="25%"
  5095. :before-close="handleClose"
  5096. class="dialog_diy2 customWidth"
  5097. >
  5098. <el-form>
  5099. <el-form-item label="文档标题">
  5100. <el-input
  5101. v-model="tTitle"
  5102. auto-complete="off"
  5103. placeholder="请输入文档标题名..."
  5104. ></el-input>
  5105. </el-form-item>
  5106. <div>文档简介</div>
  5107. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5108. </el-form>
  5109. <span slot="footer" class="dialog-footer">
  5110. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5111. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5112. >添加</el-button
  5113. >
  5114. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5115. </span>
  5116. </el-dialog>
  5117. <el-dialog
  5118. title="添加文档"
  5119. :visible.sync="dialogVisible2"
  5120. :append-to-body="true"
  5121. width="500px"
  5122. :before-close="handleClose"
  5123. class="dialog_diy"
  5124. >
  5125. <el-form>
  5126. <el-form-item label="文档标题">
  5127. <el-input
  5128. v-model="templateC.title"
  5129. auto-complete="off"
  5130. placeholder="请输入文档标题名..."
  5131. ></el-input>
  5132. </el-form-item>
  5133. <div>文档内容</div>
  5134. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5135. </el-form>
  5136. <span slot="footer" class="dialog-footer">
  5137. <el-button @click="clearChoose">取 消</el-button>
  5138. <el-button type="primary" @click="wordNext()">确定</el-button>
  5139. </span>
  5140. </el-dialog>
  5141. <el-dialog
  5142. title="添加富文本"
  5143. :visible.sync="dialogVisible6"
  5144. :append-to-body="true"
  5145. width="500px"
  5146. :before-close="handleClose"
  5147. class="dialog_diy"
  5148. >
  5149. <el-form>
  5150. <el-form-item label="文本标题">
  5151. <el-input
  5152. ref="fuInput"
  5153. v-model="AttText.title"
  5154. auto-complete="off"
  5155. @input="change2"
  5156. placeholder="请输入文本标题..."
  5157. ></el-input>
  5158. </el-form-item>
  5159. <!-- <div>富文本内容</div> -->
  5160. <editor-bar
  5161. v-model="AttText.text"
  5162. @change="change"
  5163. v-if="dialogVisible6"
  5164. ></editor-bar>
  5165. </el-form>
  5166. <span slot="footer" class="dialog-footer">
  5167. <el-button @click="clearAttText">取 消</el-button>
  5168. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5169. </span>
  5170. </el-dialog>
  5171. <el-dialog
  5172. title="添加链接"
  5173. :visible.sync="dialogVisible7"
  5174. :append-to-body="true"
  5175. width="500px"
  5176. :before-close="handleClose"
  5177. class="dialog_diy lineCss"
  5178. >
  5179. <el-form>
  5180. <el-form-item label="标题" :label-width="formLabelWidth">
  5181. <span>
  5182. <el-input
  5183. placeholder="请输入链接标题"
  5184. clearable
  5185. v-model="lineTitle"
  5186. class="add_input"
  5187. ></el-input>
  5188. </span>
  5189. </el-form-item>
  5190. <el-form-item label="链接" :label-width="formLabelWidth">
  5191. <span>
  5192. <el-input
  5193. placeholder="请输入链接"
  5194. clearable
  5195. v-model="line"
  5196. class="add_input"
  5197. ></el-input>
  5198. </span>
  5199. </el-form-item>
  5200. </el-form>
  5201. <span slot="footer" class="dialog-footer">
  5202. <el-button @click="clearLine">取 消</el-button>
  5203. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5204. </span>
  5205. </el-dialog>
  5206. <el-dialog
  5207. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5208. :visible.sync="dialogVisibleSource"
  5209. :append-to-body="true"
  5210. width="100%"
  5211. :before-close="handleClose"
  5212. class="dialog_diy source_diy"
  5213. >
  5214. <div>
  5215. <sourceDialog
  5216. :sourceData.sync="sourceData"
  5217. :updateSourcePan="updateSourcePan"
  5218. ></sourceDialog>
  5219. </div>
  5220. <span slot="footer" class="dialog-footer">
  5221. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5222. <el-button type="primary" @click="addSource" v-if="!updateSourcePan"
  5223. >确定</el-button
  5224. >
  5225. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5226. </span>
  5227. </el-dialog>
  5228. <el-dialog
  5229. title="添加课程成员"
  5230. :visible.sync="dialogVisible3"
  5231. :append-to-body="true"
  5232. width="25%"
  5233. height="80%"
  5234. :before-close="handleClose"
  5235. class="addNewPP customWidth"
  5236. >
  5237. <div class="people">
  5238. <div class="people_top">
  5239. <div class="people_nav">选择成员</div>
  5240. <div class="people_top_right">
  5241. <div class="people_search">
  5242. <el-input
  5243. style="height: 100%"
  5244. placeholder="搜索成员名称"
  5245. v-model="searchPeople"
  5246. ></el-input>
  5247. <div class="search_img" @click="searchStudent">
  5248. <img src="../../../assets/icon/search.png" alt />
  5249. </div>
  5250. </div>
  5251. </div>
  5252. </div>
  5253. <el-checkbox-group v-model="checkboxList" class="people_name">
  5254. <el-checkbox
  5255. v-for="item in studentJuri"
  5256. :key="item.userid"
  5257. :label="item.userid"
  5258. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5259. >
  5260. </el-checkbox-group>
  5261. </div>
  5262. <span slot="footer" class="dialog-footer">
  5263. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5264. <el-button type="primary" @click="isAddPP">确定</el-button>
  5265. </span>
  5266. </el-dialog>
  5267. <el-dialog
  5268. title="选择授课班级"
  5269. :visible.sync="dialogVisibleClass"
  5270. :append-to-body="true"
  5271. width="600px"
  5272. height="80%"
  5273. :before-close="handleClose"
  5274. class="addNewPP2"
  5275. >
  5276. <div class="check_classBox">
  5277. <div class="check_class_right">
  5278. <div
  5279. class="check_class"
  5280. :class="{ activeX: gradeId == '' }"
  5281. @click="(gradeId = ''), getClass()"
  5282. >
  5283. 全部
  5284. </div>
  5285. <el-tooltip
  5286. placement="top"
  5287. :content="item.name"
  5288. v-for="(item, index) in gradeList"
  5289. :key="index"
  5290. >
  5291. <div
  5292. class="check_class"
  5293. :class="{ activeX: gradeId == item.id }"
  5294. @click="(gradeId = item.id), getClass()"
  5295. >
  5296. {{ item.name }}
  5297. </div>
  5298. </el-tooltip>
  5299. </div>
  5300. <div class="check_class_left">
  5301. <div class="check_class_all_box">
  5302. <div class="check_class_left_title">选择班级</div>
  5303. <div style="display: flex; align-items: center; margin-left: auto">
  5304. <el-checkbox
  5305. v-model="checkAll"
  5306. @change="handleCheckAllChange"
  5307. class="all_check"
  5308. >全选</el-checkbox
  5309. >
  5310. </div>
  5311. </div>
  5312. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  5313. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  5314. </div> -->
  5315. <el-checkbox-group
  5316. v-model="checkboxList2"
  5317. class="check_class_item"
  5318. @change="InviteChange"
  5319. v-if="grade2.length"
  5320. >
  5321. <div v-for="item in grade2" :key="item.id" class="class_item">
  5322. <el-checkbox :label="item.id">
  5323. {{ item.name }}
  5324. </el-checkbox>
  5325. </div>
  5326. </el-checkbox-group>
  5327. <div v-if="!grade2.length">暂无数据</div>
  5328. </div>
  5329. </div>
  5330. <span slot="footer" class="dialog-footer">
  5331. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5332. <el-button type="primary" @click="isAddClass">确定</el-button>
  5333. </span>
  5334. </el-dialog>
  5335. <el-dialog
  5336. title="添加协同成员"
  5337. :visible.sync="dialogVisibleMember"
  5338. :append-to-body="true"
  5339. width="25%"
  5340. height="80%"
  5341. :before-close="handleClose"
  5342. class="addNewPP customWidth"
  5343. >
  5344. <div class="people">
  5345. <div class="people_top">
  5346. <div class="people_top_right">
  5347. <div class="people_search">
  5348. <el-input
  5349. placeholder="搜索成员名称"
  5350. v-model="searchTN"
  5351. @keyup.enter.native="getTeacher"
  5352. ></el-input>
  5353. <div class="search_img" @click="getTeacher">
  5354. <img src="../../../assets/icon/search.png" alt />
  5355. </div>
  5356. </div>
  5357. </div>
  5358. <div class="people_nav" style="display: flex; align-items: center">
  5359. <div class="check_class_left_title">选择成员</div>
  5360. <div style="display: flex; align-items: center; margin-left: auto">
  5361. <el-checkbox
  5362. v-model="checkAll2"
  5363. @change="handleCheckAllChange2"
  5364. class="all_check"
  5365. >全选</el-checkbox
  5366. >
  5367. </div>
  5368. </div>
  5369. </div>
  5370. <el-checkbox-group
  5371. v-model="checkboxList3"
  5372. class="people_name"
  5373. v-if="teacherJuri.length"
  5374. @change="InviteChange2"
  5375. >
  5376. <el-checkbox
  5377. v-for="item in teacherJuri"
  5378. :key="item.userid"
  5379. :label="item.userid"
  5380. >
  5381. <div class="t_j_box">
  5382. <el-tooltip
  5383. placement="top"
  5384. :content="item.name ? item.name : '暂无姓名'"
  5385. >
  5386. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5387. </el-tooltip>
  5388. <el-tooltip placement="top" :content="item.username.split('@')[0]">
  5389. <span>{{ item.username.split('@')[0] }}</span>
  5390. </el-tooltip>
  5391. <el-tooltip placement="top" :content="item.school">
  5392. <span>{{ item.school }}</span>
  5393. </el-tooltip>
  5394. </div>
  5395. </el-checkbox>
  5396. </el-checkbox-group>
  5397. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5398. </div>
  5399. <span slot="footer" class="dialog-footer">
  5400. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5401. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5402. </span>
  5403. </el-dialog>
  5404. <el-dialog
  5405. title="创建问卷"
  5406. :visible.sync="dialogVisible5"
  5407. :append-to-body="true"
  5408. width="800px"
  5409. :before-close="
  5410. (done) => {
  5411. closePan(4);
  5412. }
  5413. "
  5414. class="dialog_diy fullStyle"
  5415. >
  5416. <div style="height: 100%">
  5417. <div
  5418. class="a_add_title"
  5419. style="
  5420. display: flex;
  5421. flex-direction: row;
  5422. align-items: center;
  5423. justify-content: center;
  5424. "
  5425. >
  5426. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5427. <el-input
  5428. v-model="askJson.askTitle"
  5429. placeholder="请输入标题"
  5430. style="width: 400px"
  5431. ></el-input>
  5432. </div>
  5433. <div class="a_addBox" style="height: calc(100% - 50px)">
  5434. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5435. <div
  5436. class="a_add_box"
  5437. v-for="(item1, index1) in askJson.askCount"
  5438. :key="index1"
  5439. >
  5440. <div class="a_add_checkType">
  5441. <span
  5442. :class="{
  5443. active:
  5444. askJson.askJson[index1].type == '1' ||
  5445. !askJson.askJson[index1].type,
  5446. }"
  5447. @click="checkAskType('1', askJson.askJson[index1])"
  5448. >单选题</span
  5449. >
  5450. <span
  5451. :class="{ active: askJson.askJson[index1].type == '2' }"
  5452. @click="checkAskType('2', askJson.askJson[index1])"
  5453. >多选题</span
  5454. >
  5455. </div>
  5456. <div class="a_add_head">
  5457. <div
  5458. style="
  5459. display: flex;
  5460. align-items: center;
  5461. width: 100%;
  5462. margin-right: 20px;
  5463. "
  5464. >
  5465. <span style="min-width: fit-content">{{
  5466. index1 + 1 + "、"
  5467. }}</span>
  5468. <textarea
  5469. class="a_add_head_input textarea_css"
  5470. v-autoHeight="40"
  5471. v-model="askJson.askJson[index1].askstitle"
  5472. placeholder="请输入题目"
  5473. @change="
  5474. () => {
  5475. $forceUpdate();
  5476. }
  5477. "
  5478. ></textarea>
  5479. </div>
  5480. <div
  5481. class="moveBtn moveBtn2"
  5482. style="margin: 0 20px 0 0px"
  5483. v-if="askJson.askCount != 1"
  5484. >
  5485. <div
  5486. class="chapter_upload_up"
  5487. @click.stop="askMove(1, index1)"
  5488. ></div>
  5489. <div
  5490. class="chapter_upload_down"
  5491. @click.stop="askMove(2, index1)"
  5492. ></div>
  5493. </div>
  5494. <div class="a_add_head_div">
  5495. <el-button
  5496. type="primary"
  5497. size="small"
  5498. @click="deleteAskList(index1)"
  5499. v-if="askJson.askCount != 1"
  5500. >删除
  5501. </el-button>
  5502. <el-button
  5503. type="primary"
  5504. size="small"
  5505. @click="addAskList(index1)"
  5506. >添加</el-button
  5507. >
  5508. </div>
  5509. </div>
  5510. <div class="a_add_body">
  5511. <div class="a_add_input" style="flex-direction: column">
  5512. <div
  5513. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  5514. :key="checkIndex"
  5515. style="
  5516. margin: 20px 10px 0 0;
  5517. display: flex;
  5518. align-items: center;
  5519. position: relative;
  5520. "
  5521. >
  5522. <div style="margin-right: 10px">选项{{ checkIndex + 1 }}</div>
  5523. <textarea
  5524. class="a_add_head_input textarea_css"
  5525. v-autoHeight="40"
  5526. v-model="askJson.askJson[index1].checkList[checkIndex]"
  5527. placeholder="请输入选项"
  5528. style="width: 300px"
  5529. @change="
  5530. () => {
  5531. $forceUpdate();
  5532. }
  5533. "
  5534. ></textarea>
  5535. <div
  5536. class="moveBtn moveBtn2"
  5537. style="margin: 0 0px 0 20px"
  5538. v-if="askJson.askJson[index1].askItem != 1"
  5539. >
  5540. <div
  5541. class="chapter_upload_up"
  5542. @click.stop="checkMove(1, index1, checkIndex)"
  5543. ></div>
  5544. <div
  5545. class="chapter_upload_down"
  5546. @click.stop="checkMove(2, index1, checkIndex)"
  5547. ></div>
  5548. </div>
  5549. <div class="a_add_body_div">
  5550. <el-button
  5551. type="primary"
  5552. size="small"
  5553. @click="addcheckList(askJson.askJson[index1], checkIndex)"
  5554. >添加</el-button
  5555. >
  5556. <el-button
  5557. type="primary"
  5558. size="small"
  5559. @click="
  5560. deletecheckList(askJson.askJson[index1], checkIndex)
  5561. "
  5562. v-if="askJson.askJson[index1].askItem != 1"
  5563. >删除
  5564. </el-button>
  5565. </div>
  5566. </div>
  5567. </div>
  5568. <!-- <div class="a_add_body_div">
  5569. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  5570. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  5571. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  5572. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  5573. </el-button>
  5574. </div> -->
  5575. </div>
  5576. </div>
  5577. </div>
  5578. </div>
  5579. <span slot="footer" class="dialog-footer">
  5580. <el-button @click="closePan(4)">取 消</el-button>
  5581. <el-button type="primary" @click="addAsk">确 定</el-button>
  5582. </span>
  5583. </el-dialog>
  5584. <el-dialog
  5585. title="创建选择题"
  5586. :visible.sync="dialogVisibleChoice"
  5587. :append-to-body="true"
  5588. width="800px"
  5589. :before-close="
  5590. (done) => {
  5591. closePan(45);
  5592. }
  5593. "
  5594. class="dialog_diy fullStyle"
  5595. >
  5596. <div style="height: 100%">
  5597. <!-- <div class="a_add_title" style="
  5598. display: flex;
  5599. flex-direction: row;
  5600. align-items: center;
  5601. justify-content: center;
  5602. ">
  5603. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5604. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5605. </div> -->
  5606. <div class="a_addBox" style="height: 100%">
  5607. <div
  5608. style="
  5609. font-size: 16px;
  5610. color: #c7c7c7;
  5611. display: flex;
  5612. align-items: center;
  5613. "
  5614. >
  5615. <!-- 请输入题目内容 -->
  5616. <button
  5617. class="c_pub_button_add pub_btn_paste_img"
  5618. @click="pasteOption"
  5619. style="margin-left: 10px"
  5620. v-if="isPasteChoice"
  5621. >
  5622. 智能粘贴
  5623. </button>
  5624. </div>
  5625. <div
  5626. class="a_add_box"
  5627. v-for="(item1, index1) in testJson.testCount"
  5628. :key="index1"
  5629. >
  5630. <div class="a_add_checkType">
  5631. <span
  5632. :class="{ active: testJson.testJson[index1].type == '1' }"
  5633. @click="checkTestType('1', testJson.testJson[index1])"
  5634. >单选题</span
  5635. >
  5636. <span
  5637. :class="{ active: testJson.testJson[index1].type == '2' }"
  5638. @click="checkTestType('2', testJson.testJson[index1])"
  5639. >多选题</span
  5640. >
  5641. </div>
  5642. <div class="a_add_head">
  5643. <div class="timuUpImg">
  5644. <div style="display: flex; align-items: center">
  5645. <span style="min-width: fit-content">{{
  5646. index1 + 1 + "、"
  5647. }}</span>
  5648. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5649. placeholder="请输入题目">
  5650. </el-input> -->
  5651. <textarea
  5652. class="a_add_head_input textarea_css"
  5653. v-autoHeight="40"
  5654. v-model="testJson.testJson[index1].teststitle"
  5655. placeholder="请输入题目"
  5656. @change="
  5657. () => {
  5658. $forceUpdate();
  5659. }
  5660. "
  5661. ></textarea>
  5662. </div>
  5663. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5664. <div
  5665. class="chapter_upload_up"
  5666. @click.stop="testMove(1, index1)"
  5667. ></div>
  5668. <div
  5669. class="chapter_upload_down"
  5670. @click.stop="testMove(2, index1)"
  5671. ></div>
  5672. </div>
  5673. <div
  5674. class="xzUpImg"
  5675. @click.stop="addImg($event)"
  5676. style="margin-right: 10px"
  5677. >
  5678. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5679. <input
  5680. type="file"
  5681. accept="image/*"
  5682. style="display: none"
  5683. @change="beforeUploadTiMu($event, index1)"
  5684. />
  5685. </div>
  5686. </div>
  5687. <div class="a_add_head_div">
  5688. <el-button
  5689. type="primary"
  5690. size="small"
  5691. @click="deleteTestList(index1)"
  5692. v-if="testJson.testCount != 1"
  5693. >删除
  5694. </el-button>
  5695. <el-button
  5696. type="primary"
  5697. size="small"
  5698. @click="addTestList(index1)"
  5699. >添加</el-button
  5700. >
  5701. </div>
  5702. </div>
  5703. <div
  5704. class="timuImgBox"
  5705. v-if="
  5706. testJson.testJson[index1].timuList &&
  5707. testJson.testJson[index1].timuList.length
  5708. "
  5709. >
  5710. <div
  5711. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5712. :key="tIndex"
  5713. class="timuImg"
  5714. @click.stop="previewImg(timg.src)"
  5715. >
  5716. <img :src="timg.src" alt="" />
  5717. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5718. <img src="../../../assets/icon/delete.png" alt="" />
  5719. </div>
  5720. </div>
  5721. </div>
  5722. <div class="a_add_body">
  5723. <div class="a_add_input a_add_input_choice">
  5724. <el-radio-group
  5725. v-model="testJson.testJson[index1].answer"
  5726. v-if="testJson.testJson[index1].type == 1"
  5727. @change="
  5728. () => {
  5729. $forceUpdate();
  5730. }
  5731. "
  5732. >
  5733. <div class="radioBox">
  5734. <el-radio
  5735. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5736. .testItem"
  5737. :key="checkIndex"
  5738. :label="checkIndex"
  5739. >
  5740. <div style="margin-right: 10px">
  5741. 选项{{ checkIndex + 1 }}
  5742. </div>
  5743. <div
  5744. style="margin-right: 10px; width: 300px"
  5745. v-if="
  5746. testJson.testJson[index1].checkList[checkIndex] &&
  5747. testJson.testJson[index1].checkList[checkIndex]
  5748. .imgType &&
  5749. testJson.testJson[index1].checkList[checkIndex]
  5750. .imgType == 1
  5751. "
  5752. >
  5753. <div
  5754. class="inImg"
  5755. @click.stop="
  5756. previewImg(
  5757. testJson.testJson[index1].checkList[checkIndex]
  5758. .src
  5759. )
  5760. "
  5761. >
  5762. <el-image
  5763. :src="
  5764. testJson.testJson[index1].checkList[checkIndex]
  5765. .src
  5766. "
  5767. lazy
  5768. />
  5769. <!-- <img :src="
  5770. testJson.testJson[index1].checkList[checkIndex]
  5771. .src
  5772. " alt="" /> -->
  5773. </div>
  5774. </div>
  5775. <textarea
  5776. class="a_add_head_input textarea_css"
  5777. v-autoHeight="40"
  5778. v-else
  5779. v-model="
  5780. testJson.testJson[index1].checkList[checkIndex]
  5781. "
  5782. placeholder="请输入选项"
  5783. style="width: 300px; margin-right: 10px"
  5784. @change="
  5785. () => {
  5786. $forceUpdate();
  5787. }
  5788. "
  5789. ></textarea>
  5790. <div class="xzUpImg" @click.stop="addImg($event)">
  5791. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5792. <input
  5793. type="file"
  5794. accept="image/*"
  5795. style="display: none"
  5796. @change="beforeUploadTi($event, index1, checkIndex)"
  5797. />
  5798. </div>
  5799. <div
  5800. class="moveBtn moveBtn2"
  5801. v-if="testJson.testJson[index1].testItem != 1"
  5802. >
  5803. <div
  5804. class="chapter_upload_up"
  5805. @click.stop="tcheckMove(1, index1, checkIndex)"
  5806. ></div>
  5807. <div
  5808. class="chapter_upload_down"
  5809. @click.stop="tcheckMove(2, index1, checkIndex)"
  5810. ></div>
  5811. </div>
  5812. <div class="a_add_body_div">
  5813. <el-button
  5814. type="primary"
  5815. size="small"
  5816. @click.stop="
  5817. addTcheckList(testJson.testJson[index1], checkIndex)
  5818. "
  5819. >添加</el-button
  5820. >
  5821. <el-button
  5822. type="primary"
  5823. size="small"
  5824. @click.stop="
  5825. deleteTcheckList(
  5826. testJson.testJson[index1],
  5827. checkIndex
  5828. )
  5829. "
  5830. v-if="testJson.testJson[index1].testItem != 1"
  5831. >删除
  5832. </el-button>
  5833. </div>
  5834. </el-radio>
  5835. </div>
  5836. </el-radio-group>
  5837. <el-checkbox-group
  5838. v-model="testJson.testJson[index1].answer"
  5839. v-if="testJson.testJson[index1].type == '2'"
  5840. @change="
  5841. () => {
  5842. $forceUpdate();
  5843. }
  5844. "
  5845. >
  5846. <div class="radioBox">
  5847. <el-checkbox
  5848. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5849. .testItem"
  5850. :key="checkIndex1"
  5851. :label="checkIndex1"
  5852. >
  5853. <div style="margin-right: 10px">
  5854. 选项{{ checkIndex1 + 1 }}
  5855. </div>
  5856. <div
  5857. style="margin-right: 10px; width: 300px"
  5858. v-if="
  5859. testJson.testJson[index1].checkList[checkIndex1] &&
  5860. testJson.testJson[index1].checkList[checkIndex1]
  5861. .imgType &&
  5862. testJson.testJson[index1].checkList[checkIndex1]
  5863. .imgType == 1
  5864. "
  5865. >
  5866. <div
  5867. class="inImg"
  5868. @click.stop="
  5869. previewImg(
  5870. testJson.testJson[index1].checkList[checkIndex1]
  5871. .src
  5872. )
  5873. "
  5874. >
  5875. <el-image
  5876. :src="
  5877. testJson.testJson[index1].checkList[checkIndex1]
  5878. .src
  5879. "
  5880. lazy
  5881. />
  5882. <!-- <img :src="
  5883. testJson.testJson[index1].checkList[checkIndex1]
  5884. .src
  5885. " alt="" /> -->
  5886. </div>
  5887. </div>
  5888. <textarea
  5889. class="a_add_head_input textarea_css"
  5890. v-autoHeight="40"
  5891. v-else
  5892. v-model="
  5893. testJson.testJson[index1].checkList[checkIndex1]
  5894. "
  5895. placeholder="请输入选项"
  5896. style="width: 300px; margin-right: 10px"
  5897. @change="
  5898. () => {
  5899. $forceUpdate();
  5900. }
  5901. "
  5902. ></textarea>
  5903. <div class="xzUpImg" @click.stop="addImg($event)">
  5904. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5905. <input
  5906. type="file"
  5907. accept="image/*"
  5908. style="display: none"
  5909. @change="beforeUploadTi($event, index1, checkIndex1)"
  5910. />
  5911. </div>
  5912. <div
  5913. class="moveBtn moveBtn2"
  5914. v-if="testJson.testJson[index1].testItem != 1"
  5915. >
  5916. <div
  5917. class="chapter_upload_up"
  5918. @click.stop="tcheckMove(1, index1, checkIndex1)"
  5919. ></div>
  5920. <div
  5921. class="chapter_upload_down"
  5922. @click.stop="tcheckMove(2, index1, checkIndex1)"
  5923. ></div>
  5924. </div>
  5925. <div class="a_add_body_div">
  5926. <el-button
  5927. type="primary"
  5928. size="small"
  5929. @click.stop="
  5930. addTcheckList(
  5931. testJson.testJson[index1],
  5932. checkIndex1
  5933. )
  5934. "
  5935. >添加</el-button
  5936. >
  5937. <el-button
  5938. type="primary"
  5939. size="small"
  5940. @click.stop="
  5941. deleteTcheckList(
  5942. testJson.testJson[index1],
  5943. checkIndex1
  5944. )
  5945. "
  5946. v-if="testJson.testJson[index1].testItem != 1"
  5947. >删除
  5948. </el-button>
  5949. </div>
  5950. </el-checkbox>
  5951. </div>
  5952. </el-checkbox-group>
  5953. </div>
  5954. <!-- <div class="a_add_body_div">
  5955. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  5956. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  5957. v-if="testJson.testJson[index1].testItem != 1">删除
  5958. </el-button>
  5959. </div> -->
  5960. </div>
  5961. </div>
  5962. </div>
  5963. </div>
  5964. <span slot="footer" class="dialog-footer">
  5965. <el-button @click="closePan(45)">取 消</el-button>
  5966. <el-button type="primary" @click="addTest">确 定</el-button>
  5967. </span>
  5968. </el-dialog>
  5969. <el-dialog
  5970. title="添加工具"
  5971. :visible.sync="dialogVisible4"
  5972. :append-to-body="true"
  5973. width="600px"
  5974. :before-close="handleClose"
  5975. class="dialog_diy addToolsDia"
  5976. >
  5977. <div class="toolChoose">
  5978. <div class="tools">
  5979. <div
  5980. class="leftTools"
  5981. style="width: 100%; padding: 0 0 15px 0"
  5982. v-for="(itemTools, itemToolsIndex) in chapTools"
  5983. :key="itemToolsIndex"
  5984. >
  5985. <div
  5986. style="
  5987. display: flex;
  5988. flex-direction: row;
  5989. align-items: baseline;
  5990. flex-wrap: nowrap;
  5991. justify-content: flex-start;
  5992. position: relative;
  5993. "
  5994. >
  5995. <div class="chooseWho">
  5996. <div
  5997. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5998. @click="chapToolsType = 0"
  5999. >
  6000. 互动类
  6001. </div>
  6002. <div
  6003. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  6004. @click="chapToolsType = 1"
  6005. >
  6006. 思维类
  6007. </div>
  6008. <div
  6009. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6010. @click="chapToolsType = 2"
  6011. >
  6012. 评价类
  6013. </div>
  6014. <div
  6015. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  6016. @click="chapToolsType = 2"
  6017. >
  6018. 其他
  6019. </div>
  6020. </div>
  6021. </div>
  6022. <div style="min-height: 163px">
  6023. <div class="toolSort" v-if="chapToolsType == 0">
  6024. <div
  6025. class="tool"
  6026. :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }"
  6027. @click="chapAddTools(8)"
  6028. >
  6029. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  6030. <img
  6031. src="../../../assets/icon/secondToolList/library.png"
  6032. alt
  6033. />
  6034. <div style="margin: 5px 0">素材库</div>
  6035. </div>
  6036. <div class="noCTool">
  6037. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6038. </div>
  6039. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1">
  6040. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6041. </div>
  6042. <!-- <div class="check" @click="chapAddTools(8)">
  6043. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  6044. <div class="checkDiv" v-else>
  6045. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6046. </div>
  6047. </div> -->
  6048. </div>
  6049. </div>
  6050. <div class="toolSort" v-if="chapToolsType == 1">
  6051. <div
  6052. class="tool"
  6053. :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }"
  6054. @click="chapAddTools(7)"
  6055. >
  6056. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  6057. <img
  6058. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6059. alt
  6060. />
  6061. <div style="margin: 5px 0">思维网格</div>
  6062. </div>
  6063. <div class="noCTool">
  6064. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6065. </div>
  6066. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1">
  6067. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6068. </div>
  6069. <!-- <div class="check" @click="chapAddTools(7)">
  6070. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  6071. <div class="checkDiv" v-else>
  6072. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6073. </div>
  6074. </div> -->
  6075. </div>
  6076. <div
  6077. class="tool"
  6078. :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }"
  6079. @click="chapAddTools(1)"
  6080. >
  6081. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  6082. <img
  6083. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6084. alt
  6085. />
  6086. <div style="margin: 5px 0">电子白板</div>
  6087. </div>
  6088. <div class="noCTool">
  6089. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6090. </div>
  6091. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1">
  6092. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6093. </div>
  6094. <!-- <div class="check" @click="chapAddTools(1)">
  6095. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  6096. <div class="checkDiv" v-else>
  6097. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6098. </div>
  6099. </div> -->
  6100. </div>
  6101. <div
  6102. class="tool"
  6103. :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }"
  6104. @click="chapAddTools(2)"
  6105. >
  6106. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  6107. <img src="../../../assets/icon/secondToolList/note.png" alt />
  6108. <div style="margin: 5px 0">便签</div>
  6109. </div>
  6110. <div class="noCTool">
  6111. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6112. </div>
  6113. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1">
  6114. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6115. </div>
  6116. <!-- <div class="check" @click="chapAddTools(2)">
  6117. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  6118. <div class="checkDiv" v-else>
  6119. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6120. </div>
  6121. </div> -->
  6122. </div>
  6123. <div
  6124. class="tool"
  6125. :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }"
  6126. @click="chapAddTools(6)"
  6127. >
  6128. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  6129. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  6130. <div style="margin: 5px 0">协同文档</div>
  6131. </div>
  6132. <div class="noCTool">
  6133. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6134. </div>
  6135. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1">
  6136. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6137. </div>
  6138. <!-- <div class="check" @click="chapAddTools(6)">
  6139. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  6140. <div class="checkDiv" v-else>
  6141. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6142. </div>
  6143. </div> -->
  6144. </div>
  6145. <div
  6146. class="tool"
  6147. :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }"
  6148. @click="chapAddTools(3)"
  6149. >
  6150. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  6151. <img
  6152. src="../../../assets/icon/secondToolList/mindMapping.png"
  6153. alt
  6154. />
  6155. <div style="margin: 5px 0">思维导图</div>
  6156. </div>
  6157. <div class="noCTool">
  6158. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6159. </div>
  6160. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1">
  6161. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6162. </div>
  6163. <!-- <div class="check" @click="chapAddTools(3)">
  6164. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  6165. <div class="checkDiv" v-else>
  6166. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6167. </div>
  6168. </div> -->
  6169. </div>
  6170. <div
  6171. class="tool"
  6172. :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }"
  6173. @click="chapAddTools(31)"
  6174. >
  6175. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  6176. <img
  6177. src="../../../assets/icon/secondToolList/networkPanel.png"
  6178. alt
  6179. />
  6180. <div style="margin: 5px 0">数学画板</div>
  6181. </div>
  6182. <div class="noCTool">
  6183. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6184. </div>
  6185. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1">
  6186. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6187. </div>
  6188. <!-- <div class="check" @click="chapAddTools(31)">
  6189. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  6190. <div class="checkDiv" v-else>
  6191. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6192. </div>
  6193. </div> -->
  6194. </div>
  6195. </div>
  6196. <div class="toolSort" v-if="chapToolsType == 2">
  6197. <div
  6198. class="tool"
  6199. :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }"
  6200. @click="chapAddTools(5)"
  6201. >
  6202. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  6203. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  6204. <div style="margin: 5px 0">量规评分</div>
  6205. </div>
  6206. <div class="noCTool">
  6207. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6208. </div>
  6209. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1">
  6210. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6211. </div>
  6212. <!-- <div class="check" @click="chapAddTools(5)">
  6213. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  6214. <div class="checkDiv" v-else>
  6215. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6216. </div>
  6217. </div> -->
  6218. </div>
  6219. <div
  6220. class="tool"
  6221. :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }"
  6222. @click="chapAddTools(4)"
  6223. >
  6224. <div
  6225. class="whiteBIcon"
  6226. @click.stop="openTools(chapCount, 4, null)"
  6227. >
  6228. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6229. <div style="margin: 5px 0">问卷调查</div>
  6230. </div>
  6231. <div class="noCTool">
  6232. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6233. </div>
  6234. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1">
  6235. <img src="../../../assets/icon/new/isToolC.png" alt="" />
  6236. </div>
  6237. <!-- <div class="check" @click="chapAddTools(4)">
  6238. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  6239. <div class="checkDiv" v-else>
  6240. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  6241. </div>
  6242. </div> -->
  6243. </div>
  6244. </div>
  6245. </div>
  6246. <div>
  6247. <input
  6248. type="text"
  6249. placeholder="添加工具描述"
  6250. class="binfo_input"
  6251. style="margin: 20px 0; width: 100% !important"
  6252. v-model="itemTools.toolDetail"
  6253. />
  6254. </div>
  6255. </div>
  6256. </div>
  6257. </div>
  6258. <span slot="footer" class="dialog-footer">
  6259. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6260. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6261. </span>
  6262. </el-dialog>
  6263. <el-dialog
  6264. title="添加问答"
  6265. :visible.sync="dialogVisible8"
  6266. :append-to-body="true"
  6267. width="500px"
  6268. :before-close="
  6269. (done) => {
  6270. closePan(15);
  6271. }
  6272. "
  6273. class="dialog_diy"
  6274. >
  6275. <div>
  6276. <div
  6277. class="a_add_title"
  6278. style="
  6279. display: flex;
  6280. flex-direction: column;
  6281. align-items: flex-start;
  6282. justify-content: center;
  6283. "
  6284. >
  6285. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6286. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  6287. <textarea
  6288. rows="1"
  6289. v-autoHeight="40"
  6290. type="text"
  6291. placeholder="请输入您要问的问题"
  6292. class="binfo_input"
  6293. style="width: 100% !important; border: 1px solid #dcdfe6"
  6294. v-model="answerQ"
  6295. ></textarea>
  6296. </div>
  6297. </div>
  6298. <span slot="footer" class="dialog-footer">
  6299. <el-button @click="closePan(15)">取 消</el-button>
  6300. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6301. </span>
  6302. </el-dialog>
  6303. <el-dialog
  6304. title="添加问题"
  6305. :visible.sync="dialogVisibleMp3"
  6306. :append-to-body="true"
  6307. width="500px"
  6308. :before-close="handleClose"
  6309. class="dialog_diy"
  6310. >
  6311. <div>
  6312. <div
  6313. class="a_add_title"
  6314. style="
  6315. display: flex;
  6316. flex-direction: column;
  6317. align-items: flex-start;
  6318. justify-content: center;
  6319. "
  6320. >
  6321. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6322. <el-input
  6323. v-model="answerQ"
  6324. placeholder="请输入您想要回答的问题"
  6325. ></el-input>
  6326. </div>
  6327. </div>
  6328. <span slot="footer" class="dialog-footer">
  6329. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6330. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6331. </span>
  6332. </el-dialog>
  6333. <el-dialog
  6334. title="上传图片"
  6335. :visible.sync="choosePicVisible"
  6336. :append-to-body="true"
  6337. width="600px"
  6338. :before-close="handleClose"
  6339. class="dialog_diy"
  6340. >
  6341. <div>
  6342. <div class="fileCss" style="padding-top: 20px">
  6343. <div>
  6344. <button class="info_btn" @click="addImg($event)">
  6345. 选择本地文件
  6346. <input
  6347. type="file"
  6348. accept="image/*"
  6349. style="display: none"
  6350. @change="beforeUpload1"
  6351. />
  6352. </button>
  6353. <div class="spanName">选择本地文件</div>
  6354. </div>
  6355. <!-- <div>
  6356. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  6357. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6358. <img :src="cover[0].url" alt="" />
  6359. <div class="deletePic" @click="deleteSysPic">
  6360. <img src="../../../assets/icon/delete.png" alt="" />
  6361. </div>
  6362. </div>
  6363. <div class="spanName">选择系统文件</div>
  6364. </div> -->
  6365. <div>
  6366. <el-button
  6367. @click="(searchImageValue = courseName), resetImage()"
  6368. v-if="isSysPic2 == false"
  6369. >选择网络文件</el-button
  6370. >
  6371. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6372. <img :src="cover[0].url" alt="" />
  6373. <div class="deletePic" @click="deleteSysPic">
  6374. <img src="../../../assets/icon/delete.png" alt="" />
  6375. </div>
  6376. </div>
  6377. <div class="spanName">选择网络文件</div>
  6378. </div>
  6379. </div>
  6380. <!-- <div class="fileCss">
  6381. </div> -->
  6382. </div>
  6383. <span slot="footer" class="dialog-footer">
  6384. <el-button @click="choosePicVisible = false">取 消</el-button>
  6385. <el-button type="primary" @click="choosePicVisible = false"
  6386. >确 定</el-button
  6387. >
  6388. </span>
  6389. </el-dialog>
  6390. <el-dialog
  6391. title="选择系统文件"
  6392. :visible.sync="sysPicVisible"
  6393. :append-to-body="true"
  6394. width="710px"
  6395. :before-close="handleClose"
  6396. class="dialog_diy"
  6397. >
  6398. <div class="cru_selectBox" style="margin: 0">
  6399. <div
  6400. @click="getChoosePic(1)"
  6401. class="cru_select"
  6402. :class="chooseType == 1 ? 'cru_selected' : ''"
  6403. >
  6404. 绘画
  6405. </div>
  6406. <div
  6407. @click="getChoosePic(2)"
  6408. class="cru_select"
  6409. :class="chooseType == 2 ? 'cru_selected' : ''"
  6410. >
  6411. 科技
  6412. </div>
  6413. <div
  6414. @click="getChoosePic(3)"
  6415. class="cru_select"
  6416. :class="chooseType == 3 ? 'cru_selected' : ''"
  6417. >
  6418. 人文
  6419. </div>
  6420. <div
  6421. @click="getChoosePic(4)"
  6422. class="cru_select"
  6423. :class="chooseType == 4 ? 'cru_selected' : ''"
  6424. >
  6425. 艺术
  6426. </div>
  6427. </div>
  6428. <div class="sysPicBox">
  6429. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6430. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6431. </div>
  6432. </div>
  6433. </el-dialog>
  6434. <el-dialog
  6435. title="选择网络文件"
  6436. :visible.sync="sysPicVisible2"
  6437. :append-to-body="true"
  6438. width="710px"
  6439. :before-close="handleClose"
  6440. class="dialog_diy"
  6441. >
  6442. <div>
  6443. <div
  6444. class="people_top_right"
  6445. style="display: flex; align-items: center"
  6446. >
  6447. <div style="position: relative; width: 100%">
  6448. <el-input
  6449. style="height: 100%"
  6450. placeholder="搜索图片关键字"
  6451. v-model="searchImageValue"
  6452. @keyup.enter.native="resetImage()"
  6453. ></el-input>
  6454. <div class="search_img" @click="resetImage" style="right: 10px">
  6455. <img src="../../../assets/icon/search.png" alt />
  6456. </div>
  6457. </div>
  6458. <el-button
  6459. type="primary"
  6460. size="default"
  6461. style="margin-left: 10px"
  6462. @click="changePicture"
  6463. >换一组</el-button
  6464. >
  6465. </div>
  6466. <div class="sysPicBox" v-loading="imageloading">
  6467. <div class="picNone" v-if="!imageList.length">
  6468. 请输入关键词搜索图片
  6469. </div>
  6470. <div
  6471. v-for="(sys, sysIndex) in imageList"
  6472. :key="sysIndex"
  6473. class="sysPic"
  6474. >
  6475. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6476. </div>
  6477. </div>
  6478. </div>
  6479. </el-dialog>
  6480. <el-dialog
  6481. title="选择匹配"
  6482. :visible.sync="dialogVisibleSelect"
  6483. :append-to-body="true"
  6484. width="800px"
  6485. :before-close="
  6486. (done) => {
  6487. closePan(41);
  6488. }
  6489. "
  6490. class="dialog_diy dialog_diy3 fullStyle"
  6491. >
  6492. <div v-if="selectJson" style="height: 100%">
  6493. <div class="select_box1" v-if="selectSteps == 1">
  6494. <div class="select_box1_img">
  6495. <div class="select_box1_title">
  6496. <span>上传题目图片</span
  6497. ><span>提示:请将所有题目上传为一张图片。</span>
  6498. </div>
  6499. <div class="select_box1_add_img">
  6500. <div
  6501. class="uploadFm"
  6502. @click="addImg($event)"
  6503. v-if="!selectJson.url"
  6504. >
  6505. <input
  6506. type="file"
  6507. accept="image/*"
  6508. style="display: none"
  6509. @change="beforeUploadSelect"
  6510. />
  6511. <img src="../../../assets/icon/addPoster.png" alt="" />
  6512. </div>
  6513. <div class="isSysPic" v-else>
  6514. <img
  6515. :src="selectJson.url"
  6516. alt=""
  6517. @click="previewImg(selectJson.url)"
  6518. />
  6519. <div class="deletePic" @click="deleteSelectPic">
  6520. <img src="../../../assets/icon/delete.png" alt="" />
  6521. </div>
  6522. </div>
  6523. </div>
  6524. </div>
  6525. <div class="select_box1_select">
  6526. <div class="select_box1_title">
  6527. <span>添加选项</span
  6528. ><span
  6529. >提示:请输入以上题目的选项内容,此选项为所有题目共享。</span
  6530. >
  6531. </div>
  6532. <div class="select_box1_select_box">
  6533. <el-input
  6534. v-for="(item2, checkIndex) in selectJson.select"
  6535. :key="checkIndex"
  6536. v-model="selectJson.select[checkIndex]"
  6537. placeholder="请输入选项"
  6538. style="width: 150px; margin: 10px 10px 0 0"
  6539. ></el-input>
  6540. <div class="select_box1_select_box_add">
  6541. <el-button
  6542. style="margin: 10px 0px 0 0"
  6543. type="primary"
  6544. size="small"
  6545. @click="addSelectList(selectJson)"
  6546. >
  6547. 添加</el-button
  6548. >
  6549. <el-button
  6550. type="primary"
  6551. size="small"
  6552. style="margin: 10px 0 0 0"
  6553. @click="deleteSelectList(selectJson)"
  6554. v-if="selectJson.select && selectJson.select.length > 0"
  6555. >删除</el-button
  6556. >
  6557. </div>
  6558. </div>
  6559. </div>
  6560. </div>
  6561. <div v-if="selectSteps == 2" style="height: 100%">
  6562. <div class="select_box2">
  6563. <div class="select_box2_title">设置每道题目的正确选项</div>
  6564. <div class="select_box2_box">
  6565. <div class="select_box2_img">
  6566. <img
  6567. :src="selectJson.url"
  6568. alt=""
  6569. @click="previewImg(selectJson.url)"
  6570. />
  6571. </div>
  6572. <div class="select_box2_answer">
  6573. <div class="select_answer_title">根据题目选择对应答案</div>
  6574. <div
  6575. class="select_box2_answer_box"
  6576. v-for="(item2, checkIndex) in selectJson.select"
  6577. :key="checkIndex"
  6578. >
  6579. <span>{{ checkIndex + 1 }}、</span>
  6580. <el-select
  6581. v-model="selectJson.answer[checkIndex]"
  6582. placeholder="请选择正确答案"
  6583. >
  6584. <el-option
  6585. v-for="(e, eIndex) in selectJson.select"
  6586. :key="eIndex"
  6587. :label="e"
  6588. :value="eIndex"
  6589. >
  6590. </el-option>
  6591. </el-select>
  6592. </div>
  6593. </div>
  6594. </div>
  6595. </div>
  6596. </div>
  6597. </div>
  6598. <span slot="footer" class="dialog-footer">
  6599. <el-button
  6600. type="primary"
  6601. @click="nextSelectSteps()"
  6602. v-if="selectSteps == 1"
  6603. >下一步</el-button
  6604. >
  6605. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6606. >上一步</el-button
  6607. >
  6608. <el-button
  6609. type="primary"
  6610. @click="addSelectAnswer"
  6611. v-if="selectSteps == 2"
  6612. >确 定</el-button
  6613. >
  6614. </span>
  6615. </el-dialog>
  6616. <el-dialog
  6617. title="添加评价"
  6618. :visible.sync="dialogVisibleRate"
  6619. :append-to-body="true"
  6620. width="650px"
  6621. :before-close="handleClose"
  6622. class="dialog_diy"
  6623. >
  6624. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6625. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6626. <div class="pjCss" style="width: 100%">
  6627. <div
  6628. v-if="rateJson.length"
  6629. class="elist_input"
  6630. style="height: 360px; overflow: auto"
  6631. >
  6632. <div
  6633. v-for="(eItem, eIndex) in rateJson"
  6634. :key="eIndex"
  6635. class="elist_input_box"
  6636. >
  6637. <span style="min-width: 100px; text-align: right"
  6638. >个人评价指标:</span
  6639. >
  6640. <input
  6641. type="input"
  6642. v-model="eItem.value"
  6643. placeholder="填写评价维度"
  6644. />
  6645. <div class="remove" @click="deletRateList(eIndex)"></div>
  6646. <div style="width: 100%; display: flex">
  6647. <span style="min-width: 100px; text-align: right"
  6648. >评星等级:</span
  6649. >
  6650. <el-rate v-model="eItem.score" disabled></el-rate>
  6651. </div>
  6652. <div class="elist_inptu_text" style="align-items: flex-start">
  6653. <span style="min-width: 100px; text-align: right">描述:</span>
  6654. <textarea
  6655. class="rate_textarea"
  6656. :rows="3"
  6657. v-model="eItem.detail"
  6658. placeholder="填写维度描述"
  6659. ></textarea>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. <div class="addToolFun" @click="addRateList()">
  6664. <div class="addToolImg">
  6665. <img src="../../../assets/icon/add.png" alt />
  6666. </div>
  6667. <div>添加</div>
  6668. </div>
  6669. </div>
  6670. </div>
  6671. <span slot="footer" class="dialog-footer">
  6672. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6673. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6674. </span>
  6675. </el-dialog>
  6676. <el-dialog
  6677. title="排序设置"
  6678. :visible.sync="dialogVisibleSentence"
  6679. :append-to-body="true"
  6680. width="1000px"
  6681. :before-close="
  6682. (done) => {
  6683. closePan(47);
  6684. }
  6685. "
  6686. class="dialog_diy dialog_diy3 fullStyle"
  6687. >
  6688. <div style="height: 100%">
  6689. <div class="sentenBox" style="height: 100%">
  6690. <div class="addSen" @click="addSt">添加题目</div>
  6691. <div
  6692. v-for="(st, stIndex) in sentenceList"
  6693. :key="stIndex"
  6694. class="sentenContent"
  6695. >
  6696. <div class="sentenTopBox">
  6697. <div class="sentenTop" :index="stIndex + 1">
  6698. <div>题目设置</div>
  6699. <div>
  6700. <el-input
  6701. placeholder="请输入卡片内容"
  6702. v-model="st.sentenceTitle"
  6703. :maxlength="10"
  6704. ></el-input>
  6705. </div>
  6706. <div @click="addSen(stIndex)">添加</div>
  6707. <div
  6708. class="remove1"
  6709. v-if="sentenceList.length > 1"
  6710. @click="deleteSentence(stIndex)"
  6711. ></div>
  6712. </div>
  6713. </div>
  6714. <div class="cardList">
  6715. <div v-if="st.addSentence.length > 0" class="cardBox">
  6716. <div
  6717. class="isCard"
  6718. v-for="(s, sIndex) in st.addSentence"
  6719. :key="sIndex"
  6720. @click="setRightAnswer(s, stIndex, sIndex)"
  6721. >
  6722. <el-tooltip
  6723. class="item"
  6724. effect="light"
  6725. :content="s"
  6726. placement="top"
  6727. >
  6728. <div>{{ s }}</div>
  6729. </el-tooltip>
  6730. <div
  6731. class="deleteWord"
  6732. @click.stop="deleteS(s, stIndex, sIndex)"
  6733. >
  6734. <img src="../../../assets/icon/delete.png" alt="" />
  6735. </div>
  6736. </div>
  6737. </div>
  6738. <div class="card">
  6739. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  6740. </div>
  6741. </div>
  6742. <div class="rightCardBox">
  6743. <div>正确顺序</div>
  6744. <div class="rightCardList">
  6745. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6746. <div
  6747. v-for="(r, rIndex) in st.rightAnswer"
  6748. :key="rIndex"
  6749. class="cardCss"
  6750. >
  6751. <div
  6752. class="isCard1"
  6753. @click="returnCard(r, stIndex, rIndex)"
  6754. >
  6755. <el-tooltip
  6756. class="item"
  6757. effect="light"
  6758. :content="r"
  6759. placement="top"
  6760. >
  6761. <div>{{ r }}</div>
  6762. </el-tooltip>
  6763. </div>
  6764. <div>{{ rIndex + 1 }}</div>
  6765. </div>
  6766. </div>
  6767. <div class="card" v-if="st.rightAnswer.length == 0">
  6768. <img
  6769. src="../../../assets/icon/conSentences/noAnswer.png"
  6770. alt=""
  6771. />
  6772. </div>
  6773. <div class="card" v-else>
  6774. <img
  6775. src="../../../assets/icon/conSentences/clickNo.png"
  6776. alt=""
  6777. />
  6778. </div>
  6779. </div>
  6780. </div>
  6781. </div>
  6782. </div>
  6783. </div>
  6784. <span slot="footer" class="dialog-footer">
  6785. <el-button @click="closePan(47)">取 消</el-button>
  6786. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6787. </span>
  6788. </el-dialog>
  6789. <el-dialog
  6790. title="添加表格"
  6791. :visible.sync="dialogVisibleTable"
  6792. :append-to-body="true"
  6793. width="95%"
  6794. :before-close="handleClose"
  6795. class="dialog_diy"
  6796. >
  6797. <el-form>
  6798. <!-- <el-form-item label="文本标题">
  6799. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6800. </el-form-item> -->
  6801. <div>表格内容</div>
  6802. <Table v-model="tableJson.text" @change="change"></Table>
  6803. </el-form>
  6804. <span slot="footer" class="dialog-footer">
  6805. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6806. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6807. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6808. </span>
  6809. </el-dialog>
  6810. <el-dialog
  6811. title="添加文档"
  6812. :visible.sync="dialogVisibleWord"
  6813. :append-to-body="true"
  6814. width="800px"
  6815. :before-close="handleClose"
  6816. class="dialog_diy"
  6817. >
  6818. <el-form>
  6819. <!-- <el-form-item label="文本标题">
  6820. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6821. </el-form-item> -->
  6822. <div>文档内容</div>
  6823. <editor-bar v-model="wordJson.text"></editor-bar>
  6824. </el-form>
  6825. <span slot="footer" class="dialog-footer">
  6826. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6827. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6828. </span>
  6829. </el-dialog>
  6830. <el-dialog
  6831. title="添加班级"
  6832. :visible.sync="dialogVisibleMoreUpload"
  6833. :append-to-body="true"
  6834. width="30%"
  6835. :before-close="handleClose"
  6836. class="dialog_diy"
  6837. >
  6838. <div
  6839. style="
  6840. width: 100%;
  6841. display: flex;
  6842. flex-direction: row;
  6843. flex-wrap: nowrap;
  6844. align-items: center;
  6845. justify-content: center;
  6846. "
  6847. >
  6848. <div>班级:</div>
  6849. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6850. <el-option
  6851. v-for="item in classJuri"
  6852. :key="item.id"
  6853. :label="item.name"
  6854. :value="item.id"
  6855. >
  6856. </el-option>
  6857. </el-select>
  6858. </div>
  6859. <span slot="footer" class="dialog-footer">
  6860. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6861. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6862. </span>
  6863. </el-dialog>
  6864. <el-dialog
  6865. title="设置随机码"
  6866. :visible.sync="dialogVisibleInvite"
  6867. :append-to-body="true"
  6868. width="360px"
  6869. :before-close="handleClose"
  6870. class="dialog_diy"
  6871. >
  6872. <div
  6873. style="
  6874. width: 100%;
  6875. display: flex;
  6876. flex-direction: row;
  6877. flex-wrap: nowrap;
  6878. align-items: center;
  6879. justify-content: center;
  6880. "
  6881. >
  6882. <div>随机码:</div>
  6883. <el-input
  6884. v-model="icode"
  6885. style="width: 240px"
  6886. placeholder="请输入随机码"
  6887. ></el-input>
  6888. </div>
  6889. <span slot="footer" class="dialog-footer">
  6890. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6891. <el-button type="primary" @click="addInvite">确定</el-button>
  6892. </span>
  6893. </el-dialog>
  6894. <el-dialog
  6895. title="添加预设时间"
  6896. :visible.sync="dialogVisiblePreTime"
  6897. :append-to-body="true"
  6898. width="450px"
  6899. :before-close="handleClose"
  6900. class="dialog_diy"
  6901. >
  6902. <div>
  6903. <div style="margin-bottom: 20px; color: #999">
  6904. 提示:点击“+”或“-”修改倒计时时长。
  6905. </div>
  6906. <Time
  6907. :preTime="preTime"
  6908. @updateTimeNum="updateTime"
  6909. v-if="dialogVisiblePreTime"
  6910. ></Time>
  6911. </div>
  6912. <span slot="footer" class="dialog-footer">
  6913. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6914. <el-button type="primary" @click="addPreTime">确定</el-button>
  6915. </span>
  6916. </el-dialog>
  6917. <el-dialog
  6918. title="导入目标"
  6919. :visible.sync="dialogVisiblemb"
  6920. :append-to-body="true"
  6921. width="70%"
  6922. :before-close="handleClose"
  6923. class="dialog_diy"
  6924. >
  6925. <div>
  6926. <div
  6927. style="
  6928. width: 100%;
  6929. display: flex;
  6930. flex-direction: row;
  6931. flex-wrap: nowrap;
  6932. align-content: center;
  6933. align-items: center;
  6934. justify-content: space-between;
  6935. "
  6936. >
  6937. <div
  6938. style="
  6939. display: flex;
  6940. flex-flow: row nowrap;
  6941. align-items: flex-start;
  6942. width: 100%;
  6943. flex-direction: column;
  6944. flex-wrap: nowrap;
  6945. position: relative;
  6946. "
  6947. >
  6948. <div class="e_box">
  6949. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6950. <div class="e_card_picture">
  6951. <img src="../../../assets/e_picture.png" />
  6952. </div>
  6953. <div class="e_card_name">
  6954. <span>{{ item.title }}</span>
  6955. </div>
  6956. <div class="e_card_btn">
  6957. <span @click="checkEva(item.id, 2)">导入</span>
  6958. </div>
  6959. </div> -->
  6960. <!-- <div class="addEva" @click="openT">
  6961. <img src="../../../assets/icon/addEva.png" alt="" />
  6962. </div> -->
  6963. <div
  6964. style="
  6965. display: flex;
  6966. justify-content: flex-end;
  6967. margin-bottom: 10px;
  6968. "
  6969. >
  6970. <el-button @click="openT" type="primary" size="small"
  6971. >添加目标</el-button
  6972. >
  6973. </div>
  6974. <el-table
  6975. v-if="evaJuri.length"
  6976. ref="table"
  6977. :data="evaJuri"
  6978. border
  6979. :fit="true"
  6980. style="width: 100%"
  6981. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  6982. :row-class-name="tableRowClassName"
  6983. >
  6984. <el-table-column
  6985. label="目标名称"
  6986. min-width="15"
  6987. align="center"
  6988. prop="title"
  6989. >
  6990. </el-table-column>
  6991. <el-table-column
  6992. prop="username"
  6993. label="负责人"
  6994. min-width="15"
  6995. align="center"
  6996. >
  6997. </el-table-column>
  6998. <el-table-column label="操作" width="250px">
  6999. <template slot-scope="scope">
  7000. <div class="btnBox">
  7001. <el-button
  7002. type="primary"
  7003. size="small"
  7004. @click="checkEva(scope.row.id, 2)"
  7005. >导入</el-button
  7006. >
  7007. </div>
  7008. </template>
  7009. </el-table-column>
  7010. </el-table>
  7011. <div
  7012. v-if="evaJuri.length === 0"
  7013. style="margin: 0 auto; color: #6e6e6e"
  7014. >
  7015. 暂无数据
  7016. </div>
  7017. </div>
  7018. </div>
  7019. </div>
  7020. </div>
  7021. <span slot="footer" class="dialog-footer">
  7022. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  7023. </span>
  7024. </el-dialog>
  7025. <el-dialog
  7026. title="分组设置"
  7027. :visible.sync="dialogVisibleGroup"
  7028. :append-to-body="true"
  7029. width="650px"
  7030. :before-close="handleClose"
  7031. class="dialog_diy"
  7032. >
  7033. <div class="groupBox">
  7034. <div v-if="groupJson.group" class="groupContent">
  7035. <div class="groupTitle">请设置小组数量及名称</div>
  7036. <div
  7037. v-for="(item, index) in groupJson.group"
  7038. :key="index"
  7039. class="groupName"
  7040. >
  7041. <span class="groupn">第{{ index + 1 }}组名称:</span>
  7042. <el-input
  7043. v-model="item.name"
  7044. placeholder="请输入名称..."
  7045. style="width: 250px"
  7046. ></el-input>
  7047. <div class="groupBtn">
  7048. <el-button
  7049. type="primary"
  7050. size="small"
  7051. @click="addGroup(index)"
  7052. v-if="groupJson.group.length - 1 == index"
  7053. >
  7054. 添加</el-button
  7055. >
  7056. <el-button
  7057. type="primary"
  7058. size="small"
  7059. @click="deleteGroup(index)"
  7060. v-if="groupJson.group && groupJson.group.length > 1"
  7061. >删除</el-button
  7062. >
  7063. </div>
  7064. </div>
  7065. </div>
  7066. <div class="groupContent">
  7067. <div class="groupTitle">请设置每组人数</div>
  7068. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  7069. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  7070. <el-input
  7071. v-model="groupJson.number"
  7072. style="width: 150px"
  7073. placeholder="请输入2-10的数字"
  7074. @change="numberPan"
  7075. ></el-input>
  7076. </div>
  7077. </div>
  7078. <span slot="footer" class="dialog-footer">
  7079. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  7080. <el-button type="primary" @click="addGroupJson">确定</el-button>
  7081. </span>
  7082. </el-dialog>
  7083. <el-dialog
  7084. title="修改名称"
  7085. :visible.sync="dialogVisibleupdataVideoT"
  7086. :append-to-body="true"
  7087. width="500px"
  7088. :before-close="handleClose"
  7089. class="dialog_diy"
  7090. >
  7091. <div
  7092. style="
  7093. width: 100%;
  7094. display: flex;
  7095. flex-direction: row;
  7096. flex-wrap: nowrap;
  7097. align-items: center;
  7098. justify-content: center;
  7099. "
  7100. >
  7101. <div style="min-width: fit-content">文件名称:</div>
  7102. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  7103. </div>
  7104. <span slot="footer" class="dialog-footer">
  7105. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  7106. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  7107. </span>
  7108. </el-dialog>
  7109. <el-dialog
  7110. title="创建作文题目"
  7111. :visible.sync="englishDialogVisible"
  7112. :append-to-body="true"
  7113. width="800px"
  7114. :before-close="
  7115. (done) => {
  7116. closePan(69);
  7117. }
  7118. "
  7119. class="dialog_diy fullStyle fullStyle1"
  7120. >
  7121. <englishRight
  7122. :englishList="englishList"
  7123. :oid="oid"
  7124. ref="engJson"
  7125. @setJson="addEnglish"
  7126. ></englishRight>
  7127. <span slot="footer" class="dialog-footer">
  7128. <el-button @click="englishDialogVisible = false">取 消</el-button>
  7129. <el-button type="primary" @click="addEnglish">确 定</el-button>
  7130. </span>
  7131. </el-dialog>
  7132. <el-dialog
  7133. title="选择课程模板"
  7134. :visible.sync="templateDialog"
  7135. :append-to-body="true"
  7136. width="630px"
  7137. :before-close="handleClose"
  7138. class="dialog_diy"
  7139. >
  7140. <div class="template_box">
  7141. <div
  7142. class="wordTeacher"
  7143. v-for="(aa, indexF) in templateArray"
  7144. :key="indexF"
  7145. @click="checkctJson(aa)"
  7146. :class="{ wordTeacherA: ctJson.id == aa.id }"
  7147. >
  7148. <div class="wordPic">
  7149. <img src="../../../assets/icon/new/course_template.png" alt />
  7150. </div>
  7151. <el-tooltip effect="dark" :content="aa.title" placement="top">
  7152. <div
  7153. style="
  7154. margin-top: 10px;
  7155. line-height: 19px;
  7156. overflow: hidden;
  7157. text-overflow: ellipsis;
  7158. white-space: nowrap;
  7159. padding: 0 10px;
  7160. box-sizing: border-box;
  7161. width: 100%;
  7162. "
  7163. >
  7164. {{ aa.title }}
  7165. </div>
  7166. </el-tooltip>
  7167. </div>
  7168. <div
  7169. class="wordTeacher"
  7170. @click="checkctJson({ id: 1 })"
  7171. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  7172. :class="{ wordTeacherA: ctJson.id == 1 }"
  7173. >
  7174. <div class="wordPic">
  7175. <img src="../../../assets/icon/new/course_template.png" alt />
  7176. </div>
  7177. <div
  7178. style="
  7179. margin-top: 10px;
  7180. line-height: 19px;
  7181. overflow: hidden;
  7182. text-overflow: ellipsis;
  7183. white-space: nowrap;
  7184. padding: 0 20px;
  7185. "
  7186. >
  7187. 简易模板
  7188. </div>
  7189. </div>
  7190. <div
  7191. class="wordTeacher"
  7192. @click="checkctJson({ id: 2 })"
  7193. v-if="isPasteStage"
  7194. :class="{ wordTeacherA: ctJson.id == 2 }"
  7195. >
  7196. <div class="wordPic">
  7197. <img src="../../../assets/icon/new/course_template.png" alt />
  7198. </div>
  7199. <div
  7200. style="
  7201. margin-top: 10px;
  7202. line-height: 19px;
  7203. overflow: hidden;
  7204. text-overflow: ellipsis;
  7205. white-space: nowrap;
  7206. padding: 0 20px;
  7207. "
  7208. >
  7209. 智能粘贴模式
  7210. </div>
  7211. </div>
  7212. </div>
  7213. <span slot="footer" class="dialog-footer">
  7214. <el-button @click="templateDialog = false">取 消</el-button>
  7215. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  7216. </span>
  7217. </el-dialog>
  7218. <interVideo
  7219. :dialogVisibleVideo.sync="dialogVisibleVideo"
  7220. :videoJson="videoJson"
  7221. @add="addVideoJson"
  7222. ></interVideo>
  7223. <el-dialog
  7224. title="切换阶段顺序"
  7225. :visible.sync="dialogVisibleStageChange"
  7226. :append-to-body="true"
  7227. width="400px"
  7228. :before-close="handleClose"
  7229. class="dialog_diy dialog_diyStage"
  7230. >
  7231. <div class="change_stageBox">
  7232. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  7233. <div class="nt_taskBox">
  7234. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  7235. <div class="nt_taskName">
  7236. <el-tooltip effect="light" :content="t.dyName" placement="top">
  7237. <span>{{ t.dyName }}</span>
  7238. </el-tooltip>
  7239. </div>
  7240. </div>
  7241. <div class="moveBtn" v-if="unitJson3.length > 1">
  7242. <div
  7243. class="chapter_upload_up"
  7244. @click.stop="stageMove(1, tIndex)"
  7245. ></div>
  7246. <div
  7247. class="chapter_upload_down"
  7248. @click.stop="stageMove(2, tIndex)"
  7249. ></div>
  7250. </div>
  7251. </div>
  7252. </div>
  7253. <span slot="footer" class="dialog-footer">
  7254. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  7255. <el-button type="primary" @click="updateChange">确定</el-button>
  7256. </span>
  7257. </el-dialog>
  7258. <el-dialog
  7259. title="添加资源模板"
  7260. :visible.sync="cetBoxDialog"
  7261. :append-to-body="true"
  7262. width="400px"
  7263. :before-close="handleClose"
  7264. class="dialog_diy"
  7265. >
  7266. <div class="addTypeChoose" style="justify-content: center">
  7267. <div style="min-width: 100px">模板名称:</div>
  7268. <el-input v-model="templateName" style="width: 200px"></el-input>
  7269. </div>
  7270. <div class="addTypeBox">
  7271. <div class="addTypeChoose">
  7272. <div style="min-width: 100px">选择一级分类:</div>
  7273. <el-select
  7274. v-model="setTypeJson.one"
  7275. placeholder="请选择"
  7276. @change="getTwoType(setTypeJson.one)"
  7277. style="width: 200px"
  7278. >
  7279. <el-option
  7280. v-for="(item, index) in oneJson"
  7281. :key="index"
  7282. :label="item.name"
  7283. :value="item.id"
  7284. >
  7285. </el-option>
  7286. </el-select>
  7287. </div>
  7288. <div class="addTypeChoose" v-if="setTypeJson.one != ''">
  7289. <div style="min-width: 100px">选择二级分类:</div>
  7290. <el-select
  7291. v-model="setTypeJson.two"
  7292. placeholder="请选择"
  7293. style="width: 200px"
  7294. >
  7295. <el-option
  7296. v-for="(item1, index1) in twoJson"
  7297. :key="index1"
  7298. :label="item1.name"
  7299. :value="item1.id"
  7300. >
  7301. </el-option>
  7302. </el-select>
  7303. </div>
  7304. </div>
  7305. <span slot="footer" class="dialog-footer">
  7306. <el-button type="primary" @click="addCETemplate()">确 认</el-button>
  7307. <el-button @click="close()">关 闭</el-button>
  7308. </span>
  7309. </el-dialog>
  7310. <evaBox
  7311. :userid="userid"
  7312. :oid="oid"
  7313. :org="org"
  7314. :dialogVisibleEva.sync="evaBoxDialog"
  7315. @updateEvaJson="updateEvaJson"
  7316. ></evaBox>
  7317. <EnglishVoice
  7318. :oid="oid"
  7319. :org="org"
  7320. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  7321. :englishVoiceJson="englishVoiceJson"
  7322. @setEnglishVoiceJson="setEnglishVoiceJson"
  7323. ></EnglishVoice>
  7324. </div>
  7325. </template>
  7326. <script>
  7327. import "../../../common/aws-sdk-2.235.1.min.js";
  7328. import { tools as toolsData } from "../../../common/tools.js";
  7329. // import "../../../common/aws-sdk-2.99.0.min.js";
  7330. import $ from "jquery";
  7331. import EditorBar from "../../../components/tools/wangEnduit";
  7332. import Table from "../../../components/tools/table";
  7333. import Mind from "../../tools/jsmind2";
  7334. import Time from "../../tools/time.vue";
  7335. import Sunburst from "../../tools/sunburst";
  7336. import SeeBoard from "../../tools/seeBoard";
  7337. import weilaiData from "../components/weilai.js";
  7338. import sourceDialog from "../teacherSource/dialog.vue";
  7339. import interVideo from "../interVideo/index.vue";
  7340. import englishRight from "../components/englishRight.vue";
  7341. import evaBox from "../evaBox/index.vue";
  7342. import EnglishVoice from "../EnglishVoice/index.vue";
  7343. export default {
  7344. components: {
  7345. EditorBar,
  7346. Mind,
  7347. Time,
  7348. Sunburst,
  7349. SeeBoard,
  7350. Table,
  7351. sourceDialog,
  7352. interVideo,
  7353. englishRight,
  7354. evaBox,
  7355. EnglishVoice,
  7356. },
  7357. data() {
  7358. return {
  7359. checkAll: false,
  7360. checkAll2: false,
  7361. chooseType: 1,
  7362. checkedCities: [],
  7363. isIndeterminate: true,
  7364. isIndeterminate2: true,
  7365. isSysPic: false,
  7366. isSysPic2: false,
  7367. steps: 1,
  7368. nbOrder: 0,
  7369. courseId: "",
  7370. chapToolsType: 0,
  7371. chapTools: [
  7372. {
  7373. tools: [],
  7374. toolDetail: "",
  7375. },
  7376. ],
  7377. line: "",
  7378. lineTitle: "",
  7379. sysPic: [],
  7380. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  7381. sentenceList2: [],
  7382. isPushTitleList: [],
  7383. lineCount: 0,
  7384. lineType: 0,
  7385. chapCount: 0,
  7386. courseName: "",
  7387. isTeacherSee: false,
  7388. highSetting: true,
  7389. courseText: "",
  7390. preTime: 0,
  7391. formLabelWidth: "100px",
  7392. choosePicVisible: false,
  7393. sysPicVisible: false,
  7394. sysPicVisible2: false,
  7395. uploadLoading1: false,
  7396. noneBtnImg: false,
  7397. updateBoolean2: false,
  7398. unitIndex: 0,
  7399. taskCount: 0,
  7400. dialogVisible: false,
  7401. dialogVisible1: false,
  7402. dialogVisible2: false,
  7403. dialogVisible3: false,
  7404. dialogVisible4: false,
  7405. dialogVisible5: false,
  7406. dialogVisible6: false,
  7407. dialogVisible7: false,
  7408. dialogVisible8: false,
  7409. dialogVisible9: false,
  7410. dialogVisibleClass: false,
  7411. dialogVisibleMember: false,
  7412. dialogVisibleMp3: false,
  7413. dialogVisibleSelect: false,
  7414. dialogVisibleSentence: false,
  7415. dialogVisibleRate: false,
  7416. dialogVisibleChoice: false,
  7417. dialogVisiblemb: false,
  7418. dialogVisibleInvite: false,
  7419. dialogVisibleSource: false,
  7420. dialogVisibleVideo: false,
  7421. dialogVisibleStageChange: false,
  7422. dialogVisibleupdataVideoT: false,
  7423. englishDialogVisible: false,
  7424. templateDialog: false,
  7425. ctJson: {},
  7426. isClickColor: 1,
  7427. toolIndexType: "",
  7428. publicTool: 0,
  7429. searchPeople: "",
  7430. searchTN: "",
  7431. userid: this.$route.query.userid,
  7432. oid: this.$route.query.oid,
  7433. org: this.$route.query.org,
  7434. role: this.$route.query.role,
  7435. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  7436. dialogVisibleTable: false,
  7437. dialogVisibleWord: false,
  7438. tableJson: { text: "" },
  7439. wordJson: { text: "" },
  7440. dialogVisibleMoreUpload: false,
  7441. dialogVisiblePreTime: false,
  7442. uploadJson: [],
  7443. classJuri: [],
  7444. gradeList: [],
  7445. cover: [], //课程封面
  7446. myWord: [],
  7447. evaJuri: [],
  7448. evalua: "",
  7449. targetArray: [],
  7450. eTitle: "",
  7451. eJson: {},
  7452. fid: "", //一级
  7453. sid: "", //二级
  7454. tid: "", //二级
  7455. typeMode: 1,
  7456. eJSONNum: 0,
  7457. data: {
  7458. meta: {
  7459. name: "example",
  7460. author: "dd@163.com",
  7461. version: "0.2",
  7462. },
  7463. format: "node_array",
  7464. data: [{ id: "root", isroot: true, topic: "" }],
  7465. },
  7466. askJson: {
  7467. askCount: 1,
  7468. askTitle: "",
  7469. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7470. },
  7471. askJson2: {},
  7472. testJson: {},
  7473. testJson2: {},
  7474. selectJson: {},
  7475. selectJson2: {},
  7476. rateJson: [],
  7477. unitJson2: [],
  7478. unitJson3: [],
  7479. unitJson: [
  7480. {
  7481. dyName: "", //单元标题
  7482. chapterInfo: [
  7483. {
  7484. isread: false,
  7485. chapterid: this.guid(),
  7486. title: "",
  7487. courseName: "",
  7488. taskJson: [
  7489. {
  7490. task: "",
  7491. taskDetail: "",
  7492. chapterData: [],
  7493. toolText: "",
  7494. toolChoose: [
  7495. {
  7496. tool: [],
  7497. toolDetail: "",
  7498. toolType: 0,
  7499. askCount: 1,
  7500. askTitle: "",
  7501. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7502. },
  7503. ],
  7504. isShowTools: false,
  7505. askCount: 1,
  7506. isFold: 1,
  7507. askTitle: "",
  7508. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7509. checkJson: [{ checkCount: [], checkPerent: [] }],
  7510. homeworkList: [],
  7511. },
  7512. ],
  7513. itemCount: 1,
  7514. fileList1: [],
  7515. video: [],
  7516. testData: [],
  7517. pData: [],
  7518. templateArray: [],
  7519. },
  7520. ],
  7521. },
  7522. ],
  7523. templateArray: [],
  7524. studentJuri: [],
  7525. teacherJuri: [],
  7526. checkboxList: [],
  7527. checkboxList2: [],
  7528. checkboxList3: [],
  7529. classSearch: "",
  7530. gradeId: "",
  7531. number: "",
  7532. tTitle: "",
  7533. tdetail: "",
  7534. templateC: {},
  7535. AttText: {},
  7536. AttTextType: 0,
  7537. AttTextIndex: 0,
  7538. cTemplate: "",
  7539. CourseType: [],
  7540. CourseType1: [],
  7541. CourseType2: [],
  7542. CourseTypeJson: {},
  7543. CourseTypeJson1: {},
  7544. courseTypeId: [],
  7545. courseTypeId1: [],
  7546. courseTypeSon: [],
  7547. clearArray: [],
  7548. pTypeCheck: [],
  7549. pTypeCheckName: [],
  7550. loading: false,
  7551. toolType: 0,
  7552. inputShow: true,
  7553. inputShow2: true,
  7554. toolIndex: 0,
  7555. cidType: 0,
  7556. answerQ: "",
  7557. answerQ2: "",
  7558. grade: [],
  7559. grade2: [],
  7560. courseUserid: "",
  7561. timer: null,
  7562. timer2: null,
  7563. pasteTimer: null,
  7564. checkId: "",
  7565. isDelete: 1,
  7566. addindex: 0,
  7567. selectSteps: 1,
  7568. groupJson: {},
  7569. dialogVisibleGroup: false,
  7570. rightBoxHeight: 10,
  7571. ManAarray: [],
  7572. checkBoolean: false,
  7573. inviteCode: [],
  7574. inviteId: "",
  7575. icode: "",
  7576. easyArray: [2, 4],
  7577. sourceData: {},
  7578. updateSourcePan: false,
  7579. videoJson: {},
  7580. isBtnDisplay: false,
  7581. isStepDisplay: false,
  7582. isPasteStage: false,
  7583. isPasteTask: false,
  7584. isPasteChoice: false,
  7585. imageList: [],
  7586. imageloading: false,
  7587. searchImageValue: "",
  7588. ppage: 1,
  7589. toolsData: toolsData,
  7590. oldIndex: 0,
  7591. dragType: "",
  7592. oldUnitIndex: 0,
  7593. oldData: null,
  7594. newIndex: "",
  7595. englishList: {},
  7596. typeIndex: "",
  7597. courseState: 2,
  7598. taskJSONa: [
  7599. {
  7600. task: "",
  7601. taskDetail: "",
  7602. chapterData: [],
  7603. toolText: "",
  7604. toolChoose: [
  7605. {
  7606. tool: [],
  7607. toolDetail: "",
  7608. toolType: 0,
  7609. askCount: 1,
  7610. askTitle: "",
  7611. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7612. },
  7613. ],
  7614. isShowTools: false,
  7615. askCount: 1,
  7616. isFold: 1,
  7617. askTitle: "",
  7618. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7619. checkJson: [{ checkCount: [], checkPerent: [] }],
  7620. homeworkList: [],
  7621. },
  7622. ],
  7623. checkUnitIndex: 0,
  7624. isdrag: "",
  7625. evaIndex: "",
  7626. evatIndex: "",
  7627. evaBoxDialog: false,
  7628. EnglishVoiceDialog: false,
  7629. englishVoiceJson: {},
  7630. cetIndex: "",
  7631. cettIndex: "",
  7632. cetBoxDialog: false,
  7633. templateName: "",
  7634. setTypeJson: {
  7635. one: "",
  7636. two: "",
  7637. },
  7638. twoJson: [],
  7639. oneJson: [],
  7640. updateKey:1
  7641. };
  7642. },
  7643. directives: {
  7644. autoHeight: {
  7645. update(el, binding) {
  7646. const { value } = binding;
  7647. if (value && typeof value === "number") {
  7648. el.style.height = `${value}px`;
  7649. } else {
  7650. el.style.height = "auto";
  7651. }
  7652. },
  7653. componentUpdated(el) {
  7654. el.style.height = `${el.scrollHeight + 5}px`;
  7655. },
  7656. },
  7657. },
  7658. computed: {
  7659. // rightBoxHeight: function () {
  7660. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7661. // },
  7662. offsetLetfPx: function () {
  7663. //addnum可以直接在模板语法里面用,相当于data内的值
  7664. return (
  7665. $(".cru_select")[this.unitIndex] &&
  7666. $(".cru_select")[this.unitIndex].offsetLeft + 5
  7667. );
  7668. },
  7669. getMan2() {
  7670. return function (people) {
  7671. let _people = people;
  7672. let _people2 = "";
  7673. if (this.ManAarray.length) {
  7674. for (var i = 0; i < this.ManAarray.length; i++) {
  7675. if (this.ManAarray[i].userid == people) {
  7676. _people2 = this.ManAarray[i].name;
  7677. break;
  7678. }
  7679. }
  7680. }
  7681. if (people == this.courseUserid) {
  7682. return "";
  7683. }
  7684. return this.ManAarray.length ? _people2 : "";
  7685. };
  7686. },
  7687. getListMan2() {
  7688. return function (list) {
  7689. let _people2 = [];
  7690. if (this.ManAarray.length) {
  7691. for (var j = 0; j < list.length; j++) {
  7692. let people = list[j];
  7693. for (var i = 0; i < this.ManAarray.length; i++) {
  7694. if (
  7695. this.ManAarray[i].userid == people &&
  7696. people != this.courseUserid
  7697. ) {
  7698. _people2.push(this.ManAarray[i].name);
  7699. break;
  7700. }
  7701. }
  7702. }
  7703. }
  7704. return this.ManAarray.length ? _people2.join("、") : "";
  7705. };
  7706. },
  7707. isInvite() {
  7708. return function (cid) {
  7709. let array = [];
  7710. for (var i = 0; i < this.inviteCode.length; i++) {
  7711. array.push(this.inviteCode[i].cid);
  7712. }
  7713. return array.indexOf(cid) != -1;
  7714. };
  7715. },
  7716. getInviteCodeC() {
  7717. return function (cid) {
  7718. let array = [];
  7719. for (var i = 0; i < this.inviteCode.length; i++) {
  7720. array.push(this.inviteCode[i].cid);
  7721. }
  7722. return this.inviteCode[array.indexOf(cid)].ic;
  7723. };
  7724. },
  7725. getClassC() {
  7726. return function (c) {
  7727. let _c2 = "";
  7728. if (this.grade.length) {
  7729. for (var i = 0; i < this.grade.length; i++) {
  7730. if (this.grade[i].id == c) {
  7731. _c2 = this.grade[i].name;
  7732. break;
  7733. }
  7734. }
  7735. }
  7736. return this.grade.length ? _c2 : "";
  7737. };
  7738. },
  7739. getListClassC() {
  7740. return function (list) {
  7741. let _c2 = [];
  7742. if (this.grade.length) {
  7743. for (var j = 0; j < list.length; j++) {
  7744. let c = list[j];
  7745. for (var i = 0; i < this.grade.length; i++) {
  7746. if (this.grade[i].id == c) {
  7747. _c2.push(this.grade[i].name);
  7748. break;
  7749. }
  7750. }
  7751. }
  7752. }
  7753. return this.grade.length ? _c2.join("、") : "";
  7754. };
  7755. },
  7756. },
  7757. watch: {
  7758. unitIndex(newValue, oldValue) {
  7759. if (this.isDelete == 2) {
  7760. this.isDelete = 1;
  7761. return;
  7762. }
  7763. if (this.cid != "") {
  7764. let _unitIndex = oldValue;
  7765. if (
  7766. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7767. JSON.stringify(this.unitJson[_unitIndex])
  7768. ) {
  7769. this.$refs.rightboxR.scrollTop = 0;
  7770. return;
  7771. }
  7772. let cPan = 1;
  7773. for (
  7774. var j = 0;
  7775. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7776. j++
  7777. ) {
  7778. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7779. j
  7780. ].proVisible = false;
  7781. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7782. j
  7783. ].proVisible2 = false;
  7784. if (
  7785. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7786. .length > 1
  7787. ) {
  7788. for (
  7789. var z = 0;
  7790. z <
  7791. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7792. .length;
  7793. z++
  7794. ) {
  7795. if (
  7796. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7797. .toolChoose[z].tool.length
  7798. ) {
  7799. this.$message.error("请把工具添加完整");
  7800. cPan = 2;
  7801. break;
  7802. }
  7803. }
  7804. }
  7805. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7806. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7807. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7808. (ele) => {
  7809. return ele.value != "";
  7810. }
  7811. );
  7812. }
  7813. }
  7814. if (cPan == 2) {
  7815. this.unitIndex = oldValue;
  7816. return;
  7817. }
  7818. for (var i = 0; i < this.unitJson.length; i++) {
  7819. if (this.addindex != i) {
  7820. delete this.unitJson[i].isUpdate;
  7821. }
  7822. }
  7823. this.$refs.rightboxR.scrollTop = 0;
  7824. this.addindex = -1;
  7825. let params = [
  7826. {
  7827. cid: this.cid,
  7828. chapters: JSON.stringify(this.unitJson),
  7829. uid: this.userid,
  7830. unitIndex: _unitIndex,
  7831. },
  7832. ];
  7833. this.ajax
  7834. .post(this.$store.state.api + "updateWorkNew4", params)
  7835. .then((res) => {
  7836. // this.$message({
  7837. // message: "修改成功",
  7838. // type: "success",
  7839. // });
  7840. // this.courseId = this.cid;
  7841. })
  7842. .catch((err) => {
  7843. this.$message.error("网络不佳");
  7844. console.error(err);
  7845. });
  7846. }
  7847. },
  7848. steps(newValue, old) {
  7849. if (newValue == 4) {
  7850. let cPan = 1;
  7851. for (var i = 0; i < this.unitJson.length; i++) {
  7852. for (
  7853. var j = 0;
  7854. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7855. j++
  7856. ) {
  7857. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7858. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7859. if (
  7860. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7861. ) {
  7862. for (
  7863. var z = 0;
  7864. z <
  7865. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7866. z++
  7867. ) {
  7868. if (
  7869. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z]
  7870. .tool.length
  7871. ) {
  7872. this.$message.error("请把工具添加完整");
  7873. cPan = 2;
  7874. break;
  7875. }
  7876. }
  7877. }
  7878. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7879. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7880. i
  7881. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7882. return ele.value != "";
  7883. });
  7884. }
  7885. }
  7886. }
  7887. this.inputShow = true;
  7888. if (cPan == 2) {
  7889. this.steps = old;
  7890. return;
  7891. }
  7892. this.goTo(
  7893. "/course?userid=" +
  7894. this.userid +
  7895. "&oid=" +
  7896. this.oid +
  7897. "&org=" +
  7898. this.org +
  7899. "&role=" +
  7900. this.role
  7901. );
  7902. }
  7903. },
  7904. },
  7905. methods: {
  7906. tableRowClassName({ row, rowIndex }) {
  7907. if ((rowIndex + 1) % 2 === 0) {
  7908. return "even_row";
  7909. } else {
  7910. return "";
  7911. }
  7912. },
  7913. close() {
  7914. this.cetIndex = "";
  7915. this.cettIndex = "";
  7916. this.templateName = "";
  7917. this.cetBoxDialog = false;
  7918. },
  7919. openAI() {
  7920. top.postMessage({ tools: "64" }, "*");
  7921. },
  7922. setMan() {
  7923. // let teacherJuri = this.teacherJuri2;
  7924. this.ManAarray = [];
  7925. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7926. if (_user.indexOf(this.userid) == -1) {
  7927. _user.push(this.userid);
  7928. }
  7929. if (_user.indexOf(this.courseUserid) == -1) {
  7930. _user.push(this.courseUserid);
  7931. }
  7932. let params = {
  7933. uid: _user.join(","),
  7934. };
  7935. this.ajax
  7936. .get(this.$store.state.api + "getAllUserById", params)
  7937. .then((res) => {
  7938. let teacherJuri = res.data[0];
  7939. this.ManAarray = teacherJuri;
  7940. })
  7941. .catch((err) => {
  7942. console.error(err);
  7943. });
  7944. },
  7945. previewImg(url) {
  7946. this.$hevueImgPreview(url);
  7947. },
  7948. btnDisplay(bool) {
  7949. this.isBtnDisplay = bool;
  7950. },
  7951. stepDisplay(bool) {
  7952. this.isStepDisplay = bool;
  7953. },
  7954. scrollChange() {
  7955. // this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  7956. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  7957. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  7958. this.rightBoxHeight = height1 + height2
  7959. },
  7960. addHw(e) {
  7961. var el = e.currentTarget;
  7962. el.getElementsByTagName("input")[0].click();
  7963. },
  7964. change(val) {
  7965. if (this.dialogVisible1) {
  7966. this.tdetail = val;
  7967. } else if (this.dialogVisible6) {
  7968. this.AttText.text = val;
  7969. } else if (this.dialogVisible2) {
  7970. this.cTemplate = val;
  7971. } else if (this.dialogVisibleTable) {
  7972. this.tableJson.text = val;
  7973. }
  7974. this.$forceUpdate();
  7975. console.log(val);
  7976. },
  7977. change2(val) {
  7978. console.log(val);
  7979. this.$forceUpdate();
  7980. },
  7981. handleClose(done) {
  7982. done();
  7983. },
  7984. closePan(tool) {
  7985. if (tool == 15) {
  7986. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  7987. this.dialogVisible8 = false;
  7988. } else {
  7989. this.closeConfirm(tool);
  7990. }
  7991. } else if (tool == 4) {
  7992. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  7993. this.dialogVisible5 = false;
  7994. } else {
  7995. this.closeConfirm(tool);
  7996. }
  7997. } else if (tool == 45) {
  7998. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  7999. this.dialogVisibleChoice = false;
  8000. } else {
  8001. this.closeConfirm(tool);
  8002. }
  8003. } else if (tool == 41) {
  8004. if (
  8005. JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)
  8006. ) {
  8007. this.dialogVisibleSelect = false;
  8008. } else {
  8009. this.closeConfirm(tool);
  8010. }
  8011. } else if (tool == 47) {
  8012. if (
  8013. JSON.stringify(this.sentenceList) ==
  8014. JSON.stringify(this.sentenceList2)
  8015. ) {
  8016. this.dialogVisibleSentence = false;
  8017. } else {
  8018. this.closeConfirm(tool);
  8019. }
  8020. } else if (tool == 69) {
  8021. if (
  8022. JSON.stringify(this.englishList) == JSON.stringify(this.englishList)
  8023. ) {
  8024. this.englishDialogVisible = false;
  8025. } else {
  8026. this.closeConfirm(tool);
  8027. }
  8028. }
  8029. },
  8030. closeConfirm(tool) {
  8031. this.$confirm("是否保存已编辑内容?", "提示", {
  8032. confirmButtonText: "保存",
  8033. cancelButtonText: "不保存",
  8034. type: "warning",
  8035. })
  8036. .then(() => {
  8037. if (tool == 15) {
  8038. this.addAnswer();
  8039. } else if (tool == 4) {
  8040. this.addAsk();
  8041. } else if (tool == 45) {
  8042. this.addTest();
  8043. } else if (tool == 41) {
  8044. this.addSelectAnswer();
  8045. } else if (tool == 47) {
  8046. this.addSentenceTool();
  8047. } else if (tool == 69) {
  8048. this.addEnglish();
  8049. }
  8050. })
  8051. .catch(() => {
  8052. if (tool == 15) {
  8053. this.dialogVisible8 = false;
  8054. } else if (tool == 4) {
  8055. this.dialogVisible5 = false;
  8056. } else if (tool == 45) {
  8057. this.dialogVisibleChoice = false;
  8058. } else if (tool == 41) {
  8059. this.dialogVisibleSelect = false;
  8060. } else if (tool == 47) {
  8061. this.dialogVisibleSentence = false;
  8062. } else if (tool == 69) {
  8063. this.englishDialogVisible = false;
  8064. }
  8065. });
  8066. },
  8067. addEnglish(jsonType) {
  8068. this.englishList.engTitle = this.$refs["engJson"].engList.engTitle;
  8069. this.englishList.englishText = this.$refs["engJson"].engList.englishText;
  8070. this.englishList.textJson = this.$refs["engJson"].engList.textJson;
  8071. if (
  8072. this.englishList.engTitle == "" ||
  8073. this.englishList.englishText == ""
  8074. ) {
  8075. this.$message.error("请将内容填写完整!");
  8076. return;
  8077. }
  8078. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8079. this.taskCount
  8080. ].toolChoose[this.toolIndex].englishList = this.englishList;
  8081. this.englishList = {};
  8082. if (jsonType && jsonType == 1) {
  8083. this.englishDialogVisible = true;
  8084. } else {
  8085. this.englishDialogVisible = false;
  8086. }
  8087. if (
  8088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8089. .toolChoose[this.toolIndex].tool != 69
  8090. ) {
  8091. this.addTools(69, this.taskCount, this.toolIndex);
  8092. }
  8093. },
  8094. imgChange2(i, j) {
  8095. var _tmp = this.testJson.testJson[i].checkList[j];
  8096. this.noneBtnImg = _tmp.length >= 1;
  8097. },
  8098. imgChange3(i) {
  8099. var _tmp = this.testJson.testJson[i];
  8100. this.noneBtnImg = _tmp.length >= 1;
  8101. },
  8102. imgChange1(file, fileList, type, itemTaskIndex) {
  8103. if (type == 1) {
  8104. var _tmp = this.cover;
  8105. } else if (
  8106. type == 2 ||
  8107. type == 3 ||
  8108. type == 6 ||
  8109. type == 7 ||
  8110. type == 8
  8111. ) {
  8112. var _tmp =
  8113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8114. .chapterData;
  8115. } else if (type == 4) {
  8116. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  8117. } else {
  8118. var _tmp =
  8119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8120. .homeworkList;
  8121. }
  8122. this.noneBtnImg = _tmp.length >= 1;
  8123. },
  8124. goTo(path) {
  8125. this.$router.push(path);
  8126. },
  8127. guid() {
  8128. var _num,
  8129. i,
  8130. _guid = "";
  8131. for (i = 0; i < 32; i++) {
  8132. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  8133. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  8134. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  8135. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  8136. _guid += "-";
  8137. }
  8138. }
  8139. return _guid;
  8140. },
  8141. retrunCourse() {
  8142. this.$confirm("是否保存已编辑内容?", "提示", {
  8143. confirmButtonText: "保存",
  8144. cancelButtonText: "不保存",
  8145. distinguishCancelAndClose: true,
  8146. type: "warning",
  8147. })
  8148. .then(() => {
  8149. if (this.cid == "" || this.cid == undefined) {
  8150. if (this.courseName == "") {
  8151. this.$message.error("请补充填写课程名称");
  8152. return;
  8153. } else {
  8154. this.addWork();
  8155. }
  8156. this.steps = 4;
  8157. } else {
  8158. if (this.courseName == "") {
  8159. this.$message.error("请补充填写课程名称");
  8160. return;
  8161. } else {
  8162. if (this.userid != this.courseUserid && this.role != "1") {
  8163. this.updateWork2();
  8164. } else {
  8165. this.updateWork();
  8166. }
  8167. this.steps = 4;
  8168. }
  8169. }
  8170. })
  8171. .catch((v) => {
  8172. console.log(v);
  8173. if (v == "cancel") {
  8174. this.goTo(
  8175. "/course?userid=" +
  8176. this.userid +
  8177. "&oid=" +
  8178. this.oid +
  8179. "&org=" +
  8180. this.org +
  8181. "&role=" +
  8182. this.role
  8183. );
  8184. }
  8185. });
  8186. },
  8187. lastSteps() {
  8188. if (this.steps == 4) {
  8189. this.goTo(
  8190. "/course?userid=" +
  8191. this.userid +
  8192. "&oid=" +
  8193. this.oid +
  8194. "&org=" +
  8195. this.org +
  8196. "&role=" +
  8197. this.role
  8198. );
  8199. } else {
  8200. // if (this.cidType == 0) {
  8201. // this.steps--;
  8202. // if (this.steps == 1) {
  8203. // setTimeout(() => {
  8204. // this.checkEva(this.checkId);
  8205. // setTimeout(() => {
  8206. // this.checkEva(this.checkId);
  8207. // }, 100);
  8208. // }, 100);
  8209. // }
  8210. // } else {
  8211. if (this.steps == 3) {
  8212. this.steps = 1;
  8213. setTimeout(() => {
  8214. this.checkEva(this.checkId);
  8215. setTimeout(() => {
  8216. this.checkEva(this.checkId);
  8217. }, 100);
  8218. }, 100);
  8219. }
  8220. // }
  8221. }
  8222. },
  8223. navSteps(s) {
  8224. if (this.courseName == "") {
  8225. this.$message.error("请补充填写课程名称");
  8226. return;
  8227. }
  8228. if (this.cidType == 0) {
  8229. if (this.steps == 1) {
  8230. if (this.cid == "" || this.cid == undefined) {
  8231. this.addWork();
  8232. } else {
  8233. if (this.userid != this.courseUserid && this.role != "1") {
  8234. // this.updateWork2();
  8235. } else {
  8236. this.updateWork();
  8237. }
  8238. }
  8239. }
  8240. if (s == 1) {
  8241. this.steps = 1;
  8242. setTimeout(() => {
  8243. this.checkEva(this.checkId);
  8244. setTimeout(() => {
  8245. this.checkEva(this.checkId);
  8246. }, 100);
  8247. }, 100);
  8248. }
  8249. if (s == 2) {
  8250. this.steps = 2;
  8251. }
  8252. if (s == 3) {
  8253. this.cTemplate = this.templateC.content;
  8254. this.dialogVisible2 = false;
  8255. this.steps = 3;
  8256. this.isClickColor = 1;
  8257. this.unitJson[
  8258. this.unitIndex
  8259. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8260. this.$forceUpdate();
  8261. setTimeout(() => {
  8262. this.checkEva(this.checkId);
  8263. setTimeout(() => {
  8264. this.checkEva(this.checkId);
  8265. }, 100);
  8266. }, 1000);
  8267. }
  8268. } else {
  8269. if (this.steps == 1) {
  8270. if (this.cid == "" || this.cid == undefined) {
  8271. this.addWork();
  8272. } else {
  8273. if (this.userid != this.courseUserid && this.role != "1") {
  8274. // this.updateWork2();
  8275. } else {
  8276. this.updateWork();
  8277. }
  8278. }
  8279. }
  8280. if (s == 1) {
  8281. this.steps = 1;
  8282. setTimeout(() => {
  8283. this.checkEva(this.checkId);
  8284. setTimeout(() => {
  8285. this.checkEva(this.checkId);
  8286. }, 100);
  8287. }, 100);
  8288. }
  8289. if (s == 3) {
  8290. this.cTemplate = this.templateC.content;
  8291. this.dialogVisible2 = false;
  8292. this.steps = 3;
  8293. this.isClickColor = 1;
  8294. this.unitJson[
  8295. this.unitIndex
  8296. ].chapterInfo[0].taskJson[0].toolOpen = true;
  8297. this.$forceUpdate();
  8298. setTimeout(() => {
  8299. this.checkEva(this.checkId);
  8300. setTimeout(() => {
  8301. this.checkEva(this.checkId);
  8302. }, 100);
  8303. }, 1000);
  8304. }
  8305. }
  8306. this.$refs.stepBox.scrollTop = 0;
  8307. },
  8308. nextSteps() {
  8309. // if (this.cidType == 1) {
  8310. // if (this.steps == 1) {
  8311. // if (this.courseName != "") {
  8312. // this.steps = 3;
  8313. // this.isClickColor = 1;
  8314. // this.unitJson[
  8315. // this.unitIndex
  8316. // ].chapterInfo[0].taskJson[0].toolOpen = true;
  8317. // this.$forceUpdate();
  8318. // setTimeout(() => {
  8319. // this.checkEva(this.checkId);
  8320. // setTimeout(() => {
  8321. // this.checkEva(this.checkId);
  8322. // }, 100);
  8323. // }, 1000);
  8324. // if (this.cid == "" || this.cid == undefined) {
  8325. // this.addWork();
  8326. // } else {
  8327. // if (this.userid != this.courseUserid && this.role != "1") {
  8328. // // this.updateWork2();
  8329. // } else {
  8330. // this.updateWork();
  8331. // }
  8332. // }
  8333. // } else {
  8334. // this.$message.error("请补充填写课程名称");
  8335. // return;
  8336. // }
  8337. // } else if (this.steps == 3) {
  8338. if (this.cid == "" || this.cid == undefined) {
  8339. if (this.courseName == "") {
  8340. this.$message.error("请补充填写课程名称");
  8341. return;
  8342. } else {
  8343. this.addWork();
  8344. // this.steps++;
  8345. this.steps = 4;
  8346. }
  8347. } else {
  8348. if (this.courseName == "") {
  8349. this.$message.error("请补充填写课程名称");
  8350. return;
  8351. } else {
  8352. if (this.userid != this.courseUserid && this.role != "1") {
  8353. this.updateWork2();
  8354. } else {
  8355. this.updateWork();
  8356. }
  8357. // this.steps++;
  8358. this.steps = 4;
  8359. }
  8360. }
  8361. // }
  8362. // } else {
  8363. // if (this.steps == 1) {
  8364. // if (this.courseName != "") {
  8365. // if (this.cid == "" || this.cid == undefined) {
  8366. // this.addWork();
  8367. // } else {
  8368. // if (this.userid != this.courseUserid && this.role != "1") {
  8369. // // this.updateWork2();
  8370. // } else {
  8371. // this.updateWork();
  8372. // }
  8373. // }
  8374. // this.steps++;
  8375. // } else {
  8376. // this.$message.error("请补充填写课程名称");
  8377. // return;
  8378. // }
  8379. // } else if (this.steps == 2) {
  8380. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  8381. // this.cTemplate = this.templateC.content;
  8382. // }
  8383. // this.dialogVisible2 = false;
  8384. // this.steps++;
  8385. // setTimeout(() => {
  8386. // this.checkEva(this.checkId);
  8387. // setTimeout(() => {
  8388. // this.checkEva(this.checkId);
  8389. // }, 100);
  8390. // }, 1000);
  8391. // } else if (this.steps == 3) {
  8392. // if (this.cid == "" || this.cid == undefined) {
  8393. // if (this.courseName == "") {
  8394. // this.$message.error("请补充填写课程名称");
  8395. // return;
  8396. // } else {
  8397. // this.addWork();
  8398. // this.steps++;
  8399. // }
  8400. // } else {
  8401. // if (this.courseName == "") {
  8402. // this.$message.error("请补充填写课程名称");
  8403. // return;
  8404. // } else {
  8405. // if (this.userid != this.courseUserid && this.role != "1") {
  8406. // this.updateWork2();
  8407. // } else {
  8408. // this.updateWork();
  8409. // }
  8410. // this.steps++;
  8411. // }
  8412. // }
  8413. // }
  8414. // }
  8415. // this.$refs.stepBox.scrollTop = 0;
  8416. },
  8417. unitSet(i) {
  8418. if (this.unitIndex == i) {
  8419. return;
  8420. }
  8421. this.unitIndex = i;
  8422. this.isClickColor = 1;
  8423. // this.$refs.rightboxR.scrollTop = 0;
  8424. this.$refs.unitBox.scrollTop = 0;
  8425. },
  8426. panUnitJson() {
  8427. let _unitIndex = this.unitIndex;
  8428. let cPan = 1;
  8429. for (
  8430. var j = 0;
  8431. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  8432. j++
  8433. ) {
  8434. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  8435. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  8436. j
  8437. ].proVisible2 = false;
  8438. if (
  8439. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8440. .length > 1
  8441. ) {
  8442. for (
  8443. var z = 0;
  8444. z <
  8445. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  8446. .length;
  8447. z++
  8448. ) {
  8449. if (
  8450. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  8451. z
  8452. ].tool.length
  8453. ) {
  8454. this.$message.error("请把工具添加完整");
  8455. cPan = 2;
  8456. break;
  8457. }
  8458. }
  8459. }
  8460. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  8461. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  8462. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  8463. (ele) => {
  8464. return ele.value != "";
  8465. }
  8466. );
  8467. }
  8468. }
  8469. return cPan;
  8470. },
  8471. unitOpen(i) {
  8472. if (this.unitJson[i].toolOpen) {
  8473. this.unitJson[i].toolOpen = false;
  8474. } else {
  8475. this.unitJson[i].toolOpen = true;
  8476. }
  8477. this.updateWork();
  8478. this.$forceUpdate();
  8479. },
  8480. unitSet2(i) {
  8481. if (this.panUnitJson() == 2) {
  8482. return;
  8483. }
  8484. // if(this.unitJson[i].toolOpen){
  8485. // this.unitJson[i].toolOpen = false
  8486. // this.updateWork()
  8487. // this.$forceUpdate()
  8488. // return
  8489. // }else {
  8490. this.unitJson[i].toolOpen = true;
  8491. // }
  8492. this.$forceUpdate();
  8493. if (this.unitIndex == i) {
  8494. return;
  8495. }
  8496. this.unitIndex = i;
  8497. this.isClickColor = 1;
  8498. // this.$refs.rightboxR.scrollTop = 0;
  8499. this.$refs.unitBox.scrollTop = 0;
  8500. },
  8501. updateCourseState(i) {
  8502. let params = [
  8503. {
  8504. cid: this.cid,
  8505. state: i,
  8506. },
  8507. ];
  8508. this.ajax
  8509. .post(this.$store.state.api + "updateCourseMode", params)
  8510. .then((res) => {
  8511. this.courseState = i;
  8512. })
  8513. .catch((err) => {
  8514. this.$message.error("网络不佳");
  8515. console.error(err);
  8516. });
  8517. },
  8518. time() {
  8519. if (!this.now) {
  8520. this.now = new Date().getTime();
  8521. return true;
  8522. } else {
  8523. let time = new Date().getTime();
  8524. if (time - this.now > 3000) {
  8525. this.now = time;
  8526. return true;
  8527. } else {
  8528. return false;
  8529. }
  8530. }
  8531. },
  8532. deleteUnit(i) {
  8533. var _this = this;
  8534. if (i == 0 && _this.unitJson.length == 1) {
  8535. _this
  8536. .$confirm("确定切换成任务模式吗?", "提示", {
  8537. confirmButtonText: "确定",
  8538. cancelButtonText: "取消",
  8539. type: "warning",
  8540. })
  8541. .then(() => {
  8542. _this.unitJson[i].dyName = "";
  8543. _this.updateCourseState(2);
  8544. })
  8545. .catch(() => {
  8546. return;
  8547. });
  8548. } else {
  8549. _this
  8550. .$confirm("确定删除此阶段吗?", "提示", {
  8551. confirmButtonText: "确定",
  8552. cancelButtonText: "取消",
  8553. type: "warning",
  8554. })
  8555. .then(() => {
  8556. _this.isDelete = 2;
  8557. // _this.unitIndex = _this.unitIndex - 1;
  8558. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  8559. // _this.$message.success("删除成功");
  8560. })
  8561. .catch(() => {
  8562. return;
  8563. });
  8564. }
  8565. },
  8566. deleteWork(chapid) {
  8567. let params = [
  8568. {
  8569. cid: this.cid,
  8570. chapters: JSON.stringify(this.unitJson),
  8571. uid: this.userid,
  8572. chapid: chapid,
  8573. },
  8574. ];
  8575. this.ajax
  8576. .post(this.$store.state.api + "deleteWork", params)
  8577. .then((res) => {
  8578. this.$message({
  8579. message: "删除成功",
  8580. type: "success",
  8581. });
  8582. let task = JSON.parse(
  8583. JSON.stringify(
  8584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson
  8585. )
  8586. );
  8587. this.unitJson.splice(this.unitIndex, 1);
  8588. if (this.unitIndex == 0) {
  8589. this.unitIndex = 0;
  8590. } else {
  8591. this.unitIndex = this.unitIndex - 1;
  8592. }
  8593. if (JSON.stringify(task) != JSON.stringify(this.taskJSONa)) {
  8594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [
  8595. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson,
  8596. ...task,
  8597. ];
  8598. }
  8599. })
  8600. .catch((err) => {
  8601. this.$message.error("网络不佳");
  8602. console.error(err);
  8603. });
  8604. },
  8605. deleteTool(itemTaskIndex, i) {
  8606. var _this = this;
  8607. if (_this.time()) {
  8608. _this
  8609. .$confirm("确定删除此工具吗?", "提示", {
  8610. confirmButtonText: "确定",
  8611. cancelButtonText: "取消",
  8612. type: "warning",
  8613. })
  8614. .then(() => {
  8615. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8616. itemTaskIndex
  8617. ].toolChoose.splice(i, 1);
  8618. _this.$message.success("删除成功");
  8619. })
  8620. .catch(() => {
  8621. return;
  8622. });
  8623. }
  8624. },
  8625. deleteSentence(i) {
  8626. var _this = this;
  8627. _this
  8628. .$confirm("确定删除此题目吗?", "提示", {
  8629. confirmButtonText: "确定",
  8630. cancelButtonText: "取消",
  8631. type: "warning",
  8632. })
  8633. .then(() => {
  8634. _this.sentenceList.splice(i, 1);
  8635. _this.$message.success("删除成功");
  8636. })
  8637. .catch(() => {
  8638. return;
  8639. });
  8640. },
  8641. deleteS(s, i, j) {
  8642. this.sentenceList[i].addSentence.splice(j, 1);
  8643. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  8644. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  8645. this.sentenceList[i].rightAnswer.splice(a, 1);
  8646. }
  8647. },
  8648. openT() {
  8649. top.postMessage({ tools: "25" }, "*");
  8650. },
  8651. deleteTask(i) {
  8652. var _this = this;
  8653. if (_this.time()) {
  8654. _this
  8655. .$confirm(
  8656. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  8657. 1 ==
  8658. i
  8659. ? "确定删除此任务吗?"
  8660. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  8661. "提示",
  8662. {
  8663. confirmButtonText: "确定",
  8664. cancelButtonText: "取消",
  8665. type: "warning",
  8666. }
  8667. )
  8668. .then(() => {
  8669. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  8670. i,
  8671. 1
  8672. );
  8673. _this.$message.success("删除成功");
  8674. })
  8675. .catch(() => {
  8676. return;
  8677. });
  8678. }
  8679. },
  8680. handlePictureCardPreview(file) {
  8681. this.dialogImageUrl = file.url;
  8682. },
  8683. clean(i, c) {
  8684. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  8685. },
  8686. handle_remove1(file, fileList, type) {
  8687. var _tmp = this.cover;
  8688. // for (var i = 0, len = _tmp.length; i < len; i++) {
  8689. // if (_tmp[i].uid == file.uid) {
  8690. // _tmp.splice(i, 1);
  8691. // break;
  8692. // }
  8693. // this.cover = _tmp;
  8694. // }
  8695. this.cover = [];
  8696. this.noneBtnImg = this.cover.length >= 1;
  8697. this.isSysPic = false;
  8698. this.isSysPic2 = false;
  8699. this.$forceUpdate();
  8700. },
  8701. addImg(e) {
  8702. var el = e.currentTarget;
  8703. el.getElementsByTagName("input")[0].click();
  8704. e.target.value = "";
  8705. },
  8706. addChaptersTools(i) {
  8707. this.chapTools = [
  8708. {
  8709. tools: [],
  8710. toolDetail: "",
  8711. },
  8712. ];
  8713. this.chapCount = i;
  8714. this.dialogVisible4 = true;
  8715. },
  8716. isNoFinsh() {
  8717. this.$message.warning("功能正在开发中");
  8718. },
  8719. addAttText(i) {
  8720. this.AttText = {
  8721. title: "",
  8722. text: "",
  8723. };
  8724. this.taskCount = i;
  8725. this.AttTextType = 0;
  8726. this.$forceUpdate();
  8727. this.dialogVisible6 = true;
  8728. setTimeout(() => {
  8729. this.$refs["fuInput"].focus();
  8730. }, 100);
  8731. },
  8732. openLine(i) {
  8733. this.line = "";
  8734. this.lineCount = i;
  8735. this.lineType = 0;
  8736. this.$forceUpdate();
  8737. this.dialogVisible7 = true;
  8738. },
  8739. pasteLine(i) {
  8740. navigator.clipboard
  8741. .readText()
  8742. .then((v) => {
  8743. console.log("获取剪贴板成功:", v);
  8744. const html = v;
  8745. const regex = /src="(.*?)"/g;
  8746. const match = regex.exec(html);
  8747. if (match && match[1]) {
  8748. console.log(match[1]);
  8749. this.$message.success("粘贴成功");
  8750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8751. i
  8752. ].chapterData.push({
  8753. name: "链接",
  8754. title: "嵌入代码",
  8755. url: match[1],
  8756. type: 8,
  8757. });
  8758. } else {
  8759. // console.log("未找到包含 src 属性的 iframe");
  8760. this.$message.error(
  8761. "系统没有找到粘贴对象,请首先复制可用于粘贴的链接。"
  8762. );
  8763. }
  8764. })
  8765. .catch((v) => {
  8766. console.log("获取剪贴板失败: ", v);
  8767. });
  8768. },
  8769. openSource(i) {
  8770. this.lineCount = i;
  8771. this.sourceData = {};
  8772. this.dialogVisibleSource = true;
  8773. this.updateSourcePan = false;
  8774. },
  8775. addSource() {
  8776. if (!Object.keys(this.sourceData).length) {
  8777. this.$message.error("请选择要上传的资源");
  8778. return;
  8779. }
  8780. let keys = Object.keys(this.sourceData);
  8781. for (var i = 0; i < keys.length; i++) {
  8782. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8783. this.lineCount
  8784. ].chapterData.push({
  8785. name: "链接",
  8786. title: this.sourceData[keys[i]].name,
  8787. url: this.sourceData[keys[i]].url,
  8788. type: 14,
  8789. id: keys[i],
  8790. });
  8791. }
  8792. this.$forceUpdate();
  8793. this.dialogVisibleSource = false;
  8794. },
  8795. updateSource() {
  8796. if (!Object.keys(this.sourceData).length) {
  8797. this.$message.error("请选择要上传的资源");
  8798. return;
  8799. }
  8800. let keys = Object.keys(this.sourceData);
  8801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8802. this.taskCount
  8803. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  8804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8805. this.taskCount
  8806. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  8807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8808. this.taskCount
  8809. ].chapterData[this.lineCount].id = keys[0];
  8810. this.updateSourcePan = false;
  8811. this.$forceUpdate();
  8812. this.dialogVisibleSource = false;
  8813. },
  8814. deleteM(i, j) {
  8815. this.testJson.testJson[i].timuList.splice(j, 1);
  8816. },
  8817. beforeUploadTiMu(event, i) {
  8818. const loading = this.openLoading();
  8819. var file = event.target.files[0];
  8820. var credentials = {
  8821. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8822. secretAccessKey: "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",
  8823. }; //秘钥形式的登录上传
  8824. window.AWS.config.update(credentials);
  8825. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8826. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8827. var _this = this;
  8828. if (file) {
  8829. var params = {
  8830. Key:
  8831. file.name.split(".")[0] +
  8832. new Date().getTime() +
  8833. "." +
  8834. file.name.split(".")[file.name.split(".").length - 1],
  8835. ContentType: file.type,
  8836. Body: file,
  8837. "Access-Control-Allow-Credentials": "*",
  8838. ACL: "public-read",
  8839. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8840. var options = {
  8841. partSize: 2048 * 1024 * 1024,
  8842. queueSize: 2,
  8843. leavePartsOnError: true,
  8844. };
  8845. bucket
  8846. .upload(params, options)
  8847. .on("httpUploadProgress", function (evt) {
  8848. //这里可以写进度条
  8849. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8850. })
  8851. .send(function (err, data) {
  8852. loading.close();
  8853. if (err) {
  8854. _this.$message.error("上传失败");
  8855. } else {
  8856. if (_this.testJson.testJson[i].timuList) {
  8857. _this.testJson.testJson[i].timuList.push({
  8858. src: data.Location,
  8859. });
  8860. } else {
  8861. _this.testJson.testJson[i].timuList = [];
  8862. _this.testJson.testJson[i].timuList.push({
  8863. src: data.Location,
  8864. });
  8865. }
  8866. _this.imgChange3(i);
  8867. _this.$forceUpdate();
  8868. }
  8869. });
  8870. }
  8871. },
  8872. beforeUploadTi(event, i, j) {
  8873. const loading = this.openLoading();
  8874. var file = event.target.files[0];
  8875. var credentials = {
  8876. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8877. secretAccessKey: "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",
  8878. }; //秘钥形式的登录上传
  8879. window.AWS.config.update(credentials);
  8880. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8881. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8882. var _this = this;
  8883. if (file) {
  8884. var params = {
  8885. Key:
  8886. file.name.split(".")[0] +
  8887. new Date().getTime() +
  8888. "." +
  8889. file.name.split(".")[file.name.split(".").length - 1],
  8890. ContentType: file.type,
  8891. Body: file,
  8892. "Access-Control-Allow-Credentials": "*",
  8893. ACL: "public-read",
  8894. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8895. var options = {
  8896. partSize: 2048 * 1024 * 1024,
  8897. queueSize: 2,
  8898. leavePartsOnError: true,
  8899. };
  8900. bucket
  8901. .upload(params, options)
  8902. .on("httpUploadProgress", function (evt) {
  8903. //这里可以写进度条
  8904. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8905. })
  8906. .send(function (err, data) {
  8907. loading.close();
  8908. if (err) {
  8909. _this.$message.error("上传失败");
  8910. } else {
  8911. _this.testJson.testJson[i].checkList[j] = {};
  8912. _this.testJson.testJson[i].checkList[j].src = data.Location;
  8913. _this.testJson.testJson[i].checkList[j].imgType = 1;
  8914. _this.imgChange2(i, j);
  8915. _this.$forceUpdate();
  8916. }
  8917. });
  8918. }
  8919. },
  8920. beforeUpload1(event, type) {
  8921. // const loading = this.openLoading();
  8922. var file = event.target.files[0];
  8923. var credentials = {
  8924. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8925. secretAccessKey: "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",
  8926. }; //秘钥形式的登录上传
  8927. window.AWS.config.update(credentials);
  8928. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8929. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8930. var _this = this;
  8931. if (file) {
  8932. var params = {
  8933. Key:
  8934. file.name.split(".")[0] +
  8935. new Date().getTime() +
  8936. "." +
  8937. file.name.split(".")[file.name.split(".").length - 1],
  8938. ContentType: file.type,
  8939. Body: file,
  8940. "Access-Control-Allow-Credentials": "*",
  8941. ACL: "public-read",
  8942. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8943. var options = {
  8944. partSize: 2048 * 1024 * 1024,
  8945. queueSize: 2,
  8946. leavePartsOnError: true,
  8947. };
  8948. bucket
  8949. .upload(params, options)
  8950. .on("httpUploadProgress", function (evt) {
  8951. //这里可以写进度条
  8952. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8953. })
  8954. .send(function (err, data) {
  8955. // loading.close();
  8956. if (err) {
  8957. // var a = _this.$refs.upload1.uploadFiles;
  8958. // a.splice(a.length - 1, a.length);
  8959. _this.$message.error("上传失败");
  8960. } else {
  8961. // _this.cover.push({
  8962. // name: file.name,
  8963. // url: data.Location,
  8964. // uid: file.uid,
  8965. // });
  8966. _this.cover = [
  8967. {
  8968. name: file.name,
  8969. url: data.Location,
  8970. uid: file.uid,
  8971. },
  8972. ];
  8973. _this.imgChange1(null, null, 1, null);
  8974. _this.choosePicVisible = false;
  8975. console.log(data.Location);
  8976. }
  8977. });
  8978. }
  8979. },
  8980. beforeUploadSelect(event, type) {
  8981. // const loading = this.openLoading();
  8982. var file = event.target.files[0];
  8983. var credentials = {
  8984. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8985. secretAccessKey: "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",
  8986. }; //秘钥形式的登录上传
  8987. window.AWS.config.update(credentials);
  8988. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8989. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8990. var _this = this;
  8991. if (file) {
  8992. var params = {
  8993. Key:
  8994. file.name.split(".")[0] +
  8995. new Date().getTime() +
  8996. "." +
  8997. file.name.split(".")[file.name.split(".").length - 1],
  8998. ContentType: file.type,
  8999. Body: file,
  9000. "Access-Control-Allow-Credentials": "*",
  9001. ACL: "public-read",
  9002. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9003. var options = {
  9004. partSize: 2048 * 1024 * 1024,
  9005. queueSize: 2,
  9006. leavePartsOnError: true,
  9007. };
  9008. bucket
  9009. .upload(params, options)
  9010. .on("httpUploadProgress", function (evt) {
  9011. //这里可以写进度条
  9012. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9013. })
  9014. .send(function (err, data) {
  9015. // loading.close();
  9016. if (err) {
  9017. _this.$message.error("上传失败");
  9018. } else {
  9019. _this.selectJson.url = data.Location;
  9020. console.log(data.Location);
  9021. }
  9022. });
  9023. }
  9024. },
  9025. chooseSysPic(p) {
  9026. this.cover = [];
  9027. setTimeout(() => {
  9028. this.cover[0] = {
  9029. name: "系统图片.png",
  9030. url: p,
  9031. };
  9032. this.imgChange1(null, null, 1, null);
  9033. this.$forceUpdate();
  9034. }, 0);
  9035. this.isSysPic = true;
  9036. this.isSysPic2 = false;
  9037. this.sysPicVisible = false;
  9038. this.$forceUpdate();
  9039. },
  9040. chooseSysPic2(p) {
  9041. this.cover = [];
  9042. setTimeout(() => {
  9043. this.cover[0] = {
  9044. name: "网络图片.png",
  9045. url: p,
  9046. };
  9047. this.imgChange1(null, null, 1, null);
  9048. this.$forceUpdate();
  9049. }, 0);
  9050. this.isSysPic2 = true;
  9051. this.isSysPic = false;
  9052. this.sysPicVisible2 = false;
  9053. this.$forceUpdate();
  9054. },
  9055. beforeUpload(data) {
  9056. this.$refs.upload1.uploadFiles;
  9057. this.uploadLoading1 = true;
  9058. var file = data.file;
  9059. var credentials = {
  9060. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9061. secretAccessKey: "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",
  9062. }; //秘钥形式的登录上传
  9063. window.AWS.config.update(credentials);
  9064. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9065. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9066. var _this = this;
  9067. if (file) {
  9068. var params = {
  9069. Key:
  9070. file.name.split(".")[0] +
  9071. new Date().getTime() +
  9072. "." +
  9073. file.name.split(".")[file.name.split(".").length - 1],
  9074. ContentType: file.type,
  9075. Body: file,
  9076. "Access-Control-Allow-Credentials": "*",
  9077. ACL: "public-read",
  9078. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9079. var options = {
  9080. partSize: 2048 * 1024 * 1024,
  9081. queueSize: 2,
  9082. leavePartsOnError: true,
  9083. };
  9084. bucket
  9085. .upload(params, options)
  9086. .on("httpUploadProgress", function (evt) {
  9087. //这里可以写进度条
  9088. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9089. })
  9090. .send(function (err, data) {
  9091. _this.uploadLoading1 = false;
  9092. if (err) {
  9093. // var a = _this.$refs.upload1.uploadFiles;
  9094. // a.splice(a.length - 1, a.length);
  9095. _this.$message.error("上传失败");
  9096. } else {
  9097. //上传成功处理
  9098. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  9099. name: file.name,
  9100. url: data.Location,
  9101. uid: file.uid,
  9102. });
  9103. _this.imgChange();
  9104. console.log(data.Location);
  9105. }
  9106. });
  9107. }
  9108. },
  9109. onExceed() {
  9110. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  9111. },
  9112. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  9113. // const loading = this.openLoading();
  9114. var file = event.target.files[0];
  9115. var credentials = {
  9116. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9117. secretAccessKey: "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",
  9118. }; //秘钥形式的登录上传
  9119. window.AWS.config.update(credentials);
  9120. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9121. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9122. var _this = this;
  9123. if (type == 3) {
  9124. var b = [
  9125. "DOC",
  9126. "DOCX",
  9127. "DOCM",
  9128. "DOTM",
  9129. "DOTX",
  9130. "PPTX",
  9131. "PPSX",
  9132. "PPT",
  9133. "PPS",
  9134. "PPTM",
  9135. "POTM",
  9136. "PPAM",
  9137. "POTX",
  9138. "PPSM",
  9139. ];
  9140. if (
  9141. b.indexOf(
  9142. file.name
  9143. .split(".")
  9144. [file.name.split(".").length - 1].toLocaleUpperCase()
  9145. ) != -1
  9146. ) {
  9147. if (file.size / 1024 / 1024 > 80) {
  9148. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9149. this.inputShow = true;
  9150. // var a = _this.$refs.upload1.uploadFiles;
  9151. // a.splice(a.length - 1, a.length);
  9152. // loading.close();
  9153. return;
  9154. }
  9155. } else if (
  9156. file.name
  9157. .split(".")
  9158. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9159. ) {
  9160. if (file.size / 1024 / 1024 > 80) {
  9161. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9162. this.inputShow = true;
  9163. // var a = _this.$refs.upload1.uploadFiles;
  9164. // a.splice(a.length - 1, a.length);
  9165. // loading.close();
  9166. return;
  9167. }
  9168. }
  9169. }
  9170. this.inputShow = false;
  9171. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9172. itemTaskIndex
  9173. ].progress = 0;
  9174. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9175. itemTaskIndex
  9176. ].proVisible = true;
  9177. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9178. itemTaskIndex
  9179. ].isFinishSize = 0;
  9180. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9181. itemTaskIndex
  9182. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9183. _this.$forceUpdate();
  9184. if (file) {
  9185. var params = {
  9186. Key:
  9187. file.name.split(".")[0] +
  9188. new Date().getTime() +
  9189. "." +
  9190. file.name.split(".")[file.name.split(".").length - 1],
  9191. ContentType: file.type,
  9192. Body: file,
  9193. "Access-Control-Allow-Credentials": "*",
  9194. ACL: "public-read",
  9195. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9196. var options = {
  9197. partSize: 2048 * 1024 * 1024,
  9198. queueSize: 2,
  9199. leavePartsOnError: true,
  9200. };
  9201. bucket
  9202. .upload(params, options)
  9203. .on("httpUploadProgress", function (evt) {
  9204. //这里可以写进度条
  9205. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9206. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9207. itemTaskIndex
  9208. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9209. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9210. itemTaskIndex
  9211. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9212. _this.$forceUpdate();
  9213. })
  9214. .send(function (err, data) {
  9215. // loading.close();
  9216. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9217. itemTaskIndex
  9218. ].progress = 100;
  9219. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9220. itemTaskIndex
  9221. ].isFinishSize =
  9222. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9223. itemTaskIndex
  9224. ].isAllSize;
  9225. _this.$forceUpdate();
  9226. setTimeout(() => {
  9227. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9228. itemTaskIndex
  9229. ].proVisible = false;
  9230. _this.$forceUpdate();
  9231. }, 1000);
  9232. _this.inputShow = true;
  9233. if (err) {
  9234. // var a = _this.$refs.upload1.uploadFiles;
  9235. // a.splice(a.length - 1, a.length);
  9236. _this.$message.error("上传失败");
  9237. } else {
  9238. if (type == 13) {
  9239. let _type = 2;
  9240. var imgA = [
  9241. "png",
  9242. "jpg",
  9243. "jpeg",
  9244. "bmp",
  9245. "gif",
  9246. "webp",
  9247. "psd",
  9248. "svg",
  9249. "tiff",
  9250. ];
  9251. var fileA = [
  9252. "PDF",
  9253. "DOC",
  9254. "DOCX",
  9255. "DOCM",
  9256. "DOTM",
  9257. "DOTX",
  9258. "PPTX",
  9259. "PPSX",
  9260. "PPT",
  9261. "PPS",
  9262. "PPTM",
  9263. "POTM",
  9264. "PPAM",
  9265. "POTX",
  9266. "PPSM",
  9267. "XLSX",
  9268. "XLS",
  9269. ];
  9270. var videoA = [
  9271. "AVI",
  9272. "NAVI",
  9273. "MPEG",
  9274. "ASF",
  9275. "MOV",
  9276. "WMV",
  9277. "3GP",
  9278. "RM",
  9279. "RMVB",
  9280. "FLV",
  9281. "F4V",
  9282. "H.264",
  9283. "H.265",
  9284. "REAL VIDEO",
  9285. "MKV",
  9286. "WebM",
  9287. "HDDVD",
  9288. "MP4",
  9289. "MPG",
  9290. "M4V",
  9291. "MGV",
  9292. "OGV",
  9293. "QTM",
  9294. "STR",
  9295. "AMC",
  9296. "DVX",
  9297. "EVO",
  9298. "DAT",
  9299. "OGG",
  9300. "OGM",
  9301. ];
  9302. if (
  9303. fileA.indexOf(
  9304. data.Location.split(".")[
  9305. data.Location.split(".").length - 1
  9306. ].toLocaleUpperCase()
  9307. ) != -1
  9308. ) {
  9309. _type = 3;
  9310. } else if (
  9311. videoA.indexOf(
  9312. data.Location.split(".")[
  9313. data.Location.split(".").length - 1
  9314. ].toLocaleUpperCase()
  9315. ) != -1
  9316. ) {
  9317. _type = 2;
  9318. } else if (
  9319. imgA.indexOf(
  9320. data.Location.split(".")[
  9321. data.Location.split(".").length - 1
  9322. ].toLocaleLowerCase()
  9323. ) != -1
  9324. ) {
  9325. _type = 13;
  9326. } else {
  9327. _type = 12;
  9328. }
  9329. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9330. itemTaskIndex
  9331. ].chapterData.push({
  9332. name: file.name,
  9333. url: data.Location,
  9334. uid: file.uid,
  9335. type: _type,
  9336. });
  9337. _this.imgChange1(null, null, _type, itemTaskIndex);
  9338. } else if (type == 2 || type == 3 || type == 12) {
  9339. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9340. itemTaskIndex
  9341. ].chapterData.push({
  9342. name: file.name,
  9343. url: data.Location,
  9344. uid: file.uid,
  9345. type: type,
  9346. });
  9347. _this.imgChange1(null, null, type, itemTaskIndex);
  9348. } else if (type == 4) {
  9349. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9350. itemTaskIndex
  9351. ].fileList1.push({
  9352. name: file.name,
  9353. url: data.Location,
  9354. uid: file.uid,
  9355. });
  9356. _this.imgChange1(null, null, type, itemTaskIndex);
  9357. } else if (type == 5) {
  9358. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9359. itemTaskIndex
  9360. ].homeworkList.push({
  9361. name: file.name,
  9362. url: data.Location,
  9363. uid: file.uid,
  9364. });
  9365. _this.imgChange1(null, null, type, itemTaskIndex);
  9366. }
  9367. console.log(data.Location);
  9368. }
  9369. });
  9370. }
  9371. },
  9372. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  9373. // const loading = this.openLoading();
  9374. var file = event.target.files[0];
  9375. var credentials = {
  9376. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  9377. secretAccessKey: "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",
  9378. }; //秘钥形式的登录上传
  9379. window.AWS.config.update(credentials);
  9380. window.AWS.config.region = "cn-northwest-1"; //设置区域
  9381. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  9382. var _this = this;
  9383. if (type == 3) {
  9384. var b = [
  9385. "DOC",
  9386. "DOCX",
  9387. "DOCM",
  9388. "DOTM",
  9389. "DOTX",
  9390. "PPTX",
  9391. "PPSX",
  9392. "PPT",
  9393. "PPS",
  9394. "PPTM",
  9395. "POTM",
  9396. "PPAM",
  9397. "POTX",
  9398. "PPSM",
  9399. ];
  9400. if (
  9401. b.indexOf(
  9402. file.name
  9403. .split(".")
  9404. [file.name.split(".").length - 1].toLocaleUpperCase()
  9405. ) != -1
  9406. ) {
  9407. if (file.size / 1024 / 1024 > 80) {
  9408. this.$message.error("上传文件大于80兆,请重新选择文件!");
  9409. this.inputShow = true;
  9410. // var a = _this.$refs.upload1.uploadFiles;
  9411. // a.splice(a.length - 1, a.length);
  9412. // loading.close();
  9413. return;
  9414. }
  9415. } else if (
  9416. file.name
  9417. .split(".")
  9418. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  9419. ) {
  9420. if (file.size / 1024 / 1024 > 80) {
  9421. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  9422. this.inputShow = true;
  9423. // var a = _this.$refs.upload1.uploadFiles;
  9424. // a.splice(a.length - 1, a.length);
  9425. // loading.close();
  9426. return;
  9427. }
  9428. }
  9429. }
  9430. this.inputShow = false;
  9431. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9432. itemTaskIndex
  9433. ].progress = 0;
  9434. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9435. itemTaskIndex
  9436. ].proVisible = true;
  9437. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9438. itemTaskIndex
  9439. ].isFinishSize = 0;
  9440. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9441. itemTaskIndex
  9442. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  9443. _this.$forceUpdate();
  9444. if (file) {
  9445. var params = {
  9446. Key:
  9447. file.name.split(".")[0] +
  9448. new Date().getTime() +
  9449. "." +
  9450. file.name.split(".")[file.name.split(".").length - 1],
  9451. ContentType: file.type,
  9452. Body: file,
  9453. "Access-Control-Allow-Credentials": "*",
  9454. ACL: "public-read",
  9455. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  9456. var options = {
  9457. partSize: 2048 * 1024 * 1024,
  9458. queueSize: 2,
  9459. leavePartsOnError: true,
  9460. };
  9461. bucket
  9462. .upload(params, options)
  9463. .on("httpUploadProgress", function (evt) {
  9464. //这里可以写进度条
  9465. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  9466. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9467. itemTaskIndex
  9468. ].progress = parseInt((evt.loaded / evt.total) * 100);
  9469. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9470. itemTaskIndex
  9471. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  9472. _this.$forceUpdate();
  9473. })
  9474. .send(function (err, data) {
  9475. // loading.close();
  9476. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9477. itemTaskIndex
  9478. ].progress = 100;
  9479. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9480. itemTaskIndex
  9481. ].isFinishSize =
  9482. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9483. itemTaskIndex
  9484. ].isAllSize;
  9485. _this.$forceUpdate();
  9486. setTimeout(() => {
  9487. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9488. itemTaskIndex
  9489. ].proVisible = false;
  9490. _this.$forceUpdate();
  9491. }, 1000);
  9492. _this.inputShow = true;
  9493. if (err) {
  9494. // var a = _this.$refs.upload1.uploadFiles;
  9495. // a.splice(a.length - 1, a.length);
  9496. _this.$message.error("上传失败");
  9497. } else {
  9498. if (type == 2 || type == 3) {
  9499. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9500. itemTaskIndex
  9501. ].chapterData.push({
  9502. name: file.name,
  9503. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9504. // itemTaskIndex
  9505. // ].chapterData.length+1),
  9506. url: data.Location,
  9507. uid: file.uid,
  9508. type: type,
  9509. text: string,
  9510. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  9511. // itemTaskIndex
  9512. // ].chapterData.length + 1),
  9513. });
  9514. _this.imgChange1(null, null, type, itemTaskIndex);
  9515. } else if (type == 4) {
  9516. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9517. itemTaskIndex
  9518. ].fileList1.push({
  9519. name: file.name,
  9520. url: data.Location,
  9521. uid: file.uid,
  9522. });
  9523. _this.imgChange1(null, null, type, itemTaskIndex);
  9524. } else if (type == 5) {
  9525. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  9526. itemTaskIndex
  9527. ].homeworkList.push({
  9528. name: file.name,
  9529. url: data.Location,
  9530. uid: file.uid,
  9531. });
  9532. _this.imgChange1(null, null, type, itemTaskIndex);
  9533. }
  9534. console.log(data.Location);
  9535. }
  9536. });
  9537. }
  9538. },
  9539. addunit() {
  9540. this.unitJson.push({
  9541. dyName: "", //单元标题
  9542. isUpdate: 1,
  9543. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  9544. chapterInfo: [
  9545. {
  9546. isread: false,
  9547. chapterid: this.guid(),
  9548. title: "",
  9549. courseName: "",
  9550. taskJson: [
  9551. {
  9552. task: "",
  9553. taskDetail: "",
  9554. chapterData: [],
  9555. toolText: "",
  9556. toolChoose: [
  9557. {
  9558. tool: [],
  9559. toolDetail: "",
  9560. toolType: 0,
  9561. askCount: 1,
  9562. askTitle: "",
  9563. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9564. },
  9565. ],
  9566. isShowTools: false,
  9567. askCount: 1,
  9568. isFold: 1,
  9569. askTitle: "",
  9570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9571. checkJson: [{ checkCount: [], checkPerent: [] }],
  9572. homeworkList: [],
  9573. },
  9574. ],
  9575. itemCount: 1,
  9576. fileList1: [],
  9577. video: [],
  9578. testData: [],
  9579. pData: [],
  9580. templateArray: [],
  9581. },
  9582. ],
  9583. });
  9584. this.addindex = this.unitJson.length - 1;
  9585. setTimeout(() => {
  9586. this.unitIndex = this.unitJson.length - 1;
  9587. setTimeout(() => {
  9588. console.log(this.$refs.dyInput);
  9589. this.$refs.dyInput[0].focus();
  9590. }, 100);
  9591. this.unitSet(this.unitIndex);
  9592. }, 0);
  9593. },
  9594. addToolFun(itemTaskIndex) {
  9595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9596. itemTaskIndex
  9597. ].toolChoose.push({
  9598. tool: [],
  9599. toolDetail: "",
  9600. toolType: 0,
  9601. askCount: 1,
  9602. askTitle: "",
  9603. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9604. });
  9605. },
  9606. addTaskBorder() {
  9607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  9608. task: "",
  9609. taskDetail: "",
  9610. chapterData: [],
  9611. toolText: "",
  9612. toolChoose: [
  9613. {
  9614. tool: [],
  9615. toolDetail: "",
  9616. toolType: 0,
  9617. askCount: 1,
  9618. askTitle: "",
  9619. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9620. },
  9621. ],
  9622. isShowTools: false,
  9623. askCount: 1,
  9624. isFold: 1, //任务收起状态
  9625. askTitle: "",
  9626. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9627. checkJson: [{ checkCount: [], checkPerent: [] }],
  9628. homeworkList: [],
  9629. });
  9630. setTimeout(() => {
  9631. this.checkEva(this.checkId);
  9632. setTimeout(() => {
  9633. this.checkEva(this.checkId);
  9634. }, 100);
  9635. }, 100);
  9636. },
  9637. add(e, i) {
  9638. var el = e.currentTarget;
  9639. el.getElementsByTagName("input")[0].click();
  9640. },
  9641. fold(i, e) {
  9642. if (
  9643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0
  9644. ) {
  9645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  9646. } else {
  9647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9648. }
  9649. },
  9650. fold2(i) {
  9651. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  9652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9653. i
  9654. ].isFold2 = false;
  9655. } else {
  9656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  9657. }
  9658. this.$forceUpdate();
  9659. },
  9660. foldEva(i) {
  9661. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  9662. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9663. i
  9664. ].isEvaFold = false;
  9665. } else {
  9666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9667. i
  9668. ].isEvaFold = true;
  9669. setTimeout(() => {
  9670. this.checkEva(this.checkId);
  9671. setTimeout(() => {
  9672. this.checkEva(this.checkId);
  9673. }, 500);
  9674. }, 0);
  9675. }
  9676. this.$forceUpdate();
  9677. },
  9678. foldC(i) {
  9679. if (
  9680. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter
  9681. ) {
  9682. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9683. i
  9684. ].isFoldchapter = false;
  9685. } else {
  9686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9687. i
  9688. ].isFoldchapter = true;
  9689. }
  9690. this.$forceUpdate();
  9691. },
  9692. fold3(i, ti) {
  9693. if (
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti]
  9695. .isFold3
  9696. ) {
  9697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9698. ti
  9699. ].isFold3 = false;
  9700. } else {
  9701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  9702. ti
  9703. ].isFold3 = true;
  9704. }
  9705. this.$forceUpdate();
  9706. },
  9707. deleteHomeworkBox(unitIndex, index, i) {
  9708. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  9709. this.taskCount
  9710. ].homeworkList.splice(i, 1);
  9711. },
  9712. getStudent() {
  9713. let params = {
  9714. oid: this.oid,
  9715. cu: "",
  9716. cn: this.searchPeople,
  9717. };
  9718. this.ajax
  9719. .get(this.$store.state.api + "selectStudentAdd", params)
  9720. .then((res) => {
  9721. this.studentJuri = res.data[0];
  9722. })
  9723. .catch((err) => {
  9724. this.isLoading = false;
  9725. console.error(err);
  9726. });
  9727. },
  9728. getTeacher() {
  9729. let params = {
  9730. oid:
  9731. this.org && this.org != "undefined" && this.org != "null"
  9732. ? this.org
  9733. : this.oid,
  9734. cu: "",
  9735. cn: this.searchTN,
  9736. };
  9737. this.ajax
  9738. .get(
  9739. this.$store.state.api +
  9740. (this.org && this.org != "undefined" && this.org != "null"
  9741. ? "selectTeacherAddOrg"
  9742. : "selectTeacherAdd"),
  9743. params
  9744. )
  9745. .then((res) => {
  9746. let teacherJuri = res.data[0];
  9747. for (var i = 0; i < teacherJuri.length; i++) {
  9748. if (teacherJuri[i].userid == this.userid) {
  9749. teacherJuri.splice(i, 1);
  9750. break;
  9751. }
  9752. }
  9753. this.teacherJuri = teacherJuri;
  9754. let _check = [];
  9755. let _check2 = [];
  9756. for (var i = 0; i < this.teacherJuri.length; i++) {
  9757. var gid = this.teacherJuri[i].userid;
  9758. _check.push(gid);
  9759. }
  9760. for (var i = 0; i < this.checkboxList3.length; i++) {
  9761. var _id = this.checkboxList3[i];
  9762. if (_check.indexOf(_id) !== -1) {
  9763. _check2.push(_id);
  9764. }
  9765. }
  9766. this.checkAll2 = _check2.length === _check.length;
  9767. })
  9768. .catch((err) => {
  9769. console.error(err);
  9770. });
  9771. },
  9772. searchStudent() {
  9773. this.getStudent();
  9774. },
  9775. selectGrage() {
  9776. let params = {
  9777. oid: this.oid,
  9778. };
  9779. this.ajax
  9780. .get(this.$store.state.api + "selectGrageBySchool", params)
  9781. .then((res) => {
  9782. this.gradeList = res.data[0];
  9783. })
  9784. .catch((err) => {
  9785. this.isLoading = false;
  9786. console.error(err);
  9787. });
  9788. },
  9789. //获取班级列表
  9790. getClass() {
  9791. let params = {
  9792. oid: this.oid,
  9793. gid: this.gradeId,
  9794. cn: this.classSearch,
  9795. };
  9796. this.ajax
  9797. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  9798. .then((res) => {
  9799. if (!this.grade.length) {
  9800. this.grade = res.data[0];
  9801. }
  9802. this.grade2 = res.data[0];
  9803. this.classJuri = res.data[0];
  9804. let _check = [];
  9805. let _check2 = [];
  9806. for (var i = 0; i < this.grade2.length; i++) {
  9807. var gid = this.grade2[i].id;
  9808. _check.push(gid);
  9809. }
  9810. for (var i = 0; i < this.checkboxList2.length; i++) {
  9811. var _id = this.checkboxList2[i];
  9812. if (_check.indexOf(_id) !== -1) {
  9813. _check2.push(_id);
  9814. }
  9815. }
  9816. this.checkAll = _check2.length === _check.length;
  9817. })
  9818. .catch((err) => {
  9819. this.isLoading = false;
  9820. console.error(err);
  9821. });
  9822. },
  9823. CourseType2Change(val) {
  9824. this.pTypeCheck = [];
  9825. for (var i = 0; i < this.CourseType2.length; i++) {
  9826. let typeA = this.CourseType2[i];
  9827. if (val.indexOf(typeA.name) != -1) {
  9828. this.pTypeCheck.push(...typeA.id);
  9829. }
  9830. }
  9831. },
  9832. getChapterData(e, i, j, ic, type) {
  9833. e.stopPropagation();
  9834. this.updataC = true;
  9835. this.icc = ic;
  9836. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  9837. console.log("还不能下载图片喔");
  9838. }
  9839. },
  9840. deleteChapterData(e, i, j, ic, taskI) {
  9841. e.stopPropagation();
  9842. let _this = this;
  9843. _this
  9844. .$confirm("确定删除此项?", "提示", {
  9845. confirmButtonText: "确定",
  9846. cancelButtonText: "取消",
  9847. type: "warning",
  9848. })
  9849. .then(() => {
  9850. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(
  9851. ic,
  9852. 1
  9853. );
  9854. })
  9855. .catch(() => {
  9856. return;
  9857. });
  9858. },
  9859. updataVideoT(e, i, j, ic) {
  9860. // e.stopPropagation();
  9861. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  9862. // ic
  9863. // ].name = JSON.parse(JSON.stringify(e.target.value));
  9864. this.line =
  9865. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[ic].name;
  9866. this.taskCount = j;
  9867. this.lineCount = ic;
  9868. this.dialogVisibleupdataVideoT = true;
  9869. this.$forceUpdate();
  9870. },
  9871. updataVideoC() {
  9872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9873. this.taskCount
  9874. ].chapterData[this.lineCount].name = JSON.parse(
  9875. JSON.stringify(this.line)
  9876. );
  9877. this.dialogVisibleupdataVideoT = false;
  9878. this.$forceUpdate();
  9879. },
  9880. upCd(e, i, j, taskCount, ic) {
  9881. e.stopPropagation();
  9882. if (ic == 0) {
  9883. return;
  9884. }
  9885. var a = JSON.parse(
  9886. JSON.stringify(
  9887. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9888. ic - 1
  9889. ]
  9890. )
  9891. );
  9892. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  9893. JSON.parse(
  9894. JSON.stringify(
  9895. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9896. )
  9897. );
  9898. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9899. this.$forceUpdate();
  9900. },
  9901. downCd(e, i, j, taskCount, ic) {
  9902. e.stopPropagation();
  9903. if (
  9904. ic ==
  9905. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  9906. 1
  9907. ) {
  9908. return;
  9909. }
  9910. var a = JSON.parse(
  9911. JSON.stringify(
  9912. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[
  9913. ic + 1
  9914. ]
  9915. )
  9916. );
  9917. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  9918. JSON.parse(
  9919. JSON.stringify(
  9920. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]
  9921. )
  9922. );
  9923. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  9924. this.$forceUpdate();
  9925. },
  9926. async upTool(e, i, j, tooli) {
  9927. e.stopPropagation();
  9928. if (tooli == 0) {
  9929. return;
  9930. }
  9931. let count1 = await this.getWorksCount(3, i, j, tooli - 1);
  9932. let count2 = await this.getWorksCount(3, i, j, tooli);
  9933. if (count1 > 0 || count2 > 0) {
  9934. this.$confirm(
  9935. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9936. "提示",
  9937. {
  9938. confirmButtonText: "确定",
  9939. cancelButtonText: "取消",
  9940. type: "warning",
  9941. }
  9942. )
  9943. .then(() => {
  9944. var a = JSON.parse(
  9945. JSON.stringify(
  9946. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  9947. tooli - 1
  9948. ]
  9949. )
  9950. );
  9951. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  9952. JSON.parse(
  9953. JSON.stringify(
  9954. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9955. )
  9956. );
  9957. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9958. this.$forceUpdate();
  9959. })
  9960. .catch(() => {
  9961. return;
  9962. });
  9963. } else {
  9964. var a = JSON.parse(
  9965. JSON.stringify(
  9966. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]
  9967. )
  9968. );
  9969. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  9970. JSON.parse(
  9971. JSON.stringify(
  9972. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  9973. )
  9974. );
  9975. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  9976. this.$forceUpdate();
  9977. }
  9978. },
  9979. async downTool(e, i, j, tooli) {
  9980. e.stopPropagation();
  9981. if (
  9982. tooli ==
  9983. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length - 1
  9984. ) {
  9985. return;
  9986. }
  9987. let count1 = await this.getWorksCount(3, i, j, tooli + 1);
  9988. let count2 = await this.getWorksCount(3, i, j, tooli);
  9989. if (count1 > 0 || count2 > 0) {
  9990. this.$confirm(
  9991. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  9992. "提示",
  9993. {
  9994. confirmButtonText: "确定",
  9995. cancelButtonText: "取消",
  9996. type: "warning",
  9997. }
  9998. )
  9999. .then(() => {
  10000. var a = JSON.parse(
  10001. JSON.stringify(
  10002. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[
  10003. tooli + 1
  10004. ]
  10005. )
  10006. );
  10007. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10008. JSON.parse(
  10009. JSON.stringify(
  10010. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10011. )
  10012. );
  10013. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10014. this.$forceUpdate();
  10015. })
  10016. .catch(() => {
  10017. return;
  10018. });
  10019. } else {
  10020. var a = JSON.parse(
  10021. JSON.stringify(
  10022. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]
  10023. )
  10024. );
  10025. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  10026. JSON.parse(
  10027. JSON.stringify(
  10028. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]
  10029. )
  10030. );
  10031. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  10032. this.$forceUpdate();
  10033. }
  10034. },
  10035. addWork() {
  10036. let cPan = 1;
  10037. for (var i = 0; i < this.unitJson.length; i++) {
  10038. for (
  10039. var j = 0;
  10040. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10041. j++
  10042. ) {
  10043. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10044. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10045. if (
  10046. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10047. ) {
  10048. for (
  10049. var z = 0;
  10050. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10051. z++
  10052. ) {
  10053. if (
  10054. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10055. .length
  10056. ) {
  10057. this.$message.error("请把工具添加完整");
  10058. cPan = 2;
  10059. break;
  10060. }
  10061. }
  10062. }
  10063. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10064. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10065. i
  10066. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10067. return ele.value != "";
  10068. });
  10069. }
  10070. }
  10071. }
  10072. this.inputShow = true;
  10073. if (cPan == 2) {
  10074. this.steps--;
  10075. return;
  10076. }
  10077. for (var i = 0; i < this.unitJson.length; i++) {
  10078. delete this.unitJson[i].isUpdate;
  10079. }
  10080. let params = [
  10081. {
  10082. uid: this.userid,
  10083. title: this.courseName,
  10084. brief: this.courseText,
  10085. cover:
  10086. this.cover.length > 0
  10087. ? JSON.stringify(this.cover)
  10088. : JSON.stringify([
  10089. {
  10090. name: "noBanner.jpg",
  10091. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10092. uid: 1656409780264,
  10093. status: "success",
  10094. },
  10095. ]),
  10096. evaId: this.evalua,
  10097. astudent:
  10098. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10099. see: this.isTeacherSee == true ? 1 : 0,
  10100. chapters: JSON.stringify(this.unitJson),
  10101. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  10102. courseType: JSON.stringify(this.courseTypeId),
  10103. ateacher:
  10104. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10105. inviteCode: JSON.stringify(this.inviteCode),
  10106. highSetting: this.highSetting == true ? 1 : 0,
  10107. courseState: this.courseState,
  10108. },
  10109. ];
  10110. this.ajax
  10111. .post(this.$store.state.api + "addWorkNew2New", params)
  10112. .then((res) => {
  10113. console.log(this.steps);
  10114. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10115. this.$message({
  10116. message: "新增成功",
  10117. type: "success",
  10118. });
  10119. }
  10120. this.number = res.data.ordernumber;
  10121. this.courseId = res.data.courseId;
  10122. this.cid = res.data.courseId;
  10123. this.courseUserid = this.userid;
  10124. this.islogin = true;
  10125. })
  10126. .catch((err) => {
  10127. this.$message.error("网络不佳");
  10128. console.error(err);
  10129. });
  10130. },
  10131. goCourse() {
  10132. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  10133. },
  10134. updateWork2() {
  10135. let _unitIndex = this.unitIndex;
  10136. let cPan = 1;
  10137. for (
  10138. var j = 0;
  10139. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10140. j++
  10141. ) {
  10142. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10143. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10144. j
  10145. ].proVisible2 = false;
  10146. if (
  10147. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10148. .length > 1
  10149. ) {
  10150. for (
  10151. var z = 0;
  10152. z <
  10153. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10154. .length;
  10155. z++
  10156. ) {
  10157. if (
  10158. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10159. z
  10160. ].tool.length
  10161. ) {
  10162. this.$message.error("请把工具添加完整");
  10163. cPan = 2;
  10164. break;
  10165. }
  10166. }
  10167. }
  10168. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10169. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10170. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10171. (ele) => {
  10172. return ele.value != "";
  10173. }
  10174. );
  10175. }
  10176. }
  10177. this.inputShow = true;
  10178. if (cPan == 2) {
  10179. this.steps--;
  10180. return;
  10181. }
  10182. let params = [
  10183. {
  10184. cid: this.cid,
  10185. chapters: JSON.stringify(this.unitJson),
  10186. uid: this.userid,
  10187. unitIndex: _unitIndex,
  10188. },
  10189. ];
  10190. this.ajax
  10191. .post(this.$store.state.api + "updateWorkNew4", params)
  10192. .then((res) => {
  10193. this.$message({
  10194. message: "修改成功",
  10195. type: "success",
  10196. });
  10197. this.courseId = this.cid;
  10198. })
  10199. .catch((err) => {
  10200. this.$message.error("网络不佳");
  10201. console.error(err);
  10202. });
  10203. },
  10204. updateWork3(unitIndex) {
  10205. let _unitIndex = unitIndex;
  10206. let cPan = 1;
  10207. for (
  10208. var j = 0;
  10209. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  10210. j++
  10211. ) {
  10212. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  10213. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  10214. j
  10215. ].proVisible2 = false;
  10216. if (
  10217. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10218. .length > 1
  10219. ) {
  10220. for (
  10221. var z = 0;
  10222. z <
  10223. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  10224. .length;
  10225. z++
  10226. ) {
  10227. if (
  10228. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  10229. z
  10230. ].tool.length
  10231. ) {
  10232. this.$message.error("请把工具添加完整");
  10233. cPan = 2;
  10234. break;
  10235. }
  10236. }
  10237. }
  10238. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  10239. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  10240. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  10241. (ele) => {
  10242. return ele.value != "";
  10243. }
  10244. );
  10245. }
  10246. }
  10247. this.inputShow = true;
  10248. if (cPan == 2) {
  10249. this.steps--;
  10250. return;
  10251. }
  10252. let params = [
  10253. {
  10254. cid: this.cid,
  10255. chapters: JSON.stringify(this.unitJson),
  10256. uid: this.userid,
  10257. unitIndex: _unitIndex,
  10258. },
  10259. ];
  10260. this.ajax
  10261. .post(this.$store.state.api + "updateWorkNew4", params)
  10262. .then((res) => {
  10263. // this.$message({
  10264. // message: "修改成功",
  10265. // type: "success",
  10266. // });
  10267. this.courseId = this.cid;
  10268. })
  10269. .catch((err) => {
  10270. this.$message.error("网络不佳");
  10271. console.error(err);
  10272. });
  10273. },
  10274. updateWork() {
  10275. let cPan = 1;
  10276. for (var i = 0; i < this.unitJson.length; i++) {
  10277. for (
  10278. var j = 0;
  10279. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  10280. j++
  10281. ) {
  10282. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  10283. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  10284. if (
  10285. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  10286. ) {
  10287. for (
  10288. var z = 0;
  10289. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  10290. z++
  10291. ) {
  10292. if (
  10293. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  10294. .length
  10295. ) {
  10296. this.$message.error("请把工具添加完整");
  10297. cPan = 2;
  10298. break;
  10299. }
  10300. }
  10301. }
  10302. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  10303. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  10304. i
  10305. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  10306. return ele.value != "";
  10307. });
  10308. }
  10309. }
  10310. }
  10311. this.inputShow = true;
  10312. if (cPan == 2) {
  10313. this.steps--;
  10314. return;
  10315. }
  10316. for (var i = 0; i < this.unitJson.length; i++) {
  10317. delete this.unitJson[i].isUpdate;
  10318. }
  10319. let params = [
  10320. {
  10321. cid: this.cid,
  10322. title: this.courseName,
  10323. brief: this.courseText,
  10324. cover:
  10325. this.cover.length > 0
  10326. ? JSON.stringify(this.cover)
  10327. : JSON.stringify([
  10328. {
  10329. name: "noBanner.jpg",
  10330. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  10331. uid: 1656409780264,
  10332. status: "success",
  10333. },
  10334. ]),
  10335. evaId: this.evalua,
  10336. astudent:
  10337. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  10338. see: this.isTeacherSee == true ? 1 : 0,
  10339. chapters: JSON.stringify(this.unitJson),
  10340. template: this.myWord != "undefined" ? this.myWord : [],
  10341. uid: this.userid,
  10342. courseType: JSON.stringify(this.courseTypeId),
  10343. ateacher:
  10344. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  10345. inviteCode: JSON.stringify(this.inviteCode),
  10346. highSetting: this.highSetting == true ? 1 : 0,
  10347. },
  10348. ];
  10349. this.ajax
  10350. .post(this.$store.state.api + "updateWorkNew2New", params)
  10351. .then((res) => {
  10352. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  10353. if (this.cidType == 1) {
  10354. this.$message({
  10355. message: "修改成功",
  10356. type: "success",
  10357. });
  10358. } else {
  10359. this.$message({
  10360. message: "新增成功",
  10361. type: "success",
  10362. });
  10363. }
  10364. }
  10365. this.number = this.nbOrder;
  10366. this.courseId = this.cid;
  10367. })
  10368. .catch((err) => {
  10369. this.$message.error("网络不佳");
  10370. console.error(err);
  10371. });
  10372. },
  10373. insertWord() {
  10374. this.dialogVisible1 = true;
  10375. this.updateBoolean2 = false;
  10376. this.tTitle = "";
  10377. this.tdetail = "";
  10378. },
  10379. addWord() {
  10380. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  10381. name: this.tTitle,
  10382. content: this.tdetail,
  10383. uid: this.guid(),
  10384. });
  10385. this.dialogVisible1 = false;
  10386. },
  10387. upWord() {},
  10388. selectWord(uid, i, c) {
  10389. this.dialogVisible1 = true;
  10390. this.updateBoolean2 = true;
  10391. if (
  10392. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  10393. ) {
  10394. this.tTitle =
  10395. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  10396. this.tdetail =
  10397. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  10398. }
  10399. },
  10400. isAddPP() {
  10401. if (this.checkboxList.length > 0) {
  10402. this.$message({
  10403. message: "添加成功",
  10404. type: "success",
  10405. });
  10406. this.dialogVisible3 = false;
  10407. } else {
  10408. this.$message({
  10409. message: "请添加课程成员",
  10410. type: "error",
  10411. });
  10412. }
  10413. },
  10414. isAddClass() {
  10415. this.dialogVisibleClass = false;
  10416. },
  10417. isAddPPTeacher() {
  10418. this.dialogVisibleMember = false;
  10419. this.setMan();
  10420. },
  10421. getTemplate() {
  10422. this.ajax
  10423. .get(this.$store.state.api + "getCourseTemplateT", "")
  10424. .then((res) => {
  10425. this.templateArray = res.data[0];
  10426. this.getTemplateOid();
  10427. this.$forceUpdate();
  10428. })
  10429. .catch((err) => {});
  10430. },
  10431. getTemplateOid() {
  10432. let params = {
  10433. oid: this.oid,
  10434. };
  10435. this.ajax
  10436. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10437. .then((res) => {
  10438. if (res.data[0].length) {
  10439. this.templateArray = [...res.data[0], ...this.templateArray];
  10440. }
  10441. this.getTemplateOrg();
  10442. this.$forceUpdate();
  10443. })
  10444. .catch((err) => {});
  10445. },
  10446. getTemplateOrg() {
  10447. let params = {
  10448. oid: this.org,
  10449. };
  10450. this.ajax
  10451. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  10452. .then((res) => {
  10453. if (res.data[0].length) {
  10454. this.templateArray = [...res.data[0], ...this.templateArray];
  10455. }
  10456. this.$forceUpdate();
  10457. })
  10458. .catch((err) => {});
  10459. },
  10460. clearChoose() {
  10461. this.clearArray.splice(this.templateC.id, 1);
  10462. this.dialogVisible2 = false;
  10463. },
  10464. clearAttText() {
  10465. this.AttText = {
  10466. title: "",
  10467. text: "",
  10468. };
  10469. this.dialogVisible6 = false;
  10470. },
  10471. clearLine() {
  10472. this.line = "";
  10473. this.dialogVisible7 = false;
  10474. },
  10475. openTemplate() {
  10476. this.ctJson = {};
  10477. this.templateDialog = true;
  10478. },
  10479. checkctJson(json) {
  10480. if (this.ctJson.id == json.id) {
  10481. this.ctJson = {};
  10482. } else {
  10483. this.ctJson = json;
  10484. }
  10485. },
  10486. addTemplate(res) {
  10487. let _this = this;
  10488. let _res = [];
  10489. if (res.id == 1) {
  10490. _res = [
  10491. {
  10492. dyName: "", //单元标题
  10493. easy: 1,
  10494. chapterInfo: [
  10495. {
  10496. isread: false,
  10497. chapterid: this.guid(),
  10498. title: "",
  10499. courseName: "",
  10500. taskJson: [
  10501. {
  10502. task: "",
  10503. taskDetail: "",
  10504. chapterData: [],
  10505. toolText: "",
  10506. toolChoose: [
  10507. {
  10508. tool: [],
  10509. toolDetail: "",
  10510. toolType: 0,
  10511. askCount: 1,
  10512. askTitle: "",
  10513. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10514. },
  10515. ],
  10516. isShowTools: false,
  10517. askCount: 1,
  10518. isFold: 1,
  10519. askTitle: "",
  10520. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10521. checkJson: [{ checkCount: [], checkPerent: [] }],
  10522. homeworkList: [],
  10523. },
  10524. ],
  10525. itemCount: 1,
  10526. fileList1: [],
  10527. video: [],
  10528. testData: [],
  10529. pData: [],
  10530. templateArray: [],
  10531. },
  10532. ],
  10533. },
  10534. ];
  10535. this.updateCourseState(1);
  10536. } else if (res.id == 2) {
  10537. let stageData = [];
  10538. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10539. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  10540. if (!iframe && !iframe2) {
  10541. this.$message.error("请使用AI共创生成");
  10542. return;
  10543. }
  10544. let copyData = iframe ? iframe.contentWindow.copyData : false;
  10545. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  10546. if (
  10547. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  10548. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  10549. ) {
  10550. this.$message.error("请使用AI共创生成");
  10551. return;
  10552. }
  10553. stageData = copyData
  10554. ? copyData.stageData
  10555. : copyData2
  10556. ? copyData2.stageData
  10557. : [""];
  10558. for (var i = 0; i < stageData.length; i++) {
  10559. _res.push({
  10560. dyName: stageData[i], //单元标题
  10561. chapterInfo: [
  10562. {
  10563. isread: false,
  10564. chapterid: this.guid(),
  10565. title: "",
  10566. courseName: "",
  10567. taskJson: [
  10568. {
  10569. task: "",
  10570. taskDetail: "",
  10571. chapterData: [],
  10572. toolText: "",
  10573. toolChoose: [
  10574. {
  10575. tool: [],
  10576. toolDetail: "",
  10577. toolType: 0,
  10578. askCount: 1,
  10579. askTitle: "",
  10580. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10581. },
  10582. ],
  10583. isShowTools: false,
  10584. askCount: 1,
  10585. isFold: 1,
  10586. askTitle: "",
  10587. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10588. checkJson: [{ checkCount: [], checkPerent: [] }],
  10589. homeworkList: [],
  10590. },
  10591. ],
  10592. itemCount: 1,
  10593. fileList1: [],
  10594. video: [],
  10595. testData: [],
  10596. pData: [],
  10597. templateArray: [],
  10598. },
  10599. ],
  10600. });
  10601. }
  10602. this.updateCourseState(1);
  10603. } else if (!Object.keys(res).length) {
  10604. this.$message.error("请选择模板");
  10605. retrun;
  10606. } else {
  10607. _res = JSON.parse(res.chapters);
  10608. this.updateCourseState(parseInt(res.state));
  10609. }
  10610. _this
  10611. .$confirm(
  10612. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10613. "提示",
  10614. {
  10615. confirmButtonText: "确定",
  10616. cancelButtonText: "取消",
  10617. type: "warning",
  10618. }
  10619. )
  10620. .then(() => {
  10621. _this.unitJson = _res;
  10622. _this.updateWork();
  10623. // _this.steps++;
  10624. _this.templateDialog = false;
  10625. setTimeout(() => {
  10626. this.checkEva(this.checkId);
  10627. setTimeout(() => {
  10628. this.checkEva(this.checkId);
  10629. }, 100);
  10630. }, 1000);
  10631. })
  10632. .catch(() => {
  10633. return;
  10634. });
  10635. },
  10636. checkTemplate(res) {
  10637. let _this = this;
  10638. _this
  10639. .$confirm(
  10640. "确定选择课程模板吗?此操作将删除所有已编辑课程内容。",
  10641. "提示",
  10642. {
  10643. confirmButtonText: "确定",
  10644. cancelButtonText: "取消",
  10645. type: "warning",
  10646. }
  10647. )
  10648. .then(() => {
  10649. _this.unitJson = JSON.parse(res.chapters);
  10650. _this.steps++;
  10651. setTimeout(() => {
  10652. this.checkEva(this.checkId);
  10653. setTimeout(() => {
  10654. this.checkEva(this.checkId);
  10655. }, 100);
  10656. }, 1000);
  10657. })
  10658. .catch(() => {
  10659. return;
  10660. });
  10661. },
  10662. checkTemplate1(w) {
  10663. this.steps++;
  10664. },
  10665. checkTemplate2() {
  10666. let _this = this;
  10667. _this
  10668. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  10669. confirmButtonText: "确定",
  10670. cancelButtonText: "取消",
  10671. type: "warning",
  10672. })
  10673. .then(() => {
  10674. _this.unitIndex = 0;
  10675. _this.unitJson = [
  10676. {
  10677. dyName: "", //单元标题
  10678. chapterInfo: [
  10679. {
  10680. isread: false,
  10681. chapterid: this.guid(),
  10682. title: "",
  10683. courseName: "",
  10684. taskJson: [
  10685. {
  10686. task: "",
  10687. taskDetail: "",
  10688. chapterData: [],
  10689. toolText: "",
  10690. toolChoose: [
  10691. {
  10692. tool: [],
  10693. toolDetail: "",
  10694. toolType: 0,
  10695. askCount: 1,
  10696. askTitle: "",
  10697. askJson: [
  10698. { askstitle: "", askItem: 1, checkList: [] },
  10699. ],
  10700. },
  10701. ],
  10702. isShowTools: false,
  10703. askCount: 1,
  10704. isFold: 1,
  10705. askTitle: "",
  10706. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10707. checkJson: [{ checkCount: [], checkPerent: [] }],
  10708. homeworkList: [],
  10709. },
  10710. ],
  10711. itemCount: 1,
  10712. fileList1: [],
  10713. video: [],
  10714. testData: [],
  10715. pData: [],
  10716. templateArray: [],
  10717. },
  10718. ],
  10719. },
  10720. ];
  10721. this.steps++;
  10722. setTimeout(() => {
  10723. this.checkEva(this.checkId);
  10724. setTimeout(() => {
  10725. this.checkEva(this.checkId);
  10726. }, 100);
  10727. }, 1000);
  10728. this.updateWork();
  10729. })
  10730. .catch(() => {
  10731. return;
  10732. });
  10733. },
  10734. checkTemplate3() {
  10735. let _this = this;
  10736. _this
  10737. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  10738. confirmButtonText: "确定",
  10739. cancelButtonText: "取消",
  10740. type: "warning",
  10741. })
  10742. .then(() => {
  10743. _this.unitIndex = 0;
  10744. _this.unitJson = [
  10745. {
  10746. dyName: "", //单元标题
  10747. easy: 1,
  10748. chapterInfo: [
  10749. {
  10750. isread: false,
  10751. chapterid: this.guid(),
  10752. title: "",
  10753. courseName: "",
  10754. taskJson: [
  10755. {
  10756. task: "",
  10757. taskDetail: "",
  10758. chapterData: [],
  10759. toolText: "",
  10760. toolChoose: [
  10761. {
  10762. tool: [],
  10763. toolDetail: "",
  10764. toolType: 0,
  10765. askCount: 1,
  10766. askTitle: "",
  10767. askJson: [
  10768. { askstitle: "", askItem: 1, checkList: [] },
  10769. ],
  10770. },
  10771. ],
  10772. isShowTools: false,
  10773. askCount: 1,
  10774. isFold: 1,
  10775. askTitle: "",
  10776. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10777. checkJson: [{ checkCount: [], checkPerent: [] }],
  10778. homeworkList: [],
  10779. },
  10780. ],
  10781. itemCount: 1,
  10782. fileList1: [],
  10783. video: [],
  10784. testData: [],
  10785. pData: [],
  10786. templateArray: [],
  10787. },
  10788. ],
  10789. },
  10790. ];
  10791. // this.steps++;
  10792. this.updateWork();
  10793. })
  10794. .catch(() => {
  10795. return;
  10796. });
  10797. },
  10798. checkTemplate4() {
  10799. let _this = this;
  10800. _this
  10801. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  10802. confirmButtonText: "确定",
  10803. cancelButtonText: "取消",
  10804. type: "warning",
  10805. })
  10806. .then(() => {
  10807. _this.unitIndex = 0;
  10808. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  10809. this.steps++;
  10810. this.updateWork();
  10811. })
  10812. .catch(() => {
  10813. return;
  10814. });
  10815. },
  10816. wordNext() {
  10817. this.dialogVisible2 = false;
  10818. },
  10819. isAddOrUpdateAttText() {
  10820. if (this.AttTextType == 0) {
  10821. this.addAttTextMessage();
  10822. } else {
  10823. this.updateAttText();
  10824. }
  10825. },
  10826. isAddOrUpdateLine() {
  10827. if (!this.lineTitle) {
  10828. this.$message.error("请填写链接标题");
  10829. return;
  10830. }
  10831. if (this.lineType == 0) {
  10832. this.addLine();
  10833. } else {
  10834. this.updateLine();
  10835. }
  10836. },
  10837. addAttTextMessage() {
  10838. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10839. this.taskCount
  10840. ].chapterData.push({
  10841. name: this.AttText.title,
  10842. url: this.AttText.text,
  10843. type: 6,
  10844. });
  10845. this.imgChange1(null, null, 6, this.taskCount);
  10846. this.dialogVisible6 = false;
  10847. },
  10848. selectAttText(itemTaskIndex, i) {
  10849. this.AttText.title =
  10850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10851. itemTaskIndex
  10852. ].chapterData[i].name;
  10853. this.AttText.text =
  10854. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10855. itemTaskIndex
  10856. ].chapterData[i].url;
  10857. this.taskCount = itemTaskIndex;
  10858. this.AttTextIndex = i;
  10859. this.AttTextType = 1;
  10860. this.dialogVisible6 = true;
  10861. },
  10862. updateAttText() {
  10863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10864. this.taskCount
  10865. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  10866. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10867. this.taskCount
  10868. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  10869. this.dialogVisible6 = false;
  10870. },
  10871. addLine() {
  10872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10873. this.lineCount
  10874. ].chapterData.push({
  10875. name: "链接",
  10876. title: this.lineTitle,
  10877. url: this.line,
  10878. type: 8,
  10879. });
  10880. this.imgChange1(null, null, 8, this.lineCount);
  10881. this.dialogVisible7 = false;
  10882. },
  10883. selectLine(itemTaskIndex, i) {
  10884. this.line =
  10885. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10886. itemTaskIndex
  10887. ].chapterData[i].url;
  10888. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10889. itemTaskIndex
  10890. ].chapterData[i].title
  10891. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10892. .chapterData[i].title
  10893. : "";
  10894. this.taskCount = itemTaskIndex;
  10895. this.lineCount = i;
  10896. this.lineType = 1;
  10897. this.dialogVisible7 = true;
  10898. },
  10899. openUpdateSource(itemTaskIndex, i) {
  10900. this.sourceData = {};
  10901. let source =
  10902. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10903. .chapterData[i];
  10904. this.sourceData[source.id] = {};
  10905. this.sourceData[source.id].name = source.title;
  10906. this.sourceData[source.id].url = source.url;
  10907. this.dialogVisibleSource = true;
  10908. this.updateSourcePan = true;
  10909. this.taskCount = itemTaskIndex;
  10910. this.lineCount = i;
  10911. },
  10912. updateLine() {
  10913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10914. this.taskCount
  10915. ].chapterData[this.lineCount].url = this.line;
  10916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10917. this.taskCount
  10918. ].chapterData[this.lineCount].title = this.lineTitle;
  10919. this.dialogVisible7 = false;
  10920. },
  10921. addPP() {
  10922. this.dialogVisible3 = true;
  10923. },
  10924. goTo(path) {
  10925. this.$router.push(path);
  10926. },
  10927. openTools(itemTaskIndex, i, toolIndex) {
  10928. this.toolIndex = toolIndex;
  10929. this.taskCount = itemTaskIndex;
  10930. if (i == 4) {
  10931. if (toolIndex == null) {
  10932. var a =
  10933. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10934. .chapterData;
  10935. for (var i = 0; i < a.length; i++) {
  10936. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  10937. this.askJson =
  10938. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10939. itemTaskIndex
  10940. ].chapterData[i].askJson;
  10941. }
  10942. }
  10943. } else {
  10944. this.askJson = JSON.parse(
  10945. JSON.stringify(
  10946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10947. itemTaskIndex
  10948. ].toolChoose[toolIndex]
  10949. )
  10950. );
  10951. }
  10952. this.askJson2 = JSON.parse(JSON.stringify(this.askJson));
  10953. this.dialogVisible5 = true;
  10954. } else if (i == 45) {
  10955. if (
  10956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10957. .toolChoose[toolIndex].testJson
  10958. ) {
  10959. this.testJson = JSON.parse(
  10960. JSON.stringify(
  10961. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10962. itemTaskIndex
  10963. ].toolChoose[toolIndex].testJson
  10964. )
  10965. );
  10966. } else {
  10967. var testJson = {
  10968. testCount: 1,
  10969. testTitle: "",
  10970. testJson: [
  10971. {
  10972. teststitle: "",
  10973. testItem: 1,
  10974. checkList: [],
  10975. timuList: [],
  10976. answer: [],
  10977. type: "1",
  10978. },
  10979. ],
  10980. };
  10981. this.testJson = testJson;
  10982. }
  10983. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  10984. this.dialogVisibleChoice = true;
  10985. } else if (i == 47) {
  10986. if (
  10987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10988. .toolChoose[toolIndex].sentenceList
  10989. ) {
  10990. this.sentenceList = JSON.parse(
  10991. JSON.stringify(
  10992. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10993. itemTaskIndex
  10994. ].toolChoose[toolIndex].sentenceList
  10995. )
  10996. );
  10997. } else {
  10998. var sentenceList = [
  10999. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11000. ];
  11001. this.sentenceList = sentenceList;
  11002. }
  11003. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  11004. this.dialogVisibleSentence = true;
  11005. } else if (i == 48) {
  11006. if (
  11007. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11008. .toolChoose[toolIndex].tableJson
  11009. ) {
  11010. this.tableJson = JSON.parse(
  11011. JSON.stringify(
  11012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11013. itemTaskIndex
  11014. ].toolChoose[toolIndex].tableJson
  11015. )
  11016. );
  11017. } else {
  11018. var tableJson = { text: "" };
  11019. this.tableJson = tableJson;
  11020. }
  11021. this.dialogVisibleTable = true;
  11022. } else if (i == 52) {
  11023. if (
  11024. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11025. .toolChoose[toolIndex].wordJson
  11026. ) {
  11027. this.wordJson = JSON.parse(
  11028. JSON.stringify(
  11029. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11030. itemTaskIndex
  11031. ].toolChoose[toolIndex].wordJson
  11032. )
  11033. );
  11034. } else {
  11035. var wordJson = { text: "" };
  11036. this.wordJson = wordJson;
  11037. }
  11038. this.dialogVisibleWord = true;
  11039. // else if (i == 50) {
  11040. // if (
  11041. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11042. // .toolChoose[toolIndex].uploadJson
  11043. // ) {
  11044. // this.uploadJson = JSON.parse(
  11045. // JSON.stringify(
  11046. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11047. // itemTaskIndex
  11048. // ].toolChoose[toolIndex].uploadJson
  11049. // )
  11050. // );
  11051. // } else {
  11052. // var uploadJson = [];
  11053. // this.uploadJson = uploadJson;
  11054. // }
  11055. // this.dialogVisibleMoreUpload = true;
  11056. // }
  11057. } else if (i == 10) {
  11058. if (
  11059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11060. .toolChoose[toolIndex].preTime
  11061. ) {
  11062. this.preTime = JSON.parse(
  11063. JSON.stringify(
  11064. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11065. itemTaskIndex
  11066. ].toolChoose[toolIndex].preTime
  11067. )
  11068. );
  11069. } else {
  11070. var preTime = 0;
  11071. this.preTime = preTime;
  11072. }
  11073. this.dialogVisiblePreTime = true;
  11074. } else if (i == 49) {
  11075. if (
  11076. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11077. .toolChoose[toolIndex].groupJson
  11078. ) {
  11079. this.groupJson = JSON.parse(
  11080. JSON.stringify(
  11081. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11082. itemTaskIndex
  11083. ].toolChoose[toolIndex].groupJson
  11084. )
  11085. );
  11086. } else {
  11087. var groupJson = {
  11088. group: [{ name: "第1组" }],
  11089. number: undefined,
  11090. islock: 1,
  11091. };
  11092. this.groupJson = groupJson;
  11093. }
  11094. this.dialogVisibleGroup = true;
  11095. } else if (i == 62) {
  11096. if (
  11097. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11098. .toolChoose[toolIndex].videoJson
  11099. ) {
  11100. this.videoJson = JSON.parse(
  11101. JSON.stringify(
  11102. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11103. itemTaskIndex
  11104. ].toolChoose[toolIndex].videoJson
  11105. )
  11106. );
  11107. } else {
  11108. var videoJson = {
  11109. video: "",
  11110. setting: [],
  11111. };
  11112. this.videoJson = videoJson;
  11113. }
  11114. this.dialogVisibleVideo = true;
  11115. } else if (i == 15) {
  11116. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11117. itemTaskIndex
  11118. ].toolChoose[toolIndex].answerQ
  11119. ? JSON.parse(
  11120. JSON.stringify(
  11121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11122. itemTaskIndex
  11123. ].toolChoose[toolIndex].answerQ
  11124. )
  11125. )
  11126. : "";
  11127. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ));
  11128. this.dialogVisible8 = true;
  11129. } else if (i == 40) {
  11130. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11131. itemTaskIndex
  11132. ].toolChoose[toolIndex].rateJson
  11133. ? JSON.parse(
  11134. JSON.stringify(
  11135. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11136. itemTaskIndex
  11137. ].toolChoose[toolIndex].rateJson
  11138. )
  11139. )
  11140. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  11141. this.selectSteps = 1;
  11142. this.dialogVisibleRate = true;
  11143. } else if (i == 42) {
  11144. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11145. itemTaskIndex
  11146. ].toolChoose[toolIndex].answerQ
  11147. ? JSON.parse(
  11148. JSON.stringify(
  11149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11150. itemTaskIndex
  11151. ].toolChoose[toolIndex].answerQ
  11152. )
  11153. )
  11154. : "";
  11155. this.dialogVisibleMp3 = true;
  11156. } else if (i == 41) {
  11157. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11158. itemTaskIndex
  11159. ].toolChoose[toolIndex].selectJson
  11160. ? JSON.parse(
  11161. JSON.stringify(
  11162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11163. itemTaskIndex
  11164. ].toolChoose[toolIndex].selectJson
  11165. )
  11166. )
  11167. : { url: "", select: [], answer: [] };
  11168. this.selectSteps = 1;
  11169. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson));
  11170. this.dialogVisibleSelect = true;
  11171. } else if (i == 3) {
  11172. if (!this.cid) {
  11173. this.$message.error(
  11174. "添加时不能添加模板,请添加课程后再修改添加模板"
  11175. );
  11176. return;
  11177. }
  11178. top.postMessage(
  11179. {
  11180. tools: "3y",
  11181. cid: this.cid,
  11182. stage: this.unitIndex,
  11183. task: itemTaskIndex,
  11184. tool: toolIndex,
  11185. },
  11186. "*"
  11187. );
  11188. } else if (i == 1) {
  11189. if (!this.cid) {
  11190. this.$message.error(
  11191. "添加时不能添加模板,请添加课程后再修改添加模板"
  11192. );
  11193. return;
  11194. }
  11195. top.postMessage(
  11196. {
  11197. tools: "1y",
  11198. cid: this.cid,
  11199. stage: this.unitIndex,
  11200. task: itemTaskIndex,
  11201. tool: toolIndex,
  11202. },
  11203. "*"
  11204. );
  11205. } else if (i == 57) {
  11206. if (!this.cid) {
  11207. this.$message.error(
  11208. "添加时不能添加模板,请添加课程后再修改添加模板"
  11209. );
  11210. return;
  11211. }
  11212. top.postMessage(
  11213. {
  11214. tools: "57y",
  11215. cid: this.cid,
  11216. stage: this.unitIndex,
  11217. task: itemTaskIndex,
  11218. tool: toolIndex,
  11219. },
  11220. "*"
  11221. );
  11222. } else if (i == 69) {
  11223. this.englishList = {};
  11224. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0]
  11225. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishList
  11226. ? JSON.parse(
  11227. JSON.stringify(
  11228. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11229. itemTaskIndex
  11230. ].toolChoose[toolIndex].englishList
  11231. )
  11232. )
  11233. : {};
  11234. this.$forceUpdate();
  11235. this.englishDialogVisible = true;
  11236. } else if (i == 70) {
  11237. this.englishVoiceJson = {};
  11238. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0]
  11239. .taskJson[itemTaskIndex].toolChoose[toolIndex].englishVoiceJson
  11240. ? JSON.parse(
  11241. JSON.stringify(
  11242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11243. itemTaskIndex
  11244. ].toolChoose[toolIndex].englishVoiceJson
  11245. )
  11246. )
  11247. : {
  11248. time: "",
  11249. class: "",
  11250. difficulty: 0,
  11251. topic: "",
  11252. isShow: false,
  11253. eva: 0,
  11254. aiEva: {
  11255. isAiEva: false,
  11256. aiEvaChoose: [],
  11257. },
  11258. allfType: [],
  11259. englishJson: {},
  11260. };
  11261. this.$forceUpdate();
  11262. this.EnglishVoiceDialog = true;
  11263. }
  11264. },
  11265. setEnglishVoiceJson(val) {
  11266. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11267. this.taskCount
  11268. ].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(
  11269. JSON.stringify(val)
  11270. );
  11271. this.$forceUpdate();
  11272. if (
  11273. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11274. .toolChoose[this.toolIndex].tool != 70
  11275. ) {
  11276. this.addTools(70, this.taskCount, this.toolIndex);
  11277. }
  11278. },
  11279. chapAddTools(i) {
  11280. if (this.chapTools[0].tools.length == 0) {
  11281. this.chapTools[0].tools.push(i);
  11282. } else {
  11283. if (this.chapTools[0].tools.indexOf(i) != -1) {
  11284. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  11285. } else {
  11286. this.chapTools[0].tools.push(i);
  11287. }
  11288. }
  11289. this.$forceUpdate();
  11290. },
  11291. addChaptersDataTools() {
  11292. if (this.chapTools[0].tools.indexOf(4) != -1) {
  11293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11294. this.chapCount
  11295. ].chapterData.push({
  11296. name: this.chapTools[0].toolDetail,
  11297. url: this.chapTools[0].tools,
  11298. type: 7,
  11299. askJson: this.askJson,
  11300. });
  11301. } else {
  11302. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11303. this.chapCount
  11304. ].chapterData.push({
  11305. name: this.chapTools[0].toolDetail,
  11306. url: this.chapTools[0].tools,
  11307. type: 7,
  11308. });
  11309. }
  11310. this.imgChange1(null, null, 7, this.chapCount);
  11311. this.dialogVisible4 = false;
  11312. },
  11313. addTools(i, itemTaskIndex, toolIndex) {
  11314. // if (
  11315. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11316. // .toolChoose[toolIndex].tool.length == 0
  11317. // ) {
  11318. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11319. // itemTaskIndex
  11320. // ].toolChoose[toolIndex].tool.push(i);
  11321. // } else {
  11322. // if (
  11323. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11324. // itemTaskIndex
  11325. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11326. // ) {
  11327. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11328. // itemTaskIndex
  11329. // ].toolChoose[toolIndex].tool.splice(
  11330. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11331. // itemTaskIndex
  11332. // ].toolChoose[toolIndex].tool.indexOf(i),
  11333. // 1
  11334. // );
  11335. // } else {
  11336. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11337. // itemTaskIndex
  11338. // ].toolChoose[toolIndex].tool.push(i);
  11339. // }
  11340. // console.log(
  11341. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11342. // .toolChoose[toolIndex].tool
  11343. // );
  11344. // }
  11345. if (i == 4) {
  11346. if (
  11347. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11348. .toolChoose[toolIndex].askJson.askTitle == "" ||
  11349. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11350. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  11351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11352. .toolChoose[toolIndex].askJson[0].checkList < 2
  11353. ) {
  11354. this.openTools(itemTaskIndex, 4, toolIndex);
  11355. // this.$message({
  11356. // message: "请填写完整问卷内容",
  11357. // type: "error",
  11358. // });
  11359. return;
  11360. }
  11361. }
  11362. if (i == 45) {
  11363. if (
  11364. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11365. .toolChoose[toolIndex].testJson ||
  11366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11367. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  11368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11369. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  11370. ) {
  11371. this.openTools(itemTaskIndex, 45, toolIndex);
  11372. // this.$message({
  11373. // message: "请填写完整问卷内容",
  11374. // type: "error",
  11375. // });
  11376. return;
  11377. }
  11378. }
  11379. if (i == 47) {
  11380. if (
  11381. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11382. .toolChoose[toolIndex].sentenceList ||
  11383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11384. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  11385. ) {
  11386. this.openTools(itemTaskIndex, 47, toolIndex);
  11387. return;
  11388. }
  11389. }
  11390. if (i == 69) {
  11391. if (
  11392. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11393. .toolChoose[toolIndex].englishList
  11394. ) {
  11395. this.openTools(itemTaskIndex, 69, toolIndex);
  11396. return;
  11397. }
  11398. }
  11399. if (i == 70) {
  11400. if (
  11401. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11402. .toolChoose[toolIndex].englishVoiceJson
  11403. ) {
  11404. this.openTools(itemTaskIndex, 70, toolIndex);
  11405. return;
  11406. }
  11407. }
  11408. // if (i == 48) {
  11409. // if (
  11410. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11411. // .toolChoose[toolIndex].tableJson
  11412. // ) {
  11413. // this.openTools(itemTaskIndex, 48, toolIndex);
  11414. // return;
  11415. // }
  11416. // }
  11417. // if (i == 50) {
  11418. // if (
  11419. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11420. // .toolChoose[toolIndex].uploadJson
  11421. // ) {
  11422. // this.openTools(itemTaskIndex, 50, toolIndex);
  11423. // return;
  11424. // }
  11425. // }
  11426. if (i == 49) {
  11427. if (
  11428. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11429. .toolChoose[toolIndex].groupJson
  11430. ) {
  11431. this.openTools(itemTaskIndex, 49, toolIndex);
  11432. return;
  11433. }
  11434. }
  11435. if (i == 62) {
  11436. if (
  11437. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11438. .toolChoose[toolIndex].videoJson
  11439. ) {
  11440. this.openTools(itemTaskIndex, 62, toolIndex);
  11441. return;
  11442. }
  11443. }
  11444. if (i == 15) {
  11445. if (
  11446. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11447. .toolChoose[toolIndex].answerQ ||
  11448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11449. .toolChoose[toolIndex].answerQ == ""
  11450. ) {
  11451. this.openTools(itemTaskIndex, 15, toolIndex);
  11452. // this.$message({
  11453. // message: "请填写问答内容",
  11454. // type: "error",
  11455. // });
  11456. return;
  11457. }
  11458. }
  11459. if (i == 40) {
  11460. if (
  11461. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11462. .toolChoose[toolIndex].rateJson ||
  11463. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11464. .toolChoose[toolIndex].rateJson.length
  11465. ) {
  11466. this.openTools(itemTaskIndex, 40, toolIndex);
  11467. return;
  11468. }
  11469. }
  11470. if (i == 41) {
  11471. if (
  11472. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11473. .toolChoose[toolIndex].selectJson ||
  11474. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11475. .toolChoose[toolIndex].selectJson.url == "" ||
  11476. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11477. .toolChoose[toolIndex].selectJson.select.length ||
  11478. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11479. .toolChoose[toolIndex].selectJson.answer.length
  11480. ) {
  11481. this.openTools(itemTaskIndex, 41, toolIndex);
  11482. return;
  11483. }
  11484. }
  11485. if (i == 42) {
  11486. if (
  11487. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11488. .toolChoose[toolIndex].answerQ ||
  11489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11490. .toolChoose[toolIndex].answerQ == ""
  11491. ) {
  11492. this.openTools(itemTaskIndex, 42, toolIndex);
  11493. return;
  11494. }
  11495. }
  11496. if (
  11497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  11498. .toolChoose[toolIndex].tool.length > 0
  11499. ) {
  11500. if (
  11501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11502. itemTaskIndex
  11503. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  11504. ) {
  11505. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11506. itemTaskIndex
  11507. ].toolChoose[toolIndex].tool.splice(
  11508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11509. itemTaskIndex
  11510. ].toolChoose[toolIndex].tool.indexOf(i),
  11511. 1
  11512. );
  11513. } else {
  11514. // this.$message({
  11515. // message: "每个工具只能添加一个",
  11516. // type: "error",
  11517. // });
  11518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11519. itemTaskIndex
  11520. ].toolChoose[toolIndex].tool = [];
  11521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11522. itemTaskIndex
  11523. ].toolChoose[toolIndex].tool.push(i);
  11524. }
  11525. } else {
  11526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11527. itemTaskIndex
  11528. ].toolChoose[toolIndex].tool.push(i);
  11529. }
  11530. this.$forceUpdate();
  11531. },
  11532. addAskList(index) {
  11533. this.askJson.askJson.splice(index + 1, 0, {
  11534. askstitle: "",
  11535. askItem: 1,
  11536. checkList: [],
  11537. });
  11538. this.askJson.askCount++;
  11539. },
  11540. addTestList(index) {
  11541. this.testJson.testJson.splice(index + 1, 0, {
  11542. teststitle: "",
  11543. testItem: 1,
  11544. checkList: [],
  11545. timuList: [],
  11546. answer: [],
  11547. type: "1",
  11548. });
  11549. this.testJson.testCount++;
  11550. },
  11551. deleteAskList(index) {
  11552. if (
  11553. !this.askJson.askJson[index].askstitle &&
  11554. this.askJson.askJson[index].askItem == 1 &&
  11555. !this.askJson.askJson[index].checkList[0]
  11556. ) {
  11557. this.askJson.askJson.splice(index, 1);
  11558. this.askJson.askCount--;
  11559. } else {
  11560. let _this = this;
  11561. _this
  11562. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11563. confirmButtonText: "确定",
  11564. cancelButtonText: "取消",
  11565. type: "warning",
  11566. })
  11567. .then(() => {
  11568. _this.askJson.askJson.splice(index, 1);
  11569. _this.askJson.askCount--;
  11570. })
  11571. .catch(() => {
  11572. return;
  11573. });
  11574. }
  11575. },
  11576. deleteTestList(index) {
  11577. if (
  11578. !this.testJson.testJson[index].teststitle &&
  11579. this.testJson.testJson[index].testItem == 1 &&
  11580. !this.testJson.testJson[index].checkList[0]
  11581. ) {
  11582. this.testJson.testJson.splice(index, 1);
  11583. this.testJson.testCount--;
  11584. } else {
  11585. let _this = this;
  11586. _this
  11587. .$confirm("此操作不可撤销,是否继续?", "提示", {
  11588. confirmButtonText: "确定",
  11589. cancelButtonText: "取消",
  11590. type: "warning",
  11591. })
  11592. .then(() => {
  11593. _this.testJson.testJson.splice(index, 1);
  11594. _this.testJson.testCount--;
  11595. })
  11596. .catch(() => {
  11597. return;
  11598. });
  11599. }
  11600. },
  11601. askMove(type, index) {
  11602. if (type == 1) {
  11603. if (index > 0) {
  11604. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  11605. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11606. this.askJson.askJson[index - 1] = b;
  11607. this.askJson.askJson[index] = a;
  11608. }
  11609. } else {
  11610. if (index < this.askJson.askJson.length - 1) {
  11611. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  11612. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  11613. this.askJson.askJson[index + 1] = b;
  11614. this.askJson.askJson[index] = a;
  11615. }
  11616. }
  11617. this.$forceUpdate();
  11618. },
  11619. checkMove(type, index, checkIndex) {
  11620. if (type == 1) {
  11621. if (checkIndex > 0) {
  11622. let a = JSON.parse(
  11623. JSON.stringify(
  11624. this.askJson.askJson[index].checkList[checkIndex - 1]
  11625. )
  11626. );
  11627. let b = JSON.parse(
  11628. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11629. );
  11630. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  11631. this.askJson.askJson[index].checkList[checkIndex] = a;
  11632. }
  11633. } else {
  11634. if (checkIndex < this.askJson.askJson[index].checkList.length - 1) {
  11635. let a = JSON.parse(
  11636. JSON.stringify(
  11637. this.askJson.askJson[index].checkList[checkIndex + 1]
  11638. )
  11639. );
  11640. let b = JSON.parse(
  11641. JSON.stringify(this.askJson.askJson[index].checkList[checkIndex])
  11642. );
  11643. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  11644. this.askJson.askJson[index].checkList[checkIndex] = a;
  11645. }
  11646. }
  11647. this.$forceUpdate();
  11648. },
  11649. testMove(type, index) {
  11650. if (type == 1) {
  11651. if (index > 0) {
  11652. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  11653. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11654. this.testJson.testJson[index - 1] = b;
  11655. this.testJson.testJson[index] = a;
  11656. }
  11657. } else {
  11658. if (index < this.testJson.testJson.length - 1) {
  11659. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  11660. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  11661. this.testJson.testJson[index + 1] = b;
  11662. this.testJson.testJson[index] = a;
  11663. }
  11664. }
  11665. this.$forceUpdate();
  11666. },
  11667. tcheckMove(type, index, checkIndex) {
  11668. if (type == 1) {
  11669. if (checkIndex > 0) {
  11670. let a = JSON.parse(
  11671. JSON.stringify(
  11672. this.testJson.testJson[index].checkList[checkIndex - 1]
  11673. )
  11674. );
  11675. let b = JSON.parse(
  11676. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11677. );
  11678. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  11679. this.testJson.testJson[index].checkList[checkIndex] = a;
  11680. }
  11681. } else {
  11682. if (checkIndex < this.testJson.testJson[index].checkList.length - 1) {
  11683. let a = JSON.parse(
  11684. JSON.stringify(
  11685. this.testJson.testJson[index].checkList[checkIndex + 1]
  11686. )
  11687. );
  11688. let b = JSON.parse(
  11689. JSON.stringify(this.testJson.testJson[index].checkList[checkIndex])
  11690. );
  11691. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  11692. this.testJson.testJson[index].checkList[checkIndex] = a;
  11693. }
  11694. }
  11695. this.$forceUpdate();
  11696. },
  11697. addcheckList(json, index) {
  11698. // json.checkList.length++;
  11699. json.checkList.splice(index + 1, 0, "");
  11700. json.askItem++;
  11701. this.$forceUpdate();
  11702. },
  11703. deletecheckList(json, index) {
  11704. // json.checkList.length--;
  11705. json.checkList.splice(index, 1);
  11706. json.askItem--;
  11707. this.$forceUpdate();
  11708. },
  11709. addTcheckList(json, index) {
  11710. // json.checkList.length++;
  11711. json.checkList.splice(index + 1, 0, "");
  11712. json.testItem++;
  11713. this.$forceUpdate();
  11714. },
  11715. deleteTcheckList(json, index) {
  11716. // json.checkList.length--;
  11717. json.checkList.splice(index, 1);
  11718. json.testItem--;
  11719. this.$forceUpdate();
  11720. },
  11721. checkTestType(type, json) {
  11722. json.type = type;
  11723. setTimeout(() => {
  11724. json.answer = [];
  11725. }, 100);
  11726. },
  11727. checkAskType(type, json) {
  11728. json.type = type;
  11729. // json.checkList = [];
  11730. this.$forceUpdate();
  11731. },
  11732. addSelectList(json) {
  11733. json.select.push("");
  11734. json.answer.push("");
  11735. },
  11736. deleteSelectList(json) {
  11737. // json.select.length--;
  11738. // json.answer.length--;
  11739. json.select.splice(json.select.length - 1, 1);
  11740. json.answer.splice(json.answer.length - 1, 1);
  11741. },
  11742. addAsk() {
  11743. if (this.askJson.askTitle === "") {
  11744. this.$message.error("标题不能为空!");
  11745. return;
  11746. }
  11747. var aj = this.askJson.askJson;
  11748. var b = 1;
  11749. for (var i = 0; i < aj.length; i++) {
  11750. if (aj[i].askstitle === "") {
  11751. var a = 1;
  11752. for (let index = 0; index < aj[i].askItem; index++) {
  11753. const element = aj[i].checkList[index]
  11754. ? aj[i].checkList[index]
  11755. : "";
  11756. if (element != "") {
  11757. b++;
  11758. this.$message.error(`请将题目${i + 1}填写完整。`);
  11759. return;
  11760. } else {
  11761. a++;
  11762. }
  11763. }
  11764. if (b == 1) {
  11765. this.$message.error("至少填写一个问题");
  11766. return;
  11767. }
  11768. } else if (aj[i].askstitle != "") {
  11769. for (let index = 0; index < aj[i].askItem; index++) {
  11770. const element = aj[i].checkList[index]
  11771. ? aj[i].checkList[index]
  11772. : "";
  11773. var index = 0;
  11774. for (var z = 0; z < aj[i].checkList.length; z++) {
  11775. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11776. if (checkC != "") {
  11777. index++;
  11778. } else {
  11779. this.$message.error(`题目${i + 1}选项不能为空!`);
  11780. return;
  11781. }
  11782. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11783. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11784. if (checkC == checkC2) {
  11785. this.$message.error(
  11786. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11787. );
  11788. return;
  11789. }
  11790. }
  11791. }
  11792. b++;
  11793. if (index < 2) {
  11794. this.$message.error("每道题目至少需要设置2个选项。");
  11795. return;
  11796. }
  11797. }
  11798. }
  11799. }
  11800. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  11801. var elc = el.checkList.filter((element) => {
  11802. return element != "";
  11803. });
  11804. return el.askstitle != "" && elc.length != 0;
  11805. });
  11806. if (!this.dialogVisible4) {
  11807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11808. this.taskCount
  11809. ].toolChoose[this.toolIndex] = this.askJson;
  11810. }
  11811. this.dialogVisible5 = false;
  11812. if (
  11813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11814. .toolChoose[this.toolIndex].tool != 4
  11815. ) {
  11816. this.addTools(4, this.taskCount, this.toolIndex);
  11817. }
  11818. },
  11819. addTest() {
  11820. // if (this.testJson.testTitle === "") {
  11821. // this.$message.error("标题不能为空!");
  11822. // return;
  11823. // }
  11824. var aj = this.testJson.testJson;
  11825. var b = 1;
  11826. for (var i = 0; i < aj.length; i++) {
  11827. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  11828. var a = 1;
  11829. for (let index = 0; index < aj[i].testItem; index++) {
  11830. const element = aj[i].checkList[index]
  11831. ? aj[i].checkList[index]
  11832. : "";
  11833. if (element != "") {
  11834. b++;
  11835. this.$message.error(`请将题目${i + 1}填写完整。`);
  11836. return;
  11837. } else {
  11838. a++;
  11839. }
  11840. }
  11841. if (b == 1) {
  11842. this.$message.error("至少填写一个问题");
  11843. return;
  11844. }
  11845. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  11846. for (let index = 0; index < aj[i].testItem; index++) {
  11847. const element = aj[i].checkList[index]
  11848. ? aj[i].checkList[index]
  11849. : "";
  11850. var index = 0;
  11851. for (var z = 0; z < aj[i].checkList.length; z++) {
  11852. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  11853. if (checkC != "") {
  11854. index++;
  11855. } else {
  11856. this.$message.error(`题目${i + 1}选项不能为空!`);
  11857. return;
  11858. }
  11859. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  11860. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  11861. if (checkC == checkC2) {
  11862. this.$message.error(
  11863. `第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  11864. );
  11865. return;
  11866. }
  11867. }
  11868. }
  11869. b++;
  11870. if (index < 2) {
  11871. this.$message.error("每道题目至少需要设置2个选项。");
  11872. return;
  11873. }
  11874. if (
  11875. (aj[i].type == "2" && !aj[i].answer.length) ||
  11876. (aj[i].type == "1" &&
  11877. ((typeof aj[i].answer == "object" && !aj[i].answer.length) ||
  11878. (aj[i].answer !== 0 && !aj[i].answer)))
  11879. ) {
  11880. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  11881. return;
  11882. }
  11883. }
  11884. }
  11885. }
  11886. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11887. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11888. var elc = el.checkList.filter((element) => {
  11889. return element != "";
  11890. });
  11891. return (
  11892. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  11893. );
  11894. });
  11895. isTestJson.testCount = isTestJson.testJson.length;
  11896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11897. this.taskCount
  11898. ].toolChoose[this.toolIndex].testJson = isTestJson;
  11899. this.dialogVisibleChoice = false;
  11900. if (
  11901. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11902. .toolChoose[this.toolIndex].tool != 45
  11903. ) {
  11904. this.addTools(45, this.taskCount, this.toolIndex);
  11905. }
  11906. },
  11907. addVideoJson(videoJson) {
  11908. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11909. this.taskCount
  11910. ].toolChoose[this.toolIndex].videoJson = videoJson;
  11911. this.dialogVisibleVideo = false;
  11912. if (
  11913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11914. .toolChoose[this.toolIndex].tool != 62
  11915. ) {
  11916. this.addTools(62, this.taskCount, this.toolIndex);
  11917. }
  11918. },
  11919. //自动获取剪贴板
  11920. pasteOption() {
  11921. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11922. if (!iframe) {
  11923. this.$message.error("请使用AI共创生成题目");
  11924. return;
  11925. }
  11926. let copyData = iframe.contentWindow.copyData;
  11927. if (!copyData || !copyData.selectData.length) {
  11928. this.$message.error("请使用AI共创生成题目");
  11929. return;
  11930. }
  11931. let selectData = copyData.selectData;
  11932. for (var i = 0; i < selectData.length; i++) {
  11933. let answer = 0;
  11934. switch (selectData[i].answer[0]) {
  11935. case "A":
  11936. answer = 0;
  11937. break;
  11938. case "B":
  11939. answer = 1;
  11940. break;
  11941. case "C":
  11942. answer = 2;
  11943. break;
  11944. case "D":
  11945. answer = 3;
  11946. break;
  11947. case "E":
  11948. answer = 4;
  11949. break;
  11950. default:
  11951. break;
  11952. }
  11953. this.testJson.testJson.push({
  11954. teststitle: selectData[i].subject,
  11955. testItem: selectData[i].options.length,
  11956. checkList: selectData[i].options,
  11957. timuList: [],
  11958. answer: answer,
  11959. type: "1",
  11960. });
  11961. this.testJson.testCount++;
  11962. }
  11963. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  11964. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  11965. var elc = el.checkList.filter((element) => {
  11966. return element != "";
  11967. });
  11968. return el.teststitle != "" || el.timuList.length > 0 || elc.length != 0;
  11969. });
  11970. isTestJson.testCount = isTestJson.testJson.length;
  11971. if (!isTestJson.testCount) {
  11972. return;
  11973. }
  11974. this.testJson = isTestJson;
  11975. this.$forceUpdate();
  11976. },
  11977. pasteTask(taskJson) {
  11978. let stageTasksData = [];
  11979. if (taskJson) {
  11980. stageTasksData = taskJson;
  11981. } else {
  11982. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11983. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  11984. if (!iframe && !iframe2) {
  11985. this.$message.error("请使用AI共创生成");
  11986. return;
  11987. }
  11988. let copyData = iframe ? iframe.contentWindow.copyData : false;
  11989. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  11990. if (
  11991. (!copyData || !copyData.tasksData || !copyData.tasksData.length) &&
  11992. (!copyData2 || !copyData2.tasksData || !copyData2.tasksData.length)
  11993. ) {
  11994. this.$message.error("请使用AI共创生成");
  11995. return;
  11996. }
  11997. stageTasksData = copyData
  11998. ? copyData.tasksData
  11999. : copyData2
  12000. ? copyData2.tasksData
  12001. : [{ taskName: "", taskDecs: "" }];
  12002. }
  12003. let taskA = [];
  12004. let tasks = stageTasksData;
  12005. for (var j = 0; j < tasks.length; j++) {
  12006. taskA.push({
  12007. task: tasks[j].taskName,
  12008. taskDetail: tasks[j].taskDecs,
  12009. chapterData: [],
  12010. toolText: "",
  12011. toolChoose: [
  12012. {
  12013. tool: [],
  12014. toolDetail: "",
  12015. toolType: 0,
  12016. askCount: 1,
  12017. askTitle: "",
  12018. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12019. },
  12020. ],
  12021. isShowTools: false,
  12022. askCount: 1,
  12023. isFold: 1,
  12024. askTitle: "",
  12025. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12026. checkJson: [{ checkCount: [], checkPerent: [] }],
  12027. homeworkList: [],
  12028. });
  12029. }
  12030. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  12031. this.$forceUpdate();
  12032. },
  12033. pasteStage(stageJson) {
  12034. let stageData = [];
  12035. if (stageJson) {
  12036. stageData = stageJson;
  12037. } else {
  12038. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  12039. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  12040. if (!iframe && !iframe2) {
  12041. this.$message.error("请使用AI共创生成");
  12042. return;
  12043. }
  12044. let copyData = iframe ? iframe.contentWindow.copyData : false;
  12045. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  12046. if (
  12047. (!copyData || !copyData.stageData || !copyData.stageData.length) &&
  12048. (!copyData2 || !copyData2.stageData || !copyData2.stageData.length)
  12049. ) {
  12050. this.$message.error("请使用AI共创生成");
  12051. return;
  12052. }
  12053. stageData = copyData
  12054. ? copyData.stageData
  12055. : copyData2
  12056. ? copyData2.stageData
  12057. : [""];
  12058. }
  12059. let stage = [];
  12060. for (var i = 0; i < stageData.length; i++) {
  12061. stage.push({
  12062. dyName: stageData[i], //单元标题
  12063. chapterInfo: [
  12064. {
  12065. isread: false,
  12066. chapterid: this.guid(),
  12067. title: "",
  12068. courseName: "",
  12069. taskJson: [
  12070. {
  12071. task: "",
  12072. taskDetail: "",
  12073. chapterData: [],
  12074. toolText: "",
  12075. toolChoose: [
  12076. {
  12077. tool: [],
  12078. toolDetail: "",
  12079. toolType: 0,
  12080. askCount: 1,
  12081. askTitle: "",
  12082. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12083. },
  12084. ],
  12085. isShowTools: false,
  12086. askCount: 1,
  12087. isFold: 1,
  12088. askTitle: "",
  12089. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12090. checkJson: [{ checkCount: [], checkPerent: [] }],
  12091. homeworkList: [],
  12092. },
  12093. ],
  12094. itemCount: 1,
  12095. fileList1: [],
  12096. video: [],
  12097. testData: [],
  12098. pData: [],
  12099. templateArray: [],
  12100. },
  12101. ],
  12102. });
  12103. }
  12104. let _this = this;
  12105. if (stageJson) {
  12106. if (!_this.cid) {
  12107. _this.unitJson = stage;
  12108. } else {
  12109. _this.unitIndex = 0;
  12110. _this.unitJson = stage;
  12111. _this.updateWork();
  12112. }
  12113. } else {
  12114. _this
  12115. .$confirm(
  12116. "确定选择智能粘贴模板吗?修改课程时无法重置课程模板。",
  12117. "提示",
  12118. {
  12119. confirmButtonText: "确定",
  12120. cancelButtonText: "取消",
  12121. type: "warning",
  12122. }
  12123. )
  12124. .then(() => {
  12125. _this.unitIndex = 0;
  12126. _this.unitJson = stage;
  12127. // _this.steps++;
  12128. _this.updateWork();
  12129. })
  12130. .catch(() => {
  12131. return;
  12132. });
  12133. }
  12134. },
  12135. openStageBox() {
  12136. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson));
  12137. this.dialogVisibleStageChange = true;
  12138. },
  12139. updateChange() {
  12140. this.$confirm(
  12141. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  12142. "提示",
  12143. {
  12144. confirmButtonText: "确定",
  12145. cancelButtonText: "取消",
  12146. type: "warning",
  12147. }
  12148. )
  12149. .then(() => {
  12150. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3));
  12151. this.updateWork();
  12152. this.dialogVisibleStageChange = false;
  12153. })
  12154. .catch(() => {
  12155. return;
  12156. });
  12157. },
  12158. addAnswer() {
  12159. if (this.answerQ == "") {
  12160. this.$message.error("请输入您想要问的问题");
  12161. return;
  12162. }
  12163. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12164. this.taskCount
  12165. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12166. this.dialogVisible8 = false;
  12167. if (
  12168. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12169. .toolChoose[this.toolIndex].tool != 15
  12170. ) {
  12171. this.addTools(15, this.taskCount, this.toolIndex);
  12172. }
  12173. },
  12174. addMp3Answer() {
  12175. if (this.answerQ == "") {
  12176. this.$message.error("请输入您想要回答的问题");
  12177. return;
  12178. }
  12179. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12180. this.taskCount
  12181. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  12182. this.dialogVisibleMp3 = false;
  12183. },
  12184. addRateAnswer() {
  12185. var a = 1;
  12186. for (var i = 0; i < this.rateJson.length; i++) {
  12187. if (this.rateJson[i].value == "") {
  12188. a = 2;
  12189. break;
  12190. }
  12191. }
  12192. if (a == 2) {
  12193. this.$message.error("请把评价信息填写完整");
  12194. return;
  12195. }
  12196. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12197. this.taskCount
  12198. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  12199. this.dialogVisibleRate = false;
  12200. if (
  12201. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12202. .toolChoose[this.toolIndex].tool != 40
  12203. ) {
  12204. this.addTools(40, this.taskCount, this.toolIndex);
  12205. }
  12206. },
  12207. addSelectAnswer() {
  12208. if (this.selectJson.url == "") {
  12209. this.$message.error("请上传题目");
  12210. return;
  12211. }
  12212. if (!this.selectJson.select.length) {
  12213. this.$message.error("请添加选项");
  12214. return;
  12215. }
  12216. if (!this.selectJson.answer.length) {
  12217. this.$message.error("请设置答案");
  12218. return;
  12219. }
  12220. var a = 1;
  12221. for (var i = 0; i < this.selectJson.answer.length; i++) {
  12222. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  12223. a = 2;
  12224. }
  12225. }
  12226. if (a == 2) {
  12227. this.$message.error("请设置答案");
  12228. return;
  12229. }
  12230. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12231. this.taskCount
  12232. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  12233. this.dialogVisibleSelect = false;
  12234. if (
  12235. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  12236. .toolChoose[this.toolIndex].tool != 41
  12237. ) {
  12238. this.addTools(41, this.taskCount, this.toolIndex);
  12239. }
  12240. },
  12241. nextSelectSteps() {
  12242. if (this.selectJson.url == "") {
  12243. this.$message.error("请上传题目");
  12244. return;
  12245. }
  12246. if (!this.selectJson.select.length) {
  12247. this.$message.error("请添加选项");
  12248. return;
  12249. } else {
  12250. for (var z = 0; z < this.selectJson.select.length; z++) {
  12251. let checkC = this.selectJson.select[z];
  12252. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  12253. let checkC2 = this.selectJson.select[z2];
  12254. if (checkC == checkC2) {
  12255. this.$message.error(
  12256. `选项${z + 1}和选项${z2 + 1}重复了,请修改!`
  12257. );
  12258. return;
  12259. }
  12260. }
  12261. }
  12262. }
  12263. var a = 1;
  12264. for (var i = 0; i < this.selectJson.select.length; i++) {
  12265. if (!this.selectJson.select[i]) {
  12266. a = 2;
  12267. }
  12268. }
  12269. if (a == 2) {
  12270. this.$message.error("添加的选项不能为空");
  12271. return;
  12272. }
  12273. this.selectSteps++;
  12274. },
  12275. selectCourseDetail() {
  12276. if (this.cid == "" || this.cid == undefined) {
  12277. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  12278. this.isTeacherSee = true;
  12279. }
  12280. console.log("这是新增课程");
  12281. this.selectAllType();
  12282. } else {
  12283. this.cidType = 1;
  12284. let params = {
  12285. cid: this.cid,
  12286. };
  12287. this.ajax
  12288. .get(this.$store.state.api + "select_course_detail", params)
  12289. .then((res) => {
  12290. this.loading = true;
  12291. this.unitJson = JSON.parse(res.data[0][0].chapters);
  12292. this.courseState = res.data[0][0].state;
  12293. for (var j = 0; j < this.unitJson.length; j++) {
  12294. for (
  12295. var k = 0;
  12296. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  12297. k++
  12298. ) {
  12299. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  12300. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12301. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  12302. : [];
  12303. let _chapterData = [];
  12304. for (
  12305. var c = 0;
  12306. c <
  12307. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  12308. .length;
  12309. c++
  12310. ) {
  12311. if (
  12312. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12313. ) {
  12314. _chapterData.push(
  12315. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  12316. );
  12317. }
  12318. }
  12319. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  12320. _chapterData;
  12321. }
  12322. }
  12323. this.$forceUpdate();
  12324. this.courseName = res.data[0][0].title;
  12325. this.courseText = res.data[0][0].brief;
  12326. this.evalua = res.data[0][0].evaId;
  12327. this.cover = JSON.parse(res.data[0][0].cover);
  12328. this.noneBtnImg = this.cover.length >= 1;
  12329. // this.checkboxList =
  12330. // res.data[0][0].course_student.length > 0
  12331. // ? JSON.parse(res.data[0][0].course_student)
  12332. // : [];
  12333. this.checkboxList2 = res.data[0][0].juri
  12334. ? res.data[0][0].juri.split(",")
  12335. : [];
  12336. this.inviteCode = [];
  12337. for (var i = 0; i < res.data[2].length; i++) {
  12338. this.inviteCode.push({
  12339. cid: res.data[2][i].classid,
  12340. ic: res.data[2][i].code,
  12341. });
  12342. }
  12343. this.checkboxList3 = res.data[0][0].course_teacher
  12344. ? res.data[0][0].course_teacher.split(",")
  12345. : [];
  12346. // this.isTeacherSee =
  12347. // res.data[0][0].is_teacher_look == 0 ? true : false;
  12348. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  12349. this.highSetting = res.data[0][0].highSetting == 1 ? true : false;
  12350. this.myWord = res.data[0][0].template;
  12351. this.templateC.id = "123";
  12352. this.courseUserid = res.data[0][0].userid;
  12353. // if(this.courseUserid == this.userid){
  12354. // this.InviteChange(this.checkboxList2)
  12355. // }
  12356. this.nbOrder = res.data[0][0].ordernumber;
  12357. this.courseTypeId = [];
  12358. for (var i = 0; i < res.data[1].length; i++) {
  12359. this.courseTypeId.push(res.data[1][i].typeid);
  12360. }
  12361. console.log(this.courseTypeId);
  12362. // if (this.timer) clearInterval(this.timer);
  12363. if (this.timer) clearTimeout(this.timer);
  12364. this.timer = null;
  12365. // this.timer = setInterval(() => {
  12366. this.seleteCourseUpdate();
  12367. this.setMan();
  12368. this.selectAllType();
  12369. this.unitJson[
  12370. this.unitIndex
  12371. ].chapterInfo[0].taskJson[0].toolOpen = true;
  12372. // }, 5000);
  12373. this.$forceUpdate();
  12374. setTimeout(() => {
  12375. this.checkEva(this.evalua);
  12376. setTimeout(() => {
  12377. this.checkEva(this.evalua);
  12378. }, 100);
  12379. }, 100);
  12380. })
  12381. .catch((err) => {
  12382. console.error(err);
  12383. });
  12384. }
  12385. },
  12386. seleteCourseUpdate() {
  12387. let params = {
  12388. cid: this.cid,
  12389. };
  12390. this.ajax
  12391. .get(this.$store.state.api + "select_course_detail", params)
  12392. .then((res) => {
  12393. // console.log(this.unitJson);
  12394. let unitJson = JSON.parse(res.data[0][0].chapters);
  12395. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  12396. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  12397. let _unitJson = [];
  12398. let _chapAarry = [];
  12399. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  12400. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  12401. let index = 1;
  12402. let chapindex;
  12403. if (_unitJson2.length > unitJson.length) {
  12404. for (let c = 0; c < _unitJson2.length; c++) {
  12405. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  12406. }
  12407. for (let j = 0; j < unitJson.length; j++) {
  12408. let count = 0;
  12409. for (let k = 0; k < _unitJson2.length; k++) {
  12410. if (
  12411. unitJson[j].chapterInfo[0].chapterid ==
  12412. _unitJson2[k].chapterInfo[0].chapterid
  12413. ) {
  12414. count++;
  12415. _chapAarry.splice(
  12416. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12417. 1
  12418. );
  12419. _unitJson.push(unitJson[j]);
  12420. break;
  12421. }
  12422. }
  12423. // if(count === 0){
  12424. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12425. // }
  12426. }
  12427. for (let k = 0; k < _unitJson2.length; k++) {
  12428. if (_unitJson2[k].isUpdate == 1) {
  12429. _chapAarry.splice(
  12430. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  12431. 1
  12432. );
  12433. _unitJson.push(_unitJson2[k]);
  12434. }
  12435. }
  12436. console.log(_chapAarry);
  12437. for (let d = 0; d < _unitJson2.length; d++) {
  12438. if (
  12439. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  12440. ) {
  12441. if (_unitIndex == d) {
  12442. index = 2;
  12443. }
  12444. chapindex = d;
  12445. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  12446. }
  12447. }
  12448. } else {
  12449. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  12450. }
  12451. for (let i = 0; i < unitJson.length; i++) {
  12452. if (
  12453. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  12454. _unitJson[i].chapterInfo[0].chapterid !=
  12455. unitJson[i].chapterInfo[0].chapterid
  12456. ) {
  12457. if (i == _unitJson.length - 1) {
  12458. // this.unitIndex++
  12459. _unitIndex2++;
  12460. }
  12461. _unitJson.splice(i, 0, unitJson[i]);
  12462. } else if (i > _unitJson.length - 1) {
  12463. _unitJson.push(unitJson[i]);
  12464. } else if (
  12465. _unitJson[i].chapterInfo[0].chapterid ==
  12466. unitJson[i].chapterInfo[0].chapterid
  12467. ) {
  12468. _unitJson[i] = unitJson[i];
  12469. }
  12470. // if (i == _unitIndex) {
  12471. // continue;
  12472. // } else
  12473. }
  12474. if (_chapAarry.length && index != 2) {
  12475. if (chapindex < _unitIndex) {
  12476. this.isDelete = 2;
  12477. // this.unitIndex--;
  12478. _unitIndex2--;
  12479. } else if (
  12480. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  12481. _unitJson[_unitIndex].chapterInfo[0].chapterid
  12482. ) {
  12483. this.isDelete = 2;
  12484. for (let n = 0; n < _unitJson.length; n++) {
  12485. if (
  12486. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  12487. _unitJson[n].chapterInfo[0].chapterid
  12488. ) {
  12489. // this.unitIndex = n;
  12490. _unitIndex2 = n;
  12491. _unitJson[n] = _unitJson2[_unitIndex];
  12492. break;
  12493. }
  12494. }
  12495. }
  12496. } else if (index != 2) {
  12497. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  12498. _unitJson2[_unitIndex];
  12499. for (
  12500. var ci = 0;
  12501. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  12502. ci++
  12503. ) {
  12504. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  12505. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  12506. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12507. .toolChoose
  12508. : [];
  12509. let _chapterData = [];
  12510. for (
  12511. var c = 0;
  12512. c <
  12513. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  12514. .length;
  12515. c++
  12516. ) {
  12517. if (
  12518. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12519. .chapterData[c]
  12520. ) {
  12521. _chapterData.push(
  12522. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  12523. .chapterData[c]
  12524. );
  12525. }
  12526. }
  12527. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  12528. _chapterData;
  12529. }
  12530. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  12531. }
  12532. if (index == 1) {
  12533. this.unitJson = _unitJson;
  12534. this.$forceUpdate();
  12535. setTimeout(() => {
  12536. if (this.unitIndex != _unitIndex2) {
  12537. this.isDelete = 2;
  12538. this.unitIndex = _unitIndex2;
  12539. }
  12540. }, 0);
  12541. this.timer = setTimeout(() => {
  12542. this.seleteCourseUpdate();
  12543. }, 1000);
  12544. } else if (index == 2) {
  12545. let _this = this;
  12546. _this
  12547. .$confirm(
  12548. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  12549. "提示",
  12550. {
  12551. confirmButtonText: "需要",
  12552. cancelButtonText: "取消",
  12553. type: "warning",
  12554. }
  12555. )
  12556. .then(() => {
  12557. if (_this.time()) {
  12558. _this.restoreWork(
  12559. _chapAarry[0],
  12560. _unitJson,
  12561. chapindex,
  12562. _unitJson2,
  12563. _unitIndex2
  12564. );
  12565. }
  12566. })
  12567. .catch(() => {
  12568. _this.unitJson = _unitJson;
  12569. _this.$forceUpdate();
  12570. setTimeout(() => {
  12571. if (this.unitIndex != _unitIndex2) {
  12572. this.isDelete = 2;
  12573. this.unitIndex = _unitIndex2;
  12574. }
  12575. }, 0);
  12576. _this.timer = setTimeout(() => {
  12577. _this.seleteCourseUpdate();
  12578. }, 1000);
  12579. });
  12580. }
  12581. // 在复制操作之前记录滚动位置
  12582. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12583. // 执行复制操作
  12584. // 复制操作完成后恢复滚动位置
  12585. this.$nextTick(() => {
  12586. if(this.$refs.scrollContainer){
  12587. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12588. }
  12589. });
  12590. })
  12591. .catch((err) => {
  12592. console.error(err);
  12593. });
  12594. },
  12595. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  12596. let params = [
  12597. {
  12598. cid: this.cid,
  12599. chapters: JSON.stringify(this.unitJson),
  12600. uid: this.userid,
  12601. chapid: chapid,
  12602. },
  12603. ];
  12604. this.ajax
  12605. .post(this.$store.state.api + "restoreWork", params)
  12606. .then((res) => {
  12607. this.$message({
  12608. message: "恢复成功",
  12609. type: "success",
  12610. });
  12611. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  12612. this.unitJson = unitJson;
  12613. this.$forceUpdate();
  12614. setTimeout(() => {
  12615. if (this.unitIndex != unitIndex2) {
  12616. this.isDelete = 2;
  12617. this.unitIndex = unitIndex2;
  12618. }
  12619. }, 0);
  12620. this.timer = setTimeout(() => {
  12621. this.seleteCourseUpdate();
  12622. }, 1000);
  12623. })
  12624. .catch((err) => {
  12625. this.$message.error("网络不佳");
  12626. console.error(err);
  12627. });
  12628. },
  12629. getTypeName() {
  12630. console.log(this.courseTypeId);
  12631. this.$forceUpdate();
  12632. },
  12633. selectAllType() {
  12634. let params = {
  12635. org: this.org && this.org != "" ? this.org : "",
  12636. oid: this.oid && this.oid != "" ? this.oid : "",
  12637. };
  12638. this.ajax
  12639. .get(this.$store.state.api + "selectAllType", params)
  12640. .then((res) => {
  12641. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12642. res.data[0] = [...res.data[0], ...res.data[4]];
  12643. }
  12644. this.CourseType = res.data;
  12645. this.CourseType2 = [
  12646. { name: "智见课程", id: [] },
  12647. { name: "智行课程", id: [] },
  12648. { name: "智创课程", id: [] },
  12649. ];
  12650. for (var cti = 0; cti < res.data[0].length; cti++) {
  12651. if (
  12652. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12653. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  12654. ) {
  12655. this.CourseType2[0].id.push(res.data[0][cti].id);
  12656. } else if (
  12657. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  12658. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12659. ) {
  12660. this.CourseType2[1].id.push(res.data[0][cti].id);
  12661. } else if (
  12662. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12663. ) {
  12664. this.CourseType2[2].id.push(res.data[0][cti].id);
  12665. }
  12666. if (
  12667. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  12668. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"
  12669. ) {
  12670. res.data[0][cti].name = "年级";
  12671. } else if (
  12672. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" ||
  12673. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"
  12674. ) {
  12675. res.data[0][cti].name = "学科";
  12676. } else if (
  12677. res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"
  12678. ) {
  12679. res.data[0][cti].name = "主题";
  12680. }
  12681. }
  12682. let _courseTypeId = [];
  12683. for (var i = 0; i < res.data[0].length; i++) {
  12684. if (!this.cid) {
  12685. this.courseTypeId[res.data[0][i].id] = [];
  12686. }
  12687. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  12688. // }
  12689. this.CourseTypeJson[res.data[0][i].id] = [];
  12690. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12691. if (res.data[0][i].name == "栏目") {
  12692. this.CourseType[0][i].name = "主题";
  12693. }
  12694. }
  12695. if (res.data[2].length == 0 && res.data[3].length == 0) {
  12696. for (var j = 0; j < res.data[1].length; j++) {
  12697. if (
  12698. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  12699. _courseTypeId.indexOf(res.data[1][j].id) == -1
  12700. ) {
  12701. _courseTypeId.push(res.data[1][j].id);
  12702. }
  12703. if (res.data[0][i].id == res.data[1][j].pid) {
  12704. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12705. }
  12706. }
  12707. } else {
  12708. if (res.data[2].length > 0) {
  12709. for (var j = 0; j < res.data[2].length; j++) {
  12710. if (
  12711. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  12712. _courseTypeId.indexOf(res.data[2][j].id) == -1
  12713. ) {
  12714. _courseTypeId.push(res.data[2][j].id);
  12715. }
  12716. if (res.data[0][i].id == res.data[2][j].pid) {
  12717. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  12718. }
  12719. }
  12720. }
  12721. if (res.data[3].length > 0) {
  12722. for (var j = 0; j < res.data[3].length; j++) {
  12723. if (
  12724. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  12725. _courseTypeId.indexOf(res.data[3][j].id) == -1
  12726. ) {
  12727. _courseTypeId.push(res.data[3][j].id);
  12728. }
  12729. if (res.data[0][i].id == res.data[3][j].pid) {
  12730. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  12731. }
  12732. }
  12733. }
  12734. }
  12735. }
  12736. this.courseTypeId = _courseTypeId;
  12737. })
  12738. .catch((err) => {
  12739. console.error(err);
  12740. });
  12741. },
  12742. selectType() {
  12743. this.ajax
  12744. .get(this.$store.state.api + "selectType")
  12745. .then((res) => {
  12746. this.CourseType = res.data;
  12747. for (var i = 0; i < res.data[0].length; i++) {
  12748. if (!this.cid) {
  12749. this.courseTypeId[res.data[0][i].id] = "";
  12750. }
  12751. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  12752. if (res.data[0][i].name == "栏目") {
  12753. this.CourseType[0][i].name = "主题";
  12754. }
  12755. }
  12756. for (var j = 0; j < res.data[1].length; j++) {
  12757. if (res.data[0][i].id == res.data[1][j].pid) {
  12758. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12759. this.CourseTypeJson[res.data[0][i].id] = [];
  12760. }
  12761. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  12762. }
  12763. }
  12764. }
  12765. this.selectTypeByOid();
  12766. this.selectTypeByOrg();
  12767. })
  12768. .catch((err) => {
  12769. console.error(err);
  12770. });
  12771. },
  12772. selectTypeByOid() {
  12773. let params = {
  12774. oid: this.oid,
  12775. };
  12776. this.ajax
  12777. .get(this.$store.state.api + "selectTypeByOid", params)
  12778. .then((res) => {
  12779. for (var i = 0; i < res.data[0].length; i++) {
  12780. for (var j = 0; j < res.data[1].length; j++) {
  12781. if (res.data[0][i].id == res.data[1][j].pid) {
  12782. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12783. this.CourseTypeJson[res.data[0][i].id] = [];
  12784. }
  12785. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12786. }
  12787. }
  12788. }
  12789. })
  12790. .catch((err) => {
  12791. console.error(err);
  12792. });
  12793. },
  12794. selectTypeByOrg() {
  12795. let params = {
  12796. oid: this.org,
  12797. };
  12798. this.ajax
  12799. .get(this.$store.state.api + "selectTypeByOrg", params)
  12800. .then((res) => {
  12801. for (var i = 0; i < res.data[0].length; i++) {
  12802. for (var j = 0; j < res.data[1].length; j++) {
  12803. if (res.data[0][i].id == res.data[1][j].pid) {
  12804. if (!this.CourseTypeJson[res.data[0][i].id]) {
  12805. this.CourseTypeJson[res.data[0][i].id] = [];
  12806. }
  12807. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  12808. }
  12809. }
  12810. }
  12811. this.$forceUpdate();
  12812. })
  12813. .catch((err) => {
  12814. console.error(err);
  12815. });
  12816. },
  12817. OtherMb(type, task) {
  12818. if (task === 0 || task) {
  12819. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  12820. task
  12821. ].isEvaFold = true;
  12822. }
  12823. this.typeMode = type;
  12824. setTimeout(() => {
  12825. this.checkEva(this.checkId);
  12826. setTimeout(() => {
  12827. this.checkEva(this.checkId);
  12828. }, 100);
  12829. }, 100);
  12830. },
  12831. openMember() {
  12832. this.searchTN = "";
  12833. this.getTeacher();
  12834. this.dialogVisibleMember = true;
  12835. },
  12836. checkEva(id, type) {
  12837. this.dialogVisiblemb = false;
  12838. this.selectEva();
  12839. if (this.evalua != id && type == 2) {
  12840. this.$message.success("导入成功");
  12841. setTimeout(() => {
  12842. this.checkEva(id);
  12843. }, 100);
  12844. }
  12845. this.evalua = id;
  12846. this.checkId = id;
  12847. if (this.evalua != "") {
  12848. for (var i = 0; i < this.evaJuri.length; i++) {
  12849. if (this.evalua == this.evaJuri[i].id) {
  12850. this.eTitle = this.evaJuri[i].title;
  12851. this.eJson = JSON.parse(this.evaJuri[i].content);
  12852. }
  12853. }
  12854. this.data.data = [];
  12855. this.$forceUpdate();
  12856. setTimeout(() => {
  12857. this.setMindData();
  12858. }, 1000);
  12859. }
  12860. },
  12861. deleteEva() {
  12862. let _this = this;
  12863. if (_this.evalua == "") {
  12864. this.$message.warning("内容已经清空了,请勿重复清空");
  12865. return;
  12866. }
  12867. _this
  12868. .$confirm("确定删除此目标吗?", "提示", {
  12869. confirmButtonText: "确定",
  12870. cancelButtonText: "取消",
  12871. type: "warning",
  12872. })
  12873. .then(() => {
  12874. _this.evalua = "";
  12875. _this.checkId = "";
  12876. _this.eTitle = "";
  12877. let _unitJson = _this.unitJson;
  12878. for (var i = 0; i < _unitJson.length; i++) {
  12879. let _task = _unitJson[i].chapterInfo[0].taskJson;
  12880. for (var j = 0; j < _task.length; j++) {
  12881. let _eList = _task[j].eList;
  12882. for (var k = 0; k < _eList.length; k++) {
  12883. delete _eList[k].target;
  12884. }
  12885. }
  12886. }
  12887. _this.$forceUpdate();
  12888. if (_this.cid) {
  12889. _this.updateWork();
  12890. }
  12891. })
  12892. .catch(() => {
  12893. return;
  12894. });
  12895. },
  12896. selectEva() {
  12897. let params = {
  12898. oid: this.oid,
  12899. };
  12900. this.ajax
  12901. .get(this.$store.state.api + "selectAllEvaluation", params)
  12902. .then((res) => {
  12903. this.evaJuri = res.data[0];
  12904. // 在复制操作之前记录滚动位置
  12905. const savedScrollPosition = this.$refs.scrollContainer ? this.$refs.scrollContainer.scrollTop : 0;
  12906. // 执行复制操作
  12907. // 复制操作完成后恢复滚动位置
  12908. this.$nextTick(() => {
  12909. if(this.$refs.scrollContainer){
  12910. this.$refs.scrollContainer.scrollTop = savedScrollPosition;
  12911. }
  12912. });
  12913. })
  12914. .catch((err) => {
  12915. console.error(err);
  12916. });
  12917. },
  12918. setMindData() {
  12919. let targetArray = [];
  12920. this.data.data = [];
  12921. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  12922. let _eJson = Object.keys(this.eJson);
  12923. let _e = this.eJson;
  12924. for (let i = 0; i < _eJson.length; i++) {
  12925. let element = _e[_eJson[i]];
  12926. this.data.data.push({
  12927. id: element.id,
  12928. parentid: "root",
  12929. topic: element.name,
  12930. });
  12931. // targetArray.push({
  12932. // id: element.id,
  12933. // parentid: "root",
  12934. // name: element.name,
  12935. // });
  12936. targetArray.push({
  12937. value: element.name,
  12938. label: element.name,
  12939. children: [],
  12940. });
  12941. let _eJsonc = Object.keys(element.child);
  12942. let _e2 = element.child;
  12943. for (let j = 0; j < _eJsonc.length; j++) {
  12944. let _ec = _e2[_eJsonc[j]];
  12945. this.data.data.push({
  12946. id: _ec.id,
  12947. parentid: element.id,
  12948. topic: _ec.name,
  12949. });
  12950. // targetArray.push({
  12951. // id: _ec.id,
  12952. // parentid: element.id,
  12953. // name: _ec.name,
  12954. // });
  12955. targetArray[i].children.push({
  12956. value: _ec.name,
  12957. label: _ec.name,
  12958. children: [],
  12959. });
  12960. let _eJsonz = Object.keys(_ec.child);
  12961. let _e3 = _ec.child;
  12962. for (let z = 0; z < _eJsonz.length; z++) {
  12963. let _ez = _e3[_eJsonz[z]];
  12964. this.data.data.push({
  12965. id: _ez.id,
  12966. parentid: _ec.id,
  12967. topic: _ez.name,
  12968. });
  12969. // targetArray.push({
  12970. // id: _ez.id,
  12971. // parentid: _ec.id,
  12972. // name: _ez.name,
  12973. // });
  12974. targetArray[i].children[j].children.push({
  12975. value: _ez.name,
  12976. label: _ez.name,
  12977. });
  12978. }
  12979. }
  12980. }
  12981. this.targetArray = targetArray;
  12982. this.$forceUpdate();
  12983. },
  12984. /*添加评价 */
  12985. addEList(index, tIndex) {
  12986. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  12987. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  12988. value: "",
  12989. detail: "",
  12990. score: 5,
  12991. })
  12992. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  12993. { value: "", detail: "", score: 5 },
  12994. ]);
  12995. this.$forceUpdate();
  12996. },
  12997. openEList(index, tIndex) {
  12998. this.evaIndex = index;
  12999. this.evatIndex = tIndex;
  13000. this.evaBoxDialog = true;
  13001. },
  13002. addCET(index, tIndex) {
  13003. this.cetIndex = index;
  13004. this.cettIndex = tIndex;
  13005. this.selectAllType1();
  13006. },
  13007. addCETemplate() {
  13008. var array =
  13009. this.unitJson[this.cetIndex].chapterInfo[0].taskJson[this.cettIndex]
  13010. .eList;
  13011. let params = [
  13012. {
  13013. uid: this.userid,
  13014. n: this.templateName,
  13015. json: JSON.stringify(array),
  13016. t: 1,
  13017. oid: this.oid,
  13018. },
  13019. ];
  13020. this.ajax
  13021. .post(this.$store.state.api + "addCETShare", params)
  13022. .then((res) => {
  13023. this.addTypeByCET(res.data[0][0].id);
  13024. })
  13025. .catch((err) => {
  13026. this.$message.error("网络不佳");
  13027. console.error(err);
  13028. });
  13029. },
  13030. addTypeByCET(id) {
  13031. if (this.setTypeJson.two == "") {
  13032. this.$message.warning("请选择二级分类,如没有二级分类请前往添加!");
  13033. return;
  13034. }
  13035. let params = {
  13036. cid: id,
  13037. };
  13038. this.ajax
  13039. .get(this.$store.state.api + "deleteCETLabel", params)
  13040. .then((res) => {
  13041. for (var i = 0; i < 2; i++) {
  13042. let tid = "";
  13043. if (i == 0) {
  13044. tid = this.setTypeJson.one;
  13045. } else {
  13046. tid = this.setTypeJson.two;
  13047. }
  13048. let params = [
  13049. {
  13050. cid: id,
  13051. tid: tid,
  13052. uid: this.userid,
  13053. },
  13054. ];
  13055. this.ajax
  13056. .post(this.$store.state.api + "addCETLabel", params)
  13057. .then((res) => {
  13058. this.$message({
  13059. message: "添加成功",
  13060. type: "success",
  13061. });
  13062. this.close();
  13063. })
  13064. .catch((err) => {
  13065. this.$message.error("网络不佳");
  13066. console.error(err);
  13067. });
  13068. }
  13069. })
  13070. .catch((err) => {
  13071. this.$message.error("网络不佳");
  13072. console.error(err);
  13073. });
  13074. },
  13075. updateEvaJson(array) {
  13076. this.unitJson[this.evaIndex].chapterInfo[0].taskJson[
  13077. this.evatIndex
  13078. ].eList = array;
  13079. },
  13080. forceUpdate() {
  13081. this.$forceUpdate();
  13082. },
  13083. deletEList(index, tIndex, eIndex) {
  13084. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  13085. eIndex,
  13086. 1
  13087. );
  13088. this.$forceUpdate();
  13089. },
  13090. getChoosePic(t) {
  13091. this.chooseType = t;
  13092. this.getAllBanner();
  13093. },
  13094. getAllBanner() {
  13095. this.sysPicVisible = true;
  13096. let params = {
  13097. t: this.chooseType,
  13098. };
  13099. this.ajax
  13100. .get(this.$store.state.api + "selectAllBanner", params)
  13101. .then((res) => {
  13102. this.sysPic = res.data[0];
  13103. })
  13104. .catch((err) => {
  13105. console.error(err);
  13106. });
  13107. },
  13108. // getClass() {
  13109. // let params = {
  13110. // oid: this.oid,
  13111. // };
  13112. // this.ajax
  13113. // .get(this.$store.state.api + "selectClassBySchool", params)
  13114. // .then((res) => {
  13115. // this.classJuri = res.data[0];
  13116. // })
  13117. // .catch((err) => {
  13118. // console.error(err);
  13119. // });
  13120. // },
  13121. deleteSysPic() {
  13122. this.cover = [];
  13123. this.isSysPic = false;
  13124. this.isSysPic2 = false;
  13125. },
  13126. deleteSelectPic() {
  13127. this.selectJson.url = "";
  13128. },
  13129. setEListStar() {
  13130. this.$forceUpdate();
  13131. },
  13132. deletRateList(i) {
  13133. this.rateJson.splice(i, 1);
  13134. },
  13135. addRateList() {
  13136. this.rateJson.push({ detail: "", score: 5, value: "" });
  13137. },
  13138. addSt() {
  13139. this.sentenceList.push({
  13140. sentenceTitle: "",
  13141. addSentence: [],
  13142. rightAnswer: [],
  13143. });
  13144. },
  13145. addSen(i) {
  13146. if (!this.sentenceList[i].sentenceTitle) {
  13147. this.$message.error("请填写卡片内容!");
  13148. return;
  13149. }
  13150. if (this.sentenceList[i].sentenceTitle.length > 10) {
  13151. this.$message.error("卡片内容字数不能超过10位");
  13152. return;
  13153. }
  13154. if (
  13155. this.sentenceList[i].addSentence.indexOf(
  13156. this.sentenceList[i].sentenceTitle
  13157. ) !== -1
  13158. ) {
  13159. this.$message.error("不能添加重复的卡片内容!");
  13160. return;
  13161. }
  13162. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  13163. // this.isPushTitleList.push(this.sentenceTitle);
  13164. this.sentenceList[i].sentenceTitle = "";
  13165. },
  13166. setRightAnswer(s, i, j) {
  13167. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  13168. this.sentenceList[i].rightAnswer.push(s);
  13169. }
  13170. },
  13171. returnCard(r, i, j) {
  13172. this.sentenceList[i].rightAnswer.splice(j, 1);
  13173. },
  13174. addSentenceTool() {
  13175. for (var i = 0; i < this.sentenceList.length; i++) {
  13176. if (this.sentenceList[i].rightAnswer.length == 0) {
  13177. this.$message.error(`请将题目${i + 1}设置完整。`);
  13178. return;
  13179. }
  13180. if (
  13181. this.sentenceList[i].addSentence.length !=
  13182. this.sentenceList[i].rightAnswer.length
  13183. ) {
  13184. this.$message.error(`请将题目${i + 1}设置完整。`);
  13185. return;
  13186. }
  13187. }
  13188. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13189. this.taskCount
  13190. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  13191. this.sentenceList = [
  13192. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  13193. ];
  13194. this.dialogVisibleSentence = false;
  13195. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13196. // itemTaskIndex
  13197. // ].toolChoose[toolIndex].tool = [];
  13198. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13199. // itemTaskIndex
  13200. // ].toolChoose[toolIndex].tool.push(i);
  13201. if (
  13202. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13203. .toolChoose[this.toolIndex].tool != 47
  13204. ) {
  13205. this.addTools(47, this.taskCount, this.toolIndex);
  13206. }
  13207. },
  13208. addTableJson() {
  13209. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  13210. // this.$message.error("请将信息填写完整!");
  13211. // return;
  13212. // }
  13213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13214. this.taskCount
  13215. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  13216. // this.tableJson = [{ text: "" }];
  13217. // this.dialogVisibleTable = false;
  13218. this.$message.success("上传成功");
  13219. if (
  13220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13221. .toolChoose[this.toolIndex].tool != 48
  13222. ) {
  13223. this.addTools(48, this.taskCount, this.toolIndex);
  13224. }
  13225. },
  13226. addWordJson() {
  13227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13228. this.taskCount
  13229. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  13230. // this.wordJson = [{ text: "" }];
  13231. // this.dialogVisibleWord = false;
  13232. this.$message.success("上传成功");
  13233. if (
  13234. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13235. .toolChoose[this.toolIndex].tool != 52
  13236. ) {
  13237. this.addTools(52, this.taskCount, this.toolIndex);
  13238. }
  13239. },
  13240. addMoreUpload() {
  13241. if (this.uploadJson.length == 0) {
  13242. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13243. this.taskCount
  13244. ].toolChoose[this.toolIndex].uploadJson = [];
  13245. } else {
  13246. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13247. this.taskCount
  13248. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  13249. }
  13250. this.uploadJson = [];
  13251. this.dialogVisibleMoreUpload = false;
  13252. if (
  13253. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13254. .toolChoose[this.toolIndex].tool != 50
  13255. ) {
  13256. this.addTools(50, this.taskCount, this.toolIndex);
  13257. }
  13258. },
  13259. addPreTime() {
  13260. if (this.preTime == 0) {
  13261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13262. this.taskCount
  13263. ].toolChoose[this.toolIndex].preTime = 0;
  13264. } else {
  13265. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13266. this.taskCount
  13267. ].toolChoose[this.toolIndex].preTime = this.preTime;
  13268. }
  13269. this.preTime = 0;
  13270. this.dialogVisiblePreTime = false;
  13271. if (
  13272. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13273. .toolChoose[this.toolIndex].tool != 10
  13274. ) {
  13275. this.addTools(10, this.taskCount, this.toolIndex);
  13276. }
  13277. },
  13278. goToTask(i) {
  13279. this.toolIndexType = "";
  13280. if (this.isClickColor == i + 1) {
  13281. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13282. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13283. // } else {
  13284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13285. i
  13286. ].toolOpen = true;
  13287. // }
  13288. this.$forceUpdate();
  13289. return;
  13290. }
  13291. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13292. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13293. // } else {
  13294. document.querySelectorAll(".basic_box")[0].scrollTop =
  13295. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13296. this.isClickColor = i + 1;
  13297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13298. // }
  13299. this.$forceUpdate();
  13300. },
  13301. taskOpen(i, stageIndex) {
  13302. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13303. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false;
  13304. } else {
  13305. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13306. }
  13307. if(this.this.cid){
  13308. this.updateWork3(stageIndex);
  13309. }
  13310. this.$forceUpdate();
  13311. },
  13312. goToTask2(i, stage) {
  13313. this.toolIndexType = "";
  13314. if (this.isClickColor == i + 1 && this.unitIndex == stage) {
  13315. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13316. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13317. // } else {
  13318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13319. i
  13320. ].toolOpen = true;
  13321. // }
  13322. this.$forceUpdate();
  13323. return;
  13324. }
  13325. if (this.unitIndex != stage) {
  13326. if (this.panUnitJson() == 2) {
  13327. return;
  13328. }
  13329. this.unitSet(stage);
  13330. }
  13331. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  13332. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  13333. // } else {
  13334. document.querySelectorAll(".basic_box")[0].scrollTop =
  13335. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  13336. this.isClickColor = i + 1;
  13337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true;
  13338. // }
  13339. this.$forceUpdate();
  13340. },
  13341. taskMove(type, index) {
  13342. this.$confirm(
  13343. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13344. "提示",
  13345. {
  13346. confirmButtonText: "确定",
  13347. cancelButtonText: "取消",
  13348. type: "warning",
  13349. }
  13350. )
  13351. .then(() => {
  13352. if (type == 1) {
  13353. if (index > 0) {
  13354. let a = JSON.parse(
  13355. JSON.stringify(
  13356. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13357. index - 1
  13358. ]
  13359. )
  13360. );
  13361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  13362. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13363. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13364. }
  13365. } else {
  13366. if (
  13367. index <
  13368. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  13369. ) {
  13370. let a = JSON.parse(
  13371. JSON.stringify(
  13372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13373. index + 1
  13374. ]
  13375. )
  13376. );
  13377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  13378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  13379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  13380. }
  13381. }
  13382. this.$forceUpdate();
  13383. })
  13384. .catch(() => {
  13385. return;
  13386. });
  13387. },
  13388. stageMove(type, index) {
  13389. if (type == 1) {
  13390. if (index > 0) {
  13391. let a = JSON.parse(JSON.stringify(this.unitJson3[index - 1]));
  13392. let acid = JSON.parse(
  13393. JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid)
  13394. );
  13395. let bcid = JSON.parse(
  13396. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13397. );
  13398. this.unitJson3[index - 1] = this.unitJson3[index];
  13399. this.unitJson3[index] = a;
  13400. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  13401. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13402. }
  13403. } else {
  13404. if (index < this.unitJson3.length - 1) {
  13405. let a = JSON.parse(JSON.stringify(this.unitJson3[index + 1]));
  13406. let acid = JSON.parse(
  13407. JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid)
  13408. );
  13409. let bcid = JSON.parse(
  13410. JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid)
  13411. );
  13412. this.unitJson3[index + 1] = this.unitJson3[index];
  13413. this.unitJson3[index] = a;
  13414. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  13415. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  13416. }
  13417. }
  13418. this.$forceUpdate();
  13419. },
  13420. addGroup(i) {
  13421. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  13422. this.groupJson.group.push({
  13423. name: "第" + (this.groupJson.group.length + 1) + "组",
  13424. });
  13425. },
  13426. deleteGroup(i) {
  13427. this.groupJson.group.splice(i, 1);
  13428. },
  13429. numberPan() {
  13430. if (
  13431. /[^\d]/.test(this.groupJson.number) ||
  13432. this.groupJson.number < 2 ||
  13433. this.groupJson.number > 10
  13434. ) {
  13435. this.$message.error("请输入2-10的数字");
  13436. this.groupJson.number = "";
  13437. }
  13438. },
  13439. addGroupJson() {
  13440. for (var i = 0; i < this.groupJson.group.length; i++) {
  13441. if (!this.groupJson.group[i].name) {
  13442. this.$message.error("请将信息填写完整!");
  13443. return;
  13444. }
  13445. }
  13446. if (!this.groupJson.number) {
  13447. this.$message.error("请将信息填写完整!");
  13448. return;
  13449. }
  13450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13451. this.taskCount
  13452. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  13453. JSON.stringify(this.groupJson)
  13454. );
  13455. this.dialogVisibleGroup = false;
  13456. this.groupJson = {};
  13457. if (
  13458. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13459. .toolChoose[this.toolIndex].tool != 49
  13460. ) {
  13461. this.addTools(49, this.taskCount, this.toolIndex);
  13462. }
  13463. },
  13464. updateTime(preTime) {
  13465. this.preTime = preTime;
  13466. },
  13467. InviteChange(val) {
  13468. console.log(val);
  13469. let _check = [];
  13470. let _check2 = [];
  13471. for (var i = 0; i < this.grade2.length; i++) {
  13472. var gid = this.grade2[i].id;
  13473. _check.push(gid);
  13474. }
  13475. for (var i = 0; i < this.checkboxList2.length; i++) {
  13476. var _id = this.checkboxList2[i];
  13477. if (_check.indexOf(_id) !== -1) {
  13478. _check2.push(_id);
  13479. }
  13480. }
  13481. this.checkAll = _check2.length === _check.length;
  13482. return;
  13483. let array = JSON.parse(JSON.stringify(val));
  13484. this.inviteCode = this.inviteCode.filter((el) => {
  13485. if (val.indexOf(el.cid) != -1) {
  13486. array.splice(array.indexOf(el.cid), 1);
  13487. return el;
  13488. }
  13489. });
  13490. for (var i = 0; i < array.length; i++) {
  13491. this.getInviteCode(array[i]);
  13492. }
  13493. },
  13494. InviteChange2(val) {
  13495. console.log(val);
  13496. let _check = [];
  13497. let _check2 = [];
  13498. for (var i = 0; i < this.teacherJuri.length; i++) {
  13499. var gid = this.teacherJuri[i].userid;
  13500. _check.push(gid);
  13501. }
  13502. for (var i = 0; i < this.checkboxList3.length; i++) {
  13503. var _id = this.checkboxList3[i];
  13504. if (_check.indexOf(_id) !== -1) {
  13505. _check2.push(_id);
  13506. }
  13507. }
  13508. this.checkAll2 = _check2.length === _check.length;
  13509. this.setMan();
  13510. return;
  13511. let array = JSON.parse(JSON.stringify(val));
  13512. this.inviteCode = this.inviteCode.filter((el) => {
  13513. if (val.indexOf(el.cid) != -1) {
  13514. array.splice(array.indexOf(el.cid), 1);
  13515. return el;
  13516. }
  13517. });
  13518. for (var i = 0; i < array.length; i++) {
  13519. this.getInviteCode(array[i]);
  13520. }
  13521. },
  13522. handleCheckAllChange(val) {
  13523. if (val) {
  13524. for (var i = 0; i < this.grade2.length; i++) {
  13525. var gid = this.grade2[i].id;
  13526. if (this.checkboxList2.indexOf(gid) === -1) {
  13527. this.checkboxList2.push(gid);
  13528. }
  13529. }
  13530. } else {
  13531. let _check = [];
  13532. let _check2 = [];
  13533. for (var i = 0; i < this.grade2.length; i++) {
  13534. var gid = this.grade2[i].id;
  13535. _check.push(gid);
  13536. }
  13537. for (var i = 0; i < this.checkboxList2.length; i++) {
  13538. var _id = this.checkboxList2[i];
  13539. if (_check.indexOf(_id) === -1) {
  13540. _check2.push(_id);
  13541. }
  13542. }
  13543. this.checkboxList2 = _check2;
  13544. }
  13545. this.isIndeterminate = false;
  13546. },
  13547. handleCheckAllChange2(val) {
  13548. if (val) {
  13549. for (var i = 0; i < this.teacherJuri.length; i++) {
  13550. var gid = this.teacherJuri[i].userid;
  13551. if (this.checkboxList3.indexOf(gid) === -1) {
  13552. this.checkboxList3.push(gid);
  13553. }
  13554. }
  13555. } else {
  13556. let _check = [];
  13557. let _check2 = [];
  13558. for (var i = 0; i < this.teacherJuri.length; i++) {
  13559. var gid = this.teacherJuri[i].userid;
  13560. _check.push(gid);
  13561. }
  13562. for (var i = 0; i < this.checkboxList3.length; i++) {
  13563. var _id = this.checkboxList3[i];
  13564. if (_check.indexOf(_id) === -1) {
  13565. _check2.push(_id);
  13566. }
  13567. }
  13568. this.checkboxList3 = _check2;
  13569. }
  13570. this.isIndeterminate2 = false;
  13571. },
  13572. async getInviteCode(cid) {
  13573. let code = this.randomNumber();
  13574. let params = {
  13575. code: code,
  13576. oid: this.oid,
  13577. };
  13578. let type = 1;
  13579. for (var i = 0; i < this.inviteCode.length; i++) {
  13580. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  13581. type = 2;
  13582. }
  13583. }
  13584. if (type == 2) {
  13585. this.getInviteCode(cid);
  13586. return;
  13587. }
  13588. const res = await this.ajax.get(
  13589. this.$store.state.api + "selectInviteCode2",
  13590. params
  13591. );
  13592. if (
  13593. res.data.length &&
  13594. res.data[0].length &&
  13595. res.data[0][0].courseId != this.cid
  13596. ) {
  13597. this.getInviteCode(cid);
  13598. return;
  13599. }
  13600. let array = [];
  13601. for (var i = 0; i < this.inviteCode.length; i++) {
  13602. array.push(this.inviteCode[i].cid);
  13603. }
  13604. if (array.indexOf(cid) != -1) {
  13605. this.inviteCode[array.indexOf(cid)].ic = code;
  13606. } else {
  13607. this.inviteCode.push({ cid: cid, ic: code });
  13608. }
  13609. },
  13610. OpenInviteD(cid) {
  13611. let array = [];
  13612. this.icode = "";
  13613. for (var i = 0; i < this.inviteCode.length; i++) {
  13614. array.push(this.inviteCode[i].cid);
  13615. }
  13616. if (array.indexOf(cid) != -1) {
  13617. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  13618. }
  13619. this.inviteId = cid;
  13620. this.dialogVisibleInvite = true;
  13621. },
  13622. addInvite() {
  13623. let reg = /^[A-Za-z0-9]{4,}$/;
  13624. if (!reg.test(this.icode)) {
  13625. this.$message.error("请输入至少四位数字或英文组合的随机码");
  13626. return;
  13627. }
  13628. let type = 1;
  13629. for (var i = 0; i < this.inviteCode.length; i++) {
  13630. if (
  13631. this.inviteCode[i].cid != this.inviteId &&
  13632. this.icode == this.inviteCode[i].ic
  13633. ) {
  13634. type = 2;
  13635. }
  13636. }
  13637. if (type == 2) {
  13638. this.$message.error("已有此随机码,不能重复");
  13639. return;
  13640. }
  13641. let params = {
  13642. code: this.icode,
  13643. oid: this.oid,
  13644. };
  13645. this.ajax
  13646. .get(this.$store.state.api + "selectInviteCode", params)
  13647. .then((res) => {
  13648. if (
  13649. res.data.length &&
  13650. res.data[0].length &&
  13651. res.data[0][0].courseId != this.cid
  13652. ) {
  13653. this.$message.error("已有此随机码,不能重复");
  13654. return;
  13655. }
  13656. let array = [];
  13657. for (var i = 0; i < this.inviteCode.length; i++) {
  13658. array.push(this.inviteCode[i].cid);
  13659. }
  13660. if (array.indexOf(this.inviteId) != -1) {
  13661. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  13662. } else {
  13663. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  13664. }
  13665. this.icode = "";
  13666. this.dialogVisibleInvite = false;
  13667. })
  13668. .catch((err) => {
  13669. console.error(err);
  13670. });
  13671. },
  13672. randomNumber() {
  13673. // 随机生成两位数
  13674. // let num = Math.floor(Math.random() * 900) + 100;
  13675. // 生成 0 到 99 之间的随机整数
  13676. const randomNumber = Math.floor(Math.random() * 100);
  13677. // 如果随机数小于 10,补上前导零
  13678. const num =
  13679. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  13680. // 随机生成两个大写字母
  13681. let letters = "";
  13682. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  13683. for (let i = 0; i < 3; i++) {
  13684. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  13685. }
  13686. // 随机生成两位数字和字母的组合
  13687. let mix = "";
  13688. let chars =
  13689. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  13690. for (let i = 0; i < 3; i++) {
  13691. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  13692. mix += char;
  13693. }
  13694. // 随机选择一种类型
  13695. let type = Math.floor(Math.random() * 3);
  13696. return num;
  13697. // 根据类型输出结果
  13698. switch (type) {
  13699. case 0:
  13700. console.log(num); // 输出两位数
  13701. return num;
  13702. case 1:
  13703. console.log(letters); // 输出两个大写字母
  13704. return letters;
  13705. case 2:
  13706. console.log(mix); // 输出两位数字和字母的组合
  13707. return mix;
  13708. }
  13709. },
  13710. getPaste() {
  13711. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  13712. let iframe2 = top.document.querySelectorAll("#AIChat aigpt")[0];
  13713. if (!iframe && !iframe2) {
  13714. return;
  13715. }
  13716. let copyData = iframe ? iframe.contentWindow.copyData : false;
  13717. let copyData2 = iframe2 ? iframe2.contentWindow.copyData : false;
  13718. if (copyData && copyData.stageData && copyData.stageData.length) {
  13719. this.isPasteStage = true;
  13720. }
  13721. if (copyData2 && copyData2.stageData && copyData2.stageData.length) {
  13722. this.isPasteStage = true;
  13723. }
  13724. if (copyData && copyData.selectData.length) {
  13725. this.isPasteChoice = true;
  13726. }
  13727. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  13728. this.isPasteTask = true;
  13729. }
  13730. if (copyData2 && copyData2.tasksData && copyData2.tasksData.length) {
  13731. this.isPasteTask = true;
  13732. }
  13733. },
  13734. searchImage() {
  13735. var _this = this;
  13736. _this.imageList = [];
  13737. if (!_this.searchImageValue) {
  13738. _this.sysPicVisible2 = true;
  13739. return;
  13740. }
  13741. _this.imageloading = true;
  13742. _this.ajax
  13743. .post("https://gpt.cocorobo.cn/search_image", {
  13744. page: _this.ppage,
  13745. pagesize: 9,
  13746. query: _this.searchImageValue,
  13747. })
  13748. .then(function (response) {
  13749. // console.log(response.data.data);
  13750. var data = response.data.FunctionResponse.result;
  13751. for (var i = 0; i < data.length; i++) {
  13752. _this.imageList.push({ url: data[i].thumbnail });
  13753. }
  13754. _this.imageloading = false;
  13755. })
  13756. .catch(function (error) {
  13757. console.log(error);
  13758. });
  13759. _this.sysPicVisible2 = true;
  13760. },
  13761. changePicture() {
  13762. this.ppage++;
  13763. this.searchImage();
  13764. },
  13765. resetImage() {
  13766. this.ppage = 1;
  13767. this.searchImage();
  13768. },
  13769. jumpGj(i, j) {
  13770. if (i + 1 != this.isClickColor) {
  13771. this.isClickColor = i + 1;
  13772. }
  13773. var a = document.scrollingElement;
  13774. this.toolIndexType = `gj${i}${j}`;
  13775. let target = document.querySelector(`#gj${i}${j}`);
  13776. if (target) {
  13777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13778. setTimeout(() => {
  13779. target.scrollIntoView(true);
  13780. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13781. j
  13782. ].isFold3 = false;
  13783. setTimeout(() => {
  13784. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13785. }, 0);
  13786. }, 0);
  13787. }
  13788. },
  13789. jumpGj2(i, j, k) {
  13790. if (this.unitIndex != k) {
  13791. if (this.panUnitJson() == 2) {
  13792. return;
  13793. }
  13794. this.unitSet(k);
  13795. }
  13796. setTimeout(() => {
  13797. if (i + 1 != this.isClickColor) {
  13798. this.isClickColor = i + 1;
  13799. }
  13800. var a = document.scrollingElement;
  13801. this.toolIndexType = `gj${i}${j}${k}`;
  13802. let target = document.querySelector(`#gj${i}${j}`);
  13803. if (target) {
  13804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  13805. setTimeout(() => {
  13806. target.scrollIntoView(true);
  13807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[
  13808. j
  13809. ].isFold3 = false;
  13810. setTimeout(() => {
  13811. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  13812. }, 0);
  13813. }, 0);
  13814. }
  13815. }, 0);
  13816. },
  13817. dragStart(val, i, j) {
  13818. console.log(this.taskCount);
  13819. this.dragType = "drag";
  13820. this.taskCount = j;
  13821. this.oldIndex = i;
  13822. this.oldData = val;
  13823. },
  13824. dragOver(i, j) {
  13825. this.typeIndex = "chapter-" + j + "-" + i;
  13826. this.newIndex = i;
  13827. },
  13828. dragEnd() {
  13829. if (this.dragType != "drag") {
  13830. this.typeIndex = "";
  13831. this.newIndex = "";
  13832. this.dragType = "";
  13833. this.isdrag = "";
  13834. return;
  13835. }
  13836. console.log(this.taskCount);
  13837. let newItems = [
  13838. ...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  13839. .chapterData,
  13840. ];
  13841. // 删除老的节点
  13842. newItems.splice(this.oldIndex, 1);
  13843. // 在列表中目标位置增加新的节点
  13844. newItems.splice(this.newIndex, 0, this.oldData);
  13845. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  13846. this.taskCount
  13847. ].chapterData = [...newItems];
  13848. this.typeIndex = "";
  13849. this.newIndex = "";
  13850. this.dragType = "";
  13851. this.isdrag = "";
  13852. this.$forceUpdate();
  13853. },
  13854. dragTaskStart(val, i, j) {
  13855. this.dragType = "task";
  13856. this.oldIndex = i;
  13857. this.oldData = val;
  13858. this.oldUnitIndex = j;
  13859. },
  13860. dragTaskOver(i, j) {
  13861. this.typeIndex = "task-" + i;
  13862. this.newIndex = i;
  13863. this.checkUnitIndex = j;
  13864. },
  13865. async dragTaskEnd() {
  13866. if (this.dragType != "task") {
  13867. this.newIndex = "";
  13868. this.dragType = "";
  13869. this.typeIndex = "";
  13870. this.checkUnitIndex = "";
  13871. this.isdrag = "";
  13872. return;
  13873. }
  13874. if (
  13875. this.newIndex == this.oldIndex &&
  13876. this.oldUnitIndex == this.checkUnitIndex
  13877. ) {
  13878. this.newIndex = "";
  13879. this.dragType = "";
  13880. this.typeIndex = "";
  13881. this.checkUnitIndex = "";
  13882. this.isdrag = "";
  13883. return;
  13884. }
  13885. let count1 = await this.getWorksCount(
  13886. 2,
  13887. this.checkUnitIndex,
  13888. this.newIndex,
  13889. 0
  13890. );
  13891. let count2 = await this.getWorksCount(
  13892. 2,
  13893. this.oldUnitIndex,
  13894. this.oldIndex,
  13895. 0
  13896. );
  13897. if (count1 > 0 || count2 > 0) {
  13898. this.$confirm(
  13899. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  13900. "提示",
  13901. {
  13902. confirmButtonText: "确定",
  13903. cancelButtonText: "取消",
  13904. type: "warning",
  13905. }
  13906. )
  13907. .then(() => {
  13908. if (this.oldUnitIndex != this.checkUnitIndex) {
  13909. let newItems = [
  13910. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13911. ];
  13912. // 删除老的节点
  13913. newItems.splice(this.oldIndex, 1);
  13914. // 在列表中目标位置增加新的节点
  13915. let newItems2 = [
  13916. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13917. ];
  13918. newItems2.splice(this.newIndex, 0, this.oldData);
  13919. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13920. ...newItems,
  13921. ];
  13922. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13923. ...newItems2,
  13924. ];
  13925. } else {
  13926. let newItems = [
  13927. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13928. ];
  13929. // 删除老的节点
  13930. newItems.splice(this.oldIndex, 1);
  13931. // 在列表中目标位置增加新的节点
  13932. newItems.splice(this.newIndex, 0, this.oldData);
  13933. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13934. ...newItems,
  13935. ];
  13936. }
  13937. this.typeIndex = "";
  13938. this.newIndex = "";
  13939. this.dragType = "";
  13940. this.checkUnitIndex = "";
  13941. this.isdrag = "";
  13942. this.updateWork();
  13943. this.$forceUpdate();
  13944. })
  13945. .catch(() => {
  13946. this.newIndex = "";
  13947. this.dragType = "";
  13948. this.typeIndex = "";
  13949. this.checkUnitIndex = "";
  13950. this.isdrag = "";
  13951. return;
  13952. });
  13953. } else {
  13954. if (this.oldUnitIndex != this.checkUnitIndex) {
  13955. let newItems = [
  13956. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13957. ];
  13958. // 删除老的节点
  13959. newItems.splice(this.oldIndex, 1);
  13960. // 在列表中目标位置增加新的节点
  13961. let newItems2 = [
  13962. ...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson,
  13963. ];
  13964. newItems2.splice(this.newIndex, 0, this.oldData);
  13965. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13966. ...newItems,
  13967. ];
  13968. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [
  13969. ...newItems2,
  13970. ];
  13971. } else {
  13972. let newItems = [
  13973. ...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson,
  13974. ];
  13975. // 删除老的节点
  13976. newItems.splice(this.oldIndex, 1);
  13977. // 在列表中目标位置增加新的节点
  13978. newItems.splice(this.newIndex, 0, this.oldData);
  13979. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [
  13980. ...newItems,
  13981. ];
  13982. }
  13983. this.typeIndex = "";
  13984. this.newIndex = "";
  13985. this.dragType = "";
  13986. this.checkUnitIndex = "";
  13987. this.isdrag = "";
  13988. this.updateWork();
  13989. this.$forceUpdate();
  13990. }
  13991. },
  13992. dragUnitStart(val, i) {
  13993. this.dragType = "Unit";
  13994. this.oldIndex = i;
  13995. this.oldData = val;
  13996. },
  13997. dragUnitOver(i) {
  13998. this.typeIndex = "Unit-" + i;
  13999. this.newIndex = i;
  14000. console.log(i, this.unitJson[i].toolOpen);
  14001. if (!this.unitJson[i].toolOpen && this.dragType == "task") {
  14002. this.unitJson[i].toolOpen = true;
  14003. this.updateWork();
  14004. this.$forceUpdate();
  14005. }
  14006. },
  14007. async dragUnitEnd() {
  14008. if (this.dragType != "Unit") {
  14009. this.newIndex = "";
  14010. this.dragType = "";
  14011. this.typeIndex = "";
  14012. this.isdrag = "";
  14013. return;
  14014. }
  14015. if (this.newIndex == this.oldIndex) {
  14016. this.newIndex = "";
  14017. this.dragType = "";
  14018. this.typeIndex = "";
  14019. this.isdrag = "";
  14020. return;
  14021. }
  14022. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0);
  14023. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0);
  14024. console.log(count1, count2);
  14025. if (count1 > 0 || count2 > 0) {
  14026. this.$confirm(
  14027. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  14028. "提示",
  14029. {
  14030. confirmButtonText: "确定",
  14031. cancelButtonText: "取消",
  14032. type: "warning",
  14033. }
  14034. )
  14035. .then(() => {
  14036. let newItems = [...this.unitJson];
  14037. // 删除老的节点
  14038. newItems.splice(this.oldIndex, 1);
  14039. // 在列表中目标位置增加新的节点
  14040. newItems.splice(this.newIndex, 0, this.oldData);
  14041. this.unitJson = [...newItems];
  14042. this.typeIndex = "";
  14043. this.newIndex = "";
  14044. this.dragType = "";
  14045. this.isdrag = "";
  14046. this.updateWork();
  14047. this.$forceUpdate();
  14048. })
  14049. .catch(() => {
  14050. this.newIndex = "";
  14051. this.dragType = "";
  14052. this.typeIndex = "";
  14053. this.isdrag = "";
  14054. return;
  14055. });
  14056. } else {
  14057. let newItems = [...this.unitJson];
  14058. // 删除老的节点
  14059. newItems.splice(this.oldIndex, 1);
  14060. // 在列表中目标位置增加新的节点
  14061. newItems.splice(this.newIndex, 0, this.oldData);
  14062. this.unitJson = [...newItems];
  14063. this.typeIndex = "";
  14064. this.newIndex = "";
  14065. this.dragType = "";
  14066. this.isdrag = "";
  14067. this.updateWork();
  14068. this.$forceUpdate();
  14069. }
  14070. },
  14071. getWorksCount(type, stage, task, tool) {
  14072. return new Promise((resolve, reject) => {
  14073. let params = [
  14074. {
  14075. cid: this.cid,
  14076. stage: stage,
  14077. task: task,
  14078. tool: tool,
  14079. type: type,
  14080. },
  14081. ];
  14082. this.ajax
  14083. .post(this.$store.state.api + "getCourseWorkCount", params)
  14084. .then((res) => {
  14085. let count = res.data[0][0].count;
  14086. resolve(count);
  14087. })
  14088. .catch((err) => {
  14089. resolve(0);
  14090. this.$message.error("网络不佳");
  14091. console.error(err);
  14092. });
  14093. });
  14094. },
  14095. getTwoType(id) {
  14096. this.twoJson = [];
  14097. var array = this.CourseTypeJson1[
  14098. "3f8eed32-aba9-11ee-b534-005056b86db5"
  14099. ].filter((e) => {
  14100. return e.ppid == id;
  14101. });
  14102. this.twoJson = array;
  14103. this.$forceUpdate();
  14104. },
  14105. ctype() {
  14106. this.oneJson =
  14107. this.CourseTypeJson1["3c73702a-aba9-11ee-b534-005056b86db5"];
  14108. },
  14109. selectAllType1() {
  14110. this.CourseType1 = [];
  14111. this.CourseTypeJson1 = {};
  14112. this.courseTypeId1 = {};
  14113. this.$forceUpdate();
  14114. let params = {
  14115. org: this.org && this.org != "" ? this.org : "",
  14116. oid: this.oid && this.oid != "" ? this.oid : "",
  14117. };
  14118. this.ajax
  14119. .get(this.$store.state.api + "selectAllEvaType", params)
  14120. .then((res) => {
  14121. this.CourseType1 = res.data;
  14122. for (var i = 0; i < res.data[0].length; i++) {
  14123. if (res.data[0][i].id == "3c73702a-aba9-11ee-b534-005056b86db5") {
  14124. res.data[0][i].name = "一级分类";
  14125. } else if (
  14126. res.data[0][i].id == "3f8eed32-aba9-11ee-b534-005056b86db5"
  14127. ) {
  14128. res.data[0][i].name = "二级分类";
  14129. }
  14130. if (!this.cid) {
  14131. this.courseTypeId1[res.data[0][i].id] = [];
  14132. }
  14133. if (!this.CourseTypeJson1[res.data[0][i].id]) {
  14134. this.CourseTypeJson1[res.data[0][i].id] = [];
  14135. }
  14136. // if (res.data[2].length == 0 && res.data[3].length == 0) {
  14137. for (var j = 0; j < res.data[1].length; j++) {
  14138. if (res.data[0][i].id == res.data[1][j].pid) {
  14139. this.CourseTypeJson1[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  14140. }
  14141. }
  14142. // } else {
  14143. if (res.data[2].length > 0) {
  14144. for (var j = 0; j < res.data[2].length; j++) {
  14145. if (res.data[0][i].id == res.data[2][j].pid) {
  14146. this.CourseTypeJson1[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  14147. }
  14148. }
  14149. }
  14150. if (res.data[3].length > 0) {
  14151. for (var j = 0; j < res.data[3].length; j++) {
  14152. if (res.data[0][i].id == res.data[3][j].pid) {
  14153. this.CourseTypeJson1[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  14154. }
  14155. }
  14156. }
  14157. // }
  14158. }
  14159. this.ctype();
  14160. this.cetBoxDialog = true;
  14161. })
  14162. .catch((err) => {
  14163. console.error(err);
  14164. });
  14165. },
  14166. },
  14167. beforeDestroy() {
  14168. clearTimeout(this.timer);
  14169. this.timer = null;
  14170. clearInterval(this.timer2);
  14171. this.timer2 = null;
  14172. clearInterval(this.pasteTimer);
  14173. this.pasteTimer = null;
  14174. },
  14175. beforeRouteLeave(to, from, next) {
  14176. clearTimeout(this.timer);
  14177. this.timer = null;
  14178. clearInterval(this.timer2);
  14179. this.timer2 = null;
  14180. clearInterval(this.pasteTimer);
  14181. this.pasteTimer = null;
  14182. next();
  14183. },
  14184. mounted(){
  14185. this.$nextTick(()=>{
  14186. let height1 = $(".whiteBg")[0] ? $(".whiteBg")[0].offsetHeight : 0
  14187. let height2 = $(".whiteBg")[1] ? $(".whiteBg")[1].offsetHeight : 0
  14188. this.rightBoxHeight = height1 + height2
  14189. })
  14190. },
  14191. created() {
  14192. this.getStudent();
  14193. this.getTeacher();
  14194. this.getClass();
  14195. this.selectGrage();
  14196. this.getTemplate();
  14197. // this.selectType();
  14198. this.selectEva();
  14199. this.loading = false;
  14200. this.timer2 = setInterval(() => {
  14201. this.selectEva();
  14202. }, 5000);
  14203. this.pasteTimer = setInterval(() => {
  14204. this.getPaste();
  14205. }, 1000);
  14206. setTimeout(() => {
  14207. this.selectCourseDetail();
  14208. }, 500);
  14209. let _this = this;
  14210. window.pasteStage = function (json) {
  14211. _this.pasteStage(json);
  14212. };
  14213. window.pasteTask = function (json) {
  14214. _this.pasteTask(json);
  14215. };
  14216. },
  14217. };
  14218. </script>
  14219. <style scoped>
  14220. @media screen and (max-width: 1280px) {
  14221. .mbCss {
  14222. flex-direction: column !important;
  14223. }
  14224. .pjCss {
  14225. width: 100% !important;
  14226. }
  14227. .evaCss {
  14228. width: 100% !important;
  14229. margin-top: 10px;
  14230. }
  14231. }
  14232. .el-table >>> .even_row {
  14233. background-color: #f1f1f1 !important;
  14234. }
  14235. .dialog_diy >>> .el-dialog__header {
  14236. background: #3c3c3c !important;
  14237. padding: 15px 20px;
  14238. }
  14239. .dialog_diy >>> .el-dialog__title {
  14240. color: #fff;
  14241. }
  14242. .dialog_diy >>> .el-dialog__headerbtn {
  14243. top: 19px;
  14244. }
  14245. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  14246. color: #fff;
  14247. }
  14248. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  14249. color: #fff;
  14250. }
  14251. .dialog_diy >>> .el-dialog__body,
  14252. .dialog_diy >>> .el-dialog__footer {
  14253. background: #fafafa;
  14254. }
  14255. .dialog_diy3 >>> .el-dialog__body,
  14256. .dialog_diy3 >>> .el-dialog__footer {
  14257. background: #eee !important;
  14258. }
  14259. .dialog_diy3 >>> .el-dialog__body {
  14260. padding: 20px 20px;
  14261. }
  14262. .dialog_diyStage >>> .el-dialog__body {
  14263. padding: 10px;
  14264. }
  14265. .source_diy >>> .el-dialog {
  14266. height: 100% !important;
  14267. margin: 0 auto !important;
  14268. }
  14269. .source_diy >>> .el-dialog__body {
  14270. height: calc(100% - 185px);
  14271. overflow: auto;
  14272. background: #e6eaf0;
  14273. }
  14274. .source_diy >>> .el-dialog__footer {
  14275. background: #e6eaf0 !important;
  14276. }
  14277. .left {
  14278. border-right: 1px solid rgb(60, 94, 143);
  14279. display: flex;
  14280. flex-direction: column;
  14281. align-items: center;
  14282. min-height: 600px;
  14283. width: 385px;
  14284. height: 80%;
  14285. }
  14286. .tips {
  14287. color: rgb(128, 128, 128);
  14288. font-size: 12px;
  14289. width: 270px;
  14290. margin: 40px;
  14291. }
  14292. .pb_content {
  14293. height: 100% !important;
  14294. /* margin: 0 20px 0 20px; */
  14295. }
  14296. .pb_content_body {
  14297. width: 100% !important;
  14298. height: 100%;
  14299. }
  14300. .info_solid {
  14301. width: 270px;
  14302. height: 30px;
  14303. border-left: 1px solid #bdbdbd;
  14304. margin: 10px 0px 10px 30px;
  14305. }
  14306. .info_steps {
  14307. width: 270px;
  14308. font-size: 0.875rem;
  14309. display: flex;
  14310. align-items: center;
  14311. }
  14312. .info_steps span:nth-child(1) {
  14313. width: 30px;
  14314. height: 30px;
  14315. background: rgba(0, 0, 0, 0.38);
  14316. display: block;
  14317. color: #fff;
  14318. border-radius: 40px;
  14319. text-align: center;
  14320. line-height: 30px;
  14321. }
  14322. .steps_active {
  14323. background: #3d67bc !important;
  14324. }
  14325. .info_steps span:nth-child(2) {
  14326. margin-left: 5px;
  14327. }
  14328. .right {
  14329. height: 100%;
  14330. width: 100%;
  14331. display: flex;
  14332. overflow: hidden;
  14333. flex-direction: column;
  14334. }
  14335. .basic_box {
  14336. margin: 0 auto;
  14337. position: relative;
  14338. padding: 0 20px 0 20px;
  14339. }
  14340. .basic_box_success {
  14341. width: 100%;
  14342. min-height: 455px;
  14343. padding: 50px 0;
  14344. position: relative;
  14345. text-align: center;
  14346. border-bottom: 1px solid #bfbfbf;
  14347. box-sizing: border-box;
  14348. display: flex;
  14349. align-items: center;
  14350. flex-direction: column;
  14351. justify-content: center;
  14352. }
  14353. .info_title {
  14354. font-size: 1.5em;
  14355. margin-right: 25px;
  14356. /* margin: 20px 30px 20px 30px; */
  14357. }
  14358. .bInfo_title {
  14359. text-align: left;
  14360. margin: 10px 0;
  14361. }
  14362. .small_title {
  14363. font-size: 14px;
  14364. line-height: 40px;
  14365. }
  14366. .chapter_beizhu {
  14367. font-size: 12px;
  14368. font-weight: bold;
  14369. float: right;
  14370. color: rgb(128, 128, 128);
  14371. margin-top: 5px;
  14372. }
  14373. .chapter_uploadBox1 {
  14374. text-align: left;
  14375. background-color: rgb(242, 242, 242);
  14376. width: 100%;
  14377. height: 67px;
  14378. padding: 0px 15px;
  14379. border-radius: 8px;
  14380. overflow: hidden;
  14381. font-size: 16px;
  14382. box-sizing: border-box;
  14383. position: relative;
  14384. }
  14385. .chapter_add {
  14386. width: 100%;
  14387. height: 32px;
  14388. margin-top: 15px;
  14389. cursor: pointer;
  14390. }
  14391. .chapter_add_l {
  14392. margin-left: 5px;
  14393. width: 30px;
  14394. height: 30px;
  14395. float: left;
  14396. border: 1px solid #aaa;
  14397. color: #aaa;
  14398. border-radius: 50%;
  14399. font-size: 25px;
  14400. text-align: center;
  14401. }
  14402. .chapter_add_r {
  14403. font-size: 18px;
  14404. height: 40px;
  14405. line-height: 30px;
  14406. text-indent: 10px;
  14407. color: #aaa;
  14408. }
  14409. .chapter_add_r span {
  14410. font-size: 12px;
  14411. color: rgb(204, 204, 204);
  14412. }
  14413. .chapter_add_input {
  14414. display: none;
  14415. }
  14416. .line {
  14417. width: 85%;
  14418. margin: 0 auto;
  14419. border-top: 1px solid #e5e5e5;
  14420. margin-top: 20px;
  14421. }
  14422. .info_btnBox {
  14423. width: calc(100%);
  14424. display: flex;
  14425. justify-content: center;
  14426. height: 80px;
  14427. align-items: center;
  14428. background: #fff;
  14429. margin: 0 auto;
  14430. border-top: 2px solid rgb(228, 232, 237);
  14431. box-sizing: border-box;
  14432. }
  14433. .info_btnBox2 {
  14434. width: calc(100%);
  14435. display: flex;
  14436. justify-content: center;
  14437. height: 20px;
  14438. align-items: center;
  14439. background: #fff;
  14440. margin: 0 auto;
  14441. border-top: 2px solid rgb(228, 232, 237);
  14442. box-sizing: border-box;
  14443. overflow: hidden;
  14444. cursor: pointer;
  14445. }
  14446. .info_btnBox3 {
  14447. width: calc(100%);
  14448. display: flex;
  14449. justify-content: flex-end;
  14450. padding: 0 20px;
  14451. height: 60px;
  14452. align-items: center;
  14453. background: unset;
  14454. margin: 0 auto;
  14455. /* border-top: 1px solid rgb(228, 232, 237); */
  14456. box-sizing: border-box;
  14457. overflow: hidden;
  14458. cursor: pointer;
  14459. background: #fff;
  14460. border-radius: 10px;
  14461. }
  14462. .info_btn + .info_btn {
  14463. margin-left: 15px;
  14464. }
  14465. .info_btn,
  14466. .teacherWord {
  14467. color: #fff;
  14468. background-color: #0f7eff;
  14469. padding: 8px 24px;
  14470. font-size: 0.9375rem;
  14471. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  14472. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  14473. min-width: 64px;
  14474. font-weight: 500;
  14475. border-radius: 4px;
  14476. box-sizing: border-box;
  14477. border: none;
  14478. cursor: pointer;
  14479. }
  14480. .teacherWord {
  14481. width: 105px !important;
  14482. text-align: center !important;
  14483. line-height: 36px !important;
  14484. padding: 0 !important;
  14485. font-size: 14px !important;
  14486. margin: 10px 0 !important;
  14487. }
  14488. .template_box {
  14489. display: flex;
  14490. flex-wrap: wrap;
  14491. }
  14492. .wordTeacher {
  14493. display: flex;
  14494. flex-direction: column;
  14495. width: 100px;
  14496. height: 100px;
  14497. text-align: center;
  14498. font-size: 13px;
  14499. margin: 0 20px 20px 0;
  14500. background: #f0f4fa;
  14501. position: relative;
  14502. border-radius: 5px;
  14503. align-items: center;
  14504. justify-content: center;
  14505. border: 1px solid #cad1dc;
  14506. color: #0e1e33;
  14507. /* padding: 25px 0px; */
  14508. cursor: pointer;
  14509. }
  14510. .wordTeacher::after {
  14511. content: "";
  14512. display: block;
  14513. position: absolute;
  14514. width: 15px;
  14515. height: 15px;
  14516. right: 10px;
  14517. top: 10px;
  14518. background-image: url(../../../assets/icon/new/choose_a.png);
  14519. background-size: 100% 100%;
  14520. }
  14521. .wordTeacherA::after {
  14522. background-image: url(../../../assets/icon/new/choose_b.png);
  14523. }
  14524. .wordTeacher:nth-child(5n) {
  14525. margin-right: 0px;
  14526. }
  14527. .wordPic {
  14528. margin: 0 auto;
  14529. width: 30px;
  14530. height: 30px;
  14531. cursor: pointer;
  14532. }
  14533. .deleteWord {
  14534. width: 22px;
  14535. height: 22px;
  14536. position: absolute;
  14537. right: 5px;
  14538. top: -15px;
  14539. cursor: pointer;
  14540. display: none;
  14541. z-index: 999;
  14542. }
  14543. .wordPic > img,
  14544. .deleteWord > img,
  14545. .addToolImg > img {
  14546. width: 100%;
  14547. height: 100%;
  14548. }
  14549. .info_btn:hover {
  14550. background-color: #4f7cd5 !important;
  14551. }
  14552. .cru_selectBox {
  14553. display: flex;
  14554. margin: 15px 0;
  14555. flex-wrap: nowrap;
  14556. white-space: nowrap;
  14557. overflow: auto;
  14558. position: relative;
  14559. height: 40px;
  14560. max-width: calc(100% - 175px);
  14561. }
  14562. .cru_selectBox::-webkit-scrollbar {
  14563. /*滚动条整体样式*/
  14564. width: 6px;
  14565. /*高宽分别对应横竖滚动条的尺寸*/
  14566. height: 6px;
  14567. }
  14568. /*定义滚动条轨道 内阴影+圆角*/
  14569. .cru_selectBox::-webkit-scrollbar-track {
  14570. border-radius: 10px;
  14571. background-color: #eee;
  14572. }
  14573. /*定义滑块 内阴影+圆角*/
  14574. .cru_selectBox::-webkit-scrollbar-thumb {
  14575. border-radius: 10px;
  14576. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  14577. background-color: rgba(0, 0, 0, 0.1);
  14578. }
  14579. .cru_line {
  14580. position: absolute;
  14581. bottom: 0px;
  14582. transition: all 0.5s;
  14583. left: 0px;
  14584. width: 50px;
  14585. height: 4px;
  14586. left: 10px;
  14587. border-radius: 2px;
  14588. background: #3681fc;
  14589. }
  14590. .cru_select {
  14591. font-size: 18px;
  14592. margin-right: 20px;
  14593. margin-left: 5px;
  14594. cursor: pointer;
  14595. color: #0e1e33;
  14596. }
  14597. .cru_select:hover {
  14598. color: #3681fc !important;
  14599. }
  14600. .cru_selected {
  14601. color: #3681fc !important;
  14602. font-weight: bold;
  14603. }
  14604. .chapter_box {
  14605. margin-top: 10px;
  14606. width: 100%;
  14607. padding: 10px 20px;
  14608. background: #fff;
  14609. border-radius: 8px;
  14610. box-sizing: border-box;
  14611. }
  14612. .chapter_contentbox {
  14613. display: flex;
  14614. align-items: center;
  14615. /* margin-top: 15px; */
  14616. }
  14617. .chapter_contentbox .cc_title {
  14618. margin: 0px;
  14619. color: black;
  14620. display: block;
  14621. white-space: nowrap;
  14622. overflow: hidden;
  14623. text-overflow: ellipsis;
  14624. margin-right: 20px;
  14625. font-size: 18px;
  14626. height: 20px;
  14627. line-height: 22px;
  14628. min-width: fit-content;
  14629. display: flex;
  14630. }
  14631. .chapter_contentbox .cc_title::before {
  14632. content: "";
  14633. height: 100%;
  14634. width: 3px;
  14635. background: #3681fc;
  14636. border-radius: 3px;
  14637. opacity: 1;
  14638. display: block;
  14639. margin-right: 10px;
  14640. }
  14641. .chapter_contentbox .cc_input {
  14642. width: 100%;
  14643. display: flex;
  14644. }
  14645. .show_taskD {
  14646. min-width: fit-content;
  14647. margin-left: 10px;
  14648. display: flex;
  14649. align-items: center;
  14650. font-size: 14px;
  14651. cursor: pointer;
  14652. color: #717c8d;
  14653. }
  14654. .show_taskD > img {
  14655. width: 15px;
  14656. margin-right: 5px;
  14657. transition: 0.2s all;
  14658. transform: rotate(-90deg);
  14659. }
  14660. .show_taskD.show > img {
  14661. transform: rotate(0deg);
  14662. }
  14663. .show_toolD {
  14664. min-width: fit-content;
  14665. margin-left: 10px;
  14666. display: flex;
  14667. align-items: center;
  14668. font-size: 14px;
  14669. cursor: pointer;
  14670. color: #717c8d;
  14671. /* position: absolute;
  14672. right: 45px;
  14673. top: 5px; */
  14674. }
  14675. .show_toolD > img {
  14676. width: 15px;
  14677. margin-right: 5px;
  14678. transition: 0.2s all;
  14679. transform: rotate(-90deg);
  14680. }
  14681. .show_toolD.show > img {
  14682. transform: rotate(0deg);
  14683. }
  14684. .remove {
  14685. background-image: url("../../../assets/icon/new/delete_u.png");
  14686. cursor: pointer;
  14687. opacity: 0.5;
  14688. width: 30px;
  14689. min-width: 30px;
  14690. height: 30px;
  14691. background-size: 100% 100%;
  14692. background-repeat: no-repeat;
  14693. margin-left: 10px;
  14694. }
  14695. .remove1 {
  14696. background-image: url("../../../assets/remove1.png");
  14697. background-repeat: no-repeat;
  14698. background-position: 5px 10px;
  14699. width: 40px;
  14700. height: 50px;
  14701. cursor: pointer;
  14702. margin-left: 10px;
  14703. }
  14704. .binfo_input {
  14705. width: 100%;
  14706. margin: 0;
  14707. padding: 12px 14px;
  14708. display: block;
  14709. min-width: 0;
  14710. outline: none;
  14711. box-sizing: border-box;
  14712. background: none;
  14713. border: none;
  14714. border-radius: 4px;
  14715. background: #fff;
  14716. font-size: 16px;
  14717. resize: none;
  14718. font-family: "Microsoft YaHei";
  14719. min-height: 48px;
  14720. /* border: 1px solid #3682fc00; */
  14721. border: 1.5px solid #cad1dc;
  14722. }
  14723. .binfo_textarea {
  14724. border: 1.5px solid #cad1dc;
  14725. font-size: 16px;
  14726. resize: none;
  14727. /* background: #f6f6f6; */
  14728. font-family: "Microsoft YaHei";
  14729. }
  14730. .binfo_input:focus-visible {
  14731. border: 1.5px solid #3681fc !important;
  14732. }
  14733. .time {
  14734. display: flex;
  14735. margin: 35px 0 80px 0;
  14736. }
  14737. .chapter_btnbox {
  14738. width: 160px;
  14739. border-radius: 5px;
  14740. border: 2px dashed gray;
  14741. display: flex;
  14742. padding: 8px 50px;
  14743. align-items: center;
  14744. justify-content: center;
  14745. margin: 30px auto 0;
  14746. cursor: pointer;
  14747. }
  14748. .icon_add {
  14749. position: relative;
  14750. width: 24px;
  14751. padding-top: 20px;
  14752. border-radius: 100%;
  14753. border-width: 2px;
  14754. border-style: solid;
  14755. border-color: gray;
  14756. }
  14757. .icon_add i:nth-child(1) {
  14758. position: absolute;
  14759. left: 50%;
  14760. top: 50%;
  14761. height: 60%;
  14762. transform: translate(-50%, -50%);
  14763. border-width: 1px;
  14764. border-style: solid;
  14765. border-color: inherit;
  14766. }
  14767. .icon_add i:nth-child(2) {
  14768. position: absolute;
  14769. top: 50%;
  14770. left: 50%;
  14771. width: 60%;
  14772. transform: translate(-50%, -50%);
  14773. border-width: 1px;
  14774. border-style: solid;
  14775. border-color: inherit;
  14776. }
  14777. .chapter_btn_w {
  14778. font-size: 0.9375rem;
  14779. font-weight: bold;
  14780. color: gray;
  14781. margin-left: 20px;
  14782. }
  14783. .disUoloadSty >>> .el-icon-plus {
  14784. display: none !important;
  14785. /* 上传按钮隐藏 */
  14786. }
  14787. .imgLeft {
  14788. margin: 15px 0;
  14789. }
  14790. .add_info_box {
  14791. margin: 0 0 0 auto;
  14792. display: flex;
  14793. flex-wrap: wrap;
  14794. }
  14795. .add_info_box button {
  14796. margin: 0 5px 10px 0;
  14797. }
  14798. .add_info_box2 {
  14799. display: flex;
  14800. align-items: center;
  14801. flex-wrap: wrap;
  14802. }
  14803. .add_info_box2::after {
  14804. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  14805. color: red;
  14806. font-size: 14px;
  14807. margin-bottom: 10px;
  14808. }
  14809. .add_chapters_box {
  14810. text-align: left;
  14811. background-color: #fff;
  14812. width: 100%;
  14813. border-radius: 4px;
  14814. font-size: 16px;
  14815. box-sizing: border-box;
  14816. position: relative;
  14817. padding: 0 15px;
  14818. height: auto;
  14819. overflow-y: auto;
  14820. overflow-x: hidden;
  14821. border: 1px solid #cad1dc;
  14822. }
  14823. .add_chapters_box.add_c_none {
  14824. display: flex;
  14825. justify-content: center;
  14826. align-items: center;
  14827. padding: 15px;
  14828. }
  14829. .add_c_none > img {
  14830. width: 25px;
  14831. }
  14832. .add_chapters_box.add_c_none > span {
  14833. font-size: 14px;
  14834. font-weight: 400;
  14835. margin: 0 0 5px 5px;
  14836. }
  14837. .homework_box {
  14838. display: flex;
  14839. align-items: flex-start;
  14840. flex-wrap: wrap;
  14841. margin: 15px 0 0 0;
  14842. flex-direction: column;
  14843. align-content: flex-start;
  14844. }
  14845. .course_homework {
  14846. display: flex;
  14847. justify-content: center;
  14848. flex-direction: row;
  14849. align-items: center;
  14850. margin: 0 10px 0 0;
  14851. }
  14852. .course_homework >>> .el-input__inner {
  14853. width: 140px;
  14854. margin-left: 15px;
  14855. }
  14856. .chapter_upload_move {
  14857. position: relative;
  14858. background-color: #fff;
  14859. position: absolute;
  14860. width: 100%;
  14861. top: 0px;
  14862. left: 0px;
  14863. border: 1px solid #eee;
  14864. border-radius: 5px;
  14865. transition: width 2s;
  14866. -moz-transition: width 2s;
  14867. -webkit-transition: width 2s;
  14868. -o-transition: width 2s;
  14869. }
  14870. .chapter_upload_l_i {
  14871. background-image: url("../../../assets/icon.png");
  14872. background-position: 3px -165px;
  14873. width: 30px;
  14874. height: 30px;
  14875. margin: 10px auto 0 auto;
  14876. }
  14877. .course_input_box {
  14878. display: flex;
  14879. margin-right: 20px;
  14880. width: 100%;
  14881. align-items: center;
  14882. position: relative;
  14883. }
  14884. .course_input_box > .binfo_input {
  14885. width: calc(100% - 0 - 200px - 20px);
  14886. margin: 0 10px;
  14887. }
  14888. .bb_courseIcon {
  14889. width: 57px;
  14890. height: 45px;
  14891. background: #f0f4fa;
  14892. border-radius: 5px 0px 0px 5px;
  14893. display: flex;
  14894. align-items: center;
  14895. justify-content: center;
  14896. border-right: 1.5px solid rgb(202, 209, 220);
  14897. box-sizing: border-box;
  14898. position: absolute;
  14899. left: 1.5px;
  14900. }
  14901. .bb_courseIcon > img {
  14902. width: 25px;
  14903. height: auto;
  14904. }
  14905. .big_box {
  14906. /* margin-top: 20px; */
  14907. display: flex;
  14908. justify-content: space-between;
  14909. /* border-bottom: 1px solid #E0E2ED; */
  14910. }
  14911. .left_first {
  14912. display: flex;
  14913. flex-direction: column;
  14914. flex-wrap: nowrap;
  14915. width: calc(100% - 310px);
  14916. padding: 20px;
  14917. box-sizing: border-box;
  14918. background: #fff;
  14919. border-radius: 5px;
  14920. }
  14921. .right_first {
  14922. width: 300px;
  14923. display: flex;
  14924. align-items: center;
  14925. justify-content: center;
  14926. /* border-left: 1px solid #E0E2ED; */
  14927. box-sizing: border-box;
  14928. padding: 20px;
  14929. flex-direction: column;
  14930. background: #fff;
  14931. border-radius: 5px;
  14932. }
  14933. .ai_box {
  14934. width: 204px;
  14935. display: flex;
  14936. justify-content: flex-end;
  14937. margin-bottom: 15px;
  14938. }
  14939. .ai_content {
  14940. display: flex;
  14941. align-items: center;
  14942. font-size: 14px;
  14943. padding: 7px 20px;
  14944. box-sizing: border-box;
  14945. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  14946. border-radius: 12px;
  14947. font-weight: 700;
  14948. cursor: pointer;
  14949. }
  14950. .ai_content > img {
  14951. width: 40px;
  14952. margin-right: 5px;
  14953. }
  14954. .c_info_title {
  14955. padding: 15px 0 15px 0;
  14956. font-size: 16px;
  14957. font-weight: bold;
  14958. margin: 0 0 0 20px;
  14959. box-sizing: border-box;
  14960. display: flex;
  14961. align-items: center;
  14962. line-height: 20px;
  14963. }
  14964. .c_info_title::before {
  14965. content: "";
  14966. display: block;
  14967. width: 3px;
  14968. height: 20px;
  14969. background: #0061ff;
  14970. border-radius: 3px;
  14971. margin: 0 5px 0 0;
  14972. }
  14973. .right_title {
  14974. height: 30px;
  14975. padding: 15px 0 15px 20px;
  14976. border-bottom: 1px solid #f2f2f2;
  14977. font-size: 1.5em;
  14978. font-weight: bold;
  14979. color: #0f7eff;
  14980. margin: 0 auto;
  14981. }
  14982. .people {
  14983. border: 1px solid rgb(229 229 229);
  14984. /* height: 495px; */
  14985. height: 350px;
  14986. border-radius: 5px;
  14987. width: 100%;
  14988. overflow: auto;
  14989. }
  14990. .people_top {
  14991. display: flex;
  14992. width: 100%;
  14993. /* justify-content: space-between; */
  14994. /* align-items: center; */
  14995. flex-direction: column;
  14996. padding: 10px 10px 0;
  14997. box-sizing: border-box;
  14998. }
  14999. .people_nav,
  15000. .people_top_right {
  15001. /* padding: 20px 0 0 20px; */
  15002. }
  15003. .people_top_right {
  15004. height: 40px;
  15005. margin-bottom: 10px;
  15006. }
  15007. .people_search {
  15008. display: flex;
  15009. position: relative;
  15010. }
  15011. .people_search >>> .el-input__inner {
  15012. /* height: 25px; */
  15013. width: 100%;
  15014. }
  15015. .search_img {
  15016. width: 20px;
  15017. height: 20px;
  15018. position: absolute;
  15019. right: 10px;
  15020. top: 50%;
  15021. transform: translateY(-50%);
  15022. }
  15023. .search_img > img {
  15024. width: 100%;
  15025. height: 100%;
  15026. }
  15027. .people_name {
  15028. display: flex;
  15029. justify-content: flex-start;
  15030. padding: 20px 10px;
  15031. flex-direction: column;
  15032. flex-wrap: wrap;
  15033. }
  15034. .p_box {
  15035. position: relative;
  15036. }
  15037. .people_name >>> .el-checkbox {
  15038. width: 100%;
  15039. display: flex;
  15040. align-items: center;
  15041. margin-bottom: 10px;
  15042. }
  15043. .people_name >>> .el-checkbox__label {
  15044. text-overflow: ellipsis;
  15045. overflow: hidden;
  15046. width: calc(100%);
  15047. }
  15048. .people_name2 >>> .el-checkbox__label {
  15049. width: calc(100% - 130px);
  15050. }
  15051. .inviteCode {
  15052. position: absolute;
  15053. right: 30px;
  15054. color: #237ade;
  15055. top: 0;
  15056. cursor: pointer;
  15057. font-size: 13px;
  15058. }
  15059. .noneInvite {
  15060. color: #a8a8a8;
  15061. }
  15062. .inviteImg {
  15063. position: absolute;
  15064. right: 5px;
  15065. top: 0;
  15066. width: 20px;
  15067. }
  15068. .right_img {
  15069. width: 150px;
  15070. height: 150px;
  15071. margin: 0 auto;
  15072. }
  15073. .right_img > img {
  15074. width: 100%;
  15075. height: 100%;
  15076. }
  15077. .number {
  15078. margin-top: 20px;
  15079. color: #4aa6ff;
  15080. text-decoration: underline;
  15081. }
  15082. .success_button {
  15083. display: flex;
  15084. text-align: center;
  15085. margin: 5% 0 auto;
  15086. flex-direction: row;
  15087. justify-content: center;
  15088. }
  15089. .look_course {
  15090. margin-right: 40px;
  15091. background: #3d67bc;
  15092. width: 200px;
  15093. height: 35px;
  15094. line-height: 35px;
  15095. color: #fff;
  15096. text-align: center;
  15097. font-size: 14px;
  15098. border-radius: 5px;
  15099. cursor: pointer;
  15100. }
  15101. .attend_others {
  15102. width: 250px;
  15103. background: #4fb13c;
  15104. height: 35px;
  15105. line-height: 35px;
  15106. color: #fff;
  15107. text-align: center;
  15108. font-size: 14px;
  15109. border-radius: 5px;
  15110. cursor: pointer;
  15111. }
  15112. .dialog_diy2 >>> .el-dialog__body {
  15113. text-align: center;
  15114. }
  15115. .write_togother {
  15116. position: absolute;
  15117. right: 45px;
  15118. display: flex;
  15119. top: 5%;
  15120. }
  15121. .write_people {
  15122. font-size: 14px;
  15123. line-height: 50px;
  15124. padding-right: 10px;
  15125. }
  15126. .end_write {
  15127. background: #3d67bc;
  15128. color: #fff;
  15129. width: 100px;
  15130. height: 35px;
  15131. line-height: 35px;
  15132. text-align: center;
  15133. font-size: 14px;
  15134. border-radius: 5px;
  15135. cursor: pointer;
  15136. }
  15137. .chapter_upload + .chapter_upload {
  15138. /* margin-top: 15px; */
  15139. border-top: 1px solid #e7ebf1;
  15140. }
  15141. .chapter_upload {
  15142. height: 45px;
  15143. position: relative;
  15144. display: flex;
  15145. align-items: center;
  15146. width: 100%;
  15147. min-height: 45px;
  15148. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  15149. /* border-radius: 4px; */
  15150. /* overflow: hidden; */
  15151. box-sizing: border-box;
  15152. }
  15153. .chapter_upload_drag {
  15154. position: absolute;
  15155. cursor: pointer;
  15156. width: 16px;
  15157. height: 16px;
  15158. left: -9px;
  15159. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  15160. background-size: 100% 100%;
  15161. z-index: 10;
  15162. display: none;
  15163. }
  15164. .isNavStage > .chapter_upload_drag {
  15165. background-image: url("../../../assets/icon/new/icon_course_drag_active2.png");
  15166. }
  15167. .chapter_upload_t {
  15168. background-color: #fff;
  15169. position: absolute;
  15170. height: 100%;
  15171. top: 0px;
  15172. left: 0px;
  15173. box-sizing: border-box;
  15174. }
  15175. .chapter_upload_o {
  15176. width: 100%;
  15177. height: 100%;
  15178. position: relative;
  15179. z-index: 1;
  15180. }
  15181. .chapter_upload_ic {
  15182. margin: 0 15px 0px auto;
  15183. display: flex;
  15184. align-items: center;
  15185. }
  15186. .chapter_upload_ic_l {
  15187. width: 50px;
  15188. height: 50px;
  15189. float: left;
  15190. }
  15191. .chapter_upload_ic_l div {
  15192. width: 30px;
  15193. height: 35px;
  15194. background: url("../../../assets/icon/icon.png");
  15195. }
  15196. .chapter_upload_ic_edit {
  15197. height: 100%;
  15198. display: flex;
  15199. align-items: center;
  15200. cursor: pointer;
  15201. margin: 0 10px 0 0;
  15202. }
  15203. .chapter_upload_ic_edit div {
  15204. width: 18px;
  15205. height: 18px;
  15206. background-image: url("../../../assets/icon/new/edit_u.png");
  15207. background-size: 100% 100%;
  15208. }
  15209. .chapter_upload_ic_r {
  15210. height: 100%;
  15211. display: flex;
  15212. align-items: center;
  15213. cursor: pointer;
  15214. }
  15215. .chapter_upload_ic_r div {
  15216. width: 18px;
  15217. height: 18px;
  15218. background-image: url("../../../assets/icon/new/delete_u.png");
  15219. background-size: 100% 100%;
  15220. }
  15221. .chapter_upload_n {
  15222. display: flex;
  15223. text-indent: 10px;
  15224. text-decoration: none;
  15225. text-overflow: ellipsis;
  15226. white-space: nowrap;
  15227. overflow: hidden;
  15228. width: 55%;
  15229. margin-left: 10px;
  15230. cursor: pointer;
  15231. margin-top: 2px;
  15232. align-items: center;
  15233. }
  15234. .chapter_upload_l_i2,
  15235. .chapter_upload_l_i3,
  15236. .chapter_upload_l_i8,
  15237. .chapter_upload_l_i6,
  15238. .chapter_upload_l_i12,
  15239. .chapter_upload_l_i14,
  15240. .chapter_upload_l_i13 {
  15241. width: 15px;
  15242. height: 15px;
  15243. background-size: 100% 100%;
  15244. }
  15245. .chapter_upload_l_i2 {
  15246. background-image: url("../../../assets/icon/new/u_word.png");
  15247. }
  15248. .chapter_upload_l_i3 {
  15249. background-image: url("../../../assets/icon/new/u_video.png");
  15250. }
  15251. .chapter_upload_l_i8 {
  15252. background-image: url("../../../assets/icon/new/u_url.png");
  15253. }
  15254. .chapter_upload_l_i14 {
  15255. background-image: url("../../../assets/icon/new/u_source.png");
  15256. }
  15257. .chapter_upload_l_i6 {
  15258. background-image: url("../../../assets/icon/new/u_picture.png");
  15259. }
  15260. .chapter_upload_l_i12 {
  15261. background-image: url("../../../assets/icon/new/u_word.png");
  15262. }
  15263. .chapter_upload_l_i13 {
  15264. background-image: url("../../../assets/icon/new/u_img.png");
  15265. }
  15266. .chapter_upload_noSee {
  15267. background-image: url("../../../assets/icon/new/u_noUpload.png");
  15268. width: 18px;
  15269. height: 18px;
  15270. background-size: 100% 100%;
  15271. display: block;
  15272. margin-right: 10px;
  15273. }
  15274. .chapter_upload_ud {
  15275. display: flex;
  15276. flex-direction: row;
  15277. justify-content: center;
  15278. margin: 0 10px 0 0;
  15279. }
  15280. .chapter_upload_ud > .chapter_upload_up {
  15281. margin-bottom: 0;
  15282. margin-right: 10px;
  15283. }
  15284. .chapter_upload_down,
  15285. .chapter_upload_up {
  15286. width: 20px;
  15287. height: 20px;
  15288. background: #e4eaf2;
  15289. cursor: pointer;
  15290. margin: 0 auto;
  15291. border-radius: 5px;
  15292. display: flex;
  15293. justify-content: center;
  15294. align-items: center;
  15295. }
  15296. .chapter_upload_up::after,
  15297. .chapter_upload_down::after {
  15298. content: "";
  15299. background-image: url("../../../assets/icon/new/downBtn.png");
  15300. width: 13px;
  15301. height: 13px;
  15302. background-size: 100% 100%;
  15303. display: block;
  15304. }
  15305. .chapter_upload_up::after {
  15306. background-image: url("../../../assets/icon/new/upBtn.png") !important;
  15307. }
  15308. .chapter_upload_up {
  15309. margin-bottom: 5px;
  15310. }
  15311. .chapter_upload_ud2 {
  15312. display: flex;
  15313. flex-direction: row;
  15314. justify-content: center;
  15315. margin: 0 10px 0 0;
  15316. }
  15317. .chapter_upload_ud2 > .chapter_upload_up2 {
  15318. margin-bottom: 0;
  15319. margin-right: 10px;
  15320. }
  15321. .chapter_upload_down2,
  15322. .chapter_upload_up2 {
  15323. cursor: pointer;
  15324. margin: 0 auto;
  15325. border-radius: 5px;
  15326. display: flex;
  15327. justify-content: center;
  15328. align-items: center;
  15329. color: #717c8d;
  15330. font-size: 14px;
  15331. }
  15332. .chapter_upload_up2 {
  15333. margin-right: 10px;
  15334. }
  15335. .chapter_upload_up2::before,
  15336. .chapter_upload_down2::before {
  15337. content: "";
  15338. background-image: url("../../../assets/icon/new/c_down.png");
  15339. width: 14px;
  15340. height: 14px;
  15341. background-size: 100% 100%;
  15342. display: block;
  15343. margin-right: 5px;
  15344. }
  15345. .chapter_upload_up2::before {
  15346. background-image: url("../../../assets/icon/new/c_up.png") !important;
  15347. }
  15348. .addWordStyle {
  15349. display: flex;
  15350. flex-direction: row;
  15351. justify-content: flex-start;
  15352. overflow-x: auto;
  15353. white-space: nowrap;
  15354. flex-wrap: wrap;
  15355. }
  15356. /* table 样式 */
  15357. .cont >>> table {
  15358. border-top: 1px solid #ccc;
  15359. border-left: 1px solid #ccc;
  15360. }
  15361. .cont >>> table td,
  15362. .cont >>> table th {
  15363. border-bottom: 1px solid #ccc;
  15364. border-right: 1px solid #ccc;
  15365. /* padding: 20px 5px; */
  15366. padding: 5px 10px;
  15367. max-width: 0px;
  15368. height: 30px;
  15369. vertical-align: baseline;
  15370. }
  15371. .cont >>> table th {
  15372. border-bottom: 2px solid #ccc;
  15373. text-align: center;
  15374. }
  15375. /* blockquote 样式 */
  15376. .cont >>> blockquote {
  15377. display: block;
  15378. border-left: 8px solid #d0e5f2;
  15379. padding: 5px 10px;
  15380. margin: 10px 0;
  15381. line-height: 1.4;
  15382. font-size: 100%;
  15383. background-color: #f1f1f1;
  15384. }
  15385. /* code 样式 */
  15386. .cont >>> code {
  15387. display: inline-block;
  15388. /* *display: inline; */
  15389. zoom: 1;
  15390. background-color: #f1f1f1;
  15391. border-radius: 3px;
  15392. padding: 3px 5px;
  15393. margin: 0 3px;
  15394. }
  15395. .cont >>> pre code {
  15396. display: block;
  15397. }
  15398. /* ul ol 样式 */
  15399. .cont >>> ul,
  15400. ol {
  15401. margin: 10px 0 10px 20px;
  15402. }
  15403. .wordbox {
  15404. display: flex;
  15405. flex-wrap: wrap;
  15406. cursor: pointer;
  15407. width: 100%;
  15408. }
  15409. .checkword {
  15410. width: 22px;
  15411. height: 22px;
  15412. margin: 10px auto 0;
  15413. cursor: pointer;
  15414. }
  15415. .checkword img {
  15416. width: 100%;
  15417. }
  15418. .stepBg {
  15419. display: flex;
  15420. justify-content: space-between;
  15421. align-items: center;
  15422. background: #fff;
  15423. width: calc(100%);
  15424. margin: 0 auto;
  15425. }
  15426. .stepBorder {
  15427. height: 3px !important;
  15428. background: #cad1dc;
  15429. width: 100px !important;
  15430. margin: 0 15px !important;
  15431. position: relative;
  15432. }
  15433. .border-active {
  15434. background: #3681fc !important;
  15435. }
  15436. .border-active::before,
  15437. .border-active::after {
  15438. border-color: #3681fc !important;
  15439. }
  15440. .stepBorder::before,
  15441. .stepBorder::after {
  15442. content: "";
  15443. width: 9px;
  15444. height: 9px;
  15445. background: #ffffff;
  15446. opacity: 1;
  15447. border: 2px solid #acb4bf;
  15448. display: block;
  15449. box-sizing: border-box;
  15450. border-radius: 50%;
  15451. position: absolute;
  15452. top: 50%;
  15453. transform: translateY(-50%);
  15454. }
  15455. .stepBorder::after {
  15456. right: -9px;
  15457. }
  15458. .stepTop {
  15459. width: 100%;
  15460. /* border-radius: 10px; */
  15461. display: flex;
  15462. justify-content: center;
  15463. align-items: center;
  15464. flex-wrap: nowrap;
  15465. background: #fff;
  15466. /* top: 18%; */
  15467. height: 80px;
  15468. border-bottom: 2px solid rgb(228, 232, 237);
  15469. box-sizing: border-box;
  15470. }
  15471. .stepTop2 {
  15472. width: 100%;
  15473. /* border-radius: 10px; */
  15474. display: flex;
  15475. justify-content: center;
  15476. align-items: center;
  15477. flex-wrap: nowrap;
  15478. background: #fff;
  15479. /* top: 18%; */
  15480. height: 20px;
  15481. border-bottom: 2px solid rgb(228, 232, 237);
  15482. box-sizing: border-box;
  15483. overflow: hidden;
  15484. cursor: pointer;
  15485. }
  15486. .stepTop > div img {
  15487. width: 100%;
  15488. }
  15489. .stepTop > div {
  15490. height: 50px;
  15491. width: 180px;
  15492. cursor: pointer;
  15493. margin: 10px 0;
  15494. border-radius: 10px;
  15495. }
  15496. .first,
  15497. .second,
  15498. .third,
  15499. .four {
  15500. background: #3681fc;
  15501. height: 90px;
  15502. color: #fff;
  15503. display: flex;
  15504. flex-direction: row;
  15505. align-items: center;
  15506. justify-content: center;
  15507. }
  15508. .first > div:nth-child(1),
  15509. .second > div:nth-child(1),
  15510. .third > div:nth-child(1),
  15511. .four > div:nth-child(1) {
  15512. margin: 5px 10px 0 0;
  15513. width: 2rem;
  15514. }
  15515. .firstNo,
  15516. .secondNo,
  15517. .thirdNo,
  15518. .fourNo {
  15519. background: #e7e7e7;
  15520. color: #adadad;
  15521. display: flex;
  15522. flex-direction: row;
  15523. align-items: center;
  15524. justify-content: center;
  15525. }
  15526. .firstNo > div:nth-child(1),
  15527. .secondNo > div:nth-child(1),
  15528. .thirdNo > div:nth-child(1),
  15529. .fourNo > div:nth-child(1) {
  15530. margin: 5px 10px 0 0;
  15531. width: 2rem;
  15532. }
  15533. .uploadWidth >>> .el-upload {
  15534. width: 60px;
  15535. height: 60px;
  15536. position: relative;
  15537. }
  15538. .addPeople {
  15539. background: #fa6060;
  15540. width: 150px;
  15541. height: 40px;
  15542. color: #fff;
  15543. border-radius: 5px;
  15544. text-align: center;
  15545. line-height: 40px;
  15546. font-size: 14px;
  15547. cursor: pointer;
  15548. }
  15549. .kcImg {
  15550. width: 60px;
  15551. margin-left: 10px;
  15552. }
  15553. .zyImg {
  15554. width: 55px;
  15555. margin: 0 10px;
  15556. }
  15557. .deleteZy {
  15558. width: 20px;
  15559. position: absolute;
  15560. top: 5px;
  15561. right: 5px;
  15562. cursor: pointer;
  15563. }
  15564. .kcImg > img,
  15565. .zyImg > img,
  15566. .deleteZy > img {
  15567. width: 100%;
  15568. height: 100%;
  15569. }
  15570. .zyBox {
  15571. display: flex;
  15572. flex-direction: row;
  15573. align-items: center;
  15574. background: #67d37d;
  15575. color: #fff;
  15576. width: 210px;
  15577. margin: 20px 20px 0 0;
  15578. border-radius: 10px;
  15579. height: 70px;
  15580. position: relative;
  15581. }
  15582. .upCss {
  15583. display: flex;
  15584. flex-direction: row;
  15585. justify-content: flex-start;
  15586. }
  15587. .upCss >>> .el-icon-plus {
  15588. position: none !important;
  15589. width: 200px;
  15590. height: 100px;
  15591. display: flex;
  15592. flex-wrap: nowrap;
  15593. flex-direction: column;
  15594. align-items: center;
  15595. justify-content: center;
  15596. border: 1px dashed #ccc;
  15597. min-width: 78px;
  15598. min-height: 100px;
  15599. z-index: 999;
  15600. }
  15601. .upCss >>> .el-upload-list__item-name {
  15602. width: 100px;
  15603. white-space: nowrap;
  15604. overflow: hidden;
  15605. text-overflow: ellipsis;
  15606. }
  15607. .upCss >>> .el-upload-list__item .el-icon-close {
  15608. font-size: 20px;
  15609. z-index: 9999;
  15610. }
  15611. .addStageImg {
  15612. min-width: 20px;
  15613. min-height: 20px;
  15614. width: 20px;
  15615. height: 20px;
  15616. cursor: pointer;
  15617. }
  15618. .addHW {
  15619. width: 28px;
  15620. height: 28px;
  15621. cursor: pointer;
  15622. }
  15623. .addStageImg > img,
  15624. .addHW > img {
  15625. width: 100%;
  15626. height: 100%;
  15627. }
  15628. .addNewPP >>> .el-dialog__body {
  15629. padding: 5px 20px;
  15630. }
  15631. .addNewPP >>> .el-dialog {
  15632. margin-top: 5vh !important;
  15633. }
  15634. .addNewPP2 >>> .el-dialog__body {
  15635. padding: 5px 0;
  15636. }
  15637. .addNewPP2 >>> .el-dialog {
  15638. margin-top: 5vh !important;
  15639. }
  15640. .isHeight {
  15641. height: 680px;
  15642. }
  15643. .toolChoose {
  15644. display: flex;
  15645. /* width: 100%; */
  15646. flex-direction: row;
  15647. flex-wrap: wrap;
  15648. }
  15649. .tool,
  15650. .isToolChoose {
  15651. display: flex;
  15652. flex-direction: column;
  15653. flex-wrap: nowrap;
  15654. width: fit-content;
  15655. margin: 10px 0 10px 0;
  15656. align-items: center;
  15657. border: 2px solid #dbdbdb00;
  15658. padding: 10px 20px;
  15659. border-radius: 5px;
  15660. cursor: pointer;
  15661. /* box-shadow: 0 0 2px 0px #dedede; */
  15662. position: relative;
  15663. box-sizing: border-box;
  15664. }
  15665. .tool:hover {
  15666. border: 2px solid #a5c7ff;
  15667. }
  15668. .tool:hover > .noCTool {
  15669. display: block;
  15670. opacity: 0.5;
  15671. }
  15672. .isToolChoose {
  15673. border: 2px solid #438aff !important;
  15674. box-shadow: 0 0 2px 0px #438aff;
  15675. opacity: 1 !important;
  15676. }
  15677. .isCTool,
  15678. .noCTool {
  15679. width: 30px;
  15680. height: 30px;
  15681. position: absolute;
  15682. top: -4px;
  15683. right: -4px;
  15684. }
  15685. .noCTool {
  15686. display: none;
  15687. }
  15688. .isCTool > img,
  15689. .noCTool > img {
  15690. width: 100%;
  15691. height: 100%;
  15692. }
  15693. .tool + .tool {
  15694. margin-right: 10px;
  15695. }
  15696. .whiteBIcon {
  15697. width: 80px;
  15698. cursor: pointer;
  15699. display: flex;
  15700. flex-direction: column;
  15701. flex-wrap: nowrap;
  15702. align-items: center;
  15703. font-size: 14px;
  15704. }
  15705. .whiteBIcon > img,
  15706. .toolIcon > img,
  15707. .arrow > img {
  15708. width: 100%;
  15709. height: 100%;
  15710. }
  15711. .check img {
  15712. width: 20px;
  15713. height: 20px;
  15714. }
  15715. .whiteBIcon > img {
  15716. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  15717. border-radius: 15px;
  15718. }
  15719. .whiteBIcon > div:nth-child(2) {
  15720. height: 20px;
  15721. line-height: 20px;
  15722. }
  15723. .check {
  15724. /* width: 20px;
  15725. height: 20px; */
  15726. cursor: pointer;
  15727. margin: 10px 0 0;
  15728. }
  15729. .checkDiv {
  15730. display: flex;
  15731. align-items: center;
  15732. }
  15733. .checkDiv span {
  15734. margin-left: 5px;
  15735. color: #858585;
  15736. }
  15737. .customWidth >>> .el-dialog {
  15738. min-width: 500px !important;
  15739. }
  15740. .a_addBox {
  15741. margin: 10px 0;
  15742. background: #fff;
  15743. padding: 15px;
  15744. /* max-height: 600px; */
  15745. overflow: auto;
  15746. }
  15747. .a_add_box {
  15748. border-bottom: 2px solid #eee;
  15749. padding-bottom: 25px;
  15750. }
  15751. .a_add_head {
  15752. display: flex;
  15753. align-items: center;
  15754. justify-content: space-between;
  15755. margin: 10px 0 0 0;
  15756. font-size: 18px;
  15757. }
  15758. .a_add_checkType {
  15759. margin-top: 10px;
  15760. display: flex;
  15761. font-size: 14px;
  15762. align-items: center;
  15763. }
  15764. .a_add_checkType span {
  15765. box-sizing: border-box;
  15766. padding: 0 0 5px 0;
  15767. cursor: pointer;
  15768. }
  15769. .a_add_checkType span + span {
  15770. margin-left: 10px;
  15771. }
  15772. .a_add_checkType .active {
  15773. border-bottom: 2px solid #409eff;
  15774. color: #409eff;
  15775. }
  15776. .a_add_head .a_add_head_input {
  15777. /* width: 540px; */
  15778. width: 100%;
  15779. }
  15780. .a_add_head .a_add_head_div {
  15781. display: flex;
  15782. align-items: center;
  15783. justify-content: space-between;
  15784. }
  15785. .a_add_body {
  15786. display: flex;
  15787. /* align-items: center; */
  15788. align-items: flex-end;
  15789. }
  15790. .a_add_input {
  15791. display: flex;
  15792. align-items: center;
  15793. flex-wrap: wrap;
  15794. }
  15795. .a_add_input_choice {
  15796. flex-direction: column;
  15797. margin-right: 10px;
  15798. }
  15799. .a_add_input_choice >>> .el-radio {
  15800. display: flex;
  15801. align-items: center;
  15802. flex-direction: row-reverse;
  15803. margin: 30px 0 0 0;
  15804. position: relative;
  15805. }
  15806. .a_add_input_choice >>> .el-checkbox {
  15807. display: flex;
  15808. align-items: center;
  15809. flex-direction: row-reverse;
  15810. margin: 30px 0 0 0;
  15811. position: relative;
  15812. }
  15813. .width100 {
  15814. width: 100%;
  15815. }
  15816. .a_add_input .a_add_persent {
  15817. width: 100%;
  15818. }
  15819. .a_add_persent_div {
  15820. width: 100%;
  15821. display: flex;
  15822. align-items: center;
  15823. }
  15824. .a_add_persent_div span {
  15825. margin: 5px 0;
  15826. }
  15827. .a_add_persent_div span:nth-child(1) {
  15828. width: 30%;
  15829. }
  15830. .a_add_persent_div span:nth-child(2) {
  15831. width: 7%;
  15832. }
  15833. .a_add_persent_div span:nth-child(3) {
  15834. width: 40%;
  15835. }
  15836. .a_add_body_div {
  15837. display: flex;
  15838. align-items: center;
  15839. justify-content: center;
  15840. /* flex-direction: column; */
  15841. position: absolute;
  15842. right: -20px;
  15843. transform: translateX(100%);
  15844. }
  15845. .a_add_body_div >>> .el-button--primary {
  15846. background: #466b99;
  15847. border: none;
  15848. }
  15849. .all_choose {
  15850. display: flex;
  15851. flex-direction: row;
  15852. align-items: flex-start;
  15853. width: 100%;
  15854. }
  15855. .all_choose + .all_choose {
  15856. /* margin-top: 10px */
  15857. }
  15858. .all_choose > span {
  15859. min-width: fit-content;
  15860. display: block;
  15861. white-space: nowrap;
  15862. overflow: hidden;
  15863. text-overflow: ellipsis;
  15864. margin-right: 20px;
  15865. font-weight: bold;
  15866. font-size: 14px;
  15867. }
  15868. .all_choose >>> .el-checkbox-group {
  15869. display: flex;
  15870. flex-direction: row;
  15871. width: 100%;
  15872. flex-wrap: wrap;
  15873. align-content: center;
  15874. justify-content: flex-start;
  15875. align-items: center;
  15876. margin-top: 3px;
  15877. }
  15878. .all_choose > .el-checkbox-group >>> .el-checkbox {
  15879. margin-bottom: 10px;
  15880. display: flex;
  15881. flex-direction: row;
  15882. align-items: center;
  15883. margin-right: 10px;
  15884. }
  15885. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  15886. min-width: 80px;
  15887. overflow: hidden;
  15888. width: 80px;
  15889. text-overflow: ellipsis;
  15890. white-space: nowrap;
  15891. }
  15892. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  15893. width: auto;
  15894. }
  15895. .choose > div:nth-child(3) > span {
  15896. /* letter-spacing: 0 !important; */
  15897. }
  15898. .choose {
  15899. display: flex;
  15900. flex-direction: column;
  15901. flex-wrap: nowrap;
  15902. height: 100%;
  15903. justify-content: space-evenly;
  15904. align-items: flex-start;
  15905. }
  15906. .both {
  15907. display: flex;
  15908. flex-direction: row;
  15909. flex-wrap: wrap;
  15910. width: 100%;
  15911. align-items: center;
  15912. justify-content: flex-start;
  15913. margin: 15px 0;
  15914. }
  15915. .notice >>> .el-dialog {
  15916. width: 500px !important;
  15917. text-align: center;
  15918. }
  15919. .notice >>> .el-button {
  15920. margin-top: 20px;
  15921. }
  15922. .whiteBg {
  15923. /* background: #fff; */
  15924. border-radius: 10px;
  15925. }
  15926. .wb_j_box {
  15927. display: flex;
  15928. width: 100%;
  15929. padding: 0 20px 0;
  15930. box-sizing: border-box;
  15931. }
  15932. .wb_j_box_content {
  15933. width: calc(100% - 55% - 100px);
  15934. display: flex;
  15935. align-items: center;
  15936. }
  15937. .wb_j_box_p_box {
  15938. max-width: calc(100% - 200px);
  15939. word-break: break-all;
  15940. overflow: hidden;
  15941. margin: 0 0 0 10px;
  15942. font-size: 14px;
  15943. color: #6e6e6e;
  15944. z-index: 999;
  15945. }
  15946. .chooseWho {
  15947. display: flex;
  15948. width: 410px;
  15949. flex-direction: row;
  15950. flex-wrap: nowrap;
  15951. justify-content: space-between;
  15952. padding-bottom: 10px;
  15953. }
  15954. .chooseWho > div {
  15955. cursor: pointer;
  15956. padding-bottom: 10px;
  15957. font-weight: bold;
  15958. }
  15959. .isChooseActive {
  15960. color: #3e88f4;
  15961. border-bottom: 2px solid #2f80f3;
  15962. }
  15963. .toolSort {
  15964. display: flex;
  15965. flex-direction: row;
  15966. flex-wrap: wrap;
  15967. justify-content: flex-start;
  15968. align-items: flex-start;
  15969. }
  15970. .toolSort > div {
  15971. margin-right: 10px;
  15972. }
  15973. .tools {
  15974. width: 100%;
  15975. display: flex;
  15976. flex-direction: column;
  15977. flex-wrap: nowrap;
  15978. align-items: flex-start;
  15979. }
  15980. .leftTools,
  15981. .rightTools {
  15982. width: 50%;
  15983. }
  15984. .leftTools + .leftTools {
  15985. border-top: 1px solid #dbdbdb;
  15986. padding-top: 30px;
  15987. }
  15988. .rightTools {
  15989. display: flex;
  15990. flex-direction: row;
  15991. flex-wrap: nowrap;
  15992. justify-content: space-around;
  15993. }
  15994. .firstToolList {
  15995. display: flex;
  15996. flex-direction: column;
  15997. flex-wrap: nowrap;
  15998. align-items: center;
  15999. }
  16000. .iconList {
  16001. display: flex;
  16002. flex-direction: row;
  16003. flex-wrap: wrap;
  16004. justify-content: flex-start;
  16005. align-items: center;
  16006. margin: 20px 0 5px 0;
  16007. width: 240px;
  16008. min-width: 240px;
  16009. }
  16010. .iconTool {
  16011. display: flex;
  16012. flex-direction: column;
  16013. flex-wrap: nowrap;
  16014. align-items: center;
  16015. justify-content: flex-start;
  16016. margin: 15px 10px;
  16017. }
  16018. .toolIcon {
  16019. width: 50px;
  16020. }
  16021. .taskBorder {
  16022. /* border: 1px solid #CAD1DC; */
  16023. border-radius: 10px;
  16024. margin-top: 10px;
  16025. min-height: 670px;
  16026. position: relative;
  16027. background: #fff;
  16028. padding: 20px;
  16029. overflow: hidden;
  16030. box-sizing: border-box;
  16031. }
  16032. .smallTaskBorder {
  16033. height: 405px;
  16034. min-height: 405px !important;
  16035. overflow: hidden;
  16036. }
  16037. /* .taskBorder>div {
  16038. padding: 30px 30px 10px;
  16039. } */
  16040. .addTaskBorder {
  16041. /* border: 2px solid #5E9AFC; */
  16042. border-radius: 8px;
  16043. margin-top: 10px;
  16044. cursor: pointer;
  16045. /* height: 50px;
  16046. line-height: 50px; */
  16047. background: #fff;
  16048. padding: 15px 0;
  16049. display: flex;
  16050. align-items: center;
  16051. justify-content: center;
  16052. }
  16053. /* .addTaskBorder>div {
  16054. margin: 0 auto;
  16055. display: flex;
  16056. align-items: center;
  16057. justify-content: center;
  16058. }
  16059. .addTaskBorder>div>img {
  16060. width: 20px;
  16061. }
  16062. .addTaskBorder>div>span {
  16063. font-size: 16px;
  16064. margin-left: 10px;
  16065. color: #5E9AFC;
  16066. } */
  16067. .funBlock {
  16068. display: flex;
  16069. padding: 15px 0;
  16070. flex-direction: row;
  16071. justify-content: center;
  16072. align-items: center;
  16073. position: absolute;
  16074. right: 0;
  16075. bottom: 0;
  16076. background: #fff;
  16077. width: 100%;
  16078. height: 60px;
  16079. z-index: 9;
  16080. }
  16081. .fold {
  16082. display: flex;
  16083. margin: 0 20px;
  16084. flex-direction: row;
  16085. align-items: center;
  16086. cursor: pointer;
  16087. color: #2b7bff;
  16088. }
  16089. .arrow {
  16090. margin-right: 8px;
  16091. width: 16px;
  16092. height: 16px;
  16093. min-width: 16px;
  16094. min-height: 16px;
  16095. background-size: 100% 100%;
  16096. display: block;
  16097. background-image: url(../../../assets/icon/new/u_up.png);
  16098. /* border-left: 7px solid transparent;
  16099. border-bottom: 7px solid #717C8D;
  16100. border-top: 0px solid transparent;
  16101. border-right: 7px solid transparent; */
  16102. /* box-sizing: border-box; */
  16103. transition: all 0.3s;
  16104. }
  16105. .arrowZ {
  16106. transform: rotate(180deg);
  16107. }
  16108. .addToolFun {
  16109. display: flex;
  16110. width: 150px;
  16111. flex-direction: row;
  16112. align-items: center;
  16113. justify-content: center;
  16114. border: 2px dashed #cad1dc;
  16115. border-radius: 5px;
  16116. height: 50px;
  16117. margin: 35px auto 0;
  16118. cursor: pointer;
  16119. }
  16120. .addToolFun2 {
  16121. display: flex;
  16122. width: 150px;
  16123. border: 2px dashed #cad1dc;
  16124. flex-direction: row;
  16125. align-items: center;
  16126. justify-content: center;
  16127. border-radius: 5px;
  16128. height: 50px;
  16129. margin: 0 auto 0;
  16130. cursor: pointer;
  16131. }
  16132. .addToolFun2 > div,
  16133. .addToolFun > div {
  16134. display: flex;
  16135. line-height: 50px;
  16136. }
  16137. .addToolImg {
  16138. width: 20px;
  16139. height: 20px;
  16140. margin-right: 10px;
  16141. }
  16142. .addToolsDia >>> .el-dialog__body {
  16143. padding: 20px;
  16144. }
  16145. .addToolsDia >>> .el-dialog__body > .toolChoose {
  16146. padding: 0;
  16147. }
  16148. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  16149. padding: 0;
  16150. border-bottom: none;
  16151. margin-bottom: 0;
  16152. }
  16153. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  16154. width: 100%;
  16155. }
  16156. .lineCss >>> .el-form-item__label {
  16157. width: auto !important;
  16158. }
  16159. .lineCss >>> .el-form-item__content {
  16160. margin-left: 50px !important;
  16161. }
  16162. .newSteps {
  16163. display: flex;
  16164. width: 100% !important;
  16165. /* height: 80px; */
  16166. cursor: pointer;
  16167. margin: 10px 0;
  16168. border-radius: 10px;
  16169. flex-direction: row;
  16170. align-content: center;
  16171. justify-content: center;
  16172. align-items: center;
  16173. margin: 0 !important;
  16174. }
  16175. /* 评价样式 */
  16176. .elist_css {
  16177. padding-bottom: 75px !important;
  16178. }
  16179. .elist_title {
  16180. margin-bottom: 10px;
  16181. }
  16182. .elist_input {
  16183. width: 100%;
  16184. }
  16185. .elist_input_box {
  16186. display: flex;
  16187. align-items: center;
  16188. flex-wrap: wrap;
  16189. }
  16190. .elist_input_box + .elist_input_box {
  16191. margin-top: 30px;
  16192. }
  16193. .elist_input .elist_input_box input {
  16194. font: inherit;
  16195. color: currentColor;
  16196. width: 100%;
  16197. /* max-width: calc(100% - 385px); */
  16198. max-width: calc(100% - 150px);
  16199. padding: 8px 14px;
  16200. display: block;
  16201. min-width: 0;
  16202. outline: none;
  16203. border: 1px solid rgba(0, 0, 0, 0.23);
  16204. border-radius: 4px;
  16205. box-sizing: border-box;
  16206. background: #fff;
  16207. margin: 0 20px 0 0;
  16208. }
  16209. .elist_input .elist_input_box span {
  16210. height: 36px;
  16211. line-height: 36px;
  16212. color: rgb(82, 82, 82);
  16213. min-width: 80px;
  16214. }
  16215. .elist_input .elist_input_box .remove {
  16216. height: 20px;
  16217. width: 20px;
  16218. min-height: 20px;
  16219. min-width: 20px;
  16220. background-size: 100% 100%;
  16221. background-position: unset;
  16222. margin-left: 5px;
  16223. }
  16224. .elist_input_box >>> .el-rate {
  16225. display: flex;
  16226. height: 36px;
  16227. align-items: center;
  16228. }
  16229. .elist_input_box .elist_inptu_text {
  16230. width: 100%;
  16231. display: flex;
  16232. align-items: center;
  16233. margin-top: 10px;
  16234. }
  16235. .elist_input_box .elist_inptu_text input {
  16236. /* width: 500px; */
  16237. width: 100%;
  16238. max-width: unset;
  16239. }
  16240. .elist_input_box >>> .el-rate__icon {
  16241. font-size: 24px;
  16242. }
  16243. .elist_btn {
  16244. margin-top: 10px;
  16245. }
  16246. .lineTitle {
  16247. /* margin-top: 15px; */
  16248. width: 110px;
  16249. font-size: 16px;
  16250. display: flex;
  16251. align-items: center;
  16252. line-height: 20px;
  16253. }
  16254. .lineTitle::before {
  16255. content: "";
  16256. display: block;
  16257. width: 3px;
  16258. height: 20px;
  16259. background: #0061ff;
  16260. border-radius: 3px;
  16261. margin: 0 5px 0 0;
  16262. }
  16263. .clineTitle::before {
  16264. content: "";
  16265. display: block;
  16266. min-width: 10px;
  16267. width: 10px;
  16268. height: 10px;
  16269. background: #0061ff;
  16270. border-radius: 50%;
  16271. margin: 0 5px 0 0;
  16272. }
  16273. .courseTop {
  16274. display: flex;
  16275. flex-direction: row;
  16276. justify-content: space-between;
  16277. align-items: center;
  16278. width: calc(100% - 40px);
  16279. margin: 0 auto;
  16280. padding: 10px 0;
  16281. }
  16282. .stepsNav {
  16283. display: flex;
  16284. flex-direction: row;
  16285. justify-content: flex-start;
  16286. align-items: center;
  16287. }
  16288. .stepsWord {
  16289. font-size: 18px;
  16290. color: #fff;
  16291. font-weight: bold;
  16292. margin-left: auto;
  16293. background: rgb(15, 126, 255);
  16294. border-radius: 5px;
  16295. padding: 3px 25px;
  16296. box-sizing: border-box;
  16297. }
  16298. .stepBox {
  16299. width: calc(100% - 40px);
  16300. height: calc(100% - 50px);
  16301. overflow: hidden;
  16302. border-radius: 5px;
  16303. margin: 0 auto;
  16304. }
  16305. .rightBox {
  16306. width: calc(100%);
  16307. background: #f0f2f5;
  16308. /* border-radius: 10px; */
  16309. overflow: auto;
  16310. height: calc(100% - 150px);
  16311. margin: 0 auto;
  16312. position: relative;
  16313. box-sizing: border-box;
  16314. }
  16315. .e_add_top {
  16316. display: flex;
  16317. justify-content: space-between;
  16318. background: #fff;
  16319. position: absolute;
  16320. right: 20px;
  16321. height: 50px;
  16322. align-items: center;
  16323. }
  16324. .e_add_title2 {
  16325. display: flex;
  16326. align-items: center;
  16327. }
  16328. .e_add_title2 span {
  16329. width: 40px;
  16330. }
  16331. .e_add_title {
  16332. display: flex;
  16333. align-items: center;
  16334. color: #b8b8b8;
  16335. font-size: 18px;
  16336. position: relative;
  16337. height: 40px;
  16338. }
  16339. .e_add_title span {
  16340. margin-right: 10px;
  16341. }
  16342. .e_add_title .el_input {
  16343. width: 300px;
  16344. }
  16345. .e_add_title >>> .el-input__inner {
  16346. width: 400px;
  16347. }
  16348. .e_add_btn {
  16349. }
  16350. .e_add_content {
  16351. display: flex;
  16352. width: 100%;
  16353. }
  16354. .e_add_list {
  16355. background: #fff;
  16356. height: 500px;
  16357. width: 210px;
  16358. position: relative;
  16359. margin: 15px 5px 0 0;
  16360. flex-shrink: 0;
  16361. display: flex;
  16362. flex-direction: column;
  16363. }
  16364. .e_add_list_title {
  16365. font-size: 20px;
  16366. width: 100%;
  16367. box-sizing: border-box;
  16368. padding: 15px 40px;
  16369. text-align: center;
  16370. border-bottom: 1px solid #eaeaea;
  16371. position: relative;
  16372. display: flex;
  16373. align-items: center;
  16374. justify-content: center;
  16375. height: 57px;
  16376. background: #f6f6f6;
  16377. }
  16378. .e_add_list_title span {
  16379. overflow: hidden;
  16380. white-space: nowrap;
  16381. text-overflow: ellipsis;
  16382. }
  16383. .e_add_list_title img {
  16384. position: absolute;
  16385. right: 15px;
  16386. width: 25px;
  16387. cursor: pointer;
  16388. top: 50%;
  16389. transform: translateY(-50%);
  16390. }
  16391. .e_add_list_body {
  16392. height: calc(100% - 187px);
  16393. overflow: auto;
  16394. }
  16395. .e_add_list_child {
  16396. width: 100%;
  16397. display: flex;
  16398. align-items: center;
  16399. justify-content: center;
  16400. position: relative;
  16401. box-sizing: border-box;
  16402. padding: 15px 40px;
  16403. text-align: center;
  16404. }
  16405. .e_add_list_child span {
  16406. overflow: hidden;
  16407. white-space: nowrap;
  16408. text-overflow: ellipsis;
  16409. cursor: pointer;
  16410. }
  16411. .e_add_list_child img {
  16412. position: absolute;
  16413. right: 10px;
  16414. width: 21px;
  16415. cursor: pointer;
  16416. top: 50%;
  16417. transform: translateY(-50%);
  16418. }
  16419. .e_add_list_child + .e_add_list_child {
  16420. border-top: 1px solid #eaeaea;
  16421. }
  16422. .e_add_list_child .active {
  16423. color: #409eff;
  16424. }
  16425. .e_add_list_btn {
  16426. position: absolute;
  16427. bottom: 0;
  16428. height: 50px;
  16429. background: rgb(120, 120, 254);
  16430. width: 100%;
  16431. color: #fff;
  16432. font-size: 16px;
  16433. text-align: center;
  16434. line-height: 50px;
  16435. cursor: pointer;
  16436. }
  16437. .e_add_list_detail {
  16438. position: absolute;
  16439. bottom: 0;
  16440. height: 130px;
  16441. background: rgb(120, 120, 254);
  16442. width: 100%;
  16443. color: #fff;
  16444. font-size: 16px;
  16445. display: flex;
  16446. align-items: center;
  16447. justify-content: center;
  16448. }
  16449. .e_add_list_detail textarea {
  16450. height: 90%;
  16451. width: 95%;
  16452. border: none;
  16453. resize: none;
  16454. outline: none;
  16455. padding: 5px;
  16456. box-sizing: border-box;
  16457. }
  16458. .e_add_list_pbox {
  16459. width: 100%;
  16460. }
  16461. .e_add_list_pbox_title {
  16462. height: 50px;
  16463. background: #fff;
  16464. display: flex;
  16465. align-items: center;
  16466. width: 100%;
  16467. box-sizing: border-box;
  16468. padding: 0 20px;
  16469. flex-direction: row;
  16470. flex-wrap: wrap;
  16471. }
  16472. .type_title {
  16473. font-size: 18px;
  16474. font-weight: 700;
  16475. }
  16476. .type_content {
  16477. font-size: 16px;
  16478. margin-left: 30px;
  16479. }
  16480. .type_content span + span {
  16481. margin-left: 20px;
  16482. }
  16483. .type_content span {
  16484. cursor: pointer;
  16485. padding-bottom: 5px;
  16486. box-sizing: border-box;
  16487. }
  16488. .type_content .active {
  16489. color: #409eff;
  16490. border-bottom: 2px solid #409eff;
  16491. }
  16492. .e_add_list_pbox_content {
  16493. height: calc(100% - 50px);
  16494. display: flex;
  16495. align-items: center;
  16496. width: 100%;
  16497. background: #fff;
  16498. }
  16499. .mbCss {
  16500. width: 100%;
  16501. display: flex;
  16502. flex-direction: row;
  16503. flex-wrap: nowrap;
  16504. align-content: center;
  16505. align-items: flex-start;
  16506. justify-content: flex-start;
  16507. }
  16508. .pjCss {
  16509. /* width: 42%; */
  16510. width: calc(100% - 55%);
  16511. display: flex;
  16512. flex-direction: column;
  16513. flex-wrap: nowrap;
  16514. align-items: flex-start;
  16515. }
  16516. .e_box {
  16517. /* display: flex; */
  16518. flex-wrap: wrap;
  16519. max-height: 500px;
  16520. align-items: flex-start;
  16521. overflow: auto;
  16522. width: 100%;
  16523. }
  16524. .e_card {
  16525. border: 1px solid #ccc;
  16526. background: #fff;
  16527. margin-right: 20px;
  16528. width: 270px;
  16529. display: flex;
  16530. flex-direction: column;
  16531. align-items: center;
  16532. border-radius: 5px;
  16533. margin-top: 10px;
  16534. text-align: center;
  16535. }
  16536. .e_card_picture {
  16537. margin: 10px 0;
  16538. }
  16539. .e_card_picture > img {
  16540. width: 50px;
  16541. }
  16542. .e_card_name {
  16543. width: 100%;
  16544. padding: 0 10px;
  16545. box-sizing: border-box;
  16546. margin-bottom: 10px;
  16547. overflow: hidden;
  16548. text-overflow: ellipsis;
  16549. white-space: nowrap;
  16550. }
  16551. .e_card_time {
  16552. width: 100%;
  16553. padding: 0 10px;
  16554. box-sizing: border-box;
  16555. font-size: 15px;
  16556. color: #c3c3c3;
  16557. margin-bottom: 10px;
  16558. }
  16559. .e_card_btn {
  16560. height: 40px;
  16561. display: flex;
  16562. align-items: center;
  16563. width: 100%;
  16564. background: rgb(244, 244, 244);
  16565. }
  16566. .e_card_btn:hover {
  16567. background: rgb(221 221 221);
  16568. }
  16569. .e_card_btn span {
  16570. flex: 1 1 auto;
  16571. text-align: center;
  16572. cursor: pointer;
  16573. }
  16574. .addEva {
  16575. border: 1px solid #ccc;
  16576. background: #fff;
  16577. margin-right: 20px;
  16578. width: 270px;
  16579. height: 149px;
  16580. display: flex;
  16581. flex-direction: column;
  16582. align-items: center;
  16583. border-radius: 5px;
  16584. margin-top: 10px;
  16585. text-align: center;
  16586. cursor: pointer;
  16587. justify-content: center;
  16588. }
  16589. .addEva > img {
  16590. width: 50px;
  16591. object-fit: cover;
  16592. }
  16593. .uploadFm {
  16594. border: 1px dashed #ccc;
  16595. width: 100%;
  16596. height: 140px;
  16597. position: relative;
  16598. cursor: pointer;
  16599. display: flex;
  16600. flex-direction: column;
  16601. justify-content: center;
  16602. align-items: center;
  16603. font-size: 14px;
  16604. color: #6e6e6e;
  16605. position: relative;
  16606. }
  16607. .cover_p {
  16608. width: 100% !important;
  16609. height: 100%;
  16610. object-fit: cover;
  16611. }
  16612. .uploadFm2:hover .cover_mask {
  16613. display: flex !important;
  16614. }
  16615. .cover_mask {
  16616. display: none;
  16617. width: 100%;
  16618. height: 100%;
  16619. position: absolute;
  16620. background: #00000054;
  16621. align-items: center;
  16622. justify-content: center;
  16623. flex-direction: column;
  16624. }
  16625. .cover_mask > img {
  16626. width: 30px;
  16627. }
  16628. .cover_mask > span {
  16629. color: #fff;
  16630. font-size: 12px;
  16631. }
  16632. .uploadFm > img {
  16633. width: 50px;
  16634. }
  16635. .fileCss {
  16636. width: 100%;
  16637. display: flex;
  16638. flex-direction: row;
  16639. flex-wrap: nowrap;
  16640. justify-content: space-around;
  16641. align-items: center;
  16642. padding-top: 15px;
  16643. }
  16644. .fileCss > div {
  16645. display: flex;
  16646. flex-direction: column;
  16647. align-items: center;
  16648. }
  16649. .fileCss .spanName {
  16650. margin-top: 10px;
  16651. }
  16652. .sysPicBox {
  16653. display: flex;
  16654. flex-direction: row;
  16655. flex-wrap: wrap;
  16656. align-content: flex-start;
  16657. height: 435px;
  16658. overflow: auto;
  16659. position: relative;
  16660. }
  16661. .picNone {
  16662. position: absolute;
  16663. left: 50%;
  16664. top: 45%;
  16665. transform: translate(-50%, -50%);
  16666. width: fit-content;
  16667. color: #9c9c9c;
  16668. }
  16669. .sysPic {
  16670. width: 200px;
  16671. height: 115px;
  16672. margin: 0 20px 20px 0;
  16673. cursor: pointer;
  16674. }
  16675. .sysPic > img,
  16676. .isSysPic > img,
  16677. .deletePic > img {
  16678. width: 100%;
  16679. height: 100%;
  16680. object-fit: cover;
  16681. }
  16682. .isSysPic {
  16683. width: 200px;
  16684. height: 115px;
  16685. position: relative;
  16686. }
  16687. .deletePic {
  16688. width: 20px;
  16689. height: 20px;
  16690. position: absolute;
  16691. top: 0;
  16692. right: 0;
  16693. cursor: pointer;
  16694. }
  16695. .select_box1 {
  16696. height: 100%;
  16697. }
  16698. .select_box1_img {
  16699. background: #fff;
  16700. border-radius: 5px;
  16701. padding: 15px;
  16702. box-sizing: border-box;
  16703. margin-bottom: 20px;
  16704. }
  16705. .select_box1_title {
  16706. padding: 0 0 15px 0;
  16707. border-bottom: 1px solid #eee;
  16708. margin-bottom: 15px;
  16709. }
  16710. .select_box1_title span:nth-child(1) {
  16711. font-size: 16px;
  16712. margin-right: 20px;
  16713. color: #000;
  16714. }
  16715. .select_box1_title span:nth-child(2) {
  16716. font-size: 14px;
  16717. color: rgb(112, 112, 112);
  16718. }
  16719. .select_box1_add_img {
  16720. }
  16721. .select_box1_select {
  16722. background: #fff;
  16723. border-radius: 5px;
  16724. padding: 15px;
  16725. box-sizing: border-box;
  16726. height: calc(100% - 200px);
  16727. overflow: auto;
  16728. }
  16729. .select_box2 {
  16730. height: 100%;
  16731. }
  16732. .select_box2_title {
  16733. background: #fff;
  16734. border-radius: 5px;
  16735. padding: 5px 10px;
  16736. box-sizing: border-box;
  16737. margin-bottom: 10px;
  16738. }
  16739. .select_box2_box {
  16740. display: flex;
  16741. height: calc(100% - 30px);
  16742. }
  16743. .select_box2_img {
  16744. width: calc(100% - 310px);
  16745. height: 100%;
  16746. overflow: auto;
  16747. background: #fff;
  16748. border-radius: 5px;
  16749. }
  16750. .select_box2_img img {
  16751. width: 100%;
  16752. }
  16753. .select_box2_answer {
  16754. background: #fff;
  16755. margin-left: 10px;
  16756. border-radius: 5px;
  16757. width: 300px;
  16758. overflow: auto;
  16759. height: 100%;
  16760. display: flex;
  16761. flex-direction: column;
  16762. align-items: center;
  16763. padding-top: 10px;
  16764. box-sizing: border-box;
  16765. }
  16766. .select_box2_answer_box {
  16767. margin: 0 0 10px 0;
  16768. width: 85%;
  16769. }
  16770. .rate_textarea {
  16771. font: inherit;
  16772. color: currentColor;
  16773. width: 100%;
  16774. padding: 8px 14px;
  16775. display: block;
  16776. min-width: 0;
  16777. outline: none;
  16778. border: 1px solid rgba(0, 0, 0, 0.23);
  16779. border-radius: 4px;
  16780. box-sizing: border-box;
  16781. background: #fff;
  16782. margin: 0 20px 0 0;
  16783. resize: none;
  16784. }
  16785. .select_answer_title {
  16786. text-align: left;
  16787. width: 85%;
  16788. margin-bottom: 10px;
  16789. font-size: 18px;
  16790. color: #8e8e8e;
  16791. }
  16792. .mask {
  16793. background-color: rgb(0 0 0 / 30%);
  16794. /* position: fixed; */
  16795. position: absolute;
  16796. top: 0;
  16797. left: 0;
  16798. width: 100%;
  16799. height: 100%;
  16800. z-index: 90;
  16801. display: flex;
  16802. align-items: center;
  16803. justify-content: center;
  16804. }
  16805. .progressBox {
  16806. width: 300px;
  16807. height: 150px;
  16808. background: #fff;
  16809. border-radius: 10px;
  16810. box-shadow: 0 0 6px 1px #bfbfbf;
  16811. display: flex;
  16812. align-items: center;
  16813. justify-content: center;
  16814. flex-direction: column;
  16815. position: relative;
  16816. color: #6c6c6c;
  16817. }
  16818. .progressBox >>> .el-progress-bar__outer {
  16819. background-color: #d1dfff !important;
  16820. }
  16821. .progressBox .lbox {
  16822. height: 50px;
  16823. font-size: 19px;
  16824. display: flex;
  16825. align-items: center;
  16826. color: #747474;
  16827. }
  16828. .progressBox .lbox img {
  16829. width: 40px;
  16830. margin-right: 20px;
  16831. }
  16832. .closeCss {
  16833. position: absolute;
  16834. top: 8px;
  16835. right: 8px;
  16836. cursor: pointer;
  16837. width: 20px;
  16838. height: 20px;
  16839. }
  16840. .closeCss > img {
  16841. width: 100%;
  16842. height: 100%;
  16843. }
  16844. .updateTips::before {
  16845. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  16846. font-size: 14px;
  16847. margin-left: 20px;
  16848. font-weight: 400;
  16849. color: #ff3a3a;
  16850. margin-bottom: 10px;
  16851. display: block;
  16852. }
  16853. .updateMask {
  16854. width: 100%;
  16855. z-index: 3;
  16856. top: 0;
  16857. position: absolute;
  16858. /* background-color: rgba(0,0,0,.3); */
  16859. }
  16860. .t_j_box {
  16861. display: flex;
  16862. }
  16863. .t_j_box span:nth-child(1) {
  16864. width: 15%;
  16865. overflow: hidden;
  16866. margin-right: 10px;
  16867. text-overflow: ellipsis;
  16868. white-space: nowrap;
  16869. }
  16870. .t_j_box span:nth-child(2) {
  16871. width: 30%;
  16872. overflow: hidden;
  16873. text-overflow: ellipsis;
  16874. margin-right: 10px;
  16875. }
  16876. .t_j_box span:nth-child(3) {
  16877. max-width: calc(55% - 20px);
  16878. overflow: hidden;
  16879. text-overflow: ellipsis;
  16880. }
  16881. .sentenBox {
  16882. background: #fff;
  16883. height: 600px;
  16884. overflow: auto;
  16885. background-image: url("../../../assets/icon/conSentences/csBg.png");
  16886. background-position: 102%;
  16887. background-repeat: no-repeat;
  16888. background-size: 60%;
  16889. }
  16890. .sentenBox > .sentenContent {
  16891. padding-bottom: 10px;
  16892. width: 97%;
  16893. margin: 0 auto;
  16894. }
  16895. .sentenBox > .sentenContent + .sentenContent {
  16896. border-top: 1px solid #cbcbcb;
  16897. }
  16898. .addSen {
  16899. background: #409efe;
  16900. width: 90px;
  16901. color: #fff;
  16902. height: 35px;
  16903. text-align: center;
  16904. line-height: 35px;
  16905. border-radius: 5px;
  16906. float: right;
  16907. margin: 10px 20px 0 0;
  16908. cursor: pointer;
  16909. }
  16910. .sentenTop {
  16911. display: flex;
  16912. flex-direction: row;
  16913. flex-wrap: nowrap;
  16914. align-items: center;
  16915. }
  16916. .sentenTop::before {
  16917. content: attr(index);
  16918. background: #3681fc;
  16919. border-radius: 50%;
  16920. color: #fff;
  16921. width: 25px;
  16922. height: 25px;
  16923. min-width: 25px;
  16924. min-height: 25px;
  16925. text-align: center;
  16926. line-height: 25px;
  16927. margin-right: 5px;
  16928. }
  16929. .sentenTop > div:nth-child(2) {
  16930. width: 300px;
  16931. margin: 0 15px;
  16932. }
  16933. .sentenTop > div:nth-child(3) {
  16934. background: #409efe;
  16935. color: #fff;
  16936. width: 65px;
  16937. height: 35px;
  16938. text-align: center;
  16939. line-height: 35px;
  16940. border-radius: 5px;
  16941. cursor: pointer;
  16942. }
  16943. .cardList {
  16944. padding: 30px 0 20px 0;
  16945. display: flex;
  16946. flex-direction: row;
  16947. flex-wrap: wrap;
  16948. align-items: center;
  16949. box-sizing: border-box;
  16950. border-bottom: 1px solid #f4f4f4;
  16951. width: 98%;
  16952. margin: 0 auto;
  16953. }
  16954. .rightCardList {
  16955. display: flex;
  16956. flex-wrap: wrap;
  16957. }
  16958. .cardBox {
  16959. display: flex;
  16960. flex-direction: row;
  16961. flex-wrap: wrap;
  16962. align-items: center;
  16963. align-content: center;
  16964. }
  16965. .isCard,
  16966. .isCard1 {
  16967. width: auto;
  16968. padding: 0 20px;
  16969. height: 65px;
  16970. text-align: center;
  16971. line-height: 65px;
  16972. font-size: 14px;
  16973. cursor: pointer;
  16974. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  16975. background-size: 100% 100%;
  16976. position: relative;
  16977. z-index: 99;
  16978. }
  16979. .isCard1 {
  16980. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  16981. }
  16982. .isCard:hover .deleteWord {
  16983. display: block;
  16984. }
  16985. .isCard > div:nth-child(1),
  16986. .isCard1 > div:nth-child(1) {
  16987. white-space: nowrap;
  16988. overflow: hidden;
  16989. text-overflow: ellipsis;
  16990. width: 100%;
  16991. margin: 0 auto;
  16992. }
  16993. .card {
  16994. width: 140px;
  16995. height: 65px;
  16996. }
  16997. .card > img {
  16998. width: 100%;
  16999. height: 100%;
  17000. }
  17001. .rightCardBox {
  17002. width: 98%;
  17003. margin: 10px auto 0;
  17004. }
  17005. .rightCardBox > div:nth-child(1) {
  17006. margin-bottom: 10px;
  17007. }
  17008. .cardCss {
  17009. display: flex;
  17010. flex-direction: column;
  17011. flex-wrap: nowrap;
  17012. align-items: center;
  17013. border-bottom: 3px solid #b4c3d3;
  17014. padding: 0 0 5px 0;
  17015. /* margin-right: 10px; */
  17016. }
  17017. .cardCss > div:nth-child(2) {
  17018. background: #5b7b9d;
  17019. color: #fff;
  17020. width: 20px;
  17021. height: 20px;
  17022. border-radius: 50%;
  17023. text-align: center;
  17024. line-height: 20px;
  17025. }
  17026. .sentenTopBox {
  17027. display: flex;
  17028. flex-direction: row;
  17029. flex-wrap: nowrap;
  17030. align-items: center;
  17031. justify-content: space-between;
  17032. padding: 55px 0 0 20px;
  17033. box-sizing: border-box;
  17034. width: 85%;
  17035. }
  17036. .stepsBottom {
  17037. width: 100%;
  17038. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  17039. background: #fff;
  17040. border-radius: 10px;
  17041. overflow: hidden;
  17042. height: 100%;
  17043. height: calc(100vh - 300px);
  17044. position: sticky;
  17045. top: 0;
  17046. }
  17047. .navTop {
  17048. background: #53749b;
  17049. color: #fff;
  17050. height: 40px;
  17051. line-height: 40px;
  17052. padding-left: 15px;
  17053. font-size: 18px;
  17054. }
  17055. .navBottom {
  17056. /* background: #6b91b7; */
  17057. height: 100%;
  17058. overflow: auto;
  17059. padding: 10px 0;
  17060. }
  17061. .navStage {
  17062. display: flex;
  17063. flex-direction: row;
  17064. flex-wrap: nowrap;
  17065. align-items: center;
  17066. padding: 10px 10px 10px 0;
  17067. cursor: pointer;
  17068. background: #ffffff;
  17069. width: 95%;
  17070. margin: 5px auto 5px;
  17071. box-sizing: border-box;
  17072. border-radius: 5px;
  17073. flex-wrap: wrap;
  17074. position: relative;
  17075. }
  17076. .navStage:hover > .chapter_upload_drag {
  17077. display: block;
  17078. }
  17079. .navTask:hover > .chapter_upload_drag {
  17080. display: block;
  17081. }
  17082. .chapter_upload:hover > .chapter_upload_drag {
  17083. display: block;
  17084. }
  17085. .navStage::before {
  17086. content: "";
  17087. display: block;
  17088. width: 16px;
  17089. height: 16px;
  17090. background-image: url(../../../assets/icon/new/icon_stage.png);
  17091. background-size: 100%;
  17092. margin-left: 25px;
  17093. }
  17094. .navStage .chapter_unit_open {
  17095. content: "";
  17096. display: block;
  17097. width: 16px;
  17098. height: 16px;
  17099. background-image: url(../../../assets/icon/new/down.png);
  17100. transform: rotate(-90deg);
  17101. background-size: 100%;
  17102. margin-left: 10px;
  17103. transition: all 0.5s;
  17104. }
  17105. .isNavStageOpen .chapter_unit_open {
  17106. transform: rotate(0deg);
  17107. }
  17108. .isNavStage {
  17109. background: #0061ff;
  17110. }
  17111. .isNavStage::before {
  17112. background-image: url(../../../assets/icon/new/icon_stage_a.png);
  17113. }
  17114. .isNavStage .chapter_unit_open {
  17115. background-image: url(../../../assets/icon/new/downC.png);
  17116. }
  17117. .isNavStage .nt_taskName {
  17118. font-weight: bold !important;
  17119. color: #ffffff !important;
  17120. }
  17121. .isNavStage .nt_taskTitle {
  17122. font-weight: bold !important;
  17123. color: #fff !important;
  17124. }
  17125. .navStage .nt_taskBox {
  17126. width: calc(100% - 68px);
  17127. padding: 0 0 0 5px;
  17128. box-sizing: border-box;
  17129. box-sizing: border-box;
  17130. display: flex;
  17131. flex-direction: row;
  17132. flex-wrap: nowrap;
  17133. align-items: baseline;
  17134. }
  17135. .navStage .nt_taskTitle {
  17136. color: #060e17;
  17137. line-height: 25px;
  17138. font-size: 16px;
  17139. }
  17140. .navStage .nt_taskName {
  17141. max-width: calc(100% - 82px);
  17142. white-space: nowrap;
  17143. overflow: hidden;
  17144. text-overflow: ellipsis;
  17145. font-size: 16px;
  17146. color: #060e17;
  17147. }
  17148. .navTask {
  17149. display: flex;
  17150. flex-direction: row;
  17151. flex-wrap: nowrap;
  17152. align-items: center;
  17153. padding: 10px 10px 10px 0;
  17154. cursor: pointer;
  17155. background: #ffffff;
  17156. width: 95%;
  17157. margin: 5px auto 5px;
  17158. box-sizing: border-box;
  17159. border-radius: 5px;
  17160. flex-wrap: wrap;
  17161. position: relative;
  17162. }
  17163. .navTask .chapter_upload_open {
  17164. content: "";
  17165. display: block;
  17166. width: 16px;
  17167. height: 16px;
  17168. background-image: url(../../../assets/icon/new/icon_arrow.png);
  17169. background-size: 100%;
  17170. margin-left: 23px;
  17171. }
  17172. .noImage .chapter_upload_open {
  17173. display: none;
  17174. background-image: unset !important;
  17175. }
  17176. .isNavOpen .chapter_upload_open {
  17177. /* background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important; */
  17178. transform: rotate(90deg);
  17179. }
  17180. .isNavTask .chapter_upload_open {
  17181. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  17182. transform: rotate(-90deg);
  17183. }
  17184. .isNavTask.isNavOpen .chapter_upload_open {
  17185. transform: rotate(0deg);
  17186. }
  17187. .dragOverTop {
  17188. border-top: 2px solid #0061ff !important;
  17189. border-radius: 0 !important;
  17190. margin-top: 10px;
  17191. }
  17192. .dragOverBottom {
  17193. border-bottom: 2px solid #0061ff !important;
  17194. border-radius: 0 !important;
  17195. margin-top: 10px;
  17196. }
  17197. .dragOverTop2 {
  17198. border-top: 2px solid #0061ff !important;
  17199. border-radius: 0 !important;
  17200. }
  17201. .dragOverBottom2 {
  17202. border-bottom: 2px solid #0061ff !important;
  17203. border-radius: 0 !important;
  17204. }
  17205. .isNavTask {
  17206. /* background: #3681FC; */
  17207. background: #eef3fb;
  17208. }
  17209. .isNavTask > .chapter_upload_drag {
  17210. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  17211. }
  17212. .isNavTask .nt_taskName {
  17213. /* color: #fff !important; */
  17214. font-weight: bold !important;
  17215. color: #0061ff !important;
  17216. }
  17217. .isNavTask .nt_taskTitle {
  17218. /* color: #AECCFE !important; */
  17219. font-weight: bold !important;
  17220. color: #0061ff !important;
  17221. }
  17222. .navTask .nt_taskBox {
  17223. width: calc(100% - 40px);
  17224. padding: 0 0 0 5px;
  17225. box-sizing: border-box;
  17226. box-sizing: border-box;
  17227. display: flex;
  17228. flex-direction: row;
  17229. flex-wrap: nowrap;
  17230. align-items: baseline;
  17231. }
  17232. .navTask .nt_taskTitle {
  17233. /* color: #717C8D; */
  17234. color: #060e17;
  17235. line-height: 25px;
  17236. font-size: 16px;
  17237. /* min-width: 66px; */
  17238. }
  17239. .navTask .nt_taskName {
  17240. /* color: #fff; */
  17241. /* max-width: 130px; */
  17242. /* width: 100%; */
  17243. max-width: calc(100% - 66px);
  17244. font-size: 16px;
  17245. color: #060e17;
  17246. /* color: #0E1E33; */
  17247. }
  17248. .navTask .nt_taskName span {
  17249. width: 100%;
  17250. white-space: nowrap;
  17251. overflow: hidden;
  17252. text-overflow: ellipsis;
  17253. display: block;
  17254. }
  17255. .gjBox {
  17256. width: calc(100% - 25px);
  17257. padding: 0 0 0 0;
  17258. box-sizing: border-box;
  17259. border-left: 1px solid #cad1dc;
  17260. margin-left: 25px;
  17261. }
  17262. .gjBox > div {
  17263. display: flex;
  17264. align-items: center;
  17265. }
  17266. .gjBox > div::before {
  17267. content: "";
  17268. height: 1px;
  17269. width: 10px;
  17270. background: #cad1dc;
  17271. display: block;
  17272. margin-right: 5px;
  17273. }
  17274. .gjCss {
  17275. display: flex;
  17276. flex-direction: row;
  17277. flex-wrap: nowrap;
  17278. align-items: center;
  17279. padding: 15px 0;
  17280. box-sizing: border-box;
  17281. font-size: 14px;
  17282. cursor: pointer;
  17283. }
  17284. .isGjCss {
  17285. color: #0061ff;
  17286. }
  17287. .groupBox {
  17288. }
  17289. .groupContent + .groupContent {
  17290. margin-top: 30px;
  17291. }
  17292. .groupTitle {
  17293. font-size: 24px;
  17294. color: rgb(80, 80, 80);
  17295. margin-bottom: 20px;
  17296. }
  17297. .groupName {
  17298. display: flex;
  17299. align-items: center;
  17300. }
  17301. .groupn {
  17302. font-size: 15px;
  17303. margin-right: 10px;
  17304. }
  17305. .groupName + .groupName {
  17306. margin-top: 15px;
  17307. }
  17308. .groupBtn {
  17309. margin-left: 10px;
  17310. }
  17311. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  17312. text-align: left;
  17313. }
  17314. .radioBox > div {
  17315. margin: 10px 0 0 10px;
  17316. }
  17317. .radioBox >>> .el-radio__input,
  17318. .radioBox >>> .el-checkbox__inner {
  17319. margin-left: 10px;
  17320. }
  17321. .radioBox >>> .el-radio__label,
  17322. .radioBox >>> .el-checkbox__label {
  17323. display: flex;
  17324. align-items: center;
  17325. }
  17326. .inImg {
  17327. width: 50px;
  17328. }
  17329. .inImg > img {
  17330. width: 100%;
  17331. height: 100%;
  17332. object-fit: cover;
  17333. }
  17334. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  17335. height: auto;
  17336. padding: 10px;
  17337. margin: 0;
  17338. }
  17339. .upCss >>> .el-upload-list {
  17340. width: 100%;
  17341. }
  17342. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  17343. width: 100%;
  17344. height: 120px;
  17345. object-fit: contain;
  17346. background: unset;
  17347. margin-left: 0;
  17348. }
  17349. .upCss
  17350. >>> .el-upload-list--picture
  17351. .el-upload-list__item.is-success
  17352. .el-upload-list__item-name {
  17353. display: none;
  17354. }
  17355. .tcMember + .tcMember::before {
  17356. content: "、";
  17357. }
  17358. .xzUpImg {
  17359. width: 25px;
  17360. height: 25px;
  17361. min-width: 25px;
  17362. min-height: 25px;
  17363. cursor: pointer;
  17364. margin: 0 10px;
  17365. }
  17366. .xzUpImg > img {
  17367. width: 100%;
  17368. height: 100%;
  17369. }
  17370. .closeCss {
  17371. position: absolute;
  17372. top: 8px;
  17373. right: 8px;
  17374. cursor: pointer;
  17375. width: 20px;
  17376. height: 20px;
  17377. }
  17378. .closeCss > img {
  17379. width: 100%;
  17380. height: 100%;
  17381. }
  17382. .moveBtn {
  17383. display: flex;
  17384. flex-direction: row;
  17385. flex-wrap: nowrap;
  17386. align-items: center;
  17387. width: 55px;
  17388. }
  17389. .timuUpImg {
  17390. display: flex;
  17391. flex-direction: row;
  17392. align-items: center;
  17393. width: 100%;
  17394. margin-right: 10px;
  17395. }
  17396. .timuUpImg > div:nth-child(1) {
  17397. margin-right: 10px;
  17398. display: flex;
  17399. align-items: center;
  17400. width: 100%;
  17401. }
  17402. .timuImgBox {
  17403. margin: 10px 0;
  17404. display: flex;
  17405. flex-direction: column;
  17406. flex-wrap: wrap;
  17407. align-items: flex-start;
  17408. }
  17409. .timuImg {
  17410. width: 100px;
  17411. margin: 5px 0;
  17412. cursor: pointer;
  17413. position: relative;
  17414. }
  17415. .timuImg:hover .deleteWord {
  17416. display: block;
  17417. }
  17418. .deleteWord {
  17419. width: 25px;
  17420. height: 25px;
  17421. position: absolute;
  17422. right: -5px;
  17423. top: -5px;
  17424. cursor: pointer;
  17425. display: none;
  17426. }
  17427. .timuImg > img,
  17428. .deleteWord > img {
  17429. width: 100%;
  17430. height: 100%;
  17431. object-fit: cover;
  17432. }
  17433. .e_add_delete {
  17434. cursor: pointer;
  17435. margin-left: 10px;
  17436. }
  17437. .pType_box {
  17438. margin-top: 30px;
  17439. align-items: flex-end;
  17440. }
  17441. .noneBox {
  17442. height: 200px;
  17443. width: 100%;
  17444. display: flex;
  17445. align-items: center;
  17446. justify-content: center;
  17447. flex-direction: column;
  17448. /* margin-top: 150px; */
  17449. }
  17450. .noneBox > img {
  17451. width: 95px;
  17452. }
  17453. .noneBox > span {
  17454. margin-top: 10px;
  17455. color: #717c8d;
  17456. }
  17457. .rb_c_box {
  17458. width: 100%;
  17459. /* height: 100%; */
  17460. display: flex;
  17461. /* padding: 20px; */
  17462. box-sizing: border-box;
  17463. justify-content: space-between;
  17464. margin-top: 10px;
  17465. }
  17466. .rb_c_box_left {
  17467. /* min-height: 500px; */
  17468. /* background: #fff; */
  17469. width: 270px;
  17470. min-width: 270px;
  17471. border-radius: 8px;
  17472. margin-right: 10px;
  17473. /* position: sticky; */
  17474. }
  17475. .rb_c_box_right {
  17476. height: auto;
  17477. width: calc(100%);
  17478. /* overflow: hidden; */
  17479. }
  17480. .rb_c_box_btn {
  17481. display: flex;
  17482. justify-content: flex-start;
  17483. height: 50px;
  17484. align-items: center;
  17485. }
  17486. .rb_c_box_right > .basic_box {
  17487. /* background: #fff; */
  17488. border-radius: 0;
  17489. /* height: calc(100% - 0px); */
  17490. /* overflow: auto; */
  17491. padding: 0;
  17492. }
  17493. .textarea_css {
  17494. display: block;
  17495. resize: none;
  17496. padding: 10px 15px;
  17497. line-height: 1.5;
  17498. box-sizing: border-box;
  17499. width: 100%;
  17500. font-size: 14px;
  17501. color: #606266;
  17502. background-color: #fff;
  17503. background-image: none;
  17504. border: 1px solid #dcdfe6;
  17505. border-radius: 4px;
  17506. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  17507. outline: none;
  17508. overflow: hidden;
  17509. height: 46px;
  17510. font-family: "Microsoft YaHei";
  17511. }
  17512. .textarea_css::-webkit-input-placeholder {
  17513. color: #c0c4cc;
  17514. }
  17515. .textarea_css:focus {
  17516. border-color: #409eff;
  17517. outline: 0;
  17518. }
  17519. .addEditor >>> .text {
  17520. height: auto;
  17521. min-height: 100px;
  17522. }
  17523. .addEditor >>> .w-e-text-container {
  17524. min-height: 100px;
  17525. }
  17526. .moveBtn2 {
  17527. flex-direction: column;
  17528. width: fit-content;
  17529. margin: 0 10px 0 10px;
  17530. }
  17531. .moveBtn2 .chapter_upload_down,
  17532. .moveBtn2 .chapter_upload_up {
  17533. width: 16px;
  17534. height: 16px;
  17535. }
  17536. .moveBtn2 .chapter_upload_up::after,
  17537. .moveBtn2 .chapter_upload_down::after {
  17538. width: 10px;
  17539. height: 10px;
  17540. }
  17541. .fullStyle >>> .el-dialog__body {
  17542. height: calc(100% - 125px) !important;
  17543. box-sizing: border-box;
  17544. }
  17545. .fullStyle1 >>> .el-dialog__body {
  17546. height: auto !important;
  17547. }
  17548. .fullStyle >>> .el-dialog {
  17549. width: 100% !important;
  17550. max-width: 100% !important;
  17551. height: 100% !important;
  17552. margin: 0 !important;
  17553. }
  17554. .fullStyle {
  17555. width: 100% !important;
  17556. max-width: 100% !important;
  17557. height: 100% !important;
  17558. margin: 0 auto !important;
  17559. }
  17560. .wb_j_box_btn {
  17561. width: calc(100% - 30px);
  17562. display: flex;
  17563. height: 40px;
  17564. border: 1.5px solid #cad1dc;
  17565. border-radius: 4px;
  17566. box-sizing: border-box;
  17567. align-items: center;
  17568. font-size: 14px;
  17569. cursor: pointer;
  17570. overflow: hidden;
  17571. }
  17572. .wb_j_box_btn:hover {
  17573. border: 1.5px solid #0061ff;
  17574. }
  17575. .wb_j_box_title {
  17576. background: #f0f4fa;
  17577. height: 100%;
  17578. line-height: 40px;
  17579. width: 90px;
  17580. text-align: center;
  17581. color: #060e17;
  17582. border-right: 1.5px solid #cad1dc;
  17583. box-sizing: border-box;
  17584. }
  17585. .wb_j_box_btn_c {
  17586. width: calc(100% - 90px);
  17587. padding: 0 35px 0 10px;
  17588. box-sizing: border-box;
  17589. position: relative;
  17590. }
  17591. .wb_j_box_span {
  17592. width: 100%;
  17593. overflow: hidden;
  17594. white-space: nowrap;
  17595. text-overflow: ellipsis;
  17596. word-wrap: break-word;
  17597. color: #717c8d;
  17598. }
  17599. .wb_j_box_arrow {
  17600. content: "";
  17601. width: 14px;
  17602. height: 14px;
  17603. background: url(../../../assets/icon/new/u_arrow.png);
  17604. background-size: 100% 100%;
  17605. position: absolute;
  17606. right: 12px;
  17607. top: 50%;
  17608. transform: translateY(-50%);
  17609. }
  17610. .check_classBox {
  17611. height: 400px;
  17612. display: flex;
  17613. border-top: 1.5px solid #e7ebf1;
  17614. border-bottom: 1.5px solid #e7ebf1;
  17615. }
  17616. .check_class_right {
  17617. width: 130px;
  17618. border-right: 1px solid #e7ebf1;
  17619. display: flex;
  17620. align-items: center;
  17621. flex-direction: column;
  17622. height: 100%;
  17623. overflow: auto;
  17624. padding: 15px 0;
  17625. box-sizing: border-box;
  17626. }
  17627. .check_class {
  17628. width: 85%;
  17629. border-radius: 5px;
  17630. height: 30px;
  17631. line-height: 30px;
  17632. text-align: center;
  17633. padding: 0 10px;
  17634. box-sizing: border-box;
  17635. cursor: pointer;
  17636. white-space: nowrap;
  17637. overflow: hidden;
  17638. text-overflow: ellipsis;
  17639. }
  17640. .check_class.activeX {
  17641. background: #e0eafb;
  17642. color: #3681fc;
  17643. font-weight: 700;
  17644. }
  17645. .check_class + .check_class {
  17646. margin-top: 15px;
  17647. }
  17648. .check_class_left {
  17649. background: #fafafa;
  17650. width: calc(100% - 130px);
  17651. padding: 15px;
  17652. box-sizing: border-box;
  17653. }
  17654. .check_class_all_box {
  17655. display: flex;
  17656. margin-bottom: 10px;
  17657. }
  17658. .all_check {
  17659. display: flex;
  17660. align-items: center;
  17661. padding: 2px 0 0;
  17662. margin-left: 10px;
  17663. }
  17664. .all_check >>> .el-checkbox__label {
  17665. line-height: 18px;
  17666. }
  17667. .check_class_left_title {
  17668. font-size: 16px;
  17669. font-weight: 700;
  17670. }
  17671. .check_class_item {
  17672. display: flex;
  17673. flex-wrap: wrap;
  17674. height: calc(100% - 45px);
  17675. overflow: auto;
  17676. justify-content: flex-start;
  17677. align-items: flex-start;
  17678. align-content: flex-start;
  17679. }
  17680. .class_item:first-child {
  17681. /* margin: 0 15px 15px 67px; */
  17682. }
  17683. .class_item {
  17684. margin: 0 15px 15px 0;
  17685. }
  17686. .class_item:hover >>> .el-checkbox__label {
  17687. color: #409eff;
  17688. }
  17689. .class_item >>> .el-checkbox__label {
  17690. color: #0e1e33;
  17691. }
  17692. .class_item:hover >>> .el-checkbox__inner {
  17693. border-color: #409eff;
  17694. }
  17695. .class_item >>> .el-checkbox,
  17696. .class_item >>> .el-checkbox__input {
  17697. display: flex;
  17698. align-items: center;
  17699. }
  17700. .taskTitle {
  17701. font-size: 20px;
  17702. font-weight: bold;
  17703. margin-bottom: 35px;
  17704. }
  17705. .taskTitle:after {
  17706. content: "";
  17707. width: 100%;
  17708. display: block;
  17709. height: 1px;
  17710. background: #cad1dc;
  17711. position: absolute;
  17712. left: 0;
  17713. margin: 15px 0 0;
  17714. }
  17715. .eva_btn_box {
  17716. margin: 20px 0px 0 0;
  17717. display: flex;
  17718. flex-direction: row;
  17719. flex-wrap: nowrap;
  17720. align-items: center;
  17721. justify-content: space-between;
  17722. width: 100%;
  17723. }
  17724. .eva_btn_left_box {
  17725. display: flex;
  17726. flex-direction: row;
  17727. flex-wrap: nowrap;
  17728. align-items: center;
  17729. }
  17730. .addTypeChoose {
  17731. display: flex;
  17732. flex-direction: row;
  17733. flex-wrap: nowrap;
  17734. align-items: center;
  17735. margin: 15px 0;
  17736. }
  17737. .addTypeBox {
  17738. display: flex;
  17739. flex-direction: column;
  17740. flex-wrap: nowrap;
  17741. align-items: center;
  17742. }
  17743. .addTypeChoose {
  17744. display: flex;
  17745. flex-direction: row;
  17746. flex-wrap: nowrap;
  17747. align-items: center;
  17748. margin: 15px 0;
  17749. }
  17750. </style>