addCourse.vue 494 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794
  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 separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  27. </div>
  28. <div class="rightBox" :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }"
  29. style="padding: 0;" v-if="this.steps == 1" @mousewheel="scrollChange">
  30. <div class="updateMask" :style="{
  31. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  32. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  33. <div class="whiteBg" style="background:unset;padding: 0;">
  34. <div>
  35. <div class="basic_box" style="padding: 0;">
  36. <div class="big_box">
  37. <div class="left_first">
  38. <div :class="{
  39. updateTips: cid && userid != courseUserid && role != '1',
  40. }">
  41. <div style="width: 100%;">
  42. <div class="course_input_box">
  43. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  44. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  45. 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;" />
  46. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  47. style="justify-content: center;width: 200px;"></el-switch>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  52. <span>类型</span>
  53. <!-- 学科+ 主题+ 未来+ -->
  54. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  55. style="display: flex; align-items: center">
  56. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  57. <el-radio :label="item.name">{{
  58. item.name
  59. }}</el-radio>
  60. </div>
  61. </el-radio-group>
  62. </div>
  63. <div class="both">
  64. <div class="choose">
  65. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  66. <span v-if="CourseTypeJson[item.id].length > 0 &&
  67. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  68. ? pTypeCheck.indexOf(item.id) != -1
  69. : true)
  70. ">{{ item.name }}:</span>
  71. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  72. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  73. ? pTypeCheck.indexOf(item.id) != -1
  74. : true)
  75. ">
  76. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  77. item1.name }}</el-checkbox>
  78. </el-checkbox-group>
  79. <!-- <div
  80. v-else
  81. style="font-size: 14px; margin-left: -8px"
  82. >
  83. 暂无
  84. </div> -->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="right_first">
  90. <!-- <div class="ai_box">
  91. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  92. </div> -->
  93. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  94. <div style="width: 100%;">
  95. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  96. <img src="../../../assets/icon/addPoster.png" alt="" />
  97. <div>点击添加封面</div>
  98. </div>
  99. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  100. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  101. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  102. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  103. <i class="el-icon-plus"></i>
  104. </el-upload>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="whiteBg" style="margin-top: 10px">
  112. <div class="wb_j_box">
  113. <div class="wb_j_box_content">
  114. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  115. (dialogVisibleClass = true),
  116. (classSearch = ''),
  117. (gradeId = ''),
  118. getClass()
  119. ">添加班级</button>
  120. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  121. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  122. getClassC(tc) }}</span>
  123. </div> -->
  124. <div class="wb_j_box_btn" @click="
  125. (dialogVisibleClass = true),
  126. (classSearch = ''),
  127. (gradeId = ''),
  128. getClass()
  129. ">
  130. <div class="wb_j_box_title">授课班级</div>
  131. <div class="wb_j_box_btn_c">
  132. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  133. v-if="checkboxList2.length" popper-class="text_tooltip2">
  134. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  135. </el-tooltip>
  136. <div v-else class="wb_j_box_span">请选择授课班级</div>
  137. <div class="wb_j_box_arrow"></div>
  138. </div>
  139. </div>
  140. </div>
  141. <div style="margin-left: auto;">
  142. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="whiteBg" style="border-radius: 0;background:unset; margin-top: 15px" v-if="false">
  147. <div class="right_title">课程简要描述</div>
  148. <div style="width: 95%; padding: 15px 0px 15px 20px">
  149. <div style="width: 55%">
  150. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="whiteBg" style="border-radius: 0;background: #F0F2F5;">
  155. <!-- <div class="right_title">
  156. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  157. <span style="margin:0 10px">上传课程内容</span>
  158. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
  159. </div> -->
  160. <div style="display: flex">
  161. <div class="course_left">
  162. <div class="stepsBottom2">
  163. <!-- <div class="navTop">辅助导航</div> -->
  164. <div class="navBottom" :style="{ height: heightPx }">
  165. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  166. .taskJson" :key="tIndex">
  167. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  168. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  169. isNavTask:
  170. isClickColor > 0 && isClickColor == tIndex + 1,
  171. isNavOpen: t.toolOpen
  172. }">
  173. <div style="left: 8px;" class="chapter_upload_drag"></div>
  174. <div class="nt_taskBox">
  175. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  176. <div class="nt_taskName">
  177. <el-tooltip effect="light" :content="t.task" placement="top">
  178. <span>{{ t.task }}</span>
  179. </el-tooltip>
  180. </div>
  181. </div>
  182. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  183. 1
  184. ">
  185. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  186. @click.stop="taskMove(1, tIndex)"></div>
  187. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  188. @click.stop="taskMove(2, tIndex)"></div>
  189. </div> -->
  190. </div>
  191. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  192. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  193. @click="jumpGj(tIndex, toolIndex2)">
  194. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  195. <div>工具{{ toolIndex2 + 1 }}:</div>
  196. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="basic_box2">
  205. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  206. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  207. <div class="taskBorder" :style="{
  208. minHeight: unitJson[unitIndex].easy && 'unset',
  209. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  210. <div v-if="unitJson[unitIndex].easy != 1">
  211. <div :style="{
  212. marginBottom:
  213. unitJson[unitIndex].easy == 3 ||
  214. (unitJson[unitIndex].easy == 5 &&
  215. itemTask.taskType == 1)
  216. ? '75px'
  217. : '0',
  218. }">
  219. <div style="
  220. display: flex;
  221. margin: 0px 0 20px;
  222. flex-direction: row;
  223. justify-content: flex-start;
  224. align-items: center;
  225. ">
  226. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  227. </div>
  228. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  229. flex-direction: row;
  230. justify-content: flex-start;
  231. align-items: center;
  232. ">
  233. <!-- <div
  234. :id="'task' + itemTaskIndex"
  235. class="cc_title"
  236. >
  237. 任务{{ itemTaskIndex + 1 }}
  238. </div> -->
  239. <div class="cc_input">
  240. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  241. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  242. itemTaskIndex
  243. ].task
  244. " />
  245. </div>
  246. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  247. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  248. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  249. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  250. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  251. </div>
  252. </div>
  253. </div>
  254. <div style="margin: 25px 0 0" v-if="itemTask.isFold2">
  255. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  256. itemTaskIndex
  257. ].taskDetail
  258. " @change="change"></editor-bar> -->
  259. <textarea v-autoHeight="70" rows="2" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  260. itemTaskIndex
  261. ].taskDetail
  262. "></textarea>
  263. </div>
  264. <div class="basic_box" style="
  265. padding: 25px 0 0 !important;
  266. ">
  267. <div style="
  268. display: flex;
  269. margin: 0 0 0 0;
  270. flex-direction: row;
  271. justify-content: space-between;
  272. align-items: center;
  273. ">
  274. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  275. <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  276. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容
  277. </div>
  278. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  279. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  280. </div>
  281. <div v-if="!itemTask.isFoldchapter">
  282. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  283. itemTask.chapterData.length == 0
  284. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  285. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  286. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1)"
  287. @dragend="dragEnd()" draggable class="chapter_upload"
  288. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  289. getChapterData(
  290. $event,
  291. unitIndex,
  292. index,
  293. index1,
  294. item1.type
  295. )
  296. ">
  297. <div class="chapter_upload_drag"></div>
  298. <div class="chapter_upload_t" style="width: 100%"></div>
  299. <div class="chapter_upload_o" style="
  300. position: relative;
  301. display: flex;
  302. align-items: center;
  303. ">
  304. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  305. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  306. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  307. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  308. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  309. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  310. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  311. </div>
  312. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  313. </div>
  314. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  315. </div>
  316. </div>
  317. <div class="chapter_upload_n">
  318. <input readonly="true" v-if="item1.type == 2 ||
  319. item1.type == 3 ||
  320. item1.type == 12 ||
  321. item1.type == 13 ||
  322. item1.type == 7
  323. " :placeholder="item1.name" @click="
  324. updataVideoT(
  325. $event,
  326. unitIndex,
  327. itemTaskIndex,
  328. index1
  329. )
  330. " style="
  331. border: none;
  332. outline: none;
  333. width: 80%;
  334. minwidth: 215px;
  335. z-index: 99;
  336. font-size: 14px;
  337. white-space: nowrap;
  338. overflow: hidden;
  339. text-overflow: ellipsis;
  340. " />
  341. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  342. border: none;
  343. outline: none;
  344. width: 80%;
  345. white-space: nowrap;
  346. overflow: hidden;
  347. text-overflow: ellipsis;
  348. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  349. <input :placeholder="item1.title ? item1.title : '链接'
  350. " v-if="item1.type == 8" style="
  351. border: none;
  352. outline: none;
  353. width: 80%;
  354. white-space: nowrap;
  355. overflow: hidden;
  356. text-overflow: ellipsis;
  357. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  358. <input :placeholder="item1.title ? item1.title : '链接'
  359. " v-if="item1.type == 14" style="
  360. border: none;
  361. outline: none;
  362. width: 80%;
  363. white-space: nowrap;
  364. overflow: hidden;
  365. text-overflow: ellipsis;
  366. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  367. </div>
  368. <div class="chapter_upload_ic">
  369. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  370. </div>
  371. <div class="chapter_upload_ud" style="z-index: 99">
  372. <div class="chapter_upload_up" @click="
  373. upCd(
  374. $event,
  375. unitIndex,
  376. index,
  377. itemTaskIndex,
  378. index1
  379. )
  380. "></div>
  381. <div class="chapter_upload_down" @click="
  382. downCd(
  383. $event,
  384. unitIndex,
  385. index,
  386. itemTaskIndex,
  387. index1
  388. )
  389. "></div>
  390. </div>
  391. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  392. item1.type == 3 ||
  393. item1.type == 12 ||
  394. item1.type == 13 ||
  395. item1.type == 7
  396. " @click.stop="
  397. updataVideoT(
  398. $event,
  399. unitIndex,
  400. itemTaskIndex,
  401. index1
  402. )
  403. ">
  404. <div></div>
  405. </div>
  406. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  407. @click="selectAttText(itemTaskIndex, index1)">
  408. <div></div>
  409. </div>
  410. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  411. @click="selectLine(itemTaskIndex, index1)">
  412. <div></div>
  413. </div>
  414. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  415. @click="openUpdateSource(itemTaskIndex, index1)">
  416. <div></div>
  417. </div>
  418. <div class="chapter_upload_ic_r" @click.stop="
  419. deleteChapterData(
  420. $event,
  421. unitIndex,
  422. index,
  423. index1,
  424. itemTaskIndex
  425. )
  426. ">
  427. <div></div>
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. </div>
  433. </div>
  434. <div class="add_info_box" style="margin:10px 0 0" v-if="!itemTask.isFoldchapter">
  435. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  436. 文件
  437. <input type="file" accept="*" style="display: none" v-if="inputShow"
  438. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  439. </button>
  440. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  441. 图文
  442. </button>
  443. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  444. 链接
  445. </button>
  446. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  447. 代码
  448. </button>
  449. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  450. 资源
  451. </button>
  452. <!-- <button class="info_btn" @click="addImg($event)">
  453. 其他附件
  454. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  455. " />
  456. </button> -->
  457. </div>
  458. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  459. itemTaskIndex
  460. ].proVisible
  461. " class="mask">
  462. <div class="progressBox">
  463. <!-- <div id="closePro" class="closeCss">
  464. <img src="../../../../assets/icon/close.png" alt />
  465. </div> -->
  466. <div class="lbox">
  467. <img src="../../../assets/loading.gif" />上传中,请稍后
  468. </div>
  469. <div style="margin-bottom: 10px">
  470. <span>{{
  471. unitJson[unitIndex].chapterInfo[0].taskJson[
  472. itemTaskIndex
  473. ].isFinishSize
  474. }}M</span>
  475. /
  476. <span>{{
  477. unitJson[unitIndex].chapterInfo[0].taskJson[
  478. itemTaskIndex
  479. ].isAllSize
  480. }}M</span>
  481. </div>
  482. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  483. itemTaskIndex
  484. ].progress
  485. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  486. itemTaskIndex
  487. ].progress
  488. : 0
  489. " style="width: 80%"></el-progress>
  490. </div>
  491. </div>
  492. </div>
  493. <div class="toolChoose" style="margin: 5px 0 20px">
  494. <div class="tools">
  495. <div class="leftTools" style="
  496. width: 100%;
  497. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  498. <div style="
  499. display: flex;
  500. flex-direction: row;
  501. align-items: baseline;
  502. flex-wrap: nowrap;
  503. justify-content: flex-start;
  504. position: relative;
  505. ">
  506. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  507. style="margin-right: 20px; font-weight: bold">
  508. 步骤 {{ toolIndex + 1 }} :
  509. </div>
  510. <div class="chooseWho">
  511. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  512. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  513. 互动类
  514. </div>
  515. <div :class="itemTool.toolType == 1
  516. ? 'isChooseActive'
  517. : ''
  518. " @click="
  519. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  520. ">
  521. 思维类
  522. </div>
  523. <div :class="itemTool.toolType == 6
  524. ? 'isChooseActive'
  525. : ''
  526. " @click="
  527. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  528. ">
  529. 协作类
  530. </div>
  531. <div :class="itemTool.toolType == 2
  532. ? 'isChooseActive'
  533. : ''
  534. " @click="
  535. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  536. ">
  537. 测评类
  538. </div>
  539. <div :class="itemTool.toolType == 7
  540. ? 'isChooseActive'
  541. : ''
  542. " @click="
  543. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  544. ">
  545. 评价类
  546. </div>
  547. <div :class="itemTool.toolType == 3
  548. ? 'isChooseActive'
  549. : ''
  550. " @click="
  551. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  552. ">
  553. 编程类
  554. </div>
  555. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  556. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  557. 学科类
  558. </div>
  559. <!--<div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  560. " @click="(itemTool.toolType = 4), $forceUpdate()">
  561. 其他
  562. </div> -->
  563. </div>
  564. <div v-if="itemTool.isFold3" class="show_toolD show"
  565. @click="fold3(itemTaskIndex, toolIndex)"
  566. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  567. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  568. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  569. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  570. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  571. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  572. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  573. </div>
  574. <div style="min-height: 163px" v-show="itemTool.isFold3">
  575. <div class="toolSort" v-if="itemTool.toolType == 0">
  576. <!-- <div class="tool">
  577. <div
  578. class="whiteBIcon"
  579. @click="addTools(8, itemTaskIndex, toolIndex)"
  580. >
  581. <img src="../../../assets/icon/secondToolList/library.png" alt />
  582. <div style="margin: 5px 0">素材库</div>
  583. </div>
  584. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  585. <img
  586. src="../../../assets/icon/checkNo.png"
  587. alt
  588. v-if="itemTool.tool.indexOf(8) == -1"
  589. />
  590. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  591. alt /><span>已选择</span></div>
  592. </div>
  593. </div>-->
  594. <!-- <div class="tool">
  595. <div
  596. class="whiteBIcon"
  597. @click="addTools(17, itemTaskIndex, toolIndex)"
  598. >
  599. <img
  600. src="../../../assets/icon/secondToolList/library.png"
  601. alt
  602. />
  603. <div style="margin: 5px 0">学习资料</div>
  604. </div>
  605. <div
  606. class="check"
  607. @click="addTools(17, itemTaskIndex, toolIndex)"
  608. >
  609. <img
  610. src="../../../assets/icon/checkNo.png"
  611. alt
  612. v-if="itemTool.tool.indexOf(17) == -1"
  613. />
  614. <img
  615. src="../../../assets/icon/checkedIs.png"
  616. alt
  617. v-else
  618. />
  619. </div>10
  620. </div> -->
  621. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  622. @click="addTools(10, itemTaskIndex, toolIndex)">
  623. <div class="whiteBIcon" @click.stop="
  624. openTools(itemTaskIndex, 10, toolIndex)
  625. ">
  626. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  627. <div style="margin: 5px 0">倒计时</div>
  628. </div>
  629. <div class="isCTool" v-show="itemTool.tool.indexOf(10) != -1"><img
  630. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  631. <!-- <div
  632. class="check"
  633. @click="
  634. addTools(10, itemTaskIndex, toolIndex)
  635. "
  636. >
  637. <img
  638. src="../../../assets/icon/checkNo.png"
  639. alt
  640. v-if="itemTool.tool.indexOf(10) == -1"
  641. />
  642. <div class="checkDiv" v-else>
  643. <img
  644. src="../../../assets/icon/checkedIs.png"
  645. alt
  646. /><span>已选择</span>
  647. </div>
  648. </div> -->
  649. </div>
  650. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  651. @click="addTools(65, itemTaskIndex, toolIndex)">
  652. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  653. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  654. <div style="margin: 5px 0">挑人</div>
  655. </div>
  656. <div class="isCTool" v-show="itemTool.tool.indexOf(65) != -1"><img
  657. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  658. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  659. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(65) == -1" />
  660. <div class="checkDiv" v-else>
  661. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  662. </div>
  663. </div> -->
  664. </div>
  665. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  666. @click="addTools(69, itemTaskIndex, toolIndex)">
  667. <div class="whiteBIcon" @click.stop="
  668. openTools(itemTaskIndex, 69, toolIndex)
  669. ">
  670. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  671. <div style="margin: 5px 0">英语写作</div>
  672. </div>
  673. <div class="isCTool" v-show="itemTool.tool.indexOf(69) != -1"><img
  674. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  675. <!-- <div
  676. class="check"
  677. @click="
  678. addTools(4, itemTaskIndex, toolIndex)
  679. "
  680. >
  681. <img
  682. src="../../../assets/icon/checkNo.png"
  683. alt
  684. v-if="itemTool.tool.indexOf(4) == -1"
  685. />
  686. <div class="checkDiv" v-else>
  687. <img
  688. src="../../../assets/icon/checkedIs.png"
  689. alt
  690. /><span>已选择</span>
  691. </div>
  692. </div> -->
  693. </div>
  694. <!-- <div class="tool">
  695. <div
  696. class="whiteBIcon"
  697. @click="
  698. openTools(itemTaskIndex, 49, toolIndex)
  699. "
  700. >
  701. <img
  702. src="../../../assets/icon/fourthToolList/group.png"
  703. alt
  704. />
  705. <div style="margin: 5px 0">学生分组</div>
  706. </div>
  707. <div
  708. class="check"
  709. @click="
  710. addTools(49, itemTaskIndex, toolIndex)
  711. "
  712. >
  713. <img
  714. src="../../../assets/icon/checkNo.png"
  715. alt
  716. v-if="itemTool.tool.indexOf(49) == -1"
  717. />
  718. <div class="checkDiv" v-else>
  719. <img
  720. src="../../../assets/icon/checkedIs.png"
  721. alt
  722. /><span>已选择</span>
  723. </div>
  724. </div>
  725. </div> -->
  726. <!-- <div class="tool">
  727. <div
  728. class="whiteBIcon"
  729. @click="
  730. openTools(itemTaskIndex, 62, toolIndex)
  731. "
  732. >
  733. <img
  734. src="../../../assets/icon/fourthToolList/interVideo.png"
  735. alt
  736. />
  737. <div style="margin: 5px 0">交互视频</div>
  738. </div>
  739. <div
  740. class="check"
  741. @click="
  742. addTools(62, itemTaskIndex, toolIndex)
  743. "
  744. >
  745. <img
  746. src="../../../assets/icon/checkNo.png"
  747. alt
  748. v-if="itemTool.tool.indexOf(62) == -1"
  749. />
  750. <div class="checkDiv" v-else>
  751. <img
  752. src="../../../assets/icon/checkedIs.png"
  753. alt
  754. /><span>已选择</span>
  755. </div>
  756. </div>
  757. </div> -->
  758. </div>
  759. <div class="toolSort" v-if="itemTool.toolType == 1">
  760. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  761. @click="addTools(7, itemTaskIndex, toolIndex)">
  762. <div class="whiteBIcon" @click.stop="
  763. addTools(7, itemTaskIndex, toolIndex)
  764. ">
  765. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  766. <div style="margin: 5px 0">思维网格</div>
  767. </div>
  768. <div class="isCTool" v-show="itemTool.tool.indexOf(7) != -1"><img
  769. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  770. <!-- <div
  771. class="check"
  772. @click="
  773. addTools(7, itemTaskIndex, toolIndex)
  774. "
  775. >
  776. <img
  777. src="../../../assets/icon/checkNo.png"
  778. alt
  779. v-if="itemTool.tool.indexOf(7) == -1"
  780. />
  781. <div class="checkDiv" v-else>
  782. <img
  783. src="../../../assets/icon/checkedIs.png"
  784. alt
  785. /><span>已选择</span>
  786. </div>
  787. </div> -->
  788. </div>
  789. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  790. @click="addTools(1, itemTaskIndex, toolIndex)">
  791. <div class="whiteBIcon" @click.stop="
  792. openTools(itemTaskIndex, 1, toolIndex)
  793. ">
  794. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  795. <div style="margin: 5px 0">电子白板</div>
  796. </div>
  797. <div class="isCTool" v-show="itemTool.tool.indexOf(1) != -1"><img
  798. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  799. <!-- <div
  800. class="check"
  801. @click="
  802. addTools(1, itemTaskIndex, toolIndex)
  803. "
  804. >
  805. <img
  806. src="../../../assets/icon/checkNo.png"
  807. alt
  808. v-if="itemTool.tool.indexOf(1) == -1"
  809. />
  810. <div class="checkDiv" v-else>
  811. <img
  812. src="../../../assets/icon/checkedIs.png"
  813. alt
  814. /><span>已选择</span>
  815. </div>
  816. </div> -->
  817. </div>
  818. <!-- <div class="tool">
  819. <div
  820. class="whiteBIcon"
  821. @click="addTools(2, itemTaskIndex, toolIndex)"
  822. >
  823. <img
  824. src="../../../assets/icon/secondToolList/note.png"
  825. alt
  826. />
  827. <div style="margin: 5px 0">便签</div>
  828. </div>
  829. <div
  830. class="check"
  831. @click="addTools(2, itemTaskIndex, toolIndex)"
  832. >
  833. <img
  834. src="../../../assets/icon/checkNo.png"
  835. alt
  836. v-if="itemTool.tool.indexOf(2) == -1"
  837. />
  838. <div class="checkDiv" v-else>
  839. <img
  840. src="../../../assets/icon/checkedIs.png"
  841. alt
  842. /><span>已选择</span>
  843. </div>
  844. </div>
  845. </div> -->
  846. <!-- <div class="tool">
  847. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  848. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  849. <div style="margin: 5px 0">协同文档</div>
  850. </div>
  851. <div
  852. class="check"
  853. @click="addTools(6, itemTaskIndex, toolIndex)"
  854. >
  855. <img
  856. src="../../../assets/icon/checkNo.png"
  857. alt
  858. v-if="itemTool.tool.indexOf(6) == -1"
  859. />
  860. <div class="checkDiv" v-else>
  861. <img
  862. src="../../../assets/icon/checkedIs.png"
  863. alt
  864. /><span>已选择</span>
  865. </div>
  866. </div>
  867. </div> -->
  868. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  869. @click="addTools(52, itemTaskIndex, toolIndex)">
  870. <div class="whiteBIcon" @click.stop="
  871. openTools(itemTaskIndex, 52, toolIndex)
  872. ">
  873. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  874. <div style="margin: 5px 0">文档</div>
  875. </div>
  876. <div class="isCTool" v-show="itemTool.tool.indexOf(52) != -1"><img
  877. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  878. <!-- <div
  879. class="check"
  880. @click="
  881. addTools(52, itemTaskIndex, toolIndex)
  882. "
  883. >
  884. <img
  885. src="../../../assets/icon/checkNo.png"
  886. alt
  887. v-if="itemTool.tool.indexOf(52) == -1"
  888. />
  889. <div class="checkDiv" v-else>
  890. <img
  891. src="../../../assets/icon/checkedIs.png"
  892. alt
  893. /><span>已选择</span>
  894. </div>
  895. </div> -->
  896. </div>
  897. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  898. @click="addTools(3, itemTaskIndex, toolIndex)">
  899. <div class="whiteBIcon" @click.stop="
  900. openTools(itemTaskIndex, 3, toolIndex)
  901. ">
  902. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  903. <div style="margin: 5px 0">思维导图</div>
  904. </div>
  905. <div class="isCTool" v-show="itemTool.tool.indexOf(3) != -1"><img
  906. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  907. <!-- <div
  908. class="check"
  909. @click="
  910. addTools(3, itemTaskIndex, toolIndex)
  911. "
  912. >
  913. <img
  914. src="../../../assets/icon/checkNo.png"
  915. alt
  916. v-if="itemTool.tool.indexOf(3) == -1"
  917. />
  918. <div class="checkDiv" v-else>
  919. <img
  920. src="../../../assets/icon/checkedIs.png"
  921. alt
  922. /><span>已选择</span>
  923. </div>
  924. </div> -->
  925. </div>
  926. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  927. @click="addTools(48, itemTaskIndex, toolIndex)">
  928. <div class="whiteBIcon" @click.stop="
  929. openTools(itemTaskIndex, 48, toolIndex)
  930. ">
  931. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  932. <div style="margin: 5px 0">表格</div>
  933. </div>
  934. <div class="isCTool" v-show="itemTool.tool.indexOf(48) != -1"><img
  935. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  936. <!-- <div
  937. class="check"
  938. @click="
  939. addTools(48, itemTaskIndex, toolIndex)
  940. "
  941. >
  942. <img
  943. src="../../../assets/icon/checkNo.png"
  944. alt
  945. v-if="itemTool.tool.indexOf(48) == -1"
  946. />
  947. <div class="checkDiv" v-else>
  948. <img
  949. src="../../../assets/icon/checkedIs.png"
  950. alt
  951. /><span>已选择</span>
  952. </div>
  953. </div> -->
  954. </div>
  955. </div>
  956. <div class="toolSort" v-if="itemTool.toolType == 6">
  957. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  958. @click="addTools(49, itemTaskIndex, toolIndex)">
  959. <div class="whiteBIcon" @click.stop="
  960. openTools(itemTaskIndex, 49, toolIndex)
  961. ">
  962. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  963. <div style="margin: 5px 0">学生分组</div>
  964. </div>
  965. <div class="isCTool" v-show="itemTool.tool.indexOf(49) != -1"><img
  966. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  967. <!-- <div
  968. class="check"
  969. @click="
  970. addTools(49, itemTaskIndex, toolIndex)
  971. "
  972. >
  973. <img
  974. src="../../../assets/icon/checkNo.png"
  975. alt
  976. v-if="itemTool.tool.indexOf(49) == -1"
  977. />
  978. <div class="checkDiv" v-else>
  979. <img
  980. src="../../../assets/icon/checkedIs.png"
  981. alt
  982. /><span>已选择</span>
  983. </div>
  984. </div> -->
  985. </div>
  986. </div>
  987. <div class="toolSort" v-if="itemTool.toolType == 2">
  988. <!-- <div class="tool">
  989. <div
  990. class="whiteBIcon"
  991. @click="addTools(5, itemTaskIndex, toolIndex)"
  992. >
  993. <img
  994. src="../../../assets/icon/thirdToolList/score.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">量规评分</div>
  998. </div>
  999. <div
  1000. class="check"
  1001. @click="addTools(5, itemTaskIndex, toolIndex)"
  1002. >
  1003. <img
  1004. src="../../../assets/icon/checkNo.png"
  1005. alt
  1006. v-if="itemTool.tool.indexOf(5) == -1"
  1007. />
  1008. <img
  1009. src="../../../assets/icon/checkedIs.png"
  1010. alt
  1011. v-else
  1012. />
  1013. </div>
  1014. </div>-->
  1015. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1016. @click="addTools(4, itemTaskIndex, toolIndex)">
  1017. <div class="whiteBIcon" @click.stop="
  1018. openTools(itemTaskIndex, 4, toolIndex)
  1019. ">
  1020. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1021. <div style="margin: 5px 0">问卷调查</div>
  1022. </div>
  1023. <div class="isCTool" v-show="itemTool.tool.indexOf(4) != -1"><img
  1024. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1025. <!-- <div
  1026. class="check"
  1027. @click="
  1028. addTools(4, itemTaskIndex, toolIndex)
  1029. "
  1030. >
  1031. <img
  1032. src="../../../assets/icon/checkNo.png"
  1033. alt
  1034. v-if="itemTool.tool.indexOf(4) == -1"
  1035. />
  1036. <div class="checkDiv" v-else>
  1037. <img
  1038. src="../../../assets/icon/checkedIs.png"
  1039. alt
  1040. /><span>已选择</span>
  1041. </div>
  1042. </div> -->
  1043. </div>
  1044. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1045. @click="addTools(45, itemTaskIndex, toolIndex)">
  1046. <div class="whiteBIcon" @click.stop="
  1047. openTools(itemTaskIndex, 45, toolIndex)
  1048. ">
  1049. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1050. <div style="margin: 5px 0">选择题</div>
  1051. </div>
  1052. <div class="isCTool" v-show="itemTool.tool.indexOf(45) != -1"><img
  1053. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1054. <!-- <div
  1055. class="check"
  1056. @click="
  1057. addTools(45, itemTaskIndex, toolIndex)
  1058. "
  1059. >
  1060. <img
  1061. src="../../../assets/icon/checkNo.png"
  1062. alt
  1063. v-if="itemTool.tool.indexOf(45) == -1"
  1064. />
  1065. <div class="checkDiv" v-else>
  1066. <img
  1067. src="../../../assets/icon/checkedIs.png"
  1068. alt
  1069. /><span>已选择</span>
  1070. </div>
  1071. </div> -->
  1072. </div>
  1073. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1074. @click="addTools(15, itemTaskIndex, toolIndex)">
  1075. <div class="whiteBIcon" @click.stop="
  1076. openTools(itemTaskIndex, 15, toolIndex)
  1077. ">
  1078. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1079. <div style="margin: 5px 0">问答</div>
  1080. </div>
  1081. <div class="isCTool" v-show="itemTool.tool.indexOf(15) != -1"><img
  1082. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1083. <!-- <div
  1084. class="check"
  1085. @click="
  1086. addTools(15, itemTaskIndex, toolIndex)
  1087. "
  1088. >
  1089. <img
  1090. src="../../../assets/icon/checkNo.png"
  1091. alt
  1092. v-if="itemTool.tool.indexOf(15) == -1"
  1093. />
  1094. <div class="checkDiv" v-else>
  1095. <img
  1096. src="../../../assets/icon/checkedIs.png"
  1097. alt
  1098. /><span>已选择</span>
  1099. </div>
  1100. </div> -->
  1101. </div>
  1102. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1103. @click="addTools(16, itemTaskIndex, toolIndex)">
  1104. <div class="whiteBIcon" @click.stop="
  1105. addTools(16, itemTaskIndex, toolIndex)
  1106. ">
  1107. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1108. <div style="margin: 5px 0">作业提交</div>
  1109. </div>
  1110. <div class="isCTool" v-show="itemTool.tool.indexOf(16) != -1"><img
  1111. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1112. <!-- <div
  1113. class="check"
  1114. @click="
  1115. addTools(16, itemTaskIndex, toolIndex)
  1116. "
  1117. >
  1118. <img
  1119. src="../../../assets/icon/checkNo.png"
  1120. alt
  1121. v-if="itemTool.tool.indexOf(16) == -1"
  1122. />
  1123. <div class="checkDiv" v-else>
  1124. <img
  1125. src="../../../assets/icon/checkedIs.png"
  1126. alt
  1127. /><span>已选择</span>
  1128. </div>
  1129. </div> -->
  1130. </div>
  1131. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1132. @click="addTools(50, itemTaskIndex, toolIndex)">
  1133. <div class="whiteBIcon" @click.stop="
  1134. addTools(50, itemTaskIndex, toolIndex)
  1135. ">
  1136. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1137. <div style="margin: 5px 0">批量上传</div>
  1138. </div>
  1139. <div class="isCTool" v-show="itemTool.tool.indexOf(50) != -1"><img
  1140. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1141. <!-- <div
  1142. class="check"
  1143. @click="
  1144. addTools(50, itemTaskIndex, toolIndex)
  1145. "
  1146. >
  1147. <img
  1148. src="../../../assets/icon/checkNo.png"
  1149. alt
  1150. v-if="itemTool.tool.indexOf(50) == -1"
  1151. />
  1152. <div class="checkDiv" v-else>
  1153. <img
  1154. src="../../../assets/icon/checkedIs.png"
  1155. alt
  1156. /><span>已选择</span>
  1157. </div>
  1158. </div> -->
  1159. </div>
  1160. <!-- <div class="tool">
  1161. <div
  1162. class="whiteBIcon"
  1163. @click="
  1164. openTools(itemTaskIndex, 40, toolIndex)
  1165. "
  1166. >
  1167. <img
  1168. src="../../../assets/icon/thirdToolList/eval.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">个人评价</div>
  1172. </div>
  1173. <div
  1174. class="check"
  1175. @click="
  1176. addTools(40, itemTaskIndex, toolIndex)
  1177. "
  1178. >
  1179. <img
  1180. src="../../../assets/icon/checkNo.png"
  1181. alt
  1182. v-if="itemTool.tool.indexOf(40) == -1"
  1183. />
  1184. <div class="checkDiv" v-else>
  1185. <img
  1186. src="../../../assets/icon/checkedIs.png"
  1187. alt
  1188. /><span>已选择</span>
  1189. </div>
  1190. </div>
  1191. </div> -->
  1192. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1193. @click="addTools(41, itemTaskIndex, toolIndex)">
  1194. <div class="whiteBIcon" @click.stop="
  1195. openTools(itemTaskIndex, 41, toolIndex)
  1196. ">
  1197. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1198. <div style="margin: 5px 0">选择匹配</div>
  1199. </div>
  1200. <div class="isCTool" v-show="itemTool.tool.indexOf(41) != -1"><img
  1201. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1202. <!-- <div
  1203. class="check"
  1204. @click="
  1205. addTools(41, itemTaskIndex, toolIndex)
  1206. "
  1207. >
  1208. <img
  1209. src="../../../assets/icon/checkNo.png"
  1210. alt
  1211. v-if="itemTool.tool.indexOf(41) == -1"
  1212. />
  1213. <div class="checkDiv" v-else>
  1214. <img
  1215. src="../../../assets/icon/checkedIs.png"
  1216. alt
  1217. /><span>已选择</span>
  1218. </div>
  1219. </div> -->
  1220. </div>
  1221. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1222. @click="addTools(47, itemTaskIndex, toolIndex)">
  1223. <div class="whiteBIcon" @click.stop="
  1224. openTools(itemTaskIndex, 47, toolIndex)
  1225. ">
  1226. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1227. <div style="margin: 5px 0">排序</div>
  1228. </div>
  1229. <div class="isCTool" v-show="itemTool.tool.indexOf(47) != -1"><img
  1230. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1231. <!-- <div
  1232. class="check"
  1233. @click="
  1234. addTools(47, itemTaskIndex, toolIndex)
  1235. "
  1236. >
  1237. <img
  1238. src="../../../assets/icon/checkNo.png"
  1239. alt
  1240. v-if="itemTool.tool.indexOf(47) == -1"
  1241. />
  1242. <div class="checkDiv" v-else>
  1243. <img
  1244. src="../../../assets/icon/checkedIs.png"
  1245. alt
  1246. /><span>已选择</span>
  1247. </div>
  1248. </div> -->
  1249. </div>
  1250. <!-- <div class="tool">
  1251. <div
  1252. class="whiteBIcon"
  1253. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1254. >
  1255. <img
  1256. src="../../../assets/icon/thirdToolList/mp3.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">上传音频</div>
  1260. </div>
  1261. <div
  1262. class="check"
  1263. @click="addTools(42, itemTaskIndex, toolIndex)"
  1264. >
  1265. <img
  1266. src="../../../assets/icon/checkNo.png"
  1267. alt
  1268. v-if="itemTool.tool.indexOf(42) == -1"
  1269. />
  1270. <img
  1271. src="../../../assets/icon/checkedIs.png"
  1272. alt
  1273. v-else
  1274. />
  1275. </div>
  1276. </div> -->
  1277. </div>
  1278. <div class="toolSort" v-if="itemTool.toolType == 3">
  1279. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1280. @click="addTools(18, itemTaskIndex, toolIndex)">
  1281. <div class="whiteBIcon" @click.stop="
  1282. addTools(18, itemTaskIndex, toolIndex)
  1283. ">
  1284. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1285. <div style="margin: 5px 0">训练平台</div>
  1286. </div>
  1287. <div class="isCTool" v-show="itemTool.tool.indexOf(18) != -1"><img
  1288. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1289. <!-- <div
  1290. class="check"
  1291. @click="
  1292. addTools(18, itemTaskIndex, toolIndex)
  1293. "
  1294. >
  1295. <img
  1296. src="../../../assets/icon/checkNo.png"
  1297. alt
  1298. v-if="itemTool.tool.indexOf(18) == -1"
  1299. />
  1300. <div class="checkDiv" v-else>
  1301. <img
  1302. src="../../../assets/icon/checkedIs.png"
  1303. alt
  1304. /><span>已选择</span>
  1305. </div>
  1306. </div> -->
  1307. </div>
  1308. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1309. @click="addTools(21, itemTaskIndex, toolIndex)">
  1310. <div class="whiteBIcon" @click.stop="
  1311. addTools(21, itemTaskIndex, toolIndex)
  1312. ">
  1313. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1314. <div style="margin: 5px 0">AIoT Blockly</div>
  1315. </div>
  1316. <div class="isCTool" v-show="itemTool.tool.indexOf(21) != -1"><img
  1317. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1318. <!-- <div
  1319. class="check"
  1320. @click="
  1321. addTools(21, itemTaskIndex, toolIndex)
  1322. "
  1323. >
  1324. <img
  1325. src="../../../assets/icon/checkNo.png"
  1326. alt
  1327. v-if="itemTool.tool.indexOf(21) == -1"
  1328. />
  1329. <div class="checkDiv" v-else>
  1330. <img
  1331. src="../../../assets/icon/checkedIs.png"
  1332. alt
  1333. /><span>已选择</span>
  1334. </div>
  1335. </div> -->
  1336. </div>
  1337. <!-- <div class="tool">
  1338. <div
  1339. class="whiteBIcon"
  1340. @click="
  1341. addTools(22, itemTaskIndex, toolIndex)
  1342. "
  1343. >
  1344. <img
  1345. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1346. alt
  1347. />
  1348. <div style="margin: 5px 0">AI体验</div>
  1349. </div>
  1350. <div
  1351. class="check"
  1352. @click="
  1353. addTools(22, itemTaskIndex, toolIndex)
  1354. "
  1355. >
  1356. <img
  1357. src="../../../assets/icon/checkNo.png"
  1358. alt
  1359. v-if="itemTool.tool.indexOf(22) == -1"
  1360. />
  1361. <div class="checkDiv" v-else>
  1362. <img
  1363. src="../../../assets/icon/checkedIs.png"
  1364. alt
  1365. /><span>已选择</span>
  1366. </div>
  1367. </div>
  1368. </div> -->
  1369. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1370. @click="addTools(23, itemTaskIndex, toolIndex)">
  1371. <div class="whiteBIcon" @click.stop="
  1372. addTools(23, itemTaskIndex, toolIndex)
  1373. ">
  1374. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1375. <div style="margin: 5px 0">AI Python</div>
  1376. </div>
  1377. <div class="isCTool" v-show="itemTool.tool.indexOf(23) != -1"><img
  1378. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1379. <!-- <div
  1380. class="check"
  1381. @click="
  1382. addTools(23, itemTaskIndex, toolIndex)
  1383. "
  1384. >
  1385. <img
  1386. src="../../../assets/icon/checkNo.png"
  1387. alt
  1388. v-if="itemTool.tool.indexOf(23) == -1"
  1389. />
  1390. <div class="checkDiv" v-else>
  1391. <img
  1392. src="../../../assets/icon/checkedIs.png"
  1393. alt
  1394. /><span>已选择</span>
  1395. </div>
  1396. </div> -->
  1397. </div>
  1398. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1399. @click="addTools(24, itemTaskIndex, toolIndex)">
  1400. <div class="whiteBIcon" @click.stop="
  1401. addTools(24, itemTaskIndex, toolIndex)
  1402. ">
  1403. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1404. <div style="margin: 5px 0">AI Blockly</div>
  1405. </div>
  1406. <div class="isCTool" v-show="itemTool.tool.indexOf(24) != -1"><img
  1407. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1408. <!-- <div
  1409. class="check"
  1410. @click="
  1411. addTools(24, itemTaskIndex, toolIndex)
  1412. "
  1413. >
  1414. <img
  1415. src="../../../assets/icon/checkNo.png"
  1416. alt
  1417. v-if="itemTool.tool.indexOf(24) == -1"
  1418. />
  1419. <div class="checkDiv" v-else>
  1420. <img
  1421. src="../../../assets/icon/checkedIs.png"
  1422. alt
  1423. /><span>已选择</span>
  1424. </div>
  1425. </div> -->
  1426. </div>
  1427. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1428. @click="addTools(32, itemTaskIndex, toolIndex)">
  1429. <div class="whiteBIcon" @click.stop="
  1430. addTools(32, itemTaskIndex, toolIndex)
  1431. ">
  1432. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1433. <div style="margin: 5px 0">源码编辑</div>
  1434. </div>
  1435. <div class="isCTool" v-show="itemTool.tool.indexOf(32) != -1"><img
  1436. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1437. <!-- <div
  1438. class="check"
  1439. @click="
  1440. addTools(32, itemTaskIndex, toolIndex)
  1441. "
  1442. >
  1443. <img
  1444. src="../../../assets/icon/checkNo.png"
  1445. alt
  1446. v-if="itemTool.tool.indexOf(32) == -1"
  1447. />
  1448. <div class="checkDiv" v-else>
  1449. <img
  1450. src="../../../assets/icon/checkedIs.png"
  1451. alt
  1452. /><span>已选择</span>
  1453. </div>
  1454. </div> -->
  1455. </div>
  1456. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1457. @click="addTools(57, itemTaskIndex, toolIndex)">
  1458. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1459. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1460. <div style="margin: 5px 0">CocoPi</div>
  1461. </div>
  1462. <div class="isCTool" v-show="itemTool.tool.indexOf(57) != -1"><img
  1463. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1464. <!-- <div
  1465. class="check"
  1466. @click="
  1467. addTools(57, itemTaskIndex, toolIndex)
  1468. "
  1469. >
  1470. <img
  1471. src="../../../assets/icon/checkNo.png"
  1472. alt
  1473. v-if="itemTool.tool.indexOf(57) == -1"
  1474. />
  1475. <div class="checkDiv" v-else>
  1476. <img
  1477. src="../../../assets/icon/checkedIs.png"
  1478. alt
  1479. /><span>已选择</span>
  1480. </div>
  1481. </div> -->
  1482. </div>
  1483. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1484. @click="addTools(63, itemTaskIndex, toolIndex)">
  1485. <div class="whiteBIcon" @click.stop="
  1486. addTools(63, itemTaskIndex, toolIndex)
  1487. ">
  1488. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1489. <div style="margin: 5px 0">海龟编程</div>
  1490. </div>
  1491. <div class="isCTool" v-show="itemTool.tool.indexOf(63) != -1"><img
  1492. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1493. <!-- <div
  1494. class="check"
  1495. @click="
  1496. addTools(63, itemTaskIndex, toolIndex)
  1497. "
  1498. >
  1499. <img
  1500. src="../../../assets/icon/checkNo.png"
  1501. alt
  1502. v-if="itemTool.tool.indexOf(63) == -1"
  1503. />
  1504. <div class="checkDiv" v-else>
  1505. <img
  1506. src="../../../assets/icon/checkedIs.png"
  1507. alt
  1508. /><span>已选择</span>
  1509. </div>
  1510. </div> -->
  1511. </div>
  1512. </div>
  1513. <div class="toolSort" v-if="itemTool.toolType == 5">
  1514. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1515. @click="addTools(28, itemTaskIndex, toolIndex)">
  1516. <div class="whiteBIcon" @click.stop="
  1517. addTools(28, itemTaskIndex, toolIndex)
  1518. ">
  1519. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1520. <div style="margin: 5px 0">翻译</div>
  1521. </div>
  1522. <div class="isCTool" v-show="itemTool.tool.indexOf(28) != -1"><img
  1523. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1524. <!-- <div class="check" @click="
  1525. addTools(28, itemTaskIndex, toolIndex)
  1526. ">
  1527. <img src="../../../assets/icon/checkNo.png" alt
  1528. v-if="itemTool.tool.indexOf(28) == -1" />
  1529. <div class="checkDiv" v-else>
  1530. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1531. </div>
  1532. </div> -->
  1533. </div>
  1534. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1535. @click="addTools(31, itemTaskIndex, toolIndex)">
  1536. <div class="whiteBIcon" @click.stop="
  1537. addTools(31, itemTaskIndex, toolIndex)
  1538. ">
  1539. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1540. <div style="margin: 5px 0">数字画板</div>
  1541. </div>
  1542. <div class="isCTool" v-show="itemTool.tool.indexOf(31) != -1"><img
  1543. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1544. <!-- <div class="check" @click="
  1545. addTools(31, itemTaskIndex, toolIndex)
  1546. ">
  1547. <img src="../../../assets/icon/checkNo.png" alt
  1548. v-if="itemTool.tool.indexOf(31) == -1" />
  1549. <div class="checkDiv" v-else>
  1550. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1551. </div>
  1552. </div> -->
  1553. </div>
  1554. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1555. @click="addTools(39, itemTaskIndex, toolIndex)">
  1556. <div class="whiteBIcon" @click.stop="
  1557. addTools(39, itemTaskIndex, toolIndex)
  1558. ">
  1559. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1560. <div style="margin: 5px 0">GeoGebra</div>
  1561. </div>
  1562. <div class="isCTool" v-show="itemTool.tool.indexOf(39) != -1"><img
  1563. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1564. <!-- <div class="check" @click="
  1565. addTools(39, itemTaskIndex, toolIndex)
  1566. ">
  1567. <img src="../../../assets/icon/checkNo.png" alt
  1568. v-if="itemTool.tool.indexOf(39) == -1" />
  1569. <div class="checkDiv" v-else>
  1570. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1571. </div>
  1572. </div> -->
  1573. </div>
  1574. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1575. @click="addTools(66, itemTaskIndex, toolIndex)">
  1576. <div class="whiteBIcon" @click.stop="
  1577. addTools(66, itemTaskIndex, toolIndex)
  1578. ">
  1579. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1580. <div style="margin: 5px 0">公式编辑</div>
  1581. </div>
  1582. <div class="isCTool" v-show="itemTool.tool.indexOf(66) != -1"><img
  1583. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1584. <!-- <div class="check" @click="
  1585. addTools(66, itemTaskIndex, toolIndex)
  1586. ">
  1587. <img src="../../../assets/icon/checkNo.png" alt
  1588. v-if="itemTool.tool.indexOf(66) == -1" />
  1589. <div class="checkDiv" v-else>
  1590. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1591. </div>
  1592. </div> -->
  1593. </div>
  1594. <!-- <div class="tool">
  1595. <div class="whiteBIcon" @click="
  1596. addTools(67, itemTaskIndex, toolIndex)
  1597. ">
  1598. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1599. <div style="margin: 5px 0">分子结构</div>
  1600. </div>
  1601. <div class="check" @click="
  1602. addTools(67, itemTaskIndex, toolIndex)
  1603. ">
  1604. <img src="../../../assets/icon/checkNo.png" alt
  1605. v-if="itemTool.tool.indexOf(67) == -1" />
  1606. <div class="checkDiv" v-else>
  1607. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1608. </div>
  1609. </div>
  1610. </div> -->
  1611. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1612. @click="addTools(68, itemTaskIndex, toolIndex)">
  1613. <div class="whiteBIcon" @click.stop="
  1614. addTools(68, itemTaskIndex, toolIndex)
  1615. ">
  1616. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1617. <div style="margin: 5px 0">时间轴</div>
  1618. </div>
  1619. <div class="isCTool" v-show="itemTool.tool.indexOf(68) != -1"><img
  1620. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1621. <!-- <div class="check" @click="
  1622. addTools(68, itemTaskIndex, toolIndex)
  1623. ">
  1624. <img src="../../../assets/icon/checkNo.png" alt
  1625. v-if="itemTool.tool.indexOf(68) == -1" />
  1626. <div class="checkDiv" v-else>
  1627. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1628. </div>
  1629. </div> -->
  1630. </div>
  1631. <!-- <div class="tool">
  1632. <div
  1633. class="whiteBIcon"
  1634. @click="
  1635. addTools(28, itemTaskIndex, toolIndex)
  1636. "
  1637. >
  1638. <img
  1639. src="../../../assets/icon/secondToolList/translation.png"
  1640. alt
  1641. />
  1642. <div style="margin: 5px 0">翻译</div>
  1643. </div>
  1644. <div
  1645. class="check"
  1646. @click="
  1647. addTools(28, itemTaskIndex, toolIndex)
  1648. "
  1649. >
  1650. <img
  1651. src="../../../assets/icon/checkNo.png"
  1652. alt
  1653. v-if="itemTool.tool.indexOf(28) == -1"
  1654. />
  1655. <div class="checkDiv" v-else>
  1656. <img
  1657. src="../../../assets/icon/checkedIs.png"
  1658. alt
  1659. /><span>已选择</span>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. <div class="tool">
  1664. <div
  1665. class="whiteBIcon"
  1666. @click="
  1667. addTools(37, itemTaskIndex, toolIndex)
  1668. "
  1669. >
  1670. <img
  1671. src="../../../assets/icon/secondToolList/mohe.png"
  1672. alt
  1673. />
  1674. <div style="margin: 5px 0">魔盒识字</div>
  1675. </div>
  1676. <div
  1677. class="check"
  1678. @click="
  1679. addTools(37, itemTaskIndex, toolIndex)
  1680. "
  1681. >
  1682. <img
  1683. src="../../../assets/icon/checkNo.png"
  1684. alt
  1685. v-if="itemTool.tool.indexOf(37) == -1"
  1686. />
  1687. <div class="checkDiv" v-else>
  1688. <img
  1689. src="../../../assets/icon/checkedIs.png"
  1690. alt
  1691. /><span>已选择</span>
  1692. </div>
  1693. </div>
  1694. </div>
  1695. <div class="tool">
  1696. <div
  1697. class="whiteBIcon"
  1698. @click="
  1699. addTools(38, itemTaskIndex, toolIndex)
  1700. "
  1701. >
  1702. <img
  1703. src="../../../assets/icon/secondToolList/24game.png"
  1704. alt
  1705. />
  1706. <div style="margin: 5px 0">24点</div>
  1707. </div>
  1708. <div
  1709. class="check"
  1710. @click="
  1711. addTools(38, itemTaskIndex, toolIndex)
  1712. "
  1713. >
  1714. <img
  1715. src="../../../assets/icon/checkNo.png"
  1716. alt
  1717. v-if="itemTool.tool.indexOf(38) == -1"
  1718. />
  1719. <div class="checkDiv" v-else>
  1720. <img
  1721. src="../../../assets/icon/checkedIs.png"
  1722. alt
  1723. /><span>已选择</span>
  1724. </div>
  1725. </div>
  1726. </div>
  1727. <div class="tool">
  1728. <div
  1729. class="whiteBIcon"
  1730. @click="
  1731. addTools(31, itemTaskIndex, toolIndex)
  1732. "
  1733. >
  1734. <img
  1735. src="../../../assets/icon/secondToolList/networkPanel.png"
  1736. alt
  1737. />
  1738. <div style="margin: 5px 0">数学画板</div>
  1739. </div>
  1740. <div
  1741. class="check"
  1742. @click="
  1743. addTools(31, itemTaskIndex, toolIndex)
  1744. "
  1745. >
  1746. <img
  1747. src="../../../assets/icon/checkNo.png"
  1748. alt
  1749. v-if="itemTool.tool.indexOf(31) == -1"
  1750. />
  1751. <div class="checkDiv" v-else>
  1752. <img
  1753. src="../../../assets/icon/checkedIs.png"
  1754. alt
  1755. /><span>已选择</span>
  1756. </div>
  1757. </div>
  1758. </div>
  1759. <div class="tool">
  1760. <div
  1761. class="whiteBIcon"
  1762. @click="
  1763. addTools(39, itemTaskIndex, toolIndex)
  1764. "
  1765. >
  1766. <img
  1767. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1768. alt
  1769. />
  1770. <div style="margin: 5px 0">GeoGebra</div>
  1771. </div>
  1772. <div
  1773. class="check"
  1774. @click="
  1775. addTools(39, itemTaskIndex, toolIndex)
  1776. "
  1777. >
  1778. <img
  1779. src="../../../assets/icon/checkNo.png"
  1780. alt
  1781. v-if="itemTool.tool.indexOf(39) == -1"
  1782. />
  1783. <div class="checkDiv" v-else>
  1784. <img
  1785. src="../../../assets/icon/checkedIs.png"
  1786. alt
  1787. /><span>已选择</span>
  1788. </div>
  1789. </div>
  1790. </div>
  1791. <div class="tool">
  1792. <div
  1793. class="whiteBIcon"
  1794. @click="
  1795. addTools(58, itemTaskIndex, toolIndex)
  1796. "
  1797. >
  1798. <img
  1799. src="../../../assets/icon/fourthToolList/car.png"
  1800. alt
  1801. />
  1802. <div style="margin: 5px 0">模拟驾驶</div>
  1803. </div>
  1804. <div
  1805. class="check"
  1806. @click="
  1807. addTools(58, itemTaskIndex, toolIndex)
  1808. "
  1809. >
  1810. <img
  1811. src="../../../assets/icon/checkNo.png"
  1812. alt
  1813. v-if="itemTool.tool.indexOf(58) == -1"
  1814. />
  1815. <div class="checkDiv" v-else>
  1816. <img
  1817. src="../../../assets/icon/checkedIs.png"
  1818. alt
  1819. /><span>已选择</span>
  1820. </div>
  1821. </div>
  1822. </div>
  1823. <div class="tool">
  1824. <div
  1825. class="whiteBIcon"
  1826. @click="
  1827. addTools(59, itemTaskIndex, toolIndex)
  1828. "
  1829. >
  1830. <img
  1831. src="../../../assets/icon/fourthToolList/lineSearch.png"
  1832. alt
  1833. />
  1834. <div style="margin: 5px 0">路径搜索</div>
  1835. </div>
  1836. <div
  1837. class="check"
  1838. @click="
  1839. addTools(59, itemTaskIndex, toolIndex)
  1840. "
  1841. >
  1842. <img
  1843. src="../../../assets/icon/checkNo.png"
  1844. alt
  1845. v-if="itemTool.tool.indexOf(59) == -1"
  1846. />
  1847. <div class="checkDiv" v-else>
  1848. <img
  1849. src="../../../assets/icon/checkedIs.png"
  1850. alt
  1851. /><span>已选择</span>
  1852. </div>
  1853. </div>
  1854. </div>
  1855. <div class="tool">
  1856. <div
  1857. class="whiteBIcon"
  1858. @click="
  1859. addTools(60, itemTaskIndex, toolIndex)
  1860. "
  1861. >
  1862. <img
  1863. src="../../../assets/icon/fourthToolList/deepLearning.png"
  1864. alt
  1865. />
  1866. <div style="margin: 5px 0">深度学习</div>
  1867. </div>
  1868. <div
  1869. class="check"
  1870. @click="
  1871. addTools(60, itemTaskIndex, toolIndex)
  1872. "
  1873. >
  1874. <img
  1875. src="../../../assets/icon/checkNo.png"
  1876. alt
  1877. v-if="itemTool.tool.indexOf(60) == -1"
  1878. />
  1879. <div class="checkDiv" v-else>
  1880. <img
  1881. src="../../../assets/icon/checkedIs.png"
  1882. alt
  1883. /><span>已选择</span>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. <div class="tool">
  1888. <div
  1889. class="whiteBIcon"
  1890. @click="
  1891. addTools(61, itemTaskIndex, toolIndex)
  1892. "
  1893. >
  1894. <img
  1895. src="../../../assets/icon/fourthToolList/allHistory.png"
  1896. alt
  1897. />
  1898. <div style="margin: 5px 0">全历史</div>
  1899. </div>
  1900. <div
  1901. class="check"
  1902. @click="
  1903. addTools(61, itemTaskIndex, toolIndex)
  1904. "
  1905. >
  1906. <img
  1907. src="../../../assets/icon/checkNo.png"
  1908. alt
  1909. v-if="itemTool.tool.indexOf(61) == -1"
  1910. />
  1911. <div class="checkDiv" v-else>
  1912. <img
  1913. src="../../../assets/icon/checkedIs.png"
  1914. alt
  1915. /><span>已选择</span>
  1916. </div>
  1917. </div>
  1918. </div> -->
  1919. </div>
  1920. <div class="toolSort" v-if="itemTool.toolType == 7">
  1921. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1922. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1923. <div class="whiteBIcon" @click.stop="
  1924. openTools(itemTaskIndex, 40, toolIndex)
  1925. ">
  1926. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1927. <div style="margin: 5px 0">个人评价</div>
  1928. </div>
  1929. <div class="isCTool" v-show="itemTool.tool.indexOf(40) != -1"><img
  1930. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1931. <!-- <div
  1932. class="check"
  1933. @click="
  1934. addTools(40, itemTaskIndex, toolIndex)
  1935. "
  1936. >
  1937. <img
  1938. src="../../../assets/icon/checkNo.png"
  1939. alt
  1940. v-if="itemTool.tool.indexOf(40) == -1"
  1941. />
  1942. <div class="checkDiv" v-else>
  1943. <img
  1944. src="../../../assets/icon/checkedIs.png"
  1945. alt
  1946. /><span>已选择</span>
  1947. </div>
  1948. </div> -->
  1949. </div>
  1950. </div>
  1951. <div class="toolSort" v-if="itemTool.toolType == 4">
  1952. <div class="tool">
  1953. <div class="whiteBIcon" @click="
  1954. addTools(26, itemTaskIndex, toolIndex)
  1955. ">
  1956. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1957. <div style="margin: 5px 0">课程设计</div>
  1958. </div>
  1959. <div class="check" @click="
  1960. addTools(26, itemTaskIndex, toolIndex)
  1961. ">
  1962. <img src="../../../assets/icon/checkNo.png" alt
  1963. v-if="itemTool.tool.indexOf(26) == -1" />
  1964. <div class="checkDiv" v-else>
  1965. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1966. </div>
  1967. </div>
  1968. </div>
  1969. <div class="tool">
  1970. <div class="whiteBIcon" @click="
  1971. addTools(25, itemTaskIndex, toolIndex)
  1972. ">
  1973. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1974. <div style="margin: 5px 0">目标管理</div>
  1975. </div>
  1976. <div class="check" @click="
  1977. addTools(25, itemTaskIndex, toolIndex)
  1978. ">
  1979. <img src="../../../assets/icon/checkNo.png" alt
  1980. v-if="itemTool.tool.indexOf(25) == -1" />
  1981. <div class="checkDiv" v-else>
  1982. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1983. </div>
  1984. </div>
  1985. </div>
  1986. <!-- <div class="tool">
  1987. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1988. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1989. <div style="margin: 5px 0">汉字宫</div>
  1990. </div>
  1991. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1992. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1993. <div class="checkDiv" v-else>
  1994. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1995. </div>
  1996. </div>
  1997. </div> -->
  1998. </div>
  1999. </div>
  2000. <div v-show="itemTool.isFold3">
  2001. <textarea v-autoHeight="87" rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2002. style="
  2003. margin: 0 0 20px 0;
  2004. " v-model="itemTool.toolDetail"></textarea>
  2005. </div>
  2006. </div>
  2007. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2008. <div class="addToolImg">
  2009. <img src="../../../assets/icon/add.png" alt />
  2010. </div>
  2011. <div>添加工具</div>
  2012. </div> -->
  2013. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2014. 添加工具
  2015. </button>
  2016. </div>
  2017. </div>
  2018. </div>
  2019. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2020. <!-- <div>
  2021. <img src="../../../assets/icon/new/addStage.png" alt />
  2022. <span>添加任务</span>
  2023. </div> -->
  2024. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2025. 添加任务
  2026. </button>
  2027. </div>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. </div>
  2032. <div class="info_btnBox3">
  2033. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  2034. 返回课程
  2035. </button>
  2036. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  2037. 确认上传
  2038. </button>
  2039. </div>
  2040. </div>
  2041. <div class="rightBox" v-if="this.steps == 2">
  2042. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  2043. <div class="right_title" style="border: none; margin: 0; padding: 0">
  2044. 请选择合适的课程模板
  2045. </div>
  2046. <div class="wordbox">
  2047. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  2048. <div class="wordPic">
  2049. <img src="../../../assets/icon/wordMub.png" alt />
  2050. </div>
  2051. <div style="
  2052. margin-top: 10px;
  2053. line-height: 19px;
  2054. overflow: hidden;
  2055. text-overflow: ellipsis;
  2056. white-space: nowrap;
  2057. padding: 0 20px;
  2058. ">
  2059. {{ aa.title }}
  2060. </div>
  2061. </div>
  2062. <div class="wordTeacher" @click="checkTemplate2()">
  2063. <div class="wordPic">
  2064. <img src="../../../assets/icon/wordMub.png" alt />
  2065. </div>
  2066. <div style="
  2067. margin-top: 10px;
  2068. line-height: 19px;
  2069. overflow: hidden;
  2070. text-overflow: ellipsis;
  2071. white-space: nowrap;
  2072. padding: 0 20px;
  2073. ">
  2074. 任务模式
  2075. </div>
  2076. </div>
  2077. <div class="wordTeacher" @click="checkTemplate3()">
  2078. <div class="wordPic">
  2079. <img src="../../../assets/icon/wordMub.png" alt />
  2080. </div>
  2081. <div style="
  2082. margin-top: 10px;
  2083. line-height: 19px;
  2084. overflow: hidden;
  2085. text-overflow: ellipsis;
  2086. white-space: nowrap;
  2087. padding: 0 20px;
  2088. ">
  2089. 简易模式
  2090. </div>
  2091. </div>
  2092. <div class="wordTeacher" @click="pasteStage()">
  2093. <div class="wordPic">
  2094. <img src="../../../assets/icon/wordMub.png" alt />
  2095. </div>
  2096. <div style="
  2097. margin-top: 10px;
  2098. line-height: 19px;
  2099. overflow: hidden;
  2100. text-overflow: ellipsis;
  2101. white-space: nowrap;
  2102. padding: 0 20px;
  2103. ">
  2104. 智能粘贴模式
  2105. </div>
  2106. </div>
  2107. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2108. <div class="wordPic">
  2109. <img src="../../../assets/icon/wordMub.png" alt />
  2110. </div>
  2111. <div style="
  2112. margin-top: 10px;
  2113. line-height: 19px;
  2114. overflow: hidden;
  2115. text-overflow: ellipsis;
  2116. white-space: nowrap;
  2117. padding: 0 20px;
  2118. ">
  2119. 未来小学课程设计
  2120. </div>
  2121. </div> -->
  2122. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2123. <div class="wordPic">
  2124. <img src="../../../assets/icon/wordMub.png" alt />
  2125. </div>
  2126. <div style="
  2127. margin-top: 10px;
  2128. line-height: 19px;
  2129. overflow: hidden;
  2130. text-overflow: ellipsis;
  2131. white-space: nowrap;
  2132. padding: 0 20px;
  2133. ">
  2134. 我的课程
  2135. </div>
  2136. </div> -->
  2137. </div>
  2138. </div>
  2139. </div>
  2140. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2141. <div class="basic_box">
  2142. <div style="
  2143. display: flex;
  2144. flex-direction: row;
  2145. align-items: center;
  2146. position: sticky;
  2147. top: 0;
  2148. background: #fff;
  2149. z-index: 99;
  2150. width: 100%;
  2151. padding: 0 20px 0 20px;
  2152. box-sizing: border-box;
  2153. ">
  2154. <div class="cru_selectBox">
  2155. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  2156. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  2157. <!-- item.dyName ? item.dyName : -->
  2158. {{ "第" + (index + 1) + "阶段" }}
  2159. </div>
  2160. <img src="../../../assets/line.png" class="cru_line" :style="{
  2161. left: offsetLetfPx + 'px',
  2162. }" />
  2163. </div>
  2164. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  2165. !(unitJson[unitJson.length - 1].easy == 6)
  2166. ">
  2167. <img src="../../../assets/icon/add.png" alt />
  2168. </div>
  2169. </div>
  2170. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2171. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  2172. <div>
  2173. <div class="chapter_contentbox">
  2174. <div>第{{ unitIndex + 1 }}阶段</div>
  2175. <div>
  2176. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  2177. </div>
  2178. <div v-if="unitJson.length > 1 &&
  2179. !(unitJson[unitJson.length - 1].easy == 4) &&
  2180. !(unitJson[unitJson.length - 1].easy == 6)
  2181. " @click="deleteUnit(unitIndex)"></div>
  2182. </div>
  2183. </div>
  2184. <div v-if="!unitJson[unitIndex].easy" style="
  2185. margin: 50px 0px 10px;
  2186. font-size: 1.5em;
  2187. font-weight: 700;
  2188. color: #0f7eff;
  2189. ">
  2190. 添加任务
  2191. </div>
  2192. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2193. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  2194. <div v-if="unitJson[unitIndex].easy != 1">
  2195. <div :style="{
  2196. marginBottom:
  2197. unitJson[unitIndex].easy == 3 ||
  2198. (unitJson[unitIndex].easy == 5 &&
  2199. itemTask.taskType == 1)
  2200. ? '75px'
  2201. : '0',
  2202. }">
  2203. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  2204. 任务{{ itemTaskIndex + 1 }}
  2205. </div>
  2206. <div class="chapter_contentbox" style="
  2207. flex-direction: row;
  2208. justify-content: flex-start;
  2209. align-items: center;
  2210. ">
  2211. <div style="
  2212. border-left: 6px solid #5699e8;
  2213. height: 20px;
  2214. padding-left: 10px;
  2215. line-height: 22px;
  2216. ">
  2217. 任务名称
  2218. </div>
  2219. <div>
  2220. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  2221. itemTaskIndex
  2222. ].task
  2223. " />
  2224. </div>
  2225. <div class="remove" v-if="item.taskJson.length > 1 &&
  2226. (!unitJson[unitIndex].easy ||
  2227. unitJson[unitIndex].easy == 6)
  2228. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  2229. </div>
  2230. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  2231. display: flex;
  2232. margin: 0 0 20px 0;
  2233. flex-direction: row;
  2234. justify-content: flex-start;
  2235. align-items: center;
  2236. width: 70.5% !important;
  2237. padding-top: 30px;
  2238. ">
  2239. <div class="lineTitle">任务描述</div>
  2240. </div>
  2241. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  2242. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  2243. itemTaskIndex
  2244. ].taskDetail
  2245. " @change="change"></editor-bar>
  2246. <!-- <textarea
  2247. rows="6"
  2248. class="binfo_input"
  2249. placeholder="请输入任务描述"
  2250. cols
  2251. style="width: 70.5% !important; height: 120px"
  2252. v-model="
  2253. unitJson[unitIndex].chapterInfo[0].taskJson[
  2254. itemTaskIndex
  2255. ].taskDetail
  2256. "
  2257. ></textarea>-->
  2258. </div>
  2259. </div>
  2260. </div>
  2261. <div v-if="!unitJson[unitIndex].easy ||
  2262. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2263. " class="basic_box" style="
  2264. margin: 0;
  2265. min-height: 0;
  2266. width: 90% !important;
  2267. padding-top: 10px !important;
  2268. ">
  2269. <div style="
  2270. display: flex;
  2271. margin: 0 0 20px 0;
  2272. flex-direction: row;
  2273. justify-content: flex-start;
  2274. align-items: center;
  2275. ">
  2276. <div class="lineTitle">学习内容</div>
  2277. </div>
  2278. <div>
  2279. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2280. itemTask.chapterData.length == 0
  2281. " style="height: 185px"></div>
  2282. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2283. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  2284. @click="
  2285. getChapterData(
  2286. $event,
  2287. unitIndex,
  2288. index,
  2289. index1,
  2290. item1.type
  2291. )
  2292. ">
  2293. <div class="chapter_upload_t" style="width: 100%"></div>
  2294. <div class="chapter_upload_o" style="
  2295. position: relative;
  2296. display: flex;
  2297. align-items: center;
  2298. ">
  2299. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2300. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2301. <div v-if="item1.type == 3 ||
  2302. item1.type == 12 ||
  2303. item1.type == 13 ||
  2304. item1.type == 6 ||
  2305. item1.type == 7
  2306. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2307. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2308. </div>
  2309. <div class="chapter_upload_ic" style="
  2310. cursor: pointer;
  2311. position: absolute;
  2312. width: 45px;
  2313. right: 0;
  2314. top: 0;
  2315. ">
  2316. <div class="chapter_upload_ic_l"></div>
  2317. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2318. deleteChapterData(
  2319. $event,
  2320. unitIndex,
  2321. index,
  2322. index1,
  2323. itemTaskIndex
  2324. )
  2325. ">
  2326. <div></div>
  2327. </div>
  2328. </div>
  2329. <div class="chapter_upload_n">
  2330. <input v-if="item1.type == 2 ||
  2331. item1.type == 3 ||
  2332. item1.type == 12 ||
  2333. item1.type == 13 ||
  2334. item1.type == 7
  2335. " :placeholder="item1.name" @change="
  2336. updataVideoT(
  2337. $event,
  2338. unitIndex,
  2339. chapterIndex,
  2340. index1
  2341. )
  2342. " style="
  2343. border: none;
  2344. outline: none;
  2345. width: 80%;
  2346. minwidth: 215px;
  2347. z-index: 99;
  2348. font-size: 14px;
  2349. white-space: nowrap;
  2350. overflow: hidden;
  2351. text-overflow: ellipsis;
  2352. " />
  2353. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2354. border: none;
  2355. outline: none;
  2356. width: 80%;
  2357. white-space: nowrap;
  2358. overflow: hidden;
  2359. text-overflow: ellipsis;
  2360. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2361. <input :placeholder="item1.title ? item1.title : '链接'
  2362. " v-if="item1.type == 8" style="
  2363. border: none;
  2364. outline: none;
  2365. width: 80%;
  2366. white-space: nowrap;
  2367. overflow: hidden;
  2368. text-overflow: ellipsis;
  2369. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2370. <div class="chapter_upload_ud" style="z-index: 99">
  2371. <div class="chapter_upload_up" @click="
  2372. upCd(
  2373. $event,
  2374. unitIndex,
  2375. index,
  2376. itemTaskIndex,
  2377. index1
  2378. )
  2379. "></div>
  2380. <div class="chapter_upload_down" @click="
  2381. downCd(
  2382. $event,
  2383. unitIndex,
  2384. index,
  2385. itemTaskIndex,
  2386. index1
  2387. )
  2388. "></div>
  2389. </div>
  2390. </div>
  2391. </div>
  2392. </div>
  2393. </div>
  2394. </div>
  2395. <div class="add_info_box">
  2396. <button class="info_btn" @click="addImg($event)">
  2397. 添加文件
  2398. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2399. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2400. " />
  2401. </button>
  2402. <!-- <button class="info_btn" @click="addImg($event)">
  2403. 添加视频
  2404. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2405. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2406. " />
  2407. </button>
  2408. <button class="info_btn" @click="addImg($event)">
  2409. 添加文档
  2410. <input type="file"
  2411. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2412. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2413. " />
  2414. </button> -->
  2415. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2416. 添加图文
  2417. </button>
  2418. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2419. 添加链接
  2420. </button>
  2421. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2422. 嵌入代码
  2423. </button>
  2424. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2425. 添加资源
  2426. </button>
  2427. <!-- <button class="info_btn" @click="addImg($event)">
  2428. 其他附件
  2429. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2430. " />
  2431. </button> -->
  2432. </div>
  2433. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2434. itemTaskIndex
  2435. ].proVisible
  2436. " class="mask">
  2437. <div class="progressBox">
  2438. <!-- <div id="closePro" class="closeCss">
  2439. <img src="../../../../assets/icon/close.png" alt />
  2440. </div> -->
  2441. <div class="lbox">
  2442. <img src="../../../assets/loading.gif" />上传中,请稍后
  2443. </div>
  2444. <div style="margin-bottom: 10px">
  2445. <span>{{
  2446. unitJson[unitIndex].chapterInfo[0].taskJson[
  2447. itemTaskIndex
  2448. ].isFinishSize
  2449. }}M</span>
  2450. /
  2451. <span>{{
  2452. unitJson[unitIndex].chapterInfo[0].taskJson[
  2453. itemTaskIndex
  2454. ].isAllSize
  2455. }}M</span>
  2456. </div>
  2457. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2458. itemTaskIndex
  2459. ].progress
  2460. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2461. itemTaskIndex
  2462. ].progress
  2463. : 0
  2464. " style="width: 80%"></el-progress>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. <div v-if="unitJson[unitIndex].easy == 1 ||
  2469. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2470. " class="basic_box" style="
  2471. margin: 0 auto;
  2472. min-height: 0;
  2473. width: 95% !important;
  2474. padding: 20px 10px 10px;
  2475. ">
  2476. <div>
  2477. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2478. itemTask.chapterData.length == 0
  2479. " style="height: 185px"></div>
  2480. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2481. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2482. <div class="chapter_upload" @click="
  2483. getChapterData(
  2484. $event,
  2485. unitIndex,
  2486. index,
  2487. index1,
  2488. item1.type
  2489. )
  2490. ">
  2491. <div class="chapter_upload_t" style="width: 100%"></div>
  2492. <div class="chapter_upload_o" style="
  2493. position: relative;
  2494. display: flex;
  2495. align-items: center;
  2496. ">
  2497. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2498. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2499. <div v-if="item1.type == 3 ||
  2500. item1.type == 6 ||
  2501. item1.type == 7
  2502. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2503. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2504. </div>
  2505. <div class="chapter_upload_ic" style="
  2506. cursor: pointer;
  2507. position: absolute;
  2508. width: 45px;
  2509. right: 0;
  2510. top: 0;
  2511. ">
  2512. <div class="chapter_upload_ic_l"></div>
  2513. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2514. deleteChapterData(
  2515. $event,
  2516. unitIndex,
  2517. index,
  2518. index1,
  2519. itemTaskIndex
  2520. )
  2521. ">
  2522. <div></div>
  2523. </div>
  2524. </div>
  2525. <div class="chapter_upload_n">
  2526. <span style="
  2527. font-size: 14px;
  2528. color: rgb(109, 109, 109);
  2529. height: 14px;
  2530. line-height: 12px;
  2531. " v-if="item1.type == 2 ||
  2532. item1.type == 3 ||
  2533. item1.type == 7
  2534. ">{{ item1.text }}-</span>
  2535. <input v-if="item1.type == 2 ||
  2536. item1.type == 3 ||
  2537. item1.type == 7
  2538. " :placeholder="item1.name" @change="
  2539. updataVideoT(
  2540. $event,
  2541. unitIndex,
  2542. chapterIndex,
  2543. index1
  2544. )
  2545. " style="
  2546. border: none;
  2547. outline: none;
  2548. width: 80%;
  2549. minwidth: 215px;
  2550. z-index: 99;
  2551. font-size: 14px;
  2552. white-space: nowrap;
  2553. overflow: hidden;
  2554. text-overflow: ellipsis;
  2555. " />
  2556. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2557. border: none;
  2558. outline: none;
  2559. width: 80%;
  2560. white-space: nowrap;
  2561. overflow: hidden;
  2562. text-overflow: ellipsis;
  2563. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2564. <input :placeholder="item1.title ? item1.title : '链接'
  2565. " v-if="item1.type == 8" style="
  2566. border: none;
  2567. outline: none;
  2568. width: 80%;
  2569. white-space: nowrap;
  2570. overflow: hidden;
  2571. text-overflow: ellipsis;
  2572. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2573. <div class="chapter_upload_ud" style="z-index: 99">
  2574. <div class="chapter_upload_up" @click="
  2575. upCd(
  2576. $event,
  2577. unitIndex,
  2578. index,
  2579. itemTaskIndex,
  2580. index1
  2581. )
  2582. "></div>
  2583. <div class="chapter_upload_down" @click="
  2584. downCd(
  2585. $event,
  2586. unitIndex,
  2587. index,
  2588. itemTaskIndex,
  2589. index1
  2590. )
  2591. "></div>
  2592. </div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. </div>
  2598. </div>
  2599. <div class="add_info_box" style="margin: 10px 0 0">
  2600. <button class="info_btn" @click="addImg($event)">
  2601. <span style="color: red">*</span>
  2602. 教学设计
  2603. <input type="file"
  2604. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2605. style="display: none" v-if="inputShow" @change="
  2606. beforeUpload3(
  2607. $event,
  2608. unitIndex,
  2609. 3,
  2610. itemTaskIndex,
  2611. '教学设计'
  2612. )
  2613. " />
  2614. </button>
  2615. <button class="info_btn" @click="addImg($event)">
  2616. <span style="color: red">*</span>
  2617. 教学课件
  2618. <input type="file"
  2619. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2620. style="display: none" v-if="inputShow" @change="
  2621. beforeUpload3(
  2622. $event,
  2623. unitIndex,
  2624. 3,
  2625. itemTaskIndex,
  2626. '教学课件'
  2627. )
  2628. " />
  2629. </button>
  2630. <button class="info_btn" @click="addImg($event)">
  2631. 教学视频
  2632. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2633. v-if="inputShow" @change="
  2634. beforeUpload3(
  2635. $event,
  2636. unitIndex,
  2637. 2,
  2638. itemTaskIndex,
  2639. '教学视频'
  2640. )
  2641. " />
  2642. </button>
  2643. <button class="info_btn" @click="addImg($event)">
  2644. 教学音频
  2645. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2646. beforeUpload3(
  2647. $event,
  2648. unitIndex,
  2649. 2,
  2650. itemTaskIndex,
  2651. '教学音频'
  2652. )
  2653. " />
  2654. </button>
  2655. <button class="info_btn" @click="addImg($event)">
  2656. 学习单
  2657. <input type="file"
  2658. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2659. style="display: none" v-if="inputShow" @change="
  2660. beforeUpload3(
  2661. $event,
  2662. unitIndex,
  2663. 3,
  2664. itemTaskIndex,
  2665. '学习单'
  2666. )
  2667. " />
  2668. </button>
  2669. </div>
  2670. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2671. itemTaskIndex
  2672. ].proVisible
  2673. " class="mask">
  2674. <div class="progressBox">
  2675. <!-- <div id="closePro" class="closeCss">
  2676. <img src="../../../../assets/icon/close.png" alt />
  2677. </div> -->
  2678. <div class="lbox">
  2679. <img src="../../../assets/loading.gif" />上传中,请稍后
  2680. </div>
  2681. <div style="margin-bottom: 10px">
  2682. <span>{{
  2683. unitJson[unitIndex].chapterInfo[0].taskJson[
  2684. itemTaskIndex
  2685. ].isFinishSize
  2686. }}M</span>
  2687. /
  2688. <span>{{
  2689. unitJson[unitIndex].chapterInfo[0].taskJson[
  2690. itemTaskIndex
  2691. ].isAllSize
  2692. }}M</span>
  2693. </div>
  2694. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2695. itemTaskIndex
  2696. ].progress
  2697. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2698. itemTaskIndex
  2699. ].progress
  2700. : 0
  2701. " style="width: 80%"></el-progress>
  2702. </div>
  2703. </div>
  2704. </div>
  2705. <div v-if="unitJson[unitIndex].easy != 3 &&
  2706. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2707. " style="
  2708. flex-direction: row;
  2709. justify-content: flex-start;
  2710. align-items: center;
  2711. padding: 0 0 0 30px;
  2712. paddint-top: 10px !important;
  2713. ">
  2714. <div style="
  2715. display: flex;
  2716. flex-direction: row;
  2717. align-items: center;
  2718. margin-bottom: 20px;
  2719. ">
  2720. <div class="lineTitle">
  2721. {{
  2722. !unitJson[unitIndex].easy ||
  2723. unitJson[unitIndex].easy == 6 ||
  2724. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2725. ? "练习内容"
  2726. : "评价内容"
  2727. }}
  2728. </div>
  2729. </div>
  2730. </div>
  2731. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2732. " class="toolChoose" style="padding: 0 0 0 30px">
  2733. <div class="tools">
  2734. <div class="leftTools" style="
  2735. width: 95%;
  2736. padding: 0 0 15px 0;
  2737. margin: 15px 0;
  2738. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2739. <div>
  2740. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2741. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2742. </div>
  2743. <div style="
  2744. display: flex;
  2745. flex-direction: row;
  2746. align-items: baseline;
  2747. flex-wrap: nowrap;
  2748. justify-content: flex-start;
  2749. position: relative;
  2750. ">
  2751. <div style="margin-right: 20px; font-weight: bold">
  2752. 步骤 {{ toolIndex + 1 }} :
  2753. </div>
  2754. <div class="chooseWho">
  2755. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  2756. " @click="(itemTool.toolType = 0), $forceUpdate()">
  2757. 互动类
  2758. </div> -->
  2759. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2760. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2761. 思维类
  2762. </div>
  2763. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2764. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2765. 协作类
  2766. </div>
  2767. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2768. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2769. 测评类
  2770. </div>
  2771. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2772. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2773. 评价类
  2774. </div>
  2775. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2776. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2777. 学科类
  2778. </div>
  2779. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  2780. " @click="(itemTool.toolType = 5), $forceUpdate()">
  2781. 学科类
  2782. </div>
  2783. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2784. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2785. 其他
  2786. </div> -->
  2787. </div>
  2788. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2789. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2790. </div>
  2791. <div style="min-height: 163px">
  2792. <div class="toolSort" v-if="itemTool.toolType == 0">
  2793. <!-- <div class="tool">
  2794. <div
  2795. class="whiteBIcon"
  2796. @click="addTools(8, itemTaskIndex, toolIndex)"
  2797. >
  2798. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2799. <div style="margin: 5px 0">素材库</div>
  2800. </div>
  2801. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2802. <img
  2803. src="../../../assets/icon/checkNo.png"
  2804. alt
  2805. v-if="itemTool.tool.indexOf(8) == -1"
  2806. />
  2807. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2808. alt /><span>已选择</span></div>
  2809. </div>
  2810. </div>-->
  2811. <!-- <div class="tool">
  2812. <div
  2813. class="whiteBIcon"
  2814. @click="addTools(17, itemTaskIndex, toolIndex)"
  2815. >
  2816. <img
  2817. src="../../../assets/icon/secondToolList/library.png"
  2818. alt
  2819. />
  2820. <div style="margin: 5px 0">学习资料</div>
  2821. </div>
  2822. <div
  2823. class="check"
  2824. @click="addTools(17, itemTaskIndex, toolIndex)"
  2825. >
  2826. <img
  2827. src="../../../assets/icon/checkNo.png"
  2828. alt
  2829. v-if="itemTool.tool.indexOf(17) == -1"
  2830. />
  2831. <img
  2832. src="../../../assets/icon/checkedIs.png"
  2833. alt
  2834. v-else
  2835. />
  2836. </div>10
  2837. </div> -->
  2838. <div class="tool">
  2839. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2840. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2841. <div style="margin: 5px 0">倒计时</div>
  2842. </div>
  2843. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2844. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2845. <div class="checkDiv" v-else>
  2846. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2847. </div>
  2848. </div>
  2849. </div>
  2850. <!-- <div class="tool">
  2851. <div
  2852. class="whiteBIcon"
  2853. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2854. >
  2855. <img
  2856. src="../../../assets/icon/fourthToolList/group.png"
  2857. alt
  2858. />
  2859. <div style="margin: 5px 0">学生分组</div>
  2860. </div>
  2861. <div
  2862. class="check"
  2863. @click="addTools(49, itemTaskIndex, toolIndex)"
  2864. >
  2865. <img
  2866. src="../../../assets/icon/checkNo.png"
  2867. alt
  2868. v-if="itemTool.tool.indexOf(49) == -1"
  2869. />
  2870. <div class="checkDiv" v-else>
  2871. <img
  2872. src="../../../assets/icon/checkedIs.png"
  2873. alt
  2874. /><span>已选择</span>
  2875. </div>
  2876. </div>
  2877. </div> -->
  2878. <div class="tool">
  2879. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2880. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2881. <div style="margin: 5px 0">交互视频</div>
  2882. </div>
  2883. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2884. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2885. <div class="checkDiv" v-else>
  2886. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2887. </div>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. <div class="toolSort" v-if="itemTool.toolType == 1">
  2892. <div class="tool">
  2893. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2894. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2895. <div style="margin: 5px 0">思维网格</div>
  2896. </div>
  2897. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2898. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2899. <div class="checkDiv" v-else>
  2900. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2901. </div>
  2902. </div>
  2903. </div>
  2904. <div class="tool">
  2905. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2906. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2907. <div style="margin: 5px 0">电子白板</div>
  2908. </div>
  2909. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2910. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2911. <div class="checkDiv" v-else>
  2912. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. <!-- <div class="tool">
  2917. <div
  2918. class="whiteBIcon"
  2919. @click="addTools(2, itemTaskIndex, toolIndex)"
  2920. >
  2921. <img
  2922. src="../../../assets/icon/secondToolList/note.png"
  2923. alt
  2924. />
  2925. <div style="margin: 5px 0">便签</div>
  2926. </div>
  2927. <div
  2928. class="check"
  2929. @click="addTools(2, itemTaskIndex, toolIndex)"
  2930. >
  2931. <img
  2932. src="../../../assets/icon/checkNo.png"
  2933. alt
  2934. v-if="itemTool.tool.indexOf(2) == -1"
  2935. />
  2936. <div class="checkDiv" v-else>
  2937. <img
  2938. src="../../../assets/icon/checkedIs.png"
  2939. alt
  2940. /><span>已选择</span>
  2941. </div>
  2942. </div>
  2943. </div> -->
  2944. <!-- <div class="tool">
  2945. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2946. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2947. <div style="margin: 5px 0">协同文档</div>
  2948. </div>
  2949. <div
  2950. class="check"
  2951. @click="addTools(6, itemTaskIndex, toolIndex)"
  2952. >
  2953. <img
  2954. src="../../../assets/icon/checkNo.png"
  2955. alt
  2956. v-if="itemTool.tool.indexOf(6) == -1"
  2957. />
  2958. <div class="checkDiv" v-else>
  2959. <img
  2960. src="../../../assets/icon/checkedIs.png"
  2961. alt
  2962. /><span>已选择</span>
  2963. </div>
  2964. </div>
  2965. </div> -->
  2966. <div class="tool">
  2967. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2968. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2969. <div style="margin: 5px 0">文档</div>
  2970. </div>
  2971. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2972. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2973. <div class="checkDiv" v-else>
  2974. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div class="tool">
  2979. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2980. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2981. <div style="margin: 5px 0">思维导图</div>
  2982. </div>
  2983. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2984. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2985. <div class="checkDiv" v-else>
  2986. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2987. </div>
  2988. </div>
  2989. </div>
  2990. <div class="tool">
  2991. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2992. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2993. <div style="margin: 5px 0">表格</div>
  2994. </div>
  2995. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2996. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2997. <div class="checkDiv" v-else>
  2998. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2999. </div>
  3000. </div>
  3001. </div>
  3002. </div>
  3003. <div class="toolSort" v-if="itemTool.toolType == 6">
  3004. <div class="tool">
  3005. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  3006. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  3007. <div style="margin: 5px 0">学生分组</div>
  3008. </div>
  3009. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  3010. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  3011. <div class="checkDiv" v-else>
  3012. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3013. </div>
  3014. </div>
  3015. </div>
  3016. </div>
  3017. <div class="toolSort" v-if="itemTool.toolType == 2">
  3018. <!-- <div class="tool">
  3019. <div
  3020. class="whiteBIcon"
  3021. @click="addTools(5, itemTaskIndex, toolIndex)"
  3022. >
  3023. <img
  3024. src="../../../assets/icon/thirdToolList/score.png"
  3025. alt
  3026. />
  3027. <div style="margin: 5px 0">量规评分</div>
  3028. </div>
  3029. <div
  3030. class="check"
  3031. @click="addTools(5, itemTaskIndex, toolIndex)"
  3032. >
  3033. <img
  3034. src="../../../assets/icon/checkNo.png"
  3035. alt
  3036. v-if="itemTool.tool.indexOf(5) == -1"
  3037. />
  3038. <img
  3039. src="../../../assets/icon/checkedIs.png"
  3040. alt
  3041. v-else
  3042. />
  3043. </div>
  3044. </div>-->
  3045. <div class="tool">
  3046. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3047. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3048. <div style="margin: 5px 0">问卷调查</div>
  3049. </div>
  3050. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3051. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3052. <div class="checkDiv" v-else>
  3053. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3054. </div>
  3055. </div>
  3056. </div>
  3057. <div class="tool">
  3058. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3059. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3060. <div style="margin: 5px 0">选择题</div>
  3061. </div>
  3062. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3063. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3064. <div class="checkDiv" v-else>
  3065. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3066. </div>
  3067. </div>
  3068. </div>
  3069. <div class="tool">
  3070. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3071. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3072. <div style="margin: 5px 0">问答</div>
  3073. </div>
  3074. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3075. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3076. <div class="checkDiv" v-else>
  3077. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3078. </div>
  3079. </div>
  3080. </div>
  3081. <div class="tool">
  3082. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3083. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3084. <div style="margin: 5px 0">作业提交</div>
  3085. </div>
  3086. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3087. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3088. <div class="checkDiv" v-else>
  3089. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div class="tool">
  3094. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  3095. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3096. <div style="margin: 5px 0">批量上传</div>
  3097. </div>
  3098. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3099. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3100. <div class="checkDiv" v-else>
  3101. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3102. </div>
  3103. </div>
  3104. </div>
  3105. <!-- <div class="tool">
  3106. <div
  3107. class="whiteBIcon"
  3108. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3109. >
  3110. <img
  3111. src="../../../assets/icon/thirdToolList/eval.png"
  3112. alt
  3113. />
  3114. <div style="margin: 5px 0">个人评价</div>
  3115. </div>
  3116. <div
  3117. class="check"
  3118. @click="addTools(40, itemTaskIndex, toolIndex)"
  3119. >
  3120. <img
  3121. src="../../../assets/icon/checkNo.png"
  3122. alt
  3123. v-if="itemTool.tool.indexOf(40) == -1"
  3124. />
  3125. <div class="checkDiv" v-else>
  3126. <img
  3127. src="../../../assets/icon/checkedIs.png"
  3128. alt
  3129. /><span>已选择</span>
  3130. </div>
  3131. </div>
  3132. </div> -->
  3133. <div class="tool">
  3134. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3135. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3136. <div style="margin: 5px 0">选择匹配</div>
  3137. </div>
  3138. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3139. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3140. <div class="checkDiv" v-else>
  3141. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3142. </div>
  3143. </div>
  3144. </div>
  3145. <div class="tool">
  3146. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3147. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3148. <div style="margin: 5px 0">排序</div>
  3149. </div>
  3150. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3151. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3152. <div class="checkDiv" v-else>
  3153. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. <!-- <div class="tool">
  3158. <div
  3159. class="whiteBIcon"
  3160. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3161. >
  3162. <img
  3163. src="../../../assets/icon/thirdToolList/mp3.png"
  3164. alt
  3165. />
  3166. <div style="margin: 5px 0">上传音频</div>
  3167. </div>
  3168. <div
  3169. class="check"
  3170. @click="addTools(42, itemTaskIndex, toolIndex)"
  3171. >
  3172. <img
  3173. src="../../../assets/icon/checkNo.png"
  3174. alt
  3175. v-if="itemTool.tool.indexOf(42) == -1"
  3176. />
  3177. <img
  3178. src="../../../assets/icon/checkedIs.png"
  3179. alt
  3180. v-else
  3181. />
  3182. </div>
  3183. </div> -->
  3184. </div>
  3185. <div class="toolSort" v-if="itemTool.toolType == 3">
  3186. <div class="tool">
  3187. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  3188. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  3189. <div style="margin: 5px 0">训练平台</div>
  3190. </div>
  3191. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3192. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  3193. <div class="checkDiv" v-else>
  3194. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. <div class="tool">
  3199. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  3200. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  3201. <div style="margin: 5px 0">AIoT Blockly</div>
  3202. </div>
  3203. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3204. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  3205. <div class="checkDiv" v-else>
  3206. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3207. </div>
  3208. </div>
  3209. </div>
  3210. <div class="tool">
  3211. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3212. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3213. <div style="margin: 5px 0">AI体验</div>
  3214. </div>
  3215. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3216. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3217. <div class="checkDiv" v-else>
  3218. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3219. </div>
  3220. </div>
  3221. </div>
  3222. <div class="tool">
  3223. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  3224. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  3225. <div style="margin: 5px 0">AI Python</div>
  3226. </div>
  3227. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3228. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  3229. <div class="checkDiv" v-else>
  3230. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3231. </div>
  3232. </div>
  3233. </div>
  3234. <div class="tool">
  3235. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  3236. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  3237. <div style="margin: 5px 0">AI Blockly</div>
  3238. </div>
  3239. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3240. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  3241. <div class="checkDiv" v-else>
  3242. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3243. </div>
  3244. </div>
  3245. </div>
  3246. <!-- <div class="tool">
  3247. <div
  3248. class="whiteBIcon"
  3249. @click="addTools(32, itemTaskIndex, toolIndex)"
  3250. >
  3251. <img
  3252. src="../../../assets/icon/thirdToolList/code.png"
  3253. alt
  3254. />
  3255. <div style="margin: 5px 0">源码编辑</div>
  3256. </div>
  3257. <div
  3258. class="check"
  3259. @click="addTools(32, itemTaskIndex, toolIndex)"
  3260. >
  3261. <img
  3262. src="../../../assets/icon/checkNo.png"
  3263. alt
  3264. v-if="itemTool.tool.indexOf(32) == -1"
  3265. />
  3266. <div class="checkDiv" v-else>
  3267. <img
  3268. src="../../../assets/icon/checkedIs.png"
  3269. alt
  3270. /><span>已选择</span>
  3271. </div>
  3272. </div>
  3273. </div> -->
  3274. <div class="tool">
  3275. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  3276. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  3277. <div style="margin: 5px 0">CocoPi</div>
  3278. </div>
  3279. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3280. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  3281. <div class="checkDiv" v-else>
  3282. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3283. </div>
  3284. </div>
  3285. </div>
  3286. <div class="tool">
  3287. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  3288. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  3289. <div style="margin: 5px 0">海龟编程</div>
  3290. </div>
  3291. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3292. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  3293. <div class="checkDiv" v-else>
  3294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. <div class="toolSort" v-if="itemTool.toolType == 7">
  3300. <div class="tool">
  3301. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3302. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3303. <div style="margin: 5px 0">个人评价</div>
  3304. </div>
  3305. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3306. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3307. <div class="checkDiv" v-else>
  3308. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. </div>
  3313. <div class="toolSort" v-if="itemTool.toolType == 5">
  3314. <div class="tool">
  3315. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3316. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3317. <div style="margin: 5px 0">翻译</div>
  3318. </div>
  3319. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3320. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3321. <div class="checkDiv" v-else>
  3322. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3323. </div>
  3324. </div>
  3325. </div>
  3326. <div class="tool">
  3327. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3328. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3329. <div style="margin: 5px 0">魔盒识字</div>
  3330. </div>
  3331. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3332. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3333. <div class="checkDiv" v-else>
  3334. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. <div class="tool">
  3339. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3340. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3341. <div style="margin: 5px 0">24点</div>
  3342. </div>
  3343. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3344. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3345. <div class="checkDiv" v-else>
  3346. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3347. </div>
  3348. </div>
  3349. </div>
  3350. <div class="tool">
  3351. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3352. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3353. <div style="margin: 5px 0">数学画板</div>
  3354. </div>
  3355. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3356. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3357. <div class="checkDiv" v-else>
  3358. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3359. </div>
  3360. </div>
  3361. </div>
  3362. <div class="tool">
  3363. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3364. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3365. <div style="margin: 5px 0">GeoGebra</div>
  3366. </div>
  3367. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3368. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3369. <div class="checkDiv" v-else>
  3370. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3371. </div>
  3372. </div>
  3373. </div>
  3374. <div class="tool">
  3375. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3376. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3377. <div style="margin: 5px 0">模拟驾驶</div>
  3378. </div>
  3379. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3380. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3381. <div class="checkDiv" v-else>
  3382. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3383. </div>
  3384. </div>
  3385. </div>
  3386. <div class="tool">
  3387. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3388. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3389. <div style="margin: 5px 0">路径搜索</div>
  3390. </div>
  3391. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3392. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3393. <div class="checkDiv" v-else>
  3394. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3395. </div>
  3396. </div>
  3397. </div>
  3398. <div class="tool">
  3399. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3400. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3401. <div style="margin: 5px 0">深度学习</div>
  3402. </div>
  3403. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3404. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3405. <div class="checkDiv" v-else>
  3406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3407. </div>
  3408. </div>
  3409. </div>
  3410. <div class="tool">
  3411. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3412. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3413. <div style="margin: 5px 0">全历史</div>
  3414. </div>
  3415. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3416. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3417. <div class="checkDiv" v-else>
  3418. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3419. </div>
  3420. </div>
  3421. </div>
  3422. </div>
  3423. <div class="toolSort" v-if="itemTool.toolType == 4">
  3424. <div class="tool">
  3425. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3426. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3427. <div style="margin: 5px 0">课程设计</div>
  3428. </div>
  3429. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3430. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3431. <div class="checkDiv" v-else>
  3432. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3433. </div>
  3434. </div>
  3435. </div>
  3436. <div class="tool">
  3437. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3438. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3439. <div style="margin: 5px 0">目标管理</div>
  3440. </div>
  3441. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3442. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3443. <div class="checkDiv" v-else>
  3444. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3445. </div>
  3446. </div>
  3447. </div>
  3448. <!-- <div class="tool">
  3449. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3450. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3451. <div style="margin: 5px 0">汉字宫</div>
  3452. </div>
  3453. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3454. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3455. <div class="checkDiv" v-else>
  3456. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3457. </div>
  3458. </div>
  3459. </div> -->
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3464. <div class="addToolImg">
  3465. <img src="../../../assets/icon/add.png" alt />
  3466. </div>
  3467. <div>添加工具</div>
  3468. </div>
  3469. </div>
  3470. </div>
  3471. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3472. unitJson[unitIndex].easy == 4
  3473. " class="toolChoose" style="padding: 0 0 0 30px">
  3474. <div class="tools">
  3475. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3476. :key="toolIndex">
  3477. <div>
  3478. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3479. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3480. </div>
  3481. <div style="
  3482. display: flex;
  3483. flex-direction: row;
  3484. align-items: baseline;
  3485. flex-wrap: nowrap;
  3486. justify-content: flex-start;
  3487. position: relative;
  3488. ">
  3489. <div style="margin-right: 20px; font-weight: bold">
  3490. 步骤 {{ toolIndex + 1 }} :
  3491. </div>
  3492. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3493. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3494. </div>
  3495. <div style="min-height: 163px">
  3496. <div class="toolSort">
  3497. <div class="tool">
  3498. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3499. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3500. <div style="margin: 5px 0">电子白板</div>
  3501. </div>
  3502. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3503. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3504. <div class="checkDiv" v-else>
  3505. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. <div class="tool">
  3510. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3511. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3512. <div style="margin: 5px 0">文档</div>
  3513. </div>
  3514. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3515. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3516. <div class="checkDiv" v-else>
  3517. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3518. </div>
  3519. </div>
  3520. </div>
  3521. <div class="tool">
  3522. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3523. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3524. <div style="margin: 5px 0">思维导图</div>
  3525. </div>
  3526. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3527. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3528. <div class="checkDiv" v-else>
  3529. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3530. </div>
  3531. </div>
  3532. </div>
  3533. <div class="tool">
  3534. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3535. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3536. <div style="margin: 5px 0">问卷调查</div>
  3537. </div>
  3538. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3539. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3540. <div class="checkDiv" v-else>
  3541. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. <div class="tool">
  3546. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3547. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3548. <div style="margin: 5px 0">选择题</div>
  3549. </div>
  3550. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3551. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3552. <div class="checkDiv" v-else>
  3553. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3554. </div>
  3555. </div>
  3556. </div>
  3557. <div class="tool">
  3558. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3559. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3560. <div style="margin: 5px 0">问答</div>
  3561. </div>
  3562. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3563. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3564. <div class="checkDiv" v-else>
  3565. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3566. </div>
  3567. </div>
  3568. </div>
  3569. <div class="tool">
  3570. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3571. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3572. <div style="margin: 5px 0">作业提交</div>
  3573. </div>
  3574. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3575. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3576. <div class="checkDiv" v-else>
  3577. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3578. </div>
  3579. </div>
  3580. </div>
  3581. <div class="tool">
  3582. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3583. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3584. <div style="margin: 5px 0">批量上传</div>
  3585. </div>
  3586. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3587. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3588. <div class="checkDiv" v-else>
  3589. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div class="tool">
  3594. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3595. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3596. <div style="margin: 5px 0">选择匹配</div>
  3597. </div>
  3598. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3599. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3600. <div class="checkDiv" v-else>
  3601. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3602. </div>
  3603. </div>
  3604. </div>
  3605. <div class="tool">
  3606. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3607. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3608. <div style="margin: 5px 0">排序</div>
  3609. </div>
  3610. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3611. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3612. <div class="checkDiv" v-else>
  3613. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3614. </div>
  3615. </div>
  3616. </div>
  3617. <div class="tool">
  3618. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3619. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3620. <div style="margin: 5px 0">表格</div>
  3621. </div>
  3622. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3623. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3624. <div class="checkDiv" v-else>
  3625. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3626. </div>
  3627. </div>
  3628. </div>
  3629. </div>
  3630. </div>
  3631. </div>
  3632. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3633. <div class="addToolImg">
  3634. <img src="../../../assets/icon/add.png" alt />
  3635. </div>
  3636. <div>添加工具</div>
  3637. </div>
  3638. </div>
  3639. </div>
  3640. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3641. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3642. " class="toolChoose" style="padding: 0 0 0 30px">
  3643. <div class="tools">
  3644. <div class="leftTools" style="
  3645. width: 95%;
  3646. padding: 0 0 15px 0;
  3647. margin-bottom: 15px;
  3648. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3649. <div style="min-height: 163px">
  3650. <div class="toolSort">
  3651. <div class="tool">
  3652. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3653. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3654. <div style="margin: 5px 0">批量上传</div>
  3655. </div>
  3656. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3657. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3658. <div class="checkDiv" v-else>
  3659. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3660. </div>
  3661. </div>
  3662. </div>
  3663. </div>
  3664. </div>
  3665. </div>
  3666. </div>
  3667. </div>
  3668. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3669. <div class="elist_title">
  3670. <div style="
  3671. display: flex;
  3672. flex-direction: row;
  3673. align-items: center;
  3674. margin-bottom: 20px;
  3675. ">
  3676. <div class="lineTitle">评价设置</div>
  3677. </div>
  3678. </div>
  3679. <div class="mbCss">
  3680. <div class="pjCss">
  3681. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3682. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3683. <span>评价名称:</span>
  3684. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3685. <span>评星等级:</span>
  3686. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3687. <div class="remove" @click="
  3688. deletEList(unitIndex, itemTaskIndex, eIndex)
  3689. "></div>
  3690. <div class="elist_inptu_text">
  3691. <span>评价描述:</span>
  3692. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3693. </div>
  3694. <div class="elist_inptu_text" v-if="evalua">
  3695. <span>目标:</span>
  3696. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3697. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3698. @change="forceUpdate()">
  3699. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3700. :value="e.name">
  3701. </el-option>
  3702. </el-select> -->
  3703. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3704. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3709. <div class="addToolImg">
  3710. <img src="../../../assets/icon/add.png" alt />
  3711. </div>
  3712. <div>添加</div>
  3713. </div>
  3714. </div>
  3715. <div v-if="evalua" style="
  3716. border: 1px solid #e5e5e5;
  3717. width: 55%;
  3718. margin-top: 20px;
  3719. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3720. " class="evaCss">
  3721. <div class="e_add_top">
  3722. <div class="e_add_title">
  3723. <span>当前使用目标管理</span>
  3724. <span>{{ eTitle }}</span>
  3725. <img src="../../../assets/line.png" class="cru_line" style="
  3726. width: 125px;
  3727. height: 20px;
  3728. bottom: -10px;
  3729. left: 155px;
  3730. " />
  3731. </div>
  3732. </div>
  3733. <div class="e_add_content" style="width: 100%">
  3734. <div class="e_add_list_pbox" style="width: 100%">
  3735. <div class="e_add_list_pbox_title">
  3736. <span class="type_title">切换模式</span>
  3737. <div class="type_content">
  3738. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3739. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3740. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3741. </div>
  3742. </div>
  3743. <div class="e_add_list_pbox_content">
  3744. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3745. " v-if="typeMode == 1"></Mind>
  3746. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3747. </Sunburst>
  3748. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3749. v-if="typeMode == 3"></SeeBoard>
  3750. </div>
  3751. </div>
  3752. </div>
  3753. </div>
  3754. </div>
  3755. </div>
  3756. <div class="funBlock" style="padding: 0">
  3757. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3758. <div>折叠</div>
  3759. <div class="arrow">
  3760. <img src="../../../assets/icon/fold.png" alt />
  3761. </div>
  3762. </div>
  3763. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3764. <div>展开</div>
  3765. <div class="arrow">
  3766. <img src="../../../assets/icon/expand.png" alt />
  3767. </div>
  3768. </div>
  3769. </div>
  3770. </div>
  3771. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3772. <div>
  3773. <img src="../../../assets/icon/addHw.png" alt />
  3774. <span>添加任务</span>
  3775. </div>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. <div class="rightBox" v-if="this.steps == 4">
  3781. <div class="basic_box_success">
  3782. <div class="right_img">
  3783. <img src="../../../assets/icon/right.png" alt />
  3784. </div>
  3785. <div style="font-weight: bold">成功</div>
  3786. <!-- <div>您的课程编号</div>
  3787. <div class="number">{{ number }}</div>-->
  3788. <!-- <div class="success_button">
  3789. <div class="look_course" @click="isNoFinsh">
  3790. 邀请老师协同编辑
  3791. </div>
  3792. <div class="attend_others" @click="goCourse">预览课程</div>
  3793. </div> -->
  3794. </div>
  3795. </div>
  3796. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3797. @mouseleave="btnDisplay(false)" v-if="false">
  3798. <button v-if="isBtnDisplay" class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  3799. 返回课程
  3800. </button>
  3801. <button v-if="isBtnDisplay" class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  3802. 确认上传
  3803. </button>
  3804. </div>
  3805. </div>
  3806. </div>
  3807. </div>
  3808. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3809. class="dialog_diy2 customWidth">
  3810. <div>请复制该链接邀请协同编辑</div>
  3811. <div>http://www.boomyon.com/index-zhang.com</div>
  3812. <span slot="footer" class="dialog-footer">
  3813. <el-button type="primary">复制链接分享</el-button>
  3814. <el-button @click="dialogVisible = false">取消</el-button>
  3815. </span>
  3816. </el-dialog>
  3817. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3818. :before-close="handleClose" class="dialog_diy2 customWidth">
  3819. <el-form>
  3820. <el-form-item label="文档标题">
  3821. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3822. </el-form-item>
  3823. <div>文档简介</div>
  3824. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3825. </el-form>
  3826. <span slot="footer" class="dialog-footer">
  3827. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3828. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3829. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3830. </span>
  3831. </el-dialog>
  3832. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3833. :before-close="handleClose" class="dialog_diy">
  3834. <el-form>
  3835. <el-form-item label="文档标题">
  3836. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3837. </el-form-item>
  3838. <div>文档内容</div>
  3839. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3840. </el-form>
  3841. <span slot="footer" class="dialog-footer">
  3842. <el-button @click="clearChoose">取 消</el-button>
  3843. <el-button type="primary" @click="wordNext()">确定</el-button>
  3844. </span>
  3845. </el-dialog>
  3846. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3847. :before-close="handleClose" class="dialog_diy">
  3848. <el-form>
  3849. <el-form-item label="文本标题">
  3850. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3851. placeholder="请输入文本标题..."></el-input>
  3852. </el-form-item>
  3853. <!-- <div>富文本内容</div> -->
  3854. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3855. </el-form>
  3856. <span slot="footer" class="dialog-footer">
  3857. <el-button @click="clearAttText">取 消</el-button>
  3858. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3859. </span>
  3860. </el-dialog>
  3861. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3862. :before-close="handleClose" class="dialog_diy lineCss">
  3863. <el-form>
  3864. <el-form-item label="标题" :label-width="formLabelWidth">
  3865. <span>
  3866. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3867. </span>
  3868. </el-form-item>
  3869. <el-form-item label="链接" :label-width="formLabelWidth">
  3870. <span>
  3871. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3872. </span>
  3873. </el-form-item>
  3874. </el-form>
  3875. <span slot="footer" class="dialog-footer">
  3876. <el-button @click="clearLine">取 消</el-button>
  3877. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3878. </span>
  3879. </el-dialog>
  3880. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3881. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3882. <div>
  3883. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3884. </div>
  3885. <span slot="footer" class="dialog-footer">
  3886. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3887. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3888. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3889. </span>
  3890. </el-dialog>
  3891. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3892. :before-close="handleClose" class="addNewPP customWidth">
  3893. <div class="people">
  3894. <div class="people_top">
  3895. <div class="people_nav">选择成员</div>
  3896. <div class="people_top_right">
  3897. <div class="people_search">
  3898. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3899. <div class="search_img" @click="searchStudent">
  3900. <img src="../../../assets/icon/search.png" alt />
  3901. </div>
  3902. </div>
  3903. </div>
  3904. </div>
  3905. <el-checkbox-group v-model="checkboxList" class="people_name">
  3906. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3907. "暂无学生可选" }}</el-checkbox>
  3908. </el-checkbox-group>
  3909. </div>
  3910. <span slot="footer" class="dialog-footer">
  3911. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3912. <el-button type="primary" @click="isAddPP">确定</el-button>
  3913. </span>
  3914. </el-dialog>
  3915. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3916. :before-close="handleClose" class="addNewPP2">
  3917. <div class="check_classBox">
  3918. <div class="check_class_right">
  3919. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3920. 全部
  3921. </div>
  3922. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3923. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3924. {{ item.name }}
  3925. </div>
  3926. </el-tooltip>
  3927. </div>
  3928. <div class="check_class_left">
  3929. <div class="check_class_all_box">
  3930. <div class="check_class_left_title">选择班级</div>
  3931. <div style="display:flex;align-items:center;"><el-checkbox v-model="checkAll"
  3932. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3933. </div>
  3934. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3935. <div v-for="item in grade2" :key="item.id" class="class_item">
  3936. <el-checkbox :label="item.id">
  3937. {{ item.name }}
  3938. </el-checkbox>
  3939. </div>
  3940. </el-checkbox-group>
  3941. <div v-if="!grade2.length">暂无数据</div>
  3942. </div>
  3943. </div>
  3944. <span slot="footer" class="dialog-footer">
  3945. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3946. <el-button type="primary" @click="isAddClass">确定</el-button>
  3947. </span>
  3948. </el-dialog>
  3949. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3950. :before-close="handleClose" class="addNewPP customWidth">
  3951. <div class="people">
  3952. <div class="people_top">
  3953. <div class="people_top_right">
  3954. <div class="people_search">
  3955. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3956. <div class="search_img" @click="getTeacher">
  3957. <img src="../../../assets/icon/search.png" alt />
  3958. </div>
  3959. </div>
  3960. </div>
  3961. <div class="people_nav">选择成员</div>
  3962. </div>
  3963. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3964. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3965. <div class="t_j_box">
  3966. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3967. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3968. </el-tooltip>
  3969. <el-tooltip placement="top" :content="item.username">
  3970. <span>{{ item.username }}</span>
  3971. </el-tooltip>
  3972. <el-tooltip placement="top" :content="item.school">
  3973. <span>{{ item.school }}</span>
  3974. </el-tooltip>
  3975. </div>
  3976. </el-checkbox>
  3977. </el-checkbox-group>
  3978. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3979. </div>
  3980. <span slot="footer" class="dialog-footer">
  3981. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3982. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3983. </span>
  3984. </el-dialog>
  3985. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3986. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3987. <div style="height:100%">
  3988. <div class="a_add_title" style="
  3989. display: flex;
  3990. flex-direction: row;
  3991. align-items: center;
  3992. justify-content: center;
  3993. ">
  3994. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3995. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3996. </div>
  3997. <div class="a_addBox" style="height:calc(100% - 50px)">
  3998. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3999. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4000. <div class="a_add_checkType">
  4001. <span :class="{
  4002. active:
  4003. askJson.askJson[index1].type == '1' ||
  4004. !askJson.askJson[index1].type,
  4005. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  4006. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  4007. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  4008. </div>
  4009. <div class="a_add_head">
  4010. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  4011. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  4012. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  4013. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  4014. </div>
  4015. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  4016. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  4017. </div>
  4018. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  4019. </div>
  4020. <div class="a_add_head_div">
  4021. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  4022. </el-button>
  4023. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  4024. </div>
  4025. </div>
  4026. <div class="a_add_body">
  4027. <div class="a_add_input" style="flex-direction: column;">
  4028. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  4029. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  4030. <div style="margin-right: 10px">
  4031. 选项{{ checkIndex + 1 }}
  4032. </div>
  4033. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  4034. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  4035. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  4036. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  4037. </div>
  4038. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  4039. </div>
  4040. <div class="a_add_body_div">
  4041. <el-button type="primary" size="small"
  4042. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  4043. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  4044. v-if="askJson.askJson[index1].askItem != 1">删除
  4045. </el-button>
  4046. </div>
  4047. </div>
  4048. </div>
  4049. <!-- <div class="a_add_body_div">
  4050. <el-button
  4051. style="margin: 10px 0px 0 0"
  4052. type="primary"
  4053. size="small"
  4054. @click="addcheckList(askJson.askJson[index1])"
  4055. >添加</el-button
  4056. >
  4057. <el-button
  4058. type="primary"
  4059. size="small"
  4060. style="margin: 10px 0 0 10px"
  4061. @click="deletecheckList(askJson.askJson[index1])"
  4062. v-if="askJson.askJson[index1].askItem != 1"
  4063. >删除
  4064. </el-button>
  4065. </div> -->
  4066. </div>
  4067. </div>
  4068. </div>
  4069. </div>
  4070. <span slot="footer" class="dialog-footer">
  4071. <el-button @click="closePan(4)">取 消</el-button>
  4072. <el-button type="primary" @click="addAsk">确 定</el-button>
  4073. </span>
  4074. </el-dialog>
  4075. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  4076. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  4077. <div style="height:100%">
  4078. <!-- <div class="a_add_title" style="
  4079. display: flex;
  4080. flex-direction: row;
  4081. align-items: center;
  4082. justify-content: center;
  4083. ">
  4084. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4085. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4086. </div> -->
  4087. <div class="a_addBox" style="height:100%">
  4088. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  4089. <!-- 请输入题目内容 -->
  4090. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4091. v-if="isPasteChoice">智能粘贴</button>
  4092. </div>
  4093. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4094. <div class="a_add_checkType">
  4095. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4096. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4097. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4098. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4099. </div>
  4100. <div class="a_add_head">
  4101. <div class="timuUpImg">
  4102. <div style="display: flex;align-items: center;">
  4103. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  4104. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4105. placeholder="请输入题目">
  4106. </el-input> -->
  4107. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4108. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  4109. @change="() => { $forceUpdate() }"></textarea>
  4110. </div>
  4111. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4112. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  4113. </div>
  4114. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4115. </div>
  4116. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  4117. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4118. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  4119. </div>
  4120. </div>
  4121. <div class="a_add_head_div">
  4122. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4123. </el-button>
  4124. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4125. </div>
  4126. </div>
  4127. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4128. testJson.testJson[index1].timuList.length
  4129. ">
  4130. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4131. @click.stop="previewImg(timg.src)">
  4132. <img :src="timg.src" alt="" />
  4133. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4134. <img src="../../../assets/icon/delete.png" alt="" />
  4135. </div>
  4136. </div>
  4137. </div>
  4138. <div class="a_add_body">
  4139. <div class="a_add_input a_add_input_choice">
  4140. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4141. @change="() => { $forceUpdate() }">
  4142. <div class="radioBox">
  4143. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4144. .testItem" :key="checkIndex" :label="checkIndex">
  4145. <div style="margin-right: 10px">
  4146. 选项{{ checkIndex + 1 }}
  4147. </div>
  4148. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  4149. testJson.testJson[index1].checkList[checkIndex]
  4150. .imgType &&
  4151. testJson.testJson[index1].checkList[checkIndex]
  4152. .imgType == 1
  4153. ">
  4154. <div class="inImg" @click.stop="
  4155. previewImg(
  4156. testJson.testJson[index1].checkList[checkIndex]
  4157. .src
  4158. )
  4159. ">
  4160. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4161. .src
  4162. " lazy />
  4163. <!-- <img :src="
  4164. testJson.testJson[index1].checkList[checkIndex]
  4165. .src
  4166. " alt="" /> -->
  4167. </div>
  4168. </div>
  4169. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4170. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  4171. @change="() => { $forceUpdate() }"></textarea>
  4172. <div class="xzUpImg" @click.stop="addImg($event)">
  4173. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4174. <input type="file" accept="image/*" style="display: none"
  4175. @change="beforeUploadTi($event, index1, checkIndex)" />
  4176. </div>
  4177. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4178. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  4179. </div>
  4180. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4181. </div>
  4182. <div class="a_add_body_div">
  4183. <el-button type="primary" size="small"
  4184. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  4185. <el-button type="primary" size="small"
  4186. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  4187. v-if="testJson.testJson[index1].testItem != 1">删除
  4188. </el-button>
  4189. </div>
  4190. </el-radio>
  4191. </div>
  4192. </el-radio-group>
  4193. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  4194. @change="() => { $forceUpdate() }">
  4195. <div class="radioBox">
  4196. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4197. .testItem" :key="checkIndex1" :label="checkIndex1">
  4198. <div style="margin-right: 10px">
  4199. 选项{{ checkIndex1 + 1 }}
  4200. </div>
  4201. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  4202. testJson.testJson[index1].checkList[checkIndex1]
  4203. .imgType &&
  4204. testJson.testJson[index1].checkList[checkIndex1]
  4205. .imgType == 1
  4206. ">
  4207. <div class="inImg" @click.stop="
  4208. previewImg(
  4209. testJson.testJson[index1].checkList[checkIndex1]
  4210. .src
  4211. )
  4212. ">
  4213. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4214. .src
  4215. " lazy />
  4216. <!-- <img :src="
  4217. testJson.testJson[index1].checkList[checkIndex1]
  4218. .src
  4219. " alt="" /> -->
  4220. </div>
  4221. </div>
  4222. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4223. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  4224. @change="() => { $forceUpdate() }"></textarea>
  4225. <div class="xzUpImg" @click.stop="addImg($event)">
  4226. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4227. <input type="file" accept="image/*" style="display: none"
  4228. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4229. </div>
  4230. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4231. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  4232. </div>
  4233. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4234. </div>
  4235. <div class="a_add_body_div">
  4236. <el-button type="primary" size="small"
  4237. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  4238. <el-button type="primary" size="small"
  4239. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  4240. v-if="testJson.testJson[index1].testItem != 1">删除
  4241. </el-button>
  4242. </div>
  4243. </el-checkbox>
  4244. </div>
  4245. </el-checkbox-group>
  4246. </div>
  4247. <!-- <div class="a_add_body_div">
  4248. <el-button
  4249. type="primary"
  4250. size="small"
  4251. @click="addTcheckList(testJson.testJson[index1])"
  4252. >添加</el-button
  4253. >
  4254. <el-button
  4255. type="primary"
  4256. size="small"
  4257. @click="deleteTcheckList(testJson.testJson[index1])"
  4258. v-if="testJson.testJson[index1].testItem != 1"
  4259. >删除
  4260. </el-button>
  4261. </div> -->
  4262. </div>
  4263. </div>
  4264. </div>
  4265. </div>
  4266. <span slot="footer" class="dialog-footer">
  4267. <el-button @click="closePan(45)">取 消</el-button>
  4268. <el-button type="primary" @click="addTest">确 定</el-button>
  4269. </span>
  4270. </el-dialog>
  4271. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4272. :before-close="handleClose" class="dialog_diy addToolsDia">
  4273. <div class="toolChoose" style="padding: 0 0 0 30px">
  4274. <div class="tools">
  4275. <div class="leftTools" style="
  4276. width: 95%;
  4277. padding: 0 0 15px 0;
  4278. margin: 15px 0;
  4279. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4280. <div style="
  4281. display: flex;
  4282. flex-direction: row;
  4283. align-items: baseline;
  4284. flex-wrap: nowrap;
  4285. justify-content: flex-start;
  4286. position: relative;
  4287. ">
  4288. <div class="chooseWho">
  4289. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4290. 互动类
  4291. </div>
  4292. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4293. 思维类
  4294. </div>
  4295. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4296. 评价类
  4297. </div>
  4298. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4299. 其他
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div style="min-height: 163px">
  4304. <div class="toolSort" v-if="chapToolsType == 0">
  4305. <div class="tool">
  4306. <div class="whiteBIcon" @click="chapAddTools(8)">
  4307. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4308. <div style="margin: 5px 0">素材库</div>
  4309. </div>
  4310. <div class="check" @click="chapAddTools(8)">
  4311. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4312. <div class="checkDiv" v-else>
  4313. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4314. </div>
  4315. </div>
  4316. </div>
  4317. </div>
  4318. <div class="toolSort" v-if="chapToolsType == 1">
  4319. <div class="tool">
  4320. <div class="whiteBIcon" @click="chapAddTools(7)">
  4321. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4322. <div style="margin: 5px 0">思维网格</div>
  4323. </div>
  4324. <div class="check" @click="chapAddTools(7)">
  4325. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4326. <div class="checkDiv" v-else>
  4327. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. <div class="tool">
  4332. <div class="whiteBIcon" @click="chapAddTools(1)">
  4333. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4334. <div style="margin: 5px 0">电子白板</div>
  4335. </div>
  4336. <div class="check" @click="chapAddTools(1)">
  4337. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4338. <div class="checkDiv" v-else>
  4339. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4340. </div>
  4341. </div>
  4342. </div>
  4343. <div class="tool">
  4344. <div class="whiteBIcon" @click="chapAddTools(2)">
  4345. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4346. <div style="margin: 5px 0">便签</div>
  4347. </div>
  4348. <div class="check" @click="chapAddTools(2)">
  4349. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4350. <div class="checkDiv" v-else>
  4351. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. <div class="tool">
  4356. <div class="whiteBIcon" @click="chapAddTools(6)">
  4357. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4358. <div style="margin: 5px 0">协同文档</div>
  4359. </div>
  4360. <div class="check" @click="chapAddTools(6)">
  4361. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4362. <div class="checkDiv" v-else>
  4363. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4364. </div>
  4365. </div>
  4366. </div>
  4367. <div class="tool">
  4368. <div class="whiteBIcon" @click="chapAddTools(3)">
  4369. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4370. <div style="margin: 5px 0">思维导图</div>
  4371. </div>
  4372. <div class="check" @click="chapAddTools(3)">
  4373. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4374. <div class="checkDiv" v-else>
  4375. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4376. </div>
  4377. </div>
  4378. </div>
  4379. <div class="tool">
  4380. <div class="whiteBIcon" @click="chapAddTools(31)">
  4381. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4382. <div style="margin: 5px 0">数学画板</div>
  4383. </div>
  4384. <div class="check" @click="chapAddTools(31)">
  4385. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4386. <div class="checkDiv" v-else>
  4387. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4388. </div>
  4389. </div>
  4390. </div>
  4391. </div>
  4392. <div class="toolSort" v-if="chapToolsType == 2">
  4393. <div class="tool">
  4394. <div class="whiteBIcon" @click="chapAddTools(5)">
  4395. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4396. <div style="margin: 5px 0">量规评分</div>
  4397. </div>
  4398. <div class="check" @click="chapAddTools(5)">
  4399. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4400. <div class="checkDiv" v-else>
  4401. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4402. </div>
  4403. </div>
  4404. </div>
  4405. <div class="tool">
  4406. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4407. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4408. <div style="margin: 5px 0">问卷调查</div>
  4409. </div>
  4410. <div class="check" @click="chapAddTools(4)">
  4411. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4412. <div class="checkDiv" v-else>
  4413. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4414. </div>
  4415. </div>
  4416. </div>
  4417. </div>
  4418. </div>
  4419. <div>
  4420. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4421. v-model="itemTools.toolDetail" />
  4422. </div>
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <span slot="footer" class="dialog-footer">
  4427. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4428. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4429. </span>
  4430. </el-dialog>
  4431. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4432. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4433. <div>
  4434. <div class="a_add_title" style="
  4435. display: flex;
  4436. flex-direction: column;
  4437. align-items: flex-start;
  4438. justify-content: center;
  4439. ">
  4440. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4441. <!-- <el-input
  4442. v-model="answerQ"
  4443. placeholder="请输入您要问的问题"
  4444. ></el-input> -->
  4445. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4446. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4447. </div>
  4448. </div>
  4449. <span slot="footer" class="dialog-footer">
  4450. <el-button @click="closePan(15)">取 消</el-button>
  4451. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4452. </span>
  4453. </el-dialog>
  4454. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4455. :before-close="handleClose" class="dialog_diy">
  4456. <div>
  4457. <div class="a_add_title" style="
  4458. display: flex;
  4459. flex-direction: column;
  4460. align-items: flex-start;
  4461. justify-content: center;
  4462. ">
  4463. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4464. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4465. </div>
  4466. </div>
  4467. <span slot="footer" class="dialog-footer">
  4468. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4469. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4470. </span>
  4471. </el-dialog>
  4472. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4473. :before-close="handleClose" class="dialog_diy">
  4474. <div>
  4475. <div class="fileCss" style="padding-top: 20px">
  4476. <div>
  4477. <button class="info_btn" @click="addImg($event)">
  4478. 选择本地文件
  4479. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4480. </button>
  4481. <div class="spanName">选择本地文件</div>
  4482. </div>
  4483. <div>
  4484. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4485. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4486. <img :src="cover[0].url" alt="" />
  4487. <div class="deletePic" @click="deleteSysPic">
  4488. <img src="../../../assets/icon/delete.png" alt="" />
  4489. </div>
  4490. </div>
  4491. <div class="spanName">选择系统文件</div>
  4492. </div>
  4493. <div>
  4494. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4495. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4496. <img :src="cover[0].url" alt="" />
  4497. <div class="deletePic" @click="deleteSysPic">
  4498. <img src="../../../assets/icon/delete.png" alt="" />
  4499. </div>
  4500. </div>
  4501. <div class="spanName">选择网络文件</div>
  4502. </div>
  4503. </div>
  4504. <!-- <div class="fileCss">
  4505. <div>选择本地文件</div>
  4506. <div>选择系统文件</div>
  4507. </div> -->
  4508. </div>
  4509. <span slot="footer" class="dialog-footer">
  4510. <el-button @click="choosePicVisible = false">取 消</el-button>
  4511. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4512. </span>
  4513. </el-dialog>
  4514. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4515. :before-close="handleClose" class="dialog_diy">
  4516. <div class="cru_selectBox" style="margin: 0">
  4517. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4518. 绘画
  4519. </div>
  4520. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4521. 科技
  4522. </div>
  4523. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4524. 人文
  4525. </div>
  4526. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4527. 艺术
  4528. </div>
  4529. </div>
  4530. <div class="sysPicBox">
  4531. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4532. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4533. </div>
  4534. </div>
  4535. </el-dialog>
  4536. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4537. :before-close="handleClose" class="dialog_diy">
  4538. <div>
  4539. <div class="people_top_right" style="display: flex;align-items: center;">
  4540. <div style="position: relative; width: 100%;">
  4541. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4542. @keyup.enter.native="resetImage()"></el-input>
  4543. <div class="search_img" @click="resetImage" style="right: 10px;">
  4544. <img src="../../../assets/icon/search.png" alt />
  4545. </div>
  4546. </div>
  4547. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4548. </div>
  4549. <div class="sysPicBox" v-loading="imageloading">
  4550. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4551. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4552. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4553. </div>
  4554. </div>
  4555. </div>
  4556. </el-dialog>
  4557. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4558. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4559. <div v-if="selectJson" style="height:100%">
  4560. <div class="select_box1" v-if="selectSteps == 1">
  4561. <div class="select_box1_img">
  4562. <div class="select_box1_title">
  4563. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4564. </div>
  4565. <div class="select_box1_add_img">
  4566. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4567. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4568. <img src="../../../assets/icon/addPoster.png" alt="" />
  4569. </div>
  4570. <div class="isSysPic" v-else>
  4571. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4572. <div class="deletePic" @click="deleteSelectPic">
  4573. <img src="../../../assets/icon/delete.png" alt="" />
  4574. </div>
  4575. </div>
  4576. </div>
  4577. </div>
  4578. <div class="select_box1_select">
  4579. <div class="select_box1_title">
  4580. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4581. </div>
  4582. <div class="select_box1_select_box">
  4583. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4584. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4585. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4586. <div class="select_box1_select_box_add">
  4587. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4588. 添加</el-button>
  4589. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4590. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4591. </div>
  4592. </div>
  4593. </div>
  4594. </div>
  4595. <div v-if="selectSteps == 2" style="height:100%">
  4596. <div class="select_box2">
  4597. <div class="select_box2_title">设置每道题目的正确选项</div>
  4598. <div class="select_box2_box">
  4599. <div class="select_box2_img">
  4600. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4601. </div>
  4602. <div class="select_box2_answer">
  4603. <div class="select_answer_title">根据题目选择对应答案</div>
  4604. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4605. <span>{{ checkIndex + 1 }}、</span>
  4606. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4607. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4608. </el-option>
  4609. </el-select>
  4610. </div>
  4611. </div>
  4612. </div>
  4613. </div>
  4614. </div>
  4615. </div>
  4616. <span slot="footer" class="dialog-footer">
  4617. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4618. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4619. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4620. </span>
  4621. </el-dialog>
  4622. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4623. :before-close="handleClose" class="dialog_diy">
  4624. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4625. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4626. <div class="pjCss" style="width: 100%">
  4627. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4628. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4629. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4630. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4631. <div class="remove" @click="deletRateList(eIndex)"></div>
  4632. <div style="width: 100%; display: flex">
  4633. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4634. <el-rate v-model="eItem.score" disabled></el-rate>
  4635. </div>
  4636. <div class="elist_inptu_text" style="align-items: flex-start">
  4637. <span style="min-width: 100px; text-align: right">描述:</span>
  4638. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div class="addToolFun" @click="addRateList()">
  4643. <div class="addToolImg">
  4644. <img src="../../../assets/icon/add.png" alt />
  4645. </div>
  4646. <div>添加</div>
  4647. </div>
  4648. </div>
  4649. </div>
  4650. <span slot="footer" class="dialog-footer">
  4651. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4652. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4653. </span>
  4654. </el-dialog>
  4655. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4656. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4657. <div style="height: 100%;">
  4658. <div class="sentenBox" style="height: 100%;">
  4659. <div class="addSen" @click="addSt">添加题目</div>
  4660. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4661. <div class="sentenTopBox">
  4662. <div class="sentenTop" :index="stIndex + 1">
  4663. <div>题目设置</div>
  4664. <div>
  4665. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4666. </div>
  4667. <div @click="addSen(stIndex)">添加</div>
  4668. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4669. </div>
  4670. </div>
  4671. <div class="cardList">
  4672. <div v-if="st.addSentence.length > 0" class="cardBox">
  4673. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4674. @click="setRightAnswer(s, stIndex, sIndex)">
  4675. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4676. <div>{{ s }}</div>
  4677. </el-tooltip>
  4678. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4679. <img src="../../../assets/icon/delete.png" alt="" />
  4680. </div>
  4681. </div>
  4682. </div>
  4683. <div class="card">
  4684. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4685. </div>
  4686. </div>
  4687. <div class="rightCardBox">
  4688. <div>正确顺序</div>
  4689. <div class="rightCardList">
  4690. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4691. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4692. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4693. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4694. <div>{{ r }}</div>
  4695. </el-tooltip>
  4696. </div>
  4697. <div>{{ rIndex + 1 }}</div>
  4698. </div>
  4699. </div>
  4700. <div class="card" v-if="st.rightAnswer.length == 0">
  4701. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4702. </div>
  4703. <div class="card" v-else>
  4704. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4705. </div>
  4706. </div>
  4707. </div>
  4708. </div>
  4709. </div>
  4710. </div>
  4711. <span slot="footer" class="dialog-footer">
  4712. <el-button @click="closePan(47)">取 消</el-button>
  4713. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4714. </span>
  4715. </el-dialog>
  4716. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4717. :before-close="handleClose" class="dialog_diy">
  4718. <el-form>
  4719. <!-- <el-form-item label="文本标题">
  4720. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4721. </el-form-item> -->
  4722. <div>表格内容</div>
  4723. <Table v-model="tableJson.text" @change="change"></Table>
  4724. </el-form>
  4725. <span slot="footer" class="dialog-footer">
  4726. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4727. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4728. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4729. </span>
  4730. </el-dialog>
  4731. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4732. :before-close="handleClose" class="dialog_diy">
  4733. <el-form>
  4734. <!-- <el-form-item label="文本标题">
  4735. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4736. </el-form-item> -->
  4737. <div>文档内容</div>
  4738. <editor-bar v-model="wordJson.text"></editor-bar>
  4739. </el-form>
  4740. <span slot="footer" class="dialog-footer">
  4741. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4742. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4743. </span>
  4744. </el-dialog>
  4745. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4746. :before-close="handleClose" class="dialog_diy">
  4747. <div style="
  4748. width: 100%;
  4749. display: flex;
  4750. flex-direction: row;
  4751. flex-wrap: nowrap;
  4752. align-items: center;
  4753. justify-content: center;
  4754. ">
  4755. <div>班级:</div>
  4756. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4757. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4758. </el-option>
  4759. </el-select>
  4760. </div>
  4761. <span slot="footer" class="dialog-footer">
  4762. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4763. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4764. </span>
  4765. </el-dialog>
  4766. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4767. :before-close="handleClose" class="dialog_diy">
  4768. <div style="
  4769. width: 100%;
  4770. display: flex;
  4771. flex-direction: row;
  4772. flex-wrap: nowrap;
  4773. align-items: center;
  4774. justify-content: center;
  4775. ">
  4776. <div>随机码:</div>
  4777. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4778. </div>
  4779. <span slot="footer" class="dialog-footer">
  4780. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4781. <el-button type="primary" @click="addInvite">确定</el-button>
  4782. </span>
  4783. </el-dialog>
  4784. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4785. :before-close="handleClose" class="dialog_diy">
  4786. <div>
  4787. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4788. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4789. </div>
  4790. <span slot="footer" class="dialog-footer">
  4791. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4792. <el-button type="primary" @click="addPreTime">确定</el-button>
  4793. </span>
  4794. </el-dialog>
  4795. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4796. class="dialog_diy">
  4797. <div>
  4798. <div style="
  4799. width: 100%;
  4800. display: flex;
  4801. flex-direction: row;
  4802. flex-wrap: nowrap;
  4803. align-content: center;
  4804. align-items: center;
  4805. justify-content: space-between;
  4806. ">
  4807. <div style="
  4808. display: flex;
  4809. flex-flow: row nowrap;
  4810. align-items: flex-start;
  4811. width: 100%;
  4812. flex-direction: column;
  4813. flex-wrap: nowrap;
  4814. position: relative;
  4815. ">
  4816. <div class="e_box">
  4817. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4818. <div class="e_card_picture">
  4819. <img src="../../../assets/e_picture.png" />
  4820. </div>
  4821. <div class="e_card_name">
  4822. <span>{{ item.title }}</span>
  4823. </div>
  4824. <div class="e_card_btn">
  4825. <span @click="checkEva(item.id, 2)">导入</span>
  4826. </div>
  4827. </div>
  4828. <div class="addEva" @click="openT">
  4829. <img src="../../../assets/icon/addEva.png" alt="" />
  4830. </div>
  4831. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4832. 暂无数据
  4833. </div>
  4834. </div>
  4835. </div>
  4836. </div>
  4837. </div>
  4838. <span slot="footer" class="dialog-footer">
  4839. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4840. </span>
  4841. </el-dialog>
  4842. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4843. :before-close="handleClose" class="dialog_diy">
  4844. <div class="groupBox">
  4845. <div v-if="groupJson.group" class="groupContent">
  4846. <div class="groupTitle">请设置小组数量及名称</div>
  4847. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4848. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4849. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4850. <div class="groupBtn">
  4851. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4852. 添加</el-button>
  4853. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4854. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4855. </div>
  4856. </div>
  4857. </div>
  4858. <div class="groupContent">
  4859. <div class="groupTitle">请设置每组人数</div>
  4860. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4861. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4862. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4863. @change="numberPan"></el-input>
  4864. </div>
  4865. </div>
  4866. <span slot="footer" class="dialog-footer">
  4867. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4868. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4869. </span>
  4870. </el-dialog>
  4871. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4872. :before-close="handleClose" class="dialog_diy">
  4873. <div style="
  4874. width: 100%;
  4875. display: flex;
  4876. flex-direction: row;
  4877. flex-wrap: nowrap;
  4878. align-items: center;
  4879. justify-content: center;
  4880. ">
  4881. <div style="min-width: fit-content;">文件名称:</div>
  4882. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4883. </div>
  4884. <span slot="footer" class="dialog-footer">
  4885. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4886. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4887. </span>
  4888. </el-dialog>
  4889. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4890. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  4891. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  4892. <span slot="footer" class="dialog-footer">
  4893. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4894. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4895. </span>
  4896. </el-dialog>
  4897. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4898. </div>
  4899. </template>
  4900. <script>
  4901. import "../../../common/aws-sdk-2.235.1.min.js";
  4902. import { tools as toolsData } from "../../../common/tools.js";
  4903. import $ from "jquery";
  4904. import EditorBar from "../../../components/tools/wangEnduit";
  4905. import Table from "../../../components/tools/table";
  4906. import Mind from "../../tools/jsmind2";
  4907. import Time from "../../tools/time.vue";
  4908. import Sunburst from "../../tools/sunburst";
  4909. import SeeBoard from "../../tools/seeBoard";
  4910. import weilaiData from "../components/weilai.js";
  4911. import sourceDialog from "../teacherSource/dialog.vue";
  4912. import interVideo from "../interVideo/index.vue";
  4913. import englishRight from "./commpont/englishRight.vue";
  4914. export default {
  4915. components: {
  4916. EditorBar,
  4917. Mind,
  4918. Time,
  4919. Sunburst,
  4920. SeeBoard,
  4921. Table,
  4922. sourceDialog,
  4923. interVideo,
  4924. englishRight,
  4925. },
  4926. data() {
  4927. return {
  4928. checkAll: false,
  4929. chooseType: 1,
  4930. checkedCities: [],
  4931. isIndeterminate: true,
  4932. isSysPic: false,
  4933. isSysPic2: false,
  4934. steps: 1,
  4935. nbOrder: 0,
  4936. courseId: "",
  4937. chapToolsType: 0,
  4938. chapTools: [
  4939. {
  4940. tools: [],
  4941. toolDetail: "",
  4942. },
  4943. ],
  4944. line: "",
  4945. lineTitle: "",
  4946. sysPic: [],
  4947. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4948. sentenceList2: [],
  4949. isPushTitleList: [],
  4950. lineCount: 0,
  4951. lineType: 0,
  4952. chapCount: 0,
  4953. courseName: "",
  4954. isTeacherSee: false,
  4955. courseText: "",
  4956. preTime: 0,
  4957. formLabelWidth: "100px",
  4958. choosePicVisible: false,
  4959. sysPicVisible: false,
  4960. uploadLoading1: false,
  4961. noneBtnImg: false,
  4962. updateBoolean2: false,
  4963. unitIndex: 0,
  4964. taskCount: 0,
  4965. dialogVisible: false,
  4966. dialogVisible1: false,
  4967. dialogVisible2: false,
  4968. dialogVisible3: false,
  4969. dialogVisible4: false,
  4970. dialogVisible5: false,
  4971. dialogVisible6: false,
  4972. dialogVisible7: false,
  4973. dialogVisible8: false,
  4974. dialogVisible9: false,
  4975. dialogVisibleClass: false,
  4976. dialogVisibleMember: false,
  4977. dialogVisibleMp3: false,
  4978. dialogVisibleSelect: false,
  4979. dialogVisibleSentence: false,
  4980. dialogVisibleRate: false,
  4981. dialogVisibleChoice: false,
  4982. dialogVisiblemb: false,
  4983. dialogVisibleInvite: false,
  4984. dialogVisibleSource: false,
  4985. dialogVisibleVideo: false,
  4986. dialogVisibleupdataVideoT: false,
  4987. englishDialogVisible: false,
  4988. isClickColor: 1,
  4989. toolIndexType: "",
  4990. publicTool: 0,
  4991. searchPeople: "",
  4992. searchTN: "",
  4993. userid: this.$route.query.userid,
  4994. oid: this.$route.query.oid,
  4995. org: this.$route.query.org,
  4996. role: this.$route.query.role,
  4997. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4998. dialogVisibleTable: false,
  4999. dialogVisibleWord: false,
  5000. tableJson: { text: "" },
  5001. wordJson: { text: "" },
  5002. dialogVisibleMoreUpload: false,
  5003. dialogVisiblePreTime: false,
  5004. uploadJson: [],
  5005. classJuri: [],
  5006. gradeList: [],
  5007. cover: [], //课程封面
  5008. myWord: [],
  5009. evaJuri: [],
  5010. evalua: "",
  5011. targetArray: [],
  5012. eTitle: "",
  5013. eJson: {},
  5014. fid: "", //一级
  5015. sid: "", //二级
  5016. tid: "", //二级
  5017. typeMode: 1,
  5018. eJSONNum: 0,
  5019. data: {
  5020. meta: {
  5021. name: "example",
  5022. author: "dd@163.com",
  5023. version: "0.2",
  5024. },
  5025. format: "node_array",
  5026. data: [{ id: "root", isroot: true, topic: "" }],
  5027. },
  5028. askJson: {
  5029. askCount: 1,
  5030. askTitle: "",
  5031. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5032. },
  5033. askJson2: {},
  5034. testJson: {},
  5035. testJson2: {},
  5036. selectJson: {},
  5037. selectJson2: {},
  5038. rateJson: [],
  5039. unitJson2: [],
  5040. unitJson: [
  5041. {
  5042. dyName: "", //单元标题
  5043. chapterInfo: [
  5044. {
  5045. isread: false,
  5046. chapterid: this.guid(),
  5047. title: "",
  5048. courseName: "",
  5049. taskJson: [
  5050. {
  5051. task: "",
  5052. taskDetail: "",
  5053. chapterData: [],
  5054. toolChoose: [
  5055. {
  5056. tool: [],
  5057. toolDetail: "",
  5058. toolType: 0,
  5059. askCount: 1,
  5060. askTitle: "",
  5061. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5062. },
  5063. ],
  5064. toolText: "",
  5065. isShowTools: false,
  5066. askCount: 1,
  5067. isFold: 0,
  5068. askTitle: "",
  5069. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5070. checkJson: [{ checkCount: [], checkPerent: [] }],
  5071. homeworkList: [],
  5072. },
  5073. ],
  5074. itemCount: 1,
  5075. fileList1: [],
  5076. video: [],
  5077. testData: [],
  5078. pData: [],
  5079. templateArray: [],
  5080. },
  5081. ],
  5082. },
  5083. ],
  5084. studentJuri: [],
  5085. teacherJuri: [],
  5086. checkboxList: [],
  5087. checkboxList2: [],
  5088. checkboxList3: [],
  5089. classSearch: "",
  5090. gradeId: "",
  5091. number: "",
  5092. tTitle: "",
  5093. tdetail: "",
  5094. templateC: {},
  5095. AttText: {},
  5096. AttTextType: 0,
  5097. AttTextIndex: 0,
  5098. cTemplate: "",
  5099. CourseType: [],
  5100. CourseType2: [],
  5101. CourseTypeJson: {},
  5102. courseTypeId: [],
  5103. courseTypeSon: [],
  5104. clearArray: [],
  5105. pTypeCheck: [],
  5106. pTypeCheckName: [],
  5107. loading: false,
  5108. toolType: 0,
  5109. inputShow: true,
  5110. inputShow2: true,
  5111. toolIndex: 0,
  5112. cidType: 0,
  5113. answerQ: "",
  5114. answerQ2: "",
  5115. grade: [],
  5116. grade2: [],
  5117. courseUserid: "",
  5118. timer: null,
  5119. timer2: null,
  5120. pasteTimer: null,
  5121. checkId: "",
  5122. isDelete: 1,
  5123. addindex: 0,
  5124. selectSteps: 1,
  5125. groupJson: {},
  5126. dialogVisibleGroup: false,
  5127. rightBoxHeight: 0,
  5128. ManAarray: [],
  5129. checkBoolean: false,
  5130. inviteCode: [],
  5131. inviteId: "",
  5132. icode: "",
  5133. easyArray: [2, 4],
  5134. sourceData: {},
  5135. updateSourcePan: false,
  5136. videoJson: {},
  5137. isBtnDisplay: false,
  5138. isPasteTask: false,
  5139. isPasteChoice: false,
  5140. sysPicVisible2: false,
  5141. imageloading: false,
  5142. searchImageValue: "",
  5143. ppage: 1,
  5144. imageList: [],
  5145. heightPx: '100%',
  5146. toolsData: toolsData,
  5147. oldIndex: 0,
  5148. oldData: null,
  5149. newIndex: "",
  5150. englishList:{},
  5151. };
  5152. },
  5153. directives: {
  5154. autoHeight: {
  5155. update(el, binding) {
  5156. const { value } = binding
  5157. if (value && typeof value === 'number') {
  5158. el.style.height = `${value}px`
  5159. } else {
  5160. el.style.height = 'auto'
  5161. }
  5162. },
  5163. componentUpdated(el) {
  5164. el.style.height = `${el.scrollHeight + 5}px`
  5165. },
  5166. },
  5167. },
  5168. computed: {
  5169. // rightBoxHeight: function () {
  5170. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5171. // },
  5172. offsetLetfPx: function () {
  5173. //addnum可以直接在模板语法里面用,相当于data内的值
  5174. return (
  5175. $(".cru_select")[this.unitIndex] &&
  5176. $(".cru_select")[this.unitIndex].offsetLeft
  5177. );
  5178. },
  5179. getMan2() {
  5180. return function (people) {
  5181. let _people = people;
  5182. let _people2 = "";
  5183. if (this.ManAarray.length) {
  5184. for (var i = 0; i < this.ManAarray.length; i++) {
  5185. if (this.ManAarray[i].userid == people) {
  5186. _people2 = this.ManAarray[i].name;
  5187. break;
  5188. }
  5189. }
  5190. }
  5191. if (people == this.courseUserid) {
  5192. return "";
  5193. }
  5194. return this.ManAarray.length ? _people2 : "";
  5195. };
  5196. },
  5197. isInvite() {
  5198. return function (cid) {
  5199. let array = [];
  5200. for (var i = 0; i < this.inviteCode.length; i++) {
  5201. array.push(this.inviteCode[i].cid);
  5202. }
  5203. return array.indexOf(cid) != -1;
  5204. };
  5205. },
  5206. getInviteCodeC() {
  5207. return function (cid) {
  5208. let array = [];
  5209. for (var i = 0; i < this.inviteCode.length; i++) {
  5210. array.push(this.inviteCode[i].cid);
  5211. }
  5212. return this.inviteCode[array.indexOf(cid)].ic;
  5213. };
  5214. },
  5215. getClassC() {
  5216. return function (c) {
  5217. let _c2 = "";
  5218. if (this.grade.length) {
  5219. for (var i = 0; i < this.grade.length; i++) {
  5220. if (this.grade[i].id == c) {
  5221. _c2 = this.grade[i].name;
  5222. break;
  5223. }
  5224. }
  5225. }
  5226. return this.grade.length ? _c2 : "";
  5227. };
  5228. },
  5229. getListClassC() {
  5230. return function (list) {
  5231. let _c2 = [];
  5232. if (this.grade.length) {
  5233. for (var j = 0; j < list.length; j++) {
  5234. let c = list[j]
  5235. for (var i = 0; i < this.grade.length; i++) {
  5236. if (this.grade[i].id == c) {
  5237. _c2.push(this.grade[i].name);
  5238. break;
  5239. }
  5240. }
  5241. }
  5242. }
  5243. return this.grade.length ? _c2.join('、') : "";
  5244. };
  5245. },
  5246. },
  5247. watch: {
  5248. unitIndex(newValue, oldValue) {
  5249. if (this.isDelete == 2) {
  5250. this.isDelete = 1;
  5251. return;
  5252. }
  5253. if (this.cid != "") {
  5254. let _unitIndex = oldValue;
  5255. if (
  5256. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5257. JSON.stringify(this.unitJson[_unitIndex])
  5258. ) {
  5259. this.$refs.rightboxR.scrollTop = 0;
  5260. return;
  5261. }
  5262. let cPan = 1;
  5263. for (
  5264. var j = 0;
  5265. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5266. j++
  5267. ) {
  5268. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5269. j
  5270. ].proVisible = false;
  5271. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5272. j
  5273. ].proVisible2 = false;
  5274. if (
  5275. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5276. .length > 1
  5277. ) {
  5278. for (
  5279. var z = 0;
  5280. z <
  5281. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5282. .length;
  5283. z++
  5284. ) {
  5285. if (
  5286. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5287. .toolChoose[z].tool.length
  5288. ) {
  5289. this.$message.error("请把工具添加完整");
  5290. cPan = 2;
  5291. break;
  5292. }
  5293. }
  5294. }
  5295. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5296. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5297. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5298. (ele) => {
  5299. return ele.value != "";
  5300. }
  5301. );
  5302. }
  5303. }
  5304. if (cPan == 2) {
  5305. this.unitIndex = oldValue;
  5306. return;
  5307. }
  5308. for (var i = 0; i < this.unitJson.length; i++) {
  5309. if (this.addindex != i) {
  5310. delete this.unitJson[i].isUpdate;
  5311. }
  5312. }
  5313. this.$refs.rightboxR.scrollTop = 0;
  5314. this.addindex = -1;
  5315. let params = [
  5316. {
  5317. cid: this.cid,
  5318. chapters: JSON.stringify(this.unitJson),
  5319. uid: this.userid,
  5320. unitIndex: _unitIndex,
  5321. },
  5322. ];
  5323. this.ajax
  5324. .post(this.$store.state.api + "updateWorkNew4", params)
  5325. .then((res) => {
  5326. // this.$message({
  5327. // message: "修改成功",
  5328. // type: "success",
  5329. // });
  5330. // this.courseId = this.cid;
  5331. })
  5332. .catch((err) => {
  5333. this.$message.error("网络不佳");
  5334. console.error(err);
  5335. });
  5336. }
  5337. },
  5338. steps(newValue) {
  5339. if (newValue == 4) {
  5340. this.goTo(
  5341. "/course?userid=" +
  5342. this.userid +
  5343. "&oid=" +
  5344. this.oid +
  5345. "&org=" +
  5346. this.org +
  5347. "&role=" +
  5348. this.role
  5349. );
  5350. }
  5351. },
  5352. },
  5353. methods: {
  5354. openAI() {
  5355. window.parent.postMessage({ tools: "64" }, "*");
  5356. },
  5357. setMan() {
  5358. // let teacherJuri = this.teacherJuri2;
  5359. this.ManAarray = [];
  5360. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5361. if (_user.indexOf(this.userid) == -1) {
  5362. _user.push(this.userid);
  5363. }
  5364. if (_user.indexOf(this.courseUserid) == -1) {
  5365. _user.push(this.courseUserid);
  5366. }
  5367. let params = {
  5368. uid: _user.join(","),
  5369. };
  5370. this.ajax
  5371. .get(this.$store.state.api + "getAllUserById", params)
  5372. .then((res) => {
  5373. let teacherJuri = res.data[0];
  5374. this.ManAarray = teacherJuri;
  5375. })
  5376. .catch((err) => {
  5377. console.error(err);
  5378. });
  5379. },
  5380. previewImg(url) {
  5381. this.$hevueImgPreview(url);
  5382. },
  5383. btnDisplay(bool) {
  5384. this.isBtnDisplay = bool
  5385. },
  5386. scrollChange() {
  5387. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5388. // document.querySelector('.course_left').scrollHeight
  5389. // document.querySelector('.stepsBottom2').scrollHeight
  5390. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5391. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5392. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5393. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5394. let top = $(".rightBox")[0].scrollTop - maxheight;
  5395. // if (top < client) {
  5396. // $('.stepsBottom2')[0].style.position = 'absolute'
  5397. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5398. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5399. // } else
  5400. if (top > 0) {
  5401. let top = $(".rightBox")[0].offsetTop;
  5402. $(".stepsBottom2")[0].style.position = "fixed";
  5403. $(".stepsBottom2")[0].style.top = top + "px";
  5404. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5405. // $('.stepsBottom2')[0].style.top = top + 'px'
  5406. } else {
  5407. $(".stepsBottom2")[0].style.position = "absolute";
  5408. $(".stepsBottom2")[0].style.top = "0px";
  5409. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5410. }
  5411. const clientHeight = $(".rightBox")[0].clientHeight;
  5412. const scrollTop = $(".rightBox")[0].scrollTop;
  5413. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5414. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5415. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5416. }
  5417. },
  5418. addHw(e) {
  5419. var el = e.currentTarget;
  5420. el.getElementsByTagName("input")[0].click();
  5421. },
  5422. change(val) {
  5423. if (this.dialogVisible1) {
  5424. this.tdetail = val
  5425. } else if (this.dialogVisible6) {
  5426. this.AttText.text = val
  5427. } else if (this.dialogVisible2) {
  5428. this.cTemplate = val
  5429. } else if (this.dialogVisibleTable) {
  5430. this.tableJson.text = val
  5431. }
  5432. this.$forceUpdate();
  5433. console.log(val);
  5434. },
  5435. change2(val) {
  5436. console.log(val);
  5437. this.$forceUpdate();
  5438. },
  5439. handleClose(done) {
  5440. done();
  5441. },
  5442. closePan(tool) {
  5443. if (tool == 15) {
  5444. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5445. this.dialogVisible8 = false
  5446. } else {
  5447. this.closeConfirm(tool);
  5448. }
  5449. } else if (tool == 4) {
  5450. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5451. this.dialogVisible5 = false
  5452. } else {
  5453. this.closeConfirm(tool);
  5454. }
  5455. } else if (tool == 45) {
  5456. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5457. this.dialogVisibleChoice = false
  5458. } else {
  5459. this.closeConfirm(tool);
  5460. }
  5461. } else if (tool == 41) {
  5462. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5463. this.dialogVisibleSelect = false
  5464. } else {
  5465. this.closeConfirm(tool);
  5466. }
  5467. } else if (tool == 47) {
  5468. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5469. this.dialogVisibleSentence = false
  5470. } else {
  5471. this.closeConfirm(tool);
  5472. }
  5473. }else if (tool == 69){
  5474. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5475. this.englishDialogVisible = false
  5476. } else {
  5477. this.closeConfirm(tool);
  5478. }
  5479. }
  5480. },
  5481. closeConfirm(tool) {
  5482. this
  5483. .$confirm("是否保存已编辑内容?", "提示", {
  5484. confirmButtonText: "保存",
  5485. cancelButtonText: "不保存",
  5486. type: "warning",
  5487. })
  5488. .then(() => {
  5489. if (tool == 15) {
  5490. this.addAnswer();
  5491. } else if (tool == 4) {
  5492. this.addAsk();
  5493. } else if (tool == 45) {
  5494. this.addTest();
  5495. } else if (tool == 41) {
  5496. this.addSelectAnswer();
  5497. } else if (tool == 47) {
  5498. this.addSentenceTool();
  5499. }else if(tool == 69){
  5500. this.addEnglish();
  5501. }
  5502. })
  5503. .catch(() => {
  5504. if (tool == 15) {
  5505. this.dialogVisible8 = false;
  5506. } else if (tool == 4) {
  5507. this.dialogVisible5 = false;
  5508. } else if (tool == 45) {
  5509. this.dialogVisibleChoice = false;
  5510. } else if (tool == 41) {
  5511. this.dialogVisibleSelect = false;
  5512. } else if (tool == 47) {
  5513. this.dialogVisibleSentence = false;
  5514. } else if (tool == 69) {
  5515. this.englishDialogVisible = false;
  5516. }
  5517. });
  5518. },
  5519. addEnglish(){
  5520. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5521. this.$message.error("请将内容填写完整!");
  5522. return;
  5523. }
  5524. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5525. this.taskCount
  5526. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5527. this.englishList = {};
  5528. this.englishDialogVisible = false;
  5529. if (
  5530. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5531. .toolChoose[this.toolIndex].tool != 69
  5532. ) {
  5533. this.addTools(69, this.taskCount, this.toolIndex);
  5534. }
  5535. },
  5536. setEnglishList(engList){
  5537. this.englishList = engList;
  5538. },
  5539. imgChange2(i, j) {
  5540. var _tmp = this.testJson.testJson[i].checkList[j];
  5541. this.noneBtnImg = _tmp.length >= 1;
  5542. },
  5543. imgChange3(i) {
  5544. var _tmp = this.testJson.testJson[i];
  5545. this.noneBtnImg = _tmp.length >= 1;
  5546. },
  5547. imgChange1(file, fileList, type, itemTaskIndex) {
  5548. if (type == 1) {
  5549. var _tmp = this.cover;
  5550. } else if (
  5551. type == 2 ||
  5552. type == 3 ||
  5553. type == 6 ||
  5554. type == 7 ||
  5555. type == 8
  5556. ) {
  5557. var _tmp =
  5558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5559. .chapterData;
  5560. } else if (type == 4) {
  5561. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5562. } else {
  5563. var _tmp =
  5564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5565. .homeworkList;
  5566. }
  5567. this.noneBtnImg = _tmp.length >= 1;
  5568. },
  5569. goTo(path) {
  5570. this.$router.push(path);
  5571. },
  5572. guid() {
  5573. var _num,
  5574. i,
  5575. _guid = "";
  5576. for (i = 0; i < 32; i++) {
  5577. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5578. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5579. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5580. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5581. _guid += "-";
  5582. }
  5583. }
  5584. return _guid;
  5585. },
  5586. lastSteps() {
  5587. this
  5588. .$confirm("是否保存已编辑内容?", "提示", {
  5589. confirmButtonText: "保存",
  5590. cancelButtonText: "不保存",
  5591. distinguishCancelAndClose: true,
  5592. type: "warning",
  5593. })
  5594. .then(() => {
  5595. if (this.cid == "" || this.cid == undefined) {
  5596. if (this.courseName == "") {
  5597. this.$message.error("请补充填写课程名称");
  5598. return;
  5599. } else {
  5600. this.addWork();
  5601. }
  5602. } else {
  5603. if (this.courseName == "") {
  5604. this.$message.error("请补充填写课程名称");
  5605. return;
  5606. } else {
  5607. if (this.userid != this.courseUserid && this.role != "1") {
  5608. this.updateWork2();
  5609. } else {
  5610. this.updateWork();
  5611. }
  5612. }
  5613. }
  5614. })
  5615. .catch((v) => {
  5616. console.log(v)
  5617. if(v == "cancel"){
  5618. this.goTo(
  5619. "/course?userid=" +
  5620. this.userid +
  5621. "&oid=" +
  5622. this.oid +
  5623. "&org=" +
  5624. this.org +
  5625. "&role=" +
  5626. this.role
  5627. );
  5628. }
  5629. });
  5630. },
  5631. nextSteps() {
  5632. if (this.cid == "" || this.cid == undefined) {
  5633. if (this.courseName == "") {
  5634. this.$message.error("请补充填写课程名称");
  5635. return;
  5636. } else {
  5637. this.addWork();
  5638. }
  5639. } else {
  5640. if (this.courseName == "") {
  5641. this.$message.error("请补充填写课程名称");
  5642. return;
  5643. } else {
  5644. if (this.userid != this.courseUserid && this.role != "1") {
  5645. this.updateWork2();
  5646. } else {
  5647. this.updateWork();
  5648. }
  5649. }
  5650. }
  5651. this.$refs.stepBox.scrollTop = 0;
  5652. },
  5653. unitSet(i) {
  5654. this.unitIndex = i;
  5655. // this.$refs.rightboxR.scrollTop = 0;
  5656. },
  5657. time() {
  5658. if (!this.now) {
  5659. this.now = new Date().getTime();
  5660. return true;
  5661. } else {
  5662. let time = new Date().getTime();
  5663. if (time - this.now > 3000) {
  5664. this.now = time;
  5665. return true;
  5666. } else {
  5667. return false;
  5668. }
  5669. }
  5670. },
  5671. deleteUnit(i) {
  5672. var _this = this;
  5673. if (_this.time()) {
  5674. _this
  5675. .$confirm("确定删除此单元吗?", "提示", {
  5676. confirmButtonText: "确定",
  5677. cancelButtonText: "取消",
  5678. type: "warning",
  5679. })
  5680. .then(() => {
  5681. _this.isDelete = 2;
  5682. // _this.unitIndex = _this.unitIndex - 1;
  5683. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5684. // _this.$message.success("删除成功");
  5685. })
  5686. .catch(() => {
  5687. return;
  5688. });
  5689. }
  5690. },
  5691. deleteWork(chapid) {
  5692. let params = [
  5693. {
  5694. cid: this.cid,
  5695. chapters: JSON.stringify(this.unitJson),
  5696. uid: this.userid,
  5697. chapid: chapid,
  5698. },
  5699. ];
  5700. this.ajax
  5701. .post(this.$store.state.api + "deleteWork", params)
  5702. .then((res) => {
  5703. this.$message({
  5704. message: "删除成功",
  5705. type: "success",
  5706. });
  5707. this.unitJson.splice(this.unitIndex, 1);
  5708. this.unitIndex = this.unitIndex - 1;
  5709. })
  5710. .catch((err) => {
  5711. this.$message.error("网络不佳");
  5712. console.error(err);
  5713. });
  5714. },
  5715. deleteTool(itemTaskIndex, i) {
  5716. var _this = this;
  5717. if (_this.time()) {
  5718. _this
  5719. .$confirm("确定删除此工具吗?", "提示", {
  5720. confirmButtonText: "确定",
  5721. cancelButtonText: "取消",
  5722. type: "warning",
  5723. })
  5724. .then(() => {
  5725. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5726. itemTaskIndex
  5727. ].toolChoose.splice(i, 1);
  5728. _this.$message.success("删除成功");
  5729. })
  5730. .catch(() => {
  5731. return;
  5732. });
  5733. }
  5734. },
  5735. deleteSentence(i) {
  5736. var _this = this;
  5737. _this
  5738. .$confirm("确定删除此题目吗?", "提示", {
  5739. confirmButtonText: "确定",
  5740. cancelButtonText: "取消",
  5741. type: "warning",
  5742. })
  5743. .then(() => {
  5744. _this.sentenceList.splice(i, 1);
  5745. _this.$message.success("删除成功");
  5746. })
  5747. .catch(() => {
  5748. return;
  5749. });
  5750. },
  5751. deleteS(s, i, j) {
  5752. this.sentenceList[i].addSentence.splice(j, 1);
  5753. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5754. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5755. this.sentenceList[i].rightAnswer.splice(a, 1);
  5756. }
  5757. },
  5758. openT() {
  5759. window.parent.postMessage({ tools: "25" }, "*");
  5760. },
  5761. deleteTask(i) {
  5762. var _this = this;
  5763. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5764. _this
  5765. .$confirm("确定删除此任务吗?", "提示", {
  5766. confirmButtonText: "确定",
  5767. cancelButtonText: "取消",
  5768. type: "warning",
  5769. })
  5770. .then(() => {
  5771. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5772. _this.$message.success("删除成功");
  5773. // this.$nextTick(() => {
  5774. // $('.stepsBottom2')[0].style.transition = 'unset'
  5775. // setTimeout(() => {
  5776. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5777. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5778. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5779. // if (top > client) {
  5780. // $('.stepsBottom2')[0].style.top = client + 'px'
  5781. // }
  5782. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5783. // this.$forceUpdate()
  5784. // }, 500)
  5785. // })
  5786. })
  5787. .catch(() => {
  5788. return;
  5789. });
  5790. },
  5791. handlePictureCardPreview(file) {
  5792. this.dialogImageUrl = file.url;
  5793. },
  5794. clean(i, c) {
  5795. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5796. },
  5797. handle_remove1(file, fileList, type) {
  5798. var _tmp = this.cover;
  5799. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5800. // if (_tmp[i].uid == file.uid) {
  5801. // _tmp.splice(i, 1);
  5802. // break;
  5803. // }
  5804. // this.cover = _tmp;
  5805. // }
  5806. this.cover = [];
  5807. this.noneBtnImg = this.cover.length >= 1;
  5808. this.isSysPic = false;
  5809. this.isSysPic2 = false;
  5810. this.$forceUpdate();
  5811. },
  5812. addImg(e) {
  5813. var el = e.currentTarget;
  5814. el.getElementsByTagName("input")[0].click();
  5815. e.target.value = "";
  5816. },
  5817. addChaptersTools(i) {
  5818. this.chapTools = [
  5819. {
  5820. tools: [],
  5821. toolDetail: "",
  5822. },
  5823. ];
  5824. this.chapCount = i;
  5825. this.dialogVisible4 = true;
  5826. },
  5827. isNoFinsh() {
  5828. this.$message.warning("功能正在开发中");
  5829. },
  5830. addAttText(i) {
  5831. this.AttText = {
  5832. title: "",
  5833. text: "",
  5834. };
  5835. this.taskCount = i;
  5836. this.AttTextType = 0;
  5837. this.$forceUpdate();
  5838. this.dialogVisible6 = true;
  5839. setTimeout(() => {
  5840. this.$refs['fuInput'].focus();
  5841. }, 100);
  5842. },
  5843. openLine(i) {
  5844. this.line = "";
  5845. this.lineCount = i;
  5846. this.lineType = 0;
  5847. this.$forceUpdate();
  5848. this.dialogVisible7 = true;
  5849. },
  5850. pasteLine(i) {
  5851. navigator.clipboard
  5852. .readText()
  5853. .then((v) => {
  5854. console.log("获取剪贴板成功:", v);
  5855. const html = v;
  5856. const regex = /src="(.*?)"/g;
  5857. const match = regex.exec(html);
  5858. if (match && match[1]) {
  5859. console.log(match[1]);
  5860. this.$message.success("粘贴成功");
  5861. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5862. i
  5863. ].chapterData.push({
  5864. name: "链接",
  5865. title: "嵌入代码",
  5866. url: match[1],
  5867. type: 8,
  5868. });
  5869. } else {
  5870. // console.log("未找到包含 src 属性的 iframe");
  5871. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5872. }
  5873. })
  5874. .catch((v) => {
  5875. console.log("获取剪贴板失败: ", v);
  5876. });
  5877. },
  5878. openSource(i) {
  5879. this.lineCount = i;
  5880. this.sourceData = {};
  5881. this.dialogVisibleSource = true;
  5882. this.updateSourcePan = false;
  5883. },
  5884. addSource() {
  5885. if (!Object.keys(this.sourceData).length) {
  5886. this.$message.error("请选择要上传的资源");
  5887. return;
  5888. }
  5889. let keys = Object.keys(this.sourceData);
  5890. for (var i = 0; i < keys.length; i++) {
  5891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5892. this.lineCount
  5893. ].chapterData.push({
  5894. name: "链接",
  5895. title: this.sourceData[keys[i]].name,
  5896. url: this.sourceData[keys[i]].url,
  5897. type: 14,
  5898. id: keys[i]
  5899. });
  5900. }
  5901. this.$forceUpdate();
  5902. this.dialogVisibleSource = false;
  5903. },
  5904. updateSource() {
  5905. if (!Object.keys(this.sourceData).length) {
  5906. this.$message.error("请选择要上传的资源");
  5907. return;
  5908. }
  5909. let keys = Object.keys(this.sourceData);
  5910. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5911. this.taskCount
  5912. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5914. this.taskCount
  5915. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5916. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5917. this.taskCount
  5918. ].chapterData[this.lineCount].id = keys[0];
  5919. this.updateSourcePan = false;
  5920. this.$forceUpdate();
  5921. this.dialogVisibleSource = false;
  5922. },
  5923. deleteM(i, j) {
  5924. this.testJson.testJson[i].timuList.splice(j, 1);
  5925. },
  5926. beforeUploadTiMu(event, i) {
  5927. const loading = this.openLoading();
  5928. var file = event.target.files[0];
  5929. var credentials = {
  5930. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5931. secretAccessKey: "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",
  5932. }; //秘钥形式的登录上传
  5933. window.AWS.config.update(credentials);
  5934. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5935. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5936. var _this = this;
  5937. if (file) {
  5938. var params = {
  5939. Key:
  5940. file.name.split(".")[0] +
  5941. new Date().getTime() +
  5942. "." +
  5943. file.name.split(".")[file.name.split(".").length - 1],
  5944. ContentType: file.type,
  5945. Body: file,
  5946. "Access-Control-Allow-Credentials": "*",
  5947. ACL: "public-read",
  5948. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5949. var options = {
  5950. partSize: 2048 * 1024 * 1024,
  5951. queueSize: 2,
  5952. leavePartsOnError: true,
  5953. };
  5954. bucket
  5955. .upload(params, options)
  5956. .on("httpUploadProgress", function (evt) {
  5957. //这里可以写进度条
  5958. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5959. })
  5960. .send(function (err, data) {
  5961. loading.close();
  5962. if (err) {
  5963. _this.$message.error("上传失败");
  5964. } else {
  5965. if (_this.testJson.testJson[i].timuList) {
  5966. _this.testJson.testJson[i].timuList.push({
  5967. src: data.Location,
  5968. });
  5969. } else {
  5970. _this.testJson.testJson[i].timuList = [];
  5971. _this.testJson.testJson[i].timuList.push({
  5972. src: data.Location,
  5973. });
  5974. }
  5975. _this.imgChange3(i);
  5976. _this.$forceUpdate();
  5977. }
  5978. });
  5979. }
  5980. },
  5981. beforeUploadTi(event, i, j) {
  5982. const loading = this.openLoading();
  5983. var file = event.target.files[0];
  5984. var credentials = {
  5985. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5986. secretAccessKey: "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",
  5987. }; //秘钥形式的登录上传
  5988. window.AWS.config.update(credentials);
  5989. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5990. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5991. var _this = this;
  5992. if (file) {
  5993. var params = {
  5994. Key:
  5995. file.name.split(".")[0] +
  5996. new Date().getTime() +
  5997. "." +
  5998. file.name.split(".")[file.name.split(".").length - 1],
  5999. ContentType: file.type,
  6000. Body: file,
  6001. "Access-Control-Allow-Credentials": "*",
  6002. ACL: "public-read",
  6003. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6004. var options = {
  6005. partSize: 2048 * 1024 * 1024,
  6006. queueSize: 2,
  6007. leavePartsOnError: true,
  6008. };
  6009. bucket
  6010. .upload(params, options)
  6011. .on("httpUploadProgress", function (evt) {
  6012. //这里可以写进度条
  6013. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6014. })
  6015. .send(function (err, data) {
  6016. loading.close();
  6017. if (err) {
  6018. _this.$message.error("上传失败");
  6019. } else {
  6020. _this.testJson.testJson[i].checkList[j] = {};
  6021. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6022. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6023. _this.imgChange2(i, j);
  6024. _this.$forceUpdate();
  6025. }
  6026. });
  6027. }
  6028. },
  6029. beforeUpload1(event, type) {
  6030. // const loading = this.openLoading();
  6031. var file = event.target.files[0];
  6032. var credentials = {
  6033. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6034. secretAccessKey: "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",
  6035. }; //秘钥形式的登录上传
  6036. window.AWS.config.update(credentials);
  6037. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6038. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6039. var _this = this;
  6040. if (file) {
  6041. var params = {
  6042. Key:
  6043. file.name.split(".")[0] +
  6044. new Date().getTime() +
  6045. "." +
  6046. file.name.split(".")[file.name.split(".").length - 1],
  6047. ContentType: file.type,
  6048. Body: file,
  6049. "Access-Control-Allow-Credentials": "*",
  6050. ACL: "public-read",
  6051. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6052. var options = {
  6053. partSize: 2048 * 1024 * 1024,
  6054. queueSize: 2,
  6055. leavePartsOnError: true,
  6056. };
  6057. bucket
  6058. .upload(params, options)
  6059. .on("httpUploadProgress", function (evt) {
  6060. //这里可以写进度条
  6061. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6062. })
  6063. .send(function (err, data) {
  6064. // loading.close();
  6065. if (err) {
  6066. // var a = _this.$refs.upload1.uploadFiles;
  6067. // a.splice(a.length - 1, a.length);
  6068. _this.$message.error("上传失败");
  6069. } else {
  6070. _this.cover.push({
  6071. name: file.name,
  6072. url: data.Location,
  6073. uid: file.uid,
  6074. });
  6075. _this.imgChange1(null, null, 1, null);
  6076. _this.choosePicVisible = false;
  6077. console.log(data.Location);
  6078. }
  6079. });
  6080. }
  6081. },
  6082. beforeUploadSelect(event, type) {
  6083. // const loading = this.openLoading();
  6084. var file = event.target.files[0];
  6085. var credentials = {
  6086. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6087. secretAccessKey: "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",
  6088. }; //秘钥形式的登录上传
  6089. window.AWS.config.update(credentials);
  6090. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6091. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6092. var _this = this;
  6093. if (file) {
  6094. var params = {
  6095. Key:
  6096. file.name.split(".")[0] +
  6097. new Date().getTime() +
  6098. "." +
  6099. file.name.split(".")[file.name.split(".").length - 1],
  6100. ContentType: file.type,
  6101. Body: file,
  6102. "Access-Control-Allow-Credentials": "*",
  6103. ACL: "public-read",
  6104. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6105. var options = {
  6106. partSize: 2048 * 1024 * 1024,
  6107. queueSize: 2,
  6108. leavePartsOnError: true,
  6109. };
  6110. bucket
  6111. .upload(params, options)
  6112. .on("httpUploadProgress", function (evt) {
  6113. //这里可以写进度条
  6114. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6115. })
  6116. .send(function (err, data) {
  6117. // loading.close();
  6118. if (err) {
  6119. _this.$message.error("上传失败");
  6120. } else {
  6121. _this.selectJson.url = data.Location;
  6122. console.log(data.Location);
  6123. }
  6124. });
  6125. }
  6126. },
  6127. chooseSysPic(p) {
  6128. this.cover = []
  6129. setTimeout(() => {
  6130. this.cover[0] = {
  6131. name: "系统图片.png",
  6132. url: p,
  6133. };
  6134. this.imgChange1(null, null, 1, null);
  6135. this.$forceUpdate();
  6136. }, 0);
  6137. this.isSysPic = true;
  6138. this.isSysPic2 = false;
  6139. this.sysPicVisible = false;
  6140. this.$forceUpdate();
  6141. },
  6142. chooseSysPic2(p) {
  6143. this.cover = []
  6144. setTimeout(() => {
  6145. this.cover[0] = {
  6146. name: "网络图片.png",
  6147. url: p,
  6148. };
  6149. this.imgChange1(null, null, 1, null);
  6150. this.$forceUpdate();
  6151. }, 0);
  6152. this.isSysPic2 = true;
  6153. this.isSysPic = false;
  6154. this.sysPicVisible2 = false;
  6155. this.$forceUpdate();
  6156. },
  6157. beforeUpload(data) {
  6158. this.$refs.upload1.uploadFiles;
  6159. this.uploadLoading1 = true;
  6160. var file = data.file;
  6161. var credentials = {
  6162. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6163. secretAccessKey: "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",
  6164. }; //秘钥形式的登录上传
  6165. window.AWS.config.update(credentials);
  6166. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6167. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6168. var _this = this;
  6169. if (file) {
  6170. var params = {
  6171. Key:
  6172. file.name.split(".")[0] +
  6173. new Date().getTime() +
  6174. "." +
  6175. file.name.split(".")[file.name.split(".").length - 1],
  6176. ContentType: file.type,
  6177. Body: file,
  6178. "Access-Control-Allow-Credentials": "*",
  6179. ACL: "public-read",
  6180. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6181. var options = {
  6182. partSize: 2048 * 1024 * 1024,
  6183. queueSize: 2,
  6184. leavePartsOnError: true,
  6185. };
  6186. bucket
  6187. .upload(params, options)
  6188. .on("httpUploadProgress", function (evt) {
  6189. //这里可以写进度条
  6190. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6191. })
  6192. .send(function (err, data) {
  6193. _this.uploadLoading1 = false;
  6194. if (err) {
  6195. // var a = _this.$refs.upload1.uploadFiles;
  6196. // a.splice(a.length - 1, a.length);
  6197. _this.$message.error("上传失败");
  6198. } else {
  6199. //上传成功处理
  6200. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6201. name: file.name,
  6202. url: data.Location,
  6203. uid: file.uid,
  6204. });
  6205. _this.imgChange();
  6206. console.log(data.Location);
  6207. }
  6208. });
  6209. }
  6210. },
  6211. onExceed() {
  6212. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6213. },
  6214. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6215. // const loading = this.openLoading();
  6216. var file = event.target.files[0];
  6217. var credentials = {
  6218. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6219. secretAccessKey: "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",
  6220. }; //秘钥形式的登录上传
  6221. window.AWS.config.update(credentials);
  6222. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6223. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6224. var _this = this;
  6225. if (type == 3) {
  6226. var b = [
  6227. "DOC",
  6228. "DOCX",
  6229. "DOCM",
  6230. "DOTM",
  6231. "DOTX",
  6232. "PPTX",
  6233. "PPSX",
  6234. "PPT",
  6235. "PPS",
  6236. "PPTM",
  6237. "POTM",
  6238. "PPAM",
  6239. "POTX",
  6240. "PPSM",
  6241. ];
  6242. if (
  6243. b.indexOf(
  6244. file.name
  6245. .split(".")
  6246. [file.name.split(".").length - 1].toLocaleUpperCase()
  6247. ) != -1
  6248. ) {
  6249. if (file.size / 1024 / 1024 > 80) {
  6250. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6251. this.inputShow = true;
  6252. // var a = _this.$refs.upload1.uploadFiles;
  6253. // a.splice(a.length - 1, a.length);
  6254. // loading.close();
  6255. return;
  6256. }
  6257. } else if (
  6258. file.name
  6259. .split(".")
  6260. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6261. ) {
  6262. if (file.size / 1024 / 1024 > 80) {
  6263. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6264. this.inputShow = true;
  6265. // var a = _this.$refs.upload1.uploadFiles;
  6266. // a.splice(a.length - 1, a.length);
  6267. // loading.close();
  6268. return;
  6269. }
  6270. }
  6271. }
  6272. this.inputShow = false;
  6273. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6274. itemTaskIndex
  6275. ].progress = 0;
  6276. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6277. itemTaskIndex
  6278. ].proVisible = true;
  6279. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6280. itemTaskIndex
  6281. ].isFinishSize = 0;
  6282. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6283. itemTaskIndex
  6284. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6285. _this.$forceUpdate();
  6286. if (file) {
  6287. var params = {
  6288. Key:
  6289. file.name.split(".")[0] +
  6290. new Date().getTime() +
  6291. "." +
  6292. file.name.split(".")[file.name.split(".").length - 1],
  6293. ContentType: file.type,
  6294. Body: file,
  6295. "Access-Control-Allow-Credentials": "*",
  6296. ACL: "public-read",
  6297. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6298. var options = {
  6299. partSize: 2048 * 1024 * 1024,
  6300. queueSize: 2,
  6301. leavePartsOnError: true,
  6302. };
  6303. bucket
  6304. .upload(params, options)
  6305. .on("httpUploadProgress", function (evt) {
  6306. //这里可以写进度条
  6307. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6308. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6309. itemTaskIndex
  6310. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6311. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6312. itemTaskIndex
  6313. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6314. _this.$forceUpdate();
  6315. })
  6316. .send(function (err, data) {
  6317. // loading.close();
  6318. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6319. itemTaskIndex
  6320. ].progress = 100;
  6321. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6322. itemTaskIndex
  6323. ].isFinishSize =
  6324. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6325. itemTaskIndex
  6326. ].isAllSize;
  6327. _this.$forceUpdate();
  6328. setTimeout(() => {
  6329. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6330. itemTaskIndex
  6331. ].proVisible = false;
  6332. _this.$forceUpdate();
  6333. }, 1000);
  6334. _this.inputShow = true;
  6335. if (err) {
  6336. // var a = _this.$refs.upload1.uploadFiles;
  6337. // a.splice(a.length - 1, a.length);
  6338. _this.$message.error("上传失败");
  6339. } else {
  6340. if (type == 13) {
  6341. let _type = 2;
  6342. var imgA = [
  6343. "png",
  6344. "jpg",
  6345. "jpeg",
  6346. "bmp",
  6347. "gif",
  6348. "webp",
  6349. "psd",
  6350. "svg",
  6351. "tiff",
  6352. ];
  6353. var fileA = [
  6354. "PDF",
  6355. "DOC",
  6356. "DOCX",
  6357. "DOCM",
  6358. "DOTM",
  6359. "DOTX",
  6360. "PPTX",
  6361. "PPSX",
  6362. "PPT",
  6363. "PPS",
  6364. "PPTM",
  6365. "POTM",
  6366. "PPAM",
  6367. "POTX",
  6368. "PPSM",
  6369. "XLSX",
  6370. "XLS",
  6371. ];
  6372. var videoA = [
  6373. "AVI",
  6374. "NAVI",
  6375. "MPEG",
  6376. "ASF",
  6377. "MOV",
  6378. "WMV",
  6379. "3GP",
  6380. "RM",
  6381. "RMVB",
  6382. "FLV",
  6383. "F4V",
  6384. "H.264",
  6385. "H.265",
  6386. "REAL VIDEO",
  6387. "MKV",
  6388. "WebM",
  6389. "HDDVD",
  6390. "MP4",
  6391. "MPG",
  6392. "M4V",
  6393. "MGV",
  6394. "OGV",
  6395. "QTM",
  6396. "STR",
  6397. "AMC",
  6398. "DVX",
  6399. "EVO",
  6400. "DAT",
  6401. "OGG",
  6402. "OGM",
  6403. ];
  6404. if (
  6405. fileA.indexOf(
  6406. data.Location.split(".")[
  6407. data.Location.split(".").length - 1
  6408. ].toLocaleUpperCase()
  6409. ) != -1
  6410. ) {
  6411. _type = 3;
  6412. } else if (
  6413. videoA.indexOf(
  6414. data.Location.split(".")[
  6415. data.Location.split(".").length - 1
  6416. ].toLocaleUpperCase()
  6417. ) != -1
  6418. ) {
  6419. _type = 2;
  6420. } else if (
  6421. imgA.indexOf(
  6422. data.Location.split(".")[
  6423. data.Location.split(".").length - 1
  6424. ].toLocaleLowerCase()
  6425. ) != -1
  6426. ) {
  6427. _type = 13;
  6428. } else {
  6429. _type = 12;
  6430. }
  6431. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6432. itemTaskIndex
  6433. ].chapterData.push({
  6434. name: file.name,
  6435. url: data.Location,
  6436. uid: file.uid,
  6437. type: _type,
  6438. });
  6439. _this.imgChange1(null, null, _type, itemTaskIndex);
  6440. } else if (type == 2 || type == 3 || type == 12) {
  6441. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6442. itemTaskIndex
  6443. ].chapterData.push({
  6444. name: file.name,
  6445. url: data.Location,
  6446. uid: file.uid,
  6447. type: type,
  6448. });
  6449. _this.imgChange1(null, null, type, itemTaskIndex);
  6450. } else if (type == 4) {
  6451. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6452. itemTaskIndex
  6453. ].fileList1.push({
  6454. name: file.name,
  6455. url: data.Location,
  6456. uid: file.uid,
  6457. });
  6458. _this.imgChange1(null, null, type, itemTaskIndex);
  6459. } else if (type == 5) {
  6460. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6461. itemTaskIndex
  6462. ].homeworkList.push({
  6463. name: file.name,
  6464. url: data.Location,
  6465. uid: file.uid,
  6466. });
  6467. _this.imgChange1(null, null, type, itemTaskIndex);
  6468. }
  6469. console.log(data.Location);
  6470. }
  6471. });
  6472. }
  6473. },
  6474. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6475. // const loading = this.openLoading();
  6476. var file = event.target.files[0];
  6477. var credentials = {
  6478. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6479. secretAccessKey: "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",
  6480. }; //秘钥形式的登录上传
  6481. window.AWS.config.update(credentials);
  6482. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6483. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6484. var _this = this;
  6485. if (type == 3) {
  6486. var b = [
  6487. "DOC",
  6488. "DOCX",
  6489. "DOCM",
  6490. "DOTM",
  6491. "DOTX",
  6492. "PPTX",
  6493. "PPSX",
  6494. "PPT",
  6495. "PPS",
  6496. "PPTM",
  6497. "POTM",
  6498. "PPAM",
  6499. "POTX",
  6500. "PPSM",
  6501. ];
  6502. if (
  6503. b.indexOf(
  6504. file.name
  6505. .split(".")
  6506. [file.name.split(".").length - 1].toLocaleUpperCase()
  6507. ) != -1
  6508. ) {
  6509. if (file.size / 1024 / 1024 > 80) {
  6510. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6511. this.inputShow = true;
  6512. // var a = _this.$refs.upload1.uploadFiles;
  6513. // a.splice(a.length - 1, a.length);
  6514. // loading.close();
  6515. return;
  6516. }
  6517. } else if (
  6518. file.name
  6519. .split(".")
  6520. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6521. ) {
  6522. if (file.size / 1024 / 1024 > 80) {
  6523. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6524. this.inputShow = true;
  6525. // var a = _this.$refs.upload1.uploadFiles;
  6526. // a.splice(a.length - 1, a.length);
  6527. // loading.close();
  6528. return;
  6529. }
  6530. }
  6531. }
  6532. this.inputShow = false;
  6533. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6534. itemTaskIndex
  6535. ].progress = 0;
  6536. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6537. itemTaskIndex
  6538. ].proVisible = true;
  6539. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6540. itemTaskIndex
  6541. ].isFinishSize = 0;
  6542. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6543. itemTaskIndex
  6544. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6545. _this.$forceUpdate();
  6546. if (file) {
  6547. var params = {
  6548. Key:
  6549. file.name.split(".")[0] +
  6550. new Date().getTime() +
  6551. "." +
  6552. file.name.split(".")[file.name.split(".").length - 1],
  6553. ContentType: file.type,
  6554. Body: file,
  6555. "Access-Control-Allow-Credentials": "*",
  6556. ACL: "public-read",
  6557. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6558. var options = {
  6559. partSize: 2048 * 1024 * 1024,
  6560. queueSize: 2,
  6561. leavePartsOnError: true,
  6562. };
  6563. bucket
  6564. .upload(params, options)
  6565. .on("httpUploadProgress", function (evt) {
  6566. //这里可以写进度条
  6567. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6568. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6569. itemTaskIndex
  6570. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6571. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6572. itemTaskIndex
  6573. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6574. _this.$forceUpdate();
  6575. })
  6576. .send(function (err, data) {
  6577. // loading.close();
  6578. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6579. itemTaskIndex
  6580. ].progress = 100;
  6581. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6582. itemTaskIndex
  6583. ].isFinishSize =
  6584. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6585. itemTaskIndex
  6586. ].isAllSize;
  6587. _this.$forceUpdate();
  6588. setTimeout(() => {
  6589. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6590. itemTaskIndex
  6591. ].proVisible = false;
  6592. _this.$forceUpdate();
  6593. }, 1000);
  6594. _this.inputShow = true;
  6595. if (err) {
  6596. // var a = _this.$refs.upload1.uploadFiles;
  6597. // a.splice(a.length - 1, a.length);
  6598. _this.$message.error("上传失败");
  6599. } else {
  6600. if (type == 2 || type == 3) {
  6601. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6602. itemTaskIndex
  6603. ].chapterData.push({
  6604. name: file.name,
  6605. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6606. // itemTaskIndex
  6607. // ].chapterData.length+1),
  6608. url: data.Location,
  6609. uid: file.uid,
  6610. type: type,
  6611. text: string,
  6612. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6613. // itemTaskIndex
  6614. // ].chapterData.length + 1),
  6615. });
  6616. _this.imgChange1(null, null, type, itemTaskIndex);
  6617. } else if (type == 4) {
  6618. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6619. itemTaskIndex
  6620. ].fileList1.push({
  6621. name: file.name,
  6622. url: data.Location,
  6623. uid: file.uid,
  6624. });
  6625. _this.imgChange1(null, null, type, itemTaskIndex);
  6626. } else if (type == 5) {
  6627. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6628. itemTaskIndex
  6629. ].homeworkList.push({
  6630. name: file.name,
  6631. url: data.Location,
  6632. uid: file.uid,
  6633. });
  6634. _this.imgChange1(null, null, type, itemTaskIndex);
  6635. }
  6636. console.log(data.Location);
  6637. }
  6638. });
  6639. }
  6640. },
  6641. addunit() {
  6642. this.unitJson.push({
  6643. dyName: "", //单元标题
  6644. isUpdate: 1,
  6645. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6646. chapterInfo: [
  6647. {
  6648. isread: false,
  6649. chapterid: this.guid(),
  6650. title: "",
  6651. courseName: "",
  6652. taskJson: [
  6653. {
  6654. task: "",
  6655. taskDetail: "",
  6656. chapterData: [],
  6657. toolText: "",
  6658. toolChoose: [
  6659. {
  6660. tool: [],
  6661. toolDetail: "",
  6662. toolType: 0,
  6663. askCount: 1,
  6664. askTitle: "",
  6665. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6666. },
  6667. ],
  6668. isShowTools: false,
  6669. askCount: 1,
  6670. isFold: 0,
  6671. askTitle: "",
  6672. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6673. checkJson: [{ checkCount: [], checkPerent: [] }],
  6674. homeworkList: [],
  6675. },
  6676. ],
  6677. itemCount: 1,
  6678. fileList1: [],
  6679. video: [],
  6680. testData: [],
  6681. pData: [],
  6682. templateArray: [],
  6683. },
  6684. ],
  6685. });
  6686. this.addindex = this.unitJson.length - 1;
  6687. setTimeout(() => {
  6688. this.unitIndex = this.unitJson.length - 1;
  6689. this.unitSet(this.unitIndex);
  6690. }, 0);
  6691. },
  6692. addToolFun(itemTaskIndex) {
  6693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6694. itemTaskIndex
  6695. ].toolChoose.push({
  6696. tool: [],
  6697. toolDetail: "",
  6698. toolType: 0,
  6699. askCount: 1,
  6700. askTitle: "",
  6701. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6702. });
  6703. },
  6704. addTaskBorder() {
  6705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6706. task: "",
  6707. taskDetail: "",
  6708. chapterData: [],
  6709. toolChoose: [
  6710. {
  6711. tool: [],
  6712. toolDetail: "",
  6713. toolType: 0,
  6714. askCount: 1,
  6715. askTitle: "",
  6716. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6717. },
  6718. ],
  6719. toolText: "",
  6720. isShowTools: false,
  6721. askCount: 1,
  6722. isFold: 0,
  6723. askTitle: "",
  6724. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6725. checkJson: [{ checkCount: [], checkPerent: [] }],
  6726. homeworkList: [],
  6727. });
  6728. },
  6729. add(e, i) {
  6730. var el = e.currentTarget;
  6731. el.getElementsByTagName("input")[0].click();
  6732. },
  6733. fold(i, e, type) {
  6734. var a = e.currentTarget.parentElement.parentElement;
  6735. var b = e.currentTarget.parentElement;
  6736. if (type == 1) {
  6737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6738. a.className += " smallTaskBorder";
  6739. b.className += " funBlockTop";
  6740. } else {
  6741. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6742. a.className = "taskBorder";
  6743. b.className = "funBlock";
  6744. }
  6745. console.log(e);
  6746. },
  6747. fold2(i) {
  6748. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6749. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6750. } else {
  6751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6752. }
  6753. setTimeout(() => {
  6754. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6755. setTimeout(() => {
  6756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6757. }, 0);
  6758. }, 0);
  6759. this.$forceUpdate();
  6760. },
  6761. foldC(i) {
  6762. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6763. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6764. } else {
  6765. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6766. }
  6767. this.$forceUpdate();
  6768. },
  6769. fold3(i, ti) {
  6770. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6772. } else {
  6773. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6774. }
  6775. this.$forceUpdate();
  6776. },
  6777. deleteHomeworkBox(unitIndex, index, i) {
  6778. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6779. this.taskCount
  6780. ].homeworkList.splice(i, 1);
  6781. },
  6782. getStudent() {
  6783. let params = {
  6784. oid: this.oid,
  6785. cu: "",
  6786. cn: this.searchPeople,
  6787. };
  6788. this.ajax
  6789. .get(this.$store.state.api + "selectStudentAdd", params)
  6790. .then((res) => {
  6791. this.studentJuri = res.data[0];
  6792. })
  6793. .catch((err) => {
  6794. this.isLoading = false;
  6795. console.error(err);
  6796. });
  6797. },
  6798. getTeacher() {
  6799. let params = {
  6800. oid:
  6801. this.org && this.org != "undefined" && this.org != "null"
  6802. ? this.org
  6803. : this.oid,
  6804. cu: "",
  6805. cn: this.searchTN,
  6806. };
  6807. this.ajax
  6808. .get(
  6809. this.$store.state.api +
  6810. (this.org && this.org != "undefined" && this.org != "null"
  6811. ? "selectTeacherAddOrg"
  6812. : "selectTeacherAdd"),
  6813. params
  6814. )
  6815. .then((res) => {
  6816. let teacherJuri = res.data[0];
  6817. for (var i = 0; i < teacherJuri.length; i++) {
  6818. if (teacherJuri[i].userid == this.userid) {
  6819. teacherJuri.splice(i, 1);
  6820. break;
  6821. }
  6822. }
  6823. this.teacherJuri = teacherJuri;
  6824. })
  6825. .catch((err) => {
  6826. console.error(err);
  6827. });
  6828. },
  6829. searchStudent() {
  6830. this.getStudent();
  6831. },
  6832. selectGrage() {
  6833. let params = {
  6834. oid: this.oid,
  6835. };
  6836. this.ajax
  6837. .get(this.$store.state.api + "selectGrageBySchool", params)
  6838. .then((res) => {
  6839. this.gradeList = res.data[0];
  6840. })
  6841. .catch((err) => {
  6842. this.isLoading = false;
  6843. console.error(err);
  6844. });
  6845. },
  6846. //获取班级列表
  6847. getClass() {
  6848. let params = {
  6849. oid: this.oid,
  6850. gid: this.gradeId,
  6851. cn: this.classSearch,
  6852. };
  6853. this.ajax
  6854. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6855. .then((res) => {
  6856. if (!this.grade.length) {
  6857. this.grade = res.data[0];
  6858. }
  6859. this.grade2 = res.data[0];
  6860. this.classJuri = res.data[0];
  6861. let _check = []
  6862. let _check2 = []
  6863. for (var i = 0; i < this.grade2.length; i++) {
  6864. var gid = this.grade2[i].id
  6865. _check.push(gid)
  6866. }
  6867. for (var i = 0; i < this.checkboxList2.length; i++) {
  6868. var _id = this.checkboxList2[i]
  6869. if (_check.indexOf(_id) !== -1) {
  6870. _check2.push(_id)
  6871. }
  6872. }
  6873. this.checkAll = _check2.length === _check.length;
  6874. })
  6875. .catch((err) => {
  6876. this.isLoading = false;
  6877. console.error(err);
  6878. });
  6879. },
  6880. CourseType2Change(val) {
  6881. this.pTypeCheck = [];
  6882. for (var i = 0; i < this.CourseType2.length; i++) {
  6883. let typeA = this.CourseType2[i];
  6884. if (val.indexOf(typeA.name) != -1) {
  6885. this.pTypeCheck.push(...typeA.id);
  6886. }
  6887. }
  6888. },
  6889. getChapterData(e, i, j, ic, type) {
  6890. e.stopPropagation();
  6891. this.updataC = true;
  6892. this.icc = ic;
  6893. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6894. console.log("还不能下载图片喔");
  6895. }
  6896. },
  6897. deleteChapterData(e, i, j, ic, taskI) {
  6898. e.stopPropagation();
  6899. let _this = this;
  6900. _this
  6901. .$confirm("确定删除此项?", "提示", {
  6902. confirmButtonText: "确定",
  6903. cancelButtonText: "取消",
  6904. type: "warning",
  6905. })
  6906. .then(() => {
  6907. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6908. })
  6909. .catch(() => {
  6910. return;
  6911. });
  6912. },
  6913. updataVideoT(e, i, j, ic) {
  6914. // e.stopPropagation();
  6915. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6916. // ic
  6917. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6918. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6919. ic
  6920. ].name;
  6921. this.taskCount = j;
  6922. this.lineCount = ic;
  6923. this.dialogVisibleupdataVideoT = true;
  6924. this.$forceUpdate();
  6925. },
  6926. updataVideoC() {
  6927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6928. this.dialogVisibleupdataVideoT = false;
  6929. this.$forceUpdate();
  6930. },
  6931. upCd(e, i, j, taskCount, ic) {
  6932. e.stopPropagation();
  6933. if (ic == 0) {
  6934. return;
  6935. }
  6936. var a =
  6937. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6938. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6939. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6940. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6941. this.$forceUpdate();
  6942. },
  6943. downCd(e, i, j, taskCount, ic) {
  6944. e.stopPropagation();
  6945. if (
  6946. ic ==
  6947. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6948. 1
  6949. ) {
  6950. return;
  6951. }
  6952. var a =
  6953. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6954. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6955. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6956. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6957. this.$forceUpdate();
  6958. },
  6959. addWork() {
  6960. let cPan = 1;
  6961. for (var i = 0; i < this.unitJson.length; i++) {
  6962. for (
  6963. var j = 0;
  6964. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6965. j++
  6966. ) {
  6967. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6968. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6969. if (
  6970. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6971. ) {
  6972. for (
  6973. var z = 0;
  6974. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6975. z++
  6976. ) {
  6977. if (
  6978. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6979. .length
  6980. ) {
  6981. this.$message.error("请把工具添加完整");
  6982. cPan = 2;
  6983. break;
  6984. }
  6985. }
  6986. }
  6987. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6988. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6989. i
  6990. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6991. return ele.value != "";
  6992. });
  6993. }
  6994. }
  6995. }
  6996. this.inputShow = true;
  6997. if (cPan == 2) {
  6998. return;
  6999. }
  7000. for (var i = 0; i < this.unitJson.length; i++) {
  7001. delete this.unitJson[i].isUpdate;
  7002. }
  7003. let params = [
  7004. {
  7005. uid: this.userid,
  7006. title: this.courseName.replace(/%/g, "%25"),
  7007. brief: this.courseText.replace(/%/g, "%25"),
  7008. cover:
  7009. this.cover.length > 0
  7010. ? JSON.stringify(this.cover)
  7011. : JSON.stringify([
  7012. {
  7013. name: "noBanner.jpg",
  7014. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7015. uid: 1656409780264,
  7016. status: "success",
  7017. },
  7018. ]),
  7019. evaId: this.evalua,
  7020. astudent:
  7021. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7022. see: this.isTeacherSee == true ? 1 : 0,
  7023. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7024. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  7025. courseType: JSON.stringify(this.courseTypeId),
  7026. ateacher:
  7027. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7028. inviteCode: JSON.stringify(this.inviteCode),
  7029. },
  7030. ];
  7031. this.ajax
  7032. .post(this.$store.state.api + "addWorkNew2E", params)
  7033. .then((res) => {
  7034. console.log(this.steps);
  7035. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  7036. this.$message({
  7037. message: "新增成功",
  7038. type: "success",
  7039. });
  7040. // }
  7041. this.number = res.data.ordernumber;
  7042. this.courseId = res.data.courseId;
  7043. this.cid = res.data.courseId;
  7044. this.courseUserid = this.userid;
  7045. this.islogin = true;
  7046. this.steps = 4;
  7047. })
  7048. .catch((err) => {
  7049. this.$message.error("网络不佳");
  7050. console.error(err);
  7051. });
  7052. },
  7053. goCourse() {
  7054. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  7055. },
  7056. updateWork2() {
  7057. let _unitIndex = this.unitIndex;
  7058. let cPan = 1;
  7059. for (
  7060. var j = 0;
  7061. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7062. j++
  7063. ) {
  7064. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  7065. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7066. j
  7067. ].proVisible2 = false;
  7068. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7069. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7070. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7071. (ele) => {
  7072. return ele.value != "";
  7073. }
  7074. );
  7075. }
  7076. }
  7077. this.inputShow = true;
  7078. if (cPan == 2) {
  7079. return;
  7080. }
  7081. let params = [
  7082. {
  7083. cid: this.cid,
  7084. chapters: JSON.stringify(this.unitJson),
  7085. uid: this.userid,
  7086. unitIndex: _unitIndex,
  7087. },
  7088. ];
  7089. this.ajax
  7090. .post(this.$store.state.api + "updateWorkNew4", params)
  7091. .then((res) => {
  7092. this.$message({
  7093. message: "修改成功",
  7094. type: "success",
  7095. });
  7096. this.courseId = this.cid;
  7097. })
  7098. .catch((err) => {
  7099. this.$message.error("网络不佳");
  7100. console.error(err);
  7101. });
  7102. },
  7103. updateWork() {
  7104. let cPan = 1;
  7105. for (var i = 0; i < this.unitJson.length; i++) {
  7106. for (
  7107. var j = 0;
  7108. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7109. j++
  7110. ) {
  7111. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7112. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7113. if (
  7114. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7115. ) {
  7116. for (
  7117. var z = 0;
  7118. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7119. z++
  7120. ) {
  7121. if (
  7122. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  7123. .length
  7124. ) {
  7125. this.$message.error("请把工具添加完整");
  7126. cPan = 2;
  7127. break;
  7128. }
  7129. }
  7130. }
  7131. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7132. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7133. i
  7134. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7135. return ele.value != "";
  7136. });
  7137. }
  7138. }
  7139. }
  7140. this.inputShow = true;
  7141. if (cPan == 2) {
  7142. this.step--;
  7143. return;
  7144. }
  7145. for (var i = 0; i < this.unitJson.length; i++) {
  7146. delete this.unitJson[i].isUpdate;
  7147. }
  7148. let params = [
  7149. {
  7150. cid: this.cid,
  7151. title: this.courseName.replace(/%/g, "%25"),
  7152. brief: this.courseText.replace(/%/g, "%25"),
  7153. cover:
  7154. this.cover.length > 0
  7155. ? JSON.stringify(this.cover)
  7156. : JSON.stringify([
  7157. {
  7158. name: "noBanner.jpg",
  7159. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7160. uid: 1656409780264,
  7161. status: "success",
  7162. },
  7163. ]),
  7164. evaId: this.evalua,
  7165. astudent:
  7166. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7167. see: this.isTeacherSee == true ? 1 : 0,
  7168. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7169. template: this.myWord != "undefined" ? this.myWord : [],
  7170. uid: this.userid,
  7171. courseType: JSON.stringify(this.courseTypeId),
  7172. ateacher:
  7173. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7174. inviteCode: JSON.stringify(this.inviteCode),
  7175. },
  7176. ];
  7177. this.ajax
  7178. .post(this.$store.state.api + "updateWorkNew2", params)
  7179. .then((res) => {
  7180. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  7181. if (this.cidType == 1) {
  7182. this.$message({
  7183. message: "修改成功",
  7184. type: "success",
  7185. });
  7186. } else {
  7187. this.$message({
  7188. message: "新增成功",
  7189. type: "success",
  7190. });
  7191. }
  7192. // }
  7193. this.number = this.nbOrder;
  7194. this.courseId = this.cid;
  7195. this.steps = 4;
  7196. })
  7197. .catch((err) => {
  7198. this.$message.error("网络不佳");
  7199. console.error(err);
  7200. });
  7201. },
  7202. guid() {
  7203. var _num,
  7204. i,
  7205. _guid = "";
  7206. for (i = 0; i < 32; i++) {
  7207. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7208. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7209. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7210. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7211. _guid += "-";
  7212. }
  7213. }
  7214. return _guid;
  7215. },
  7216. insertWord() {
  7217. this.dialogVisible1 = true;
  7218. this.updateBoolean2 = false;
  7219. this.tTitle = "";
  7220. this.tdetail = "";
  7221. },
  7222. addWord() {
  7223. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7224. name: this.tTitle,
  7225. content: this.tdetail,
  7226. uid: this.guid(),
  7227. });
  7228. this.dialogVisible1 = false;
  7229. },
  7230. upWord() { },
  7231. selectWord(uid, i, c) {
  7232. this.dialogVisible1 = true;
  7233. this.updateBoolean2 = true;
  7234. if (
  7235. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7236. ) {
  7237. this.tTitle =
  7238. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7239. this.tdetail =
  7240. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7241. }
  7242. },
  7243. isAddPP() {
  7244. if (this.checkboxList.length > 0) {
  7245. this.$message({
  7246. message: "添加成功",
  7247. type: "success",
  7248. });
  7249. this.dialogVisible3 = false;
  7250. } else {
  7251. this.$message({
  7252. message: "请添加课程成员",
  7253. type: "error",
  7254. });
  7255. }
  7256. },
  7257. isAddClass() {
  7258. this.dialogVisibleClass = false;
  7259. },
  7260. isAddPPTeacher() {
  7261. this.dialogVisibleMember = false;
  7262. this.setMan();
  7263. },
  7264. getTemplate() {
  7265. this.ajax
  7266. .get(this.$store.state.api + "getCourseTemplateT", "")
  7267. .then((res) => {
  7268. this.templateArray = res.data[0];
  7269. this.getTemplateOid();
  7270. this.$forceUpdate();
  7271. })
  7272. .catch((err) => { });
  7273. },
  7274. getTemplateOid() {
  7275. let params = {
  7276. oid: this.oid,
  7277. };
  7278. this.ajax
  7279. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7280. .then((res) => {
  7281. if (res.data[0].length) {
  7282. this.templateArray = [...res.data[0], ...this.templateArray];
  7283. }
  7284. this.getTemplateOrg();
  7285. this.$forceUpdate();
  7286. })
  7287. .catch((err) => { });
  7288. },
  7289. getTemplateOrg() {
  7290. let params = {
  7291. oid: this.org,
  7292. };
  7293. this.ajax
  7294. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7295. .then((res) => {
  7296. if (res.data[0].length) {
  7297. this.templateArray = [...res.data[0], ...this.templateArray];
  7298. }
  7299. this.$forceUpdate();
  7300. })
  7301. .catch((err) => { });
  7302. },
  7303. clearChoose() {
  7304. this.clearArray.splice(this.templateC.id, 1);
  7305. this.dialogVisible2 = false;
  7306. },
  7307. clearAttText() {
  7308. this.AttText = {
  7309. title: "",
  7310. text: "",
  7311. };
  7312. this.dialogVisible6 = false;
  7313. },
  7314. clearLine() {
  7315. this.line = "";
  7316. this.dialogVisible7 = false;
  7317. },
  7318. checkTemplate(res) {
  7319. let _this = this;
  7320. _this
  7321. .$confirm("确定选择此模板吗?", "提示", {
  7322. confirmButtonText: "确定",
  7323. cancelButtonText: "取消",
  7324. type: "warning",
  7325. })
  7326. .then(() => {
  7327. _this.unitJson = JSON.parse(res.chapters);
  7328. _this.steps++;
  7329. setTimeout(() => {
  7330. this.checkEva(this.checkId);
  7331. }, 1000);
  7332. })
  7333. .catch(() => {
  7334. return;
  7335. });
  7336. },
  7337. checkTemplate1(w) {
  7338. this.steps++;
  7339. },
  7340. checkTemplate2() {
  7341. let _this = this;
  7342. _this
  7343. .$confirm("确定选择空模板吗?", "提示", {
  7344. confirmButtonText: "确定",
  7345. cancelButtonText: "取消",
  7346. type: "warning",
  7347. })
  7348. .then(() => {
  7349. _this.unitIndex = 0;
  7350. _this.unitJson = [
  7351. {
  7352. dyName: "", //单元标题
  7353. chapterInfo: [
  7354. {
  7355. isread: false,
  7356. chapterid: this.guid(),
  7357. title: "",
  7358. courseName: "",
  7359. taskJson: [
  7360. {
  7361. task: "",
  7362. taskDetail: "",
  7363. chapterData: [],
  7364. toolText: "",
  7365. toolChoose: [
  7366. {
  7367. tool: [],
  7368. toolDetail: "",
  7369. toolType: 0,
  7370. askCount: 1,
  7371. askTitle: "",
  7372. askJson: [
  7373. { askstitle: "", askItem: 1, checkList: [] },
  7374. ],
  7375. },
  7376. ],
  7377. isShowTools: false,
  7378. askCount: 1,
  7379. isFold: 0,
  7380. askTitle: "",
  7381. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7382. checkJson: [{ checkCount: [], checkPerent: [] }],
  7383. homeworkList: [],
  7384. },
  7385. ],
  7386. itemCount: 1,
  7387. fileList1: [],
  7388. video: [],
  7389. testData: [],
  7390. pData: [],
  7391. templateArray: [],
  7392. },
  7393. ],
  7394. },
  7395. ];
  7396. this.steps++;
  7397. this.updateWork();
  7398. })
  7399. .catch(() => {
  7400. return;
  7401. });
  7402. },
  7403. checkTemplate3() {
  7404. let _this = this;
  7405. _this
  7406. .$confirm("确定选择简易模式吗?", "提示", {
  7407. confirmButtonText: "确定",
  7408. cancelButtonText: "取消",
  7409. type: "warning",
  7410. })
  7411. .then(() => {
  7412. _this.unitIndex = 0;
  7413. _this.unitJson = [
  7414. {
  7415. dyName: "", //单元标题
  7416. easy: 1,
  7417. chapterInfo: [
  7418. {
  7419. isread: false,
  7420. chapterid: this.guid(),
  7421. title: "",
  7422. courseName: "",
  7423. taskJson: [
  7424. {
  7425. task: "",
  7426. taskDetail: "",
  7427. chapterData: [],
  7428. toolText: "",
  7429. toolChoose: [
  7430. {
  7431. tool: [],
  7432. toolDetail: "",
  7433. toolType: 0,
  7434. askCount: 1,
  7435. askTitle: "",
  7436. askJson: [
  7437. { askstitle: "", askItem: 1, checkList: [] },
  7438. ],
  7439. },
  7440. ],
  7441. isShowTools: false,
  7442. askCount: 1,
  7443. isFold: 0,
  7444. askTitle: "",
  7445. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7446. checkJson: [{ checkCount: [], checkPerent: [] }],
  7447. homeworkList: [],
  7448. },
  7449. ],
  7450. itemCount: 1,
  7451. fileList1: [],
  7452. video: [],
  7453. testData: [],
  7454. pData: [],
  7455. templateArray: [],
  7456. },
  7457. ],
  7458. },
  7459. ];
  7460. this.steps++;
  7461. this.updateWork();
  7462. })
  7463. .catch(() => {
  7464. return;
  7465. });
  7466. },
  7467. checkTemplate4() {
  7468. let _this = this;
  7469. _this
  7470. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7471. confirmButtonText: "确定",
  7472. cancelButtonText: "取消",
  7473. type: "warning",
  7474. })
  7475. .then(() => {
  7476. _this.unitIndex = 0;
  7477. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7478. this.steps++;
  7479. this.updateWork();
  7480. })
  7481. .catch(() => {
  7482. return;
  7483. });
  7484. },
  7485. wordNext() {
  7486. this.dialogVisible2 = false;
  7487. },
  7488. isAddOrUpdateAttText() {
  7489. if (this.AttTextType == 0) {
  7490. this.addAttTextMessage();
  7491. } else {
  7492. this.updateAttText();
  7493. }
  7494. },
  7495. isAddOrUpdateLine() {
  7496. if (!this.lineTitle) {
  7497. this.$message.error("请填写链接标题");
  7498. return;
  7499. }
  7500. if (this.lineType == 0) {
  7501. this.addLine();
  7502. } else {
  7503. this.updateLine();
  7504. }
  7505. },
  7506. addAttTextMessage() {
  7507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7508. this.taskCount
  7509. ].chapterData.push({
  7510. name: this.AttText.title,
  7511. url: this.AttText.text,
  7512. type: 6,
  7513. });
  7514. this.imgChange1(null, null, 6, this.taskCount);
  7515. this.dialogVisible6 = false;
  7516. },
  7517. selectAttText(itemTaskIndex, i) {
  7518. this.AttText.title =
  7519. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7520. itemTaskIndex
  7521. ].chapterData[i].name;
  7522. this.AttText.text =
  7523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7524. itemTaskIndex
  7525. ].chapterData[i].url;
  7526. this.taskCount = itemTaskIndex;
  7527. this.AttTextIndex = i;
  7528. this.AttTextType = 1;
  7529. this.dialogVisible6 = true;
  7530. },
  7531. updateAttText() {
  7532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7533. this.taskCount
  7534. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7535. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7536. this.taskCount
  7537. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7538. this.dialogVisible6 = false;
  7539. },
  7540. addLine() {
  7541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7542. this.lineCount
  7543. ].chapterData.push({
  7544. name: "链接",
  7545. title: this.lineTitle,
  7546. url: this.line,
  7547. type: 8,
  7548. });
  7549. this.imgChange1(null, null, 8, this.lineCount);
  7550. this.dialogVisible7 = false;
  7551. },
  7552. selectLine(itemTaskIndex, i) {
  7553. this.line =
  7554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7555. itemTaskIndex
  7556. ].chapterData[i].url;
  7557. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7558. itemTaskIndex
  7559. ].chapterData[i].title
  7560. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7561. .chapterData[i].title
  7562. : "";
  7563. this.taskCount = itemTaskIndex;
  7564. this.lineCount = i;
  7565. this.lineType = 1;
  7566. this.dialogVisible7 = true;
  7567. },
  7568. openUpdateSource(itemTaskIndex, i) {
  7569. this.sourceData = {}
  7570. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7571. this.sourceData[source.id] = {}
  7572. this.sourceData[source.id].name = source.title
  7573. this.sourceData[source.id].url = source.url
  7574. this.dialogVisibleSource = true;
  7575. this.updateSourcePan = true;
  7576. this.taskCount = itemTaskIndex;
  7577. this.lineCount = i;
  7578. },
  7579. updateLine() {
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7581. this.taskCount
  7582. ].chapterData[this.lineCount].url = this.line;
  7583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7584. this.taskCount
  7585. ].chapterData[this.lineCount].title = this.lineTitle;
  7586. this.dialogVisible7 = false;
  7587. },
  7588. addPP() {
  7589. this.dialogVisible3 = true;
  7590. },
  7591. goTo(path) {
  7592. this.$router.push(path);
  7593. },
  7594. openTools(itemTaskIndex, i, toolIndex) {
  7595. this.toolIndex = toolIndex;
  7596. this.taskCount = itemTaskIndex;
  7597. if (i == 4) {
  7598. if (toolIndex == null) {
  7599. var a =
  7600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7601. .chapterData;
  7602. for (var i = 0; i < a.length; i++) {
  7603. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7604. this.askJson =
  7605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7606. itemTaskIndex
  7607. ].chapterData[i].askJson;
  7608. }
  7609. }
  7610. } else {
  7611. this.askJson = JSON.parse(
  7612. JSON.stringify(
  7613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7614. itemTaskIndex
  7615. ].toolChoose[toolIndex]
  7616. )
  7617. );
  7618. }
  7619. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7620. this.dialogVisible5 = true;
  7621. } else if (i == 45) {
  7622. if (
  7623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7624. .toolChoose[toolIndex].testJson
  7625. ) {
  7626. this.testJson = JSON.parse(
  7627. JSON.stringify(
  7628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7629. itemTaskIndex
  7630. ].toolChoose[toolIndex].testJson
  7631. )
  7632. );
  7633. } else {
  7634. var testJson = {
  7635. testCount: 1,
  7636. testTitle: "",
  7637. testJson: [
  7638. {
  7639. teststitle: "",
  7640. testItem: 1,
  7641. checkList: [],
  7642. timuList: [],
  7643. answer: [],
  7644. type: "1",
  7645. },
  7646. ],
  7647. };
  7648. this.testJson = testJson;
  7649. }
  7650. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7651. this.dialogVisibleChoice = true;
  7652. } else if (i == 47) {
  7653. if (
  7654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7655. .toolChoose[toolIndex].sentenceList
  7656. ) {
  7657. this.sentenceList = JSON.parse(
  7658. JSON.stringify(
  7659. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7660. itemTaskIndex
  7661. ].toolChoose[toolIndex].sentenceList
  7662. )
  7663. );
  7664. } else {
  7665. var sentenceList = [
  7666. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7667. ];
  7668. this.sentenceList = sentenceList;
  7669. }
  7670. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7671. this.dialogVisibleSentence = true;
  7672. } else if (i == 48) {
  7673. if (
  7674. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7675. .toolChoose[toolIndex].tableJson
  7676. ) {
  7677. this.tableJson = JSON.parse(
  7678. JSON.stringify(
  7679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7680. itemTaskIndex
  7681. ].toolChoose[toolIndex].tableJson
  7682. )
  7683. );
  7684. } else {
  7685. var tableJson = { text: "" };
  7686. this.tableJson = tableJson;
  7687. }
  7688. this.dialogVisibleTable = true;
  7689. } else if (i == 52) {
  7690. if (
  7691. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7692. .toolChoose[toolIndex].wordJson
  7693. ) {
  7694. this.wordJson = JSON.parse(
  7695. JSON.stringify(
  7696. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7697. itemTaskIndex
  7698. ].toolChoose[toolIndex].wordJson
  7699. )
  7700. );
  7701. } else {
  7702. var wordJson = { text: "" };
  7703. this.wordJson = wordJson;
  7704. }
  7705. this.dialogVisibleWord = true;
  7706. // else if (i == 50) {
  7707. // if (
  7708. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7709. // .toolChoose[toolIndex].uploadJson
  7710. // ) {
  7711. // this.uploadJson = JSON.parse(
  7712. // JSON.stringify(
  7713. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7714. // itemTaskIndex
  7715. // ].toolChoose[toolIndex].uploadJson
  7716. // )
  7717. // );
  7718. // } else {
  7719. // var uploadJson = [];
  7720. // this.uploadJson = uploadJson;
  7721. // }
  7722. // this.dialogVisibleMoreUpload = true;
  7723. // }
  7724. } else if (i == 10) {
  7725. if (
  7726. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7727. .toolChoose[toolIndex].preTime
  7728. ) {
  7729. this.preTime = JSON.parse(
  7730. JSON.stringify(
  7731. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7732. itemTaskIndex
  7733. ].toolChoose[toolIndex].preTime
  7734. )
  7735. );
  7736. } else {
  7737. var preTime = 0;
  7738. this.preTime = preTime;
  7739. }
  7740. this.dialogVisiblePreTime = true;
  7741. } else if (i == 49) {
  7742. if (
  7743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7744. .toolChoose[toolIndex].groupJson
  7745. ) {
  7746. this.groupJson = JSON.parse(
  7747. JSON.stringify(
  7748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7749. itemTaskIndex
  7750. ].toolChoose[toolIndex].groupJson
  7751. )
  7752. );
  7753. } else {
  7754. var groupJson = {
  7755. group: [{ name: "第1组" }],
  7756. number: undefined,
  7757. islock: 1,
  7758. };
  7759. this.groupJson = groupJson;
  7760. }
  7761. this.dialogVisibleGroup = true;
  7762. } else if (i == 62) {
  7763. if (
  7764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7765. .toolChoose[toolIndex].videoJson
  7766. ) {
  7767. this.videoJson = JSON.parse(
  7768. JSON.stringify(
  7769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7770. itemTaskIndex
  7771. ].toolChoose[toolIndex].videoJson
  7772. )
  7773. );
  7774. } else {
  7775. var videoJson = {
  7776. video: "",
  7777. setting: [],
  7778. };
  7779. this.videoJson = videoJson;
  7780. }
  7781. this.dialogVisibleVideo = true;
  7782. } else if (i == 15) {
  7783. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7784. itemTaskIndex
  7785. ].toolChoose[toolIndex].answerQ
  7786. ? JSON.parse(
  7787. JSON.stringify(
  7788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7789. itemTaskIndex
  7790. ].toolChoose[toolIndex].answerQ
  7791. )
  7792. )
  7793. : "";
  7794. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7795. this.dialogVisible8 = true;
  7796. } else if (i == 40) {
  7797. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7798. itemTaskIndex
  7799. ].toolChoose[toolIndex].rateJson
  7800. ? JSON.parse(
  7801. JSON.stringify(
  7802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7803. itemTaskIndex
  7804. ].toolChoose[toolIndex].rateJson
  7805. )
  7806. )
  7807. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7808. this.selectSteps = 1;
  7809. this.dialogVisibleRate = true;
  7810. } else if (i == 42) {
  7811. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7812. itemTaskIndex
  7813. ].toolChoose[toolIndex].answerQ
  7814. ? JSON.parse(
  7815. JSON.stringify(
  7816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7817. itemTaskIndex
  7818. ].toolChoose[toolIndex].answerQ
  7819. )
  7820. )
  7821. : "";
  7822. this.dialogVisibleMp3 = true;
  7823. } else if (i == 41) {
  7824. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7825. itemTaskIndex
  7826. ].toolChoose[toolIndex].selectJson
  7827. ? JSON.parse(
  7828. JSON.stringify(
  7829. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7830. itemTaskIndex
  7831. ].toolChoose[toolIndex].selectJson
  7832. )
  7833. )
  7834. : { url: "", select: [], answer: [] };
  7835. this.selectSteps = 1;
  7836. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7837. this.dialogVisibleSelect = true;
  7838. } else if (i == 3) {
  7839. if (!this.cid) {
  7840. this.$message.error(
  7841. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7842. );
  7843. return;
  7844. }
  7845. window.parent.postMessage(
  7846. {
  7847. tools: "3y",
  7848. cid: this.cid,
  7849. stage: this.unitIndex,
  7850. task: itemTaskIndex,
  7851. tool: toolIndex,
  7852. },
  7853. "*"
  7854. );
  7855. } else if (i == 1) {
  7856. if (!this.cid) {
  7857. this.$message.error(
  7858. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7859. );
  7860. return;
  7861. }
  7862. window.parent.postMessage(
  7863. {
  7864. tools: "1y",
  7865. cid: this.cid,
  7866. stage: this.unitIndex,
  7867. task: itemTaskIndex,
  7868. tool: toolIndex,
  7869. },
  7870. "*"
  7871. );
  7872. } else if (i == 57) {
  7873. if (!this.cid) {
  7874. this.$message.error(
  7875. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7876. );
  7877. return;
  7878. }
  7879. window.parent.postMessage(
  7880. {
  7881. tools: "57y",
  7882. cid: this.cid,
  7883. stage: this.unitIndex,
  7884. task: itemTaskIndex,
  7885. tool: toolIndex,
  7886. },
  7887. "*"
  7888. );
  7889. }else if(i == 69){
  7890. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7891. itemTaskIndex
  7892. ].toolChoose[toolIndex].englishList
  7893. ? JSON.parse(
  7894. JSON.stringify(
  7895. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7896. itemTaskIndex
  7897. ].toolChoose[toolIndex].englishList
  7898. )
  7899. )
  7900. : { };
  7901. this.englishDialogVisible = true;
  7902. }
  7903. },
  7904. chapAddTools(i) {
  7905. if (this.chapTools[0].tools.length == 0) {
  7906. this.chapTools[0].tools.push(i);
  7907. } else {
  7908. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7909. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7910. } else {
  7911. this.chapTools[0].tools.push(i);
  7912. }
  7913. }
  7914. this.$forceUpdate();
  7915. },
  7916. addChaptersDataTools() {
  7917. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7919. this.chapCount
  7920. ].chapterData.push({
  7921. name: this.chapTools[0].toolDetail,
  7922. url: this.chapTools[0].tools,
  7923. type: 7,
  7924. askJson: this.askJson,
  7925. });
  7926. } else {
  7927. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7928. this.chapCount
  7929. ].chapterData.push({
  7930. name: this.chapTools[0].toolDetail,
  7931. url: this.chapTools[0].tools,
  7932. type: 7,
  7933. });
  7934. }
  7935. this.imgChange1(null, null, 7, this.chapCount);
  7936. this.dialogVisible4 = false;
  7937. },
  7938. addTools(i, itemTaskIndex, toolIndex) {
  7939. // if (
  7940. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7941. // .toolChoose[toolIndex].tool.length == 0
  7942. // ) {
  7943. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7944. // itemTaskIndex
  7945. // ].toolChoose[toolIndex].tool.push(i);
  7946. // } else {
  7947. // if (
  7948. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7949. // itemTaskIndex
  7950. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7951. // ) {
  7952. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7953. // itemTaskIndex
  7954. // ].toolChoose[toolIndex].tool.splice(
  7955. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7956. // itemTaskIndex
  7957. // ].toolChoose[toolIndex].tool.indexOf(i),
  7958. // 1
  7959. // );
  7960. // } else {
  7961. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7962. // itemTaskIndex
  7963. // ].toolChoose[toolIndex].tool.push(i);
  7964. // }
  7965. // console.log(
  7966. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7967. // .toolChoose[toolIndex].tool
  7968. // );
  7969. // }
  7970. if (i == 4) {
  7971. if (
  7972. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7973. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7974. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7975. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7976. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7977. .toolChoose[toolIndex].askJson[0].checkList < 2
  7978. ) {
  7979. this.openTools(itemTaskIndex, 4, toolIndex);
  7980. // this.$message({
  7981. // message: "请填写完整问卷内容",
  7982. // type: "error",
  7983. // });
  7984. return;
  7985. }
  7986. }
  7987. if (i == 45) {
  7988. if (
  7989. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7990. .toolChoose[toolIndex].testJson ||
  7991. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7992. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7994. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7995. ) {
  7996. this.openTools(itemTaskIndex, 45, toolIndex);
  7997. // this.$message({
  7998. // message: "请填写完整问卷内容",
  7999. // type: "error",
  8000. // });
  8001. return;
  8002. }
  8003. }
  8004. if (i == 47) {
  8005. if (
  8006. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8007. .toolChoose[toolIndex].sentenceList ||
  8008. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8009. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  8010. ) {
  8011. this.openTools(itemTaskIndex, 47, toolIndex);
  8012. return;
  8013. }
  8014. }
  8015. if(i == 69){
  8016. if (
  8017. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8018. .toolChoose[toolIndex].englishList.engTitle == "" ||
  8019. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8020. .toolChoose[toolIndex].englishList.englishText == ""
  8021. ) {
  8022. this.openTools(itemTaskIndex, 69, toolIndex);
  8023. return;
  8024. }
  8025. }
  8026. // if (i == 48) {
  8027. // if (
  8028. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8029. // .toolChoose[toolIndex].tableJson
  8030. // ) {
  8031. // this.openTools(itemTaskIndex, 48, toolIndex);
  8032. // return;
  8033. // }
  8034. // }
  8035. // if (i == 50) {
  8036. // if (
  8037. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8038. // .toolChoose[toolIndex].uploadJson
  8039. // ) {
  8040. // this.openTools(itemTaskIndex, 50, toolIndex);
  8041. // return;
  8042. // }
  8043. // }
  8044. if (i == 49) {
  8045. if (
  8046. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8047. .toolChoose[toolIndex].groupJson
  8048. ) {
  8049. this.openTools(itemTaskIndex, 49, toolIndex);
  8050. return;
  8051. }
  8052. }
  8053. if (i == 62) {
  8054. if (
  8055. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8056. .toolChoose[toolIndex].videoJson
  8057. ) {
  8058. this.openTools(itemTaskIndex, 62, toolIndex);
  8059. return;
  8060. }
  8061. }
  8062. if (i == 15) {
  8063. if (
  8064. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8065. .toolChoose[toolIndex].answerQ ||
  8066. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8067. .toolChoose[toolIndex].answerQ == ""
  8068. ) {
  8069. this.openTools(itemTaskIndex, 15, toolIndex);
  8070. // this.$message({
  8071. // message: "请填写问答内容",
  8072. // type: "error",
  8073. // });
  8074. return;
  8075. }
  8076. }
  8077. if (i == 40) {
  8078. if (
  8079. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8080. .toolChoose[toolIndex].rateJson ||
  8081. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8082. .toolChoose[toolIndex].rateJson.length
  8083. ) {
  8084. this.openTools(itemTaskIndex, 40, toolIndex);
  8085. return;
  8086. }
  8087. }
  8088. if (i == 41) {
  8089. if (
  8090. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8091. .toolChoose[toolIndex].selectJson ||
  8092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8093. .toolChoose[toolIndex].selectJson.url == "" ||
  8094. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8095. .toolChoose[toolIndex].selectJson.select.length ||
  8096. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8097. .toolChoose[toolIndex].selectJson.answer.length
  8098. ) {
  8099. this.openTools(itemTaskIndex, 41, toolIndex);
  8100. return;
  8101. }
  8102. }
  8103. if (i == 42) {
  8104. if (
  8105. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8106. .toolChoose[toolIndex].answerQ ||
  8107. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8108. .toolChoose[toolIndex].answerQ == ""
  8109. ) {
  8110. this.openTools(itemTaskIndex, 42, toolIndex);
  8111. return;
  8112. }
  8113. }
  8114. if (
  8115. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8116. .toolChoose[toolIndex].tool.length > 0
  8117. ) {
  8118. if (
  8119. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8120. itemTaskIndex
  8121. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  8122. ) {
  8123. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8124. itemTaskIndex
  8125. ].toolChoose[toolIndex].tool.splice(
  8126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8127. itemTaskIndex
  8128. ].toolChoose[toolIndex].tool.indexOf(i),
  8129. 1
  8130. );
  8131. } else {
  8132. // this.$message({
  8133. // message: "每个工具只能添加一个",
  8134. // type: "error",
  8135. // });
  8136. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8137. itemTaskIndex
  8138. ].toolChoose[toolIndex].tool = [];
  8139. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8140. itemTaskIndex
  8141. ].toolChoose[toolIndex].tool.push(i);
  8142. }
  8143. } else {
  8144. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8145. itemTaskIndex
  8146. ].toolChoose[toolIndex].tool.push(i);
  8147. }
  8148. this.$forceUpdate();
  8149. },
  8150. addAskList(index) {
  8151. this.askJson.askJson.splice(index + 1, 0, {
  8152. askstitle: "",
  8153. askItem: 1,
  8154. checkList: [],
  8155. })
  8156. this.askJson.askCount++;
  8157. },
  8158. addTestList(index) {
  8159. this.testJson.testJson.splice(index + 1, 0, {
  8160. teststitle: "",
  8161. testItem: 1,
  8162. checkList: [],
  8163. timuList: [],
  8164. answer: [],
  8165. type: "1",
  8166. })
  8167. this.testJson.testCount++;
  8168. },
  8169. deleteAskList(index) {
  8170. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  8171. this.askJson.askJson.splice(index, 1);
  8172. this.askJson.askCount--;
  8173. } else {
  8174. let _this = this;
  8175. _this
  8176. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8177. confirmButtonText: "确定",
  8178. cancelButtonText: "取消",
  8179. type: "warning",
  8180. })
  8181. .then(() => {
  8182. _this.askJson.askJson.splice(index, 1);
  8183. _this.askJson.askCount--;
  8184. })
  8185. .catch(() => {
  8186. return;
  8187. });
  8188. }
  8189. },
  8190. deleteTestList(index) {
  8191. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  8192. this.testJson.testJson.splice(index, 1);
  8193. this.testJson.testCount--;
  8194. } else {
  8195. let _this = this;
  8196. _this
  8197. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8198. confirmButtonText: "确定",
  8199. cancelButtonText: "取消",
  8200. type: "warning",
  8201. })
  8202. .then(() => {
  8203. _this.testJson.testJson.splice(index, 1);
  8204. _this.testJson.testCount--;
  8205. })
  8206. .catch(() => {
  8207. return;
  8208. });
  8209. }
  8210. },
  8211. askMove(type, index) {
  8212. if (type == 1) {
  8213. if (index > 0) {
  8214. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8215. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8216. this.askJson.askJson[index - 1] = b;
  8217. this.askJson.askJson[index] = a;
  8218. }
  8219. } else {
  8220. if (
  8221. index < this.askJson.askJson.length - 1
  8222. ) {
  8223. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8224. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8225. this.askJson.askJson[index + 1] = b;
  8226. this.askJson.askJson[index] = a;
  8227. }
  8228. }
  8229. this.$forceUpdate();
  8230. },
  8231. checkMove(type, index, checkIndex) {
  8232. if (type == 1) {
  8233. if (checkIndex > 0) {
  8234. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8235. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8236. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8237. this.askJson.askJson[index].checkList[checkIndex] = a;
  8238. }
  8239. } else {
  8240. if (
  8241. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8242. ) {
  8243. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8244. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8245. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8246. this.askJson.askJson[index].checkList[checkIndex] = a;
  8247. }
  8248. }
  8249. this.$forceUpdate();
  8250. },
  8251. testMove(type, index) {
  8252. if (type == 1) {
  8253. if (index > 0) {
  8254. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8255. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8256. this.testJson.testJson[index - 1] = b;
  8257. this.testJson.testJson[index] = a;
  8258. }
  8259. } else {
  8260. if (
  8261. index < this.testJson.testJson.length - 1
  8262. ) {
  8263. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8264. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8265. this.testJson.testJson[index + 1] = b;
  8266. this.testJson.testJson[index] = a;
  8267. }
  8268. }
  8269. this.$forceUpdate();
  8270. },
  8271. tcheckMove(type, index, checkIndex) {
  8272. if (type == 1) {
  8273. if (checkIndex > 0) {
  8274. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8275. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8276. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8277. this.testJson.testJson[index].checkList[checkIndex] = a;
  8278. }
  8279. } else {
  8280. if (
  8281. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8282. ) {
  8283. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8284. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8285. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8286. this.testJson.testJson[index].checkList[checkIndex] = a;
  8287. }
  8288. }
  8289. this.$forceUpdate();
  8290. },
  8291. addcheckList(json, index) {
  8292. // json.checkList.length++;
  8293. json.checkList.splice(index + 1, 0, '')
  8294. json.askItem++;
  8295. this.$forceUpdate();
  8296. },
  8297. deletecheckList(json, index) {
  8298. // json.checkList.length--;
  8299. json.checkList.splice(index, 1)
  8300. json.askItem--;
  8301. this.$forceUpdate();
  8302. },
  8303. addTcheckList(json, index) {
  8304. // json.checkList.length++;
  8305. json.checkList.splice(index + 1, 0, '')
  8306. json.testItem++;
  8307. this.$forceUpdate();
  8308. },
  8309. deleteTcheckList(json, index) {
  8310. // json.checkList.length--;
  8311. json.checkList.splice(index, 1)
  8312. json.testItem--;
  8313. this.$forceUpdate();
  8314. },
  8315. checkTestType(type, json) {
  8316. json.type = type;
  8317. setTimeout(() => {
  8318. json.answer = [];
  8319. }, 100)
  8320. },
  8321. checkAskType(type, json) {
  8322. json.type = type;
  8323. // json.checkList = [];
  8324. this.$forceUpdate();
  8325. },
  8326. addSelectList(json) {
  8327. json.select.push("");
  8328. json.answer.push("");
  8329. },
  8330. deleteSelectList(json) {
  8331. // json.select.length--;
  8332. // json.answer.length--;
  8333. json.select.splice(json.select.length - 1, 1);
  8334. json.answer.splice(json.answer.length - 1, 1);
  8335. },
  8336. addAsk() {
  8337. if (this.askJson.askTitle === "") {
  8338. this.$message.error("标题不能为空!");
  8339. return;
  8340. }
  8341. var aj = this.askJson.askJson;
  8342. var b = 1;
  8343. for (var i = 0; i < aj.length; i++) {
  8344. if (aj[i].askstitle === "") {
  8345. var a = 1;
  8346. for (let index = 0; index < aj[i].askItem; index++) {
  8347. const element = aj[i].checkList[index]
  8348. ? aj[i].checkList[index]
  8349. : "";
  8350. if (element != "") {
  8351. b++;
  8352. this.$message.error(`请将题目${i + 1}填写完整。`);
  8353. return;
  8354. } else {
  8355. a++;
  8356. }
  8357. }
  8358. if (b == 1) {
  8359. this.$message.error("至少填写一个问题");
  8360. return;
  8361. }
  8362. } else if (aj[i].askstitle != "") {
  8363. for (let index = 0; index < aj[i].askItem; index++) {
  8364. const element = aj[i].checkList[index]
  8365. ? aj[i].checkList[index]
  8366. : "";
  8367. var index = 0;
  8368. for (var z = 0; z < aj[i].checkList.length; z++) {
  8369. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8370. if (checkC != "") {
  8371. index++;
  8372. } else {
  8373. this.$message.error(`题目${i + 1}选项不能为空!`);
  8374. return;
  8375. }
  8376. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8377. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8378. if (checkC == checkC2) {
  8379. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8380. return;
  8381. }
  8382. }
  8383. }
  8384. b++;
  8385. if (index < 2) {
  8386. this.$message.error("每道题目至少需要设置2个选项。");
  8387. return;
  8388. }
  8389. }
  8390. }
  8391. }
  8392. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8393. var elc = el.checkList.filter((element) => {
  8394. return element != "";
  8395. });
  8396. return el.askstitle != "" && elc.length != 0;
  8397. });
  8398. if (!this.dialogVisible4) {
  8399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8400. this.taskCount
  8401. ].toolChoose[this.toolIndex] = this.askJson;
  8402. }
  8403. this.dialogVisible5 = false;
  8404. if (
  8405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8406. .toolChoose[this.toolIndex].tool != 4
  8407. ) {
  8408. this.addTools(4, this.taskCount, this.toolIndex);
  8409. }
  8410. },
  8411. addTest() {
  8412. // if (this.testJson.testTitle === "") {
  8413. // this.$message.error("标题不能为空!");
  8414. // return;
  8415. // }
  8416. var aj = this.testJson.testJson;
  8417. var b = 1;
  8418. for (var i = 0; i < aj.length; i++) {
  8419. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8420. var a = 1;
  8421. for (let index = 0; index < aj[i].testItem; index++) {
  8422. const element = aj[i].checkList[index]
  8423. ? aj[i].checkList[index]
  8424. : "";
  8425. if (element != "") {
  8426. b++;
  8427. this.$message.error(`请将题目${i + 1}填写完整。`);
  8428. return;
  8429. } else {
  8430. a++;
  8431. }
  8432. }
  8433. if (b == 1) {
  8434. this.$message.error("至少填写一个问题");
  8435. return;
  8436. }
  8437. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8438. for (let index = 0; index < aj[i].testItem; index++) {
  8439. const element = aj[i].checkList[index]
  8440. ? aj[i].checkList[index]
  8441. : "";
  8442. var index = 0;
  8443. for (var z = 0; z < aj[i].checkList.length; z++) {
  8444. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8445. if (checkC != "") {
  8446. index++;
  8447. } else {
  8448. this.$message.error(`题目${i + 1}选项不能为空!`);
  8449. return;
  8450. }
  8451. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8452. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8453. if (checkC == checkC2) {
  8454. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8455. return;
  8456. }
  8457. }
  8458. }
  8459. b++;
  8460. if (index < 2) {
  8461. this.$message.error("每道题目至少需要设置2个选项。");
  8462. return;
  8463. }
  8464. if (
  8465. (aj[i].type == "2" && !aj[i].answer.length) ||
  8466. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8467. ) {
  8468. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8469. return;
  8470. }
  8471. }
  8472. }
  8473. }
  8474. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8475. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8476. var elc = el.checkList.filter((element) => {
  8477. return element != "";
  8478. });
  8479. return (
  8480. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8481. );
  8482. });
  8483. isTestJson.testCount = isTestJson.testJson.length;
  8484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8485. this.taskCount
  8486. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8487. this.dialogVisibleChoice = false;
  8488. if (
  8489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8490. .toolChoose[this.toolIndex].tool != 45
  8491. ) {
  8492. this.addTools(45, this.taskCount, this.toolIndex);
  8493. }
  8494. },
  8495. addVideoJson(videoJson) {
  8496. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8497. this.taskCount
  8498. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8499. this.dialogVisibleVideo = false;
  8500. if (
  8501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8502. .toolChoose[this.toolIndex].tool != 62
  8503. ) {
  8504. this.addTools(62, this.taskCount, this.toolIndex);
  8505. }
  8506. },
  8507. //自动获取剪贴板
  8508. pasteOption() {
  8509. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8510. if (!iframe) {
  8511. this.$message.error("请使用AI共创生成题目");
  8512. return;
  8513. }
  8514. let copyData = iframe.contentWindow.copyData;
  8515. if (!copyData || !copyData.selectData.length) {
  8516. this.$message.error("请使用AI共创生成题目");
  8517. return;
  8518. }
  8519. let selectData = copyData.selectData;
  8520. for (var i = 0; i < selectData.length; i++) {
  8521. let answer = 0;
  8522. switch (selectData[i].answer[0]) {
  8523. case "A":
  8524. answer = 0;
  8525. break;
  8526. case "B":
  8527. answer = 1;
  8528. break;
  8529. case "C":
  8530. answer = 2;
  8531. break;
  8532. case "D":
  8533. answer = 3;
  8534. break;
  8535. case "E":
  8536. answer = 4;
  8537. break;
  8538. default:
  8539. break;
  8540. }
  8541. this.testJson.testJson.push({
  8542. teststitle: selectData[i].subject,
  8543. testItem: selectData[i].options.length,
  8544. checkList: selectData[i].options,
  8545. timuList: [],
  8546. answer: answer,
  8547. type: "1",
  8548. });
  8549. this.testJson.testCount++;
  8550. }
  8551. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8552. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8553. var elc = el.checkList.filter((element) => {
  8554. return element != "";
  8555. });
  8556. return (
  8557. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8558. );
  8559. });
  8560. isTestJson.testCount = isTestJson.testJson.length;
  8561. this.testJson = isTestJson;
  8562. this.$forceUpdate();
  8563. },
  8564. pasteTask() {
  8565. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8566. if (!iframe) {
  8567. this.$message.error("请使用AI共创生成");
  8568. return;
  8569. }
  8570. let copyData = iframe.contentWindow.copyData;
  8571. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8572. this.$message.error("请使用AI共创生成");
  8573. return;
  8574. }
  8575. let stageTasksData = copyData.tasksData;
  8576. let taskA = [];
  8577. let tasks = stageTasksData;
  8578. for (var j = 0; j < tasks.length; j++) {
  8579. taskA.push({
  8580. task: tasks[j].taskName,
  8581. taskDetail: tasks[j].taskDecs,
  8582. chapterData: [],
  8583. toolText: "",
  8584. toolChoose: [
  8585. {
  8586. tool: [],
  8587. toolDetail: "",
  8588. toolType: 0,
  8589. askCount: 1,
  8590. askTitle: "",
  8591. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8592. },
  8593. ],
  8594. isShowTools: false,
  8595. askCount: 1,
  8596. isFold: 0,
  8597. askTitle: "",
  8598. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8599. checkJson: [{ checkCount: [], checkPerent: [] }],
  8600. homeworkList: [],
  8601. });
  8602. }
  8603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8604. this.$forceUpdate();
  8605. },
  8606. pasteStage() {
  8607. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8608. if (!iframe) {
  8609. this.$message.error("请使用AI共创生成");
  8610. return;
  8611. }
  8612. let copyData = iframe.contentWindow.copyData;
  8613. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8614. this.$message.error("请使用AI共创生成");
  8615. return;
  8616. }
  8617. let stageData = copyData.stageData;
  8618. let stage = [];
  8619. for (var i = 0; i < stageData.length; i++) {
  8620. stage.push({
  8621. dyName: stageData[i], //单元标题
  8622. chapterInfo: [
  8623. {
  8624. isread: false,
  8625. chapterid: this.guid(),
  8626. title: "",
  8627. courseName: "",
  8628. taskJson: [
  8629. {
  8630. task: "",
  8631. taskDetail: "",
  8632. chapterData: [],
  8633. toolText: "",
  8634. toolChoose: [
  8635. {
  8636. tool: [],
  8637. toolDetail: "",
  8638. toolType: 0,
  8639. askCount: 1,
  8640. askTitle: "",
  8641. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8642. },
  8643. ],
  8644. isShowTools: false,
  8645. askCount: 1,
  8646. isFold: 0,
  8647. askTitle: "",
  8648. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8649. checkJson: [{ checkCount: [], checkPerent: [] }],
  8650. homeworkList: [],
  8651. },
  8652. ],
  8653. itemCount: 1,
  8654. fileList1: [],
  8655. video: [],
  8656. testData: [],
  8657. pData: [],
  8658. templateArray: [],
  8659. },
  8660. ],
  8661. });
  8662. }
  8663. let _this = this;
  8664. _this
  8665. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8666. confirmButtonText: "确定",
  8667. cancelButtonText: "取消",
  8668. type: "warning",
  8669. })
  8670. .then(() => {
  8671. _this.unitIndex = 0;
  8672. _this.unitJson = stage;
  8673. _this.steps++;
  8674. _this.updateWork();
  8675. })
  8676. .catch(() => {
  8677. return;
  8678. });
  8679. },
  8680. addAnswer() {
  8681. if (this.answerQ == "") {
  8682. this.$message.error("请输入您想要问的问题");
  8683. return;
  8684. }
  8685. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8686. this.taskCount
  8687. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8688. this.dialogVisible8 = false;
  8689. if (
  8690. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8691. .toolChoose[this.toolIndex].tool != 15
  8692. ) {
  8693. this.addTools(15, this.taskCount, this.toolIndex);
  8694. }
  8695. },
  8696. addMp3Answer() {
  8697. if (this.answerQ == "") {
  8698. this.$message.error("请输入您想要回答的问题");
  8699. return;
  8700. }
  8701. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8702. this.taskCount
  8703. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8704. this.dialogVisibleMp3 = false;
  8705. },
  8706. addRateAnswer() {
  8707. var a = 1;
  8708. for (var i = 0; i < this.rateJson.length; i++) {
  8709. if (this.rateJson[i].value == "") {
  8710. a = 2;
  8711. break;
  8712. }
  8713. }
  8714. if (a == 2) {
  8715. this.$message.error("请把评价信息填写完整");
  8716. return;
  8717. }
  8718. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8719. this.taskCount
  8720. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8721. this.dialogVisibleRate = false;
  8722. if (
  8723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8724. .toolChoose[this.toolIndex].tool != 40
  8725. ) {
  8726. this.addTools(40, this.taskCount, this.toolIndex);
  8727. }
  8728. },
  8729. addSelectAnswer() {
  8730. if (this.selectJson.url == "") {
  8731. this.$message.error("请上传题目");
  8732. return;
  8733. }
  8734. if (!this.selectJson.select.length) {
  8735. this.$message.error("请添加选项");
  8736. return;
  8737. }
  8738. if (!this.selectJson.answer.length) {
  8739. this.$message.error("请设置答案");
  8740. return;
  8741. }
  8742. var a = 1;
  8743. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8744. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8745. a = 2;
  8746. }
  8747. }
  8748. if (a == 2) {
  8749. this.$message.error("请设置答案");
  8750. return;
  8751. }
  8752. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8753. this.taskCount
  8754. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8755. this.dialogVisibleSelect = false;
  8756. if (
  8757. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8758. .toolChoose[this.toolIndex].tool != 41
  8759. ) {
  8760. this.addTools(41, this.taskCount, this.toolIndex);
  8761. }
  8762. },
  8763. nextSelectSteps() {
  8764. if (this.selectJson.url == "") {
  8765. this.$message.error("请上传题目");
  8766. return;
  8767. }
  8768. if (!this.selectJson.select.length) {
  8769. this.$message.error("请添加选项");
  8770. return;
  8771. } else {
  8772. for (var z = 0; z < this.selectJson.select.length; z++) {
  8773. let checkC = this.selectJson.select[z];
  8774. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8775. let checkC2 = this.selectJson.select[z2];
  8776. if (checkC == checkC2) {
  8777. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8778. return;
  8779. }
  8780. }
  8781. }
  8782. }
  8783. var a = 1;
  8784. for (var i = 0; i < this.selectJson.select.length; i++) {
  8785. if (!this.selectJson.select[i]) {
  8786. a = 2;
  8787. }
  8788. }
  8789. if (a == 2) {
  8790. this.$message.error("添加的选项不能为空");
  8791. return;
  8792. }
  8793. this.selectSteps++;
  8794. },
  8795. selectCourseDetail() {
  8796. if (this.cid == "" || this.cid == undefined) {
  8797. console.log("这是新增课程");
  8798. this.selectAllType();
  8799. } else {
  8800. this.cidType = 1;
  8801. let params = {
  8802. cid: this.cid,
  8803. };
  8804. this.ajax
  8805. .get(this.$store.state.api + "select_course_detail", params)
  8806. .then((res) => {
  8807. this.loading = true;
  8808. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8809. for (var j = 0; j < this.unitJson.length; j++) {
  8810. for (
  8811. var k = 0;
  8812. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8813. k++
  8814. ) {
  8815. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8816. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8817. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8818. : [];
  8819. let _chapterData = [];
  8820. for (
  8821. var c = 0;
  8822. c <
  8823. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8824. .length;
  8825. c++
  8826. ) {
  8827. if (
  8828. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8829. ) {
  8830. _chapterData.push(
  8831. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8832. );
  8833. }
  8834. }
  8835. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8836. _chapterData;
  8837. }
  8838. }
  8839. this.$forceUpdate();
  8840. this.courseName = res.data[0][0].title;
  8841. this.courseText = res.data[0][0].brief;
  8842. this.evalua = res.data[0][0].evaId;
  8843. this.cover = JSON.parse(res.data[0][0].cover);
  8844. this.noneBtnImg = this.cover.length >= 1;
  8845. // this.checkboxList =
  8846. // res.data[0][0].course_student.length > 0
  8847. // ? JSON.parse(res.data[0][0].course_student)
  8848. // : [];
  8849. this.checkboxList2 = res.data[0][0].juri
  8850. ? res.data[0][0].juri.split(",")
  8851. : [];
  8852. this.inviteCode = [];
  8853. for (var i = 0; i < res.data[2].length; i++) {
  8854. this.inviteCode.push({
  8855. cid: res.data[2][i].classid,
  8856. ic: res.data[2][i].code,
  8857. });
  8858. }
  8859. this.checkboxList3 = res.data[0][0].course_teacher
  8860. ? res.data[0][0].course_teacher.split(",")
  8861. : [];
  8862. // this.isTeacherSee =
  8863. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8864. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8865. this.myWord = res.data[0][0].template;
  8866. this.templateC.id = "123";
  8867. this.courseUserid = res.data[0][0].userid;
  8868. // if(this.courseUserid == this.userid){
  8869. // this.InviteChange(this.checkboxList2)
  8870. // }
  8871. this.nbOrder = res.data[0][0].ordernumber;
  8872. this.courseTypeId = [];
  8873. for (var i = 0; i < res.data[1].length; i++) {
  8874. this.courseTypeId.push(res.data[1][i].typeid);
  8875. }
  8876. console.log(this.courseTypeId);
  8877. // if (this.timer) clearInterval(this.timer);
  8878. if (this.timer) clearTimeout(this.timer);
  8879. this.timer = null;
  8880. // this.timer = setInterval(() => {
  8881. // this.seleteCourseUpdate();
  8882. this.setMan();
  8883. this.selectAllType();
  8884. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8885. // }, 5000);
  8886. this.$forceUpdate();
  8887. setTimeout(() => {
  8888. this.checkEva(this.evalua);
  8889. }, 0);
  8890. })
  8891. .catch((err) => {
  8892. console.error(err);
  8893. });
  8894. }
  8895. },
  8896. seleteCourseUpdate() {
  8897. let params = {
  8898. cid: this.cid,
  8899. };
  8900. this.ajax
  8901. .get(this.$store.state.api + "select_course_detail", params)
  8902. .then((res) => {
  8903. // console.log(this.unitJson);
  8904. let unitJson = JSON.parse(res.data[0][0].chapters);
  8905. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8906. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8907. let _unitJson = [];
  8908. let _chapAarry = [];
  8909. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8910. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8911. let index = 1;
  8912. let chapindex;
  8913. if (_unitJson2.length > unitJson.length) {
  8914. for (let c = 0; c < _unitJson2.length; c++) {
  8915. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8916. }
  8917. for (let j = 0; j < unitJson.length; j++) {
  8918. let count = 0;
  8919. for (let k = 0; k < _unitJson2.length; k++) {
  8920. if (
  8921. unitJson[j].chapterInfo[0].chapterid ==
  8922. _unitJson2[k].chapterInfo[0].chapterid
  8923. ) {
  8924. count++;
  8925. _chapAarry.splice(
  8926. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8927. 1
  8928. );
  8929. _unitJson.push(unitJson[j]);
  8930. break;
  8931. }
  8932. }
  8933. // if(count === 0){
  8934. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8935. // }
  8936. }
  8937. for (let k = 0; k < _unitJson2.length; k++) {
  8938. if (_unitJson2[k].isUpdate == 1) {
  8939. _chapAarry.splice(
  8940. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8941. 1
  8942. );
  8943. _unitJson.push(_unitJson2[k]);
  8944. }
  8945. }
  8946. console.log(_chapAarry);
  8947. for (let d = 0; d < _unitJson2.length; d++) {
  8948. if (
  8949. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8950. ) {
  8951. if (_unitIndex == d) {
  8952. index = 2;
  8953. }
  8954. chapindex = d;
  8955. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8956. }
  8957. }
  8958. } else {
  8959. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8960. }
  8961. for (let i = 0; i < unitJson.length; i++) {
  8962. if (
  8963. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8964. _unitJson[i].chapterInfo[0].chapterid !=
  8965. unitJson[i].chapterInfo[0].chapterid
  8966. ) {
  8967. if (i == _unitJson.length - 1) {
  8968. // this.unitIndex++
  8969. _unitIndex2++;
  8970. }
  8971. _unitJson.splice(i, 0, unitJson[i]);
  8972. } else if (i > _unitJson.length - 1) {
  8973. _unitJson.push(unitJson[i]);
  8974. } else if (
  8975. _unitJson[i].chapterInfo[0].chapterid ==
  8976. unitJson[i].chapterInfo[0].chapterid
  8977. ) {
  8978. _unitJson[i] = unitJson[i];
  8979. }
  8980. // if (i == _unitIndex) {
  8981. // continue;
  8982. // } else
  8983. }
  8984. if (_chapAarry.length && index != 2) {
  8985. if (chapindex < _unitIndex) {
  8986. this.isDelete = 2;
  8987. // this.unitIndex--;
  8988. _unitIndex2--;
  8989. } else if (
  8990. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8991. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8992. ) {
  8993. this.isDelete = 2;
  8994. for (let n = 0; n < _unitJson.length; n++) {
  8995. if (
  8996. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8997. _unitJson[n].chapterInfo[0].chapterid
  8998. ) {
  8999. // this.unitIndex = n;
  9000. _unitIndex2 = n;
  9001. _unitJson[n] = _unitJson2[_unitIndex];
  9002. break;
  9003. }
  9004. }
  9005. }
  9006. } else if (index != 2) {
  9007. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  9008. _unitJson2[_unitIndex];
  9009. for (
  9010. var ci = 0;
  9011. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  9012. ci++
  9013. ) {
  9014. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  9015. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  9016. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9017. .toolChoose
  9018. : [];
  9019. let _chapterData = [];
  9020. for (
  9021. var c = 0;
  9022. c <
  9023. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  9024. .length;
  9025. c++
  9026. ) {
  9027. if (
  9028. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9029. .chapterData[c]
  9030. ) {
  9031. _chapterData.push(
  9032. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9033. .chapterData[c]
  9034. );
  9035. }
  9036. }
  9037. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  9038. _chapterData;
  9039. }
  9040. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  9041. }
  9042. if (index == 1) {
  9043. this.unitJson = _unitJson;
  9044. this.$forceUpdate();
  9045. setTimeout(() => {
  9046. if (this.unitIndex != _unitIndex2) {
  9047. this.isDelete = 2;
  9048. this.unitIndex = _unitIndex2;
  9049. }
  9050. }, 0);
  9051. this.timer = setTimeout(() => {
  9052. this.seleteCourseUpdate();
  9053. }, 1000);
  9054. } else if (index == 2) {
  9055. let _this = this;
  9056. _this
  9057. .$confirm(
  9058. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  9059. "提示",
  9060. {
  9061. confirmButtonText: "需要",
  9062. cancelButtonText: "取消",
  9063. type: "warning",
  9064. }
  9065. )
  9066. .then(() => {
  9067. if (_this.time()) {
  9068. _this.restoreWork(
  9069. _chapAarry[0],
  9070. _unitJson,
  9071. chapindex,
  9072. _unitJson2,
  9073. _unitIndex2
  9074. );
  9075. }
  9076. })
  9077. .catch(() => {
  9078. _this.unitJson = _unitJson;
  9079. _this.$forceUpdate();
  9080. setTimeout(() => {
  9081. if (this.unitIndex != _unitIndex2) {
  9082. this.isDelete = 2;
  9083. this.unitIndex = _unitIndex2;
  9084. }
  9085. }, 0);
  9086. _this.timer = setTimeout(() => {
  9087. _this.seleteCourseUpdate();
  9088. }, 1000);
  9089. });
  9090. }
  9091. })
  9092. .catch((err) => {
  9093. console.error(err);
  9094. });
  9095. },
  9096. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  9097. let params = [
  9098. {
  9099. cid: this.cid,
  9100. chapters: JSON.stringify(this.unitJson),
  9101. uid: this.userid,
  9102. chapid: chapid,
  9103. },
  9104. ];
  9105. this.ajax
  9106. .post(this.$store.state.api + "restoreWork", params)
  9107. .then((res) => {
  9108. this.$message({
  9109. message: "恢复成功",
  9110. type: "success",
  9111. });
  9112. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  9113. this.unitJson = unitJson;
  9114. this.$forceUpdate();
  9115. setTimeout(() => {
  9116. if (this.unitIndex != unitIndex2) {
  9117. this.isDelete = 2;
  9118. this.unitIndex = unitIndex2;
  9119. }
  9120. }, 0);
  9121. this.timer = setTimeout(() => {
  9122. this.seleteCourseUpdate();
  9123. }, 1000);
  9124. })
  9125. .catch((err) => {
  9126. this.$message.error("网络不佳");
  9127. console.error(err);
  9128. });
  9129. },
  9130. getTypeName() {
  9131. console.log(this.courseTypeId);
  9132. this.$forceUpdate();
  9133. },
  9134. selectAllType() {
  9135. let params = {
  9136. org: this.org && this.org != "" ? this.org : "",
  9137. oid: this.oid && this.oid != "" ? this.oid : "",
  9138. };
  9139. this.ajax
  9140. .get(this.$store.state.api + "selectAllType", params)
  9141. .then((res) => {
  9142. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9143. res.data[0] = [...res.data[0], ...res.data[4]]
  9144. }
  9145. this.CourseType = res.data;
  9146. this.CourseType2 = [
  9147. { name: "智见课程", id: [] },
  9148. { name: "智行课程", id: [] },
  9149. { name: "智创课程", id: [] },
  9150. ];
  9151. for (var cti = 0; cti < res.data[0].length; cti++) {
  9152. if (
  9153. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  9154. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  9155. ) {
  9156. this.CourseType2[0].id.push(res.data[0][cti].id);
  9157. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  9158. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9159. this.CourseType2[1].id.push(res.data[0][cti].id);
  9160. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9161. this.CourseType2[2].id.push(res.data[0][cti].id);
  9162. }
  9163. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  9164. res.data[0][cti].name = "年级";
  9165. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9166. res.data[0][cti].name = "学科";
  9167. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9168. res.data[0][cti].name = "主题";
  9169. }
  9170. }
  9171. let _courseTypeId = [];
  9172. for (var i = 0; i < res.data[0].length; i++) {
  9173. if (!this.cid) {
  9174. this.courseTypeId[res.data[0][i].id] = [];
  9175. }
  9176. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  9177. // }
  9178. this.CourseTypeJson[res.data[0][i].id] = [];
  9179. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9180. if (res.data[0][i].name == "栏目") {
  9181. this.CourseType[0][i].name = "主题";
  9182. }
  9183. }
  9184. if (res.data[2].length == 0 && res.data[3].length == 0) {
  9185. for (var j = 0; j < res.data[1].length; j++) {
  9186. if (
  9187. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  9188. _courseTypeId.indexOf(res.data[1][j].id) == -1
  9189. ) {
  9190. _courseTypeId.push(res.data[1][j].id);
  9191. }
  9192. if (res.data[0][i].id == res.data[1][j].pid) {
  9193. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9194. }
  9195. }
  9196. } else {
  9197. if (res.data[2].length > 0) {
  9198. for (var j = 0; j < res.data[2].length; j++) {
  9199. if (
  9200. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9201. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9202. ) {
  9203. _courseTypeId.push(res.data[2][j].id);
  9204. }
  9205. if (res.data[0][i].id == res.data[2][j].pid) {
  9206. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9207. }
  9208. }
  9209. }
  9210. if (res.data[3].length > 0) {
  9211. for (var j = 0; j < res.data[3].length; j++) {
  9212. if (
  9213. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9214. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9215. ) {
  9216. _courseTypeId.push(res.data[3][j].id);
  9217. }
  9218. if (res.data[0][i].id == res.data[3][j].pid) {
  9219. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9220. }
  9221. }
  9222. }
  9223. }
  9224. }
  9225. this.courseTypeId = _courseTypeId;
  9226. })
  9227. .catch((err) => {
  9228. console.error(err);
  9229. });
  9230. },
  9231. selectType() {
  9232. this.ajax
  9233. .get(this.$store.state.api + "selectType")
  9234. .then((res) => {
  9235. this.CourseType = res.data;
  9236. for (var i = 0; i < res.data[0].length; i++) {
  9237. if (!this.cid) {
  9238. this.courseTypeId[res.data[0][i].id] = "";
  9239. }
  9240. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9241. if (res.data[0][i].name == "栏目") {
  9242. this.CourseType[0][i].name = "主题";
  9243. }
  9244. }
  9245. for (var j = 0; j < res.data[1].length; j++) {
  9246. if (res.data[0][i].id == res.data[1][j].pid) {
  9247. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9248. this.CourseTypeJson[res.data[0][i].id] = [];
  9249. }
  9250. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9251. }
  9252. }
  9253. }
  9254. this.selectTypeByOid();
  9255. this.selectTypeByOrg();
  9256. })
  9257. .catch((err) => {
  9258. console.error(err);
  9259. });
  9260. },
  9261. selectTypeByOid() {
  9262. let params = {
  9263. oid: this.oid,
  9264. };
  9265. this.ajax
  9266. .get(this.$store.state.api + "selectTypeByOid", params)
  9267. .then((res) => {
  9268. for (var i = 0; i < res.data[0].length; i++) {
  9269. for (var j = 0; j < res.data[1].length; j++) {
  9270. if (res.data[0][i].id == res.data[1][j].pid) {
  9271. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9272. this.CourseTypeJson[res.data[0][i].id] = [];
  9273. }
  9274. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9275. }
  9276. }
  9277. }
  9278. })
  9279. .catch((err) => {
  9280. console.error(err);
  9281. });
  9282. },
  9283. selectTypeByOrg() {
  9284. let params = {
  9285. oid: this.org,
  9286. };
  9287. this.ajax
  9288. .get(this.$store.state.api + "selectTypeByOrg", params)
  9289. .then((res) => {
  9290. for (var i = 0; i < res.data[0].length; i++) {
  9291. for (var j = 0; j < res.data[1].length; j++) {
  9292. if (res.data[0][i].id == res.data[1][j].pid) {
  9293. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9294. this.CourseTypeJson[res.data[0][i].id] = [];
  9295. }
  9296. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9297. }
  9298. }
  9299. }
  9300. this.$forceUpdate();
  9301. })
  9302. .catch((err) => {
  9303. console.error(err);
  9304. });
  9305. },
  9306. OtherMb(type) {
  9307. this.typeMode = type;
  9308. setTimeout(() => {
  9309. this.checkEva(this.checkId);
  9310. }, 0);
  9311. },
  9312. openMember() {
  9313. this.searchTN = "";
  9314. this.getTeacher();
  9315. this.dialogVisibleMember = true;
  9316. },
  9317. checkEva(id, type) {
  9318. this.dialogVisiblemb = false;
  9319. this.selectEva();
  9320. if (this.evalua != id && type == 2) {
  9321. this.$message.success("导入成功");
  9322. }
  9323. this.evalua = id;
  9324. this.checkId = id;
  9325. if (this.evalua != "") {
  9326. for (var i = 0; i < this.evaJuri.length; i++) {
  9327. if (this.evalua == this.evaJuri[i].id) {
  9328. this.eTitle = this.evaJuri[i].title;
  9329. this.eJson = JSON.parse(this.evaJuri[i].content);
  9330. }
  9331. }
  9332. this.data.data = [];
  9333. this.$forceUpdate();
  9334. setTimeout(() => {
  9335. this.setMindData();
  9336. }, 500);
  9337. }
  9338. },
  9339. deleteEva() {
  9340. let _this = this;
  9341. if (_this.evalua == "") {
  9342. this.$message.warning("内容已经清空了,请勿重复清空");
  9343. return;
  9344. }
  9345. _this
  9346. .$confirm("确定删除此目标吗?", "提示", {
  9347. confirmButtonText: "确定",
  9348. cancelButtonText: "取消",
  9349. type: "warning",
  9350. })
  9351. .then(() => {
  9352. _this.evalua = "";
  9353. _this.checkId = "";
  9354. _this.eTitle = "";
  9355. let _unitJson = _this.unitJson;
  9356. for (var i = 0; i < _unitJson.length; i++) {
  9357. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9358. for (var j = 0; j < _task.length; j++) {
  9359. let _eList = _task[j].eList;
  9360. for (var k = 0; k < _eList.length; k++) {
  9361. delete _eList[k].target;
  9362. }
  9363. }
  9364. }
  9365. _this.$forceUpdate();
  9366. if (_this.cid) {
  9367. _this.updateWork();
  9368. }
  9369. })
  9370. .catch(() => {
  9371. return;
  9372. });
  9373. },
  9374. selectEva() {
  9375. let params = {
  9376. oid: this.oid,
  9377. };
  9378. this.ajax
  9379. .get(this.$store.state.api + "selectAllEvaluation", params)
  9380. .then((res) => {
  9381. this.evaJuri = res.data[0];
  9382. })
  9383. .catch((err) => {
  9384. console.error(err);
  9385. });
  9386. },
  9387. setMindData() {
  9388. let targetArray = [];
  9389. this.data.data = [];
  9390. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9391. let _eJson = Object.keys(this.eJson);
  9392. let _e = this.eJson;
  9393. for (let i = 0; i < _eJson.length; i++) {
  9394. let element = _e[_eJson[i]];
  9395. this.data.data.push({
  9396. id: element.id,
  9397. parentid: "root",
  9398. topic: element.name,
  9399. });
  9400. // targetArray.push({
  9401. // id: element.id,
  9402. // parentid: "root",
  9403. // name: element.name,
  9404. // });
  9405. targetArray.push({
  9406. value: element.name,
  9407. label: element.name,
  9408. children: [],
  9409. });
  9410. let _eJsonc = Object.keys(element.child);
  9411. let _e2 = element.child;
  9412. for (let j = 0; j < _eJsonc.length; j++) {
  9413. let _ec = _e2[_eJsonc[j]];
  9414. this.data.data.push({
  9415. id: _ec.id,
  9416. parentid: element.id,
  9417. topic: _ec.name,
  9418. });
  9419. // targetArray.push({
  9420. // id: _ec.id,
  9421. // parentid: element.id,
  9422. // name: _ec.name,
  9423. // });
  9424. targetArray[i].children.push({
  9425. value: _ec.name,
  9426. label: _ec.name,
  9427. children: [],
  9428. });
  9429. let _eJsonz = Object.keys(_ec.child);
  9430. let _e3 = _ec.child;
  9431. for (let z = 0; z < _eJsonz.length; z++) {
  9432. let _ez = _e3[_eJsonz[z]];
  9433. this.data.data.push({
  9434. id: _ez.id,
  9435. parentid: _ec.id,
  9436. topic: _ez.name,
  9437. });
  9438. // targetArray.push({
  9439. // id: _ez.id,
  9440. // parentid: _ec.id,
  9441. // name: _ez.name,
  9442. // });
  9443. targetArray[i].children[j].children.push({
  9444. value: _ez.name,
  9445. label: _ez.name,
  9446. });
  9447. }
  9448. }
  9449. }
  9450. this.targetArray = targetArray;
  9451. this.$forceUpdate();
  9452. },
  9453. /*添加评价 */
  9454. addEList(index, tIndex) {
  9455. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9456. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9457. value: "",
  9458. detail: "",
  9459. score: 5,
  9460. })
  9461. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9462. { value: "", detail: "", score: 5 },
  9463. ]);
  9464. this.$forceUpdate();
  9465. },
  9466. forceUpdate() {
  9467. this.$forceUpdate();
  9468. },
  9469. deletEList(index, tIndex, eIndex) {
  9470. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9471. eIndex,
  9472. 1
  9473. );
  9474. this.$forceUpdate();
  9475. },
  9476. getChoosePic(t) {
  9477. this.chooseType = t;
  9478. this.getAllBanner();
  9479. },
  9480. getAllBanner() {
  9481. this.sysPicVisible = true;
  9482. let params = {
  9483. t: this.chooseType,
  9484. };
  9485. this.ajax
  9486. .get(this.$store.state.api + "selectAllBanner", params)
  9487. .then((res) => {
  9488. this.sysPic = res.data[0];
  9489. })
  9490. .catch((err) => {
  9491. console.error(err);
  9492. });
  9493. },
  9494. // getClass() {
  9495. // let params = {
  9496. // oid: this.oid,
  9497. // };
  9498. // this.ajax
  9499. // .get(this.$store.state.api + "selectClassBySchool", params)
  9500. // .then((res) => {
  9501. // this.classJuri = res.data[0];
  9502. // })
  9503. // .catch((err) => {
  9504. // console.error(err);
  9505. // });
  9506. // },
  9507. deleteSysPic() {
  9508. this.cover = [];
  9509. this.isSysPic = false;
  9510. this.isSysPic2 = false;
  9511. },
  9512. deleteSelectPic() {
  9513. this.selectJson.url = "";
  9514. },
  9515. setEListStar() {
  9516. this.$forceUpdate();
  9517. },
  9518. deletRateList(i) {
  9519. this.rateJson.splice(i, 1);
  9520. },
  9521. addRateList() {
  9522. this.rateJson.push({ detail: "", score: 5, value: "" });
  9523. },
  9524. addSt() {
  9525. this.sentenceList.push({
  9526. sentenceTitle: "",
  9527. addSentence: [],
  9528. rightAnswer: [],
  9529. });
  9530. },
  9531. addSen(i) {
  9532. if (!this.sentenceList[i].sentenceTitle) {
  9533. this.$message.error("请填写卡片内容!");
  9534. return;
  9535. }
  9536. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9537. this.$message.error("卡片内容字数不能超过10位");
  9538. return;
  9539. }
  9540. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9541. this.$message.error("不能添加重复的卡片内容!");
  9542. return;
  9543. }
  9544. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9545. // this.isPushTitleList.push(this.sentenceTitle);
  9546. this.sentenceList[i].sentenceTitle = "";
  9547. },
  9548. setRightAnswer(s, i, j) {
  9549. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9550. this.sentenceList[i].rightAnswer.push(s);
  9551. }
  9552. },
  9553. returnCard(r, i, j) {
  9554. this.sentenceList[i].rightAnswer.splice(j, 1);
  9555. },
  9556. addSentenceTool() {
  9557. for (var i = 0; i < this.sentenceList.length; i++) {
  9558. if (this.sentenceList[i].rightAnswer.length == 0) {
  9559. this.$message.error(`请将题目${i + 1}设置完整。`);
  9560. return;
  9561. }
  9562. if (
  9563. this.sentenceList[i].addSentence.length !=
  9564. this.sentenceList[i].rightAnswer.length
  9565. ) {
  9566. this.$message.error(`请将题目${i + 1}设置完整。`);
  9567. return;
  9568. }
  9569. }
  9570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9571. this.taskCount
  9572. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9573. this.sentenceList = [
  9574. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9575. ];
  9576. this.dialogVisibleSentence = false;
  9577. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9578. // itemTaskIndex
  9579. // ].toolChoose[toolIndex].tool = [];
  9580. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9581. // itemTaskIndex
  9582. // ].toolChoose[toolIndex].tool.push(i);
  9583. if (
  9584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9585. .toolChoose[this.toolIndex].tool != 47
  9586. ) {
  9587. this.addTools(47, this.taskCount, this.toolIndex);
  9588. }
  9589. },
  9590. addTableJson() {
  9591. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9592. // this.$message.error("请将信息填写完整!");
  9593. // return;
  9594. // }
  9595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9596. this.taskCount
  9597. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9598. // this.tableJson = [{ text: "" }];
  9599. // this.dialogVisibleTable = false;
  9600. this.$message.success("上传成功");
  9601. if (
  9602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9603. .toolChoose[this.toolIndex].tool != 48
  9604. ) {
  9605. this.addTools(48, this.taskCount, this.toolIndex);
  9606. }
  9607. },
  9608. addWordJson() {
  9609. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9610. this.taskCount
  9611. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9612. // this.wordJson = [{ text: "" }];
  9613. // this.dialogVisibleWord = false;
  9614. this.$message.success("上传成功");
  9615. if (
  9616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9617. .toolChoose[this.toolIndex].tool != 52
  9618. ) {
  9619. this.addTools(52, this.taskCount, this.toolIndex);
  9620. }
  9621. },
  9622. addMoreUpload() {
  9623. if (this.uploadJson.length == 0) {
  9624. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9625. this.taskCount
  9626. ].toolChoose[this.toolIndex].uploadJson = [];
  9627. } else {
  9628. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9629. this.taskCount
  9630. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9631. }
  9632. this.uploadJson = [];
  9633. this.dialogVisibleMoreUpload = false;
  9634. if (
  9635. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9636. .toolChoose[this.toolIndex].tool != 50
  9637. ) {
  9638. this.addTools(50, this.taskCount, this.toolIndex);
  9639. }
  9640. },
  9641. addPreTime() {
  9642. if (this.preTime == 0) {
  9643. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9644. this.taskCount
  9645. ].toolChoose[this.toolIndex].preTime = 0;
  9646. } else {
  9647. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9648. this.taskCount
  9649. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9650. }
  9651. this.preTime = 0;
  9652. this.dialogVisiblePreTime = false;
  9653. if (
  9654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9655. .toolChoose[this.toolIndex].tool != 10
  9656. ) {
  9657. this.addTools(10, this.taskCount, this.toolIndex);
  9658. }
  9659. },
  9660. goToTask(i) {
  9661. this.toolIndexType = ''
  9662. if (this.isClickColor == (i + 1)) {
  9663. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9665. } else {
  9666. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9667. }
  9668. this.$forceUpdate();
  9669. return;
  9670. }
  9671. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9672. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9673. } else {
  9674. document.querySelectorAll(".rightBox")[0].scrollTop =
  9675. document.querySelectorAll(".taskBorder")[i].offsetTop +
  9676. document.querySelectorAll(".taskBorder")[i].parentElement.parentElement.offsetTop;
  9677. this.isClickColor = i + 1;
  9678. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9679. }
  9680. this.$forceUpdate();
  9681. },
  9682. taskMove(type, index) {
  9683. // this
  9684. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9685. // confirmButtonText: "确定",
  9686. // cancelButtonText: "取消",
  9687. // type: "warning",
  9688. // })
  9689. // .then(() => {
  9690. if (type == 1) {
  9691. if (index > 0) {
  9692. let a = JSON.parse(
  9693. JSON.stringify(
  9694. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9695. )
  9696. );
  9697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9699. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9700. }
  9701. } else {
  9702. if (
  9703. index <
  9704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9705. ) {
  9706. let a = JSON.parse(
  9707. JSON.stringify(
  9708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9709. )
  9710. );
  9711. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9714. }
  9715. }
  9716. this.$forceUpdate();
  9717. // })
  9718. // .catch(() => {
  9719. // return;
  9720. // })
  9721. },
  9722. addGroup(i) {
  9723. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9724. this.groupJson.group.push({
  9725. name: "第" + (this.groupJson.group.length + 1) + "组",
  9726. });
  9727. },
  9728. deleteGroup(i) {
  9729. this.groupJson.group.splice(i, 1);
  9730. },
  9731. numberPan() {
  9732. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9733. this.$message.error('请输入2-10的数字')
  9734. this.groupJson.number = ''
  9735. }
  9736. },
  9737. addGroupJson() {
  9738. for (var i = 0; i < this.groupJson.group.length; i++) {
  9739. if (!this.groupJson.group[i].name) {
  9740. this.$message.error("请将信息填写完整!");
  9741. return;
  9742. }
  9743. }
  9744. if (!this.groupJson.number) {
  9745. this.$message.error("请将信息填写完整!");
  9746. return;
  9747. }
  9748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9749. this.taskCount
  9750. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9751. JSON.stringify(this.groupJson)
  9752. );
  9753. this.dialogVisibleGroup = false;
  9754. this.groupJson = {};
  9755. if (
  9756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9757. .toolChoose[this.toolIndex].tool != 49
  9758. ) {
  9759. this.addTools(49, this.taskCount, this.toolIndex);
  9760. }
  9761. },
  9762. updateTime(preTime) {
  9763. this.preTime = preTime;
  9764. },
  9765. InviteChange(val) {
  9766. console.log(val);
  9767. let _check = []
  9768. let _check2 = []
  9769. for (var i = 0; i < this.grade2.length; i++) {
  9770. var gid = this.grade2[i].id
  9771. _check.push(gid)
  9772. }
  9773. for (var i = 0; i < this.checkboxList2.length; i++) {
  9774. var _id = this.checkboxList2[i]
  9775. if (_check.indexOf(_id) !== -1) {
  9776. _check2.push(_id)
  9777. }
  9778. }
  9779. this.checkAll = _check2.length === _check.length;
  9780. return;
  9781. let array = JSON.parse(JSON.stringify(val));
  9782. this.inviteCode = this.inviteCode.filter((el) => {
  9783. if (val.indexOf(el.cid) != -1) {
  9784. array.splice(array.indexOf(el.cid), 1);
  9785. return el;
  9786. }
  9787. });
  9788. for (var i = 0; i < array.length; i++) {
  9789. this.getInviteCode(array[i]);
  9790. }
  9791. },
  9792. handleCheckAllChange(val) {
  9793. if (val) {
  9794. for (var i = 0; i < this.grade2.length; i++) {
  9795. var gid = this.grade2[i].id
  9796. if (this.checkboxList2.indexOf(gid) === -1) {
  9797. this.checkboxList2.push(gid)
  9798. }
  9799. }
  9800. } else {
  9801. let _check = []
  9802. let _check2 = []
  9803. for (var i = 0; i < this.grade2.length; i++) {
  9804. var gid = this.grade2[i].id
  9805. _check.push(gid)
  9806. }
  9807. for (var i = 0; i < this.checkboxList2.length; i++) {
  9808. var _id = this.checkboxList2[i]
  9809. if (_check.indexOf(_id) === -1) {
  9810. _check2.push(_id)
  9811. }
  9812. }
  9813. this.checkboxList2 = _check2
  9814. }
  9815. this.isIndeterminate = false;
  9816. },
  9817. async getInviteCode(cid) {
  9818. let code = this.randomNumber();
  9819. let params = {
  9820. code: code,
  9821. oid: this.oid,
  9822. };
  9823. let type = 1;
  9824. for (var i = 0; i < this.inviteCode.length; i++) {
  9825. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9826. type = 2;
  9827. }
  9828. }
  9829. if (type == 2) {
  9830. this.getInviteCode(cid);
  9831. return;
  9832. }
  9833. const res = await this.ajax.get(
  9834. this.$store.state.api + "selectInviteCode2",
  9835. params
  9836. );
  9837. if (
  9838. res.data.length &&
  9839. res.data[0].length &&
  9840. res.data[0][0].courseId != this.cid
  9841. ) {
  9842. this.getInviteCode(cid);
  9843. return;
  9844. }
  9845. let array = [];
  9846. for (var i = 0; i < this.inviteCode.length; i++) {
  9847. array.push(this.inviteCode[i].cid);
  9848. }
  9849. if (array.indexOf(cid) != -1) {
  9850. this.inviteCode[array.indexOf(cid)].ic = code;
  9851. } else {
  9852. this.inviteCode.push({ cid: cid, ic: code });
  9853. }
  9854. },
  9855. OpenInviteD(cid) {
  9856. let array = [];
  9857. this.icode = "";
  9858. for (var i = 0; i < this.inviteCode.length; i++) {
  9859. array.push(this.inviteCode[i].cid);
  9860. }
  9861. if (array.indexOf(cid) != -1) {
  9862. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9863. }
  9864. this.inviteId = cid;
  9865. this.dialogVisibleInvite = true;
  9866. },
  9867. addInvite() {
  9868. let reg = /^[A-Za-z0-9]{4,}$/;
  9869. if (!reg.test(this.icode)) {
  9870. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9871. return;
  9872. }
  9873. let type = 1;
  9874. for (var i = 0; i < this.inviteCode.length; i++) {
  9875. if (
  9876. this.inviteCode[i].cid != this.inviteId &&
  9877. this.icode == this.inviteCode[i].ic
  9878. ) {
  9879. type = 2;
  9880. }
  9881. }
  9882. if (type == 2) {
  9883. this.$message.error("已有此随机码,不能重复");
  9884. return;
  9885. }
  9886. let params = {
  9887. code: this.icode,
  9888. oid: this.oid,
  9889. };
  9890. this.ajax
  9891. .get(this.$store.state.api + "selectInviteCode", params)
  9892. .then((res) => {
  9893. if (
  9894. res.data.length &&
  9895. res.data[0].length &&
  9896. res.data[0][0].courseId != this.cid
  9897. ) {
  9898. this.$message.error("已有此随机码,不能重复");
  9899. return;
  9900. }
  9901. let array = [];
  9902. for (var i = 0; i < this.inviteCode.length; i++) {
  9903. array.push(this.inviteCode[i].cid);
  9904. }
  9905. if (array.indexOf(this.inviteId) != -1) {
  9906. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9907. } else {
  9908. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9909. }
  9910. this.icode = "";
  9911. this.dialogVisibleInvite = false;
  9912. })
  9913. .catch((err) => {
  9914. console.error(err);
  9915. });
  9916. },
  9917. randomNumber() {
  9918. // 随机生成两位数
  9919. // let num = Math.floor(Math.random() * 900) + 100;
  9920. // 生成 0 到 99 之间的随机整数
  9921. const randomNumber = Math.floor(Math.random() * 100);
  9922. // 如果随机数小于 10,补上前导零
  9923. const num =
  9924. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9925. // 随机生成两个大写字母
  9926. let letters = "";
  9927. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9928. for (let i = 0; i < 3; i++) {
  9929. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9930. }
  9931. // 随机生成两位数字和字母的组合
  9932. let mix = "";
  9933. let chars =
  9934. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9935. for (let i = 0; i < 3; i++) {
  9936. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9937. mix += char;
  9938. }
  9939. // 随机选择一种类型
  9940. let type = Math.floor(Math.random() * 3);
  9941. return num;
  9942. // 根据类型输出结果
  9943. switch (type) {
  9944. case 0:
  9945. console.log(num); // 输出两位数
  9946. return num;
  9947. case 1:
  9948. console.log(letters); // 输出两个大写字母
  9949. return letters;
  9950. case 2:
  9951. console.log(mix); // 输出两位数字和字母的组合
  9952. return mix;
  9953. }
  9954. },
  9955. getPaste() {
  9956. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9957. if (!iframe) {
  9958. return;
  9959. }
  9960. let copyData = iframe.contentWindow.copyData;
  9961. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9962. // this.isPasteStage = true
  9963. // }
  9964. if (copyData && copyData.selectData.length) {
  9965. this.isPasteChoice = true
  9966. }
  9967. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9968. this.isPasteTask = true
  9969. }
  9970. },
  9971. searchImage() {
  9972. var _this = this;
  9973. _this.imageList = []
  9974. if (!_this.searchImageValue) {
  9975. _this.sysPicVisible2 = true
  9976. return
  9977. }
  9978. _this.imageloading = true
  9979. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9980. page: _this.ppage,
  9981. pagesize: 9,
  9982. query: _this.searchImageValue
  9983. }).then(function (response) {
  9984. // console.log(response.data.data);
  9985. var data = response.data.FunctionResponse.result;
  9986. for (var i = 0; i < data.length; i++) {
  9987. _this.imageList.push({ url: data[i].thumbnail })
  9988. }
  9989. _this.imageloading = false
  9990. }).catch(function (error) {
  9991. console.log(error);
  9992. });
  9993. _this.sysPicVisible2 = true
  9994. },
  9995. changePicture() {
  9996. this.ppage++
  9997. this.searchImage()
  9998. },
  9999. resetImage() {
  10000. this.ppage = 1
  10001. this.searchImage()
  10002. },
  10003. jumpGj(i, j) {
  10004. if ((i + 1) != this.isClickColor) {
  10005. this.isClickColor = (i + 1)
  10006. }
  10007. var a = document.scrollingElement;
  10008. this.toolIndexType = `gj${i}${j}`
  10009. let target = document.querySelector(`#gj${i}${j}`);
  10010. if (target) {
  10011. target.scrollIntoView(true);
  10012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  10013. // setTimeout(() => {
  10014. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  10015. // }, 0);
  10016. }
  10017. },
  10018. dragStart(val, i, j) {
  10019. this.taskCount = j
  10020. this.oldIndex = i;
  10021. this.oldData = val;
  10022. },
  10023. dragOver(i) {
  10024. this.newIndex = i;
  10025. },
  10026. dragEnd() {
  10027. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  10028. // 删除老的节点
  10029. newItems.splice(this.oldIndex, 1);
  10030. // 在列表中目标位置增加新的节点
  10031. newItems.splice(this.newIndex, 0, this.oldData);
  10032. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  10033. this.newIndex = "";
  10034. this.$forceUpdate()
  10035. },
  10036. dragTaskStart(val, i) {
  10037. this.oldIndex = i;
  10038. this.oldData = val;
  10039. },
  10040. dragTaskOver(i) {
  10041. this.newIndex = i;
  10042. },
  10043. dragTaskEnd() {
  10044. if(this.newIndex == this.oldIndex){
  10045. return;
  10046. }
  10047. this.$confirm(
  10048. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10049. "提示",
  10050. {
  10051. confirmButtonText: "确定",
  10052. cancelButtonText: "取消",
  10053. type: "warning",
  10054. }
  10055. )
  10056. .then(() => {
  10057. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  10058. // 删除老的节点
  10059. newItems.splice(this.oldIndex, 1);
  10060. // 在列表中目标位置增加新的节点
  10061. newItems.splice(this.newIndex, 0, this.oldData);
  10062. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  10063. this.newIndex = "";
  10064. this.$forceUpdate()
  10065. })
  10066. .catch(() => {
  10067. this.newIndex = "";
  10068. return;
  10069. });
  10070. },
  10071. },
  10072. beforeDestroy() {
  10073. clearTimeout(this.timer);
  10074. this.timer = null;
  10075. clearInterval(this.timer2);
  10076. this.timer2 = null;
  10077. clearInterval(this.pasteTimer);
  10078. this.pasteTimer = null;
  10079. },
  10080. beforeRouteLeave(to, from, next) {
  10081. clearTimeout(this.timer);
  10082. this.timer = null;
  10083. clearInterval(this.timer2);
  10084. this.timer2 = null;
  10085. clearInterval(this.pasteTimer);
  10086. this.pasteTimer = null;
  10087. next();
  10088. },
  10089. created() {
  10090. this.getStudent();
  10091. this.getTeacher();
  10092. this.getClass();
  10093. this.selectGrage();
  10094. this.getTemplate();
  10095. // this.selectType();
  10096. this.selectEva();
  10097. this.loading = false;
  10098. this.timer2 = setInterval(() => {
  10099. this.selectEva();
  10100. }, 5000);
  10101. this.pasteTimer = setInterval(() => {
  10102. this.getPaste();
  10103. }, 1000);
  10104. setTimeout(() => {
  10105. this.selectCourseDetail();
  10106. }, 500);
  10107. },
  10108. mounted() {
  10109. this.$nextTick(() => {
  10110. //监听这个dom的scroll事件
  10111. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  10112. this.heightPx = $(".rightBox")[0].offsetHeight + 'px';
  10113. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  10114. this.$forceUpdate();
  10115. });
  10116. },
  10117. };
  10118. </script>
  10119. <style scoped>
  10120. @media screen and (max-width: 1280px) {
  10121. .mbCss {
  10122. flex-direction: column !important;
  10123. }
  10124. .pjCss {
  10125. width: 100% !important;
  10126. }
  10127. .evaCss {
  10128. width: 100% !important;
  10129. }
  10130. }
  10131. .dialog_diy>>>.el-dialog__header {
  10132. background: #3c3c3c !important;
  10133. padding: 15px 20px;
  10134. }
  10135. .dialog_diy>>>.el-dialog__title {
  10136. color: #fff;
  10137. }
  10138. .dialog_diy>>>.el-dialog__headerbtn {
  10139. top: 19px;
  10140. }
  10141. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10142. color: #fff;
  10143. }
  10144. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10145. color: #fff;
  10146. }
  10147. .dialog_diy>>>.el-dialog__body,
  10148. .dialog_diy>>>.el-dialog__footer {
  10149. background: #fafafa;
  10150. }
  10151. .dialog_diy3>>>.el-dialog__body,
  10152. .dialog_diy3>>>.el-dialog__footer {
  10153. background: #eee !important;
  10154. }
  10155. .dialog_diy3>>>.el-dialog__body {
  10156. padding: 20px 20px;
  10157. }
  10158. .source_diy>>>.el-dialog {
  10159. height: 100% !important;
  10160. margin: 0 auto !important;
  10161. }
  10162. .source_diy>>>.el-dialog__body {
  10163. height: calc(100% - 185px);
  10164. overflow: auto;
  10165. background: #e6eaf0;
  10166. }
  10167. .source_diy>>>.el-dialog__footer {
  10168. background: #e6eaf0 !important;
  10169. }
  10170. .left {
  10171. border-right: 1px solid rgb(60, 94, 143);
  10172. display: flex;
  10173. flex-direction: column;
  10174. align-items: center;
  10175. min-height: 600px;
  10176. width: 385px;
  10177. height: 80%;
  10178. }
  10179. .tips {
  10180. color: rgb(128, 128, 128);
  10181. font-size: 12px;
  10182. width: 270px;
  10183. margin: 40px;
  10184. }
  10185. .pb_content {
  10186. height: 100% !important;
  10187. /* margin: 0 20px 0 20px; */
  10188. }
  10189. .pb_content_body {
  10190. width: 100% !important;
  10191. height: 100%;
  10192. }
  10193. .info_solid {
  10194. width: 270px;
  10195. height: 30px;
  10196. border-left: 1px solid #bdbdbd;
  10197. margin: 10px 0px 10px 30px;
  10198. }
  10199. .info_steps {
  10200. width: 270px;
  10201. font-size: 0.875rem;
  10202. display: flex;
  10203. align-items: center;
  10204. }
  10205. .info_steps span:nth-child(1) {
  10206. width: 30px;
  10207. height: 30px;
  10208. background: rgba(0, 0, 0, 0.38);
  10209. display: block;
  10210. color: #fff;
  10211. border-radius: 40px;
  10212. text-align: center;
  10213. line-height: 30px;
  10214. }
  10215. .steps_active {
  10216. background: #3d67bc !important;
  10217. }
  10218. .info_steps span:nth-child(2) {
  10219. margin-left: 5px;
  10220. }
  10221. .right {
  10222. height: 100%;
  10223. width: calc(100% - 40px);
  10224. display: flex;
  10225. overflow: hidden;
  10226. margin: 0 auto;
  10227. }
  10228. .basic_box {
  10229. margin: 0 auto;
  10230. position: relative;
  10231. padding: 0 20px 0 20px;
  10232. }
  10233. .basic_box2 {
  10234. position: relative;
  10235. width: calc(100% - 300px);
  10236. }
  10237. .basic_box_success {
  10238. width: 100%;
  10239. height: 100%;
  10240. padding: 50px 0;
  10241. position: relative;
  10242. text-align: center;
  10243. /* border-bottom: 1px solid #bfbfbf; */
  10244. box-sizing: border-box;
  10245. display: flex;
  10246. align-items: center;
  10247. flex-direction: column;
  10248. justify-content: center;
  10249. }
  10250. .info_title {
  10251. font-size: 1.5em;
  10252. margin-right: 25px;
  10253. /* margin: 20px 30px 20px 30px; */
  10254. }
  10255. .bInfo_title {
  10256. text-align: left;
  10257. margin: 10px 0;
  10258. }
  10259. .small_title {
  10260. font-size: 14px;
  10261. line-height: 40px;
  10262. }
  10263. .chapter_beizhu {
  10264. font-size: 12px;
  10265. font-weight: bold;
  10266. float: right;
  10267. color: rgb(128, 128, 128);
  10268. margin-top: 5px;
  10269. }
  10270. .chapter_uploadBox1 {
  10271. text-align: left;
  10272. background-color: rgb(242, 242, 242);
  10273. width: 100%;
  10274. height: 67px;
  10275. padding: 0px 15px;
  10276. border-radius: 8px;
  10277. overflow: hidden;
  10278. font-size: 16px;
  10279. box-sizing: border-box;
  10280. position: relative;
  10281. }
  10282. .chapter_add {
  10283. width: 100%;
  10284. height: 32px;
  10285. margin-top: 15px;
  10286. cursor: pointer;
  10287. }
  10288. .chapter_add_l {
  10289. margin-left: 5px;
  10290. width: 30px;
  10291. height: 30px;
  10292. float: left;
  10293. border: 1px solid #aaa;
  10294. color: #aaa;
  10295. border-radius: 50%;
  10296. font-size: 25px;
  10297. text-align: center;
  10298. }
  10299. .chapter_add_r {
  10300. font-size: 18px;
  10301. height: 40px;
  10302. line-height: 30px;
  10303. text-indent: 10px;
  10304. color: #aaa;
  10305. }
  10306. .chapter_add_r span {
  10307. font-size: 12px;
  10308. color: rgb(204, 204, 204);
  10309. }
  10310. .chapter_add_input {
  10311. display: none;
  10312. }
  10313. .line {
  10314. width: 85%;
  10315. margin: 0 auto;
  10316. border-top: 1px solid #e5e5e5;
  10317. margin-top: 20px;
  10318. }
  10319. .info_btnBox {
  10320. width: calc(100%);
  10321. display: flex;
  10322. justify-content: center;
  10323. height: 70px;
  10324. align-items: center;
  10325. background: #fff;
  10326. margin: 0 auto;
  10327. border-top: 2px solid rgb(228, 232, 237);
  10328. box-sizing: border-box;
  10329. border-radius: 0px 0 5px 5px;
  10330. }
  10331. .info_btnBox2 {
  10332. width: calc(100%);
  10333. display: flex;
  10334. justify-content: center;
  10335. height: 20px;
  10336. align-items: center;
  10337. background: #fff;
  10338. margin: 0 auto;
  10339. border-top: 2px solid rgb(228, 232, 237);
  10340. box-sizing: border-box;
  10341. overflow: hidden;
  10342. cursor: pointer;
  10343. }
  10344. .info_btnBox3 {
  10345. width: calc(100%);
  10346. display: flex;
  10347. justify-content: flex-end;
  10348. padding: 0 20px;
  10349. height: 60px;
  10350. align-items: center;
  10351. background: unset;
  10352. margin: 0 auto;
  10353. /* border-top: 1px solid rgb(228, 232, 237); */
  10354. box-sizing: border-box;
  10355. overflow: hidden;
  10356. cursor: pointer;
  10357. background: #fff;
  10358. border-radius: 10px;
  10359. }
  10360. .info_btn+.info_btn {
  10361. margin-left: 15px;
  10362. }
  10363. .info_btn,
  10364. .teacherWord {
  10365. color: #fff;
  10366. background-color: #0f7eff;
  10367. padding: 8px 24px;
  10368. font-size: 0.9375rem;
  10369. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10370. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10371. min-width: 64px;
  10372. font-weight: 500;
  10373. border-radius: 4px;
  10374. box-sizing: border-box;
  10375. border: none;
  10376. cursor: pointer;
  10377. }
  10378. .teacherWord {
  10379. width: 105px !important;
  10380. text-align: center !important;
  10381. line-height: 36px !important;
  10382. padding: 0 !important;
  10383. font-size: 14px !important;
  10384. margin: 10px 0 !important;
  10385. }
  10386. .wordTeacher {
  10387. display: flex;
  10388. flex-direction: column;
  10389. width: 20%;
  10390. text-align: center;
  10391. font-size: 14px;
  10392. margin: 30px 30px 0 10px;
  10393. background: #fff;
  10394. position: relative;
  10395. border-radius: 5px;
  10396. padding: 25px 0px;
  10397. }
  10398. .wordPic {
  10399. margin: 0 auto;
  10400. width: 60px;
  10401. height: 60px;
  10402. cursor: pointer;
  10403. }
  10404. .deleteWord {
  10405. width: 22px;
  10406. height: 22px;
  10407. position: absolute;
  10408. right: 5px;
  10409. top: -15px;
  10410. cursor: pointer;
  10411. display: none;
  10412. z-index: 999;
  10413. }
  10414. .wordPic>img,
  10415. .deleteWord>img,
  10416. .addToolImg>img {
  10417. width: 100%;
  10418. height: 100%;
  10419. }
  10420. .info_btn:hover {
  10421. background-color: #4f7cd5 !important;
  10422. }
  10423. .cru_selectBox {
  10424. display: flex;
  10425. margin: 24px 0 10px;
  10426. flex-wrap: nowrap;
  10427. white-space: nowrap;
  10428. overflow: auto;
  10429. position: relative;
  10430. height: 47px;
  10431. }
  10432. .cru_selectBox::-webkit-scrollbar {
  10433. /*滚动条整体样式*/
  10434. width: 6px;
  10435. /*高宽分别对应横竖滚动条的尺寸*/
  10436. height: 6px;
  10437. }
  10438. /*定义滚动条轨道 内阴影+圆角*/
  10439. .cru_selectBox::-webkit-scrollbar-track {
  10440. border-radius: 10px;
  10441. background-color: #eee;
  10442. }
  10443. /*定义滑块 内阴影+圆角*/
  10444. .cru_selectBox::-webkit-scrollbar-thumb {
  10445. border-radius: 10px;
  10446. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10447. background-color: rgba(0, 0, 0, 0.1);
  10448. }
  10449. .cru_line {
  10450. position: absolute;
  10451. bottom: 0px;
  10452. transition: all 0.5s;
  10453. left: 0px;
  10454. width: 125px;
  10455. margin-left: -25px;
  10456. }
  10457. .cru_select {
  10458. font-size: 21px;
  10459. margin-right: 37px;
  10460. margin-left: 5px;
  10461. cursor: pointer;
  10462. color: #a6a6a6;
  10463. }
  10464. .cru_selected {
  10465. color: #0b7fc2 !important;
  10466. }
  10467. .chapter_contentbox {
  10468. display: flex;
  10469. align-items: center;
  10470. margin-top: 15px;
  10471. }
  10472. .chapter_contentbox .cc_title {
  10473. margin: 0px;
  10474. color: black;
  10475. display: block;
  10476. white-space: nowrap;
  10477. overflow: hidden;
  10478. text-overflow: ellipsis;
  10479. margin-right: 20px;
  10480. font-size: 18px;
  10481. height: 20px;
  10482. line-height: 22px;
  10483. min-width: fit-content;
  10484. display: flex;
  10485. }
  10486. .chapter_contentbox .cc_title::before {
  10487. content: '';
  10488. height: 100%;
  10489. width: 3px;
  10490. background: #3681FC;
  10491. border-radius: 3px;
  10492. opacity: 1;
  10493. display: block;
  10494. margin-right: 10px;
  10495. }
  10496. .chapter_contentbox .cc_input {
  10497. width: 100%;
  10498. display: flex;
  10499. }
  10500. .show_taskD {
  10501. min-width: fit-content;
  10502. margin-left: 10px;
  10503. display: flex;
  10504. align-items: center;
  10505. font-size: 14px;
  10506. cursor: pointer;
  10507. color: #717C8D;
  10508. }
  10509. .show_taskD>img {
  10510. width: 15px;
  10511. margin-right: 5px;
  10512. transition: .2s all;
  10513. transform: rotate(-90deg);
  10514. }
  10515. .show_taskD.show>img {
  10516. transform: rotate(0deg);
  10517. }
  10518. .show_toolD {
  10519. min-width: fit-content;
  10520. margin-left: 10px;
  10521. display: flex;
  10522. align-items: center;
  10523. font-size: 14px;
  10524. cursor: pointer;
  10525. color: #717C8D;
  10526. position: absolute;
  10527. right: 45px;
  10528. top: 5px;
  10529. }
  10530. .show_toolD>img {
  10531. width: 15px;
  10532. margin-right: 5px;
  10533. transition: .2s all;
  10534. transform: rotate(-90deg);
  10535. }
  10536. .show_toolD.show>img {
  10537. transform: rotate(0deg);
  10538. }
  10539. .remove {
  10540. background-image: url("../../../assets/icon/new/delete_u.png");
  10541. cursor: pointer;
  10542. opacity: 0.5;
  10543. width: 30px;
  10544. min-width: 30px;
  10545. height: 30px;
  10546. background-size: 100% 100%;
  10547. background-repeat: no-repeat;
  10548. margin-left: 10px;
  10549. }
  10550. .remove1 {
  10551. background-image: url("../../../assets/remove1.png");
  10552. background-repeat: no-repeat;
  10553. background-position: 5px 10px;
  10554. width: 40px;
  10555. height: 50px;
  10556. cursor: pointer;
  10557. margin-left: 10px;
  10558. }
  10559. .binfo_input {
  10560. width: 100%;
  10561. margin: 0;
  10562. padding: 12px 14px;
  10563. display: block;
  10564. min-width: 0;
  10565. outline: none;
  10566. box-sizing: border-box;
  10567. background: none;
  10568. border: none;
  10569. border-radius: 4px;
  10570. background: #fff;
  10571. font-size: 16px;
  10572. resize: none;
  10573. font-family: 'Microsoft YaHei';
  10574. min-height: 48px;
  10575. /* border: 1px solid #3682fc00; */
  10576. border: 1.5px solid #CAD1DC;
  10577. }
  10578. .binfo_textarea {
  10579. border: 1.5px solid #CAD1DC;
  10580. font-size: 16px;
  10581. resize: none;
  10582. background: #f6f6f6;
  10583. font-family: 'Microsoft YaHei';
  10584. }
  10585. .binfo_input:focus-visible {
  10586. border: 1.5px solid #3681FC !important;
  10587. }
  10588. .time {
  10589. display: flex;
  10590. margin: 35px 0 80px 0;
  10591. }
  10592. .chapter_btnbox {
  10593. width: 160px;
  10594. border-radius: 5px;
  10595. border: 2px dashed gray;
  10596. display: flex;
  10597. padding: 8px 50px;
  10598. align-items: center;
  10599. justify-content: center;
  10600. margin: 30px auto 0;
  10601. cursor: pointer;
  10602. }
  10603. .icon_add {
  10604. position: relative;
  10605. width: 24px;
  10606. padding-top: 20px;
  10607. border-radius: 100%;
  10608. border-width: 2px;
  10609. border-style: solid;
  10610. border-color: gray;
  10611. }
  10612. .icon_add i:nth-child(1) {
  10613. position: absolute;
  10614. left: 50%;
  10615. top: 50%;
  10616. height: 60%;
  10617. transform: translate(-50%, -50%);
  10618. border-width: 1px;
  10619. border-style: solid;
  10620. border-color: inherit;
  10621. }
  10622. .icon_add i:nth-child(2) {
  10623. position: absolute;
  10624. top: 50%;
  10625. left: 50%;
  10626. width: 60%;
  10627. transform: translate(-50%, -50%);
  10628. border-width: 1px;
  10629. border-style: solid;
  10630. border-color: inherit;
  10631. }
  10632. .chapter_btn_w {
  10633. font-size: 0.9375rem;
  10634. font-weight: bold;
  10635. color: gray;
  10636. margin-left: 20px;
  10637. }
  10638. .disUoloadSty>>>.el-icon-plus {
  10639. display: none !important;
  10640. /* 上传按钮隐藏 */
  10641. }
  10642. .imgLeft {
  10643. margin: 15px 0;
  10644. }
  10645. .add_info_box {
  10646. margin: 0 0 0 auto;
  10647. display: flex;
  10648. flex-wrap: wrap;
  10649. }
  10650. .add_info_box button {
  10651. margin: 0 5px 10px 0;
  10652. }
  10653. .add_info_box2 {
  10654. display: flex;
  10655. align-items: center;
  10656. flex-wrap: wrap;
  10657. }
  10658. .add_info_box2::after {
  10659. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10660. color: red;
  10661. font-size: 14px;
  10662. margin-bottom: 10px;
  10663. }
  10664. .add_chapters_box {
  10665. text-align: left;
  10666. background-color: #fff;
  10667. width: 100%;
  10668. border-radius: 4px;
  10669. font-size: 16px;
  10670. box-sizing: border-box;
  10671. position: relative;
  10672. padding: 0 15px;
  10673. height: auto;
  10674. overflow-y: auto;
  10675. overflow-x: hidden;
  10676. border: 1px solid #CAD1DC;
  10677. }
  10678. .add_chapters_box.add_c_none {
  10679. display: flex;
  10680. justify-content: center;
  10681. align-items: center;
  10682. padding: 15px;
  10683. }
  10684. .add_c_none>img {
  10685. width: 25px;
  10686. }
  10687. .add_chapters_box.add_c_none>span {
  10688. font-size: 14px;
  10689. font-weight: 400;
  10690. margin: 0 0 5px 5px;
  10691. }
  10692. .homework_box {
  10693. display: flex;
  10694. align-items: flex-start;
  10695. flex-wrap: wrap;
  10696. margin: 15px 0 0 0;
  10697. flex-direction: column;
  10698. align-content: flex-start;
  10699. }
  10700. .course_homework {
  10701. display: flex;
  10702. justify-content: center;
  10703. flex-direction: row;
  10704. align-items: center;
  10705. margin: 0 10px 0 0;
  10706. }
  10707. .course_homework>>>.el-input__inner {
  10708. width: 140px;
  10709. margin-left: 15px;
  10710. }
  10711. .chapter_upload_move {
  10712. position: relative;
  10713. background-color: #fff;
  10714. position: absolute;
  10715. width: 100%;
  10716. top: 0px;
  10717. left: 0px;
  10718. border: 1px solid #eee;
  10719. border-radius: 5px;
  10720. transition: width 2s;
  10721. -moz-transition: width 2s;
  10722. -webkit-transition: width 2s;
  10723. -o-transition: width 2s;
  10724. }
  10725. .chapter_upload_l_i {
  10726. background-image: url("../../../assets/icon.png");
  10727. background-position: 3px -165px;
  10728. width: 30px;
  10729. height: 30px;
  10730. margin: 10px auto 0 auto;
  10731. }
  10732. .course_input_box {
  10733. display: flex;
  10734. margin-right: 20px;
  10735. width: 100%;
  10736. align-items: center;
  10737. position: relative;
  10738. }
  10739. .course_input_box>.binfo_input {
  10740. width: calc(100% - 0 - 200px - 20px);
  10741. margin: 0 10px;
  10742. }
  10743. .bb_courseIcon {
  10744. width: 57px;
  10745. height: 45px;
  10746. background: #F0F4FA;
  10747. border-radius: 5px 0px 0px 5px;
  10748. display: flex;
  10749. align-items: center;
  10750. justify-content: center;
  10751. border-right: 1.5px solid rgb(202, 209, 220);
  10752. box-sizing: border-box;
  10753. position: absolute;
  10754. left: 1.5px
  10755. }
  10756. .bb_courseIcon>img {
  10757. width: 25px;
  10758. height: auto
  10759. }
  10760. .big_box {
  10761. /* margin-top: 20px; */
  10762. display: flex;
  10763. justify-content: space-between;
  10764. /* border-bottom: 1px solid #E0E2ED; */
  10765. }
  10766. .left_first {
  10767. display: flex;
  10768. flex-direction: column;
  10769. flex-wrap: nowrap;
  10770. width: calc(100% - 310px);
  10771. padding: 20px;
  10772. box-sizing: border-box;
  10773. background: #fff;
  10774. border-radius: 5px;
  10775. }
  10776. .right_first {
  10777. width: 300px;
  10778. display: flex;
  10779. align-items: center;
  10780. justify-content: center;
  10781. /* border-left: 1px solid #E0E2ED; */
  10782. box-sizing: border-box;
  10783. padding: 20px;
  10784. flex-direction: column;
  10785. background: #fff;
  10786. border-radius: 5px;
  10787. }
  10788. .ai_box {
  10789. width: 204px;
  10790. display: flex;
  10791. justify-content: flex-end;
  10792. margin-bottom: 15px;
  10793. }
  10794. .ai_content {
  10795. display: flex;
  10796. align-items: center;
  10797. font-size: 14px;
  10798. padding: 7px 20px;
  10799. box-sizing: border-box;
  10800. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10801. border-radius: 12px;
  10802. font-weight: 700;
  10803. cursor: pointer;
  10804. }
  10805. .ai_content>img {
  10806. width: 40px;
  10807. margin-right: 5px;
  10808. }
  10809. .c_info_title {
  10810. padding: 15px 0 15px 0;
  10811. font-size: 16px;
  10812. font-weight: bold;
  10813. margin: 0 0 0 20px;
  10814. box-sizing: border-box;
  10815. display: flex;
  10816. align-items: center;
  10817. line-height: 20px;
  10818. }
  10819. .c_info_title::before {
  10820. content: '';
  10821. display: block;
  10822. width: 3px;
  10823. height: 20px;
  10824. background: #0061FF;
  10825. border-radius: 3px;
  10826. margin: 0 5px 0 0;
  10827. }
  10828. .right_title {
  10829. /* height: 30px; */
  10830. padding: 0 20px;
  10831. font-size: 18px;
  10832. font-weight: bold;
  10833. /* color: #0f7eff; */
  10834. margin: 20px auto 0;
  10835. display: flex;
  10836. /* justify-content: space-between; */
  10837. align-items: center;
  10838. }
  10839. .people {
  10840. border: 1px solid rgb(229 229 229);
  10841. height: 495px;
  10842. border-radius: 5px;
  10843. width: 100%;
  10844. overflow: auto;
  10845. }
  10846. .people_top {
  10847. display: flex;
  10848. width: 100%;
  10849. /* justify-content: space-between; */
  10850. /* align-items: center; */
  10851. flex-direction: column;
  10852. padding: 10px 10px 0;
  10853. box-sizing: border-box;
  10854. }
  10855. .people_nav,
  10856. .people_top_right {
  10857. /* padding: 20px 0 0 20px; */
  10858. }
  10859. .people_top_right {
  10860. height: 40px;
  10861. margin-bottom: 10px;
  10862. }
  10863. .people_search {
  10864. display: flex;
  10865. position: relative;
  10866. }
  10867. .people_search>>>.el-input__inner {
  10868. /* height: 25px; */
  10869. width: 95%;
  10870. }
  10871. .search_img {
  10872. width: 20px;
  10873. height: 20px;
  10874. position: absolute;
  10875. right: 30px;
  10876. top: 50%;
  10877. transform: translateY(-50%);
  10878. }
  10879. .search_img>img {
  10880. width: 100%;
  10881. height: 100%;
  10882. }
  10883. .people_name {
  10884. display: flex;
  10885. justify-content: flex-start;
  10886. padding: 20px 10px;
  10887. flex-direction: column;
  10888. flex-wrap: wrap;
  10889. }
  10890. .p_box {
  10891. position: relative;
  10892. }
  10893. .people_name>>>.el-checkbox {
  10894. width: 100%;
  10895. display: flex;
  10896. align-items: center;
  10897. margin-bottom: 10px;
  10898. }
  10899. .people_name>>>.el-checkbox__label {
  10900. text-overflow: ellipsis;
  10901. overflow: hidden;
  10902. width: calc(100%);
  10903. }
  10904. .people_name2>>>.el-checkbox__label {
  10905. width: calc(100% - 130px);
  10906. }
  10907. .inviteCode {
  10908. position: absolute;
  10909. right: 30px;
  10910. color: #237ade;
  10911. top: 0;
  10912. cursor: pointer;
  10913. font-size: 13px;
  10914. }
  10915. .noneInvite {
  10916. color: #a8a8a8;
  10917. }
  10918. .inviteImg {
  10919. position: absolute;
  10920. right: 5px;
  10921. top: 0;
  10922. width: 20px;
  10923. }
  10924. .right_img {
  10925. width: 150px;
  10926. height: 150px;
  10927. margin: 20px auto;
  10928. }
  10929. .right_img>img {
  10930. width: 100%;
  10931. height: 100%;
  10932. }
  10933. .number {
  10934. margin-top: 20px;
  10935. color: #4aa6ff;
  10936. text-decoration: underline;
  10937. }
  10938. .success_button {
  10939. display: flex;
  10940. text-align: center;
  10941. margin: 5% 0 auto;
  10942. flex-direction: row;
  10943. justify-content: center;
  10944. }
  10945. .look_course {
  10946. margin-right: 40px;
  10947. background: #3d67bc;
  10948. width: 200px;
  10949. height: 35px;
  10950. line-height: 35px;
  10951. color: #fff;
  10952. text-align: center;
  10953. font-size: 14px;
  10954. border-radius: 5px;
  10955. cursor: pointer;
  10956. }
  10957. .attend_others {
  10958. width: 250px;
  10959. background: #4fb13c;
  10960. height: 35px;
  10961. line-height: 35px;
  10962. color: #fff;
  10963. text-align: center;
  10964. font-size: 14px;
  10965. border-radius: 5px;
  10966. cursor: pointer;
  10967. }
  10968. .dialog_diy2>>>.el-dialog__body {
  10969. text-align: center;
  10970. }
  10971. .write_togother {
  10972. position: absolute;
  10973. right: 45px;
  10974. display: flex;
  10975. top: 5%;
  10976. }
  10977. .write_people {
  10978. font-size: 14px;
  10979. line-height: 50px;
  10980. padding-right: 10px;
  10981. }
  10982. .end_write {
  10983. background: #3d67bc;
  10984. color: #fff;
  10985. width: 100px;
  10986. height: 35px;
  10987. line-height: 35px;
  10988. text-align: center;
  10989. font-size: 14px;
  10990. border-radius: 5px;
  10991. cursor: pointer;
  10992. }
  10993. .chapter_upload+.chapter_upload {
  10994. /* margin-top: 15px; */
  10995. border-top: 1px solid #E7EBF1;
  10996. }
  10997. .chapter_upload {
  10998. height: 45px;
  10999. position: relative;
  11000. display: flex;
  11001. align-items: center;
  11002. width: 100%;
  11003. min-height: 45px;
  11004. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11005. /* border-radius: 4px; */
  11006. /* overflow: hidden; */
  11007. box-sizing: border-box;
  11008. }
  11009. .chapter_upload_drag {
  11010. position: absolute;
  11011. cursor: pointer;
  11012. width: 16px;
  11013. height: 16px;
  11014. left: -9px;
  11015. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  11016. background-size: 100% 100%;
  11017. z-index: 10;
  11018. }
  11019. .chapter_upload_t {
  11020. background-color: #fff;
  11021. position: absolute;
  11022. height: 100%;
  11023. top: 0px;
  11024. left: 0px;
  11025. box-sizing: border-box;
  11026. }
  11027. .chapter_upload_o {
  11028. width: 100%;
  11029. height: 100%;
  11030. position: relative;
  11031. z-index: 1;
  11032. }
  11033. .chapter_upload_ic {
  11034. margin: 0 15px 0px auto;
  11035. display: flex;
  11036. align-items: center;
  11037. }
  11038. .chapter_upload_ic_l {
  11039. width: 50px;
  11040. height: 50px;
  11041. float: left;
  11042. }
  11043. .chapter_upload_ic_l div {
  11044. width: 30px;
  11045. height: 35px;
  11046. background: url("../../../assets/icon/icon.png");
  11047. }
  11048. .chapter_upload_ic_edit {
  11049. height: 100%;
  11050. display: flex;
  11051. align-items: center;
  11052. cursor: pointer;
  11053. margin: 0 10px 0 0;
  11054. }
  11055. .chapter_upload_ic_edit div {
  11056. width: 18px;
  11057. height: 18px;
  11058. background-image: url("../../../assets/icon/new/edit_u.png");
  11059. background-size: 100% 100%;
  11060. }
  11061. .chapter_upload_ic_r {
  11062. height: 100%;
  11063. display: flex;
  11064. align-items: center;
  11065. cursor: pointer;
  11066. }
  11067. .chapter_upload_ic_r div {
  11068. width: 18px;
  11069. height: 18px;
  11070. background-image: url("../../../assets/icon/new/delete_u.png");
  11071. background-size: 100% 100%;
  11072. }
  11073. .chapter_upload_n {
  11074. display: flex;
  11075. text-indent: 10px;
  11076. text-decoration: none;
  11077. text-overflow: ellipsis;
  11078. white-space: nowrap;
  11079. overflow: hidden;
  11080. width: 55%;
  11081. margin-left: 10px;
  11082. cursor: pointer;
  11083. margin-top: 2px;
  11084. align-items: center;
  11085. }
  11086. .chapter_upload_l_i2,
  11087. .chapter_upload_l_i3,
  11088. .chapter_upload_l_i8,
  11089. .chapter_upload_l_i6,
  11090. .chapter_upload_l_i12,
  11091. .chapter_upload_l_i14,
  11092. .chapter_upload_l_i13 {
  11093. width: 15px;
  11094. height: 15px;
  11095. background-size: 100% 100%;
  11096. }
  11097. .chapter_upload_l_i2 {
  11098. background-image: url("../../../assets/icon/new/u_word.png");
  11099. }
  11100. .chapter_upload_l_i3 {
  11101. background-image: url("../../../assets/icon/new/u_video.png");
  11102. }
  11103. .chapter_upload_l_i8 {
  11104. background-image: url("../../../assets/icon/new/u_url.png");
  11105. }
  11106. .chapter_upload_l_i14 {
  11107. background-image: url("../../../assets/icon/new/u_source.png");
  11108. }
  11109. .chapter_upload_l_i6 {
  11110. background-image: url("../../../assets/icon/new/u_picture.png");
  11111. }
  11112. .chapter_upload_l_i12 {
  11113. background-image: url("../../../assets/icon/new/u_word.png");
  11114. }
  11115. .chapter_upload_l_i13 {
  11116. background-image: url("../../../assets/icon/new/u_img.png");
  11117. }
  11118. .chapter_upload_noSee {
  11119. background-image: url("../../../assets/icon/new/u_noUpload.png");
  11120. width: 18px;
  11121. height: 18px;
  11122. background-size: 100% 100%;
  11123. display: block;
  11124. margin-right: 10px;
  11125. }
  11126. .chapter_upload_ud {
  11127. display: flex;
  11128. flex-direction: row;
  11129. justify-content: center;
  11130. margin: 0 10px 0 0;
  11131. }
  11132. .chapter_upload_ud>.chapter_upload_up {
  11133. margin-bottom: 0;
  11134. margin-right: 10px;
  11135. }
  11136. .chapter_upload_down,
  11137. .chapter_upload_up {
  11138. width: 20px;
  11139. height: 20px;
  11140. background: #e4eaf2;
  11141. cursor: pointer;
  11142. margin: 0 auto;
  11143. border-radius: 5px;
  11144. display: flex;
  11145. justify-content: center;
  11146. align-items: center;
  11147. }
  11148. .chapter_upload_up::after,
  11149. .chapter_upload_down::after {
  11150. content: '';
  11151. background-image: url('../../../assets/icon/new/downBtn.png');
  11152. width: 13px;
  11153. height: 13px;
  11154. background-size: 100% 100%;
  11155. display: block;
  11156. }
  11157. .chapter_upload_up::after {
  11158. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  11159. }
  11160. .chapter_upload_up {
  11161. margin-bottom: 5px;
  11162. }
  11163. .addWordStyle {
  11164. display: flex;
  11165. flex-direction: row;
  11166. justify-content: flex-start;
  11167. overflow-x: auto;
  11168. white-space: nowrap;
  11169. flex-wrap: wrap;
  11170. }
  11171. /* table 样式 */
  11172. .cont>>>table {
  11173. border-top: 1px solid #ccc;
  11174. border-left: 1px solid #ccc;
  11175. }
  11176. .cont>>>table td,
  11177. .cont>>>table th {
  11178. border-bottom: 1px solid #ccc;
  11179. border-right: 1px solid #ccc;
  11180. /* padding: 20px 5px; */
  11181. padding: 5px 10px;
  11182. max-width: 0px;
  11183. height: 30px;
  11184. vertical-align: baseline;
  11185. }
  11186. .cont>>>table th {
  11187. border-bottom: 2px solid #ccc;
  11188. text-align: center;
  11189. }
  11190. /* blockquote 样式 */
  11191. .cont>>>blockquote {
  11192. display: block;
  11193. border-left: 8px solid #d0e5f2;
  11194. padding: 5px 10px;
  11195. margin: 10px 0;
  11196. line-height: 1.4;
  11197. font-size: 100%;
  11198. background-color: #f1f1f1;
  11199. }
  11200. /* code 样式 */
  11201. .cont>>>code {
  11202. display: inline-block;
  11203. /* *display: inline; */
  11204. zoom: 1;
  11205. background-color: #f1f1f1;
  11206. border-radius: 3px;
  11207. padding: 3px 5px;
  11208. margin: 0 3px;
  11209. }
  11210. .cont>>>pre code {
  11211. display: block;
  11212. }
  11213. /* ul ol 样式 */
  11214. .cont>>>ul,
  11215. ol {
  11216. margin: 10px 0 10px 20px;
  11217. }
  11218. .wordbox {
  11219. display: flex;
  11220. flex-wrap: wrap;
  11221. cursor: pointer;
  11222. width: 100%;
  11223. }
  11224. .checkword {
  11225. width: 22px;
  11226. height: 22px;
  11227. margin: 10px auto 0;
  11228. cursor: pointer;
  11229. }
  11230. .checkword img {
  11231. width: 100%;
  11232. }
  11233. .stepBg {
  11234. display: flex;
  11235. flex-direction: column;
  11236. justify-content: space-between;
  11237. align-items: center;
  11238. background: #fff;
  11239. width: 300px;
  11240. margin: 0 25px 0 0;
  11241. }
  11242. .stepTop {
  11243. min-width: 300px;
  11244. width: 300px;
  11245. /* border-radius: 10px; */
  11246. display: flex;
  11247. flex-direction: column;
  11248. justify-content: flex-start;
  11249. align-items: center;
  11250. flex-wrap: nowrap;
  11251. background: #fff;
  11252. /* top: 18%; */
  11253. }
  11254. .stepTop>div {
  11255. height: 80px;
  11256. width: 85%;
  11257. cursor: pointer;
  11258. margin: 10px 0;
  11259. border-radius: 10px;
  11260. }
  11261. .first,
  11262. .second,
  11263. .third,
  11264. .four {
  11265. background: #4a83d0;
  11266. height: 90px;
  11267. color: #fff;
  11268. display: flex;
  11269. flex-direction: row;
  11270. align-items: center;
  11271. justify-content: center;
  11272. }
  11273. .first>div:nth-child(1),
  11274. .second>div:nth-child(1),
  11275. .third>div:nth-child(1),
  11276. .four>div:nth-child(1) {
  11277. margin: 5px 10px 0 0;
  11278. width: 2rem;
  11279. }
  11280. .firstNo,
  11281. .secondNo,
  11282. .thirdNo,
  11283. .fourNo {
  11284. background: #e7e7e7;
  11285. color: #adadad;
  11286. display: flex;
  11287. flex-direction: row;
  11288. align-items: center;
  11289. justify-content: center;
  11290. }
  11291. .firstNo>div:nth-child(1),
  11292. .secondNo>div:nth-child(1),
  11293. .thirdNo>div:nth-child(1),
  11294. .fourNo>div:nth-child(1) {
  11295. margin: 5px 10px 0 0;
  11296. width: 2rem;
  11297. }
  11298. .uploadWidth>>>.el-upload {
  11299. width: 60px;
  11300. height: 60px;
  11301. position: relative;
  11302. }
  11303. .addPeople {
  11304. background: #fa6060;
  11305. width: 150px;
  11306. height: 40px;
  11307. color: #fff;
  11308. border-radius: 5px;
  11309. text-align: center;
  11310. line-height: 40px;
  11311. font-size: 14px;
  11312. cursor: pointer;
  11313. }
  11314. .kcImg {
  11315. width: 60px;
  11316. margin-left: 10px;
  11317. }
  11318. .zyImg {
  11319. width: 55px;
  11320. margin: 0 10px;
  11321. }
  11322. .deleteZy {
  11323. width: 20px;
  11324. position: absolute;
  11325. top: 5px;
  11326. right: 5px;
  11327. cursor: pointer;
  11328. }
  11329. .kcImg>img,
  11330. .zyImg>img,
  11331. .deleteZy>img {
  11332. width: 100%;
  11333. height: 100%;
  11334. }
  11335. .zyBox {
  11336. display: flex;
  11337. flex-direction: row;
  11338. align-items: center;
  11339. background: #67d37d;
  11340. color: #fff;
  11341. width: 210px;
  11342. margin: 20px 20px 0 0;
  11343. border-radius: 10px;
  11344. height: 70px;
  11345. position: relative;
  11346. }
  11347. .upCss {
  11348. display: flex;
  11349. flex-direction: row;
  11350. justify-content: flex-start;
  11351. }
  11352. .upCss>>>.el-icon-plus {
  11353. position: none !important;
  11354. width: 200px;
  11355. height: 100px;
  11356. display: flex;
  11357. flex-wrap: nowrap;
  11358. flex-direction: column;
  11359. align-items: center;
  11360. justify-content: center;
  11361. border: 1px dashed #ccc;
  11362. min-width: 78px;
  11363. min-height: 100px;
  11364. z-index: 999;
  11365. }
  11366. .upCss>>>.el-upload-list__item-name {
  11367. width: 100px;
  11368. white-space: nowrap;
  11369. overflow: hidden;
  11370. text-overflow: ellipsis;
  11371. }
  11372. .upCss>>>.el-upload-list__item .el-icon-close {
  11373. font-size: 20px;
  11374. z-index: 9999;
  11375. }
  11376. .addStageImg {
  11377. min-width: 25px;
  11378. min-height: 25px;
  11379. width: 25px;
  11380. height: 25px;
  11381. cursor: pointer;
  11382. }
  11383. .addHW {
  11384. width: 28px;
  11385. height: 28px;
  11386. cursor: pointer;
  11387. }
  11388. .addStageImg>img,
  11389. .addHW>img {
  11390. width: 100%;
  11391. height: 100%;
  11392. }
  11393. .addNewPP>>>.el-dialog__body {
  11394. padding: 5px 20px;
  11395. }
  11396. .addNewPP>>>.el-dialog {
  11397. margin-top: 5vh !important;
  11398. }
  11399. .addNewPP2>>>.el-dialog__body {
  11400. padding: 5px 0;
  11401. }
  11402. .addNewPP2>>>.el-dialog {
  11403. margin-top: 5vh !important;
  11404. }
  11405. .isHeight {
  11406. height: 680px;
  11407. }
  11408. .toolChoose {
  11409. display: flex;
  11410. /* width: 100%; */
  11411. flex-direction: row;
  11412. flex-wrap: wrap;
  11413. }
  11414. .tool,
  11415. .isToolChoose {
  11416. display: flex;
  11417. flex-direction: column;
  11418. flex-wrap: nowrap;
  11419. width: fit-content;
  11420. margin: 10px 0 10px 0;
  11421. align-items: center;
  11422. border: 2px solid #dbdbdb00;
  11423. padding: 10px 20px;
  11424. border-radius: 5px;
  11425. cursor: pointer;
  11426. /* box-shadow: 0 0 2px 0px #dedede; */
  11427. position: relative;
  11428. box-sizing: border-box;
  11429. }
  11430. .tool:hover {
  11431. border: 2px solid #a5c7ff;
  11432. }
  11433. .tool:hover>.isCTool {
  11434. opacity: 0.5;
  11435. display: block !important;
  11436. }
  11437. .isToolChoose {
  11438. border: 2px solid #438aff !important;
  11439. box-shadow: 0 0 2px 0px #438aff;
  11440. }
  11441. .isToolChoose>.isCTool {
  11442. opacity: 1 !important;
  11443. }
  11444. .isCTool {
  11445. width: 30px;
  11446. height: 30px;
  11447. position: absolute;
  11448. top: -4px;
  11449. right: -4px;
  11450. }
  11451. .isCTool>img {
  11452. width: 100%;
  11453. height: 100%;
  11454. }
  11455. .tool+.tool {
  11456. margin-right: 45px;
  11457. }
  11458. .whiteBIcon {
  11459. width: 80px;
  11460. cursor: pointer;
  11461. display: flex;
  11462. flex-direction: column;
  11463. flex-wrap: nowrap;
  11464. align-items: center;
  11465. font-size: 14px;
  11466. }
  11467. .whiteBIcon>img,
  11468. .toolIcon>img,
  11469. .arrow>img {
  11470. width: 100%;
  11471. height: 100%;
  11472. }
  11473. .check img {
  11474. width: 20px;
  11475. height: 20px;
  11476. }
  11477. .whiteBIcon>img {
  11478. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11479. border-radius: 15px;
  11480. }
  11481. .whiteBIcon>div:nth-child(2) {
  11482. height: 20px;
  11483. line-height: 20px;
  11484. }
  11485. .check {
  11486. /* width: 20px;
  11487. height: 20px; */
  11488. cursor: pointer;
  11489. margin: 10px 0 0;
  11490. }
  11491. .checkDiv {
  11492. display: flex;
  11493. align-items: center;
  11494. }
  11495. .checkDiv span {
  11496. margin-left: 5px;
  11497. color: #858585;
  11498. }
  11499. .customWidth>>>.el-dialog {
  11500. min-width: 500px !important;
  11501. }
  11502. .a_addBox {
  11503. margin: 10px 0;
  11504. background: #fff;
  11505. padding: 15px;
  11506. /* max-height: 600px; */
  11507. overflow: auto;
  11508. }
  11509. .a_add_box {
  11510. border-bottom: 2px solid #eee;
  11511. padding-bottom: 25px;
  11512. }
  11513. .a_add_head {
  11514. display: flex;
  11515. align-items: center;
  11516. justify-content: space-between;
  11517. margin: 10px 0 0 0;
  11518. font-size: 18px;
  11519. }
  11520. .a_add_checkType {
  11521. margin-top: 10px;
  11522. display: flex;
  11523. font-size: 14px;
  11524. align-items: center;
  11525. }
  11526. .a_add_checkType span {
  11527. box-sizing: border-box;
  11528. padding: 0 0 5px 0;
  11529. cursor: pointer;
  11530. }
  11531. .a_add_checkType span+span {
  11532. margin-left: 10px;
  11533. }
  11534. .a_add_checkType .active {
  11535. border-bottom: 2px solid #409eff;
  11536. color: #409eff;
  11537. }
  11538. .a_add_head .a_add_head_input {
  11539. width: 100%;
  11540. }
  11541. .a_add_head .a_add_head_div {
  11542. display: flex;
  11543. align-items: center;
  11544. justify-content: space-between;
  11545. }
  11546. .a_add_body {
  11547. display: flex;
  11548. /* align-items: center; */
  11549. align-items: flex-end;
  11550. }
  11551. .a_add_input {
  11552. display: flex;
  11553. align-items: center;
  11554. flex-wrap: wrap;
  11555. }
  11556. .a_add_input_choice {
  11557. flex-direction: column;
  11558. margin-right: 10px;
  11559. }
  11560. .a_add_input_choice>>>.el-radio {
  11561. display: flex;
  11562. align-items: center;
  11563. flex-direction: row-reverse;
  11564. margin: 30px 0 0 0;
  11565. position: relative;
  11566. }
  11567. .a_add_input_choice>>>.el-checkbox {
  11568. display: flex;
  11569. align-items: center;
  11570. flex-direction: row-reverse;
  11571. margin: 30px 0 0 0;
  11572. position: relative;
  11573. }
  11574. .width100 {
  11575. width: 100%;
  11576. }
  11577. .a_add_input .a_add_persent {
  11578. width: 100%;
  11579. }
  11580. .a_add_persent_div {
  11581. width: 100%;
  11582. display: flex;
  11583. align-items: center;
  11584. }
  11585. .a_add_persent_div span {
  11586. margin: 5px 0;
  11587. }
  11588. .a_add_persent_div span:nth-child(1) {
  11589. width: 30%;
  11590. }
  11591. .a_add_persent_div span:nth-child(2) {
  11592. width: 7%;
  11593. }
  11594. .a_add_persent_div span:nth-child(3) {
  11595. width: 40%;
  11596. }
  11597. .a_add_body_div {
  11598. display: flex;
  11599. align-items: center;
  11600. justify-content: center;
  11601. /* flex-direction: column; */
  11602. position: absolute;
  11603. right: -20px;
  11604. transform: translateX(100%);
  11605. }
  11606. .a_add_body_div>>>.el-button--primary {
  11607. background: #466b99;
  11608. border: none;
  11609. }
  11610. .all_choose {
  11611. display: flex;
  11612. flex-direction: row;
  11613. align-items: flex-start;
  11614. width: 100%;
  11615. }
  11616. .all_choose>span {
  11617. min-width: fit-content;
  11618. display: block;
  11619. white-space: nowrap;
  11620. overflow: hidden;
  11621. text-overflow: ellipsis;
  11622. margin-right: 20px;
  11623. font-weight: bold;
  11624. font-size: 14px;
  11625. }
  11626. .all_choose>>>.el-checkbox-group {
  11627. display: flex;
  11628. flex-direction: row;
  11629. width: 100%;
  11630. flex-wrap: wrap;
  11631. align-content: center;
  11632. justify-content: flex-start;
  11633. align-items: center;
  11634. margin-top: 3px;
  11635. }
  11636. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11637. margin-bottom: 10px;
  11638. display: flex;
  11639. flex-direction: row;
  11640. align-items: center;
  11641. margin-right: 10px;
  11642. }
  11643. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11644. min-width: 80px;
  11645. overflow: hidden;
  11646. width: 80px;
  11647. text-overflow: ellipsis;
  11648. white-space: nowrap;
  11649. }
  11650. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11651. width: auto;
  11652. }
  11653. .choose>div:nth-child(3)>span {
  11654. /* letter-spacing: 0 !important; */
  11655. }
  11656. .choose {
  11657. display: flex;
  11658. flex-direction: column;
  11659. flex-wrap: nowrap;
  11660. height: 100%;
  11661. justify-content: space-evenly;
  11662. align-items: flex-start;
  11663. }
  11664. .both {
  11665. display: flex;
  11666. flex-direction: row;
  11667. flex-wrap: wrap;
  11668. width: 100%;
  11669. align-items: center;
  11670. justify-content: flex-start;
  11671. margin: 15px 0;
  11672. }
  11673. .notice>>>.el-dialog {
  11674. width: 500px !important;
  11675. text-align: center;
  11676. }
  11677. .notice>>>.el-button {
  11678. margin-top: 20px;
  11679. }
  11680. .whiteBg {
  11681. background: #fff;
  11682. border-radius: 10px;
  11683. }
  11684. .wb_j_box {
  11685. display: flex;
  11686. width: 100%;
  11687. padding: 10px 20px;
  11688. box-sizing: border-box;
  11689. }
  11690. .wb_j_box_content {
  11691. width: calc(100% - 55% - 100px);
  11692. display: flex;
  11693. align-items: center;
  11694. }
  11695. .wb_j_box_p_box {
  11696. max-width: calc(100% - 200px);
  11697. word-break: break-all;
  11698. overflow: hidden;
  11699. margin: 0 0 0 10px;
  11700. font-size: 14px;
  11701. color: #6e6e6e;
  11702. }
  11703. .chooseWho {
  11704. display: flex;
  11705. width: 410px;
  11706. flex-direction: row;
  11707. flex-wrap: nowrap;
  11708. justify-content: space-between;
  11709. padding-bottom: 10px;
  11710. }
  11711. .chooseWho>div {
  11712. cursor: pointer;
  11713. padding-bottom: 10px;
  11714. font-weight: bold;
  11715. }
  11716. .isChooseActive {
  11717. color: #3e88f4;
  11718. border-bottom: 2px solid #2f80f3;
  11719. }
  11720. .toolSort {
  11721. display: flex;
  11722. flex-direction: row;
  11723. flex-wrap: wrap;
  11724. justify-content: flex-start;
  11725. align-items: flex-start;
  11726. }
  11727. .toolSort>div {
  11728. margin-right: 45px;
  11729. }
  11730. .tools {
  11731. width: 100%;
  11732. display: flex;
  11733. flex-direction: column;
  11734. flex-wrap: nowrap;
  11735. align-items: flex-start;
  11736. }
  11737. .leftTools,
  11738. .rightTools {
  11739. width: 50%;
  11740. }
  11741. .leftTools+.leftTools {
  11742. border-top: 1px solid #dbdbdb;
  11743. padding-top: 30px;
  11744. }
  11745. .rightTools {
  11746. display: flex;
  11747. flex-direction: row;
  11748. flex-wrap: nowrap;
  11749. justify-content: space-around;
  11750. }
  11751. .firstToolList {
  11752. display: flex;
  11753. flex-direction: column;
  11754. flex-wrap: nowrap;
  11755. align-items: center;
  11756. }
  11757. .iconList {
  11758. display: flex;
  11759. flex-direction: row;
  11760. flex-wrap: wrap;
  11761. justify-content: flex-start;
  11762. align-items: center;
  11763. margin: 20px 0 5px 0;
  11764. width: 240px;
  11765. min-width: 240px;
  11766. }
  11767. .iconTool {
  11768. display: flex;
  11769. flex-direction: column;
  11770. flex-wrap: nowrap;
  11771. align-items: center;
  11772. justify-content: flex-start;
  11773. margin: 15px 10px;
  11774. }
  11775. .toolIcon {
  11776. width: 50px;
  11777. }
  11778. .taskBorder {
  11779. /*border: 1px solid #e1e1e1; */
  11780. border-radius: 8px;
  11781. margin-top: 10px;
  11782. /* min-height: 1160px; */
  11783. position: relative;
  11784. background: #F0F4FA;
  11785. padding: 20px 20px 0;
  11786. overflow: hidden;
  11787. box-sizing: border-box;
  11788. background: #fff;
  11789. }
  11790. .smallTaskBorder {
  11791. height: 170px;
  11792. min-height: 170px !important;
  11793. overflow: hidden;
  11794. }
  11795. .taskBorder>div {
  11796. /* padding: 30px 0 10px 30px; */
  11797. }
  11798. .addTaskBorder {
  11799. /* border: 2px solid #5E9AFC; */
  11800. border-radius: 8px;
  11801. margin-top: 10px;
  11802. cursor: pointer;
  11803. /* height: 50px;
  11804. line-height: 50px; */
  11805. background: #fff;
  11806. padding: 15px 0;
  11807. display: flex;
  11808. align-items: center;
  11809. justify-content: center;
  11810. }
  11811. /* .addTaskBorder>div {
  11812. margin: 0 auto;
  11813. display: flex;
  11814. align-items: center;
  11815. justify-content: center;
  11816. }
  11817. .addTaskBorder>div>img {
  11818. width: 20px;
  11819. }
  11820. .addTaskBorder>div>span {
  11821. font-size: 16px;
  11822. margin-left: 10px;
  11823. color: #5E9AFC;
  11824. } */
  11825. .funBlock {
  11826. display: flex;
  11827. padding: 15px 0;
  11828. flex-direction: row;
  11829. justify-content: flex-end;
  11830. align-items: center;
  11831. position: absolute;
  11832. right: 15px;
  11833. bottom: 35px;
  11834. z-index: 9999;
  11835. }
  11836. .fold {
  11837. display: flex;
  11838. margin: 0 10px;
  11839. flex-direction: row;
  11840. align-items: center;
  11841. cursor: pointer;
  11842. }
  11843. .arrow {
  11844. width: 15px;
  11845. height: 15px;
  11846. margin-left: 10px;
  11847. }
  11848. .addToolFun {
  11849. display: flex;
  11850. width: 150px;
  11851. flex-direction: row;
  11852. align-items: center;
  11853. justify-content: center;
  11854. border: 1px dashed;
  11855. border-radius: 5px;
  11856. height: 50px;
  11857. margin: 20px auto 35px;
  11858. cursor: pointer;
  11859. }
  11860. .addToolFun2 {
  11861. display: flex;
  11862. width: 150px;
  11863. border: 2px dashed #CAD1DC;
  11864. flex-direction: row;
  11865. align-items: center;
  11866. justify-content: center;
  11867. border-radius: 5px;
  11868. height: 50px;
  11869. margin: 0 auto 0;
  11870. cursor: pointer;
  11871. }
  11872. .addToolImg {
  11873. width: 20px;
  11874. height: 20px;
  11875. margin-right: 10px;
  11876. }
  11877. .addToolsDia>>>.el-dialog__body {
  11878. padding: 20px;
  11879. }
  11880. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11881. padding: 0;
  11882. }
  11883. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11884. padding: 0;
  11885. border-bottom: none;
  11886. margin-bottom: 0;
  11887. }
  11888. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11889. width: 100%;
  11890. }
  11891. .lineCss>>>.el-form-item__label {
  11892. width: auto !important;
  11893. }
  11894. .lineCss>>>.el-form-item__content {
  11895. margin-left: 50px !important;
  11896. }
  11897. .newSteps {
  11898. display: flex;
  11899. width: 100% !important;
  11900. height: 80px;
  11901. cursor: pointer;
  11902. margin: 10px 0;
  11903. border-radius: 10px;
  11904. flex-direction: row;
  11905. align-content: center;
  11906. justify-content: center;
  11907. align-items: center;
  11908. margin: 0 !important;
  11909. }
  11910. /* 评价样式 */
  11911. .elist_css {
  11912. padding-bottom: 60px !important;
  11913. }
  11914. .elist_title {
  11915. margin-bottom: 10px;
  11916. }
  11917. .elist_input {}
  11918. .elist_input_box {
  11919. display: flex;
  11920. align-items: center;
  11921. flex-wrap: wrap;
  11922. }
  11923. .elist_input_box+.elist_input_box {
  11924. margin-top: 30px;
  11925. }
  11926. .elist_input .elist_input_box input {
  11927. font: inherit;
  11928. color: currentColor;
  11929. /* width: 200px; */
  11930. max-width: 200px;
  11931. padding: 8px 14px;
  11932. display: block;
  11933. min-width: 0;
  11934. outline: none;
  11935. border: 1px solid rgba(0, 0, 0, 0.23);
  11936. border-radius: 4px;
  11937. box-sizing: border-box;
  11938. background: #fff;
  11939. margin: 0 20px 0 0;
  11940. }
  11941. .elist_input .elist_input_box span {
  11942. height: 36px;
  11943. line-height: 36px;
  11944. color: rgb(82, 82, 82);
  11945. min-width: 80px;
  11946. }
  11947. .elist_input .elist_input_box .remove {
  11948. height: 20px;
  11949. width: 20px;
  11950. background-size: 100% 100%;
  11951. background-position: unset;
  11952. margin-left: 5px;
  11953. }
  11954. .elist_input_box>>>.el-rate {
  11955. display: flex;
  11956. height: 36px;
  11957. align-items: center;
  11958. }
  11959. .elist_input_box .elist_inptu_text {
  11960. width: 100%;
  11961. display: flex;
  11962. align-items: center;
  11963. margin-top: 10px;
  11964. }
  11965. .elist_input_box .elist_inptu_text input {
  11966. /* width: 500px; */
  11967. width: 100%;
  11968. max-width: unset;
  11969. }
  11970. .elist_input_box>>>.el-rate__icon {
  11971. font-size: 24px;
  11972. }
  11973. .elist_btn {
  11974. margin-top: 10px;
  11975. }
  11976. .lineTitle {
  11977. /* margin-top: 15px; */
  11978. width: 110px;
  11979. font-size: 16px;
  11980. display: flex;
  11981. align-items: center;
  11982. line-height: 20px;
  11983. }
  11984. .lineTitle::before {
  11985. content: '';
  11986. display: block;
  11987. width: 3px;
  11988. height: 20px;
  11989. background: #0061FF;
  11990. border-radius: 3px;
  11991. margin: 0 5px 0 0;
  11992. }
  11993. .courseTop {
  11994. display: flex;
  11995. flex-direction: row;
  11996. justify-content: space-between;
  11997. align-items: center;
  11998. width: calc(100%);
  11999. margin: 0 auto;
  12000. padding: 10px 0;
  12001. }
  12002. .stepsNav {
  12003. display: flex;
  12004. flex-direction: row;
  12005. justify-content: flex-start;
  12006. align-items: center;
  12007. }
  12008. .stepsWord {
  12009. font-size: 18px;
  12010. color: #fff;
  12011. font-weight: bold;
  12012. margin-left: auto;
  12013. background: rgb(15, 126, 255);
  12014. border-radius: 5px;
  12015. padding: 3px 25px;
  12016. box-sizing: border-box;
  12017. }
  12018. .rightBox {
  12019. width: calc(100%);
  12020. background: #F0F2F5;
  12021. /* border-radius: 10px; */
  12022. overflow: auto;
  12023. height: calc(100% - 120px);
  12024. margin: 0 auto;
  12025. position: relative;
  12026. box-sizing: border-box;
  12027. border-radius: 5px;
  12028. }
  12029. .e_add_top {
  12030. display: flex;
  12031. justify-content: space-between;
  12032. padding: 20px 20px 0 20px;
  12033. border-radius: 3px;
  12034. background: #fff;
  12035. }
  12036. .e_add_title2 {
  12037. display: flex;
  12038. align-items: center;
  12039. }
  12040. .e_add_title2 span {
  12041. width: 40px;
  12042. }
  12043. .e_add_title {
  12044. display: flex;
  12045. align-items: center;
  12046. color: #b8b8b8;
  12047. font-size: 18px;
  12048. position: relative;
  12049. height: 40px;
  12050. }
  12051. .e_add_title span {
  12052. margin-right: 10px;
  12053. }
  12054. .e_add_title .el_input {
  12055. width: 300px;
  12056. }
  12057. .e_add_title>>>.el-input__inner {
  12058. width: 400px;
  12059. }
  12060. .e_add_btn {}
  12061. .e_add_content {
  12062. display: flex;
  12063. width: 100%;
  12064. }
  12065. .e_add_list {
  12066. background: #fff;
  12067. height: 500px;
  12068. width: 210px;
  12069. position: relative;
  12070. margin: 15px 5px 0 0;
  12071. flex-shrink: 0;
  12072. display: flex;
  12073. flex-direction: column;
  12074. }
  12075. .e_add_list_title {
  12076. font-size: 20px;
  12077. width: 100%;
  12078. box-sizing: border-box;
  12079. padding: 15px 40px;
  12080. text-align: center;
  12081. border-bottom: 1px solid #eaeaea;
  12082. position: relative;
  12083. display: flex;
  12084. align-items: center;
  12085. justify-content: center;
  12086. height: 57px;
  12087. background: #f6f6f6;
  12088. }
  12089. .e_add_list_title span {
  12090. overflow: hidden;
  12091. white-space: nowrap;
  12092. text-overflow: ellipsis;
  12093. }
  12094. .e_add_list_title img {
  12095. position: absolute;
  12096. right: 15px;
  12097. width: 25px;
  12098. cursor: pointer;
  12099. top: 50%;
  12100. transform: translateY(-50%);
  12101. }
  12102. .e_add_list_body {
  12103. height: calc(100% - 187px);
  12104. overflow: auto;
  12105. }
  12106. .e_add_list_child {
  12107. width: 100%;
  12108. display: flex;
  12109. align-items: center;
  12110. justify-content: center;
  12111. position: relative;
  12112. box-sizing: border-box;
  12113. padding: 15px 40px;
  12114. text-align: center;
  12115. }
  12116. .e_add_list_child span {
  12117. overflow: hidden;
  12118. white-space: nowrap;
  12119. text-overflow: ellipsis;
  12120. cursor: pointer;
  12121. }
  12122. .e_add_list_child img {
  12123. position: absolute;
  12124. right: 10px;
  12125. width: 21px;
  12126. cursor: pointer;
  12127. top: 50%;
  12128. transform: translateY(-50%);
  12129. }
  12130. .e_add_list_child+.e_add_list_child {
  12131. border-top: 1px solid #eaeaea;
  12132. }
  12133. .e_add_list_child .active {
  12134. color: #409eff;
  12135. }
  12136. .e_add_list_btn {
  12137. position: absolute;
  12138. bottom: 0;
  12139. height: 50px;
  12140. background: rgb(120, 120, 254);
  12141. width: 100%;
  12142. color: #fff;
  12143. font-size: 16px;
  12144. text-align: center;
  12145. line-height: 50px;
  12146. cursor: pointer;
  12147. }
  12148. .e_add_list_detail {
  12149. position: absolute;
  12150. bottom: 0;
  12151. height: 130px;
  12152. background: rgb(120, 120, 254);
  12153. width: 100%;
  12154. color: #fff;
  12155. font-size: 16px;
  12156. display: flex;
  12157. align-items: center;
  12158. justify-content: center;
  12159. }
  12160. .e_add_list_detail textarea {
  12161. height: 90%;
  12162. width: 95%;
  12163. border: none;
  12164. resize: none;
  12165. outline: none;
  12166. padding: 5px;
  12167. box-sizing: border-box;
  12168. }
  12169. .e_add_list_pbox {
  12170. width: 100%;
  12171. }
  12172. .e_add_list_pbox_title {
  12173. height: 50px;
  12174. background: #fff;
  12175. display: flex;
  12176. align-items: center;
  12177. width: 100%;
  12178. box-sizing: border-box;
  12179. padding: 0 20px;
  12180. flex-direction: row;
  12181. flex-wrap: wrap;
  12182. }
  12183. .type_title {
  12184. font-size: 18px;
  12185. font-weight: 700;
  12186. }
  12187. .type_content {
  12188. font-size: 16px;
  12189. margin-left: 30px;
  12190. }
  12191. .type_content span+span {
  12192. margin-left: 20px;
  12193. }
  12194. .type_content span {
  12195. cursor: pointer;
  12196. padding-bottom: 5px;
  12197. box-sizing: border-box;
  12198. }
  12199. .type_content .active {
  12200. color: #409eff;
  12201. border-bottom: 2px solid #409eff;
  12202. }
  12203. .e_add_list_pbox_content {
  12204. height: calc(100% - 50px);
  12205. display: flex;
  12206. align-items: center;
  12207. width: 100%;
  12208. background: #fff;
  12209. }
  12210. .mbCss {
  12211. width: 100%;
  12212. display: flex;
  12213. flex-direction: row;
  12214. flex-wrap: nowrap;
  12215. align-content: center;
  12216. align-items: flex-start;
  12217. justify-content: flex-start;
  12218. }
  12219. .pjCss {
  12220. /* width: 42%; */
  12221. width: calc(100% - 55%);
  12222. display: flex;
  12223. flex-direction: column;
  12224. flex-wrap: nowrap;
  12225. align-items: flex-start;
  12226. margin-top: 1.5%;
  12227. }
  12228. .e_box {
  12229. display: flex;
  12230. flex-wrap: wrap;
  12231. max-height: 500px;
  12232. align-items: flex-start;
  12233. overflow: auto;
  12234. }
  12235. .e_card {
  12236. border: 1px solid #ccc;
  12237. background: #fff;
  12238. margin-right: 20px;
  12239. width: 270px;
  12240. display: flex;
  12241. flex-direction: column;
  12242. align-items: center;
  12243. border-radius: 5px;
  12244. margin-top: 10px;
  12245. text-align: center;
  12246. }
  12247. .e_card_picture {
  12248. margin: 10px 0;
  12249. }
  12250. .e_card_picture>img {
  12251. width: 50px;
  12252. }
  12253. .e_card_name {
  12254. width: 100%;
  12255. padding: 0 10px;
  12256. box-sizing: border-box;
  12257. margin-bottom: 10px;
  12258. overflow: hidden;
  12259. text-overflow: ellipsis;
  12260. white-space: nowrap;
  12261. }
  12262. .e_card_time {
  12263. width: 100%;
  12264. padding: 0 10px;
  12265. box-sizing: border-box;
  12266. font-size: 15px;
  12267. color: #c3c3c3;
  12268. margin-bottom: 10px;
  12269. }
  12270. .e_card_btn {
  12271. height: 40px;
  12272. display: flex;
  12273. align-items: center;
  12274. width: 100%;
  12275. background: rgb(244, 244, 244);
  12276. }
  12277. .e_card_btn:hover {
  12278. background: rgb(221 221 221);
  12279. }
  12280. .e_card_btn span {
  12281. flex: 1 1 auto;
  12282. text-align: center;
  12283. cursor: pointer;
  12284. }
  12285. .addEva {
  12286. border: 1px solid #ccc;
  12287. background: #fff;
  12288. margin-right: 20px;
  12289. width: 270px;
  12290. height: 149px;
  12291. display: flex;
  12292. flex-direction: column;
  12293. align-items: center;
  12294. border-radius: 5px;
  12295. margin-top: 10px;
  12296. text-align: center;
  12297. cursor: pointer;
  12298. justify-content: center;
  12299. }
  12300. .addEva>img {
  12301. width: 50px;
  12302. object-fit: cover;
  12303. }
  12304. .uploadFm {
  12305. border: 1px dashed #ccc;
  12306. width: 100%;
  12307. height: 140px;
  12308. position: relative;
  12309. cursor: pointer;
  12310. display: flex;
  12311. flex-direction: column;
  12312. justify-content: center;
  12313. align-items: center;
  12314. font-size: 14px;
  12315. color: #6e6e6e;
  12316. }
  12317. .uploadFm>img {
  12318. width: 50px;
  12319. }
  12320. .fileCss {
  12321. width: 100%;
  12322. display: flex;
  12323. flex-direction: row;
  12324. flex-wrap: nowrap;
  12325. justify-content: space-around;
  12326. align-items: center;
  12327. padding-top: 15px;
  12328. }
  12329. .fileCss>div {
  12330. display: flex;
  12331. flex-direction: column;
  12332. align-items: center;
  12333. }
  12334. .fileCss .spanName {
  12335. margin-top: 10px
  12336. }
  12337. .sysPicBox {
  12338. display: flex;
  12339. flex-direction: row;
  12340. flex-wrap: wrap;
  12341. align-content: flex-start;
  12342. height: 435px;
  12343. overflow: auto;
  12344. position: relative;
  12345. }
  12346. .picNone {
  12347. position: absolute;
  12348. left: 50%;
  12349. top: 45%;
  12350. transform: translate(-50%, -50%);
  12351. width: fit-content;
  12352. color: #9c9c9c;
  12353. }
  12354. .sysPic {
  12355. width: 200px;
  12356. height: 115px;
  12357. margin: 0 20px 20px 0;
  12358. cursor: pointer;
  12359. }
  12360. .sysPic>img,
  12361. .isSysPic>img,
  12362. .deletePic>img {
  12363. width: 100%;
  12364. height: 100%;
  12365. object-fit: cover;
  12366. }
  12367. .isSysPic {
  12368. width: 200px;
  12369. height: 115px;
  12370. position: relative;
  12371. }
  12372. .deletePic {
  12373. width: 20px;
  12374. height: 20px;
  12375. position: absolute;
  12376. top: 0;
  12377. right: 0;
  12378. cursor: pointer;
  12379. }
  12380. .select_box1 {
  12381. height: 100%;
  12382. }
  12383. .select_box1_img {
  12384. background: #fff;
  12385. border-radius: 5px;
  12386. padding: 15px;
  12387. box-sizing: border-box;
  12388. margin-bottom: 20px;
  12389. }
  12390. .select_box1_title {
  12391. padding: 0 0 15px 0;
  12392. border-bottom: 1px solid #eee;
  12393. margin-bottom: 15px;
  12394. }
  12395. .select_box1_title span:nth-child(1) {
  12396. font-size: 16px;
  12397. margin-right: 20px;
  12398. color: #000;
  12399. }
  12400. .select_box1_title span:nth-child(2) {
  12401. font-size: 14px;
  12402. color: rgb(112, 112, 112);
  12403. }
  12404. .select_box1_add_img {}
  12405. .select_box1_select {
  12406. background: #fff;
  12407. border-radius: 5px;
  12408. padding: 15px;
  12409. box-sizing: border-box;
  12410. height: calc(100% - 200px);
  12411. overflow: auto;
  12412. }
  12413. .select_box2 {
  12414. height: 100%;
  12415. }
  12416. .select_box2_title {
  12417. background: #fff;
  12418. border-radius: 5px;
  12419. padding: 5px 10px;
  12420. box-sizing: border-box;
  12421. margin-bottom: 10px;
  12422. }
  12423. .select_box2_box {
  12424. display: flex;
  12425. height: calc(100% - 30px);
  12426. }
  12427. .select_box2_img {
  12428. width: calc(100% - 310px);
  12429. height: 100%;
  12430. overflow: auto;
  12431. background: #fff;
  12432. border-radius: 5px;
  12433. }
  12434. .select_box2_img img {
  12435. width: 100%;
  12436. }
  12437. .select_box2_answer {
  12438. background: #fff;
  12439. margin-left: 10px;
  12440. border-radius: 5px;
  12441. width: 300px;
  12442. overflow: auto;
  12443. height: 100%;
  12444. display: flex;
  12445. flex-direction: column;
  12446. align-items: center;
  12447. padding-top: 10px;
  12448. box-sizing: border-box;
  12449. }
  12450. .select_box2_answer_box {
  12451. margin: 0 0 10px 0;
  12452. width: 85%;
  12453. }
  12454. .rate_textarea {
  12455. font: inherit;
  12456. color: currentColor;
  12457. width: 100%;
  12458. padding: 8px 14px;
  12459. display: block;
  12460. min-width: 0;
  12461. outline: none;
  12462. border: 1px solid rgba(0, 0, 0, 0.23);
  12463. border-radius: 4px;
  12464. box-sizing: border-box;
  12465. background: #fff;
  12466. margin: 0 20px 0 0;
  12467. resize: none;
  12468. }
  12469. .select_answer_title {
  12470. text-align: left;
  12471. width: 85%;
  12472. margin-bottom: 10px;
  12473. font-size: 18px;
  12474. color: #8e8e8e;
  12475. }
  12476. .mask {
  12477. background-color: rgb(0 0 0 / 30%);
  12478. /* position: fixed; */
  12479. position: absolute;
  12480. top: 0;
  12481. left: 0;
  12482. width: 100%;
  12483. height: 100%;
  12484. z-index: 90;
  12485. display: flex;
  12486. align-items: center;
  12487. justify-content: center;
  12488. }
  12489. .progressBox {
  12490. width: 300px;
  12491. height: 150px;
  12492. background: #fff;
  12493. border-radius: 10px;
  12494. box-shadow: 0 0 6px 1px #bfbfbf;
  12495. display: flex;
  12496. align-items: center;
  12497. justify-content: center;
  12498. flex-direction: column;
  12499. position: relative;
  12500. color: #6c6c6c;
  12501. }
  12502. .progressBox>>>.el-progress-bar__outer {
  12503. background-color: #d1dfff !important;
  12504. }
  12505. .progressBox .lbox {
  12506. height: 50px;
  12507. font-size: 19px;
  12508. display: flex;
  12509. align-items: center;
  12510. color: #747474;
  12511. }
  12512. .progressBox .lbox img {
  12513. width: 40px;
  12514. margin-right: 20px;
  12515. }
  12516. .closeCss {
  12517. position: absolute;
  12518. top: 8px;
  12519. right: 8px;
  12520. cursor: pointer;
  12521. width: 20px;
  12522. height: 20px;
  12523. }
  12524. .closeCss>img {
  12525. width: 100%;
  12526. height: 100%;
  12527. }
  12528. .updateTips::after {
  12529. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12530. font-size: 14px;
  12531. margin-left: 20px;
  12532. font-weight: 400;
  12533. color: #ff3a3a;
  12534. }
  12535. .updateMask {
  12536. width: 100%;
  12537. z-index: 3;
  12538. top: 0;
  12539. position: absolute;
  12540. /* background-color: rgba(0,0,0,.3); */
  12541. }
  12542. .t_j_box {
  12543. display: flex;
  12544. }
  12545. .t_j_box span:nth-child(1) {
  12546. width: 15%;
  12547. overflow: hidden;
  12548. margin-right: 10px;
  12549. text-overflow: ellipsis;
  12550. white-space: nowrap;
  12551. }
  12552. .t_j_box span:nth-child(2) {
  12553. width: 30%;
  12554. overflow: hidden;
  12555. text-overflow: ellipsis;
  12556. margin-right: 10px;
  12557. }
  12558. .t_j_box span:nth-child(3) {
  12559. max-width: calc(55% - 20px);
  12560. overflow: hidden;
  12561. text-overflow: ellipsis;
  12562. }
  12563. .sentenBox {
  12564. background: #fff;
  12565. height: 600px;
  12566. overflow: auto;
  12567. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12568. background-position: 102%;
  12569. background-repeat: no-repeat;
  12570. background-size: 60%;
  12571. }
  12572. .sentenBox>.sentenContent {
  12573. padding-bottom: 10px;
  12574. width: 97%;
  12575. margin: 0 auto;
  12576. }
  12577. .sentenBox>.sentenContent+.sentenContent {
  12578. border-top: 1px solid #cbcbcb;
  12579. }
  12580. .addSen {
  12581. background: #409efe;
  12582. width: 90px;
  12583. color: #fff;
  12584. height: 35px;
  12585. text-align: center;
  12586. line-height: 35px;
  12587. border-radius: 5px;
  12588. float: right;
  12589. margin: 10px 20px 0 0;
  12590. cursor: pointer;
  12591. }
  12592. .sentenTop {
  12593. display: flex;
  12594. flex-direction: row;
  12595. flex-wrap: nowrap;
  12596. align-items: center;
  12597. }
  12598. .sentenTop::before {
  12599. content: attr(index);
  12600. background: #3681fc;
  12601. border-radius: 50%;
  12602. color: #fff;
  12603. width: 25px;
  12604. height: 25px;
  12605. min-width: 25px;
  12606. min-height: 25px;
  12607. text-align: center;
  12608. line-height: 25px;
  12609. margin-right: 5px;
  12610. }
  12611. .sentenTop>div:nth-child(2) {
  12612. width: 300px;
  12613. margin: 0 15px;
  12614. }
  12615. .sentenTop>div:nth-child(3) {
  12616. background: #409efe;
  12617. color: #fff;
  12618. width: 65px;
  12619. height: 35px;
  12620. text-align: center;
  12621. line-height: 35px;
  12622. border-radius: 5px;
  12623. cursor: pointer;
  12624. }
  12625. .cardList {
  12626. padding: 30px 0 20px 0;
  12627. display: flex;
  12628. flex-direction: row;
  12629. flex-wrap: wrap;
  12630. align-items: center;
  12631. box-sizing: border-box;
  12632. border-bottom: 1px solid #f4f4f4;
  12633. width: 98%;
  12634. margin: 0 auto;
  12635. }
  12636. .rightCardList {
  12637. display: flex;
  12638. flex-wrap: wrap;
  12639. }
  12640. .cardBox {
  12641. display: flex;
  12642. flex-direction: row;
  12643. flex-wrap: wrap;
  12644. align-items: center;
  12645. align-content: center;
  12646. }
  12647. .isCard,
  12648. .isCard,
  12649. .isCard1 {
  12650. width: auto;
  12651. padding: 0 20px;
  12652. height: 65px;
  12653. text-align: center;
  12654. line-height: 65px;
  12655. font-size: 14px;
  12656. cursor: pointer;
  12657. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12658. background-size: 100% 100%;
  12659. position: relative;
  12660. z-index: 99;
  12661. }
  12662. .isCard1 {
  12663. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12664. }
  12665. .isCard:hover .deleteWord {
  12666. display: block;
  12667. }
  12668. .isCard>div:nth-child(1),
  12669. .isCard1>div:nth-child(1) {
  12670. white-space: nowrap;
  12671. overflow: hidden;
  12672. text-overflow: ellipsis;
  12673. width: 100%;
  12674. margin: 0 auto;
  12675. }
  12676. .card {
  12677. width: 140px;
  12678. height: 65px;
  12679. }
  12680. .card>img {
  12681. width: 100%;
  12682. height: 100%;
  12683. }
  12684. .rightCardBox {
  12685. width: 98%;
  12686. margin: 10px auto 0;
  12687. }
  12688. .rightCardBox>div:nth-child(1) {
  12689. margin-bottom: 10px;
  12690. }
  12691. .cardCss {
  12692. display: flex;
  12693. flex-direction: column;
  12694. flex-wrap: nowrap;
  12695. align-items: center;
  12696. border-bottom: 3px solid #b4c3d3;
  12697. padding: 0 0 5px 0;
  12698. /* margin-right: 10px; */
  12699. }
  12700. .cardCss>div:nth-child(2) {
  12701. background: #5b7b9d;
  12702. color: #fff;
  12703. width: 20px;
  12704. height: 20px;
  12705. border-radius: 50%;
  12706. text-align: center;
  12707. line-height: 20px;
  12708. }
  12709. .sentenTopBox {
  12710. display: flex;
  12711. flex-direction: row;
  12712. flex-wrap: nowrap;
  12713. align-items: center;
  12714. justify-content: space-between;
  12715. padding: 55px 0 0 20px;
  12716. box-sizing: border-box;
  12717. width: 85%;
  12718. }
  12719. .stepsBottom {
  12720. width: 85%;
  12721. margin-bottom: 20px;
  12722. box-shadow: 0 0 10px 10px #f7f7f7;
  12723. background: #f7f7f7;
  12724. border-radius: 10px;
  12725. overflow: hidden;
  12726. }
  12727. .course_left {
  12728. width: 300px;
  12729. height: auto;
  12730. position: relative;
  12731. }
  12732. .stepsBottom2 {
  12733. width: 300px;
  12734. margin: 10px 0;
  12735. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12736. /* background: #f7f7f7; */
  12737. border-radius: 8px;
  12738. overflow: hidden;
  12739. height: fit-content;
  12740. position: relative;
  12741. /* transition: all .5s; */
  12742. }
  12743. .navTop {
  12744. background: #53749b;
  12745. color: #fff;
  12746. height: 40px;
  12747. line-height: 40px;
  12748. padding-left: 15px;
  12749. font-size: 18px;
  12750. }
  12751. .navBottom {
  12752. background: #fff;
  12753. height: calc(100vh - 210px);
  12754. overflow: auto;
  12755. }
  12756. .navTask {
  12757. display: flex;
  12758. flex-direction: row;
  12759. flex-wrap: nowrap;
  12760. align-items: center;
  12761. padding: 10px 10px 10px 0;
  12762. cursor: pointer;
  12763. background: #ffffff;
  12764. width: 95%;
  12765. margin: 10px auto 0;
  12766. box-sizing: border-box;
  12767. border-radius: 5px;
  12768. flex-wrap: wrap;
  12769. position: relative;
  12770. }
  12771. .navTask::before {
  12772. content: '';
  12773. display: block;
  12774. width: 16px;
  12775. height: 16px;
  12776. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12777. background-size: 100%;
  12778. margin-left: 23px;
  12779. }
  12780. .isNavOpen::before {
  12781. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12782. }
  12783. .isNavTask {
  12784. /* background: #3681FC; */
  12785. background: #EEF3FB;
  12786. }
  12787. .isNavTask>.chapter_upload_drag {
  12788. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12789. }
  12790. .isNavTask .nt_taskName {
  12791. /* color: #fff !important; */
  12792. font-weight: bold !important;
  12793. color: #0061FF !important;
  12794. }
  12795. .isNavTask .nt_taskTitle {
  12796. /* color: #AECCFE !important; */
  12797. font-weight: bold !important;
  12798. color: #0061FF !important;
  12799. }
  12800. .navTask .nt_taskBox {
  12801. width: calc(100% - 40px);
  12802. padding: 0 0 0 5px;
  12803. box-sizing: border-box;
  12804. box-sizing: border-box;
  12805. display: flex;
  12806. flex-direction: row;
  12807. flex-wrap: nowrap;
  12808. align-items: baseline;
  12809. }
  12810. .navTask .nt_taskTitle {
  12811. /* color: #717C8D; */
  12812. color: #060E17;
  12813. line-height: 25px;
  12814. font-size: 16px;
  12815. min-width: 50px;
  12816. }
  12817. .navTask .nt_taskName {
  12818. /* color: #fff; */
  12819. /* max-width: 130px; */
  12820. /* width: 100%; */
  12821. max-width: calc(100% - 50px);
  12822. white-space: nowrap;
  12823. overflow: hidden;
  12824. text-overflow: ellipsis;
  12825. font-size: 16px;
  12826. color: #060E17;
  12827. /* color: #0E1E33; */
  12828. }
  12829. .gjBox {
  12830. width: calc(100% - 25px);
  12831. padding: 0 0 0 0;
  12832. box-sizing: border-box;
  12833. border-left: 1px solid #CAD1DC;
  12834. margin-left: 25px;
  12835. }
  12836. .gjBox>div {
  12837. display: flex;
  12838. align-items: center;
  12839. }
  12840. .gjBox>div::before {
  12841. content: '';
  12842. height: 1px;
  12843. width: 10px;
  12844. background: #CAD1DC;
  12845. display: block;
  12846. margin-right: 5px;
  12847. }
  12848. .gjCss {
  12849. display: flex;
  12850. flex-direction: row;
  12851. flex-wrap: nowrap;
  12852. align-items: center;
  12853. padding: 15px 0;
  12854. box-sizing: border-box;
  12855. font-size: 14px;
  12856. cursor: pointer;
  12857. }
  12858. .isGjCss {
  12859. color: #0061ff;
  12860. }
  12861. .groupBox {}
  12862. .groupContent+.groupContent {
  12863. margin-top: 30px;
  12864. }
  12865. .groupTitle {
  12866. font-size: 24px;
  12867. color: rgb(80, 80, 80);
  12868. margin-bottom: 20px;
  12869. }
  12870. .groupName {
  12871. display: flex;
  12872. align-items: center;
  12873. }
  12874. .groupn {
  12875. font-size: 15px;
  12876. margin-right: 10px;
  12877. }
  12878. .groupName+.groupName {
  12879. margin-top: 15px;
  12880. }
  12881. .groupBtn {
  12882. margin-left: 10px;
  12883. }
  12884. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12885. text-align: left;
  12886. }
  12887. .radioBox>div {
  12888. margin: 10px 0 0 10px;
  12889. }
  12890. .radioBox>>>.el-radio__input,
  12891. .radioBox>>>.el-checkbox__inner {
  12892. margin-left: 10px;
  12893. }
  12894. .radioBox>>>.el-radio__label,
  12895. .radioBox>>>.el-checkbox__label {
  12896. display: flex;
  12897. align-items: center;
  12898. }
  12899. .inImg {
  12900. width: 50px;
  12901. }
  12902. .inImg>img {
  12903. width: 100%;
  12904. height: 100%;
  12905. object-fit: cover;
  12906. }
  12907. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  12908. height: auto;
  12909. padding: 10px;
  12910. margin: 0;
  12911. }
  12912. .upCss>>>.el-upload-list {
  12913. width: 100%;
  12914. }
  12915. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  12916. width: 100%;
  12917. height: 120px;
  12918. object-fit: contain;
  12919. background: unset;
  12920. margin-left: 0;
  12921. }
  12922. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  12923. display: none;
  12924. }
  12925. .tcMember+.tcMember::before {
  12926. content: "、";
  12927. }
  12928. .xzUpImg {
  12929. width: 25px;
  12930. height: 25px;
  12931. min-width: 25px;
  12932. min-height: 25px;
  12933. cursor: pointer;
  12934. margin: 0 10px;
  12935. }
  12936. .xzUpImg>img {
  12937. width: 100%;
  12938. height: 100%;
  12939. }
  12940. .closeCss {
  12941. position: absolute;
  12942. top: 8px;
  12943. right: 8px;
  12944. cursor: pointer;
  12945. width: 20px;
  12946. height: 20px;
  12947. }
  12948. .closeCss>img {
  12949. width: 100%;
  12950. height: 100%;
  12951. }
  12952. .moveBtn {
  12953. display: flex;
  12954. flex-direction: row;
  12955. flex-wrap: nowrap;
  12956. align-items: center;
  12957. width: 55px;
  12958. }
  12959. .timuUpImg {
  12960. display: flex;
  12961. flex-direction: row;
  12962. align-items: center;
  12963. width: 100%;
  12964. margin-right: 10px;
  12965. }
  12966. .timuUpImg>div:nth-child(1) {
  12967. margin-right: 10px;
  12968. display: flex;
  12969. align-items: center;
  12970. width: 100%;
  12971. }
  12972. .timuImgBox {
  12973. margin: 10px 0;
  12974. display: flex;
  12975. flex-direction: column;
  12976. flex-wrap: wrap;
  12977. align-items: flex-start;
  12978. }
  12979. .timuImg {
  12980. width: 100px;
  12981. margin: 5px 0;
  12982. cursor: pointer;
  12983. position: relative;
  12984. }
  12985. .timuImg:hover .deleteWord {
  12986. display: block;
  12987. }
  12988. .deleteWord {
  12989. width: 25px;
  12990. height: 25px;
  12991. position: absolute;
  12992. right: -5px;
  12993. top: -5px;
  12994. cursor: pointer;
  12995. display: none;
  12996. }
  12997. .timuImg>img,
  12998. .deleteWord>img {
  12999. width: 100%;
  13000. height: 100%;
  13001. object-fit: cover;
  13002. }
  13003. .e_add_delete {
  13004. cursor: pointer;
  13005. margin-left: 10px;
  13006. }
  13007. .pType_box {
  13008. margin-top: 30px;
  13009. align-items: flex-end;
  13010. }
  13011. .noneBox {
  13012. height: 100%;
  13013. width: 100%;
  13014. display: flex;
  13015. align-items: center;
  13016. justify-content: center;
  13017. margin-top: 150px;
  13018. }
  13019. .noneBox>img {
  13020. width: 300px;
  13021. }
  13022. .textarea_css {
  13023. display: block;
  13024. resize: none;
  13025. padding: 10px 15px;
  13026. line-height: 1.5;
  13027. box-sizing: border-box;
  13028. width: 100%;
  13029. font-size: 14px;
  13030. color: #606266;
  13031. background-color: #FFF;
  13032. background-image: none;
  13033. border: 1px solid #DCDFE6;
  13034. border-radius: 4px;
  13035. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13036. outline: none;
  13037. overflow: hidden;
  13038. height: 46px;
  13039. font-family: 'Microsoft YaHei';
  13040. }
  13041. .textarea_css::-webkit-input-placeholder {
  13042. color: #C0C4CC
  13043. }
  13044. .textarea_css:focus {
  13045. border-color: #409EFF;
  13046. outline: 0;
  13047. }
  13048. .moveBtn2 {
  13049. flex-direction: column;
  13050. width: fit-content;
  13051. margin: 0 10px 0 10px;
  13052. }
  13053. .moveBtn2 .chapter_upload_down,
  13054. .moveBtn2 .chapter_upload_up {
  13055. width: 16px;
  13056. height: 16px;
  13057. }
  13058. .moveBtn2 .chapter_upload_up::after,
  13059. .moveBtn2 .chapter_upload_down::after {
  13060. width: 10px;
  13061. height: 10px;
  13062. }
  13063. .fullStyle>>>.el-dialog__body {
  13064. height: calc(100% - 125px) !important;
  13065. box-sizing: border-box;
  13066. }
  13067. .fullStyle>>>.el-dialog {
  13068. width: 100% !important;
  13069. max-width: 100% !important;
  13070. height: 100% !important;
  13071. margin: 0 !important;
  13072. }
  13073. .fullStyle {
  13074. width: 100% !important;
  13075. max-width: 100% !important;
  13076. height: 100% !important;
  13077. margin: 0 auto !important;
  13078. }
  13079. .wb_j_box_btn {
  13080. width: calc(100% - 30px);
  13081. display: flex;
  13082. height: 40px;
  13083. border: 1.5px solid #CAD1DC;
  13084. border-radius: 4px;
  13085. box-sizing: border-box;
  13086. align-items: center;
  13087. font-size: 14px;
  13088. cursor: pointer;
  13089. overflow: hidden;
  13090. }
  13091. .wb_j_box_btn:hover {
  13092. border: 1.5px solid #0061FF;
  13093. }
  13094. .wb_j_box_title {
  13095. background: #F0F4FA;
  13096. height: 100%;
  13097. line-height: 40px;
  13098. width: 90px;
  13099. text-align: center;
  13100. color: #060E17;
  13101. border-right: 1.5px solid #CAD1DC;
  13102. box-sizing: border-box;
  13103. }
  13104. .wb_j_box_btn_c {
  13105. width: calc(100% - 90px);
  13106. padding: 0 35px 0 10px;
  13107. box-sizing: border-box;
  13108. position: relative;
  13109. }
  13110. .wb_j_box_span {
  13111. width: 100%;
  13112. overflow: hidden;
  13113. white-space: nowrap;
  13114. text-overflow: ellipsis;
  13115. word-wrap: break-word;
  13116. color: #717C8D;
  13117. }
  13118. .wb_j_box_arrow {
  13119. content: '';
  13120. width: 14px;
  13121. height: 14px;
  13122. background: url(../../../assets/icon/new/u_arrow.png);
  13123. background-size: 100% 100%;
  13124. position: absolute;
  13125. right: 12px;
  13126. top: 50%;
  13127. transform: translateY(-50%);
  13128. }
  13129. .check_classBox {
  13130. height: 400px;
  13131. display: flex;
  13132. border-top: 1.5px solid #E7EBF1;
  13133. border-bottom: 1.5px solid #E7EBF1;
  13134. }
  13135. .check_class_right {
  13136. width: 130px;
  13137. border-right: 1px solid #E7EBF1;
  13138. display: flex;
  13139. align-items: center;
  13140. flex-direction: column;
  13141. height: 100%;
  13142. overflow: auto;
  13143. padding: 15px 0;
  13144. box-sizing: border-box;
  13145. }
  13146. .check_class {
  13147. width: 85%;
  13148. border-radius: 5px;
  13149. height: 30px;
  13150. line-height: 30px;
  13151. text-align: center;
  13152. padding: 0 10px;
  13153. box-sizing: border-box;
  13154. cursor: pointer;
  13155. white-space: nowrap;
  13156. overflow: hidden;
  13157. text-overflow: ellipsis;
  13158. }
  13159. .check_class.activeX {
  13160. background: #E0EAFB;
  13161. color: #3681FC;
  13162. font-weight: 700;
  13163. }
  13164. .check_class+.check_class {
  13165. margin-top: 15px;
  13166. }
  13167. .check_class_left {
  13168. background: #FAFAFA;
  13169. width: calc(100% - 130px);
  13170. padding: 15px;
  13171. box-sizing: border-box;
  13172. }
  13173. .check_class_all_box {
  13174. display: flex;
  13175. margin-bottom: 10px;
  13176. }
  13177. .all_check {
  13178. display: flex;
  13179. align-items: center;
  13180. padding: 2px 0 0;
  13181. margin-left: 10px;
  13182. }
  13183. .all_check>>>.el-checkbox__label {
  13184. line-height: unset;
  13185. }
  13186. .check_class_left_title {
  13187. font-size: 16px;
  13188. font-weight: 700;
  13189. margin-bottom: 10px;
  13190. }
  13191. .check_class_item {
  13192. display: flex;
  13193. flex-wrap: wrap;
  13194. height: calc(100% - 45px);
  13195. overflow: auto;
  13196. justify-content: flex-start;
  13197. align-items: flex-start;
  13198. align-content: flex-start;
  13199. }
  13200. .class_item {
  13201. margin: 0 15px 15px 0;
  13202. }
  13203. .class_item:hover>>>.el-checkbox__label {
  13204. color: #409EFF;
  13205. }
  13206. .class_item>>>.el-checkbox__label {
  13207. color: #0E1E33;
  13208. }
  13209. .class_item:hover>>>.el-checkbox__inner {
  13210. border-color: #409EFF;
  13211. }
  13212. .class_item>>>.el-checkbox,
  13213. .class_item>>>.el-checkbox__input {
  13214. display: flex;
  13215. align-items: center;
  13216. }
  13217. </style>