addCourse.vue 532 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526
  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 style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb
  10. separator-class="el-icon-arrow-right"
  11. >
  12. <el-breadcrumb-item
  13. :to="{
  14. path:
  15. '/course?userid=' +
  16. userid +
  17. '&oid=' +
  18. oid +
  19. '&org=' +
  20. org +
  21. '&role=' +
  22. role,
  23. }"
  24. >课程管理</el-breadcrumb-item
  25. >
  26. <el-breadcrumb-item>
  27. <span style="color: rgb(15, 126, 255)">添加课程</span>
  28. </el-breadcrumb-item>
  29. </el-breadcrumb>
  30. </div>
  31. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  32. </div>
  33. <div
  34. class="rightBox"
  35. :style="{height:(!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)'}"
  36. style="padding: 0;"
  37. v-if="this.steps == 1"
  38. @mousewheel="scrollChange"
  39. >
  40. <div
  41. class="updateMask"
  42. :style="{
  43. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  44. }"
  45. v-if="cid && userid != courseUserid && role != '1'"
  46. ></div>
  47. <div class="whiteBg" style="background:unset;padding: 0;">
  48. <div>
  49. <div class="basic_box" style="padding: 0;">
  50. <div class="big_box">
  51. <div class="left_first">
  52. <div :class="{
  53. updateTips: cid && userid != courseUserid && role != '1',
  54. }">
  55. <div style="width: 100%;">
  56. <div class="course_input_box">
  57. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  58. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  59. 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;" />
  60. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="justify-content: center;width: 200px;"></el-switch>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  65. <span>类型</span>
  66. <!-- 学科+ 主题+ 未来+ -->
  67. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  68. style="display: flex; align-items: center">
  69. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  70. <el-radio :label="item.name">{{
  71. item.name
  72. }}</el-radio>
  73. </div>
  74. </el-radio-group>
  75. </div>
  76. <div class="both">
  77. <div class="choose">
  78. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  79. <span v-if="CourseTypeJson[item.id].length > 0 &&
  80. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  81. ? pTypeCheck.indexOf(item.id) != -1
  82. : true)
  83. ">{{ item.name }}:</span>
  84. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  85. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  86. ? pTypeCheck.indexOf(item.id) != -1
  87. : true)
  88. ">
  89. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  90. item1.name }}</el-checkbox>
  91. </el-checkbox-group>
  92. <!-- <div
  93. v-else
  94. style="font-size: 14px; margin-left: -8px"
  95. >
  96. 暂无
  97. </div> -->
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="right_first">
  103. <!-- <div class="ai_box">
  104. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  105. </div> -->
  106. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  107. <div style="width: 100%;">
  108. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  109. <img src="../../../assets/icon/addPoster.png" alt="" />
  110. <div>点击添加封面</div>
  111. </div>
  112. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  113. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  114. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  115. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  116. <i class="el-icon-plus"></i>
  117. </el-upload>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="whiteBg" style="margin-top: 10px">
  125. <div class="wb_j_box">
  126. <div class="wb_j_box_content">
  127. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  128. (dialogVisibleClass = true),
  129. (classSearch = ''),
  130. (gradeId = ''),
  131. getClass()
  132. ">添加班级</button>
  133. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  134. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  135. getClassC(tc) }}</span>
  136. </div> -->
  137. <div class="wb_j_box_btn" @click="
  138. (dialogVisibleClass = true),
  139. (classSearch = ''),
  140. (gradeId = ''),
  141. getClass()
  142. ">
  143. <div class="wb_j_box_title">授课班级</div>
  144. <div class="wb_j_box_btn_c">
  145. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top" v-if="checkboxList2.length" popper-class="text_tooltip2">
  146. <div class="wb_j_box_span">{{getListClassC(checkboxList2)}}</div>
  147. </el-tooltip>
  148. <div v-else class="wb_j_box_span">请选择授课班级</div>
  149. <div class="wb_j_box_arrow"></div>
  150. </div>
  151. </div>
  152. </div>
  153. <div style="margin-left: auto;">
  154. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  155. </div>
  156. </div>
  157. </div>
  158. <div
  159. class="whiteBg"
  160. style="border-radius: 0;background:unset; margin-top: 15px"
  161. v-if="false"
  162. >
  163. <div class="right_title">课程简要描述</div>
  164. <div style="width: 95%; padding: 15px 0px 15px 20px">
  165. <div style="width: 55%">
  166. <textarea
  167. rows="8"
  168. class="binfo_input"
  169. cols
  170. v-model="courseText"
  171. ></textarea>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="whiteBg" style="border-radius: 0;background: #F0F2F5;">
  176. <!-- <div class="right_title">
  177. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  178. <span style="margin:0 10px">上传课程内容</span>
  179. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
  180. </div> -->
  181. <div style="display: flex">
  182. <div class="course_left">
  183. <div class="stepsBottom2">
  184. <!-- <div class="navTop">辅助导航</div> -->
  185. <div class="navBottom" :style="{height:heightPx}">
  186. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  187. .taskJson" :key="tIndex">
  188. <div @click="goToTask(tIndex)" class="navTask" :class="{
  189. isNavTask:
  190. isClickColor > 0 && isClickColor == tIndex + 1,
  191. isNavOpen:t.toolOpen
  192. }">
  193. <div class="nt_taskBox">
  194. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  195. <div class="nt_taskName">
  196. <el-tooltip effect="light" :content="t.task" placement="top">
  197. <span>{{ t.task }}</span>
  198. </el-tooltip>
  199. </div>
  200. </div>
  201. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  202. 1
  203. ">
  204. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  205. @click.stop="taskMove(1, tIndex)"></div>
  206. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  207. @click.stop="taskMove(2, tIndex)"></div>
  208. </div>
  209. </div>
  210. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  211. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2" @click="jumpGj(tIndex,toolIndex2)">
  212. <div
  213. class="gjCss"
  214. :class="{isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}`}"
  215. >
  216. <div>工具{{ toolIndex2 + 1 }}:</div>
  217. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. <div class="basic_box2">
  226. <div
  227. style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  228. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  229. :key="index"
  230. >
  231. <div
  232. class="taskBorder"
  233. :style="{
  234. minHeight: unitJson[unitIndex].easy && 'unset',
  235. }"
  236. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  237. :key="itemTaskIndex"
  238. >
  239. <div v-if="unitJson[unitIndex].easy != 1">
  240. <div
  241. :style="{
  242. marginBottom:
  243. unitJson[unitIndex].easy == 3 ||
  244. (unitJson[unitIndex].easy == 5 &&
  245. itemTask.taskType == 1)
  246. ? '75px'
  247. : '0',
  248. }"
  249. >
  250. <div style="
  251. display: flex;
  252. margin: 0px 0 20px;
  253. flex-direction: row;
  254. justify-content: flex-start;
  255. align-items: center;
  256. ">
  257. <div class="lineTitle">任务{{itemTaskIndex+1}}概述</div>
  258. </div>
  259. <div
  260. :id="'task' + itemTaskIndex"
  261. class="chapter_contentbox"
  262. style="
  263. flex-direction: row;
  264. justify-content: flex-start;
  265. align-items: center;
  266. "
  267. >
  268. <!-- <div
  269. :id="'task' + itemTaskIndex"
  270. class="cc_title"
  271. >
  272. 任务{{ itemTaskIndex + 1 }}
  273. </div> -->
  274. <div class="cc_input">
  275. <input
  276. type="text"
  277. placeholder="输入任务名称"
  278. class="binfo_input"
  279. style="border-radius: 4px"
  280. v-model="
  281. unitJson[unitIndex].chapterInfo[0].taskJson[
  282. itemTaskIndex
  283. ].task
  284. "
  285. />
  286. </div>
  287. <div
  288. class="remove"
  289. v-if="item.taskJson.length > 1"
  290. @click="deleteTask(itemTaskIndex)"
  291. ></div>
  292. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  293. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  294. </div>
  295. </div>
  296. </div>
  297. <div style="margin: 25px 0 0" v-if="itemTask.isFold2">
  298. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  299. itemTaskIndex
  300. ].taskDetail
  301. " @change="change"></editor-bar> -->
  302. <textarea
  303. v-autoHeight="70"
  304. rows="2"
  305. class="binfo_input"
  306. placeholder="请输入任务描述"
  307. cols
  308. v-model="
  309. unitJson[unitIndex].chapterInfo[0].taskJson[
  310. itemTaskIndex
  311. ].taskDetail
  312. "
  313. ></textarea>
  314. </div>
  315. <div
  316. class="basic_box"
  317. style="
  318. padding: 25px 0 0 !important;
  319. "
  320. >
  321. <div
  322. style="
  323. display: flex;
  324. margin: 0 0 20px 0;
  325. flex-direction: row;
  326. justify-content: space-between;
  327. align-items: center;
  328. "
  329. >
  330. <div class="lineTitle">学习内容</div>
  331. <div v-if="!itemTask.isFoldchapter" class="show_taskD show" @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  332. <div v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  333. </div>
  334. <div v-if="!itemTask.isFoldchapter">
  335. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  336. itemTask.chapterData.length == 0
  337. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  338. <div
  339. v-else
  340. class="add_chapters_box"
  341. style="display: flex; flex-direction: column"
  342. >
  343. <div
  344. class="chapter_upload"
  345. v-for="(item1, index1) in itemTask.chapterData"
  346. :key="item1.id"
  347. @click="
  348. getChapterData(
  349. $event,
  350. unitIndex,
  351. index,
  352. index1,
  353. item1.type
  354. )
  355. "
  356. >
  357. <div
  358. class="chapter_upload_t"
  359. style="width: 100%"
  360. ></div>
  361. <div
  362. class="chapter_upload_o"
  363. style="
  364. position: relative;
  365. display: flex;
  366. align-items: center;
  367. "
  368. >
  369. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  370. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  371. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  372. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  373. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  374. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  375. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px"></div>
  376. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  377. </div>
  378. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  379. </div>
  380. </div>
  381. <div class="chapter_upload_n">
  382. <input readonly="true" v-if="item1.type == 2 ||
  383. item1.type == 3 ||
  384. item1.type == 12 ||
  385. item1.type == 13 ||
  386. item1.type == 7
  387. " :placeholder="item1.name" @click="
  388. updataVideoT(
  389. $event,
  390. unitIndex,
  391. itemTaskIndex,
  392. index1
  393. )
  394. " style="
  395. border: none;
  396. outline: none;
  397. width: 80%;
  398. minwidth: 215px;
  399. z-index: 99;
  400. font-size: 14px;
  401. white-space: nowrap;
  402. overflow: hidden;
  403. text-overflow: ellipsis;
  404. " />
  405. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  406. border: none;
  407. outline: none;
  408. width: 80%;
  409. white-space: nowrap;
  410. overflow: hidden;
  411. text-overflow: ellipsis;
  412. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  413. <input :placeholder="item1.title ? item1.title : '链接'
  414. " v-if="item1.type == 8" style="
  415. border: none;
  416. outline: none;
  417. width: 80%;
  418. white-space: nowrap;
  419. overflow: hidden;
  420. text-overflow: ellipsis;
  421. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  422. <input :placeholder="item1.title ? item1.title : '链接'
  423. " v-if="item1.type == 14" style="
  424. border: none;
  425. outline: none;
  426. width: 80%;
  427. white-space: nowrap;
  428. overflow: hidden;
  429. text-overflow: ellipsis;
  430. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  431. </div>
  432. <div class="chapter_upload_ic">
  433. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  434. </div>
  435. <div class="chapter_upload_ud" style="z-index: 99">
  436. <div class="chapter_upload_up" @click="
  437. upCd(
  438. $event,
  439. unitIndex,
  440. index,
  441. itemTaskIndex,
  442. index1
  443. )
  444. "></div>
  445. <div class="chapter_upload_down" @click="
  446. downCd(
  447. $event,
  448. unitIndex,
  449. index,
  450. itemTaskIndex,
  451. index1
  452. )
  453. "></div>
  454. </div>
  455. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  456. item1.type == 3 ||
  457. item1.type == 12 ||
  458. item1.type == 13 ||
  459. item1.type == 7
  460. " @click.stop="
  461. updataVideoT(
  462. $event,
  463. unitIndex,
  464. itemTaskIndex,
  465. index1
  466. )
  467. ">
  468. <div></div>
  469. </div>
  470. <div class="chapter_upload_ic_edit" v-if="item1.type == 6" @click="selectAttText(itemTaskIndex, index1)">
  471. <div></div>
  472. </div>
  473. <div class="chapter_upload_ic_edit" v-if="item1.type == 8" @click="selectLine(itemTaskIndex, index1)">
  474. <div></div>
  475. </div>
  476. <div class="chapter_upload_ic_edit" v-if="item1.type == 14" @click="openUpdateSource(itemTaskIndex, index1)">
  477. <div></div>
  478. </div>
  479. <div class="chapter_upload_ic_r" @click.stop="
  480. deleteChapterData(
  481. $event,
  482. unitIndex,
  483. index,
  484. index1,
  485. itemTaskIndex
  486. )
  487. ">
  488. <div></div>
  489. </div>
  490. </div>
  491. </div>
  492. </div>
  493. </div>
  494. </div>
  495. <div class="add_info_box" v-if="!itemTask.isFoldchapter">
  496. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  497. 添加文件
  498. <input
  499. type="file"
  500. accept="*"
  501. style="display: none"
  502. v-if="inputShow"
  503. @change="
  504. beforeUpload2(
  505. $event,
  506. unitIndex,
  507. 13,
  508. itemTaskIndex
  509. )
  510. "
  511. />
  512. </button>
  513. <!-- <button class="info_btn" @click="addImg($event)">
  514. 添加视频
  515. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  516. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  517. " />
  518. </button>
  519. <button class="info_btn" @click="addImg($event)">
  520. 添加文档
  521. <input type="file"
  522. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  523. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  524. " />
  525. </button> -->
  526. <button
  527. class="c_pub_button_add pub_btn_add_img"
  528. @click="addAttText(itemTaskIndex)"
  529. >
  530. 添加图文
  531. </button>
  532. <button
  533. class="c_pub_button_add pub_btn_add_img"
  534. @click="openLine(itemTaskIndex)"
  535. >
  536. 添加链接
  537. </button>
  538. <button
  539. class="c_pub_button_add pub_btn_add_img"
  540. @click="pasteLine(itemTaskIndex)"
  541. >
  542. 嵌入代码
  543. </button>
  544. <button
  545. class="c_pub_button_add pub_btn_add_img"
  546. @click="openSource(itemTaskIndex)"
  547. >
  548. 添加资源
  549. </button>
  550. <!-- <button class="info_btn" @click="addImg($event)">
  551. 其他附件
  552. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  553. " />
  554. </button> -->
  555. </div>
  556. <div
  557. v-if="
  558. unitJson[unitIndex].chapterInfo[0].taskJson[
  559. itemTaskIndex
  560. ].proVisible
  561. "
  562. class="mask"
  563. >
  564. <div class="progressBox">
  565. <!-- <div id="closePro" class="closeCss">
  566. <img src="../../../../assets/icon/close.png" alt />
  567. </div> -->
  568. <div class="lbox">
  569. <img
  570. src="../../../assets/loading.gif"
  571. />上传中,请稍后
  572. </div>
  573. <div style="margin-bottom: 10px">
  574. <span
  575. >{{
  576. unitJson[unitIndex].chapterInfo[0].taskJson[
  577. itemTaskIndex
  578. ].isFinishSize
  579. }}M</span
  580. >
  581. /
  582. <span
  583. >{{
  584. unitJson[unitIndex].chapterInfo[0].taskJson[
  585. itemTaskIndex
  586. ].isAllSize
  587. }}M</span
  588. >
  589. </div>
  590. <el-progress
  591. :text-inside="true"
  592. :stroke-width="20"
  593. :percentage="
  594. unitJson[unitIndex].chapterInfo[0].taskJson[
  595. itemTaskIndex
  596. ].progress
  597. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  598. itemTaskIndex
  599. ].progress
  600. : 0
  601. "
  602. style="width: 80%"
  603. ></el-progress>
  604. </div>
  605. </div>
  606. </div>
  607. <div class="toolChoose" style="margin: 5px 0 20px">
  608. <div class="tools">
  609. <div
  610. class="leftTools"
  611. style="
  612. width: 100%;
  613. "
  614. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  615. :key="toolIndex"
  616. >
  617. <div
  618. style="
  619. display: flex;
  620. flex-direction: row;
  621. align-items: baseline;
  622. flex-wrap: nowrap;
  623. justify-content: flex-start;
  624. position: relative;
  625. "
  626. >
  627. <div
  628. :id="'gj'+itemTaskIndex + '' + toolIndex"
  629. style="margin-right: 20px; font-weight: bold"
  630. >
  631. 步骤 {{ toolIndex + 1 }} :
  632. </div>
  633. <div class="chooseWho">
  634. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  635. " @click="(itemTool.toolType = 0),(itemTool.isFold3 = true), $forceUpdate()">
  636. 互动类
  637. </div>
  638. <div
  639. :class="
  640. itemTool.toolType == 1
  641. ? 'isChooseActive'
  642. : ''
  643. "
  644. @click="
  645. (itemTool.toolType = 1),(itemTool.isFold3 = true), $forceUpdate()
  646. "
  647. >
  648. 思维类
  649. </div>
  650. <div
  651. :class="
  652. itemTool.toolType == 6
  653. ? 'isChooseActive'
  654. : ''
  655. "
  656. @click="
  657. (itemTool.toolType = 6),(itemTool.isFold3 = true), $forceUpdate()
  658. "
  659. >
  660. 协作类
  661. </div>
  662. <div
  663. :class="
  664. itemTool.toolType == 2
  665. ? 'isChooseActive'
  666. : ''
  667. "
  668. @click="
  669. (itemTool.toolType = 2),(itemTool.isFold3 = true), $forceUpdate()
  670. "
  671. >
  672. 测评类
  673. </div>
  674. <div
  675. :class="
  676. itemTool.toolType == 7
  677. ? 'isChooseActive'
  678. : ''
  679. "
  680. @click="
  681. (itemTool.toolType = 7),(itemTool.isFold3 = true), $forceUpdate()
  682. "
  683. >
  684. 评价类
  685. </div>
  686. <div
  687. :class="
  688. itemTool.toolType == 3
  689. ? 'isChooseActive'
  690. : ''
  691. "
  692. @click="
  693. (itemTool.toolType = 3),(itemTool.isFold3 = true), $forceUpdate()
  694. "
  695. >
  696. 编程类
  697. </div>
  698. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  699. " @click="(itemTool.toolType = 5),(itemTool.isFold3 = true), $forceUpdate()">
  700. 学科类
  701. </div>
  702. <!--<div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  703. " @click="(itemTool.toolType = 4), $forceUpdate()">
  704. 其他
  705. </div> -->
  706. </div>
  707. <div v-if="itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  708. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  709. <div
  710. class="remove"
  711. @click="deleteTool(itemTaskIndex, toolIndex)"
  712. v-if="itemTask.toolChoose.length > 1"
  713. style="position: absolute; right: 0"
  714. ></div>
  715. </div>
  716. <div style="min-height: 163px" v-show="itemTool.isFold3">
  717. <div
  718. class="toolSort"
  719. v-if="itemTool.toolType == 0"
  720. >
  721. <!-- <div class="tool">
  722. <div
  723. class="whiteBIcon"
  724. @click="addTools(8, itemTaskIndex, toolIndex)"
  725. >
  726. <img src="../../../assets/icon/secondToolList/library.png" alt />
  727. <div style="margin: 5px 0">素材库</div>
  728. </div>
  729. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  730. <img
  731. src="../../../assets/icon/checkNo.png"
  732. alt
  733. v-if="itemTool.tool.indexOf(8) == -1"
  734. />
  735. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  736. alt /><span>已选择</span></div>
  737. </div>
  738. </div>-->
  739. <!-- <div class="tool">
  740. <div
  741. class="whiteBIcon"
  742. @click="addTools(17, itemTaskIndex, toolIndex)"
  743. >
  744. <img
  745. src="../../../assets/icon/secondToolList/library.png"
  746. alt
  747. />
  748. <div style="margin: 5px 0">学习资料</div>
  749. </div>
  750. <div
  751. class="check"
  752. @click="addTools(17, itemTaskIndex, toolIndex)"
  753. >
  754. <img
  755. src="../../../assets/icon/checkNo.png"
  756. alt
  757. v-if="itemTool.tool.indexOf(17) == -1"
  758. />
  759. <img
  760. src="../../../assets/icon/checkedIs.png"
  761. alt
  762. v-else
  763. />
  764. </div>10
  765. </div> -->
  766. <div class="tool">
  767. <div
  768. class="whiteBIcon"
  769. @click="
  770. openTools(itemTaskIndex, 10, toolIndex)
  771. "
  772. >
  773. <img
  774. src="../../../assets/icon/thirdToolList/time.png"
  775. alt
  776. />
  777. <div style="margin: 5px 0">倒计时</div>
  778. </div>
  779. <div
  780. class="check"
  781. @click="
  782. addTools(10, itemTaskIndex, toolIndex)
  783. "
  784. >
  785. <img
  786. src="../../../assets/icon/checkNo.png"
  787. alt
  788. v-if="itemTool.tool.indexOf(10) == -1"
  789. />
  790. <div class="checkDiv" v-else>
  791. <img
  792. src="../../../assets/icon/checkedIs.png"
  793. alt
  794. /><span>已选择</span>
  795. </div>
  796. </div>
  797. </div>
  798. <div class="tool">
  799. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  800. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  801. <div style="margin: 5px 0">挑人</div>
  802. </div>
  803. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  804. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(65) == -1" />
  805. <div class="checkDiv" v-else>
  806. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  807. </div>
  808. </div>
  809. </div>
  810. <!-- <div class="tool">
  811. <div
  812. class="whiteBIcon"
  813. @click="
  814. openTools(itemTaskIndex, 49, toolIndex)
  815. "
  816. >
  817. <img
  818. src="../../../assets/icon/fourthToolList/group.png"
  819. alt
  820. />
  821. <div style="margin: 5px 0">学生分组</div>
  822. </div>
  823. <div
  824. class="check"
  825. @click="
  826. addTools(49, itemTaskIndex, toolIndex)
  827. "
  828. >
  829. <img
  830. src="../../../assets/icon/checkNo.png"
  831. alt
  832. v-if="itemTool.tool.indexOf(49) == -1"
  833. />
  834. <div class="checkDiv" v-else>
  835. <img
  836. src="../../../assets/icon/checkedIs.png"
  837. alt
  838. /><span>已选择</span>
  839. </div>
  840. </div>
  841. </div> -->
  842. <!-- <div class="tool">
  843. <div
  844. class="whiteBIcon"
  845. @click="
  846. openTools(itemTaskIndex, 62, toolIndex)
  847. "
  848. >
  849. <img
  850. src="../../../assets/icon/fourthToolList/interVideo.png"
  851. alt
  852. />
  853. <div style="margin: 5px 0">交互视频</div>
  854. </div>
  855. <div
  856. class="check"
  857. @click="
  858. addTools(62, itemTaskIndex, toolIndex)
  859. "
  860. >
  861. <img
  862. src="../../../assets/icon/checkNo.png"
  863. alt
  864. v-if="itemTool.tool.indexOf(62) == -1"
  865. />
  866. <div class="checkDiv" v-else>
  867. <img
  868. src="../../../assets/icon/checkedIs.png"
  869. alt
  870. /><span>已选择</span>
  871. </div>
  872. </div>
  873. </div> -->
  874. </div>
  875. <div
  876. class="toolSort"
  877. v-if="itemTool.toolType == 1"
  878. >
  879. <div class="tool">
  880. <div
  881. class="whiteBIcon"
  882. @click="
  883. addTools(7, itemTaskIndex, toolIndex)
  884. "
  885. >
  886. <img
  887. src="../../../assets/icon/secondToolList/mindNetwork.png"
  888. alt
  889. />
  890. <div style="margin: 5px 0">思维网格</div>
  891. </div>
  892. <div
  893. class="check"
  894. @click="
  895. addTools(7, itemTaskIndex, toolIndex)
  896. "
  897. >
  898. <img
  899. src="../../../assets/icon/checkNo.png"
  900. alt
  901. v-if="itemTool.tool.indexOf(7) == -1"
  902. />
  903. <div class="checkDiv" v-else>
  904. <img
  905. src="../../../assets/icon/checkedIs.png"
  906. alt
  907. /><span>已选择</span>
  908. </div>
  909. </div>
  910. </div>
  911. <div class="tool">
  912. <div
  913. class="whiteBIcon"
  914. @click="
  915. openTools(itemTaskIndex, 1, toolIndex)
  916. "
  917. >
  918. <img
  919. src="../../../assets/icon/secondToolList/whiteBoard.png"
  920. alt
  921. />
  922. <div style="margin: 5px 0">电子白板</div>
  923. </div>
  924. <div
  925. class="check"
  926. @click="
  927. addTools(1, itemTaskIndex, toolIndex)
  928. "
  929. >
  930. <img
  931. src="../../../assets/icon/checkNo.png"
  932. alt
  933. v-if="itemTool.tool.indexOf(1) == -1"
  934. />
  935. <div class="checkDiv" v-else>
  936. <img
  937. src="../../../assets/icon/checkedIs.png"
  938. alt
  939. /><span>已选择</span>
  940. </div>
  941. </div>
  942. </div>
  943. <!-- <div class="tool">
  944. <div
  945. class="whiteBIcon"
  946. @click="addTools(2, itemTaskIndex, toolIndex)"
  947. >
  948. <img
  949. src="../../../assets/icon/secondToolList/note.png"
  950. alt
  951. />
  952. <div style="margin: 5px 0">便签</div>
  953. </div>
  954. <div
  955. class="check"
  956. @click="addTools(2, itemTaskIndex, toolIndex)"
  957. >
  958. <img
  959. src="../../../assets/icon/checkNo.png"
  960. alt
  961. v-if="itemTool.tool.indexOf(2) == -1"
  962. />
  963. <div class="checkDiv" v-else>
  964. <img
  965. src="../../../assets/icon/checkedIs.png"
  966. alt
  967. /><span>已选择</span>
  968. </div>
  969. </div>
  970. </div> -->
  971. <!-- <div class="tool">
  972. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  973. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  974. <div style="margin: 5px 0">协同文档</div>
  975. </div>
  976. <div
  977. class="check"
  978. @click="addTools(6, itemTaskIndex, toolIndex)"
  979. >
  980. <img
  981. src="../../../assets/icon/checkNo.png"
  982. alt
  983. v-if="itemTool.tool.indexOf(6) == -1"
  984. />
  985. <div class="checkDiv" v-else>
  986. <img
  987. src="../../../assets/icon/checkedIs.png"
  988. alt
  989. /><span>已选择</span>
  990. </div>
  991. </div>
  992. </div> -->
  993. <div class="tool">
  994. <div
  995. class="whiteBIcon"
  996. @click="
  997. openTools(itemTaskIndex, 52, toolIndex)
  998. "
  999. >
  1000. <img
  1001. src="../../../assets/icon/fourthToolList/text.png"
  1002. alt
  1003. />
  1004. <div style="margin: 5px 0">文档</div>
  1005. </div>
  1006. <div
  1007. class="check"
  1008. @click="
  1009. addTools(52, itemTaskIndex, toolIndex)
  1010. "
  1011. >
  1012. <img
  1013. src="../../../assets/icon/checkNo.png"
  1014. alt
  1015. v-if="itemTool.tool.indexOf(52) == -1"
  1016. />
  1017. <div class="checkDiv" v-else>
  1018. <img
  1019. src="../../../assets/icon/checkedIs.png"
  1020. alt
  1021. /><span>已选择</span>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div class="tool">
  1026. <div
  1027. class="whiteBIcon"
  1028. @click="
  1029. openTools(itemTaskIndex, 3, toolIndex)
  1030. "
  1031. >
  1032. <img
  1033. src="../../../assets/icon/secondToolList/mindMapping.png"
  1034. alt
  1035. />
  1036. <div style="margin: 5px 0">思维导图</div>
  1037. </div>
  1038. <div
  1039. class="check"
  1040. @click="
  1041. addTools(3, itemTaskIndex, toolIndex)
  1042. "
  1043. >
  1044. <img
  1045. src="../../../assets/icon/checkNo.png"
  1046. alt
  1047. v-if="itemTool.tool.indexOf(3) == -1"
  1048. />
  1049. <div class="checkDiv" v-else>
  1050. <img
  1051. src="../../../assets/icon/checkedIs.png"
  1052. alt
  1053. /><span>已选择</span>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. <div class="tool">
  1058. <div
  1059. class="whiteBIcon"
  1060. @click="
  1061. openTools(itemTaskIndex, 48, toolIndex)
  1062. "
  1063. >
  1064. <img
  1065. src="../../../assets/icon/fourthToolList/table.png"
  1066. alt
  1067. />
  1068. <div style="margin: 5px 0">表格</div>
  1069. </div>
  1070. <div
  1071. class="check"
  1072. @click="
  1073. addTools(48, itemTaskIndex, toolIndex)
  1074. "
  1075. >
  1076. <img
  1077. src="../../../assets/icon/checkNo.png"
  1078. alt
  1079. v-if="itemTool.tool.indexOf(48) == -1"
  1080. />
  1081. <div class="checkDiv" v-else>
  1082. <img
  1083. src="../../../assets/icon/checkedIs.png"
  1084. alt
  1085. /><span>已选择</span>
  1086. </div>
  1087. </div>
  1088. </div>
  1089. </div>
  1090. <div
  1091. class="toolSort"
  1092. v-if="itemTool.toolType == 6"
  1093. >
  1094. <div class="tool">
  1095. <div
  1096. class="whiteBIcon"
  1097. @click="
  1098. openTools(itemTaskIndex, 49, toolIndex)
  1099. "
  1100. >
  1101. <img
  1102. src="../../../assets/icon/fourthToolList/group.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">学生分组</div>
  1106. </div>
  1107. <div
  1108. class="check"
  1109. @click="
  1110. addTools(49, itemTaskIndex, toolIndex)
  1111. "
  1112. >
  1113. <img
  1114. src="../../../assets/icon/checkNo.png"
  1115. alt
  1116. v-if="itemTool.tool.indexOf(49) == -1"
  1117. />
  1118. <div class="checkDiv" v-else>
  1119. <img
  1120. src="../../../assets/icon/checkedIs.png"
  1121. alt
  1122. /><span>已选择</span>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div
  1128. class="toolSort"
  1129. v-if="itemTool.toolType == 2"
  1130. >
  1131. <!-- <div class="tool">
  1132. <div
  1133. class="whiteBIcon"
  1134. @click="addTools(5, itemTaskIndex, toolIndex)"
  1135. >
  1136. <img
  1137. src="../../../assets/icon/thirdToolList/score.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">量规评分</div>
  1141. </div>
  1142. <div
  1143. class="check"
  1144. @click="addTools(5, itemTaskIndex, toolIndex)"
  1145. >
  1146. <img
  1147. src="../../../assets/icon/checkNo.png"
  1148. alt
  1149. v-if="itemTool.tool.indexOf(5) == -1"
  1150. />
  1151. <img
  1152. src="../../../assets/icon/checkedIs.png"
  1153. alt
  1154. v-else
  1155. />
  1156. </div>
  1157. </div>-->
  1158. <div class="tool">
  1159. <div
  1160. class="whiteBIcon"
  1161. @click="
  1162. openTools(itemTaskIndex, 4, toolIndex)
  1163. "
  1164. >
  1165. <img
  1166. src="../../../assets/icon/thirdToolList/ask.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">问卷调查</div>
  1170. </div>
  1171. <div
  1172. class="check"
  1173. @click="
  1174. addTools(4, itemTaskIndex, toolIndex)
  1175. "
  1176. >
  1177. <img
  1178. src="../../../assets/icon/checkNo.png"
  1179. alt
  1180. v-if="itemTool.tool.indexOf(4) == -1"
  1181. />
  1182. <div class="checkDiv" v-else>
  1183. <img
  1184. src="../../../assets/icon/checkedIs.png"
  1185. alt
  1186. /><span>已选择</span>
  1187. </div>
  1188. </div>
  1189. </div>
  1190. <div class="tool">
  1191. <div
  1192. class="whiteBIcon"
  1193. @click="
  1194. openTools(itemTaskIndex, 45, toolIndex)
  1195. "
  1196. >
  1197. <img
  1198. src="../../../assets/icon/thirdToolList/choose.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">选择题</div>
  1202. </div>
  1203. <div
  1204. class="check"
  1205. @click="
  1206. addTools(45, itemTaskIndex, toolIndex)
  1207. "
  1208. >
  1209. <img
  1210. src="../../../assets/icon/checkNo.png"
  1211. alt
  1212. v-if="itemTool.tool.indexOf(45) == -1"
  1213. />
  1214. <div class="checkDiv" v-else>
  1215. <img
  1216. src="../../../assets/icon/checkedIs.png"
  1217. alt
  1218. /><span>已选择</span>
  1219. </div>
  1220. </div>
  1221. </div>
  1222. <div class="tool">
  1223. <div
  1224. class="whiteBIcon"
  1225. @click="
  1226. openTools(itemTaskIndex, 15, toolIndex)
  1227. "
  1228. >
  1229. <img
  1230. src="../../../assets/icon/thirdToolList/answer.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">问答</div>
  1234. </div>
  1235. <div
  1236. class="check"
  1237. @click="
  1238. addTools(15, itemTaskIndex, toolIndex)
  1239. "
  1240. >
  1241. <img
  1242. src="../../../assets/icon/checkNo.png"
  1243. alt
  1244. v-if="itemTool.tool.indexOf(15) == -1"
  1245. />
  1246. <div class="checkDiv" v-else>
  1247. <img
  1248. src="../../../assets/icon/checkedIs.png"
  1249. alt
  1250. /><span>已选择</span>
  1251. </div>
  1252. </div>
  1253. </div>
  1254. <div class="tool">
  1255. <div
  1256. class="whiteBIcon"
  1257. @click="
  1258. addTools(16, itemTaskIndex, toolIndex)
  1259. "
  1260. >
  1261. <img
  1262. src="../../../assets/icon/thirdToolList/work.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">作业提交</div>
  1266. </div>
  1267. <div
  1268. class="check"
  1269. @click="
  1270. addTools(16, itemTaskIndex, toolIndex)
  1271. "
  1272. >
  1273. <img
  1274. src="../../../assets/icon/checkNo.png"
  1275. alt
  1276. v-if="itemTool.tool.indexOf(16) == -1"
  1277. />
  1278. <div class="checkDiv" v-else>
  1279. <img
  1280. src="../../../assets/icon/checkedIs.png"
  1281. alt
  1282. /><span>已选择</span>
  1283. </div>
  1284. </div>
  1285. </div>
  1286. <div class="tool">
  1287. <div
  1288. class="whiteBIcon"
  1289. @click="
  1290. addTools(50, itemTaskIndex, toolIndex)
  1291. "
  1292. >
  1293. <img
  1294. src="../../../assets/icon/thirdToolList/plwork.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">批量上传</div>
  1298. </div>
  1299. <div
  1300. class="check"
  1301. @click="
  1302. addTools(50, itemTaskIndex, toolIndex)
  1303. "
  1304. >
  1305. <img
  1306. src="../../../assets/icon/checkNo.png"
  1307. alt
  1308. v-if="itemTool.tool.indexOf(50) == -1"
  1309. />
  1310. <div class="checkDiv" v-else>
  1311. <img
  1312. src="../../../assets/icon/checkedIs.png"
  1313. alt
  1314. /><span>已选择</span>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. <!-- <div class="tool">
  1319. <div
  1320. class="whiteBIcon"
  1321. @click="
  1322. openTools(itemTaskIndex, 40, toolIndex)
  1323. "
  1324. >
  1325. <img
  1326. src="../../../assets/icon/thirdToolList/eval.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">个人评价</div>
  1330. </div>
  1331. <div
  1332. class="check"
  1333. @click="
  1334. addTools(40, itemTaskIndex, toolIndex)
  1335. "
  1336. >
  1337. <img
  1338. src="../../../assets/icon/checkNo.png"
  1339. alt
  1340. v-if="itemTool.tool.indexOf(40) == -1"
  1341. />
  1342. <div class="checkDiv" v-else>
  1343. <img
  1344. src="../../../assets/icon/checkedIs.png"
  1345. alt
  1346. /><span>已选择</span>
  1347. </div>
  1348. </div>
  1349. </div> -->
  1350. <div class="tool">
  1351. <div
  1352. class="whiteBIcon"
  1353. @click="
  1354. openTools(itemTaskIndex, 41, toolIndex)
  1355. "
  1356. >
  1357. <img
  1358. src="../../../assets/icon/thirdToolList/select.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">选择匹配</div>
  1362. </div>
  1363. <div
  1364. class="check"
  1365. @click="
  1366. addTools(41, itemTaskIndex, toolIndex)
  1367. "
  1368. >
  1369. <img
  1370. src="../../../assets/icon/checkNo.png"
  1371. alt
  1372. v-if="itemTool.tool.indexOf(41) == -1"
  1373. />
  1374. <div class="checkDiv" v-else>
  1375. <img
  1376. src="../../../assets/icon/checkedIs.png"
  1377. alt
  1378. /><span>已选择</span>
  1379. </div>
  1380. </div>
  1381. </div>
  1382. <div class="tool">
  1383. <div
  1384. class="whiteBIcon"
  1385. @click="
  1386. openTools(itemTaskIndex, 47, toolIndex)
  1387. "
  1388. >
  1389. <img
  1390. src="../../../assets/icon/fourthToolList/conSentences.png"
  1391. alt
  1392. />
  1393. <div style="margin: 5px 0">排序</div>
  1394. </div>
  1395. <div
  1396. class="check"
  1397. @click="
  1398. addTools(47, itemTaskIndex, toolIndex)
  1399. "
  1400. >
  1401. <img
  1402. src="../../../assets/icon/checkNo.png"
  1403. alt
  1404. v-if="itemTool.tool.indexOf(47) == -1"
  1405. />
  1406. <div class="checkDiv" v-else>
  1407. <img
  1408. src="../../../assets/icon/checkedIs.png"
  1409. alt
  1410. /><span>已选择</span>
  1411. </div>
  1412. </div>
  1413. </div>
  1414. <!-- <div class="tool">
  1415. <div
  1416. class="whiteBIcon"
  1417. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1418. >
  1419. <img
  1420. src="../../../assets/icon/thirdToolList/mp3.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">上传音频</div>
  1424. </div>
  1425. <div
  1426. class="check"
  1427. @click="addTools(42, itemTaskIndex, toolIndex)"
  1428. >
  1429. <img
  1430. src="../../../assets/icon/checkNo.png"
  1431. alt
  1432. v-if="itemTool.tool.indexOf(42) == -1"
  1433. />
  1434. <img
  1435. src="../../../assets/icon/checkedIs.png"
  1436. alt
  1437. v-else
  1438. />
  1439. </div>
  1440. </div> -->
  1441. </div>
  1442. <div
  1443. class="toolSort"
  1444. v-if="itemTool.toolType == 3"
  1445. >
  1446. <div class="tool">
  1447. <div
  1448. class="whiteBIcon"
  1449. @click="
  1450. addTools(18, itemTaskIndex, toolIndex)
  1451. "
  1452. >
  1453. <img
  1454. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">训练平台</div>
  1458. </div>
  1459. <div
  1460. class="check"
  1461. @click="
  1462. addTools(18, itemTaskIndex, toolIndex)
  1463. "
  1464. >
  1465. <img
  1466. src="../../../assets/icon/checkNo.png"
  1467. alt
  1468. v-if="itemTool.tool.indexOf(18) == -1"
  1469. />
  1470. <div class="checkDiv" v-else>
  1471. <img
  1472. src="../../../assets/icon/checkedIs.png"
  1473. alt
  1474. /><span>已选择</span>
  1475. </div>
  1476. </div>
  1477. </div>
  1478. <div class="tool">
  1479. <div
  1480. class="whiteBIcon"
  1481. @click="
  1482. addTools(21, itemTaskIndex, toolIndex)
  1483. "
  1484. >
  1485. <img
  1486. src="../../../assets/icon/fourthToolList/program.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">AIoT Blockly</div>
  1490. </div>
  1491. <div
  1492. class="check"
  1493. @click="
  1494. addTools(21, itemTaskIndex, toolIndex)
  1495. "
  1496. >
  1497. <img
  1498. src="../../../assets/icon/checkNo.png"
  1499. alt
  1500. v-if="itemTool.tool.indexOf(21) == -1"
  1501. />
  1502. <div class="checkDiv" v-else>
  1503. <img
  1504. src="../../../assets/icon/checkedIs.png"
  1505. alt
  1506. /><span>已选择</span>
  1507. </div>
  1508. </div>
  1509. </div>
  1510. <!-- <div class="tool">
  1511. <div
  1512. class="whiteBIcon"
  1513. @click="
  1514. addTools(22, itemTaskIndex, toolIndex)
  1515. "
  1516. >
  1517. <img
  1518. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">AI体验</div>
  1522. </div>
  1523. <div
  1524. class="check"
  1525. @click="
  1526. addTools(22, itemTaskIndex, toolIndex)
  1527. "
  1528. >
  1529. <img
  1530. src="../../../assets/icon/checkNo.png"
  1531. alt
  1532. v-if="itemTool.tool.indexOf(22) == -1"
  1533. />
  1534. <div class="checkDiv" v-else>
  1535. <img
  1536. src="../../../assets/icon/checkedIs.png"
  1537. alt
  1538. /><span>已选择</span>
  1539. </div>
  1540. </div>
  1541. </div> -->
  1542. <div class="tool">
  1543. <div
  1544. class="whiteBIcon"
  1545. @click="
  1546. addTools(23, itemTaskIndex, toolIndex)
  1547. "
  1548. >
  1549. <img
  1550. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1551. alt
  1552. />
  1553. <div style="margin: 5px 0">AI Python</div>
  1554. </div>
  1555. <div
  1556. class="check"
  1557. @click="
  1558. addTools(23, itemTaskIndex, toolIndex)
  1559. "
  1560. >
  1561. <img
  1562. src="../../../assets/icon/checkNo.png"
  1563. alt
  1564. v-if="itemTool.tool.indexOf(23) == -1"
  1565. />
  1566. <div class="checkDiv" v-else>
  1567. <img
  1568. src="../../../assets/icon/checkedIs.png"
  1569. alt
  1570. /><span>已选择</span>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div class="tool">
  1575. <div
  1576. class="whiteBIcon"
  1577. @click="
  1578. addTools(24, itemTaskIndex, toolIndex)
  1579. "
  1580. >
  1581. <img
  1582. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1583. alt
  1584. />
  1585. <div style="margin: 5px 0">AI Blockly</div>
  1586. </div>
  1587. <div
  1588. class="check"
  1589. @click="
  1590. addTools(24, itemTaskIndex, toolIndex)
  1591. "
  1592. >
  1593. <img
  1594. src="../../../assets/icon/checkNo.png"
  1595. alt
  1596. v-if="itemTool.tool.indexOf(24) == -1"
  1597. />
  1598. <div class="checkDiv" v-else>
  1599. <img
  1600. src="../../../assets/icon/checkedIs.png"
  1601. alt
  1602. /><span>已选择</span>
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <div class="tool">
  1607. <div
  1608. class="whiteBIcon"
  1609. @click="
  1610. addTools(32, itemTaskIndex, toolIndex)
  1611. "
  1612. >
  1613. <img
  1614. src="../../../assets/icon/thirdToolList/code.png"
  1615. alt
  1616. />
  1617. <div style="margin: 5px 0">源码编辑</div>
  1618. </div>
  1619. <div
  1620. class="check"
  1621. @click="
  1622. addTools(32, itemTaskIndex, toolIndex)
  1623. "
  1624. >
  1625. <img
  1626. src="../../../assets/icon/checkNo.png"
  1627. alt
  1628. v-if="itemTool.tool.indexOf(32) == -1"
  1629. />
  1630. <div class="checkDiv" v-else>
  1631. <img
  1632. src="../../../assets/icon/checkedIs.png"
  1633. alt
  1634. /><span>已选择</span>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. <div class="tool">
  1639. <div
  1640. class="whiteBIcon"
  1641. @click="openTools(itemTaskIndex, 57, toolIndex)"
  1642. >
  1643. <img
  1644. src="../../../assets/icon/fourthToolList/cocopi.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">CocoPi</div>
  1648. </div>
  1649. <div
  1650. class="check"
  1651. @click="
  1652. addTools(57, itemTaskIndex, toolIndex)
  1653. "
  1654. >
  1655. <img
  1656. src="../../../assets/icon/checkNo.png"
  1657. alt
  1658. v-if="itemTool.tool.indexOf(57) == -1"
  1659. />
  1660. <div class="checkDiv" v-else>
  1661. <img
  1662. src="../../../assets/icon/checkedIs.png"
  1663. alt
  1664. /><span>已选择</span>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="tool">
  1669. <div
  1670. class="whiteBIcon"
  1671. @click="
  1672. addTools(63, itemTaskIndex, toolIndex)
  1673. "
  1674. >
  1675. <img
  1676. src="../../../assets/icon/fourthToolList/Wood.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">海龟编程</div>
  1680. </div>
  1681. <div
  1682. class="check"
  1683. @click="
  1684. addTools(63, itemTaskIndex, toolIndex)
  1685. "
  1686. >
  1687. <img
  1688. src="../../../assets/icon/checkNo.png"
  1689. alt
  1690. v-if="itemTool.tool.indexOf(63) == -1"
  1691. />
  1692. <div class="checkDiv" v-else>
  1693. <img
  1694. src="../../../assets/icon/checkedIs.png"
  1695. alt
  1696. /><span>已选择</span>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. </div>
  1701. <div
  1702. class="toolSort"
  1703. v-if="itemTool.toolType == 5"
  1704. >
  1705. <div class="tool">
  1706. <div class="whiteBIcon" @click="
  1707. addTools(28, itemTaskIndex, toolIndex)
  1708. ">
  1709. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1710. <div style="margin: 5px 0">翻译</div>
  1711. </div>
  1712. <div class="check" @click="
  1713. addTools(28, itemTaskIndex, toolIndex)
  1714. ">
  1715. <img src="../../../assets/icon/checkNo.png" alt
  1716. v-if="itemTool.tool.indexOf(28) == -1" />
  1717. <div class="checkDiv" v-else>
  1718. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1719. </div>
  1720. </div>
  1721. </div>
  1722. <div class="tool">
  1723. <div class="whiteBIcon" @click="
  1724. addTools(31, itemTaskIndex, toolIndex)
  1725. ">
  1726. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1727. <div style="margin: 5px 0">数字画板</div>
  1728. </div>
  1729. <div class="check" @click="
  1730. addTools(31, itemTaskIndex, toolIndex)
  1731. ">
  1732. <img src="../../../assets/icon/checkNo.png" alt
  1733. v-if="itemTool.tool.indexOf(31) == -1" />
  1734. <div class="checkDiv" v-else>
  1735. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1736. </div>
  1737. </div>
  1738. </div>
  1739. <div class="tool">
  1740. <div class="whiteBIcon" @click="
  1741. addTools(39, itemTaskIndex, toolIndex)
  1742. ">
  1743. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1744. <div style="margin: 5px 0">GeoGebra</div>
  1745. </div>
  1746. <div class="check" @click="
  1747. addTools(39, itemTaskIndex, toolIndex)
  1748. ">
  1749. <img src="../../../assets/icon/checkNo.png" alt
  1750. v-if="itemTool.tool.indexOf(39) == -1" />
  1751. <div class="checkDiv" v-else>
  1752. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. <div class="tool">
  1757. <div class="whiteBIcon" @click="
  1758. addTools(66, itemTaskIndex, toolIndex)
  1759. ">
  1760. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1761. <div style="margin: 5px 0">公式编辑</div>
  1762. </div>
  1763. <div class="check" @click="
  1764. addTools(66, itemTaskIndex, toolIndex)
  1765. ">
  1766. <img src="../../../assets/icon/checkNo.png" alt
  1767. v-if="itemTool.tool.indexOf(66) == -1" />
  1768. <div class="checkDiv" v-else>
  1769. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. <!-- <div class="tool">
  1774. <div class="whiteBIcon" @click="
  1775. addTools(67, itemTaskIndex, toolIndex)
  1776. ">
  1777. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1778. <div style="margin: 5px 0">分子结构</div>
  1779. </div>
  1780. <div class="check" @click="
  1781. addTools(67, itemTaskIndex, toolIndex)
  1782. ">
  1783. <img src="../../../assets/icon/checkNo.png" alt
  1784. v-if="itemTool.tool.indexOf(67) == -1" />
  1785. <div class="checkDiv" v-else>
  1786. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1787. </div>
  1788. </div>
  1789. </div> -->
  1790. <div class="tool">
  1791. <div class="whiteBIcon" @click="
  1792. addTools(68, itemTaskIndex, toolIndex)
  1793. ">
  1794. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1795. <div style="margin: 5px 0">时间轴</div>
  1796. </div>
  1797. <div class="check" @click="
  1798. addTools(68, itemTaskIndex, toolIndex)
  1799. ">
  1800. <img src="../../../assets/icon/checkNo.png" alt
  1801. v-if="itemTool.tool.indexOf(68) == -1" />
  1802. <div class="checkDiv" v-else>
  1803. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. <!-- <div class="tool">
  1808. <div
  1809. class="whiteBIcon"
  1810. @click="
  1811. addTools(28, itemTaskIndex, toolIndex)
  1812. "
  1813. >
  1814. <img
  1815. src="../../../assets/icon/secondToolList/translation.png"
  1816. alt
  1817. />
  1818. <div style="margin: 5px 0">翻译</div>
  1819. </div>
  1820. <div
  1821. class="check"
  1822. @click="
  1823. addTools(28, itemTaskIndex, toolIndex)
  1824. "
  1825. >
  1826. <img
  1827. src="../../../assets/icon/checkNo.png"
  1828. alt
  1829. v-if="itemTool.tool.indexOf(28) == -1"
  1830. />
  1831. <div class="checkDiv" v-else>
  1832. <img
  1833. src="../../../assets/icon/checkedIs.png"
  1834. alt
  1835. /><span>已选择</span>
  1836. </div>
  1837. </div>
  1838. </div>
  1839. <div class="tool">
  1840. <div
  1841. class="whiteBIcon"
  1842. @click="
  1843. addTools(37, itemTaskIndex, toolIndex)
  1844. "
  1845. >
  1846. <img
  1847. src="../../../assets/icon/secondToolList/mohe.png"
  1848. alt
  1849. />
  1850. <div style="margin: 5px 0">魔盒识字</div>
  1851. </div>
  1852. <div
  1853. class="check"
  1854. @click="
  1855. addTools(37, itemTaskIndex, toolIndex)
  1856. "
  1857. >
  1858. <img
  1859. src="../../../assets/icon/checkNo.png"
  1860. alt
  1861. v-if="itemTool.tool.indexOf(37) == -1"
  1862. />
  1863. <div class="checkDiv" v-else>
  1864. <img
  1865. src="../../../assets/icon/checkedIs.png"
  1866. alt
  1867. /><span>已选择</span>
  1868. </div>
  1869. </div>
  1870. </div>
  1871. <div class="tool">
  1872. <div
  1873. class="whiteBIcon"
  1874. @click="
  1875. addTools(38, itemTaskIndex, toolIndex)
  1876. "
  1877. >
  1878. <img
  1879. src="../../../assets/icon/secondToolList/24game.png"
  1880. alt
  1881. />
  1882. <div style="margin: 5px 0">24点</div>
  1883. </div>
  1884. <div
  1885. class="check"
  1886. @click="
  1887. addTools(38, itemTaskIndex, toolIndex)
  1888. "
  1889. >
  1890. <img
  1891. src="../../../assets/icon/checkNo.png"
  1892. alt
  1893. v-if="itemTool.tool.indexOf(38) == -1"
  1894. />
  1895. <div class="checkDiv" v-else>
  1896. <img
  1897. src="../../../assets/icon/checkedIs.png"
  1898. alt
  1899. /><span>已选择</span>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. <div class="tool">
  1904. <div
  1905. class="whiteBIcon"
  1906. @click="
  1907. addTools(31, itemTaskIndex, toolIndex)
  1908. "
  1909. >
  1910. <img
  1911. src="../../../assets/icon/secondToolList/networkPanel.png"
  1912. alt
  1913. />
  1914. <div style="margin: 5px 0">数学画板</div>
  1915. </div>
  1916. <div
  1917. class="check"
  1918. @click="
  1919. addTools(31, itemTaskIndex, toolIndex)
  1920. "
  1921. >
  1922. <img
  1923. src="../../../assets/icon/checkNo.png"
  1924. alt
  1925. v-if="itemTool.tool.indexOf(31) == -1"
  1926. />
  1927. <div class="checkDiv" v-else>
  1928. <img
  1929. src="../../../assets/icon/checkedIs.png"
  1930. alt
  1931. /><span>已选择</span>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div class="tool">
  1936. <div
  1937. class="whiteBIcon"
  1938. @click="
  1939. addTools(39, itemTaskIndex, toolIndex)
  1940. "
  1941. >
  1942. <img
  1943. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1944. alt
  1945. />
  1946. <div style="margin: 5px 0">GeoGebra</div>
  1947. </div>
  1948. <div
  1949. class="check"
  1950. @click="
  1951. addTools(39, itemTaskIndex, toolIndex)
  1952. "
  1953. >
  1954. <img
  1955. src="../../../assets/icon/checkNo.png"
  1956. alt
  1957. v-if="itemTool.tool.indexOf(39) == -1"
  1958. />
  1959. <div class="checkDiv" v-else>
  1960. <img
  1961. src="../../../assets/icon/checkedIs.png"
  1962. alt
  1963. /><span>已选择</span>
  1964. </div>
  1965. </div>
  1966. </div>
  1967. <div class="tool">
  1968. <div
  1969. class="whiteBIcon"
  1970. @click="
  1971. addTools(58, itemTaskIndex, toolIndex)
  1972. "
  1973. >
  1974. <img
  1975. src="../../../assets/icon/fourthToolList/car.png"
  1976. alt
  1977. />
  1978. <div style="margin: 5px 0">模拟驾驶</div>
  1979. </div>
  1980. <div
  1981. class="check"
  1982. @click="
  1983. addTools(58, itemTaskIndex, toolIndex)
  1984. "
  1985. >
  1986. <img
  1987. src="../../../assets/icon/checkNo.png"
  1988. alt
  1989. v-if="itemTool.tool.indexOf(58) == -1"
  1990. />
  1991. <div class="checkDiv" v-else>
  1992. <img
  1993. src="../../../assets/icon/checkedIs.png"
  1994. alt
  1995. /><span>已选择</span>
  1996. </div>
  1997. </div>
  1998. </div>
  1999. <div class="tool">
  2000. <div
  2001. class="whiteBIcon"
  2002. @click="
  2003. addTools(59, itemTaskIndex, toolIndex)
  2004. "
  2005. >
  2006. <img
  2007. src="../../../assets/icon/fourthToolList/lineSearch.png"
  2008. alt
  2009. />
  2010. <div style="margin: 5px 0">路径搜索</div>
  2011. </div>
  2012. <div
  2013. class="check"
  2014. @click="
  2015. addTools(59, itemTaskIndex, toolIndex)
  2016. "
  2017. >
  2018. <img
  2019. src="../../../assets/icon/checkNo.png"
  2020. alt
  2021. v-if="itemTool.tool.indexOf(59) == -1"
  2022. />
  2023. <div class="checkDiv" v-else>
  2024. <img
  2025. src="../../../assets/icon/checkedIs.png"
  2026. alt
  2027. /><span>已选择</span>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div class="tool">
  2032. <div
  2033. class="whiteBIcon"
  2034. @click="
  2035. addTools(60, itemTaskIndex, toolIndex)
  2036. "
  2037. >
  2038. <img
  2039. src="../../../assets/icon/fourthToolList/deepLearning.png"
  2040. alt
  2041. />
  2042. <div style="margin: 5px 0">深度学习</div>
  2043. </div>
  2044. <div
  2045. class="check"
  2046. @click="
  2047. addTools(60, itemTaskIndex, toolIndex)
  2048. "
  2049. >
  2050. <img
  2051. src="../../../assets/icon/checkNo.png"
  2052. alt
  2053. v-if="itemTool.tool.indexOf(60) == -1"
  2054. />
  2055. <div class="checkDiv" v-else>
  2056. <img
  2057. src="../../../assets/icon/checkedIs.png"
  2058. alt
  2059. /><span>已选择</span>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div class="tool">
  2064. <div
  2065. class="whiteBIcon"
  2066. @click="
  2067. addTools(61, itemTaskIndex, toolIndex)
  2068. "
  2069. >
  2070. <img
  2071. src="../../../assets/icon/fourthToolList/allHistory.png"
  2072. alt
  2073. />
  2074. <div style="margin: 5px 0">全历史</div>
  2075. </div>
  2076. <div
  2077. class="check"
  2078. @click="
  2079. addTools(61, itemTaskIndex, toolIndex)
  2080. "
  2081. >
  2082. <img
  2083. src="../../../assets/icon/checkNo.png"
  2084. alt
  2085. v-if="itemTool.tool.indexOf(61) == -1"
  2086. />
  2087. <div class="checkDiv" v-else>
  2088. <img
  2089. src="../../../assets/icon/checkedIs.png"
  2090. alt
  2091. /><span>已选择</span>
  2092. </div>
  2093. </div>
  2094. </div> -->
  2095. </div>
  2096. <div
  2097. class="toolSort"
  2098. v-if="itemTool.toolType == 7"
  2099. >
  2100. <div class="tool">
  2101. <div
  2102. class="whiteBIcon"
  2103. @click="
  2104. openTools(itemTaskIndex, 40, toolIndex)
  2105. "
  2106. >
  2107. <img
  2108. src="../../../assets/icon/thirdToolList/eval.png"
  2109. alt
  2110. />
  2111. <div style="margin: 5px 0">个人评价</div>
  2112. </div>
  2113. <div
  2114. class="check"
  2115. @click="
  2116. addTools(40, itemTaskIndex, toolIndex)
  2117. "
  2118. >
  2119. <img
  2120. src="../../../assets/icon/checkNo.png"
  2121. alt
  2122. v-if="itemTool.tool.indexOf(40) == -1"
  2123. />
  2124. <div class="checkDiv" v-else>
  2125. <img
  2126. src="../../../assets/icon/checkedIs.png"
  2127. alt
  2128. /><span>已选择</span>
  2129. </div>
  2130. </div>
  2131. </div>
  2132. </div>
  2133. <div
  2134. class="toolSort"
  2135. v-if="itemTool.toolType == 4"
  2136. >
  2137. <div class="tool">
  2138. <div
  2139. class="whiteBIcon"
  2140. @click="
  2141. addTools(26, itemTaskIndex, toolIndex)
  2142. "
  2143. >
  2144. <img
  2145. src="../../../assets/icon/thirdToolList/courseDesign.png"
  2146. alt
  2147. />
  2148. <div style="margin: 5px 0">课程设计</div>
  2149. </div>
  2150. <div
  2151. class="check"
  2152. @click="
  2153. addTools(26, itemTaskIndex, toolIndex)
  2154. "
  2155. >
  2156. <img
  2157. src="../../../assets/icon/checkNo.png"
  2158. alt
  2159. v-if="itemTool.tool.indexOf(26) == -1"
  2160. />
  2161. <div class="checkDiv" v-else>
  2162. <img
  2163. src="../../../assets/icon/checkedIs.png"
  2164. alt
  2165. /><span>已选择</span>
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div class="tool">
  2170. <div
  2171. class="whiteBIcon"
  2172. @click="
  2173. addTools(25, itemTaskIndex, toolIndex)
  2174. "
  2175. >
  2176. <img
  2177. src="../../../assets/icon/thirdToolList/evalua.png"
  2178. alt
  2179. />
  2180. <div style="margin: 5px 0">目标管理</div>
  2181. </div>
  2182. <div
  2183. class="check"
  2184. @click="
  2185. addTools(25, itemTaskIndex, toolIndex)
  2186. "
  2187. >
  2188. <img
  2189. src="../../../assets/icon/checkNo.png"
  2190. alt
  2191. v-if="itemTool.tool.indexOf(25) == -1"
  2192. />
  2193. <div class="checkDiv" v-else>
  2194. <img
  2195. src="../../../assets/icon/checkedIs.png"
  2196. alt
  2197. /><span>已选择</span>
  2198. </div>
  2199. </div>
  2200. </div>
  2201. <!-- <div class="tool">
  2202. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2203. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2204. <div style="margin: 5px 0">汉字宫</div>
  2205. </div>
  2206. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2207. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2208. <div class="checkDiv" v-else>
  2209. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2210. </div>
  2211. </div>
  2212. </div> -->
  2213. </div>
  2214. </div>
  2215. <div v-show="itemTool.isFold3">
  2216. <textarea
  2217. v-autoHeight="87"
  2218. rows="3"
  2219. type="text"
  2220. placeholder="添加工具描述"
  2221. class="binfo_input"
  2222. style="
  2223. margin: 0 0 20px 0;
  2224. "
  2225. v-model="itemTool.toolDetail"
  2226. ></textarea>
  2227. </div>
  2228. </div>
  2229. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2230. <div class="addToolImg">
  2231. <img src="../../../assets/icon/add.png" alt />
  2232. </div>
  2233. <div>添加工具</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2239. <!-- <div>
  2240. <img src="../../../assets/icon/new/addStage.png" alt />
  2241. <span>添加任务</span>
  2242. </div> -->
  2243. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2244. 添加任务
  2245. </button>
  2246. </div>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. <div class="info_btnBox3">
  2252. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  2253. 返回课程
  2254. </button>
  2255. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  2256. 确认上传
  2257. </button>
  2258. </div>
  2259. </div>
  2260. <div class="rightBox" v-if="this.steps == 2">
  2261. <div
  2262. class="basic_box"
  2263. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  2264. >
  2265. <div
  2266. class="right_title"
  2267. style="border: none; margin: 0; padding: 0"
  2268. >
  2269. 请选择合适的课程模板
  2270. </div>
  2271. <div class="wordbox">
  2272. <div
  2273. class="wordTeacher"
  2274. v-for="(aa, indexF) in templateArray"
  2275. :key="indexF"
  2276. @click="checkTemplate(aa)"
  2277. >
  2278. <div class="wordPic">
  2279. <img src="../../../assets/icon/wordMub.png" alt />
  2280. </div>
  2281. <div
  2282. style="
  2283. margin-top: 10px;
  2284. line-height: 19px;
  2285. overflow: hidden;
  2286. text-overflow: ellipsis;
  2287. white-space: nowrap;
  2288. padding: 0 20px;
  2289. "
  2290. >
  2291. {{ aa.title }}
  2292. </div>
  2293. </div>
  2294. <div class="wordTeacher" @click="checkTemplate2()">
  2295. <div class="wordPic">
  2296. <img src="../../../assets/icon/wordMub.png" alt />
  2297. </div>
  2298. <div
  2299. style="
  2300. margin-top: 10px;
  2301. line-height: 19px;
  2302. overflow: hidden;
  2303. text-overflow: ellipsis;
  2304. white-space: nowrap;
  2305. padding: 0 20px;
  2306. "
  2307. >
  2308. 任务模式
  2309. </div>
  2310. </div>
  2311. <div class="wordTeacher" @click="checkTemplate3()">
  2312. <div class="wordPic">
  2313. <img src="../../../assets/icon/wordMub.png" alt />
  2314. </div>
  2315. <div
  2316. style="
  2317. margin-top: 10px;
  2318. line-height: 19px;
  2319. overflow: hidden;
  2320. text-overflow: ellipsis;
  2321. white-space: nowrap;
  2322. padding: 0 20px;
  2323. "
  2324. >
  2325. 简易模式
  2326. </div>
  2327. </div>
  2328. <div class="wordTeacher" @click="pasteStage()">
  2329. <div class="wordPic">
  2330. <img src="../../../assets/icon/wordMub.png" alt />
  2331. </div>
  2332. <div
  2333. style="
  2334. margin-top: 10px;
  2335. line-height: 19px;
  2336. overflow: hidden;
  2337. text-overflow: ellipsis;
  2338. white-space: nowrap;
  2339. padding: 0 20px;
  2340. "
  2341. >
  2342. 智能粘贴模式
  2343. </div>
  2344. </div>
  2345. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2346. <div class="wordPic">
  2347. <img src="../../../assets/icon/wordMub.png" alt />
  2348. </div>
  2349. <div style="
  2350. margin-top: 10px;
  2351. line-height: 19px;
  2352. overflow: hidden;
  2353. text-overflow: ellipsis;
  2354. white-space: nowrap;
  2355. padding: 0 20px;
  2356. ">
  2357. 未来小学课程设计
  2358. </div>
  2359. </div> -->
  2360. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2361. <div class="wordPic">
  2362. <img src="../../../assets/icon/wordMub.png" alt />
  2363. </div>
  2364. <div style="
  2365. margin-top: 10px;
  2366. line-height: 19px;
  2367. overflow: hidden;
  2368. text-overflow: ellipsis;
  2369. white-space: nowrap;
  2370. padding: 0 20px;
  2371. ">
  2372. 我的课程
  2373. </div>
  2374. </div> -->
  2375. </div>
  2376. </div>
  2377. </div>
  2378. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2379. <div class="basic_box">
  2380. <div
  2381. style="
  2382. display: flex;
  2383. flex-direction: row;
  2384. align-items: center;
  2385. position: sticky;
  2386. top: 0;
  2387. background: #fff;
  2388. z-index: 99;
  2389. width: 100%;
  2390. padding: 0 20px 0 20px;
  2391. box-sizing: border-box;
  2392. "
  2393. >
  2394. <div class="cru_selectBox">
  2395. <div
  2396. v-for="(item, index) in unitJson"
  2397. :key="index"
  2398. class="cru_select"
  2399. :class="unitIndex == index ? 'cru_selected' : ''"
  2400. @click="unitSet(index)"
  2401. >
  2402. <!-- item.dyName ? item.dyName : -->
  2403. {{ "第" + (index + 1) + "阶段" }}
  2404. </div>
  2405. <img
  2406. src="../../../assets/line.png"
  2407. class="cru_line"
  2408. :style="{
  2409. left: offsetLetfPx + 'px',
  2410. }"
  2411. />
  2412. </div>
  2413. <div
  2414. class="addStageImg"
  2415. @click="addunit()"
  2416. v-if="
  2417. !(unitJson[unitJson.length - 1].easy == 4) &&
  2418. !(unitJson[unitJson.length - 1].easy == 6)
  2419. "
  2420. >
  2421. <img src="../../../assets/icon/add.png" alt />
  2422. </div>
  2423. </div>
  2424. <div
  2425. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2426. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  2427. :key="index"
  2428. >
  2429. <div>
  2430. <div class="chapter_contentbox">
  2431. <div>第{{ unitIndex + 1 }}阶段</div>
  2432. <div>
  2433. <input
  2434. type="text"
  2435. placeholder="阶段标题"
  2436. class="binfo_input"
  2437. v-model="unitJson[unitIndex].dyName"
  2438. />
  2439. </div>
  2440. <div
  2441. v-if="
  2442. unitJson.length > 1 &&
  2443. !(unitJson[unitJson.length - 1].easy == 4) &&
  2444. !(unitJson[unitJson.length - 1].easy == 6)
  2445. "
  2446. @click="deleteUnit(unitIndex)"
  2447. ></div>
  2448. </div>
  2449. </div>
  2450. <div
  2451. v-if="!unitJson[unitIndex].easy"
  2452. style="
  2453. margin: 50px 0px 10px;
  2454. font-size: 1.5em;
  2455. font-weight: 700;
  2456. color: #0f7eff;
  2457. "
  2458. >
  2459. 添加任务
  2460. </div>
  2461. <div
  2462. class="taskBorder"
  2463. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2464. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  2465. :key="itemTaskIndex"
  2466. >
  2467. <div v-if="unitJson[unitIndex].easy != 1">
  2468. <div
  2469. :style="{
  2470. marginBottom:
  2471. unitJson[unitIndex].easy == 3 ||
  2472. (unitJson[unitIndex].easy == 5 &&
  2473. itemTask.taskType == 1)
  2474. ? '75px'
  2475. : '0',
  2476. }"
  2477. >
  2478. <div
  2479. style="font-size: 22px; color: #8e8e8e"
  2480. :id="'task' + itemTaskIndex"
  2481. >
  2482. 任务{{ itemTaskIndex + 1 }}
  2483. </div>
  2484. <div
  2485. class="chapter_contentbox"
  2486. style="
  2487. flex-direction: row;
  2488. justify-content: flex-start;
  2489. align-items: center;
  2490. "
  2491. >
  2492. <div
  2493. style="
  2494. border-left: 6px solid #5699e8;
  2495. height: 20px;
  2496. padding-left: 10px;
  2497. line-height: 22px;
  2498. "
  2499. >
  2500. 任务名称
  2501. </div>
  2502. <div>
  2503. <input
  2504. type="text"
  2505. placeholder="输入任务名称"
  2506. class="binfo_input"
  2507. style="border-radius: 4px"
  2508. v-model="
  2509. unitJson[unitIndex].chapterInfo[0].taskJson[
  2510. itemTaskIndex
  2511. ].task
  2512. "
  2513. />
  2514. </div>
  2515. <div
  2516. class="remove"
  2517. v-if="
  2518. item.taskJson.length > 1 &&
  2519. (!unitJson[unitIndex].easy ||
  2520. unitJson[unitIndex].easy == 6)
  2521. "
  2522. @click="deleteTask(itemTaskIndex)"
  2523. style="position: absolute; right: 55px"
  2524. ></div>
  2525. </div>
  2526. <div
  2527. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2528. style="
  2529. display: flex;
  2530. margin: 0 0 20px 0;
  2531. flex-direction: row;
  2532. justify-content: flex-start;
  2533. align-items: center;
  2534. width: 70.5% !important;
  2535. padding-top: 30px;
  2536. "
  2537. >
  2538. <div class="lineTitle">任务描述</div>
  2539. </div>
  2540. <div
  2541. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  2542. >
  2543. <editor-bar
  2544. style="width: 90% !important; margin: 0"
  2545. placeholder="请输入任务描述"
  2546. v-model="
  2547. unitJson[unitIndex].chapterInfo[0].taskJson[
  2548. itemTaskIndex
  2549. ].taskDetail
  2550. "
  2551. @change="change"
  2552. ></editor-bar>
  2553. <!-- <textarea
  2554. rows="6"
  2555. class="binfo_input"
  2556. placeholder="请输入任务描述"
  2557. cols
  2558. style="width: 70.5% !important; height: 120px"
  2559. v-model="
  2560. unitJson[unitIndex].chapterInfo[0].taskJson[
  2561. itemTaskIndex
  2562. ].taskDetail
  2563. "
  2564. ></textarea>-->
  2565. </div>
  2566. </div>
  2567. </div>
  2568. <div
  2569. v-if="
  2570. !unitJson[unitIndex].easy ||
  2571. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2572. "
  2573. class="basic_box"
  2574. style="
  2575. margin: 0;
  2576. min-height: 0;
  2577. width: 90% !important;
  2578. padding-top: 10px !important;
  2579. "
  2580. >
  2581. <div
  2582. style="
  2583. display: flex;
  2584. margin: 0 0 20px 0;
  2585. flex-direction: row;
  2586. justify-content: flex-start;
  2587. align-items: center;
  2588. "
  2589. >
  2590. <div class="lineTitle">学习内容</div>
  2591. </div>
  2592. <div>
  2593. <div
  2594. class="add_chapters_box"
  2595. v-if="
  2596. itemTask.chapterData &&
  2597. itemTask.chapterData.length == 0
  2598. "
  2599. style="height: 185px"
  2600. ></div>
  2601. <div
  2602. v-else
  2603. class="add_chapters_box"
  2604. style="display: flex; flex-direction: column"
  2605. >
  2606. <div
  2607. class="chapter_upload"
  2608. v-for="(item1, index1) in itemTask.chapterData"
  2609. :key="item1.id"
  2610. @click="
  2611. getChapterData(
  2612. $event,
  2613. unitIndex,
  2614. index,
  2615. index1,
  2616. item1.type
  2617. )
  2618. "
  2619. >
  2620. <div
  2621. class="chapter_upload_t"
  2622. style="width: 100%"
  2623. ></div>
  2624. <div
  2625. class="chapter_upload_o"
  2626. style="
  2627. position: relative;
  2628. display: flex;
  2629. align-items: center;
  2630. "
  2631. >
  2632. <div
  2633. class="chapter_upload_l"
  2634. style="padding: 1px 0 0 10px"
  2635. >
  2636. <div
  2637. v-if="item1.type == 2"
  2638. class="chapter_upload_l_i1"
  2639. ></div>
  2640. <div
  2641. v-if="
  2642. item1.type == 3 ||
  2643. item1.type == 12 ||
  2644. item1.type == 13 ||
  2645. item1.type == 6 ||
  2646. item1.type == 7
  2647. "
  2648. class="chapter_upload_l_i5"
  2649. style="margin-left: 1px"
  2650. ></div>
  2651. <div
  2652. v-if="item1.type == 8"
  2653. class="chapter_upload_l_i8"
  2654. style="margin-left: 1px"
  2655. ></div>
  2656. </div>
  2657. <div
  2658. class="chapter_upload_ic"
  2659. style="
  2660. cursor: pointer;
  2661. position: absolute;
  2662. width: 45px;
  2663. right: 0;
  2664. top: 0;
  2665. "
  2666. >
  2667. <div class="chapter_upload_ic_l"></div>
  2668. <div
  2669. class="chapter_upload_ic_r"
  2670. style="position: absolute"
  2671. @click.stop="
  2672. deleteChapterData(
  2673. $event,
  2674. unitIndex,
  2675. index,
  2676. index1,
  2677. itemTaskIndex
  2678. )
  2679. "
  2680. >
  2681. <div></div>
  2682. </div>
  2683. </div>
  2684. <div class="chapter_upload_n">
  2685. <input
  2686. v-if="
  2687. item1.type == 2 ||
  2688. item1.type == 3 ||
  2689. item1.type == 12 ||
  2690. item1.type == 13 ||
  2691. item1.type == 7
  2692. "
  2693. :placeholder="item1.name"
  2694. @change="
  2695. updataVideoT(
  2696. $event,
  2697. unitIndex,
  2698. chapterIndex,
  2699. index1
  2700. )
  2701. "
  2702. style="
  2703. border: none;
  2704. outline: none;
  2705. width: 80%;
  2706. minwidth: 215px;
  2707. z-index: 99;
  2708. font-size: 14px;
  2709. white-space: nowrap;
  2710. overflow: hidden;
  2711. text-overflow: ellipsis;
  2712. "
  2713. />
  2714. <input
  2715. :placeholder="item1.name"
  2716. v-if="item1.type == 6"
  2717. style="
  2718. border: none;
  2719. outline: none;
  2720. width: 80%;
  2721. white-space: nowrap;
  2722. overflow: hidden;
  2723. text-overflow: ellipsis;
  2724. "
  2725. readonly="true"
  2726. @click="selectAttText(itemTaskIndex, index1)"
  2727. />
  2728. <input
  2729. :placeholder="
  2730. item1.title ? item1.title : '链接'
  2731. "
  2732. v-if="item1.type == 8"
  2733. style="
  2734. border: none;
  2735. outline: none;
  2736. width: 80%;
  2737. white-space: nowrap;
  2738. overflow: hidden;
  2739. text-overflow: ellipsis;
  2740. "
  2741. readonly="true"
  2742. @click="selectLine(itemTaskIndex, index1)"
  2743. />
  2744. <div
  2745. class="chapter_upload_ud"
  2746. style="z-index: 99"
  2747. >
  2748. <div
  2749. class="chapter_upload_up"
  2750. @click="
  2751. upCd(
  2752. $event,
  2753. unitIndex,
  2754. index,
  2755. itemTaskIndex,
  2756. index1
  2757. )
  2758. "
  2759. ></div>
  2760. <div
  2761. class="chapter_upload_down"
  2762. @click="
  2763. downCd(
  2764. $event,
  2765. unitIndex,
  2766. index,
  2767. itemTaskIndex,
  2768. index1
  2769. )
  2770. "
  2771. ></div>
  2772. </div>
  2773. </div>
  2774. </div>
  2775. </div>
  2776. </div>
  2777. </div>
  2778. <div class="add_info_box">
  2779. <button class="info_btn" @click="addImg($event)">
  2780. 添加文件
  2781. <input
  2782. type="file"
  2783. accept="*"
  2784. style="display: none"
  2785. v-if="inputShow"
  2786. @change="
  2787. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2788. "
  2789. />
  2790. </button>
  2791. <!-- <button class="info_btn" @click="addImg($event)">
  2792. 添加视频
  2793. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2794. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2795. " />
  2796. </button>
  2797. <button class="info_btn" @click="addImg($event)">
  2798. 添加文档
  2799. <input type="file"
  2800. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2801. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2802. " />
  2803. </button> -->
  2804. <button
  2805. class="info_btn"
  2806. @click="addAttText(itemTaskIndex)"
  2807. >
  2808. 添加图文
  2809. </button>
  2810. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2811. 添加链接
  2812. </button>
  2813. <button
  2814. class="info_btn"
  2815. @click="pasteLine(itemTaskIndex)"
  2816. >
  2817. 嵌入代码
  2818. </button>
  2819. <button
  2820. class="info_btn"
  2821. @click="openSource(itemTaskIndex)"
  2822. >
  2823. 添加资源
  2824. </button>
  2825. <!-- <button class="info_btn" @click="addImg($event)">
  2826. 其他附件
  2827. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2828. " />
  2829. </button> -->
  2830. </div>
  2831. <div
  2832. v-if="
  2833. unitJson[unitIndex].chapterInfo[0].taskJson[
  2834. itemTaskIndex
  2835. ].proVisible
  2836. "
  2837. class="mask"
  2838. >
  2839. <div class="progressBox">
  2840. <!-- <div id="closePro" class="closeCss">
  2841. <img src="../../../../assets/icon/close.png" alt />
  2842. </div> -->
  2843. <div class="lbox">
  2844. <img
  2845. src="../../../assets/loading.gif"
  2846. />上传中,请稍后
  2847. </div>
  2848. <div style="margin-bottom: 10px">
  2849. <span
  2850. >{{
  2851. unitJson[unitIndex].chapterInfo[0].taskJson[
  2852. itemTaskIndex
  2853. ].isFinishSize
  2854. }}M</span
  2855. >
  2856. /
  2857. <span
  2858. >{{
  2859. unitJson[unitIndex].chapterInfo[0].taskJson[
  2860. itemTaskIndex
  2861. ].isAllSize
  2862. }}M</span
  2863. >
  2864. </div>
  2865. <el-progress
  2866. :text-inside="true"
  2867. :stroke-width="20"
  2868. :percentage="
  2869. unitJson[unitIndex].chapterInfo[0].taskJson[
  2870. itemTaskIndex
  2871. ].progress
  2872. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2873. itemTaskIndex
  2874. ].progress
  2875. : 0
  2876. "
  2877. style="width: 80%"
  2878. ></el-progress>
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div
  2883. v-if="
  2884. unitJson[unitIndex].easy == 1 ||
  2885. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2886. "
  2887. class="basic_box"
  2888. style="
  2889. margin: 0 auto;
  2890. min-height: 0;
  2891. width: 95% !important;
  2892. padding: 20px 10px 10px;
  2893. "
  2894. >
  2895. <div>
  2896. <div
  2897. class="add_chapters_box"
  2898. v-if="
  2899. itemTask.chapterData &&
  2900. itemTask.chapterData.length == 0
  2901. "
  2902. style="height: 185px"
  2903. ></div>
  2904. <div
  2905. v-else
  2906. class="add_chapters_box"
  2907. style="display: flex; flex-direction: column"
  2908. >
  2909. <div
  2910. v-for="(item1, index1) in itemTask.chapterData"
  2911. :key="item1.id"
  2912. >
  2913. <div
  2914. class="chapter_upload"
  2915. @click="
  2916. getChapterData(
  2917. $event,
  2918. unitIndex,
  2919. index,
  2920. index1,
  2921. item1.type
  2922. )
  2923. "
  2924. >
  2925. <div
  2926. class="chapter_upload_t"
  2927. style="width: 100%"
  2928. ></div>
  2929. <div
  2930. class="chapter_upload_o"
  2931. style="
  2932. position: relative;
  2933. display: flex;
  2934. align-items: center;
  2935. "
  2936. >
  2937. <div
  2938. class="chapter_upload_l"
  2939. style="padding: 1px 0 0 10px"
  2940. >
  2941. <div
  2942. v-if="item1.type == 2"
  2943. class="chapter_upload_l_i1"
  2944. ></div>
  2945. <div
  2946. v-if="
  2947. item1.type == 3 ||
  2948. item1.type == 6 ||
  2949. item1.type == 7
  2950. "
  2951. class="chapter_upload_l_i5"
  2952. style="margin-left: 1px"
  2953. ></div>
  2954. <div
  2955. v-if="item1.type == 8"
  2956. class="chapter_upload_l_i8"
  2957. style="margin-left: 1px"
  2958. ></div>
  2959. </div>
  2960. <div
  2961. class="chapter_upload_ic"
  2962. style="
  2963. cursor: pointer;
  2964. position: absolute;
  2965. width: 45px;
  2966. right: 0;
  2967. top: 0;
  2968. "
  2969. >
  2970. <div class="chapter_upload_ic_l"></div>
  2971. <div
  2972. class="chapter_upload_ic_r"
  2973. style="position: absolute"
  2974. @click.stop="
  2975. deleteChapterData(
  2976. $event,
  2977. unitIndex,
  2978. index,
  2979. index1,
  2980. itemTaskIndex
  2981. )
  2982. "
  2983. >
  2984. <div></div>
  2985. </div>
  2986. </div>
  2987. <div class="chapter_upload_n">
  2988. <span
  2989. style="
  2990. font-size: 14px;
  2991. color: rgb(109, 109, 109);
  2992. height: 14px;
  2993. line-height: 12px;
  2994. "
  2995. v-if="
  2996. item1.type == 2 ||
  2997. item1.type == 3 ||
  2998. item1.type == 7
  2999. "
  3000. >{{ item1.text }}-</span
  3001. >
  3002. <input
  3003. v-if="
  3004. item1.type == 2 ||
  3005. item1.type == 3 ||
  3006. item1.type == 7
  3007. "
  3008. :placeholder="item1.name"
  3009. @change="
  3010. updataVideoT(
  3011. $event,
  3012. unitIndex,
  3013. chapterIndex,
  3014. index1
  3015. )
  3016. "
  3017. style="
  3018. border: none;
  3019. outline: none;
  3020. width: 80%;
  3021. minwidth: 215px;
  3022. z-index: 99;
  3023. font-size: 14px;
  3024. white-space: nowrap;
  3025. overflow: hidden;
  3026. text-overflow: ellipsis;
  3027. "
  3028. />
  3029. <input
  3030. :placeholder="item1.name"
  3031. v-if="item1.type == 6"
  3032. style="
  3033. border: none;
  3034. outline: none;
  3035. width: 80%;
  3036. white-space: nowrap;
  3037. overflow: hidden;
  3038. text-overflow: ellipsis;
  3039. "
  3040. readonly="true"
  3041. @click="selectAttText(itemTaskIndex, index1)"
  3042. />
  3043. <input
  3044. :placeholder="
  3045. item1.title ? item1.title : '链接'
  3046. "
  3047. v-if="item1.type == 8"
  3048. style="
  3049. border: none;
  3050. outline: none;
  3051. width: 80%;
  3052. white-space: nowrap;
  3053. overflow: hidden;
  3054. text-overflow: ellipsis;
  3055. "
  3056. readonly="true"
  3057. @click="selectLine(itemTaskIndex, index1)"
  3058. />
  3059. <div
  3060. class="chapter_upload_ud"
  3061. style="z-index: 99"
  3062. >
  3063. <div
  3064. class="chapter_upload_up"
  3065. @click="
  3066. upCd(
  3067. $event,
  3068. unitIndex,
  3069. index,
  3070. itemTaskIndex,
  3071. index1
  3072. )
  3073. "
  3074. ></div>
  3075. <div
  3076. class="chapter_upload_down"
  3077. @click="
  3078. downCd(
  3079. $event,
  3080. unitIndex,
  3081. index,
  3082. itemTaskIndex,
  3083. index1
  3084. )
  3085. "
  3086. ></div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. </div>
  3091. </div>
  3092. </div>
  3093. </div>
  3094. <div class="add_info_box" style="margin: 10px 0 0">
  3095. <button class="info_btn" @click="addImg($event)">
  3096. <span style="color: red">*</span>
  3097. 教学设计
  3098. <input
  3099. type="file"
  3100. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3101. style="display: none"
  3102. v-if="inputShow"
  3103. @change="
  3104. beforeUpload3(
  3105. $event,
  3106. unitIndex,
  3107. 3,
  3108. itemTaskIndex,
  3109. '教学设计'
  3110. )
  3111. "
  3112. />
  3113. </button>
  3114. <button class="info_btn" @click="addImg($event)">
  3115. <span style="color: red">*</span>
  3116. 教学课件
  3117. <input
  3118. type="file"
  3119. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3120. style="display: none"
  3121. v-if="inputShow"
  3122. @change="
  3123. beforeUpload3(
  3124. $event,
  3125. unitIndex,
  3126. 3,
  3127. itemTaskIndex,
  3128. '教学课件'
  3129. )
  3130. "
  3131. />
  3132. </button>
  3133. <button class="info_btn" @click="addImg($event)">
  3134. 教学视频
  3135. <input
  3136. type="file"
  3137. accept="video/mp4, video/quicktime, video/x-msvideo"
  3138. style="display: none"
  3139. v-if="inputShow"
  3140. @change="
  3141. beforeUpload3(
  3142. $event,
  3143. unitIndex,
  3144. 2,
  3145. itemTaskIndex,
  3146. '教学视频'
  3147. )
  3148. "
  3149. />
  3150. </button>
  3151. <button class="info_btn" @click="addImg($event)">
  3152. 教学音频
  3153. <input
  3154. type="file"
  3155. accept="audio/*"
  3156. style="display: none"
  3157. v-if="inputShow"
  3158. @change="
  3159. beforeUpload3(
  3160. $event,
  3161. unitIndex,
  3162. 2,
  3163. itemTaskIndex,
  3164. '教学音频'
  3165. )
  3166. "
  3167. />
  3168. </button>
  3169. <button class="info_btn" @click="addImg($event)">
  3170. 学习单
  3171. <input
  3172. type="file"
  3173. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  3174. style="display: none"
  3175. v-if="inputShow"
  3176. @change="
  3177. beforeUpload3(
  3178. $event,
  3179. unitIndex,
  3180. 3,
  3181. itemTaskIndex,
  3182. '学习单'
  3183. )
  3184. "
  3185. />
  3186. </button>
  3187. </div>
  3188. <div
  3189. v-if="
  3190. unitJson[unitIndex].chapterInfo[0].taskJson[
  3191. itemTaskIndex
  3192. ].proVisible
  3193. "
  3194. class="mask"
  3195. >
  3196. <div class="progressBox">
  3197. <!-- <div id="closePro" class="closeCss">
  3198. <img src="../../../../assets/icon/close.png" alt />
  3199. </div> -->
  3200. <div class="lbox">
  3201. <img
  3202. src="../../../assets/loading.gif"
  3203. />上传中,请稍后
  3204. </div>
  3205. <div style="margin-bottom: 10px">
  3206. <span
  3207. >{{
  3208. unitJson[unitIndex].chapterInfo[0].taskJson[
  3209. itemTaskIndex
  3210. ].isFinishSize
  3211. }}M</span
  3212. >
  3213. /
  3214. <span
  3215. >{{
  3216. unitJson[unitIndex].chapterInfo[0].taskJson[
  3217. itemTaskIndex
  3218. ].isAllSize
  3219. }}M</span
  3220. >
  3221. </div>
  3222. <el-progress
  3223. :text-inside="true"
  3224. :stroke-width="20"
  3225. :percentage="
  3226. unitJson[unitIndex].chapterInfo[0].taskJson[
  3227. itemTaskIndex
  3228. ].progress
  3229. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  3230. itemTaskIndex
  3231. ].progress
  3232. : 0
  3233. "
  3234. style="width: 80%"
  3235. ></el-progress>
  3236. </div>
  3237. </div>
  3238. </div>
  3239. <div
  3240. v-if="
  3241. unitJson[unitIndex].easy != 3 &&
  3242. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  3243. "
  3244. style="
  3245. flex-direction: row;
  3246. justify-content: flex-start;
  3247. align-items: center;
  3248. padding: 0 0 0 30px;
  3249. paddint-top: 10px !important;
  3250. "
  3251. >
  3252. <div
  3253. style="
  3254. display: flex;
  3255. flex-direction: row;
  3256. align-items: center;
  3257. margin-bottom: 20px;
  3258. "
  3259. >
  3260. <div class="lineTitle">
  3261. {{
  3262. !unitJson[unitIndex].easy ||
  3263. unitJson[unitIndex].easy == 6 ||
  3264. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  3265. ? "练习内容"
  3266. : "评价内容"
  3267. }}
  3268. </div>
  3269. </div>
  3270. </div>
  3271. <div
  3272. v-if="
  3273. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  3274. "
  3275. class="toolChoose"
  3276. style="padding: 0 0 0 30px"
  3277. >
  3278. <div class="tools">
  3279. <div
  3280. class="leftTools"
  3281. style="
  3282. width: 95%;
  3283. padding: 0 0 15px 0;
  3284. margin: 15px 0;
  3285. "
  3286. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3287. :key="toolIndex"
  3288. >
  3289. <div>
  3290. <textarea
  3291. rows="3"
  3292. type="text"
  3293. placeholder="添加工具描述"
  3294. class="binfo_input"
  3295. style="margin: 0 0 20px 0; width: 71.5% !important"
  3296. v-model="itemTool.toolDetail"
  3297. ></textarea>
  3298. </div>
  3299. <div
  3300. style="
  3301. display: flex;
  3302. flex-direction: row;
  3303. align-items: baseline;
  3304. flex-wrap: nowrap;
  3305. justify-content: flex-start;
  3306. position: relative;
  3307. "
  3308. >
  3309. <div style="margin-right: 20px; font-weight: bold">
  3310. 步骤 {{ toolIndex + 1 }} :
  3311. </div>
  3312. <div class="chooseWho">
  3313. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  3314. " @click="(itemTool.toolType = 0), $forceUpdate()">
  3315. 互动类
  3316. </div> -->
  3317. <div
  3318. :class="
  3319. itemTool.toolType == 1 ? 'isChooseActive' : ''
  3320. "
  3321. @click="(itemTool.toolType = 1), $forceUpdate()"
  3322. >
  3323. 思维类
  3324. </div>
  3325. <div
  3326. :class="
  3327. itemTool.toolType == 6 ? 'isChooseActive' : ''
  3328. "
  3329. @click="(itemTool.toolType = 6), $forceUpdate()"
  3330. >
  3331. 协作类
  3332. </div>
  3333. <div
  3334. :class="
  3335. itemTool.toolType == 2 ? 'isChooseActive' : ''
  3336. "
  3337. @click="(itemTool.toolType = 2), $forceUpdate()"
  3338. >
  3339. 测评类
  3340. </div>
  3341. <div
  3342. :class="
  3343. itemTool.toolType == 7 ? 'isChooseActive' : ''
  3344. "
  3345. @click="(itemTool.toolType = 7), $forceUpdate()"
  3346. >
  3347. 评价类
  3348. </div>
  3349. <div
  3350. :class="
  3351. itemTool.toolType == 3 ? 'isChooseActive' : ''
  3352. "
  3353. @click="(itemTool.toolType = 3), $forceUpdate()"
  3354. >
  3355. 学科类
  3356. </div>
  3357. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  3358. " @click="(itemTool.toolType = 5), $forceUpdate()">
  3359. 学科类
  3360. </div>
  3361. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  3362. " @click="(itemTool.toolType = 4), $forceUpdate()">
  3363. 其他
  3364. </div> -->
  3365. </div>
  3366. <div
  3367. class="remove"
  3368. @click="deleteTool(itemTaskIndex, toolIndex)"
  3369. v-if="itemTask.toolChoose.length > 1"
  3370. style="position: absolute; right: 55px"
  3371. ></div>
  3372. </div>
  3373. <div style="min-height: 163px">
  3374. <div class="toolSort" v-if="itemTool.toolType == 0">
  3375. <!-- <div class="tool">
  3376. <div
  3377. class="whiteBIcon"
  3378. @click="addTools(8, itemTaskIndex, toolIndex)"
  3379. >
  3380. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3381. <div style="margin: 5px 0">素材库</div>
  3382. </div>
  3383. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  3384. <img
  3385. src="../../../assets/icon/checkNo.png"
  3386. alt
  3387. v-if="itemTool.tool.indexOf(8) == -1"
  3388. />
  3389. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  3390. alt /><span>已选择</span></div>
  3391. </div>
  3392. </div>-->
  3393. <!-- <div class="tool">
  3394. <div
  3395. class="whiteBIcon"
  3396. @click="addTools(17, itemTaskIndex, toolIndex)"
  3397. >
  3398. <img
  3399. src="../../../assets/icon/secondToolList/library.png"
  3400. alt
  3401. />
  3402. <div style="margin: 5px 0">学习资料</div>
  3403. </div>
  3404. <div
  3405. class="check"
  3406. @click="addTools(17, itemTaskIndex, toolIndex)"
  3407. >
  3408. <img
  3409. src="../../../assets/icon/checkNo.png"
  3410. alt
  3411. v-if="itemTool.tool.indexOf(17) == -1"
  3412. />
  3413. <img
  3414. src="../../../assets/icon/checkedIs.png"
  3415. alt
  3416. v-else
  3417. />
  3418. </div>10
  3419. </div> -->
  3420. <div class="tool">
  3421. <div
  3422. class="whiteBIcon"
  3423. @click="openTools(itemTaskIndex, 10, toolIndex)"
  3424. >
  3425. <img
  3426. src="../../../assets/icon/thirdToolList/time.png"
  3427. alt
  3428. />
  3429. <div style="margin: 5px 0">倒计时</div>
  3430. </div>
  3431. <div
  3432. class="check"
  3433. @click="addTools(10, itemTaskIndex, toolIndex)"
  3434. >
  3435. <img
  3436. src="../../../assets/icon/checkNo.png"
  3437. alt
  3438. v-if="itemTool.tool.indexOf(10) == -1"
  3439. />
  3440. <div class="checkDiv" v-else>
  3441. <img
  3442. src="../../../assets/icon/checkedIs.png"
  3443. alt
  3444. /><span>已选择</span>
  3445. </div>
  3446. </div>
  3447. </div>
  3448. <!-- <div class="tool">
  3449. <div
  3450. class="whiteBIcon"
  3451. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3452. >
  3453. <img
  3454. src="../../../assets/icon/fourthToolList/group.png"
  3455. alt
  3456. />
  3457. <div style="margin: 5px 0">学生分组</div>
  3458. </div>
  3459. <div
  3460. class="check"
  3461. @click="addTools(49, itemTaskIndex, toolIndex)"
  3462. >
  3463. <img
  3464. src="../../../assets/icon/checkNo.png"
  3465. alt
  3466. v-if="itemTool.tool.indexOf(49) == -1"
  3467. />
  3468. <div class="checkDiv" v-else>
  3469. <img
  3470. src="../../../assets/icon/checkedIs.png"
  3471. alt
  3472. /><span>已选择</span>
  3473. </div>
  3474. </div>
  3475. </div> -->
  3476. <div class="tool">
  3477. <div
  3478. class="whiteBIcon"
  3479. @click="openTools(itemTaskIndex, 62, toolIndex)"
  3480. >
  3481. <img
  3482. src="../../../assets/icon/fourthToolList/interVideo.png"
  3483. alt
  3484. />
  3485. <div style="margin: 5px 0">交互视频</div>
  3486. </div>
  3487. <div
  3488. class="check"
  3489. @click="addTools(62, itemTaskIndex, toolIndex)"
  3490. >
  3491. <img
  3492. src="../../../assets/icon/checkNo.png"
  3493. alt
  3494. v-if="itemTool.tool.indexOf(62) == -1"
  3495. />
  3496. <div class="checkDiv" v-else>
  3497. <img
  3498. src="../../../assets/icon/checkedIs.png"
  3499. alt
  3500. /><span>已选择</span>
  3501. </div>
  3502. </div>
  3503. </div>
  3504. </div>
  3505. <div class="toolSort" v-if="itemTool.toolType == 1">
  3506. <div class="tool">
  3507. <div
  3508. class="whiteBIcon"
  3509. @click="addTools(7, itemTaskIndex, toolIndex)"
  3510. >
  3511. <img
  3512. src="../../../assets/icon/secondToolList/mindNetwork.png"
  3513. alt
  3514. />
  3515. <div style="margin: 5px 0">思维网格</div>
  3516. </div>
  3517. <div
  3518. class="check"
  3519. @click="addTools(7, itemTaskIndex, toolIndex)"
  3520. >
  3521. <img
  3522. src="../../../assets/icon/checkNo.png"
  3523. alt
  3524. v-if="itemTool.tool.indexOf(7) == -1"
  3525. />
  3526. <div class="checkDiv" v-else>
  3527. <img
  3528. src="../../../assets/icon/checkedIs.png"
  3529. alt
  3530. /><span>已选择</span>
  3531. </div>
  3532. </div>
  3533. </div>
  3534. <div class="tool">
  3535. <div
  3536. class="whiteBIcon"
  3537. @click="openTools(itemTaskIndex, 1, toolIndex)"
  3538. >
  3539. <img
  3540. src="../../../assets/icon/secondToolList/whiteBoard.png"
  3541. alt
  3542. />
  3543. <div style="margin: 5px 0">电子白板</div>
  3544. </div>
  3545. <div
  3546. class="check"
  3547. @click="addTools(1, itemTaskIndex, toolIndex)"
  3548. >
  3549. <img
  3550. src="../../../assets/icon/checkNo.png"
  3551. alt
  3552. v-if="itemTool.tool.indexOf(1) == -1"
  3553. />
  3554. <div class="checkDiv" v-else>
  3555. <img
  3556. src="../../../assets/icon/checkedIs.png"
  3557. alt
  3558. /><span>已选择</span>
  3559. </div>
  3560. </div>
  3561. </div>
  3562. <!-- <div class="tool">
  3563. <div
  3564. class="whiteBIcon"
  3565. @click="addTools(2, itemTaskIndex, toolIndex)"
  3566. >
  3567. <img
  3568. src="../../../assets/icon/secondToolList/note.png"
  3569. alt
  3570. />
  3571. <div style="margin: 5px 0">便签</div>
  3572. </div>
  3573. <div
  3574. class="check"
  3575. @click="addTools(2, itemTaskIndex, toolIndex)"
  3576. >
  3577. <img
  3578. src="../../../assets/icon/checkNo.png"
  3579. alt
  3580. v-if="itemTool.tool.indexOf(2) == -1"
  3581. />
  3582. <div class="checkDiv" v-else>
  3583. <img
  3584. src="../../../assets/icon/checkedIs.png"
  3585. alt
  3586. /><span>已选择</span>
  3587. </div>
  3588. </div>
  3589. </div> -->
  3590. <!-- <div class="tool">
  3591. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  3592. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3593. <div style="margin: 5px 0">协同文档</div>
  3594. </div>
  3595. <div
  3596. class="check"
  3597. @click="addTools(6, itemTaskIndex, toolIndex)"
  3598. >
  3599. <img
  3600. src="../../../assets/icon/checkNo.png"
  3601. alt
  3602. v-if="itemTool.tool.indexOf(6) == -1"
  3603. />
  3604. <div class="checkDiv" v-else>
  3605. <img
  3606. src="../../../assets/icon/checkedIs.png"
  3607. alt
  3608. /><span>已选择</span>
  3609. </div>
  3610. </div>
  3611. </div> -->
  3612. <div class="tool">
  3613. <div
  3614. class="whiteBIcon"
  3615. @click="openTools(itemTaskIndex, 52, toolIndex)"
  3616. >
  3617. <img
  3618. src="../../../assets/icon/fourthToolList/text.png"
  3619. alt
  3620. />
  3621. <div style="margin: 5px 0">文档</div>
  3622. </div>
  3623. <div
  3624. class="check"
  3625. @click="addTools(52, itemTaskIndex, toolIndex)"
  3626. >
  3627. <img
  3628. src="../../../assets/icon/checkNo.png"
  3629. alt
  3630. v-if="itemTool.tool.indexOf(52) == -1"
  3631. />
  3632. <div class="checkDiv" v-else>
  3633. <img
  3634. src="../../../assets/icon/checkedIs.png"
  3635. alt
  3636. /><span>已选择</span>
  3637. </div>
  3638. </div>
  3639. </div>
  3640. <div class="tool">
  3641. <div
  3642. class="whiteBIcon"
  3643. @click="openTools(itemTaskIndex, 3, toolIndex)"
  3644. >
  3645. <img
  3646. src="../../../assets/icon/secondToolList/mindMapping.png"
  3647. alt
  3648. />
  3649. <div style="margin: 5px 0">思维导图</div>
  3650. </div>
  3651. <div
  3652. class="check"
  3653. @click="addTools(3, itemTaskIndex, toolIndex)"
  3654. >
  3655. <img
  3656. src="../../../assets/icon/checkNo.png"
  3657. alt
  3658. v-if="itemTool.tool.indexOf(3) == -1"
  3659. />
  3660. <div class="checkDiv" v-else>
  3661. <img
  3662. src="../../../assets/icon/checkedIs.png"
  3663. alt
  3664. /><span>已选择</span>
  3665. </div>
  3666. </div>
  3667. </div>
  3668. <div class="tool">
  3669. <div
  3670. class="whiteBIcon"
  3671. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3672. >
  3673. <img
  3674. src="../../../assets/icon/fourthToolList/table.png"
  3675. alt
  3676. />
  3677. <div style="margin: 5px 0">表格</div>
  3678. </div>
  3679. <div
  3680. class="check"
  3681. @click="addTools(48, itemTaskIndex, toolIndex)"
  3682. >
  3683. <img
  3684. src="../../../assets/icon/checkNo.png"
  3685. alt
  3686. v-if="itemTool.tool.indexOf(48) == -1"
  3687. />
  3688. <div class="checkDiv" v-else>
  3689. <img
  3690. src="../../../assets/icon/checkedIs.png"
  3691. alt
  3692. /><span>已选择</span>
  3693. </div>
  3694. </div>
  3695. </div>
  3696. </div>
  3697. <div class="toolSort" v-if="itemTool.toolType == 6">
  3698. <div class="tool">
  3699. <div
  3700. class="whiteBIcon"
  3701. @click="openTools(itemTaskIndex, 49, toolIndex)"
  3702. >
  3703. <img
  3704. src="../../../assets/icon/fourthToolList/group.png"
  3705. alt
  3706. />
  3707. <div style="margin: 5px 0">学生分组</div>
  3708. </div>
  3709. <div
  3710. class="check"
  3711. @click="addTools(49, itemTaskIndex, toolIndex)"
  3712. >
  3713. <img
  3714. src="../../../assets/icon/checkNo.png"
  3715. alt
  3716. v-if="itemTool.tool.indexOf(49) == -1"
  3717. />
  3718. <div class="checkDiv" v-else>
  3719. <img
  3720. src="../../../assets/icon/checkedIs.png"
  3721. alt
  3722. /><span>已选择</span>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. <div class="toolSort" v-if="itemTool.toolType == 2">
  3728. <!-- <div class="tool">
  3729. <div
  3730. class="whiteBIcon"
  3731. @click="addTools(5, itemTaskIndex, toolIndex)"
  3732. >
  3733. <img
  3734. src="../../../assets/icon/thirdToolList/score.png"
  3735. alt
  3736. />
  3737. <div style="margin: 5px 0">量规评分</div>
  3738. </div>
  3739. <div
  3740. class="check"
  3741. @click="addTools(5, itemTaskIndex, toolIndex)"
  3742. >
  3743. <img
  3744. src="../../../assets/icon/checkNo.png"
  3745. alt
  3746. v-if="itemTool.tool.indexOf(5) == -1"
  3747. />
  3748. <img
  3749. src="../../../assets/icon/checkedIs.png"
  3750. alt
  3751. v-else
  3752. />
  3753. </div>
  3754. </div>-->
  3755. <div class="tool">
  3756. <div
  3757. class="whiteBIcon"
  3758. @click="openTools(itemTaskIndex, 4, toolIndex)"
  3759. >
  3760. <img
  3761. src="../../../assets/icon/thirdToolList/ask.png"
  3762. alt
  3763. />
  3764. <div style="margin: 5px 0">问卷调查</div>
  3765. </div>
  3766. <div
  3767. class="check"
  3768. @click="addTools(4, itemTaskIndex, toolIndex)"
  3769. >
  3770. <img
  3771. src="../../../assets/icon/checkNo.png"
  3772. alt
  3773. v-if="itemTool.tool.indexOf(4) == -1"
  3774. />
  3775. <div class="checkDiv" v-else>
  3776. <img
  3777. src="../../../assets/icon/checkedIs.png"
  3778. alt
  3779. /><span>已选择</span>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. <div class="tool">
  3784. <div
  3785. class="whiteBIcon"
  3786. @click="openTools(itemTaskIndex, 45, toolIndex)"
  3787. >
  3788. <img
  3789. src="../../../assets/icon/thirdToolList/choose.png"
  3790. alt
  3791. />
  3792. <div style="margin: 5px 0">选择题</div>
  3793. </div>
  3794. <div
  3795. class="check"
  3796. @click="addTools(45, itemTaskIndex, toolIndex)"
  3797. >
  3798. <img
  3799. src="../../../assets/icon/checkNo.png"
  3800. alt
  3801. v-if="itemTool.tool.indexOf(45) == -1"
  3802. />
  3803. <div class="checkDiv" v-else>
  3804. <img
  3805. src="../../../assets/icon/checkedIs.png"
  3806. alt
  3807. /><span>已选择</span>
  3808. </div>
  3809. </div>
  3810. </div>
  3811. <div class="tool">
  3812. <div
  3813. class="whiteBIcon"
  3814. @click="openTools(itemTaskIndex, 15, toolIndex)"
  3815. >
  3816. <img
  3817. src="../../../assets/icon/thirdToolList/answer.png"
  3818. alt
  3819. />
  3820. <div style="margin: 5px 0">问答</div>
  3821. </div>
  3822. <div
  3823. class="check"
  3824. @click="addTools(15, itemTaskIndex, toolIndex)"
  3825. >
  3826. <img
  3827. src="../../../assets/icon/checkNo.png"
  3828. alt
  3829. v-if="itemTool.tool.indexOf(15) == -1"
  3830. />
  3831. <div class="checkDiv" v-else>
  3832. <img
  3833. src="../../../assets/icon/checkedIs.png"
  3834. alt
  3835. /><span>已选择</span>
  3836. </div>
  3837. </div>
  3838. </div>
  3839. <div class="tool">
  3840. <div
  3841. class="whiteBIcon"
  3842. @click="addTools(16, itemTaskIndex, toolIndex)"
  3843. >
  3844. <img
  3845. src="../../../assets/icon/thirdToolList/work.png"
  3846. alt
  3847. />
  3848. <div style="margin: 5px 0">作业提交</div>
  3849. </div>
  3850. <div
  3851. class="check"
  3852. @click="addTools(16, itemTaskIndex, toolIndex)"
  3853. >
  3854. <img
  3855. src="../../../assets/icon/checkNo.png"
  3856. alt
  3857. v-if="itemTool.tool.indexOf(16) == -1"
  3858. />
  3859. <div class="checkDiv" v-else>
  3860. <img
  3861. src="../../../assets/icon/checkedIs.png"
  3862. alt
  3863. /><span>已选择</span>
  3864. </div>
  3865. </div>
  3866. </div>
  3867. <div class="tool">
  3868. <div
  3869. class="whiteBIcon"
  3870. @click="addTools(50, itemTaskIndex, toolIndex)"
  3871. >
  3872. <img
  3873. src="../../../assets/icon/thirdToolList/plwork.png"
  3874. alt
  3875. />
  3876. <div style="margin: 5px 0">批量上传</div>
  3877. </div>
  3878. <div
  3879. class="check"
  3880. @click="addTools(50, itemTaskIndex, toolIndex)"
  3881. >
  3882. <img
  3883. src="../../../assets/icon/checkNo.png"
  3884. alt
  3885. v-if="itemTool.tool.indexOf(50) == -1"
  3886. />
  3887. <div class="checkDiv" v-else>
  3888. <img
  3889. src="../../../assets/icon/checkedIs.png"
  3890. alt
  3891. /><span>已选择</span>
  3892. </div>
  3893. </div>
  3894. </div>
  3895. <!-- <div class="tool">
  3896. <div
  3897. class="whiteBIcon"
  3898. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3899. >
  3900. <img
  3901. src="../../../assets/icon/thirdToolList/eval.png"
  3902. alt
  3903. />
  3904. <div style="margin: 5px 0">个人评价</div>
  3905. </div>
  3906. <div
  3907. class="check"
  3908. @click="addTools(40, itemTaskIndex, toolIndex)"
  3909. >
  3910. <img
  3911. src="../../../assets/icon/checkNo.png"
  3912. alt
  3913. v-if="itemTool.tool.indexOf(40) == -1"
  3914. />
  3915. <div class="checkDiv" v-else>
  3916. <img
  3917. src="../../../assets/icon/checkedIs.png"
  3918. alt
  3919. /><span>已选择</span>
  3920. </div>
  3921. </div>
  3922. </div> -->
  3923. <div class="tool">
  3924. <div
  3925. class="whiteBIcon"
  3926. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3927. >
  3928. <img
  3929. src="../../../assets/icon/thirdToolList/select.png"
  3930. alt
  3931. />
  3932. <div style="margin: 5px 0">选择匹配</div>
  3933. </div>
  3934. <div
  3935. class="check"
  3936. @click="addTools(41, itemTaskIndex, toolIndex)"
  3937. >
  3938. <img
  3939. src="../../../assets/icon/checkNo.png"
  3940. alt
  3941. v-if="itemTool.tool.indexOf(41) == -1"
  3942. />
  3943. <div class="checkDiv" v-else>
  3944. <img
  3945. src="../../../assets/icon/checkedIs.png"
  3946. alt
  3947. /><span>已选择</span>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. <div class="tool">
  3952. <div
  3953. class="whiteBIcon"
  3954. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3955. >
  3956. <img
  3957. src="../../../assets/icon/fourthToolList/conSentences.png"
  3958. alt
  3959. />
  3960. <div style="margin: 5px 0">排序</div>
  3961. </div>
  3962. <div
  3963. class="check"
  3964. @click="addTools(47, itemTaskIndex, toolIndex)"
  3965. >
  3966. <img
  3967. src="../../../assets/icon/checkNo.png"
  3968. alt
  3969. v-if="itemTool.tool.indexOf(47) == -1"
  3970. />
  3971. <div class="checkDiv" v-else>
  3972. <img
  3973. src="../../../assets/icon/checkedIs.png"
  3974. alt
  3975. /><span>已选择</span>
  3976. </div>
  3977. </div>
  3978. </div>
  3979. <!-- <div class="tool">
  3980. <div
  3981. class="whiteBIcon"
  3982. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3983. >
  3984. <img
  3985. src="../../../assets/icon/thirdToolList/mp3.png"
  3986. alt
  3987. />
  3988. <div style="margin: 5px 0">上传音频</div>
  3989. </div>
  3990. <div
  3991. class="check"
  3992. @click="addTools(42, itemTaskIndex, toolIndex)"
  3993. >
  3994. <img
  3995. src="../../../assets/icon/checkNo.png"
  3996. alt
  3997. v-if="itemTool.tool.indexOf(42) == -1"
  3998. />
  3999. <img
  4000. src="../../../assets/icon/checkedIs.png"
  4001. alt
  4002. v-else
  4003. />
  4004. </div>
  4005. </div> -->
  4006. </div>
  4007. <div class="toolSort" v-if="itemTool.toolType == 3">
  4008. <div class="tool">
  4009. <div
  4010. class="whiteBIcon"
  4011. @click="addTools(18, itemTaskIndex, toolIndex)"
  4012. >
  4013. <img
  4014. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  4015. alt
  4016. />
  4017. <div style="margin: 5px 0">训练平台</div>
  4018. </div>
  4019. <div
  4020. class="check"
  4021. @click="addTools(18, itemTaskIndex, toolIndex)"
  4022. >
  4023. <img
  4024. src="../../../assets/icon/checkNo.png"
  4025. alt
  4026. v-if="itemTool.tool.indexOf(18) == -1"
  4027. />
  4028. <div class="checkDiv" v-else>
  4029. <img
  4030. src="../../../assets/icon/checkedIs.png"
  4031. alt
  4032. /><span>已选择</span>
  4033. </div>
  4034. </div>
  4035. </div>
  4036. <div class="tool">
  4037. <div
  4038. class="whiteBIcon"
  4039. @click="addTools(21, itemTaskIndex, toolIndex)"
  4040. >
  4041. <img
  4042. src="../../../assets/icon/fourthToolList/program.png"
  4043. alt
  4044. />
  4045. <div style="margin: 5px 0">AIoT Blockly</div>
  4046. </div>
  4047. <div
  4048. class="check"
  4049. @click="addTools(21, itemTaskIndex, toolIndex)"
  4050. >
  4051. <img
  4052. src="../../../assets/icon/checkNo.png"
  4053. alt
  4054. v-if="itemTool.tool.indexOf(21) == -1"
  4055. />
  4056. <div class="checkDiv" v-else>
  4057. <img
  4058. src="../../../assets/icon/checkedIs.png"
  4059. alt
  4060. /><span>已选择</span>
  4061. </div>
  4062. </div>
  4063. </div>
  4064. <div class="tool">
  4065. <div
  4066. class="whiteBIcon"
  4067. @click="addTools(22, itemTaskIndex, toolIndex)"
  4068. >
  4069. <img
  4070. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  4071. alt
  4072. />
  4073. <div style="margin: 5px 0">AI体验</div>
  4074. </div>
  4075. <div
  4076. class="check"
  4077. @click="addTools(22, itemTaskIndex, toolIndex)"
  4078. >
  4079. <img
  4080. src="../../../assets/icon/checkNo.png"
  4081. alt
  4082. v-if="itemTool.tool.indexOf(22) == -1"
  4083. />
  4084. <div class="checkDiv" v-else>
  4085. <img
  4086. src="../../../assets/icon/checkedIs.png"
  4087. alt
  4088. /><span>已选择</span>
  4089. </div>
  4090. </div>
  4091. </div>
  4092. <div class="tool">
  4093. <div
  4094. class="whiteBIcon"
  4095. @click="addTools(23, itemTaskIndex, toolIndex)"
  4096. >
  4097. <img
  4098. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  4099. alt
  4100. />
  4101. <div style="margin: 5px 0">AI Python</div>
  4102. </div>
  4103. <div
  4104. class="check"
  4105. @click="addTools(23, itemTaskIndex, toolIndex)"
  4106. >
  4107. <img
  4108. src="../../../assets/icon/checkNo.png"
  4109. alt
  4110. v-if="itemTool.tool.indexOf(23) == -1"
  4111. />
  4112. <div class="checkDiv" v-else>
  4113. <img
  4114. src="../../../assets/icon/checkedIs.png"
  4115. alt
  4116. /><span>已选择</span>
  4117. </div>
  4118. </div>
  4119. </div>
  4120. <div class="tool">
  4121. <div
  4122. class="whiteBIcon"
  4123. @click="addTools(24, itemTaskIndex, toolIndex)"
  4124. >
  4125. <img
  4126. src="../../../assets/icon/fourthToolList/AIprogram.png"
  4127. alt
  4128. />
  4129. <div style="margin: 5px 0">AI Blockly</div>
  4130. </div>
  4131. <div
  4132. class="check"
  4133. @click="addTools(24, itemTaskIndex, toolIndex)"
  4134. >
  4135. <img
  4136. src="../../../assets/icon/checkNo.png"
  4137. alt
  4138. v-if="itemTool.tool.indexOf(24) == -1"
  4139. />
  4140. <div class="checkDiv" v-else>
  4141. <img
  4142. src="../../../assets/icon/checkedIs.png"
  4143. alt
  4144. /><span>已选择</span>
  4145. </div>
  4146. </div>
  4147. </div>
  4148. <!-- <div class="tool">
  4149. <div
  4150. class="whiteBIcon"
  4151. @click="addTools(32, itemTaskIndex, toolIndex)"
  4152. >
  4153. <img
  4154. src="../../../assets/icon/thirdToolList/code.png"
  4155. alt
  4156. />
  4157. <div style="margin: 5px 0">源码编辑</div>
  4158. </div>
  4159. <div
  4160. class="check"
  4161. @click="addTools(32, itemTaskIndex, toolIndex)"
  4162. >
  4163. <img
  4164. src="../../../assets/icon/checkNo.png"
  4165. alt
  4166. v-if="itemTool.tool.indexOf(32) == -1"
  4167. />
  4168. <div class="checkDiv" v-else>
  4169. <img
  4170. src="../../../assets/icon/checkedIs.png"
  4171. alt
  4172. /><span>已选择</span>
  4173. </div>
  4174. </div>
  4175. </div> -->
  4176. <div class="tool">
  4177. <div
  4178. class="whiteBIcon"
  4179. @click="openTools(itemTaskIndex, 57, toolIndex)"
  4180. >
  4181. <img
  4182. src="../../../assets/icon/fourthToolList/cocopi.png"
  4183. alt
  4184. />
  4185. <div style="margin: 5px 0">CocoPi</div>
  4186. </div>
  4187. <div
  4188. class="check"
  4189. @click="addTools(57, itemTaskIndex, toolIndex)"
  4190. >
  4191. <img
  4192. src="../../../assets/icon/checkNo.png"
  4193. alt
  4194. v-if="itemTool.tool.indexOf(57) == -1"
  4195. />
  4196. <div class="checkDiv" v-else>
  4197. <img
  4198. src="../../../assets/icon/checkedIs.png"
  4199. alt
  4200. /><span>已选择</span>
  4201. </div>
  4202. </div>
  4203. </div>
  4204. <div class="tool">
  4205. <div
  4206. class="whiteBIcon"
  4207. @click="addTools(63, itemTaskIndex, toolIndex)"
  4208. >
  4209. <img
  4210. src="../../../assets/icon/fourthToolList/Wood.png"
  4211. alt
  4212. />
  4213. <div style="margin: 5px 0">海龟编程</div>
  4214. </div>
  4215. <div
  4216. class="check"
  4217. @click="addTools(63, itemTaskIndex, toolIndex)"
  4218. >
  4219. <img
  4220. src="../../../assets/icon/checkNo.png"
  4221. alt
  4222. v-if="itemTool.tool.indexOf(63) == -1"
  4223. />
  4224. <div class="checkDiv" v-else>
  4225. <img
  4226. src="../../../assets/icon/checkedIs.png"
  4227. alt
  4228. /><span>已选择</span>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div class="toolSort" v-if="itemTool.toolType == 7">
  4234. <div class="tool">
  4235. <div
  4236. class="whiteBIcon"
  4237. @click="openTools(itemTaskIndex, 40, toolIndex)"
  4238. >
  4239. <img
  4240. src="../../../assets/icon/thirdToolList/eval.png"
  4241. alt
  4242. />
  4243. <div style="margin: 5px 0">个人评价</div>
  4244. </div>
  4245. <div
  4246. class="check"
  4247. @click="addTools(40, itemTaskIndex, toolIndex)"
  4248. >
  4249. <img
  4250. src="../../../assets/icon/checkNo.png"
  4251. alt
  4252. v-if="itemTool.tool.indexOf(40) == -1"
  4253. />
  4254. <div class="checkDiv" v-else>
  4255. <img
  4256. src="../../../assets/icon/checkedIs.png"
  4257. alt
  4258. /><span>已选择</span>
  4259. </div>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. <div class="toolSort" v-if="itemTool.toolType == 5">
  4264. <div class="tool">
  4265. <div
  4266. class="whiteBIcon"
  4267. @click="addTools(28, itemTaskIndex, toolIndex)"
  4268. >
  4269. <img
  4270. src="../../../assets/icon/secondToolList/translation.png"
  4271. alt
  4272. />
  4273. <div style="margin: 5px 0">翻译</div>
  4274. </div>
  4275. <div
  4276. class="check"
  4277. @click="addTools(28, itemTaskIndex, toolIndex)"
  4278. >
  4279. <img
  4280. src="../../../assets/icon/checkNo.png"
  4281. alt
  4282. v-if="itemTool.tool.indexOf(28) == -1"
  4283. />
  4284. <div class="checkDiv" v-else>
  4285. <img
  4286. src="../../../assets/icon/checkedIs.png"
  4287. alt
  4288. /><span>已选择</span>
  4289. </div>
  4290. </div>
  4291. </div>
  4292. <div class="tool">
  4293. <div
  4294. class="whiteBIcon"
  4295. @click="addTools(37, itemTaskIndex, toolIndex)"
  4296. >
  4297. <img
  4298. src="../../../assets/icon/secondToolList/mohe.png"
  4299. alt
  4300. />
  4301. <div style="margin: 5px 0">魔盒识字</div>
  4302. </div>
  4303. <div
  4304. class="check"
  4305. @click="addTools(37, itemTaskIndex, toolIndex)"
  4306. >
  4307. <img
  4308. src="../../../assets/icon/checkNo.png"
  4309. alt
  4310. v-if="itemTool.tool.indexOf(37) == -1"
  4311. />
  4312. <div class="checkDiv" v-else>
  4313. <img
  4314. src="../../../assets/icon/checkedIs.png"
  4315. alt
  4316. /><span>已选择</span>
  4317. </div>
  4318. </div>
  4319. </div>
  4320. <div class="tool">
  4321. <div
  4322. class="whiteBIcon"
  4323. @click="addTools(38, itemTaskIndex, toolIndex)"
  4324. >
  4325. <img
  4326. src="../../../assets/icon/secondToolList/24game.png"
  4327. alt
  4328. />
  4329. <div style="margin: 5px 0">24点</div>
  4330. </div>
  4331. <div
  4332. class="check"
  4333. @click="addTools(38, itemTaskIndex, toolIndex)"
  4334. >
  4335. <img
  4336. src="../../../assets/icon/checkNo.png"
  4337. alt
  4338. v-if="itemTool.tool.indexOf(38) == -1"
  4339. />
  4340. <div class="checkDiv" v-else>
  4341. <img
  4342. src="../../../assets/icon/checkedIs.png"
  4343. alt
  4344. /><span>已选择</span>
  4345. </div>
  4346. </div>
  4347. </div>
  4348. <div class="tool">
  4349. <div
  4350. class="whiteBIcon"
  4351. @click="addTools(31, itemTaskIndex, toolIndex)"
  4352. >
  4353. <img
  4354. src="../../../assets/icon/secondToolList/networkPanel.png"
  4355. alt
  4356. />
  4357. <div style="margin: 5px 0">数学画板</div>
  4358. </div>
  4359. <div
  4360. class="check"
  4361. @click="addTools(31, itemTaskIndex, toolIndex)"
  4362. >
  4363. <img
  4364. src="../../../assets/icon/checkNo.png"
  4365. alt
  4366. v-if="itemTool.tool.indexOf(31) == -1"
  4367. />
  4368. <div class="checkDiv" v-else>
  4369. <img
  4370. src="../../../assets/icon/checkedIs.png"
  4371. alt
  4372. /><span>已选择</span>
  4373. </div>
  4374. </div>
  4375. </div>
  4376. <div class="tool">
  4377. <div
  4378. class="whiteBIcon"
  4379. @click="addTools(39, itemTaskIndex, toolIndex)"
  4380. >
  4381. <img
  4382. src="../../../assets/icon/secondToolList/GeoGebra.png"
  4383. alt
  4384. />
  4385. <div style="margin: 5px 0">GeoGebra</div>
  4386. </div>
  4387. <div
  4388. class="check"
  4389. @click="addTools(39, itemTaskIndex, toolIndex)"
  4390. >
  4391. <img
  4392. src="../../../assets/icon/checkNo.png"
  4393. alt
  4394. v-if="itemTool.tool.indexOf(39) == -1"
  4395. />
  4396. <div class="checkDiv" v-else>
  4397. <img
  4398. src="../../../assets/icon/checkedIs.png"
  4399. alt
  4400. /><span>已选择</span>
  4401. </div>
  4402. </div>
  4403. </div>
  4404. <div class="tool">
  4405. <div
  4406. class="whiteBIcon"
  4407. @click="addTools(58, itemTaskIndex, toolIndex)"
  4408. >
  4409. <img
  4410. src="../../../assets/icon/fourthToolList/car.png"
  4411. alt
  4412. />
  4413. <div style="margin: 5px 0">模拟驾驶</div>
  4414. </div>
  4415. <div
  4416. class="check"
  4417. @click="addTools(58, itemTaskIndex, toolIndex)"
  4418. >
  4419. <img
  4420. src="../../../assets/icon/checkNo.png"
  4421. alt
  4422. v-if="itemTool.tool.indexOf(58) == -1"
  4423. />
  4424. <div class="checkDiv" v-else>
  4425. <img
  4426. src="../../../assets/icon/checkedIs.png"
  4427. alt
  4428. /><span>已选择</span>
  4429. </div>
  4430. </div>
  4431. </div>
  4432. <div class="tool">
  4433. <div
  4434. class="whiteBIcon"
  4435. @click="addTools(59, itemTaskIndex, toolIndex)"
  4436. >
  4437. <img
  4438. src="../../../assets/icon/fourthToolList/lineSearch.png"
  4439. alt
  4440. />
  4441. <div style="margin: 5px 0">路径搜索</div>
  4442. </div>
  4443. <div
  4444. class="check"
  4445. @click="addTools(59, itemTaskIndex, toolIndex)"
  4446. >
  4447. <img
  4448. src="../../../assets/icon/checkNo.png"
  4449. alt
  4450. v-if="itemTool.tool.indexOf(59) == -1"
  4451. />
  4452. <div class="checkDiv" v-else>
  4453. <img
  4454. src="../../../assets/icon/checkedIs.png"
  4455. alt
  4456. /><span>已选择</span>
  4457. </div>
  4458. </div>
  4459. </div>
  4460. <div class="tool">
  4461. <div
  4462. class="whiteBIcon"
  4463. @click="addTools(60, itemTaskIndex, toolIndex)"
  4464. >
  4465. <img
  4466. src="../../../assets/icon/fourthToolList/deepLearning.png"
  4467. alt
  4468. />
  4469. <div style="margin: 5px 0">深度学习</div>
  4470. </div>
  4471. <div
  4472. class="check"
  4473. @click="addTools(60, itemTaskIndex, toolIndex)"
  4474. >
  4475. <img
  4476. src="../../../assets/icon/checkNo.png"
  4477. alt
  4478. v-if="itemTool.tool.indexOf(60) == -1"
  4479. />
  4480. <div class="checkDiv" v-else>
  4481. <img
  4482. src="../../../assets/icon/checkedIs.png"
  4483. alt
  4484. /><span>已选择</span>
  4485. </div>
  4486. </div>
  4487. </div>
  4488. <div class="tool">
  4489. <div
  4490. class="whiteBIcon"
  4491. @click="addTools(61, itemTaskIndex, toolIndex)"
  4492. >
  4493. <img
  4494. src="../../../assets/icon/fourthToolList/allHistory.png"
  4495. alt
  4496. />
  4497. <div style="margin: 5px 0">全历史</div>
  4498. </div>
  4499. <div
  4500. class="check"
  4501. @click="addTools(61, itemTaskIndex, toolIndex)"
  4502. >
  4503. <img
  4504. src="../../../assets/icon/checkNo.png"
  4505. alt
  4506. v-if="itemTool.tool.indexOf(61) == -1"
  4507. />
  4508. <div class="checkDiv" v-else>
  4509. <img
  4510. src="../../../assets/icon/checkedIs.png"
  4511. alt
  4512. /><span>已选择</span>
  4513. </div>
  4514. </div>
  4515. </div>
  4516. </div>
  4517. <div class="toolSort" v-if="itemTool.toolType == 4">
  4518. <div class="tool">
  4519. <div
  4520. class="whiteBIcon"
  4521. @click="addTools(26, itemTaskIndex, toolIndex)"
  4522. >
  4523. <img
  4524. src="../../../assets/icon/thirdToolList/courseDesign.png"
  4525. alt
  4526. />
  4527. <div style="margin: 5px 0">课程设计</div>
  4528. </div>
  4529. <div
  4530. class="check"
  4531. @click="addTools(26, itemTaskIndex, toolIndex)"
  4532. >
  4533. <img
  4534. src="../../../assets/icon/checkNo.png"
  4535. alt
  4536. v-if="itemTool.tool.indexOf(26) == -1"
  4537. />
  4538. <div class="checkDiv" v-else>
  4539. <img
  4540. src="../../../assets/icon/checkedIs.png"
  4541. alt
  4542. /><span>已选择</span>
  4543. </div>
  4544. </div>
  4545. </div>
  4546. <div class="tool">
  4547. <div
  4548. class="whiteBIcon"
  4549. @click="addTools(25, itemTaskIndex, toolIndex)"
  4550. >
  4551. <img
  4552. src="../../../assets/icon/thirdToolList/evalua.png"
  4553. alt
  4554. />
  4555. <div style="margin: 5px 0">目标管理</div>
  4556. </div>
  4557. <div
  4558. class="check"
  4559. @click="addTools(25, itemTaskIndex, toolIndex)"
  4560. >
  4561. <img
  4562. src="../../../assets/icon/checkNo.png"
  4563. alt
  4564. v-if="itemTool.tool.indexOf(25) == -1"
  4565. />
  4566. <div class="checkDiv" v-else>
  4567. <img
  4568. src="../../../assets/icon/checkedIs.png"
  4569. alt
  4570. /><span>已选择</span>
  4571. </div>
  4572. </div>
  4573. </div>
  4574. <!-- <div class="tool">
  4575. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  4576. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  4577. <div style="margin: 5px 0">汉字宫</div>
  4578. </div>
  4579. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  4580. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  4581. <div class="checkDiv" v-else>
  4582. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4583. </div>
  4584. </div>
  4585. </div> -->
  4586. </div>
  4587. </div>
  4588. </div>
  4589. <div
  4590. class="addToolFun"
  4591. @click="addToolFun(itemTaskIndex)"
  4592. >
  4593. <div class="addToolImg">
  4594. <img src="../../../assets/icon/add.png" alt />
  4595. </div>
  4596. <div>添加工具</div>
  4597. </div>
  4598. </div>
  4599. </div>
  4600. <div
  4601. v-else-if="
  4602. unitJson[unitIndex].easy == 2 ||
  4603. unitJson[unitIndex].easy == 4
  4604. "
  4605. class="toolChoose"
  4606. style="padding: 0 0 0 30px"
  4607. >
  4608. <div class="tools">
  4609. <div
  4610. class="leftTools"
  4611. style="width: 95%"
  4612. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4613. :key="toolIndex"
  4614. >
  4615. <div>
  4616. <textarea
  4617. rows="3"
  4618. type="text"
  4619. placeholder="添加工具描述"
  4620. class="binfo_input"
  4621. style="margin: 0 0 20px 0; width: 71.5% !important"
  4622. v-model="itemTool.toolDetail"
  4623. ></textarea>
  4624. </div>
  4625. <div
  4626. style="
  4627. display: flex;
  4628. flex-direction: row;
  4629. align-items: baseline;
  4630. flex-wrap: nowrap;
  4631. justify-content: flex-start;
  4632. position: relative;
  4633. "
  4634. >
  4635. <div style="margin-right: 20px; font-weight: bold">
  4636. 步骤 {{ toolIndex + 1 }} :
  4637. </div>
  4638. <div
  4639. class="remove"
  4640. @click="deleteTool(itemTaskIndex, toolIndex)"
  4641. v-if="itemTask.toolChoose.length > 1"
  4642. style="position: absolute; right: 55px"
  4643. ></div>
  4644. </div>
  4645. <div style="min-height: 163px">
  4646. <div class="toolSort">
  4647. <div class="tool">
  4648. <div
  4649. class="whiteBIcon"
  4650. @click="openTools(itemTaskIndex, 1, toolIndex)"
  4651. >
  4652. <img
  4653. src="../../../assets/icon/secondToolList/whiteBoard.png"
  4654. alt
  4655. />
  4656. <div style="margin: 5px 0">电子白板</div>
  4657. </div>
  4658. <div
  4659. class="check"
  4660. @click="addTools(1, itemTaskIndex, toolIndex)"
  4661. >
  4662. <img
  4663. src="../../../assets/icon/checkNo.png"
  4664. alt
  4665. v-if="itemTool.tool.indexOf(1) == -1"
  4666. />
  4667. <div class="checkDiv" v-else>
  4668. <img
  4669. src="../../../assets/icon/checkedIs.png"
  4670. alt
  4671. /><span>已选择</span>
  4672. </div>
  4673. </div>
  4674. </div>
  4675. <div class="tool">
  4676. <div
  4677. class="whiteBIcon"
  4678. @click="openTools(itemTaskIndex, 52, toolIndex)"
  4679. >
  4680. <img
  4681. src="../../../assets/icon/fourthToolList/text.png"
  4682. alt
  4683. />
  4684. <div style="margin: 5px 0">文档</div>
  4685. </div>
  4686. <div
  4687. class="check"
  4688. @click="addTools(52, itemTaskIndex, toolIndex)"
  4689. >
  4690. <img
  4691. src="../../../assets/icon/checkNo.png"
  4692. alt
  4693. v-if="itemTool.tool.indexOf(52) == -1"
  4694. />
  4695. <div class="checkDiv" v-else>
  4696. <img
  4697. src="../../../assets/icon/checkedIs.png"
  4698. alt
  4699. /><span>已选择</span>
  4700. </div>
  4701. </div>
  4702. </div>
  4703. <div class="tool">
  4704. <div
  4705. class="whiteBIcon"
  4706. @click="openTools(itemTaskIndex, 3, toolIndex)"
  4707. >
  4708. <img
  4709. src="../../../assets/icon/secondToolList/mindMapping.png"
  4710. alt
  4711. />
  4712. <div style="margin: 5px 0">思维导图</div>
  4713. </div>
  4714. <div
  4715. class="check"
  4716. @click="addTools(3, itemTaskIndex, toolIndex)"
  4717. >
  4718. <img
  4719. src="../../../assets/icon/checkNo.png"
  4720. alt
  4721. v-if="itemTool.tool.indexOf(3) == -1"
  4722. />
  4723. <div class="checkDiv" v-else>
  4724. <img
  4725. src="../../../assets/icon/checkedIs.png"
  4726. alt
  4727. /><span>已选择</span>
  4728. </div>
  4729. </div>
  4730. </div>
  4731. <div class="tool">
  4732. <div
  4733. class="whiteBIcon"
  4734. @click="openTools(itemTaskIndex, 4, toolIndex)"
  4735. >
  4736. <img
  4737. src="../../../assets/icon/thirdToolList/ask.png"
  4738. alt
  4739. />
  4740. <div style="margin: 5px 0">问卷调查</div>
  4741. </div>
  4742. <div
  4743. class="check"
  4744. @click="addTools(4, itemTaskIndex, toolIndex)"
  4745. >
  4746. <img
  4747. src="../../../assets/icon/checkNo.png"
  4748. alt
  4749. v-if="itemTool.tool.indexOf(4) == -1"
  4750. />
  4751. <div class="checkDiv" v-else>
  4752. <img
  4753. src="../../../assets/icon/checkedIs.png"
  4754. alt
  4755. /><span>已选择</span>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. <div class="tool">
  4760. <div
  4761. class="whiteBIcon"
  4762. @click="openTools(itemTaskIndex, 45, toolIndex)"
  4763. >
  4764. <img
  4765. src="../../../assets/icon/thirdToolList/choose.png"
  4766. alt
  4767. />
  4768. <div style="margin: 5px 0">选择题</div>
  4769. </div>
  4770. <div
  4771. class="check"
  4772. @click="addTools(45, itemTaskIndex, toolIndex)"
  4773. >
  4774. <img
  4775. src="../../../assets/icon/checkNo.png"
  4776. alt
  4777. v-if="itemTool.tool.indexOf(45) == -1"
  4778. />
  4779. <div class="checkDiv" v-else>
  4780. <img
  4781. src="../../../assets/icon/checkedIs.png"
  4782. alt
  4783. /><span>已选择</span>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. <div class="tool">
  4788. <div
  4789. class="whiteBIcon"
  4790. @click="openTools(itemTaskIndex, 15, toolIndex)"
  4791. >
  4792. <img
  4793. src="../../../assets/icon/thirdToolList/answer.png"
  4794. alt
  4795. />
  4796. <div style="margin: 5px 0">问答</div>
  4797. </div>
  4798. <div
  4799. class="check"
  4800. @click="addTools(15, itemTaskIndex, toolIndex)"
  4801. >
  4802. <img
  4803. src="../../../assets/icon/checkNo.png"
  4804. alt
  4805. v-if="itemTool.tool.indexOf(15) == -1"
  4806. />
  4807. <div class="checkDiv" v-else>
  4808. <img
  4809. src="../../../assets/icon/checkedIs.png"
  4810. alt
  4811. /><span>已选择</span>
  4812. </div>
  4813. </div>
  4814. </div>
  4815. <div class="tool">
  4816. <div
  4817. class="whiteBIcon"
  4818. @click="addTools(16, itemTaskIndex, toolIndex)"
  4819. >
  4820. <img
  4821. src="../../../assets/icon/thirdToolList/work.png"
  4822. alt
  4823. />
  4824. <div style="margin: 5px 0">作业提交</div>
  4825. </div>
  4826. <div
  4827. class="check"
  4828. @click="addTools(16, itemTaskIndex, toolIndex)"
  4829. >
  4830. <img
  4831. src="../../../assets/icon/checkNo.png"
  4832. alt
  4833. v-if="itemTool.tool.indexOf(16) == -1"
  4834. />
  4835. <div class="checkDiv" v-else>
  4836. <img
  4837. src="../../../assets/icon/checkedIs.png"
  4838. alt
  4839. /><span>已选择</span>
  4840. </div>
  4841. </div>
  4842. </div>
  4843. <div class="tool">
  4844. <div
  4845. class="whiteBIcon"
  4846. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4847. >
  4848. <img
  4849. src="../../../assets/icon/thirdToolList/plwork.png"
  4850. alt
  4851. />
  4852. <div style="margin: 5px 0">批量上传</div>
  4853. </div>
  4854. <div
  4855. class="check"
  4856. @click="addTools(50, itemTaskIndex, toolIndex)"
  4857. >
  4858. <img
  4859. src="../../../assets/icon/checkNo.png"
  4860. alt
  4861. v-if="itemTool.tool.indexOf(50) == -1"
  4862. />
  4863. <div class="checkDiv" v-else>
  4864. <img
  4865. src="../../../assets/icon/checkedIs.png"
  4866. alt
  4867. /><span>已选择</span>
  4868. </div>
  4869. </div>
  4870. </div>
  4871. <div class="tool">
  4872. <div
  4873. class="whiteBIcon"
  4874. @click="openTools(itemTaskIndex, 41, toolIndex)"
  4875. >
  4876. <img
  4877. src="../../../assets/icon/thirdToolList/select.png"
  4878. alt
  4879. />
  4880. <div style="margin: 5px 0">选择匹配</div>
  4881. </div>
  4882. <div
  4883. class="check"
  4884. @click="addTools(41, itemTaskIndex, toolIndex)"
  4885. >
  4886. <img
  4887. src="../../../assets/icon/checkNo.png"
  4888. alt
  4889. v-if="itemTool.tool.indexOf(41) == -1"
  4890. />
  4891. <div class="checkDiv" v-else>
  4892. <img
  4893. src="../../../assets/icon/checkedIs.png"
  4894. alt
  4895. /><span>已选择</span>
  4896. </div>
  4897. </div>
  4898. </div>
  4899. <div class="tool">
  4900. <div
  4901. class="whiteBIcon"
  4902. @click="openTools(itemTaskIndex, 47, toolIndex)"
  4903. >
  4904. <img
  4905. src="../../../assets/icon/fourthToolList/conSentences.png"
  4906. alt
  4907. />
  4908. <div style="margin: 5px 0">排序</div>
  4909. </div>
  4910. <div
  4911. class="check"
  4912. @click="addTools(47, itemTaskIndex, toolIndex)"
  4913. >
  4914. <img
  4915. src="../../../assets/icon/checkNo.png"
  4916. alt
  4917. v-if="itemTool.tool.indexOf(47) == -1"
  4918. />
  4919. <div class="checkDiv" v-else>
  4920. <img
  4921. src="../../../assets/icon/checkedIs.png"
  4922. alt
  4923. /><span>已选择</span>
  4924. </div>
  4925. </div>
  4926. </div>
  4927. <div class="tool">
  4928. <div
  4929. class="whiteBIcon"
  4930. @click="openTools(itemTaskIndex, 48, toolIndex)"
  4931. >
  4932. <img
  4933. src="../../../assets/icon/fourthToolList/table.png"
  4934. alt
  4935. />
  4936. <div style="margin: 5px 0">表格</div>
  4937. </div>
  4938. <div
  4939. class="check"
  4940. @click="addTools(48, itemTaskIndex, toolIndex)"
  4941. >
  4942. <img
  4943. src="../../../assets/icon/checkNo.png"
  4944. alt
  4945. v-if="itemTool.tool.indexOf(48) == -1"
  4946. />
  4947. <div class="checkDiv" v-else>
  4948. <img
  4949. src="../../../assets/icon/checkedIs.png"
  4950. alt
  4951. /><span>已选择</span>
  4952. </div>
  4953. </div>
  4954. </div>
  4955. </div>
  4956. </div>
  4957. </div>
  4958. <div
  4959. class="addToolFun"
  4960. style="margin-bottom: 20px"
  4961. @click="addToolFun(itemTaskIndex)"
  4962. >
  4963. <div class="addToolImg">
  4964. <img src="../../../assets/icon/add.png" alt />
  4965. </div>
  4966. <div>添加工具</div>
  4967. </div>
  4968. </div>
  4969. </div>
  4970. <div
  4971. v-else-if="
  4972. unitJson[unitIndex].easy == 1 ||
  4973. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  4974. "
  4975. class="toolChoose"
  4976. style="padding: 0 0 0 30px"
  4977. >
  4978. <div class="tools">
  4979. <div
  4980. class="leftTools"
  4981. style="
  4982. width: 95%;
  4983. padding: 0 0 15px 0;
  4984. margin-bottom: 15px;
  4985. "
  4986. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  4987. :key="toolIndex"
  4988. >
  4989. <div style="min-height: 163px">
  4990. <div class="toolSort">
  4991. <div class="tool">
  4992. <div
  4993. class="whiteBIcon"
  4994. @click="openTools(itemTaskIndex, 50, toolIndex)"
  4995. >
  4996. <img
  4997. src="../../../assets/icon/thirdToolList/plwork.png"
  4998. alt
  4999. />
  5000. <div style="margin: 5px 0">批量上传</div>
  5001. </div>
  5002. <div
  5003. class="check"
  5004. @click="addTools(50, itemTaskIndex, toolIndex)"
  5005. >
  5006. <img
  5007. src="../../../assets/icon/checkNo.png"
  5008. alt
  5009. v-if="itemTool.tool.indexOf(50) == -1"
  5010. />
  5011. <div class="checkDiv" v-else>
  5012. <img
  5013. src="../../../assets/icon/checkedIs.png"
  5014. alt
  5015. /><span>已选择</span>
  5016. </div>
  5017. </div>
  5018. </div>
  5019. </div>
  5020. </div>
  5021. </div>
  5022. </div>
  5023. </div>
  5024. <div
  5025. class="elist_css"
  5026. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  5027. >
  5028. <div class="elist_title">
  5029. <div
  5030. style="
  5031. display: flex;
  5032. flex-direction: row;
  5033. align-items: center;
  5034. margin-bottom: 20px;
  5035. "
  5036. >
  5037. <div class="lineTitle">评价设置</div>
  5038. </div>
  5039. </div>
  5040. <div class="mbCss">
  5041. <div class="pjCss">
  5042. <div
  5043. v-if="itemTask.eList && itemTask.eList.length"
  5044. class="elist_input"
  5045. >
  5046. <div
  5047. v-for="(eItem, eIndex) in itemTask.eList"
  5048. :key="eIndex"
  5049. class="elist_input_box"
  5050. >
  5051. <span>评价名称:</span>
  5052. <input
  5053. type="input"
  5054. v-model="itemTask.eList[eIndex].value"
  5055. placeholder="填写评价名称"
  5056. />
  5057. <span>评星等级:</span>
  5058. <el-rate
  5059. v-model="itemTask.eList[eIndex].score"
  5060. @change="setEListStar()"
  5061. disabled
  5062. ></el-rate>
  5063. <div
  5064. class="remove"
  5065. @click="
  5066. deletEList(unitIndex, itemTaskIndex, eIndex)
  5067. "
  5068. ></div>
  5069. <div class="elist_inptu_text">
  5070. <span>评价描述:</span>
  5071. <input
  5072. type="input"
  5073. v-model="itemTask.eList[eIndex].detail"
  5074. placeholder="填写评价描述"
  5075. />
  5076. </div>
  5077. <div class="elist_inptu_text" v-if="evalua">
  5078. <span>目标:</span>
  5079. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  5080. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  5081. @change="forceUpdate()">
  5082. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  5083. :value="e.name">
  5084. </el-option>
  5085. </el-select> -->
  5086. <el-cascader
  5087. :options="targetArray"
  5088. v-model="itemTask.eList[eIndex].target"
  5089. :props="{ checkStrictly: true }"
  5090. :show-all-levels="false"
  5091. clearable
  5092. ></el-cascader>
  5093. </div>
  5094. </div>
  5095. </div>
  5096. <div
  5097. class="addToolFun"
  5098. @click="addEList(unitIndex, itemTaskIndex)"
  5099. style="margin: 35px 35px 0 0"
  5100. >
  5101. <div class="addToolImg">
  5102. <img src="../../../assets/icon/add.png" alt />
  5103. </div>
  5104. <div>添加</div>
  5105. </div>
  5106. </div>
  5107. <div
  5108. v-if="evalua"
  5109. style="
  5110. border: 1px solid #e5e5e5;
  5111. width: 55%;
  5112. margin-top: 20px;
  5113. box-shadow: 3px 1px 15px 3px #e0e0e0;
  5114. "
  5115. class="evaCss"
  5116. >
  5117. <div class="e_add_top">
  5118. <div class="e_add_title">
  5119. <span>当前使用目标管理</span>
  5120. <span>{{ eTitle }}</span>
  5121. <img
  5122. src="../../../assets/line.png"
  5123. class="cru_line"
  5124. style="
  5125. width: 125px;
  5126. height: 20px;
  5127. bottom: -10px;
  5128. left: 155px;
  5129. "
  5130. />
  5131. </div>
  5132. </div>
  5133. <div class="e_add_content" style="width: 100%">
  5134. <div class="e_add_list_pbox" style="width: 100%">
  5135. <div class="e_add_list_pbox_title">
  5136. <span class="type_title">切换模式</span>
  5137. <div class="type_content">
  5138. <span
  5139. :class="{ active: typeMode == 1 }"
  5140. @click="OtherMb(1)"
  5141. >目标树</span
  5142. >
  5143. <span
  5144. :class="{ active: typeMode == 2 }"
  5145. @click="OtherMb(2)"
  5146. >目标罗盘</span
  5147. >
  5148. <span
  5149. :class="{ active: typeMode == 3 }"
  5150. @click="OtherMb(3)"
  5151. >目标看板</span
  5152. >
  5153. </div>
  5154. </div>
  5155. <div class="e_add_list_pbox_content">
  5156. <Mind
  5157. :showBar="false"
  5158. :mindData="data"
  5159. style="width: 100%"
  5160. :jsmindId="
  5161. unitIndex + '-' + itemTaskIndex + 'mind'
  5162. "
  5163. v-if="typeMode == 1"
  5164. ></Mind>
  5165. <Sunburst
  5166. :Josn="eJson"
  5167. :num="eJSONNum"
  5168. style="width: 100%"
  5169. v-if="typeMode == 2"
  5170. >
  5171. </Sunburst>
  5172. <SeeBoard
  5173. :Josn="eJson"
  5174. :num="eJSONNum"
  5175. :ename="eTitle"
  5176. style="width: 100%"
  5177. v-if="typeMode == 3"
  5178. ></SeeBoard>
  5179. </div>
  5180. </div>
  5181. </div>
  5182. </div>
  5183. </div>
  5184. </div>
  5185. <div class="funBlock" style="padding: 0">
  5186. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  5187. <div>折叠</div>
  5188. <div class="arrow">
  5189. <img src="../../../assets/icon/fold.png" alt />
  5190. </div>
  5191. </div>
  5192. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  5193. <div>展开</div>
  5194. <div class="arrow">
  5195. <img src="../../../assets/icon/expand.png" alt />
  5196. </div>
  5197. </div>
  5198. </div>
  5199. </div>
  5200. <div
  5201. class="addTaskBorder"
  5202. @click="addTaskBorder"
  5203. v-if="!unitJson[unitIndex].easy"
  5204. >
  5205. <div>
  5206. <img src="../../../assets/icon/addHw.png" alt />
  5207. <span>添加任务</span>
  5208. </div>
  5209. </div>
  5210. </div>
  5211. </div>
  5212. </div>
  5213. <div class="rightBox" v-if="this.steps == 4">
  5214. <div class="basic_box_success">
  5215. <div class="right_img">
  5216. <img src="../../../assets/icon/right.png" alt />
  5217. </div>
  5218. <div style="font-weight: bold">成功</div>
  5219. <!-- <div>您的课程编号</div>
  5220. <div class="number">{{ number }}</div>-->
  5221. <!-- <div class="success_button">
  5222. <div class="look_course" @click="isNoFinsh">
  5223. 邀请老师协同编辑
  5224. </div>
  5225. <div class="attend_others" @click="goCourse">预览课程</div>
  5226. </div> -->
  5227. </div>
  5228. </div>
  5229. <div :class="{info_btnBox:isBtnDisplay,info_btnBox2:!isBtnDisplay}" @mouseenter="btnDisplay(true)" @mouseleave="btnDisplay(false)" v-if="false">
  5230. <button
  5231. v-if="isBtnDisplay"
  5232. class="c_pub_button_return pub_btn_return_img"
  5233. @click="lastSteps"
  5234. >
  5235. 返回课程
  5236. </button>
  5237. <button v-if="isBtnDisplay" class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  5238. 确认上传
  5239. </button>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. </div>
  5244. <el-dialog
  5245. title="提示"
  5246. :visible.sync="dialogVisible"
  5247. :append-to-body="true"
  5248. width="25%"
  5249. :before-close="handleClose"
  5250. class="dialog_diy2 customWidth"
  5251. >
  5252. <div>请复制该链接邀请协同编辑</div>
  5253. <div>http://www.boomyon.com/index-zhang.com</div>
  5254. <span slot="footer" class="dialog-footer">
  5255. <el-button type="primary">复制链接分享</el-button>
  5256. <el-button @click="dialogVisible = false">取消</el-button>
  5257. </span>
  5258. </el-dialog>
  5259. <el-dialog
  5260. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  5261. :visible.sync="dialogVisible1"
  5262. :append-to-body="true"
  5263. width="25%"
  5264. :before-close="handleClose"
  5265. class="dialog_diy2 customWidth"
  5266. >
  5267. <el-form>
  5268. <el-form-item label="文档标题">
  5269. <el-input
  5270. v-model="tTitle"
  5271. auto-complete="off"
  5272. placeholder="请输入文档标题名..."
  5273. ></el-input>
  5274. </el-form-item>
  5275. <div>文档简介</div>
  5276. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  5277. </el-form>
  5278. <span slot="footer" class="dialog-footer">
  5279. <el-button @click="dialogVisible1 = false">取 消</el-button>
  5280. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  5281. >添加</el-button
  5282. >
  5283. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  5284. </span>
  5285. </el-dialog>
  5286. <el-dialog
  5287. title="添加文档"
  5288. :visible.sync="dialogVisible2"
  5289. :append-to-body="true"
  5290. width="500px"
  5291. :before-close="handleClose"
  5292. class="dialog_diy"
  5293. >
  5294. <el-form>
  5295. <el-form-item label="文档标题">
  5296. <el-input
  5297. v-model="templateC.title"
  5298. auto-complete="off"
  5299. placeholder="请输入文档标题名..."
  5300. ></el-input>
  5301. </el-form-item>
  5302. <div>文档内容</div>
  5303. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  5304. </el-form>
  5305. <span slot="footer" class="dialog-footer">
  5306. <el-button @click="clearChoose">取 消</el-button>
  5307. <el-button type="primary" @click="wordNext()">确定</el-button>
  5308. </span>
  5309. </el-dialog>
  5310. <el-dialog
  5311. title="添加富文本"
  5312. :visible.sync="dialogVisible6"
  5313. :append-to-body="true"
  5314. width="500px"
  5315. :before-close="handleClose"
  5316. class="dialog_diy"
  5317. >
  5318. <el-form>
  5319. <el-form-item label="文本标题">
  5320. <el-input
  5321. ref="fuInput"
  5322. v-model="AttText.title"
  5323. auto-complete="off"
  5324. @input="change2"
  5325. placeholder="请输入文本标题..."
  5326. ></el-input>
  5327. </el-form-item>
  5328. <!-- <div>富文本内容</div> -->
  5329. <editor-bar
  5330. v-model="AttText.text"
  5331. @change="change"
  5332. v-if="dialogVisible6"
  5333. ></editor-bar>
  5334. </el-form>
  5335. <span slot="footer" class="dialog-footer">
  5336. <el-button @click="clearAttText">取 消</el-button>
  5337. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  5338. </span>
  5339. </el-dialog>
  5340. <el-dialog
  5341. title="添加链接"
  5342. :visible.sync="dialogVisible7"
  5343. :append-to-body="true"
  5344. width="500px"
  5345. :before-close="handleClose"
  5346. class="dialog_diy lineCss"
  5347. >
  5348. <el-form>
  5349. <el-form-item label="标题" :label-width="formLabelWidth">
  5350. <span>
  5351. <el-input
  5352. placeholder="请输入链接标题"
  5353. clearable
  5354. v-model="lineTitle"
  5355. class="add_input"
  5356. ></el-input>
  5357. </span>
  5358. </el-form-item>
  5359. <el-form-item label="链接" :label-width="formLabelWidth">
  5360. <span>
  5361. <el-input
  5362. placeholder="请输入链接"
  5363. clearable
  5364. v-model="line"
  5365. class="add_input"
  5366. ></el-input>
  5367. </span>
  5368. </el-form-item>
  5369. </el-form>
  5370. <span slot="footer" class="dialog-footer">
  5371. <el-button @click="clearLine">取 消</el-button>
  5372. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  5373. </span>
  5374. </el-dialog>
  5375. <el-dialog
  5376. :title="updateSourcePan ? '修改资源' : '添加资源'"
  5377. :visible.sync="dialogVisibleSource"
  5378. :append-to-body="true"
  5379. width="100%"
  5380. :before-close="handleClose"
  5381. class="dialog_diy source_diy"
  5382. >
  5383. <div>
  5384. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  5385. </div>
  5386. <span slot="footer" class="dialog-footer">
  5387. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  5388. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  5389. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  5390. </span>
  5391. </el-dialog>
  5392. <el-dialog
  5393. title="添加课程成员"
  5394. :visible.sync="dialogVisible3"
  5395. :append-to-body="true"
  5396. width="25%"
  5397. height="80%"
  5398. :before-close="handleClose"
  5399. class="addNewPP customWidth"
  5400. >
  5401. <div class="people">
  5402. <div class="people_top">
  5403. <div class="people_nav">选择成员</div>
  5404. <div class="people_top_right">
  5405. <div class="people_search">
  5406. <el-input
  5407. style="height: 100%"
  5408. placeholder="搜索成员名称"
  5409. v-model="searchPeople"
  5410. ></el-input>
  5411. <div class="search_img" @click="searchStudent">
  5412. <img src="../../../assets/icon/search.png" alt />
  5413. </div>
  5414. </div>
  5415. </div>
  5416. </div>
  5417. <el-checkbox-group v-model="checkboxList" class="people_name">
  5418. <el-checkbox
  5419. v-for="item in studentJuri"
  5420. :key="item.userid"
  5421. :label="item.userid"
  5422. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  5423. >
  5424. </el-checkbox-group>
  5425. </div>
  5426. <span slot="footer" class="dialog-footer">
  5427. <el-button @click="dialogVisible3 = false">取 消</el-button>
  5428. <el-button type="primary" @click="isAddPP">确定</el-button>
  5429. </span>
  5430. </el-dialog>
  5431. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  5432. :before-close="handleClose" class="addNewPP2">
  5433. <div class="check_classBox">
  5434. <div class="check_class_right">
  5435. <div class="check_class" :class="{activeX:gradeId == ''}" @click="gradeId = '',getClass()">
  5436. 全部
  5437. </div>
  5438. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  5439. <div class="check_class" :class="{activeX:gradeId == item.id}" @click="gradeId = item.id,getClass()">
  5440. {{ item.name }}
  5441. </div>
  5442. </el-tooltip>
  5443. </div>
  5444. <div class="check_class_left">
  5445. <div class="check_class_left_title">选择班级</div>
  5446. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange"
  5447. v-if="grade2.length">
  5448. <div v-for="item in grade2" :key="item.id" class="class_item">
  5449. <el-checkbox :label="item.id">
  5450. {{ item.name }}
  5451. </el-checkbox>
  5452. </div>
  5453. </el-checkbox-group>
  5454. <div v-if="!grade2.length">暂无数据</div>
  5455. </div>
  5456. </div>
  5457. <span slot="footer" class="dialog-footer">
  5458. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  5459. <el-button type="primary" @click="isAddClass">确定</el-button>
  5460. </span>
  5461. </el-dialog>
  5462. <el-dialog
  5463. title="添加协同成员"
  5464. :visible.sync="dialogVisibleMember"
  5465. :append-to-body="true"
  5466. width="25%"
  5467. height="80%"
  5468. :before-close="handleClose"
  5469. class="addNewPP customWidth"
  5470. >
  5471. <div class="people">
  5472. <div class="people_top">
  5473. <div class="people_top_right">
  5474. <div class="people_search">
  5475. <el-input
  5476. placeholder="搜索成员名称"
  5477. v-model="searchTN"
  5478. @keyup.enter.native="getTeacher"
  5479. ></el-input>
  5480. <div class="search_img" @click="getTeacher">
  5481. <img src="../../../assets/icon/search.png" alt />
  5482. </div>
  5483. </div>
  5484. </div>
  5485. <div class="people_nav">选择成员</div>
  5486. </div>
  5487. <el-checkbox-group
  5488. v-model="checkboxList3"
  5489. class="people_name"
  5490. v-if="teacherJuri.length"
  5491. >
  5492. <el-checkbox
  5493. v-for="item in teacherJuri"
  5494. :key="item.userid"
  5495. :label="item.userid"
  5496. >
  5497. <div class="t_j_box">
  5498. <el-tooltip
  5499. placement="top"
  5500. :content="item.name ? item.name : '暂无姓名'"
  5501. >
  5502. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  5503. </el-tooltip>
  5504. <el-tooltip placement="top" :content="item.username">
  5505. <span>{{ item.username }}</span>
  5506. </el-tooltip>
  5507. <el-tooltip placement="top" :content="item.school">
  5508. <span>{{ item.school }}</span>
  5509. </el-tooltip>
  5510. </div>
  5511. </el-checkbox>
  5512. </el-checkbox-group>
  5513. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  5514. </div>
  5515. <span slot="footer" class="dialog-footer">
  5516. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  5517. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  5518. </span>
  5519. </el-dialog>
  5520. <el-dialog
  5521. title="创建问卷"
  5522. :visible.sync="dialogVisible5"
  5523. :append-to-body="true"
  5524. width="800px"
  5525. :before-close="(done)=>{closePan(4)}"
  5526. class="dialog_diy fullStyle"
  5527. >
  5528. <div style="height:100%">
  5529. <div
  5530. class="a_add_title"
  5531. style="
  5532. display: flex;
  5533. flex-direction: row;
  5534. align-items: center;
  5535. justify-content: center;
  5536. "
  5537. >
  5538. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  5539. <el-input
  5540. v-model="askJson.askTitle"
  5541. placeholder="请输入标题"
  5542. style="width: 400px"
  5543. ></el-input>
  5544. </div>
  5545. <div class="a_addBox" style="height:calc(100% - 50px)">
  5546. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  5547. <div
  5548. class="a_add_box"
  5549. v-for="(item1, index1) in askJson.askCount"
  5550. :key="index1"
  5551. >
  5552. <div class="a_add_checkType">
  5553. <span
  5554. :class="{
  5555. active:
  5556. askJson.askJson[index1].type == '1' ||
  5557. !askJson.askJson[index1].type,
  5558. }"
  5559. @click="checkAskType('1', askJson.askJson[index1])"
  5560. >单选题</span
  5561. >
  5562. <span
  5563. :class="{ active: askJson.askJson[index1].type == '2' }"
  5564. @click="checkAskType('2', askJson.askJson[index1])"
  5565. >多选题</span
  5566. >
  5567. </div>
  5568. <div class="a_add_head">
  5569. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  5570. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  5571. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  5572. " placeholder="请输入题目" @change="()=>{$forceUpdate()}"></textarea>
  5573. </div>
  5574. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  5575. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  5576. </div>
  5577. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  5578. </div>
  5579. <div class="a_add_head_div">
  5580. <el-button
  5581. type="primary"
  5582. size="small"
  5583. @click="deleteAskList(index1)"
  5584. v-if="askJson.askCount != 1"
  5585. >删除
  5586. </el-button>
  5587. <el-button type="primary" size="small" @click="addAskList(index1)"
  5588. >添加</el-button
  5589. >
  5590. </div>
  5591. </div>
  5592. <div class="a_add_body">
  5593. <div class="a_add_input" style="flex-direction: column;">
  5594. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex" style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  5595. <div style="margin-right: 10px">
  5596. 选项{{ checkIndex + 1 }}
  5597. </div>
  5598. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  5599. " placeholder="请输入选项" style="width: 300px;" @change="()=>{$forceUpdate()}"></textarea>
  5600. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  5601. <div class="chapter_upload_up" @click.stop="checkMove(1, index1,checkIndex)">
  5602. </div>
  5603. <div class="chapter_upload_down" @click.stop="checkMove(2, index1,checkIndex)"></div>
  5604. </div>
  5605. <div class="a_add_body_div">
  5606. <el-button type="primary" size="small" @click="addcheckList(askJson.askJson[index1],checkIndex)">添加</el-button>
  5607. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1],checkIndex)" v-if="askJson.askJson[index1].askItem != 1">删除
  5608. </el-button>
  5609. </div>
  5610. </div>
  5611. </div>
  5612. <!-- <div class="a_add_body_div">
  5613. <el-button
  5614. style="margin: 10px 0px 0 0"
  5615. type="primary"
  5616. size="small"
  5617. @click="addcheckList(askJson.askJson[index1])"
  5618. >添加</el-button
  5619. >
  5620. <el-button
  5621. type="primary"
  5622. size="small"
  5623. style="margin: 10px 0 0 10px"
  5624. @click="deletecheckList(askJson.askJson[index1])"
  5625. v-if="askJson.askJson[index1].askItem != 1"
  5626. >删除
  5627. </el-button>
  5628. </div> -->
  5629. </div>
  5630. </div>
  5631. </div>
  5632. </div>
  5633. <span slot="footer" class="dialog-footer">
  5634. <el-button @click="closePan(4)">取 消</el-button>
  5635. <el-button type="primary" @click="addAsk">确 定</el-button>
  5636. </span>
  5637. </el-dialog>
  5638. <el-dialog
  5639. title="创建选择题"
  5640. :visible.sync="dialogVisibleChoice"
  5641. :append-to-body="true"
  5642. width="800px"
  5643. :before-close="(done)=>{closePan(45)}"
  5644. class="dialog_diy fullStyle"
  5645. >
  5646. <div style="height:100%">
  5647. <!-- <div class="a_add_title" style="
  5648. display: flex;
  5649. flex-direction: row;
  5650. align-items: center;
  5651. justify-content: center;
  5652. ">
  5653. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  5654. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  5655. </div> -->
  5656. <div class="a_addBox" style="height:100%">
  5657. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  5658. <!-- 请输入题目内容 -->
  5659. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px" v-if="isPasteChoice">智能粘贴</button>
  5660. </div>
  5661. <div
  5662. class="a_add_box"
  5663. v-for="(item1, index1) in testJson.testCount"
  5664. :key="index1"
  5665. >
  5666. <div class="a_add_checkType">
  5667. <span
  5668. :class="{ active: testJson.testJson[index1].type == '1' }"
  5669. @click="checkTestType('1', testJson.testJson[index1])"
  5670. >单选题</span
  5671. >
  5672. <span
  5673. :class="{ active: testJson.testJson[index1].type == '2' }"
  5674. @click="checkTestType('2', testJson.testJson[index1])"
  5675. >多选题</span
  5676. >
  5677. </div>
  5678. <div class="a_add_head">
  5679. <div class="timuUpImg">
  5680. <div style="display: flex;align-items: center;">
  5681. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  5682. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  5683. placeholder="请输入题目">
  5684. </el-input> -->
  5685. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目" @change="()=>{$forceUpdate()}"></textarea>
  5686. </div>
  5687. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  5688. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  5689. </div>
  5690. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  5691. </div>
  5692. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  5693. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5694. <input
  5695. type="file"
  5696. accept="image/*"
  5697. style="display: none"
  5698. @change="beforeUploadTiMu($event, index1)"
  5699. />
  5700. </div>
  5701. </div>
  5702. <div class="a_add_head_div">
  5703. <el-button
  5704. type="primary"
  5705. size="small"
  5706. @click="deleteTestList(index1)"
  5707. v-if="testJson.testCount != 1"
  5708. >删除
  5709. </el-button>
  5710. <el-button type="primary" size="small" @click="addTestList(index1)"
  5711. >添加</el-button
  5712. >
  5713. </div>
  5714. </div>
  5715. <div
  5716. class="timuImgBox"
  5717. v-if="
  5718. testJson.testJson[index1].timuList &&
  5719. testJson.testJson[index1].timuList.length
  5720. "
  5721. >
  5722. <div
  5723. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  5724. :key="tIndex"
  5725. class="timuImg"
  5726. @click.stop="previewImg(timg.src)"
  5727. >
  5728. <img :src="timg.src" alt="" />
  5729. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  5730. <img src="../../../assets/icon/delete.png" alt="" />
  5731. </div>
  5732. </div>
  5733. </div>
  5734. <div class="a_add_body">
  5735. <div class="a_add_input a_add_input_choice">
  5736. <el-radio-group
  5737. v-model="testJson.testJson[index1].answer"
  5738. v-if="testJson.testJson[index1].type == 1"
  5739. @change="()=>{$forceUpdate()}"
  5740. >
  5741. <div class="radioBox">
  5742. <el-radio
  5743. v-for="(item2, checkIndex) in testJson.testJson[index1]
  5744. .testItem"
  5745. :key="checkIndex"
  5746. :label="checkIndex"
  5747. >
  5748. <div style="margin-right: 10px">
  5749. 选项{{ checkIndex + 1 }}
  5750. </div>
  5751. <div
  5752. style="margin-right: 10px; width: 300px"
  5753. v-if="
  5754. testJson.testJson[index1].checkList[checkIndex] &&
  5755. testJson.testJson[index1].checkList[checkIndex]
  5756. .imgType &&
  5757. testJson.testJson[index1].checkList[checkIndex]
  5758. .imgType == 1
  5759. "
  5760. >
  5761. <div
  5762. class="inImg"
  5763. @click.stop="
  5764. previewImg(
  5765. testJson.testJson[index1].checkList[checkIndex]
  5766. .src
  5767. )
  5768. "
  5769. >
  5770. <el-image
  5771. :src="
  5772. testJson.testJson[index1].checkList[checkIndex]
  5773. .src
  5774. "
  5775. lazy
  5776. />
  5777. <!-- <img :src="
  5778. testJson.testJson[index1].checkList[checkIndex]
  5779. .src
  5780. " alt="" /> -->
  5781. </div>
  5782. </div>
  5783. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  5784. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="()=>{$forceUpdate()}"></textarea>
  5785. <div class="xzUpImg" @click.stop="addImg($event)">
  5786. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5787. <input
  5788. type="file"
  5789. accept="image/*"
  5790. style="display: none"
  5791. @change="beforeUploadTi($event, index1, checkIndex)"
  5792. />
  5793. </div>
  5794. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  5795. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  5796. </div>
  5797. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  5798. </div>
  5799. <div class="a_add_body_div">
  5800. <el-button type="primary" size="small" @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  5801. <el-button type="primary" size="small" @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  5802. v-if="testJson.testJson[index1].testItem != 1">删除
  5803. </el-button>
  5804. </div>
  5805. </el-radio>
  5806. </div>
  5807. </el-radio-group>
  5808. <el-checkbox-group
  5809. v-model="testJson.testJson[index1].answer"
  5810. v-if="testJson.testJson[index1].type == '2'"
  5811. @change="()=>{$forceUpdate()}"
  5812. >
  5813. <div class="radioBox">
  5814. <el-checkbox
  5815. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  5816. .testItem"
  5817. :key="checkIndex1"
  5818. :label="checkIndex1"
  5819. >
  5820. <div style="margin-right: 10px">
  5821. 选项{{ checkIndex1 + 1 }}
  5822. </div>
  5823. <div
  5824. style="margin-right: 10px; width: 300px"
  5825. v-if="
  5826. testJson.testJson[index1].checkList[checkIndex1] &&
  5827. testJson.testJson[index1].checkList[checkIndex1]
  5828. .imgType &&
  5829. testJson.testJson[index1].checkList[checkIndex1]
  5830. .imgType == 1
  5831. "
  5832. >
  5833. <div
  5834. class="inImg"
  5835. @click.stop="
  5836. previewImg(
  5837. testJson.testJson[index1].checkList[checkIndex1]
  5838. .src
  5839. )
  5840. "
  5841. >
  5842. <el-image
  5843. :src="
  5844. testJson.testJson[index1].checkList[checkIndex1]
  5845. .src
  5846. "
  5847. lazy
  5848. />
  5849. <!-- <img :src="
  5850. testJson.testJson[index1].checkList[checkIndex1]
  5851. .src
  5852. " alt="" /> -->
  5853. </div>
  5854. </div>
  5855. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  5856. " placeholder="请输入选项" style="width: 300px; margin-right: 10px" @change="()=>{$forceUpdate()}"></textarea>
  5857. <div class="xzUpImg" @click.stop="addImg($event)">
  5858. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  5859. <input
  5860. type="file"
  5861. accept="image/*"
  5862. style="display: none"
  5863. @change="beforeUploadTi($event, index1, checkIndex1)"
  5864. />
  5865. </div>
  5866. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  5867. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  5868. </div>
  5869. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  5870. </div>
  5871. <div class="a_add_body_div">
  5872. <el-button type="primary" size="small" @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  5873. <el-button type="primary" size="small" @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  5874. v-if="testJson.testJson[index1].testItem != 1">删除
  5875. </el-button>
  5876. </div>
  5877. </el-checkbox>
  5878. </div>
  5879. </el-checkbox-group>
  5880. </div>
  5881. <!-- <div class="a_add_body_div">
  5882. <el-button
  5883. type="primary"
  5884. size="small"
  5885. @click="addTcheckList(testJson.testJson[index1])"
  5886. >添加</el-button
  5887. >
  5888. <el-button
  5889. type="primary"
  5890. size="small"
  5891. @click="deleteTcheckList(testJson.testJson[index1])"
  5892. v-if="testJson.testJson[index1].testItem != 1"
  5893. >删除
  5894. </el-button>
  5895. </div> -->
  5896. </div>
  5897. </div>
  5898. </div>
  5899. </div>
  5900. <span slot="footer" class="dialog-footer">
  5901. <el-button @click="closePan(45)">取 消</el-button>
  5902. <el-button type="primary" @click="addTest">确 定</el-button>
  5903. </span>
  5904. </el-dialog>
  5905. <el-dialog
  5906. title="添加工具"
  5907. :visible.sync="dialogVisible4"
  5908. :append-to-body="true"
  5909. width="600px"
  5910. :before-close="handleClose"
  5911. class="dialog_diy addToolsDia"
  5912. >
  5913. <div class="toolChoose" style="padding: 0 0 0 30px">
  5914. <div class="tools">
  5915. <div
  5916. class="leftTools"
  5917. style="
  5918. width: 95%;
  5919. padding: 0 0 15px 0;
  5920. margin: 15px 0;
  5921. "
  5922. v-for="(itemTools, itemToolsIndex) in chapTools"
  5923. :key="itemToolsIndex"
  5924. >
  5925. <div
  5926. style="
  5927. display: flex;
  5928. flex-direction: row;
  5929. align-items: baseline;
  5930. flex-wrap: nowrap;
  5931. justify-content: flex-start;
  5932. position: relative;
  5933. "
  5934. >
  5935. <div class="chooseWho">
  5936. <div
  5937. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  5938. @click="chapToolsType = 0"
  5939. >
  5940. 互动类
  5941. </div>
  5942. <div
  5943. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  5944. @click="chapToolsType = 1"
  5945. >
  5946. 思维类
  5947. </div>
  5948. <div
  5949. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5950. @click="chapToolsType = 2"
  5951. >
  5952. 评价类
  5953. </div>
  5954. <div
  5955. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  5956. @click="chapToolsType = 2"
  5957. >
  5958. 其他
  5959. </div>
  5960. </div>
  5961. </div>
  5962. <div style="min-height: 163px">
  5963. <div class="toolSort" v-if="chapToolsType == 0">
  5964. <div class="tool">
  5965. <div class="whiteBIcon" @click="chapAddTools(8)">
  5966. <img
  5967. src="../../../assets/icon/secondToolList/library.png"
  5968. alt
  5969. />
  5970. <div style="margin: 5px 0">素材库</div>
  5971. </div>
  5972. <div class="check" @click="chapAddTools(8)">
  5973. <img
  5974. src="../../../assets/icon/checkNo.png"
  5975. alt
  5976. v-if="itemTools.tools.indexOf(8) == -1"
  5977. />
  5978. <div class="checkDiv" v-else>
  5979. <img src="../../../assets/icon/checkedIs.png" alt /><span
  5980. >已选择</span
  5981. >
  5982. </div>
  5983. </div>
  5984. </div>
  5985. </div>
  5986. <div class="toolSort" v-if="chapToolsType == 1">
  5987. <div class="tool">
  5988. <div class="whiteBIcon" @click="chapAddTools(7)">
  5989. <img
  5990. src="../../../assets/icon/secondToolList/mindNetwork.png"
  5991. alt
  5992. />
  5993. <div style="margin: 5px 0">思维网格</div>
  5994. </div>
  5995. <div class="check" @click="chapAddTools(7)">
  5996. <img
  5997. src="../../../assets/icon/checkNo.png"
  5998. alt
  5999. v-if="itemTools.tools.indexOf(7) == -1"
  6000. />
  6001. <div class="checkDiv" v-else>
  6002. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6003. >已选择</span
  6004. >
  6005. </div>
  6006. </div>
  6007. </div>
  6008. <div class="tool">
  6009. <div class="whiteBIcon" @click="chapAddTools(1)">
  6010. <img
  6011. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6012. alt
  6013. />
  6014. <div style="margin: 5px 0">电子白板</div>
  6015. </div>
  6016. <div class="check" @click="chapAddTools(1)">
  6017. <img
  6018. src="../../../assets/icon/checkNo.png"
  6019. alt
  6020. v-if="itemTools.tools.indexOf(1) == -1"
  6021. />
  6022. <div class="checkDiv" v-else>
  6023. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6024. >已选择</span
  6025. >
  6026. </div>
  6027. </div>
  6028. </div>
  6029. <div class="tool">
  6030. <div class="whiteBIcon" @click="chapAddTools(2)">
  6031. <img
  6032. src="../../../assets/icon/secondToolList/note.png"
  6033. alt
  6034. />
  6035. <div style="margin: 5px 0">便签</div>
  6036. </div>
  6037. <div class="check" @click="chapAddTools(2)">
  6038. <img
  6039. src="../../../assets/icon/checkNo.png"
  6040. alt
  6041. v-if="itemTools.tools.indexOf(2) == -1"
  6042. />
  6043. <div class="checkDiv" v-else>
  6044. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6045. >已选择</span
  6046. >
  6047. </div>
  6048. </div>
  6049. </div>
  6050. <div class="tool">
  6051. <div class="whiteBIcon" @click="chapAddTools(6)">
  6052. <img
  6053. src="../../../assets/icon/secondToolList/doc.png"
  6054. alt
  6055. />
  6056. <div style="margin: 5px 0">协同文档</div>
  6057. </div>
  6058. <div class="check" @click="chapAddTools(6)">
  6059. <img
  6060. src="../../../assets/icon/checkNo.png"
  6061. alt
  6062. v-if="itemTools.tools.indexOf(6) == -1"
  6063. />
  6064. <div class="checkDiv" v-else>
  6065. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6066. >已选择</span
  6067. >
  6068. </div>
  6069. </div>
  6070. </div>
  6071. <div class="tool">
  6072. <div class="whiteBIcon" @click="chapAddTools(3)">
  6073. <img
  6074. src="../../../assets/icon/secondToolList/mindMapping.png"
  6075. alt
  6076. />
  6077. <div style="margin: 5px 0">思维导图</div>
  6078. </div>
  6079. <div class="check" @click="chapAddTools(3)">
  6080. <img
  6081. src="../../../assets/icon/checkNo.png"
  6082. alt
  6083. v-if="itemTools.tools.indexOf(3) == -1"
  6084. />
  6085. <div class="checkDiv" v-else>
  6086. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6087. >已选择</span
  6088. >
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div class="tool">
  6093. <div class="whiteBIcon" @click="chapAddTools(31)">
  6094. <img
  6095. src="../../../assets/icon/secondToolList/networkPanel.png"
  6096. alt
  6097. />
  6098. <div style="margin: 5px 0">数学画板</div>
  6099. </div>
  6100. <div class="check" @click="chapAddTools(31)">
  6101. <img
  6102. src="../../../assets/icon/checkNo.png"
  6103. alt
  6104. v-if="itemTools.tools.indexOf(31) == -1"
  6105. />
  6106. <div class="checkDiv" v-else>
  6107. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6108. >已选择</span
  6109. >
  6110. </div>
  6111. </div>
  6112. </div>
  6113. </div>
  6114. <div class="toolSort" v-if="chapToolsType == 2">
  6115. <div class="tool">
  6116. <div class="whiteBIcon" @click="chapAddTools(5)">
  6117. <img
  6118. src="../../../assets/icon/thirdToolList/score.png"
  6119. alt
  6120. />
  6121. <div style="margin: 5px 0">量规评分</div>
  6122. </div>
  6123. <div class="check" @click="chapAddTools(5)">
  6124. <img
  6125. src="../../../assets/icon/checkNo.png"
  6126. alt
  6127. v-if="itemTools.tools.indexOf(5) == -1"
  6128. />
  6129. <div class="checkDiv" v-else>
  6130. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6131. >已选择</span
  6132. >
  6133. </div>
  6134. </div>
  6135. </div>
  6136. <div class="tool">
  6137. <div
  6138. class="whiteBIcon"
  6139. @click="openTools(chapCount, 4, null)"
  6140. >
  6141. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  6142. <div style="margin: 5px 0">问卷调查</div>
  6143. </div>
  6144. <div class="check" @click="chapAddTools(4)">
  6145. <img
  6146. src="../../../assets/icon/checkNo.png"
  6147. alt
  6148. v-if="itemTools.tools.indexOf(4) == -1"
  6149. />
  6150. <div class="checkDiv" v-else>
  6151. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6152. >已选择</span
  6153. >
  6154. </div>
  6155. </div>
  6156. </div>
  6157. </div>
  6158. </div>
  6159. <div>
  6160. <input
  6161. type="text"
  6162. placeholder="添加工具描述"
  6163. class="binfo_input"
  6164. style="margin: 20px 0; width: 71.5% !important"
  6165. v-model="itemTools.toolDetail"
  6166. />
  6167. </div>
  6168. </div>
  6169. </div>
  6170. </div>
  6171. <span slot="footer" class="dialog-footer">
  6172. <el-button @click="dialogVisible4 = false">取 消</el-button>
  6173. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  6174. </span>
  6175. </el-dialog>
  6176. <el-dialog
  6177. title="添加问答"
  6178. :visible.sync="dialogVisible8"
  6179. :append-to-body="true"
  6180. width="500px"
  6181. :before-close="(done)=>{closePan(15)}"
  6182. class="dialog_diy"
  6183. >
  6184. <div>
  6185. <div
  6186. class="a_add_title"
  6187. style="
  6188. display: flex;
  6189. flex-direction: column;
  6190. align-items: flex-start;
  6191. justify-content: center;
  6192. "
  6193. >
  6194. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6195. <!-- <el-input
  6196. v-model="answerQ"
  6197. placeholder="请输入您要问的问题"
  6198. ></el-input> -->
  6199. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input" style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  6200. </div>
  6201. </div>
  6202. <span slot="footer" class="dialog-footer">
  6203. <el-button @click="closePan(15)">取 消</el-button>
  6204. <el-button type="primary" @click="addAnswer">确 定</el-button>
  6205. </span>
  6206. </el-dialog>
  6207. <el-dialog
  6208. title="添加问题"
  6209. :visible.sync="dialogVisibleMp3"
  6210. :append-to-body="true"
  6211. width="500px"
  6212. :before-close="handleClose"
  6213. class="dialog_diy"
  6214. >
  6215. <div>
  6216. <div
  6217. class="a_add_title"
  6218. style="
  6219. display: flex;
  6220. flex-direction: column;
  6221. align-items: flex-start;
  6222. justify-content: center;
  6223. "
  6224. >
  6225. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  6226. <el-input
  6227. v-model="answerQ"
  6228. placeholder="请输入您想要回答的问题"
  6229. ></el-input>
  6230. </div>
  6231. </div>
  6232. <span slot="footer" class="dialog-footer">
  6233. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  6234. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  6235. </span>
  6236. </el-dialog>
  6237. <el-dialog
  6238. title="上传图片"
  6239. :visible.sync="choosePicVisible"
  6240. :append-to-body="true"
  6241. width="600px"
  6242. :before-close="handleClose"
  6243. class="dialog_diy"
  6244. >
  6245. <div>
  6246. <div class="fileCss" style="padding-top: 20px">
  6247. <div>
  6248. <button class="info_btn" @click="addImg($event)">
  6249. 选择本地文件
  6250. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  6251. </button>
  6252. <div class="spanName">选择本地文件</div>
  6253. </div>
  6254. <div>
  6255. <el-button @click="getAllBanner" v-if="isSysPic == false ">选择系统文件</el-button>
  6256. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  6257. <img :src="cover[0].url" alt="" />
  6258. <div class="deletePic" @click="deleteSysPic">
  6259. <img src="../../../assets/icon/delete.png" alt="" />
  6260. </div>
  6261. </div>
  6262. <div class="spanName">选择系统文件</div>
  6263. </div>
  6264. <div>
  6265. <el-button @click="searchImageValue = courseName,resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  6266. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  6267. <img :src="cover[0].url" alt="" />
  6268. <div class="deletePic" @click="deleteSysPic">
  6269. <img src="../../../assets/icon/delete.png" alt="" />
  6270. </div>
  6271. </div>
  6272. <div class="spanName">选择网络文件</div>
  6273. </div>
  6274. </div>
  6275. <!-- <div class="fileCss">
  6276. <div>选择本地文件</div>
  6277. <div>选择系统文件</div>
  6278. </div> -->
  6279. </div>
  6280. <span slot="footer" class="dialog-footer">
  6281. <el-button @click="choosePicVisible = false">取 消</el-button>
  6282. <el-button type="primary" @click="choosePicVisible = false"
  6283. >确 定</el-button
  6284. >
  6285. </span>
  6286. </el-dialog>
  6287. <el-dialog
  6288. title="选择系统文件"
  6289. :visible.sync="sysPicVisible"
  6290. :append-to-body="true"
  6291. width="710px"
  6292. :before-close="handleClose"
  6293. class="dialog_diy"
  6294. >
  6295. <div class="cru_selectBox" style="margin: 0">
  6296. <div
  6297. @click="getChoosePic(1)"
  6298. class="cru_select"
  6299. :class="chooseType == 1 ? 'cru_selected' : ''"
  6300. >
  6301. 绘画
  6302. </div>
  6303. <div
  6304. @click="getChoosePic(2)"
  6305. class="cru_select"
  6306. :class="chooseType == 2 ? 'cru_selected' : ''"
  6307. >
  6308. 科技
  6309. </div>
  6310. <div
  6311. @click="getChoosePic(3)"
  6312. class="cru_select"
  6313. :class="chooseType == 3 ? 'cru_selected' : ''"
  6314. >
  6315. 人文
  6316. </div>
  6317. <div
  6318. @click="getChoosePic(4)"
  6319. class="cru_select"
  6320. :class="chooseType == 4 ? 'cru_selected' : ''"
  6321. >
  6322. 艺术
  6323. </div>
  6324. </div>
  6325. <div class="sysPicBox">
  6326. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  6327. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  6328. </div>
  6329. </div>
  6330. </el-dialog>
  6331. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  6332. :before-close="handleClose" class="dialog_diy">
  6333. <div>
  6334. <div class="people_top_right" style="display: flex;align-items: center;">
  6335. <div style="position: relative; width: 100%;">
  6336. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue" @keyup.enter.native="resetImage()"></el-input>
  6337. <div class="search_img" @click="resetImage" style="right: 10px;">
  6338. <img src="../../../assets/icon/search.png" alt />
  6339. </div>
  6340. </div>
  6341. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  6342. </div>
  6343. <div class="sysPicBox" v-loading="imageloading">
  6344. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  6345. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  6346. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  6347. </div>
  6348. </div>
  6349. </div>
  6350. </el-dialog>
  6351. <el-dialog
  6352. title="选择匹配"
  6353. :visible.sync="dialogVisibleSelect"
  6354. :append-to-body="true"
  6355. width="800px"
  6356. :before-close="(done)=>{closePan(41)}"
  6357. class="dialog_diy dialog_diy3 fullStyle"
  6358. >
  6359. <div v-if="selectJson" style="height:100%">
  6360. <div class="select_box1" v-if="selectSteps == 1">
  6361. <div class="select_box1_img">
  6362. <div class="select_box1_title">
  6363. <span>上传题目图片</span
  6364. ><span>提示:请将所有题目上传为一张图片。</span>
  6365. </div>
  6366. <div class="select_box1_add_img">
  6367. <div
  6368. class="uploadFm"
  6369. @click="addImg($event)"
  6370. v-if="!selectJson.url"
  6371. >
  6372. <input
  6373. type="file"
  6374. accept="image/*"
  6375. style="display: none"
  6376. @change="beforeUploadSelect"
  6377. />
  6378. <img src="../../../assets/icon/addPoster.png" alt="" />
  6379. </div>
  6380. <div class="isSysPic" v-else>
  6381. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)"/>
  6382. <div class="deletePic" @click="deleteSelectPic">
  6383. <img src="../../../assets/icon/delete.png" alt="" />
  6384. </div>
  6385. </div>
  6386. </div>
  6387. </div>
  6388. <div class="select_box1_select">
  6389. <div class="select_box1_title">
  6390. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  6391. </div>
  6392. <div class="select_box1_select_box">
  6393. <el-input
  6394. v-for="(item2, checkIndex) in selectJson.select"
  6395. :key="checkIndex"
  6396. v-model="selectJson.select[checkIndex]"
  6397. placeholder="请输入选项"
  6398. style="width: 150px; margin: 10px 10px 0 0"
  6399. ></el-input>
  6400. <div class="select_box1_select_box_add">
  6401. <el-button
  6402. style="margin: 10px 0px 0 0"
  6403. type="primary"
  6404. size="small"
  6405. @click="addSelectList(selectJson)"
  6406. >
  6407. 添加</el-button
  6408. >
  6409. <el-button
  6410. type="primary"
  6411. size="small"
  6412. style="margin: 10px 0 0 0"
  6413. @click="deleteSelectList(selectJson)"
  6414. v-if="selectJson.select && selectJson.select.length > 0"
  6415. >删除</el-button
  6416. >
  6417. </div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. <div v-if="selectSteps == 2" style="height:100%">
  6422. <div class="select_box2">
  6423. <div class="select_box2_title">设置每道题目的正确选项</div>
  6424. <div class="select_box2_box">
  6425. <div class="select_box2_img">
  6426. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)"/>
  6427. </div>
  6428. <div class="select_box2_answer">
  6429. <div class="select_answer_title">根据题目选择对应答案</div>
  6430. <div
  6431. class="select_box2_answer_box"
  6432. v-for="(item2, checkIndex) in selectJson.select"
  6433. :key="checkIndex"
  6434. >
  6435. <span>{{ checkIndex + 1 }}、</span>
  6436. <el-select
  6437. v-model="selectJson.answer[checkIndex]"
  6438. placeholder="请选择正确答案"
  6439. >
  6440. <el-option
  6441. v-for="(e, eIndex) in selectJson.select"
  6442. :key="eIndex"
  6443. :label="e"
  6444. :value="eIndex"
  6445. >
  6446. </el-option>
  6447. </el-select>
  6448. </div>
  6449. </div>
  6450. </div>
  6451. </div>
  6452. </div>
  6453. </div>
  6454. <span slot="footer" class="dialog-footer">
  6455. <el-button
  6456. type="primary"
  6457. @click="nextSelectSteps()"
  6458. v-if="selectSteps == 1"
  6459. >下一步</el-button
  6460. >
  6461. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  6462. >上一步</el-button
  6463. >
  6464. <el-button
  6465. type="primary"
  6466. @click="addSelectAnswer"
  6467. v-if="selectSteps == 2"
  6468. >确 定</el-button
  6469. >
  6470. </span>
  6471. </el-dialog>
  6472. <el-dialog
  6473. title="添加评价"
  6474. :visible.sync="dialogVisibleRate"
  6475. :append-to-body="true"
  6476. width="650px"
  6477. :before-close="handleClose"
  6478. class="dialog_diy"
  6479. >
  6480. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  6481. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  6482. <div class="pjCss" style="width: 100%">
  6483. <div
  6484. v-if="rateJson.length"
  6485. class="elist_input"
  6486. style="height: 360px; overflow: auto"
  6487. >
  6488. <div
  6489. v-for="(eItem, eIndex) in rateJson"
  6490. :key="eIndex"
  6491. class="elist_input_box"
  6492. >
  6493. <span style="min-width: 100px; text-align: right"
  6494. >个人评价指标:</span
  6495. >
  6496. <input
  6497. type="input"
  6498. v-model="eItem.value"
  6499. placeholder="填写评价名称"
  6500. />
  6501. <div class="remove" @click="deletRateList(eIndex)"></div>
  6502. <div style="width: 100%; display: flex">
  6503. <span style="min-width: 100px; text-align: right"
  6504. >评星等级:</span
  6505. >
  6506. <el-rate v-model="eItem.score" disabled></el-rate>
  6507. </div>
  6508. <div class="elist_inptu_text" style="align-items: flex-start">
  6509. <span style="min-width: 100px; text-align: right">描述:</span>
  6510. <textarea
  6511. class="rate_textarea"
  6512. :rows="3"
  6513. v-model="eItem.detail"
  6514. placeholder="填写评价描述"
  6515. ></textarea>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. <div class="addToolFun" @click="addRateList()">
  6520. <div class="addToolImg">
  6521. <img src="../../../assets/icon/add.png" alt />
  6522. </div>
  6523. <div>添加</div>
  6524. </div>
  6525. </div>
  6526. </div>
  6527. <span slot="footer" class="dialog-footer">
  6528. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  6529. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  6530. </span>
  6531. </el-dialog>
  6532. <el-dialog
  6533. title="排序设置"
  6534. :visible.sync="dialogVisibleSentence"
  6535. :append-to-body="true"
  6536. width="1000px"
  6537. :before-close="(done)=>{closePan(47)}"
  6538. class="dialog_diy dialog_diy3 fullStyle"
  6539. >
  6540. <div style="height: 100%;">
  6541. <div class="sentenBox" style="height: 100%;">
  6542. <div class="addSen" @click="addSt">添加题目</div>
  6543. <div
  6544. v-for="(st, stIndex) in sentenceList"
  6545. :key="stIndex"
  6546. class="sentenContent"
  6547. >
  6548. <div class="sentenTopBox">
  6549. <div class="sentenTop" :index="stIndex+1">
  6550. <div>题目设置</div>
  6551. <div>
  6552. <el-input
  6553. placeholder="请输入卡片内容"
  6554. v-model="st.sentenceTitle"
  6555. :maxlength="10"
  6556. ></el-input>
  6557. </div>
  6558. <div @click="addSen(stIndex)">添加</div>
  6559. <div
  6560. class="remove1"
  6561. v-if="sentenceList.length > 1"
  6562. @click="deleteSentence(stIndex)"
  6563. ></div>
  6564. </div>
  6565. </div>
  6566. <div class="cardList">
  6567. <div v-if="st.addSentence.length > 0" class="cardBox">
  6568. <div
  6569. class="isCard"
  6570. v-for="(s, sIndex) in st.addSentence"
  6571. :key="sIndex"
  6572. @click="setRightAnswer(s, stIndex, sIndex)"
  6573. >
  6574. <el-tooltip
  6575. class="item"
  6576. effect="light"
  6577. :content="s"
  6578. placement="top"
  6579. >
  6580. <div>{{ s }}</div>
  6581. </el-tooltip>
  6582. <div
  6583. class="deleteWord"
  6584. @click.stop="deleteS(s, stIndex, sIndex)"
  6585. >
  6586. <img src="../../../assets/icon/delete.png" alt="" />
  6587. </div>
  6588. </div>
  6589. </div>
  6590. <div class="card">
  6591. <img
  6592. src="../../../assets/icon/conSentences/noTitle.png"
  6593. alt=""
  6594. />
  6595. </div>
  6596. </div>
  6597. <div class="rightCardBox">
  6598. <div>正确顺序</div>
  6599. <div class="rightCardList">
  6600. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  6601. <div
  6602. v-for="(r, rIndex) in st.rightAnswer"
  6603. :key="rIndex"
  6604. class="cardCss"
  6605. >
  6606. <div
  6607. class="isCard1"
  6608. @click="returnCard(r, stIndex, rIndex)"
  6609. >
  6610. <el-tooltip
  6611. class="item"
  6612. effect="light"
  6613. :content="r"
  6614. placement="top"
  6615. >
  6616. <div>{{ r }}</div>
  6617. </el-tooltip>
  6618. </div>
  6619. <div>{{ rIndex + 1 }}</div>
  6620. </div>
  6621. </div>
  6622. <div class="card" v-if="st.rightAnswer.length == 0">
  6623. <img
  6624. src="../../../assets/icon/conSentences/noAnswer.png"
  6625. alt=""
  6626. />
  6627. </div>
  6628. <div class="card" v-else>
  6629. <img
  6630. src="../../../assets/icon/conSentences/clickNo.png"
  6631. alt=""
  6632. />
  6633. </div>
  6634. </div>
  6635. </div>
  6636. </div>
  6637. </div>
  6638. </div>
  6639. <span slot="footer" class="dialog-footer">
  6640. <el-button @click="closePan(47)">取 消</el-button>
  6641. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  6642. </span>
  6643. </el-dialog>
  6644. <el-dialog
  6645. title="添加表格"
  6646. :visible.sync="dialogVisibleTable"
  6647. :append-to-body="true"
  6648. width="95%"
  6649. :before-close="handleClose"
  6650. class="dialog_diy"
  6651. >
  6652. <el-form>
  6653. <!-- <el-form-item label="文本标题">
  6654. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6655. </el-form-item> -->
  6656. <div>表格内容</div>
  6657. <Table v-model="tableJson.text" @change="change"></Table>
  6658. </el-form>
  6659. <span slot="footer" class="dialog-footer">
  6660. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  6661. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  6662. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  6663. </span>
  6664. </el-dialog>
  6665. <el-dialog
  6666. title="添加文档"
  6667. :visible.sync="dialogVisibleWord"
  6668. :append-to-body="true"
  6669. width="800px"
  6670. :before-close="handleClose"
  6671. class="dialog_diy"
  6672. >
  6673. <el-form>
  6674. <!-- <el-form-item label="文本标题">
  6675. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  6676. </el-form-item> -->
  6677. <div>文档内容</div>
  6678. <editor-bar v-model="wordJson.text"></editor-bar>
  6679. </el-form>
  6680. <span slot="footer" class="dialog-footer">
  6681. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  6682. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  6683. </span>
  6684. </el-dialog>
  6685. <el-dialog
  6686. title="添加班级"
  6687. :visible.sync="dialogVisibleMoreUpload"
  6688. :append-to-body="true"
  6689. width="30%"
  6690. :before-close="handleClose"
  6691. class="dialog_diy"
  6692. >
  6693. <div
  6694. style="
  6695. width: 100%;
  6696. display: flex;
  6697. flex-direction: row;
  6698. flex-wrap: nowrap;
  6699. align-items: center;
  6700. justify-content: center;
  6701. "
  6702. >
  6703. <div>班级:</div>
  6704. <el-select multiple v-model="uploadJson" placeholder="请选择">
  6705. <el-option
  6706. v-for="item in classJuri"
  6707. :key="item.id"
  6708. :label="item.name"
  6709. :value="item.id"
  6710. >
  6711. </el-option>
  6712. </el-select>
  6713. </div>
  6714. <span slot="footer" class="dialog-footer">
  6715. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  6716. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  6717. </span>
  6718. </el-dialog>
  6719. <el-dialog
  6720. title="设置随机码"
  6721. :visible.sync="dialogVisibleInvite"
  6722. :append-to-body="true"
  6723. width="360px"
  6724. :before-close="handleClose"
  6725. class="dialog_diy"
  6726. >
  6727. <div
  6728. style="
  6729. width: 100%;
  6730. display: flex;
  6731. flex-direction: row;
  6732. flex-wrap: nowrap;
  6733. align-items: center;
  6734. justify-content: center;
  6735. "
  6736. >
  6737. <div>随机码:</div>
  6738. <el-input
  6739. v-model="icode"
  6740. style="width: 240px"
  6741. placeholder="请输入随机码"
  6742. ></el-input>
  6743. </div>
  6744. <span slot="footer" class="dialog-footer">
  6745. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  6746. <el-button type="primary" @click="addInvite">确定</el-button>
  6747. </span>
  6748. </el-dialog>
  6749. <el-dialog
  6750. title="添加预设时间"
  6751. :visible.sync="dialogVisiblePreTime"
  6752. :append-to-body="true"
  6753. width="450px"
  6754. :before-close="handleClose"
  6755. class="dialog_diy"
  6756. >
  6757. <div>
  6758. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  6759. <Time
  6760. :preTime="preTime"
  6761. @updateTimeNum="updateTime"
  6762. v-if="dialogVisiblePreTime"
  6763. ></Time>
  6764. </div>
  6765. <span slot="footer" class="dialog-footer">
  6766. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  6767. <el-button type="primary" @click="addPreTime">确定</el-button>
  6768. </span>
  6769. </el-dialog>
  6770. <el-dialog
  6771. title="导入目标"
  6772. :visible.sync="dialogVisiblemb"
  6773. :append-to-body="true"
  6774. width="70%"
  6775. :before-close="handleClose"
  6776. class="dialog_diy"
  6777. >
  6778. <div>
  6779. <div
  6780. style="
  6781. width: 100%;
  6782. display: flex;
  6783. flex-direction: row;
  6784. flex-wrap: nowrap;
  6785. align-content: center;
  6786. align-items: center;
  6787. justify-content: space-between;
  6788. "
  6789. >
  6790. <div
  6791. style="
  6792. display: flex;
  6793. flex-flow: row nowrap;
  6794. align-items: flex-start;
  6795. width: 100%;
  6796. flex-direction: column;
  6797. flex-wrap: nowrap;
  6798. position: relative;
  6799. "
  6800. >
  6801. <div class="e_box">
  6802. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  6803. <div class="e_card_picture">
  6804. <img src="../../../assets/e_picture.png" />
  6805. </div>
  6806. <div class="e_card_name">
  6807. <span>{{ item.title }}</span>
  6808. </div>
  6809. <div class="e_card_btn">
  6810. <span @click="checkEva(item.id, 2)">导入</span>
  6811. </div>
  6812. </div>
  6813. <div class="addEva" @click="openT">
  6814. <img src="../../../assets/icon/addEva.png" alt="" />
  6815. </div>
  6816. <div
  6817. v-if="evaJuri.length === 0"
  6818. style="margin: 0 auto; color: #6e6e6e"
  6819. >
  6820. 暂无数据
  6821. </div>
  6822. </div>
  6823. </div>
  6824. </div>
  6825. </div>
  6826. <span slot="footer" class="dialog-footer">
  6827. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  6828. </span>
  6829. </el-dialog>
  6830. <el-dialog
  6831. title="分组设置"
  6832. :visible.sync="dialogVisibleGroup"
  6833. :append-to-body="true"
  6834. width="650px"
  6835. :before-close="handleClose"
  6836. class="dialog_diy"
  6837. >
  6838. <div class="groupBox">
  6839. <div v-if="groupJson.group" class="groupContent">
  6840. <div class="groupTitle">请设置小组数量及名称</div>
  6841. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  6842. <span class="groupn">第{{ index + 1 }}组名称:</span>
  6843. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  6844. <div class="groupBtn">
  6845. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  6846. 添加</el-button>
  6847. <el-button type="primary" size="small" @click="deleteGroup(index)"
  6848. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  6849. </div>
  6850. </div>
  6851. </div>
  6852. <div class="groupContent">
  6853. <div class="groupTitle">请设置每组人数</div>
  6854. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  6855. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  6856. <el-input v-model="groupJson.number" style="width:150px"
  6857. placeholder="请输入2-10的数字" @change="numberPan"></el-input>
  6858. </div>
  6859. </div>
  6860. <span slot="footer" class="dialog-footer">
  6861. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  6862. <el-button type="primary" @click="addGroupJson">确定</el-button>
  6863. </span>
  6864. </el-dialog>
  6865. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  6866. :before-close="handleClose" class="dialog_diy">
  6867. <div style="
  6868. width: 100%;
  6869. display: flex;
  6870. flex-direction: row;
  6871. flex-wrap: nowrap;
  6872. align-items: center;
  6873. justify-content: center;
  6874. ">
  6875. <div style="min-width: fit-content;">文件名称:</div>
  6876. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  6877. </div>
  6878. <span slot="footer" class="dialog-footer">
  6879. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  6880. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  6881. </span>
  6882. </el-dialog>
  6883. <interVideo
  6884. :dialogVisibleVideo.sync="dialogVisibleVideo"
  6885. :videoJson="videoJson"
  6886. @add="addVideoJson"
  6887. ></interVideo>
  6888. </div>
  6889. </template>
  6890. <script>
  6891. import "../../../common/aws-sdk-2.235.1.min.js";
  6892. import { tools as toolsData } from "../../../common/tools.js";
  6893. import $ from "jquery";
  6894. import EditorBar from "../../../components/tools/wangEnduit";
  6895. import Table from "../../../components/tools/table";
  6896. import Mind from "../../tools/jsmind2";
  6897. import Time from "../../tools/time.vue";
  6898. import Sunburst from "../../tools/sunburst";
  6899. import SeeBoard from "../../tools/seeBoard";
  6900. import weilaiData from "../components/weilai.js";
  6901. import sourceDialog from "../teacherSource/dialog.vue";
  6902. import interVideo from "../interVideo/index.vue";
  6903. export default {
  6904. components: {
  6905. EditorBar,
  6906. Mind,
  6907. Time,
  6908. Sunburst,
  6909. SeeBoard,
  6910. Table,
  6911. sourceDialog,
  6912. interVideo,
  6913. },
  6914. data() {
  6915. return {
  6916. checkAll: false,
  6917. chooseType: 1,
  6918. checkedCities: [],
  6919. isIndeterminate: true,
  6920. isSysPic: false,
  6921. isSysPic2: false,
  6922. steps: 1,
  6923. nbOrder: 0,
  6924. courseId: "",
  6925. chapToolsType: 0,
  6926. chapTools: [
  6927. {
  6928. tools: [],
  6929. toolDetail: "",
  6930. },
  6931. ],
  6932. line: "",
  6933. lineTitle: "",
  6934. sysPic: [],
  6935. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  6936. sentenceList2:[],
  6937. isPushTitleList: [],
  6938. lineCount: 0,
  6939. lineType: 0,
  6940. chapCount: 0,
  6941. courseName: "",
  6942. isTeacherSee: false,
  6943. courseText: "",
  6944. preTime: 0,
  6945. formLabelWidth: "100px",
  6946. choosePicVisible: false,
  6947. sysPicVisible: false,
  6948. uploadLoading1: false,
  6949. noneBtnImg: false,
  6950. updateBoolean2: false,
  6951. unitIndex: 0,
  6952. taskCount: 0,
  6953. dialogVisible: false,
  6954. dialogVisible1: false,
  6955. dialogVisible2: false,
  6956. dialogVisible3: false,
  6957. dialogVisible4: false,
  6958. dialogVisible5: false,
  6959. dialogVisible6: false,
  6960. dialogVisible7: false,
  6961. dialogVisible8: false,
  6962. dialogVisible9: false,
  6963. dialogVisibleClass: false,
  6964. dialogVisibleMember: false,
  6965. dialogVisibleMp3: false,
  6966. dialogVisibleSelect: false,
  6967. dialogVisibleSentence: false,
  6968. dialogVisibleRate: false,
  6969. dialogVisibleChoice: false,
  6970. dialogVisiblemb: false,
  6971. dialogVisibleInvite: false,
  6972. dialogVisibleSource: false,
  6973. dialogVisibleVideo: false,
  6974. dialogVisibleupdataVideoT:false,
  6975. isClickColor: 1,
  6976. toolIndexType:"",
  6977. publicTool: 0,
  6978. searchPeople: "",
  6979. searchTN: "",
  6980. userid: this.$route.query.userid,
  6981. oid: this.$route.query.oid,
  6982. org: this.$route.query.org,
  6983. role: this.$route.query.role,
  6984. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  6985. dialogVisibleTable: false,
  6986. dialogVisibleWord: false,
  6987. tableJson: { text: "" },
  6988. wordJson: { text: "" },
  6989. dialogVisibleMoreUpload: false,
  6990. dialogVisiblePreTime: false,
  6991. uploadJson: [],
  6992. classJuri: [],
  6993. gradeList: [],
  6994. cover: [], //课程封面
  6995. myWord: [],
  6996. evaJuri: [],
  6997. evalua: "",
  6998. targetArray: [],
  6999. eTitle: "",
  7000. eJson: {},
  7001. fid: "", //一级
  7002. sid: "", //二级
  7003. tid: "", //二级
  7004. typeMode: 1,
  7005. eJSONNum: 0,
  7006. data: {
  7007. meta: {
  7008. name: "example",
  7009. author: "dd@163.com",
  7010. version: "0.2",
  7011. },
  7012. format: "node_array",
  7013. data: [{ id: "root", isroot: true, topic: "" }],
  7014. },
  7015. askJson: {
  7016. askCount: 1,
  7017. askTitle: "",
  7018. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7019. },
  7020. askJson2:{},
  7021. testJson: {},
  7022. testJson2: {},
  7023. selectJson: {},
  7024. selectJson2: {},
  7025. rateJson: [],
  7026. unitJson2: [],
  7027. unitJson: [
  7028. {
  7029. dyName: "", //单元标题
  7030. chapterInfo: [
  7031. {
  7032. isread: false,
  7033. chapterid: this.guid(),
  7034. title: "",
  7035. courseName: "",
  7036. taskJson: [
  7037. {
  7038. task: "",
  7039. taskDetail: "",
  7040. chapterData: [],
  7041. toolChoose: [
  7042. {
  7043. tool: [],
  7044. toolDetail: "",
  7045. toolType: 0,
  7046. askCount: 1,
  7047. askTitle: "",
  7048. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7049. },
  7050. ],
  7051. toolText: "",
  7052. isShowTools: false,
  7053. askCount: 1,
  7054. isFold: 0,
  7055. askTitle: "",
  7056. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7057. checkJson: [{ checkCount: [], checkPerent: [] }],
  7058. homeworkList: [],
  7059. },
  7060. ],
  7061. itemCount: 1,
  7062. fileList1: [],
  7063. video: [],
  7064. testData: [],
  7065. pData: [],
  7066. templateArray: [],
  7067. },
  7068. ],
  7069. },
  7070. ],
  7071. studentJuri: [],
  7072. teacherJuri: [],
  7073. checkboxList: [],
  7074. checkboxList2: [],
  7075. checkboxList3: [],
  7076. classSearch: "",
  7077. gradeId:"",
  7078. number: "",
  7079. tTitle: "",
  7080. tdetail: "",
  7081. templateC: {},
  7082. AttText: {},
  7083. AttTextType: 0,
  7084. AttTextIndex: 0,
  7085. cTemplate: "",
  7086. CourseType: [],
  7087. CourseType2: [],
  7088. CourseTypeJson: {},
  7089. courseTypeId: [],
  7090. courseTypeSon: [],
  7091. clearArray: [],
  7092. pTypeCheck: [],
  7093. pTypeCheckName: [],
  7094. loading: false,
  7095. toolType: 0,
  7096. inputShow: true,
  7097. inputShow2: true,
  7098. toolIndex: 0,
  7099. cidType: 0,
  7100. answerQ: "",
  7101. answerQ2: "",
  7102. grade: [],
  7103. grade2: [],
  7104. courseUserid: "",
  7105. timer: null,
  7106. timer2: null,
  7107. pasteTimer:null,
  7108. checkId: "",
  7109. isDelete: 1,
  7110. addindex: 0,
  7111. selectSteps: 1,
  7112. groupJson: {},
  7113. dialogVisibleGroup: false,
  7114. rightBoxHeight: 0,
  7115. ManAarray: [],
  7116. checkBoolean: false,
  7117. inviteCode: [],
  7118. inviteId: "",
  7119. icode: "",
  7120. easyArray: [2, 4],
  7121. sourceData: {},
  7122. updateSourcePan: false,
  7123. videoJson: {},
  7124. isBtnDisplay:false,
  7125. isPasteTask:false,
  7126. isPasteChoice:false,
  7127. sysPicVisible2: false,
  7128. imageloading: false,
  7129. searchImageValue:"",
  7130. ppage:1,
  7131. imageList: [],
  7132. heightPx:'100%',
  7133. toolsData: toolsData,
  7134. };
  7135. },
  7136. directives: {
  7137. autoHeight: {
  7138. update(el, binding) {
  7139. const { value } = binding
  7140. if (value && typeof value === 'number') {
  7141. el.style.height = `${value}px`
  7142. } else {
  7143. el.style.height = 'auto'
  7144. }
  7145. },
  7146. componentUpdated(el) {
  7147. el.style.height = `${el.scrollHeight+5}px`
  7148. },
  7149. },
  7150. },
  7151. computed: {
  7152. // rightBoxHeight: function () {
  7153. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  7154. // },
  7155. offsetLetfPx: function () {
  7156. //addnum可以直接在模板语法里面用,相当于data内的值
  7157. return (
  7158. $(".cru_select")[this.unitIndex] &&
  7159. $(".cru_select")[this.unitIndex].offsetLeft
  7160. );
  7161. },
  7162. getMan2() {
  7163. return function (people) {
  7164. let _people = people;
  7165. let _people2 = "";
  7166. if (this.ManAarray.length) {
  7167. for (var i = 0; i < this.ManAarray.length; i++) {
  7168. if (this.ManAarray[i].userid == people) {
  7169. _people2 = this.ManAarray[i].name;
  7170. break;
  7171. }
  7172. }
  7173. }
  7174. if (people == this.courseUserid) {
  7175. return "";
  7176. }
  7177. return this.ManAarray.length ? _people2 : "";
  7178. };
  7179. },
  7180. isInvite() {
  7181. return function (cid) {
  7182. let array = [];
  7183. for (var i = 0; i < this.inviteCode.length; i++) {
  7184. array.push(this.inviteCode[i].cid);
  7185. }
  7186. return array.indexOf(cid) != -1;
  7187. };
  7188. },
  7189. getInviteCodeC() {
  7190. return function (cid) {
  7191. let array = [];
  7192. for (var i = 0; i < this.inviteCode.length; i++) {
  7193. array.push(this.inviteCode[i].cid);
  7194. }
  7195. return this.inviteCode[array.indexOf(cid)].ic;
  7196. };
  7197. },
  7198. getClassC() {
  7199. return function (c) {
  7200. let _c2 = "";
  7201. if (this.grade.length) {
  7202. for (var i = 0; i < this.grade.length; i++) {
  7203. if (this.grade[i].id == c) {
  7204. _c2 = this.grade[i].name;
  7205. break;
  7206. }
  7207. }
  7208. }
  7209. return this.grade.length ? _c2 : "";
  7210. };
  7211. },
  7212. getListClassC() {
  7213. return function (list) {
  7214. let _c2 = [];
  7215. if (this.grade.length) {
  7216. for(var j = 0; j < list.length; j++){
  7217. let c = list[j]
  7218. for (var i = 0; i < this.grade.length; i++) {
  7219. if (this.grade[i].id == c) {
  7220. _c2.push(this.grade[i].name);
  7221. break;
  7222. }
  7223. }
  7224. }
  7225. }
  7226. return this.grade.length ? _c2.join('、') : "";
  7227. };
  7228. },
  7229. },
  7230. watch: {
  7231. unitIndex(newValue, oldValue) {
  7232. if (this.isDelete == 2) {
  7233. this.isDelete = 1;
  7234. return;
  7235. }
  7236. if (this.cid != "") {
  7237. let _unitIndex = oldValue;
  7238. if (
  7239. JSON.stringify(this.unitJson2[_unitIndex]) ==
  7240. JSON.stringify(this.unitJson[_unitIndex])
  7241. ) {
  7242. this.$refs.rightboxR.scrollTop = 0;
  7243. return;
  7244. }
  7245. let cPan = 1;
  7246. for (
  7247. var j = 0;
  7248. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7249. j++
  7250. ) {
  7251. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7252. j
  7253. ].proVisible = false;
  7254. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7255. j
  7256. ].proVisible2 = false;
  7257. if (
  7258. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7259. .length > 1
  7260. ) {
  7261. for (
  7262. var z = 0;
  7263. z <
  7264. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  7265. .length;
  7266. z++
  7267. ) {
  7268. if (
  7269. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  7270. .toolChoose[z].tool.length
  7271. ) {
  7272. this.$message.error("请把工具添加完整");
  7273. cPan = 2;
  7274. break;
  7275. }
  7276. }
  7277. }
  7278. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7279. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7280. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7281. (ele) => {
  7282. return ele.value != "";
  7283. }
  7284. );
  7285. }
  7286. }
  7287. if (cPan == 2) {
  7288. this.unitIndex = oldValue;
  7289. return;
  7290. }
  7291. for (var i = 0; i < this.unitJson.length; i++) {
  7292. if (this.addindex != i) {
  7293. delete this.unitJson[i].isUpdate;
  7294. }
  7295. }
  7296. this.$refs.rightboxR.scrollTop = 0;
  7297. this.addindex = -1;
  7298. let params = [
  7299. {
  7300. cid: this.cid,
  7301. chapters: JSON.stringify(this.unitJson),
  7302. uid: this.userid,
  7303. unitIndex: _unitIndex,
  7304. },
  7305. ];
  7306. this.ajax
  7307. .post(this.$store.state.api + "updateWorkNew4", params)
  7308. .then((res) => {
  7309. // this.$message({
  7310. // message: "修改成功",
  7311. // type: "success",
  7312. // });
  7313. // this.courseId = this.cid;
  7314. })
  7315. .catch((err) => {
  7316. this.$message.error("网络不佳");
  7317. console.error(err);
  7318. });
  7319. }
  7320. },
  7321. steps(newValue) {
  7322. if (newValue == 4) {
  7323. this.goTo(
  7324. "/course?userid=" +
  7325. this.userid +
  7326. "&oid=" +
  7327. this.oid +
  7328. "&org=" +
  7329. this.org +
  7330. "&role=" +
  7331. this.role
  7332. );
  7333. }
  7334. },
  7335. },
  7336. methods: {
  7337. openAI(){
  7338. window.parent.postMessage({ tools: "64" }, "*");
  7339. },
  7340. setMan() {
  7341. // let teacherJuri = this.teacherJuri2;
  7342. this.ManAarray = [];
  7343. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  7344. if (_user.indexOf(this.userid) == -1) {
  7345. _user.push(this.userid);
  7346. }
  7347. if (_user.indexOf(this.courseUserid) == -1) {
  7348. _user.push(this.courseUserid);
  7349. }
  7350. let params = {
  7351. uid: _user.join(","),
  7352. };
  7353. this.ajax
  7354. .get(this.$store.state.api + "getAllUserById", params)
  7355. .then((res) => {
  7356. let teacherJuri = res.data[0];
  7357. this.ManAarray = teacherJuri;
  7358. })
  7359. .catch((err) => {
  7360. console.error(err);
  7361. });
  7362. },
  7363. previewImg(url) {
  7364. this.$hevueImgPreview(url);
  7365. },
  7366. btnDisplay(bool){
  7367. this.isBtnDisplay = bool
  7368. },
  7369. scrollChange() {
  7370. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  7371. // document.querySelector('.course_left').scrollHeight
  7372. // document.querySelector('.stepsBottom2').scrollHeight
  7373. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  7374. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  7375. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  7376. let maxheight = $('.whiteBg')[0].offsetHeight +$('.whiteBg')[1].offsetHeight + 120
  7377. let top = $(".rightBox")[0].scrollTop - maxheight;
  7378. // if (top < client) {
  7379. // $('.stepsBottom2')[0].style.position = 'absolute'
  7380. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  7381. // // $('.stepsBottom2')[0].style.top = client + 'px'
  7382. // } else
  7383. if (top > 0) {
  7384. let top = $(".rightBox")[0].offsetTop;
  7385. $(".stepsBottom2")[0].style.position = "fixed";
  7386. $(".stepsBottom2")[0].style.top = top + "px";
  7387. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  7388. // $('.stepsBottom2')[0].style.top = top + 'px'
  7389. } else {
  7390. $(".stepsBottom2")[0].style.position = "absolute";
  7391. $(".stepsBottom2")[0].style.top = "0px";
  7392. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  7393. }
  7394. const clientHeight = $(".rightBox")[0].clientHeight;
  7395. const scrollTop = $(".rightBox")[0].scrollTop;
  7396. const scrollHeight = $(".rightBox")[0].scrollHeight;
  7397. if ((clientHeight + scrollTop > (scrollHeight-10)) && (top > 0)) {
  7398. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  7399. }
  7400. },
  7401. handleCheckAllChange(val) {
  7402. this.checkedCities = val ? cityOptions : [];
  7403. this.isIndeterminate = false;
  7404. },
  7405. handleCheckedCitiesChange(value) {
  7406. let checkedCount = value.length;
  7407. this.checkAll = checkedCount === this.cities.length;
  7408. this.isIndeterminate =
  7409. checkedCount > 0 && checkedCount < this.cities.length;
  7410. },
  7411. addHw(e) {
  7412. var el = e.currentTarget;
  7413. el.getElementsByTagName("input")[0].click();
  7414. },
  7415. change(val) {
  7416. if(this.dialogVisible1){
  7417. this.tdetail = val
  7418. }else if(this.dialogVisible6){
  7419. this.AttText.text = val
  7420. }else if(this.dialogVisible2){
  7421. this.cTemplate = val
  7422. }else if(this.dialogVisibleTable){
  7423. this.tableJson.text = val
  7424. }
  7425. this.$forceUpdate();
  7426. console.log(val);
  7427. },
  7428. change2(val) {
  7429. console.log(val);
  7430. this.$forceUpdate();
  7431. },
  7432. handleClose(done) {
  7433. done();
  7434. },
  7435. closePan(tool){
  7436. if(tool == 15){
  7437. if(JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)){
  7438. this.dialogVisible8 = false
  7439. }else{
  7440. this.closeConfirm(tool);
  7441. }
  7442. }else if(tool == 4){
  7443. if(JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)){
  7444. this.dialogVisible5 = false
  7445. }else{
  7446. this.closeConfirm(tool);
  7447. }
  7448. }else if(tool == 45){
  7449. if(JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)){
  7450. this.dialogVisibleChoice = false
  7451. }else{
  7452. this.closeConfirm(tool);
  7453. }
  7454. }else if(tool == 41){
  7455. if(JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)){
  7456. this.dialogVisibleSelect = false
  7457. }else{
  7458. this.closeConfirm(tool);
  7459. }
  7460. }else if(tool == 47){
  7461. if(JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)){
  7462. this.dialogVisibleSentence = false
  7463. }else{
  7464. this.closeConfirm(tool);
  7465. }
  7466. }
  7467. },
  7468. closeConfirm(tool){
  7469. this
  7470. .$confirm("是否保存已编辑内容?", "提示", {
  7471. confirmButtonText: "保存",
  7472. cancelButtonText: "不保存",
  7473. type: "warning",
  7474. })
  7475. .then(() => {
  7476. if(tool == 15){
  7477. this.addAnswer();
  7478. }else if(tool == 4){
  7479. this.addAsk();
  7480. }else if(tool == 45){
  7481. this.addTest();
  7482. }else if(tool == 41){
  7483. this.addSelectAnswer();
  7484. }else if(tool == 47){
  7485. this.addSentenceTool();
  7486. }
  7487. })
  7488. .catch(() => {
  7489. if(tool == 15){
  7490. this.dialogVisible8 = false;
  7491. }else if(tool == 4){
  7492. this.dialogVisible5 = false;
  7493. }else if(tool == 45){
  7494. this.dialogVisibleChoice = false;
  7495. }else if(tool == 41){
  7496. this.dialogVisibleSelect = false;
  7497. }else if(tool == 47){
  7498. this.dialogVisibleSentence = false;
  7499. }
  7500. });
  7501. },
  7502. imgChange2(i, j) {
  7503. var _tmp = this.testJson.testJson[i].checkList[j];
  7504. this.noneBtnImg = _tmp.length >= 1;
  7505. },
  7506. imgChange3(i) {
  7507. var _tmp = this.testJson.testJson[i];
  7508. this.noneBtnImg = _tmp.length >= 1;
  7509. },
  7510. imgChange1(file, fileList, type, itemTaskIndex) {
  7511. if (type == 1) {
  7512. var _tmp = this.cover;
  7513. } else if (
  7514. type == 2 ||
  7515. type == 3 ||
  7516. type == 6 ||
  7517. type == 7 ||
  7518. type == 8
  7519. ) {
  7520. var _tmp =
  7521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7522. .chapterData;
  7523. } else if (type == 4) {
  7524. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  7525. } else {
  7526. var _tmp =
  7527. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7528. .homeworkList;
  7529. }
  7530. this.noneBtnImg = _tmp.length >= 1;
  7531. },
  7532. goTo(path) {
  7533. this.$router.push(path);
  7534. },
  7535. guid() {
  7536. var _num,
  7537. i,
  7538. _guid = "";
  7539. for (i = 0; i < 32; i++) {
  7540. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7541. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7542. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7543. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7544. _guid += "-";
  7545. }
  7546. }
  7547. return _guid;
  7548. },
  7549. lastSteps() {
  7550. this
  7551. .$confirm("是否保存已编辑内容?", "提示", {
  7552. confirmButtonText: "保存",
  7553. cancelButtonText: "不保存",
  7554. type: "warning",
  7555. })
  7556. .then(() => {
  7557. if (this.cid == "" || this.cid == undefined) {
  7558. if (this.courseName == "") {
  7559. this.$message.error("请补充填写课程名称");
  7560. return;
  7561. } else {
  7562. this.addWork();
  7563. }
  7564. } else {
  7565. if (this.courseName == "") {
  7566. this.$message.error("请补充填写课程名称");
  7567. return;
  7568. } else {
  7569. if (this.userid != this.courseUserid && this.role != "1") {
  7570. this.updateWork2();
  7571. } else {
  7572. this.updateWork();
  7573. }
  7574. }
  7575. }
  7576. })
  7577. .catch(() => {
  7578. this.goTo(
  7579. "/course?userid=" +
  7580. this.userid +
  7581. "&oid=" +
  7582. this.oid +
  7583. "&org=" +
  7584. this.org +
  7585. "&role=" +
  7586. this.role
  7587. );
  7588. });
  7589. },
  7590. nextSteps() {
  7591. if (this.cid == "" || this.cid == undefined) {
  7592. if (this.courseName == "") {
  7593. this.$message.error("请补充填写课程名称");
  7594. return;
  7595. } else {
  7596. this.addWork();
  7597. }
  7598. } else {
  7599. if (this.courseName == "") {
  7600. this.$message.error("请补充填写课程名称");
  7601. return;
  7602. } else {
  7603. if (this.userid != this.courseUserid && this.role != "1") {
  7604. this.updateWork2();
  7605. } else {
  7606. this.updateWork();
  7607. }
  7608. }
  7609. }
  7610. this.$refs.stepBox.scrollTop = 0;
  7611. },
  7612. unitSet(i) {
  7613. this.unitIndex = i;
  7614. // this.$refs.rightboxR.scrollTop = 0;
  7615. },
  7616. time() {
  7617. if (!this.now) {
  7618. this.now = new Date().getTime();
  7619. return true;
  7620. } else {
  7621. let time = new Date().getTime();
  7622. if (time - this.now > 3000) {
  7623. this.now = time;
  7624. return true;
  7625. } else {
  7626. return false;
  7627. }
  7628. }
  7629. },
  7630. deleteUnit(i) {
  7631. var _this = this;
  7632. if (_this.time()) {
  7633. _this
  7634. .$confirm("确定删除此单元吗?", "提示", {
  7635. confirmButtonText: "确定",
  7636. cancelButtonText: "取消",
  7637. type: "warning",
  7638. })
  7639. .then(() => {
  7640. _this.isDelete = 2;
  7641. // _this.unitIndex = _this.unitIndex - 1;
  7642. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  7643. // _this.$message.success("删除成功");
  7644. })
  7645. .catch(() => {
  7646. return;
  7647. });
  7648. }
  7649. },
  7650. deleteWork(chapid) {
  7651. let params = [
  7652. {
  7653. cid: this.cid,
  7654. chapters: JSON.stringify(this.unitJson),
  7655. uid: this.userid,
  7656. chapid: chapid,
  7657. },
  7658. ];
  7659. this.ajax
  7660. .post(this.$store.state.api + "deleteWork", params)
  7661. .then((res) => {
  7662. this.$message({
  7663. message: "删除成功",
  7664. type: "success",
  7665. });
  7666. this.unitJson.splice(this.unitIndex, 1);
  7667. this.unitIndex = this.unitIndex - 1;
  7668. })
  7669. .catch((err) => {
  7670. this.$message.error("网络不佳");
  7671. console.error(err);
  7672. });
  7673. },
  7674. deleteTool(itemTaskIndex, i) {
  7675. var _this = this;
  7676. if (_this.time()) {
  7677. _this
  7678. .$confirm("确定删除此工具吗?", "提示", {
  7679. confirmButtonText: "确定",
  7680. cancelButtonText: "取消",
  7681. type: "warning",
  7682. })
  7683. .then(() => {
  7684. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  7685. itemTaskIndex
  7686. ].toolChoose.splice(i, 1);
  7687. _this.$message.success("删除成功");
  7688. })
  7689. .catch(() => {
  7690. return;
  7691. });
  7692. }
  7693. },
  7694. deleteSentence(i) {
  7695. var _this = this;
  7696. _this
  7697. .$confirm("确定删除此题目吗?", "提示", {
  7698. confirmButtonText: "确定",
  7699. cancelButtonText: "取消",
  7700. type: "warning",
  7701. })
  7702. .then(() => {
  7703. _this.sentenceList.splice(i, 1);
  7704. _this.$message.success("删除成功");
  7705. })
  7706. .catch(() => {
  7707. return;
  7708. });
  7709. },
  7710. deleteS(s, i, j) {
  7711. this.sentenceList[i].addSentence.splice(j, 1);
  7712. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  7713. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  7714. this.sentenceList[i].rightAnswer.splice(a, 1);
  7715. }
  7716. },
  7717. openT() {
  7718. window.parent.postMessage({ tools: "25" }, "*");
  7719. },
  7720. deleteTask(i) {
  7721. var _this = this;
  7722. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  7723. _this
  7724. .$confirm("确定删除此任务吗?", "提示", {
  7725. confirmButtonText: "确定",
  7726. cancelButtonText: "取消",
  7727. type: "warning",
  7728. })
  7729. .then(() => {
  7730. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  7731. _this.$message.success("删除成功");
  7732. // this.$nextTick(() => {
  7733. // $('.stepsBottom2')[0].style.transition = 'unset'
  7734. // setTimeout(() => {
  7735. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  7736. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  7737. // let top = $('.stepsBottom2')[0].offsetTop - 20
  7738. // if (top > client) {
  7739. // $('.stepsBottom2')[0].style.top = client + 'px'
  7740. // }
  7741. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  7742. // this.$forceUpdate()
  7743. // }, 500)
  7744. // })
  7745. })
  7746. .catch(() => {
  7747. return;
  7748. });
  7749. },
  7750. handlePictureCardPreview(file) {
  7751. this.dialogImageUrl = file.url;
  7752. },
  7753. clean(i, c) {
  7754. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  7755. },
  7756. handle_remove1(file, fileList, type) {
  7757. var _tmp = this.cover;
  7758. // for (var i = 0, len = _tmp.length; i < len; i++) {
  7759. // if (_tmp[i].uid == file.uid) {
  7760. // _tmp.splice(i, 1);
  7761. // break;
  7762. // }
  7763. // this.cover = _tmp;
  7764. // }
  7765. this.cover = [];
  7766. this.noneBtnImg = this.cover.length >= 1;
  7767. this.isSysPic = false;
  7768. this.isSysPic2 = false;
  7769. this.$forceUpdate();
  7770. },
  7771. addImg(e) {
  7772. var el = e.currentTarget;
  7773. el.getElementsByTagName("input")[0].click();
  7774. e.target.value = "";
  7775. },
  7776. addChaptersTools(i) {
  7777. this.chapTools = [
  7778. {
  7779. tools: [],
  7780. toolDetail: "",
  7781. },
  7782. ];
  7783. this.chapCount = i;
  7784. this.dialogVisible4 = true;
  7785. },
  7786. isNoFinsh() {
  7787. this.$message.warning("功能正在开发中");
  7788. },
  7789. addAttText(i) {
  7790. this.AttText = {
  7791. title: "",
  7792. text: "",
  7793. };
  7794. this.taskCount = i;
  7795. this.AttTextType = 0;
  7796. this.$forceUpdate();
  7797. this.dialogVisible6 = true;
  7798. setTimeout(() => {
  7799. this.$refs['fuInput'].focus();
  7800. }, 100);
  7801. },
  7802. openLine(i) {
  7803. this.line = "";
  7804. this.lineCount = i;
  7805. this.lineType = 0;
  7806. this.$forceUpdate();
  7807. this.dialogVisible7 = true;
  7808. },
  7809. pasteLine(i) {
  7810. navigator.clipboard
  7811. .readText()
  7812. .then((v) => {
  7813. console.log("获取剪贴板成功:", v);
  7814. const html = v;
  7815. const regex = /src="(.*?)"/g;
  7816. const match = regex.exec(html);
  7817. if (match && match[1]) {
  7818. console.log(match[1]);
  7819. this.$message.success("粘贴成功");
  7820. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7821. i
  7822. ].chapterData.push({
  7823. name: "链接",
  7824. title: "嵌入代码",
  7825. url: match[1],
  7826. type: 8,
  7827. });
  7828. } else {
  7829. // console.log("未找到包含 src 属性的 iframe");
  7830. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  7831. }
  7832. })
  7833. .catch((v) => {
  7834. console.log("获取剪贴板失败: ", v);
  7835. });
  7836. },
  7837. openSource(i) {
  7838. this.lineCount = i;
  7839. this.sourceData = {};
  7840. this.dialogVisibleSource = true;
  7841. this.updateSourcePan = false;
  7842. },
  7843. addSource() {
  7844. if (!Object.keys(this.sourceData).length) {
  7845. this.$message.error("请选择要上传的资源");
  7846. return;
  7847. }
  7848. let keys = Object.keys(this.sourceData);
  7849. for (var i = 0; i < keys.length; i++) {
  7850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7851. this.lineCount
  7852. ].chapterData.push({
  7853. name: "链接",
  7854. title: this.sourceData[keys[i]].name,
  7855. url: this.sourceData[keys[i]].url,
  7856. type: 14,
  7857. id:keys[i]
  7858. });
  7859. }
  7860. this.$forceUpdate();
  7861. this.dialogVisibleSource = false;
  7862. },
  7863. updateSource() {
  7864. if (!Object.keys(this.sourceData).length) {
  7865. this.$message.error("请选择要上传的资源");
  7866. return;
  7867. }
  7868. let keys = Object.keys(this.sourceData);
  7869. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7870. this.taskCount
  7871. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  7872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7873. this.taskCount
  7874. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  7875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7876. this.taskCount
  7877. ].chapterData[this.lineCount].id = keys[0];
  7878. this.updateSourcePan = false;
  7879. this.$forceUpdate();
  7880. this.dialogVisibleSource = false;
  7881. },
  7882. deleteM(i, j) {
  7883. this.testJson.testJson[i].timuList.splice(j, 1);
  7884. },
  7885. beforeUploadTiMu(event, i) {
  7886. const loading = this.openLoading();
  7887. var file = event.target.files[0];
  7888. var credentials = {
  7889. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7890. secretAccessKey: "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",
  7891. }; //秘钥形式的登录上传
  7892. window.AWS.config.update(credentials);
  7893. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7894. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7895. var _this = this;
  7896. if (file) {
  7897. var params = {
  7898. Key:
  7899. file.name.split(".")[0] +
  7900. new Date().getTime() +
  7901. "." +
  7902. file.name.split(".")[file.name.split(".").length - 1],
  7903. ContentType: file.type,
  7904. Body: file,
  7905. "Access-Control-Allow-Credentials": "*",
  7906. ACL: "public-read",
  7907. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7908. var options = {
  7909. partSize: 2048 * 1024 * 1024,
  7910. queueSize: 2,
  7911. leavePartsOnError: true,
  7912. };
  7913. bucket
  7914. .upload(params, options)
  7915. .on("httpUploadProgress", function (evt) {
  7916. //这里可以写进度条
  7917. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7918. })
  7919. .send(function (err, data) {
  7920. loading.close();
  7921. if (err) {
  7922. _this.$message.error("上传失败");
  7923. } else {
  7924. if (_this.testJson.testJson[i].timuList) {
  7925. _this.testJson.testJson[i].timuList.push({
  7926. src: data.Location,
  7927. });
  7928. } else {
  7929. _this.testJson.testJson[i].timuList = [];
  7930. _this.testJson.testJson[i].timuList.push({
  7931. src: data.Location,
  7932. });
  7933. }
  7934. _this.imgChange3(i);
  7935. _this.$forceUpdate();
  7936. }
  7937. });
  7938. }
  7939. },
  7940. beforeUploadTi(event, i, j) {
  7941. const loading = this.openLoading();
  7942. var file = event.target.files[0];
  7943. var credentials = {
  7944. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7945. secretAccessKey: "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",
  7946. }; //秘钥形式的登录上传
  7947. window.AWS.config.update(credentials);
  7948. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7949. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7950. var _this = this;
  7951. if (file) {
  7952. var params = {
  7953. Key:
  7954. file.name.split(".")[0] +
  7955. new Date().getTime() +
  7956. "." +
  7957. file.name.split(".")[file.name.split(".").length - 1],
  7958. ContentType: file.type,
  7959. Body: file,
  7960. "Access-Control-Allow-Credentials": "*",
  7961. ACL: "public-read",
  7962. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7963. var options = {
  7964. partSize: 2048 * 1024 * 1024,
  7965. queueSize: 2,
  7966. leavePartsOnError: true,
  7967. };
  7968. bucket
  7969. .upload(params, options)
  7970. .on("httpUploadProgress", function (evt) {
  7971. //这里可以写进度条
  7972. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7973. })
  7974. .send(function (err, data) {
  7975. loading.close();
  7976. if (err) {
  7977. _this.$message.error("上传失败");
  7978. } else {
  7979. _this.testJson.testJson[i].checkList[j] = {};
  7980. _this.testJson.testJson[i].checkList[j].src = data.Location;
  7981. _this.testJson.testJson[i].checkList[j].imgType = 1;
  7982. _this.imgChange2(i, j);
  7983. _this.$forceUpdate();
  7984. }
  7985. });
  7986. }
  7987. },
  7988. beforeUpload1(event, type) {
  7989. // const loading = this.openLoading();
  7990. var file = event.target.files[0];
  7991. var credentials = {
  7992. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7993. secretAccessKey: "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",
  7994. }; //秘钥形式的登录上传
  7995. window.AWS.config.update(credentials);
  7996. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7997. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7998. var _this = this;
  7999. if (file) {
  8000. var params = {
  8001. Key:
  8002. file.name.split(".")[0] +
  8003. new Date().getTime() +
  8004. "." +
  8005. file.name.split(".")[file.name.split(".").length - 1],
  8006. ContentType: file.type,
  8007. Body: file,
  8008. "Access-Control-Allow-Credentials": "*",
  8009. ACL: "public-read",
  8010. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8011. var options = {
  8012. partSize: 2048 * 1024 * 1024,
  8013. queueSize: 2,
  8014. leavePartsOnError: true,
  8015. };
  8016. bucket
  8017. .upload(params, options)
  8018. .on("httpUploadProgress", function (evt) {
  8019. //这里可以写进度条
  8020. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8021. })
  8022. .send(function (err, data) {
  8023. // loading.close();
  8024. if (err) {
  8025. // var a = _this.$refs.upload1.uploadFiles;
  8026. // a.splice(a.length - 1, a.length);
  8027. _this.$message.error("上传失败");
  8028. } else {
  8029. _this.cover.push({
  8030. name: file.name,
  8031. url: data.Location,
  8032. uid: file.uid,
  8033. });
  8034. _this.imgChange1(null, null, 1, null);
  8035. _this.choosePicVisible = false;
  8036. console.log(data.Location);
  8037. }
  8038. });
  8039. }
  8040. },
  8041. beforeUploadSelect(event, type) {
  8042. // const loading = this.openLoading();
  8043. var file = event.target.files[0];
  8044. var credentials = {
  8045. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8046. secretAccessKey: "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",
  8047. }; //秘钥形式的登录上传
  8048. window.AWS.config.update(credentials);
  8049. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8050. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8051. var _this = this;
  8052. if (file) {
  8053. var params = {
  8054. Key:
  8055. file.name.split(".")[0] +
  8056. new Date().getTime() +
  8057. "." +
  8058. file.name.split(".")[file.name.split(".").length - 1],
  8059. ContentType: file.type,
  8060. Body: file,
  8061. "Access-Control-Allow-Credentials": "*",
  8062. ACL: "public-read",
  8063. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8064. var options = {
  8065. partSize: 2048 * 1024 * 1024,
  8066. queueSize: 2,
  8067. leavePartsOnError: true,
  8068. };
  8069. bucket
  8070. .upload(params, options)
  8071. .on("httpUploadProgress", function (evt) {
  8072. //这里可以写进度条
  8073. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8074. })
  8075. .send(function (err, data) {
  8076. // loading.close();
  8077. if (err) {
  8078. _this.$message.error("上传失败");
  8079. } else {
  8080. _this.selectJson.url = data.Location;
  8081. console.log(data.Location);
  8082. }
  8083. });
  8084. }
  8085. },
  8086. chooseSysPic(p) {
  8087. this.cover = []
  8088. setTimeout(() => {
  8089. this.cover[0] = {
  8090. name: "系统图片.png",
  8091. url: p,
  8092. };
  8093. this.imgChange1(null, null, 1, null);
  8094. this.$forceUpdate();
  8095. }, 0);
  8096. this.isSysPic = true;
  8097. this.isSysPic2 = false;
  8098. this.sysPicVisible = false;
  8099. this.$forceUpdate();
  8100. },
  8101. chooseSysPic2(p) {
  8102. this.cover = []
  8103. setTimeout(() => {
  8104. this.cover[0] = {
  8105. name: "网络图片.png",
  8106. url: p,
  8107. };
  8108. this.imgChange1(null, null, 1, null);
  8109. this.$forceUpdate();
  8110. }, 0);
  8111. this.isSysPic2 = true;
  8112. this.isSysPic = false;
  8113. this.sysPicVisible2 = false;
  8114. this.$forceUpdate();
  8115. },
  8116. beforeUpload(data) {
  8117. this.$refs.upload1.uploadFiles;
  8118. this.uploadLoading1 = true;
  8119. var file = data.file;
  8120. var credentials = {
  8121. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8122. secretAccessKey: "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",
  8123. }; //秘钥形式的登录上传
  8124. window.AWS.config.update(credentials);
  8125. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8126. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8127. var _this = this;
  8128. if (file) {
  8129. var params = {
  8130. Key:
  8131. file.name.split(".")[0] +
  8132. new Date().getTime() +
  8133. "." +
  8134. file.name.split(".")[file.name.split(".").length - 1],
  8135. ContentType: file.type,
  8136. Body: file,
  8137. "Access-Control-Allow-Credentials": "*",
  8138. ACL: "public-read",
  8139. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8140. var options = {
  8141. partSize: 2048 * 1024 * 1024,
  8142. queueSize: 2,
  8143. leavePartsOnError: true,
  8144. };
  8145. bucket
  8146. .upload(params, options)
  8147. .on("httpUploadProgress", function (evt) {
  8148. //这里可以写进度条
  8149. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8150. })
  8151. .send(function (err, data) {
  8152. _this.uploadLoading1 = false;
  8153. if (err) {
  8154. // var a = _this.$refs.upload1.uploadFiles;
  8155. // a.splice(a.length - 1, a.length);
  8156. _this.$message.error("上传失败");
  8157. } else {
  8158. //上传成功处理
  8159. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  8160. name: file.name,
  8161. url: data.Location,
  8162. uid: file.uid,
  8163. });
  8164. _this.imgChange();
  8165. console.log(data.Location);
  8166. }
  8167. });
  8168. }
  8169. },
  8170. onExceed() {
  8171. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  8172. },
  8173. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  8174. // const loading = this.openLoading();
  8175. var file = event.target.files[0];
  8176. var credentials = {
  8177. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8178. secretAccessKey: "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",
  8179. }; //秘钥形式的登录上传
  8180. window.AWS.config.update(credentials);
  8181. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8182. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8183. var _this = this;
  8184. if (type == 3) {
  8185. var b = [
  8186. "DOC",
  8187. "DOCX",
  8188. "DOCM",
  8189. "DOTM",
  8190. "DOTX",
  8191. "PPTX",
  8192. "PPSX",
  8193. "PPT",
  8194. "PPS",
  8195. "PPTM",
  8196. "POTM",
  8197. "PPAM",
  8198. "POTX",
  8199. "PPSM",
  8200. ];
  8201. if (
  8202. b.indexOf(
  8203. file.name
  8204. .split(".")
  8205. [file.name.split(".").length - 1].toLocaleUpperCase()
  8206. ) != -1
  8207. ) {
  8208. if (file.size / 1024 / 1024 > 80) {
  8209. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8210. this.inputShow = true;
  8211. // var a = _this.$refs.upload1.uploadFiles;
  8212. // a.splice(a.length - 1, a.length);
  8213. // loading.close();
  8214. return;
  8215. }
  8216. } else if (
  8217. file.name
  8218. .split(".")
  8219. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8220. ) {
  8221. if (file.size / 1024 / 1024 > 80) {
  8222. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8223. this.inputShow = true;
  8224. // var a = _this.$refs.upload1.uploadFiles;
  8225. // a.splice(a.length - 1, a.length);
  8226. // loading.close();
  8227. return;
  8228. }
  8229. }
  8230. }
  8231. this.inputShow = false;
  8232. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8233. itemTaskIndex
  8234. ].progress = 0;
  8235. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8236. itemTaskIndex
  8237. ].proVisible = true;
  8238. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8239. itemTaskIndex
  8240. ].isFinishSize = 0;
  8241. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8242. itemTaskIndex
  8243. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8244. _this.$forceUpdate();
  8245. if (file) {
  8246. var params = {
  8247. Key:
  8248. file.name.split(".")[0] +
  8249. new Date().getTime() +
  8250. "." +
  8251. file.name.split(".")[file.name.split(".").length - 1],
  8252. ContentType: file.type,
  8253. Body: file,
  8254. "Access-Control-Allow-Credentials": "*",
  8255. ACL: "public-read",
  8256. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8257. var options = {
  8258. partSize: 2048 * 1024 * 1024,
  8259. queueSize: 2,
  8260. leavePartsOnError: true,
  8261. };
  8262. bucket
  8263. .upload(params, options)
  8264. .on("httpUploadProgress", function (evt) {
  8265. //这里可以写进度条
  8266. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8267. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8268. itemTaskIndex
  8269. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8270. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8271. itemTaskIndex
  8272. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8273. _this.$forceUpdate();
  8274. })
  8275. .send(function (err, data) {
  8276. // loading.close();
  8277. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8278. itemTaskIndex
  8279. ].progress = 100;
  8280. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8281. itemTaskIndex
  8282. ].isFinishSize =
  8283. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8284. itemTaskIndex
  8285. ].isAllSize;
  8286. _this.$forceUpdate();
  8287. setTimeout(() => {
  8288. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8289. itemTaskIndex
  8290. ].proVisible = false;
  8291. _this.$forceUpdate();
  8292. }, 1000);
  8293. _this.inputShow = true;
  8294. if (err) {
  8295. // var a = _this.$refs.upload1.uploadFiles;
  8296. // a.splice(a.length - 1, a.length);
  8297. _this.$message.error("上传失败");
  8298. } else {
  8299. if (type == 13) {
  8300. let _type = 2;
  8301. var imgA = [
  8302. "png",
  8303. "jpg",
  8304. "jpeg",
  8305. "bmp",
  8306. "gif",
  8307. "webp",
  8308. "psd",
  8309. "svg",
  8310. "tiff",
  8311. ];
  8312. var fileA = [
  8313. "PDF",
  8314. "DOC",
  8315. "DOCX",
  8316. "DOCM",
  8317. "DOTM",
  8318. "DOTX",
  8319. "PPTX",
  8320. "PPSX",
  8321. "PPT",
  8322. "PPS",
  8323. "PPTM",
  8324. "POTM",
  8325. "PPAM",
  8326. "POTX",
  8327. "PPSM",
  8328. "XLSX",
  8329. "XLS",
  8330. ];
  8331. var videoA = [
  8332. "AVI",
  8333. "NAVI",
  8334. "MPEG",
  8335. "ASF",
  8336. "MOV",
  8337. "WMV",
  8338. "3GP",
  8339. "RM",
  8340. "RMVB",
  8341. "FLV",
  8342. "F4V",
  8343. "H.264",
  8344. "H.265",
  8345. "REAL VIDEO",
  8346. "MKV",
  8347. "WebM",
  8348. "HDDVD",
  8349. "MP4",
  8350. "MPG",
  8351. "M4V",
  8352. "MGV",
  8353. "OGV",
  8354. "QTM",
  8355. "STR",
  8356. "AMC",
  8357. "DVX",
  8358. "EVO",
  8359. "DAT",
  8360. "OGG",
  8361. "OGM",
  8362. ];
  8363. if (
  8364. fileA.indexOf(
  8365. data.Location.split(".")[
  8366. data.Location.split(".").length - 1
  8367. ].toLocaleUpperCase()
  8368. ) != -1
  8369. ) {
  8370. _type = 3;
  8371. } else if (
  8372. videoA.indexOf(
  8373. data.Location.split(".")[
  8374. data.Location.split(".").length - 1
  8375. ].toLocaleUpperCase()
  8376. ) != -1
  8377. ) {
  8378. _type = 2;
  8379. } else if (
  8380. imgA.indexOf(
  8381. data.Location.split(".")[
  8382. data.Location.split(".").length - 1
  8383. ].toLocaleLowerCase()
  8384. ) != -1
  8385. ) {
  8386. _type = 13;
  8387. } else {
  8388. _type = 12;
  8389. }
  8390. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8391. itemTaskIndex
  8392. ].chapterData.push({
  8393. name: file.name,
  8394. url: data.Location,
  8395. uid: file.uid,
  8396. type: _type,
  8397. });
  8398. _this.imgChange1(null, null, _type, itemTaskIndex);
  8399. } else if (type == 2 || type == 3 || type == 12) {
  8400. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8401. itemTaskIndex
  8402. ].chapterData.push({
  8403. name: file.name,
  8404. url: data.Location,
  8405. uid: file.uid,
  8406. type: type,
  8407. });
  8408. _this.imgChange1(null, null, type, itemTaskIndex);
  8409. } else if (type == 4) {
  8410. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8411. itemTaskIndex
  8412. ].fileList1.push({
  8413. name: file.name,
  8414. url: data.Location,
  8415. uid: file.uid,
  8416. });
  8417. _this.imgChange1(null, null, type, itemTaskIndex);
  8418. } else if (type == 5) {
  8419. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8420. itemTaskIndex
  8421. ].homeworkList.push({
  8422. name: file.name,
  8423. url: data.Location,
  8424. uid: file.uid,
  8425. });
  8426. _this.imgChange1(null, null, type, itemTaskIndex);
  8427. }
  8428. console.log(data.Location);
  8429. }
  8430. });
  8431. }
  8432. },
  8433. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  8434. // const loading = this.openLoading();
  8435. var file = event.target.files[0];
  8436. var credentials = {
  8437. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  8438. secretAccessKey: "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",
  8439. }; //秘钥形式的登录上传
  8440. window.AWS.config.update(credentials);
  8441. window.AWS.config.region = "cn-northwest-1"; //设置区域
  8442. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  8443. var _this = this;
  8444. if (type == 3) {
  8445. var b = [
  8446. "DOC",
  8447. "DOCX",
  8448. "DOCM",
  8449. "DOTM",
  8450. "DOTX",
  8451. "PPTX",
  8452. "PPSX",
  8453. "PPT",
  8454. "PPS",
  8455. "PPTM",
  8456. "POTM",
  8457. "PPAM",
  8458. "POTX",
  8459. "PPSM",
  8460. ];
  8461. if (
  8462. b.indexOf(
  8463. file.name
  8464. .split(".")
  8465. [file.name.split(".").length - 1].toLocaleUpperCase()
  8466. ) != -1
  8467. ) {
  8468. if (file.size / 1024 / 1024 > 80) {
  8469. this.$message.error("上传文件大于80兆,请重新选择文件!");
  8470. this.inputShow = true;
  8471. // var a = _this.$refs.upload1.uploadFiles;
  8472. // a.splice(a.length - 1, a.length);
  8473. // loading.close();
  8474. return;
  8475. }
  8476. } else if (
  8477. file.name
  8478. .split(".")
  8479. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  8480. ) {
  8481. if (file.size / 1024 / 1024 > 80) {
  8482. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  8483. this.inputShow = true;
  8484. // var a = _this.$refs.upload1.uploadFiles;
  8485. // a.splice(a.length - 1, a.length);
  8486. // loading.close();
  8487. return;
  8488. }
  8489. }
  8490. }
  8491. this.inputShow = false;
  8492. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8493. itemTaskIndex
  8494. ].progress = 0;
  8495. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8496. itemTaskIndex
  8497. ].proVisible = true;
  8498. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8499. itemTaskIndex
  8500. ].isFinishSize = 0;
  8501. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8502. itemTaskIndex
  8503. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  8504. _this.$forceUpdate();
  8505. if (file) {
  8506. var params = {
  8507. Key:
  8508. file.name.split(".")[0] +
  8509. new Date().getTime() +
  8510. "." +
  8511. file.name.split(".")[file.name.split(".").length - 1],
  8512. ContentType: file.type,
  8513. Body: file,
  8514. "Access-Control-Allow-Credentials": "*",
  8515. ACL: "public-read",
  8516. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  8517. var options = {
  8518. partSize: 2048 * 1024 * 1024,
  8519. queueSize: 2,
  8520. leavePartsOnError: true,
  8521. };
  8522. bucket
  8523. .upload(params, options)
  8524. .on("httpUploadProgress", function (evt) {
  8525. //这里可以写进度条
  8526. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  8527. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8528. itemTaskIndex
  8529. ].progress = parseInt((evt.loaded / evt.total) * 100);
  8530. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8531. itemTaskIndex
  8532. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  8533. _this.$forceUpdate();
  8534. })
  8535. .send(function (err, data) {
  8536. // loading.close();
  8537. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8538. itemTaskIndex
  8539. ].progress = 100;
  8540. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8541. itemTaskIndex
  8542. ].isFinishSize =
  8543. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8544. itemTaskIndex
  8545. ].isAllSize;
  8546. _this.$forceUpdate();
  8547. setTimeout(() => {
  8548. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8549. itemTaskIndex
  8550. ].proVisible = false;
  8551. _this.$forceUpdate();
  8552. }, 1000);
  8553. _this.inputShow = true;
  8554. if (err) {
  8555. // var a = _this.$refs.upload1.uploadFiles;
  8556. // a.splice(a.length - 1, a.length);
  8557. _this.$message.error("上传失败");
  8558. } else {
  8559. if (type == 2 || type == 3) {
  8560. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8561. itemTaskIndex
  8562. ].chapterData.push({
  8563. name: file.name,
  8564. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8565. // itemTaskIndex
  8566. // ].chapterData.length+1),
  8567. url: data.Location,
  8568. uid: file.uid,
  8569. type: type,
  8570. text: string,
  8571. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  8572. // itemTaskIndex
  8573. // ].chapterData.length + 1),
  8574. });
  8575. _this.imgChange1(null, null, type, itemTaskIndex);
  8576. } else if (type == 4) {
  8577. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8578. itemTaskIndex
  8579. ].fileList1.push({
  8580. name: file.name,
  8581. url: data.Location,
  8582. uid: file.uid,
  8583. });
  8584. _this.imgChange1(null, null, type, itemTaskIndex);
  8585. } else if (type == 5) {
  8586. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  8587. itemTaskIndex
  8588. ].homeworkList.push({
  8589. name: file.name,
  8590. url: data.Location,
  8591. uid: file.uid,
  8592. });
  8593. _this.imgChange1(null, null, type, itemTaskIndex);
  8594. }
  8595. console.log(data.Location);
  8596. }
  8597. });
  8598. }
  8599. },
  8600. addunit() {
  8601. this.unitJson.push({
  8602. dyName: "", //单元标题
  8603. isUpdate: 1,
  8604. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  8605. chapterInfo: [
  8606. {
  8607. isread: false,
  8608. chapterid: this.guid(),
  8609. title: "",
  8610. courseName: "",
  8611. taskJson: [
  8612. {
  8613. task: "",
  8614. taskDetail: "",
  8615. chapterData: [],
  8616. toolText: "",
  8617. toolChoose: [
  8618. {
  8619. tool: [],
  8620. toolDetail: "",
  8621. toolType: 0,
  8622. askCount: 1,
  8623. askTitle: "",
  8624. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8625. },
  8626. ],
  8627. isShowTools: false,
  8628. askCount: 1,
  8629. isFold: 0,
  8630. askTitle: "",
  8631. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8632. checkJson: [{ checkCount: [], checkPerent: [] }],
  8633. homeworkList: [],
  8634. },
  8635. ],
  8636. itemCount: 1,
  8637. fileList1: [],
  8638. video: [],
  8639. testData: [],
  8640. pData: [],
  8641. templateArray: [],
  8642. },
  8643. ],
  8644. });
  8645. this.addindex = this.unitJson.length - 1;
  8646. setTimeout(() => {
  8647. this.unitIndex = this.unitJson.length - 1;
  8648. this.unitSet(this.unitIndex);
  8649. }, 0);
  8650. },
  8651. addToolFun(itemTaskIndex) {
  8652. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8653. itemTaskIndex
  8654. ].toolChoose.push({
  8655. tool: [],
  8656. toolDetail: "",
  8657. toolType: 0,
  8658. askCount: 1,
  8659. askTitle: "",
  8660. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8661. });
  8662. },
  8663. addTaskBorder() {
  8664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  8665. task: "",
  8666. taskDetail: "",
  8667. chapterData: [],
  8668. toolChoose: [
  8669. {
  8670. tool: [],
  8671. toolDetail: "",
  8672. toolType: 0,
  8673. askCount: 1,
  8674. askTitle: "",
  8675. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8676. },
  8677. ],
  8678. toolText: "",
  8679. isShowTools: false,
  8680. askCount: 1,
  8681. isFold: 0,
  8682. askTitle: "",
  8683. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8684. checkJson: [{ checkCount: [], checkPerent: [] }],
  8685. homeworkList: [],
  8686. });
  8687. },
  8688. add(e, i) {
  8689. var el = e.currentTarget;
  8690. el.getElementsByTagName("input")[0].click();
  8691. },
  8692. fold(i, e, type) {
  8693. var a = e.currentTarget.parentElement.parentElement;
  8694. var b = e.currentTarget.parentElement;
  8695. if (type == 1) {
  8696. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  8697. a.className += " smallTaskBorder";
  8698. b.className += " funBlockTop";
  8699. } else {
  8700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  8701. a.className = "taskBorder";
  8702. b.className = "funBlock";
  8703. }
  8704. console.log(e);
  8705. },
  8706. fold2(i) {
  8707. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  8708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  8709. } else {
  8710. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  8711. }
  8712. setTimeout(() => {
  8713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  8714. setTimeout(() => {
  8715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*','')
  8716. }, 0);
  8717. }, 0);
  8718. this.$forceUpdate();
  8719. },
  8720. foldC(i) {
  8721. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  8722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  8723. } else {
  8724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  8725. }
  8726. this.$forceUpdate();
  8727. },
  8728. fold3(i,ti) {
  8729. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  8730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  8731. } else {
  8732. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  8733. }
  8734. this.$forceUpdate();
  8735. },
  8736. deleteHomeworkBox(unitIndex, index, i) {
  8737. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  8738. this.taskCount
  8739. ].homeworkList.splice(i, 1);
  8740. },
  8741. getStudent() {
  8742. let params = {
  8743. oid: this.oid,
  8744. cu: "",
  8745. cn: this.searchPeople,
  8746. };
  8747. this.ajax
  8748. .get(this.$store.state.api + "selectStudentAdd", params)
  8749. .then((res) => {
  8750. this.studentJuri = res.data[0];
  8751. })
  8752. .catch((err) => {
  8753. this.isLoading = false;
  8754. console.error(err);
  8755. });
  8756. },
  8757. getTeacher() {
  8758. let params = {
  8759. oid:
  8760. this.org && this.org != "undefined" && this.org != "null"
  8761. ? this.org
  8762. : this.oid,
  8763. cu: "",
  8764. cn: this.searchTN,
  8765. };
  8766. this.ajax
  8767. .get(
  8768. this.$store.state.api +
  8769. (this.org && this.org != "undefined" && this.org != "null"
  8770. ? "selectTeacherAddOrg"
  8771. : "selectTeacherAdd"),
  8772. params
  8773. )
  8774. .then((res) => {
  8775. let teacherJuri = res.data[0];
  8776. for (var i = 0; i < teacherJuri.length; i++) {
  8777. if (teacherJuri[i].userid == this.userid) {
  8778. teacherJuri.splice(i, 1);
  8779. break;
  8780. }
  8781. }
  8782. this.teacherJuri = teacherJuri;
  8783. })
  8784. .catch((err) => {
  8785. console.error(err);
  8786. });
  8787. },
  8788. searchStudent() {
  8789. this.getStudent();
  8790. },
  8791. selectGrage() {
  8792. let params = {
  8793. oid: this.oid,
  8794. };
  8795. this.ajax
  8796. .get(this.$store.state.api + "selectGrageBySchool", params)
  8797. .then((res) => {
  8798. this.gradeList = res.data[0];
  8799. })
  8800. .catch((err) => {
  8801. this.isLoading = false;
  8802. console.error(err);
  8803. });
  8804. },
  8805. //获取班级列表
  8806. getClass() {
  8807. let params = {
  8808. oid: this.oid,
  8809. gid: this.gradeId,
  8810. cn: this.classSearch,
  8811. };
  8812. this.ajax
  8813. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  8814. .then((res) => {
  8815. if (!this.grade.length) {
  8816. this.grade = res.data[0];
  8817. }
  8818. this.grade2 = res.data[0];
  8819. this.classJuri = res.data[0];
  8820. })
  8821. .catch((err) => {
  8822. this.isLoading = false;
  8823. console.error(err);
  8824. });
  8825. },
  8826. CourseType2Change(val) {
  8827. this.pTypeCheck = [];
  8828. for (var i = 0; i < this.CourseType2.length; i++) {
  8829. let typeA = this.CourseType2[i];
  8830. if (val.indexOf(typeA.name) != -1) {
  8831. this.pTypeCheck.push(...typeA.id);
  8832. }
  8833. }
  8834. },
  8835. getChapterData(e, i, j, ic, type) {
  8836. e.stopPropagation();
  8837. this.updataC = true;
  8838. this.icc = ic;
  8839. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  8840. console.log("还不能下载图片喔");
  8841. }
  8842. },
  8843. deleteChapterData(e, i, j, ic, taskI) {
  8844. e.stopPropagation();
  8845. let _this = this;
  8846. _this
  8847. .$confirm("确定删除此项?", "提示", {
  8848. confirmButtonText: "确定",
  8849. cancelButtonText: "取消",
  8850. type: "warning",
  8851. })
  8852. .then(() => {
  8853. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  8854. })
  8855. .catch(() => {
  8856. return;
  8857. });
  8858. },
  8859. updataVideoT(e, i, j, ic) {
  8860. // e.stopPropagation();
  8861. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  8862. // ic
  8863. // ].name = JSON.parse(JSON.stringify(e.target.value));
  8864. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  8865. ic
  8866. ].name;
  8867. this.taskCount = j;
  8868. this.lineCount = ic;
  8869. this.dialogVisibleupdataVideoT = true;
  8870. this.$forceUpdate();
  8871. },
  8872. updataVideoC(){
  8873. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  8874. this.dialogVisibleupdataVideoT = false;
  8875. this.$forceUpdate();
  8876. },
  8877. upCd(e, i, j, taskCount, ic) {
  8878. e.stopPropagation();
  8879. if (ic == 0) {
  8880. return;
  8881. }
  8882. var a =
  8883. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  8884. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  8885. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8886. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8887. this.$forceUpdate();
  8888. },
  8889. downCd(e, i, j, taskCount, ic) {
  8890. e.stopPropagation();
  8891. if (
  8892. ic ==
  8893. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  8894. 1
  8895. ) {
  8896. return;
  8897. }
  8898. var a =
  8899. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  8900. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  8901. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  8902. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  8903. this.$forceUpdate();
  8904. },
  8905. addWork() {
  8906. let cPan = 1;
  8907. for (var i = 0; i < this.unitJson.length; i++) {
  8908. for (
  8909. var j = 0;
  8910. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  8911. j++
  8912. ) {
  8913. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  8914. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  8915. if (
  8916. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  8917. ) {
  8918. for (
  8919. var z = 0;
  8920. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  8921. z++
  8922. ) {
  8923. if (
  8924. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  8925. .length
  8926. ) {
  8927. this.$message.error("请把工具添加完整");
  8928. cPan = 2;
  8929. break;
  8930. }
  8931. }
  8932. }
  8933. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  8934. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  8935. i
  8936. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  8937. return ele.value != "";
  8938. });
  8939. }
  8940. }
  8941. }
  8942. this.inputShow = true;
  8943. if (cPan == 2) {
  8944. return;
  8945. }
  8946. for (var i = 0; i < this.unitJson.length; i++) {
  8947. delete this.unitJson[i].isUpdate;
  8948. }
  8949. let params = [
  8950. {
  8951. uid: this.userid,
  8952. title: this.courseName.replace(/%/g, "%25"),
  8953. brief: this.courseText.replace(/%/g, "%25"),
  8954. cover:
  8955. this.cover.length > 0
  8956. ? JSON.stringify(this.cover)
  8957. : JSON.stringify([
  8958. {
  8959. name: "noBanner.jpg",
  8960. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  8961. uid: 1656409780264,
  8962. status: "success",
  8963. },
  8964. ]),
  8965. evaId: this.evalua,
  8966. astudent:
  8967. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  8968. see: this.isTeacherSee == true ? 1 : 0,
  8969. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  8970. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  8971. courseType: JSON.stringify(this.courseTypeId),
  8972. ateacher:
  8973. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  8974. inviteCode: JSON.stringify(this.inviteCode),
  8975. },
  8976. ];
  8977. this.ajax
  8978. .post(this.$store.state.api + "addWorkNew2E", params)
  8979. .then((res) => {
  8980. console.log(this.steps);
  8981. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  8982. this.$message({
  8983. message: "新增成功",
  8984. type: "success",
  8985. });
  8986. // }
  8987. this.number = res.data.ordernumber;
  8988. this.courseId = res.data.courseId;
  8989. this.cid = res.data.courseId;
  8990. this.courseUserid = this.userid;
  8991. this.islogin = true;
  8992. this.steps = 4;
  8993. })
  8994. .catch((err) => {
  8995. this.$message.error("网络不佳");
  8996. console.error(err);
  8997. });
  8998. },
  8999. goCourse() {
  9000. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  9001. },
  9002. updateWork2() {
  9003. let _unitIndex = this.unitIndex;
  9004. let cPan = 1;
  9005. for (
  9006. var j = 0;
  9007. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  9008. j++
  9009. ) {
  9010. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  9011. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  9012. j
  9013. ].proVisible2 = false;
  9014. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  9015. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  9016. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  9017. (ele) => {
  9018. return ele.value != "";
  9019. }
  9020. );
  9021. }
  9022. }
  9023. this.inputShow = true;
  9024. if (cPan == 2) {
  9025. return;
  9026. }
  9027. let params = [
  9028. {
  9029. cid: this.cid,
  9030. chapters: JSON.stringify(this.unitJson),
  9031. uid: this.userid,
  9032. unitIndex: _unitIndex,
  9033. },
  9034. ];
  9035. this.ajax
  9036. .post(this.$store.state.api + "updateWorkNew4", params)
  9037. .then((res) => {
  9038. this.$message({
  9039. message: "修改成功",
  9040. type: "success",
  9041. });
  9042. this.courseId = this.cid;
  9043. })
  9044. .catch((err) => {
  9045. this.$message.error("网络不佳");
  9046. console.error(err);
  9047. });
  9048. },
  9049. updateWork() {
  9050. let cPan = 1;
  9051. for (var i = 0; i < this.unitJson.length; i++) {
  9052. for (
  9053. var j = 0;
  9054. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  9055. j++
  9056. ) {
  9057. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  9058. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  9059. if (
  9060. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  9061. ) {
  9062. for (
  9063. var z = 0;
  9064. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  9065. z++
  9066. ) {
  9067. if (
  9068. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  9069. .length
  9070. ) {
  9071. this.$message.error("请把工具添加完整");
  9072. cPan = 2;
  9073. break;
  9074. }
  9075. }
  9076. }
  9077. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  9078. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  9079. i
  9080. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  9081. return ele.value != "";
  9082. });
  9083. }
  9084. }
  9085. }
  9086. this.inputShow = true;
  9087. if (cPan == 2) {
  9088. this.step--;
  9089. return;
  9090. }
  9091. for (var i = 0; i < this.unitJson.length; i++) {
  9092. delete this.unitJson[i].isUpdate;
  9093. }
  9094. let params = [
  9095. {
  9096. cid: this.cid,
  9097. title: this.courseName.replace(/%/g, "%25"),
  9098. brief: this.courseText.replace(/%/g, "%25"),
  9099. cover:
  9100. this.cover.length > 0
  9101. ? JSON.stringify(this.cover)
  9102. : JSON.stringify([
  9103. {
  9104. name: "noBanner.jpg",
  9105. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  9106. uid: 1656409780264,
  9107. status: "success",
  9108. },
  9109. ]),
  9110. evaId: this.evalua,
  9111. astudent:
  9112. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  9113. see: this.isTeacherSee == true ? 1 : 0,
  9114. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  9115. template: this.myWord != "undefined" ? this.myWord : [],
  9116. uid: this.userid,
  9117. courseType: JSON.stringify(this.courseTypeId),
  9118. ateacher:
  9119. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  9120. inviteCode: JSON.stringify(this.inviteCode),
  9121. },
  9122. ];
  9123. this.ajax
  9124. .post(this.$store.state.api + "updateWorkNew2", params)
  9125. .then((res) => {
  9126. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  9127. if (this.cidType == 1) {
  9128. this.$message({
  9129. message: "修改成功",
  9130. type: "success",
  9131. });
  9132. } else {
  9133. this.$message({
  9134. message: "新增成功",
  9135. type: "success",
  9136. });
  9137. }
  9138. // }
  9139. this.number = this.nbOrder;
  9140. this.courseId = this.cid;
  9141. this.steps = 4;
  9142. })
  9143. .catch((err) => {
  9144. this.$message.error("网络不佳");
  9145. console.error(err);
  9146. });
  9147. },
  9148. guid() {
  9149. var _num,
  9150. i,
  9151. _guid = "";
  9152. for (i = 0; i < 32; i++) {
  9153. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  9154. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  9155. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  9156. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  9157. _guid += "-";
  9158. }
  9159. }
  9160. return _guid;
  9161. },
  9162. insertWord() {
  9163. this.dialogVisible1 = true;
  9164. this.updateBoolean2 = false;
  9165. this.tTitle = "";
  9166. this.tdetail = "";
  9167. },
  9168. addWord() {
  9169. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  9170. name: this.tTitle,
  9171. content: this.tdetail,
  9172. uid: this.guid(),
  9173. });
  9174. this.dialogVisible1 = false;
  9175. },
  9176. upWord() {},
  9177. selectWord(uid, i, c) {
  9178. this.dialogVisible1 = true;
  9179. this.updateBoolean2 = true;
  9180. if (
  9181. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  9182. ) {
  9183. this.tTitle =
  9184. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  9185. this.tdetail =
  9186. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  9187. }
  9188. },
  9189. isAddPP() {
  9190. if (this.checkboxList.length > 0) {
  9191. this.$message({
  9192. message: "添加成功",
  9193. type: "success",
  9194. });
  9195. this.dialogVisible3 = false;
  9196. } else {
  9197. this.$message({
  9198. message: "请添加课程成员",
  9199. type: "error",
  9200. });
  9201. }
  9202. },
  9203. isAddClass() {
  9204. this.dialogVisibleClass = false;
  9205. },
  9206. isAddPPTeacher() {
  9207. this.dialogVisibleMember = false;
  9208. this.setMan();
  9209. },
  9210. getTemplate() {
  9211. this.ajax
  9212. .get(this.$store.state.api + "getCourseTemplateT", "")
  9213. .then((res) => {
  9214. this.templateArray = res.data[0];
  9215. this.getTemplateOid();
  9216. this.$forceUpdate();
  9217. })
  9218. .catch((err) => {});
  9219. },
  9220. getTemplateOid() {
  9221. let params = {
  9222. oid: this.oid,
  9223. };
  9224. this.ajax
  9225. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9226. .then((res) => {
  9227. if (res.data[0].length) {
  9228. this.templateArray = [...res.data[0], ...this.templateArray];
  9229. }
  9230. this.getTemplateOrg();
  9231. this.$forceUpdate();
  9232. })
  9233. .catch((err) => {});
  9234. },
  9235. getTemplateOrg() {
  9236. let params = {
  9237. oid: this.org,
  9238. };
  9239. this.ajax
  9240. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  9241. .then((res) => {
  9242. if (res.data[0].length) {
  9243. this.templateArray = [...res.data[0], ...this.templateArray];
  9244. }
  9245. this.$forceUpdate();
  9246. })
  9247. .catch((err) => {});
  9248. },
  9249. clearChoose() {
  9250. this.clearArray.splice(this.templateC.id, 1);
  9251. this.dialogVisible2 = false;
  9252. },
  9253. clearAttText() {
  9254. this.AttText = {
  9255. title: "",
  9256. text: "",
  9257. };
  9258. this.dialogVisible6 = false;
  9259. },
  9260. clearLine() {
  9261. this.line = "";
  9262. this.dialogVisible7 = false;
  9263. },
  9264. checkTemplate(res) {
  9265. let _this = this;
  9266. _this
  9267. .$confirm("确定选择此模板吗?", "提示", {
  9268. confirmButtonText: "确定",
  9269. cancelButtonText: "取消",
  9270. type: "warning",
  9271. })
  9272. .then(() => {
  9273. _this.unitJson = JSON.parse(res.chapters);
  9274. _this.steps++;
  9275. setTimeout(() => {
  9276. this.checkEva(this.checkId);
  9277. }, 1000);
  9278. })
  9279. .catch(() => {
  9280. return;
  9281. });
  9282. },
  9283. checkTemplate1(w) {
  9284. this.steps++;
  9285. },
  9286. checkTemplate2() {
  9287. let _this = this;
  9288. _this
  9289. .$confirm("确定选择空模板吗?", "提示", {
  9290. confirmButtonText: "确定",
  9291. cancelButtonText: "取消",
  9292. type: "warning",
  9293. })
  9294. .then(() => {
  9295. _this.unitIndex = 0;
  9296. _this.unitJson = [
  9297. {
  9298. dyName: "", //单元标题
  9299. chapterInfo: [
  9300. {
  9301. isread: false,
  9302. chapterid: this.guid(),
  9303. title: "",
  9304. courseName: "",
  9305. taskJson: [
  9306. {
  9307. task: "",
  9308. taskDetail: "",
  9309. chapterData: [],
  9310. toolText: "",
  9311. toolChoose: [
  9312. {
  9313. tool: [],
  9314. toolDetail: "",
  9315. toolType: 0,
  9316. askCount: 1,
  9317. askTitle: "",
  9318. askJson: [
  9319. { askstitle: "", askItem: 1, checkList: [] },
  9320. ],
  9321. },
  9322. ],
  9323. isShowTools: false,
  9324. askCount: 1,
  9325. isFold: 0,
  9326. askTitle: "",
  9327. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9328. checkJson: [{ checkCount: [], checkPerent: [] }],
  9329. homeworkList: [],
  9330. },
  9331. ],
  9332. itemCount: 1,
  9333. fileList1: [],
  9334. video: [],
  9335. testData: [],
  9336. pData: [],
  9337. templateArray: [],
  9338. },
  9339. ],
  9340. },
  9341. ];
  9342. this.steps++;
  9343. this.updateWork();
  9344. })
  9345. .catch(() => {
  9346. return;
  9347. });
  9348. },
  9349. checkTemplate3() {
  9350. let _this = this;
  9351. _this
  9352. .$confirm("确定选择简易模式吗?", "提示", {
  9353. confirmButtonText: "确定",
  9354. cancelButtonText: "取消",
  9355. type: "warning",
  9356. })
  9357. .then(() => {
  9358. _this.unitIndex = 0;
  9359. _this.unitJson = [
  9360. {
  9361. dyName: "", //单元标题
  9362. easy: 1,
  9363. chapterInfo: [
  9364. {
  9365. isread: false,
  9366. chapterid: this.guid(),
  9367. title: "",
  9368. courseName: "",
  9369. taskJson: [
  9370. {
  9371. task: "",
  9372. taskDetail: "",
  9373. chapterData: [],
  9374. toolText: "",
  9375. toolChoose: [
  9376. {
  9377. tool: [],
  9378. toolDetail: "",
  9379. toolType: 0,
  9380. askCount: 1,
  9381. askTitle: "",
  9382. askJson: [
  9383. { askstitle: "", askItem: 1, checkList: [] },
  9384. ],
  9385. },
  9386. ],
  9387. isShowTools: false,
  9388. askCount: 1,
  9389. isFold: 0,
  9390. askTitle: "",
  9391. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  9392. checkJson: [{ checkCount: [], checkPerent: [] }],
  9393. homeworkList: [],
  9394. },
  9395. ],
  9396. itemCount: 1,
  9397. fileList1: [],
  9398. video: [],
  9399. testData: [],
  9400. pData: [],
  9401. templateArray: [],
  9402. },
  9403. ],
  9404. },
  9405. ];
  9406. this.steps++;
  9407. this.updateWork();
  9408. })
  9409. .catch(() => {
  9410. return;
  9411. });
  9412. },
  9413. checkTemplate4() {
  9414. let _this = this;
  9415. _this
  9416. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  9417. confirmButtonText: "确定",
  9418. cancelButtonText: "取消",
  9419. type: "warning",
  9420. })
  9421. .then(() => {
  9422. _this.unitIndex = 0;
  9423. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  9424. this.steps++;
  9425. this.updateWork();
  9426. })
  9427. .catch(() => {
  9428. return;
  9429. });
  9430. },
  9431. wordNext() {
  9432. this.dialogVisible2 = false;
  9433. },
  9434. isAddOrUpdateAttText() {
  9435. if (this.AttTextType == 0) {
  9436. this.addAttTextMessage();
  9437. } else {
  9438. this.updateAttText();
  9439. }
  9440. },
  9441. isAddOrUpdateLine() {
  9442. if (!this.lineTitle) {
  9443. this.$message.error("请填写链接标题");
  9444. return;
  9445. }
  9446. if (this.lineType == 0) {
  9447. this.addLine();
  9448. } else {
  9449. this.updateLine();
  9450. }
  9451. },
  9452. addAttTextMessage() {
  9453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9454. this.taskCount
  9455. ].chapterData.push({
  9456. name: this.AttText.title,
  9457. url: this.AttText.text,
  9458. type: 6,
  9459. });
  9460. this.imgChange1(null, null, 6, this.taskCount);
  9461. this.dialogVisible6 = false;
  9462. },
  9463. selectAttText(itemTaskIndex, i) {
  9464. this.AttText.title =
  9465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9466. itemTaskIndex
  9467. ].chapterData[i].name;
  9468. this.AttText.text =
  9469. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9470. itemTaskIndex
  9471. ].chapterData[i].url;
  9472. this.taskCount = itemTaskIndex;
  9473. this.AttTextIndex = i;
  9474. this.AttTextType = 1;
  9475. this.dialogVisible6 = true;
  9476. },
  9477. updateAttText() {
  9478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9479. this.taskCount
  9480. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  9481. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9482. this.taskCount
  9483. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  9484. this.dialogVisible6 = false;
  9485. },
  9486. addLine() {
  9487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9488. this.lineCount
  9489. ].chapterData.push({
  9490. name: "链接",
  9491. title: this.lineTitle,
  9492. url: this.line,
  9493. type: 8,
  9494. });
  9495. this.imgChange1(null, null, 8, this.lineCount);
  9496. this.dialogVisible7 = false;
  9497. },
  9498. selectLine(itemTaskIndex, i) {
  9499. this.line =
  9500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9501. itemTaskIndex
  9502. ].chapterData[i].url;
  9503. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9504. itemTaskIndex
  9505. ].chapterData[i].title
  9506. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9507. .chapterData[i].title
  9508. : "";
  9509. this.taskCount = itemTaskIndex;
  9510. this.lineCount = i;
  9511. this.lineType = 1;
  9512. this.dialogVisible7 = true;
  9513. },
  9514. openUpdateSource(itemTaskIndex, i){
  9515. this.sourceData = {}
  9516. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  9517. this.sourceData[source.id] = {}
  9518. this.sourceData[source.id].name = source.title
  9519. this.sourceData[source.id].url = source.url
  9520. this.dialogVisibleSource = true;
  9521. this.updateSourcePan = true;
  9522. this.taskCount = itemTaskIndex;
  9523. this.lineCount = i;
  9524. },
  9525. updateLine() {
  9526. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9527. this.taskCount
  9528. ].chapterData[this.lineCount].url = this.line;
  9529. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9530. this.taskCount
  9531. ].chapterData[this.lineCount].title = this.lineTitle;
  9532. this.dialogVisible7 = false;
  9533. },
  9534. addPP() {
  9535. this.dialogVisible3 = true;
  9536. },
  9537. goTo(path) {
  9538. this.$router.push(path);
  9539. },
  9540. openTools(itemTaskIndex, i, toolIndex) {
  9541. this.toolIndex = toolIndex;
  9542. this.taskCount = itemTaskIndex;
  9543. if (i == 4) {
  9544. if (toolIndex == null) {
  9545. var a =
  9546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9547. .chapterData;
  9548. for (var i = 0; i < a.length; i++) {
  9549. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  9550. this.askJson =
  9551. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9552. itemTaskIndex
  9553. ].chapterData[i].askJson;
  9554. }
  9555. }
  9556. } else {
  9557. this.askJson = JSON.parse(
  9558. JSON.stringify(
  9559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9560. itemTaskIndex
  9561. ].toolChoose[toolIndex]
  9562. )
  9563. );
  9564. }
  9565. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  9566. this.dialogVisible5 = true;
  9567. } else if (i == 45) {
  9568. if (
  9569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9570. .toolChoose[toolIndex].testJson
  9571. ) {
  9572. this.testJson = JSON.parse(
  9573. JSON.stringify(
  9574. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9575. itemTaskIndex
  9576. ].toolChoose[toolIndex].testJson
  9577. )
  9578. );
  9579. } else {
  9580. var testJson = {
  9581. testCount: 1,
  9582. testTitle: "",
  9583. testJson: [
  9584. {
  9585. teststitle: "",
  9586. testItem: 1,
  9587. checkList: [],
  9588. timuList: [],
  9589. answer: [],
  9590. type: "1",
  9591. },
  9592. ],
  9593. };
  9594. this.testJson = testJson;
  9595. }
  9596. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  9597. this.dialogVisibleChoice = true;
  9598. } else if (i == 47) {
  9599. if (
  9600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9601. .toolChoose[toolIndex].sentenceList
  9602. ) {
  9603. this.sentenceList = JSON.parse(
  9604. JSON.stringify(
  9605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9606. itemTaskIndex
  9607. ].toolChoose[toolIndex].sentenceList
  9608. )
  9609. );
  9610. } else {
  9611. var sentenceList = [
  9612. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9613. ];
  9614. this.sentenceList = sentenceList;
  9615. }
  9616. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  9617. this.dialogVisibleSentence = true;
  9618. } else if (i == 48) {
  9619. if (
  9620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9621. .toolChoose[toolIndex].tableJson
  9622. ) {
  9623. this.tableJson = JSON.parse(
  9624. JSON.stringify(
  9625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9626. itemTaskIndex
  9627. ].toolChoose[toolIndex].tableJson
  9628. )
  9629. );
  9630. } else {
  9631. var tableJson = { text: "" };
  9632. this.tableJson = tableJson;
  9633. }
  9634. this.dialogVisibleTable = true;
  9635. } else if (i == 52) {
  9636. if (
  9637. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9638. .toolChoose[toolIndex].wordJson
  9639. ) {
  9640. this.wordJson = JSON.parse(
  9641. JSON.stringify(
  9642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9643. itemTaskIndex
  9644. ].toolChoose[toolIndex].wordJson
  9645. )
  9646. );
  9647. } else {
  9648. var wordJson = { text: "" };
  9649. this.wordJson = wordJson;
  9650. }
  9651. this.dialogVisibleWord = true;
  9652. // else if (i == 50) {
  9653. // if (
  9654. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9655. // .toolChoose[toolIndex].uploadJson
  9656. // ) {
  9657. // this.uploadJson = JSON.parse(
  9658. // JSON.stringify(
  9659. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9660. // itemTaskIndex
  9661. // ].toolChoose[toolIndex].uploadJson
  9662. // )
  9663. // );
  9664. // } else {
  9665. // var uploadJson = [];
  9666. // this.uploadJson = uploadJson;
  9667. // }
  9668. // this.dialogVisibleMoreUpload = true;
  9669. // }
  9670. } else if (i == 10) {
  9671. if (
  9672. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9673. .toolChoose[toolIndex].preTime
  9674. ) {
  9675. this.preTime = JSON.parse(
  9676. JSON.stringify(
  9677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9678. itemTaskIndex
  9679. ].toolChoose[toolIndex].preTime
  9680. )
  9681. );
  9682. } else {
  9683. var preTime = 0;
  9684. this.preTime = preTime;
  9685. }
  9686. this.dialogVisiblePreTime = true;
  9687. } else if (i == 49) {
  9688. if (
  9689. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9690. .toolChoose[toolIndex].groupJson
  9691. ) {
  9692. this.groupJson = JSON.parse(
  9693. JSON.stringify(
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9695. itemTaskIndex
  9696. ].toolChoose[toolIndex].groupJson
  9697. )
  9698. );
  9699. } else {
  9700. var groupJson = {
  9701. group: [{ name: "第1组" }],
  9702. number: undefined,
  9703. islock: 1,
  9704. };
  9705. this.groupJson = groupJson;
  9706. }
  9707. this.dialogVisibleGroup = true;
  9708. } else if (i == 62) {
  9709. if (
  9710. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9711. .toolChoose[toolIndex].videoJson
  9712. ) {
  9713. this.videoJson = JSON.parse(
  9714. JSON.stringify(
  9715. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9716. itemTaskIndex
  9717. ].toolChoose[toolIndex].videoJson
  9718. )
  9719. );
  9720. } else {
  9721. var videoJson = {
  9722. video: "",
  9723. setting: [],
  9724. };
  9725. this.videoJson = videoJson;
  9726. }
  9727. this.dialogVisibleVideo = true;
  9728. } else if (i == 15) {
  9729. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9730. itemTaskIndex
  9731. ].toolChoose[toolIndex].answerQ
  9732. ? JSON.parse(
  9733. JSON.stringify(
  9734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9735. itemTaskIndex
  9736. ].toolChoose[toolIndex].answerQ
  9737. )
  9738. )
  9739. : "";
  9740. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  9741. this.dialogVisible8 = true;
  9742. } else if (i == 40) {
  9743. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9744. itemTaskIndex
  9745. ].toolChoose[toolIndex].rateJson
  9746. ? JSON.parse(
  9747. JSON.stringify(
  9748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9749. itemTaskIndex
  9750. ].toolChoose[toolIndex].rateJson
  9751. )
  9752. )
  9753. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  9754. this.selectSteps = 1;
  9755. this.dialogVisibleRate = true;
  9756. } else if (i == 42) {
  9757. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9758. itemTaskIndex
  9759. ].toolChoose[toolIndex].answerQ
  9760. ? JSON.parse(
  9761. JSON.stringify(
  9762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9763. itemTaskIndex
  9764. ].toolChoose[toolIndex].answerQ
  9765. )
  9766. )
  9767. : "";
  9768. this.dialogVisibleMp3 = true;
  9769. } else if (i == 41) {
  9770. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9771. itemTaskIndex
  9772. ].toolChoose[toolIndex].selectJson
  9773. ? JSON.parse(
  9774. JSON.stringify(
  9775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9776. itemTaskIndex
  9777. ].toolChoose[toolIndex].selectJson
  9778. )
  9779. )
  9780. : { url: "", select: [], answer: [] };
  9781. this.selectSteps = 1;
  9782. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  9783. this.dialogVisibleSelect = true;
  9784. } else if (i == 3) {
  9785. if (!this.cid) {
  9786. this.$message.error(
  9787. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9788. );
  9789. return;
  9790. }
  9791. window.parent.postMessage(
  9792. {
  9793. tools: "3y",
  9794. cid: this.cid,
  9795. stage: this.unitIndex,
  9796. task: itemTaskIndex,
  9797. tool: toolIndex,
  9798. },
  9799. "*"
  9800. );
  9801. } else if (i == 1) {
  9802. if (!this.cid) {
  9803. this.$message.error(
  9804. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9805. );
  9806. return;
  9807. }
  9808. window.parent.postMessage(
  9809. {
  9810. tools: "1y",
  9811. cid: this.cid,
  9812. stage: this.unitIndex,
  9813. task: itemTaskIndex,
  9814. tool: toolIndex,
  9815. },
  9816. "*"
  9817. );
  9818. } else if (i == 57) {
  9819. if (!this.cid) {
  9820. this.$message.error(
  9821. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  9822. );
  9823. return;
  9824. }
  9825. window.parent.postMessage(
  9826. {
  9827. tools: "57y",
  9828. cid: this.cid,
  9829. stage: this.unitIndex,
  9830. task: itemTaskIndex,
  9831. tool: toolIndex,
  9832. },
  9833. "*"
  9834. );
  9835. }
  9836. },
  9837. chapAddTools(i) {
  9838. if (this.chapTools[0].tools.length == 0) {
  9839. this.chapTools[0].tools.push(i);
  9840. } else {
  9841. if (this.chapTools[0].tools.indexOf(i) != -1) {
  9842. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  9843. } else {
  9844. this.chapTools[0].tools.push(i);
  9845. }
  9846. }
  9847. this.$forceUpdate();
  9848. },
  9849. addChaptersDataTools() {
  9850. if (this.chapTools[0].tools.indexOf(4) != -1) {
  9851. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9852. this.chapCount
  9853. ].chapterData.push({
  9854. name: this.chapTools[0].toolDetail,
  9855. url: this.chapTools[0].tools,
  9856. type: 7,
  9857. askJson: this.askJson,
  9858. });
  9859. } else {
  9860. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9861. this.chapCount
  9862. ].chapterData.push({
  9863. name: this.chapTools[0].toolDetail,
  9864. url: this.chapTools[0].tools,
  9865. type: 7,
  9866. });
  9867. }
  9868. this.imgChange1(null, null, 7, this.chapCount);
  9869. this.dialogVisible4 = false;
  9870. },
  9871. addTools(i, itemTaskIndex, toolIndex) {
  9872. // if (
  9873. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9874. // .toolChoose[toolIndex].tool.length == 0
  9875. // ) {
  9876. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9877. // itemTaskIndex
  9878. // ].toolChoose[toolIndex].tool.push(i);
  9879. // } else {
  9880. // if (
  9881. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9882. // itemTaskIndex
  9883. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  9884. // ) {
  9885. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9886. // itemTaskIndex
  9887. // ].toolChoose[toolIndex].tool.splice(
  9888. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9889. // itemTaskIndex
  9890. // ].toolChoose[toolIndex].tool.indexOf(i),
  9891. // 1
  9892. // );
  9893. // } else {
  9894. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9895. // itemTaskIndex
  9896. // ].toolChoose[toolIndex].tool.push(i);
  9897. // }
  9898. // console.log(
  9899. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9900. // .toolChoose[toolIndex].tool
  9901. // );
  9902. // }
  9903. if (i == 4) {
  9904. if (
  9905. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9906. .toolChoose[toolIndex].askJson.askTitle == "" ||
  9907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9908. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  9909. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9910. .toolChoose[toolIndex].askJson[0].checkList < 2
  9911. ) {
  9912. this.openTools(itemTaskIndex, 4, toolIndex);
  9913. // this.$message({
  9914. // message: "请填写完整问卷内容",
  9915. // type: "error",
  9916. // });
  9917. return;
  9918. }
  9919. }
  9920. if (i == 45) {
  9921. if (
  9922. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9923. .toolChoose[toolIndex].testJson ||
  9924. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9925. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  9926. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9927. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  9928. ) {
  9929. this.openTools(itemTaskIndex, 45, toolIndex);
  9930. // this.$message({
  9931. // message: "请填写完整问卷内容",
  9932. // type: "error",
  9933. // });
  9934. return;
  9935. }
  9936. }
  9937. if (i == 47) {
  9938. if (
  9939. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9940. .toolChoose[toolIndex].sentenceList ||
  9941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9942. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  9943. ) {
  9944. this.openTools(itemTaskIndex, 47, toolIndex);
  9945. return;
  9946. }
  9947. }
  9948. // if (i == 48) {
  9949. // if (
  9950. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9951. // .toolChoose[toolIndex].tableJson
  9952. // ) {
  9953. // this.openTools(itemTaskIndex, 48, toolIndex);
  9954. // return;
  9955. // }
  9956. // }
  9957. // if (i == 50) {
  9958. // if (
  9959. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9960. // .toolChoose[toolIndex].uploadJson
  9961. // ) {
  9962. // this.openTools(itemTaskIndex, 50, toolIndex);
  9963. // return;
  9964. // }
  9965. // }
  9966. if (i == 49) {
  9967. if (
  9968. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9969. .toolChoose[toolIndex].groupJson
  9970. ) {
  9971. this.openTools(itemTaskIndex, 49, toolIndex);
  9972. return;
  9973. }
  9974. }
  9975. if (i == 62) {
  9976. if (
  9977. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9978. .toolChoose[toolIndex].videoJson
  9979. ) {
  9980. this.openTools(itemTaskIndex, 62, toolIndex);
  9981. return;
  9982. }
  9983. }
  9984. if (i == 15) {
  9985. if (
  9986. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9987. .toolChoose[toolIndex].answerQ ||
  9988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  9989. .toolChoose[toolIndex].answerQ == ""
  9990. ) {
  9991. this.openTools(itemTaskIndex, 15, toolIndex);
  9992. // this.$message({
  9993. // message: "请填写问答内容",
  9994. // type: "error",
  9995. // });
  9996. return;
  9997. }
  9998. }
  9999. if (i == 40) {
  10000. if (
  10001. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10002. .toolChoose[toolIndex].rateJson ||
  10003. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10004. .toolChoose[toolIndex].rateJson.length
  10005. ) {
  10006. this.openTools(itemTaskIndex, 40, toolIndex);
  10007. return;
  10008. }
  10009. }
  10010. if (i == 41) {
  10011. if (
  10012. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10013. .toolChoose[toolIndex].selectJson ||
  10014. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10015. .toolChoose[toolIndex].selectJson.url == "" ||
  10016. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10017. .toolChoose[toolIndex].selectJson.select.length ||
  10018. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10019. .toolChoose[toolIndex].selectJson.answer.length
  10020. ) {
  10021. this.openTools(itemTaskIndex, 41, toolIndex);
  10022. return;
  10023. }
  10024. }
  10025. if (i == 42) {
  10026. if (
  10027. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10028. .toolChoose[toolIndex].answerQ ||
  10029. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10030. .toolChoose[toolIndex].answerQ == ""
  10031. ) {
  10032. this.openTools(itemTaskIndex, 42, toolIndex);
  10033. return;
  10034. }
  10035. }
  10036. if (
  10037. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  10038. .toolChoose[toolIndex].tool.length > 0
  10039. ) {
  10040. if (
  10041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10042. itemTaskIndex
  10043. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  10044. ) {
  10045. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10046. itemTaskIndex
  10047. ].toolChoose[toolIndex].tool.splice(
  10048. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10049. itemTaskIndex
  10050. ].toolChoose[toolIndex].tool.indexOf(i),
  10051. 1
  10052. );
  10053. } else {
  10054. // this.$message({
  10055. // message: "每个工具只能添加一个",
  10056. // type: "error",
  10057. // });
  10058. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10059. itemTaskIndex
  10060. ].toolChoose[toolIndex].tool = [];
  10061. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10062. itemTaskIndex
  10063. ].toolChoose[toolIndex].tool.push(i);
  10064. }
  10065. } else {
  10066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10067. itemTaskIndex
  10068. ].toolChoose[toolIndex].tool.push(i);
  10069. }
  10070. this.$forceUpdate();
  10071. },
  10072. addAskList(index) {
  10073. this.askJson.askJson.splice(index+1,0,{
  10074. askstitle: "",
  10075. askItem: 1,
  10076. checkList: [],
  10077. })
  10078. this.askJson.askCount++;
  10079. },
  10080. addTestList(index) {
  10081. this.testJson.testJson.splice(index+1,0,{
  10082. teststitle: "",
  10083. testItem: 1,
  10084. checkList: [],
  10085. timuList: [],
  10086. answer: [],
  10087. type: "1",
  10088. })
  10089. this.testJson.testCount++;
  10090. },
  10091. deleteAskList(index) {
  10092. if(!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]){
  10093. this.askJson.askJson.splice(index, 1);
  10094. this.askJson.askCount--;
  10095. }else{
  10096. let _this = this;
  10097. _this
  10098. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10099. confirmButtonText: "确定",
  10100. cancelButtonText: "取消",
  10101. type: "warning",
  10102. })
  10103. .then(() => {
  10104. _this.askJson.askJson.splice(index, 1);
  10105. _this.askJson.askCount--;
  10106. })
  10107. .catch(() => {
  10108. return;
  10109. });
  10110. }
  10111. },
  10112. deleteTestList(index) {
  10113. if(!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]){
  10114. this.testJson.testJson.splice(index, 1);
  10115. this.testJson.testCount--;
  10116. }else{
  10117. let _this = this;
  10118. _this
  10119. .$confirm("此操作不可撤销,是否继续?", "提示", {
  10120. confirmButtonText: "确定",
  10121. cancelButtonText: "取消",
  10122. type: "warning",
  10123. })
  10124. .then(() => {
  10125. _this.testJson.testJson.splice(index, 1);
  10126. _this.testJson.testCount--;
  10127. })
  10128. .catch(() => {
  10129. return;
  10130. });
  10131. }
  10132. },
  10133. askMove(type,index){
  10134. if (type == 1) {
  10135. if (index > 0) {
  10136. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  10137. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10138. this.askJson.askJson[index - 1] = b;
  10139. this.askJson.askJson[index] = a;
  10140. }
  10141. } else {
  10142. if (
  10143. index < this.askJson.askJson.length - 1
  10144. ) {
  10145. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  10146. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  10147. this.askJson.askJson[index + 1] = b;
  10148. this.askJson.askJson[index] = a;
  10149. }
  10150. }
  10151. this.$forceUpdate();
  10152. },
  10153. checkMove(type,index,checkIndex){
  10154. if (type == 1) {
  10155. if (checkIndex > 0) {
  10156. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  10157. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  10158. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  10159. this.askJson.askJson[index].checkList[checkIndex] = a;
  10160. }
  10161. } else {
  10162. if (
  10163. checkIndex < this.askJson.askJson[index].checkList.length - 1
  10164. ) {
  10165. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  10166. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  10167. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  10168. this.askJson.askJson[index].checkList[checkIndex] = a;
  10169. }
  10170. }
  10171. this.$forceUpdate();
  10172. },
  10173. testMove(type,index){
  10174. if (type == 1) {
  10175. if (index > 0) {
  10176. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  10177. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10178. this.testJson.testJson[index - 1] = b;
  10179. this.testJson.testJson[index] = a;
  10180. }
  10181. } else {
  10182. if (
  10183. index < this.testJson.testJson.length - 1
  10184. ) {
  10185. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  10186. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  10187. this.testJson.testJson[index + 1] = b;
  10188. this.testJson.testJson[index] = a;
  10189. }
  10190. }
  10191. this.$forceUpdate();
  10192. },
  10193. tcheckMove(type,index,checkIndex){
  10194. if (type == 1) {
  10195. if (checkIndex > 0) {
  10196. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  10197. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  10198. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  10199. this.testJson.testJson[index].checkList[checkIndex] = a;
  10200. }
  10201. } else {
  10202. if (
  10203. checkIndex < this.testJson.testJson[index].checkList.length - 1
  10204. ) {
  10205. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  10206. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  10207. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  10208. this.testJson.testJson[index].checkList[checkIndex] = a;
  10209. }
  10210. }
  10211. this.$forceUpdate();
  10212. },
  10213. addcheckList(json,index) {
  10214. // json.checkList.length++;
  10215. json.checkList.splice(index+1,0,'')
  10216. json.askItem++;
  10217. this.$forceUpdate();
  10218. },
  10219. deletecheckList(json,index) {
  10220. // json.checkList.length--;
  10221. json.checkList.splice(index,1)
  10222. json.askItem--;
  10223. this.$forceUpdate();
  10224. },
  10225. addTcheckList(json,index) {
  10226. // json.checkList.length++;
  10227. json.checkList.splice(index+1,0,'')
  10228. json.testItem++;
  10229. this.$forceUpdate();
  10230. },
  10231. deleteTcheckList(json,index) {
  10232. // json.checkList.length--;
  10233. json.checkList.splice(index,1)
  10234. json.testItem--;
  10235. this.$forceUpdate();
  10236. },
  10237. checkTestType(type, json) {
  10238. json.type = type;
  10239. setTimeout(()=>{
  10240. json.answer = [];
  10241. },100)
  10242. },
  10243. checkAskType(type, json) {
  10244. json.type = type;
  10245. // json.checkList = [];
  10246. this.$forceUpdate();
  10247. },
  10248. addSelectList(json) {
  10249. json.select.push("");
  10250. json.answer.push("");
  10251. },
  10252. deleteSelectList(json) {
  10253. // json.select.length--;
  10254. // json.answer.length--;
  10255. json.select.splice(json.select.length - 1, 1);
  10256. json.answer.splice(json.answer.length - 1, 1);
  10257. },
  10258. addAsk() {
  10259. if (this.askJson.askTitle === "") {
  10260. this.$message.error("标题不能为空!");
  10261. return;
  10262. }
  10263. var aj = this.askJson.askJson;
  10264. var b = 1;
  10265. for (var i = 0; i < aj.length; i++) {
  10266. if (aj[i].askstitle === "") {
  10267. var a = 1;
  10268. for (let index = 0; index < aj[i].askItem; index++) {
  10269. const element = aj[i].checkList[index]
  10270. ? aj[i].checkList[index]
  10271. : "";
  10272. if (element != "") {
  10273. b++;
  10274. this.$message.error(`请将题目${i+1}填写完整。`);
  10275. return;
  10276. } else {
  10277. a++;
  10278. }
  10279. }
  10280. if (b == 1) {
  10281. this.$message.error("至少填写一个问题");
  10282. return;
  10283. }
  10284. } else if (aj[i].askstitle != "") {
  10285. for (let index = 0; index < aj[i].askItem; index++) {
  10286. const element = aj[i].checkList[index]
  10287. ? aj[i].checkList[index]
  10288. : "";
  10289. var index = 0;
  10290. for (var z = 0; z < aj[i].checkList.length; z++) {
  10291. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10292. if (checkC != "") {
  10293. index++;
  10294. } else {
  10295. this.$message.error(`题目${i+1}选项不能为空!`);
  10296. return;
  10297. }
  10298. for (var z2 = z+1; z2 < aj[i].checkList.length; z2++) {
  10299. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10300. if (checkC == checkC2) {
  10301. this.$message.error(`第${i+1}题的选项${z+1}和选项${z2+1}重复了,请修改!`);
  10302. return;
  10303. }
  10304. }
  10305. }
  10306. b++;
  10307. if (index < 2) {
  10308. this.$message.error("每道题目至少需要设置2个选项。");
  10309. return;
  10310. }
  10311. }
  10312. }
  10313. }
  10314. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  10315. var elc = el.checkList.filter((element) => {
  10316. return element != "";
  10317. });
  10318. return el.askstitle != "" && elc.length != 0;
  10319. });
  10320. if (!this.dialogVisible4) {
  10321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10322. this.taskCount
  10323. ].toolChoose[this.toolIndex] = this.askJson;
  10324. }
  10325. this.dialogVisible5 = false;
  10326. if (
  10327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10328. .toolChoose[this.toolIndex].tool != 4
  10329. ) {
  10330. this.addTools(4, this.taskCount, this.toolIndex);
  10331. }
  10332. },
  10333. addTest() {
  10334. // if (this.testJson.testTitle === "") {
  10335. // this.$message.error("标题不能为空!");
  10336. // return;
  10337. // }
  10338. var aj = this.testJson.testJson;
  10339. var b = 1;
  10340. for (var i = 0; i < aj.length; i++) {
  10341. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  10342. var a = 1;
  10343. for (let index = 0; index < aj[i].testItem; index++) {
  10344. const element = aj[i].checkList[index]
  10345. ? aj[i].checkList[index]
  10346. : "";
  10347. if (element != "") {
  10348. b++;
  10349. this.$message.error(`请将题目${i+1}填写完整。`);
  10350. return;
  10351. } else {
  10352. a++;
  10353. }
  10354. }
  10355. if (b == 1) {
  10356. this.$message.error("至少填写一个问题");
  10357. return;
  10358. }
  10359. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  10360. for (let index = 0; index < aj[i].testItem; index++) {
  10361. const element = aj[i].checkList[index]
  10362. ? aj[i].checkList[index]
  10363. : "";
  10364. var index = 0;
  10365. for (var z = 0; z < aj[i].checkList.length; z++) {
  10366. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  10367. if (checkC != "") {
  10368. index++;
  10369. } else {
  10370. this.$message.error(`题目${i+1}选项不能为空!`);
  10371. return;
  10372. }
  10373. for (var z2 = z+1; z2 < aj[i].checkList.length; z2++) {
  10374. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  10375. if (checkC == checkC2) {
  10376. this.$message.error(`第${i+1}题的选项${z+1}和选项${z2+1}重复了,请修改!`);
  10377. return;
  10378. }
  10379. }
  10380. }
  10381. b++;
  10382. if (index < 2) {
  10383. this.$message.error("每道题目至少需要设置2个选项。");
  10384. return;
  10385. }
  10386. if (
  10387. (aj[i].type == "2" && !aj[i].answer.length) ||
  10388. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  10389. ) {
  10390. this.$message.error(`请将题目${i+1}的正确选项设置完整`);
  10391. return;
  10392. }
  10393. }
  10394. }
  10395. }
  10396. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10397. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10398. var elc = el.checkList.filter((element) => {
  10399. return element != "";
  10400. });
  10401. return (
  10402. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10403. );
  10404. });
  10405. isTestJson.testCount = isTestJson.testJson.length;
  10406. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10407. this.taskCount
  10408. ].toolChoose[this.toolIndex].testJson = isTestJson;
  10409. this.dialogVisibleChoice = false;
  10410. if (
  10411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10412. .toolChoose[this.toolIndex].tool != 45
  10413. ) {
  10414. this.addTools(45, this.taskCount, this.toolIndex);
  10415. }
  10416. },
  10417. addVideoJson(videoJson) {
  10418. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10419. this.taskCount
  10420. ].toolChoose[this.toolIndex].videoJson = videoJson;
  10421. this.dialogVisibleVideo = false;
  10422. if (
  10423. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10424. .toolChoose[this.toolIndex].tool != 62
  10425. ) {
  10426. this.addTools(62, this.taskCount, this.toolIndex);
  10427. }
  10428. },
  10429. //自动获取剪贴板
  10430. pasteOption() {
  10431. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10432. if (!iframe) {
  10433. this.$message.error("请使用AI共创生成题目");
  10434. return;
  10435. }
  10436. let copyData = iframe.contentWindow.copyData;
  10437. if (!copyData || !copyData.selectData.length) {
  10438. this.$message.error("请使用AI共创生成题目");
  10439. return;
  10440. }
  10441. let selectData = copyData.selectData;
  10442. for (var i = 0; i < selectData.length; i++) {
  10443. let answer = 0;
  10444. switch (selectData[i].answer[0]) {
  10445. case "A":
  10446. answer = 0;
  10447. break;
  10448. case "B":
  10449. answer = 1;
  10450. break;
  10451. case "C":
  10452. answer = 2;
  10453. break;
  10454. case "D":
  10455. answer = 3;
  10456. break;
  10457. case "E":
  10458. answer = 4;
  10459. break;
  10460. default:
  10461. break;
  10462. }
  10463. this.testJson.testJson.push({
  10464. teststitle: selectData[i].subject,
  10465. testItem: selectData[i].options.length,
  10466. checkList: selectData[i].options,
  10467. timuList: [],
  10468. answer: answer,
  10469. type: "1",
  10470. });
  10471. this.testJson.testCount++;
  10472. }
  10473. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  10474. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  10475. var elc = el.checkList.filter((element) => {
  10476. return element != "";
  10477. });
  10478. return (
  10479. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  10480. );
  10481. });
  10482. isTestJson.testCount = isTestJson.testJson.length;
  10483. this.testJson = isTestJson;
  10484. this.$forceUpdate();
  10485. },
  10486. pasteTask() {
  10487. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10488. if (!iframe) {
  10489. this.$message.error("请使用AI共创生成");
  10490. return;
  10491. }
  10492. let copyData = iframe.contentWindow.copyData;
  10493. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  10494. this.$message.error("请使用AI共创生成");
  10495. return;
  10496. }
  10497. let stageTasksData = copyData.tasksData;
  10498. let taskA = [];
  10499. let tasks = stageTasksData;
  10500. for (var j = 0; j < tasks.length; j++) {
  10501. taskA.push({
  10502. task: tasks[j].taskName,
  10503. taskDetail: tasks[j].taskDecs,
  10504. chapterData: [],
  10505. toolText: "",
  10506. toolChoose: [
  10507. {
  10508. tool: [],
  10509. toolDetail: "",
  10510. toolType: 0,
  10511. askCount: 1,
  10512. askTitle: "",
  10513. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10514. },
  10515. ],
  10516. isShowTools: false,
  10517. askCount: 1,
  10518. isFold: 0,
  10519. askTitle: "",
  10520. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10521. checkJson: [{ checkCount: [], checkPerent: [] }],
  10522. homeworkList: [],
  10523. });
  10524. }
  10525. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  10526. this.$forceUpdate();
  10527. },
  10528. pasteStage() {
  10529. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10530. if (!iframe) {
  10531. this.$message.error("请使用AI共创生成");
  10532. return;
  10533. }
  10534. let copyData = iframe.contentWindow.copyData;
  10535. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  10536. this.$message.error("请使用AI共创生成");
  10537. return;
  10538. }
  10539. let stageData = copyData.stageData;
  10540. let stage = [];
  10541. for (var i = 0; i < stageData.length; i++) {
  10542. stage.push({
  10543. dyName: stageData[i], //单元标题
  10544. chapterInfo: [
  10545. {
  10546. isread: false,
  10547. chapterid: this.guid(),
  10548. title: "",
  10549. courseName: "",
  10550. taskJson: [
  10551. {
  10552. task: "",
  10553. taskDetail: "",
  10554. chapterData: [],
  10555. toolText: "",
  10556. toolChoose: [
  10557. {
  10558. tool: [],
  10559. toolDetail: "",
  10560. toolType: 0,
  10561. askCount: 1,
  10562. askTitle: "",
  10563. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10564. },
  10565. ],
  10566. isShowTools: false,
  10567. askCount: 1,
  10568. isFold: 0,
  10569. askTitle: "",
  10570. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10571. checkJson: [{ checkCount: [], checkPerent: [] }],
  10572. homeworkList: [],
  10573. },
  10574. ],
  10575. itemCount: 1,
  10576. fileList1: [],
  10577. video: [],
  10578. testData: [],
  10579. pData: [],
  10580. templateArray: [],
  10581. },
  10582. ],
  10583. });
  10584. }
  10585. let _this = this;
  10586. _this
  10587. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  10588. confirmButtonText: "确定",
  10589. cancelButtonText: "取消",
  10590. type: "warning",
  10591. })
  10592. .then(() => {
  10593. _this.unitIndex = 0;
  10594. _this.unitJson = stage;
  10595. _this.steps++;
  10596. _this.updateWork();
  10597. })
  10598. .catch(() => {
  10599. return;
  10600. });
  10601. },
  10602. addAnswer() {
  10603. if (this.answerQ == "") {
  10604. this.$message.error("请输入您想要问的问题");
  10605. return;
  10606. }
  10607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10608. this.taskCount
  10609. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10610. this.dialogVisible8 = false;
  10611. if (
  10612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10613. .toolChoose[this.toolIndex].tool != 15
  10614. ) {
  10615. this.addTools(15, this.taskCount, this.toolIndex);
  10616. }
  10617. },
  10618. addMp3Answer() {
  10619. if (this.answerQ == "") {
  10620. this.$message.error("请输入您想要回答的问题");
  10621. return;
  10622. }
  10623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10624. this.taskCount
  10625. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  10626. this.dialogVisibleMp3 = false;
  10627. },
  10628. addRateAnswer() {
  10629. var a = 1;
  10630. for (var i = 0; i < this.rateJson.length; i++) {
  10631. if (this.rateJson[i].value == "") {
  10632. a = 2;
  10633. break;
  10634. }
  10635. }
  10636. if (a == 2) {
  10637. this.$message.error("请把评价信息填写完整");
  10638. return;
  10639. }
  10640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10641. this.taskCount
  10642. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  10643. this.dialogVisibleRate = false;
  10644. if (
  10645. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10646. .toolChoose[this.toolIndex].tool != 40
  10647. ) {
  10648. this.addTools(40, this.taskCount, this.toolIndex);
  10649. }
  10650. },
  10651. addSelectAnswer() {
  10652. if (this.selectJson.url == "") {
  10653. this.$message.error("请上传题目");
  10654. return;
  10655. }
  10656. if (!this.selectJson.select.length) {
  10657. this.$message.error("请添加选项");
  10658. return;
  10659. }
  10660. if (!this.selectJson.answer.length) {
  10661. this.$message.error("请设置答案");
  10662. return;
  10663. }
  10664. var a = 1;
  10665. for (var i = 0; i < this.selectJson.answer.length; i++) {
  10666. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  10667. a = 2;
  10668. }
  10669. }
  10670. if (a == 2) {
  10671. this.$message.error("请设置答案");
  10672. return;
  10673. }
  10674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  10675. this.taskCount
  10676. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  10677. this.dialogVisibleSelect = false;
  10678. if (
  10679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  10680. .toolChoose[this.toolIndex].tool != 41
  10681. ) {
  10682. this.addTools(41, this.taskCount, this.toolIndex);
  10683. }
  10684. },
  10685. nextSelectSteps() {
  10686. if (this.selectJson.url == "") {
  10687. this.$message.error("请上传题目");
  10688. return;
  10689. }
  10690. if (!this.selectJson.select.length) {
  10691. this.$message.error("请添加选项");
  10692. return;
  10693. }else{
  10694. for (var z = 0; z < this.selectJson.select.length; z++) {
  10695. let checkC = this.selectJson.select[z];
  10696. for (var z2 = z+1; z2 < this.selectJson.select.length; z2++) {
  10697. let checkC2 = this.selectJson.select[z2];
  10698. if (checkC == checkC2) {
  10699. this.$message.error(`选项${z+1}和选项${z2+1}重复了,请修改!`);
  10700. return;
  10701. }
  10702. }
  10703. }
  10704. }
  10705. var a = 1;
  10706. for (var i = 0; i < this.selectJson.select.length; i++) {
  10707. if (!this.selectJson.select[i]) {
  10708. a = 2;
  10709. }
  10710. }
  10711. if (a == 2) {
  10712. this.$message.error("添加的选项不能为空");
  10713. return;
  10714. }
  10715. this.selectSteps++;
  10716. },
  10717. selectCourseDetail() {
  10718. if (this.cid == "" || this.cid == undefined) {
  10719. console.log("这是新增课程");
  10720. this.selectAllType();
  10721. } else {
  10722. this.cidType = 1;
  10723. let params = {
  10724. cid: this.cid,
  10725. };
  10726. this.ajax
  10727. .get(this.$store.state.api + "select_course_detail", params)
  10728. .then((res) => {
  10729. this.loading = true;
  10730. this.unitJson = JSON.parse(res.data[0][0].chapters);
  10731. for (var j = 0; j < this.unitJson.length; j++) {
  10732. for (
  10733. var k = 0;
  10734. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  10735. k++
  10736. ) {
  10737. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  10738. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10739. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  10740. : [];
  10741. let _chapterData = [];
  10742. for (
  10743. var c = 0;
  10744. c <
  10745. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  10746. .length;
  10747. c++
  10748. ) {
  10749. if (
  10750. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10751. ) {
  10752. _chapterData.push(
  10753. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  10754. );
  10755. }
  10756. }
  10757. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  10758. _chapterData;
  10759. }
  10760. }
  10761. this.$forceUpdate();
  10762. this.courseName = res.data[0][0].title;
  10763. this.courseText = res.data[0][0].brief;
  10764. this.evalua = res.data[0][0].evaId;
  10765. this.cover = JSON.parse(res.data[0][0].cover);
  10766. this.noneBtnImg = this.cover.length >= 1;
  10767. // this.checkboxList =
  10768. // res.data[0][0].course_student.length > 0
  10769. // ? JSON.parse(res.data[0][0].course_student)
  10770. // : [];
  10771. this.checkboxList2 = res.data[0][0].juri
  10772. ? res.data[0][0].juri.split(",")
  10773. : [];
  10774. this.inviteCode = [];
  10775. for (var i = 0; i < res.data[2].length; i++) {
  10776. this.inviteCode.push({
  10777. cid: res.data[2][i].classid,
  10778. ic: res.data[2][i].code,
  10779. });
  10780. }
  10781. this.checkboxList3 = res.data[0][0].course_teacher
  10782. ? res.data[0][0].course_teacher.split(",")
  10783. : [];
  10784. // this.isTeacherSee =
  10785. // res.data[0][0].is_teacher_look == 0 ? true : false;
  10786. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  10787. this.myWord = res.data[0][0].template;
  10788. this.templateC.id = "123";
  10789. this.courseUserid = res.data[0][0].userid;
  10790. // if(this.courseUserid == this.userid){
  10791. // this.InviteChange(this.checkboxList2)
  10792. // }
  10793. this.nbOrder = res.data[0][0].ordernumber;
  10794. this.courseTypeId = [];
  10795. for (var i = 0; i < res.data[1].length; i++) {
  10796. this.courseTypeId.push(res.data[1][i].typeid);
  10797. }
  10798. console.log(this.courseTypeId);
  10799. // if (this.timer) clearInterval(this.timer);
  10800. if (this.timer) clearTimeout(this.timer);
  10801. this.timer = null;
  10802. // this.timer = setInterval(() => {
  10803. // this.seleteCourseUpdate();
  10804. this.setMan();
  10805. this.selectAllType();
  10806. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  10807. // }, 5000);
  10808. this.$forceUpdate();
  10809. setTimeout(() => {
  10810. this.checkEva(this.evalua);
  10811. }, 0);
  10812. })
  10813. .catch((err) => {
  10814. console.error(err);
  10815. });
  10816. }
  10817. },
  10818. seleteCourseUpdate() {
  10819. let params = {
  10820. cid: this.cid,
  10821. };
  10822. this.ajax
  10823. .get(this.$store.state.api + "select_course_detail", params)
  10824. .then((res) => {
  10825. // console.log(this.unitJson);
  10826. let unitJson = JSON.parse(res.data[0][0].chapters);
  10827. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  10828. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  10829. let _unitJson = [];
  10830. let _chapAarry = [];
  10831. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  10832. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  10833. let index = 1;
  10834. let chapindex;
  10835. if (_unitJson2.length > unitJson.length) {
  10836. for (let c = 0; c < _unitJson2.length; c++) {
  10837. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  10838. }
  10839. for (let j = 0; j < unitJson.length; j++) {
  10840. let count = 0;
  10841. for (let k = 0; k < _unitJson2.length; k++) {
  10842. if (
  10843. unitJson[j].chapterInfo[0].chapterid ==
  10844. _unitJson2[k].chapterInfo[0].chapterid
  10845. ) {
  10846. count++;
  10847. _chapAarry.splice(
  10848. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10849. 1
  10850. );
  10851. _unitJson.push(unitJson[j]);
  10852. break;
  10853. }
  10854. }
  10855. // if(count === 0){
  10856. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10857. // }
  10858. }
  10859. for (let k = 0; k < _unitJson2.length; k++) {
  10860. if (_unitJson2[k].isUpdate == 1) {
  10861. _chapAarry.splice(
  10862. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  10863. 1
  10864. );
  10865. _unitJson.push(_unitJson2[k]);
  10866. }
  10867. }
  10868. console.log(_chapAarry);
  10869. for (let d = 0; d < _unitJson2.length; d++) {
  10870. if (
  10871. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  10872. ) {
  10873. if (_unitIndex == d) {
  10874. index = 2;
  10875. }
  10876. chapindex = d;
  10877. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  10878. }
  10879. }
  10880. } else {
  10881. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  10882. }
  10883. for (let i = 0; i < unitJson.length; i++) {
  10884. if (
  10885. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  10886. _unitJson[i].chapterInfo[0].chapterid !=
  10887. unitJson[i].chapterInfo[0].chapterid
  10888. ) {
  10889. if (i == _unitJson.length - 1) {
  10890. // this.unitIndex++
  10891. _unitIndex2++;
  10892. }
  10893. _unitJson.splice(i, 0, unitJson[i]);
  10894. } else if (i > _unitJson.length - 1) {
  10895. _unitJson.push(unitJson[i]);
  10896. } else if (
  10897. _unitJson[i].chapterInfo[0].chapterid ==
  10898. unitJson[i].chapterInfo[0].chapterid
  10899. ) {
  10900. _unitJson[i] = unitJson[i];
  10901. }
  10902. // if (i == _unitIndex) {
  10903. // continue;
  10904. // } else
  10905. }
  10906. if (_chapAarry.length && index != 2) {
  10907. if (chapindex < _unitIndex) {
  10908. this.isDelete = 2;
  10909. // this.unitIndex--;
  10910. _unitIndex2--;
  10911. } else if (
  10912. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  10913. _unitJson[_unitIndex].chapterInfo[0].chapterid
  10914. ) {
  10915. this.isDelete = 2;
  10916. for (let n = 0; n < _unitJson.length; n++) {
  10917. if (
  10918. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  10919. _unitJson[n].chapterInfo[0].chapterid
  10920. ) {
  10921. // this.unitIndex = n;
  10922. _unitIndex2 = n;
  10923. _unitJson[n] = _unitJson2[_unitIndex];
  10924. break;
  10925. }
  10926. }
  10927. }
  10928. } else if (index != 2) {
  10929. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  10930. _unitJson2[_unitIndex];
  10931. for (
  10932. var ci = 0;
  10933. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  10934. ci++
  10935. ) {
  10936. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  10937. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  10938. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10939. .toolChoose
  10940. : [];
  10941. let _chapterData = [];
  10942. for (
  10943. var c = 0;
  10944. c <
  10945. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  10946. .length;
  10947. c++
  10948. ) {
  10949. if (
  10950. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10951. .chapterData[c]
  10952. ) {
  10953. _chapterData.push(
  10954. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  10955. .chapterData[c]
  10956. );
  10957. }
  10958. }
  10959. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  10960. _chapterData;
  10961. }
  10962. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  10963. }
  10964. if (index == 1) {
  10965. this.unitJson = _unitJson;
  10966. this.$forceUpdate();
  10967. setTimeout(() => {
  10968. if (this.unitIndex != _unitIndex2) {
  10969. this.isDelete = 2;
  10970. this.unitIndex = _unitIndex2;
  10971. }
  10972. }, 0);
  10973. this.timer = setTimeout(() => {
  10974. this.seleteCourseUpdate();
  10975. }, 1000);
  10976. } else if (index == 2) {
  10977. let _this = this;
  10978. _this
  10979. .$confirm(
  10980. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  10981. "提示",
  10982. {
  10983. confirmButtonText: "需要",
  10984. cancelButtonText: "取消",
  10985. type: "warning",
  10986. }
  10987. )
  10988. .then(() => {
  10989. if (_this.time()) {
  10990. _this.restoreWork(
  10991. _chapAarry[0],
  10992. _unitJson,
  10993. chapindex,
  10994. _unitJson2,
  10995. _unitIndex2
  10996. );
  10997. }
  10998. })
  10999. .catch(() => {
  11000. _this.unitJson = _unitJson;
  11001. _this.$forceUpdate();
  11002. setTimeout(() => {
  11003. if (this.unitIndex != _unitIndex2) {
  11004. this.isDelete = 2;
  11005. this.unitIndex = _unitIndex2;
  11006. }
  11007. }, 0);
  11008. _this.timer = setTimeout(() => {
  11009. _this.seleteCourseUpdate();
  11010. }, 1000);
  11011. });
  11012. }
  11013. })
  11014. .catch((err) => {
  11015. console.error(err);
  11016. });
  11017. },
  11018. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  11019. let params = [
  11020. {
  11021. cid: this.cid,
  11022. chapters: JSON.stringify(this.unitJson),
  11023. uid: this.userid,
  11024. chapid: chapid,
  11025. },
  11026. ];
  11027. this.ajax
  11028. .post(this.$store.state.api + "restoreWork", params)
  11029. .then((res) => {
  11030. this.$message({
  11031. message: "恢复成功",
  11032. type: "success",
  11033. });
  11034. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  11035. this.unitJson = unitJson;
  11036. this.$forceUpdate();
  11037. setTimeout(() => {
  11038. if (this.unitIndex != unitIndex2) {
  11039. this.isDelete = 2;
  11040. this.unitIndex = unitIndex2;
  11041. }
  11042. }, 0);
  11043. this.timer = setTimeout(() => {
  11044. this.seleteCourseUpdate();
  11045. }, 1000);
  11046. })
  11047. .catch((err) => {
  11048. this.$message.error("网络不佳");
  11049. console.error(err);
  11050. });
  11051. },
  11052. getTypeName() {
  11053. console.log(this.courseTypeId);
  11054. this.$forceUpdate();
  11055. },
  11056. selectAllType() {
  11057. let params = {
  11058. org: this.org && this.org != "" ? this.org : "",
  11059. oid: this.oid && this.oid != "" ? this.oid : "",
  11060. };
  11061. this.ajax
  11062. .get(this.$store.state.api + "selectAllType", params)
  11063. .then((res) => {
  11064. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  11065. res.data[0] = [...res.data[0],...res.data[4]]
  11066. }
  11067. this.CourseType = res.data;
  11068. this.CourseType2 = [
  11069. { name: "智见课程", id: [] },
  11070. { name: "智行课程", id: [] },
  11071. { name: "智创课程", id: [] },
  11072. ];
  11073. for (var cti = 0; cti < res.data[0].length; cti++) {
  11074. if (
  11075. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  11076. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  11077. ) {
  11078. this.CourseType2[0].id.push(res.data[0][cti].id);
  11079. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  11080. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  11081. this.CourseType2[1].id.push(res.data[0][cti].id);
  11082. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  11083. this.CourseType2[2].id.push(res.data[0][cti].id);
  11084. }
  11085. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  11086. res.data[0][cti].name = "年级";
  11087. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  11088. res.data[0][cti].name = "学科";
  11089. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  11090. res.data[0][cti].name = "主题";
  11091. }
  11092. }
  11093. let _courseTypeId = [];
  11094. for (var i = 0; i < res.data[0].length; i++) {
  11095. if (!this.cid) {
  11096. this.courseTypeId[res.data[0][i].id] = [];
  11097. }
  11098. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  11099. // }
  11100. this.CourseTypeJson[res.data[0][i].id] = [];
  11101. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11102. if (res.data[0][i].name == "栏目") {
  11103. this.CourseType[0][i].name = "主题";
  11104. }
  11105. }
  11106. if (res.data[2].length == 0 && res.data[3].length == 0) {
  11107. for (var j = 0; j < res.data[1].length; j++) {
  11108. if (
  11109. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  11110. _courseTypeId.indexOf(res.data[1][j].id) == -1
  11111. ) {
  11112. _courseTypeId.push(res.data[1][j].id);
  11113. }
  11114. if (res.data[0][i].id == res.data[1][j].pid) {
  11115. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11116. }
  11117. }
  11118. } else {
  11119. if (res.data[2].length > 0) {
  11120. for (var j = 0; j < res.data[2].length; j++) {
  11121. if (
  11122. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  11123. _courseTypeId.indexOf(res.data[2][j].id) == -1
  11124. ) {
  11125. _courseTypeId.push(res.data[2][j].id);
  11126. }
  11127. if (res.data[0][i].id == res.data[2][j].pid) {
  11128. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  11129. }
  11130. }
  11131. }
  11132. if (res.data[3].length > 0) {
  11133. for (var j = 0; j < res.data[3].length; j++) {
  11134. if (
  11135. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  11136. _courseTypeId.indexOf(res.data[3][j].id) == -1
  11137. ) {
  11138. _courseTypeId.push(res.data[3][j].id);
  11139. }
  11140. if (res.data[0][i].id == res.data[3][j].pid) {
  11141. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  11142. }
  11143. }
  11144. }
  11145. }
  11146. }
  11147. this.courseTypeId = _courseTypeId;
  11148. })
  11149. .catch((err) => {
  11150. console.error(err);
  11151. });
  11152. },
  11153. selectType() {
  11154. this.ajax
  11155. .get(this.$store.state.api + "selectType")
  11156. .then((res) => {
  11157. this.CourseType = res.data;
  11158. for (var i = 0; i < res.data[0].length; i++) {
  11159. if (!this.cid) {
  11160. this.courseTypeId[res.data[0][i].id] = "";
  11161. }
  11162. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  11163. if (res.data[0][i].name == "栏目") {
  11164. this.CourseType[0][i].name = "主题";
  11165. }
  11166. }
  11167. for (var j = 0; j < res.data[1].length; j++) {
  11168. if (res.data[0][i].id == res.data[1][j].pid) {
  11169. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11170. this.CourseTypeJson[res.data[0][i].id] = [];
  11171. }
  11172. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  11173. }
  11174. }
  11175. }
  11176. this.selectTypeByOid();
  11177. this.selectTypeByOrg();
  11178. })
  11179. .catch((err) => {
  11180. console.error(err);
  11181. });
  11182. },
  11183. selectTypeByOid() {
  11184. let params = {
  11185. oid: this.oid,
  11186. };
  11187. this.ajax
  11188. .get(this.$store.state.api + "selectTypeByOid", params)
  11189. .then((res) => {
  11190. for (var i = 0; i < res.data[0].length; i++) {
  11191. for (var j = 0; j < res.data[1].length; j++) {
  11192. if (res.data[0][i].id == res.data[1][j].pid) {
  11193. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11194. this.CourseTypeJson[res.data[0][i].id] = [];
  11195. }
  11196. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11197. }
  11198. }
  11199. }
  11200. })
  11201. .catch((err) => {
  11202. console.error(err);
  11203. });
  11204. },
  11205. selectTypeByOrg() {
  11206. let params = {
  11207. oid: this.org,
  11208. };
  11209. this.ajax
  11210. .get(this.$store.state.api + "selectTypeByOrg", params)
  11211. .then((res) => {
  11212. for (var i = 0; i < res.data[0].length; i++) {
  11213. for (var j = 0; j < res.data[1].length; j++) {
  11214. if (res.data[0][i].id == res.data[1][j].pid) {
  11215. if (!this.CourseTypeJson[res.data[0][i].id]) {
  11216. this.CourseTypeJson[res.data[0][i].id] = [];
  11217. }
  11218. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  11219. }
  11220. }
  11221. }
  11222. this.$forceUpdate();
  11223. })
  11224. .catch((err) => {
  11225. console.error(err);
  11226. });
  11227. },
  11228. OtherMb(type) {
  11229. this.typeMode = type;
  11230. setTimeout(() => {
  11231. this.checkEva(this.checkId);
  11232. }, 0);
  11233. },
  11234. openMember() {
  11235. this.searchTN = "";
  11236. this.getTeacher();
  11237. this.dialogVisibleMember = true;
  11238. },
  11239. checkEva(id, type) {
  11240. this.dialogVisiblemb = false;
  11241. this.selectEva();
  11242. if (this.evalua != id && type == 2) {
  11243. this.$message.success("导入成功");
  11244. }
  11245. this.evalua = id;
  11246. this.checkId = id;
  11247. if (this.evalua != "") {
  11248. for (var i = 0; i < this.evaJuri.length; i++) {
  11249. if (this.evalua == this.evaJuri[i].id) {
  11250. this.eTitle = this.evaJuri[i].title;
  11251. this.eJson = JSON.parse(this.evaJuri[i].content);
  11252. }
  11253. }
  11254. this.data.data = [];
  11255. this.$forceUpdate();
  11256. setTimeout(() => {
  11257. this.setMindData();
  11258. }, 500);
  11259. }
  11260. },
  11261. deleteEva() {
  11262. let _this = this;
  11263. if (_this.evalua == "") {
  11264. this.$message.warning("内容已经清空了,请勿重复清空");
  11265. return;
  11266. }
  11267. _this
  11268. .$confirm("确定删除此目标吗?", "提示", {
  11269. confirmButtonText: "确定",
  11270. cancelButtonText: "取消",
  11271. type: "warning",
  11272. })
  11273. .then(() => {
  11274. _this.evalua = "";
  11275. _this.checkId = "";
  11276. _this.eTitle = "";
  11277. let _unitJson = _this.unitJson;
  11278. for (var i = 0; i < _unitJson.length; i++) {
  11279. let _task = _unitJson[i].chapterInfo[0].taskJson;
  11280. for (var j = 0; j < _task.length; j++) {
  11281. let _eList = _task[j].eList;
  11282. for (var k = 0; k < _eList.length; k++) {
  11283. delete _eList[k].target;
  11284. }
  11285. }
  11286. }
  11287. _this.$forceUpdate();
  11288. if (_this.cid) {
  11289. _this.updateWork();
  11290. }
  11291. })
  11292. .catch(() => {
  11293. return;
  11294. });
  11295. },
  11296. selectEva() {
  11297. let params = {
  11298. oid: this.oid,
  11299. };
  11300. this.ajax
  11301. .get(this.$store.state.api + "selectAllEvaluation", params)
  11302. .then((res) => {
  11303. this.evaJuri = res.data[0];
  11304. })
  11305. .catch((err) => {
  11306. console.error(err);
  11307. });
  11308. },
  11309. setMindData() {
  11310. let targetArray = [];
  11311. this.data.data = [];
  11312. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  11313. let _eJson = Object.keys(this.eJson);
  11314. let _e = this.eJson;
  11315. for (let i = 0; i < _eJson.length; i++) {
  11316. let element = _e[_eJson[i]];
  11317. this.data.data.push({
  11318. id: element.id,
  11319. parentid: "root",
  11320. topic: element.name,
  11321. });
  11322. // targetArray.push({
  11323. // id: element.id,
  11324. // parentid: "root",
  11325. // name: element.name,
  11326. // });
  11327. targetArray.push({
  11328. value: element.name,
  11329. label: element.name,
  11330. children: [],
  11331. });
  11332. let _eJsonc = Object.keys(element.child);
  11333. let _e2 = element.child;
  11334. for (let j = 0; j < _eJsonc.length; j++) {
  11335. let _ec = _e2[_eJsonc[j]];
  11336. this.data.data.push({
  11337. id: _ec.id,
  11338. parentid: element.id,
  11339. topic: _ec.name,
  11340. });
  11341. // targetArray.push({
  11342. // id: _ec.id,
  11343. // parentid: element.id,
  11344. // name: _ec.name,
  11345. // });
  11346. targetArray[i].children.push({
  11347. value: _ec.name,
  11348. label: _ec.name,
  11349. children: [],
  11350. });
  11351. let _eJsonz = Object.keys(_ec.child);
  11352. let _e3 = _ec.child;
  11353. for (let z = 0; z < _eJsonz.length; z++) {
  11354. let _ez = _e3[_eJsonz[z]];
  11355. this.data.data.push({
  11356. id: _ez.id,
  11357. parentid: _ec.id,
  11358. topic: _ez.name,
  11359. });
  11360. // targetArray.push({
  11361. // id: _ez.id,
  11362. // parentid: _ec.id,
  11363. // name: _ez.name,
  11364. // });
  11365. targetArray[i].children[j].children.push({
  11366. value: _ez.name,
  11367. label: _ez.name,
  11368. });
  11369. }
  11370. }
  11371. }
  11372. this.targetArray = targetArray;
  11373. this.$forceUpdate();
  11374. },
  11375. /*添加评价 */
  11376. addEList(index, tIndex) {
  11377. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  11378. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  11379. value: "",
  11380. detail: "",
  11381. score: 5,
  11382. })
  11383. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  11384. { value: "", detail: "", score: 5 },
  11385. ]);
  11386. this.$forceUpdate();
  11387. },
  11388. forceUpdate() {
  11389. this.$forceUpdate();
  11390. },
  11391. deletEList(index, tIndex, eIndex) {
  11392. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  11393. eIndex,
  11394. 1
  11395. );
  11396. this.$forceUpdate();
  11397. },
  11398. getChoosePic(t) {
  11399. this.chooseType = t;
  11400. this.getAllBanner();
  11401. },
  11402. getAllBanner() {
  11403. this.sysPicVisible = true;
  11404. let params = {
  11405. t: this.chooseType,
  11406. };
  11407. this.ajax
  11408. .get(this.$store.state.api + "selectAllBanner", params)
  11409. .then((res) => {
  11410. this.sysPic = res.data[0];
  11411. })
  11412. .catch((err) => {
  11413. console.error(err);
  11414. });
  11415. },
  11416. // getClass() {
  11417. // let params = {
  11418. // oid: this.oid,
  11419. // };
  11420. // this.ajax
  11421. // .get(this.$store.state.api + "selectClassBySchool", params)
  11422. // .then((res) => {
  11423. // this.classJuri = res.data[0];
  11424. // })
  11425. // .catch((err) => {
  11426. // console.error(err);
  11427. // });
  11428. // },
  11429. deleteSysPic() {
  11430. this.cover = [];
  11431. this.isSysPic = false;
  11432. this.isSysPic2 = false;
  11433. },
  11434. deleteSelectPic() {
  11435. this.selectJson.url = "";
  11436. },
  11437. setEListStar() {
  11438. this.$forceUpdate();
  11439. },
  11440. deletRateList(i) {
  11441. this.rateJson.splice(i, 1);
  11442. },
  11443. addRateList() {
  11444. this.rateJson.push({ detail: "", score: 5, value: "" });
  11445. },
  11446. addSt() {
  11447. this.sentenceList.push({
  11448. sentenceTitle: "",
  11449. addSentence: [],
  11450. rightAnswer: [],
  11451. });
  11452. },
  11453. addSen(i) {
  11454. if(!this.sentenceList[i].sentenceTitle){
  11455. this.$message.error("请填写卡片内容!");
  11456. return;
  11457. }
  11458. if(this.sentenceList[i].sentenceTitle.length > 10){
  11459. this.$message.error("卡片内容字数不能超过10位");
  11460. return;
  11461. }
  11462. if(this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1){
  11463. this.$message.error("不能添加重复的卡片内容!");
  11464. return;
  11465. }
  11466. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  11467. // this.isPushTitleList.push(this.sentenceTitle);
  11468. this.sentenceList[i].sentenceTitle = "";
  11469. },
  11470. setRightAnswer(s, i, j) {
  11471. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  11472. this.sentenceList[i].rightAnswer.push(s);
  11473. }
  11474. },
  11475. returnCard(r, i, j) {
  11476. this.sentenceList[i].rightAnswer.splice(j, 1);
  11477. },
  11478. addSentenceTool() {
  11479. for (var i = 0; i < this.sentenceList.length; i++) {
  11480. if (this.sentenceList[i].rightAnswer.length == 0) {
  11481. this.$message.error(`请将题目${i+1}设置完整。`);
  11482. return;
  11483. }
  11484. if (
  11485. this.sentenceList[i].addSentence.length !=
  11486. this.sentenceList[i].rightAnswer.length
  11487. ) {
  11488. this.$message.error(`请将题目${i+1}设置完整。`);
  11489. return;
  11490. }
  11491. }
  11492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11493. this.taskCount
  11494. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  11495. this.sentenceList = [
  11496. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  11497. ];
  11498. this.dialogVisibleSentence = false;
  11499. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11500. // itemTaskIndex
  11501. // ].toolChoose[toolIndex].tool = [];
  11502. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11503. // itemTaskIndex
  11504. // ].toolChoose[toolIndex].tool.push(i);
  11505. if (
  11506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11507. .toolChoose[this.toolIndex].tool != 47
  11508. ) {
  11509. this.addTools(47, this.taskCount, this.toolIndex);
  11510. }
  11511. },
  11512. addTableJson() {
  11513. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  11514. // this.$message.error("请将信息填写完整!");
  11515. // return;
  11516. // }
  11517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11518. this.taskCount
  11519. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  11520. // this.tableJson = [{ text: "" }];
  11521. // this.dialogVisibleTable = false;
  11522. this.$message.success("上传成功");
  11523. if (
  11524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11525. .toolChoose[this.toolIndex].tool != 48
  11526. ) {
  11527. this.addTools(48, this.taskCount, this.toolIndex);
  11528. }
  11529. },
  11530. addWordJson() {
  11531. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11532. this.taskCount
  11533. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  11534. // this.wordJson = [{ text: "" }];
  11535. // this.dialogVisibleWord = false;
  11536. this.$message.success("上传成功");
  11537. if (
  11538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11539. .toolChoose[this.toolIndex].tool != 52
  11540. ) {
  11541. this.addTools(52, this.taskCount, this.toolIndex);
  11542. }
  11543. },
  11544. addMoreUpload() {
  11545. if (this.uploadJson.length == 0) {
  11546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11547. this.taskCount
  11548. ].toolChoose[this.toolIndex].uploadJson = [];
  11549. } else {
  11550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11551. this.taskCount
  11552. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  11553. }
  11554. this.uploadJson = [];
  11555. this.dialogVisibleMoreUpload = false;
  11556. if (
  11557. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11558. .toolChoose[this.toolIndex].tool != 50
  11559. ) {
  11560. this.addTools(50, this.taskCount, this.toolIndex);
  11561. }
  11562. },
  11563. addPreTime() {
  11564. if (this.preTime == 0) {
  11565. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11566. this.taskCount
  11567. ].toolChoose[this.toolIndex].preTime = 0;
  11568. } else {
  11569. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11570. this.taskCount
  11571. ].toolChoose[this.toolIndex].preTime = this.preTime;
  11572. }
  11573. this.preTime = 0;
  11574. this.dialogVisiblePreTime = false;
  11575. if (
  11576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11577. .toolChoose[this.toolIndex].tool != 10
  11578. ) {
  11579. this.addTools(10, this.taskCount, this.toolIndex);
  11580. }
  11581. },
  11582. goToTask(i) {
  11583. this.toolIndexType = ''
  11584. if(this.isClickColor == (i + 1)){
  11585. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen){
  11586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11587. }else{
  11588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  11589. }
  11590. this.$forceUpdate();
  11591. return;
  11592. }
  11593. if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen){
  11594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  11595. }else{
  11596. document.querySelectorAll(".rightBox")[0].scrollTop =
  11597. document.querySelectorAll(".taskBorder")[i].offsetTop +
  11598. document.querySelectorAll(".taskBorder")[i].parentElement.parentElement.offsetTop;
  11599. this.isClickColor = i + 1;
  11600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  11601. }
  11602. this.$forceUpdate();
  11603. },
  11604. taskMove(type, index) {
  11605. // this
  11606. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  11607. // confirmButtonText: "确定",
  11608. // cancelButtonText: "取消",
  11609. // type: "warning",
  11610. // })
  11611. // .then(() => {
  11612. if (type == 1) {
  11613. if (index > 0) {
  11614. let a = JSON.parse(
  11615. JSON.stringify(
  11616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  11617. )
  11618. );
  11619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  11620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11621. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11622. }
  11623. } else {
  11624. if (
  11625. index <
  11626. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  11627. ) {
  11628. let a = JSON.parse(
  11629. JSON.stringify(
  11630. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  11631. )
  11632. );
  11633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  11634. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  11635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  11636. }
  11637. }
  11638. this.$forceUpdate();
  11639. // })
  11640. // .catch(() => {
  11641. // return;
  11642. // })
  11643. },
  11644. addGroup(i) {
  11645. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  11646. this.groupJson.group.push({
  11647. name: "第" + (this.groupJson.group.length + 1) + "组",
  11648. });
  11649. },
  11650. deleteGroup(i) {
  11651. this.groupJson.group.splice(i, 1);
  11652. },
  11653. numberPan(){
  11654. if(/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10){
  11655. this.$message.error('请输入2-10的数字')
  11656. this.groupJson.number = ''
  11657. }
  11658. },
  11659. addGroupJson() {
  11660. for (var i = 0; i < this.groupJson.group.length; i++) {
  11661. if (!this.groupJson.group[i].name) {
  11662. this.$message.error("请将信息填写完整!");
  11663. return;
  11664. }
  11665. }
  11666. if (!this.groupJson.number) {
  11667. this.$message.error("请将信息填写完整!");
  11668. return;
  11669. }
  11670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  11671. this.taskCount
  11672. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  11673. JSON.stringify(this.groupJson)
  11674. );
  11675. this.dialogVisibleGroup = false;
  11676. this.groupJson = {};
  11677. if (
  11678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  11679. .toolChoose[this.toolIndex].tool != 49
  11680. ) {
  11681. this.addTools(49, this.taskCount, this.toolIndex);
  11682. }
  11683. },
  11684. updateTime(preTime) {
  11685. this.preTime = preTime;
  11686. },
  11687. InviteChange(val) {
  11688. console.log(val);
  11689. return;
  11690. let array = JSON.parse(JSON.stringify(val));
  11691. this.inviteCode = this.inviteCode.filter((el) => {
  11692. if (val.indexOf(el.cid) != -1) {
  11693. array.splice(array.indexOf(el.cid), 1);
  11694. return el;
  11695. }
  11696. });
  11697. for (var i = 0; i < array.length; i++) {
  11698. this.getInviteCode(array[i]);
  11699. }
  11700. },
  11701. async getInviteCode(cid) {
  11702. let code = this.randomNumber();
  11703. let params = {
  11704. code: code,
  11705. oid: this.oid,
  11706. };
  11707. let type = 1;
  11708. for (var i = 0; i < this.inviteCode.length; i++) {
  11709. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  11710. type = 2;
  11711. }
  11712. }
  11713. if (type == 2) {
  11714. this.getInviteCode(cid);
  11715. return;
  11716. }
  11717. const res = await this.ajax.get(
  11718. this.$store.state.api + "selectInviteCode2",
  11719. params
  11720. );
  11721. if (
  11722. res.data.length &&
  11723. res.data[0].length &&
  11724. res.data[0][0].courseId != this.cid
  11725. ) {
  11726. this.getInviteCode(cid);
  11727. return;
  11728. }
  11729. let array = [];
  11730. for (var i = 0; i < this.inviteCode.length; i++) {
  11731. array.push(this.inviteCode[i].cid);
  11732. }
  11733. if (array.indexOf(cid) != -1) {
  11734. this.inviteCode[array.indexOf(cid)].ic = code;
  11735. } else {
  11736. this.inviteCode.push({ cid: cid, ic: code });
  11737. }
  11738. },
  11739. OpenInviteD(cid) {
  11740. let array = [];
  11741. this.icode = "";
  11742. for (var i = 0; i < this.inviteCode.length; i++) {
  11743. array.push(this.inviteCode[i].cid);
  11744. }
  11745. if (array.indexOf(cid) != -1) {
  11746. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  11747. }
  11748. this.inviteId = cid;
  11749. this.dialogVisibleInvite = true;
  11750. },
  11751. addInvite() {
  11752. let reg = /^[A-Za-z0-9]{4,}$/;
  11753. if (!reg.test(this.icode)) {
  11754. this.$message.error("请输入至少四位数字或英文组合的随机码");
  11755. return;
  11756. }
  11757. let type = 1;
  11758. for (var i = 0; i < this.inviteCode.length; i++) {
  11759. if (
  11760. this.inviteCode[i].cid != this.inviteId &&
  11761. this.icode == this.inviteCode[i].ic
  11762. ) {
  11763. type = 2;
  11764. }
  11765. }
  11766. if (type == 2) {
  11767. this.$message.error("已有此随机码,不能重复");
  11768. return;
  11769. }
  11770. let params = {
  11771. code: this.icode,
  11772. oid: this.oid,
  11773. };
  11774. this.ajax
  11775. .get(this.$store.state.api + "selectInviteCode", params)
  11776. .then((res) => {
  11777. if (
  11778. res.data.length &&
  11779. res.data[0].length &&
  11780. res.data[0][0].courseId != this.cid
  11781. ) {
  11782. this.$message.error("已有此随机码,不能重复");
  11783. return;
  11784. }
  11785. let array = [];
  11786. for (var i = 0; i < this.inviteCode.length; i++) {
  11787. array.push(this.inviteCode[i].cid);
  11788. }
  11789. if (array.indexOf(this.inviteId) != -1) {
  11790. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  11791. } else {
  11792. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  11793. }
  11794. this.icode = "";
  11795. this.dialogVisibleInvite = false;
  11796. })
  11797. .catch((err) => {
  11798. console.error(err);
  11799. });
  11800. },
  11801. randomNumber() {
  11802. // 随机生成两位数
  11803. // let num = Math.floor(Math.random() * 900) + 100;
  11804. // 生成 0 到 99 之间的随机整数
  11805. const randomNumber = Math.floor(Math.random() * 100);
  11806. // 如果随机数小于 10,补上前导零
  11807. const num =
  11808. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  11809. // 随机生成两个大写字母
  11810. let letters = "";
  11811. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  11812. for (let i = 0; i < 3; i++) {
  11813. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  11814. }
  11815. // 随机生成两位数字和字母的组合
  11816. let mix = "";
  11817. let chars =
  11818. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  11819. for (let i = 0; i < 3; i++) {
  11820. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  11821. mix += char;
  11822. }
  11823. // 随机选择一种类型
  11824. let type = Math.floor(Math.random() * 3);
  11825. return num;
  11826. // 根据类型输出结果
  11827. switch (type) {
  11828. case 0:
  11829. console.log(num); // 输出两位数
  11830. return num;
  11831. case 1:
  11832. console.log(letters); // 输出两个大写字母
  11833. return letters;
  11834. case 2:
  11835. console.log(mix); // 输出两位数字和字母的组合
  11836. return mix;
  11837. }
  11838. },
  11839. getPaste(){
  11840. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  11841. if (!iframe) {
  11842. return;
  11843. }
  11844. let copyData = iframe.contentWindow.copyData;
  11845. // if (copyData && copyData.stageData && copyData.stageData.length) {
  11846. // this.isPasteStage = true
  11847. // }
  11848. if (copyData && copyData.selectData.length) {
  11849. this.isPasteChoice = true
  11850. }
  11851. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  11852. this.isPasteTask = true
  11853. }
  11854. },
  11855. searchImage() {
  11856. var _this = this;
  11857. _this.imageList = []
  11858. if(!_this.searchImageValue){
  11859. _this.sysPicVisible2 = true
  11860. return
  11861. }
  11862. _this.imageloading = true
  11863. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  11864. page: _this.ppage,
  11865. pagesize: 9,
  11866. query: _this.searchImageValue
  11867. }).then(function (response) {
  11868. // console.log(response.data.data);
  11869. var data = response.data.FunctionResponse.result;
  11870. for (var i = 0; i < data.length; i++) {
  11871. _this.imageList.push({url:data[i].thumbnail})
  11872. }
  11873. _this.imageloading = false
  11874. }).catch(function (error) {
  11875. console.log(error);
  11876. });
  11877. _this.sysPicVisible2 = true
  11878. },
  11879. changePicture(){
  11880. this.ppage++
  11881. this.searchImage()
  11882. },
  11883. resetImage(){
  11884. this.ppage = 1
  11885. this.searchImage()
  11886. },
  11887. jumpGj(i, j) {
  11888. if((i+1) != this.isClickColor){
  11889. this.isClickColor = (i + 1)
  11890. }
  11891. var a = document.scrollingElement;
  11892. this.toolIndexType = `gj${i}${j}`
  11893. let target = document.querySelector(`#gj${i}${j}`);
  11894. if (target) {
  11895. target.scrollIntoView(true);
  11896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  11897. // setTimeout(() => {
  11898. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  11899. // }, 0);
  11900. }
  11901. },
  11902. },
  11903. beforeDestroy() {
  11904. clearTimeout(this.timer);
  11905. this.timer = null;
  11906. clearInterval(this.timer2);
  11907. this.timer2 = null;
  11908. clearInterval(this.pasteTimer);
  11909. this.pasteTimer = null;
  11910. },
  11911. beforeRouteLeave(to, from, next) {
  11912. clearTimeout(this.timer);
  11913. this.timer = null;
  11914. clearInterval(this.timer2);
  11915. this.timer2 = null;
  11916. clearInterval(this.pasteTimer);
  11917. this.pasteTimer = null;
  11918. next();
  11919. },
  11920. created() {
  11921. this.getStudent();
  11922. this.getTeacher();
  11923. this.getClass();
  11924. this.selectGrage();
  11925. this.getTemplate();
  11926. // this.selectType();
  11927. this.selectEva();
  11928. this.loading = false;
  11929. this.timer2 = setInterval(() => {
  11930. this.selectEva();
  11931. }, 5000);
  11932. this.pasteTimer = setInterval(() => {
  11933. this.getPaste();
  11934. }, 1000);
  11935. setTimeout(() => {
  11936. this.selectCourseDetail();
  11937. }, 500);
  11938. },
  11939. mounted() {
  11940. this.$nextTick(() => {
  11941. //监听这个dom的scroll事件
  11942. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  11943. this.heightPx = $(".rightBox")[0].offsetHeight + 'px';
  11944. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  11945. this.$forceUpdate();
  11946. });
  11947. },
  11948. };
  11949. </script>
  11950. <style scoped>
  11951. @media screen and (max-width: 1280px) {
  11952. .mbCss {
  11953. flex-direction: column !important;
  11954. }
  11955. .pjCss {
  11956. width: 100% !important;
  11957. }
  11958. .evaCss {
  11959. width: 100% !important;
  11960. }
  11961. }
  11962. .dialog_diy >>> .el-dialog__header {
  11963. background: #3c3c3c !important;
  11964. padding: 15px 20px;
  11965. }
  11966. .dialog_diy >>> .el-dialog__title {
  11967. color: #fff;
  11968. }
  11969. .dialog_diy >>> .el-dialog__headerbtn {
  11970. top: 19px;
  11971. }
  11972. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  11973. color: #fff;
  11974. }
  11975. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  11976. color: #fff;
  11977. }
  11978. .dialog_diy >>> .el-dialog__body,
  11979. .dialog_diy >>> .el-dialog__footer {
  11980. background: #fafafa;
  11981. }
  11982. .dialog_diy3 >>> .el-dialog__body,
  11983. .dialog_diy3 >>> .el-dialog__footer {
  11984. background: #eee !important;
  11985. }
  11986. .dialog_diy3 >>> .el-dialog__body {
  11987. padding: 20px 20px;
  11988. }
  11989. .source_diy >>> .el-dialog {
  11990. height: 100% !important;
  11991. margin: 0 auto !important;
  11992. }
  11993. .source_diy >>> .el-dialog__body {
  11994. height: calc(100% - 185px);
  11995. overflow: auto;
  11996. background: #e6eaf0;
  11997. }
  11998. .source_diy >>> .el-dialog__footer {
  11999. background: #e6eaf0 !important;
  12000. }
  12001. .left {
  12002. border-right: 1px solid rgb(60, 94, 143);
  12003. display: flex;
  12004. flex-direction: column;
  12005. align-items: center;
  12006. min-height: 600px;
  12007. width: 385px;
  12008. height: 80%;
  12009. }
  12010. .tips {
  12011. color: rgb(128, 128, 128);
  12012. font-size: 12px;
  12013. width: 270px;
  12014. margin: 40px;
  12015. }
  12016. .pb_content {
  12017. height: 100% !important;
  12018. /* margin: 0 20px 0 20px; */
  12019. }
  12020. .pb_content_body {
  12021. width: 100% !important;
  12022. height: 100%;
  12023. }
  12024. .info_solid {
  12025. width: 270px;
  12026. height: 30px;
  12027. border-left: 1px solid #bdbdbd;
  12028. margin: 10px 0px 10px 30px;
  12029. }
  12030. .info_steps {
  12031. width: 270px;
  12032. font-size: 0.875rem;
  12033. display: flex;
  12034. align-items: center;
  12035. }
  12036. .info_steps span:nth-child(1) {
  12037. width: 30px;
  12038. height: 30px;
  12039. background: rgba(0, 0, 0, 0.38);
  12040. display: block;
  12041. color: #fff;
  12042. border-radius: 40px;
  12043. text-align: center;
  12044. line-height: 30px;
  12045. }
  12046. .steps_active {
  12047. background: #3d67bc !important;
  12048. }
  12049. .info_steps span:nth-child(2) {
  12050. margin-left: 5px;
  12051. }
  12052. .right {
  12053. height: 100%;
  12054. width: calc(100% - 40px);
  12055. display: flex;
  12056. overflow: hidden;
  12057. margin:0 auto;
  12058. }
  12059. .basic_box {
  12060. margin: 0 auto;
  12061. position: relative;
  12062. padding: 0 20px 0 20px;
  12063. }
  12064. .basic_box2 {
  12065. position: relative;
  12066. width: calc(100% - 300px);
  12067. }
  12068. .basic_box_success {
  12069. width: 100%;
  12070. height: 100%;
  12071. padding: 50px 0;
  12072. position: relative;
  12073. text-align: center;
  12074. /* border-bottom: 1px solid #bfbfbf; */
  12075. box-sizing: border-box;
  12076. display: flex;
  12077. align-items: center;
  12078. flex-direction: column;
  12079. justify-content: center;
  12080. }
  12081. .info_title {
  12082. font-size: 1.5em;
  12083. margin-right: 25px;
  12084. /* margin: 20px 30px 20px 30px; */
  12085. }
  12086. .bInfo_title {
  12087. text-align: left;
  12088. margin: 10px 0;
  12089. }
  12090. .small_title {
  12091. font-size: 14px;
  12092. line-height: 40px;
  12093. }
  12094. .chapter_beizhu {
  12095. font-size: 12px;
  12096. font-weight: bold;
  12097. float: right;
  12098. color: rgb(128, 128, 128);
  12099. margin-top: 5px;
  12100. }
  12101. .chapter_uploadBox1 {
  12102. text-align: left;
  12103. background-color: rgb(242, 242, 242);
  12104. width: 100%;
  12105. height: 67px;
  12106. padding: 0px 15px;
  12107. border-radius: 8px;
  12108. overflow: hidden;
  12109. font-size: 16px;
  12110. box-sizing: border-box;
  12111. position: relative;
  12112. }
  12113. .chapter_add {
  12114. width: 100%;
  12115. height: 32px;
  12116. margin-top: 15px;
  12117. cursor: pointer;
  12118. }
  12119. .chapter_add_l {
  12120. margin-left: 5px;
  12121. width: 30px;
  12122. height: 30px;
  12123. float: left;
  12124. border: 1px solid #aaa;
  12125. color: #aaa;
  12126. border-radius: 50%;
  12127. font-size: 25px;
  12128. text-align: center;
  12129. }
  12130. .chapter_add_r {
  12131. font-size: 18px;
  12132. height: 40px;
  12133. line-height: 30px;
  12134. text-indent: 10px;
  12135. color: #aaa;
  12136. }
  12137. .chapter_add_r span {
  12138. font-size: 12px;
  12139. color: rgb(204, 204, 204);
  12140. }
  12141. .chapter_add_input {
  12142. display: none;
  12143. }
  12144. .line {
  12145. width: 85%;
  12146. margin: 0 auto;
  12147. border-top: 1px solid #e5e5e5;
  12148. margin-top: 20px;
  12149. }
  12150. .info_btnBox {
  12151. width: calc(100%);
  12152. display: flex;
  12153. justify-content: center;
  12154. height: 70px;
  12155. align-items: center;
  12156. background: #fff;
  12157. margin: 0 auto;
  12158. border-top: 2px solid rgb(228, 232, 237);
  12159. box-sizing: border-box;
  12160. border-radius: 0px 0 5px 5px;
  12161. }
  12162. .info_btnBox2 {
  12163. width: calc(100%);
  12164. display: flex;
  12165. justify-content: center;
  12166. height: 20px;
  12167. align-items: center;
  12168. background: #fff;
  12169. margin: 0 auto;
  12170. border-top: 2px solid rgb(228, 232, 237);
  12171. box-sizing: border-box;
  12172. overflow: hidden;
  12173. cursor: pointer;
  12174. }
  12175. .info_btnBox3 {
  12176. width: calc(100%);
  12177. display: flex;
  12178. justify-content: flex-end;
  12179. padding:0 20px;
  12180. height: 60px;
  12181. align-items: center;
  12182. background: unset;
  12183. margin: 0 auto;
  12184. /* border-top: 1px solid rgb(228, 232, 237); */
  12185. box-sizing: border-box;
  12186. overflow: hidden;
  12187. cursor: pointer;
  12188. background:#fff;
  12189. border-radius:10px;
  12190. }
  12191. .info_btn+.info_btn {
  12192. margin-left: 15px;
  12193. }
  12194. .info_btn,
  12195. .teacherWord {
  12196. color: #fff;
  12197. background-color: #0f7eff;
  12198. padding: 8px 24px;
  12199. font-size: 0.9375rem;
  12200. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  12201. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  12202. min-width: 64px;
  12203. font-weight: 500;
  12204. border-radius: 4px;
  12205. box-sizing: border-box;
  12206. border: none;
  12207. cursor: pointer;
  12208. }
  12209. .teacherWord {
  12210. width: 105px !important;
  12211. text-align: center !important;
  12212. line-height: 36px !important;
  12213. padding: 0 !important;
  12214. font-size: 14px !important;
  12215. margin: 10px 0 !important;
  12216. }
  12217. .wordTeacher {
  12218. display: flex;
  12219. flex-direction: column;
  12220. width: 20%;
  12221. text-align: center;
  12222. font-size: 14px;
  12223. margin: 30px 30px 0 10px;
  12224. background: #fff;
  12225. position: relative;
  12226. border-radius: 5px;
  12227. padding: 25px 0px;
  12228. }
  12229. .wordPic {
  12230. margin: 0 auto;
  12231. width: 60px;
  12232. height: 60px;
  12233. cursor: pointer;
  12234. }
  12235. .deleteWord {
  12236. width: 22px;
  12237. height: 22px;
  12238. position: absolute;
  12239. right: 5px;
  12240. top: -15px;
  12241. cursor: pointer;
  12242. display: none;
  12243. z-index: 999;
  12244. }
  12245. .wordPic > img,
  12246. .deleteWord > img,
  12247. .addToolImg > img {
  12248. width: 100%;
  12249. height: 100%;
  12250. }
  12251. .info_btn:hover {
  12252. background-color: #4f7cd5 !important;
  12253. }
  12254. .cru_selectBox {
  12255. display: flex;
  12256. margin: 24px 0 10px;
  12257. flex-wrap: nowrap;
  12258. white-space: nowrap;
  12259. overflow: auto;
  12260. position: relative;
  12261. height: 47px;
  12262. }
  12263. .cru_selectBox::-webkit-scrollbar {
  12264. /*滚动条整体样式*/
  12265. width: 6px;
  12266. /*高宽分别对应横竖滚动条的尺寸*/
  12267. height: 6px;
  12268. }
  12269. /*定义滚动条轨道 内阴影+圆角*/
  12270. .cru_selectBox::-webkit-scrollbar-track {
  12271. border-radius: 10px;
  12272. background-color: #eee;
  12273. }
  12274. /*定义滑块 内阴影+圆角*/
  12275. .cru_selectBox::-webkit-scrollbar-thumb {
  12276. border-radius: 10px;
  12277. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  12278. background-color: rgba(0, 0, 0, 0.1);
  12279. }
  12280. .cru_line {
  12281. position: absolute;
  12282. bottom: 0px;
  12283. transition: all 0.5s;
  12284. left: 0px;
  12285. width: 125px;
  12286. margin-left: -25px;
  12287. }
  12288. .cru_select {
  12289. font-size: 21px;
  12290. margin-right: 37px;
  12291. margin-left: 5px;
  12292. cursor: pointer;
  12293. color: #a6a6a6;
  12294. }
  12295. .cru_selected {
  12296. color: #0b7fc2 !important;
  12297. }
  12298. .chapter_contentbox {
  12299. display: flex;
  12300. align-items: center;
  12301. margin-top: 15px;
  12302. }
  12303. .chapter_contentbox .cc_title {
  12304. margin: 0px;
  12305. color: black;
  12306. display: block;
  12307. white-space: nowrap;
  12308. overflow: hidden;
  12309. text-overflow: ellipsis;
  12310. margin-right: 20px;
  12311. font-size: 18px;
  12312. height: 20px;
  12313. line-height: 22px;
  12314. min-width: fit-content;
  12315. display: flex;
  12316. }
  12317. .chapter_contentbox .cc_title::before {
  12318. content: '';
  12319. height: 100%;
  12320. width: 3px;
  12321. background: #3681FC;
  12322. border-radius: 3px;
  12323. opacity: 1;
  12324. display: block;
  12325. margin-right: 10px;
  12326. }
  12327. .chapter_contentbox .cc_input {
  12328. width: 100%;
  12329. display:flex;
  12330. }
  12331. .show_taskD {
  12332. min-width: fit-content;
  12333. margin-left: 10px;
  12334. display: flex;
  12335. align-items: center;
  12336. font-size: 14px;
  12337. cursor: pointer;
  12338. color: #717C8D;
  12339. }
  12340. .show_taskD>img {
  12341. width: 15px;
  12342. margin-right: 5px;
  12343. transition: .2s all;
  12344. transform: rotate(-90deg);
  12345. }
  12346. .show_taskD.show>img {
  12347. transform: rotate(0deg);
  12348. }
  12349. .show_toolD {
  12350. min-width: fit-content;
  12351. margin-left: 10px;
  12352. display: flex;
  12353. align-items: center;
  12354. font-size: 14px;
  12355. cursor: pointer;
  12356. color: #717C8D;
  12357. position: absolute;
  12358. right: 45px;
  12359. top: 5px;
  12360. }
  12361. .show_toolD>img {
  12362. width: 15px;
  12363. margin-right: 5px;
  12364. transition: .2s all;
  12365. transform: rotate(-90deg);
  12366. }
  12367. .show_toolD.show>img {
  12368. transform: rotate(0deg);
  12369. }
  12370. .remove {
  12371. background-image: url("../../../assets/icon/new/delete_u.png");
  12372. cursor: pointer;
  12373. opacity: 0.5;
  12374. width: 30px;
  12375. min-width: 30px;
  12376. height: 30px;
  12377. background-size: 100% 100%;
  12378. background-repeat: no-repeat;
  12379. margin-left: 10px;
  12380. }
  12381. .remove1 {
  12382. background-image: url("../../../assets/remove1.png");
  12383. background-repeat: no-repeat;
  12384. background-position: 5px 10px;
  12385. width: 40px;
  12386. height: 50px;
  12387. cursor: pointer;
  12388. margin-left: 10px;
  12389. }
  12390. .binfo_input {
  12391. width: 100%;
  12392. margin: 0;
  12393. padding: 12px 14px;
  12394. display: block;
  12395. min-width: 0;
  12396. outline: none;
  12397. box-sizing: border-box;
  12398. background: none;
  12399. border: none;
  12400. border-radius: 4px;
  12401. background: #fff;
  12402. font-size: 16px;
  12403. resize: none;
  12404. font-family: 'Microsoft YaHei';
  12405. min-height:48px;
  12406. /* border: 1px solid #3682fc00; */
  12407. border: 1.5px solid #CAD1DC;
  12408. }
  12409. .binfo_textarea {
  12410. border: 1.5px solid #CAD1DC;
  12411. font-size: 16px;
  12412. resize: none;
  12413. background: #f6f6f6;
  12414. font-family: 'Microsoft YaHei';
  12415. }
  12416. .binfo_input:focus-visible {
  12417. border: 1.5px solid #3681FC !important;
  12418. }
  12419. .time {
  12420. display: flex;
  12421. margin: 35px 0 80px 0;
  12422. }
  12423. .chapter_btnbox {
  12424. width: 160px;
  12425. border-radius: 5px;
  12426. border: 2px dashed gray;
  12427. display: flex;
  12428. padding: 8px 50px;
  12429. align-items: center;
  12430. justify-content: center;
  12431. margin: 30px auto 0;
  12432. cursor: pointer;
  12433. }
  12434. .icon_add {
  12435. position: relative;
  12436. width: 24px;
  12437. padding-top: 20px;
  12438. border-radius: 100%;
  12439. border-width: 2px;
  12440. border-style: solid;
  12441. border-color: gray;
  12442. }
  12443. .icon_add i:nth-child(1) {
  12444. position: absolute;
  12445. left: 50%;
  12446. top: 50%;
  12447. height: 60%;
  12448. transform: translate(-50%, -50%);
  12449. border-width: 1px;
  12450. border-style: solid;
  12451. border-color: inherit;
  12452. }
  12453. .icon_add i:nth-child(2) {
  12454. position: absolute;
  12455. top: 50%;
  12456. left: 50%;
  12457. width: 60%;
  12458. transform: translate(-50%, -50%);
  12459. border-width: 1px;
  12460. border-style: solid;
  12461. border-color: inherit;
  12462. }
  12463. .chapter_btn_w {
  12464. font-size: 0.9375rem;
  12465. font-weight: bold;
  12466. color: gray;
  12467. margin-left: 20px;
  12468. }
  12469. .disUoloadSty >>> .el-icon-plus {
  12470. display: none !important;
  12471. /* 上传按钮隐藏 */
  12472. }
  12473. .imgLeft {
  12474. margin: 15px 0;
  12475. }
  12476. .add_info_box {
  12477. margin: 20px 0 0;
  12478. display: flex;
  12479. flex-wrap: wrap;
  12480. }
  12481. .add_info_box button {
  12482. margin: 0 20px 10px 0;
  12483. }
  12484. .add_info_box2 {
  12485. display: flex;
  12486. align-items: center;
  12487. flex-wrap: wrap;
  12488. }
  12489. .add_info_box2::after {
  12490. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  12491. color: red;
  12492. font-size: 14px;
  12493. margin-bottom: 10px;
  12494. }
  12495. .add_chapters_box {
  12496. text-align: left;
  12497. background-color: #fff;
  12498. width: 100%;
  12499. border-radius: 4px;
  12500. font-size: 16px;
  12501. box-sizing: border-box;
  12502. position: relative;
  12503. padding: 0 15px;
  12504. height: auto;
  12505. overflow-y: auto;
  12506. overflow-x: hidden;
  12507. border:1px solid #CAD1DC;
  12508. }
  12509. .add_chapters_box.add_c_none{
  12510. display: flex;
  12511. justify-content: center;
  12512. align-items: center;
  12513. padding: 15px;
  12514. }
  12515. .add_c_none>img {
  12516. width: 25px;
  12517. }
  12518. .add_chapters_box.add_c_none>span{
  12519. font-size: 14px;
  12520. font-weight: 400;
  12521. margin: 0 0 5px 5px;
  12522. }
  12523. .homework_box {
  12524. display: flex;
  12525. align-items: flex-start;
  12526. flex-wrap: wrap;
  12527. margin: 15px 0 0 0;
  12528. flex-direction: column;
  12529. align-content: flex-start;
  12530. }
  12531. .course_homework {
  12532. display: flex;
  12533. justify-content: center;
  12534. flex-direction: row;
  12535. align-items: center;
  12536. margin: 0 10px 0 0;
  12537. }
  12538. .course_homework >>> .el-input__inner {
  12539. width: 140px;
  12540. margin-left: 15px;
  12541. }
  12542. .chapter_upload_move {
  12543. position: relative;
  12544. background-color: #fff;
  12545. position: absolute;
  12546. width: 100%;
  12547. top: 0px;
  12548. left: 0px;
  12549. border: 1px solid #eee;
  12550. border-radius: 5px;
  12551. transition: width 2s;
  12552. -moz-transition: width 2s;
  12553. -webkit-transition: width 2s;
  12554. -o-transition: width 2s;
  12555. }
  12556. .chapter_upload_l_i {
  12557. background-image: url("../../../assets/icon.png");
  12558. background-position: 3px -165px;
  12559. width: 30px;
  12560. height: 30px;
  12561. margin: 10px auto 0 auto;
  12562. }
  12563. .course_input_box {
  12564. display: flex;
  12565. margin-right: 20px;
  12566. width: 100%;
  12567. align-items: center;
  12568. position: relative;
  12569. }
  12570. .course_input_box>.binfo_input {
  12571. width: calc(100% - 0 - 200px - 20px);
  12572. margin: 0 10px;
  12573. }
  12574. .bb_courseIcon {
  12575. width: 57px;
  12576. height: 45px;
  12577. background: #F0F4FA;
  12578. border-radius: 5px 0px 0px 5px;
  12579. display: flex;
  12580. align-items: center;
  12581. justify-content: center;
  12582. border-right: 1.5px solid rgb(202, 209, 220);
  12583. box-sizing: border-box;
  12584. position: absolute;
  12585. left:1.5px
  12586. }
  12587. .bb_courseIcon>img {
  12588. width: 25px;
  12589. height: auto
  12590. }
  12591. .big_box {
  12592. /* margin-top: 20px; */
  12593. display: flex;
  12594. justify-content: space-between;
  12595. /* border-bottom: 1px solid #E0E2ED; */
  12596. }
  12597. .left_first {
  12598. display: flex;
  12599. flex-direction: column;
  12600. flex-wrap: nowrap;
  12601. width: calc(100% - 310px);
  12602. padding: 20px;
  12603. box-sizing: border-box;
  12604. background: #fff;
  12605. border-radius: 5px;
  12606. }
  12607. .right_first {
  12608. width: 300px;
  12609. display: flex;
  12610. align-items: center;
  12611. justify-content: center;
  12612. /* border-left: 1px solid #E0E2ED; */
  12613. box-sizing: border-box;
  12614. padding: 20px;
  12615. flex-direction: column;
  12616. background: #fff;
  12617. border-radius: 5px;
  12618. }
  12619. .ai_box{
  12620. width: 204px;
  12621. display: flex;
  12622. justify-content: flex-end;
  12623. margin-bottom: 15px;
  12624. }
  12625. .ai_content{
  12626. display: flex;
  12627. align-items: center;
  12628. font-size: 14px;
  12629. padding: 7px 20px;
  12630. box-sizing: border-box;
  12631. box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.16);
  12632. border-radius: 12px;
  12633. font-weight: 700;
  12634. cursor: pointer;
  12635. }
  12636. .ai_content>img{
  12637. width: 40px;
  12638. margin-right: 5px;
  12639. }
  12640. .c_info_title {
  12641. padding: 15px 0 15px 0;
  12642. font-size: 16px;
  12643. font-weight: bold;
  12644. margin: 0 0 0 20px;
  12645. box-sizing: border-box;
  12646. display: flex;
  12647. align-items: center;
  12648. line-height:20px;
  12649. }
  12650. .c_info_title::before {
  12651. content: '';
  12652. display: block;
  12653. width: 3px;
  12654. height: 20px;
  12655. background: #0061FF;
  12656. border-radius: 3px;
  12657. margin: 0 5px 0 0;
  12658. }
  12659. .right_title {
  12660. /* height: 30px; */
  12661. padding: 0 20px;
  12662. font-size: 18px;
  12663. font-weight: bold;
  12664. /* color: #0f7eff; */
  12665. margin: 20px auto 0;
  12666. display: flex;
  12667. /* justify-content: space-between; */
  12668. align-items: center;
  12669. }
  12670. .people {
  12671. border: 1px solid rgb(229 229 229);
  12672. height: 495px;
  12673. border-radius: 5px;
  12674. width: 100%;
  12675. overflow: auto;
  12676. }
  12677. .people_top {
  12678. display: flex;
  12679. width: 100%;
  12680. /* justify-content: space-between; */
  12681. /* align-items: center; */
  12682. flex-direction: column;
  12683. padding: 10px 10px 0;
  12684. box-sizing: border-box;
  12685. }
  12686. .people_nav,
  12687. .people_top_right {
  12688. /* padding: 20px 0 0 20px; */
  12689. }
  12690. .people_top_right {
  12691. height: 40px;
  12692. margin-bottom: 10px;
  12693. }
  12694. .people_search {
  12695. display: flex;
  12696. position: relative;
  12697. }
  12698. .people_search >>> .el-input__inner {
  12699. /* height: 25px; */
  12700. width: 95%;
  12701. }
  12702. .search_img {
  12703. width: 20px;
  12704. height: 20px;
  12705. position: absolute;
  12706. right: 30px;
  12707. top: 50%;
  12708. transform: translateY(-50%);
  12709. }
  12710. .search_img > img {
  12711. width: 100%;
  12712. height: 100%;
  12713. }
  12714. .people_name {
  12715. display: flex;
  12716. justify-content: flex-start;
  12717. padding: 20px 10px;
  12718. flex-direction: column;
  12719. flex-wrap: wrap;
  12720. }
  12721. .p_box {
  12722. position: relative;
  12723. }
  12724. .people_name >>> .el-checkbox {
  12725. width: 100%;
  12726. display: flex;
  12727. align-items: center;
  12728. margin-bottom: 10px;
  12729. }
  12730. .people_name >>> .el-checkbox__label {
  12731. text-overflow: ellipsis;
  12732. overflow: hidden;
  12733. width: calc(100%);
  12734. }
  12735. .people_name2 >>> .el-checkbox__label {
  12736. width: calc(100% - 130px);
  12737. }
  12738. .inviteCode {
  12739. position: absolute;
  12740. right: 30px;
  12741. color: #237ade;
  12742. top: 0;
  12743. cursor: pointer;
  12744. font-size: 13px;
  12745. }
  12746. .noneInvite {
  12747. color: #a8a8a8;
  12748. }
  12749. .inviteImg {
  12750. position: absolute;
  12751. right: 5px;
  12752. top: 0;
  12753. width: 20px;
  12754. }
  12755. .right_img {
  12756. width: 150px;
  12757. height: 150px;
  12758. margin: 20px auto;
  12759. }
  12760. .right_img > img {
  12761. width: 100%;
  12762. height: 100%;
  12763. }
  12764. .number {
  12765. margin-top: 20px;
  12766. color: #4aa6ff;
  12767. text-decoration: underline;
  12768. }
  12769. .success_button {
  12770. display: flex;
  12771. text-align: center;
  12772. margin: 5% 0 auto;
  12773. flex-direction: row;
  12774. justify-content: center;
  12775. }
  12776. .look_course {
  12777. margin-right: 40px;
  12778. background: #3d67bc;
  12779. width: 200px;
  12780. height: 35px;
  12781. line-height: 35px;
  12782. color: #fff;
  12783. text-align: center;
  12784. font-size: 14px;
  12785. border-radius: 5px;
  12786. cursor: pointer;
  12787. }
  12788. .attend_others {
  12789. width: 250px;
  12790. background: #4fb13c;
  12791. height: 35px;
  12792. line-height: 35px;
  12793. color: #fff;
  12794. text-align: center;
  12795. font-size: 14px;
  12796. border-radius: 5px;
  12797. cursor: pointer;
  12798. }
  12799. .dialog_diy2 >>> .el-dialog__body {
  12800. text-align: center;
  12801. }
  12802. .write_togother {
  12803. position: absolute;
  12804. right: 45px;
  12805. display: flex;
  12806. top: 5%;
  12807. }
  12808. .write_people {
  12809. font-size: 14px;
  12810. line-height: 50px;
  12811. padding-right: 10px;
  12812. }
  12813. .end_write {
  12814. background: #3d67bc;
  12815. color: #fff;
  12816. width: 100px;
  12817. height: 35px;
  12818. line-height: 35px;
  12819. text-align: center;
  12820. font-size: 14px;
  12821. border-radius: 5px;
  12822. cursor: pointer;
  12823. }
  12824. .chapter_upload+.chapter_upload {
  12825. /* margin-top: 15px; */
  12826. border-top: 1px solid #E7EBF1;
  12827. }
  12828. .chapter_upload {
  12829. height: 45px;
  12830. position: relative;
  12831. display: flex;
  12832. align-items: center;
  12833. width: 100%;
  12834. min-height: 45px;
  12835. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  12836. /* border-radius: 4px; */
  12837. overflow: hidden;
  12838. box-sizing:border-box;
  12839. }
  12840. .chapter_upload_t {
  12841. background-color: #fff;
  12842. position: absolute;
  12843. height: 100%;
  12844. top: 0px;
  12845. left: 0px;
  12846. box-sizing: border-box;
  12847. }
  12848. .chapter_upload_o {
  12849. width: 100%;
  12850. height: 100%;
  12851. position: relative;
  12852. z-index: 1;
  12853. }
  12854. .chapter_upload_ic {
  12855. margin: 0 15px 0px auto;
  12856. display: flex;
  12857. align-items: center;
  12858. }
  12859. .chapter_upload_ic_l {
  12860. width: 50px;
  12861. height: 50px;
  12862. float: left;
  12863. }
  12864. .chapter_upload_ic_l div {
  12865. width: 30px;
  12866. height: 35px;
  12867. background: url("../../../assets/icon/icon.png");
  12868. }
  12869. .chapter_upload_ic_edit {
  12870. height: 100%;
  12871. display: flex;
  12872. align-items: center;
  12873. cursor: pointer;
  12874. margin: 0 10px 0 0;
  12875. }
  12876. .chapter_upload_ic_edit div {
  12877. width: 18px;
  12878. height: 18px;
  12879. background-image: url("../../../assets/icon/new/edit_u.png");
  12880. background-size: 100% 100%;
  12881. }
  12882. .chapter_upload_ic_r {
  12883. height: 100%;
  12884. display: flex;
  12885. align-items: center;
  12886. cursor: pointer;
  12887. }
  12888. .chapter_upload_ic_r div {
  12889. width: 18px;
  12890. height: 18px;
  12891. background-image: url("../../../assets/icon/new/delete_u.png");
  12892. background-size: 100% 100%;
  12893. }
  12894. .chapter_upload_n {
  12895. display: flex;
  12896. text-indent: 10px;
  12897. text-decoration: none;
  12898. text-overflow: ellipsis;
  12899. white-space: nowrap;
  12900. overflow: hidden;
  12901. width: 55%;
  12902. margin-left: 10px;
  12903. cursor: pointer;
  12904. margin-top: 2px;
  12905. align-items: center;
  12906. }
  12907. .chapter_upload_l_i2,
  12908. .chapter_upload_l_i3,
  12909. .chapter_upload_l_i8,
  12910. .chapter_upload_l_i6,
  12911. .chapter_upload_l_i12,
  12912. .chapter_upload_l_i14,
  12913. .chapter_upload_l_i13 {
  12914. width: 15px;
  12915. height: 15px;
  12916. background-size: 100% 100%;
  12917. }
  12918. .chapter_upload_l_i2 {
  12919. background-image: url("../../../assets/icon/new/u_word.png");
  12920. }
  12921. .chapter_upload_l_i3 {
  12922. background-image: url("../../../assets/icon/new/u_video.png");
  12923. }
  12924. .chapter_upload_l_i8 {
  12925. background-image: url("../../../assets/icon/new/u_url.png");
  12926. }
  12927. .chapter_upload_l_i14 {
  12928. background-image: url("../../../assets/icon/new/u_source.png");
  12929. }
  12930. .chapter_upload_l_i6 {
  12931. background-image: url("../../../assets/icon/new/u_picture.png");
  12932. }
  12933. .chapter_upload_l_i12 {
  12934. background-image: url("../../../assets/icon/new/u_word.png");
  12935. }
  12936. .chapter_upload_l_i13 {
  12937. background-image: url("../../../assets/icon/new/u_img.png");
  12938. }
  12939. .chapter_upload_noSee {
  12940. background-image: url("../../../assets/icon/new/u_noUpload.png");
  12941. width: 18px;
  12942. height: 18px;
  12943. background-size: 100% 100%;
  12944. display: block;
  12945. margin-right: 10px;
  12946. }
  12947. .chapter_upload_ud {
  12948. display: flex;
  12949. flex-direction: row;
  12950. justify-content: center;
  12951. margin: 0 10px 0 0;
  12952. }
  12953. .chapter_upload_ud>.chapter_upload_up {
  12954. margin-bottom: 0;
  12955. margin-right: 10px;
  12956. }
  12957. .chapter_upload_down,
  12958. .chapter_upload_up {
  12959. width: 20px;
  12960. height: 20px;
  12961. background: #e4eaf2;
  12962. cursor: pointer;
  12963. margin: 0 auto;
  12964. border-radius: 5px;
  12965. display: flex;
  12966. justify-content: center;
  12967. align-items: center;
  12968. }
  12969. .chapter_upload_up::after,
  12970. .chapter_upload_down::after {
  12971. content: '';
  12972. background-image: url('../../../assets/icon/new/downBtn.png');
  12973. width: 13px;
  12974. height: 13px;
  12975. background-size: 100% 100%;
  12976. display: block;
  12977. }
  12978. .chapter_upload_up::after {
  12979. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  12980. }
  12981. .chapter_upload_up {
  12982. margin-bottom: 5px;
  12983. }
  12984. .addWordStyle {
  12985. display: flex;
  12986. flex-direction: row;
  12987. justify-content: flex-start;
  12988. overflow-x: auto;
  12989. white-space: nowrap;
  12990. flex-wrap: wrap;
  12991. }
  12992. /* table 样式 */
  12993. .cont >>> table {
  12994. border-top: 1px solid #ccc;
  12995. border-left: 1px solid #ccc;
  12996. }
  12997. .cont >>> table td,
  12998. .cont >>> table th {
  12999. border-bottom: 1px solid #ccc;
  13000. border-right: 1px solid #ccc;
  13001. /* padding: 20px 5px; */
  13002. padding: 5px 10px;
  13003. max-width: 0px;
  13004. height: 30px;
  13005. vertical-align: baseline;
  13006. }
  13007. .cont >>> table th {
  13008. border-bottom: 2px solid #ccc;
  13009. text-align: center;
  13010. }
  13011. /* blockquote 样式 */
  13012. .cont >>> blockquote {
  13013. display: block;
  13014. border-left: 8px solid #d0e5f2;
  13015. padding: 5px 10px;
  13016. margin: 10px 0;
  13017. line-height: 1.4;
  13018. font-size: 100%;
  13019. background-color: #f1f1f1;
  13020. }
  13021. /* code 样式 */
  13022. .cont >>> code {
  13023. display: inline-block;
  13024. /* *display: inline; */
  13025. zoom: 1;
  13026. background-color: #f1f1f1;
  13027. border-radius: 3px;
  13028. padding: 3px 5px;
  13029. margin: 0 3px;
  13030. }
  13031. .cont >>> pre code {
  13032. display: block;
  13033. }
  13034. /* ul ol 样式 */
  13035. .cont >>> ul,
  13036. ol {
  13037. margin: 10px 0 10px 20px;
  13038. }
  13039. .wordbox {
  13040. display: flex;
  13041. flex-wrap: wrap;
  13042. cursor: pointer;
  13043. width: 100%;
  13044. }
  13045. .checkword {
  13046. width: 22px;
  13047. height: 22px;
  13048. margin: 10px auto 0;
  13049. cursor: pointer;
  13050. }
  13051. .checkword img {
  13052. width: 100%;
  13053. }
  13054. .stepBg {
  13055. display: flex;
  13056. flex-direction: column;
  13057. justify-content: space-between;
  13058. align-items: center;
  13059. background: #fff;
  13060. width: 300px;
  13061. margin: 0 25px 0 0;
  13062. }
  13063. .stepTop {
  13064. min-width: 300px;
  13065. width: 300px;
  13066. /* border-radius: 10px; */
  13067. display: flex;
  13068. flex-direction: column;
  13069. justify-content: flex-start;
  13070. align-items: center;
  13071. flex-wrap: nowrap;
  13072. background: #fff;
  13073. /* top: 18%; */
  13074. }
  13075. .stepTop > div {
  13076. height: 80px;
  13077. width: 85%;
  13078. cursor: pointer;
  13079. margin: 10px 0;
  13080. border-radius: 10px;
  13081. }
  13082. .first,
  13083. .second,
  13084. .third,
  13085. .four {
  13086. background: #4a83d0;
  13087. height: 90px;
  13088. color: #fff;
  13089. display: flex;
  13090. flex-direction: row;
  13091. align-items: center;
  13092. justify-content: center;
  13093. }
  13094. .first > div:nth-child(1),
  13095. .second > div:nth-child(1),
  13096. .third > div:nth-child(1),
  13097. .four > div:nth-child(1) {
  13098. margin: 5px 10px 0 0;
  13099. width: 2rem;
  13100. }
  13101. .firstNo,
  13102. .secondNo,
  13103. .thirdNo,
  13104. .fourNo {
  13105. background: #e7e7e7;
  13106. color: #adadad;
  13107. display: flex;
  13108. flex-direction: row;
  13109. align-items: center;
  13110. justify-content: center;
  13111. }
  13112. .firstNo > div:nth-child(1),
  13113. .secondNo > div:nth-child(1),
  13114. .thirdNo > div:nth-child(1),
  13115. .fourNo > div:nth-child(1) {
  13116. margin: 5px 10px 0 0;
  13117. width: 2rem;
  13118. }
  13119. .uploadWidth >>> .el-upload {
  13120. width: 60px;
  13121. height: 60px;
  13122. position: relative;
  13123. }
  13124. .addPeople {
  13125. background: #fa6060;
  13126. width: 150px;
  13127. height: 40px;
  13128. color: #fff;
  13129. border-radius: 5px;
  13130. text-align: center;
  13131. line-height: 40px;
  13132. font-size: 14px;
  13133. cursor: pointer;
  13134. }
  13135. .kcImg {
  13136. width: 60px;
  13137. margin-left: 10px;
  13138. }
  13139. .zyImg {
  13140. width: 55px;
  13141. margin: 0 10px;
  13142. }
  13143. .deleteZy {
  13144. width: 20px;
  13145. position: absolute;
  13146. top: 5px;
  13147. right: 5px;
  13148. cursor: pointer;
  13149. }
  13150. .kcImg > img,
  13151. .zyImg > img,
  13152. .deleteZy > img {
  13153. width: 100%;
  13154. height: 100%;
  13155. }
  13156. .zyBox {
  13157. display: flex;
  13158. flex-direction: row;
  13159. align-items: center;
  13160. background: #67d37d;
  13161. color: #fff;
  13162. width: 210px;
  13163. margin: 20px 20px 0 0;
  13164. border-radius: 10px;
  13165. height: 70px;
  13166. position: relative;
  13167. }
  13168. .upCss {
  13169. display: flex;
  13170. flex-direction: row;
  13171. justify-content: flex-start;
  13172. }
  13173. .upCss >>> .el-icon-plus {
  13174. position: none !important;
  13175. width: 200px;
  13176. height: 100px;
  13177. display: flex;
  13178. flex-wrap: nowrap;
  13179. flex-direction: column;
  13180. align-items: center;
  13181. justify-content: center;
  13182. border: 1px dashed #ccc;
  13183. min-width: 78px;
  13184. min-height: 100px;
  13185. z-index: 999;
  13186. }
  13187. .upCss >>> .el-upload-list__item-name {
  13188. width: 100px;
  13189. white-space: nowrap;
  13190. overflow: hidden;
  13191. text-overflow: ellipsis;
  13192. }
  13193. .upCss>>>.el-upload-list__item .el-icon-close {
  13194. font-size: 20px;
  13195. z-index: 9999;
  13196. }
  13197. .addStageImg {
  13198. min-width: 25px;
  13199. min-height: 25px;
  13200. width: 25px;
  13201. height: 25px;
  13202. cursor: pointer;
  13203. }
  13204. .addHW {
  13205. width: 28px;
  13206. height: 28px;
  13207. cursor: pointer;
  13208. }
  13209. .addStageImg > img,
  13210. .addHW > img {
  13211. width: 100%;
  13212. height: 100%;
  13213. }
  13214. .addNewPP >>> .el-dialog__body {
  13215. padding: 5px 20px;
  13216. }
  13217. .addNewPP>>>.el-dialog {
  13218. margin-top: 5vh !important;
  13219. }
  13220. .addNewPP2>>>.el-dialog__body {
  13221. padding: 5px 0;
  13222. }
  13223. .addNewPP2>>>.el-dialog {
  13224. margin-top: 5vh !important;
  13225. }
  13226. .isHeight {
  13227. height: 680px;
  13228. }
  13229. .toolChoose {
  13230. display: flex;
  13231. /* width: 100%; */
  13232. flex-direction: row;
  13233. flex-wrap: wrap;
  13234. }
  13235. .tool {
  13236. display: flex;
  13237. flex-direction: column;
  13238. flex-wrap: nowrap;
  13239. width: fit-content;
  13240. margin: 10px 0 10px 0;
  13241. align-items: center;
  13242. }
  13243. .tool + .tool {
  13244. margin-right: 45px;
  13245. }
  13246. .whiteBIcon {
  13247. width: 80px;
  13248. cursor: pointer;
  13249. display: flex;
  13250. flex-direction: column;
  13251. flex-wrap: nowrap;
  13252. align-items: center;
  13253. font-size: 14px;
  13254. }
  13255. .whiteBIcon > img,
  13256. .toolIcon > img,
  13257. .arrow > img {
  13258. width: 100%;
  13259. height: 100%;
  13260. }
  13261. .check img {
  13262. width: 20px;
  13263. height: 20px;
  13264. }
  13265. .whiteBIcon > img {
  13266. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  13267. border-radius: 15px;
  13268. }
  13269. .whiteBIcon > div:nth-child(2){
  13270. height: 20px;
  13271. line-height: 20px;
  13272. }
  13273. .check {
  13274. /* width: 20px;
  13275. height: 20px; */
  13276. cursor: pointer;
  13277. margin: 10px 0 0;
  13278. }
  13279. .checkDiv {
  13280. display: flex;
  13281. align-items: center;
  13282. }
  13283. .checkDiv span {
  13284. margin-left: 5px;
  13285. color: #858585;
  13286. }
  13287. .customWidth >>> .el-dialog {
  13288. min-width: 500px !important;
  13289. }
  13290. .a_addBox {
  13291. margin: 10px 0;
  13292. background: #fff;
  13293. padding: 15px;
  13294. /* max-height: 600px; */
  13295. overflow: auto;
  13296. }
  13297. .a_add_box {
  13298. border-bottom: 2px solid #eee;
  13299. padding-bottom: 25px;
  13300. }
  13301. .a_add_head {
  13302. display: flex;
  13303. align-items: center;
  13304. justify-content: space-between;
  13305. margin: 10px 0 0 0;
  13306. font-size: 18px;
  13307. }
  13308. .a_add_checkType {
  13309. margin-top: 10px;
  13310. display: flex;
  13311. font-size: 14px;
  13312. align-items: center;
  13313. }
  13314. .a_add_checkType span {
  13315. box-sizing: border-box;
  13316. padding: 0 0 5px 0;
  13317. cursor: pointer;
  13318. }
  13319. .a_add_checkType span + span {
  13320. margin-left: 10px;
  13321. }
  13322. .a_add_checkType .active {
  13323. border-bottom: 2px solid #409eff;
  13324. color: #409eff;
  13325. }
  13326. .a_add_head .a_add_head_input {
  13327. width: 100%;
  13328. }
  13329. .a_add_head .a_add_head_div {
  13330. display: flex;
  13331. align-items: center;
  13332. justify-content: space-between;
  13333. }
  13334. .a_add_body {
  13335. display: flex;
  13336. /* align-items: center; */
  13337. align-items: flex-end;
  13338. }
  13339. .a_add_input {
  13340. display: flex;
  13341. align-items: center;
  13342. flex-wrap: wrap;
  13343. }
  13344. .a_add_input_choice {
  13345. flex-direction: column;
  13346. margin-right: 10px;
  13347. }
  13348. .a_add_input_choice >>> .el-radio {
  13349. display: flex;
  13350. align-items: center;
  13351. flex-direction: row-reverse;
  13352. margin: 30px 0 0 0;
  13353. position: relative;
  13354. }
  13355. .a_add_input_choice >>> .el-checkbox {
  13356. display: flex;
  13357. align-items: center;
  13358. flex-direction: row-reverse;
  13359. margin: 30px 0 0 0;
  13360. position: relative;
  13361. }
  13362. .width100 {
  13363. width: 100%;
  13364. }
  13365. .a_add_input .a_add_persent {
  13366. width: 100%;
  13367. }
  13368. .a_add_persent_div {
  13369. width: 100%;
  13370. display: flex;
  13371. align-items: center;
  13372. }
  13373. .a_add_persent_div span {
  13374. margin: 5px 0;
  13375. }
  13376. .a_add_persent_div span:nth-child(1) {
  13377. width: 30%;
  13378. }
  13379. .a_add_persent_div span:nth-child(2) {
  13380. width: 7%;
  13381. }
  13382. .a_add_persent_div span:nth-child(3) {
  13383. width: 40%;
  13384. }
  13385. .a_add_body_div {
  13386. display: flex;
  13387. align-items: center;
  13388. justify-content: center;
  13389. /* flex-direction: column; */
  13390. position: absolute;
  13391. right: -20px;
  13392. transform: translateX(100%);
  13393. }
  13394. .a_add_body_div >>> .el-button--primary{
  13395. background: #466b99;
  13396. border: none;
  13397. }
  13398. .all_choose {
  13399. display: flex;
  13400. flex-direction: row;
  13401. align-items: flex-start;
  13402. width: 100%;
  13403. }
  13404. .all_choose>span {
  13405. min-width: fit-content;
  13406. display: block;
  13407. white-space: nowrap;
  13408. overflow: hidden;
  13409. text-overflow: ellipsis;
  13410. margin-right: 20px;
  13411. font-weight: bold;
  13412. font-size: 14px;
  13413. }
  13414. .all_choose >>> .el-checkbox-group {
  13415. display: flex;
  13416. flex-direction: row;
  13417. width: 100%;
  13418. flex-wrap: wrap;
  13419. align-content: center;
  13420. justify-content: flex-start;
  13421. align-items: center;
  13422. margin-top: 3px;
  13423. }
  13424. .all_choose > .el-checkbox-group >>> .el-checkbox {
  13425. margin-bottom: 10px;
  13426. display: flex;
  13427. flex-direction: row;
  13428. align-items: center;
  13429. margin-right:10px;
  13430. }
  13431. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  13432. min-width: 80px;
  13433. overflow: hidden;
  13434. width: 80px;
  13435. text-overflow: ellipsis;
  13436. white-space: nowrap;
  13437. }
  13438. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  13439. width: auto;
  13440. }
  13441. .choose > div:nth-child(3) > span {
  13442. /* letter-spacing: 0 !important; */
  13443. }
  13444. .choose {
  13445. display: flex;
  13446. flex-direction: column;
  13447. flex-wrap: nowrap;
  13448. height: 100%;
  13449. justify-content: space-evenly;
  13450. align-items: flex-start;
  13451. }
  13452. .both {
  13453. display: flex;
  13454. flex-direction: row;
  13455. flex-wrap: wrap;
  13456. width: 100%;
  13457. align-items: center;
  13458. justify-content: flex-start;
  13459. margin: 15px 0;
  13460. }
  13461. .notice >>> .el-dialog {
  13462. width: 500px !important;
  13463. text-align: center;
  13464. }
  13465. .notice >>> .el-button {
  13466. margin-top: 20px;
  13467. }
  13468. .whiteBg {
  13469. background: #fff;
  13470. border-radius: 10px;
  13471. }
  13472. .wb_j_box {
  13473. display: flex;
  13474. width: 100%;
  13475. padding: 10px 20px;
  13476. box-sizing: border-box;
  13477. }
  13478. .wb_j_box_content {
  13479. width: calc(100% - 55% - 100px);
  13480. display: flex;
  13481. align-items: center;
  13482. }
  13483. .wb_j_box_p_box {
  13484. max-width: calc(100% - 200px);
  13485. word-break: break-all;
  13486. overflow: hidden;
  13487. margin: 0 0 0 10px;
  13488. font-size: 14px;
  13489. color: #6e6e6e;
  13490. }
  13491. .chooseWho {
  13492. display: flex;
  13493. width: 410px;
  13494. flex-direction: row;
  13495. flex-wrap: nowrap;
  13496. justify-content: space-between;
  13497. padding-bottom: 10px;
  13498. }
  13499. .chooseWho > div {
  13500. cursor: pointer;
  13501. padding-bottom: 10px;
  13502. font-weight: bold;
  13503. }
  13504. .isChooseActive {
  13505. color: #3e88f4;
  13506. border-bottom: 2px solid #2f80f3;
  13507. }
  13508. .toolSort {
  13509. display: flex;
  13510. flex-direction: row;
  13511. flex-wrap: wrap;
  13512. justify-content: flex-start;
  13513. align-items: flex-start;
  13514. }
  13515. .toolSort > div {
  13516. margin-right: 45px;
  13517. }
  13518. .tools {
  13519. width: 100%;
  13520. display: flex;
  13521. flex-direction: column;
  13522. flex-wrap: nowrap;
  13523. align-items: flex-start;
  13524. }
  13525. .leftTools,
  13526. .rightTools {
  13527. width: 50%;
  13528. }
  13529. .leftTools+.leftTools{
  13530. border-top: 1px solid #dbdbdb;
  13531. padding-top: 30px;
  13532. }
  13533. .rightTools {
  13534. display: flex;
  13535. flex-direction: row;
  13536. flex-wrap: nowrap;
  13537. justify-content: space-around;
  13538. }
  13539. .firstToolList {
  13540. display: flex;
  13541. flex-direction: column;
  13542. flex-wrap: nowrap;
  13543. align-items: center;
  13544. }
  13545. .iconList {
  13546. display: flex;
  13547. flex-direction: row;
  13548. flex-wrap: wrap;
  13549. justify-content: flex-start;
  13550. align-items: center;
  13551. margin: 20px 0 5px 0;
  13552. width: 240px;
  13553. min-width: 240px;
  13554. }
  13555. .iconTool {
  13556. display: flex;
  13557. flex-direction: column;
  13558. flex-wrap: nowrap;
  13559. align-items: center;
  13560. justify-content: flex-start;
  13561. margin: 15px 10px;
  13562. }
  13563. .toolIcon {
  13564. width: 50px;
  13565. }
  13566. .taskBorder {
  13567. /*border: 1px solid #e1e1e1; */
  13568. border-radius: 8px;
  13569. margin-top: 10px;
  13570. /* min-height: 1160px; */
  13571. position: relative;
  13572. background: #F0F4FA;
  13573. padding: 20px 20px 0;
  13574. overflow: hidden;
  13575. box-sizing: border-box;
  13576. background: #fff;
  13577. }
  13578. .smallTaskBorder {
  13579. height: 170px;
  13580. min-height: 170px !important;
  13581. overflow: hidden;
  13582. }
  13583. .taskBorder > div {
  13584. /* padding: 30px 0 10px 30px; */
  13585. }
  13586. .addTaskBorder {
  13587. /* border: 2px solid #5E9AFC; */
  13588. border-radius: 8px;
  13589. margin-top: 10px;
  13590. cursor: pointer;
  13591. /* height: 50px;
  13592. line-height: 50px; */
  13593. background: #fff;
  13594. padding: 15px 0;
  13595. display: flex;
  13596. align-items: center;
  13597. justify-content: center;
  13598. }
  13599. /* .addTaskBorder>div {
  13600. margin: 0 auto;
  13601. display: flex;
  13602. align-items: center;
  13603. justify-content: center;
  13604. }
  13605. .addTaskBorder>div>img {
  13606. width: 20px;
  13607. }
  13608. .addTaskBorder>div>span {
  13609. font-size: 16px;
  13610. margin-left: 10px;
  13611. color: #5E9AFC;
  13612. } */
  13613. .funBlock {
  13614. display: flex;
  13615. padding: 15px 0;
  13616. flex-direction: row;
  13617. justify-content: flex-end;
  13618. align-items: center;
  13619. position: absolute;
  13620. right: 15px;
  13621. bottom: 35px;
  13622. }
  13623. .fold {
  13624. display: flex;
  13625. margin: 0 10px;
  13626. flex-direction: row;
  13627. align-items: center;
  13628. cursor: pointer;
  13629. }
  13630. .arrow {
  13631. width: 15px;
  13632. height: 15px;
  13633. margin-left: 10px;
  13634. }
  13635. .addToolFun {
  13636. display: flex;
  13637. width: 150px;
  13638. flex-direction: row;
  13639. align-items: center;
  13640. justify-content: center;
  13641. border: 1px dashed;
  13642. border-radius: 5px;
  13643. height: 50px;
  13644. margin: 20px auto 35px;
  13645. cursor: pointer;
  13646. }
  13647. .addToolFun2 {
  13648. display: flex;
  13649. width: 150px;
  13650. border: 2px dashed #CAD1DC;
  13651. flex-direction: row;
  13652. align-items: center;
  13653. justify-content: center;
  13654. border-radius: 5px;
  13655. height: 50px;
  13656. margin: 0 auto 0;
  13657. cursor: pointer;
  13658. }
  13659. .addToolImg {
  13660. width: 20px;
  13661. height: 20px;
  13662. margin-right: 10px;
  13663. }
  13664. .addToolsDia >>> .el-dialog__body {
  13665. padding: 20px;
  13666. }
  13667. .addToolsDia >>> .el-dialog__body > .toolChoose {
  13668. padding: 0;
  13669. }
  13670. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  13671. padding: 0;
  13672. border-bottom: none;
  13673. margin-bottom: 0;
  13674. }
  13675. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  13676. width: 100%;
  13677. }
  13678. .lineCss >>> .el-form-item__label {
  13679. width: auto !important;
  13680. }
  13681. .lineCss >>> .el-form-item__content {
  13682. margin-left: 50px !important;
  13683. }
  13684. .newSteps {
  13685. display: flex;
  13686. width: 100% !important;
  13687. height: 80px;
  13688. cursor: pointer;
  13689. margin: 10px 0;
  13690. border-radius: 10px;
  13691. flex-direction: row;
  13692. align-content: center;
  13693. justify-content: center;
  13694. align-items: center;
  13695. margin: 0 !important;
  13696. }
  13697. /* 评价样式 */
  13698. .elist_css {
  13699. padding-bottom: 60px !important;
  13700. }
  13701. .elist_title {
  13702. margin-bottom: 10px;
  13703. }
  13704. .elist_input {
  13705. }
  13706. .elist_input_box {
  13707. display: flex;
  13708. align-items: center;
  13709. flex-wrap: wrap;
  13710. }
  13711. .elist_input_box + .elist_input_box {
  13712. margin-top: 30px;
  13713. }
  13714. .elist_input .elist_input_box input {
  13715. font: inherit;
  13716. color: currentColor;
  13717. /* width: 200px; */
  13718. max-width: 200px;
  13719. padding: 8px 14px;
  13720. display: block;
  13721. min-width: 0;
  13722. outline: none;
  13723. border: 1px solid rgba(0, 0, 0, 0.23);
  13724. border-radius: 4px;
  13725. box-sizing: border-box;
  13726. background: #fff;
  13727. margin: 0 20px 0 0;
  13728. }
  13729. .elist_input .elist_input_box span {
  13730. height: 36px;
  13731. line-height: 36px;
  13732. color: rgb(82, 82, 82);
  13733. min-width: 80px;
  13734. }
  13735. .elist_input .elist_input_box .remove {
  13736. height: 20px;
  13737. width: 20px;
  13738. background-size: 100% 100%;
  13739. background-position: unset;
  13740. margin-left: 5px;
  13741. }
  13742. .elist_input_box >>> .el-rate {
  13743. display: flex;
  13744. height: 36px;
  13745. align-items: center;
  13746. }
  13747. .elist_input_box .elist_inptu_text {
  13748. width: 100%;
  13749. display: flex;
  13750. align-items: center;
  13751. margin-top: 10px;
  13752. }
  13753. .elist_input_box .elist_inptu_text input {
  13754. /* width: 500px; */
  13755. width: 100%;
  13756. max-width: unset;
  13757. }
  13758. .elist_input_box >>> .el-rate__icon {
  13759. font-size: 24px;
  13760. }
  13761. .elist_btn {
  13762. margin-top: 10px;
  13763. }
  13764. .lineTitle {
  13765. /* margin-top: 15px; */
  13766. width: 110px;
  13767. font-size: 16px;
  13768. display: flex;
  13769. align-items: center;
  13770. line-height: 20px;
  13771. }
  13772. .lineTitle::before {
  13773. content: '';
  13774. display: block;
  13775. width: 3px;
  13776. height: 20px;
  13777. background: #0061FF;
  13778. border-radius: 3px;
  13779. margin: 0 5px 0 0;
  13780. }
  13781. .courseTop {
  13782. display: flex;
  13783. flex-direction: row;
  13784. justify-content: space-between;
  13785. align-items: center;
  13786. width: calc(100%);
  13787. margin: 0 auto;
  13788. padding: 10px 0;
  13789. }
  13790. .stepsNav {
  13791. display: flex;
  13792. flex-direction: row;
  13793. justify-content: flex-start;
  13794. align-items: center;
  13795. }
  13796. .stepsWord {
  13797. font-size: 18px;
  13798. color: #fff;
  13799. font-weight: bold;
  13800. margin-left: auto;
  13801. background: rgb(15, 126, 255);
  13802. border-radius: 5px;
  13803. padding: 3px 25px;
  13804. box-sizing: border-box;
  13805. }
  13806. .rightBox {
  13807. width: calc(100%);
  13808. background: #F0F2F5;
  13809. /* border-radius: 10px; */
  13810. overflow: auto;
  13811. height: calc(100% - 120px);
  13812. margin: 0 auto;
  13813. position: relative;
  13814. box-sizing: border-box;
  13815. border-radius: 5px;
  13816. }
  13817. .e_add_top {
  13818. display: flex;
  13819. justify-content: space-between;
  13820. padding: 20px 20px 0 20px;
  13821. border-radius: 3px;
  13822. background: #fff;
  13823. }
  13824. .e_add_title2 {
  13825. display: flex;
  13826. align-items: center;
  13827. }
  13828. .e_add_title2 span {
  13829. width: 40px;
  13830. }
  13831. .e_add_title {
  13832. display: flex;
  13833. align-items: center;
  13834. color: #b8b8b8;
  13835. font-size: 18px;
  13836. position: relative;
  13837. height: 40px;
  13838. }
  13839. .e_add_title span {
  13840. margin-right: 10px;
  13841. }
  13842. .e_add_title .el_input {
  13843. width: 300px;
  13844. }
  13845. .e_add_title >>> .el-input__inner {
  13846. width: 400px;
  13847. }
  13848. .e_add_btn {
  13849. }
  13850. .e_add_content {
  13851. display: flex;
  13852. width: 100%;
  13853. }
  13854. .e_add_list {
  13855. background: #fff;
  13856. height: 500px;
  13857. width: 210px;
  13858. position: relative;
  13859. margin: 15px 5px 0 0;
  13860. flex-shrink: 0;
  13861. display: flex;
  13862. flex-direction: column;
  13863. }
  13864. .e_add_list_title {
  13865. font-size: 20px;
  13866. width: 100%;
  13867. box-sizing: border-box;
  13868. padding: 15px 40px;
  13869. text-align: center;
  13870. border-bottom: 1px solid #eaeaea;
  13871. position: relative;
  13872. display: flex;
  13873. align-items: center;
  13874. justify-content: center;
  13875. height: 57px;
  13876. background: #f6f6f6;
  13877. }
  13878. .e_add_list_title span {
  13879. overflow: hidden;
  13880. white-space: nowrap;
  13881. text-overflow: ellipsis;
  13882. }
  13883. .e_add_list_title img {
  13884. position: absolute;
  13885. right: 15px;
  13886. width: 25px;
  13887. cursor: pointer;
  13888. top: 50%;
  13889. transform: translateY(-50%);
  13890. }
  13891. .e_add_list_body {
  13892. height: calc(100% - 187px);
  13893. overflow: auto;
  13894. }
  13895. .e_add_list_child {
  13896. width: 100%;
  13897. display: flex;
  13898. align-items: center;
  13899. justify-content: center;
  13900. position: relative;
  13901. box-sizing: border-box;
  13902. padding: 15px 40px;
  13903. text-align: center;
  13904. }
  13905. .e_add_list_child span {
  13906. overflow: hidden;
  13907. white-space: nowrap;
  13908. text-overflow: ellipsis;
  13909. cursor: pointer;
  13910. }
  13911. .e_add_list_child img {
  13912. position: absolute;
  13913. right: 10px;
  13914. width: 21px;
  13915. cursor: pointer;
  13916. top: 50%;
  13917. transform: translateY(-50%);
  13918. }
  13919. .e_add_list_child + .e_add_list_child {
  13920. border-top: 1px solid #eaeaea;
  13921. }
  13922. .e_add_list_child .active {
  13923. color: #409eff;
  13924. }
  13925. .e_add_list_btn {
  13926. position: absolute;
  13927. bottom: 0;
  13928. height: 50px;
  13929. background: rgb(120, 120, 254);
  13930. width: 100%;
  13931. color: #fff;
  13932. font-size: 16px;
  13933. text-align: center;
  13934. line-height: 50px;
  13935. cursor: pointer;
  13936. }
  13937. .e_add_list_detail {
  13938. position: absolute;
  13939. bottom: 0;
  13940. height: 130px;
  13941. background: rgb(120, 120, 254);
  13942. width: 100%;
  13943. color: #fff;
  13944. font-size: 16px;
  13945. display: flex;
  13946. align-items: center;
  13947. justify-content: center;
  13948. }
  13949. .e_add_list_detail textarea {
  13950. height: 90%;
  13951. width: 95%;
  13952. border: none;
  13953. resize: none;
  13954. outline: none;
  13955. padding: 5px;
  13956. box-sizing: border-box;
  13957. }
  13958. .e_add_list_pbox {
  13959. width: 100%;
  13960. }
  13961. .e_add_list_pbox_title {
  13962. height: 50px;
  13963. background: #fff;
  13964. display: flex;
  13965. align-items: center;
  13966. width: 100%;
  13967. box-sizing: border-box;
  13968. padding: 0 20px;
  13969. flex-direction: row;
  13970. flex-wrap: wrap;
  13971. }
  13972. .type_title {
  13973. font-size: 18px;
  13974. font-weight: 700;
  13975. }
  13976. .type_content {
  13977. font-size: 16px;
  13978. margin-left: 30px;
  13979. }
  13980. .type_content span + span {
  13981. margin-left: 20px;
  13982. }
  13983. .type_content span {
  13984. cursor: pointer;
  13985. padding-bottom: 5px;
  13986. box-sizing: border-box;
  13987. }
  13988. .type_content .active {
  13989. color: #409eff;
  13990. border-bottom: 2px solid #409eff;
  13991. }
  13992. .e_add_list_pbox_content {
  13993. height: calc(100% - 50px);
  13994. display: flex;
  13995. align-items: center;
  13996. width: 100%;
  13997. background: #fff;
  13998. }
  13999. .mbCss {
  14000. width: 100%;
  14001. display: flex;
  14002. flex-direction: row;
  14003. flex-wrap: nowrap;
  14004. align-content: center;
  14005. align-items: flex-start;
  14006. justify-content: flex-start;
  14007. }
  14008. .pjCss {
  14009. /* width: 42%; */
  14010. width: calc(100% - 55%);
  14011. display: flex;
  14012. flex-direction: column;
  14013. flex-wrap: nowrap;
  14014. align-items: flex-start;
  14015. margin-top: 1.5%;
  14016. }
  14017. .e_box {
  14018. display: flex;
  14019. flex-wrap: wrap;
  14020. max-height: 500px;
  14021. align-items: flex-start;
  14022. overflow: auto;
  14023. }
  14024. .e_card {
  14025. border: 1px solid #ccc;
  14026. background: #fff;
  14027. margin-right: 20px;
  14028. width: 270px;
  14029. display: flex;
  14030. flex-direction: column;
  14031. align-items: center;
  14032. border-radius: 5px;
  14033. margin-top: 10px;
  14034. text-align: center;
  14035. }
  14036. .e_card_picture {
  14037. margin: 10px 0;
  14038. }
  14039. .e_card_picture > img {
  14040. width: 50px;
  14041. }
  14042. .e_card_name {
  14043. width: 100%;
  14044. padding: 0 10px;
  14045. box-sizing: border-box;
  14046. margin-bottom: 10px;
  14047. overflow: hidden;
  14048. text-overflow: ellipsis;
  14049. white-space: nowrap;
  14050. }
  14051. .e_card_time {
  14052. width: 100%;
  14053. padding: 0 10px;
  14054. box-sizing: border-box;
  14055. font-size: 15px;
  14056. color: #c3c3c3;
  14057. margin-bottom: 10px;
  14058. }
  14059. .e_card_btn {
  14060. height: 40px;
  14061. display: flex;
  14062. align-items: center;
  14063. width: 100%;
  14064. background: rgb(244, 244, 244);
  14065. }
  14066. .e_card_btn:hover {
  14067. background: rgb(221 221 221);
  14068. }
  14069. .e_card_btn span {
  14070. flex: 1 1 auto;
  14071. text-align: center;
  14072. cursor: pointer;
  14073. }
  14074. .addEva {
  14075. border: 1px solid #ccc;
  14076. background: #fff;
  14077. margin-right: 20px;
  14078. width: 270px;
  14079. height: 149px;
  14080. display: flex;
  14081. flex-direction: column;
  14082. align-items: center;
  14083. border-radius: 5px;
  14084. margin-top: 10px;
  14085. text-align: center;
  14086. cursor: pointer;
  14087. justify-content: center;
  14088. }
  14089. .addEva > img {
  14090. width: 50px;
  14091. object-fit: cover;
  14092. }
  14093. .uploadFm {
  14094. border: 1px dashed #ccc;
  14095. width: 100%;
  14096. height: 140px;
  14097. position: relative;
  14098. cursor: pointer;
  14099. display: flex;
  14100. flex-direction: column;
  14101. justify-content: center;
  14102. align-items: center;
  14103. font-size: 14px;
  14104. color: #6e6e6e;
  14105. }
  14106. .uploadFm > img {
  14107. width: 50px;
  14108. }
  14109. .fileCss {
  14110. width: 100%;
  14111. display: flex;
  14112. flex-direction: row;
  14113. flex-wrap: nowrap;
  14114. justify-content: space-around;
  14115. align-items: center;
  14116. padding-top: 15px;
  14117. }
  14118. .fileCss > div{
  14119. display: flex;
  14120. flex-direction: column;
  14121. align-items: center;
  14122. }
  14123. .fileCss .spanName{
  14124. margin-top:10px
  14125. }
  14126. .sysPicBox {
  14127. display: flex;
  14128. flex-direction: row;
  14129. flex-wrap: wrap;
  14130. align-content: flex-start;
  14131. height: 435px;
  14132. overflow: auto;
  14133. position: relative;
  14134. }
  14135. .picNone {
  14136. position: absolute;
  14137. left: 50%;
  14138. top: 45%;
  14139. transform: translate(-50%, -50%);
  14140. width:fit-content;
  14141. color: #9c9c9c;
  14142. }
  14143. .sysPic {
  14144. width: 200px;
  14145. height: 115px;
  14146. margin: 0 20px 20px 0;
  14147. cursor: pointer;
  14148. }
  14149. .sysPic > img,
  14150. .isSysPic > img,
  14151. .deletePic > img {
  14152. width: 100%;
  14153. height: 100%;
  14154. object-fit: cover;
  14155. }
  14156. .isSysPic {
  14157. width: 200px;
  14158. height: 115px;
  14159. position: relative;
  14160. }
  14161. .deletePic {
  14162. width: 20px;
  14163. height: 20px;
  14164. position: absolute;
  14165. top: 0;
  14166. right: 0;
  14167. cursor: pointer;
  14168. }
  14169. .select_box1 {
  14170. height: 100%;
  14171. }
  14172. .select_box1_img {
  14173. background: #fff;
  14174. border-radius: 5px;
  14175. padding: 15px;
  14176. box-sizing: border-box;
  14177. margin-bottom: 20px;
  14178. }
  14179. .select_box1_title {
  14180. padding: 0 0 15px 0;
  14181. border-bottom: 1px solid #eee;
  14182. margin-bottom: 15px;
  14183. }
  14184. .select_box1_title span:nth-child(1) {
  14185. font-size: 16px;
  14186. margin-right: 20px;
  14187. color: #000;
  14188. }
  14189. .select_box1_title span:nth-child(2) {
  14190. font-size: 14px;
  14191. color: rgb(112, 112, 112);
  14192. }
  14193. .select_box1_add_img {
  14194. }
  14195. .select_box1_select {
  14196. background: #fff;
  14197. border-radius: 5px;
  14198. padding: 15px;
  14199. box-sizing: border-box;
  14200. height: calc(100% - 200px);
  14201. overflow: auto;
  14202. }
  14203. .select_box2 {
  14204. height: 100%;
  14205. }
  14206. .select_box2_title {
  14207. background: #fff;
  14208. border-radius: 5px;
  14209. padding: 5px 10px;
  14210. box-sizing: border-box;
  14211. margin-bottom: 10px;
  14212. }
  14213. .select_box2_box {
  14214. display: flex;
  14215. height: calc(100% - 30px);
  14216. }
  14217. .select_box2_img {
  14218. width: calc(100% - 310px);
  14219. height: 100%;
  14220. overflow: auto;
  14221. background: #fff;
  14222. border-radius: 5px;
  14223. }
  14224. .select_box2_img img {
  14225. width: 100%;
  14226. }
  14227. .select_box2_answer {
  14228. background: #fff;
  14229. margin-left: 10px;
  14230. border-radius: 5px;
  14231. width: 300px;
  14232. overflow: auto;
  14233. height: 100%;
  14234. display: flex;
  14235. flex-direction: column;
  14236. align-items: center;
  14237. padding-top: 10px;
  14238. box-sizing: border-box;
  14239. }
  14240. .select_box2_answer_box {
  14241. margin: 0 0 10px 0;
  14242. width: 85%;
  14243. }
  14244. .rate_textarea {
  14245. font: inherit;
  14246. color: currentColor;
  14247. width: 100%;
  14248. padding: 8px 14px;
  14249. display: block;
  14250. min-width: 0;
  14251. outline: none;
  14252. border: 1px solid rgba(0, 0, 0, 0.23);
  14253. border-radius: 4px;
  14254. box-sizing: border-box;
  14255. background: #fff;
  14256. margin: 0 20px 0 0;
  14257. resize: none;
  14258. }
  14259. .select_answer_title {
  14260. text-align: left;
  14261. width: 85%;
  14262. margin-bottom: 10px;
  14263. font-size: 18px;
  14264. color: #8e8e8e;
  14265. }
  14266. .mask {
  14267. background-color: rgb(0 0 0 / 30%);
  14268. /* position: fixed; */
  14269. position: absolute;
  14270. top: 0;
  14271. left: 0;
  14272. width: 100%;
  14273. height: 100%;
  14274. z-index: 90;
  14275. display: flex;
  14276. align-items: center;
  14277. justify-content: center;
  14278. }
  14279. .progressBox {
  14280. width: 300px;
  14281. height: 150px;
  14282. background: #fff;
  14283. border-radius: 10px;
  14284. box-shadow: 0 0 6px 1px #bfbfbf;
  14285. display: flex;
  14286. align-items: center;
  14287. justify-content: center;
  14288. flex-direction: column;
  14289. position: relative;
  14290. color: #6c6c6c;
  14291. }
  14292. .progressBox >>> .el-progress-bar__outer {
  14293. background-color: #d1dfff !important;
  14294. }
  14295. .progressBox .lbox {
  14296. height: 50px;
  14297. font-size: 19px;
  14298. display: flex;
  14299. align-items: center;
  14300. color: #747474;
  14301. }
  14302. .progressBox .lbox img {
  14303. width: 40px;
  14304. margin-right: 20px;
  14305. }
  14306. .closeCss {
  14307. position: absolute;
  14308. top: 8px;
  14309. right: 8px;
  14310. cursor: pointer;
  14311. width: 20px;
  14312. height: 20px;
  14313. }
  14314. .closeCss > img {
  14315. width: 100%;
  14316. height: 100%;
  14317. }
  14318. .updateTips::after {
  14319. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  14320. font-size: 14px;
  14321. margin-left: 20px;
  14322. font-weight: 400;
  14323. color: #ff3a3a;
  14324. }
  14325. .updateMask {
  14326. width: 100%;
  14327. z-index: 3;
  14328. top: 0;
  14329. position: absolute;
  14330. /* background-color: rgba(0,0,0,.3); */
  14331. }
  14332. .t_j_box {
  14333. display: flex;
  14334. }
  14335. .t_j_box span:nth-child(1) {
  14336. width: 15%;
  14337. overflow: hidden;
  14338. margin-right: 10px;
  14339. text-overflow: ellipsis;
  14340. white-space: nowrap;
  14341. }
  14342. .t_j_box span:nth-child(2) {
  14343. width: 30%;
  14344. overflow: hidden;
  14345. text-overflow: ellipsis;
  14346. margin-right: 10px;
  14347. }
  14348. .t_j_box span:nth-child(3) {
  14349. max-width: calc(55% - 20px);
  14350. overflow: hidden;
  14351. text-overflow: ellipsis;
  14352. }
  14353. .sentenBox {
  14354. background: #fff;
  14355. height: 600px;
  14356. overflow: auto;
  14357. background-image: url("../../../assets/icon/conSentences/csBg.png");
  14358. background-position: 102%;
  14359. background-repeat: no-repeat;
  14360. background-size: 60%;
  14361. }
  14362. .sentenBox > .sentenContent{
  14363. padding-bottom: 10px;
  14364. width: 97%;
  14365. margin: 0 auto;
  14366. }
  14367. .sentenBox > .sentenContent + .sentenContent{
  14368. border-top: 1px solid #cbcbcb;
  14369. }
  14370. .addSen {
  14371. background: #409efe;
  14372. width: 90px;
  14373. color: #fff;
  14374. height: 35px;
  14375. text-align: center;
  14376. line-height: 35px;
  14377. border-radius: 5px;
  14378. float: right;
  14379. margin: 10px 20px 0 0;
  14380. cursor: pointer;
  14381. }
  14382. .sentenTop {
  14383. display: flex;
  14384. flex-direction: row;
  14385. flex-wrap: nowrap;
  14386. align-items: center;
  14387. }
  14388. .sentenTop::before{
  14389. content:attr(index);
  14390. background: #3681fc;
  14391. border-radius: 50%;
  14392. color: #fff;
  14393. width: 25px;
  14394. height: 25px;
  14395. min-width: 25px;
  14396. min-height: 25px;
  14397. text-align: center;
  14398. line-height: 25px;
  14399. margin-right: 5px;
  14400. }
  14401. .sentenTop > div:nth-child(2) {
  14402. width: 300px;
  14403. margin: 0 15px;
  14404. }
  14405. .sentenTop > div:nth-child(3) {
  14406. background: #409efe;
  14407. color: #fff;
  14408. width: 65px;
  14409. height: 35px;
  14410. text-align: center;
  14411. line-height: 35px;
  14412. border-radius: 5px;
  14413. cursor: pointer;
  14414. }
  14415. .cardList {
  14416. padding: 30px 0 20px 0;
  14417. display: flex;
  14418. flex-direction: row;
  14419. flex-wrap: wrap;
  14420. align-items: center;
  14421. box-sizing: border-box;
  14422. border-bottom: 1px solid #f4f4f4;
  14423. width: 98%;
  14424. margin: 0 auto;
  14425. }
  14426. .rightCardList{
  14427. display: flex;
  14428. flex-wrap: wrap;
  14429. }
  14430. .cardBox {
  14431. display: flex;
  14432. flex-direction: row;
  14433. flex-wrap: wrap;
  14434. align-items: center;
  14435. align-content: center;
  14436. }
  14437. .isCard,
  14438. .isCard,
  14439. .isCard1 {
  14440. width: auto;
  14441. padding: 0 20px;
  14442. height: 65px;
  14443. text-align: center;
  14444. line-height: 65px;
  14445. font-size: 14px;
  14446. cursor: pointer;
  14447. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  14448. background-size: 100% 100%;
  14449. position: relative;
  14450. z-index: 99;
  14451. }
  14452. .isCard1 {
  14453. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  14454. }
  14455. .isCard:hover .deleteWord {
  14456. display: block;
  14457. }
  14458. .isCard>div:nth-child(1),
  14459. .isCard1>div:nth-child(1) {
  14460. white-space: nowrap;
  14461. overflow: hidden;
  14462. text-overflow: ellipsis;
  14463. width: 100%;
  14464. margin: 0 auto;
  14465. }
  14466. .card {
  14467. width: 140px;
  14468. height: 65px;
  14469. }
  14470. .card > img {
  14471. width: 100%;
  14472. height: 100%;
  14473. }
  14474. .rightCardBox {
  14475. width: 98%;
  14476. margin: 10px auto 0;
  14477. }
  14478. .rightCardBox > div:nth-child(1) {
  14479. margin-bottom: 10px;
  14480. }
  14481. .cardCss {
  14482. display: flex;
  14483. flex-direction: column;
  14484. flex-wrap: nowrap;
  14485. align-items: center;
  14486. border-bottom: 3px solid #b4c3d3;
  14487. padding: 0 0 5px 0;
  14488. /* margin-right: 10px; */
  14489. }
  14490. .cardCss > div:nth-child(2) {
  14491. background: #5b7b9d;
  14492. color: #fff;
  14493. width: 20px;
  14494. height: 20px;
  14495. border-radius: 50%;
  14496. text-align: center;
  14497. line-height: 20px;
  14498. }
  14499. .sentenTopBox {
  14500. display: flex;
  14501. flex-direction: row;
  14502. flex-wrap: nowrap;
  14503. align-items: center;
  14504. justify-content: space-between;
  14505. padding: 55px 0 0 20px;
  14506. box-sizing: border-box;
  14507. width: 85%;
  14508. }
  14509. .stepsBottom {
  14510. width: 85%;
  14511. margin-bottom: 20px;
  14512. box-shadow: 0 0 10px 10px #f7f7f7;
  14513. background: #f7f7f7;
  14514. border-radius: 10px;
  14515. overflow: hidden;
  14516. }
  14517. .course_left {
  14518. width: 300px;
  14519. height: auto;
  14520. position: relative;
  14521. }
  14522. .stepsBottom2 {
  14523. width: 300px;
  14524. margin: 10px 0;
  14525. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  14526. /* background: #f7f7f7; */
  14527. border-radius: 8px;
  14528. overflow: hidden;
  14529. height: fit-content;
  14530. position: relative;
  14531. /* transition: all .5s; */
  14532. }
  14533. .navTop {
  14534. background: #53749b;
  14535. color: #fff;
  14536. height: 40px;
  14537. line-height: 40px;
  14538. padding-left: 15px;
  14539. font-size: 18px;
  14540. }
  14541. .navBottom {
  14542. background: #fff;
  14543. height: calc(100vh - 210px);
  14544. overflow: auto;
  14545. }
  14546. .navTask {
  14547. display: flex;
  14548. flex-direction: row;
  14549. flex-wrap: nowrap;
  14550. align-items: center;
  14551. padding: 10px 10px 10px 0;
  14552. cursor: pointer;
  14553. background: #ffffff;
  14554. width: 95%;
  14555. margin: 10px auto 0;
  14556. box-sizing: border-box;
  14557. border-radius: 5px;
  14558. flex-wrap: wrap;
  14559. }
  14560. .navTask::before{
  14561. content: '';
  14562. display:block;
  14563. width:16px;
  14564. height:16px;
  14565. background-image: url(../../../assets/icon/new/icon_arrow.png);
  14566. background-size:100%;
  14567. margin-left:10px;
  14568. }
  14569. .isNavOpen::before{
  14570. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  14571. }
  14572. .isNavTask {
  14573. /* background: #3681FC; */
  14574. background: #EEF3FB;
  14575. }
  14576. .isNavTask .nt_taskName {
  14577. /* color: #fff !important; */
  14578. font-weight: bold !important;
  14579. color: #0061FF !important;
  14580. }
  14581. .isNavTask .nt_taskTitle {
  14582. /* color: #AECCFE !important; */
  14583. font-weight: bold !important;
  14584. color: #0061FF !important;
  14585. }
  14586. .navTask .nt_taskBox {
  14587. width: calc(100% - 85px);
  14588. padding: 0 10px 0 5px;
  14589. box-sizing: border-box;
  14590. box-sizing: border-box;
  14591. display: flex;
  14592. flex-direction: row;
  14593. flex-wrap: nowrap;
  14594. align-items: baseline;
  14595. }
  14596. .navTask .nt_taskTitle {
  14597. /* color: #717C8D; */
  14598. color: #060E17;
  14599. line-height: 25px;
  14600. font-size: 16px;
  14601. min-width: 45px;
  14602. }
  14603. .navTask .nt_taskName {
  14604. /* color: #fff; */
  14605. /* max-width: 130px; */
  14606. /* width: 100%; */
  14607. max-width: calc(100% - 50px);
  14608. white-space: nowrap;
  14609. overflow: hidden;
  14610. text-overflow: ellipsis;
  14611. font-size: 16px;
  14612. color: #060E17;
  14613. /* color: #0E1E33; */
  14614. }
  14615. .gjBox {
  14616. width: calc(100% - 25px);
  14617. padding: 0 0 0 0;
  14618. box-sizing: border-box;
  14619. border-left: 1px solid #CAD1DC;
  14620. margin-left: 25px;
  14621. }
  14622. .gjBox > div{
  14623. display:flex;
  14624. align-items:center;
  14625. }
  14626. .gjBox > div::before{
  14627. content: '';
  14628. height:1px;
  14629. width:10px;
  14630. background: #CAD1DC;
  14631. display: block;
  14632. margin-right:5px;
  14633. }
  14634. .gjCss {
  14635. display: flex;
  14636. flex-direction: row;
  14637. flex-wrap: nowrap;
  14638. align-items: center;
  14639. padding: 15px 0;
  14640. box-sizing: border-box;
  14641. font-size: 14px;
  14642. cursor: pointer;
  14643. }
  14644. .isGjCss {
  14645. color: #0061ff;
  14646. }
  14647. .groupBox {
  14648. }
  14649. .groupContent + .groupContent {
  14650. margin-top: 30px;
  14651. }
  14652. .groupTitle {
  14653. font-size: 24px;
  14654. color: rgb(80, 80, 80);
  14655. margin-bottom: 20px;
  14656. }
  14657. .groupName {
  14658. display: flex;
  14659. align-items: center;
  14660. }
  14661. .groupn {
  14662. font-size: 15px;
  14663. margin-right: 10px;
  14664. }
  14665. .groupName + .groupName {
  14666. margin-top: 15px;
  14667. }
  14668. .groupBtn {
  14669. margin-left: 10px;
  14670. }
  14671. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  14672. text-align: left;
  14673. }
  14674. .radioBox > div {
  14675. margin: 10px 0 0 10px;
  14676. }
  14677. .radioBox >>> .el-radio__input,
  14678. .radioBox >>> .el-checkbox__inner {
  14679. margin-left: 10px;
  14680. }
  14681. .radioBox >>> .el-radio__label,
  14682. .radioBox >>> .el-checkbox__label {
  14683. display: flex;
  14684. align-items: center;
  14685. }
  14686. .inImg {
  14687. width: 50px;
  14688. }
  14689. .inImg > img {
  14690. width: 100%;
  14691. height: 100%;
  14692. object-fit: cover;
  14693. }
  14694. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  14695. height: auto;
  14696. padding: 10px;
  14697. margin: 0;
  14698. }
  14699. .upCss >>> .el-upload-list{
  14700. width: 100%;
  14701. }
  14702. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  14703. width: 100%;
  14704. height: 120px;
  14705. object-fit: contain;
  14706. background: unset;
  14707. margin-left: 0;
  14708. }
  14709. .upCss
  14710. >>> .el-upload-list--picture
  14711. .el-upload-list__item.is-success
  14712. .el-upload-list__item-name {
  14713. display: none;
  14714. }
  14715. .tcMember + .tcMember::before {
  14716. content: "、";
  14717. }
  14718. .xzUpImg {
  14719. width: 25px;
  14720. height: 25px;
  14721. min-width: 25px;
  14722. min-height: 25px;
  14723. cursor: pointer;
  14724. margin: 0 10px;
  14725. }
  14726. .xzUpImg > img {
  14727. width: 100%;
  14728. height: 100%;
  14729. }
  14730. .closeCss {
  14731. position: absolute;
  14732. top: 8px;
  14733. right: 8px;
  14734. cursor: pointer;
  14735. width: 20px;
  14736. height: 20px;
  14737. }
  14738. .closeCss > img {
  14739. width: 100%;
  14740. height: 100%;
  14741. }
  14742. .moveBtn {
  14743. display: flex;
  14744. flex-direction: row;
  14745. flex-wrap: nowrap;
  14746. align-items: center;
  14747. width: 55px;
  14748. }
  14749. .timuUpImg {
  14750. display: flex;
  14751. flex-direction: row;
  14752. align-items: center;
  14753. width:100%;
  14754. margin-right:10px;
  14755. }
  14756. .timuUpImg > div:nth-child(1) {
  14757. margin-right: 10px;
  14758. display: flex;
  14759. align-items: center;
  14760. width: 100%;
  14761. }
  14762. .timuImgBox {
  14763. margin: 10px 0;
  14764. display: flex;
  14765. flex-direction: column;
  14766. flex-wrap: wrap;
  14767. align-items: flex-start;
  14768. }
  14769. .timuImg {
  14770. width: 100px;
  14771. margin: 5px 0;
  14772. cursor: pointer;
  14773. position: relative;
  14774. }
  14775. .timuImg:hover .deleteWord {
  14776. display: block;
  14777. }
  14778. .deleteWord {
  14779. width: 25px;
  14780. height: 25px;
  14781. position: absolute;
  14782. right: -5px;
  14783. top: -5px;
  14784. cursor: pointer;
  14785. display: none;
  14786. }
  14787. .timuImg > img,
  14788. .deleteWord > img {
  14789. width: 100%;
  14790. height: 100%;
  14791. object-fit: cover;
  14792. }
  14793. .e_add_delete {
  14794. cursor: pointer;
  14795. margin-left: 10px;
  14796. }
  14797. .pType_box {
  14798. margin-top: 30px;
  14799. align-items: flex-end;
  14800. }
  14801. .noneBox {
  14802. height: 100%;
  14803. width: 100%;
  14804. display: flex;
  14805. align-items: center;
  14806. justify-content: center;
  14807. margin-top: 150px;
  14808. }
  14809. .noneBox > img {
  14810. width: 300px;
  14811. }
  14812. .textarea_css{
  14813. display: block;
  14814. resize: none;
  14815. padding: 10px 15px;
  14816. line-height: 1.5;
  14817. box-sizing: border-box;
  14818. width: 100%;
  14819. font-size: 14px;
  14820. color: #606266;
  14821. background-color: #FFF;
  14822. background-image: none;
  14823. border: 1px solid #DCDFE6;
  14824. border-radius: 4px;
  14825. transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  14826. outline: none;
  14827. overflow:hidden;
  14828. height: 46px;
  14829. font-family: 'Microsoft YaHei';
  14830. }
  14831. .textarea_css::-webkit-input-placeholder {
  14832. color: #C0C4CC
  14833. }
  14834. .textarea_css:focus {
  14835. border-color: #409EFF;
  14836. outline: 0;
  14837. }
  14838. .moveBtn2{
  14839. flex-direction: column;
  14840. width: fit-content;
  14841. margin: 0 10px 0 10px;
  14842. }
  14843. .moveBtn2 .chapter_upload_down,
  14844. .moveBtn2 .chapter_upload_up{
  14845. width: 16px;
  14846. height: 16px;
  14847. }
  14848. .moveBtn2 .chapter_upload_up::after,
  14849. .moveBtn2 .chapter_upload_down::after{
  14850. width: 10px;
  14851. height: 10px;
  14852. }
  14853. .fullStyle >>> .el-dialog__body {
  14854. height: calc(100% - 125px)!important;
  14855. box-sizing: border-box;
  14856. }
  14857. .fullStyle >>> .el-dialog{
  14858. width: 100% !important;
  14859. max-width: 100% !important;
  14860. height: 100% !important;
  14861. margin: 0 !important;
  14862. }
  14863. .fullStyle {
  14864. width: 100% !important;
  14865. max-width: 100% !important;
  14866. height: 100% !important;
  14867. margin: 0 auto !important;
  14868. }
  14869. .wb_j_box_btn {
  14870. width: calc(100% - 30px);
  14871. display: flex;
  14872. height: 40px;
  14873. border: 1.5px solid #CAD1DC;
  14874. border-radius: 4px;
  14875. box-sizing: border-box;
  14876. align-items: center;
  14877. font-size: 14px;
  14878. cursor: pointer;
  14879. overflow: hidden;
  14880. }
  14881. .wb_j_box_btn:hover{
  14882. border: 1.5px solid #0061FF;
  14883. }
  14884. .wb_j_box_title {
  14885. background: #F0F4FA;
  14886. height: 100%;
  14887. line-height: 40px;
  14888. width: 90px;
  14889. text-align: center;
  14890. color: #060E17;
  14891. border-right: 1.5px solid #CAD1DC;
  14892. box-sizing: border-box;
  14893. }
  14894. .wb_j_box_btn_c {
  14895. width: calc(100% - 90px);
  14896. padding: 0 35px 0 10px;
  14897. box-sizing: border-box;
  14898. position: relative;
  14899. }
  14900. .wb_j_box_span {
  14901. width: 100%;
  14902. overflow: hidden;
  14903. white-space: nowrap;
  14904. text-overflow: ellipsis;
  14905. word-wrap: break-word;
  14906. color: #717C8D;
  14907. }
  14908. .wb_j_box_arrow {
  14909. content: '';
  14910. width: 14px;
  14911. height: 14px;
  14912. background: url(../../../assets/icon/new/u_arrow.png);
  14913. background-size: 100% 100%;
  14914. position: absolute;
  14915. right: 12px;
  14916. top: 50%;
  14917. transform: translateY(-50%);
  14918. }
  14919. .check_classBox{
  14920. height: 400px;
  14921. display: flex;
  14922. border-top: 1.5px solid #E7EBF1;
  14923. border-bottom: 1.5px solid #E7EBF1;
  14924. }
  14925. .check_class_right{
  14926. width: 130px;
  14927. border-right: 1px solid #E7EBF1;
  14928. display: flex;
  14929. align-items: center;
  14930. flex-direction: column;
  14931. height: 100%;
  14932. overflow: auto;
  14933. padding: 15px 0;
  14934. box-sizing: border-box;
  14935. }
  14936. .check_class{
  14937. width: 85%;
  14938. border-radius: 5px;
  14939. height: 30px;
  14940. line-height: 30px;
  14941. text-align: center;
  14942. padding: 0 10px;
  14943. box-sizing: border-box;
  14944. cursor:pointer;
  14945. white-space: nowrap;
  14946. overflow: hidden;
  14947. text-overflow: ellipsis;
  14948. }
  14949. .check_class.activeX{
  14950. background: #E0EAFB;
  14951. color:#3681FC;
  14952. font-weight:700;
  14953. }
  14954. .check_class + .check_class{
  14955. margin-top: 15px;
  14956. }
  14957. .check_class_left{
  14958. background: #FAFAFA;
  14959. width: calc(100% - 130px);
  14960. padding: 15px;
  14961. box-sizing: border-box;
  14962. }
  14963. .check_class_left_title{
  14964. font-size: 16px;
  14965. font-weight: 700;
  14966. margin-bottom: 10px;
  14967. }
  14968. .check_class_item{
  14969. display: flex;
  14970. flex-wrap: wrap;
  14971. height: calc(100% - 45px);
  14972. overflow: auto;
  14973. justify-content: flex-start;
  14974. align-items: flex-start;
  14975. align-content: flex-start;
  14976. }
  14977. .class_item{
  14978. margin: 0 15px 15px 0;
  14979. }
  14980. .class_item:hover >>> .el-checkbox__label{
  14981. color:#409EFF;
  14982. }
  14983. .class_item >>> .el-checkbox__label{
  14984. color: #0E1E33;
  14985. }
  14986. .class_item:hover >>> .el-checkbox__inner{
  14987. border-color: #409EFF;
  14988. }
  14989. .class_item >>> .el-checkbox, .class_item >>> .el-checkbox__input{
  14990. display: flex;
  14991. align-items: center;
  14992. }
  14993. </style>