addCourse.vue 497 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="courseTop">
  6. <div class="stepsNav">
  7. <el-breadcrumb separator-class="el-icon-arrow-right">
  8. <el-breadcrumb-item :to="{
  9. path:
  10. '/course?userid=' +
  11. userid +
  12. '&oid=' +
  13. oid +
  14. '&org=' +
  15. org +
  16. '&role=' +
  17. role,
  18. }">课程管理</el-breadcrumb-item>
  19. <el-breadcrumb-item>
  20. <span style="color: rgb(15, 126, 255)">添加课程</span>
  21. </el-breadcrumb-item>
  22. </el-breadcrumb>
  23. </div>
  24. <div class="r_pub_button_retrun" @click="retrunCourse">返回</div>
  25. </div>
  26. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  27. <div ref="stepBox" class="stepBox">
  28. <div class="stepBg" v-if="false">
  29. <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }" @mouseenter="stepDisplay(true)"
  30. @mouseleave="stepDisplay(false)">
  31. <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
  32. <div>
  33. <img src="../../assets/icon/first.png" alt />
  34. </div>
  35. <div>填写基本信息</div>
  36. </div>
  37. <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
  38. <div>
  39. <img src="../../assets/icon/firstNo.png" alt />
  40. </div>
  41. <div>填写基本信息</div>
  42. </div>
  43. <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
  44. <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
  45. <div style="margin: 5px 10px 0 0; width: 2rem">
  46. <img src="../../assets/icon/second.png" alt />
  47. </div>
  48. <div>选择课程模板</div>
  49. </div>
  50. <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
  51. <div>
  52. <img src="../../assets/icon/secondNo.png" alt />
  53. </div>
  54. <div>选择课程模板</div>
  55. </div>
  56. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
  57. <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
  58. <div>
  59. <img src="../../assets/icon/third.png" alt />
  60. </div>
  61. <div>上传课程内容</div>
  62. </div>
  63. <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
  64. <div>
  65. <img src="../../assets/icon/thirdNo.png" alt />
  66. </div>
  67. <div>上传课程内容</div>
  68. </div>
  69. <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
  70. <div v-if="steps > 3 && isStepDisplay" class="four">
  71. <div>
  72. <img src="../../assets/icon/four.png" alt />
  73. </div>
  74. <div>上传完成</div>
  75. </div>
  76. <div v-else-if="isStepDisplay" class="fourNo">
  77. <div>
  78. <img src="../../assets/icon/fourNo.png" alt />
  79. </div>
  80. <div>上传完成</div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:0;"
  85. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 20px)' : 'calc(100% - 100px)' }">
  86. <div class="updateMask" :style="{
  87. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  88. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  89. <div class="whiteBg" style="background:unset;padding: 0;">
  90. <div>
  91. <div class="basic_box" style="padding: 0;">
  92. <div class="big_box">
  93. <div class="left_first">
  94. <div :class="{
  95. updateTips: cid && userid != courseUserid && role != '1',
  96. }">
  97. <div style="width: 100%;">
  98. <div class="course_input_box">
  99. <div class="bb_courseIcon"><img src="../../assets/icon/new/course.png" /></div>
  100. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  101. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;" />
  102. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  103. style="justify-content: center;width: 200px;"></el-switch>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  108. <span>类型</span>
  109. <!-- 学科+ 主题+ 未来+ -->
  110. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  111. style="display: flex; align-items: center">
  112. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  113. <el-radio :label="item.name">{{
  114. item.name
  115. }}</el-radio>
  116. </div>
  117. </el-radio-group>
  118. </div>
  119. <div class="both">
  120. <div class="choose">
  121. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  122. <span v-if="CourseTypeJson[item.id].length > 0 &&
  123. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  124. ? pTypeCheck.indexOf(item.id) != -1
  125. : true)
  126. ">{{ item.name }}:</span>
  127. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  128. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  129. ? pTypeCheck.indexOf(item.id) != -1
  130. : true)
  131. ">
  132. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  133. item1.name }}</el-checkbox>
  134. </el-checkbox-group>
  135. <!-- <div
  136. v-else
  137. style="font-size: 14px; margin-left: -8px"
  138. >
  139. 暂无
  140. </div> -->
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="right_first">
  146. <!-- <div class="ai_box">
  147. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  148. </div> -->
  149. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  150. <div style="width: 100%;">
  151. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  152. <img src="../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  153. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  154. <div v-if="cover.length == 0">点击添加封面</div>
  155. <div class="cover_mask"><img src="../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  156. </div>
  157. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  158. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  159. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  160. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  161. <i class="el-icon-plus"></i>
  162. </el-upload> -->
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="whiteBg" style="background:#fff;margin: 10px 0;">
  170. <div class="whiteBg" style="border-radius: 0">
  171. <div class="c_info_title">课程权限设置</div>
  172. <div class="wb_j_box">
  173. <div class="wb_j_box_content">
  174. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  175. (dialogVisibleClass = true),
  176. (classSearch = ''),
  177. (gradeId = ''),
  178. getClass()
  179. ">添加班级</button>
  180. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  181. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  182. getClassC(tc) }}</span>
  183. </div> -->
  184. <div class="wb_j_box_btn" @click="
  185. (dialogVisibleClass = true),
  186. (classSearch = ''),
  187. (gradeId = ''),
  188. getClass()
  189. ">
  190. <div class="wb_j_box_title">授课班级</div>
  191. <div class="wb_j_box_btn_c">
  192. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  193. v-if="checkboxList2.length" popper-class="text_tooltip2">
  194. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  195. </el-tooltip>
  196. <div v-else class="wb_j_box_span">请选择授课班级</div>
  197. <div class="wb_j_box_arrow"></div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="wb_j_box_content">
  202. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openMember">添加协同成员</button>
  203. <div v-if="checkboxList3.length" class="wb_j_box_p_box" @click="checkBoolean = !checkBoolean">
  204. <span :class="{ tcMember: getMan2(tc) }" v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  205. checkBoolean
  206. ? checkboxList3
  207. : checkboxList3.slice(0, 6)" :key="tcIndex">{{ getMan2(tc) }}</span><span class="tcMember"
  208. v-if="checkboxList3.length > 6 && !checkBoolean">更多...</span>
  209. </div> -->
  210. <div class="wb_j_box_btn" @click="openMember">
  211. <div class="wb_j_box_title">协同人员</div>
  212. <div class="wb_j_box_btn_c">
  213. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  214. v-if="checkboxList3.length" popper-class="text_tooltip2">
  215. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  216. </el-tooltip>
  217. <div v-else class="wb_j_box_span">请选择协同人员</div>
  218. <div class="wb_j_box_arrow"></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  225. <div class="c_info_title">课程简要描述</div>
  226. <div style="width: 100%;padding: 0px 20px;box-sizing: border-box;">
  227. <div style="width: calc((100% - 55% - 100px) * 2 - 30px)">
  228. <textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText" placeholder="请输入课程简要描述"></textarea>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="whiteBg" style="border-radius: 0; margin-top: 15px; padding-bottom: 20px">
  233. <div class="c_info_title">目标管理</div>
  234. <div style="margin: 0 auto;padding:0 20px">
  235. <div style="
  236. width: 95%;
  237. min-height: 200px;
  238. border: 1px solid #CAD1DC;
  239. border-radius: 4px;
  240. position: relative;
  241. ">
  242. <div class="e_add_top">
  243. <div class="e_add_title">
  244. <button class="c_pub_button_delete pub_btn_delete_img" @click="deleteEva()"
  245. v-if="evalua">清除</button>
  246. <button class="c_pub_button_confirm pub_btn_add_img2" @click="dialogVisiblemb = true">添加</button>
  247. <!-- <span>当前使用目标管理</span>
  248. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  249. <img
  250. src="../../assets/line.png"
  251. class="cru_line"
  252. style="
  253. width: 125px;
  254. height: 20px;
  255. bottom: -10px;
  256. left: 155px;
  257. "
  258. /> -->
  259. </div>
  260. <div style="
  261. display: flex;
  262. flex-direction: row;
  263. align-items: center;
  264. ">
  265. <!-- <el-button
  266. type="primary"
  267. size="small"
  268. @click="dialogVisiblemb = true"
  269. >添加目标管理</el-button
  270. >
  271. <el-button
  272. type="primary"
  273. size="small"
  274. @click="deleteEva()"
  275. >清除内容</el-button
  276. > -->
  277. <!-- <div class="e_add_delete" @click="deleteEva()">
  278. <img src="../../assets/icon/delete.png" alt="" />
  279. </div> -->
  280. </div>
  281. </div>
  282. <div v-if="evalua == ''">
  283. <div class="noneBox">
  284. <img src="../../assets/icon/new/eva_none.png" />
  285. <span>请添加目标管理</span>
  286. </div>
  287. </div>
  288. <div class="e_add_content" v-else>
  289. <div class="e_add_list_pbox">
  290. <div class="e_add_list_pbox_title">
  291. <span class="type_title">切换模式</span>
  292. <div class="type_content">
  293. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  294. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  295. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  296. </div>
  297. </div>
  298. <div class="e_add_list_pbox_content">
  299. <Mind :showBar="false" :mindData="data" v-show="typeMode == 1"></Mind>
  300. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  301. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  302. v-if="typeMode == 3">
  303. </SeeBoard>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="info_btnBox3">
  312. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  313. goTo(
  314. '/course?userid=' +
  315. userid +
  316. '&oid=' +
  317. oid +
  318. '&org=' +
  319. org +
  320. '&role=' +
  321. role
  322. )
  323. ">
  324. 返回课程
  325. </button>
  326. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  327. {{ steps == 4 ? "返回课程" : "上一步" }}
  328. </button>
  329. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  330. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  331. {{ steps == 3 ? "确认上传" : "下一步" }}
  332. </button>
  333. </div>
  334. </div>
  335. <div class="rightBox" v-if="this.steps == 2"
  336. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  337. <div class="basic_box"
  338. style="padding: 20px 30px 0px !important; box-sizing: border-box;height: calc(100% - 80px);overflow: auto;background:#fff">
  339. <!-- <div
  340. style="
  341. color: #b8b8b8;
  342. background: #fff;
  343. width: 26%;
  344. height: 40px;
  345. border-radius: 15px;
  346. padding-left: 20px;
  347. line-height: 40px;
  348. font-size: 17px;
  349. box-shadow: 0px 1px 2px 2px #e0e0e0;
  350. "
  351. >-->
  352. <div class="right_title" style="border: none; margin: 0; padding: 0">
  353. 请选择合适的课程模板
  354. </div>
  355. <div class="wordbox">
  356. <div class="wordTeacher" @click="checkTemplate2()">
  357. <div class="wordPic">
  358. <img src="../../assets/icon/new/template_none.png" alt />
  359. </div>
  360. <div style="
  361. margin-top: 10px;
  362. line-height: 19px;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. white-space: nowrap;
  366. padding: 0 20px;
  367. ">
  368. 空白模板
  369. </div>
  370. </div>
  371. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  372. <div class="wordPic">
  373. <img src="../../assets/icon/new/template.png" alt />
  374. </div>
  375. <div style="
  376. margin-top: 10px;
  377. line-height: 19px;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. white-space: nowrap;
  381. padding: 0 20px;
  382. ">
  383. {{ aa.title }}
  384. </div>
  385. </div>
  386. <div class="wordTeacher" @click="checkTemplate3()" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  387. <div class="wordPic">
  388. <img src="../../assets/icon/new/template.png" alt />
  389. </div>
  390. <div style="
  391. margin-top: 10px;
  392. line-height: 19px;
  393. overflow: hidden;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. padding: 0 20px;
  397. ">
  398. 简易模板
  399. </div>
  400. </div>
  401. <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
  402. <div class="wordPic">
  403. <img src="../../assets/icon/new/template.png" alt />
  404. </div>
  405. <div style="
  406. margin-top: 10px;
  407. line-height: 19px;
  408. overflow: hidden;
  409. text-overflow: ellipsis;
  410. white-space: nowrap;
  411. padding: 0 20px;
  412. ">
  413. 智能粘贴模式
  414. </div>
  415. </div>
  416. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  417. <div class="wordPic">
  418. <img src="../../assets/icon/wordMub.png" alt />
  419. </div>
  420. <div style="
  421. margin-top: 10px;
  422. line-height: 19px;
  423. overflow: hidden;
  424. text-overflow: ellipsis;
  425. white-space: nowrap;
  426. padding: 0 20px;
  427. ">
  428. 未来小学课程设计
  429. </div>
  430. </div> -->
  431. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  432. <div class="wordPic">
  433. <img src="../../assets/icon/wordMub.png" alt />
  434. </div>
  435. <div style="
  436. margin-top: 10px;
  437. line-height: 19px;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. white-space: nowrap;
  441. padding: 0 20px;
  442. ">
  443. 我的课程
  444. </div>
  445. </div> -->
  446. </div>
  447. </div>
  448. <div class="info_btnBox3" style="position: absolute;bottom: 0;">
  449. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  450. goTo(
  451. '/course?userid=' +
  452. userid +
  453. '&oid=' +
  454. oid +
  455. '&org=' +
  456. org +
  457. '&role=' +
  458. role
  459. )
  460. ">
  461. 返回课程
  462. </button>
  463. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
  464. {{ steps == 4 ? "返回课程" : "上一步" }}
  465. </button>
  466. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  467. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  468. {{ steps == 3 ? "确认上传" : "下一步" }}
  469. </button>
  470. </div>
  471. </div>
  472. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR"
  473. :style="{ height: (!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)' }">
  474. <div class="rb_c_box">
  475. <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
  476. <div class="stepsBottom">
  477. <!-- <div class="navTop">辅助导航</div> -->
  478. <div class="navBottom" v-if="courseState == 2">
  479. <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
  480. <div class="nt_taskBox" style="width: 100%;">
  481. <div class="nt_taskTitle"
  482. style="font-size: 16px;min-width: fit-content;margin-right: 10px;font-weight: 700;">阶段 {{
  483. unitIndex + 1 }}</div>
  484. <div class="nt_taskName" style="font-size: 16px;font-weight: 700;">
  485. <el-tooltip effect="light" :content="unitJson[unitIndex].dyName" placement="top">
  486. <span>{{ unitJson[unitIndex].dyName }}</span>
  487. </el-tooltip>
  488. </div>
  489. </div>
  490. </div> -->
  491. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  492. .taskJson" :key="tIndex" :class="{
  493. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex && dragType == 'task',
  494. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && dragType == 'task',
  495. }">
  496. <div @dragstart="dragTaskStart(t, tIndex, 0)" @dragover.prevent="dragTaskOver(tIndex, 0)"
  497. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  498. isNavTask:
  499. isClickColor > 0 && isClickColor == tIndex + 1,
  500. isNavOpen: t.toolOpen
  501. }">
  502. <div @click.stop="taskOpen(tIndex, 0)" class="chapter_upload_open"></div>
  503. <div
  504. @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  505. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''"
  506. style="left: 8px;"
  507. class="chapter_upload_drag"
  508. ></div>
  509. <div class="nt_taskBox">
  510. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  511. <div class="nt_taskName">
  512. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  513. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  514. </el-tooltip>
  515. </div>
  516. </div>
  517. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  518. 1
  519. ">
  520. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  521. @click.stop="taskMove(1, tIndex)"></div>
  522. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  523. @click.stop="taskMove(2, tIndex)"></div>
  524. </div> -->
  525. </div>
  526. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  527. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  528. @click="jumpGj(tIndex, toolIndex2)">
  529. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  530. <div>工具{{ toolIndex2 + 1 }}:</div>
  531. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="navBottom" v-if="courseState == 1">
  538. <div v-for="(stage, stageIndex) in unitJson" :key="stageIndex" class="stageBox" :class="{
  539. dragOverTop: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex > stageIndex && dragType == 'Unit',
  540. dragOverBottom: newIndex === stageIndex && typeIndex == 'Unit-'+stageIndex && oldIndex < stageIndex && dragType == 'Unit',
  541. }">
  542. <div @dragstart="dragUnitStart(stage, stageIndex)" @dragover.prevent="dragUnitOver(stageIndex)"
  543. @dragend="dragUnitEnd()" :draggable="isdrag == 'unit-'+stageIndex" @click="unitSet2(stageIndex)" class="navStage" :class="{
  544. isNavStage: stageIndex == unitIndex,
  545. isNavStageOpen: stage.toolOpen
  546. }">
  547. <div
  548. @mousedown="isdrag = 'unit-'+stageIndex" @mouseup="isdrag = ''"
  549. @touchstart="isdrag = 'unit-'+stageIndex" @touchend="isdrag = ''"
  550. style="left: 8px;"
  551. class="chapter_upload_drag"
  552. ></div>
  553. <div class="nt_taskBox">
  554. <div class="nt_taskTitle">第{{ stageIndex + 1 }}阶段:</div>
  555. <div class="nt_taskName">
  556. <el-tooltip effect="light" :content="stage.dyName ? stage.dyName : '未命名阶段'" placement="top">
  557. <span>{{ stage.dyName ? stage.dyName : '未命名阶段' }}</span>
  558. </el-tooltip>
  559. </div>
  560. </div>
  561. <div @click.stop="unitOpen(stageIndex)" class="chapter_unit_open"></div>
  562. </div>
  563. <div v-for="(t, tIndex) in unitJson[stageIndex].chapterInfo[0]
  564. .taskJson" :key="`${stageIndex}-${tIndex}`" :class="{
  565. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && ((oldIndex > tIndex && stageIndex == checkUnitIndex) || (oldIndex == tIndex && stageIndex == checkUnitIndex && checkUnitIndex != oldUnitIndex)) && dragType == 'task',
  566. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex && stageIndex == checkUnitIndex && dragType == 'task',
  567. }" :style="{display:stage.toolOpen ? 'block' : 'none'}">
  568. <div @dragstart="dragTaskStart(t, tIndex, stageIndex)" @dragover.prevent="dragTaskOver(tIndex, stageIndex)"
  569. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+stageIndex+'-'+tIndex" @click="goToTask2(tIndex, stageIndex)" class="navTask" style="padding-left: 12px;" :class="{
  570. isNavTask:
  571. isClickColor > 0 && isClickColor == tIndex + 1 && stageIndex == unitIndex,
  572. isNavOpen: t.toolOpen
  573. }">
  574. <div @click.stop="taskOpen(tIndex, stageIndex)" class="chapter_upload_open"></div>
  575. <div
  576. @mousedown="isdrag = 'task-'+stageIndex+'-'+tIndex" @mouseup="isdrag = ''"
  577. @touchstart="isdrag = 'task-'+stageIndex+'-'+tIndex" @touchend="isdrag = ''"
  578. style="left: 20px;"
  579. class="chapter_upload_drag"
  580. ></div>
  581. <div class="nt_taskBox" style="width: calc(100% - 52px);">
  582. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  583. <div class="nt_taskName">
  584. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  585. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  586. </el-tooltip>
  587. </div>
  588. </div>
  589. </div>
  590. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  591. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  592. @click="jumpGj2(tIndex, toolIndex2, stageIndex)">
  593. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}${stageIndex}` }">
  594. <div>工具{{ toolIndex2 + 1 }}:</div>
  595. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  596. </div>
  597. </div>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="rb_c_box_right">
  605. <!-- <div class="rb_c_box_btn">
  606. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3">智能粘贴</button>
  607. </div> -->
  608. <div class="basic_box" ref="unitBox">
  609. <div style="
  610. display: flex;
  611. flex-direction: row;
  612. align-items: center;
  613. position: sticky;
  614. top: 0;
  615. z-index: 99;
  616. width: 100%;
  617. padding: 0 20px 0 20px;
  618. box-sizing: border-box;
  619. background: #fff;
  620. border-radius: 8px;
  621. ">
  622. <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
  623. <div class="cru_selectBox"
  624. :style="{ maxWidth: isPasteTask ? 'calc(100% - 335px)' : 'calc(100% - 190px)' }" v-if="courseState == 1">
  625. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  626. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  627. <!-- item.dyName ? item.dyName : -->
  628. <span v-if="unitJson[unitJson.length - 1].easy == 4 ||
  629. unitJson[unitJson.length - 1].easy == 6
  630. ">{{
  631. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  632. }}</span>
  633. <span v-else>{{ "第" + (index + 1) + "阶段" }}</span>
  634. </div>
  635. <div class="cru_line" :style="{
  636. left: offsetLetfPx + 'px',
  637. }"></div>
  638. </div>
  639. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  640. !(unitJson[unitJson.length - 1].easy == 6) && courseState == 1
  641. ">
  642. <img src="../../assets/icon/new/addStage.png" alt />
  643. </div>
  644. <button class="c_pub_button_add pub_btn_add_img" @click="updateCourseState(1)" v-if="courseState == 2" style="margin: 15px 0">新建阶段</button>
  645. <!-- v-if="steps == 3 && (userid == courseUserid || role == '1')" -->
  646. <button class="c_pub_button_add" @click="openStageBox" v-show="false"
  647. style="margin: 0 0 0 auto;">阶段顺序</button>
  648. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask"
  649. style="margin: 0 0 0 auto;">智能粘贴</button>
  650. <button class="c_pub_button_confirm pub_btn_template_img" @click="openTemplate"
  651. :style="{margin: isPasteTask ? '0 0 0 20px' : '0 0 0 auto'}" style="padding:0 12px">选择课程模板</button>
  652. </div>
  653. <div style="margin: 0 0 10px 0; padding: 0;" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  654. :key="index">
  655. <div class="chapter_box" v-if="courseState == 1">
  656. <div class="chapter_contentbox">
  657. <!-- <div>第{{ unitIndex + 1 }}阶段</div> -->
  658. <div class="cc_input">
  659. <input ref="dyInput" type="text" placeholder="请输入阶段标题" class="binfo_input"
  660. v-model="unitJson[unitIndex].dyName" />
  661. </div>
  662. <div class="remove" v-if="(unitJson.length > 1 || courseState != 2) &&
  663. !(unitJson[unitJson.length - 1].easy == 4) &&
  664. !(unitJson[unitJson.length - 1].easy == 6)
  665. " @click="deleteUnit(unitIndex)"></div>
  666. </div>
  667. </div>
  668. <!-- <div v-if="!unitJson[unitIndex].easy" style="
  669. margin: 50px 0px 10px;
  670. font-size: 1.5em;
  671. font-weight: 700;
  672. color: #0f7eff;
  673. ">
  674. 添加任务
  675. </div> -->
  676. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  677. :class="{ smallTaskBorder: itemTask.isFold === 1 }"
  678. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  679. <div style="background: #fff;border-radius: 5px;">
  680. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  681. <!-- padding: 20px; -->
  682. <div v-if="unitJson[unitIndex].easy != 1">
  683. <div :style="{
  684. marginBottom:
  685. unitJson[unitIndex].easy == 3 ||
  686. (unitJson[unitIndex].easy == 5 &&
  687. itemTask.taskType == 1)
  688. ? '75px'
  689. : '0',
  690. }">
  691. <div style="
  692. display: flex;
  693. margin: 0px 0 20px;
  694. flex-direction: row;
  695. justify-content: flex-start;
  696. align-items: center;
  697. ">
  698. <div class="lineTitle">任务概述</div>
  699. </div>
  700. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  701. flex-direction: row;
  702. justify-content: flex-start;
  703. align-items: center;
  704. margin:0;
  705. ">
  706. <!-- <div class="cc_title">
  707. 任务{{ itemTaskIndex + 1 }}
  708. </div> -->
  709. <div class="cc_input">
  710. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  711. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  712. itemTaskIndex
  713. ].task
  714. " />
  715. </div>
  716. <div class="remove" v-if="item.taskJson.length > 1 &&
  717. (!unitJson[unitIndex].easy ||
  718. unitJson[unitIndex].easy == 6)
  719. " @click="deleteTask(itemTaskIndex)"></div>
  720. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
  721. class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  722. src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  723. <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
  724. @click="fold2(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开任务描述
  725. </div> -->
  726. </div>
  727. <!-- <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
  728. display: flex;
  729. margin: 20px 0;
  730. flex-direction: row;
  731. justify-content: flex-start;
  732. align-items: center;
  733. ">
  734. <div class="lineTitle">任务描述</div>
  735. </div> && !itemTask.isFold2-->
  736. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 "
  737. style="margin-top: 20px;">
  738. <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  739. itemTaskIndex
  740. ].taskDetail
  741. " @change="change"></editor-bar>
  742. <!-- <textarea
  743. rows="6"
  744. class="binfo_input"
  745. placeholder="请输入任务描述"
  746. cols
  747. style="width: 70.5% !important; height: 120px"
  748. v-model="
  749. unitJson[unitIndex].chapterInfo[0].taskJson[
  750. itemTaskIndex
  751. ].taskDetail
  752. "
  753. ></textarea>-->
  754. </div>
  755. </div>
  756. </div>
  757. <div style="position:relative" v-if="!unitJson[unitIndex].easy ||
  758. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  759. ">
  760. <div style="
  761. display: flex;
  762. flex-direction: row;
  763. justify-content: space-between;
  764. align-items: center;
  765. " :style="{ margin: !itemTask.isFoldchapter ? '20px 0 10px' : '20px 0 0' }">
  766. <div style="margin-bottom:10px" class="lineTitle clineTitle">学习内容</div>
  767. <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  768. @click="foldC(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  769. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  770. src="../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  771. <!-- <div class="line"></div> -->
  772. </div>
  773. <!-- v-if="!itemTask.isFoldchapter" -->
  774. <div>
  775. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  776. itemTask.chapterData.length == 0
  777. "><img src="../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  778. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  779. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  780. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  781. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  782. getChapterData(
  783. $event,
  784. unitIndex,
  785. index,
  786. index1,
  787. item1.type
  788. )
  789. " :class="{
  790. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1 && dragType == 'drag',
  791. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1 && dragType == 'drag',
  792. }">
  793. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  794. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  795. <div class="chapter_upload_o" style="
  796. position: relative;
  797. display: flex;
  798. align-items: center;
  799. ">
  800. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  801. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  802. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  803. </div>
  804. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  805. </div>
  806. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  807. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  808. </div>
  809. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  810. </div>
  811. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  812. </div>
  813. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  814. </div>
  815. </div>
  816. <div class="chapter_upload_n">
  817. <input readonly="true" v-if="item1.type == 2 ||
  818. item1.type == 3 ||
  819. item1.type == 12 ||
  820. item1.type == 13 ||
  821. item1.type == 7
  822. " :placeholder="item1.name" @click="
  823. updataVideoT(
  824. $event,
  825. unitIndex,
  826. itemTaskIndex,
  827. index1
  828. )
  829. " style="
  830. border: none;
  831. outline: none;
  832. width: 80%;
  833. minwidth: 215px;
  834. z-index: 99;
  835. font-size: 14px;
  836. white-space: nowrap;
  837. overflow: hidden;
  838. text-overflow: ellipsis;
  839. " />
  840. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  841. border: none;
  842. outline: none;
  843. width: 80%;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  848. <input :placeholder="item1.title ? item1.title : '链接'
  849. " v-if="item1.type == 8" style="
  850. border: none;
  851. outline: none;
  852. width: 80%;
  853. white-space: nowrap;
  854. overflow: hidden;
  855. text-overflow: ellipsis;
  856. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  857. <input :placeholder="item1.title ? item1.title : '链接'
  858. " v-if="item1.type == 14" style="
  859. border: none;
  860. outline: none;
  861. width: 80%;
  862. white-space: nowrap;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  866. </div>
  867. <div class="chapter_upload_ic">
  868. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  869. </div>
  870. <div class="chapter_upload_ud" style="z-index: 99">
  871. <div class="chapter_upload_up" @click="
  872. upCd(
  873. $event,
  874. unitIndex,
  875. index,
  876. itemTaskIndex,
  877. index1
  878. )
  879. "></div>
  880. <div class="chapter_upload_down" @click="
  881. downCd(
  882. $event,
  883. unitIndex,
  884. index,
  885. itemTaskIndex,
  886. index1
  887. )
  888. "></div>
  889. </div>
  890. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  891. item1.type == 3 ||
  892. item1.type == 12 ||
  893. item1.type == 13 ||
  894. item1.type == 7
  895. " @click.stop="
  896. updataVideoT(
  897. $event,
  898. unitIndex,
  899. itemTaskIndex,
  900. index1
  901. )
  902. ">
  903. <div></div>
  904. </div>
  905. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  906. @click="selectAttText(itemTaskIndex, index1)">
  907. <div></div>
  908. </div>
  909. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  910. @click="selectLine(itemTaskIndex, index1)">
  911. <div></div>
  912. </div>
  913. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  914. @click="openUpdateSource(itemTaskIndex, index1)">
  915. <div></div>
  916. </div>
  917. <div class="chapter_upload_ic_r" @click.stop="
  918. deleteChapterData(
  919. $event,
  920. unitIndex,
  921. index,
  922. index1,
  923. itemTaskIndex
  924. )
  925. ">
  926. <div></div>
  927. </div>
  928. </div>
  929. </div>
  930. </div>
  931. </div>
  932. </div>
  933. <!-- v-if="!itemTask.isFoldchapter" -->
  934. <div class="add_info_box" style="margin: 10px 0 0">
  935. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  936. 文件
  937. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  938. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  939. " />
  940. </button>
  941. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(itemTaskIndex)">
  942. 图文
  943. </button>
  944. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(itemTaskIndex)">
  945. 链接
  946. </button>
  947. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(itemTaskIndex)">
  948. 代码
  949. </button>
  950. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(itemTaskIndex)">
  951. 资源
  952. </button>
  953. </div>
  954. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  955. itemTaskIndex
  956. ].proVisible
  957. " class="mask">
  958. <div class="progressBox">
  959. <!-- <div id="closePro" class="closeCss">
  960. <img src="../../../assets/icon/close.png" alt />
  961. </div> -->
  962. <div class="lbox">
  963. <img src="../../assets/loading.gif" />上传中,请稍后
  964. </div>
  965. <div style="margin-bottom: 10px">
  966. <span>{{
  967. unitJson[unitIndex].chapterInfo[0].taskJson[
  968. itemTaskIndex
  969. ].isFinishSize
  970. }}M</span>
  971. /
  972. <span>{{
  973. unitJson[unitIndex].chapterInfo[0].taskJson[
  974. itemTaskIndex
  975. ].isAllSize
  976. }}M</span>
  977. </div>
  978. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  979. itemTaskIndex
  980. ].progress
  981. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  982. itemTaskIndex
  983. ].progress
  984. : 0
  985. " style="width: 80%"></el-progress>
  986. </div>
  987. </div>
  988. </div>
  989. <div v-if="unitJson[unitIndex].easy == 1 ||
  990. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  991. ">
  992. <div>
  993. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  994. itemTask.chapterData.length == 0
  995. "><img src="../../assets/icon/new/c_none.png" alt /></div>
  996. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  997. <div @dragstart="dragStart(item1, index1, index)" @dragover.prevent="dragOver(index1, itemTaskIndex)"
  998. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+itemTaskIndex+'-'+index1" class="chapter_upload"
  999. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  1000. getChapterData(
  1001. $event,
  1002. unitIndex,
  1003. index,
  1004. index1,
  1005. item1.type
  1006. )
  1007. " :class="{
  1008. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  1009. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  1010. }">
  1011. <div @mousedown="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @mouseup="isdrag = ''"
  1012. @touchstart="isdrag = 'chapter-'+itemTaskIndex+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  1013. <div class="chapter_upload_t" style="width: 100%"></div>
  1014. <div class="chapter_upload_o" style="
  1015. position: relative;
  1016. display: flex;
  1017. align-items: center;
  1018. ">
  1019. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1020. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  1021. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px">
  1022. </div>
  1023. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px">
  1024. </div>
  1025. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  1026. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px">
  1027. </div>
  1028. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  1029. </div>
  1030. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  1031. </div>
  1032. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  1033. </div>
  1034. </div>
  1035. <div class="chapter_upload_n">
  1036. <span style="
  1037. font-size: 14px;
  1038. color: rgb(109, 109, 109);
  1039. height: 14px;
  1040. line-height: 14px;
  1041. " v-if="item1.type == 2 ||
  1042. item1.type == 3 ||
  1043. item1.type == 7
  1044. ">{{ item1.text }}-</span>
  1045. <input readonly="true" v-if="item1.type == 2 ||
  1046. item1.type == 3 ||
  1047. item1.type == 7
  1048. " :placeholder="item1.name" @click="
  1049. updataVideoT(
  1050. $event,
  1051. unitIndex,
  1052. itemTaskIndex,
  1053. index1
  1054. )
  1055. " style="
  1056. border: none;
  1057. outline: none;
  1058. width: 80%;
  1059. minwidth: 215px;
  1060. z-index: 99;
  1061. font-size: 14px;
  1062. white-space: nowrap;
  1063. overflow: hidden;
  1064. text-overflow: ellipsis;
  1065. " />
  1066. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1067. border: none;
  1068. outline: none;
  1069. width: 80%;
  1070. white-space: nowrap;
  1071. overflow: hidden;
  1072. text-overflow: ellipsis;
  1073. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1074. <input :placeholder="item1.title ? item1.title : '链接'
  1075. " v-if="item1.type == 8 || item1.type == 14" style="
  1076. border: none;
  1077. outline: none;
  1078. width: 80%;
  1079. white-space: nowrap;
  1080. overflow: hidden;
  1081. text-overflow: ellipsis;
  1082. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1083. </div>
  1084. <div class="chapter_upload_ic">
  1085. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  1086. </div>
  1087. <div class="chapter_upload_ud" style="z-index: 99">
  1088. <div class="chapter_upload_up" @click="
  1089. upCd(
  1090. $event,
  1091. unitIndex,
  1092. index,
  1093. itemTaskIndex,
  1094. index1
  1095. )
  1096. "></div>
  1097. <div class="chapter_upload_down" @click="
  1098. downCd(
  1099. $event,
  1100. unitIndex,
  1101. index,
  1102. itemTaskIndex,
  1103. index1
  1104. )
  1105. "></div>
  1106. </div>
  1107. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  1108. item1.type == 3 ||
  1109. item1.type == 12 ||
  1110. item1.type == 13 ||
  1111. item1.type == 7
  1112. " @click.stop="
  1113. updataVideoT(
  1114. $event,
  1115. unitIndex,
  1116. itemTaskIndex,
  1117. index1
  1118. )
  1119. ">
  1120. <div></div>
  1121. </div>
  1122. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  1123. @click="selectAttText(itemTaskIndex, index1)">
  1124. <div></div>
  1125. </div>
  1126. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  1127. @click="selectLine(itemTaskIndex, index1)">
  1128. <div></div>
  1129. </div>
  1130. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  1131. @click="openUpdateSource(itemTaskIndex, index1)">
  1132. <div></div>
  1133. </div>
  1134. <div class="chapter_upload_ic_r" @click.stop="
  1135. deleteChapterData(
  1136. $event,
  1137. unitIndex,
  1138. index,
  1139. index1,
  1140. itemTaskIndex
  1141. )
  1142. ">
  1143. <div></div>
  1144. </div>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="add_info_box" style="margin: 10px 0 0">
  1151. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1152. <span style="color: red">*</span>
  1153. 教学设计
  1154. <input type="file"
  1155. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1156. style="display: none" v-if="inputShow" @change="
  1157. beforeUpload3(
  1158. $event,
  1159. unitIndex,
  1160. 3,
  1161. itemTaskIndex,
  1162. '教学设计'
  1163. )
  1164. " />
  1165. </button>
  1166. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1167. <span style="color: red">*</span>
  1168. 教学课件
  1169. <input type="file"
  1170. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1171. style="display: none" v-if="inputShow" @change="
  1172. beforeUpload3(
  1173. $event,
  1174. unitIndex,
  1175. 3,
  1176. itemTaskIndex,
  1177. '教学课件'
  1178. )
  1179. " />
  1180. </button>
  1181. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1182. 教学视频
  1183. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo"
  1184. style="display: none" v-if="inputShow" @change="
  1185. beforeUpload3(
  1186. $event,
  1187. unitIndex,
  1188. 2,
  1189. itemTaskIndex,
  1190. '教学视频'
  1191. )
  1192. " />
  1193. </button>
  1194. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1195. 教学音频
  1196. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1197. beforeUpload3(
  1198. $event,
  1199. unitIndex,
  1200. 2,
  1201. itemTaskIndex,
  1202. '教学音频'
  1203. )
  1204. " />
  1205. </button>
  1206. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  1207. 学习单
  1208. <input type="file"
  1209. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1210. style="display: none" v-if="inputShow" @change="
  1211. beforeUpload3(
  1212. $event,
  1213. unitIndex,
  1214. 3,
  1215. itemTaskIndex,
  1216. '学习单'
  1217. )
  1218. " />
  1219. </button>
  1220. </div>
  1221. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1222. itemTaskIndex
  1223. ].proVisible
  1224. " class="mask">
  1225. <div class="progressBox">
  1226. <!-- <div id="closePro" class="closeCss">
  1227. <img src="../../../assets/icon/close.png" alt />
  1228. </div> -->
  1229. <div class="lbox">
  1230. <img src="../../assets/loading.gif" />上传中,请稍后
  1231. </div>
  1232. <div style="margin-bottom: 10px">
  1233. <span>{{
  1234. unitJson[unitIndex].chapterInfo[0].taskJson[
  1235. itemTaskIndex
  1236. ].isFinishSize
  1237. }}M</span>
  1238. /
  1239. <span>{{
  1240. unitJson[unitIndex].chapterInfo[0].taskJson[
  1241. itemTaskIndex
  1242. ].isAllSize
  1243. }}M</span>
  1244. </div>
  1245. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1246. itemTaskIndex
  1247. ].progress
  1248. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1249. itemTaskIndex
  1250. ].progress
  1251. : 0
  1252. " style="width: 80%"></el-progress>
  1253. </div>
  1254. </div>
  1255. </div>
  1256. </div>
  1257. <!-- padding: 20px; -->
  1258. <div style="background: #fff;border-radius: 5px;margin-top: 15px;">
  1259. <div v-if="unitJson[unitIndex].easy != 3 &&
  1260. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1261. " style="
  1262. flex-direction: row;
  1263. justify-content: flex-start;
  1264. align-items: center;
  1265. ">
  1266. <div style="
  1267. display: flex;
  1268. flex-direction: row;
  1269. align-items: center;
  1270. margin: 5px 0 20px;
  1271. ">
  1272. <div class="lineTitle clineTitle">
  1273. {{
  1274. !unitJson[unitIndex].easy ||
  1275. unitJson[unitIndex].easy == 6 ||
  1276. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1277. ? "练习内容"
  1278. : "评价内容"
  1279. }}
  1280. </div>
  1281. <!-- <div class="line" style="width: 90%"></div> -->
  1282. </div>
  1283. </div>
  1284. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1285. " class="toolChoose">
  1286. <div class="tools">
  1287. <div class="leftTools" style="
  1288. width: 100%;
  1289. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1290. <div style="
  1291. display: flex;
  1292. flex-direction: row;
  1293. align-items: baseline;
  1294. flex-wrap: nowrap;
  1295. justify-content: flex-start;
  1296. position: relative;
  1297. ">
  1298. <div style="margin-right: 20px; font-weight: bold"
  1299. :id="'gj' + itemTaskIndex + '' + toolIndex">
  1300. 工具 {{ toolIndex + 1 }} :
  1301. </div>
  1302. <div class="chooseWho">
  1303. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1304. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  1305. 互动类
  1306. </div>
  1307. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1308. " @click="(itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()">
  1309. 思维类
  1310. </div>
  1311. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  1312. " @click="(itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()">
  1313. 协作类
  1314. </div>
  1315. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1316. " @click="(itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()">
  1317. 测评类
  1318. </div>
  1319. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  1320. " @click="(itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()">
  1321. 评价类
  1322. </div>
  1323. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1324. " @click="(itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()">
  1325. 编程类
  1326. </div>
  1327. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1328. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  1329. 学科类
  1330. </div>
  1331. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1332. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1333. 其他
  1334. </div> -->
  1335. </div>
  1336. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  1337. <div class="chapter_upload_up2" @click.stop="
  1338. upTool(
  1339. $event,
  1340. unitIndex,
  1341. itemTaskIndex,
  1342. toolIndex
  1343. )
  1344. ">上移</div>
  1345. <div class="chapter_upload_down2" @click.stop="
  1346. downTool(
  1347. $event,
  1348. unitIndex,
  1349. itemTaskIndex,
  1350. toolIndex
  1351. )
  1352. ">下移</div>
  1353. </div>
  1354. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  1355. @click="fold3(itemTaskIndex, toolIndex)"
  1356. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1357. src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  1358. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  1359. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  1360. src="../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  1361. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1362. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  1363. </div>
  1364. <!-- v-show="!itemTool.isFold3" -->
  1365. <div style="min-height: 163px">
  1366. <div class="toolSort" v-if="itemTool.toolType == 0">
  1367. <!-- <div class="tool">
  1368. <div
  1369. class="whiteBIcon"
  1370. @click="addTools(8, itemTaskIndex, toolIndex)"
  1371. >
  1372. <img src="../../assets/icon/secondToolList/library.png" alt />
  1373. <div style="margin: 5px 0">素材库</div>
  1374. </div>
  1375. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1376. <img
  1377. src="../../assets/icon/checkNo.png"
  1378. alt
  1379. v-if="itemTool.tool.indexOf(8) == -1"
  1380. />
  1381. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1382. alt /><span>已选择</span></div>
  1383. </div>
  1384. </div>-->
  1385. <!-- <div class="tool">
  1386. <div
  1387. class="whiteBIcon"
  1388. @click="addTools(17, itemTaskIndex, toolIndex)"
  1389. >
  1390. <img
  1391. src="../../assets/icon/secondToolList/library.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">学习资料</div>
  1395. </div>
  1396. <div
  1397. class="check"
  1398. @click="addTools(17, itemTaskIndex, toolIndex)"
  1399. >
  1400. <img
  1401. src="../../assets/icon/checkNo.png"
  1402. alt
  1403. v-if="itemTool.tool.indexOf(17) == -1"
  1404. />
  1405. <img
  1406. src="../../assets/icon/checkedIs.png"
  1407. alt
  1408. v-else
  1409. />
  1410. </div>10
  1411. </div> -->
  1412. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  1413. @click="addTools(10, itemTaskIndex, toolIndex)">
  1414. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 10, toolIndex)">
  1415. <img src="../../assets/icon/thirdToolList/time.png" alt />
  1416. <div style="margin: 5px 0">倒计时</div>
  1417. </div>
  1418. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1419. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  1420. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1421. <!-- <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1422. <img src="../../assets/icon/checkNo.png" alt
  1423. v-if="itemTool.tool.indexOf(10) == -1" />
  1424. <div class="checkDiv" v-else>
  1425. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1426. </div>
  1427. </div> -->
  1428. </div>
  1429. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  1430. @click="addTools(65, itemTaskIndex, toolIndex)">
  1431. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  1432. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  1433. <div style="margin: 5px 0">挑人</div>
  1434. </div>
  1435. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1436. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  1437. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1438. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  1439. <img src="../../assets/icon/checkNo.png" alt
  1440. v-if="itemTool.tool.indexOf(65) == -1" />
  1441. <div class="checkDiv" v-else>
  1442. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1443. </div>
  1444. </div> -->
  1445. </div>
  1446. <!-- <div class="tool">
  1447. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1448. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1449. <div style="margin: 5px 0">学生分组</div>
  1450. </div>
  1451. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1452. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1453. <div class="checkDiv" v-else>
  1454. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1455. </div>
  1456. </div>
  1457. </div> -->
  1458. <!-- <div class="tool">
  1459. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1460. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1464. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1465. <div class="checkDiv" v-else>
  1466. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1467. </div>
  1468. </div>
  1469. </div> -->
  1470. </div>
  1471. <div class="toolSort" v-if="itemTool.toolType == 1">
  1472. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  1473. @click="addTools(7, itemTaskIndex, toolIndex)">
  1474. <div class="whiteBIcon" @click.stop="addTools(7, itemTaskIndex, toolIndex)">
  1475. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  1476. <div style="margin: 5px 0">思维网格</div>
  1477. </div>
  1478. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1479. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  1480. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1481. <!-- <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1482. <img src="../../assets/icon/checkNo.png" alt
  1483. v-if="itemTool.tool.indexOf(7) == -1" />
  1484. <div class="checkDiv" v-else>
  1485. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1486. </div>
  1487. </div> -->
  1488. </div>
  1489. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  1490. @click="addTools(1, itemTaskIndex, toolIndex)">
  1491. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 1, toolIndex)">
  1492. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  1493. <div style="margin: 5px 0">电子白板</div>
  1494. </div>
  1495. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1496. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  1497. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1498. <!-- <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1499. <img src="../../assets/icon/checkNo.png" alt
  1500. v-if="itemTool.tool.indexOf(1) == -1" />
  1501. <div class="checkDiv" v-else>
  1502. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1503. </div>
  1504. </div> -->
  1505. </div>
  1506. <!-- <div class="tool">
  1507. <div
  1508. class="whiteBIcon"
  1509. @click="addTools(2, itemTaskIndex, toolIndex)"
  1510. >
  1511. <img
  1512. src="../../assets/icon/secondToolList/note.png"
  1513. alt
  1514. />
  1515. <div style="margin: 5px 0">便签</div>
  1516. </div>
  1517. <div
  1518. class="check"
  1519. @click="addTools(2, itemTaskIndex, toolIndex)"
  1520. >
  1521. <img
  1522. src="../../assets/icon/checkNo.png"
  1523. alt
  1524. v-if="itemTool.tool.indexOf(2) == -1"
  1525. />
  1526. <div class="checkDiv" v-else>
  1527. <img
  1528. src="../../assets/icon/checkedIs.png"
  1529. alt
  1530. /><span>已选择</span>
  1531. </div>
  1532. </div>
  1533. </div> -->
  1534. <!-- <div class="tool">
  1535. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1536. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1537. <div style="margin: 5px 0">协同文档</div>
  1538. </div>
  1539. <div
  1540. class="check"
  1541. @click="addTools(6, itemTaskIndex, toolIndex)"
  1542. >
  1543. <img
  1544. src="../../assets/icon/checkNo.png"
  1545. alt
  1546. v-if="itemTool.tool.indexOf(6) == -1"
  1547. />
  1548. <div class="checkDiv" v-else>
  1549. <img
  1550. src="../../assets/icon/checkedIs.png"
  1551. alt
  1552. /><span>已选择</span>
  1553. </div>
  1554. </div>
  1555. </div> -->
  1556. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  1557. @click="addTools(52, itemTaskIndex, toolIndex)">
  1558. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 52, toolIndex)">
  1559. <img src="../../assets/icon/fourthToolList/text.png" alt />
  1560. <div style="margin: 5px 0">文档</div>
  1561. </div>
  1562. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1563. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  1564. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1565. <!-- <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1566. <img src="../../assets/icon/checkNo.png" alt
  1567. v-if="itemTool.tool.indexOf(52) == -1" />
  1568. <div class="checkDiv" v-else>
  1569. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1570. </div>
  1571. </div> -->
  1572. </div>
  1573. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  1574. @click="addTools(3, itemTaskIndex, toolIndex)">
  1575. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 3, toolIndex)">
  1576. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  1577. <div style="margin: 5px 0">思维导图</div>
  1578. </div>
  1579. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1580. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  1581. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1582. <!-- <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1583. <img src="../../assets/icon/checkNo.png" alt
  1584. v-if="itemTool.tool.indexOf(3) == -1" />
  1585. <div class="checkDiv" v-else>
  1586. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1587. </div>
  1588. </div> -->
  1589. </div>
  1590. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  1591. @click="addTools(48, itemTaskIndex, toolIndex)">
  1592. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 48, toolIndex)">
  1593. <img src="../../assets/icon/fourthToolList/table.png" alt />
  1594. <div style="margin: 5px 0">表格</div>
  1595. </div>
  1596. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1597. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  1598. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1599. <!-- <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1600. <img src="../../assets/icon/checkNo.png" alt
  1601. v-if="itemTool.tool.indexOf(48) == -1" />
  1602. <div class="checkDiv" v-else>
  1603. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1604. </div>
  1605. </div> -->
  1606. </div>
  1607. </div>
  1608. <div class="toolSort" v-if="itemTool.toolType == 6">
  1609. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  1610. @click="addTools(49, itemTaskIndex, toolIndex)">
  1611. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 49, toolIndex)">
  1612. <img src="../../assets/icon/fourthToolList/group.png" alt />
  1613. <div style="margin: 5px 0">学生分组</div>
  1614. </div>
  1615. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1616. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  1617. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1618. <!-- <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1619. <img src="../../assets/icon/checkNo.png" alt
  1620. v-if="itemTool.tool.indexOf(49) == -1" />
  1621. <div class="checkDiv" v-else>
  1622. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1623. </div>
  1624. </div> -->
  1625. </div>
  1626. </div>
  1627. <div class="toolSort" v-if="itemTool.toolType == 2">
  1628. <!-- <div class="tool">
  1629. <div
  1630. class="whiteBIcon"
  1631. @click="addTools(5, itemTaskIndex, toolIndex)"
  1632. >
  1633. <img
  1634. src="../../assets/icon/thirdToolList/score.png"
  1635. alt
  1636. />
  1637. <div style="margin: 5px 0">量规评分</div>
  1638. </div>
  1639. <div
  1640. class="check"
  1641. @click="addTools(5, itemTaskIndex, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../assets/icon/checkNo.png"
  1645. alt
  1646. v-if="itemTool.tool.indexOf(5) == -1"
  1647. />
  1648. <img
  1649. src="../../assets/icon/checkedIs.png"
  1650. alt
  1651. v-else
  1652. />
  1653. </div>
  1654. </div>-->
  1655. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1656. @click="addTools(4, itemTaskIndex, toolIndex)">
  1657. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 4, toolIndex)">
  1658. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  1659. <div style="margin: 5px 0">问卷调查</div>
  1660. </div>
  1661. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1662. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  1663. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1664. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1665. <img src="../../assets/icon/checkNo.png" alt
  1666. v-if="itemTool.tool.indexOf(4) == -1" />
  1667. <div class="checkDiv" v-else>
  1668. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1669. </div>
  1670. </div> -->
  1671. </div>
  1672. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1673. @click="addTools(45, itemTaskIndex, toolIndex)">
  1674. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1675. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  1676. <div style="margin: 5px 0">选择题</div>
  1677. </div>
  1678. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1679. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  1680. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1681. <!-- <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1682. <img src="../../assets/icon/checkNo.png" alt
  1683. v-if="itemTool.tool.indexOf(45) == -1" />
  1684. <div class="checkDiv" v-else>
  1685. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1686. </div>
  1687. </div> -->
  1688. </div>
  1689. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1690. @click="addTools(15, itemTaskIndex, toolIndex)">
  1691. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 15, toolIndex)">
  1692. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  1693. <div style="margin: 5px 0">问答</div>
  1694. </div>
  1695. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1696. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1697. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1698. <!-- <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1699. <img src="../../assets/icon/checkNo.png" alt
  1700. v-if="itemTool.tool.indexOf(15) == -1" />
  1701. <div class="checkDiv" v-else>
  1702. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1703. </div>
  1704. </div> -->
  1705. </div>
  1706. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1707. @click="addTools(16, itemTaskIndex, toolIndex)">
  1708. <div class="whiteBIcon" @click.stop="addTools(16, itemTaskIndex, toolIndex)">
  1709. <img src="../../assets/icon/thirdToolList/work.png" alt />
  1710. <div style="margin: 5px 0">作业提交</div>
  1711. </div>
  1712. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1713. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1714. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1715. <!-- <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1716. <img src="../../assets/icon/checkNo.png" alt
  1717. v-if="itemTool.tool.indexOf(16) == -1" />
  1718. <div class="checkDiv" v-else>
  1719. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1720. </div>
  1721. </div> -->
  1722. </div>
  1723. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1724. @click="addTools(50, itemTaskIndex, toolIndex)">
  1725. <div class="whiteBIcon" @click.stop="addTools(50, itemTaskIndex, toolIndex)">
  1726. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  1727. <div style="margin: 5px 0">批量上传</div>
  1728. </div>
  1729. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1730. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1731. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1732. <!-- <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1733. <img src="../../assets/icon/checkNo.png" alt
  1734. v-if="itemTool.tool.indexOf(50) == -1" />
  1735. <div class="checkDiv" v-else>
  1736. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1737. </div>
  1738. </div> -->
  1739. </div>
  1740. <!-- <div class="tool">
  1741. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1742. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1743. <div style="margin: 5px 0">个人评价</div>
  1744. </div>
  1745. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1746. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1747. <div class="checkDiv" v-else>
  1748. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1749. </div>
  1750. </div>
  1751. </div> -->
  1752. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1753. @click="addTools(41, itemTaskIndex, toolIndex)">
  1754. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 41, toolIndex)">
  1755. <img src="../../assets/icon/thirdToolList/select.png" alt />
  1756. <div style="margin: 5px 0">选择匹配</div>
  1757. </div>
  1758. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1759. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1760. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1761. <!-- <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1762. <img src="../../assets/icon/checkNo.png" alt
  1763. v-if="itemTool.tool.indexOf(41) == -1" />
  1764. <div class="checkDiv" v-else>
  1765. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1766. </div>
  1767. </div> -->
  1768. </div>
  1769. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1770. @click="addTools(47, itemTaskIndex, toolIndex)">
  1771. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 47, toolIndex)">
  1772. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  1773. <div style="margin: 5px 0">排序</div>
  1774. </div>
  1775. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1776. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1777. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1778. <!-- <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1779. <img src="../../assets/icon/checkNo.png" alt
  1780. v-if="itemTool.tool.indexOf(47) == -1" />
  1781. <div class="checkDiv" v-else>
  1782. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1783. </div>
  1784. </div> -->
  1785. </div>
  1786. <!-- <div class="tool">
  1787. <div
  1788. class="whiteBIcon"
  1789. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1790. >
  1791. <img
  1792. src="../../assets/icon/thirdToolList/mp3.png"
  1793. alt
  1794. />
  1795. <div style="margin: 5px 0">上传音频</div>
  1796. </div>
  1797. <div
  1798. class="check"
  1799. @click="addTools(42, itemTaskIndex, toolIndex)"
  1800. >
  1801. <img
  1802. src="../../assets/icon/checkNo.png"
  1803. alt
  1804. v-if="itemTool.tool.indexOf(42) == -1"
  1805. />
  1806. <img
  1807. src="../../assets/icon/checkedIs.png"
  1808. alt
  1809. v-else
  1810. />
  1811. </div>
  1812. </div> -->
  1813. </div>
  1814. <div class="toolSort" v-if="itemTool.toolType == 3">
  1815. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1816. @click="addTools(18, itemTaskIndex, toolIndex)">
  1817. <div class="whiteBIcon" @click.stop="addTools(18, itemTaskIndex, toolIndex)">
  1818. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1819. <div style="margin: 5px 0">训练平台</div>
  1820. </div>
  1821. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1822. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1823. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1824. <!-- <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1825. <img src="../../assets/icon/checkNo.png" alt
  1826. v-if="itemTool.tool.indexOf(18) == -1" />
  1827. <div class="checkDiv" v-else>
  1828. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1829. </div>
  1830. </div> -->
  1831. </div>
  1832. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1833. @click="addTools(21, itemTaskIndex, toolIndex)">
  1834. <div class="whiteBIcon" @click.stop="addTools(21, itemTaskIndex, toolIndex)">
  1835. <img src="../../assets/icon/fourthToolList/program.png" alt />
  1836. <div style="margin: 5px 0">AIoT Blockly</div>
  1837. </div>
  1838. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1839. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1840. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1841. <!-- <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1842. <img src="../../assets/icon/checkNo.png" alt
  1843. v-if="itemTool.tool.indexOf(21) == -1" />
  1844. <div class="checkDiv" v-else>
  1845. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1846. </div>
  1847. </div> -->
  1848. </div>
  1849. <!-- <div class="tool">
  1850. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1851. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1852. <div style="margin: 5px 0">AI体验</div>
  1853. </div>
  1854. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1855. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1856. <div class="checkDiv" v-else>
  1857. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1858. </div>
  1859. </div>
  1860. </div> -->
  1861. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1862. @click="addTools(23, itemTaskIndex, toolIndex)">
  1863. <div class="whiteBIcon" @click.stop="addTools(23, itemTaskIndex, toolIndex)">
  1864. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1865. <div style="margin: 5px 0">AI Python</div>
  1866. </div>
  1867. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1868. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1869. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1870. <!-- <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1871. <img src="../../assets/icon/checkNo.png" alt
  1872. v-if="itemTool.tool.indexOf(23) == -1" />
  1873. <div class="checkDiv" v-else>
  1874. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1875. </div>
  1876. </div> -->
  1877. </div>
  1878. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1879. @click="addTools(24, itemTaskIndex, toolIndex)">
  1880. <div class="whiteBIcon" @click.stop="addTools(24, itemTaskIndex, toolIndex)">
  1881. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  1882. <div style="margin: 5px 0">AI Blockly</div>
  1883. </div>
  1884. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1885. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1886. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1887. <!-- <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1888. <img src="../../assets/icon/checkNo.png" alt
  1889. v-if="itemTool.tool.indexOf(24) == -1" />
  1890. <div class="checkDiv" v-else>
  1891. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1892. </div>
  1893. </div> -->
  1894. </div>
  1895. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1896. @click="addTools(32, itemTaskIndex, toolIndex)">
  1897. <div class="whiteBIcon" @click.stop="addTools(32, itemTaskIndex, toolIndex)">
  1898. <img src="../../assets/icon/thirdToolList/code.png" alt />
  1899. <div style="margin: 5px 0">源码编辑</div>
  1900. </div>
  1901. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1902. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1903. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1904. <!-- <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1905. <img src="../../assets/icon/checkNo.png" alt
  1906. v-if="itemTool.tool.indexOf(32) == -1" />
  1907. <div class="checkDiv" v-else>
  1908. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1909. </div>
  1910. </div> -->
  1911. </div>
  1912. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1913. @click="addTools(57, itemTaskIndex, toolIndex)">
  1914. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1915. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  1916. <div style="margin: 5px 0">CocoPi</div>
  1917. </div>
  1918. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1919. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1920. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1921. <!-- <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1922. <img src="../../assets/icon/checkNo.png" alt
  1923. v-if="itemTool.tool.indexOf(57) == -1" />
  1924. <div class="checkDiv" v-else>
  1925. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1926. </div>
  1927. </div> -->
  1928. </div>
  1929. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1930. @click="addTools(63, itemTaskIndex, toolIndex)">
  1931. <div class="whiteBIcon" @click.stop="addTools(63, itemTaskIndex, toolIndex)">
  1932. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  1933. <div style="margin: 5px 0">海龟编程</div>
  1934. </div>
  1935. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1936. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1937. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1938. <!-- <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1939. <img src="../../assets/icon/checkNo.png" alt
  1940. v-if="itemTool.tool.indexOf(63) == -1" />
  1941. <div class="checkDiv" v-else>
  1942. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1943. </div>
  1944. </div> -->
  1945. </div>
  1946. </div>
  1947. <div class="toolSort" v-if="itemTool.toolType == 7">
  1948. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1949. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1950. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 40, toolIndex)">
  1951. <img src="../../assets/icon/thirdToolList/eval.png" alt />
  1952. <div style="margin: 5px 0">个人评价</div>
  1953. </div>
  1954. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1955. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1956. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1958. <img src="../../assets/icon/checkNo.png" alt
  1959. v-if="itemTool.tool.indexOf(40) == -1" />
  1960. <div class="checkDiv" v-else>
  1961. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1962. </div>
  1963. </div> -->
  1964. </div>
  1965. </div>
  1966. <div class="toolSort" v-if="itemTool.toolType == 5">
  1967. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1968. @click="addTools(28, itemTaskIndex, toolIndex)">
  1969. <div class="whiteBIcon" @click.stop="addTools(28, itemTaskIndex, toolIndex)">
  1970. <img src="../../assets/icon/secondToolList/translation.png" alt />
  1971. <div style="margin: 5px 0">翻译</div>
  1972. </div>
  1973. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1974. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1975. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1976. <!-- <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1977. <img src="../../assets/icon/checkNo.png" alt
  1978. v-if="itemTool.tool.indexOf(28) == -1" />
  1979. <div class="checkDiv" v-else>
  1980. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1981. </div>
  1982. </div> -->
  1983. </div>
  1984. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1985. @click="addTools(31, itemTaskIndex, toolIndex)">
  1986. <div class="whiteBIcon" @click.stop="addTools(31, itemTaskIndex, toolIndex)">
  1987. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  1988. <div style="margin: 5px 0">数字画板</div>
  1989. </div>
  1990. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1991. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1992. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  1993. <!-- <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1994. <img src="../../assets/icon/checkNo.png" alt
  1995. v-if="itemTool.tool.indexOf(31) == -1" />
  1996. <div class="checkDiv" v-else>
  1997. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1998. </div>
  1999. </div> -->
  2000. </div>
  2001. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  2002. @click="addTools(39, itemTaskIndex, toolIndex)">
  2003. <div class="whiteBIcon" @click.stop="addTools(39, itemTaskIndex, toolIndex)">
  2004. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2005. <div style="margin: 5px 0">GeoGebra</div>
  2006. </div>
  2007. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2008. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  2009. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2010. <!-- <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2011. <img src="../../assets/icon/checkNo.png" alt
  2012. v-if="itemTool.tool.indexOf(39) == -1" />
  2013. <div class="checkDiv" v-else>
  2014. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2015. </div>
  2016. </div> -->
  2017. </div>
  2018. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  2019. @click="addTools(66, itemTaskIndex, toolIndex)">
  2020. <div class="whiteBIcon" @click.stop="addTools(66, itemTaskIndex, toolIndex)">
  2021. <img src="../../assets/icon/secondToolList/formulaEdi.png" alt />
  2022. <div style="margin: 5px 0">公式编辑</div>
  2023. </div>
  2024. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2025. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  2026. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2027. <!-- <div class="check" @click="addTools(66, itemTaskIndex, toolIndex)">
  2028. <img src="../../assets/icon/checkNo.png" alt
  2029. v-if="itemTool.tool.indexOf(66) == -1" />
  2030. <div class="checkDiv" v-else>
  2031. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2032. </div>
  2033. </div> -->
  2034. </div>
  2035. <!-- <div class="tool">
  2036. <div class="whiteBIcon" @click="addTools(67, itemTaskIndex, toolIndex)">
  2037. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  2038. <div style="margin: 5px 0">分子结构</div>
  2039. </div>
  2040. <div class="check" @click="addTools(67, itemTaskIndex, toolIndex)">
  2041. <img src="../../assets/icon/checkNo.png" alt
  2042. v-if="itemTool.tool.indexOf(67) == -1" />
  2043. <div class="checkDiv" v-else>
  2044. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2045. </div>
  2046. </div>
  2047. </div> -->
  2048. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  2049. @click="addTools(68, itemTaskIndex, toolIndex)">
  2050. <div class="whiteBIcon" @click.stop="addTools(68, itemTaskIndex, toolIndex)">
  2051. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  2052. <div style="margin: 5px 0">时间轴</div>
  2053. </div>
  2054. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2055. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  2056. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2057. <!-- <div class="check" @click="addTools(68, itemTaskIndex, toolIndex)">
  2058. <img src="../../assets/icon/checkNo.png" alt
  2059. v-if="itemTool.tool.indexOf(68) == -1" />
  2060. <div class="checkDiv" v-else>
  2061. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2062. </div>
  2063. </div> -->
  2064. </div>
  2065. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  2066. @click="addTools(69, itemTaskIndex, toolIndex)">
  2067. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 69, toolIndex)">
  2068. <img src="../../assets/icon/thirdToolList/english.png" alt />
  2069. <div style="margin: 5px 0">英语写作</div>
  2070. </div>
  2071. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2072. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  2073. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  2074. <!-- <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2075. <img src="../../assets/icon/checkNo.png" alt
  2076. v-if="itemTool.tool.indexOf(4) == -1" />
  2077. <div class="checkDiv" v-else>
  2078. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2079. </div>
  2080. </div> -->
  2081. </div>
  2082. <!-- <div class="tool">
  2083. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2084. <img src="../../assets/icon/secondToolList/translation.png" alt />
  2085. <div style="margin: 5px 0">翻译</div>
  2086. </div>
  2087. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2088. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2089. <div class="checkDiv" v-else>
  2090. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2091. </div>
  2092. </div>
  2093. </div>
  2094. <div class="tool">
  2095. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2096. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  2097. <div style="margin: 5px 0">魔盒识字</div>
  2098. </div>
  2099. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2100. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2101. <div class="checkDiv" v-else>
  2102. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2103. </div>
  2104. </div>
  2105. </div>
  2106. <div class="tool">
  2107. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2108. <img src="../../assets/icon/secondToolList/24game.png" alt />
  2109. <div style="margin: 5px 0">24点</div>
  2110. </div>
  2111. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2112. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2113. <div class="checkDiv" v-else>
  2114. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. <div class="tool">
  2119. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2120. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  2121. <div style="margin: 5px 0">数学画板</div>
  2122. </div>
  2123. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2124. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2125. <div class="checkDiv" v-else>
  2126. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div class="tool">
  2131. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2132. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  2133. <div style="margin: 5px 0">GeoGebra</div>
  2134. </div>
  2135. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2136. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2137. <div class="checkDiv" v-else>
  2138. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <div class="tool">
  2143. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2144. <img src="../../assets/icon/fourthToolList/car.png" alt />
  2145. <div style="margin: 5px 0">模拟驾驶</div>
  2146. </div>
  2147. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2148. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2149. <div class="checkDiv" v-else>
  2150. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. <div class="tool">
  2155. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2156. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  2157. <div style="margin: 5px 0">路径搜索</div>
  2158. </div>
  2159. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2160. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2161. <div class="checkDiv" v-else>
  2162. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div class="tool">
  2167. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2168. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  2169. <div style="margin: 5px 0">深度学习</div>
  2170. </div>
  2171. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2172. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2173. <div class="checkDiv" v-else>
  2174. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. <div class="tool">
  2179. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2180. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  2181. <div style="margin: 5px 0">全历史</div>
  2182. </div>
  2183. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2184. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2185. <div class="checkDiv" v-else>
  2186. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2187. </div>
  2188. </div>
  2189. </div>
  2190. </div>
  2191. <div class="toolSort" v-if="itemTool.toolType == 4">
  2192. <div class="tool">
  2193. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2194. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  2195. <div style="margin: 5px 0">课程设计</div>
  2196. </div>
  2197. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2198. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2199. <div class="checkDiv" v-else>
  2200. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. <div class="tool">
  2205. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2206. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  2207. <div style="margin: 5px 0">目标管理</div>
  2208. </div>
  2209. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2210. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2211. <div class="checkDiv" v-else>
  2212. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2213. </div>
  2214. </div>
  2215. </div> -->
  2216. <!-- <div class="tool">
  2217. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2218. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2219. <div style="margin: 5px 0">汉字宫</div>
  2220. </div>
  2221. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2222. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2223. <div class="checkDiv" v-else>
  2224. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2225. </div>
  2226. </div>
  2227. </div> -->
  2228. </div>
  2229. </div>
  2230. <!-- v-show="!itemTool.isFold3" -->
  2231. <div>
  2232. <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
  2233. style="margin: 0 0 20px 0; width: 100% !important"
  2234. v-model="itemTool.toolDetail"></textarea>
  2235. </div>
  2236. </div>
  2237. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2238. <div class="addToolImg">
  2239. <img src="../../assets/icon/add.png" alt />
  2240. </div>
  2241. <div>添加工具</div>
  2242. </div> -->
  2243. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2244. 添加工具
  2245. </button>
  2246. </div>
  2247. </div>
  2248. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2249. unitJson[unitIndex].easy == 4
  2250. " class="toolChoose" style="padding: 0 0 40px;">
  2251. <div class="tools">
  2252. <div class="leftTools" style="width: 100%"
  2253. v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2254. <div>
  2255. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2256. style="margin: 0 0 20px 0; width: 100% !important"
  2257. v-model="itemTool.toolDetail"></textarea>
  2258. </div>
  2259. <div style="
  2260. display: flex;
  2261. flex-direction: row;
  2262. align-items: baseline;
  2263. flex-wrap: nowrap;
  2264. justify-content: flex-start;
  2265. position: relative;
  2266. ">
  2267. <div style="margin-right: 20px; font-weight: bold"
  2268. :id="'gj' + itemTaskIndex + '' + toolIndex">
  2269. 工具 {{ toolIndex + 1 }} :
  2270. </div>
  2271. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2272. v-if="itemTask.toolChoose.length > 1" style="right: 0"></div>
  2273. </div>
  2274. <div style="min-height: 163px">
  2275. <div class="toolSort">
  2276. <div class="tool">
  2277. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2278. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2279. <div style="margin: 5px 0">电子白板</div>
  2280. </div>
  2281. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2282. <img src="../../assets/icon/checkNo.png" alt
  2283. v-if="itemTool.tool.indexOf(1) == -1" />
  2284. <div class="checkDiv" v-else>
  2285. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2286. </div>
  2287. </div>
  2288. </div>
  2289. <div class="tool">
  2290. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2291. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2292. <div style="margin: 5px 0">文档</div>
  2293. </div>
  2294. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2295. <img src="../../assets/icon/checkNo.png" alt
  2296. v-if="itemTool.tool.indexOf(52) == -1" />
  2297. <div class="checkDiv" v-else>
  2298. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2299. </div>
  2300. </div>
  2301. </div>
  2302. <div class="tool">
  2303. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2304. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2305. <div style="margin: 5px 0">思维导图</div>
  2306. </div>
  2307. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2308. <img src="../../assets/icon/checkNo.png" alt
  2309. v-if="itemTool.tool.indexOf(3) == -1" />
  2310. <div class="checkDiv" v-else>
  2311. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <div class="tool">
  2316. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2317. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  2318. <div style="margin: 5px 0">问卷调查</div>
  2319. </div>
  2320. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2321. <img src="../../assets/icon/checkNo.png" alt
  2322. v-if="itemTool.tool.indexOf(4) == -1" />
  2323. <div class="checkDiv" v-else>
  2324. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. <div class="tool">
  2329. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2330. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  2331. <div style="margin: 5px 0">选择题</div>
  2332. </div>
  2333. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2334. <img src="../../assets/icon/checkNo.png" alt
  2335. v-if="itemTool.tool.indexOf(45) == -1" />
  2336. <div class="checkDiv" v-else>
  2337. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <div class="tool">
  2342. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2343. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  2344. <div style="margin: 5px 0">问答</div>
  2345. </div>
  2346. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2347. <img src="../../assets/icon/checkNo.png" alt
  2348. v-if="itemTool.tool.indexOf(15) == -1" />
  2349. <div class="checkDiv" v-else>
  2350. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2351. </div>
  2352. </div>
  2353. </div>
  2354. <div class="tool">
  2355. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2356. <img src="../../assets/icon/thirdToolList/work.png" alt />
  2357. <div style="margin: 5px 0">作业提交</div>
  2358. </div>
  2359. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2360. <img src="../../assets/icon/checkNo.png" alt
  2361. v-if="itemTool.tool.indexOf(16) == -1" />
  2362. <div class="checkDiv" v-else>
  2363. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. <div class="tool">
  2368. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2369. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2370. <div style="margin: 5px 0">批量上传</div>
  2371. </div>
  2372. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2373. <img src="../../assets/icon/checkNo.png" alt
  2374. v-if="itemTool.tool.indexOf(50) == -1" />
  2375. <div class="checkDiv" v-else>
  2376. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2377. </div>
  2378. </div>
  2379. </div>
  2380. <div class="tool">
  2381. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2382. <img src="../../assets/icon/thirdToolList/select.png" alt />
  2383. <div style="margin: 5px 0">选择匹配</div>
  2384. </div>
  2385. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2386. <img src="../../assets/icon/checkNo.png" alt
  2387. v-if="itemTool.tool.indexOf(41) == -1" />
  2388. <div class="checkDiv" v-else>
  2389. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. <div class="tool">
  2394. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2395. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  2396. <div style="margin: 5px 0">排序</div>
  2397. </div>
  2398. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2399. <img src="../../assets/icon/checkNo.png" alt
  2400. v-if="itemTool.tool.indexOf(47) == -1" />
  2401. <div class="checkDiv" v-else>
  2402. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. <div class="tool">
  2407. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2408. <img src="../../assets/icon/fourthToolList/table.png" alt />
  2409. <div style="margin: 5px 0">表格</div>
  2410. </div>
  2411. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2412. <img src="../../assets/icon/checkNo.png" alt
  2413. v-if="itemTool.tool.indexOf(48) == -1" />
  2414. <div class="checkDiv" v-else>
  2415. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2416. </div>
  2417. </div>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. </div>
  2422. <!-- <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2423. <div class="addToolImg">
  2424. <img src="../../assets/icon/add.png" alt />
  2425. </div>
  2426. <div>添加工具</div>
  2427. </div> -->
  2428. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 35px auto 20px">
  2429. 添加工具
  2430. </button>
  2431. </div>
  2432. </div>
  2433. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2434. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2435. " class="toolChoose" style="padding: 0 0 40px;">
  2436. <div class="tools">
  2437. <div class="leftTools" style="
  2438. width: 100%;
  2439. padding: 0 0 15px 0;
  2440. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2441. <div style="min-height: 163px">
  2442. <div class="toolSort">
  2443. <div class="tool">
  2444. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2445. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  2446. <div style="margin: 5px 0">批量上传</div>
  2447. </div>
  2448. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2449. <img src="../../assets/icon/checkNo.png" alt
  2450. v-if="itemTool.tool.indexOf(50) == -1" />
  2451. <div class="checkDiv" v-else>
  2452. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2453. </div>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. </div>
  2458. </div>
  2459. </div>
  2460. </div>
  2461. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2462. <div class="elist_title">
  2463. <div style="
  2464. display: flex;
  2465. flex-direction: row;
  2466. align-items: center;
  2467. margin: 20px 0;
  2468. ">
  2469. <div class="lineTitle clineTitle">评价设置</div>
  2470. <!-- <div class="line" style="width: 90%"></div> -->
  2471. </div>
  2472. </div>
  2473. <div class="mbCss">
  2474. <div class="pjCss" :style="{width:itemTask.isEvaFold?'calc(100% - 55%)':'calc(100% - 120px)'}">
  2475. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2476. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2477. <span>评价名称:</span>
  2478. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].value || '填写评价名称'" placement="top" popper-class="text_tooltip2"> -->
  2479. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2480. <!-- </el-tooltip> -->
  2481. <!-- <span>评星等级:</span>
  2482. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()"
  2483. disabled></el-rate> -->
  2484. <div class="remove" @click="
  2485. deletEList(unitIndex, itemTaskIndex, eIndex)
  2486. "></div>
  2487. <div class="elist_inptu_text">
  2488. <span>评价描述:</span>
  2489. <!-- <el-tooltip effect="dark" :content="itemTask.eList[eIndex].detail || '填写评价描述'" placement="top" popper-class="text_tooltip2"> -->
  2490. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2491. <!-- </el-tooltip> -->
  2492. </div>
  2493. <div class="elist_inptu_text" v-if="evalua">
  2494. <span>目标:</span>
  2495. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2496. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2497. @change="forceUpdate()">
  2498. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2499. :value="e.name">
  2500. </el-option>
  2501. </el-select> -->
  2502. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2503. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. <!-- <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)"
  2508. style="margin: 35px 35px 0 0">
  2509. <div class="addToolImg">
  2510. <img src="../../assets/icon/add.png" alt />
  2511. </div>
  2512. <div>添加</div>
  2513. </div> -->
  2514. <button class="c_pub_button_add pub_btn_eval_img" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 20px 35px 0 0">
  2515. 添加
  2516. </button>
  2517. </div>
  2518. <div v-if="evalua" style="
  2519. border: 1px solid #e5e5e5;
  2520. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2521. " :style="{width:itemTask.isEvaFold?'55%':'116px'}" class="evaCss">
  2522. <!-- <div class="e_add_top">
  2523. <div class="e_add_title">
  2524. <span>当前使用目标管理</span>
  2525. <span>{{ eTitle }}</span>
  2526. <img src="../../assets/line.png" class="cru_line" style="
  2527. width: 125px;
  2528. height: 20px;
  2529. bottom: -10px;
  2530. left: 155px;
  2531. " />
  2532. </div>
  2533. </div> -->
  2534. <div class="e_add_content" style="width: 100%">
  2535. <div class="e_add_list_pbox" style="width: 100%">
  2536. <div class="e_add_list_pbox_title">
  2537. <span class="type_title" v-if="itemTask.isEvaFold">切换模式</span>
  2538. <div class="type_content" v-if="itemTask.isEvaFold">
  2539. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1, itemTaskIndex)">目标树</span>
  2540. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2, itemTaskIndex)">目标罗盘</span>
  2541. <!-- <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span> -->
  2542. </div>
  2543. <div v-if="itemTask.isEvaFold"
  2544. class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva(itemTaskIndex)"><img
  2545. src="../../assets/icon/new/icon-slide.png" />收起目标</div>
  2546. <div v-else style="margin:0 0 0 auto" class="show_taskD"
  2547. @click="foldEva(itemTaskIndex)"><img src="../../assets/icon/new/icon-slide.png" />展开目标
  2548. </div>
  2549. </div>
  2550. <div class="e_add_list_pbox_content" v-if="itemTask.isEvaFold" style="min-height: 200px;">
  2551. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2552. " v-if="typeMode == 1"></Mind>
  2553. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2554. </Sunburst>
  2555. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2556. v-if="typeMode == 3"></SeeBoard>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. <div class="funBlock" style="padding: 0">
  2564. <div class="fold" @click="fold(itemTaskIndex, $event)">
  2565. <div class="arrow" :class="{ arrowZ: !(itemTask.isFold === 1) }">
  2566. </div>
  2567. <div>{{ itemTask.isFold === 1 ? '展开任务' : '收起任务' }}</div>
  2568. </div>
  2569. <!-- <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2570. <div>展开</div>
  2571. <div class="arrow">
  2572. <img src="../../assets/icon/expand.png" alt />
  2573. </div>
  2574. </div> -->
  2575. </div>
  2576. </div>
  2577. </div>
  2578. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2579. <!-- <div>
  2580. <img src="../../../assets/icon/new/addStage.png" alt />
  2581. <span>添加任务</span>
  2582. </div> -->
  2583. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2584. 添加任务
  2585. </button>
  2586. </div>
  2587. </div>
  2588. <div class="info_btnBox3">
  2589. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
  2590. goTo(
  2591. '/course?userid=' +
  2592. userid +
  2593. '&oid=' +
  2594. oid +
  2595. '&org=' +
  2596. org +
  2597. '&role=' +
  2598. role
  2599. )
  2600. ">
  2601. 返回课程
  2602. </button>
  2603. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps"
  2604. style="background:#dbdbdb">
  2605. {{ steps == 4 ? "返回课程" : "上一步" }}
  2606. </button>
  2607. <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
  2608. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2609. {{ steps == 3 ? "确认上传" : "下一步" }}
  2610. </button>
  2611. </div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. <div style="
  2617. width: calc(100% - 20px);
  2618. background: rgb(255, 255, 255);
  2619. border-radius: 10px;
  2620. " v-if="this.steps == 4">
  2621. <div class="basic_box_success">
  2622. <div class="right_img">
  2623. <img src="../../assets/icon/right.png" alt />
  2624. </div>
  2625. <div style="font-weight: bold">成功</div>
  2626. <!-- <div>您的课程编号</div>
  2627. <div class="number">{{ number }}</div>-->
  2628. <!-- <div class="success_button">
  2629. <div class="look_course" @click="isNoFinsh">
  2630. 邀请老师协同编辑
  2631. </div>
  2632. <div class="attend_others" @click="goCourse">预览课程</div>
  2633. </div> -->
  2634. </div>
  2635. </div>
  2636. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  2637. @mouseleave="btnDisplay(false)" v-if="false">
  2638. <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
  2639. goTo(
  2640. '/course?userid=' +
  2641. userid +
  2642. '&oid=' +
  2643. oid +
  2644. '&org=' +
  2645. org +
  2646. '&role=' +
  2647. role
  2648. )
  2649. ">
  2650. 返回课程
  2651. </button>
  2652. <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay"
  2653. @click="lastSteps">
  2654. {{ steps == 4 ? "返回课程" : "上一步" }}
  2655. </button>
  2656. <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
  2657. :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
  2658. {{ steps == 3 ? "确认上传" : "下一步" }}
  2659. </button>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. </div>
  2664. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2665. class="dialog_diy2 customWidth">
  2666. <div>请复制该链接邀请协同编辑</div>
  2667. <div>http://www.boomyon.com/index-zhang.com</div>
  2668. <span slot="footer" class="dialog-footer">
  2669. <el-button type="primary">复制链接分享</el-button>
  2670. <el-button @click="dialogVisible = false">取消</el-button>
  2671. </span>
  2672. </el-dialog>
  2673. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2674. :before-close="handleClose" class="dialog_diy2 customWidth">
  2675. <el-form>
  2676. <el-form-item label="文档标题">
  2677. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2678. </el-form-item>
  2679. <div>文档简介</div>
  2680. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2681. </el-form>
  2682. <span slot="footer" class="dialog-footer">
  2683. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2684. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2685. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2686. </span>
  2687. </el-dialog>
  2688. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2689. :before-close="handleClose" class="dialog_diy">
  2690. <el-form>
  2691. <el-form-item label="文档标题">
  2692. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2693. </el-form-item>
  2694. <div>文档内容</div>
  2695. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2696. </el-form>
  2697. <span slot="footer" class="dialog-footer">
  2698. <el-button @click="clearChoose">取 消</el-button>
  2699. <el-button type="primary" @click="wordNext()">确定</el-button>
  2700. </span>
  2701. </el-dialog>
  2702. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2703. :before-close="handleClose" class="dialog_diy">
  2704. <el-form>
  2705. <el-form-item label="文本标题">
  2706. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  2707. placeholder="请输入文本标题..."></el-input>
  2708. </el-form-item>
  2709. <!-- <div>富文本内容</div> -->
  2710. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2711. </el-form>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="clearAttText">取 消</el-button>
  2714. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2718. :before-close="handleClose" class="dialog_diy lineCss">
  2719. <el-form>
  2720. <el-form-item label="标题" :label-width="formLabelWidth">
  2721. <span>
  2722. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2723. </span>
  2724. </el-form-item>
  2725. <el-form-item label="链接" :label-width="formLabelWidth">
  2726. <span>
  2727. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2728. </span>
  2729. </el-form-item>
  2730. </el-form>
  2731. <span slot="footer" class="dialog-footer">
  2732. <el-button @click="clearLine">取 消</el-button>
  2733. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2734. </span>
  2735. </el-dialog>
  2736. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  2737. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  2738. <div>
  2739. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  2740. </div>
  2741. <span slot="footer" class="dialog-footer">
  2742. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2743. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  2744. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  2745. </span>
  2746. </el-dialog>
  2747. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2748. :before-close="handleClose" class="addNewPP customWidth">
  2749. <div class="people">
  2750. <div class="people_top">
  2751. <div class="people_nav">选择成员</div>
  2752. <div class="people_top_right">
  2753. <div class="people_search">
  2754. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2755. <div class="search_img" @click="searchStudent">
  2756. <img src="../../assets/icon/search.png" alt />
  2757. </div>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. <el-checkbox-group v-model="checkboxList" class="people_name">
  2762. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2763. "暂无学生可选" }}</el-checkbox>
  2764. </el-checkbox-group>
  2765. </div>
  2766. <span slot="footer" class="dialog-footer">
  2767. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2768. <el-button type="primary" @click="isAddPP">确定</el-button>
  2769. </span>
  2770. </el-dialog>
  2771. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  2772. :before-close="handleClose" class="addNewPP2">
  2773. <div class="check_classBox">
  2774. <div class="check_class_right">
  2775. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  2776. 全部
  2777. </div>
  2778. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  2779. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  2780. {{ item.name }}
  2781. </div>
  2782. </el-tooltip>
  2783. </div>
  2784. <div class="check_class_left">
  2785. <div class="check_class_all_box">
  2786. <div class="check_class_left_title">选择班级</div>
  2787. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  2788. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  2789. </div>
  2790. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  2791. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  2792. </div> -->
  2793. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  2794. <div v-for="item in grade2" :key="item.id" class="class_item">
  2795. <el-checkbox :label="item.id">
  2796. {{ item.name }}
  2797. </el-checkbox>
  2798. </div>
  2799. </el-checkbox-group>
  2800. <div v-if="!grade2.length">暂无数据</div>
  2801. </div>
  2802. </div>
  2803. <span slot="footer" class="dialog-footer">
  2804. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2805. <el-button type="primary" @click="isAddClass">确定</el-button>
  2806. </span>
  2807. </el-dialog>
  2808. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2809. :before-close="handleClose" class="addNewPP customWidth">
  2810. <div class="people">
  2811. <div class="people_top">
  2812. <div class="people_top_right">
  2813. <div class="people_search">
  2814. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2815. <div class="search_img" @click="getTeacher">
  2816. <img src="../../assets/icon/search.png" alt />
  2817. </div>
  2818. </div>
  2819. </div>
  2820. <div class="people_nav" style="display: flex;align-items: center;">
  2821. <div class="check_class_left_title">选择成员</div>
  2822. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll2"
  2823. @change="handleCheckAllChange2" class="all_check">全选</el-checkbox></div>
  2824. </div>
  2825. </div>
  2826. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" @change="InviteChange2">
  2827. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2828. <div class="t_j_box">
  2829. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2830. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2831. </el-tooltip>
  2832. <el-tooltip placement="top" :content="item.username">
  2833. <span>{{ item.username }}</span>
  2834. </el-tooltip>
  2835. <el-tooltip placement="top" :content="item.school">
  2836. <span>{{ item.school }}</span>
  2837. </el-tooltip>
  2838. </div>
  2839. </el-checkbox>
  2840. </el-checkbox-group>
  2841. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2842. </div>
  2843. <span slot="footer" class="dialog-footer">
  2844. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2845. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2846. </span>
  2847. </el-dialog>
  2848. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2849. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  2850. <div style="height:100%">
  2851. <div class="a_add_title" style="
  2852. display: flex;
  2853. flex-direction: row;
  2854. align-items: center;
  2855. justify-content: center;
  2856. ">
  2857. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  2858. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2859. </div>
  2860. <div class="a_addBox" style="height:calc(100% - 50px)">
  2861. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  2862. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2863. <div class="a_add_checkType">
  2864. <span :class="{
  2865. active:
  2866. askJson.askJson[index1].type == '1' ||
  2867. !askJson.askJson[index1].type,
  2868. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2869. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2870. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2871. </div>
  2872. <div class="a_add_head">
  2873. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  2874. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2875. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  2876. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  2877. </div>
  2878. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  2879. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  2880. </div>
  2881. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  2882. </div>
  2883. <div class="a_add_head_div">
  2884. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2885. </el-button>
  2886. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  2887. </div>
  2888. </div>
  2889. <div class="a_add_body">
  2890. <div class="a_add_input" style="flex-direction: column;">
  2891. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2892. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  2893. <div style="margin-right: 10px">
  2894. 选项{{ checkIndex + 1 }}
  2895. </div>
  2896. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  2897. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  2898. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  2899. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  2900. </div>
  2901. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  2902. </div>
  2903. <div class="a_add_body_div">
  2904. <el-button type="primary" size="small"
  2905. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  2906. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  2907. v-if="askJson.askJson[index1].askItem != 1">删除
  2908. </el-button>
  2909. </div>
  2910. </div>
  2911. </div>
  2912. <!-- <div class="a_add_body_div">
  2913. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2914. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2915. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2916. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2917. </el-button>
  2918. </div> -->
  2919. </div>
  2920. </div>
  2921. </div>
  2922. </div>
  2923. <span slot="footer" class="dialog-footer">
  2924. <el-button @click="closePan(4)">取 消</el-button>
  2925. <el-button type="primary" @click="addAsk">确 定</el-button>
  2926. </span>
  2927. </el-dialog>
  2928. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2929. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  2930. <div style="height:100%">
  2931. <!-- <div class="a_add_title" style="
  2932. display: flex;
  2933. flex-direction: row;
  2934. align-items: center;
  2935. justify-content: center;
  2936. ">
  2937. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2938. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2939. </div> -->
  2940. <div class="a_addBox" style="height:100%">
  2941. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  2942. <!-- 请输入题目内容 -->
  2943. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  2944. v-if="isPasteChoice">智能粘贴</button>
  2945. </div>
  2946. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2947. <div class="a_add_checkType">
  2948. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2949. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2950. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2951. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2952. </div>
  2953. <div class="a_add_head">
  2954. <div class="timuUpImg">
  2955. <div style="display: flex;align-items: center;">
  2956. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  2957. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  2958. placeholder="请输入题目">
  2959. </el-input> -->
  2960. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  2961. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  2962. @change="() => { $forceUpdate() }"></textarea>
  2963. </div>
  2964. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  2965. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  2966. </div>
  2967. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  2968. </div>
  2969. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  2970. <img src="../../assets/icon/xzUpImg.png" alt="" />
  2971. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2972. </div>
  2973. </div>
  2974. <div class="a_add_head_div">
  2975. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2976. </el-button>
  2977. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  2978. </div>
  2979. </div>
  2980. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2981. testJson.testJson[index1].timuList.length
  2982. ">
  2983. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2984. @click.stop="previewImg(timg.src)">
  2985. <img :src="timg.src" alt="" />
  2986. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2987. <img src="../../assets/icon/delete.png" alt="" />
  2988. </div>
  2989. </div>
  2990. </div>
  2991. <div class="a_add_body">
  2992. <div class="a_add_input a_add_input_choice">
  2993. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  2994. @change="() => { $forceUpdate() }">
  2995. <div class="radioBox">
  2996. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2997. .testItem" :key="checkIndex" :label="checkIndex">
  2998. <div style="margin-right: 10px">
  2999. 选项{{ checkIndex + 1 }}
  3000. </div>
  3001. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3002. testJson.testJson[index1].checkList[checkIndex]
  3003. .imgType &&
  3004. testJson.testJson[index1].checkList[checkIndex]
  3005. .imgType == 1
  3006. ">
  3007. <div class="inImg" @click.stop="
  3008. previewImg(
  3009. testJson.testJson[index1].checkList[checkIndex]
  3010. .src
  3011. )
  3012. ">
  3013. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3014. .src
  3015. " lazy />
  3016. <!-- <img :src="
  3017. testJson.testJson[index1].checkList[checkIndex]
  3018. .src
  3019. " alt="" /> -->
  3020. </div>
  3021. </div>
  3022. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3023. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3024. @change="() => { $forceUpdate() }"></textarea>
  3025. <div class="xzUpImg" @click.stop="addImg($event)">
  3026. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3027. <input type="file" accept="image/*" style="display: none"
  3028. @change="beforeUploadTi($event, index1, checkIndex)" />
  3029. </div>
  3030. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3031. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3032. </div>
  3033. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3034. </div>
  3035. <div class="a_add_body_div">
  3036. <el-button type="primary" size="small"
  3037. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3038. <el-button type="primary" size="small"
  3039. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3040. v-if="testJson.testJson[index1].testItem != 1">删除
  3041. </el-button>
  3042. </div>
  3043. </el-radio>
  3044. </div>
  3045. </el-radio-group>
  3046. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3047. @change="() => { $forceUpdate() }">
  3048. <div class="radioBox">
  3049. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3050. .testItem" :key="checkIndex1" :label="checkIndex1">
  3051. <div style="margin-right: 10px">
  3052. 选项{{ checkIndex1 + 1 }}
  3053. </div>
  3054. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3055. testJson.testJson[index1].checkList[checkIndex1]
  3056. .imgType &&
  3057. testJson.testJson[index1].checkList[checkIndex1]
  3058. .imgType == 1
  3059. ">
  3060. <div class="inImg" @click.stop="
  3061. previewImg(
  3062. testJson.testJson[index1].checkList[checkIndex1]
  3063. .src
  3064. )
  3065. ">
  3066. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3067. .src
  3068. " lazy />
  3069. <!-- <img :src="
  3070. testJson.testJson[index1].checkList[checkIndex1]
  3071. .src
  3072. " alt="" /> -->
  3073. </div>
  3074. </div>
  3075. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3076. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3077. @change="() => { $forceUpdate() }"></textarea>
  3078. <div class="xzUpImg" @click.stop="addImg($event)">
  3079. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3080. <input type="file" accept="image/*" style="display: none"
  3081. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3082. </div>
  3083. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3084. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3085. </div>
  3086. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3087. </div>
  3088. <div class="a_add_body_div">
  3089. <el-button type="primary" size="small"
  3090. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3091. <el-button type="primary" size="small"
  3092. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3093. v-if="testJson.testJson[index1].testItem != 1">删除
  3094. </el-button>
  3095. </div>
  3096. </el-checkbox>
  3097. </div>
  3098. </el-checkbox-group>
  3099. </div>
  3100. <!-- <div class="a_add_body_div">
  3101. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3102. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3103. v-if="testJson.testJson[index1].testItem != 1">删除
  3104. </el-button>
  3105. </div> -->
  3106. </div>
  3107. </div>
  3108. </div>
  3109. </div>
  3110. <span slot="footer" class="dialog-footer">
  3111. <el-button @click="closePan(45)">取 消</el-button>
  3112. <el-button type="primary" @click="addTest">确 定</el-button>
  3113. </span>
  3114. </el-dialog>
  3115. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3116. :before-close="handleClose" class="dialog_diy addToolsDia">
  3117. <div class="toolChoose">
  3118. <div class="tools">
  3119. <div class="leftTools" style="
  3120. width: 100%;
  3121. padding: 0 0 15px 0;
  3122. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3123. <div style="
  3124. display: flex;
  3125. flex-direction: row;
  3126. align-items: baseline;
  3127. flex-wrap: nowrap;
  3128. justify-content: flex-start;
  3129. position: relative;
  3130. ">
  3131. <div class="chooseWho">
  3132. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3133. 互动类
  3134. </div>
  3135. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3136. 思维类
  3137. </div>
  3138. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3139. 评价类
  3140. </div>
  3141. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3142. 其他
  3143. </div>
  3144. </div>
  3145. </div>
  3146. <div style="min-height: 163px">
  3147. <div class="toolSort" v-if="chapToolsType == 0">
  3148. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(8) != -1 }" @click="chapAddTools(8)">
  3149. <div class="whiteBIcon" @click.stop="chapAddTools(8)">
  3150. <img src="../../assets/icon/secondToolList/library.png" alt />
  3151. <div style="margin: 5px 0">素材库</div>
  3152. </div>
  3153. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3154. <div class="isCTool" v-if="itemTools.tools.indexOf(8) != -1"><img
  3155. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3156. <!-- <div class="check" @click="chapAddTools(8)">
  3157. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3158. <div class="checkDiv" v-else>
  3159. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3160. </div>
  3161. </div> -->
  3162. </div>
  3163. </div>
  3164. <div class="toolSort" v-if="chapToolsType == 1">
  3165. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(7) != -1 }" @click="chapAddTools(7)">
  3166. <div class="whiteBIcon" @click.stop="chapAddTools(7)">
  3167. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  3168. <div style="margin: 5px 0">思维网格</div>
  3169. </div>
  3170. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3171. <div class="isCTool" v-if="itemTools.tools.indexOf(7) != -1"><img
  3172. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3173. <!-- <div class="check" @click="chapAddTools(7)">
  3174. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3175. <div class="checkDiv" v-else>
  3176. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3177. </div>
  3178. </div> -->
  3179. </div>
  3180. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(1) != -1 }" @click="chapAddTools(1)">
  3181. <div class="whiteBIcon" @click.stop="chapAddTools(1)">
  3182. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  3183. <div style="margin: 5px 0">电子白板</div>
  3184. </div>
  3185. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3186. <div class="isCTool" v-if="itemTools.tools.indexOf(1) != -1"><img
  3187. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3188. <!-- <div class="check" @click="chapAddTools(1)">
  3189. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3190. <div class="checkDiv" v-else>
  3191. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3192. </div>
  3193. </div> -->
  3194. </div>
  3195. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(2) != -1 }" @click="chapAddTools(2)">
  3196. <div class="whiteBIcon" @click.stop="chapAddTools(2)">
  3197. <img src="../../assets/icon/secondToolList/note.png" alt />
  3198. <div style="margin: 5px 0">便签</div>
  3199. </div>
  3200. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3201. <div class="isCTool" v-if="itemTools.tools.indexOf(2) != -1"><img
  3202. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3203. <!-- <div class="check" @click="chapAddTools(2)">
  3204. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3205. <div class="checkDiv" v-else>
  3206. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3207. </div>
  3208. </div> -->
  3209. </div>
  3210. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(6) != -1 }" @click="chapAddTools(6)">
  3211. <div class="whiteBIcon" @click.stop="chapAddTools(6)">
  3212. <img src="../../assets/icon/secondToolList/doc.png" alt />
  3213. <div style="margin: 5px 0">协同文档</div>
  3214. </div>
  3215. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3216. <div class="isCTool" v-if="itemTools.tools.indexOf(6) != -1"><img
  3217. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3218. <!-- <div class="check" @click="chapAddTools(6)">
  3219. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3220. <div class="checkDiv" v-else>
  3221. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3222. </div>
  3223. </div> -->
  3224. </div>
  3225. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(3) != -1 }" @click="chapAddTools(3)">
  3226. <div class="whiteBIcon" @click.stop="chapAddTools(3)">
  3227. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  3228. <div style="margin: 5px 0">思维导图</div>
  3229. </div>
  3230. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3231. <div class="isCTool" v-if="itemTools.tools.indexOf(3) != -1"><img
  3232. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3233. <!-- <div class="check" @click="chapAddTools(3)">
  3234. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3235. <div class="checkDiv" v-else>
  3236. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3237. </div>
  3238. </div> -->
  3239. </div>
  3240. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(31) != -1 }" @click="chapAddTools(31)">
  3241. <div class="whiteBIcon" @click.stop="chapAddTools(31)">
  3242. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  3243. <div style="margin: 5px 0">数学画板</div>
  3244. </div>
  3245. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3246. <div class="isCTool" v-if="itemTools.tools.indexOf(31) != -1"><img
  3247. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3248. <!-- <div class="check" @click="chapAddTools(31)">
  3249. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3250. <div class="checkDiv" v-else>
  3251. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3252. </div>
  3253. </div> -->
  3254. </div>
  3255. </div>
  3256. <div class="toolSort" v-if="chapToolsType == 2">
  3257. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(5) != -1 }" @click="chapAddTools(5)">
  3258. <div class="whiteBIcon" @click.stop="chapAddTools(5)">
  3259. <img src="../../assets/icon/thirdToolList/score.png" alt />
  3260. <div style="margin: 5px 0">量规评分</div>
  3261. </div>
  3262. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3263. <div class="isCTool" v-if="itemTools.tools.indexOf(5) != -1"><img
  3264. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3265. <!-- <div class="check" @click="chapAddTools(5)">
  3266. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3267. <div class="checkDiv" v-else>
  3268. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3269. </div>
  3270. </div> -->
  3271. </div>
  3272. <div class="tool" :class="{ isToolChoose: itemTools.tools.indexOf(4) != -1 }" @click="chapAddTools(4)">
  3273. <div class="whiteBIcon" @click.stop="openTools(chapCount, 4, null)">
  3274. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  3275. <div style="margin: 5px 0">问卷调查</div>
  3276. </div>
  3277. <div class="noCTool"><img src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3278. <div class="isCTool" v-if="itemTools.tools.indexOf(4) != -1"><img
  3279. src="../../assets/icon/new/isToolC.png" alt="" /></div>
  3280. <!-- <div class="check" @click="chapAddTools(4)">
  3281. <img src="../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3282. <div class="checkDiv" v-else>
  3283. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3284. </div>
  3285. </div> -->
  3286. </div>
  3287. </div>
  3288. </div>
  3289. <div>
  3290. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 100% !important"
  3291. v-model="itemTools.toolDetail" />
  3292. </div>
  3293. </div>
  3294. </div>
  3295. </div>
  3296. <span slot="footer" class="dialog-footer">
  3297. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3298. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3299. </span>
  3300. </el-dialog>
  3301. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3302. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  3303. <div>
  3304. <div class="a_add_title" style="
  3305. display: flex;
  3306. flex-direction: column;
  3307. align-items: flex-start;
  3308. justify-content: center;
  3309. ">
  3310. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3311. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  3312. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  3313. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  3314. </div>
  3315. </div>
  3316. <span slot="footer" class="dialog-footer">
  3317. <el-button @click="closePan(15)">取 消</el-button>
  3318. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3319. </span>
  3320. </el-dialog>
  3321. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3322. :before-close="handleClose" class="dialog_diy">
  3323. <div>
  3324. <div class="a_add_title" style="
  3325. display: flex;
  3326. flex-direction: column;
  3327. align-items: flex-start;
  3328. justify-content: center;
  3329. ">
  3330. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3331. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3332. </div>
  3333. </div>
  3334. <span slot="footer" class="dialog-footer">
  3335. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3336. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3337. </span>
  3338. </el-dialog>
  3339. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  3340. :before-close="handleClose" class="dialog_diy">
  3341. <div>
  3342. <div class="fileCss" style="padding-top: 20px">
  3343. <div>
  3344. <button class="info_btn" @click="addImg($event)">
  3345. 选择本地文件
  3346. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3347. </button>
  3348. <div class="spanName">选择本地文件</div>
  3349. </div>
  3350. <!-- <div>
  3351. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  3352. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3353. <img :src="cover[0].url" alt="" />
  3354. <div class="deletePic" @click="deleteSysPic">
  3355. <img src="../../assets/icon/delete.png" alt="" />
  3356. </div>
  3357. </div>
  3358. <div class="spanName">选择系统文件</div>
  3359. </div> -->
  3360. <div>
  3361. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  3362. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  3363. <img :src="cover[0].url" alt="" />
  3364. <div class="deletePic" @click="deleteSysPic">
  3365. <img src="../../assets/icon/delete.png" alt="" />
  3366. </div>
  3367. </div>
  3368. <div class="spanName">选择网络文件</div>
  3369. </div>
  3370. </div>
  3371. <!-- <div class="fileCss">
  3372. </div> -->
  3373. </div>
  3374. <span slot="footer" class="dialog-footer">
  3375. <el-button @click="choosePicVisible = false">取 消</el-button>
  3376. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3377. </span>
  3378. </el-dialog>
  3379. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3380. :before-close="handleClose" class="dialog_diy">
  3381. <div class="cru_selectBox" style="margin: 0">
  3382. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3383. 绘画
  3384. </div>
  3385. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3386. 科技
  3387. </div>
  3388. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3389. 人文
  3390. </div>
  3391. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3392. 艺术
  3393. </div>
  3394. </div>
  3395. <div class="sysPicBox">
  3396. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3397. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3398. </div>
  3399. </div>
  3400. </el-dialog>
  3401. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  3402. :before-close="handleClose" class="dialog_diy">
  3403. <div>
  3404. <div class="people_top_right" style="display: flex;align-items: center;">
  3405. <div style="position: relative; width: 100%;">
  3406. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  3407. @keyup.enter.native="resetImage()"></el-input>
  3408. <div class="search_img" @click="resetImage" style="right: 10px;">
  3409. <img src="../../assets/icon/search.png" alt />
  3410. </div>
  3411. </div>
  3412. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  3413. </div>
  3414. <div class="sysPicBox" v-loading="imageloading">
  3415. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  3416. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  3417. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  3418. </div>
  3419. </div>
  3420. </div>
  3421. </el-dialog>
  3422. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3423. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  3424. <div v-if="selectJson" style="height:100%">
  3425. <div class="select_box1" v-if="selectSteps == 1">
  3426. <div class="select_box1_img">
  3427. <div class="select_box1_title">
  3428. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  3429. </div>
  3430. <div class="select_box1_add_img">
  3431. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3432. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3433. <img src="../../assets/icon/addPoster.png" alt="" />
  3434. </div>
  3435. <div class="isSysPic" v-else>
  3436. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3437. <div class="deletePic" @click="deleteSelectPic">
  3438. <img src="../../assets/icon/delete.png" alt="" />
  3439. </div>
  3440. </div>
  3441. </div>
  3442. </div>
  3443. <div class="select_box1_select">
  3444. <div class="select_box1_title">
  3445. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  3446. </div>
  3447. <div class="select_box1_select_box">
  3448. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3449. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  3450. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3451. <div class="select_box1_select_box_add">
  3452. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3453. 添加</el-button>
  3454. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3455. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. <div v-if="selectSteps == 2" style="height:100%">
  3461. <div class="select_box2">
  3462. <div class="select_box2_title">设置每道题目的正确选项</div>
  3463. <div class="select_box2_box">
  3464. <div class="select_box2_img">
  3465. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  3466. </div>
  3467. <div class="select_box2_answer">
  3468. <div class="select_answer_title">根据题目选择对应答案</div>
  3469. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3470. <span>{{ checkIndex + 1 }}、</span>
  3471. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3472. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3473. </el-option>
  3474. </el-select>
  3475. </div>
  3476. </div>
  3477. </div>
  3478. </div>
  3479. </div>
  3480. </div>
  3481. <span slot="footer" class="dialog-footer">
  3482. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3483. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3484. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3485. </span>
  3486. </el-dialog>
  3487. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3488. :before-close="handleClose" class="dialog_diy">
  3489. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3490. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3491. <div class="pjCss" style="width: 100%">
  3492. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3493. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3494. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3495. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3496. <div class="remove" @click="deletRateList(eIndex)"></div>
  3497. <div style="width: 100%; display: flex">
  3498. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3499. <el-rate v-model="eItem.score" disabled></el-rate>
  3500. </div>
  3501. <div class="elist_inptu_text" style="align-items: flex-start">
  3502. <span style="min-width: 100px; text-align: right">描述:</span>
  3503. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <div class="addToolFun" @click="addRateList()">
  3508. <div class="addToolImg">
  3509. <img src="../../assets/icon/add.png" alt />
  3510. </div>
  3511. <div>添加</div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. <span slot="footer" class="dialog-footer">
  3516. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3517. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3518. </span>
  3519. </el-dialog>
  3520. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3521. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  3522. <div style="height: 100%;">
  3523. <div class="sentenBox" style="height: 100%;">
  3524. <div class="addSen" @click="addSt">添加题目</div>
  3525. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  3526. <div class="sentenTopBox">
  3527. <div class="sentenTop" :index="stIndex + 1">
  3528. <div>题目设置</div>
  3529. <div>
  3530. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  3531. </div>
  3532. <div @click="addSen(stIndex)">添加</div>
  3533. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3534. </div>
  3535. </div>
  3536. <div class="cardList">
  3537. <div v-if="st.addSentence.length > 0" class="cardBox">
  3538. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3539. @click="setRightAnswer(s, stIndex, sIndex)">
  3540. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3541. <div>{{ s }}</div>
  3542. </el-tooltip>
  3543. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3544. <img src="../../assets/icon/delete.png" alt="" />
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div class="card">
  3549. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  3550. </div>
  3551. </div>
  3552. <div class="rightCardBox">
  3553. <div>正确顺序</div>
  3554. <div class="rightCardList">
  3555. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3556. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3557. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3558. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3559. <div>{{ r }}</div>
  3560. </el-tooltip>
  3561. </div>
  3562. <div>{{ rIndex + 1 }}</div>
  3563. </div>
  3564. </div>
  3565. <div class="card" v-if="st.rightAnswer.length == 0">
  3566. <img src="../../assets/icon/conSentences/noAnswer.png" alt="" />
  3567. </div>
  3568. <div class="card" v-else>
  3569. <img src="../../assets/icon/conSentences/clickNo.png" alt="" />
  3570. </div>
  3571. </div>
  3572. </div>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. <span slot="footer" class="dialog-footer">
  3577. <el-button @click="closePan(47)">取 消</el-button>
  3578. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3579. </span>
  3580. </el-dialog>
  3581. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3582. :before-close="handleClose" class="dialog_diy">
  3583. <el-form>
  3584. <!-- <el-form-item label="文本标题">
  3585. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3586. </el-form-item> -->
  3587. <div>表格内容</div>
  3588. <Table v-model="tableJson.text" @change="change"></Table>
  3589. </el-form>
  3590. <span slot="footer" class="dialog-footer">
  3591. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3592. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3593. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3594. </span>
  3595. </el-dialog>
  3596. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3597. :before-close="handleClose" class="dialog_diy">
  3598. <el-form>
  3599. <!-- <el-form-item label="文本标题">
  3600. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3601. </el-form-item> -->
  3602. <div>文档内容</div>
  3603. <editor-bar v-model="wordJson.text"></editor-bar>
  3604. </el-form>
  3605. <span slot="footer" class="dialog-footer">
  3606. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3607. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3608. </span>
  3609. </el-dialog>
  3610. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3611. :before-close="handleClose" class="dialog_diy">
  3612. <div style="
  3613. width: 100%;
  3614. display: flex;
  3615. flex-direction: row;
  3616. flex-wrap: nowrap;
  3617. align-items: center;
  3618. justify-content: center;
  3619. ">
  3620. <div>班级:</div>
  3621. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3622. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3623. </el-option>
  3624. </el-select>
  3625. </div>
  3626. <span slot="footer" class="dialog-footer">
  3627. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3628. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3629. </span>
  3630. </el-dialog>
  3631. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3632. :before-close="handleClose" class="dialog_diy">
  3633. <div style="
  3634. width: 100%;
  3635. display: flex;
  3636. flex-direction: row;
  3637. flex-wrap: nowrap;
  3638. align-items: center;
  3639. justify-content: center;
  3640. ">
  3641. <div>随机码:</div>
  3642. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3643. </div>
  3644. <span slot="footer" class="dialog-footer">
  3645. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3646. <el-button type="primary" @click="addInvite">确定</el-button>
  3647. </span>
  3648. </el-dialog>
  3649. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  3650. :before-close="handleClose" class="dialog_diy">
  3651. <div>
  3652. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  3653. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3654. </div>
  3655. <span slot="footer" class="dialog-footer">
  3656. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3657. <el-button type="primary" @click="addPreTime">确定</el-button>
  3658. </span>
  3659. </el-dialog>
  3660. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3661. class="dialog_diy">
  3662. <div>
  3663. <div style="
  3664. width: 100%;
  3665. display: flex;
  3666. flex-direction: row;
  3667. flex-wrap: nowrap;
  3668. align-content: center;
  3669. align-items: center;
  3670. justify-content: space-between;
  3671. ">
  3672. <div style="
  3673. display: flex;
  3674. flex-flow: row nowrap;
  3675. align-items: flex-start;
  3676. width: 100%;
  3677. flex-direction: column;
  3678. flex-wrap: nowrap;
  3679. position: relative;
  3680. ">
  3681. <div class="e_box">
  3682. <!-- <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3683. <div class="e_card_picture">
  3684. <img src="../../assets/e_picture.png" />
  3685. </div>
  3686. <div class="e_card_name">
  3687. <span>{{ item.title }}</span>
  3688. </div>
  3689. <div class="e_card_btn">
  3690. <span @click="checkEva(item.id, 2)">导入</span>
  3691. </div>
  3692. </div> -->
  3693. <!-- <div class="addEva" @click="openT">
  3694. <img src="../../assets/icon/addEva.png" alt="" />
  3695. </div> -->
  3696. <div style="display:flex;justify-content: flex-end;margin-bottom: 10px;"><el-button @click="openT" type="primary" size="small">添加目标</el-button></div>
  3697. <el-table
  3698. v-if="evaJuri.length"
  3699. ref="table"
  3700. :data="evaJuri"
  3701. border
  3702. :fit="true"
  3703. style="width: 100%"
  3704. :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  3705. :row-class-name="tableRowClassName"
  3706. >
  3707. <el-table-column
  3708. label="目标名称"
  3709. min-width="15"
  3710. align="center"
  3711. prop="title"
  3712. >
  3713. </el-table-column>
  3714. <el-table-column
  3715. prop="username"
  3716. label="负责人"
  3717. min-width="15"
  3718. align="center"
  3719. >
  3720. </el-table-column>
  3721. <el-table-column label="操作" width="250px">
  3722. <template slot-scope="scope">
  3723. <div class="btnBox">
  3724. <el-button
  3725. type="primary"
  3726. size="small"
  3727. @click="checkEva(scope.row.id, 2)"
  3728. >导入</el-button
  3729. >
  3730. </div>
  3731. </template>
  3732. </el-table-column>
  3733. </el-table>
  3734. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3735. 暂无数据
  3736. </div>
  3737. </div>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. <span slot="footer" class="dialog-footer">
  3742. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3743. </span>
  3744. </el-dialog>
  3745. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3746. :before-close="handleClose" class="dialog_diy">
  3747. <div class="groupBox">
  3748. <div v-if="groupJson.group" class="groupContent">
  3749. <div class="groupTitle">请设置小组数量及名称</div>
  3750. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3751. <span class="groupn">第{{ index + 1 }}组名称:</span>
  3752. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3753. <div class="groupBtn">
  3754. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  3755. 添加</el-button>
  3756. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3757. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3758. </div>
  3759. </div>
  3760. </div>
  3761. <div class="groupContent">
  3762. <div class="groupTitle">请设置每组人数</div>
  3763. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3764. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3765. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  3766. @change="numberPan"></el-input>
  3767. </div>
  3768. </div>
  3769. <span slot="footer" class="dialog-footer">
  3770. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3771. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3772. </span>
  3773. </el-dialog>
  3774. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  3775. :before-close="handleClose" class="dialog_diy">
  3776. <div style="
  3777. width: 100%;
  3778. display: flex;
  3779. flex-direction: row;
  3780. flex-wrap: nowrap;
  3781. align-items: center;
  3782. justify-content: center;
  3783. ">
  3784. <div style="min-width: fit-content;">文件名称:</div>
  3785. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  3786. </div>
  3787. <span slot="footer" class="dialog-footer">
  3788. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  3789. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  3790. </span>
  3791. </el-dialog>
  3792. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  3793. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  3794. <englishRight :englishList="englishList" :oid="oid" ref="engJson" @setJson="addEnglish"></englishRight>
  3795. <span slot="footer" class="dialog-footer">
  3796. <el-button @click="englishDialogVisible = false">取 消</el-button>
  3797. <el-button type="primary" @click="addEnglish">确 定</el-button>
  3798. </span>
  3799. </el-dialog>
  3800. <el-dialog title="选择课程模板" :visible.sync="templateDialog" :append-to-body="true" width="630px"
  3801. :before-close="handleClose" class="dialog_diy">
  3802. <div class="template_box">
  3803. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkctJson(aa)" :class="{wordTeacherA:ctJson.id == aa.id}">
  3804. <div class="wordPic">
  3805. <img src="../../assets/icon/new/course_template.png" alt />
  3806. </div>
  3807. <div style="
  3808. margin-top: 10px;
  3809. line-height: 19px;
  3810. overflow: hidden;
  3811. text-overflow: ellipsis;
  3812. white-space: nowrap;
  3813. padding: 0 20px;
  3814. ">
  3815. {{ aa.title }}
  3816. </div>
  3817. </div>
  3818. <div class="wordTeacher" @click="checkctJson({id: 1})" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'" :class="{wordTeacherA:ctJson.id == 1}">
  3819. <div class="wordPic">
  3820. <img src="../../assets/icon/new/course_template.png" alt />
  3821. </div>
  3822. <div style="
  3823. margin-top: 10px;
  3824. line-height: 19px;
  3825. overflow: hidden;
  3826. text-overflow: ellipsis;
  3827. white-space: nowrap;
  3828. padding: 0 20px;
  3829. ">
  3830. 简易模板
  3831. </div>
  3832. </div>
  3833. <div class="wordTeacher" @click="checkctJson({id: 2})" v-if="isPasteStage" :class="{wordTeacherA:ctJson.id == 2}">
  3834. <div class="wordPic">
  3835. <img src="../../assets/icon/new/course_template.png" alt />
  3836. </div>
  3837. <div style="
  3838. margin-top: 10px;
  3839. line-height: 19px;
  3840. overflow: hidden;
  3841. text-overflow: ellipsis;
  3842. white-space: nowrap;
  3843. padding: 0 20px;
  3844. ">
  3845. 智能粘贴模式
  3846. </div>
  3847. </div>
  3848. </div>
  3849. <span slot="footer" class="dialog-footer">
  3850. <el-button @click="templateDialog = false">取 消</el-button>
  3851. <el-button type="primary" @click="addTemplate(ctJson)">确 定</el-button>
  3852. </span>
  3853. </el-dialog>
  3854. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3855. <el-dialog title="切换阶段顺序" :visible.sync="dialogVisibleStageChange" :append-to-body="true" width="400px"
  3856. :before-close="handleClose" class="dialog_diy dialog_diyStage">
  3857. <div class="change_stageBox">
  3858. <div class="navTask" v-for="(t, tIndex) in unitJson3" :key="tIndex">
  3859. <div class="nt_taskBox">
  3860. <div class="nt_taskTitle">第{{ tIndex + 1 }}阶段</div>
  3861. <div class="nt_taskName">
  3862. <el-tooltip effect="light" :content="t.dyName" placement="top">
  3863. <span>{{ t.dyName }}</span>
  3864. </el-tooltip>
  3865. </div>
  3866. </div>
  3867. <div class="moveBtn" v-if="unitJson3.length > 1">
  3868. <div class="chapter_upload_up" @click.stop="stageMove(1, tIndex)">
  3869. </div>
  3870. <div class="chapter_upload_down" @click.stop="stageMove(2, tIndex)"></div>
  3871. </div>
  3872. </div>
  3873. </div>
  3874. <span slot="footer" class="dialog-footer">
  3875. <el-button @click="dialogVisibleStageChange = false">取 消</el-button>
  3876. <el-button type="primary" @click="updateChange">确定</el-button>
  3877. </span>
  3878. </el-dialog>
  3879. </div>
  3880. </template>
  3881. <script>
  3882. import "../../common/aws-sdk-2.235.1.min.js";
  3883. import { tools as toolsData } from "../../common/tools.js";
  3884. // import "../../common/aws-sdk-2.99.0.min.js";
  3885. import $ from "jquery";
  3886. import EditorBar from "../../components/tools/wangEnduit";
  3887. import Table from "../../components/tools/table";
  3888. import Mind from "../tools/jsmind2";
  3889. import Time from "../tools/time.vue";
  3890. import Sunburst from "../tools/sunburst";
  3891. import SeeBoard from "../tools/seeBoard";
  3892. import weilaiData from "./components/weilai.js";
  3893. import sourceDialog from "./teacherSource/dialog.vue";
  3894. import interVideo from "./interVideo/index.vue";
  3895. import englishRight from "./components/englishRight.vue";
  3896. export default {
  3897. components: {
  3898. EditorBar,
  3899. Mind,
  3900. Time,
  3901. Sunburst,
  3902. SeeBoard,
  3903. Table,
  3904. sourceDialog,
  3905. interVideo,
  3906. englishRight,
  3907. },
  3908. data() {
  3909. return {
  3910. checkAll: false,
  3911. checkAll2: false,
  3912. chooseType: 1,
  3913. checkedCities: [],
  3914. isIndeterminate: true,
  3915. isIndeterminate2: true,
  3916. isSysPic: false,
  3917. isSysPic2: false,
  3918. steps: 1,
  3919. nbOrder: 0,
  3920. courseId: "",
  3921. chapToolsType: 0,
  3922. chapTools: [
  3923. {
  3924. tools: [],
  3925. toolDetail: "",
  3926. },
  3927. ],
  3928. line: "",
  3929. lineTitle: "",
  3930. sysPic: [],
  3931. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3932. sentenceList2: [],
  3933. isPushTitleList: [],
  3934. lineCount: 0,
  3935. lineType: 0,
  3936. chapCount: 0,
  3937. courseName: "",
  3938. isTeacherSee: false,
  3939. courseText: "",
  3940. preTime: 0,
  3941. formLabelWidth: "100px",
  3942. choosePicVisible: false,
  3943. sysPicVisible: false,
  3944. sysPicVisible2: false,
  3945. uploadLoading1: false,
  3946. noneBtnImg: false,
  3947. updateBoolean2: false,
  3948. unitIndex: 0,
  3949. taskCount: 0,
  3950. dialogVisible: false,
  3951. dialogVisible1: false,
  3952. dialogVisible2: false,
  3953. dialogVisible3: false,
  3954. dialogVisible4: false,
  3955. dialogVisible5: false,
  3956. dialogVisible6: false,
  3957. dialogVisible7: false,
  3958. dialogVisible8: false,
  3959. dialogVisible9: false,
  3960. dialogVisibleClass: false,
  3961. dialogVisibleMember: false,
  3962. dialogVisibleMp3: false,
  3963. dialogVisibleSelect: false,
  3964. dialogVisibleSentence: false,
  3965. dialogVisibleRate: false,
  3966. dialogVisibleChoice: false,
  3967. dialogVisiblemb: false,
  3968. dialogVisibleInvite: false,
  3969. dialogVisibleSource: false,
  3970. dialogVisibleVideo: false,
  3971. dialogVisibleStageChange: false,
  3972. dialogVisibleupdataVideoT: false,
  3973. englishDialogVisible: false,
  3974. templateDialog: false,
  3975. ctJson: {},
  3976. isClickColor: 1,
  3977. toolIndexType: "",
  3978. publicTool: 0,
  3979. searchPeople: "",
  3980. searchTN: "",
  3981. userid: this.$route.query.userid,
  3982. oid: this.$route.query.oid,
  3983. org: this.$route.query.org,
  3984. role: this.$route.query.role,
  3985. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3986. dialogVisibleTable: false,
  3987. dialogVisibleWord: false,
  3988. tableJson: { text: "" },
  3989. wordJson: { text: "" },
  3990. dialogVisibleMoreUpload: false,
  3991. dialogVisiblePreTime: false,
  3992. uploadJson: [],
  3993. classJuri: [],
  3994. gradeList: [],
  3995. cover: [], //课程封面
  3996. myWord: [],
  3997. evaJuri: [],
  3998. evalua: "",
  3999. targetArray: [],
  4000. eTitle: "",
  4001. eJson: {},
  4002. fid: "", //一级
  4003. sid: "", //二级
  4004. tid: "", //二级
  4005. typeMode: 1,
  4006. eJSONNum: 0,
  4007. data: {
  4008. meta: {
  4009. name: "example",
  4010. author: "dd@163.com",
  4011. version: "0.2",
  4012. },
  4013. format: "node_array",
  4014. data: [{ id: "root", isroot: true, topic: "" }],
  4015. },
  4016. askJson: {
  4017. askCount: 1,
  4018. askTitle: "",
  4019. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4020. },
  4021. askJson2: {},
  4022. testJson: {},
  4023. testJson2: {},
  4024. selectJson: {},
  4025. selectJson2: {},
  4026. rateJson: [],
  4027. unitJson2: [],
  4028. unitJson3: [],
  4029. unitJson: [
  4030. {
  4031. dyName: "", //单元标题
  4032. chapterInfo: [
  4033. {
  4034. isread: false,
  4035. chapterid: this.guid(),
  4036. title: "",
  4037. courseName: "",
  4038. taskJson: [
  4039. {
  4040. task: "",
  4041. taskDetail: "",
  4042. chapterData: [],
  4043. toolText: "",
  4044. toolChoose: [
  4045. {
  4046. tool: [],
  4047. toolDetail: "",
  4048. toolType: 0,
  4049. askCount: 1,
  4050. askTitle: "",
  4051. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4052. },
  4053. ],
  4054. isShowTools: false,
  4055. askCount: 1,
  4056. isFold: 1,
  4057. askTitle: "",
  4058. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4059. checkJson: [{ checkCount: [], checkPerent: [] }],
  4060. homeworkList: [],
  4061. },
  4062. ],
  4063. itemCount: 1,
  4064. fileList1: [],
  4065. video: [],
  4066. testData: [],
  4067. pData: [],
  4068. templateArray: [],
  4069. },
  4070. ],
  4071. },
  4072. ],
  4073. templateArray: [],
  4074. studentJuri: [],
  4075. teacherJuri: [],
  4076. checkboxList: [],
  4077. checkboxList2: [],
  4078. checkboxList3: [],
  4079. classSearch: "",
  4080. gradeId: "",
  4081. number: "",
  4082. tTitle: "",
  4083. tdetail: "",
  4084. templateC: {},
  4085. AttText: {},
  4086. AttTextType: 0,
  4087. AttTextIndex: 0,
  4088. cTemplate: "",
  4089. CourseType: [],
  4090. CourseType2: [],
  4091. CourseTypeJson: {},
  4092. courseTypeId: [],
  4093. courseTypeSon: [],
  4094. clearArray: [],
  4095. pTypeCheck: [],
  4096. pTypeCheckName: [],
  4097. loading: false,
  4098. toolType: 0,
  4099. inputShow: true,
  4100. inputShow2: true,
  4101. toolIndex: 0,
  4102. cidType: 0,
  4103. answerQ: "",
  4104. answerQ2: "",
  4105. grade: [],
  4106. grade2: [],
  4107. courseUserid: "",
  4108. timer: null,
  4109. timer2: null,
  4110. pasteTimer: null,
  4111. checkId: "",
  4112. isDelete: 1,
  4113. addindex: 0,
  4114. selectSteps: 1,
  4115. groupJson: {},
  4116. dialogVisibleGroup: false,
  4117. rightBoxHeight: 0,
  4118. ManAarray: [],
  4119. checkBoolean: false,
  4120. inviteCode: [],
  4121. inviteId: "",
  4122. icode: "",
  4123. easyArray: [2, 4],
  4124. sourceData: {},
  4125. updateSourcePan: false,
  4126. videoJson: {},
  4127. isBtnDisplay: false,
  4128. isStepDisplay: false,
  4129. isPasteStage: false,
  4130. isPasteTask: false,
  4131. isPasteChoice: false,
  4132. imageList: [],
  4133. imageloading: false,
  4134. searchImageValue: "",
  4135. ppage: 1,
  4136. toolsData: toolsData,
  4137. oldIndex: 0,
  4138. dragType:'',
  4139. oldUnitIndex: 0,
  4140. oldData: null,
  4141. newIndex: "",
  4142. englishList:{},
  4143. typeIndex: "",
  4144. courseState: 2,
  4145. taskJSONa: [
  4146. {
  4147. task: "",
  4148. taskDetail: "",
  4149. chapterData: [],
  4150. toolText: "",
  4151. toolChoose: [
  4152. {
  4153. tool: [],
  4154. toolDetail: "",
  4155. toolType: 0,
  4156. askCount: 1,
  4157. askTitle: "",
  4158. askJson: [
  4159. { askstitle: "", askItem: 1, checkList: [] },
  4160. ],
  4161. },
  4162. ],
  4163. isShowTools: false,
  4164. askCount: 1,
  4165. isFold: 1,
  4166. askTitle: "",
  4167. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4168. checkJson: [{ checkCount: [], checkPerent: [] }],
  4169. homeworkList: [],
  4170. },
  4171. ],
  4172. checkUnitIndex: 0,
  4173. isdrag: '',
  4174. };
  4175. },
  4176. directives: {
  4177. autoHeight: {
  4178. update(el, binding) {
  4179. const { value } = binding
  4180. if (value && typeof value === 'number') {
  4181. el.style.height = `${value}px`
  4182. } else {
  4183. el.style.height = 'auto'
  4184. }
  4185. },
  4186. componentUpdated(el) {
  4187. el.style.height = `${el.scrollHeight + 5}px`
  4188. },
  4189. },
  4190. },
  4191. computed: {
  4192. // rightBoxHeight: function () {
  4193. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4194. // },
  4195. offsetLetfPx: function () {
  4196. //addnum可以直接在模板语法里面用,相当于data内的值
  4197. return (
  4198. $(".cru_select")[this.unitIndex] &&
  4199. $(".cru_select")[this.unitIndex].offsetLeft + 5
  4200. );
  4201. },
  4202. getMan2() {
  4203. return function (people) {
  4204. let _people = people;
  4205. let _people2 = "";
  4206. if (this.ManAarray.length) {
  4207. for (var i = 0; i < this.ManAarray.length; i++) {
  4208. if (this.ManAarray[i].userid == people) {
  4209. _people2 = this.ManAarray[i].name;
  4210. break;
  4211. }
  4212. }
  4213. }
  4214. if (people == this.courseUserid) {
  4215. return "";
  4216. }
  4217. return this.ManAarray.length ? _people2 : "";
  4218. };
  4219. },
  4220. getListMan2() {
  4221. return function (list) {
  4222. let _people2 = [];
  4223. if (this.ManAarray.length) {
  4224. for (var j = 0; j < list.length; j++) {
  4225. let people = list[j];
  4226. for (var i = 0; i < this.ManAarray.length; i++) {
  4227. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  4228. _people2.push(this.ManAarray[i].name);
  4229. break;
  4230. }
  4231. }
  4232. }
  4233. }
  4234. return this.ManAarray.length ? _people2.join("、") : "";
  4235. };
  4236. },
  4237. isInvite() {
  4238. return function (cid) {
  4239. let array = [];
  4240. for (var i = 0; i < this.inviteCode.length; i++) {
  4241. array.push(this.inviteCode[i].cid);
  4242. }
  4243. return array.indexOf(cid) != -1;
  4244. };
  4245. },
  4246. getInviteCodeC() {
  4247. return function (cid) {
  4248. let array = [];
  4249. for (var i = 0; i < this.inviteCode.length; i++) {
  4250. array.push(this.inviteCode[i].cid);
  4251. }
  4252. return this.inviteCode[array.indexOf(cid)].ic;
  4253. };
  4254. },
  4255. getClassC() {
  4256. return function (c) {
  4257. let _c2 = "";
  4258. if (this.grade.length) {
  4259. for (var i = 0; i < this.grade.length; i++) {
  4260. if (this.grade[i].id == c) {
  4261. _c2 = this.grade[i].name;
  4262. break;
  4263. }
  4264. }
  4265. }
  4266. return this.grade.length ? _c2 : "";
  4267. };
  4268. },
  4269. getListClassC() {
  4270. return function (list) {
  4271. let _c2 = [];
  4272. if (this.grade.length) {
  4273. for (var j = 0; j < list.length; j++) {
  4274. let c = list[j]
  4275. for (var i = 0; i < this.grade.length; i++) {
  4276. if (this.grade[i].id == c) {
  4277. _c2.push(this.grade[i].name);
  4278. break;
  4279. }
  4280. }
  4281. }
  4282. }
  4283. return this.grade.length ? _c2.join('、') : "";
  4284. };
  4285. },
  4286. },
  4287. watch: {
  4288. unitIndex(newValue, oldValue) {
  4289. if (this.isDelete == 2) {
  4290. this.isDelete = 1;
  4291. return;
  4292. }
  4293. if (this.cid != "") {
  4294. let _unitIndex = oldValue;
  4295. if (
  4296. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4297. JSON.stringify(this.unitJson[_unitIndex])
  4298. ) {
  4299. this.$refs.rightboxR.scrollTop = 0;
  4300. return;
  4301. }
  4302. let cPan = 1;
  4303. for (
  4304. var j = 0;
  4305. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4306. j++
  4307. ) {
  4308. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4309. j
  4310. ].proVisible = false;
  4311. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4312. j
  4313. ].proVisible2 = false;
  4314. if (
  4315. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4316. .length > 1
  4317. ) {
  4318. for (
  4319. var z = 0;
  4320. z <
  4321. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4322. .length;
  4323. z++
  4324. ) {
  4325. if (
  4326. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4327. .toolChoose[z].tool.length
  4328. ) {
  4329. this.$message.error("请把工具添加完整");
  4330. cPan = 2;
  4331. break;
  4332. }
  4333. }
  4334. }
  4335. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4336. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4337. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4338. (ele) => {
  4339. return ele.value != "";
  4340. }
  4341. );
  4342. }
  4343. }
  4344. if (cPan == 2) {
  4345. this.unitIndex = oldValue;
  4346. return;
  4347. }
  4348. for (var i = 0; i < this.unitJson.length; i++) {
  4349. if (this.addindex != i) {
  4350. delete this.unitJson[i].isUpdate;
  4351. }
  4352. }
  4353. this.$refs.rightboxR.scrollTop = 0;
  4354. this.addindex = -1;
  4355. let params = [
  4356. {
  4357. cid: this.cid,
  4358. chapters: JSON.stringify(this.unitJson),
  4359. uid: this.userid,
  4360. unitIndex: _unitIndex,
  4361. },
  4362. ];
  4363. this.ajax
  4364. .post(this.$store.state.api + "updateWorkNew4", params)
  4365. .then((res) => {
  4366. // this.$message({
  4367. // message: "修改成功",
  4368. // type: "success",
  4369. // });
  4370. // this.courseId = this.cid;
  4371. })
  4372. .catch((err) => {
  4373. this.$message.error("网络不佳");
  4374. console.error(err);
  4375. });
  4376. }
  4377. },
  4378. steps(newValue, old) {
  4379. if (newValue == 4) {
  4380. let cPan = 1;
  4381. for (var i = 0; i < this.unitJson.length; i++) {
  4382. for (
  4383. var j = 0;
  4384. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4385. j++
  4386. ) {
  4387. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4388. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4389. if (
  4390. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4391. ) {
  4392. for (
  4393. var z = 0;
  4394. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4395. z++
  4396. ) {
  4397. if (
  4398. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4399. .length
  4400. ) {
  4401. this.$message.error("请把工具添加完整");
  4402. cPan = 2;
  4403. break;
  4404. }
  4405. }
  4406. }
  4407. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4408. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4409. i
  4410. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4411. return ele.value != "";
  4412. });
  4413. }
  4414. }
  4415. }
  4416. this.inputShow = true;
  4417. if (cPan == 2) {
  4418. this.steps = old;
  4419. return;
  4420. }
  4421. this.goTo(
  4422. "/course?userid=" +
  4423. this.userid +
  4424. "&oid=" +
  4425. this.oid +
  4426. "&org=" +
  4427. this.org +
  4428. "&role=" +
  4429. this.role
  4430. );
  4431. }
  4432. },
  4433. },
  4434. methods: {
  4435. tableRowClassName({ row, rowIndex }) {
  4436. if ((rowIndex + 1) % 2 === 0) {
  4437. return "even_row";
  4438. } else {
  4439. return "";
  4440. }
  4441. },
  4442. openAI() {
  4443. window.parent.postMessage({ tools: "64" }, "*");
  4444. },
  4445. setMan() {
  4446. // let teacherJuri = this.teacherJuri2;
  4447. this.ManAarray = [];
  4448. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4449. if (_user.indexOf(this.userid) == -1) {
  4450. _user.push(this.userid);
  4451. }
  4452. if (_user.indexOf(this.courseUserid) == -1) {
  4453. _user.push(this.courseUserid);
  4454. }
  4455. let params = {
  4456. uid: _user.join(","),
  4457. };
  4458. this.ajax
  4459. .get(this.$store.state.api + "getAllUserById", params)
  4460. .then((res) => {
  4461. let teacherJuri = res.data[0];
  4462. this.ManAarray = teacherJuri;
  4463. })
  4464. .catch((err) => {
  4465. console.error(err);
  4466. });
  4467. },
  4468. previewImg(url) {
  4469. this.$hevueImgPreview(url);
  4470. },
  4471. btnDisplay(bool) {
  4472. this.isBtnDisplay = bool
  4473. },
  4474. stepDisplay(bool) {
  4475. this.isStepDisplay = bool
  4476. },
  4477. scrollChange() {
  4478. this.rightBoxHeight = $(".rightBox")[0].scrollHeight - 80;
  4479. },
  4480. addHw(e) {
  4481. var el = e.currentTarget;
  4482. el.getElementsByTagName("input")[0].click();
  4483. },
  4484. change(val) {
  4485. if (this.dialogVisible1) {
  4486. this.tdetail = val
  4487. } else if (this.dialogVisible6) {
  4488. this.AttText.text = val
  4489. } else if (this.dialogVisible2) {
  4490. this.cTemplate = val
  4491. } else if (this.dialogVisibleTable) {
  4492. this.tableJson.text = val
  4493. }
  4494. this.$forceUpdate();
  4495. console.log(val);
  4496. },
  4497. change2(val) {
  4498. console.log(val);
  4499. this.$forceUpdate();
  4500. },
  4501. handleClose(done) {
  4502. done();
  4503. },
  4504. closePan(tool) {
  4505. if (tool == 15) {
  4506. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  4507. this.dialogVisible8 = false
  4508. } else {
  4509. this.closeConfirm(tool);
  4510. }
  4511. } else if (tool == 4) {
  4512. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  4513. this.dialogVisible5 = false
  4514. } else {
  4515. this.closeConfirm(tool);
  4516. }
  4517. } else if (tool == 45) {
  4518. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  4519. this.dialogVisibleChoice = false
  4520. } else {
  4521. this.closeConfirm(tool);
  4522. }
  4523. } else if (tool == 41) {
  4524. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  4525. this.dialogVisibleSelect = false
  4526. } else {
  4527. this.closeConfirm(tool);
  4528. }
  4529. } else if (tool == 47) {
  4530. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  4531. this.dialogVisibleSentence = false
  4532. } else {
  4533. this.closeConfirm(tool);
  4534. }
  4535. }else if (tool == 69){
  4536. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  4537. this.englishDialogVisible = false
  4538. } else {
  4539. this.closeConfirm(tool);
  4540. }
  4541. }
  4542. },
  4543. closeConfirm(tool) {
  4544. this
  4545. .$confirm("是否保存已编辑内容?", "提示", {
  4546. confirmButtonText: "保存",
  4547. cancelButtonText: "不保存",
  4548. type: "warning",
  4549. })
  4550. .then(() => {
  4551. if (tool == 15) {
  4552. this.addAnswer();
  4553. } else if (tool == 4) {
  4554. this.addAsk();
  4555. } else if (tool == 45) {
  4556. this.addTest();
  4557. } else if (tool == 41) {
  4558. this.addSelectAnswer();
  4559. } else if (tool == 47) {
  4560. this.addSentenceTool();
  4561. }else if(tool == 69){
  4562. this.addEnglish();
  4563. }
  4564. })
  4565. .catch(() => {
  4566. if (tool == 15) {
  4567. this.dialogVisible8 = false;
  4568. } else if (tool == 4) {
  4569. this.dialogVisible5 = false;
  4570. } else if (tool == 45) {
  4571. this.dialogVisibleChoice = false;
  4572. } else if (tool == 41) {
  4573. this.dialogVisibleSelect = false;
  4574. } else if (tool == 47) {
  4575. this.dialogVisibleSentence = false;
  4576. } else if (tool == 69) {
  4577. this.englishDialogVisible = false;
  4578. }
  4579. });
  4580. },
  4581. addEnglish(jsonType){
  4582. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  4583. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  4584. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  4585. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  4586. this.$message.error("请将内容填写完整!");
  4587. return;
  4588. }
  4589. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4590. this.taskCount
  4591. ].toolChoose[this.toolIndex].englishList = this.englishList;
  4592. this.englishList = {};
  4593. if(jsonType && jsonType == 1){
  4594. this.englishDialogVisible = true;
  4595. }else{
  4596. this.englishDialogVisible = false;
  4597. }
  4598. if (
  4599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  4600. .toolChoose[this.toolIndex].tool != 69
  4601. ) {
  4602. this.addTools(69, this.taskCount, this.toolIndex);
  4603. }
  4604. },
  4605. imgChange2(i, j) {
  4606. var _tmp = this.testJson.testJson[i].checkList[j];
  4607. this.noneBtnImg = _tmp.length >= 1;
  4608. },
  4609. imgChange3(i) {
  4610. var _tmp = this.testJson.testJson[i];
  4611. this.noneBtnImg = _tmp.length >= 1;
  4612. },
  4613. imgChange1(file, fileList, type, itemTaskIndex) {
  4614. if (type == 1) {
  4615. var _tmp = this.cover;
  4616. } else if (
  4617. type == 2 ||
  4618. type == 3 ||
  4619. type == 6 ||
  4620. type == 7 ||
  4621. type == 8
  4622. ) {
  4623. var _tmp =
  4624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4625. .chapterData;
  4626. } else if (type == 4) {
  4627. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4628. } else {
  4629. var _tmp =
  4630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4631. .homeworkList;
  4632. }
  4633. this.noneBtnImg = _tmp.length >= 1;
  4634. },
  4635. goTo(path) {
  4636. this.$router.push(path);
  4637. },
  4638. guid() {
  4639. var _num,
  4640. i,
  4641. _guid = "";
  4642. for (i = 0; i < 32; i++) {
  4643. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4644. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4645. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4646. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4647. _guid += "-";
  4648. }
  4649. }
  4650. return _guid;
  4651. },
  4652. retrunCourse() {
  4653. this
  4654. .$confirm("是否保存已编辑内容?", "提示", {
  4655. confirmButtonText: "保存",
  4656. cancelButtonText: "不保存",
  4657. distinguishCancelAndClose: true,
  4658. type: "warning",
  4659. })
  4660. .then(() => {
  4661. if (this.cid == "" || this.cid == undefined) {
  4662. if (this.courseName == "") {
  4663. this.$message.error("请补充填写课程名称");
  4664. return;
  4665. } else {
  4666. this.addWork();
  4667. }
  4668. this.steps = 4
  4669. } else {
  4670. if (this.courseName == "") {
  4671. this.$message.error("请补充填写课程名称");
  4672. return;
  4673. } else {
  4674. if (this.userid != this.courseUserid && this.role != "1") {
  4675. this.updateWork2();
  4676. } else {
  4677. this.updateWork();
  4678. }
  4679. this.steps = 4
  4680. }
  4681. }
  4682. })
  4683. .catch((v) => {
  4684. console.log(v)
  4685. if(v == "cancel"){
  4686. this.goTo(
  4687. "/course?userid=" +
  4688. this.userid +
  4689. "&oid=" +
  4690. this.oid +
  4691. "&org=" +
  4692. this.org +
  4693. "&role=" +
  4694. this.role
  4695. );
  4696. }
  4697. });
  4698. },
  4699. lastSteps() {
  4700. if (this.steps == 4) {
  4701. this.goTo(
  4702. "/course?userid=" +
  4703. this.userid +
  4704. "&oid=" +
  4705. this.oid +
  4706. "&org=" +
  4707. this.org +
  4708. "&role=" +
  4709. this.role
  4710. );
  4711. } else {
  4712. // if (this.cidType == 0) {
  4713. // this.steps--;
  4714. // if (this.steps == 1) {
  4715. // setTimeout(() => {
  4716. // this.checkEva(this.checkId);
  4717. // setTimeout(() => {
  4718. // this.checkEva(this.checkId);
  4719. // }, 100);
  4720. // }, 100);
  4721. // }
  4722. // } else {
  4723. if (this.steps == 3) {
  4724. this.steps = 1;
  4725. setTimeout(() => {
  4726. this.checkEva(this.checkId);
  4727. setTimeout(() => {
  4728. this.checkEva(this.checkId);
  4729. }, 100);
  4730. }, 100);
  4731. }
  4732. // }
  4733. }
  4734. },
  4735. navSteps(s) {
  4736. if (this.courseName == "") {
  4737. this.$message.error("请补充填写课程名称");
  4738. return;
  4739. }
  4740. if (this.cidType == 0) {
  4741. if (this.steps == 1) {
  4742. if (this.cid == "" || this.cid == undefined) {
  4743. this.addWork();
  4744. } else {
  4745. if (this.userid != this.courseUserid && this.role != "1") {
  4746. // this.updateWork2();
  4747. } else {
  4748. this.updateWork();
  4749. }
  4750. }
  4751. }
  4752. if (s == 1) {
  4753. this.steps = 1;
  4754. setTimeout(() => {
  4755. this.checkEva(this.checkId);
  4756. setTimeout(() => {
  4757. this.checkEva(this.checkId);
  4758. }, 100);
  4759. }, 100);
  4760. }
  4761. if (s == 2) {
  4762. this.steps = 2;
  4763. }
  4764. if (s == 3) {
  4765. this.cTemplate = this.templateC.content;
  4766. this.dialogVisible2 = false;
  4767. this.steps = 3;
  4768. this.isClickColor = 1
  4769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4770. this.$forceUpdate();
  4771. setTimeout(() => {
  4772. this.checkEva(this.checkId);
  4773. setTimeout(() => {
  4774. this.checkEva(this.checkId);
  4775. }, 100);
  4776. }, 1000);
  4777. }
  4778. } else {
  4779. if (this.steps == 1) {
  4780. if (this.cid == "" || this.cid == undefined) {
  4781. this.addWork();
  4782. } else {
  4783. if (this.userid != this.courseUserid && this.role != "1") {
  4784. // this.updateWork2();
  4785. } else {
  4786. this.updateWork();
  4787. }
  4788. }
  4789. }
  4790. if (s == 1) {
  4791. this.steps = 1;
  4792. setTimeout(() => {
  4793. this.checkEva(this.checkId);
  4794. setTimeout(() => {
  4795. this.checkEva(this.checkId);
  4796. }, 100);
  4797. }, 100);
  4798. }
  4799. if (s == 3) {
  4800. this.cTemplate = this.templateC.content;
  4801. this.dialogVisible2 = false;
  4802. this.steps = 3;
  4803. this.isClickColor = 1
  4804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4805. this.$forceUpdate();
  4806. setTimeout(() => {
  4807. this.checkEva(this.checkId);
  4808. setTimeout(() => {
  4809. this.checkEva(this.checkId);
  4810. }, 100);
  4811. }, 1000);
  4812. }
  4813. }
  4814. this.$refs.stepBox.scrollTop = 0;
  4815. },
  4816. nextSteps() {
  4817. // if (this.cidType == 1) {
  4818. if (this.steps == 1) {
  4819. if (this.courseName != "") {
  4820. this.steps = 3;
  4821. this.isClickColor = 1
  4822. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  4823. this.$forceUpdate();
  4824. setTimeout(() => {
  4825. this.checkEva(this.checkId);
  4826. setTimeout(() => {
  4827. this.checkEva(this.checkId);
  4828. }, 100);
  4829. }, 1000);
  4830. if (this.cid == "" || this.cid == undefined) {
  4831. this.addWork();
  4832. } else {
  4833. if (this.userid != this.courseUserid && this.role != "1") {
  4834. // this.updateWork2();
  4835. } else {
  4836. this.updateWork();
  4837. }
  4838. }
  4839. } else {
  4840. this.$message.error("请补充填写课程名称");
  4841. return;
  4842. }
  4843. } else if (this.steps == 3) {
  4844. if (this.cid == "" || this.cid == undefined) {
  4845. if (this.courseName == "") {
  4846. this.$message.error("请补充填写课程名称");
  4847. return;
  4848. } else {
  4849. this.addWork();
  4850. this.steps++;
  4851. }
  4852. } else {
  4853. if (this.courseName == "") {
  4854. this.$message.error("请补充填写课程名称");
  4855. return;
  4856. } else {
  4857. if (this.userid != this.courseUserid && this.role != "1") {
  4858. this.updateWork2();
  4859. } else {
  4860. this.updateWork();
  4861. }
  4862. this.steps++;
  4863. }
  4864. }
  4865. }
  4866. // } else {
  4867. // if (this.steps == 1) {
  4868. // if (this.courseName != "") {
  4869. // if (this.cid == "" || this.cid == undefined) {
  4870. // this.addWork();
  4871. // } else {
  4872. // if (this.userid != this.courseUserid && this.role != "1") {
  4873. // // this.updateWork2();
  4874. // } else {
  4875. // this.updateWork();
  4876. // }
  4877. // }
  4878. // this.steps++;
  4879. // } else {
  4880. // this.$message.error("请补充填写课程名称");
  4881. // return;
  4882. // }
  4883. // } else if (this.steps == 2) {
  4884. // if (this.templateC.id != "" || this.templateC.id != undefined) {
  4885. // this.cTemplate = this.templateC.content;
  4886. // }
  4887. // this.dialogVisible2 = false;
  4888. // this.steps++;
  4889. // setTimeout(() => {
  4890. // this.checkEva(this.checkId);
  4891. // setTimeout(() => {
  4892. // this.checkEva(this.checkId);
  4893. // }, 100);
  4894. // }, 1000);
  4895. // } else if (this.steps == 3) {
  4896. // if (this.cid == "" || this.cid == undefined) {
  4897. // if (this.courseName == "") {
  4898. // this.$message.error("请补充填写课程名称");
  4899. // return;
  4900. // } else {
  4901. // this.addWork();
  4902. // this.steps++;
  4903. // }
  4904. // } else {
  4905. // if (this.courseName == "") {
  4906. // this.$message.error("请补充填写课程名称");
  4907. // return;
  4908. // } else {
  4909. // if (this.userid != this.courseUserid && this.role != "1") {
  4910. // this.updateWork2();
  4911. // } else {
  4912. // this.updateWork();
  4913. // }
  4914. // this.steps++;
  4915. // }
  4916. // }
  4917. // }
  4918. // }
  4919. this.$refs.stepBox.scrollTop = 0;
  4920. },
  4921. unitSet(i) {
  4922. if(this.unitIndex == i){
  4923. return;
  4924. }
  4925. this.unitIndex = i;
  4926. this.isClickColor = 1
  4927. // this.$refs.rightboxR.scrollTop = 0;
  4928. this.$refs.unitBox.scrollTop = 0
  4929. },
  4930. panUnitJson(){
  4931. let _unitIndex = this.unitIndex;
  4932. let cPan = 1;
  4933. for (
  4934. var j = 0;
  4935. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4936. j++
  4937. ) {
  4938. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4939. j
  4940. ].proVisible = false;
  4941. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4942. j
  4943. ].proVisible2 = false;
  4944. if (
  4945. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4946. .length > 1
  4947. ) {
  4948. for (
  4949. var z = 0;
  4950. z <
  4951. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4952. .length;
  4953. z++
  4954. ) {
  4955. if (
  4956. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4957. .toolChoose[z].tool.length
  4958. ) {
  4959. this.$message.error("请把工具添加完整");
  4960. cPan = 2;
  4961. break;
  4962. }
  4963. }
  4964. }
  4965. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4966. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4967. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4968. (ele) => {
  4969. return ele.value != "";
  4970. }
  4971. );
  4972. }
  4973. }
  4974. return cPan;
  4975. },
  4976. unitOpen(i){
  4977. if(this.unitJson[i].toolOpen){
  4978. this.unitJson[i].toolOpen = false
  4979. }else {
  4980. this.unitJson[i].toolOpen = true
  4981. }
  4982. this.updateWork()
  4983. this.$forceUpdate()
  4984. },
  4985. unitSet2(i) {
  4986. if(this.panUnitJson() == 2){
  4987. return;
  4988. }
  4989. // if(this.unitJson[i].toolOpen){
  4990. // this.unitJson[i].toolOpen = false
  4991. // this.updateWork()
  4992. // this.$forceUpdate()
  4993. // return
  4994. // }else {
  4995. this.unitJson[i].toolOpen = true
  4996. // }
  4997. this.$forceUpdate()
  4998. if(this.unitIndex == i){
  4999. return;
  5000. }
  5001. this.unitIndex = i;
  5002. this.isClickColor = 1
  5003. // this.$refs.rightboxR.scrollTop = 0;
  5004. this.$refs.unitBox.scrollTop = 0
  5005. },
  5006. updateCourseState(i){
  5007. let params = [
  5008. {
  5009. cid: this.cid,
  5010. state: i,
  5011. },
  5012. ];
  5013. this.ajax
  5014. .post(this.$store.state.api + "updateCourseMode", params)
  5015. .then((res) => {
  5016. this.courseState = i
  5017. })
  5018. .catch((err) => {
  5019. this.$message.error("网络不佳");
  5020. console.error(err);
  5021. });
  5022. },
  5023. time() {
  5024. if (!this.now) {
  5025. this.now = new Date().getTime();
  5026. return true;
  5027. } else {
  5028. let time = new Date().getTime();
  5029. if (time - this.now > 3000) {
  5030. this.now = time;
  5031. return true;
  5032. } else {
  5033. return false;
  5034. }
  5035. }
  5036. },
  5037. deleteUnit(i) {
  5038. var _this = this;
  5039. if(i == 0 && _this.unitJson.length == 1){
  5040. _this
  5041. .$confirm("确定切换成任务模式吗?", "提示", {
  5042. confirmButtonText: "确定",
  5043. cancelButtonText: "取消",
  5044. type: "warning",
  5045. })
  5046. .then(() => {
  5047. _this.unitJson[i].dyName = ''
  5048. _this.updateCourseState(2)
  5049. })
  5050. .catch(() => {
  5051. return;
  5052. });
  5053. }else {
  5054. _this
  5055. .$confirm("确定删除此阶段吗?", "提示", {
  5056. confirmButtonText: "确定",
  5057. cancelButtonText: "取消",
  5058. type: "warning",
  5059. })
  5060. .then(() => {
  5061. _this.isDelete = 2;
  5062. // _this.unitIndex = _this.unitIndex - 1;
  5063. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5064. // _this.$message.success("删除成功");
  5065. })
  5066. .catch(() => {
  5067. return;
  5068. });
  5069. }
  5070. },
  5071. deleteWork(chapid) {
  5072. let params = [
  5073. {
  5074. cid: this.cid,
  5075. chapters: JSON.stringify(this.unitJson),
  5076. uid: this.userid,
  5077. chapid: chapid,
  5078. },
  5079. ];
  5080. this.ajax
  5081. .post(this.$store.state.api + "deleteWork", params)
  5082. .then((res) => {
  5083. this.$message({
  5084. message: "删除成功",
  5085. type: "success",
  5086. });
  5087. let task = JSON.parse(JSON.stringify(this.unitJson[this.unitIndex].chapterInfo[0].taskJson))
  5088. this.unitJson.splice(this.unitIndex, 1);
  5089. if(this.unitIndex == 0){
  5090. this.unitIndex = 0;
  5091. }else{
  5092. this.unitIndex = this.unitIndex - 1;
  5093. }
  5094. if(JSON.stringify(task) != JSON.stringify(this.taskJSONa)){
  5095. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson, ...task]
  5096. }
  5097. })
  5098. .catch((err) => {
  5099. this.$message.error("网络不佳");
  5100. console.error(err);
  5101. });
  5102. },
  5103. deleteTool(itemTaskIndex, i) {
  5104. var _this = this;
  5105. if (_this.time()) {
  5106. _this
  5107. .$confirm("确定删除此工具吗?", "提示", {
  5108. confirmButtonText: "确定",
  5109. cancelButtonText: "取消",
  5110. type: "warning",
  5111. })
  5112. .then(() => {
  5113. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5114. itemTaskIndex
  5115. ].toolChoose.splice(i, 1);
  5116. _this.$message.success("删除成功");
  5117. })
  5118. .catch(() => {
  5119. return;
  5120. });
  5121. }
  5122. },
  5123. deleteSentence(i) {
  5124. var _this = this;
  5125. _this
  5126. .$confirm("确定删除此题目吗?", "提示", {
  5127. confirmButtonText: "确定",
  5128. cancelButtonText: "取消",
  5129. type: "warning",
  5130. })
  5131. .then(() => {
  5132. _this.sentenceList.splice(i, 1);
  5133. _this.$message.success("删除成功");
  5134. })
  5135. .catch(() => {
  5136. return;
  5137. });
  5138. },
  5139. deleteS(s, i, j) {
  5140. this.sentenceList[i].addSentence.splice(j, 1);
  5141. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5142. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5143. this.sentenceList[i].rightAnswer.splice(a, 1);
  5144. }
  5145. },
  5146. openT() {
  5147. window.parent.postMessage({ tools: "25" }, "*");
  5148. },
  5149. deleteTask(i) {
  5150. var _this = this;
  5151. if (_this.time()) {
  5152. _this
  5153. .$confirm(
  5154. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length -
  5155. 1 ==
  5156. i
  5157. ? "确定删除此任务吗?"
  5158. : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  5159. "提示",
  5160. {
  5161. confirmButtonText: "确定",
  5162. cancelButtonText: "取消",
  5163. type: "warning",
  5164. }
  5165. )
  5166. .then(() => {
  5167. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5168. i,
  5169. 1
  5170. );
  5171. _this.$message.success("删除成功");
  5172. })
  5173. .catch(() => {
  5174. return;
  5175. });
  5176. }
  5177. },
  5178. handlePictureCardPreview(file) {
  5179. this.dialogImageUrl = file.url;
  5180. },
  5181. clean(i, c) {
  5182. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5183. },
  5184. handle_remove1(file, fileList, type) {
  5185. var _tmp = this.cover;
  5186. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5187. // if (_tmp[i].uid == file.uid) {
  5188. // _tmp.splice(i, 1);
  5189. // break;
  5190. // }
  5191. // this.cover = _tmp;
  5192. // }
  5193. this.cover = [];
  5194. this.noneBtnImg = this.cover.length >= 1;
  5195. this.isSysPic = false;
  5196. this.isSysPic2 = false;
  5197. this.$forceUpdate();
  5198. },
  5199. addImg(e) {
  5200. var el = e.currentTarget;
  5201. el.getElementsByTagName("input")[0].click();
  5202. e.target.value = "";
  5203. },
  5204. addChaptersTools(i) {
  5205. this.chapTools = [
  5206. {
  5207. tools: [],
  5208. toolDetail: "",
  5209. },
  5210. ];
  5211. this.chapCount = i;
  5212. this.dialogVisible4 = true;
  5213. },
  5214. isNoFinsh() {
  5215. this.$message.warning("功能正在开发中");
  5216. },
  5217. addAttText(i) {
  5218. this.AttText = {
  5219. title: "",
  5220. text: "",
  5221. };
  5222. this.taskCount = i;
  5223. this.AttTextType = 0;
  5224. this.$forceUpdate();
  5225. this.dialogVisible6 = true;
  5226. setTimeout(() => {
  5227. this.$refs['fuInput'].focus();
  5228. }, 100);
  5229. },
  5230. openLine(i) {
  5231. this.line = "";
  5232. this.lineCount = i;
  5233. this.lineType = 0;
  5234. this.$forceUpdate();
  5235. this.dialogVisible7 = true;
  5236. },
  5237. pasteLine(i) {
  5238. navigator.clipboard
  5239. .readText()
  5240. .then((v) => {
  5241. console.log("获取剪贴板成功:", v);
  5242. const html = v;
  5243. const regex = /src="(.*?)"/g;
  5244. const match = regex.exec(html);
  5245. if (match && match[1]) {
  5246. console.log(match[1]);
  5247. this.$message.success("粘贴成功");
  5248. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5249. i
  5250. ].chapterData.push({
  5251. name: "链接",
  5252. title: "嵌入代码",
  5253. url: match[1],
  5254. type: 8,
  5255. });
  5256. } else {
  5257. // console.log("未找到包含 src 属性的 iframe");
  5258. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5259. }
  5260. })
  5261. .catch((v) => {
  5262. console.log("获取剪贴板失败: ", v);
  5263. });
  5264. },
  5265. openSource(i) {
  5266. this.lineCount = i;
  5267. this.sourceData = {};
  5268. this.dialogVisibleSource = true;
  5269. this.updateSourcePan = false;
  5270. },
  5271. addSource() {
  5272. if (!Object.keys(this.sourceData).length) {
  5273. this.$message.error("请选择要上传的资源");
  5274. return;
  5275. }
  5276. let keys = Object.keys(this.sourceData);
  5277. for (var i = 0; i < keys.length; i++) {
  5278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5279. this.lineCount
  5280. ].chapterData.push({
  5281. name: "链接",
  5282. title: this.sourceData[keys[i]].name,
  5283. url: this.sourceData[keys[i]].url,
  5284. type: 14,
  5285. id: keys[i]
  5286. });
  5287. }
  5288. this.$forceUpdate();
  5289. this.dialogVisibleSource = false;
  5290. },
  5291. updateSource() {
  5292. if (!Object.keys(this.sourceData).length) {
  5293. this.$message.error("请选择要上传的资源");
  5294. return;
  5295. }
  5296. let keys = Object.keys(this.sourceData);
  5297. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5298. this.taskCount
  5299. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5300. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5301. this.taskCount
  5302. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5303. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5304. this.taskCount
  5305. ].chapterData[this.lineCount].id = keys[0];
  5306. this.updateSourcePan = false;
  5307. this.$forceUpdate();
  5308. this.dialogVisibleSource = false;
  5309. },
  5310. deleteM(i, j) {
  5311. this.testJson.testJson[i].timuList.splice(j, 1);
  5312. },
  5313. beforeUploadTiMu(event, i) {
  5314. const loading = this.openLoading();
  5315. var file = event.target.files[0];
  5316. var credentials = {
  5317. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5318. secretAccessKey: "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",
  5319. }; //秘钥形式的登录上传
  5320. window.AWS.config.update(credentials);
  5321. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5322. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5323. var _this = this;
  5324. if (file) {
  5325. var params = {
  5326. Key:
  5327. file.name.split(".")[0] +
  5328. new Date().getTime() +
  5329. "." +
  5330. file.name.split(".")[file.name.split(".").length - 1],
  5331. ContentType: file.type,
  5332. Body: file,
  5333. "Access-Control-Allow-Credentials": "*",
  5334. ACL: "public-read",
  5335. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5336. var options = {
  5337. partSize: 2048 * 1024 * 1024,
  5338. queueSize: 2,
  5339. leavePartsOnError: true,
  5340. };
  5341. bucket
  5342. .upload(params, options)
  5343. .on("httpUploadProgress", function (evt) {
  5344. //这里可以写进度条
  5345. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5346. })
  5347. .send(function (err, data) {
  5348. loading.close();
  5349. if (err) {
  5350. _this.$message.error("上传失败");
  5351. } else {
  5352. if (_this.testJson.testJson[i].timuList) {
  5353. _this.testJson.testJson[i].timuList.push({
  5354. src: data.Location,
  5355. });
  5356. } else {
  5357. _this.testJson.testJson[i].timuList = [];
  5358. _this.testJson.testJson[i].timuList.push({
  5359. src: data.Location,
  5360. });
  5361. }
  5362. _this.imgChange3(i);
  5363. _this.$forceUpdate();
  5364. }
  5365. });
  5366. }
  5367. },
  5368. beforeUploadTi(event, i, j) {
  5369. const loading = this.openLoading();
  5370. var file = event.target.files[0];
  5371. var credentials = {
  5372. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5373. secretAccessKey: "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",
  5374. }; //秘钥形式的登录上传
  5375. window.AWS.config.update(credentials);
  5376. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5377. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5378. var _this = this;
  5379. if (file) {
  5380. var params = {
  5381. Key:
  5382. file.name.split(".")[0] +
  5383. new Date().getTime() +
  5384. "." +
  5385. file.name.split(".")[file.name.split(".").length - 1],
  5386. ContentType: file.type,
  5387. Body: file,
  5388. "Access-Control-Allow-Credentials": "*",
  5389. ACL: "public-read",
  5390. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5391. var options = {
  5392. partSize: 2048 * 1024 * 1024,
  5393. queueSize: 2,
  5394. leavePartsOnError: true,
  5395. };
  5396. bucket
  5397. .upload(params, options)
  5398. .on("httpUploadProgress", function (evt) {
  5399. //这里可以写进度条
  5400. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5401. })
  5402. .send(function (err, data) {
  5403. loading.close();
  5404. if (err) {
  5405. _this.$message.error("上传失败");
  5406. } else {
  5407. _this.testJson.testJson[i].checkList[j] = {};
  5408. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5409. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5410. _this.imgChange2(i, j);
  5411. _this.$forceUpdate();
  5412. }
  5413. });
  5414. }
  5415. },
  5416. beforeUpload1(event, type) {
  5417. // const loading = this.openLoading();
  5418. var file = event.target.files[0];
  5419. var credentials = {
  5420. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5421. secretAccessKey: "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",
  5422. }; //秘钥形式的登录上传
  5423. window.AWS.config.update(credentials);
  5424. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5425. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5426. var _this = this;
  5427. if (file) {
  5428. var params = {
  5429. Key:
  5430. file.name.split(".")[0] +
  5431. new Date().getTime() +
  5432. "." +
  5433. file.name.split(".")[file.name.split(".").length - 1],
  5434. ContentType: file.type,
  5435. Body: file,
  5436. "Access-Control-Allow-Credentials": "*",
  5437. ACL: "public-read",
  5438. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5439. var options = {
  5440. partSize: 2048 * 1024 * 1024,
  5441. queueSize: 2,
  5442. leavePartsOnError: true,
  5443. };
  5444. bucket
  5445. .upload(params, options)
  5446. .on("httpUploadProgress", function (evt) {
  5447. //这里可以写进度条
  5448. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5449. })
  5450. .send(function (err, data) {
  5451. // loading.close();
  5452. if (err) {
  5453. // var a = _this.$refs.upload1.uploadFiles;
  5454. // a.splice(a.length - 1, a.length);
  5455. _this.$message.error("上传失败");
  5456. } else {
  5457. // _this.cover.push({
  5458. // name: file.name,
  5459. // url: data.Location,
  5460. // uid: file.uid,
  5461. // });
  5462. _this.cover = [{
  5463. name: file.name,
  5464. url: data.Location,
  5465. uid: file.uid,
  5466. }];
  5467. _this.imgChange1(null, null, 1, null);
  5468. _this.choosePicVisible = false;
  5469. console.log(data.Location);
  5470. }
  5471. });
  5472. }
  5473. },
  5474. beforeUploadSelect(event, type) {
  5475. // const loading = this.openLoading();
  5476. var file = event.target.files[0];
  5477. var credentials = {
  5478. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5479. secretAccessKey: "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",
  5480. }; //秘钥形式的登录上传
  5481. window.AWS.config.update(credentials);
  5482. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5483. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5484. var _this = this;
  5485. if (file) {
  5486. var params = {
  5487. Key:
  5488. file.name.split(".")[0] +
  5489. new Date().getTime() +
  5490. "." +
  5491. file.name.split(".")[file.name.split(".").length - 1],
  5492. ContentType: file.type,
  5493. Body: file,
  5494. "Access-Control-Allow-Credentials": "*",
  5495. ACL: "public-read",
  5496. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5497. var options = {
  5498. partSize: 2048 * 1024 * 1024,
  5499. queueSize: 2,
  5500. leavePartsOnError: true,
  5501. };
  5502. bucket
  5503. .upload(params, options)
  5504. .on("httpUploadProgress", function (evt) {
  5505. //这里可以写进度条
  5506. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5507. })
  5508. .send(function (err, data) {
  5509. // loading.close();
  5510. if (err) {
  5511. _this.$message.error("上传失败");
  5512. } else {
  5513. _this.selectJson.url = data.Location;
  5514. console.log(data.Location);
  5515. }
  5516. });
  5517. }
  5518. },
  5519. chooseSysPic(p) {
  5520. this.cover = []
  5521. setTimeout(() => {
  5522. this.cover[0] = {
  5523. name: "系统图片.png",
  5524. url: p,
  5525. };
  5526. this.imgChange1(null, null, 1, null);
  5527. this.$forceUpdate();
  5528. }, 0);
  5529. this.isSysPic = true;
  5530. this.isSysPic2 = false;
  5531. this.sysPicVisible = false;
  5532. this.$forceUpdate();
  5533. },
  5534. chooseSysPic2(p) {
  5535. this.cover = []
  5536. setTimeout(() => {
  5537. this.cover[0] = {
  5538. name: "网络图片.png",
  5539. url: p,
  5540. };
  5541. this.imgChange1(null, null, 1, null);
  5542. this.$forceUpdate();
  5543. }, 0);
  5544. this.isSysPic2 = true;
  5545. this.isSysPic = false;
  5546. this.sysPicVisible2 = false;
  5547. this.$forceUpdate();
  5548. },
  5549. beforeUpload(data) {
  5550. this.$refs.upload1.uploadFiles;
  5551. this.uploadLoading1 = true;
  5552. var file = data.file;
  5553. var credentials = {
  5554. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5555. secretAccessKey: "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",
  5556. }; //秘钥形式的登录上传
  5557. window.AWS.config.update(credentials);
  5558. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5559. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5560. var _this = this;
  5561. if (file) {
  5562. var params = {
  5563. Key:
  5564. file.name.split(".")[0] +
  5565. new Date().getTime() +
  5566. "." +
  5567. file.name.split(".")[file.name.split(".").length - 1],
  5568. ContentType: file.type,
  5569. Body: file,
  5570. "Access-Control-Allow-Credentials": "*",
  5571. ACL: "public-read",
  5572. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5573. var options = {
  5574. partSize: 2048 * 1024 * 1024,
  5575. queueSize: 2,
  5576. leavePartsOnError: true,
  5577. };
  5578. bucket
  5579. .upload(params, options)
  5580. .on("httpUploadProgress", function (evt) {
  5581. //这里可以写进度条
  5582. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5583. })
  5584. .send(function (err, data) {
  5585. _this.uploadLoading1 = false;
  5586. if (err) {
  5587. // var a = _this.$refs.upload1.uploadFiles;
  5588. // a.splice(a.length - 1, a.length);
  5589. _this.$message.error("上传失败");
  5590. } else {
  5591. //上传成功处理
  5592. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5593. name: file.name,
  5594. url: data.Location,
  5595. uid: file.uid,
  5596. });
  5597. _this.imgChange();
  5598. console.log(data.Location);
  5599. }
  5600. });
  5601. }
  5602. },
  5603. onExceed() {
  5604. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5605. },
  5606. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5607. // const loading = this.openLoading();
  5608. var file = event.target.files[0];
  5609. var credentials = {
  5610. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5611. secretAccessKey: "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",
  5612. }; //秘钥形式的登录上传
  5613. window.AWS.config.update(credentials);
  5614. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5615. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5616. var _this = this;
  5617. if (type == 3) {
  5618. var b = [
  5619. "DOC",
  5620. "DOCX",
  5621. "DOCM",
  5622. "DOTM",
  5623. "DOTX",
  5624. "PPTX",
  5625. "PPSX",
  5626. "PPT",
  5627. "PPS",
  5628. "PPTM",
  5629. "POTM",
  5630. "PPAM",
  5631. "POTX",
  5632. "PPSM",
  5633. ];
  5634. if (
  5635. b.indexOf(
  5636. file.name
  5637. .split(".")
  5638. [file.name.split(".").length - 1].toLocaleUpperCase()
  5639. ) != -1
  5640. ) {
  5641. if (file.size / 1024 / 1024 > 80) {
  5642. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5643. this.inputShow = true;
  5644. // var a = _this.$refs.upload1.uploadFiles;
  5645. // a.splice(a.length - 1, a.length);
  5646. // loading.close();
  5647. return;
  5648. }
  5649. } else if (
  5650. file.name
  5651. .split(".")
  5652. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5653. ) {
  5654. if (file.size / 1024 / 1024 > 80) {
  5655. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5656. this.inputShow = true;
  5657. // var a = _this.$refs.upload1.uploadFiles;
  5658. // a.splice(a.length - 1, a.length);
  5659. // loading.close();
  5660. return;
  5661. }
  5662. }
  5663. }
  5664. this.inputShow = false;
  5665. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5666. itemTaskIndex
  5667. ].progress = 0;
  5668. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5669. itemTaskIndex
  5670. ].proVisible = true;
  5671. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5672. itemTaskIndex
  5673. ].isFinishSize = 0;
  5674. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5675. itemTaskIndex
  5676. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5677. _this.$forceUpdate();
  5678. if (file) {
  5679. var params = {
  5680. Key:
  5681. file.name.split(".")[0] +
  5682. new Date().getTime() +
  5683. "." +
  5684. file.name.split(".")[file.name.split(".").length - 1],
  5685. ContentType: file.type,
  5686. Body: file,
  5687. "Access-Control-Allow-Credentials": "*",
  5688. ACL: "public-read",
  5689. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5690. var options = {
  5691. partSize: 2048 * 1024 * 1024,
  5692. queueSize: 2,
  5693. leavePartsOnError: true,
  5694. };
  5695. bucket
  5696. .upload(params, options)
  5697. .on("httpUploadProgress", function (evt) {
  5698. //这里可以写进度条
  5699. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5700. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5701. itemTaskIndex
  5702. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5703. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5704. itemTaskIndex
  5705. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5706. _this.$forceUpdate();
  5707. })
  5708. .send(function (err, data) {
  5709. // loading.close();
  5710. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5711. itemTaskIndex
  5712. ].progress = 100;
  5713. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5714. itemTaskIndex
  5715. ].isFinishSize =
  5716. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5717. itemTaskIndex
  5718. ].isAllSize;
  5719. _this.$forceUpdate();
  5720. setTimeout(() => {
  5721. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5722. itemTaskIndex
  5723. ].proVisible = false;
  5724. _this.$forceUpdate();
  5725. }, 1000);
  5726. _this.inputShow = true;
  5727. if (err) {
  5728. // var a = _this.$refs.upload1.uploadFiles;
  5729. // a.splice(a.length - 1, a.length);
  5730. _this.$message.error("上传失败");
  5731. } else {
  5732. if (type == 13) {
  5733. let _type = 2;
  5734. var imgA = [
  5735. "png",
  5736. "jpg",
  5737. "jpeg",
  5738. "bmp",
  5739. "gif",
  5740. "webp",
  5741. "psd",
  5742. "svg",
  5743. "tiff",
  5744. ];
  5745. var fileA = [
  5746. "PDF",
  5747. "DOC",
  5748. "DOCX",
  5749. "DOCM",
  5750. "DOTM",
  5751. "DOTX",
  5752. "PPTX",
  5753. "PPSX",
  5754. "PPT",
  5755. "PPS",
  5756. "PPTM",
  5757. "POTM",
  5758. "PPAM",
  5759. "POTX",
  5760. "PPSM",
  5761. "XLSX",
  5762. "XLS",
  5763. ];
  5764. var videoA = [
  5765. "AVI",
  5766. "NAVI",
  5767. "MPEG",
  5768. "ASF",
  5769. "MOV",
  5770. "WMV",
  5771. "3GP",
  5772. "RM",
  5773. "RMVB",
  5774. "FLV",
  5775. "F4V",
  5776. "H.264",
  5777. "H.265",
  5778. "REAL VIDEO",
  5779. "MKV",
  5780. "WebM",
  5781. "HDDVD",
  5782. "MP4",
  5783. "MPG",
  5784. "M4V",
  5785. "MGV",
  5786. "OGV",
  5787. "QTM",
  5788. "STR",
  5789. "AMC",
  5790. "DVX",
  5791. "EVO",
  5792. "DAT",
  5793. "OGG",
  5794. "OGM",
  5795. ];
  5796. if (
  5797. fileA.indexOf(
  5798. data.Location.split(".")[
  5799. data.Location.split(".").length - 1
  5800. ].toLocaleUpperCase()
  5801. ) != -1
  5802. ) {
  5803. _type = 3;
  5804. } else if (
  5805. videoA.indexOf(
  5806. data.Location.split(".")[
  5807. data.Location.split(".").length - 1
  5808. ].toLocaleUpperCase()
  5809. ) != -1
  5810. ) {
  5811. _type = 2;
  5812. } else if (
  5813. imgA.indexOf(
  5814. data.Location.split(".")[
  5815. data.Location.split(".").length - 1
  5816. ].toLocaleLowerCase()
  5817. ) != -1
  5818. ) {
  5819. _type = 13;
  5820. } else {
  5821. _type = 12;
  5822. }
  5823. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5824. itemTaskIndex
  5825. ].chapterData.push({
  5826. name: file.name,
  5827. url: data.Location,
  5828. uid: file.uid,
  5829. type: _type,
  5830. });
  5831. _this.imgChange1(null, null, _type, itemTaskIndex);
  5832. } else if (type == 2 || type == 3 || type == 12) {
  5833. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5834. itemTaskIndex
  5835. ].chapterData.push({
  5836. name: file.name,
  5837. url: data.Location,
  5838. uid: file.uid,
  5839. type: type,
  5840. });
  5841. _this.imgChange1(null, null, type, itemTaskIndex);
  5842. } else if (type == 4) {
  5843. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5844. itemTaskIndex
  5845. ].fileList1.push({
  5846. name: file.name,
  5847. url: data.Location,
  5848. uid: file.uid,
  5849. });
  5850. _this.imgChange1(null, null, type, itemTaskIndex);
  5851. } else if (type == 5) {
  5852. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5853. itemTaskIndex
  5854. ].homeworkList.push({
  5855. name: file.name,
  5856. url: data.Location,
  5857. uid: file.uid,
  5858. });
  5859. _this.imgChange1(null, null, type, itemTaskIndex);
  5860. }
  5861. console.log(data.Location);
  5862. }
  5863. });
  5864. }
  5865. },
  5866. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5867. // const loading = this.openLoading();
  5868. var file = event.target.files[0];
  5869. var credentials = {
  5870. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5871. secretAccessKey: "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",
  5872. }; //秘钥形式的登录上传
  5873. window.AWS.config.update(credentials);
  5874. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5875. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5876. var _this = this;
  5877. if (type == 3) {
  5878. var b = [
  5879. "DOC",
  5880. "DOCX",
  5881. "DOCM",
  5882. "DOTM",
  5883. "DOTX",
  5884. "PPTX",
  5885. "PPSX",
  5886. "PPT",
  5887. "PPS",
  5888. "PPTM",
  5889. "POTM",
  5890. "PPAM",
  5891. "POTX",
  5892. "PPSM",
  5893. ];
  5894. if (
  5895. b.indexOf(
  5896. file.name
  5897. .split(".")
  5898. [file.name.split(".").length - 1].toLocaleUpperCase()
  5899. ) != -1
  5900. ) {
  5901. if (file.size / 1024 / 1024 > 80) {
  5902. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5903. this.inputShow = true;
  5904. // var a = _this.$refs.upload1.uploadFiles;
  5905. // a.splice(a.length - 1, a.length);
  5906. // loading.close();
  5907. return;
  5908. }
  5909. } else if (
  5910. file.name
  5911. .split(".")
  5912. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5913. ) {
  5914. if (file.size / 1024 / 1024 > 80) {
  5915. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5916. this.inputShow = true;
  5917. // var a = _this.$refs.upload1.uploadFiles;
  5918. // a.splice(a.length - 1, a.length);
  5919. // loading.close();
  5920. return;
  5921. }
  5922. }
  5923. }
  5924. this.inputShow = false;
  5925. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5926. itemTaskIndex
  5927. ].progress = 0;
  5928. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5929. itemTaskIndex
  5930. ].proVisible = true;
  5931. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5932. itemTaskIndex
  5933. ].isFinishSize = 0;
  5934. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5935. itemTaskIndex
  5936. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5937. _this.$forceUpdate();
  5938. if (file) {
  5939. var params = {
  5940. Key:
  5941. file.name.split(".")[0] +
  5942. new Date().getTime() +
  5943. "." +
  5944. file.name.split(".")[file.name.split(".").length - 1],
  5945. ContentType: file.type,
  5946. Body: file,
  5947. "Access-Control-Allow-Credentials": "*",
  5948. ACL: "public-read",
  5949. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5950. var options = {
  5951. partSize: 2048 * 1024 * 1024,
  5952. queueSize: 2,
  5953. leavePartsOnError: true,
  5954. };
  5955. bucket
  5956. .upload(params, options)
  5957. .on("httpUploadProgress", function (evt) {
  5958. //这里可以写进度条
  5959. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5960. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5961. itemTaskIndex
  5962. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5963. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5964. itemTaskIndex
  5965. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5966. _this.$forceUpdate();
  5967. })
  5968. .send(function (err, data) {
  5969. // loading.close();
  5970. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5971. itemTaskIndex
  5972. ].progress = 100;
  5973. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5974. itemTaskIndex
  5975. ].isFinishSize =
  5976. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5977. itemTaskIndex
  5978. ].isAllSize;
  5979. _this.$forceUpdate();
  5980. setTimeout(() => {
  5981. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5982. itemTaskIndex
  5983. ].proVisible = false;
  5984. _this.$forceUpdate();
  5985. }, 1000);
  5986. _this.inputShow = true;
  5987. if (err) {
  5988. // var a = _this.$refs.upload1.uploadFiles;
  5989. // a.splice(a.length - 1, a.length);
  5990. _this.$message.error("上传失败");
  5991. } else {
  5992. if (type == 2 || type == 3) {
  5993. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5994. itemTaskIndex
  5995. ].chapterData.push({
  5996. name: file.name,
  5997. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5998. // itemTaskIndex
  5999. // ].chapterData.length+1),
  6000. url: data.Location,
  6001. uid: file.uid,
  6002. type: type,
  6003. text: string,
  6004. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6005. // itemTaskIndex
  6006. // ].chapterData.length + 1),
  6007. });
  6008. _this.imgChange1(null, null, type, itemTaskIndex);
  6009. } else if (type == 4) {
  6010. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6011. itemTaskIndex
  6012. ].fileList1.push({
  6013. name: file.name,
  6014. url: data.Location,
  6015. uid: file.uid,
  6016. });
  6017. _this.imgChange1(null, null, type, itemTaskIndex);
  6018. } else if (type == 5) {
  6019. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6020. itemTaskIndex
  6021. ].homeworkList.push({
  6022. name: file.name,
  6023. url: data.Location,
  6024. uid: file.uid,
  6025. });
  6026. _this.imgChange1(null, null, type, itemTaskIndex);
  6027. }
  6028. console.log(data.Location);
  6029. }
  6030. });
  6031. }
  6032. },
  6033. addunit() {
  6034. this.unitJson.push({
  6035. dyName: "", //单元标题
  6036. isUpdate: 1,
  6037. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6038. chapterInfo: [
  6039. {
  6040. isread: false,
  6041. chapterid: this.guid(),
  6042. title: "",
  6043. courseName: "",
  6044. taskJson: [
  6045. {
  6046. task: "",
  6047. taskDetail: "",
  6048. chapterData: [],
  6049. toolText: "",
  6050. toolChoose: [
  6051. {
  6052. tool: [],
  6053. toolDetail: "",
  6054. toolType: 0,
  6055. askCount: 1,
  6056. askTitle: "",
  6057. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6058. },
  6059. ],
  6060. isShowTools: false,
  6061. askCount: 1,
  6062. isFold: 1,
  6063. askTitle: "",
  6064. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6065. checkJson: [{ checkCount: [], checkPerent: [] }],
  6066. homeworkList: [],
  6067. },
  6068. ],
  6069. itemCount: 1,
  6070. fileList1: [],
  6071. video: [],
  6072. testData: [],
  6073. pData: [],
  6074. templateArray: [],
  6075. },
  6076. ],
  6077. });
  6078. this.addindex = this.unitJson.length - 1;
  6079. setTimeout(() => {
  6080. this.unitIndex = this.unitJson.length - 1;
  6081. setTimeout(() => {
  6082. console.log(this.$refs.dyInput)
  6083. this.$refs.dyInput[0].focus()
  6084. }, 100);
  6085. this.unitSet(this.unitIndex);
  6086. }, 0);
  6087. },
  6088. addToolFun(itemTaskIndex) {
  6089. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6090. itemTaskIndex
  6091. ].toolChoose.push({
  6092. tool: [],
  6093. toolDetail: "",
  6094. toolType: 0,
  6095. askCount: 1,
  6096. askTitle: "",
  6097. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6098. });
  6099. },
  6100. addTaskBorder() {
  6101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6102. task: "",
  6103. taskDetail: "",
  6104. chapterData: [],
  6105. toolText: "",
  6106. toolChoose: [
  6107. {
  6108. tool: [],
  6109. toolDetail: "",
  6110. toolType: 0,
  6111. askCount: 1,
  6112. askTitle: "",
  6113. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6114. },
  6115. ],
  6116. isShowTools: false,
  6117. askCount: 1,
  6118. isFold: 1,//任务收起状态
  6119. askTitle: "",
  6120. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6121. checkJson: [{ checkCount: [], checkPerent: [] }],
  6122. homeworkList: [],
  6123. });
  6124. setTimeout(() => {
  6125. this.checkEva(this.checkId);
  6126. setTimeout(() => {
  6127. this.checkEva(this.checkId);
  6128. }, 100);
  6129. }, 100);
  6130. },
  6131. add(e, i) {
  6132. var el = e.currentTarget;
  6133. el.getElementsByTagName("input")[0].click();
  6134. },
  6135. fold(i, e) {
  6136. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6138. } else {
  6139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6140. }
  6141. },
  6142. fold2(i) {
  6143. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6145. } else {
  6146. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6147. }
  6148. this.$forceUpdate();
  6149. },
  6150. foldEva(i) {
  6151. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold) {
  6152. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = false;
  6153. } else {
  6154. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isEvaFold = true;
  6155. setTimeout(() => {
  6156. this.checkEva(this.checkId);
  6157. setTimeout(() => {
  6158. this.checkEva(this.checkId);
  6159. }, 500);
  6160. }, 0);
  6161. }
  6162. this.$forceUpdate();
  6163. },
  6164. foldC(i) {
  6165. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6166. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6167. } else {
  6168. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6169. }
  6170. this.$forceUpdate();
  6171. },
  6172. fold3(i, ti) {
  6173. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6175. } else {
  6176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6177. }
  6178. this.$forceUpdate();
  6179. },
  6180. deleteHomeworkBox(unitIndex, index, i) {
  6181. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6182. this.taskCount
  6183. ].homeworkList.splice(i, 1);
  6184. },
  6185. getStudent() {
  6186. let params = {
  6187. oid: this.oid,
  6188. cu: "",
  6189. cn: this.searchPeople,
  6190. };
  6191. this.ajax
  6192. .get(this.$store.state.api + "selectStudentAdd", params)
  6193. .then((res) => {
  6194. this.studentJuri = res.data[0];
  6195. })
  6196. .catch((err) => {
  6197. this.isLoading = false;
  6198. console.error(err);
  6199. });
  6200. },
  6201. getTeacher() {
  6202. let params = {
  6203. oid:
  6204. this.org && this.org != "undefined" && this.org != "null"
  6205. ? this.org
  6206. : this.oid,
  6207. cu: "",
  6208. cn: this.searchTN,
  6209. };
  6210. this.ajax
  6211. .get(
  6212. this.$store.state.api +
  6213. (this.org && this.org != "undefined" && this.org != "null"
  6214. ? "selectTeacherAddOrg"
  6215. : "selectTeacherAdd"),
  6216. params
  6217. )
  6218. .then((res) => {
  6219. let teacherJuri = res.data[0];
  6220. for (var i = 0; i < teacherJuri.length; i++) {
  6221. if (teacherJuri[i].userid == this.userid) {
  6222. teacherJuri.splice(i, 1);
  6223. break;
  6224. }
  6225. }
  6226. this.teacherJuri = teacherJuri;
  6227. let _check = []
  6228. let _check2 = []
  6229. for (var i = 0; i < this.teacherJuri.length; i++) {
  6230. var gid = this.teacherJuri[i].userid
  6231. _check.push(gid)
  6232. }
  6233. for (var i = 0; i < this.checkboxList3.length; i++) {
  6234. var _id = this.checkboxList3[i]
  6235. if (_check.indexOf(_id) !== -1) {
  6236. _check2.push(_id)
  6237. }
  6238. }
  6239. this.checkAll2 = _check2.length === _check.length;
  6240. })
  6241. .catch((err) => {
  6242. console.error(err);
  6243. });
  6244. },
  6245. searchStudent() {
  6246. this.getStudent();
  6247. },
  6248. selectGrage() {
  6249. let params = {
  6250. oid: this.oid,
  6251. };
  6252. this.ajax
  6253. .get(this.$store.state.api + "selectGrageBySchool", params)
  6254. .then((res) => {
  6255. this.gradeList = res.data[0];
  6256. })
  6257. .catch((err) => {
  6258. this.isLoading = false;
  6259. console.error(err);
  6260. });
  6261. },
  6262. //获取班级列表
  6263. getClass() {
  6264. let params = {
  6265. oid: this.oid,
  6266. gid: this.gradeId,
  6267. cn: this.classSearch,
  6268. };
  6269. this.ajax
  6270. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6271. .then((res) => {
  6272. if (!this.grade.length) {
  6273. this.grade = res.data[0];
  6274. }
  6275. this.grade2 = res.data[0];
  6276. this.classJuri = res.data[0];
  6277. let _check = []
  6278. let _check2 = []
  6279. for (var i = 0; i < this.grade2.length; i++) {
  6280. var gid = this.grade2[i].id
  6281. _check.push(gid)
  6282. }
  6283. for (var i = 0; i < this.checkboxList2.length; i++) {
  6284. var _id = this.checkboxList2[i]
  6285. if (_check.indexOf(_id) !== -1) {
  6286. _check2.push(_id)
  6287. }
  6288. }
  6289. this.checkAll = _check2.length === _check.length;
  6290. })
  6291. .catch((err) => {
  6292. this.isLoading = false;
  6293. console.error(err);
  6294. });
  6295. },
  6296. CourseType2Change(val) {
  6297. this.pTypeCheck = [];
  6298. for (var i = 0; i < this.CourseType2.length; i++) {
  6299. let typeA = this.CourseType2[i];
  6300. if (val.indexOf(typeA.name) != -1) {
  6301. this.pTypeCheck.push(...typeA.id);
  6302. }
  6303. }
  6304. },
  6305. getChapterData(e, i, j, ic, type) {
  6306. e.stopPropagation();
  6307. this.updataC = true;
  6308. this.icc = ic;
  6309. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6310. console.log("还不能下载图片喔");
  6311. }
  6312. },
  6313. deleteChapterData(e, i, j, ic, taskI) {
  6314. e.stopPropagation();
  6315. let _this = this;
  6316. _this
  6317. .$confirm("确定删除此项?", "提示", {
  6318. confirmButtonText: "确定",
  6319. cancelButtonText: "取消",
  6320. type: "warning",
  6321. })
  6322. .then(() => {
  6323. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6324. })
  6325. .catch(() => {
  6326. return;
  6327. });
  6328. },
  6329. updataVideoT(e, i, j, ic) {
  6330. // e.stopPropagation();
  6331. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6332. // ic
  6333. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6334. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6335. ic
  6336. ].name;
  6337. this.taskCount = j;
  6338. this.lineCount = ic;
  6339. this.dialogVisibleupdataVideoT = true;
  6340. this.$forceUpdate();
  6341. },
  6342. updataVideoC() {
  6343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6344. this.dialogVisibleupdataVideoT = false;
  6345. this.$forceUpdate();
  6346. },
  6347. upCd(e, i, j, taskCount, ic) {
  6348. e.stopPropagation();
  6349. if (ic == 0) {
  6350. return;
  6351. }
  6352. var a =
  6353. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6354. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6355. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6356. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6357. this.$forceUpdate();
  6358. },
  6359. downCd(e, i, j, taskCount, ic) {
  6360. e.stopPropagation();
  6361. if (
  6362. ic ==
  6363. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6364. 1
  6365. ) {
  6366. return;
  6367. }
  6368. var a =
  6369. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6370. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6371. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6372. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6373. this.$forceUpdate();
  6374. },
  6375. async upTool(e, i, j, tooli){
  6376. e.stopPropagation();
  6377. if (tooli == 0) {
  6378. return;
  6379. }
  6380. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6381. let count2 = await this.getWorksCount(3, i, j, tooli)
  6382. if(count1 > 0 || count2 > 0){
  6383. this.$confirm(
  6384. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6385. "提示",
  6386. {
  6387. confirmButtonText: "确定",
  6388. cancelButtonText: "取消",
  6389. type: "warning",
  6390. }
  6391. )
  6392. .then(() => {
  6393. var a =
  6394. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6395. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6396. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6397. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6398. this.$forceUpdate()
  6399. })
  6400. .catch(() => {
  6401. return;
  6402. });
  6403. }else{
  6404. var a =
  6405. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6406. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6407. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6408. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6409. this.$forceUpdate()
  6410. }
  6411. },
  6412. async downTool(e, i, j, tooli){
  6413. e.stopPropagation();
  6414. if ( tooli ==
  6415. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6416. 1) {
  6417. return;
  6418. }
  6419. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6420. let count2 = await this.getWorksCount(3, i, j, tooli)
  6421. if(count1 > 0 || count2 > 0){
  6422. this.$confirm(
  6423. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6424. "提示",
  6425. {
  6426. confirmButtonText: "确定",
  6427. cancelButtonText: "取消",
  6428. type: "warning",
  6429. }
  6430. )
  6431. .then(() => {
  6432. var a =
  6433. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6434. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6435. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6436. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6437. this.$forceUpdate()
  6438. })
  6439. .catch(() => {
  6440. return;
  6441. });
  6442. }else{
  6443. var a =
  6444. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6445. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6446. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6447. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6448. this.$forceUpdate()
  6449. }
  6450. },
  6451. addWork() {
  6452. let cPan = 1;
  6453. for (var i = 0; i < this.unitJson.length; i++) {
  6454. for (
  6455. var j = 0;
  6456. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6457. j++
  6458. ) {
  6459. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6460. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6461. if (
  6462. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6463. ) {
  6464. for (
  6465. var z = 0;
  6466. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6467. z++
  6468. ) {
  6469. if (
  6470. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6471. .length
  6472. ) {
  6473. this.$message.error("请把工具添加完整");
  6474. cPan = 2;
  6475. break;
  6476. }
  6477. }
  6478. }
  6479. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6480. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6481. i
  6482. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6483. return ele.value != "";
  6484. });
  6485. }
  6486. }
  6487. }
  6488. this.inputShow = true;
  6489. if (cPan == 2) {
  6490. this.steps--;
  6491. return;
  6492. }
  6493. for (var i = 0; i < this.unitJson.length; i++) {
  6494. delete this.unitJson[i].isUpdate;
  6495. }
  6496. let params = [
  6497. {
  6498. uid: this.userid,
  6499. title: this.courseName.replace(/%/g, "%25"),
  6500. brief: this.courseText.replace(/%/g, "%25"),
  6501. cover:
  6502. this.cover.length > 0
  6503. ? JSON.stringify(this.cover)
  6504. : JSON.stringify([
  6505. {
  6506. name: "noBanner.jpg",
  6507. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6508. uid: 1656409780264,
  6509. status: "success",
  6510. },
  6511. ]),
  6512. evaId: this.evalua,
  6513. astudent:
  6514. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6515. see: this.isTeacherSee == true ? 1 : 0,
  6516. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6517. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6518. courseType: JSON.stringify(this.courseTypeId),
  6519. ateacher:
  6520. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6521. inviteCode: JSON.stringify(this.inviteCode),
  6522. },
  6523. ];
  6524. this.ajax
  6525. .post(this.$store.state.api + "addWorkNew2", params)
  6526. .then((res) => {
  6527. console.log(this.steps);
  6528. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6529. this.$message({
  6530. message: "新增成功",
  6531. type: "success",
  6532. });
  6533. }
  6534. this.number = res.data.ordernumber;
  6535. this.courseId = res.data.courseId;
  6536. this.cid = res.data.courseId;
  6537. this.courseUserid = this.userid;
  6538. this.islogin = true;
  6539. })
  6540. .catch((err) => {
  6541. this.$message.error("网络不佳");
  6542. console.error(err);
  6543. });
  6544. },
  6545. goCourse() {
  6546. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6547. },
  6548. updateWork2() {
  6549. let _unitIndex = this.unitIndex;
  6550. let cPan = 1;
  6551. for (
  6552. var j = 0;
  6553. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6554. j++
  6555. ) {
  6556. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6557. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6558. j
  6559. ].proVisible2 = false;
  6560. if (
  6561. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6562. .length > 1
  6563. ) {
  6564. for (
  6565. var z = 0;
  6566. z <
  6567. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6568. .length;
  6569. z++
  6570. ) {
  6571. if (
  6572. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6573. z
  6574. ].tool.length
  6575. ) {
  6576. this.$message.error("请把工具添加完整");
  6577. cPan = 2;
  6578. break;
  6579. }
  6580. }
  6581. }
  6582. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6583. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6584. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6585. (ele) => {
  6586. return ele.value != "";
  6587. }
  6588. );
  6589. }
  6590. }
  6591. this.inputShow = true;
  6592. if (cPan == 2) {
  6593. this.steps--;
  6594. return;
  6595. }
  6596. let params = [
  6597. {
  6598. cid: this.cid,
  6599. chapters: JSON.stringify(this.unitJson),
  6600. uid: this.userid,
  6601. unitIndex: _unitIndex,
  6602. },
  6603. ];
  6604. this.ajax
  6605. .post(this.$store.state.api + "updateWorkNew4", params)
  6606. .then((res) => {
  6607. this.$message({
  6608. message: "修改成功",
  6609. type: "success",
  6610. });
  6611. this.courseId = this.cid;
  6612. })
  6613. .catch((err) => {
  6614. this.$message.error("网络不佳");
  6615. console.error(err);
  6616. });
  6617. },
  6618. updateWork3(unitIndex) {
  6619. let _unitIndex = unitIndex;
  6620. let cPan = 1;
  6621. for (
  6622. var j = 0;
  6623. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6624. j++
  6625. ) {
  6626. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6627. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6628. j
  6629. ].proVisible2 = false;
  6630. if (
  6631. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6632. .length > 1
  6633. ) {
  6634. for (
  6635. var z = 0;
  6636. z <
  6637. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6638. .length;
  6639. z++
  6640. ) {
  6641. if (
  6642. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6643. z
  6644. ].tool.length
  6645. ) {
  6646. this.$message.error("请把工具添加完整");
  6647. cPan = 2;
  6648. break;
  6649. }
  6650. }
  6651. }
  6652. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6653. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6654. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6655. (ele) => {
  6656. return ele.value != "";
  6657. }
  6658. );
  6659. }
  6660. }
  6661. this.inputShow = true;
  6662. if (cPan == 2) {
  6663. this.steps--;
  6664. return;
  6665. }
  6666. let params = [
  6667. {
  6668. cid: this.cid,
  6669. chapters: JSON.stringify(this.unitJson),
  6670. uid: this.userid,
  6671. unitIndex: _unitIndex,
  6672. },
  6673. ];
  6674. this.ajax
  6675. .post(this.$store.state.api + "updateWorkNew4", params)
  6676. .then((res) => {
  6677. // this.$message({
  6678. // message: "修改成功",
  6679. // type: "success",
  6680. // });
  6681. this.courseId = this.cid;
  6682. })
  6683. .catch((err) => {
  6684. this.$message.error("网络不佳");
  6685. console.error(err);
  6686. });
  6687. },
  6688. updateWork() {
  6689. let cPan = 1;
  6690. for (var i = 0; i < this.unitJson.length; i++) {
  6691. for (
  6692. var j = 0;
  6693. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6694. j++
  6695. ) {
  6696. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6697. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6698. if (
  6699. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6700. ) {
  6701. for (
  6702. var z = 0;
  6703. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6704. z++
  6705. ) {
  6706. if (
  6707. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6708. .length
  6709. ) {
  6710. this.$message.error("请把工具添加完整");
  6711. cPan = 2;
  6712. break;
  6713. }
  6714. }
  6715. }
  6716. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6717. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6718. i
  6719. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6720. return ele.value != "";
  6721. });
  6722. }
  6723. }
  6724. }
  6725. this.inputShow = true;
  6726. if (cPan == 2) {
  6727. this.steps--;
  6728. return;
  6729. }
  6730. for (var i = 0; i < this.unitJson.length; i++) {
  6731. delete this.unitJson[i].isUpdate;
  6732. }
  6733. let params = [
  6734. {
  6735. cid: this.cid,
  6736. title: this.courseName.replace(/%/g, "%25"),
  6737. brief: this.courseText.replace(/%/g, "%25"),
  6738. cover:
  6739. this.cover.length > 0
  6740. ? JSON.stringify(this.cover)
  6741. : JSON.stringify([
  6742. {
  6743. name: "noBanner.jpg",
  6744. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6745. uid: 1656409780264,
  6746. status: "success",
  6747. },
  6748. ]),
  6749. evaId: this.evalua,
  6750. astudent:
  6751. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6752. see: this.isTeacherSee == true ? 1 : 0,
  6753. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6754. template: this.myWord != "undefined" ? this.myWord : [],
  6755. uid: this.userid,
  6756. courseType: JSON.stringify(this.courseTypeId),
  6757. ateacher:
  6758. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6759. inviteCode: JSON.stringify(this.inviteCode),
  6760. },
  6761. ];
  6762. this.ajax
  6763. .post(this.$store.state.api + "updateWorkNew2", params)
  6764. .then((res) => {
  6765. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6766. if (this.cidType == 1) {
  6767. this.$message({
  6768. message: "修改成功",
  6769. type: "success",
  6770. });
  6771. } else {
  6772. this.$message({
  6773. message: "新增成功",
  6774. type: "success",
  6775. });
  6776. }
  6777. }
  6778. this.number = this.nbOrder;
  6779. this.courseId = this.cid;
  6780. })
  6781. .catch((err) => {
  6782. this.$message.error("网络不佳");
  6783. console.error(err);
  6784. });
  6785. },
  6786. guid() {
  6787. var _num,
  6788. i,
  6789. _guid = "";
  6790. for (i = 0; i < 32; i++) {
  6791. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6792. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6793. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6794. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6795. _guid += "-";
  6796. }
  6797. }
  6798. return _guid;
  6799. },
  6800. insertWord() {
  6801. this.dialogVisible1 = true;
  6802. this.updateBoolean2 = false;
  6803. this.tTitle = "";
  6804. this.tdetail = "";
  6805. },
  6806. addWord() {
  6807. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6808. name: this.tTitle,
  6809. content: this.tdetail,
  6810. uid: this.guid(),
  6811. });
  6812. this.dialogVisible1 = false;
  6813. },
  6814. upWord() { },
  6815. selectWord(uid, i, c) {
  6816. this.dialogVisible1 = true;
  6817. this.updateBoolean2 = true;
  6818. if (
  6819. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6820. ) {
  6821. this.tTitle =
  6822. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6823. this.tdetail =
  6824. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6825. }
  6826. },
  6827. isAddPP() {
  6828. if (this.checkboxList.length > 0) {
  6829. this.$message({
  6830. message: "添加成功",
  6831. type: "success",
  6832. });
  6833. this.dialogVisible3 = false;
  6834. } else {
  6835. this.$message({
  6836. message: "请添加课程成员",
  6837. type: "error",
  6838. });
  6839. }
  6840. },
  6841. isAddClass() {
  6842. this.dialogVisibleClass = false;
  6843. },
  6844. isAddPPTeacher() {
  6845. this.dialogVisibleMember = false;
  6846. this.setMan();
  6847. },
  6848. getTemplate() {
  6849. this.ajax
  6850. .get(this.$store.state.api + "getCourseTemplateT", "")
  6851. .then((res) => {
  6852. this.templateArray = res.data[0];
  6853. this.getTemplateOid();
  6854. this.$forceUpdate();
  6855. })
  6856. .catch((err) => { });
  6857. },
  6858. getTemplateOid() {
  6859. let params = {
  6860. oid: this.oid,
  6861. };
  6862. this.ajax
  6863. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6864. .then((res) => {
  6865. if (res.data[0].length) {
  6866. this.templateArray = [...res.data[0], ...this.templateArray];
  6867. }
  6868. this.getTemplateOrg();
  6869. this.$forceUpdate();
  6870. })
  6871. .catch((err) => { });
  6872. },
  6873. getTemplateOrg() {
  6874. let params = {
  6875. oid: this.org,
  6876. };
  6877. this.ajax
  6878. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6879. .then((res) => {
  6880. if (res.data[0].length) {
  6881. this.templateArray = [...res.data[0], ...this.templateArray];
  6882. }
  6883. this.$forceUpdate();
  6884. })
  6885. .catch((err) => { });
  6886. },
  6887. clearChoose() {
  6888. this.clearArray.splice(this.templateC.id, 1);
  6889. this.dialogVisible2 = false;
  6890. },
  6891. clearAttText() {
  6892. this.AttText = {
  6893. title: "",
  6894. text: "",
  6895. };
  6896. this.dialogVisible6 = false;
  6897. },
  6898. clearLine() {
  6899. this.line = "";
  6900. this.dialogVisible7 = false;
  6901. },
  6902. openTemplate(){
  6903. this.ctJson = {}
  6904. this.templateDialog = true
  6905. },
  6906. checkctJson(json){
  6907. if(this.ctJson.id == json.id){
  6908. this.ctJson = {}
  6909. }else{
  6910. this.ctJson = json
  6911. }
  6912. },
  6913. addTemplate(res){
  6914. let _this = this;
  6915. let _res = []
  6916. if(res.id == 1){
  6917. _res = [
  6918. {
  6919. dyName: "", //单元标题
  6920. easy: 1,
  6921. chapterInfo: [
  6922. {
  6923. isread: false,
  6924. chapterid: this.guid(),
  6925. title: "",
  6926. courseName: "",
  6927. taskJson: [
  6928. {
  6929. task: "",
  6930. taskDetail: "",
  6931. chapterData: [],
  6932. toolText: "",
  6933. toolChoose: [
  6934. {
  6935. tool: [],
  6936. toolDetail: "",
  6937. toolType: 0,
  6938. askCount: 1,
  6939. askTitle: "",
  6940. askJson: [
  6941. { askstitle: "", askItem: 1, checkList: [] },
  6942. ],
  6943. },
  6944. ],
  6945. isShowTools: false,
  6946. askCount: 1,
  6947. isFold: 1,
  6948. askTitle: "",
  6949. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6950. checkJson: [{ checkCount: [], checkPerent: [] }],
  6951. homeworkList: [],
  6952. },
  6953. ],
  6954. itemCount: 1,
  6955. fileList1: [],
  6956. video: [],
  6957. testData: [],
  6958. pData: [],
  6959. templateArray: [],
  6960. },
  6961. ],
  6962. },
  6963. ];
  6964. this.updateCourseState(1)
  6965. }else if(res.id == 2){
  6966. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6967. if (!iframe) {
  6968. this.$message.error("请使用AI共创生成");
  6969. return;
  6970. }
  6971. let copyData = iframe.contentWindow.copyData;
  6972. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6973. this.$message.error("请使用AI共创生成");
  6974. return;
  6975. }
  6976. let stageData = copyData.stageData;
  6977. for (var i = 0; i < stageData.length; i++) {
  6978. res.push({
  6979. dyName: stageData[i], //单元标题
  6980. chapterInfo: [
  6981. {
  6982. isread: false,
  6983. chapterid: this.guid(),
  6984. title: "",
  6985. courseName: "",
  6986. taskJson: [
  6987. {
  6988. task: "",
  6989. taskDetail: "",
  6990. chapterData: [],
  6991. toolText: "",
  6992. toolChoose: [
  6993. {
  6994. tool: [],
  6995. toolDetail: "",
  6996. toolType: 0,
  6997. askCount: 1,
  6998. askTitle: "",
  6999. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7000. },
  7001. ],
  7002. isShowTools: false,
  7003. askCount: 1,
  7004. isFold: 1,
  7005. askTitle: "",
  7006. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7007. checkJson: [{ checkCount: [], checkPerent: [] }],
  7008. homeworkList: [],
  7009. },
  7010. ],
  7011. itemCount: 1,
  7012. fileList1: [],
  7013. video: [],
  7014. testData: [],
  7015. pData: [],
  7016. templateArray: [],
  7017. },
  7018. ],
  7019. });
  7020. }
  7021. this.updateCourseState(1)
  7022. }else if(!Object.keys(res).length){
  7023. this.$message.error("请选择模板")
  7024. retrun;
  7025. }else{
  7026. _res = JSON.parse(res.chapters)
  7027. this.updateCourseState(parseInt(res.state))
  7028. }
  7029. _this
  7030. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7031. confirmButtonText: "确定",
  7032. cancelButtonText: "取消",
  7033. type: "warning",
  7034. })
  7035. .then(() => {
  7036. _this.unitJson = _res;
  7037. _this.updateWork();
  7038. // _this.steps++;
  7039. _this.templateDialog = false
  7040. setTimeout(() => {
  7041. this.checkEva(this.checkId);
  7042. setTimeout(() => {
  7043. this.checkEva(this.checkId);
  7044. }, 100);
  7045. }, 1000);
  7046. })
  7047. .catch(() => {
  7048. return;
  7049. });
  7050. },
  7051. checkTemplate(res) {
  7052. let _this = this;
  7053. _this
  7054. .$confirm("确定选择课程模板吗?此操作将删除所有已编辑课程内容。", "提示", {
  7055. confirmButtonText: "确定",
  7056. cancelButtonText: "取消",
  7057. type: "warning",
  7058. })
  7059. .then(() => {
  7060. _this.unitJson = JSON.parse(res.chapters);
  7061. _this.steps++;
  7062. setTimeout(() => {
  7063. this.checkEva(this.checkId);
  7064. setTimeout(() => {
  7065. this.checkEva(this.checkId);
  7066. }, 100);
  7067. }, 1000);
  7068. })
  7069. .catch(() => {
  7070. return;
  7071. });
  7072. },
  7073. checkTemplate1(w) {
  7074. this.steps++;
  7075. },
  7076. checkTemplate2() {
  7077. let _this = this;
  7078. _this
  7079. .$confirm("确定选择空模板吗?修改课程时无法重置课程模板。", "提示", {
  7080. confirmButtonText: "确定",
  7081. cancelButtonText: "取消",
  7082. type: "warning",
  7083. })
  7084. .then(() => {
  7085. _this.unitIndex = 0;
  7086. _this.unitJson = [
  7087. {
  7088. dyName: "", //单元标题
  7089. chapterInfo: [
  7090. {
  7091. isread: false,
  7092. chapterid: this.guid(),
  7093. title: "",
  7094. courseName: "",
  7095. taskJson: [
  7096. {
  7097. task: "",
  7098. taskDetail: "",
  7099. chapterData: [],
  7100. toolText: "",
  7101. toolChoose: [
  7102. {
  7103. tool: [],
  7104. toolDetail: "",
  7105. toolType: 0,
  7106. askCount: 1,
  7107. askTitle: "",
  7108. askJson: [
  7109. { askstitle: "", askItem: 1, checkList: [] },
  7110. ],
  7111. },
  7112. ],
  7113. isShowTools: false,
  7114. askCount: 1,
  7115. isFold: 1,
  7116. askTitle: "",
  7117. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7118. checkJson: [{ checkCount: [], checkPerent: [] }],
  7119. homeworkList: [],
  7120. },
  7121. ],
  7122. itemCount: 1,
  7123. fileList1: [],
  7124. video: [],
  7125. testData: [],
  7126. pData: [],
  7127. templateArray: [],
  7128. },
  7129. ],
  7130. },
  7131. ];
  7132. this.steps++;
  7133. setTimeout(() => {
  7134. this.checkEva(this.checkId);
  7135. setTimeout(() => {
  7136. this.checkEva(this.checkId);
  7137. }, 100);
  7138. }, 1000);
  7139. this.updateWork();
  7140. })
  7141. .catch(() => {
  7142. return;
  7143. });
  7144. },
  7145. checkTemplate3() {
  7146. let _this = this;
  7147. _this
  7148. .$confirm("确定选择简易模板吗?修改课程时无法重置课程模板。", "提示", {
  7149. confirmButtonText: "确定",
  7150. cancelButtonText: "取消",
  7151. type: "warning",
  7152. })
  7153. .then(() => {
  7154. _this.unitIndex = 0;
  7155. _this.unitJson = [
  7156. {
  7157. dyName: "", //单元标题
  7158. easy: 1,
  7159. chapterInfo: [
  7160. {
  7161. isread: false,
  7162. chapterid: this.guid(),
  7163. title: "",
  7164. courseName: "",
  7165. taskJson: [
  7166. {
  7167. task: "",
  7168. taskDetail: "",
  7169. chapterData: [],
  7170. toolText: "",
  7171. toolChoose: [
  7172. {
  7173. tool: [],
  7174. toolDetail: "",
  7175. toolType: 0,
  7176. askCount: 1,
  7177. askTitle: "",
  7178. askJson: [
  7179. { askstitle: "", askItem: 1, checkList: [] },
  7180. ],
  7181. },
  7182. ],
  7183. isShowTools: false,
  7184. askCount: 1,
  7185. isFold: 1,
  7186. askTitle: "",
  7187. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7188. checkJson: [{ checkCount: [], checkPerent: [] }],
  7189. homeworkList: [],
  7190. },
  7191. ],
  7192. itemCount: 1,
  7193. fileList1: [],
  7194. video: [],
  7195. testData: [],
  7196. pData: [],
  7197. templateArray: [],
  7198. },
  7199. ],
  7200. },
  7201. ];
  7202. // this.steps++;
  7203. this.updateWork();
  7204. })
  7205. .catch(() => {
  7206. return;
  7207. });
  7208. },
  7209. checkTemplate4() {
  7210. let _this = this;
  7211. _this
  7212. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7213. confirmButtonText: "确定",
  7214. cancelButtonText: "取消",
  7215. type: "warning",
  7216. })
  7217. .then(() => {
  7218. _this.unitIndex = 0;
  7219. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7220. this.steps++;
  7221. this.updateWork();
  7222. })
  7223. .catch(() => {
  7224. return;
  7225. });
  7226. },
  7227. wordNext() {
  7228. this.dialogVisible2 = false;
  7229. },
  7230. isAddOrUpdateAttText() {
  7231. if (this.AttTextType == 0) {
  7232. this.addAttTextMessage();
  7233. } else {
  7234. this.updateAttText();
  7235. }
  7236. },
  7237. isAddOrUpdateLine() {
  7238. if (!this.lineTitle) {
  7239. this.$message.error("请填写链接标题");
  7240. return;
  7241. }
  7242. if (this.lineType == 0) {
  7243. this.addLine();
  7244. } else {
  7245. this.updateLine();
  7246. }
  7247. },
  7248. addAttTextMessage() {
  7249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7250. this.taskCount
  7251. ].chapterData.push({
  7252. name: this.AttText.title,
  7253. url: this.AttText.text,
  7254. type: 6,
  7255. });
  7256. this.imgChange1(null, null, 6, this.taskCount);
  7257. this.dialogVisible6 = false;
  7258. },
  7259. selectAttText(itemTaskIndex, i) {
  7260. this.AttText.title =
  7261. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7262. itemTaskIndex
  7263. ].chapterData[i].name;
  7264. this.AttText.text =
  7265. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7266. itemTaskIndex
  7267. ].chapterData[i].url;
  7268. this.taskCount = itemTaskIndex;
  7269. this.AttTextIndex = i;
  7270. this.AttTextType = 1;
  7271. this.dialogVisible6 = true;
  7272. },
  7273. updateAttText() {
  7274. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7275. this.taskCount
  7276. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7277. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7278. this.taskCount
  7279. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7280. this.dialogVisible6 = false;
  7281. },
  7282. addLine() {
  7283. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7284. this.lineCount
  7285. ].chapterData.push({
  7286. name: "链接",
  7287. title: this.lineTitle,
  7288. url: this.line,
  7289. type: 8,
  7290. });
  7291. this.imgChange1(null, null, 8, this.lineCount);
  7292. this.dialogVisible7 = false;
  7293. },
  7294. selectLine(itemTaskIndex, i) {
  7295. this.line =
  7296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7297. itemTaskIndex
  7298. ].chapterData[i].url;
  7299. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7300. itemTaskIndex
  7301. ].chapterData[i].title
  7302. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7303. .chapterData[i].title
  7304. : "";
  7305. this.taskCount = itemTaskIndex;
  7306. this.lineCount = i;
  7307. this.lineType = 1;
  7308. this.dialogVisible7 = true;
  7309. },
  7310. openUpdateSource(itemTaskIndex, i) {
  7311. this.sourceData = {}
  7312. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7313. this.sourceData[source.id] = {}
  7314. this.sourceData[source.id].name = source.title
  7315. this.sourceData[source.id].url = source.url
  7316. this.dialogVisibleSource = true;
  7317. this.updateSourcePan = true;
  7318. this.taskCount = itemTaskIndex;
  7319. this.lineCount = i;
  7320. },
  7321. updateLine() {
  7322. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7323. this.taskCount
  7324. ].chapterData[this.lineCount].url = this.line;
  7325. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7326. this.taskCount
  7327. ].chapterData[this.lineCount].title = this.lineTitle;
  7328. this.dialogVisible7 = false;
  7329. },
  7330. addPP() {
  7331. this.dialogVisible3 = true;
  7332. },
  7333. goTo(path) {
  7334. this.$router.push(path);
  7335. },
  7336. openTools(itemTaskIndex, i, toolIndex) {
  7337. this.toolIndex = toolIndex;
  7338. this.taskCount = itemTaskIndex;
  7339. if (i == 4) {
  7340. if (toolIndex == null) {
  7341. var a =
  7342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7343. .chapterData;
  7344. for (var i = 0; i < a.length; i++) {
  7345. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7346. this.askJson =
  7347. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7348. itemTaskIndex
  7349. ].chapterData[i].askJson;
  7350. }
  7351. }
  7352. } else {
  7353. this.askJson = JSON.parse(
  7354. JSON.stringify(
  7355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7356. itemTaskIndex
  7357. ].toolChoose[toolIndex]
  7358. )
  7359. );
  7360. }
  7361. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7362. this.dialogVisible5 = true;
  7363. } else if (i == 45) {
  7364. if (
  7365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7366. .toolChoose[toolIndex].testJson
  7367. ) {
  7368. this.testJson = JSON.parse(
  7369. JSON.stringify(
  7370. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7371. itemTaskIndex
  7372. ].toolChoose[toolIndex].testJson
  7373. )
  7374. );
  7375. } else {
  7376. var testJson = {
  7377. testCount: 1,
  7378. testTitle: "",
  7379. testJson: [
  7380. {
  7381. teststitle: "",
  7382. testItem: 1,
  7383. checkList: [],
  7384. timuList: [],
  7385. answer: [],
  7386. type: "1",
  7387. },
  7388. ],
  7389. };
  7390. this.testJson = testJson;
  7391. }
  7392. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7393. this.dialogVisibleChoice = true;
  7394. } else if (i == 47) {
  7395. if (
  7396. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7397. .toolChoose[toolIndex].sentenceList
  7398. ) {
  7399. this.sentenceList = JSON.parse(
  7400. JSON.stringify(
  7401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7402. itemTaskIndex
  7403. ].toolChoose[toolIndex].sentenceList
  7404. )
  7405. );
  7406. } else {
  7407. var sentenceList = [
  7408. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7409. ];
  7410. this.sentenceList = sentenceList;
  7411. }
  7412. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7413. this.dialogVisibleSentence = true;
  7414. } else if (i == 48) {
  7415. if (
  7416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7417. .toolChoose[toolIndex].tableJson
  7418. ) {
  7419. this.tableJson = JSON.parse(
  7420. JSON.stringify(
  7421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7422. itemTaskIndex
  7423. ].toolChoose[toolIndex].tableJson
  7424. )
  7425. );
  7426. } else {
  7427. var tableJson = { text: "" };
  7428. this.tableJson = tableJson;
  7429. }
  7430. this.dialogVisibleTable = true;
  7431. } else if (i == 52) {
  7432. if (
  7433. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7434. .toolChoose[toolIndex].wordJson
  7435. ) {
  7436. this.wordJson = JSON.parse(
  7437. JSON.stringify(
  7438. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7439. itemTaskIndex
  7440. ].toolChoose[toolIndex].wordJson
  7441. )
  7442. );
  7443. } else {
  7444. var wordJson = { text: "" };
  7445. this.wordJson = wordJson;
  7446. }
  7447. this.dialogVisibleWord = true;
  7448. // else if (i == 50) {
  7449. // if (
  7450. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7451. // .toolChoose[toolIndex].uploadJson
  7452. // ) {
  7453. // this.uploadJson = JSON.parse(
  7454. // JSON.stringify(
  7455. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7456. // itemTaskIndex
  7457. // ].toolChoose[toolIndex].uploadJson
  7458. // )
  7459. // );
  7460. // } else {
  7461. // var uploadJson = [];
  7462. // this.uploadJson = uploadJson;
  7463. // }
  7464. // this.dialogVisibleMoreUpload = true;
  7465. // }
  7466. } else if (i == 10) {
  7467. if (
  7468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7469. .toolChoose[toolIndex].preTime
  7470. ) {
  7471. this.preTime = JSON.parse(
  7472. JSON.stringify(
  7473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7474. itemTaskIndex
  7475. ].toolChoose[toolIndex].preTime
  7476. )
  7477. );
  7478. } else {
  7479. var preTime = 0;
  7480. this.preTime = preTime;
  7481. }
  7482. this.dialogVisiblePreTime = true;
  7483. } else if (i == 49) {
  7484. if (
  7485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7486. .toolChoose[toolIndex].groupJson
  7487. ) {
  7488. this.groupJson = JSON.parse(
  7489. JSON.stringify(
  7490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7491. itemTaskIndex
  7492. ].toolChoose[toolIndex].groupJson
  7493. )
  7494. );
  7495. } else {
  7496. var groupJson = {
  7497. group: [{ name: "第1组" }],
  7498. number: undefined,
  7499. islock: 1,
  7500. };
  7501. this.groupJson = groupJson;
  7502. }
  7503. this.dialogVisibleGroup = true;
  7504. } else if (i == 62) {
  7505. if (
  7506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7507. .toolChoose[toolIndex].videoJson
  7508. ) {
  7509. this.videoJson = JSON.parse(
  7510. JSON.stringify(
  7511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7512. itemTaskIndex
  7513. ].toolChoose[toolIndex].videoJson
  7514. )
  7515. );
  7516. } else {
  7517. var videoJson = {
  7518. video: "",
  7519. setting: [],
  7520. };
  7521. this.videoJson = videoJson;
  7522. }
  7523. this.dialogVisibleVideo = true;
  7524. } else if (i == 15) {
  7525. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7526. itemTaskIndex
  7527. ].toolChoose[toolIndex].answerQ
  7528. ? JSON.parse(
  7529. JSON.stringify(
  7530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7531. itemTaskIndex
  7532. ].toolChoose[toolIndex].answerQ
  7533. )
  7534. )
  7535. : "";
  7536. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7537. this.dialogVisible8 = true;
  7538. } else if (i == 40) {
  7539. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7540. itemTaskIndex
  7541. ].toolChoose[toolIndex].rateJson
  7542. ? JSON.parse(
  7543. JSON.stringify(
  7544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7545. itemTaskIndex
  7546. ].toolChoose[toolIndex].rateJson
  7547. )
  7548. )
  7549. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7550. this.selectSteps = 1;
  7551. this.dialogVisibleRate = true;
  7552. } else if (i == 42) {
  7553. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7554. itemTaskIndex
  7555. ].toolChoose[toolIndex].answerQ
  7556. ? JSON.parse(
  7557. JSON.stringify(
  7558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7559. itemTaskIndex
  7560. ].toolChoose[toolIndex].answerQ
  7561. )
  7562. )
  7563. : "";
  7564. this.dialogVisibleMp3 = true;
  7565. } else if (i == 41) {
  7566. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7567. itemTaskIndex
  7568. ].toolChoose[toolIndex].selectJson
  7569. ? JSON.parse(
  7570. JSON.stringify(
  7571. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7572. itemTaskIndex
  7573. ].toolChoose[toolIndex].selectJson
  7574. )
  7575. )
  7576. : { url: "", select: [], answer: [] };
  7577. this.selectSteps = 1;
  7578. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7579. this.dialogVisibleSelect = true;
  7580. } else if (i == 3) {
  7581. window.parent.postMessage(
  7582. {
  7583. tools: "3y",
  7584. cid: this.cid,
  7585. stage: this.unitIndex,
  7586. task: itemTaskIndex,
  7587. tool: toolIndex,
  7588. },
  7589. "*"
  7590. );
  7591. } else if (i == 1) {
  7592. window.parent.postMessage(
  7593. {
  7594. tools: "1y",
  7595. cid: this.cid,
  7596. stage: this.unitIndex,
  7597. task: itemTaskIndex,
  7598. tool: toolIndex,
  7599. },
  7600. "*"
  7601. );
  7602. } else if (i == 57) {
  7603. window.parent.postMessage(
  7604. {
  7605. tools: "57y",
  7606. cid: this.cid,
  7607. stage: this.unitIndex,
  7608. task: itemTaskIndex,
  7609. tool: toolIndex,
  7610. },
  7611. "*"
  7612. );
  7613. }else if(i == 69){
  7614. this.englishList = {};
  7615. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7616. itemTaskIndex
  7617. ].toolChoose[toolIndex].englishList
  7618. ? JSON.parse(
  7619. JSON.stringify(
  7620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7621. itemTaskIndex
  7622. ].toolChoose[toolIndex].englishList
  7623. )
  7624. )
  7625. : { };
  7626. this.$forceUpdate();
  7627. this.englishDialogVisible = true;
  7628. }
  7629. },
  7630. chapAddTools(i) {
  7631. if (this.chapTools[0].tools.length == 0) {
  7632. this.chapTools[0].tools.push(i);
  7633. } else {
  7634. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7635. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7636. } else {
  7637. this.chapTools[0].tools.push(i);
  7638. }
  7639. }
  7640. this.$forceUpdate();
  7641. },
  7642. addChaptersDataTools() {
  7643. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7645. this.chapCount
  7646. ].chapterData.push({
  7647. name: this.chapTools[0].toolDetail,
  7648. url: this.chapTools[0].tools,
  7649. type: 7,
  7650. askJson: this.askJson,
  7651. });
  7652. } else {
  7653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. this.chapCount
  7655. ].chapterData.push({
  7656. name: this.chapTools[0].toolDetail,
  7657. url: this.chapTools[0].tools,
  7658. type: 7,
  7659. });
  7660. }
  7661. this.imgChange1(null, null, 7, this.chapCount);
  7662. this.dialogVisible4 = false;
  7663. },
  7664. addTools(i, itemTaskIndex, toolIndex) {
  7665. // if (
  7666. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7667. // .toolChoose[toolIndex].tool.length == 0
  7668. // ) {
  7669. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7670. // itemTaskIndex
  7671. // ].toolChoose[toolIndex].tool.push(i);
  7672. // } else {
  7673. // if (
  7674. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7675. // itemTaskIndex
  7676. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7677. // ) {
  7678. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7679. // itemTaskIndex
  7680. // ].toolChoose[toolIndex].tool.splice(
  7681. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7682. // itemTaskIndex
  7683. // ].toolChoose[toolIndex].tool.indexOf(i),
  7684. // 1
  7685. // );
  7686. // } else {
  7687. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7688. // itemTaskIndex
  7689. // ].toolChoose[toolIndex].tool.push(i);
  7690. // }
  7691. // console.log(
  7692. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7693. // .toolChoose[toolIndex].tool
  7694. // );
  7695. // }
  7696. if (i == 4) {
  7697. if (
  7698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7699. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7701. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7702. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7703. .toolChoose[toolIndex].askJson[0].checkList < 2
  7704. ) {
  7705. this.openTools(itemTaskIndex, 4, toolIndex);
  7706. // this.$message({
  7707. // message: "请填写完整问卷内容",
  7708. // type: "error",
  7709. // });
  7710. return;
  7711. }
  7712. }
  7713. if (i == 45) {
  7714. if (
  7715. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7716. .toolChoose[toolIndex].testJson ||
  7717. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7718. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7720. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7721. ) {
  7722. this.openTools(itemTaskIndex, 45, toolIndex);
  7723. // this.$message({
  7724. // message: "请填写完整问卷内容",
  7725. // type: "error",
  7726. // });
  7727. return;
  7728. }
  7729. }
  7730. if (i == 47) {
  7731. if (
  7732. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7733. .toolChoose[toolIndex].sentenceList ||
  7734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7735. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7736. ) {
  7737. this.openTools(itemTaskIndex, 47, toolIndex);
  7738. return;
  7739. }
  7740. }
  7741. if(i == 69){
  7742. if (
  7743. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7744. .toolChoose[toolIndex].englishList
  7745. ) {
  7746. this.openTools(itemTaskIndex, 69, toolIndex);
  7747. return;
  7748. }
  7749. }
  7750. // if (i == 48) {
  7751. // if (
  7752. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7753. // .toolChoose[toolIndex].tableJson
  7754. // ) {
  7755. // this.openTools(itemTaskIndex, 48, toolIndex);
  7756. // return;
  7757. // }
  7758. // }
  7759. // if (i == 50) {
  7760. // if (
  7761. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7762. // .toolChoose[toolIndex].uploadJson
  7763. // ) {
  7764. // this.openTools(itemTaskIndex, 50, toolIndex);
  7765. // return;
  7766. // }
  7767. // }
  7768. if (i == 49) {
  7769. if (
  7770. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7771. .toolChoose[toolIndex].groupJson
  7772. ) {
  7773. this.openTools(itemTaskIndex, 49, toolIndex);
  7774. return;
  7775. }
  7776. }
  7777. if (i == 62) {
  7778. if (
  7779. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7780. .toolChoose[toolIndex].videoJson
  7781. ) {
  7782. this.openTools(itemTaskIndex, 62, toolIndex);
  7783. return;
  7784. }
  7785. }
  7786. if (i == 15) {
  7787. if (
  7788. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7789. .toolChoose[toolIndex].answerQ ||
  7790. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7791. .toolChoose[toolIndex].answerQ == ""
  7792. ) {
  7793. this.openTools(itemTaskIndex, 15, toolIndex);
  7794. // this.$message({
  7795. // message: "请填写问答内容",
  7796. // type: "error",
  7797. // });
  7798. return;
  7799. }
  7800. }
  7801. if (i == 40) {
  7802. if (
  7803. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7804. .toolChoose[toolIndex].rateJson ||
  7805. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7806. .toolChoose[toolIndex].rateJson.length
  7807. ) {
  7808. this.openTools(itemTaskIndex, 40, toolIndex);
  7809. return;
  7810. }
  7811. }
  7812. if (i == 41) {
  7813. if (
  7814. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7815. .toolChoose[toolIndex].selectJson ||
  7816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7817. .toolChoose[toolIndex].selectJson.url == "" ||
  7818. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7819. .toolChoose[toolIndex].selectJson.select.length ||
  7820. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7821. .toolChoose[toolIndex].selectJson.answer.length
  7822. ) {
  7823. this.openTools(itemTaskIndex, 41, toolIndex);
  7824. return;
  7825. }
  7826. }
  7827. if (i == 42) {
  7828. if (
  7829. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7830. .toolChoose[toolIndex].answerQ ||
  7831. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7832. .toolChoose[toolIndex].answerQ == ""
  7833. ) {
  7834. this.openTools(itemTaskIndex, 42, toolIndex);
  7835. return;
  7836. }
  7837. }
  7838. if (
  7839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7840. .toolChoose[toolIndex].tool.length > 0
  7841. ) {
  7842. if (
  7843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7844. itemTaskIndex
  7845. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7846. ) {
  7847. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7848. itemTaskIndex
  7849. ].toolChoose[toolIndex].tool.splice(
  7850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7851. itemTaskIndex
  7852. ].toolChoose[toolIndex].tool.indexOf(i),
  7853. 1
  7854. );
  7855. } else {
  7856. // this.$message({
  7857. // message: "每个工具只能添加一个",
  7858. // type: "error",
  7859. // });
  7860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7861. itemTaskIndex
  7862. ].toolChoose[toolIndex].tool = [];
  7863. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7864. itemTaskIndex
  7865. ].toolChoose[toolIndex].tool.push(i);
  7866. }
  7867. } else {
  7868. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7869. itemTaskIndex
  7870. ].toolChoose[toolIndex].tool.push(i);
  7871. }
  7872. this.$forceUpdate();
  7873. },
  7874. addAskList(index) {
  7875. this.askJson.askJson.splice(index + 1, 0, {
  7876. askstitle: "",
  7877. askItem: 1,
  7878. checkList: [],
  7879. })
  7880. this.askJson.askCount++;
  7881. },
  7882. addTestList(index) {
  7883. this.testJson.testJson.splice(index + 1, 0, {
  7884. teststitle: "",
  7885. testItem: 1,
  7886. checkList: [],
  7887. timuList: [],
  7888. answer: [],
  7889. type: "1",
  7890. })
  7891. this.testJson.testCount++;
  7892. },
  7893. deleteAskList(index) {
  7894. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  7895. this.askJson.askJson.splice(index, 1);
  7896. this.askJson.askCount--;
  7897. } else {
  7898. let _this = this;
  7899. _this
  7900. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7901. confirmButtonText: "确定",
  7902. cancelButtonText: "取消",
  7903. type: "warning",
  7904. })
  7905. .then(() => {
  7906. _this.askJson.askJson.splice(index, 1);
  7907. _this.askJson.askCount--;
  7908. })
  7909. .catch(() => {
  7910. return;
  7911. });
  7912. }
  7913. },
  7914. deleteTestList(index) {
  7915. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  7916. this.testJson.testJson.splice(index, 1);
  7917. this.testJson.testCount--;
  7918. } else {
  7919. let _this = this;
  7920. _this
  7921. .$confirm("此操作不可撤销,是否继续?", "提示", {
  7922. confirmButtonText: "确定",
  7923. cancelButtonText: "取消",
  7924. type: "warning",
  7925. })
  7926. .then(() => {
  7927. _this.testJson.testJson.splice(index, 1);
  7928. _this.testJson.testCount--;
  7929. })
  7930. .catch(() => {
  7931. return;
  7932. });
  7933. }
  7934. },
  7935. askMove(type, index) {
  7936. if (type == 1) {
  7937. if (index > 0) {
  7938. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  7939. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7940. this.askJson.askJson[index - 1] = b;
  7941. this.askJson.askJson[index] = a;
  7942. }
  7943. } else {
  7944. if (
  7945. index < this.askJson.askJson.length - 1
  7946. ) {
  7947. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  7948. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  7949. this.askJson.askJson[index + 1] = b;
  7950. this.askJson.askJson[index] = a;
  7951. }
  7952. }
  7953. this.$forceUpdate();
  7954. },
  7955. checkMove(type, index, checkIndex) {
  7956. if (type == 1) {
  7957. if (checkIndex > 0) {
  7958. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  7959. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7960. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  7961. this.askJson.askJson[index].checkList[checkIndex] = a;
  7962. }
  7963. } else {
  7964. if (
  7965. checkIndex < this.askJson.askJson[index].checkList.length - 1
  7966. ) {
  7967. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  7968. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  7969. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  7970. this.askJson.askJson[index].checkList[checkIndex] = a;
  7971. }
  7972. }
  7973. this.$forceUpdate();
  7974. },
  7975. testMove(type, index) {
  7976. if (type == 1) {
  7977. if (index > 0) {
  7978. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  7979. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7980. this.testJson.testJson[index - 1] = b;
  7981. this.testJson.testJson[index] = a;
  7982. }
  7983. } else {
  7984. if (
  7985. index < this.testJson.testJson.length - 1
  7986. ) {
  7987. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  7988. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  7989. this.testJson.testJson[index + 1] = b;
  7990. this.testJson.testJson[index] = a;
  7991. }
  7992. }
  7993. this.$forceUpdate();
  7994. },
  7995. tcheckMove(type, index, checkIndex) {
  7996. if (type == 1) {
  7997. if (checkIndex > 0) {
  7998. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  7999. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8000. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8001. this.testJson.testJson[index].checkList[checkIndex] = a;
  8002. }
  8003. } else {
  8004. if (
  8005. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8006. ) {
  8007. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8008. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8009. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8010. this.testJson.testJson[index].checkList[checkIndex] = a;
  8011. }
  8012. }
  8013. this.$forceUpdate();
  8014. },
  8015. addcheckList(json, index) {
  8016. // json.checkList.length++;
  8017. json.checkList.splice(index + 1, 0, '')
  8018. json.askItem++;
  8019. this.$forceUpdate();
  8020. },
  8021. deletecheckList(json, index) {
  8022. // json.checkList.length--;
  8023. json.checkList.splice(index, 1)
  8024. json.askItem--;
  8025. this.$forceUpdate();
  8026. },
  8027. addTcheckList(json, index) {
  8028. // json.checkList.length++;
  8029. json.checkList.splice(index + 1, 0, '')
  8030. json.testItem++;
  8031. this.$forceUpdate();
  8032. },
  8033. deleteTcheckList(json, index) {
  8034. // json.checkList.length--;
  8035. json.checkList.splice(index, 1)
  8036. json.testItem--;
  8037. this.$forceUpdate();
  8038. },
  8039. checkTestType(type, json) {
  8040. json.type = type;
  8041. setTimeout(() => {
  8042. json.answer = [];
  8043. }, 100)
  8044. },
  8045. checkAskType(type, json) {
  8046. json.type = type;
  8047. // json.checkList = [];
  8048. this.$forceUpdate();
  8049. },
  8050. addSelectList(json) {
  8051. json.select.push("");
  8052. json.answer.push("");
  8053. },
  8054. deleteSelectList(json) {
  8055. // json.select.length--;
  8056. // json.answer.length--;
  8057. json.select.splice(json.select.length - 1, 1);
  8058. json.answer.splice(json.answer.length - 1, 1);
  8059. },
  8060. addAsk() {
  8061. if (this.askJson.askTitle === "") {
  8062. this.$message.error("标题不能为空!");
  8063. return;
  8064. }
  8065. var aj = this.askJson.askJson;
  8066. var b = 1;
  8067. for (var i = 0; i < aj.length; i++) {
  8068. if (aj[i].askstitle === "") {
  8069. var a = 1;
  8070. for (let index = 0; index < aj[i].askItem; index++) {
  8071. const element = aj[i].checkList[index]
  8072. ? aj[i].checkList[index]
  8073. : "";
  8074. if (element != "") {
  8075. b++;
  8076. this.$message.error(`请将题目${i + 1}填写完整。`);
  8077. return;
  8078. } else {
  8079. a++;
  8080. }
  8081. }
  8082. if (b == 1) {
  8083. this.$message.error("至少填写一个问题");
  8084. return;
  8085. }
  8086. } else if (aj[i].askstitle != "") {
  8087. for (let index = 0; index < aj[i].askItem; index++) {
  8088. const element = aj[i].checkList[index]
  8089. ? aj[i].checkList[index]
  8090. : "";
  8091. var index = 0;
  8092. for (var z = 0; z < aj[i].checkList.length; z++) {
  8093. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8094. if (checkC != "") {
  8095. index++;
  8096. } else {
  8097. this.$message.error(`题目${i + 1}选项不能为空!`);
  8098. return;
  8099. }
  8100. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8101. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8102. if (checkC == checkC2) {
  8103. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8104. return;
  8105. }
  8106. }
  8107. }
  8108. b++;
  8109. if (index < 2) {
  8110. this.$message.error("每道题目至少需要设置2个选项。");
  8111. return;
  8112. }
  8113. }
  8114. }
  8115. }
  8116. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8117. var elc = el.checkList.filter((element) => {
  8118. return element != "";
  8119. });
  8120. return el.askstitle != "" && elc.length != 0;
  8121. });
  8122. if (!this.dialogVisible4) {
  8123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8124. this.taskCount
  8125. ].toolChoose[this.toolIndex] = this.askJson;
  8126. }
  8127. this.dialogVisible5 = false;
  8128. if (
  8129. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8130. .toolChoose[this.toolIndex].tool != 4
  8131. ) {
  8132. this.addTools(4, this.taskCount, this.toolIndex);
  8133. }
  8134. },
  8135. addTest() {
  8136. // if (this.testJson.testTitle === "") {
  8137. // this.$message.error("标题不能为空!");
  8138. // return;
  8139. // }
  8140. var aj = this.testJson.testJson;
  8141. var b = 1;
  8142. for (var i = 0; i < aj.length; i++) {
  8143. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8144. var a = 1;
  8145. for (let index = 0; index < aj[i].testItem; index++) {
  8146. const element = aj[i].checkList[index]
  8147. ? aj[i].checkList[index]
  8148. : "";
  8149. if (element != "") {
  8150. b++;
  8151. this.$message.error(`请将题目${i + 1}填写完整。`);
  8152. return;
  8153. } else {
  8154. a++;
  8155. }
  8156. }
  8157. if (b == 1) {
  8158. this.$message.error("至少填写一个问题");
  8159. return;
  8160. }
  8161. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8162. for (let index = 0; index < aj[i].testItem; index++) {
  8163. const element = aj[i].checkList[index]
  8164. ? aj[i].checkList[index]
  8165. : "";
  8166. var index = 0;
  8167. for (var z = 0; z < aj[i].checkList.length; z++) {
  8168. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8169. if (checkC != "") {
  8170. index++;
  8171. } else {
  8172. this.$message.error(`题目${i + 1}选项不能为空!`);
  8173. return;
  8174. }
  8175. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8176. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8177. if (checkC == checkC2) {
  8178. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8179. return;
  8180. }
  8181. }
  8182. }
  8183. b++;
  8184. if (index < 2) {
  8185. this.$message.error("每道题目至少需要设置2个选项。");
  8186. return;
  8187. }
  8188. if (
  8189. (aj[i].type == "2" && !aj[i].answer.length) ||
  8190. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8191. ) {
  8192. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8193. return;
  8194. }
  8195. }
  8196. }
  8197. }
  8198. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8199. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8200. var elc = el.checkList.filter((element) => {
  8201. return element != "";
  8202. });
  8203. return (
  8204. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8205. );
  8206. });
  8207. isTestJson.testCount = isTestJson.testJson.length;
  8208. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8209. this.taskCount
  8210. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8211. this.dialogVisibleChoice = false;
  8212. if (
  8213. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8214. .toolChoose[this.toolIndex].tool != 45
  8215. ) {
  8216. this.addTools(45, this.taskCount, this.toolIndex);
  8217. }
  8218. },
  8219. addVideoJson(videoJson) {
  8220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8221. this.taskCount
  8222. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8223. this.dialogVisibleVideo = false;
  8224. if (
  8225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8226. .toolChoose[this.toolIndex].tool != 62
  8227. ) {
  8228. this.addTools(62, this.taskCount, this.toolIndex);
  8229. }
  8230. },
  8231. //自动获取剪贴板
  8232. pasteOption() {
  8233. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8234. if (!iframe) {
  8235. this.$message.error("请使用AI共创生成题目");
  8236. return;
  8237. }
  8238. let copyData = iframe.contentWindow.copyData;
  8239. if (!copyData || !copyData.selectData.length) {
  8240. this.$message.error("请使用AI共创生成题目");
  8241. return;
  8242. }
  8243. let selectData = copyData.selectData;
  8244. for (var i = 0; i < selectData.length; i++) {
  8245. let answer = 0;
  8246. switch (selectData[i].answer[0]) {
  8247. case "A":
  8248. answer = 0;
  8249. break;
  8250. case "B":
  8251. answer = 1;
  8252. break;
  8253. case "C":
  8254. answer = 2;
  8255. break;
  8256. case "D":
  8257. answer = 3;
  8258. break;
  8259. case "E":
  8260. answer = 4;
  8261. break;
  8262. default:
  8263. break;
  8264. }
  8265. this.testJson.testJson.push({
  8266. teststitle: selectData[i].subject,
  8267. testItem: selectData[i].options.length,
  8268. checkList: selectData[i].options,
  8269. timuList: [],
  8270. answer: answer,
  8271. type: "1",
  8272. });
  8273. this.testJson.testCount++;
  8274. }
  8275. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8276. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8277. var elc = el.checkList.filter((element) => {
  8278. return element != "";
  8279. });
  8280. return (
  8281. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8282. );
  8283. });
  8284. isTestJson.testCount = isTestJson.testJson.length;
  8285. if(!isTestJson.testCount){
  8286. return;
  8287. }
  8288. this.testJson = isTestJson;
  8289. this.$forceUpdate();
  8290. },
  8291. pasteTask() {
  8292. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8293. if (!iframe) {
  8294. this.$message.error("请使用AI共创生成");
  8295. return;
  8296. }
  8297. let copyData = iframe.contentWindow.copyData;
  8298. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8299. this.$message.error("请使用AI共创生成");
  8300. return;
  8301. }
  8302. let stageTasksData = copyData.tasksData;
  8303. let taskA = [];
  8304. let tasks = stageTasksData;
  8305. for (var j = 0; j < tasks.length; j++) {
  8306. taskA.push({
  8307. task: tasks[j].taskName,
  8308. taskDetail: tasks[j].taskDecs,
  8309. chapterData: [],
  8310. toolText: "",
  8311. toolChoose: [
  8312. {
  8313. tool: [],
  8314. toolDetail: "",
  8315. toolType: 0,
  8316. askCount: 1,
  8317. askTitle: "",
  8318. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8319. },
  8320. ],
  8321. isShowTools: false,
  8322. askCount: 1,
  8323. isFold: 1,
  8324. askTitle: "",
  8325. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8326. checkJson: [{ checkCount: [], checkPerent: [] }],
  8327. homeworkList: [],
  8328. });
  8329. }
  8330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8331. this.$forceUpdate();
  8332. },
  8333. pasteStage() {
  8334. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8335. if (!iframe) {
  8336. this.$message.error("请使用AI共创生成");
  8337. return;
  8338. }
  8339. let copyData = iframe.contentWindow.copyData;
  8340. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8341. this.$message.error("请使用AI共创生成");
  8342. return;
  8343. }
  8344. let stageData = copyData.stageData;
  8345. let stage = [];
  8346. for (var i = 0; i < stageData.length; i++) {
  8347. stage.push({
  8348. dyName: stageData[i], //单元标题
  8349. chapterInfo: [
  8350. {
  8351. isread: false,
  8352. chapterid: this.guid(),
  8353. title: "",
  8354. courseName: "",
  8355. taskJson: [
  8356. {
  8357. task: "",
  8358. taskDetail: "",
  8359. chapterData: [],
  8360. toolText: "",
  8361. toolChoose: [
  8362. {
  8363. tool: [],
  8364. toolDetail: "",
  8365. toolType: 0,
  8366. askCount: 1,
  8367. askTitle: "",
  8368. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8369. },
  8370. ],
  8371. isShowTools: false,
  8372. askCount: 1,
  8373. isFold: 1,
  8374. askTitle: "",
  8375. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8376. checkJson: [{ checkCount: [], checkPerent: [] }],
  8377. homeworkList: [],
  8378. },
  8379. ],
  8380. itemCount: 1,
  8381. fileList1: [],
  8382. video: [],
  8383. testData: [],
  8384. pData: [],
  8385. templateArray: [],
  8386. },
  8387. ],
  8388. });
  8389. }
  8390. let _this = this;
  8391. _this
  8392. .$confirm("确定选择智能粘贴模板吗?修改课程时无法重置课程模板。", "提示", {
  8393. confirmButtonText: "确定",
  8394. cancelButtonText: "取消",
  8395. type: "warning",
  8396. })
  8397. .then(() => {
  8398. _this.unitIndex = 0;
  8399. _this.unitJson = stage;
  8400. // _this.steps++;
  8401. _this.updateWork();
  8402. })
  8403. .catch(() => {
  8404. return;
  8405. });
  8406. },
  8407. openStageBox() {
  8408. this.unitJson3 = JSON.parse(JSON.stringify(this.unitJson))
  8409. this.dialogVisibleStageChange = true;
  8410. },
  8411. updateChange() {
  8412. this.$confirm(
  8413. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  8414. "提示",
  8415. {
  8416. confirmButtonText: "确定",
  8417. cancelButtonText: "取消",
  8418. type: "warning",
  8419. }
  8420. )
  8421. .then(() => {
  8422. this.unitJson = JSON.parse(JSON.stringify(this.unitJson3))
  8423. this.updateWork()
  8424. this.dialogVisibleStageChange = false;
  8425. })
  8426. .catch(() => {
  8427. return;
  8428. });
  8429. },
  8430. addAnswer() {
  8431. if (this.answerQ == "") {
  8432. this.$message.error("请输入您想要问的问题");
  8433. return;
  8434. }
  8435. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8436. this.taskCount
  8437. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8438. this.dialogVisible8 = false;
  8439. if (
  8440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8441. .toolChoose[this.toolIndex].tool != 15
  8442. ) {
  8443. this.addTools(15, this.taskCount, this.toolIndex);
  8444. }
  8445. },
  8446. addMp3Answer() {
  8447. if (this.answerQ == "") {
  8448. this.$message.error("请输入您想要回答的问题");
  8449. return;
  8450. }
  8451. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8452. this.taskCount
  8453. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8454. this.dialogVisibleMp3 = false;
  8455. },
  8456. addRateAnswer() {
  8457. var a = 1;
  8458. for (var i = 0; i < this.rateJson.length; i++) {
  8459. if (this.rateJson[i].value == "") {
  8460. a = 2;
  8461. break;
  8462. }
  8463. }
  8464. if (a == 2) {
  8465. this.$message.error("请把评价信息填写完整");
  8466. return;
  8467. }
  8468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8469. this.taskCount
  8470. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8471. this.dialogVisibleRate = false;
  8472. if (
  8473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8474. .toolChoose[this.toolIndex].tool != 40
  8475. ) {
  8476. this.addTools(40, this.taskCount, this.toolIndex);
  8477. }
  8478. },
  8479. addSelectAnswer() {
  8480. if (this.selectJson.url == "") {
  8481. this.$message.error("请上传题目");
  8482. return;
  8483. }
  8484. if (!this.selectJson.select.length) {
  8485. this.$message.error("请添加选项");
  8486. return;
  8487. }
  8488. if (!this.selectJson.answer.length) {
  8489. this.$message.error("请设置答案");
  8490. return;
  8491. }
  8492. var a = 1;
  8493. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8494. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8495. a = 2;
  8496. }
  8497. }
  8498. if (a == 2) {
  8499. this.$message.error("请设置答案");
  8500. return;
  8501. }
  8502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8503. this.taskCount
  8504. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8505. this.dialogVisibleSelect = false;
  8506. if (
  8507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8508. .toolChoose[this.toolIndex].tool != 41
  8509. ) {
  8510. this.addTools(41, this.taskCount, this.toolIndex);
  8511. }
  8512. },
  8513. nextSelectSteps() {
  8514. if (this.selectJson.url == "") {
  8515. this.$message.error("请上传题目");
  8516. return;
  8517. }
  8518. if (!this.selectJson.select.length) {
  8519. this.$message.error("请添加选项");
  8520. return;
  8521. } else {
  8522. for (var z = 0; z < this.selectJson.select.length; z++) {
  8523. let checkC = this.selectJson.select[z];
  8524. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8525. let checkC2 = this.selectJson.select[z2];
  8526. if (checkC == checkC2) {
  8527. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8528. return;
  8529. }
  8530. }
  8531. }
  8532. }
  8533. var a = 1;
  8534. for (var i = 0; i < this.selectJson.select.length; i++) {
  8535. if (!this.selectJson.select[i]) {
  8536. a = 2;
  8537. }
  8538. }
  8539. if (a == 2) {
  8540. this.$message.error("添加的选项不能为空");
  8541. return;
  8542. }
  8543. this.selectSteps++;
  8544. },
  8545. selectCourseDetail() {
  8546. if (this.cid == "" || this.cid == undefined) {
  8547. console.log("这是新增课程");
  8548. this.selectAllType();
  8549. } else {
  8550. this.cidType = 1;
  8551. let params = {
  8552. cid: this.cid,
  8553. };
  8554. this.ajax
  8555. .get(this.$store.state.api + "select_course_detail", params)
  8556. .then((res) => {
  8557. this.loading = true;
  8558. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8559. this.courseState = res.data[0][0].state
  8560. for (var j = 0; j < this.unitJson.length; j++) {
  8561. for (
  8562. var k = 0;
  8563. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8564. k++
  8565. ) {
  8566. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8567. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8568. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8569. : [];
  8570. let _chapterData = [];
  8571. for (
  8572. var c = 0;
  8573. c <
  8574. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8575. .length;
  8576. c++
  8577. ) {
  8578. if (
  8579. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8580. ) {
  8581. _chapterData.push(
  8582. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8583. );
  8584. }
  8585. }
  8586. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8587. _chapterData;
  8588. }
  8589. }
  8590. this.$forceUpdate();
  8591. this.courseName = res.data[0][0].title;
  8592. this.courseText = res.data[0][0].brief;
  8593. this.evalua = res.data[0][0].evaId;
  8594. this.cover = JSON.parse(res.data[0][0].cover);
  8595. this.noneBtnImg = this.cover.length >= 1;
  8596. // this.checkboxList =
  8597. // res.data[0][0].course_student.length > 0
  8598. // ? JSON.parse(res.data[0][0].course_student)
  8599. // : [];
  8600. this.checkboxList2 = res.data[0][0].juri
  8601. ? res.data[0][0].juri.split(",")
  8602. : [];
  8603. this.inviteCode = [];
  8604. for (var i = 0; i < res.data[2].length; i++) {
  8605. this.inviteCode.push({
  8606. cid: res.data[2][i].classid,
  8607. ic: res.data[2][i].code,
  8608. });
  8609. }
  8610. this.checkboxList3 = res.data[0][0].course_teacher
  8611. ? res.data[0][0].course_teacher.split(",")
  8612. : [];
  8613. // this.isTeacherSee =
  8614. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8615. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8616. this.myWord = res.data[0][0].template;
  8617. this.templateC.id = "123";
  8618. this.courseUserid = res.data[0][0].userid;
  8619. // if(this.courseUserid == this.userid){
  8620. // this.InviteChange(this.checkboxList2)
  8621. // }
  8622. this.nbOrder = res.data[0][0].ordernumber;
  8623. this.courseTypeId = [];
  8624. for (var i = 0; i < res.data[1].length; i++) {
  8625. this.courseTypeId.push(res.data[1][i].typeid);
  8626. }
  8627. console.log(this.courseTypeId);
  8628. // if (this.timer) clearInterval(this.timer);
  8629. if (this.timer) clearTimeout(this.timer);
  8630. this.timer = null;
  8631. // this.timer = setInterval(() => {
  8632. this.seleteCourseUpdate();
  8633. this.setMan();
  8634. this.selectAllType();
  8635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8636. // }, 5000);
  8637. this.$forceUpdate();
  8638. setTimeout(() => {
  8639. this.checkEva(this.evalua);
  8640. setTimeout(() => {
  8641. this.checkEva(this.evalua);
  8642. }, 100);
  8643. }, 100);
  8644. })
  8645. .catch((err) => {
  8646. console.error(err);
  8647. });
  8648. }
  8649. },
  8650. seleteCourseUpdate() {
  8651. let params = {
  8652. cid: this.cid,
  8653. };
  8654. this.ajax
  8655. .get(this.$store.state.api + "select_course_detail", params)
  8656. .then((res) => {
  8657. // console.log(this.unitJson);
  8658. let unitJson = JSON.parse(res.data[0][0].chapters);
  8659. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8660. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8661. let _unitJson = [];
  8662. let _chapAarry = [];
  8663. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8664. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8665. let index = 1;
  8666. let chapindex;
  8667. if (_unitJson2.length > unitJson.length) {
  8668. for (let c = 0; c < _unitJson2.length; c++) {
  8669. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8670. }
  8671. for (let j = 0; j < unitJson.length; j++) {
  8672. let count = 0;
  8673. for (let k = 0; k < _unitJson2.length; k++) {
  8674. if (
  8675. unitJson[j].chapterInfo[0].chapterid ==
  8676. _unitJson2[k].chapterInfo[0].chapterid
  8677. ) {
  8678. count++;
  8679. _chapAarry.splice(
  8680. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8681. 1
  8682. );
  8683. _unitJson.push(unitJson[j]);
  8684. break;
  8685. }
  8686. }
  8687. // if(count === 0){
  8688. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8689. // }
  8690. }
  8691. for (let k = 0; k < _unitJson2.length; k++) {
  8692. if (_unitJson2[k].isUpdate == 1) {
  8693. _chapAarry.splice(
  8694. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8695. 1
  8696. );
  8697. _unitJson.push(_unitJson2[k]);
  8698. }
  8699. }
  8700. console.log(_chapAarry);
  8701. for (let d = 0; d < _unitJson2.length; d++) {
  8702. if (
  8703. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8704. ) {
  8705. if (_unitIndex == d) {
  8706. index = 2;
  8707. }
  8708. chapindex = d;
  8709. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8710. }
  8711. }
  8712. } else {
  8713. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8714. }
  8715. for (let i = 0; i < unitJson.length; i++) {
  8716. if (
  8717. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8718. _unitJson[i].chapterInfo[0].chapterid !=
  8719. unitJson[i].chapterInfo[0].chapterid
  8720. ) {
  8721. if (i == _unitJson.length - 1) {
  8722. // this.unitIndex++
  8723. _unitIndex2++;
  8724. }
  8725. _unitJson.splice(i, 0, unitJson[i]);
  8726. } else if (i > _unitJson.length - 1) {
  8727. _unitJson.push(unitJson[i]);
  8728. } else if (
  8729. _unitJson[i].chapterInfo[0].chapterid ==
  8730. unitJson[i].chapterInfo[0].chapterid
  8731. ) {
  8732. _unitJson[i] = unitJson[i];
  8733. }
  8734. // if (i == _unitIndex) {
  8735. // continue;
  8736. // } else
  8737. }
  8738. if (_chapAarry.length && index != 2) {
  8739. if (chapindex < _unitIndex) {
  8740. this.isDelete = 2;
  8741. // this.unitIndex--;
  8742. _unitIndex2--;
  8743. } else if (
  8744. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8745. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8746. ) {
  8747. this.isDelete = 2;
  8748. for (let n = 0; n < _unitJson.length; n++) {
  8749. if (
  8750. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8751. _unitJson[n].chapterInfo[0].chapterid
  8752. ) {
  8753. // this.unitIndex = n;
  8754. _unitIndex2 = n;
  8755. _unitJson[n] = _unitJson2[_unitIndex];
  8756. break;
  8757. }
  8758. }
  8759. }
  8760. } else if (index != 2) {
  8761. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8762. _unitJson2[_unitIndex];
  8763. for (
  8764. var ci = 0;
  8765. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8766. ci++
  8767. ) {
  8768. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8769. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8770. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8771. .toolChoose
  8772. : [];
  8773. let _chapterData = [];
  8774. for (
  8775. var c = 0;
  8776. c <
  8777. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8778. .length;
  8779. c++
  8780. ) {
  8781. if (
  8782. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8783. .chapterData[c]
  8784. ) {
  8785. _chapterData.push(
  8786. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8787. .chapterData[c]
  8788. );
  8789. }
  8790. }
  8791. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8792. _chapterData;
  8793. }
  8794. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8795. }
  8796. if (index == 1) {
  8797. this.unitJson = _unitJson;
  8798. this.$forceUpdate();
  8799. setTimeout(() => {
  8800. if (this.unitIndex != _unitIndex2) {
  8801. this.isDelete = 2;
  8802. this.unitIndex = _unitIndex2;
  8803. }
  8804. }, 0);
  8805. this.timer = setTimeout(() => {
  8806. this.seleteCourseUpdate();
  8807. }, 1000);
  8808. } else if (index == 2) {
  8809. let _this = this;
  8810. _this
  8811. .$confirm(
  8812. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8813. "提示",
  8814. {
  8815. confirmButtonText: "需要",
  8816. cancelButtonText: "取消",
  8817. type: "warning",
  8818. }
  8819. )
  8820. .then(() => {
  8821. if (_this.time()) {
  8822. _this.restoreWork(
  8823. _chapAarry[0],
  8824. _unitJson,
  8825. chapindex,
  8826. _unitJson2,
  8827. _unitIndex2
  8828. );
  8829. }
  8830. })
  8831. .catch(() => {
  8832. _this.unitJson = _unitJson;
  8833. _this.$forceUpdate();
  8834. setTimeout(() => {
  8835. if (this.unitIndex != _unitIndex2) {
  8836. this.isDelete = 2;
  8837. this.unitIndex = _unitIndex2;
  8838. }
  8839. }, 0);
  8840. _this.timer = setTimeout(() => {
  8841. _this.seleteCourseUpdate();
  8842. }, 1000);
  8843. });
  8844. }
  8845. })
  8846. .catch((err) => {
  8847. console.error(err);
  8848. });
  8849. },
  8850. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8851. let params = [
  8852. {
  8853. cid: this.cid,
  8854. chapters: JSON.stringify(this.unitJson),
  8855. uid: this.userid,
  8856. chapid: chapid,
  8857. },
  8858. ];
  8859. this.ajax
  8860. .post(this.$store.state.api + "restoreWork", params)
  8861. .then((res) => {
  8862. this.$message({
  8863. message: "恢复成功",
  8864. type: "success",
  8865. });
  8866. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8867. this.unitJson = unitJson;
  8868. this.$forceUpdate();
  8869. setTimeout(() => {
  8870. if (this.unitIndex != unitIndex2) {
  8871. this.isDelete = 2;
  8872. this.unitIndex = unitIndex2;
  8873. }
  8874. }, 0);
  8875. this.timer = setTimeout(() => {
  8876. this.seleteCourseUpdate();
  8877. }, 1000);
  8878. })
  8879. .catch((err) => {
  8880. this.$message.error("网络不佳");
  8881. console.error(err);
  8882. });
  8883. },
  8884. getTypeName() {
  8885. console.log(this.courseTypeId);
  8886. this.$forceUpdate();
  8887. },
  8888. selectAllType() {
  8889. let params = {
  8890. org: this.org && this.org != "" ? this.org : "",
  8891. oid: this.oid && this.oid != "" ? this.oid : "",
  8892. };
  8893. this.ajax
  8894. .get(this.$store.state.api + "selectAllType", params)
  8895. .then((res) => {
  8896. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8897. res.data[0] = [...res.data[0], ...res.data[4]]
  8898. }
  8899. this.CourseType = res.data;
  8900. this.CourseType2 = [
  8901. { name: "智见课程", id: [] },
  8902. { name: "智行课程", id: [] },
  8903. { name: "智创课程", id: [] },
  8904. ];
  8905. for (var cti = 0; cti < res.data[0].length; cti++) {
  8906. if (
  8907. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  8908. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  8909. ) {
  8910. this.CourseType2[0].id.push(res.data[0][cti].id);
  8911. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  8912. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8913. this.CourseType2[1].id.push(res.data[0][cti].id);
  8914. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8915. this.CourseType2[2].id.push(res.data[0][cti].id);
  8916. }
  8917. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  8918. res.data[0][cti].name = "年级";
  8919. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  8920. res.data[0][cti].name = "学科";
  8921. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  8922. res.data[0][cti].name = "主题";
  8923. }
  8924. }
  8925. let _courseTypeId = [];
  8926. for (var i = 0; i < res.data[0].length; i++) {
  8927. if (!this.cid) {
  8928. this.courseTypeId[res.data[0][i].id] = [];
  8929. }
  8930. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8931. // }
  8932. this.CourseTypeJson[res.data[0][i].id] = [];
  8933. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8934. if (res.data[0][i].name == "栏目") {
  8935. this.CourseType[0][i].name = "主题";
  8936. }
  8937. }
  8938. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8939. for (var j = 0; j < res.data[1].length; j++) {
  8940. if (
  8941. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8942. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8943. ) {
  8944. _courseTypeId.push(res.data[1][j].id);
  8945. }
  8946. if (res.data[0][i].id == res.data[1][j].pid) {
  8947. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8948. }
  8949. }
  8950. } else {
  8951. if (res.data[2].length > 0) {
  8952. for (var j = 0; j < res.data[2].length; j++) {
  8953. if (
  8954. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8955. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8956. ) {
  8957. _courseTypeId.push(res.data[2][j].id);
  8958. }
  8959. if (res.data[0][i].id == res.data[2][j].pid) {
  8960. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8961. }
  8962. }
  8963. }
  8964. if (res.data[3].length > 0) {
  8965. for (var j = 0; j < res.data[3].length; j++) {
  8966. if (
  8967. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8968. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8969. ) {
  8970. _courseTypeId.push(res.data[3][j].id);
  8971. }
  8972. if (res.data[0][i].id == res.data[3][j].pid) {
  8973. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8974. }
  8975. }
  8976. }
  8977. }
  8978. }
  8979. this.courseTypeId = _courseTypeId;
  8980. })
  8981. .catch((err) => {
  8982. console.error(err);
  8983. });
  8984. },
  8985. selectType() {
  8986. this.ajax
  8987. .get(this.$store.state.api + "selectType")
  8988. .then((res) => {
  8989. this.CourseType = res.data;
  8990. for (var i = 0; i < res.data[0].length; i++) {
  8991. if (!this.cid) {
  8992. this.courseTypeId[res.data[0][i].id] = "";
  8993. }
  8994. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8995. if (res.data[0][i].name == "栏目") {
  8996. this.CourseType[0][i].name = "主题";
  8997. }
  8998. }
  8999. for (var j = 0; j < res.data[1].length; j++) {
  9000. if (res.data[0][i].id == res.data[1][j].pid) {
  9001. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9002. this.CourseTypeJson[res.data[0][i].id] = [];
  9003. }
  9004. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9005. }
  9006. }
  9007. }
  9008. this.selectTypeByOid();
  9009. this.selectTypeByOrg();
  9010. })
  9011. .catch((err) => {
  9012. console.error(err);
  9013. });
  9014. },
  9015. selectTypeByOid() {
  9016. let params = {
  9017. oid: this.oid,
  9018. };
  9019. this.ajax
  9020. .get(this.$store.state.api + "selectTypeByOid", params)
  9021. .then((res) => {
  9022. for (var i = 0; i < res.data[0].length; i++) {
  9023. for (var j = 0; j < res.data[1].length; j++) {
  9024. if (res.data[0][i].id == res.data[1][j].pid) {
  9025. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9026. this.CourseTypeJson[res.data[0][i].id] = [];
  9027. }
  9028. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9029. }
  9030. }
  9031. }
  9032. })
  9033. .catch((err) => {
  9034. console.error(err);
  9035. });
  9036. },
  9037. selectTypeByOrg() {
  9038. let params = {
  9039. oid: this.org,
  9040. };
  9041. this.ajax
  9042. .get(this.$store.state.api + "selectTypeByOrg", params)
  9043. .then((res) => {
  9044. for (var i = 0; i < res.data[0].length; i++) {
  9045. for (var j = 0; j < res.data[1].length; j++) {
  9046. if (res.data[0][i].id == res.data[1][j].pid) {
  9047. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9048. this.CourseTypeJson[res.data[0][i].id] = [];
  9049. }
  9050. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9051. }
  9052. }
  9053. }
  9054. this.$forceUpdate();
  9055. })
  9056. .catch((err) => {
  9057. console.error(err);
  9058. });
  9059. },
  9060. OtherMb(type, task) {
  9061. if(task === 0 || task){
  9062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[task].isEvaFold = true;
  9063. }
  9064. this.typeMode = type;
  9065. setTimeout(() => {
  9066. this.checkEva(this.checkId);
  9067. setTimeout(() => {
  9068. this.checkEva(this.checkId);
  9069. }, 100);
  9070. }, 100);
  9071. },
  9072. openMember() {
  9073. this.searchTN = "";
  9074. this.getTeacher();
  9075. this.dialogVisibleMember = true;
  9076. },
  9077. checkEva(id, type) {
  9078. this.dialogVisiblemb = false;
  9079. this.selectEva();
  9080. if (this.evalua != id && type == 2) {
  9081. this.$message.success("导入成功");
  9082. setTimeout(() => {
  9083. this.checkEva(id)
  9084. }, 100);
  9085. }
  9086. this.evalua = id;
  9087. this.checkId = id;
  9088. if (this.evalua != "") {
  9089. for (var i = 0; i < this.evaJuri.length; i++) {
  9090. if (this.evalua == this.evaJuri[i].id) {
  9091. this.eTitle = this.evaJuri[i].title;
  9092. this.eJson = JSON.parse(this.evaJuri[i].content);
  9093. }
  9094. }
  9095. this.data.data = [];
  9096. this.$forceUpdate();
  9097. setTimeout(() => {
  9098. this.setMindData();
  9099. }, 1000);
  9100. }
  9101. },
  9102. deleteEva() {
  9103. let _this = this;
  9104. if (_this.evalua == "") {
  9105. this.$message.warning("内容已经清空了,请勿重复清空");
  9106. return;
  9107. }
  9108. _this
  9109. .$confirm("确定删除此目标吗?", "提示", {
  9110. confirmButtonText: "确定",
  9111. cancelButtonText: "取消",
  9112. type: "warning",
  9113. })
  9114. .then(() => {
  9115. _this.evalua = "";
  9116. _this.checkId = "";
  9117. _this.eTitle = "";
  9118. let _unitJson = _this.unitJson;
  9119. for (var i = 0; i < _unitJson.length; i++) {
  9120. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9121. for (var j = 0; j < _task.length; j++) {
  9122. let _eList = _task[j].eList;
  9123. for (var k = 0; k < _eList.length; k++) {
  9124. delete _eList[k].target;
  9125. }
  9126. }
  9127. }
  9128. _this.$forceUpdate();
  9129. if (_this.cid) {
  9130. _this.updateWork();
  9131. }
  9132. })
  9133. .catch(() => {
  9134. return;
  9135. });
  9136. },
  9137. selectEva() {
  9138. let params = {
  9139. oid: this.oid,
  9140. };
  9141. this.ajax
  9142. .get(this.$store.state.api + "selectAllEvaluation", params)
  9143. .then((res) => {
  9144. this.evaJuri = res.data[0];
  9145. })
  9146. .catch((err) => {
  9147. console.error(err);
  9148. });
  9149. },
  9150. setMindData() {
  9151. let targetArray = [];
  9152. this.data.data = [];
  9153. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9154. let _eJson = Object.keys(this.eJson);
  9155. let _e = this.eJson;
  9156. for (let i = 0; i < _eJson.length; i++) {
  9157. let element = _e[_eJson[i]];
  9158. this.data.data.push({
  9159. id: element.id,
  9160. parentid: "root",
  9161. topic: element.name,
  9162. });
  9163. // targetArray.push({
  9164. // id: element.id,
  9165. // parentid: "root",
  9166. // name: element.name,
  9167. // });
  9168. targetArray.push({
  9169. value: element.name,
  9170. label: element.name,
  9171. children: [],
  9172. });
  9173. let _eJsonc = Object.keys(element.child);
  9174. let _e2 = element.child;
  9175. for (let j = 0; j < _eJsonc.length; j++) {
  9176. let _ec = _e2[_eJsonc[j]];
  9177. this.data.data.push({
  9178. id: _ec.id,
  9179. parentid: element.id,
  9180. topic: _ec.name,
  9181. });
  9182. // targetArray.push({
  9183. // id: _ec.id,
  9184. // parentid: element.id,
  9185. // name: _ec.name,
  9186. // });
  9187. targetArray[i].children.push({
  9188. value: _ec.name,
  9189. label: _ec.name,
  9190. children: [],
  9191. });
  9192. let _eJsonz = Object.keys(_ec.child);
  9193. let _e3 = _ec.child;
  9194. for (let z = 0; z < _eJsonz.length; z++) {
  9195. let _ez = _e3[_eJsonz[z]];
  9196. this.data.data.push({
  9197. id: _ez.id,
  9198. parentid: _ec.id,
  9199. topic: _ez.name,
  9200. });
  9201. // targetArray.push({
  9202. // id: _ez.id,
  9203. // parentid: _ec.id,
  9204. // name: _ez.name,
  9205. // });
  9206. targetArray[i].children[j].children.push({
  9207. value: _ez.name,
  9208. label: _ez.name,
  9209. });
  9210. }
  9211. }
  9212. }
  9213. this.targetArray = targetArray;
  9214. this.$forceUpdate();
  9215. },
  9216. /*添加评价 */
  9217. addEList(index, tIndex) {
  9218. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9219. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9220. value: "",
  9221. detail: "",
  9222. score: 5,
  9223. })
  9224. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9225. { value: "", detail: "", score: 5 },
  9226. ]);
  9227. this.$forceUpdate();
  9228. },
  9229. forceUpdate() {
  9230. this.$forceUpdate();
  9231. },
  9232. deletEList(index, tIndex, eIndex) {
  9233. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9234. eIndex,
  9235. 1
  9236. );
  9237. this.$forceUpdate();
  9238. },
  9239. getChoosePic(t) {
  9240. this.chooseType = t;
  9241. this.getAllBanner();
  9242. },
  9243. getAllBanner() {
  9244. this.sysPicVisible = true;
  9245. let params = {
  9246. t: this.chooseType,
  9247. };
  9248. this.ajax
  9249. .get(this.$store.state.api + "selectAllBanner", params)
  9250. .then((res) => {
  9251. this.sysPic = res.data[0];
  9252. })
  9253. .catch((err) => {
  9254. console.error(err);
  9255. });
  9256. },
  9257. // getClass() {
  9258. // let params = {
  9259. // oid: this.oid,
  9260. // };
  9261. // this.ajax
  9262. // .get(this.$store.state.api + "selectClassBySchool", params)
  9263. // .then((res) => {
  9264. // this.classJuri = res.data[0];
  9265. // })
  9266. // .catch((err) => {
  9267. // console.error(err);
  9268. // });
  9269. // },
  9270. deleteSysPic() {
  9271. this.cover = [];
  9272. this.isSysPic = false;
  9273. this.isSysPic2 = false;
  9274. },
  9275. deleteSelectPic() {
  9276. this.selectJson.url = "";
  9277. },
  9278. setEListStar() {
  9279. this.$forceUpdate();
  9280. },
  9281. deletRateList(i) {
  9282. this.rateJson.splice(i, 1);
  9283. },
  9284. addRateList() {
  9285. this.rateJson.push({ detail: "", score: 5, value: "" });
  9286. },
  9287. addSt() {
  9288. this.sentenceList.push({
  9289. sentenceTitle: "",
  9290. addSentence: [],
  9291. rightAnswer: [],
  9292. });
  9293. },
  9294. addSen(i) {
  9295. if (!this.sentenceList[i].sentenceTitle) {
  9296. this.$message.error("请填写卡片内容!");
  9297. return;
  9298. }
  9299. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9300. this.$message.error("卡片内容字数不能超过10位");
  9301. return;
  9302. }
  9303. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9304. this.$message.error("不能添加重复的卡片内容!");
  9305. return;
  9306. }
  9307. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9308. // this.isPushTitleList.push(this.sentenceTitle);
  9309. this.sentenceList[i].sentenceTitle = "";
  9310. },
  9311. setRightAnswer(s, i, j) {
  9312. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9313. this.sentenceList[i].rightAnswer.push(s);
  9314. }
  9315. },
  9316. returnCard(r, i, j) {
  9317. this.sentenceList[i].rightAnswer.splice(j, 1);
  9318. },
  9319. addSentenceTool() {
  9320. for (var i = 0; i < this.sentenceList.length; i++) {
  9321. if (this.sentenceList[i].rightAnswer.length == 0) {
  9322. this.$message.error(`请将题目${i + 1}设置完整。`);
  9323. return;
  9324. }
  9325. if (
  9326. this.sentenceList[i].addSentence.length !=
  9327. this.sentenceList[i].rightAnswer.length
  9328. ) {
  9329. this.$message.error(`请将题目${i + 1}设置完整。`);
  9330. return;
  9331. }
  9332. }
  9333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9334. this.taskCount
  9335. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9336. this.sentenceList = [
  9337. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9338. ];
  9339. this.dialogVisibleSentence = false;
  9340. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9341. // itemTaskIndex
  9342. // ].toolChoose[toolIndex].tool = [];
  9343. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9344. // itemTaskIndex
  9345. // ].toolChoose[toolIndex].tool.push(i);
  9346. if (
  9347. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9348. .toolChoose[this.toolIndex].tool != 47
  9349. ) {
  9350. this.addTools(47, this.taskCount, this.toolIndex);
  9351. }
  9352. },
  9353. addTableJson() {
  9354. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9355. // this.$message.error("请将信息填写完整!");
  9356. // return;
  9357. // }
  9358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9359. this.taskCount
  9360. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9361. // this.tableJson = [{ text: "" }];
  9362. // this.dialogVisibleTable = false;
  9363. this.$message.success("上传成功");
  9364. if (
  9365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9366. .toolChoose[this.toolIndex].tool != 48
  9367. ) {
  9368. this.addTools(48, this.taskCount, this.toolIndex);
  9369. }
  9370. },
  9371. addWordJson() {
  9372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9373. this.taskCount
  9374. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9375. // this.wordJson = [{ text: "" }];
  9376. // this.dialogVisibleWord = false;
  9377. this.$message.success("上传成功");
  9378. if (
  9379. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9380. .toolChoose[this.toolIndex].tool != 52
  9381. ) {
  9382. this.addTools(52, this.taskCount, this.toolIndex);
  9383. }
  9384. },
  9385. addMoreUpload() {
  9386. if (this.uploadJson.length == 0) {
  9387. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9388. this.taskCount
  9389. ].toolChoose[this.toolIndex].uploadJson = [];
  9390. } else {
  9391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9392. this.taskCount
  9393. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9394. }
  9395. this.uploadJson = [];
  9396. this.dialogVisibleMoreUpload = false;
  9397. if (
  9398. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9399. .toolChoose[this.toolIndex].tool != 50
  9400. ) {
  9401. this.addTools(50, this.taskCount, this.toolIndex);
  9402. }
  9403. },
  9404. addPreTime() {
  9405. if (this.preTime == 0) {
  9406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9407. this.taskCount
  9408. ].toolChoose[this.toolIndex].preTime = 0;
  9409. } else {
  9410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9411. this.taskCount
  9412. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9413. }
  9414. this.preTime = 0;
  9415. this.dialogVisiblePreTime = false;
  9416. if (
  9417. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9418. .toolChoose[this.toolIndex].tool != 10
  9419. ) {
  9420. this.addTools(10, this.taskCount, this.toolIndex);
  9421. }
  9422. },
  9423. goToTask(i) {
  9424. this.toolIndexType = ''
  9425. if (this.isClickColor == (i + 1)) {
  9426. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9427. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9428. // } else {
  9429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9430. // }
  9431. this.$forceUpdate();
  9432. return;
  9433. }
  9434. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9435. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9436. // } else {
  9437. document.querySelectorAll(".basic_box")[0].scrollTop =
  9438. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9439. this.isClickColor = i + 1;
  9440. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9441. // }
  9442. this.$forceUpdate();
  9443. },
  9444. taskOpen(i, stageIndex){
  9445. if (this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9446. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9447. } else {
  9448. this.unitJson[stageIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9449. }
  9450. this.updateWork3(stageIndex)
  9451. this.$forceUpdate();
  9452. },
  9453. goToTask2(i, stage) {
  9454. this.toolIndexType = ''
  9455. if (this.isClickColor == (i + 1) && this.unitIndex == stage) {
  9456. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9457. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9458. // } else {
  9459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9460. // }
  9461. this.$forceUpdate();
  9462. return;
  9463. }
  9464. if(this.unitIndex != stage){
  9465. if(this.panUnitJson() == 2){
  9466. return;
  9467. }
  9468. this.unitSet(stage)
  9469. }
  9470. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9471. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9472. // } else {
  9473. document.querySelectorAll(".basic_box")[0].scrollTop =
  9474. document.querySelectorAll(".taskBorder")[i].offsetTop - 100;
  9475. this.isClickColor = i + 1;
  9476. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9477. // }
  9478. this.$forceUpdate();
  9479. },
  9480. taskMove(type, index) {
  9481. this.$confirm(
  9482. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9483. "提示",
  9484. {
  9485. confirmButtonText: "确定",
  9486. cancelButtonText: "取消",
  9487. type: "warning",
  9488. }
  9489. )
  9490. .then(() => {
  9491. if (type == 1) {
  9492. if (index > 0) {
  9493. let a = JSON.parse(
  9494. JSON.stringify(
  9495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9496. index - 1
  9497. ]
  9498. )
  9499. );
  9500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9503. }
  9504. } else {
  9505. if (
  9506. index <
  9507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9508. ) {
  9509. let a = JSON.parse(
  9510. JSON.stringify(
  9511. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9512. index + 1
  9513. ]
  9514. )
  9515. );
  9516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9519. }
  9520. }
  9521. this.$forceUpdate();
  9522. })
  9523. .catch(() => {
  9524. return;
  9525. });
  9526. },
  9527. stageMove(type, index) {
  9528. if (type == 1) {
  9529. if (index > 0) {
  9530. let a = JSON.parse(
  9531. JSON.stringify(
  9532. this.unitJson3[index - 1]
  9533. )
  9534. );
  9535. let acid = JSON.parse(JSON.stringify(this.unitJson3[index - 1].chapterInfo[0].chapterid))
  9536. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9537. this.unitJson3[index - 1] = this.unitJson3[index];
  9538. this.unitJson3[index] = a;
  9539. this.unitJson3[index - 1].chapterInfo[0].chapterid = acid;
  9540. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9541. }
  9542. } else {
  9543. if (
  9544. index <
  9545. this.unitJson3.length - 1
  9546. ) {
  9547. let a = JSON.parse(
  9548. JSON.stringify(
  9549. this.unitJson3[
  9550. index + 1
  9551. ]
  9552. )
  9553. );
  9554. let acid = JSON.parse(JSON.stringify(this.unitJson3[index + 1].chapterInfo[0].chapterid))
  9555. let bcid = JSON.parse(JSON.stringify(this.unitJson3[index].chapterInfo[0].chapterid))
  9556. this.unitJson3[index + 1] =
  9557. this.unitJson3[index];
  9558. this.unitJson3[index] = a;
  9559. this.unitJson3[index + 1].chapterInfo[0].chapterid = acid;
  9560. this.unitJson3[index].chapterInfo[0].chapterid = bcid;
  9561. }
  9562. }
  9563. this.$forceUpdate();
  9564. },
  9565. addGroup(i) {
  9566. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9567. this.groupJson.group.push({
  9568. name: "第" + (this.groupJson.group.length + 1) + "组",
  9569. });
  9570. },
  9571. deleteGroup(i) {
  9572. this.groupJson.group.splice(i, 1);
  9573. },
  9574. numberPan() {
  9575. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9576. this.$message.error('请输入2-10的数字')
  9577. this.groupJson.number = ''
  9578. }
  9579. },
  9580. addGroupJson() {
  9581. for (var i = 0; i < this.groupJson.group.length; i++) {
  9582. if (!this.groupJson.group[i].name) {
  9583. this.$message.error("请将信息填写完整!");
  9584. return;
  9585. }
  9586. }
  9587. if (!this.groupJson.number) {
  9588. this.$message.error("请将信息填写完整!");
  9589. return;
  9590. }
  9591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9592. this.taskCount
  9593. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9594. JSON.stringify(this.groupJson)
  9595. );
  9596. this.dialogVisibleGroup = false;
  9597. this.groupJson = {};
  9598. if (
  9599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9600. .toolChoose[this.toolIndex].tool != 49
  9601. ) {
  9602. this.addTools(49, this.taskCount, this.toolIndex);
  9603. }
  9604. },
  9605. updateTime(preTime) {
  9606. this.preTime = preTime;
  9607. },
  9608. InviteChange(val) {
  9609. console.log(val);
  9610. let _check = []
  9611. let _check2 = []
  9612. for (var i = 0; i < this.grade2.length; i++) {
  9613. var gid = this.grade2[i].id
  9614. _check.push(gid)
  9615. }
  9616. for (var i = 0; i < this.checkboxList2.length; i++) {
  9617. var _id = this.checkboxList2[i]
  9618. if (_check.indexOf(_id) !== -1) {
  9619. _check2.push(_id)
  9620. }
  9621. }
  9622. this.checkAll = _check2.length === _check.length;
  9623. return;
  9624. let array = JSON.parse(JSON.stringify(val));
  9625. this.inviteCode = this.inviteCode.filter((el) => {
  9626. if (val.indexOf(el.cid) != -1) {
  9627. array.splice(array.indexOf(el.cid), 1);
  9628. return el;
  9629. }
  9630. });
  9631. for (var i = 0; i < array.length; i++) {
  9632. this.getInviteCode(array[i]);
  9633. }
  9634. },
  9635. InviteChange2(val) {
  9636. console.log(val);
  9637. let _check = []
  9638. let _check2 = []
  9639. for (var i = 0; i < this.teacherJuri.length; i++) {
  9640. var gid = this.teacherJuri[i].userid
  9641. _check.push(gid)
  9642. }
  9643. for (var i = 0; i < this.checkboxList3.length; i++) {
  9644. var _id = this.checkboxList3[i]
  9645. if (_check.indexOf(_id) !== -1) {
  9646. _check2.push(_id)
  9647. }
  9648. }
  9649. this.checkAll2 = _check2.length === _check.length;
  9650. this.setMan();
  9651. return;
  9652. let array = JSON.parse(JSON.stringify(val));
  9653. this.inviteCode = this.inviteCode.filter((el) => {
  9654. if (val.indexOf(el.cid) != -1) {
  9655. array.splice(array.indexOf(el.cid), 1);
  9656. return el;
  9657. }
  9658. });
  9659. for (var i = 0; i < array.length; i++) {
  9660. this.getInviteCode(array[i]);
  9661. }
  9662. },
  9663. handleCheckAllChange(val) {
  9664. if (val) {
  9665. for (var i = 0; i < this.grade2.length; i++) {
  9666. var gid = this.grade2[i].id
  9667. if (this.checkboxList2.indexOf(gid) === -1) {
  9668. this.checkboxList2.push(gid)
  9669. }
  9670. }
  9671. } else {
  9672. let _check = []
  9673. let _check2 = []
  9674. for (var i = 0; i < this.grade2.length; i++) {
  9675. var gid = this.grade2[i].id
  9676. _check.push(gid)
  9677. }
  9678. for (var i = 0; i < this.checkboxList2.length; i++) {
  9679. var _id = this.checkboxList2[i]
  9680. if (_check.indexOf(_id) === -1) {
  9681. _check2.push(_id)
  9682. }
  9683. }
  9684. this.checkboxList2 = _check2
  9685. }
  9686. this.isIndeterminate = false;
  9687. },
  9688. handleCheckAllChange2(val) {
  9689. if (val) {
  9690. for (var i = 0; i < this.teacherJuri.length; i++) {
  9691. var gid = this.teacherJuri[i].userid
  9692. if (this.checkboxList3.indexOf(gid) === -1) {
  9693. this.checkboxList3.push(gid)
  9694. }
  9695. }
  9696. } else {
  9697. let _check = []
  9698. let _check2 = []
  9699. for (var i = 0; i < this.teacherJuri.length; i++) {
  9700. var gid = this.teacherJuri[i].userid
  9701. _check.push(gid)
  9702. }
  9703. for (var i = 0; i < this.checkboxList3.length; i++) {
  9704. var _id = this.checkboxList3[i]
  9705. if (_check.indexOf(_id) === -1) {
  9706. _check2.push(_id)
  9707. }
  9708. }
  9709. this.checkboxList3 = _check2
  9710. }
  9711. this.isIndeterminate2 = false;
  9712. },
  9713. async getInviteCode(cid) {
  9714. let code = this.randomNumber();
  9715. let params = {
  9716. code: code,
  9717. oid: this.oid,
  9718. };
  9719. let type = 1;
  9720. for (var i = 0; i < this.inviteCode.length; i++) {
  9721. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9722. type = 2;
  9723. }
  9724. }
  9725. if (type == 2) {
  9726. this.getInviteCode(cid);
  9727. return;
  9728. }
  9729. const res = await this.ajax.get(
  9730. this.$store.state.api + "selectInviteCode2",
  9731. params
  9732. );
  9733. if (
  9734. res.data.length &&
  9735. res.data[0].length &&
  9736. res.data[0][0].courseId != this.cid
  9737. ) {
  9738. this.getInviteCode(cid);
  9739. return;
  9740. }
  9741. let array = [];
  9742. for (var i = 0; i < this.inviteCode.length; i++) {
  9743. array.push(this.inviteCode[i].cid);
  9744. }
  9745. if (array.indexOf(cid) != -1) {
  9746. this.inviteCode[array.indexOf(cid)].ic = code;
  9747. } else {
  9748. this.inviteCode.push({ cid: cid, ic: code });
  9749. }
  9750. },
  9751. OpenInviteD(cid) {
  9752. let array = [];
  9753. this.icode = "";
  9754. for (var i = 0; i < this.inviteCode.length; i++) {
  9755. array.push(this.inviteCode[i].cid);
  9756. }
  9757. if (array.indexOf(cid) != -1) {
  9758. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9759. }
  9760. this.inviteId = cid;
  9761. this.dialogVisibleInvite = true;
  9762. },
  9763. addInvite() {
  9764. let reg = /^[A-Za-z0-9]{4,}$/;
  9765. if (!reg.test(this.icode)) {
  9766. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9767. return;
  9768. }
  9769. let type = 1;
  9770. for (var i = 0; i < this.inviteCode.length; i++) {
  9771. if (
  9772. this.inviteCode[i].cid != this.inviteId &&
  9773. this.icode == this.inviteCode[i].ic
  9774. ) {
  9775. type = 2;
  9776. }
  9777. }
  9778. if (type == 2) {
  9779. this.$message.error("已有此随机码,不能重复");
  9780. return;
  9781. }
  9782. let params = {
  9783. code: this.icode,
  9784. oid: this.oid,
  9785. };
  9786. this.ajax
  9787. .get(this.$store.state.api + "selectInviteCode", params)
  9788. .then((res) => {
  9789. if (
  9790. res.data.length &&
  9791. res.data[0].length &&
  9792. res.data[0][0].courseId != this.cid
  9793. ) {
  9794. this.$message.error("已有此随机码,不能重复");
  9795. return;
  9796. }
  9797. let array = [];
  9798. for (var i = 0; i < this.inviteCode.length; i++) {
  9799. array.push(this.inviteCode[i].cid);
  9800. }
  9801. if (array.indexOf(this.inviteId) != -1) {
  9802. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9803. } else {
  9804. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9805. }
  9806. this.icode = "";
  9807. this.dialogVisibleInvite = false;
  9808. })
  9809. .catch((err) => {
  9810. console.error(err);
  9811. });
  9812. },
  9813. randomNumber() {
  9814. // 随机生成两位数
  9815. // let num = Math.floor(Math.random() * 900) + 100;
  9816. // 生成 0 到 99 之间的随机整数
  9817. const randomNumber = Math.floor(Math.random() * 100);
  9818. // 如果随机数小于 10,补上前导零
  9819. const num =
  9820. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9821. // 随机生成两个大写字母
  9822. let letters = "";
  9823. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9824. for (let i = 0; i < 3; i++) {
  9825. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9826. }
  9827. // 随机生成两位数字和字母的组合
  9828. let mix = "";
  9829. let chars =
  9830. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9831. for (let i = 0; i < 3; i++) {
  9832. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9833. mix += char;
  9834. }
  9835. // 随机选择一种类型
  9836. let type = Math.floor(Math.random() * 3);
  9837. return num;
  9838. // 根据类型输出结果
  9839. switch (type) {
  9840. case 0:
  9841. console.log(num); // 输出两位数
  9842. return num;
  9843. case 1:
  9844. console.log(letters); // 输出两个大写字母
  9845. return letters;
  9846. case 2:
  9847. console.log(mix); // 输出两位数字和字母的组合
  9848. return mix;
  9849. }
  9850. },
  9851. getPaste() {
  9852. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9853. if (!iframe) {
  9854. return;
  9855. }
  9856. let copyData = iframe.contentWindow.copyData;
  9857. if (copyData && copyData.stageData && copyData.stageData.length) {
  9858. this.isPasteStage = true
  9859. }
  9860. if (copyData && copyData.selectData.length) {
  9861. this.isPasteChoice = true
  9862. }
  9863. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9864. this.isPasteTask = true
  9865. }
  9866. },
  9867. searchImage() {
  9868. var _this = this;
  9869. _this.imageList = []
  9870. if (!_this.searchImageValue) {
  9871. _this.sysPicVisible2 = true
  9872. return
  9873. }
  9874. _this.imageloading = true
  9875. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9876. page: _this.ppage,
  9877. pagesize: 9,
  9878. query: _this.searchImageValue
  9879. }).then(function (response) {
  9880. // console.log(response.data.data);
  9881. var data = response.data.FunctionResponse.result;
  9882. for (var i = 0; i < data.length; i++) {
  9883. _this.imageList.push({ url: data[i].thumbnail })
  9884. }
  9885. _this.imageloading = false
  9886. }).catch(function (error) {
  9887. console.log(error);
  9888. });
  9889. _this.sysPicVisible2 = true
  9890. },
  9891. changePicture() {
  9892. this.ppage++
  9893. this.searchImage()
  9894. },
  9895. resetImage() {
  9896. this.ppage = 1
  9897. this.searchImage()
  9898. },
  9899. jumpGj(i, j) {
  9900. if ((i + 1) != this.isClickColor) {
  9901. this.isClickColor = (i + 1)
  9902. }
  9903. var a = document.scrollingElement;
  9904. this.toolIndexType = `gj${i}${j}`
  9905. let target = document.querySelector(`#gj${i}${j}`);
  9906. if (target) {
  9907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9908. setTimeout(() => {
  9909. target.scrollIntoView(true);
  9910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9911. setTimeout(() => {
  9912. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9913. }, 0);
  9914. }, 0);
  9915. }
  9916. },
  9917. jumpGj2(i, j, k) {
  9918. if(this.unitIndex != k){
  9919. if(this.panUnitJson() == 2){
  9920. return;
  9921. }
  9922. this.unitSet(k)
  9923. }
  9924. setTimeout(() => {
  9925. if ((i + 1) != this.isClickColor) {
  9926. this.isClickColor = (i + 1)
  9927. }
  9928. var a = document.scrollingElement;
  9929. this.toolIndexType = `gj${i}${j}${k}`
  9930. let target = document.querySelector(`#gj${i}${j}`);
  9931. if (target) {
  9932. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  9933. setTimeout(() => {
  9934. target.scrollIntoView(true);
  9935. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9936. setTimeout(() => {
  9937. this.$refs.unitBox.scrollTop = this.$refs.unitBox.scrollTop - 100;
  9938. }, 0);
  9939. }, 0);
  9940. }
  9941. }, 0);
  9942. },
  9943. dragStart(val, i, j) {
  9944. console.log(this.taskCount);
  9945. this.dragType = 'drag'
  9946. this.taskCount = j
  9947. this.oldIndex = i;
  9948. this.oldData = val;
  9949. },
  9950. dragOver(i, j) {
  9951. this.typeIndex = "chapter-" + j + '-' + i
  9952. this.newIndex = i;
  9953. },
  9954. dragEnd() {
  9955. if(this.dragType != 'drag'){
  9956. this.typeIndex = "";
  9957. this.newIndex = "";
  9958. this.dragType = "";
  9959. this.isdrag = "";
  9960. return;
  9961. }
  9962. console.log(this.taskCount);
  9963. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9964. // 删除老的节点
  9965. newItems.splice(this.oldIndex, 1);
  9966. // 在列表中目标位置增加新的节点
  9967. newItems.splice(this.newIndex, 0, this.oldData);
  9968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9969. this.typeIndex = "";
  9970. this.newIndex = "";
  9971. this.dragType = "";
  9972. this.isdrag = "";
  9973. this.$forceUpdate()
  9974. },
  9975. dragTaskStart(val, i, j) {
  9976. this.dragType = 'task'
  9977. this.oldIndex = i;
  9978. this.oldData = val;
  9979. this.oldUnitIndex = j;
  9980. },
  9981. dragTaskOver(i, j) {
  9982. this.typeIndex = "task-" + i
  9983. this.newIndex = i;
  9984. this.checkUnitIndex = j;
  9985. },
  9986. async dragTaskEnd() {
  9987. if(this.dragType != 'task'){
  9988. this.newIndex = "";
  9989. this.dragType = "";
  9990. this.typeIndex = "";
  9991. this.checkUnitIndex = "";
  9992. this.isdrag = "";
  9993. return;
  9994. }
  9995. if((this.newIndex == this.oldIndex && this.oldUnitIndex == this.checkUnitIndex)){
  9996. this.newIndex = "";
  9997. this.dragType = "";
  9998. this.typeIndex = "";
  9999. this.checkUnitIndex = "";
  10000. this.isdrag = "";
  10001. return;
  10002. }
  10003. let count1 = await this.getWorksCount(2, this.checkUnitIndex, this.newIndex, 0)
  10004. let count2 = await this.getWorksCount(2, this.oldUnitIndex, this.oldIndex, 0)
  10005. if(count1 > 0 || count2 > 0){
  10006. this.$confirm(
  10007. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10008. "提示",
  10009. {
  10010. confirmButtonText: "确定",
  10011. cancelButtonText: "取消",
  10012. type: "warning",
  10013. }
  10014. )
  10015. .then(() => {
  10016. if(this.oldUnitIndex != this.checkUnitIndex){
  10017. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10018. // 删除老的节点
  10019. newItems.splice(this.oldIndex, 1);
  10020. // 在列表中目标位置增加新的节点
  10021. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10022. newItems2.splice(this.newIndex, 0, this.oldData);
  10023. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10024. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10025. }else{
  10026. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10027. // 删除老的节点
  10028. newItems.splice(this.oldIndex, 1);
  10029. // 在列表中目标位置增加新的节点
  10030. newItems.splice(this.newIndex, 0, this.oldData);
  10031. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10032. }
  10033. this.typeIndex = "";
  10034. this.newIndex = "";
  10035. this.dragType = "";
  10036. this.checkUnitIndex = "";
  10037. this.isdrag = "";
  10038. this.updateWork();
  10039. this.$forceUpdate()
  10040. })
  10041. .catch(() => {
  10042. this.newIndex = "";
  10043. this.dragType = "";
  10044. this.typeIndex = "";
  10045. this.checkUnitIndex = "";
  10046. this.isdrag = "";
  10047. return;
  10048. });
  10049. }else{
  10050. if(this.oldUnitIndex != this.checkUnitIndex){
  10051. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10052. // 删除老的节点
  10053. newItems.splice(this.oldIndex, 1);
  10054. // 在列表中目标位置增加新的节点
  10055. let newItems2 = [...this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson];
  10056. newItems2.splice(this.newIndex, 0, this.oldData);
  10057. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10058. this.unitJson[this.checkUnitIndex].chapterInfo[0].taskJson = [...newItems2];
  10059. }else{
  10060. let newItems = [...this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson];
  10061. // 删除老的节点
  10062. newItems.splice(this.oldIndex, 1);
  10063. // 在列表中目标位置增加新的节点
  10064. newItems.splice(this.newIndex, 0, this.oldData);
  10065. this.unitJson[this.oldUnitIndex].chapterInfo[0].taskJson = [...newItems];
  10066. }
  10067. this.typeIndex = "";
  10068. this.newIndex = "";
  10069. this.dragType = "";
  10070. this.checkUnitIndex = "";
  10071. this.isdrag = "";
  10072. this.updateWork();
  10073. this.$forceUpdate()
  10074. }
  10075. },
  10076. dragUnitStart(val, i) {
  10077. this.dragType = 'Unit'
  10078. this.oldIndex = i;
  10079. this.oldData = val;
  10080. },
  10081. dragUnitOver(i) {
  10082. this.typeIndex = "Unit-" + i
  10083. this.newIndex = i;
  10084. console.log(i,this.unitJson[i].toolOpen)
  10085. if(!this.unitJson[i].toolOpen && this.dragType == 'task'){
  10086. this.unitJson[i].toolOpen = true
  10087. this.updateWork()
  10088. this.$forceUpdate()
  10089. }
  10090. },
  10091. async dragUnitEnd() {
  10092. if(this.dragType != 'Unit'){
  10093. this.newIndex = "";
  10094. this.dragType = "";
  10095. this.typeIndex = "";
  10096. this.isdrag = "";
  10097. return;
  10098. }
  10099. if(this.newIndex == this.oldIndex){
  10100. this.newIndex = "";
  10101. this.dragType = "";
  10102. this.typeIndex = "";
  10103. this.isdrag = "";
  10104. return;
  10105. }
  10106. let count1 = await this.getWorksCount(1, this.newIndex, 0, 0)
  10107. let count2 = await this.getWorksCount(1, this.oldIndex, 0, 0)
  10108. console.log(count1, count2)
  10109. if(count1 > 0 || count2 > 0){
  10110. this.$confirm(
  10111. "切换阶段顺序将删除所有工具的提交成果,是否继续此操作?",
  10112. "提示",
  10113. {
  10114. confirmButtonText: "确定",
  10115. cancelButtonText: "取消",
  10116. type: "warning",
  10117. }
  10118. )
  10119. .then(() => {
  10120. let newItems = [...this.unitJson];
  10121. // 删除老的节点
  10122. newItems.splice(this.oldIndex, 1);
  10123. // 在列表中目标位置增加新的节点
  10124. newItems.splice(this.newIndex, 0, this.oldData);
  10125. this.unitJson = [...newItems];
  10126. this.typeIndex = "";
  10127. this.newIndex = "";
  10128. this.dragType = "";
  10129. this.isdrag = "";
  10130. this.updateWork();
  10131. this.$forceUpdate()
  10132. })
  10133. .catch(() => {
  10134. this.newIndex = "";
  10135. this.dragType = "";
  10136. this.typeIndex = "";
  10137. this.isdrag = "";
  10138. return;
  10139. });
  10140. }else{
  10141. let newItems = [...this.unitJson];
  10142. // 删除老的节点
  10143. newItems.splice(this.oldIndex, 1);
  10144. // 在列表中目标位置增加新的节点
  10145. newItems.splice(this.newIndex, 0, this.oldData);
  10146. this.unitJson = [...newItems];
  10147. this.typeIndex = "";
  10148. this.newIndex = "";
  10149. this.dragType = "";
  10150. this.isdrag = "";
  10151. this.updateWork();
  10152. this.$forceUpdate()
  10153. }
  10154. },
  10155. getWorksCount(type, stage, task, tool){
  10156. return new Promise((resolve, reject) => {
  10157. let params = [
  10158. {
  10159. cid: this.cid,
  10160. stage: stage,
  10161. task: task,
  10162. tool: tool,
  10163. type: type
  10164. },
  10165. ];
  10166. this.ajax
  10167. .post(this.$store.state.api + "getCourseWorkCount", params)
  10168. .then((res) => {
  10169. let count = res.data[0][0].count
  10170. resolve(count)
  10171. })
  10172. .catch((err) => {
  10173. resolve(0)
  10174. this.$message.error("网络不佳");
  10175. console.error(err);
  10176. });
  10177. });
  10178. }
  10179. },
  10180. beforeDestroy() {
  10181. clearTimeout(this.timer);
  10182. this.timer = null;
  10183. clearInterval(this.timer2);
  10184. this.timer2 = null;
  10185. clearInterval(this.pasteTimer);
  10186. this.pasteTimer = null;
  10187. },
  10188. beforeRouteLeave(to, from, next) {
  10189. clearTimeout(this.timer);
  10190. this.timer = null;
  10191. clearInterval(this.timer2);
  10192. this.timer2 = null;
  10193. clearInterval(this.pasteTimer);
  10194. this.pasteTimer = null;
  10195. next();
  10196. },
  10197. created() {
  10198. this.getStudent();
  10199. this.getTeacher();
  10200. this.getClass();
  10201. this.selectGrage();
  10202. this.getTemplate();
  10203. // this.selectType();
  10204. this.selectEva();
  10205. this.loading = false;
  10206. this.timer2 = setInterval(() => {
  10207. this.selectEva();
  10208. }, 5000);
  10209. this.pasteTimer = setInterval(() => {
  10210. this.getPaste();
  10211. }, 1000);
  10212. setTimeout(() => {
  10213. this.selectCourseDetail();
  10214. }, 500);
  10215. },
  10216. };
  10217. </script>
  10218. <style scoped>
  10219. @media screen and (max-width: 1280px) {
  10220. .mbCss {
  10221. flex-direction: column !important;
  10222. }
  10223. .pjCss {
  10224. width: 100% !important;
  10225. }
  10226. .evaCss {
  10227. width: 100% !important;
  10228. margin-top: 10px;
  10229. }
  10230. }
  10231. .el-table >>> .even_row {
  10232. background-color: #f1f1f1 !important;
  10233. }
  10234. .dialog_diy>>>.el-dialog__header {
  10235. background: #3c3c3c !important;
  10236. padding: 15px 20px;
  10237. }
  10238. .dialog_diy>>>.el-dialog__title {
  10239. color: #fff;
  10240. }
  10241. .dialog_diy>>>.el-dialog__headerbtn {
  10242. top: 19px;
  10243. }
  10244. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10245. color: #fff;
  10246. }
  10247. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10248. color: #fff;
  10249. }
  10250. .dialog_diy>>>.el-dialog__body,
  10251. .dialog_diy>>>.el-dialog__footer {
  10252. background: #fafafa;
  10253. }
  10254. .dialog_diy3>>>.el-dialog__body,
  10255. .dialog_diy3>>>.el-dialog__footer {
  10256. background: #eee !important;
  10257. }
  10258. .dialog_diy3>>>.el-dialog__body {
  10259. padding: 20px 20px;
  10260. }
  10261. .dialog_diyStage>>>.el-dialog__body {
  10262. padding: 10px;
  10263. }
  10264. .source_diy>>>.el-dialog {
  10265. height: 100% !important;
  10266. margin: 0 auto !important;
  10267. }
  10268. .source_diy>>>.el-dialog__body {
  10269. height: calc(100% - 185px);
  10270. overflow: auto;
  10271. background: #e6eaf0;
  10272. }
  10273. .source_diy>>>.el-dialog__footer {
  10274. background: #e6eaf0 !important;
  10275. }
  10276. .left {
  10277. border-right: 1px solid rgb(60, 94, 143);
  10278. display: flex;
  10279. flex-direction: column;
  10280. align-items: center;
  10281. min-height: 600px;
  10282. width: 385px;
  10283. height: 80%;
  10284. }
  10285. .tips {
  10286. color: rgb(128, 128, 128);
  10287. font-size: 12px;
  10288. width: 270px;
  10289. margin: 40px;
  10290. }
  10291. .pb_content {
  10292. height: 100% !important;
  10293. /* margin: 0 20px 0 20px; */
  10294. }
  10295. .pb_content_body {
  10296. width: 100% !important;
  10297. height: 100%;
  10298. }
  10299. .info_solid {
  10300. width: 270px;
  10301. height: 30px;
  10302. border-left: 1px solid #bdbdbd;
  10303. margin: 10px 0px 10px 30px;
  10304. }
  10305. .info_steps {
  10306. width: 270px;
  10307. font-size: 0.875rem;
  10308. display: flex;
  10309. align-items: center;
  10310. }
  10311. .info_steps span:nth-child(1) {
  10312. width: 30px;
  10313. height: 30px;
  10314. background: rgba(0, 0, 0, 0.38);
  10315. display: block;
  10316. color: #fff;
  10317. border-radius: 40px;
  10318. text-align: center;
  10319. line-height: 30px;
  10320. }
  10321. .steps_active {
  10322. background: #3d67bc !important;
  10323. }
  10324. .info_steps span:nth-child(2) {
  10325. margin-left: 5px;
  10326. }
  10327. .right {
  10328. height: 100%;
  10329. width: 100%;
  10330. display: flex;
  10331. overflow: hidden;
  10332. flex-direction: column;
  10333. }
  10334. .basic_box {
  10335. margin: 0 auto;
  10336. position: relative;
  10337. padding: 0 20px 0 20px;
  10338. }
  10339. .basic_box_success {
  10340. width: 100%;
  10341. min-height: 455px;
  10342. padding: 50px 0;
  10343. position: relative;
  10344. text-align: center;
  10345. border-bottom: 1px solid #bfbfbf;
  10346. box-sizing: border-box;
  10347. display: flex;
  10348. align-items: center;
  10349. flex-direction: column;
  10350. justify-content: center;
  10351. }
  10352. .info_title {
  10353. font-size: 1.5em;
  10354. margin-right: 25px;
  10355. /* margin: 20px 30px 20px 30px; */
  10356. }
  10357. .bInfo_title {
  10358. text-align: left;
  10359. margin: 10px 0;
  10360. }
  10361. .small_title {
  10362. font-size: 14px;
  10363. line-height: 40px;
  10364. }
  10365. .chapter_beizhu {
  10366. font-size: 12px;
  10367. font-weight: bold;
  10368. float: right;
  10369. color: rgb(128, 128, 128);
  10370. margin-top: 5px;
  10371. }
  10372. .chapter_uploadBox1 {
  10373. text-align: left;
  10374. background-color: rgb(242, 242, 242);
  10375. width: 100%;
  10376. height: 67px;
  10377. padding: 0px 15px;
  10378. border-radius: 8px;
  10379. overflow: hidden;
  10380. font-size: 16px;
  10381. box-sizing: border-box;
  10382. position: relative;
  10383. }
  10384. .chapter_add {
  10385. width: 100%;
  10386. height: 32px;
  10387. margin-top: 15px;
  10388. cursor: pointer;
  10389. }
  10390. .chapter_add_l {
  10391. margin-left: 5px;
  10392. width: 30px;
  10393. height: 30px;
  10394. float: left;
  10395. border: 1px solid #aaa;
  10396. color: #aaa;
  10397. border-radius: 50%;
  10398. font-size: 25px;
  10399. text-align: center;
  10400. }
  10401. .chapter_add_r {
  10402. font-size: 18px;
  10403. height: 40px;
  10404. line-height: 30px;
  10405. text-indent: 10px;
  10406. color: #aaa;
  10407. }
  10408. .chapter_add_r span {
  10409. font-size: 12px;
  10410. color: rgb(204, 204, 204);
  10411. }
  10412. .chapter_add_input {
  10413. display: none;
  10414. }
  10415. .line {
  10416. width: 85%;
  10417. margin: 0 auto;
  10418. border-top: 1px solid #e5e5e5;
  10419. margin-top: 20px;
  10420. }
  10421. .info_btnBox {
  10422. width: calc(100%);
  10423. display: flex;
  10424. justify-content: center;
  10425. height: 80px;
  10426. align-items: center;
  10427. background: #fff;
  10428. margin: 0 auto;
  10429. border-top: 2px solid rgb(228, 232, 237);
  10430. box-sizing: border-box;
  10431. }
  10432. .info_btnBox2 {
  10433. width: calc(100%);
  10434. display: flex;
  10435. justify-content: center;
  10436. height: 20px;
  10437. align-items: center;
  10438. background: #fff;
  10439. margin: 0 auto;
  10440. border-top: 2px solid rgb(228, 232, 237);
  10441. box-sizing: border-box;
  10442. overflow: hidden;
  10443. cursor: pointer;
  10444. }
  10445. .info_btnBox3 {
  10446. width: calc(100%);
  10447. display: flex;
  10448. justify-content: flex-end;
  10449. padding: 0 20px;
  10450. height: 60px;
  10451. align-items: center;
  10452. background: unset;
  10453. margin: 0 auto;
  10454. /* border-top: 1px solid rgb(228, 232, 237); */
  10455. box-sizing: border-box;
  10456. overflow: hidden;
  10457. cursor: pointer;
  10458. background: #fff;
  10459. border-radius: 10px;
  10460. }
  10461. .info_btn+.info_btn {
  10462. margin-left: 15px;
  10463. }
  10464. .info_btn,
  10465. .teacherWord {
  10466. color: #fff;
  10467. background-color: #0f7eff;
  10468. padding: 8px 24px;
  10469. font-size: 0.9375rem;
  10470. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10471. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10472. min-width: 64px;
  10473. font-weight: 500;
  10474. border-radius: 4px;
  10475. box-sizing: border-box;
  10476. border: none;
  10477. cursor: pointer;
  10478. }
  10479. .teacherWord {
  10480. width: 105px !important;
  10481. text-align: center !important;
  10482. line-height: 36px !important;
  10483. padding: 0 !important;
  10484. font-size: 14px !important;
  10485. margin: 10px 0 !important;
  10486. }
  10487. .template_box{
  10488. display: flex;
  10489. flex-wrap: wrap;
  10490. }
  10491. .wordTeacher {
  10492. display: flex;
  10493. flex-direction: column;
  10494. width: 100px;
  10495. height: 100px;
  10496. text-align: center;
  10497. font-size: 13px;
  10498. margin: 0 20px 20px 0 ;
  10499. background: #F0F4FA;;
  10500. position: relative;
  10501. border-radius: 5px;
  10502. align-items: center;
  10503. justify-content: center;
  10504. border: 1px solid #CAD1DC;
  10505. color: #0E1E33;
  10506. /* padding: 25px 0px; */
  10507. cursor: pointer;
  10508. }
  10509. .wordTeacher::after{
  10510. content: '';
  10511. display:block;
  10512. position: absolute;
  10513. width: 15px;
  10514. height: 15px;
  10515. right:10px;
  10516. top:10px;
  10517. background-image: url(../../assets/icon/new/choose_a.png);
  10518. background-size:100% 100%;
  10519. }
  10520. .wordTeacherA::after{
  10521. background-image: url(../../assets/icon/new/choose_b.png)
  10522. }
  10523. .wordTeacher:nth-child(5n){
  10524. margin-right: 0px;
  10525. }
  10526. .wordPic {
  10527. margin: 0 auto;
  10528. width: 30px;
  10529. height: 30px;
  10530. cursor: pointer;
  10531. }
  10532. .deleteWord {
  10533. width: 22px;
  10534. height: 22px;
  10535. position: absolute;
  10536. right: 5px;
  10537. top: -15px;
  10538. cursor: pointer;
  10539. display: none;
  10540. z-index: 999;
  10541. }
  10542. .wordPic>img,
  10543. .deleteWord>img,
  10544. .addToolImg>img {
  10545. width: 100%;
  10546. height: 100%;
  10547. }
  10548. .info_btn:hover {
  10549. background-color: #4f7cd5 !important;
  10550. }
  10551. .cru_selectBox {
  10552. display: flex;
  10553. margin: 15px 0;
  10554. flex-wrap: nowrap;
  10555. white-space: nowrap;
  10556. overflow: auto;
  10557. position: relative;
  10558. height: 40px;
  10559. max-width: calc(100% - 175px);
  10560. }
  10561. .cru_selectBox::-webkit-scrollbar {
  10562. /*滚动条整体样式*/
  10563. width: 6px;
  10564. /*高宽分别对应横竖滚动条的尺寸*/
  10565. height: 6px;
  10566. }
  10567. /*定义滚动条轨道 内阴影+圆角*/
  10568. .cru_selectBox::-webkit-scrollbar-track {
  10569. border-radius: 10px;
  10570. background-color: #eee;
  10571. }
  10572. /*定义滑块 内阴影+圆角*/
  10573. .cru_selectBox::-webkit-scrollbar-thumb {
  10574. border-radius: 10px;
  10575. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10576. background-color: rgba(0, 0, 0, 0.1);
  10577. }
  10578. .cru_line {
  10579. position: absolute;
  10580. bottom: 0px;
  10581. transition: all 0.5s;
  10582. left: 0px;
  10583. width: 50px;
  10584. height: 4px;
  10585. left: 10px;
  10586. border-radius: 2px;
  10587. background: #3681FC;
  10588. }
  10589. .cru_select {
  10590. font-size: 18px;
  10591. margin-right: 20px;
  10592. margin-left: 5px;
  10593. cursor: pointer;
  10594. color: #0E1E33;
  10595. }
  10596. .cru_select:hover {
  10597. color: #3681FC !important;
  10598. }
  10599. .cru_selected {
  10600. color: #3681FC !important;
  10601. font-weight: bold;
  10602. }
  10603. .chapter_box {
  10604. margin-top: 10px;
  10605. width: 100%;
  10606. padding: 10px 20px;
  10607. background: #fff;
  10608. border-radius: 8px;
  10609. box-sizing: border-box;
  10610. }
  10611. .chapter_contentbox {
  10612. display: flex;
  10613. align-items: center;
  10614. /* margin-top: 15px; */
  10615. }
  10616. .chapter_contentbox .cc_title {
  10617. margin: 0px;
  10618. color: black;
  10619. display: block;
  10620. white-space: nowrap;
  10621. overflow: hidden;
  10622. text-overflow: ellipsis;
  10623. margin-right: 20px;
  10624. font-size: 18px;
  10625. height: 20px;
  10626. line-height: 22px;
  10627. min-width: fit-content;
  10628. display: flex;
  10629. }
  10630. .chapter_contentbox .cc_title::before {
  10631. content: '';
  10632. height: 100%;
  10633. width: 3px;
  10634. background: #3681FC;
  10635. border-radius: 3px;
  10636. opacity: 1;
  10637. display: block;
  10638. margin-right: 10px;
  10639. }
  10640. .chapter_contentbox .cc_input {
  10641. width: 100%;
  10642. display: flex;
  10643. }
  10644. .show_taskD {
  10645. min-width: fit-content;
  10646. margin-left: 10px;
  10647. display: flex;
  10648. align-items: center;
  10649. font-size: 14px;
  10650. cursor: pointer;
  10651. color: #717C8D;
  10652. }
  10653. .show_taskD>img {
  10654. width: 15px;
  10655. margin-right: 5px;
  10656. transition: .2s all;
  10657. transform: rotate(-90deg);
  10658. }
  10659. .show_taskD.show>img {
  10660. transform: rotate(0deg);
  10661. }
  10662. .show_toolD {
  10663. min-width: fit-content;
  10664. margin-left: 10px;
  10665. display: flex;
  10666. align-items: center;
  10667. font-size: 14px;
  10668. cursor: pointer;
  10669. color: #717C8D;
  10670. /* position: absolute;
  10671. right: 45px;
  10672. top: 5px; */
  10673. }
  10674. .show_toolD>img {
  10675. width: 15px;
  10676. margin-right: 5px;
  10677. transition: .2s all;
  10678. transform: rotate(-90deg);
  10679. }
  10680. .show_toolD.show>img {
  10681. transform: rotate(0deg);
  10682. }
  10683. .remove {
  10684. background-image: url("../../assets/icon/new/delete_u.png");
  10685. cursor: pointer;
  10686. opacity: 0.5;
  10687. width: 30px;
  10688. min-width: 30px;
  10689. height: 30px;
  10690. background-size: 100% 100%;
  10691. background-repeat: no-repeat;
  10692. margin-left: 10px;
  10693. }
  10694. .remove1 {
  10695. background-image: url("../../assets/remove1.png");
  10696. background-repeat: no-repeat;
  10697. background-position: 5px 10px;
  10698. width: 40px;
  10699. height: 50px;
  10700. cursor: pointer;
  10701. margin-left: 10px;
  10702. }
  10703. .binfo_input {
  10704. width: 100%;
  10705. margin: 0;
  10706. padding: 12px 14px;
  10707. display: block;
  10708. min-width: 0;
  10709. outline: none;
  10710. box-sizing: border-box;
  10711. background: none;
  10712. border: none;
  10713. border-radius: 4px;
  10714. background: #fff;
  10715. font-size: 16px;
  10716. resize: none;
  10717. font-family: 'Microsoft YaHei';
  10718. min-height: 48px;
  10719. /* border: 1px solid #3682fc00; */
  10720. border: 1.5px solid #CAD1DC;
  10721. }
  10722. .binfo_textarea {
  10723. border: 1.5px solid #CAD1DC;
  10724. font-size: 16px;
  10725. resize: none;
  10726. /* background: #f6f6f6; */
  10727. font-family: 'Microsoft YaHei';
  10728. }
  10729. .binfo_input:focus-visible {
  10730. border: 1.5px solid #3681FC !important;
  10731. }
  10732. .time {
  10733. display: flex;
  10734. margin: 35px 0 80px 0;
  10735. }
  10736. .chapter_btnbox {
  10737. width: 160px;
  10738. border-radius: 5px;
  10739. border: 2px dashed gray;
  10740. display: flex;
  10741. padding: 8px 50px;
  10742. align-items: center;
  10743. justify-content: center;
  10744. margin: 30px auto 0;
  10745. cursor: pointer;
  10746. }
  10747. .icon_add {
  10748. position: relative;
  10749. width: 24px;
  10750. padding-top: 20px;
  10751. border-radius: 100%;
  10752. border-width: 2px;
  10753. border-style: solid;
  10754. border-color: gray;
  10755. }
  10756. .icon_add i:nth-child(1) {
  10757. position: absolute;
  10758. left: 50%;
  10759. top: 50%;
  10760. height: 60%;
  10761. transform: translate(-50%, -50%);
  10762. border-width: 1px;
  10763. border-style: solid;
  10764. border-color: inherit;
  10765. }
  10766. .icon_add i:nth-child(2) {
  10767. position: absolute;
  10768. top: 50%;
  10769. left: 50%;
  10770. width: 60%;
  10771. transform: translate(-50%, -50%);
  10772. border-width: 1px;
  10773. border-style: solid;
  10774. border-color: inherit;
  10775. }
  10776. .chapter_btn_w {
  10777. font-size: 0.9375rem;
  10778. font-weight: bold;
  10779. color: gray;
  10780. margin-left: 20px;
  10781. }
  10782. .disUoloadSty>>>.el-icon-plus {
  10783. display: none !important;
  10784. /* 上传按钮隐藏 */
  10785. }
  10786. .imgLeft {
  10787. margin: 15px 0;
  10788. }
  10789. .add_info_box {
  10790. margin: 0 0 0 auto;
  10791. display: flex;
  10792. flex-wrap: wrap;
  10793. }
  10794. .add_info_box button {
  10795. margin: 0 5px 10px 0;
  10796. }
  10797. .add_info_box2 {
  10798. display: flex;
  10799. align-items: center;
  10800. flex-wrap: wrap;
  10801. }
  10802. .add_info_box2::after {
  10803. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10804. color: red;
  10805. font-size: 14px;
  10806. margin-bottom: 10px;
  10807. }
  10808. .add_chapters_box {
  10809. text-align: left;
  10810. background-color: #fff;
  10811. width: 100%;
  10812. border-radius: 4px;
  10813. font-size: 16px;
  10814. box-sizing: border-box;
  10815. position: relative;
  10816. padding: 0 15px;
  10817. height: auto;
  10818. overflow-y: auto;
  10819. overflow-x: hidden;
  10820. border: 1px solid #CAD1DC;
  10821. }
  10822. .add_chapters_box.add_c_none {
  10823. display: flex;
  10824. justify-content: center;
  10825. align-items: center;
  10826. padding: 15px;
  10827. }
  10828. .add_c_none>img {
  10829. width: 25px;
  10830. }
  10831. .add_chapters_box.add_c_none>span {
  10832. font-size: 14px;
  10833. font-weight: 400;
  10834. margin: 0 0 5px 5px;
  10835. }
  10836. .homework_box {
  10837. display: flex;
  10838. align-items: flex-start;
  10839. flex-wrap: wrap;
  10840. margin: 15px 0 0 0;
  10841. flex-direction: column;
  10842. align-content: flex-start;
  10843. }
  10844. .course_homework {
  10845. display: flex;
  10846. justify-content: center;
  10847. flex-direction: row;
  10848. align-items: center;
  10849. margin: 0 10px 0 0;
  10850. }
  10851. .course_homework>>>.el-input__inner {
  10852. width: 140px;
  10853. margin-left: 15px;
  10854. }
  10855. .chapter_upload_move {
  10856. position: relative;
  10857. background-color: #fff;
  10858. position: absolute;
  10859. width: 100%;
  10860. top: 0px;
  10861. left: 0px;
  10862. border: 1px solid #eee;
  10863. border-radius: 5px;
  10864. transition: width 2s;
  10865. -moz-transition: width 2s;
  10866. -webkit-transition: width 2s;
  10867. -o-transition: width 2s;
  10868. }
  10869. .chapter_upload_l_i {
  10870. background-image: url("../../assets/icon.png");
  10871. background-position: 3px -165px;
  10872. width: 30px;
  10873. height: 30px;
  10874. margin: 10px auto 0 auto;
  10875. }
  10876. .course_input_box {
  10877. display: flex;
  10878. margin-right: 20px;
  10879. width: 100%;
  10880. align-items: center;
  10881. position: relative;
  10882. }
  10883. .course_input_box>.binfo_input {
  10884. width: calc(100% - 0 - 200px - 20px);
  10885. margin: 0 10px;
  10886. }
  10887. .bb_courseIcon {
  10888. width: 57px;
  10889. height: 45px;
  10890. background: #F0F4FA;
  10891. border-radius: 5px 0px 0px 5px;
  10892. display: flex;
  10893. align-items: center;
  10894. justify-content: center;
  10895. border-right: 1.5px solid rgb(202, 209, 220);
  10896. box-sizing: border-box;
  10897. position: absolute;
  10898. left: 1.5px
  10899. }
  10900. .bb_courseIcon>img {
  10901. width: 25px;
  10902. height: auto
  10903. }
  10904. .big_box {
  10905. /* margin-top: 20px; */
  10906. display: flex;
  10907. justify-content: space-between;
  10908. /* border-bottom: 1px solid #E0E2ED; */
  10909. }
  10910. .left_first {
  10911. display: flex;
  10912. flex-direction: column;
  10913. flex-wrap: nowrap;
  10914. width: calc(100% - 310px);
  10915. padding: 20px;
  10916. box-sizing: border-box;
  10917. background: #fff;
  10918. border-radius: 5px;
  10919. }
  10920. .right_first {
  10921. width: 300px;
  10922. display: flex;
  10923. align-items: center;
  10924. justify-content: center;
  10925. /* border-left: 1px solid #E0E2ED; */
  10926. box-sizing: border-box;
  10927. padding: 20px;
  10928. flex-direction: column;
  10929. background: #fff;
  10930. border-radius: 5px;
  10931. }
  10932. .ai_box {
  10933. width: 204px;
  10934. display: flex;
  10935. justify-content: flex-end;
  10936. margin-bottom: 15px;
  10937. }
  10938. .ai_content {
  10939. display: flex;
  10940. align-items: center;
  10941. font-size: 14px;
  10942. padding: 7px 20px;
  10943. box-sizing: border-box;
  10944. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10945. border-radius: 12px;
  10946. font-weight: 700;
  10947. cursor: pointer;
  10948. }
  10949. .ai_content>img {
  10950. width: 40px;
  10951. margin-right: 5px;
  10952. }
  10953. .c_info_title {
  10954. padding: 15px 0 15px 0;
  10955. font-size: 16px;
  10956. font-weight: bold;
  10957. margin: 0 0 0 20px;
  10958. box-sizing: border-box;
  10959. display: flex;
  10960. align-items: center;
  10961. line-height: 20px;
  10962. }
  10963. .c_info_title::before {
  10964. content: '';
  10965. display: block;
  10966. width: 3px;
  10967. height: 20px;
  10968. background: #0061FF;
  10969. border-radius: 3px;
  10970. margin: 0 5px 0 0;
  10971. }
  10972. .right_title {
  10973. height: 30px;
  10974. padding: 15px 0 15px 20px;
  10975. border-bottom: 1px solid #f2f2f2;
  10976. font-size: 1.5em;
  10977. font-weight: bold;
  10978. color: #0f7eff;
  10979. margin: 0 auto;
  10980. }
  10981. .people {
  10982. border: 1px solid rgb(229 229 229);
  10983. /* height: 495px; */
  10984. height: 350px;
  10985. border-radius: 5px;
  10986. width: 100%;
  10987. overflow: auto;
  10988. }
  10989. .people_top {
  10990. display: flex;
  10991. width: 100%;
  10992. /* justify-content: space-between; */
  10993. /* align-items: center; */
  10994. flex-direction: column;
  10995. padding: 10px 10px 0;
  10996. box-sizing: border-box;
  10997. }
  10998. .people_nav,
  10999. .people_top_right {
  11000. /* padding: 20px 0 0 20px; */
  11001. }
  11002. .people_top_right {
  11003. height: 40px;
  11004. margin-bottom: 10px;
  11005. }
  11006. .people_search {
  11007. display: flex;
  11008. position: relative;
  11009. }
  11010. .people_search>>>.el-input__inner {
  11011. /* height: 25px; */
  11012. width: 100%;
  11013. }
  11014. .search_img {
  11015. width: 20px;
  11016. height: 20px;
  11017. position: absolute;
  11018. right: 10px;
  11019. top: 50%;
  11020. transform: translateY(-50%);
  11021. }
  11022. .search_img>img {
  11023. width: 100%;
  11024. height: 100%;
  11025. }
  11026. .people_name {
  11027. display: flex;
  11028. justify-content: flex-start;
  11029. padding: 20px 10px;
  11030. flex-direction: column;
  11031. flex-wrap: wrap;
  11032. }
  11033. .p_box {
  11034. position: relative;
  11035. }
  11036. .people_name>>>.el-checkbox {
  11037. width: 100%;
  11038. display: flex;
  11039. align-items: center;
  11040. margin-bottom: 10px;
  11041. }
  11042. .people_name>>>.el-checkbox__label {
  11043. text-overflow: ellipsis;
  11044. overflow: hidden;
  11045. width: calc(100%);
  11046. }
  11047. .people_name2>>>.el-checkbox__label {
  11048. width: calc(100% - 130px);
  11049. }
  11050. .inviteCode {
  11051. position: absolute;
  11052. right: 30px;
  11053. color: #237ade;
  11054. top: 0;
  11055. cursor: pointer;
  11056. font-size: 13px;
  11057. }
  11058. .noneInvite {
  11059. color: #a8a8a8;
  11060. }
  11061. .inviteImg {
  11062. position: absolute;
  11063. right: 5px;
  11064. top: 0;
  11065. width: 20px;
  11066. }
  11067. .right_img {
  11068. width: 150px;
  11069. height: 150px;
  11070. margin: 0 auto;
  11071. }
  11072. .right_img>img {
  11073. width: 100%;
  11074. height: 100%;
  11075. }
  11076. .number {
  11077. margin-top: 20px;
  11078. color: #4aa6ff;
  11079. text-decoration: underline;
  11080. }
  11081. .success_button {
  11082. display: flex;
  11083. text-align: center;
  11084. margin: 5% 0 auto;
  11085. flex-direction: row;
  11086. justify-content: center;
  11087. }
  11088. .look_course {
  11089. margin-right: 40px;
  11090. background: #3d67bc;
  11091. width: 200px;
  11092. height: 35px;
  11093. line-height: 35px;
  11094. color: #fff;
  11095. text-align: center;
  11096. font-size: 14px;
  11097. border-radius: 5px;
  11098. cursor: pointer;
  11099. }
  11100. .attend_others {
  11101. width: 250px;
  11102. background: #4fb13c;
  11103. height: 35px;
  11104. line-height: 35px;
  11105. color: #fff;
  11106. text-align: center;
  11107. font-size: 14px;
  11108. border-radius: 5px;
  11109. cursor: pointer;
  11110. }
  11111. .dialog_diy2>>>.el-dialog__body {
  11112. text-align: center;
  11113. }
  11114. .write_togother {
  11115. position: absolute;
  11116. right: 45px;
  11117. display: flex;
  11118. top: 5%;
  11119. }
  11120. .write_people {
  11121. font-size: 14px;
  11122. line-height: 50px;
  11123. padding-right: 10px;
  11124. }
  11125. .end_write {
  11126. background: #3d67bc;
  11127. color: #fff;
  11128. width: 100px;
  11129. height: 35px;
  11130. line-height: 35px;
  11131. text-align: center;
  11132. font-size: 14px;
  11133. border-radius: 5px;
  11134. cursor: pointer;
  11135. }
  11136. .chapter_upload+.chapter_upload {
  11137. /* margin-top: 15px; */
  11138. border-top: 1px solid #E7EBF1;
  11139. }
  11140. .chapter_upload {
  11141. height: 45px;
  11142. position: relative;
  11143. display: flex;
  11144. align-items: center;
  11145. width: 100%;
  11146. min-height: 45px;
  11147. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11148. /* border-radius: 4px; */
  11149. /* overflow: hidden; */
  11150. box-sizing: border-box;
  11151. }
  11152. .chapter_upload_drag {
  11153. position: absolute;
  11154. cursor: pointer;
  11155. width: 16px;
  11156. height: 16px;
  11157. left: -9px;
  11158. background-image: url("../../assets/icon/new/icon_course_drag.png");
  11159. background-size: 100% 100%;
  11160. z-index: 10;
  11161. display: none;
  11162. }
  11163. .isNavStage > .chapter_upload_drag{
  11164. background-image: url("../../assets/icon/new/icon_course_drag_active2.png");
  11165. }
  11166. .chapter_upload_t {
  11167. background-color: #fff;
  11168. position: absolute;
  11169. height: 100%;
  11170. top: 0px;
  11171. left: 0px;
  11172. box-sizing: border-box;
  11173. }
  11174. .chapter_upload_o {
  11175. width: 100%;
  11176. height: 100%;
  11177. position: relative;
  11178. z-index: 1;
  11179. }
  11180. .chapter_upload_ic {
  11181. margin: 0 15px 0px auto;
  11182. display: flex;
  11183. align-items: center;
  11184. }
  11185. .chapter_upload_ic_l {
  11186. width: 50px;
  11187. height: 50px;
  11188. float: left;
  11189. }
  11190. .chapter_upload_ic_l div {
  11191. width: 30px;
  11192. height: 35px;
  11193. background: url("../../assets/icon/icon.png");
  11194. }
  11195. .chapter_upload_ic_edit {
  11196. height: 100%;
  11197. display: flex;
  11198. align-items: center;
  11199. cursor: pointer;
  11200. margin: 0 10px 0 0;
  11201. }
  11202. .chapter_upload_ic_edit div {
  11203. width: 18px;
  11204. height: 18px;
  11205. background-image: url("../../assets/icon/new/edit_u.png");
  11206. background-size: 100% 100%;
  11207. }
  11208. .chapter_upload_ic_r {
  11209. height: 100%;
  11210. display: flex;
  11211. align-items: center;
  11212. cursor: pointer;
  11213. }
  11214. .chapter_upload_ic_r div {
  11215. width: 18px;
  11216. height: 18px;
  11217. background-image: url("../../assets/icon/new/delete_u.png");
  11218. background-size: 100% 100%;
  11219. }
  11220. .chapter_upload_n {
  11221. display: flex;
  11222. text-indent: 10px;
  11223. text-decoration: none;
  11224. text-overflow: ellipsis;
  11225. white-space: nowrap;
  11226. overflow: hidden;
  11227. width: 55%;
  11228. margin-left: 10px;
  11229. cursor: pointer;
  11230. margin-top: 2px;
  11231. align-items: center;
  11232. }
  11233. .chapter_upload_l_i2,
  11234. .chapter_upload_l_i3,
  11235. .chapter_upload_l_i8,
  11236. .chapter_upload_l_i6,
  11237. .chapter_upload_l_i12,
  11238. .chapter_upload_l_i14,
  11239. .chapter_upload_l_i13 {
  11240. width: 15px;
  11241. height: 15px;
  11242. background-size: 100% 100%;
  11243. }
  11244. .chapter_upload_l_i2 {
  11245. background-image: url("../../assets/icon/new/u_word.png");
  11246. }
  11247. .chapter_upload_l_i3 {
  11248. background-image: url("../../assets/icon/new/u_video.png");
  11249. }
  11250. .chapter_upload_l_i8 {
  11251. background-image: url("../../assets/icon/new/u_url.png");
  11252. }
  11253. .chapter_upload_l_i14 {
  11254. background-image: url("../../assets/icon/new/u_source.png");
  11255. }
  11256. .chapter_upload_l_i6 {
  11257. background-image: url("../../assets/icon/new/u_picture.png");
  11258. }
  11259. .chapter_upload_l_i12 {
  11260. background-image: url("../../assets/icon/new/u_word.png");
  11261. }
  11262. .chapter_upload_l_i13 {
  11263. background-image: url("../../assets/icon/new/u_img.png");
  11264. }
  11265. .chapter_upload_noSee {
  11266. background-image: url("../../assets/icon/new/u_noUpload.png");
  11267. width: 18px;
  11268. height: 18px;
  11269. background-size: 100% 100%;
  11270. display: block;
  11271. margin-right: 10px;
  11272. }
  11273. .chapter_upload_ud {
  11274. display: flex;
  11275. flex-direction: row;
  11276. justify-content: center;
  11277. margin: 0 10px 0 0;
  11278. }
  11279. .chapter_upload_ud>.chapter_upload_up {
  11280. margin-bottom: 0;
  11281. margin-right: 10px;
  11282. }
  11283. .chapter_upload_down,
  11284. .chapter_upload_up {
  11285. width: 20px;
  11286. height: 20px;
  11287. background: #e4eaf2;
  11288. cursor: pointer;
  11289. margin: 0 auto;
  11290. border-radius: 5px;
  11291. display: flex;
  11292. justify-content: center;
  11293. align-items: center;
  11294. }
  11295. .chapter_upload_up::after,
  11296. .chapter_upload_down::after {
  11297. content: '';
  11298. background-image: url('../../assets/icon/new/downBtn.png');
  11299. width: 13px;
  11300. height: 13px;
  11301. background-size: 100% 100%;
  11302. display: block;
  11303. }
  11304. .chapter_upload_up::after {
  11305. background-image: url('../../assets/icon/new/upBtn.png') !important;
  11306. }
  11307. .chapter_upload_up {
  11308. margin-bottom: 5px;
  11309. }
  11310. .chapter_upload_ud2 {
  11311. display: flex;
  11312. flex-direction: row;
  11313. justify-content: center;
  11314. margin: 0 10px 0 0;
  11315. }
  11316. .chapter_upload_ud2>.chapter_upload_up2 {
  11317. margin-bottom: 0;
  11318. margin-right: 10px;
  11319. }
  11320. .chapter_upload_down2,
  11321. .chapter_upload_up2 {
  11322. cursor: pointer;
  11323. margin: 0 auto;
  11324. border-radius: 5px;
  11325. display: flex;
  11326. justify-content: center;
  11327. align-items: center;
  11328. color: #717C8D;
  11329. font-size: 14px;
  11330. }
  11331. .chapter_upload_up2{
  11332. margin-right:10px;
  11333. }
  11334. .chapter_upload_up2::before,
  11335. .chapter_upload_down2::before {
  11336. content: '';
  11337. background-image: url('../../assets/icon/new/c_down.png');
  11338. width: 14px;
  11339. height: 14px;
  11340. background-size: 100% 100%;
  11341. display: block;
  11342. margin-right: 5px;
  11343. }
  11344. .chapter_upload_up2::before {
  11345. background-image: url('../../assets/icon/new/c_up.png') !important;
  11346. }
  11347. .addWordStyle {
  11348. display: flex;
  11349. flex-direction: row;
  11350. justify-content: flex-start;
  11351. overflow-x: auto;
  11352. white-space: nowrap;
  11353. flex-wrap: wrap;
  11354. }
  11355. /* table 样式 */
  11356. .cont>>>table {
  11357. border-top: 1px solid #ccc;
  11358. border-left: 1px solid #ccc;
  11359. }
  11360. .cont>>>table td,
  11361. .cont>>>table th {
  11362. border-bottom: 1px solid #ccc;
  11363. border-right: 1px solid #ccc;
  11364. /* padding: 20px 5px; */
  11365. padding: 5px 10px;
  11366. max-width: 0px;
  11367. height: 30px;
  11368. vertical-align: baseline;
  11369. }
  11370. .cont>>>table th {
  11371. border-bottom: 2px solid #ccc;
  11372. text-align: center;
  11373. }
  11374. /* blockquote 样式 */
  11375. .cont>>>blockquote {
  11376. display: block;
  11377. border-left: 8px solid #d0e5f2;
  11378. padding: 5px 10px;
  11379. margin: 10px 0;
  11380. line-height: 1.4;
  11381. font-size: 100%;
  11382. background-color: #f1f1f1;
  11383. }
  11384. /* code 样式 */
  11385. .cont>>>code {
  11386. display: inline-block;
  11387. /* *display: inline; */
  11388. zoom: 1;
  11389. background-color: #f1f1f1;
  11390. border-radius: 3px;
  11391. padding: 3px 5px;
  11392. margin: 0 3px;
  11393. }
  11394. .cont>>>pre code {
  11395. display: block;
  11396. }
  11397. /* ul ol 样式 */
  11398. .cont>>>ul,
  11399. ol {
  11400. margin: 10px 0 10px 20px;
  11401. }
  11402. .wordbox {
  11403. display: flex;
  11404. flex-wrap: wrap;
  11405. cursor: pointer;
  11406. width: 100%;
  11407. }
  11408. .checkword {
  11409. width: 22px;
  11410. height: 22px;
  11411. margin: 10px auto 0;
  11412. cursor: pointer;
  11413. }
  11414. .checkword img {
  11415. width: 100%;
  11416. }
  11417. .stepBg {
  11418. display: flex;
  11419. justify-content: space-between;
  11420. align-items: center;
  11421. background: #fff;
  11422. width: calc(100%);
  11423. margin: 0 auto;
  11424. }
  11425. .stepBorder {
  11426. height: 3px !important;
  11427. background: #CAD1DC;
  11428. width: 100px !important;
  11429. margin: 0 15px !important;
  11430. position: relative;
  11431. }
  11432. .border-active {
  11433. background: #3681FC !important
  11434. }
  11435. .border-active::before,
  11436. .border-active::after {
  11437. border-color: #3681FC !important
  11438. }
  11439. .stepBorder::before,
  11440. .stepBorder::after {
  11441. content: '';
  11442. width: 9px;
  11443. height: 9px;
  11444. background: #FFFFFF;
  11445. opacity: 1;
  11446. border: 2px solid #ACB4BF;
  11447. display: block;
  11448. box-sizing: border-box;
  11449. border-radius: 50%;
  11450. position: absolute;
  11451. top: 50%;
  11452. transform: translateY(-50%);
  11453. }
  11454. .stepBorder::after {
  11455. right: -9px;
  11456. }
  11457. .stepTop {
  11458. width: 100%;
  11459. /* border-radius: 10px; */
  11460. display: flex;
  11461. justify-content: center;
  11462. align-items: center;
  11463. flex-wrap: nowrap;
  11464. background: #fff;
  11465. /* top: 18%; */
  11466. height: 80px;
  11467. border-bottom: 2px solid rgb(228, 232, 237);
  11468. box-sizing: border-box;
  11469. }
  11470. .stepTop2 {
  11471. width: 100%;
  11472. /* border-radius: 10px; */
  11473. display: flex;
  11474. justify-content: center;
  11475. align-items: center;
  11476. flex-wrap: nowrap;
  11477. background: #fff;
  11478. /* top: 18%; */
  11479. height: 20px;
  11480. border-bottom: 2px solid rgb(228, 232, 237);
  11481. box-sizing: border-box;
  11482. overflow: hidden;
  11483. cursor: pointer;
  11484. }
  11485. .stepTop>div img {
  11486. width: 100%;
  11487. }
  11488. .stepTop>div {
  11489. height: 50px;
  11490. width: 180px;
  11491. cursor: pointer;
  11492. margin: 10px 0;
  11493. border-radius: 10px;
  11494. }
  11495. .first,
  11496. .second,
  11497. .third,
  11498. .four {
  11499. background: #3681FC;
  11500. height: 90px;
  11501. color: #fff;
  11502. display: flex;
  11503. flex-direction: row;
  11504. align-items: center;
  11505. justify-content: center;
  11506. }
  11507. .first>div:nth-child(1),
  11508. .second>div:nth-child(1),
  11509. .third>div:nth-child(1),
  11510. .four>div:nth-child(1) {
  11511. margin: 5px 10px 0 0;
  11512. width: 2rem;
  11513. }
  11514. .firstNo,
  11515. .secondNo,
  11516. .thirdNo,
  11517. .fourNo {
  11518. background: #e7e7e7;
  11519. color: #adadad;
  11520. display: flex;
  11521. flex-direction: row;
  11522. align-items: center;
  11523. justify-content: center;
  11524. }
  11525. .firstNo>div:nth-child(1),
  11526. .secondNo>div:nth-child(1),
  11527. .thirdNo>div:nth-child(1),
  11528. .fourNo>div:nth-child(1) {
  11529. margin: 5px 10px 0 0;
  11530. width: 2rem;
  11531. }
  11532. .uploadWidth>>>.el-upload {
  11533. width: 60px;
  11534. height: 60px;
  11535. position: relative;
  11536. }
  11537. .addPeople {
  11538. background: #fa6060;
  11539. width: 150px;
  11540. height: 40px;
  11541. color: #fff;
  11542. border-radius: 5px;
  11543. text-align: center;
  11544. line-height: 40px;
  11545. font-size: 14px;
  11546. cursor: pointer;
  11547. }
  11548. .kcImg {
  11549. width: 60px;
  11550. margin-left: 10px;
  11551. }
  11552. .zyImg {
  11553. width: 55px;
  11554. margin: 0 10px;
  11555. }
  11556. .deleteZy {
  11557. width: 20px;
  11558. position: absolute;
  11559. top: 5px;
  11560. right: 5px;
  11561. cursor: pointer;
  11562. }
  11563. .kcImg>img,
  11564. .zyImg>img,
  11565. .deleteZy>img {
  11566. width: 100%;
  11567. height: 100%;
  11568. }
  11569. .zyBox {
  11570. display: flex;
  11571. flex-direction: row;
  11572. align-items: center;
  11573. background: #67d37d;
  11574. color: #fff;
  11575. width: 210px;
  11576. margin: 20px 20px 0 0;
  11577. border-radius: 10px;
  11578. height: 70px;
  11579. position: relative;
  11580. }
  11581. .upCss {
  11582. display: flex;
  11583. flex-direction: row;
  11584. justify-content: flex-start;
  11585. }
  11586. .upCss>>>.el-icon-plus {
  11587. position: none !important;
  11588. width: 200px;
  11589. height: 100px;
  11590. display: flex;
  11591. flex-wrap: nowrap;
  11592. flex-direction: column;
  11593. align-items: center;
  11594. justify-content: center;
  11595. border: 1px dashed #ccc;
  11596. min-width: 78px;
  11597. min-height: 100px;
  11598. z-index: 999;
  11599. }
  11600. .upCss>>>.el-upload-list__item-name {
  11601. width: 100px;
  11602. white-space: nowrap;
  11603. overflow: hidden;
  11604. text-overflow: ellipsis;
  11605. }
  11606. .upCss>>>.el-upload-list__item .el-icon-close {
  11607. font-size: 20px;
  11608. z-index: 9999;
  11609. }
  11610. .addStageImg {
  11611. min-width: 20px;
  11612. min-height: 20px;
  11613. width: 20px;
  11614. height: 20px;
  11615. cursor: pointer;
  11616. }
  11617. .addHW {
  11618. width: 28px;
  11619. height: 28px;
  11620. cursor: pointer;
  11621. }
  11622. .addStageImg>img,
  11623. .addHW>img {
  11624. width: 100%;
  11625. height: 100%;
  11626. }
  11627. .addNewPP>>>.el-dialog__body {
  11628. padding: 5px 20px;
  11629. }
  11630. .addNewPP>>>.el-dialog {
  11631. margin-top: 5vh !important;
  11632. }
  11633. .addNewPP2>>>.el-dialog__body {
  11634. padding: 5px 0;
  11635. }
  11636. .addNewPP2>>>.el-dialog {
  11637. margin-top: 5vh !important;
  11638. }
  11639. .isHeight {
  11640. height: 680px;
  11641. }
  11642. .toolChoose {
  11643. display: flex;
  11644. /* width: 100%; */
  11645. flex-direction: row;
  11646. flex-wrap: wrap;
  11647. }
  11648. .tool,
  11649. .isToolChoose {
  11650. display: flex;
  11651. flex-direction: column;
  11652. flex-wrap: nowrap;
  11653. width: fit-content;
  11654. margin: 10px 0 10px 0;
  11655. align-items: center;
  11656. border: 2px solid #dbdbdb00;
  11657. padding: 10px 20px;
  11658. border-radius: 5px;
  11659. cursor: pointer;
  11660. /* box-shadow: 0 0 2px 0px #dedede; */
  11661. position: relative;
  11662. box-sizing: border-box;
  11663. }
  11664. .tool:hover {
  11665. border: 2px solid #a5c7ff;
  11666. }
  11667. .tool:hover>.noCTool {
  11668. display: block;
  11669. opacity: 0.5;
  11670. }
  11671. .isToolChoose {
  11672. border: 2px solid #438aff !important;
  11673. box-shadow: 0 0 2px 0px #438aff;
  11674. opacity: 1 !important;
  11675. }
  11676. .isCTool,
  11677. .noCTool {
  11678. width: 30px;
  11679. height: 30px;
  11680. position: absolute;
  11681. top: -4px;
  11682. right: -4px;
  11683. }
  11684. .noCTool {
  11685. display: none;
  11686. }
  11687. .isCTool>img,
  11688. .noCTool>img {
  11689. width: 100%;
  11690. height: 100%;
  11691. }
  11692. .tool+.tool {
  11693. margin-right: 10px;
  11694. }
  11695. .whiteBIcon {
  11696. width: 80px;
  11697. cursor: pointer;
  11698. display: flex;
  11699. flex-direction: column;
  11700. flex-wrap: nowrap;
  11701. align-items: center;
  11702. font-size: 14px;
  11703. }
  11704. .whiteBIcon>img,
  11705. .toolIcon>img,
  11706. .arrow>img {
  11707. width: 100%;
  11708. height: 100%;
  11709. }
  11710. .check img {
  11711. width: 20px;
  11712. height: 20px;
  11713. }
  11714. .whiteBIcon>img {
  11715. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11716. border-radius: 15px;
  11717. }
  11718. .whiteBIcon>div:nth-child(2) {
  11719. height: 20px;
  11720. line-height: 20px;
  11721. }
  11722. .check {
  11723. /* width: 20px;
  11724. height: 20px; */
  11725. cursor: pointer;
  11726. margin: 10px 0 0;
  11727. }
  11728. .checkDiv {
  11729. display: flex;
  11730. align-items: center;
  11731. }
  11732. .checkDiv span {
  11733. margin-left: 5px;
  11734. color: #858585;
  11735. }
  11736. .customWidth>>>.el-dialog {
  11737. min-width: 500px !important;
  11738. }
  11739. .a_addBox {
  11740. margin: 10px 0;
  11741. background: #fff;
  11742. padding: 15px;
  11743. /* max-height: 600px; */
  11744. overflow: auto;
  11745. }
  11746. .a_add_box {
  11747. border-bottom: 2px solid #eee;
  11748. padding-bottom: 25px;
  11749. }
  11750. .a_add_head {
  11751. display: flex;
  11752. align-items: center;
  11753. justify-content: space-between;
  11754. margin: 10px 0 0 0;
  11755. font-size: 18px;
  11756. }
  11757. .a_add_checkType {
  11758. margin-top: 10px;
  11759. display: flex;
  11760. font-size: 14px;
  11761. align-items: center;
  11762. }
  11763. .a_add_checkType span {
  11764. box-sizing: border-box;
  11765. padding: 0 0 5px 0;
  11766. cursor: pointer;
  11767. }
  11768. .a_add_checkType span+span {
  11769. margin-left: 10px;
  11770. }
  11771. .a_add_checkType .active {
  11772. border-bottom: 2px solid #409eff;
  11773. color: #409eff;
  11774. }
  11775. .a_add_head .a_add_head_input {
  11776. /* width: 540px; */
  11777. width: 100%;
  11778. }
  11779. .a_add_head .a_add_head_div {
  11780. display: flex;
  11781. align-items: center;
  11782. justify-content: space-between;
  11783. }
  11784. .a_add_body {
  11785. display: flex;
  11786. /* align-items: center; */
  11787. align-items: flex-end;
  11788. }
  11789. .a_add_input {
  11790. display: flex;
  11791. align-items: center;
  11792. flex-wrap: wrap;
  11793. }
  11794. .a_add_input_choice {
  11795. flex-direction: column;
  11796. margin-right: 10px;
  11797. }
  11798. .a_add_input_choice>>>.el-radio {
  11799. display: flex;
  11800. align-items: center;
  11801. flex-direction: row-reverse;
  11802. margin: 30px 0 0 0;
  11803. position: relative;
  11804. }
  11805. .a_add_input_choice>>>.el-checkbox {
  11806. display: flex;
  11807. align-items: center;
  11808. flex-direction: row-reverse;
  11809. margin: 30px 0 0 0;
  11810. position: relative;
  11811. }
  11812. .width100 {
  11813. width: 100%;
  11814. }
  11815. .a_add_input .a_add_persent {
  11816. width: 100%;
  11817. }
  11818. .a_add_persent_div {
  11819. width: 100%;
  11820. display: flex;
  11821. align-items: center;
  11822. }
  11823. .a_add_persent_div span {
  11824. margin: 5px 0;
  11825. }
  11826. .a_add_persent_div span:nth-child(1) {
  11827. width: 30%;
  11828. }
  11829. .a_add_persent_div span:nth-child(2) {
  11830. width: 7%;
  11831. }
  11832. .a_add_persent_div span:nth-child(3) {
  11833. width: 40%;
  11834. }
  11835. .a_add_body_div {
  11836. display: flex;
  11837. align-items: center;
  11838. justify-content: center;
  11839. /* flex-direction: column; */
  11840. position: absolute;
  11841. right: -20px;
  11842. transform: translateX(100%);
  11843. }
  11844. .a_add_body_div>>>.el-button--primary {
  11845. background: #466b99;
  11846. border: none;
  11847. }
  11848. .all_choose {
  11849. display: flex;
  11850. flex-direction: row;
  11851. align-items: flex-start;
  11852. width: 100%;
  11853. }
  11854. .all_choose+.all_choose {
  11855. /* margin-top: 10px */
  11856. }
  11857. .all_choose>span {
  11858. min-width: fit-content;
  11859. display: block;
  11860. white-space: nowrap;
  11861. overflow: hidden;
  11862. text-overflow: ellipsis;
  11863. margin-right: 20px;
  11864. font-weight: bold;
  11865. font-size: 14px;
  11866. }
  11867. .all_choose>>>.el-checkbox-group {
  11868. display: flex;
  11869. flex-direction: row;
  11870. width: 100%;
  11871. flex-wrap: wrap;
  11872. align-content: center;
  11873. justify-content: flex-start;
  11874. align-items: center;
  11875. margin-top: 3px;
  11876. }
  11877. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11878. margin-bottom: 10px;
  11879. display: flex;
  11880. flex-direction: row;
  11881. align-items: center;
  11882. margin-right: 10px;
  11883. }
  11884. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11885. min-width: 80px;
  11886. overflow: hidden;
  11887. width: 80px;
  11888. text-overflow: ellipsis;
  11889. white-space: nowrap;
  11890. }
  11891. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11892. width: auto;
  11893. }
  11894. .choose>div:nth-child(3)>span {
  11895. /* letter-spacing: 0 !important; */
  11896. }
  11897. .choose {
  11898. display: flex;
  11899. flex-direction: column;
  11900. flex-wrap: nowrap;
  11901. height: 100%;
  11902. justify-content: space-evenly;
  11903. align-items: flex-start;
  11904. }
  11905. .both {
  11906. display: flex;
  11907. flex-direction: row;
  11908. flex-wrap: wrap;
  11909. width: 100%;
  11910. align-items: center;
  11911. justify-content: flex-start;
  11912. margin: 15px 0;
  11913. }
  11914. .notice>>>.el-dialog {
  11915. width: 500px !important;
  11916. text-align: center;
  11917. }
  11918. .notice>>>.el-button {
  11919. margin-top: 20px;
  11920. }
  11921. .whiteBg {
  11922. /* background: #fff; */
  11923. border-radius: 10px;
  11924. }
  11925. .wb_j_box {
  11926. display: flex;
  11927. width: 100%;
  11928. padding: 0 20px 0;
  11929. box-sizing: border-box;
  11930. }
  11931. .wb_j_box_content {
  11932. width: calc(100% - 55% - 100px);
  11933. display: flex;
  11934. align-items: center;
  11935. }
  11936. .wb_j_box_p_box {
  11937. max-width: calc(100% - 200px);
  11938. word-break: break-all;
  11939. overflow: hidden;
  11940. margin: 0 0 0 10px;
  11941. font-size: 14px;
  11942. color: #6e6e6e;
  11943. z-index: 999;
  11944. }
  11945. .chooseWho {
  11946. display: flex;
  11947. width: 410px;
  11948. flex-direction: row;
  11949. flex-wrap: nowrap;
  11950. justify-content: space-between;
  11951. padding-bottom: 10px;
  11952. }
  11953. .chooseWho>div {
  11954. cursor: pointer;
  11955. padding-bottom: 10px;
  11956. font-weight: bold;
  11957. }
  11958. .isChooseActive {
  11959. color: #3e88f4;
  11960. border-bottom: 2px solid #2f80f3;
  11961. }
  11962. .toolSort {
  11963. display: flex;
  11964. flex-direction: row;
  11965. flex-wrap: wrap;
  11966. justify-content: flex-start;
  11967. align-items: flex-start;
  11968. }
  11969. .toolSort>div {
  11970. margin-right: 10px;
  11971. }
  11972. .tools {
  11973. width: 100%;
  11974. display: flex;
  11975. flex-direction: column;
  11976. flex-wrap: nowrap;
  11977. align-items: flex-start;
  11978. }
  11979. .leftTools,
  11980. .rightTools {
  11981. width: 50%;
  11982. }
  11983. .leftTools+.leftTools {
  11984. border-top: 1px solid #dbdbdb;
  11985. padding-top: 30px;
  11986. }
  11987. .rightTools {
  11988. display: flex;
  11989. flex-direction: row;
  11990. flex-wrap: nowrap;
  11991. justify-content: space-around;
  11992. }
  11993. .firstToolList {
  11994. display: flex;
  11995. flex-direction: column;
  11996. flex-wrap: nowrap;
  11997. align-items: center;
  11998. }
  11999. .iconList {
  12000. display: flex;
  12001. flex-direction: row;
  12002. flex-wrap: wrap;
  12003. justify-content: flex-start;
  12004. align-items: center;
  12005. margin: 20px 0 5px 0;
  12006. width: 240px;
  12007. min-width: 240px;
  12008. }
  12009. .iconTool {
  12010. display: flex;
  12011. flex-direction: column;
  12012. flex-wrap: nowrap;
  12013. align-items: center;
  12014. justify-content: flex-start;
  12015. margin: 15px 10px;
  12016. }
  12017. .toolIcon {
  12018. width: 50px;
  12019. }
  12020. .taskBorder {
  12021. /* border: 1px solid #CAD1DC; */
  12022. border-radius: 10px;
  12023. margin-top: 10px;
  12024. min-height: 670px;
  12025. position: relative;
  12026. background: #fff;
  12027. padding: 20px;
  12028. overflow: hidden;
  12029. box-sizing: border-box;
  12030. }
  12031. .smallTaskBorder {
  12032. height: 405px;
  12033. min-height: 405px !important;
  12034. overflow: hidden;
  12035. }
  12036. /* .taskBorder>div {
  12037. padding: 30px 30px 10px;
  12038. } */
  12039. .addTaskBorder {
  12040. /* border: 2px solid #5E9AFC; */
  12041. border-radius: 8px;
  12042. margin-top: 10px;
  12043. cursor: pointer;
  12044. /* height: 50px;
  12045. line-height: 50px; */
  12046. background: #fff;
  12047. padding: 15px 0;
  12048. display: flex;
  12049. align-items: center;
  12050. justify-content: center;
  12051. }
  12052. /* .addTaskBorder>div {
  12053. margin: 0 auto;
  12054. display: flex;
  12055. align-items: center;
  12056. justify-content: center;
  12057. }
  12058. .addTaskBorder>div>img {
  12059. width: 20px;
  12060. }
  12061. .addTaskBorder>div>span {
  12062. font-size: 16px;
  12063. margin-left: 10px;
  12064. color: #5E9AFC;
  12065. } */
  12066. .funBlock {
  12067. display: flex;
  12068. padding: 15px 0;
  12069. flex-direction: row;
  12070. justify-content: center;
  12071. align-items: center;
  12072. position: absolute;
  12073. right: 0;
  12074. bottom: 0;
  12075. background: #fff;
  12076. width: 100%;
  12077. height: 60px;
  12078. z-index: 9;
  12079. }
  12080. .fold {
  12081. display: flex;
  12082. margin: 0 20px;
  12083. flex-direction: row;
  12084. align-items: center;
  12085. cursor: pointer;
  12086. color: #2b7bff;
  12087. }
  12088. .arrow {
  12089. margin-right: 8px;
  12090. width: 16px;
  12091. height: 16px;
  12092. min-width: 16px;
  12093. min-height: 16px;
  12094. background-size: 100% 100%;
  12095. display: block;
  12096. background-image: url(../../assets/icon/new/u_up.png);
  12097. /* border-left: 7px solid transparent;
  12098. border-bottom: 7px solid #717C8D;
  12099. border-top: 0px solid transparent;
  12100. border-right: 7px solid transparent; */
  12101. /* box-sizing: border-box; */
  12102. transition: all .3s;
  12103. }
  12104. .arrowZ {
  12105. transform: rotate(180deg);
  12106. }
  12107. .addToolFun {
  12108. display: flex;
  12109. width: 150px;
  12110. flex-direction: row;
  12111. align-items: center;
  12112. justify-content: center;
  12113. border: 2px dashed #CAD1DC;
  12114. border-radius: 5px;
  12115. height: 50px;
  12116. margin: 35px auto 0;
  12117. cursor: pointer;
  12118. }
  12119. .addToolFun2 {
  12120. display: flex;
  12121. width: 150px;
  12122. border: 2px dashed #CAD1DC;
  12123. flex-direction: row;
  12124. align-items: center;
  12125. justify-content: center;
  12126. border-radius: 5px;
  12127. height: 50px;
  12128. margin: 0 auto 0;
  12129. cursor: pointer;
  12130. }
  12131. .addToolFun2>div,
  12132. .addToolFun>div {
  12133. display: flex;
  12134. line-height: 50px;
  12135. }
  12136. .addToolImg {
  12137. width: 20px;
  12138. height: 20px;
  12139. margin-right: 10px;
  12140. }
  12141. .addToolsDia>>>.el-dialog__body {
  12142. padding: 20px;
  12143. }
  12144. .addToolsDia>>>.el-dialog__body>.toolChoose {
  12145. padding: 0;
  12146. }
  12147. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  12148. padding: 0;
  12149. border-bottom: none;
  12150. margin-bottom: 0;
  12151. }
  12152. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  12153. width: 100%;
  12154. }
  12155. .lineCss>>>.el-form-item__label {
  12156. width: auto !important;
  12157. }
  12158. .lineCss>>>.el-form-item__content {
  12159. margin-left: 50px !important;
  12160. }
  12161. .newSteps {
  12162. display: flex;
  12163. width: 100% !important;
  12164. /* height: 80px; */
  12165. cursor: pointer;
  12166. margin: 10px 0;
  12167. border-radius: 10px;
  12168. flex-direction: row;
  12169. align-content: center;
  12170. justify-content: center;
  12171. align-items: center;
  12172. margin: 0 !important;
  12173. }
  12174. /* 评价样式 */
  12175. .elist_css {
  12176. padding-bottom: 75px !important;
  12177. }
  12178. .elist_title {
  12179. margin-bottom: 10px;
  12180. }
  12181. .elist_input {
  12182. width: 100%;
  12183. }
  12184. .elist_input_box {
  12185. display: flex;
  12186. align-items: center;
  12187. flex-wrap: wrap;
  12188. }
  12189. .elist_input_box+.elist_input_box {
  12190. margin-top: 30px;
  12191. }
  12192. .elist_input .elist_input_box input {
  12193. font: inherit;
  12194. color: currentColor;
  12195. width: 100%;
  12196. /* max-width: calc(100% - 385px); */
  12197. max-width: calc(100% - 150px);
  12198. padding: 8px 14px;
  12199. display: block;
  12200. min-width: 0;
  12201. outline: none;
  12202. border: 1px solid rgba(0, 0, 0, 0.23);
  12203. border-radius: 4px;
  12204. box-sizing: border-box;
  12205. background: #fff;
  12206. margin: 0 20px 0 0;
  12207. }
  12208. .elist_input .elist_input_box span {
  12209. height: 36px;
  12210. line-height: 36px;
  12211. color: rgb(82, 82, 82);
  12212. min-width: 80px;
  12213. }
  12214. .elist_input .elist_input_box .remove {
  12215. height: 20px;
  12216. width: 20px;
  12217. min-height: 20px;
  12218. min-width: 20px;
  12219. background-size: 100% 100%;
  12220. background-position: unset;
  12221. margin-left: 5px;
  12222. }
  12223. .elist_input_box>>>.el-rate {
  12224. display: flex;
  12225. height: 36px;
  12226. align-items: center;
  12227. }
  12228. .elist_input_box .elist_inptu_text {
  12229. width: 100%;
  12230. display: flex;
  12231. align-items: center;
  12232. margin-top: 10px;
  12233. }
  12234. .elist_input_box .elist_inptu_text input {
  12235. /* width: 500px; */
  12236. width: 100%;
  12237. max-width: unset;
  12238. }
  12239. .elist_input_box>>>.el-rate__icon {
  12240. font-size: 24px;
  12241. }
  12242. .elist_btn {
  12243. margin-top: 10px;
  12244. }
  12245. .lineTitle {
  12246. /* margin-top: 15px; */
  12247. width: 110px;
  12248. font-size: 16px;
  12249. display: flex;
  12250. align-items: center;
  12251. line-height: 20px;
  12252. }
  12253. .lineTitle::before {
  12254. content: '';
  12255. display: block;
  12256. width: 3px;
  12257. height: 20px;
  12258. background: #0061FF;
  12259. border-radius: 3px;
  12260. margin: 0 5px 0 0;
  12261. }
  12262. .clineTitle::before {
  12263. content: '';
  12264. display: block;
  12265. min-width: 10px;
  12266. width: 10px;
  12267. height: 10px;
  12268. background: #0061ff;
  12269. border-radius: 50%;
  12270. margin: 0 5px 0 0;
  12271. }
  12272. .courseTop {
  12273. display: flex;
  12274. flex-direction: row;
  12275. justify-content: space-between;
  12276. align-items: center;
  12277. width: calc(100% - 40px);
  12278. margin: 0 auto;
  12279. padding: 10px 0;
  12280. }
  12281. .stepsNav {
  12282. display: flex;
  12283. flex-direction: row;
  12284. justify-content: flex-start;
  12285. align-items: center;
  12286. }
  12287. .stepsWord {
  12288. font-size: 18px;
  12289. color: #fff;
  12290. font-weight: bold;
  12291. margin-left: auto;
  12292. background: rgb(15, 126, 255);
  12293. border-radius: 5px;
  12294. padding: 3px 25px;
  12295. box-sizing: border-box;
  12296. }
  12297. .stepBox {
  12298. width: calc(100% - 40px);
  12299. height: calc(100% - 50px);
  12300. overflow: hidden;
  12301. border-radius: 5px;
  12302. margin: 0 auto;
  12303. }
  12304. .rightBox {
  12305. width: calc(100%);
  12306. background: #F0F2F5;
  12307. /* border-radius: 10px; */
  12308. overflow: auto;
  12309. height: calc(100% - 150px);
  12310. margin: 0 auto;
  12311. position: relative;
  12312. box-sizing: border-box;
  12313. }
  12314. .e_add_top {
  12315. display: flex;
  12316. justify-content: space-between;
  12317. background: #fff;
  12318. position: absolute;
  12319. right: 20px;
  12320. height: 50px;
  12321. align-items: center;
  12322. }
  12323. .e_add_title2 {
  12324. display: flex;
  12325. align-items: center;
  12326. }
  12327. .e_add_title2 span {
  12328. width: 40px;
  12329. }
  12330. .e_add_title {
  12331. display: flex;
  12332. align-items: center;
  12333. color: #b8b8b8;
  12334. font-size: 18px;
  12335. position: relative;
  12336. height: 40px;
  12337. }
  12338. .e_add_title span {
  12339. margin-right: 10px;
  12340. }
  12341. .e_add_title .el_input {
  12342. width: 300px;
  12343. }
  12344. .e_add_title>>>.el-input__inner {
  12345. width: 400px;
  12346. }
  12347. .e_add_btn {}
  12348. .e_add_content {
  12349. display: flex;
  12350. width: 100%;
  12351. }
  12352. .e_add_list {
  12353. background: #fff;
  12354. height: 500px;
  12355. width: 210px;
  12356. position: relative;
  12357. margin: 15px 5px 0 0;
  12358. flex-shrink: 0;
  12359. display: flex;
  12360. flex-direction: column;
  12361. }
  12362. .e_add_list_title {
  12363. font-size: 20px;
  12364. width: 100%;
  12365. box-sizing: border-box;
  12366. padding: 15px 40px;
  12367. text-align: center;
  12368. border-bottom: 1px solid #eaeaea;
  12369. position: relative;
  12370. display: flex;
  12371. align-items: center;
  12372. justify-content: center;
  12373. height: 57px;
  12374. background: #f6f6f6;
  12375. }
  12376. .e_add_list_title span {
  12377. overflow: hidden;
  12378. white-space: nowrap;
  12379. text-overflow: ellipsis;
  12380. }
  12381. .e_add_list_title img {
  12382. position: absolute;
  12383. right: 15px;
  12384. width: 25px;
  12385. cursor: pointer;
  12386. top: 50%;
  12387. transform: translateY(-50%);
  12388. }
  12389. .e_add_list_body {
  12390. height: calc(100% - 187px);
  12391. overflow: auto;
  12392. }
  12393. .e_add_list_child {
  12394. width: 100%;
  12395. display: flex;
  12396. align-items: center;
  12397. justify-content: center;
  12398. position: relative;
  12399. box-sizing: border-box;
  12400. padding: 15px 40px;
  12401. text-align: center;
  12402. }
  12403. .e_add_list_child span {
  12404. overflow: hidden;
  12405. white-space: nowrap;
  12406. text-overflow: ellipsis;
  12407. cursor: pointer;
  12408. }
  12409. .e_add_list_child img {
  12410. position: absolute;
  12411. right: 10px;
  12412. width: 21px;
  12413. cursor: pointer;
  12414. top: 50%;
  12415. transform: translateY(-50%);
  12416. }
  12417. .e_add_list_child+.e_add_list_child {
  12418. border-top: 1px solid #eaeaea;
  12419. }
  12420. .e_add_list_child .active {
  12421. color: #409eff;
  12422. }
  12423. .e_add_list_btn {
  12424. position: absolute;
  12425. bottom: 0;
  12426. height: 50px;
  12427. background: rgb(120, 120, 254);
  12428. width: 100%;
  12429. color: #fff;
  12430. font-size: 16px;
  12431. text-align: center;
  12432. line-height: 50px;
  12433. cursor: pointer;
  12434. }
  12435. .e_add_list_detail {
  12436. position: absolute;
  12437. bottom: 0;
  12438. height: 130px;
  12439. background: rgb(120, 120, 254);
  12440. width: 100%;
  12441. color: #fff;
  12442. font-size: 16px;
  12443. display: flex;
  12444. align-items: center;
  12445. justify-content: center;
  12446. }
  12447. .e_add_list_detail textarea {
  12448. height: 90%;
  12449. width: 95%;
  12450. border: none;
  12451. resize: none;
  12452. outline: none;
  12453. padding: 5px;
  12454. box-sizing: border-box;
  12455. }
  12456. .e_add_list_pbox {
  12457. width: 100%;
  12458. }
  12459. .e_add_list_pbox_title {
  12460. height: 50px;
  12461. background: #fff;
  12462. display: flex;
  12463. align-items: center;
  12464. width: 100%;
  12465. box-sizing: border-box;
  12466. padding: 0 20px;
  12467. flex-direction: row;
  12468. flex-wrap: wrap;
  12469. }
  12470. .type_title {
  12471. font-size: 18px;
  12472. font-weight: 700;
  12473. }
  12474. .type_content {
  12475. font-size: 16px;
  12476. margin-left: 30px;
  12477. }
  12478. .type_content span+span {
  12479. margin-left: 20px;
  12480. }
  12481. .type_content span {
  12482. cursor: pointer;
  12483. padding-bottom: 5px;
  12484. box-sizing: border-box;
  12485. }
  12486. .type_content .active {
  12487. color: #409eff;
  12488. border-bottom: 2px solid #409eff;
  12489. }
  12490. .e_add_list_pbox_content {
  12491. height: calc(100% - 50px);
  12492. display: flex;
  12493. align-items: center;
  12494. width: 100%;
  12495. background: #fff;
  12496. }
  12497. .mbCss {
  12498. width: 100%;
  12499. display: flex;
  12500. flex-direction: row;
  12501. flex-wrap: nowrap;
  12502. align-content: center;
  12503. align-items: flex-start;
  12504. justify-content: flex-start;
  12505. }
  12506. .pjCss {
  12507. /* width: 42%; */
  12508. width: calc(100% - 55%);
  12509. display: flex;
  12510. flex-direction: column;
  12511. flex-wrap: nowrap;
  12512. align-items: flex-start;
  12513. }
  12514. .e_box {
  12515. /* display: flex; */
  12516. flex-wrap: wrap;
  12517. max-height: 500px;
  12518. align-items: flex-start;
  12519. overflow: auto;
  12520. width:100%;
  12521. }
  12522. .e_card {
  12523. border: 1px solid #ccc;
  12524. background: #fff;
  12525. margin-right: 20px;
  12526. width: 270px;
  12527. display: flex;
  12528. flex-direction: column;
  12529. align-items: center;
  12530. border-radius: 5px;
  12531. margin-top: 10px;
  12532. text-align: center;
  12533. }
  12534. .e_card_picture {
  12535. margin: 10px 0;
  12536. }
  12537. .e_card_picture>img {
  12538. width: 50px;
  12539. }
  12540. .e_card_name {
  12541. width: 100%;
  12542. padding: 0 10px;
  12543. box-sizing: border-box;
  12544. margin-bottom: 10px;
  12545. overflow: hidden;
  12546. text-overflow: ellipsis;
  12547. white-space: nowrap;
  12548. }
  12549. .e_card_time {
  12550. width: 100%;
  12551. padding: 0 10px;
  12552. box-sizing: border-box;
  12553. font-size: 15px;
  12554. color: #c3c3c3;
  12555. margin-bottom: 10px;
  12556. }
  12557. .e_card_btn {
  12558. height: 40px;
  12559. display: flex;
  12560. align-items: center;
  12561. width: 100%;
  12562. background: rgb(244, 244, 244);
  12563. }
  12564. .e_card_btn:hover {
  12565. background: rgb(221 221 221);
  12566. }
  12567. .e_card_btn span {
  12568. flex: 1 1 auto;
  12569. text-align: center;
  12570. cursor: pointer;
  12571. }
  12572. .addEva {
  12573. border: 1px solid #ccc;
  12574. background: #fff;
  12575. margin-right: 20px;
  12576. width: 270px;
  12577. height: 149px;
  12578. display: flex;
  12579. flex-direction: column;
  12580. align-items: center;
  12581. border-radius: 5px;
  12582. margin-top: 10px;
  12583. text-align: center;
  12584. cursor: pointer;
  12585. justify-content: center;
  12586. }
  12587. .addEva>img {
  12588. width: 50px;
  12589. object-fit: cover;
  12590. }
  12591. .uploadFm {
  12592. border: 1px dashed #ccc;
  12593. width: 100%;
  12594. height: 140px;
  12595. position: relative;
  12596. cursor: pointer;
  12597. display: flex;
  12598. flex-direction: column;
  12599. justify-content: center;
  12600. align-items: center;
  12601. font-size: 14px;
  12602. color: #6e6e6e;
  12603. position:relative;
  12604. }
  12605. .cover_p{
  12606. width: 100% !important;
  12607. height: 100%;
  12608. object-fit: cover;
  12609. }
  12610. .uploadFm2:hover .cover_mask{
  12611. display: flex !important;
  12612. }
  12613. .cover_mask{
  12614. display:none;
  12615. width:100%;
  12616. height:100%;
  12617. position:absolute;
  12618. background:#00000054;
  12619. align-items: center;
  12620. justify-content: center;
  12621. flex-direction: column;
  12622. }
  12623. .cover_mask > img{
  12624. width: 30px;
  12625. }
  12626. .cover_mask > span{
  12627. color: #fff;
  12628. font-size: 12px;
  12629. }
  12630. .uploadFm>img {
  12631. width: 50px;
  12632. }
  12633. .fileCss {
  12634. width: 100%;
  12635. display: flex;
  12636. flex-direction: row;
  12637. flex-wrap: nowrap;
  12638. justify-content: space-around;
  12639. align-items: center;
  12640. padding-top: 15px;
  12641. }
  12642. .fileCss>div {
  12643. display: flex;
  12644. flex-direction: column;
  12645. align-items: center;
  12646. }
  12647. .fileCss .spanName {
  12648. margin-top: 10px
  12649. }
  12650. .sysPicBox {
  12651. display: flex;
  12652. flex-direction: row;
  12653. flex-wrap: wrap;
  12654. align-content: flex-start;
  12655. height: 435px;
  12656. overflow: auto;
  12657. position: relative;
  12658. }
  12659. .picNone {
  12660. position: absolute;
  12661. left: 50%;
  12662. top: 45%;
  12663. transform: translate(-50%, -50%);
  12664. width: fit-content;
  12665. color: #9c9c9c;
  12666. }
  12667. .sysPic {
  12668. width: 200px;
  12669. height: 115px;
  12670. margin: 0 20px 20px 0;
  12671. cursor: pointer;
  12672. }
  12673. .sysPic>img,
  12674. .isSysPic>img,
  12675. .deletePic>img {
  12676. width: 100%;
  12677. height: 100%;
  12678. object-fit: cover;
  12679. }
  12680. .isSysPic {
  12681. width: 200px;
  12682. height: 115px;
  12683. position: relative;
  12684. }
  12685. .deletePic {
  12686. width: 20px;
  12687. height: 20px;
  12688. position: absolute;
  12689. top: 0;
  12690. right: 0;
  12691. cursor: pointer;
  12692. }
  12693. .select_box1 {
  12694. height: 100%;
  12695. }
  12696. .select_box1_img {
  12697. background: #fff;
  12698. border-radius: 5px;
  12699. padding: 15px;
  12700. box-sizing: border-box;
  12701. margin-bottom: 20px;
  12702. }
  12703. .select_box1_title {
  12704. padding: 0 0 15px 0;
  12705. border-bottom: 1px solid #eee;
  12706. margin-bottom: 15px;
  12707. }
  12708. .select_box1_title span:nth-child(1) {
  12709. font-size: 16px;
  12710. margin-right: 20px;
  12711. color: #000;
  12712. }
  12713. .select_box1_title span:nth-child(2) {
  12714. font-size: 14px;
  12715. color: rgb(112, 112, 112);
  12716. }
  12717. .select_box1_add_img {}
  12718. .select_box1_select {
  12719. background: #fff;
  12720. border-radius: 5px;
  12721. padding: 15px;
  12722. box-sizing: border-box;
  12723. height: calc(100% - 200px);
  12724. overflow: auto;
  12725. }
  12726. .select_box2 {
  12727. height: 100%;
  12728. }
  12729. .select_box2_title {
  12730. background: #fff;
  12731. border-radius: 5px;
  12732. padding: 5px 10px;
  12733. box-sizing: border-box;
  12734. margin-bottom: 10px;
  12735. }
  12736. .select_box2_box {
  12737. display: flex;
  12738. height: calc(100% - 30px);
  12739. }
  12740. .select_box2_img {
  12741. width: calc(100% - 310px);
  12742. height: 100%;
  12743. overflow: auto;
  12744. background: #fff;
  12745. border-radius: 5px;
  12746. }
  12747. .select_box2_img img {
  12748. width: 100%;
  12749. }
  12750. .select_box2_answer {
  12751. background: #fff;
  12752. margin-left: 10px;
  12753. border-radius: 5px;
  12754. width: 300px;
  12755. overflow: auto;
  12756. height: 100%;
  12757. display: flex;
  12758. flex-direction: column;
  12759. align-items: center;
  12760. padding-top: 10px;
  12761. box-sizing: border-box;
  12762. }
  12763. .select_box2_answer_box {
  12764. margin: 0 0 10px 0;
  12765. width: 85%;
  12766. }
  12767. .rate_textarea {
  12768. font: inherit;
  12769. color: currentColor;
  12770. width: 100%;
  12771. padding: 8px 14px;
  12772. display: block;
  12773. min-width: 0;
  12774. outline: none;
  12775. border: 1px solid rgba(0, 0, 0, 0.23);
  12776. border-radius: 4px;
  12777. box-sizing: border-box;
  12778. background: #fff;
  12779. margin: 0 20px 0 0;
  12780. resize: none;
  12781. }
  12782. .select_answer_title {
  12783. text-align: left;
  12784. width: 85%;
  12785. margin-bottom: 10px;
  12786. font-size: 18px;
  12787. color: #8e8e8e;
  12788. }
  12789. .mask {
  12790. background-color: rgb(0 0 0 / 30%);
  12791. /* position: fixed; */
  12792. position: absolute;
  12793. top: 0;
  12794. left: 0;
  12795. width: 100%;
  12796. height: 100%;
  12797. z-index: 90;
  12798. display: flex;
  12799. align-items: center;
  12800. justify-content: center;
  12801. }
  12802. .progressBox {
  12803. width: 300px;
  12804. height: 150px;
  12805. background: #fff;
  12806. border-radius: 10px;
  12807. box-shadow: 0 0 6px 1px #bfbfbf;
  12808. display: flex;
  12809. align-items: center;
  12810. justify-content: center;
  12811. flex-direction: column;
  12812. position: relative;
  12813. color: #6c6c6c;
  12814. }
  12815. .progressBox>>>.el-progress-bar__outer {
  12816. background-color: #d1dfff !important;
  12817. }
  12818. .progressBox .lbox {
  12819. height: 50px;
  12820. font-size: 19px;
  12821. display: flex;
  12822. align-items: center;
  12823. color: #747474;
  12824. }
  12825. .progressBox .lbox img {
  12826. width: 40px;
  12827. margin-right: 20px;
  12828. }
  12829. .closeCss {
  12830. position: absolute;
  12831. top: 8px;
  12832. right: 8px;
  12833. cursor: pointer;
  12834. width: 20px;
  12835. height: 20px;
  12836. }
  12837. .closeCss>img {
  12838. width: 100%;
  12839. height: 100%;
  12840. }
  12841. .updateTips::before {
  12842. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12843. font-size: 14px;
  12844. margin-left: 20px;
  12845. font-weight: 400;
  12846. color: #ff3a3a;
  12847. margin-bottom: 10px;
  12848. display: block;
  12849. }
  12850. .updateMask {
  12851. width: 100%;
  12852. z-index: 3;
  12853. top: 0;
  12854. position: absolute;
  12855. /* background-color: rgba(0,0,0,.3); */
  12856. }
  12857. .t_j_box {
  12858. display: flex;
  12859. }
  12860. .t_j_box span:nth-child(1) {
  12861. width: 15%;
  12862. overflow: hidden;
  12863. margin-right: 10px;
  12864. text-overflow: ellipsis;
  12865. white-space: nowrap;
  12866. }
  12867. .t_j_box span:nth-child(2) {
  12868. width: 30%;
  12869. overflow: hidden;
  12870. text-overflow: ellipsis;
  12871. margin-right: 10px;
  12872. }
  12873. .t_j_box span:nth-child(3) {
  12874. max-width: calc(55% - 20px);
  12875. overflow: hidden;
  12876. text-overflow: ellipsis;
  12877. }
  12878. .sentenBox {
  12879. background: #fff;
  12880. height: 600px;
  12881. overflow: auto;
  12882. background-image: url("../../assets/icon/conSentences/csBg.png");
  12883. background-position: 102%;
  12884. background-repeat: no-repeat;
  12885. background-size: 60%;
  12886. }
  12887. .sentenBox>.sentenContent {
  12888. padding-bottom: 10px;
  12889. width: 97%;
  12890. margin: 0 auto;
  12891. }
  12892. .sentenBox>.sentenContent+.sentenContent {
  12893. border-top: 1px solid #cbcbcb;
  12894. }
  12895. .addSen {
  12896. background: #409efe;
  12897. width: 90px;
  12898. color: #fff;
  12899. height: 35px;
  12900. text-align: center;
  12901. line-height: 35px;
  12902. border-radius: 5px;
  12903. float: right;
  12904. margin: 10px 20px 0 0;
  12905. cursor: pointer;
  12906. }
  12907. .sentenTop {
  12908. display: flex;
  12909. flex-direction: row;
  12910. flex-wrap: nowrap;
  12911. align-items: center;
  12912. }
  12913. .sentenTop::before {
  12914. content: attr(index);
  12915. background: #3681fc;
  12916. border-radius: 50%;
  12917. color: #fff;
  12918. width: 25px;
  12919. height: 25px;
  12920. min-width: 25px;
  12921. min-height: 25px;
  12922. text-align: center;
  12923. line-height: 25px;
  12924. margin-right: 5px;
  12925. }
  12926. .sentenTop>div:nth-child(2) {
  12927. width: 300px;
  12928. margin: 0 15px;
  12929. }
  12930. .sentenTop>div:nth-child(3) {
  12931. background: #409efe;
  12932. color: #fff;
  12933. width: 65px;
  12934. height: 35px;
  12935. text-align: center;
  12936. line-height: 35px;
  12937. border-radius: 5px;
  12938. cursor: pointer;
  12939. }
  12940. .cardList {
  12941. padding: 30px 0 20px 0;
  12942. display: flex;
  12943. flex-direction: row;
  12944. flex-wrap: wrap;
  12945. align-items: center;
  12946. box-sizing: border-box;
  12947. border-bottom: 1px solid #f4f4f4;
  12948. width: 98%;
  12949. margin: 0 auto;
  12950. }
  12951. .rightCardList {
  12952. display: flex;
  12953. flex-wrap: wrap;
  12954. }
  12955. .cardBox {
  12956. display: flex;
  12957. flex-direction: row;
  12958. flex-wrap: wrap;
  12959. align-items: center;
  12960. align-content: center;
  12961. }
  12962. .isCard,
  12963. .isCard1 {
  12964. width: auto;
  12965. padding: 0 20px;
  12966. height: 65px;
  12967. text-align: center;
  12968. line-height: 65px;
  12969. font-size: 14px;
  12970. cursor: pointer;
  12971. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  12972. background-size: 100% 100%;
  12973. position: relative;
  12974. z-index: 99;
  12975. }
  12976. .isCard1 {
  12977. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  12978. }
  12979. .isCard:hover .deleteWord {
  12980. display: block;
  12981. }
  12982. .isCard>div:nth-child(1),
  12983. .isCard1>div:nth-child(1) {
  12984. white-space: nowrap;
  12985. overflow: hidden;
  12986. text-overflow: ellipsis;
  12987. width: 100%;
  12988. margin: 0 auto;
  12989. }
  12990. .card {
  12991. width: 140px;
  12992. height: 65px;
  12993. }
  12994. .card>img {
  12995. width: 100%;
  12996. height: 100%;
  12997. }
  12998. .rightCardBox {
  12999. width: 98%;
  13000. margin: 10px auto 0;
  13001. }
  13002. .rightCardBox>div:nth-child(1) {
  13003. margin-bottom: 10px;
  13004. }
  13005. .cardCss {
  13006. display: flex;
  13007. flex-direction: column;
  13008. flex-wrap: nowrap;
  13009. align-items: center;
  13010. border-bottom: 3px solid #b4c3d3;
  13011. padding: 0 0 5px 0;
  13012. /* margin-right: 10px; */
  13013. }
  13014. .cardCss>div:nth-child(2) {
  13015. background: #5b7b9d;
  13016. color: #fff;
  13017. width: 20px;
  13018. height: 20px;
  13019. border-radius: 50%;
  13020. text-align: center;
  13021. line-height: 20px;
  13022. }
  13023. .sentenTopBox {
  13024. display: flex;
  13025. flex-direction: row;
  13026. flex-wrap: nowrap;
  13027. align-items: center;
  13028. justify-content: space-between;
  13029. padding: 55px 0 0 20px;
  13030. box-sizing: border-box;
  13031. width: 85%;
  13032. }
  13033. .stepsBottom {
  13034. width: 100%;
  13035. box-shadow: 0 0 10px 10px #f7f7f7;
  13036. /* background: #f7f7f7; */
  13037. border-radius: 10px;
  13038. overflow: hidden;
  13039. height: 100%
  13040. }
  13041. .navTop {
  13042. background: #53749b;
  13043. color: #fff;
  13044. height: 40px;
  13045. line-height: 40px;
  13046. padding-left: 15px;
  13047. font-size: 18px;
  13048. }
  13049. .navBottom {
  13050. /* background: #6b91b7; */
  13051. height: 100%;
  13052. overflow: auto;
  13053. padding: 10px 0;
  13054. }
  13055. .navStage {
  13056. display: flex;
  13057. flex-direction: row;
  13058. flex-wrap: nowrap;
  13059. align-items: center;
  13060. padding: 10px 10px 10px 0;
  13061. cursor: pointer;
  13062. background: #ffffff;
  13063. width: 95%;
  13064. margin: 5px auto 5px;
  13065. box-sizing: border-box;
  13066. border-radius: 5px;
  13067. flex-wrap: wrap;
  13068. position: relative;
  13069. }
  13070. .navStage:hover > .chapter_upload_drag{
  13071. display: block;
  13072. }
  13073. .navTask:hover > .chapter_upload_drag{
  13074. display: block;
  13075. }
  13076. .chapter_upload:hover > .chapter_upload_drag{
  13077. display: block;
  13078. }
  13079. .navStage::before {
  13080. content: '';
  13081. display: block;
  13082. width: 16px;
  13083. height: 16px;
  13084. background-image: url(../../assets/icon/new/icon_stage.png);
  13085. background-size: 100%;
  13086. margin-left: 25px;
  13087. }
  13088. .navStage .chapter_unit_open {
  13089. content: '';
  13090. display: block;
  13091. width: 16px;
  13092. height: 16px;
  13093. background-image: url(../../assets/icon/new/down.png);
  13094. transform: rotate(-90deg);
  13095. background-size: 100%;
  13096. margin-left: 10px;
  13097. transition: all .5s;
  13098. }
  13099. .isNavStageOpen .chapter_unit_open {
  13100. transform: rotate(0deg);
  13101. }
  13102. .isNavStage {
  13103. background: #0061FF;
  13104. }
  13105. .isNavStage::before{
  13106. background-image: url(../../assets/icon/new/icon_stage_a.png);
  13107. }
  13108. .isNavStage .chapter_unit_open{
  13109. background-image: url(../../assets/icon/new/downC.png);
  13110. }
  13111. .isNavStage .nt_taskName {
  13112. font-weight: bold !important;
  13113. color: #FFFFFF !important;
  13114. }
  13115. .isNavStage .nt_taskTitle {
  13116. font-weight: bold !important;
  13117. color: #fff !important;
  13118. }
  13119. .navStage .nt_taskBox {
  13120. width: calc(100% - 68px);
  13121. padding: 0 0 0 5px;
  13122. box-sizing: border-box;
  13123. box-sizing: border-box;
  13124. display: flex;
  13125. flex-direction: row;
  13126. flex-wrap: nowrap;
  13127. align-items: baseline;
  13128. }
  13129. .navStage .nt_taskTitle {
  13130. color: #060E17;
  13131. line-height: 25px;
  13132. font-size: 16px;
  13133. }
  13134. .navStage .nt_taskName {
  13135. max-width: calc(100% - 82px);
  13136. white-space: nowrap;
  13137. overflow: hidden;
  13138. text-overflow: ellipsis;
  13139. font-size: 16px;
  13140. color: #060E17;
  13141. }
  13142. .navTask {
  13143. display: flex;
  13144. flex-direction: row;
  13145. flex-wrap: nowrap;
  13146. align-items: center;
  13147. padding: 10px 10px 10px 0;
  13148. cursor: pointer;
  13149. background: #ffffff;
  13150. width: 95%;
  13151. margin: 5px auto 5px;
  13152. box-sizing: border-box;
  13153. border-radius: 5px;
  13154. flex-wrap: wrap;
  13155. position: relative;
  13156. }
  13157. .navTask .chapter_upload_open {
  13158. content: '';
  13159. display: block;
  13160. width: 16px;
  13161. height: 16px;
  13162. background-image: url(../../assets/icon/new/icon_arrow.png);
  13163. background-size: 100%;
  13164. margin-left: 23px;
  13165. }
  13166. .noImage .chapter_upload_open {
  13167. display: none;
  13168. background-image: unset !important;
  13169. }
  13170. .isNavOpen .chapter_upload_open {
  13171. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  13172. transform: rotate(90deg);
  13173. }
  13174. .isNavTask .chapter_upload_open {
  13175. background-image: url(../../assets/icon/new/icon_arrow_a.png) !important;
  13176. transform: rotate(-90deg);
  13177. }
  13178. .isNavTask.isNavOpen .chapter_upload_open{
  13179. transform: rotate(0deg);
  13180. }
  13181. .dragOverTop {
  13182. border-top: 2px solid #0061FF !important;
  13183. border-radius: 0 !important;
  13184. margin-top: 10px;
  13185. }
  13186. .dragOverBottom {
  13187. border-bottom: 2px solid #0061FF !important;
  13188. border-radius: 0 !important;
  13189. margin-top: 10px;
  13190. }
  13191. .dragOverTop2 {
  13192. border-top: 2px solid #0061FF !important;
  13193. border-radius: 0 !important;
  13194. }
  13195. .dragOverBottom2 {
  13196. border-bottom: 2px solid #0061FF !important;
  13197. border-radius: 0 !important;
  13198. }
  13199. .isNavTask {
  13200. /* background: #3681FC; */
  13201. background: #EEF3FB;
  13202. }
  13203. .isNavTask>.chapter_upload_drag {
  13204. background-image: url(../../assets/icon/new/icon_course_drag_active.png) !important;
  13205. }
  13206. .isNavTask .nt_taskName {
  13207. /* color: #fff !important; */
  13208. font-weight: bold !important;
  13209. color: #0061FF !important;
  13210. }
  13211. .isNavTask .nt_taskTitle {
  13212. /* color: #AECCFE !important; */
  13213. font-weight: bold !important;
  13214. color: #0061FF !important;
  13215. }
  13216. .navTask .nt_taskBox {
  13217. width: calc(100% - 40px);
  13218. padding: 0 0 0 5px;
  13219. box-sizing: border-box;
  13220. box-sizing: border-box;
  13221. display: flex;
  13222. flex-direction: row;
  13223. flex-wrap: nowrap;
  13224. align-items: baseline;
  13225. }
  13226. .navTask .nt_taskTitle {
  13227. /* color: #717C8D; */
  13228. color: #060E17;
  13229. line-height: 25px;
  13230. font-size: 16px;
  13231. /* min-width: 66px; */
  13232. }
  13233. .navTask .nt_taskName {
  13234. /* color: #fff; */
  13235. /* max-width: 130px; */
  13236. /* width: 100%; */
  13237. max-width: calc(100% - 66px);
  13238. font-size: 16px;
  13239. color: #060E17;
  13240. /* color: #0E1E33; */
  13241. }
  13242. .navTask .nt_taskName span{
  13243. width: 100%;
  13244. white-space: nowrap;
  13245. overflow: hidden;
  13246. text-overflow: ellipsis;
  13247. display:block;
  13248. }
  13249. .gjBox {
  13250. width: calc(100% - 25px);
  13251. padding: 0 0 0 0;
  13252. box-sizing: border-box;
  13253. border-left: 1px solid #CAD1DC;
  13254. margin-left: 25px;
  13255. }
  13256. .gjBox>div {
  13257. display: flex;
  13258. align-items: center;
  13259. }
  13260. .gjBox>div::before {
  13261. content: '';
  13262. height: 1px;
  13263. width: 10px;
  13264. background: #CAD1DC;
  13265. display: block;
  13266. margin-right: 5px;
  13267. }
  13268. .gjCss {
  13269. display: flex;
  13270. flex-direction: row;
  13271. flex-wrap: nowrap;
  13272. align-items: center;
  13273. padding: 15px 0;
  13274. box-sizing: border-box;
  13275. font-size: 14px;
  13276. cursor: pointer;
  13277. }
  13278. .isGjCss {
  13279. color: #0061ff;
  13280. }
  13281. .groupBox {}
  13282. .groupContent+.groupContent {
  13283. margin-top: 30px;
  13284. }
  13285. .groupTitle {
  13286. font-size: 24px;
  13287. color: rgb(80, 80, 80);
  13288. margin-bottom: 20px;
  13289. }
  13290. .groupName {
  13291. display: flex;
  13292. align-items: center;
  13293. }
  13294. .groupn {
  13295. font-size: 15px;
  13296. margin-right: 10px;
  13297. }
  13298. .groupName+.groupName {
  13299. margin-top: 15px;
  13300. }
  13301. .groupBtn {
  13302. margin-left: 10px;
  13303. }
  13304. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13305. text-align: left;
  13306. }
  13307. .radioBox>div {
  13308. margin: 10px 0 0 10px;
  13309. }
  13310. .radioBox>>>.el-radio__input,
  13311. .radioBox>>>.el-checkbox__inner {
  13312. margin-left: 10px;
  13313. }
  13314. .radioBox>>>.el-radio__label,
  13315. .radioBox>>>.el-checkbox__label {
  13316. display: flex;
  13317. align-items: center;
  13318. }
  13319. .inImg {
  13320. width: 50px;
  13321. }
  13322. .inImg>img {
  13323. width: 100%;
  13324. height: 100%;
  13325. object-fit: cover;
  13326. }
  13327. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13328. height: auto;
  13329. padding: 10px;
  13330. margin: 0;
  13331. }
  13332. .upCss>>>.el-upload-list {
  13333. width: 100%;
  13334. }
  13335. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13336. width: 100%;
  13337. height: 120px;
  13338. object-fit: contain;
  13339. background: unset;
  13340. margin-left: 0;
  13341. }
  13342. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13343. display: none;
  13344. }
  13345. .tcMember+.tcMember::before {
  13346. content: "、";
  13347. }
  13348. .xzUpImg {
  13349. width: 25px;
  13350. height: 25px;
  13351. min-width: 25px;
  13352. min-height: 25px;
  13353. cursor: pointer;
  13354. margin: 0 10px;
  13355. }
  13356. .xzUpImg>img {
  13357. width: 100%;
  13358. height: 100%;
  13359. }
  13360. .closeCss {
  13361. position: absolute;
  13362. top: 8px;
  13363. right: 8px;
  13364. cursor: pointer;
  13365. width: 20px;
  13366. height: 20px;
  13367. }
  13368. .closeCss>img {
  13369. width: 100%;
  13370. height: 100%;
  13371. }
  13372. .moveBtn {
  13373. display: flex;
  13374. flex-direction: row;
  13375. flex-wrap: nowrap;
  13376. align-items: center;
  13377. width: 55px;
  13378. }
  13379. .timuUpImg {
  13380. display: flex;
  13381. flex-direction: row;
  13382. align-items: center;
  13383. width: 100%;
  13384. margin-right: 10px;
  13385. }
  13386. .timuUpImg>div:nth-child(1) {
  13387. margin-right: 10px;
  13388. display: flex;
  13389. align-items: center;
  13390. width: 100%;
  13391. }
  13392. .timuImgBox {
  13393. margin: 10px 0;
  13394. display: flex;
  13395. flex-direction: column;
  13396. flex-wrap: wrap;
  13397. align-items: flex-start;
  13398. }
  13399. .timuImg {
  13400. width: 100px;
  13401. margin: 5px 0;
  13402. cursor: pointer;
  13403. position: relative;
  13404. }
  13405. .timuImg:hover .deleteWord {
  13406. display: block;
  13407. }
  13408. .deleteWord {
  13409. width: 25px;
  13410. height: 25px;
  13411. position: absolute;
  13412. right: -5px;
  13413. top: -5px;
  13414. cursor: pointer;
  13415. display: none;
  13416. }
  13417. .timuImg>img,
  13418. .deleteWord>img {
  13419. width: 100%;
  13420. height: 100%;
  13421. object-fit: cover;
  13422. }
  13423. .e_add_delete {
  13424. cursor: pointer;
  13425. margin-left: 10px;
  13426. }
  13427. .pType_box {
  13428. margin-top: 30px;
  13429. align-items: flex-end;
  13430. }
  13431. .noneBox {
  13432. height: 200px;
  13433. width: 100%;
  13434. display: flex;
  13435. align-items: center;
  13436. justify-content: center;
  13437. flex-direction: column;
  13438. /* margin-top: 150px; */
  13439. }
  13440. .noneBox>img {
  13441. width: 95px;
  13442. }
  13443. .noneBox>span {
  13444. margin-top: 10px;
  13445. color: #717C8D;
  13446. }
  13447. .rb_c_box {
  13448. width: 100%;
  13449. height: 100%;
  13450. display: flex;
  13451. /* padding: 20px; */
  13452. box-sizing: border-box;
  13453. justify-content: space-between;
  13454. }
  13455. .rb_c_box_left {
  13456. height: 100%;
  13457. background: #fff;
  13458. width: 270px;
  13459. min-width: 270px;
  13460. border-radius: 8px;
  13461. margin-right: 10px;
  13462. }
  13463. .rb_c_box_right {
  13464. height: 100%;
  13465. width: calc(100%);
  13466. overflow: hidden;
  13467. }
  13468. .rb_c_box_btn {
  13469. display: flex;
  13470. justify-content: flex-start;
  13471. height: 50px;
  13472. align-items: center;
  13473. }
  13474. .rb_c_box_right>.basic_box {
  13475. /* background: #fff; */
  13476. border-radius: 0;
  13477. height: calc(100% - 0px);
  13478. overflow: auto;
  13479. padding: 0;
  13480. }
  13481. .textarea_css {
  13482. display: block;
  13483. resize: none;
  13484. padding: 10px 15px;
  13485. line-height: 1.5;
  13486. box-sizing: border-box;
  13487. width: 100%;
  13488. font-size: 14px;
  13489. color: #606266;
  13490. background-color: #FFF;
  13491. background-image: none;
  13492. border: 1px solid #DCDFE6;
  13493. border-radius: 4px;
  13494. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13495. outline: none;
  13496. overflow: hidden;
  13497. height: 46px;
  13498. font-family: 'Microsoft YaHei';
  13499. }
  13500. .textarea_css::-webkit-input-placeholder {
  13501. color: #C0C4CC
  13502. }
  13503. .textarea_css:focus {
  13504. border-color: #409EFF;
  13505. outline: 0;
  13506. }
  13507. .addEditor>>>.text {
  13508. height: auto;
  13509. min-height: 100px;
  13510. }
  13511. .addEditor>>>.w-e-text-container {
  13512. min-height: 100px;
  13513. }
  13514. .moveBtn2 {
  13515. flex-direction: column;
  13516. width: fit-content;
  13517. margin: 0 10px 0 10px;
  13518. }
  13519. .moveBtn2 .chapter_upload_down,
  13520. .moveBtn2 .chapter_upload_up {
  13521. width: 16px;
  13522. height: 16px;
  13523. }
  13524. .moveBtn2 .chapter_upload_up::after,
  13525. .moveBtn2 .chapter_upload_down::after {
  13526. width: 10px;
  13527. height: 10px;
  13528. }
  13529. .fullStyle>>>.el-dialog__body {
  13530. height: calc(100% - 125px) !important;
  13531. box-sizing: border-box;
  13532. }
  13533. .fullStyle1>>>.el-dialog__body {
  13534. height: auto !important;
  13535. }
  13536. .fullStyle>>>.el-dialog {
  13537. width: 100% !important;
  13538. max-width: 100% !important;
  13539. height: 100% !important;
  13540. margin: 0 !important;
  13541. }
  13542. .fullStyle {
  13543. width: 100% !important;
  13544. max-width: 100% !important;
  13545. height: 100% !important;
  13546. margin: 0 auto !important;
  13547. }
  13548. .wb_j_box_btn {
  13549. width: calc(100% - 30px);
  13550. display: flex;
  13551. height: 40px;
  13552. border: 1.5px solid #CAD1DC;
  13553. border-radius: 4px;
  13554. box-sizing: border-box;
  13555. align-items: center;
  13556. font-size: 14px;
  13557. cursor: pointer;
  13558. overflow: hidden;
  13559. }
  13560. .wb_j_box_btn:hover {
  13561. border: 1.5px solid #0061FF;
  13562. }
  13563. .wb_j_box_title {
  13564. background: #F0F4FA;
  13565. height: 100%;
  13566. line-height: 40px;
  13567. width: 90px;
  13568. text-align: center;
  13569. color: #060E17;
  13570. border-right: 1.5px solid #CAD1DC;
  13571. box-sizing: border-box;
  13572. }
  13573. .wb_j_box_btn_c {
  13574. width: calc(100% - 90px);
  13575. padding: 0 35px 0 10px;
  13576. box-sizing: border-box;
  13577. position: relative;
  13578. }
  13579. .wb_j_box_span {
  13580. width: 100%;
  13581. overflow: hidden;
  13582. white-space: nowrap;
  13583. text-overflow: ellipsis;
  13584. word-wrap: break-word;
  13585. color: #717C8D;
  13586. }
  13587. .wb_j_box_arrow {
  13588. content: '';
  13589. width: 14px;
  13590. height: 14px;
  13591. background: url(../../assets/icon/new/u_arrow.png);
  13592. background-size: 100% 100%;
  13593. position: absolute;
  13594. right: 12px;
  13595. top: 50%;
  13596. transform: translateY(-50%);
  13597. }
  13598. .check_classBox {
  13599. height: 400px;
  13600. display: flex;
  13601. border-top: 1.5px solid #E7EBF1;
  13602. border-bottom: 1.5px solid #E7EBF1;
  13603. }
  13604. .check_class_right {
  13605. width: 130px;
  13606. border-right: 1px solid #E7EBF1;
  13607. display: flex;
  13608. align-items: center;
  13609. flex-direction: column;
  13610. height: 100%;
  13611. overflow: auto;
  13612. padding: 15px 0;
  13613. box-sizing: border-box;
  13614. }
  13615. .check_class {
  13616. width: 85%;
  13617. border-radius: 5px;
  13618. height: 30px;
  13619. line-height: 30px;
  13620. text-align: center;
  13621. padding: 0 10px;
  13622. box-sizing: border-box;
  13623. cursor: pointer;
  13624. white-space: nowrap;
  13625. overflow: hidden;
  13626. text-overflow: ellipsis;
  13627. }
  13628. .check_class.activeX {
  13629. background: #E0EAFB;
  13630. color: #3681FC;
  13631. font-weight: 700;
  13632. }
  13633. .check_class+.check_class {
  13634. margin-top: 15px;
  13635. }
  13636. .check_class_left {
  13637. background: #FAFAFA;
  13638. width: calc(100% - 130px);
  13639. padding: 15px;
  13640. box-sizing: border-box;
  13641. }
  13642. .check_class_all_box {
  13643. display: flex;
  13644. margin-bottom: 10px;
  13645. }
  13646. .all_check {
  13647. display: flex;
  13648. align-items: center;
  13649. padding: 2px 0 0;
  13650. margin-left: 10px;
  13651. }
  13652. .all_check>>>.el-checkbox__label {
  13653. line-height: 18px;
  13654. }
  13655. .check_class_left_title {
  13656. font-size: 16px;
  13657. font-weight: 700;
  13658. }
  13659. .check_class_item {
  13660. display: flex;
  13661. flex-wrap: wrap;
  13662. height: calc(100% - 45px);
  13663. overflow: auto;
  13664. justify-content: flex-start;
  13665. align-items: flex-start;
  13666. align-content: flex-start;
  13667. }
  13668. .class_item:first-child {
  13669. /* margin: 0 15px 15px 67px; */
  13670. }
  13671. .class_item {
  13672. margin: 0 15px 15px 0;
  13673. }
  13674. .class_item:hover>>>.el-checkbox__label {
  13675. color: #409EFF;
  13676. }
  13677. .class_item>>>.el-checkbox__label {
  13678. color: #0E1E33;
  13679. }
  13680. .class_item:hover>>>.el-checkbox__inner {
  13681. border-color: #409EFF;
  13682. }
  13683. .class_item>>>.el-checkbox,
  13684. .class_item>>>.el-checkbox__input {
  13685. display: flex;
  13686. align-items: center;
  13687. }
  13688. .taskTitle{
  13689. font-size: 20px;
  13690. font-weight: bold;
  13691. margin-bottom: 35px;
  13692. }
  13693. .taskTitle:after{
  13694. content: '';
  13695. width: 100%;
  13696. display: block;
  13697. height: 1px;
  13698. background: #CAD1DC;
  13699. position: absolute;
  13700. left: 0;
  13701. margin: 15px 0 0;
  13702. }
  13703. </style>