addCourse.vue 500 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980
  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" :class="{uploadFm2:cover.length}">
  96. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  97. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  98. <div v-if="cover.length == 0">点击添加封面</div>
  99. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  100. </div>
  101. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  102. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  103. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  104. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  105. <i class="el-icon-plus"></i>
  106. </el-upload> -->
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="whiteBg" style="margin-top: 10px">
  114. <div class="wb_j_box">
  115. <div class="wb_j_box_content">
  116. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  117. (dialogVisibleClass = true),
  118. (classSearch = ''),
  119. (gradeId = ''),
  120. getClass()
  121. ">添加班级</button>
  122. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  123. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  124. getClassC(tc) }}</span>
  125. </div> -->
  126. <div class="wb_j_box_btn" @click="
  127. (dialogVisibleClass = true),
  128. (classSearch = ''),
  129. (gradeId = ''),
  130. getClass()
  131. ">
  132. <div class="wb_j_box_title">授课班级</div>
  133. <div class="wb_j_box_btn_c">
  134. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  135. v-if="checkboxList2.length" popper-class="text_tooltip2">
  136. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  137. </el-tooltip>
  138. <div v-else class="wb_j_box_span">请选择授课班级</div>
  139. <div class="wb_j_box_arrow"></div>
  140. </div>
  141. </div>
  142. </div>
  143. <div style="margin-left: auto;">
  144. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="whiteBg" style="border-radius: 0;background:unset; margin-top: 15px" v-if="false">
  149. <div class="right_title">课程简要描述</div>
  150. <div style="width: 95%; padding: 15px 0px 15px 20px">
  151. <div style="width: 55%">
  152. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="whiteBg" style="border-radius: 0;background: #F0F2F5;">
  157. <!-- <div class="right_title">
  158. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
  159. <span style="margin:0 10px">上传课程内容</span>
  160. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
  161. </div> -->
  162. <div style="display: flex">
  163. <div class="course_left">
  164. <div class="stepsBottom2">
  165. <!-- <div class="navTop">辅助导航</div> -->
  166. <div class="navBottom" :style="{ height: heightPx }">
  167. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  168. .taskJson" :key="tIndex" :class="{
  169. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  170. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  171. }">
  172. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  173. @dragend="dragTaskEnd()" draggable @click="goToTask(tIndex)" class="navTask" :class="{
  174. isNavTask:
  175. isClickColor > 0 && isClickColor == tIndex + 1,
  176. isNavOpen: t.toolOpen
  177. }">
  178. <div style="left: 8px;" class="chapter_upload_drag"></div>
  179. <div class="nt_taskBox">
  180. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  181. <div class="nt_taskName">
  182. <el-tooltip effect="light" :content="t.task" placement="top">
  183. <span>{{ t.task }}</span>
  184. </el-tooltip>
  185. </div>
  186. </div>
  187. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  188. 1
  189. ">
  190. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  191. @click.stop="taskMove(1, tIndex)"></div>
  192. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  193. @click.stop="taskMove(2, tIndex)"></div>
  194. </div> -->
  195. </div>
  196. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  197. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  198. @click="jumpGj(tIndex, toolIndex2)">
  199. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  200. <div>工具{{ toolIndex2 + 1 }}:</div>
  201. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="basic_box2">
  210. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  211. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  212. <div class="taskBorder" :style="{
  213. minHeight: unitJson[unitIndex].easy && 'unset',
  214. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  215. <div v-if="unitJson[unitIndex].easy != 1">
  216. <div :style="{
  217. marginBottom:
  218. unitJson[unitIndex].easy == 3 ||
  219. (unitJson[unitIndex].easy == 5 &&
  220. itemTask.taskType == 1)
  221. ? '75px'
  222. : '0',
  223. }">
  224. <div style="
  225. display: flex;
  226. margin: 0px 0 20px;
  227. flex-direction: row;
  228. justify-content: flex-start;
  229. align-items: center;
  230. ">
  231. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  232. </div>
  233. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  234. flex-direction: row;
  235. justify-content: flex-start;
  236. align-items: center;
  237. ">
  238. <!-- <div
  239. :id="'task' + itemTaskIndex"
  240. class="cc_title"
  241. >
  242. 任务{{ itemTaskIndex + 1 }}
  243. </div> -->
  244. <div class="cc_input">
  245. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  246. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  247. itemTaskIndex
  248. ].task
  249. " />
  250. </div>
  251. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  252. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  253. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  254. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  255. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  256. </div>
  257. </div>
  258. </div>
  259. <div style="margin: 25px 0 0" v-if="itemTask.isFold2">
  260. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  261. itemTaskIndex
  262. ].taskDetail
  263. " @change="change"></editor-bar> -->
  264. <textarea v-autoHeight="70" rows="2" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  265. itemTaskIndex
  266. ].taskDetail
  267. "></textarea>
  268. </div>
  269. <div class="basic_box" style="
  270. padding: 25px 0 0 !important;
  271. ">
  272. <div style="
  273. display: flex;
  274. margin: 0 0 0 0;
  275. flex-direction: row;
  276. justify-content: space-between;
  277. align-items: center;
  278. ">
  279. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  280. <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
  281. @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容
  282. </div>
  283. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
  284. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  285. </div>
  286. <div v-if="!itemTask.isFoldchapter">
  287. <div class="add_chapters_box add_c_none" v-if="itemTask.chapterData &&
  288. itemTask.chapterData.length == 0
  289. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  290. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  291. <div @dragstart="dragStart(item1, index1, itemTaskIndex)" @dragover.prevent="dragOver(index1,itemTaskIndex)"
  292. @dragend="dragEnd()" draggable class="chapter_upload"
  293. v-for="(item1, index1) in itemTask.chapterData" :key="item1.id" @click="
  294. getChapterData(
  295. $event,
  296. unitIndex,
  297. index,
  298. index1,
  299. item1.type
  300. )
  301. " :class="{
  302. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex > index1,
  303. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+itemTaskIndex+'-'+index1 && oldIndex < index1,
  304. }">
  305. <div class="chapter_upload_drag"></div>
  306. <div class="chapter_upload_t" style="width: 100%"></div>
  307. <div class="chapter_upload_o" style="
  308. position: relative;
  309. display: flex;
  310. align-items: center;
  311. ">
  312. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  313. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  314. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  315. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  316. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  317. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  318. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  319. </div>
  320. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  321. </div>
  322. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  323. </div>
  324. </div>
  325. <div class="chapter_upload_n">
  326. <input readonly="true" v-if="item1.type == 2 ||
  327. item1.type == 3 ||
  328. item1.type == 12 ||
  329. item1.type == 13 ||
  330. item1.type == 7
  331. " :placeholder="item1.name" @click="
  332. updataVideoT(
  333. $event,
  334. unitIndex,
  335. itemTaskIndex,
  336. index1
  337. )
  338. " style="
  339. border: none;
  340. outline: none;
  341. width: 80%;
  342. minwidth: 215px;
  343. z-index: 99;
  344. font-size: 14px;
  345. white-space: nowrap;
  346. overflow: hidden;
  347. text-overflow: ellipsis;
  348. " />
  349. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  350. border: none;
  351. outline: none;
  352. width: 80%;
  353. white-space: nowrap;
  354. overflow: hidden;
  355. text-overflow: ellipsis;
  356. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  357. <input :placeholder="item1.title ? item1.title : '链接'
  358. " v-if="item1.type == 8" style="
  359. border: none;
  360. outline: none;
  361. width: 80%;
  362. white-space: nowrap;
  363. overflow: hidden;
  364. text-overflow: ellipsis;
  365. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  366. <input :placeholder="item1.title ? item1.title : '链接'
  367. " v-if="item1.type == 14" style="
  368. border: none;
  369. outline: none;
  370. width: 80%;
  371. white-space: nowrap;
  372. overflow: hidden;
  373. text-overflow: ellipsis;
  374. " readonly="true" @click="openUpdateSource(itemTaskIndex, index1)" />
  375. </div>
  376. <div class="chapter_upload_ic">
  377. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  378. </div>
  379. <div class="chapter_upload_ud" style="z-index: 99">
  380. <div class="chapter_upload_up" @click="
  381. upCd(
  382. $event,
  383. unitIndex,
  384. index,
  385. itemTaskIndex,
  386. index1
  387. )
  388. "></div>
  389. <div class="chapter_upload_down" @click="
  390. downCd(
  391. $event,
  392. unitIndex,
  393. index,
  394. itemTaskIndex,
  395. index1
  396. )
  397. "></div>
  398. </div>
  399. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  400. item1.type == 3 ||
  401. item1.type == 12 ||
  402. item1.type == 13 ||
  403. item1.type == 7
  404. " @click.stop="
  405. updataVideoT(
  406. $event,
  407. unitIndex,
  408. itemTaskIndex,
  409. index1
  410. )
  411. ">
  412. <div></div>
  413. </div>
  414. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  415. @click="selectAttText(itemTaskIndex, index1)">
  416. <div></div>
  417. </div>
  418. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  419. @click="selectLine(itemTaskIndex, index1)">
  420. <div></div>
  421. </div>
  422. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  423. @click="openUpdateSource(itemTaskIndex, index1)">
  424. <div></div>
  425. </div>
  426. <div class="chapter_upload_ic_r" @click.stop="
  427. deleteChapterData(
  428. $event,
  429. unitIndex,
  430. index,
  431. index1,
  432. itemTaskIndex
  433. )
  434. ">
  435. <div></div>
  436. </div>
  437. </div>
  438. </div>
  439. </div>
  440. </div>
  441. </div>
  442. <div class="add_info_box" style="margin:10px 0 0" v-if="!itemTask.isFoldchapter">
  443. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  444. 文件
  445. <input type="file" accept="*" style="display: none" v-if="inputShow"
  446. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  447. </button>
  448. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  449. 图文
  450. </button>
  451. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  452. 链接
  453. </button>
  454. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  455. 代码
  456. </button>
  457. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  458. 资源
  459. </button>
  460. <!-- <button class="info_btn" @click="addImg($event)">
  461. 其他附件
  462. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  463. " />
  464. </button> -->
  465. </div>
  466. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  467. itemTaskIndex
  468. ].proVisible
  469. " class="mask">
  470. <div class="progressBox">
  471. <!-- <div id="closePro" class="closeCss">
  472. <img src="../../../../assets/icon/close.png" alt />
  473. </div> -->
  474. <div class="lbox">
  475. <img src="../../../assets/loading.gif" />上传中,请稍后
  476. </div>
  477. <div style="margin-bottom: 10px">
  478. <span>{{
  479. unitJson[unitIndex].chapterInfo[0].taskJson[
  480. itemTaskIndex
  481. ].isFinishSize
  482. }}M</span>
  483. /
  484. <span>{{
  485. unitJson[unitIndex].chapterInfo[0].taskJson[
  486. itemTaskIndex
  487. ].isAllSize
  488. }}M</span>
  489. </div>
  490. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  491. itemTaskIndex
  492. ].progress
  493. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  494. itemTaskIndex
  495. ].progress
  496. : 0
  497. " style="width: 80%"></el-progress>
  498. </div>
  499. </div>
  500. </div>
  501. <div class="toolChoose" style="margin: 5px 0 20px">
  502. <div class="tools">
  503. <div class="leftTools" style="
  504. width: 100%;
  505. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  506. <div style="
  507. display: flex;
  508. flex-direction: row;
  509. align-items: baseline;
  510. flex-wrap: nowrap;
  511. justify-content: flex-start;
  512. position: relative;
  513. ">
  514. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  515. style="margin-right: 20px; font-weight: bold">
  516. 步骤 {{ toolIndex + 1 }} :
  517. </div>
  518. <div class="chooseWho">
  519. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  520. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  521. 互动类
  522. </div>
  523. <div :class="itemTool.toolType == 1
  524. ? 'isChooseActive'
  525. : ''
  526. " @click="
  527. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  528. ">
  529. 思维类
  530. </div>
  531. <div :class="itemTool.toolType == 6
  532. ? 'isChooseActive'
  533. : ''
  534. " @click="
  535. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  536. ">
  537. 协作类
  538. </div>
  539. <div :class="itemTool.toolType == 2
  540. ? 'isChooseActive'
  541. : ''
  542. " @click="
  543. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  544. ">
  545. 测评类
  546. </div>
  547. <div :class="itemTool.toolType == 7
  548. ? 'isChooseActive'
  549. : ''
  550. " @click="
  551. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  552. ">
  553. 评价类
  554. </div>
  555. <div :class="itemTool.toolType == 3
  556. ? 'isChooseActive'
  557. : ''
  558. " @click="
  559. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  560. ">
  561. 编程类
  562. </div>
  563. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  564. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  565. 学科类
  566. </div>
  567. <!--<div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  568. " @click="(itemTool.toolType = 4), $forceUpdate()">
  569. 其他
  570. </div> -->
  571. </div>
  572. <div class="chapter_upload_ud2" style="z-index: 99;margin:0 0 0 auto" v-if="itemTask.toolChoose.length > 1">
  573. <div class="chapter_upload_up2" @click.stop="
  574. upTool(
  575. $event,
  576. unitIndex,
  577. itemTaskIndex,
  578. toolIndex
  579. )
  580. ">上移</div>
  581. <div class="chapter_upload_down2" @click.stop="
  582. downTool(
  583. $event,
  584. unitIndex,
  585. itemTaskIndex,
  586. toolIndex
  587. )
  588. ">下移</div>
  589. </div>
  590. <div v-if="itemTool.isFold3" class="show_toolD show"
  591. @click="fold3(itemTaskIndex, toolIndex)"
  592. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  593. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  594. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  595. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  596. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  597. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  598. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  599. </div>
  600. <div style="min-height: 163px" v-show="itemTool.isFold3">
  601. <div class="toolSort" v-if="itemTool.toolType == 0">
  602. <!-- <div class="tool">
  603. <div
  604. class="whiteBIcon"
  605. @click="addTools(8, itemTaskIndex, toolIndex)"
  606. >
  607. <img src="../../../assets/icon/secondToolList/library.png" alt />
  608. <div style="margin: 5px 0">素材库</div>
  609. </div>
  610. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  611. <img
  612. src="../../../assets/icon/checkNo.png"
  613. alt
  614. v-if="itemTool.tool.indexOf(8) == -1"
  615. />
  616. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  617. alt /><span>已选择</span></div>
  618. </div>
  619. </div>-->
  620. <!-- <div class="tool">
  621. <div
  622. class="whiteBIcon"
  623. @click="addTools(17, itemTaskIndex, toolIndex)"
  624. >
  625. <img
  626. src="../../../assets/icon/secondToolList/library.png"
  627. alt
  628. />
  629. <div style="margin: 5px 0">学习资料</div>
  630. </div>
  631. <div
  632. class="check"
  633. @click="addTools(17, itemTaskIndex, toolIndex)"
  634. >
  635. <img
  636. src="../../../assets/icon/checkNo.png"
  637. alt
  638. v-if="itemTool.tool.indexOf(17) == -1"
  639. />
  640. <img
  641. src="../../../assets/icon/checkedIs.png"
  642. alt
  643. v-else
  644. />
  645. </div>10
  646. </div> -->
  647. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  648. @click="addTools(10, itemTaskIndex, toolIndex)">
  649. <div class="whiteBIcon" @click.stop="
  650. openTools(itemTaskIndex, 10, toolIndex)
  651. ">
  652. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  653. <div style="margin: 5px 0">倒计时</div>
  654. </div>
  655. <div class="isCTool" v-show="itemTool.tool.indexOf(10) != -1"><img
  656. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  657. <!-- <div
  658. class="check"
  659. @click="
  660. addTools(10, itemTaskIndex, toolIndex)
  661. "
  662. >
  663. <img
  664. src="../../../assets/icon/checkNo.png"
  665. alt
  666. v-if="itemTool.tool.indexOf(10) == -1"
  667. />
  668. <div class="checkDiv" v-else>
  669. <img
  670. src="../../../assets/icon/checkedIs.png"
  671. alt
  672. /><span>已选择</span>
  673. </div>
  674. </div> -->
  675. </div>
  676. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  677. @click="addTools(65, itemTaskIndex, toolIndex)">
  678. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  679. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  680. <div style="margin: 5px 0">挑人</div>
  681. </div>
  682. <div class="isCTool" v-show="itemTool.tool.indexOf(65) != -1"><img
  683. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  684. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  685. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(65) == -1" />
  686. <div class="checkDiv" v-else>
  687. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  688. </div>
  689. </div> -->
  690. </div>
  691. <!-- <div class="tool">
  692. <div
  693. class="whiteBIcon"
  694. @click="
  695. openTools(itemTaskIndex, 49, toolIndex)
  696. "
  697. >
  698. <img
  699. src="../../../assets/icon/fourthToolList/group.png"
  700. alt
  701. />
  702. <div style="margin: 5px 0">学生分组</div>
  703. </div>
  704. <div
  705. class="check"
  706. @click="
  707. addTools(49, itemTaskIndex, toolIndex)
  708. "
  709. >
  710. <img
  711. src="../../../assets/icon/checkNo.png"
  712. alt
  713. v-if="itemTool.tool.indexOf(49) == -1"
  714. />
  715. <div class="checkDiv" v-else>
  716. <img
  717. src="../../../assets/icon/checkedIs.png"
  718. alt
  719. /><span>已选择</span>
  720. </div>
  721. </div>
  722. </div> -->
  723. <!-- <div class="tool">
  724. <div
  725. class="whiteBIcon"
  726. @click="
  727. openTools(itemTaskIndex, 62, toolIndex)
  728. "
  729. >
  730. <img
  731. src="../../../assets/icon/fourthToolList/interVideo.png"
  732. alt
  733. />
  734. <div style="margin: 5px 0">交互视频</div>
  735. </div>
  736. <div
  737. class="check"
  738. @click="
  739. addTools(62, itemTaskIndex, toolIndex)
  740. "
  741. >
  742. <img
  743. src="../../../assets/icon/checkNo.png"
  744. alt
  745. v-if="itemTool.tool.indexOf(62) == -1"
  746. />
  747. <div class="checkDiv" v-else>
  748. <img
  749. src="../../../assets/icon/checkedIs.png"
  750. alt
  751. /><span>已选择</span>
  752. </div>
  753. </div>
  754. </div> -->
  755. </div>
  756. <div class="toolSort" v-if="itemTool.toolType == 1">
  757. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  758. @click="addTools(7, itemTaskIndex, toolIndex)">
  759. <div class="whiteBIcon" @click.stop="
  760. addTools(7, itemTaskIndex, toolIndex)
  761. ">
  762. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  763. <div style="margin: 5px 0">思维网格</div>
  764. </div>
  765. <div class="isCTool" v-show="itemTool.tool.indexOf(7) != -1"><img
  766. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  767. <!-- <div
  768. class="check"
  769. @click="
  770. addTools(7, itemTaskIndex, toolIndex)
  771. "
  772. >
  773. <img
  774. src="../../../assets/icon/checkNo.png"
  775. alt
  776. v-if="itemTool.tool.indexOf(7) == -1"
  777. />
  778. <div class="checkDiv" v-else>
  779. <img
  780. src="../../../assets/icon/checkedIs.png"
  781. alt
  782. /><span>已选择</span>
  783. </div>
  784. </div> -->
  785. </div>
  786. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  787. @click="addTools(1, itemTaskIndex, toolIndex)">
  788. <div class="whiteBIcon" @click.stop="
  789. openTools(itemTaskIndex, 1, toolIndex)
  790. ">
  791. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  792. <div style="margin: 5px 0">电子白板</div>
  793. </div>
  794. <div class="isCTool" v-show="itemTool.tool.indexOf(1) != -1"><img
  795. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  796. <!-- <div
  797. class="check"
  798. @click="
  799. addTools(1, itemTaskIndex, toolIndex)
  800. "
  801. >
  802. <img
  803. src="../../../assets/icon/checkNo.png"
  804. alt
  805. v-if="itemTool.tool.indexOf(1) == -1"
  806. />
  807. <div class="checkDiv" v-else>
  808. <img
  809. src="../../../assets/icon/checkedIs.png"
  810. alt
  811. /><span>已选择</span>
  812. </div>
  813. </div> -->
  814. </div>
  815. <!-- <div class="tool">
  816. <div
  817. class="whiteBIcon"
  818. @click="addTools(2, itemTaskIndex, toolIndex)"
  819. >
  820. <img
  821. src="../../../assets/icon/secondToolList/note.png"
  822. alt
  823. />
  824. <div style="margin: 5px 0">便签</div>
  825. </div>
  826. <div
  827. class="check"
  828. @click="addTools(2, itemTaskIndex, toolIndex)"
  829. >
  830. <img
  831. src="../../../assets/icon/checkNo.png"
  832. alt
  833. v-if="itemTool.tool.indexOf(2) == -1"
  834. />
  835. <div class="checkDiv" v-else>
  836. <img
  837. src="../../../assets/icon/checkedIs.png"
  838. alt
  839. /><span>已选择</span>
  840. </div>
  841. </div>
  842. </div> -->
  843. <!-- <div class="tool">
  844. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  845. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  846. <div style="margin: 5px 0">协同文档</div>
  847. </div>
  848. <div
  849. class="check"
  850. @click="addTools(6, itemTaskIndex, toolIndex)"
  851. >
  852. <img
  853. src="../../../assets/icon/checkNo.png"
  854. alt
  855. v-if="itemTool.tool.indexOf(6) == -1"
  856. />
  857. <div class="checkDiv" v-else>
  858. <img
  859. src="../../../assets/icon/checkedIs.png"
  860. alt
  861. /><span>已选择</span>
  862. </div>
  863. </div>
  864. </div> -->
  865. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  866. @click="addTools(52, itemTaskIndex, toolIndex)">
  867. <div class="whiteBIcon" @click.stop="
  868. openTools(itemTaskIndex, 52, toolIndex)
  869. ">
  870. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  871. <div style="margin: 5px 0">文档</div>
  872. </div>
  873. <div class="isCTool" v-show="itemTool.tool.indexOf(52) != -1"><img
  874. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  875. <!-- <div
  876. class="check"
  877. @click="
  878. addTools(52, itemTaskIndex, toolIndex)
  879. "
  880. >
  881. <img
  882. src="../../../assets/icon/checkNo.png"
  883. alt
  884. v-if="itemTool.tool.indexOf(52) == -1"
  885. />
  886. <div class="checkDiv" v-else>
  887. <img
  888. src="../../../assets/icon/checkedIs.png"
  889. alt
  890. /><span>已选择</span>
  891. </div>
  892. </div> -->
  893. </div>
  894. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  895. @click="addTools(3, itemTaskIndex, toolIndex)">
  896. <div class="whiteBIcon" @click.stop="
  897. openTools(itemTaskIndex, 3, toolIndex)
  898. ">
  899. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  900. <div style="margin: 5px 0">思维导图</div>
  901. </div>
  902. <div class="isCTool" v-show="itemTool.tool.indexOf(3) != -1"><img
  903. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  904. <!-- <div
  905. class="check"
  906. @click="
  907. addTools(3, itemTaskIndex, toolIndex)
  908. "
  909. >
  910. <img
  911. src="../../../assets/icon/checkNo.png"
  912. alt
  913. v-if="itemTool.tool.indexOf(3) == -1"
  914. />
  915. <div class="checkDiv" v-else>
  916. <img
  917. src="../../../assets/icon/checkedIs.png"
  918. alt
  919. /><span>已选择</span>
  920. </div>
  921. </div> -->
  922. </div>
  923. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  924. @click="addTools(48, itemTaskIndex, toolIndex)">
  925. <div class="whiteBIcon" @click.stop="
  926. openTools(itemTaskIndex, 48, toolIndex)
  927. ">
  928. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  929. <div style="margin: 5px 0">表格</div>
  930. </div>
  931. <div class="isCTool" v-show="itemTool.tool.indexOf(48) != -1"><img
  932. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  933. <!-- <div
  934. class="check"
  935. @click="
  936. addTools(48, itemTaskIndex, toolIndex)
  937. "
  938. >
  939. <img
  940. src="../../../assets/icon/checkNo.png"
  941. alt
  942. v-if="itemTool.tool.indexOf(48) == -1"
  943. />
  944. <div class="checkDiv" v-else>
  945. <img
  946. src="../../../assets/icon/checkedIs.png"
  947. alt
  948. /><span>已选择</span>
  949. </div>
  950. </div> -->
  951. </div>
  952. </div>
  953. <div class="toolSort" v-if="itemTool.toolType == 6">
  954. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  955. @click="addTools(49, itemTaskIndex, toolIndex)">
  956. <div class="whiteBIcon" @click.stop="
  957. openTools(itemTaskIndex, 49, toolIndex)
  958. ">
  959. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  960. <div style="margin: 5px 0">学生分组</div>
  961. </div>
  962. <div class="isCTool" v-show="itemTool.tool.indexOf(49) != -1"><img
  963. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  964. <!-- <div
  965. class="check"
  966. @click="
  967. addTools(49, itemTaskIndex, toolIndex)
  968. "
  969. >
  970. <img
  971. src="../../../assets/icon/checkNo.png"
  972. alt
  973. v-if="itemTool.tool.indexOf(49) == -1"
  974. />
  975. <div class="checkDiv" v-else>
  976. <img
  977. src="../../../assets/icon/checkedIs.png"
  978. alt
  979. /><span>已选择</span>
  980. </div>
  981. </div> -->
  982. </div>
  983. </div>
  984. <div class="toolSort" v-if="itemTool.toolType == 2">
  985. <!-- <div class="tool">
  986. <div
  987. class="whiteBIcon"
  988. @click="addTools(5, itemTaskIndex, toolIndex)"
  989. >
  990. <img
  991. src="../../../assets/icon/thirdToolList/score.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">量规评分</div>
  995. </div>
  996. <div
  997. class="check"
  998. @click="addTools(5, itemTaskIndex, toolIndex)"
  999. >
  1000. <img
  1001. src="../../../assets/icon/checkNo.png"
  1002. alt
  1003. v-if="itemTool.tool.indexOf(5) == -1"
  1004. />
  1005. <img
  1006. src="../../../assets/icon/checkedIs.png"
  1007. alt
  1008. v-else
  1009. />
  1010. </div>
  1011. </div>-->
  1012. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  1013. @click="addTools(4, itemTaskIndex, toolIndex)">
  1014. <div class="whiteBIcon" @click.stop="
  1015. openTools(itemTaskIndex, 4, toolIndex)
  1016. ">
  1017. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1018. <div style="margin: 5px 0">问卷调查</div>
  1019. </div>
  1020. <div class="isCTool" v-show="itemTool.tool.indexOf(4) != -1"><img
  1021. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1022. <!-- <div
  1023. class="check"
  1024. @click="
  1025. addTools(4, itemTaskIndex, toolIndex)
  1026. "
  1027. >
  1028. <img
  1029. src="../../../assets/icon/checkNo.png"
  1030. alt
  1031. v-if="itemTool.tool.indexOf(4) == -1"
  1032. />
  1033. <div class="checkDiv" v-else>
  1034. <img
  1035. src="../../../assets/icon/checkedIs.png"
  1036. alt
  1037. /><span>已选择</span>
  1038. </div>
  1039. </div> -->
  1040. </div>
  1041. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  1042. @click="addTools(45, itemTaskIndex, toolIndex)">
  1043. <div class="whiteBIcon" @click.stop="
  1044. openTools(itemTaskIndex, 45, toolIndex)
  1045. ">
  1046. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1047. <div style="margin: 5px 0">选择题</div>
  1048. </div>
  1049. <div class="isCTool" v-show="itemTool.tool.indexOf(45) != -1"><img
  1050. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1051. <!-- <div
  1052. class="check"
  1053. @click="
  1054. addTools(45, itemTaskIndex, toolIndex)
  1055. "
  1056. >
  1057. <img
  1058. src="../../../assets/icon/checkNo.png"
  1059. alt
  1060. v-if="itemTool.tool.indexOf(45) == -1"
  1061. />
  1062. <div class="checkDiv" v-else>
  1063. <img
  1064. src="../../../assets/icon/checkedIs.png"
  1065. alt
  1066. /><span>已选择</span>
  1067. </div>
  1068. </div> -->
  1069. </div>
  1070. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  1071. @click="addTools(15, itemTaskIndex, toolIndex)">
  1072. <div class="whiteBIcon" @click.stop="
  1073. openTools(itemTaskIndex, 15, toolIndex)
  1074. ">
  1075. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1076. <div style="margin: 5px 0">问答</div>
  1077. </div>
  1078. <div class="isCTool" v-show="itemTool.tool.indexOf(15) != -1"><img
  1079. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1080. <!-- <div
  1081. class="check"
  1082. @click="
  1083. addTools(15, itemTaskIndex, toolIndex)
  1084. "
  1085. >
  1086. <img
  1087. src="../../../assets/icon/checkNo.png"
  1088. alt
  1089. v-if="itemTool.tool.indexOf(15) == -1"
  1090. />
  1091. <div class="checkDiv" v-else>
  1092. <img
  1093. src="../../../assets/icon/checkedIs.png"
  1094. alt
  1095. /><span>已选择</span>
  1096. </div>
  1097. </div> -->
  1098. </div>
  1099. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1100. @click="addTools(16, itemTaskIndex, toolIndex)">
  1101. <div class="whiteBIcon" @click.stop="
  1102. addTools(16, itemTaskIndex, toolIndex)
  1103. ">
  1104. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1105. <div style="margin: 5px 0">作业提交</div>
  1106. </div>
  1107. <div class="isCTool" v-show="itemTool.tool.indexOf(16) != -1"><img
  1108. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1109. <!-- <div
  1110. class="check"
  1111. @click="
  1112. addTools(16, itemTaskIndex, toolIndex)
  1113. "
  1114. >
  1115. <img
  1116. src="../../../assets/icon/checkNo.png"
  1117. alt
  1118. v-if="itemTool.tool.indexOf(16) == -1"
  1119. />
  1120. <div class="checkDiv" v-else>
  1121. <img
  1122. src="../../../assets/icon/checkedIs.png"
  1123. alt
  1124. /><span>已选择</span>
  1125. </div>
  1126. </div> -->
  1127. </div>
  1128. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1129. @click="addTools(50, itemTaskIndex, toolIndex)">
  1130. <div class="whiteBIcon" @click.stop="
  1131. addTools(50, itemTaskIndex, toolIndex)
  1132. ">
  1133. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1134. <div style="margin: 5px 0">批量上传</div>
  1135. </div>
  1136. <div class="isCTool" v-show="itemTool.tool.indexOf(50) != -1"><img
  1137. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1138. <!-- <div
  1139. class="check"
  1140. @click="
  1141. addTools(50, itemTaskIndex, toolIndex)
  1142. "
  1143. >
  1144. <img
  1145. src="../../../assets/icon/checkNo.png"
  1146. alt
  1147. v-if="itemTool.tool.indexOf(50) == -1"
  1148. />
  1149. <div class="checkDiv" v-else>
  1150. <img
  1151. src="../../../assets/icon/checkedIs.png"
  1152. alt
  1153. /><span>已选择</span>
  1154. </div>
  1155. </div> -->
  1156. </div>
  1157. <!-- <div class="tool">
  1158. <div
  1159. class="whiteBIcon"
  1160. @click="
  1161. openTools(itemTaskIndex, 40, toolIndex)
  1162. "
  1163. >
  1164. <img
  1165. src="../../../assets/icon/thirdToolList/eval.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">个人评价</div>
  1169. </div>
  1170. <div
  1171. class="check"
  1172. @click="
  1173. addTools(40, itemTaskIndex, toolIndex)
  1174. "
  1175. >
  1176. <img
  1177. src="../../../assets/icon/checkNo.png"
  1178. alt
  1179. v-if="itemTool.tool.indexOf(40) == -1"
  1180. />
  1181. <div class="checkDiv" v-else>
  1182. <img
  1183. src="../../../assets/icon/checkedIs.png"
  1184. alt
  1185. /><span>已选择</span>
  1186. </div>
  1187. </div>
  1188. </div> -->
  1189. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1190. @click="addTools(41, itemTaskIndex, toolIndex)">
  1191. <div class="whiteBIcon" @click.stop="
  1192. openTools(itemTaskIndex, 41, toolIndex)
  1193. ">
  1194. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1195. <div style="margin: 5px 0">选择匹配</div>
  1196. </div>
  1197. <div class="isCTool" v-show="itemTool.tool.indexOf(41) != -1"><img
  1198. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1199. <!-- <div
  1200. class="check"
  1201. @click="
  1202. addTools(41, itemTaskIndex, toolIndex)
  1203. "
  1204. >
  1205. <img
  1206. src="../../../assets/icon/checkNo.png"
  1207. alt
  1208. v-if="itemTool.tool.indexOf(41) == -1"
  1209. />
  1210. <div class="checkDiv" v-else>
  1211. <img
  1212. src="../../../assets/icon/checkedIs.png"
  1213. alt
  1214. /><span>已选择</span>
  1215. </div>
  1216. </div> -->
  1217. </div>
  1218. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1219. @click="addTools(47, itemTaskIndex, toolIndex)">
  1220. <div class="whiteBIcon" @click.stop="
  1221. openTools(itemTaskIndex, 47, toolIndex)
  1222. ">
  1223. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1224. <div style="margin: 5px 0">排序</div>
  1225. </div>
  1226. <div class="isCTool" v-show="itemTool.tool.indexOf(47) != -1"><img
  1227. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1228. <!-- <div
  1229. class="check"
  1230. @click="
  1231. addTools(47, itemTaskIndex, toolIndex)
  1232. "
  1233. >
  1234. <img
  1235. src="../../../assets/icon/checkNo.png"
  1236. alt
  1237. v-if="itemTool.tool.indexOf(47) == -1"
  1238. />
  1239. <div class="checkDiv" v-else>
  1240. <img
  1241. src="../../../assets/icon/checkedIs.png"
  1242. alt
  1243. /><span>已选择</span>
  1244. </div>
  1245. </div> -->
  1246. </div>
  1247. <!-- <div class="tool">
  1248. <div
  1249. class="whiteBIcon"
  1250. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1251. >
  1252. <img
  1253. src="../../../assets/icon/thirdToolList/mp3.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">上传音频</div>
  1257. </div>
  1258. <div
  1259. class="check"
  1260. @click="addTools(42, itemTaskIndex, toolIndex)"
  1261. >
  1262. <img
  1263. src="../../../assets/icon/checkNo.png"
  1264. alt
  1265. v-if="itemTool.tool.indexOf(42) == -1"
  1266. />
  1267. <img
  1268. src="../../../assets/icon/checkedIs.png"
  1269. alt
  1270. v-else
  1271. />
  1272. </div>
  1273. </div> -->
  1274. </div>
  1275. <div class="toolSort" v-if="itemTool.toolType == 3">
  1276. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1277. @click="addTools(18, itemTaskIndex, toolIndex)">
  1278. <div class="whiteBIcon" @click.stop="
  1279. addTools(18, itemTaskIndex, toolIndex)
  1280. ">
  1281. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1282. <div style="margin: 5px 0">训练平台</div>
  1283. </div>
  1284. <div class="isCTool" v-show="itemTool.tool.indexOf(18) != -1"><img
  1285. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1286. <!-- <div
  1287. class="check"
  1288. @click="
  1289. addTools(18, itemTaskIndex, toolIndex)
  1290. "
  1291. >
  1292. <img
  1293. src="../../../assets/icon/checkNo.png"
  1294. alt
  1295. v-if="itemTool.tool.indexOf(18) == -1"
  1296. />
  1297. <div class="checkDiv" v-else>
  1298. <img
  1299. src="../../../assets/icon/checkedIs.png"
  1300. alt
  1301. /><span>已选择</span>
  1302. </div>
  1303. </div> -->
  1304. </div>
  1305. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1306. @click="addTools(21, itemTaskIndex, toolIndex)">
  1307. <div class="whiteBIcon" @click.stop="
  1308. addTools(21, itemTaskIndex, toolIndex)
  1309. ">
  1310. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1311. <div style="margin: 5px 0">AIoT Blockly</div>
  1312. </div>
  1313. <div class="isCTool" v-show="itemTool.tool.indexOf(21) != -1"><img
  1314. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1315. <!-- <div
  1316. class="check"
  1317. @click="
  1318. addTools(21, itemTaskIndex, toolIndex)
  1319. "
  1320. >
  1321. <img
  1322. src="../../../assets/icon/checkNo.png"
  1323. alt
  1324. v-if="itemTool.tool.indexOf(21) == -1"
  1325. />
  1326. <div class="checkDiv" v-else>
  1327. <img
  1328. src="../../../assets/icon/checkedIs.png"
  1329. alt
  1330. /><span>已选择</span>
  1331. </div>
  1332. </div> -->
  1333. </div>
  1334. <!-- <div class="tool">
  1335. <div
  1336. class="whiteBIcon"
  1337. @click="
  1338. addTools(22, itemTaskIndex, toolIndex)
  1339. "
  1340. >
  1341. <img
  1342. src="../../../assets/icon/fourthToolList/AIprogram2.png"
  1343. alt
  1344. />
  1345. <div style="margin: 5px 0">AI体验</div>
  1346. </div>
  1347. <div
  1348. class="check"
  1349. @click="
  1350. addTools(22, itemTaskIndex, toolIndex)
  1351. "
  1352. >
  1353. <img
  1354. src="../../../assets/icon/checkNo.png"
  1355. alt
  1356. v-if="itemTool.tool.indexOf(22) == -1"
  1357. />
  1358. <div class="checkDiv" v-else>
  1359. <img
  1360. src="../../../assets/icon/checkedIs.png"
  1361. alt
  1362. /><span>已选择</span>
  1363. </div>
  1364. </div>
  1365. </div> -->
  1366. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1367. @click="addTools(23, itemTaskIndex, toolIndex)">
  1368. <div class="whiteBIcon" @click.stop="
  1369. addTools(23, itemTaskIndex, toolIndex)
  1370. ">
  1371. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1372. <div style="margin: 5px 0">AI Python</div>
  1373. </div>
  1374. <div class="isCTool" v-show="itemTool.tool.indexOf(23) != -1"><img
  1375. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1376. <!-- <div
  1377. class="check"
  1378. @click="
  1379. addTools(23, itemTaskIndex, toolIndex)
  1380. "
  1381. >
  1382. <img
  1383. src="../../../assets/icon/checkNo.png"
  1384. alt
  1385. v-if="itemTool.tool.indexOf(23) == -1"
  1386. />
  1387. <div class="checkDiv" v-else>
  1388. <img
  1389. src="../../../assets/icon/checkedIs.png"
  1390. alt
  1391. /><span>已选择</span>
  1392. </div>
  1393. </div> -->
  1394. </div>
  1395. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1396. @click="addTools(24, itemTaskIndex, toolIndex)">
  1397. <div class="whiteBIcon" @click.stop="
  1398. addTools(24, itemTaskIndex, toolIndex)
  1399. ">
  1400. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1401. <div style="margin: 5px 0">AI Blockly</div>
  1402. </div>
  1403. <div class="isCTool" v-show="itemTool.tool.indexOf(24) != -1"><img
  1404. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1405. <!-- <div
  1406. class="check"
  1407. @click="
  1408. addTools(24, itemTaskIndex, toolIndex)
  1409. "
  1410. >
  1411. <img
  1412. src="../../../assets/icon/checkNo.png"
  1413. alt
  1414. v-if="itemTool.tool.indexOf(24) == -1"
  1415. />
  1416. <div class="checkDiv" v-else>
  1417. <img
  1418. src="../../../assets/icon/checkedIs.png"
  1419. alt
  1420. /><span>已选择</span>
  1421. </div>
  1422. </div> -->
  1423. </div>
  1424. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1425. @click="addTools(32, itemTaskIndex, toolIndex)">
  1426. <div class="whiteBIcon" @click.stop="
  1427. addTools(32, itemTaskIndex, toolIndex)
  1428. ">
  1429. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1430. <div style="margin: 5px 0">源码编辑</div>
  1431. </div>
  1432. <div class="isCTool" v-show="itemTool.tool.indexOf(32) != -1"><img
  1433. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1434. <!-- <div
  1435. class="check"
  1436. @click="
  1437. addTools(32, itemTaskIndex, toolIndex)
  1438. "
  1439. >
  1440. <img
  1441. src="../../../assets/icon/checkNo.png"
  1442. alt
  1443. v-if="itemTool.tool.indexOf(32) == -1"
  1444. />
  1445. <div class="checkDiv" v-else>
  1446. <img
  1447. src="../../../assets/icon/checkedIs.png"
  1448. alt
  1449. /><span>已选择</span>
  1450. </div>
  1451. </div> -->
  1452. </div>
  1453. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1454. @click="addTools(57, itemTaskIndex, toolIndex)">
  1455. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1456. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1457. <div style="margin: 5px 0">CocoPi</div>
  1458. </div>
  1459. <div class="isCTool" v-show="itemTool.tool.indexOf(57) != -1"><img
  1460. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1461. <!-- <div
  1462. class="check"
  1463. @click="
  1464. addTools(57, itemTaskIndex, toolIndex)
  1465. "
  1466. >
  1467. <img
  1468. src="../../../assets/icon/checkNo.png"
  1469. alt
  1470. v-if="itemTool.tool.indexOf(57) == -1"
  1471. />
  1472. <div class="checkDiv" v-else>
  1473. <img
  1474. src="../../../assets/icon/checkedIs.png"
  1475. alt
  1476. /><span>已选择</span>
  1477. </div>
  1478. </div> -->
  1479. </div>
  1480. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1481. @click="addTools(63, itemTaskIndex, toolIndex)">
  1482. <div class="whiteBIcon" @click.stop="
  1483. addTools(63, itemTaskIndex, toolIndex)
  1484. ">
  1485. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1486. <div style="margin: 5px 0">海龟编程</div>
  1487. </div>
  1488. <div class="isCTool" v-show="itemTool.tool.indexOf(63) != -1"><img
  1489. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1490. <!-- <div
  1491. class="check"
  1492. @click="
  1493. addTools(63, itemTaskIndex, toolIndex)
  1494. "
  1495. >
  1496. <img
  1497. src="../../../assets/icon/checkNo.png"
  1498. alt
  1499. v-if="itemTool.tool.indexOf(63) == -1"
  1500. />
  1501. <div class="checkDiv" v-else>
  1502. <img
  1503. src="../../../assets/icon/checkedIs.png"
  1504. alt
  1505. /><span>已选择</span>
  1506. </div>
  1507. </div> -->
  1508. </div>
  1509. </div>
  1510. <div class="toolSort" v-if="itemTool.toolType == 5">
  1511. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1512. @click="addTools(28, itemTaskIndex, toolIndex)">
  1513. <div class="whiteBIcon" @click.stop="
  1514. addTools(28, itemTaskIndex, toolIndex)
  1515. ">
  1516. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1517. <div style="margin: 5px 0">翻译</div>
  1518. </div>
  1519. <div class="isCTool" v-show="itemTool.tool.indexOf(28) != -1"><img
  1520. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1521. <!-- <div class="check" @click="
  1522. addTools(28, itemTaskIndex, toolIndex)
  1523. ">
  1524. <img src="../../../assets/icon/checkNo.png" alt
  1525. v-if="itemTool.tool.indexOf(28) == -1" />
  1526. <div class="checkDiv" v-else>
  1527. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1528. </div>
  1529. </div> -->
  1530. </div>
  1531. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1532. @click="addTools(31, itemTaskIndex, toolIndex)">
  1533. <div class="whiteBIcon" @click.stop="
  1534. addTools(31, itemTaskIndex, toolIndex)
  1535. ">
  1536. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1537. <div style="margin: 5px 0">数字画板</div>
  1538. </div>
  1539. <div class="isCTool" v-show="itemTool.tool.indexOf(31) != -1"><img
  1540. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1541. <!-- <div class="check" @click="
  1542. addTools(31, itemTaskIndex, toolIndex)
  1543. ">
  1544. <img src="../../../assets/icon/checkNo.png" alt
  1545. v-if="itemTool.tool.indexOf(31) == -1" />
  1546. <div class="checkDiv" v-else>
  1547. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1548. </div>
  1549. </div> -->
  1550. </div>
  1551. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1552. @click="addTools(39, itemTaskIndex, toolIndex)">
  1553. <div class="whiteBIcon" @click.stop="
  1554. addTools(39, itemTaskIndex, toolIndex)
  1555. ">
  1556. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1557. <div style="margin: 5px 0">GeoGebra</div>
  1558. </div>
  1559. <div class="isCTool" v-show="itemTool.tool.indexOf(39) != -1"><img
  1560. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1561. <!-- <div class="check" @click="
  1562. addTools(39, itemTaskIndex, toolIndex)
  1563. ">
  1564. <img src="../../../assets/icon/checkNo.png" alt
  1565. v-if="itemTool.tool.indexOf(39) == -1" />
  1566. <div class="checkDiv" v-else>
  1567. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1568. </div>
  1569. </div> -->
  1570. </div>
  1571. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1572. @click="addTools(66, itemTaskIndex, toolIndex)">
  1573. <div class="whiteBIcon" @click.stop="
  1574. addTools(66, itemTaskIndex, toolIndex)
  1575. ">
  1576. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1577. <div style="margin: 5px 0">公式编辑</div>
  1578. </div>
  1579. <div class="isCTool" v-show="itemTool.tool.indexOf(66) != -1"><img
  1580. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1581. <!-- <div class="check" @click="
  1582. addTools(66, itemTaskIndex, toolIndex)
  1583. ">
  1584. <img src="../../../assets/icon/checkNo.png" alt
  1585. v-if="itemTool.tool.indexOf(66) == -1" />
  1586. <div class="checkDiv" v-else>
  1587. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1588. </div>
  1589. </div> -->
  1590. </div>
  1591. <!-- <div class="tool">
  1592. <div class="whiteBIcon" @click="
  1593. addTools(67, itemTaskIndex, toolIndex)
  1594. ">
  1595. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1596. <div style="margin: 5px 0">分子结构</div>
  1597. </div>
  1598. <div class="check" @click="
  1599. addTools(67, itemTaskIndex, toolIndex)
  1600. ">
  1601. <img src="../../../assets/icon/checkNo.png" alt
  1602. v-if="itemTool.tool.indexOf(67) == -1" />
  1603. <div class="checkDiv" v-else>
  1604. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1605. </div>
  1606. </div>
  1607. </div> -->
  1608. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1609. @click="addTools(68, itemTaskIndex, toolIndex)">
  1610. <div class="whiteBIcon" @click.stop="
  1611. addTools(68, itemTaskIndex, toolIndex)
  1612. ">
  1613. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1614. <div style="margin: 5px 0">时间轴</div>
  1615. </div>
  1616. <div class="isCTool" v-show="itemTool.tool.indexOf(68) != -1"><img
  1617. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1618. <!-- <div class="check" @click="
  1619. addTools(68, itemTaskIndex, toolIndex)
  1620. ">
  1621. <img src="../../../assets/icon/checkNo.png" alt
  1622. v-if="itemTool.tool.indexOf(68) == -1" />
  1623. <div class="checkDiv" v-else>
  1624. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1625. </div>
  1626. </div> -->
  1627. </div>
  1628. <!-- <div class="tool">
  1629. <div
  1630. class="whiteBIcon"
  1631. @click="
  1632. addTools(28, itemTaskIndex, toolIndex)
  1633. "
  1634. >
  1635. <img
  1636. src="../../../assets/icon/secondToolList/translation.png"
  1637. alt
  1638. />
  1639. <div style="margin: 5px 0">翻译</div>
  1640. </div>
  1641. <div
  1642. class="check"
  1643. @click="
  1644. addTools(28, itemTaskIndex, toolIndex)
  1645. "
  1646. >
  1647. <img
  1648. src="../../../assets/icon/checkNo.png"
  1649. alt
  1650. v-if="itemTool.tool.indexOf(28) == -1"
  1651. />
  1652. <div class="checkDiv" v-else>
  1653. <img
  1654. src="../../../assets/icon/checkedIs.png"
  1655. alt
  1656. /><span>已选择</span>
  1657. </div>
  1658. </div>
  1659. </div>
  1660. <div class="tool">
  1661. <div
  1662. class="whiteBIcon"
  1663. @click="
  1664. addTools(37, itemTaskIndex, toolIndex)
  1665. "
  1666. >
  1667. <img
  1668. src="../../../assets/icon/secondToolList/mohe.png"
  1669. alt
  1670. />
  1671. <div style="margin: 5px 0">魔盒识字</div>
  1672. </div>
  1673. <div
  1674. class="check"
  1675. @click="
  1676. addTools(37, itemTaskIndex, toolIndex)
  1677. "
  1678. >
  1679. <img
  1680. src="../../../assets/icon/checkNo.png"
  1681. alt
  1682. v-if="itemTool.tool.indexOf(37) == -1"
  1683. />
  1684. <div class="checkDiv" v-else>
  1685. <img
  1686. src="../../../assets/icon/checkedIs.png"
  1687. alt
  1688. /><span>已选择</span>
  1689. </div>
  1690. </div>
  1691. </div>
  1692. <div class="tool">
  1693. <div
  1694. class="whiteBIcon"
  1695. @click="
  1696. addTools(38, itemTaskIndex, toolIndex)
  1697. "
  1698. >
  1699. <img
  1700. src="../../../assets/icon/secondToolList/24game.png"
  1701. alt
  1702. />
  1703. <div style="margin: 5px 0">24点</div>
  1704. </div>
  1705. <div
  1706. class="check"
  1707. @click="
  1708. addTools(38, itemTaskIndex, toolIndex)
  1709. "
  1710. >
  1711. <img
  1712. src="../../../assets/icon/checkNo.png"
  1713. alt
  1714. v-if="itemTool.tool.indexOf(38) == -1"
  1715. />
  1716. <div class="checkDiv" v-else>
  1717. <img
  1718. src="../../../assets/icon/checkedIs.png"
  1719. alt
  1720. /><span>已选择</span>
  1721. </div>
  1722. </div>
  1723. </div>
  1724. <div class="tool">
  1725. <div
  1726. class="whiteBIcon"
  1727. @click="
  1728. addTools(31, itemTaskIndex, toolIndex)
  1729. "
  1730. >
  1731. <img
  1732. src="../../../assets/icon/secondToolList/networkPanel.png"
  1733. alt
  1734. />
  1735. <div style="margin: 5px 0">数学画板</div>
  1736. </div>
  1737. <div
  1738. class="check"
  1739. @click="
  1740. addTools(31, itemTaskIndex, toolIndex)
  1741. "
  1742. >
  1743. <img
  1744. src="../../../assets/icon/checkNo.png"
  1745. alt
  1746. v-if="itemTool.tool.indexOf(31) == -1"
  1747. />
  1748. <div class="checkDiv" v-else>
  1749. <img
  1750. src="../../../assets/icon/checkedIs.png"
  1751. alt
  1752. /><span>已选择</span>
  1753. </div>
  1754. </div>
  1755. </div>
  1756. <div class="tool">
  1757. <div
  1758. class="whiteBIcon"
  1759. @click="
  1760. addTools(39, itemTaskIndex, toolIndex)
  1761. "
  1762. >
  1763. <img
  1764. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1765. alt
  1766. />
  1767. <div style="margin: 5px 0">GeoGebra</div>
  1768. </div>
  1769. <div
  1770. class="check"
  1771. @click="
  1772. addTools(39, itemTaskIndex, toolIndex)
  1773. "
  1774. >
  1775. <img
  1776. src="../../../assets/icon/checkNo.png"
  1777. alt
  1778. v-if="itemTool.tool.indexOf(39) == -1"
  1779. />
  1780. <div class="checkDiv" v-else>
  1781. <img
  1782. src="../../../assets/icon/checkedIs.png"
  1783. alt
  1784. /><span>已选择</span>
  1785. </div>
  1786. </div>
  1787. </div>
  1788. <div class="tool">
  1789. <div
  1790. class="whiteBIcon"
  1791. @click="
  1792. addTools(58, itemTaskIndex, toolIndex)
  1793. "
  1794. >
  1795. <img
  1796. src="../../../assets/icon/fourthToolList/car.png"
  1797. alt
  1798. />
  1799. <div style="margin: 5px 0">模拟驾驶</div>
  1800. </div>
  1801. <div
  1802. class="check"
  1803. @click="
  1804. addTools(58, itemTaskIndex, toolIndex)
  1805. "
  1806. >
  1807. <img
  1808. src="../../../assets/icon/checkNo.png"
  1809. alt
  1810. v-if="itemTool.tool.indexOf(58) == -1"
  1811. />
  1812. <div class="checkDiv" v-else>
  1813. <img
  1814. src="../../../assets/icon/checkedIs.png"
  1815. alt
  1816. /><span>已选择</span>
  1817. </div>
  1818. </div>
  1819. </div>
  1820. <div class="tool">
  1821. <div
  1822. class="whiteBIcon"
  1823. @click="
  1824. addTools(59, itemTaskIndex, toolIndex)
  1825. "
  1826. >
  1827. <img
  1828. src="../../../assets/icon/fourthToolList/lineSearch.png"
  1829. alt
  1830. />
  1831. <div style="margin: 5px 0">路径搜索</div>
  1832. </div>
  1833. <div
  1834. class="check"
  1835. @click="
  1836. addTools(59, itemTaskIndex, toolIndex)
  1837. "
  1838. >
  1839. <img
  1840. src="../../../assets/icon/checkNo.png"
  1841. alt
  1842. v-if="itemTool.tool.indexOf(59) == -1"
  1843. />
  1844. <div class="checkDiv" v-else>
  1845. <img
  1846. src="../../../assets/icon/checkedIs.png"
  1847. alt
  1848. /><span>已选择</span>
  1849. </div>
  1850. </div>
  1851. </div>
  1852. <div class="tool">
  1853. <div
  1854. class="whiteBIcon"
  1855. @click="
  1856. addTools(60, itemTaskIndex, toolIndex)
  1857. "
  1858. >
  1859. <img
  1860. src="../../../assets/icon/fourthToolList/deepLearning.png"
  1861. alt
  1862. />
  1863. <div style="margin: 5px 0">深度学习</div>
  1864. </div>
  1865. <div
  1866. class="check"
  1867. @click="
  1868. addTools(60, itemTaskIndex, toolIndex)
  1869. "
  1870. >
  1871. <img
  1872. src="../../../assets/icon/checkNo.png"
  1873. alt
  1874. v-if="itemTool.tool.indexOf(60) == -1"
  1875. />
  1876. <div class="checkDiv" v-else>
  1877. <img
  1878. src="../../../assets/icon/checkedIs.png"
  1879. alt
  1880. /><span>已选择</span>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. <div class="tool">
  1885. <div
  1886. class="whiteBIcon"
  1887. @click="
  1888. addTools(61, itemTaskIndex, toolIndex)
  1889. "
  1890. >
  1891. <img
  1892. src="../../../assets/icon/fourthToolList/allHistory.png"
  1893. alt
  1894. />
  1895. <div style="margin: 5px 0">全历史</div>
  1896. </div>
  1897. <div
  1898. class="check"
  1899. @click="
  1900. addTools(61, itemTaskIndex, toolIndex)
  1901. "
  1902. >
  1903. <img
  1904. src="../../../assets/icon/checkNo.png"
  1905. alt
  1906. v-if="itemTool.tool.indexOf(61) == -1"
  1907. />
  1908. <div class="checkDiv" v-else>
  1909. <img
  1910. src="../../../assets/icon/checkedIs.png"
  1911. alt
  1912. /><span>已选择</span>
  1913. </div>
  1914. </div>
  1915. </div> -->
  1916. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1917. @click="addTools(69, itemTaskIndex, toolIndex)">
  1918. <div class="whiteBIcon" @click.stop="
  1919. openTools(itemTaskIndex, 69, toolIndex)
  1920. ">
  1921. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  1922. <div style="margin: 5px 0">英语写作</div>
  1923. </div>
  1924. <div class="isCTool" v-show="itemTool.tool.indexOf(69) != -1"><img
  1925. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1926. <!-- <div
  1927. class="check"
  1928. @click="
  1929. addTools(4, itemTaskIndex, toolIndex)
  1930. "
  1931. >
  1932. <img
  1933. src="../../../assets/icon/checkNo.png"
  1934. alt
  1935. v-if="itemTool.tool.indexOf(4) == -1"
  1936. />
  1937. <div class="checkDiv" v-else>
  1938. <img
  1939. src="../../../assets/icon/checkedIs.png"
  1940. alt
  1941. /><span>已选择</span>
  1942. </div>
  1943. </div> -->
  1944. </div>
  1945. </div>
  1946. <div class="toolSort" v-if="itemTool.toolType == 7">
  1947. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1948. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1949. <div class="whiteBIcon" @click.stop="
  1950. openTools(itemTaskIndex, 40, toolIndex)
  1951. ">
  1952. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1953. <div style="margin: 5px 0">个人评价</div>
  1954. </div>
  1955. <div class="isCTool" v-show="itemTool.tool.indexOf(40) != -1"><img
  1956. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1957. <!-- <div
  1958. class="check"
  1959. @click="
  1960. addTools(40, itemTaskIndex, toolIndex)
  1961. "
  1962. >
  1963. <img
  1964. src="../../../assets/icon/checkNo.png"
  1965. alt
  1966. v-if="itemTool.tool.indexOf(40) == -1"
  1967. />
  1968. <div class="checkDiv" v-else>
  1969. <img
  1970. src="../../../assets/icon/checkedIs.png"
  1971. alt
  1972. /><span>已选择</span>
  1973. </div>
  1974. </div> -->
  1975. </div>
  1976. </div>
  1977. <div class="toolSort" v-if="itemTool.toolType == 4">
  1978. <div class="tool">
  1979. <div class="whiteBIcon" @click="
  1980. addTools(26, itemTaskIndex, toolIndex)
  1981. ">
  1982. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1983. <div style="margin: 5px 0">课程设计</div>
  1984. </div>
  1985. <div class="check" @click="
  1986. addTools(26, itemTaskIndex, toolIndex)
  1987. ">
  1988. <img src="../../../assets/icon/checkNo.png" alt
  1989. v-if="itemTool.tool.indexOf(26) == -1" />
  1990. <div class="checkDiv" v-else>
  1991. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1992. </div>
  1993. </div>
  1994. </div>
  1995. <div class="tool">
  1996. <div class="whiteBIcon" @click="
  1997. addTools(25, itemTaskIndex, toolIndex)
  1998. ">
  1999. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  2000. <div style="margin: 5px 0">目标管理</div>
  2001. </div>
  2002. <div class="check" @click="
  2003. addTools(25, itemTaskIndex, toolIndex)
  2004. ">
  2005. <img src="../../../assets/icon/checkNo.png" alt
  2006. v-if="itemTool.tool.indexOf(25) == -1" />
  2007. <div class="checkDiv" v-else>
  2008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2009. </div>
  2010. </div>
  2011. </div>
  2012. <!-- <div class="tool">
  2013. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2014. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2015. <div style="margin: 5px 0">汉字宫</div>
  2016. </div>
  2017. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2018. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2019. <div class="checkDiv" v-else>
  2020. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2021. </div>
  2022. </div>
  2023. </div> -->
  2024. </div>
  2025. </div>
  2026. <div v-show="itemTool.isFold3">
  2027. <textarea v-autoHeight="87" rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2028. style="
  2029. margin: 0 0 20px 0;
  2030. " v-model="itemTool.toolDetail"></textarea>
  2031. </div>
  2032. </div>
  2033. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  2034. <div class="addToolImg">
  2035. <img src="../../../assets/icon/add.png" alt />
  2036. </div>
  2037. <div>添加工具</div>
  2038. </div> -->
  2039. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)" style="margin: 0 auto;padding: 0 30px;height: 45px;">
  2040. 添加工具
  2041. </button>
  2042. </div>
  2043. </div>
  2044. </div>
  2045. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2046. <!-- <div>
  2047. <img src="../../../assets/icon/new/addStage.png" alt />
  2048. <span>添加任务</span>
  2049. </div> -->
  2050. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  2051. 添加任务
  2052. </button>
  2053. </div>
  2054. </div>
  2055. </div>
  2056. </div>
  2057. </div>
  2058. <div class="info_btnBox3">
  2059. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  2060. 返回课程
  2061. </button>
  2062. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  2063. 确认上传
  2064. </button>
  2065. </div>
  2066. </div>
  2067. <div class="rightBox" v-if="this.steps == 2">
  2068. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  2069. <div class="right_title" style="border: none; margin: 0; padding: 0">
  2070. 请选择合适的课程模板
  2071. </div>
  2072. <div class="wordbox">
  2073. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  2074. <div class="wordPic">
  2075. <img src="../../../assets/icon/wordMub.png" alt />
  2076. </div>
  2077. <div style="
  2078. margin-top: 10px;
  2079. line-height: 19px;
  2080. overflow: hidden;
  2081. text-overflow: ellipsis;
  2082. white-space: nowrap;
  2083. padding: 0 20px;
  2084. ">
  2085. {{ aa.title }}
  2086. </div>
  2087. </div>
  2088. <div class="wordTeacher" @click="checkTemplate2()">
  2089. <div class="wordPic">
  2090. <img src="../../../assets/icon/wordMub.png" alt />
  2091. </div>
  2092. <div style="
  2093. margin-top: 10px;
  2094. line-height: 19px;
  2095. overflow: hidden;
  2096. text-overflow: ellipsis;
  2097. white-space: nowrap;
  2098. padding: 0 20px;
  2099. ">
  2100. 任务模式
  2101. </div>
  2102. </div>
  2103. <div class="wordTeacher" @click="checkTemplate3()">
  2104. <div class="wordPic">
  2105. <img src="../../../assets/icon/wordMub.png" alt />
  2106. </div>
  2107. <div style="
  2108. margin-top: 10px;
  2109. line-height: 19px;
  2110. overflow: hidden;
  2111. text-overflow: ellipsis;
  2112. white-space: nowrap;
  2113. padding: 0 20px;
  2114. ">
  2115. 简易模式
  2116. </div>
  2117. </div>
  2118. <div class="wordTeacher" @click="pasteStage()">
  2119. <div class="wordPic">
  2120. <img src="../../../assets/icon/wordMub.png" alt />
  2121. </div>
  2122. <div style="
  2123. margin-top: 10px;
  2124. line-height: 19px;
  2125. overflow: hidden;
  2126. text-overflow: ellipsis;
  2127. white-space: nowrap;
  2128. padding: 0 20px;
  2129. ">
  2130. 智能粘贴模式
  2131. </div>
  2132. </div>
  2133. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  2134. <div class="wordPic">
  2135. <img src="../../../assets/icon/wordMub.png" alt />
  2136. </div>
  2137. <div style="
  2138. margin-top: 10px;
  2139. line-height: 19px;
  2140. overflow: hidden;
  2141. text-overflow: ellipsis;
  2142. white-space: nowrap;
  2143. padding: 0 20px;
  2144. ">
  2145. 未来小学课程设计
  2146. </div>
  2147. </div> -->
  2148. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  2149. <div class="wordPic">
  2150. <img src="../../../assets/icon/wordMub.png" alt />
  2151. </div>
  2152. <div style="
  2153. margin-top: 10px;
  2154. line-height: 19px;
  2155. overflow: hidden;
  2156. text-overflow: ellipsis;
  2157. white-space: nowrap;
  2158. padding: 0 20px;
  2159. ">
  2160. 我的课程
  2161. </div>
  2162. </div> -->
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  2167. <div class="basic_box">
  2168. <div style="
  2169. display: flex;
  2170. flex-direction: row;
  2171. align-items: center;
  2172. position: sticky;
  2173. top: 0;
  2174. background: #fff;
  2175. z-index: 99;
  2176. width: 100%;
  2177. padding: 0 20px 0 20px;
  2178. box-sizing: border-box;
  2179. ">
  2180. <div class="cru_selectBox">
  2181. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  2182. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  2183. <!-- item.dyName ? item.dyName : -->
  2184. {{ "第" + (index + 1) + "阶段" }}
  2185. </div>
  2186. <img src="../../../assets/line.png" class="cru_line" :style="{
  2187. left: offsetLetfPx + 'px',
  2188. }" />
  2189. </div>
  2190. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  2191. !(unitJson[unitJson.length - 1].easy == 6)
  2192. ">
  2193. <img src="../../../assets/icon/add.png" alt />
  2194. </div>
  2195. </div>
  2196. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  2197. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  2198. <div>
  2199. <div class="chapter_contentbox">
  2200. <div>第{{ unitIndex + 1 }}阶段</div>
  2201. <div>
  2202. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  2203. </div>
  2204. <div v-if="unitJson.length > 1 &&
  2205. !(unitJson[unitJson.length - 1].easy == 4) &&
  2206. !(unitJson[unitJson.length - 1].easy == 6)
  2207. " @click="deleteUnit(unitIndex)"></div>
  2208. </div>
  2209. </div>
  2210. <div v-if="!unitJson[unitIndex].easy" style="
  2211. margin: 50px 0px 10px;
  2212. font-size: 1.5em;
  2213. font-weight: 700;
  2214. color: #0f7eff;
  2215. ">
  2216. 添加任务
  2217. </div>
  2218. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  2219. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  2220. <div v-if="unitJson[unitIndex].easy != 1">
  2221. <div :style="{
  2222. marginBottom:
  2223. unitJson[unitIndex].easy == 3 ||
  2224. (unitJson[unitIndex].easy == 5 &&
  2225. itemTask.taskType == 1)
  2226. ? '75px'
  2227. : '0',
  2228. }">
  2229. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  2230. 任务{{ itemTaskIndex + 1 }}
  2231. </div>
  2232. <div class="chapter_contentbox" style="
  2233. flex-direction: row;
  2234. justify-content: flex-start;
  2235. align-items: center;
  2236. ">
  2237. <div style="
  2238. border-left: 6px solid #5699e8;
  2239. height: 20px;
  2240. padding-left: 10px;
  2241. line-height: 22px;
  2242. ">
  2243. 任务名称
  2244. </div>
  2245. <div>
  2246. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  2247. itemTaskIndex
  2248. ].task
  2249. " />
  2250. </div>
  2251. <div class="remove" v-if="item.taskJson.length > 1 &&
  2252. (!unitJson[unitIndex].easy ||
  2253. unitJson[unitIndex].easy == 6)
  2254. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  2255. </div>
  2256. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  2257. display: flex;
  2258. margin: 0 0 20px 0;
  2259. flex-direction: row;
  2260. justify-content: flex-start;
  2261. align-items: center;
  2262. width: 70.5% !important;
  2263. padding-top: 30px;
  2264. ">
  2265. <div class="lineTitle">任务描述</div>
  2266. </div>
  2267. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  2268. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  2269. itemTaskIndex
  2270. ].taskDetail
  2271. " @change="change"></editor-bar>
  2272. <!-- <textarea
  2273. rows="6"
  2274. class="binfo_input"
  2275. placeholder="请输入任务描述"
  2276. cols
  2277. style="width: 70.5% !important; height: 120px"
  2278. v-model="
  2279. unitJson[unitIndex].chapterInfo[0].taskJson[
  2280. itemTaskIndex
  2281. ].taskDetail
  2282. "
  2283. ></textarea>-->
  2284. </div>
  2285. </div>
  2286. </div>
  2287. <div v-if="!unitJson[unitIndex].easy ||
  2288. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2289. " class="basic_box" style="
  2290. margin: 0;
  2291. min-height: 0;
  2292. width: 90% !important;
  2293. padding-top: 10px !important;
  2294. ">
  2295. <div style="
  2296. display: flex;
  2297. margin: 0 0 20px 0;
  2298. flex-direction: row;
  2299. justify-content: flex-start;
  2300. align-items: center;
  2301. ">
  2302. <div class="lineTitle">学习内容</div>
  2303. </div>
  2304. <div>
  2305. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2306. itemTask.chapterData.length == 0
  2307. " style="height: 185px"></div>
  2308. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2309. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  2310. @click="
  2311. getChapterData(
  2312. $event,
  2313. unitIndex,
  2314. index,
  2315. index1,
  2316. item1.type
  2317. )
  2318. ">
  2319. <div class="chapter_upload_t" style="width: 100%"></div>
  2320. <div class="chapter_upload_o" style="
  2321. position: relative;
  2322. display: flex;
  2323. align-items: center;
  2324. ">
  2325. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2326. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2327. <div v-if="item1.type == 3 ||
  2328. item1.type == 12 ||
  2329. item1.type == 13 ||
  2330. item1.type == 6 ||
  2331. item1.type == 7
  2332. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2333. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2334. </div>
  2335. <div class="chapter_upload_ic" style="
  2336. cursor: pointer;
  2337. position: absolute;
  2338. width: 45px;
  2339. right: 0;
  2340. top: 0;
  2341. ">
  2342. <div class="chapter_upload_ic_l"></div>
  2343. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2344. deleteChapterData(
  2345. $event,
  2346. unitIndex,
  2347. index,
  2348. index1,
  2349. itemTaskIndex
  2350. )
  2351. ">
  2352. <div></div>
  2353. </div>
  2354. </div>
  2355. <div class="chapter_upload_n">
  2356. <input v-if="item1.type == 2 ||
  2357. item1.type == 3 ||
  2358. item1.type == 12 ||
  2359. item1.type == 13 ||
  2360. item1.type == 7
  2361. " :placeholder="item1.name" @change="
  2362. updataVideoT(
  2363. $event,
  2364. unitIndex,
  2365. chapterIndex,
  2366. index1
  2367. )
  2368. " style="
  2369. border: none;
  2370. outline: none;
  2371. width: 80%;
  2372. minwidth: 215px;
  2373. z-index: 99;
  2374. font-size: 14px;
  2375. white-space: nowrap;
  2376. overflow: hidden;
  2377. text-overflow: ellipsis;
  2378. " />
  2379. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2380. border: none;
  2381. outline: none;
  2382. width: 80%;
  2383. white-space: nowrap;
  2384. overflow: hidden;
  2385. text-overflow: ellipsis;
  2386. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2387. <input :placeholder="item1.title ? item1.title : '链接'
  2388. " v-if="item1.type == 8" style="
  2389. border: none;
  2390. outline: none;
  2391. width: 80%;
  2392. white-space: nowrap;
  2393. overflow: hidden;
  2394. text-overflow: ellipsis;
  2395. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2396. <div class="chapter_upload_ud" style="z-index: 99">
  2397. <div class="chapter_upload_up" @click="
  2398. upCd(
  2399. $event,
  2400. unitIndex,
  2401. index,
  2402. itemTaskIndex,
  2403. index1
  2404. )
  2405. "></div>
  2406. <div class="chapter_upload_down" @click="
  2407. downCd(
  2408. $event,
  2409. unitIndex,
  2410. index,
  2411. itemTaskIndex,
  2412. index1
  2413. )
  2414. "></div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. <div class="add_info_box">
  2422. <button class="info_btn" @click="addImg($event)">
  2423. 添加文件
  2424. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2425. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2426. " />
  2427. </button>
  2428. <!-- <button class="info_btn" @click="addImg($event)">
  2429. 添加视频
  2430. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2431. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2432. " />
  2433. </button>
  2434. <button class="info_btn" @click="addImg($event)">
  2435. 添加文档
  2436. <input type="file"
  2437. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2438. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2439. " />
  2440. </button> -->
  2441. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2442. 添加图文
  2443. </button>
  2444. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2445. 添加链接
  2446. </button>
  2447. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2448. 嵌入代码
  2449. </button>
  2450. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2451. 添加资源
  2452. </button>
  2453. <!-- <button class="info_btn" @click="addImg($event)">
  2454. 其他附件
  2455. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2456. " />
  2457. </button> -->
  2458. </div>
  2459. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2460. itemTaskIndex
  2461. ].proVisible
  2462. " class="mask">
  2463. <div class="progressBox">
  2464. <!-- <div id="closePro" class="closeCss">
  2465. <img src="../../../../assets/icon/close.png" alt />
  2466. </div> -->
  2467. <div class="lbox">
  2468. <img src="../../../assets/loading.gif" />上传中,请稍后
  2469. </div>
  2470. <div style="margin-bottom: 10px">
  2471. <span>{{
  2472. unitJson[unitIndex].chapterInfo[0].taskJson[
  2473. itemTaskIndex
  2474. ].isFinishSize
  2475. }}M</span>
  2476. /
  2477. <span>{{
  2478. unitJson[unitIndex].chapterInfo[0].taskJson[
  2479. itemTaskIndex
  2480. ].isAllSize
  2481. }}M</span>
  2482. </div>
  2483. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2484. itemTaskIndex
  2485. ].progress
  2486. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2487. itemTaskIndex
  2488. ].progress
  2489. : 0
  2490. " style="width: 80%"></el-progress>
  2491. </div>
  2492. </div>
  2493. </div>
  2494. <div v-if="unitJson[unitIndex].easy == 1 ||
  2495. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2496. " class="basic_box" style="
  2497. margin: 0 auto;
  2498. min-height: 0;
  2499. width: 95% !important;
  2500. padding: 20px 10px 10px;
  2501. ">
  2502. <div>
  2503. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2504. itemTask.chapterData.length == 0
  2505. " style="height: 185px"></div>
  2506. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2507. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2508. <div class="chapter_upload" @click="
  2509. getChapterData(
  2510. $event,
  2511. unitIndex,
  2512. index,
  2513. index1,
  2514. item1.type
  2515. )
  2516. ">
  2517. <div class="chapter_upload_t" style="width: 100%"></div>
  2518. <div class="chapter_upload_o" style="
  2519. position: relative;
  2520. display: flex;
  2521. align-items: center;
  2522. ">
  2523. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2524. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2525. <div v-if="item1.type == 3 ||
  2526. item1.type == 6 ||
  2527. item1.type == 7
  2528. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2529. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2530. </div>
  2531. <div class="chapter_upload_ic" style="
  2532. cursor: pointer;
  2533. position: absolute;
  2534. width: 45px;
  2535. right: 0;
  2536. top: 0;
  2537. ">
  2538. <div class="chapter_upload_ic_l"></div>
  2539. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2540. deleteChapterData(
  2541. $event,
  2542. unitIndex,
  2543. index,
  2544. index1,
  2545. itemTaskIndex
  2546. )
  2547. ">
  2548. <div></div>
  2549. </div>
  2550. </div>
  2551. <div class="chapter_upload_n">
  2552. <span style="
  2553. font-size: 14px;
  2554. color: rgb(109, 109, 109);
  2555. height: 14px;
  2556. line-height: 12px;
  2557. " v-if="item1.type == 2 ||
  2558. item1.type == 3 ||
  2559. item1.type == 7
  2560. ">{{ item1.text }}-</span>
  2561. <input v-if="item1.type == 2 ||
  2562. item1.type == 3 ||
  2563. item1.type == 7
  2564. " :placeholder="item1.name" @change="
  2565. updataVideoT(
  2566. $event,
  2567. unitIndex,
  2568. chapterIndex,
  2569. index1
  2570. )
  2571. " style="
  2572. border: none;
  2573. outline: none;
  2574. width: 80%;
  2575. minwidth: 215px;
  2576. z-index: 99;
  2577. font-size: 14px;
  2578. white-space: nowrap;
  2579. overflow: hidden;
  2580. text-overflow: ellipsis;
  2581. " />
  2582. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2583. border: none;
  2584. outline: none;
  2585. width: 80%;
  2586. white-space: nowrap;
  2587. overflow: hidden;
  2588. text-overflow: ellipsis;
  2589. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2590. <input :placeholder="item1.title ? item1.title : '链接'
  2591. " v-if="item1.type == 8" style="
  2592. border: none;
  2593. outline: none;
  2594. width: 80%;
  2595. white-space: nowrap;
  2596. overflow: hidden;
  2597. text-overflow: ellipsis;
  2598. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2599. <div class="chapter_upload_ud" style="z-index: 99">
  2600. <div class="chapter_upload_up" @click="
  2601. upCd(
  2602. $event,
  2603. unitIndex,
  2604. index,
  2605. itemTaskIndex,
  2606. index1
  2607. )
  2608. "></div>
  2609. <div class="chapter_upload_down" @click="
  2610. downCd(
  2611. $event,
  2612. unitIndex,
  2613. index,
  2614. itemTaskIndex,
  2615. index1
  2616. )
  2617. "></div>
  2618. </div>
  2619. </div>
  2620. </div>
  2621. </div>
  2622. </div>
  2623. </div>
  2624. </div>
  2625. <div class="add_info_box" style="margin: 10px 0 0">
  2626. <button class="info_btn" @click="addImg($event)">
  2627. <span style="color: red">*</span>
  2628. 教学设计
  2629. <input type="file"
  2630. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2631. style="display: none" v-if="inputShow" @change="
  2632. beforeUpload3(
  2633. $event,
  2634. unitIndex,
  2635. 3,
  2636. itemTaskIndex,
  2637. '教学设计'
  2638. )
  2639. " />
  2640. </button>
  2641. <button class="info_btn" @click="addImg($event)">
  2642. <span style="color: red">*</span>
  2643. 教学课件
  2644. <input type="file"
  2645. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2646. style="display: none" v-if="inputShow" @change="
  2647. beforeUpload3(
  2648. $event,
  2649. unitIndex,
  2650. 3,
  2651. itemTaskIndex,
  2652. '教学课件'
  2653. )
  2654. " />
  2655. </button>
  2656. <button class="info_btn" @click="addImg($event)">
  2657. 教学视频
  2658. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2659. v-if="inputShow" @change="
  2660. beforeUpload3(
  2661. $event,
  2662. unitIndex,
  2663. 2,
  2664. itemTaskIndex,
  2665. '教学视频'
  2666. )
  2667. " />
  2668. </button>
  2669. <button class="info_btn" @click="addImg($event)">
  2670. 教学音频
  2671. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2672. beforeUpload3(
  2673. $event,
  2674. unitIndex,
  2675. 2,
  2676. itemTaskIndex,
  2677. '教学音频'
  2678. )
  2679. " />
  2680. </button>
  2681. <button class="info_btn" @click="addImg($event)">
  2682. 学习单
  2683. <input type="file"
  2684. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2685. style="display: none" v-if="inputShow" @change="
  2686. beforeUpload3(
  2687. $event,
  2688. unitIndex,
  2689. 3,
  2690. itemTaskIndex,
  2691. '学习单'
  2692. )
  2693. " />
  2694. </button>
  2695. </div>
  2696. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2697. itemTaskIndex
  2698. ].proVisible
  2699. " class="mask">
  2700. <div class="progressBox">
  2701. <!-- <div id="closePro" class="closeCss">
  2702. <img src="../../../../assets/icon/close.png" alt />
  2703. </div> -->
  2704. <div class="lbox">
  2705. <img src="../../../assets/loading.gif" />上传中,请稍后
  2706. </div>
  2707. <div style="margin-bottom: 10px">
  2708. <span>{{
  2709. unitJson[unitIndex].chapterInfo[0].taskJson[
  2710. itemTaskIndex
  2711. ].isFinishSize
  2712. }}M</span>
  2713. /
  2714. <span>{{
  2715. unitJson[unitIndex].chapterInfo[0].taskJson[
  2716. itemTaskIndex
  2717. ].isAllSize
  2718. }}M</span>
  2719. </div>
  2720. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2721. itemTaskIndex
  2722. ].progress
  2723. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2724. itemTaskIndex
  2725. ].progress
  2726. : 0
  2727. " style="width: 80%"></el-progress>
  2728. </div>
  2729. </div>
  2730. </div>
  2731. <div v-if="unitJson[unitIndex].easy != 3 &&
  2732. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2733. " style="
  2734. flex-direction: row;
  2735. justify-content: flex-start;
  2736. align-items: center;
  2737. padding: 0 0 0 30px;
  2738. paddint-top: 10px !important;
  2739. ">
  2740. <div style="
  2741. display: flex;
  2742. flex-direction: row;
  2743. align-items: center;
  2744. margin-bottom: 20px;
  2745. ">
  2746. <div class="lineTitle">
  2747. {{
  2748. !unitJson[unitIndex].easy ||
  2749. unitJson[unitIndex].easy == 6 ||
  2750. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2751. ? "练习内容"
  2752. : "评价内容"
  2753. }}
  2754. </div>
  2755. </div>
  2756. </div>
  2757. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2758. " class="toolChoose" style="padding: 0 0 0 30px">
  2759. <div class="tools">
  2760. <div class="leftTools" style="
  2761. width: 95%;
  2762. padding: 0 0 15px 0;
  2763. margin: 15px 0;
  2764. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2765. <div>
  2766. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2767. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2768. </div>
  2769. <div style="
  2770. display: flex;
  2771. flex-direction: row;
  2772. align-items: baseline;
  2773. flex-wrap: nowrap;
  2774. justify-content: flex-start;
  2775. position: relative;
  2776. ">
  2777. <div style="margin-right: 20px; font-weight: bold">
  2778. 步骤 {{ toolIndex + 1 }} :
  2779. </div>
  2780. <div class="chooseWho">
  2781. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  2782. " @click="(itemTool.toolType = 0), $forceUpdate()">
  2783. 互动类
  2784. </div> -->
  2785. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2786. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2787. 思维类
  2788. </div>
  2789. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2790. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2791. 协作类
  2792. </div>
  2793. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2794. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2795. 测评类
  2796. </div>
  2797. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2798. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2799. 评价类
  2800. </div>
  2801. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2802. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2803. 学科类
  2804. </div>
  2805. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  2806. " @click="(itemTool.toolType = 5), $forceUpdate()">
  2807. 学科类
  2808. </div>
  2809. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  2810. " @click="(itemTool.toolType = 4), $forceUpdate()">
  2811. 其他
  2812. </div> -->
  2813. </div>
  2814. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2815. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2816. </div>
  2817. <div style="min-height: 163px">
  2818. <div class="toolSort" v-if="itemTool.toolType == 0">
  2819. <!-- <div class="tool">
  2820. <div
  2821. class="whiteBIcon"
  2822. @click="addTools(8, itemTaskIndex, toolIndex)"
  2823. >
  2824. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2825. <div style="margin: 5px 0">素材库</div>
  2826. </div>
  2827. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2828. <img
  2829. src="../../../assets/icon/checkNo.png"
  2830. alt
  2831. v-if="itemTool.tool.indexOf(8) == -1"
  2832. />
  2833. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2834. alt /><span>已选择</span></div>
  2835. </div>
  2836. </div>-->
  2837. <!-- <div class="tool">
  2838. <div
  2839. class="whiteBIcon"
  2840. @click="addTools(17, itemTaskIndex, toolIndex)"
  2841. >
  2842. <img
  2843. src="../../../assets/icon/secondToolList/library.png"
  2844. alt
  2845. />
  2846. <div style="margin: 5px 0">学习资料</div>
  2847. </div>
  2848. <div
  2849. class="check"
  2850. @click="addTools(17, itemTaskIndex, toolIndex)"
  2851. >
  2852. <img
  2853. src="../../../assets/icon/checkNo.png"
  2854. alt
  2855. v-if="itemTool.tool.indexOf(17) == -1"
  2856. />
  2857. <img
  2858. src="../../../assets/icon/checkedIs.png"
  2859. alt
  2860. v-else
  2861. />
  2862. </div>10
  2863. </div> -->
  2864. <div class="tool">
  2865. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2866. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2867. <div style="margin: 5px 0">倒计时</div>
  2868. </div>
  2869. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2870. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2871. <div class="checkDiv" v-else>
  2872. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2873. </div>
  2874. </div>
  2875. </div>
  2876. <!-- <div class="tool">
  2877. <div
  2878. class="whiteBIcon"
  2879. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2880. >
  2881. <img
  2882. src="../../../assets/icon/fourthToolList/group.png"
  2883. alt
  2884. />
  2885. <div style="margin: 5px 0">学生分组</div>
  2886. </div>
  2887. <div
  2888. class="check"
  2889. @click="addTools(49, itemTaskIndex, toolIndex)"
  2890. >
  2891. <img
  2892. src="../../../assets/icon/checkNo.png"
  2893. alt
  2894. v-if="itemTool.tool.indexOf(49) == -1"
  2895. />
  2896. <div class="checkDiv" v-else>
  2897. <img
  2898. src="../../../assets/icon/checkedIs.png"
  2899. alt
  2900. /><span>已选择</span>
  2901. </div>
  2902. </div>
  2903. </div> -->
  2904. <div class="tool">
  2905. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2906. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2907. <div style="margin: 5px 0">交互视频</div>
  2908. </div>
  2909. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2910. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -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>
  2917. <div class="toolSort" v-if="itemTool.toolType == 1">
  2918. <div class="tool">
  2919. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2920. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2921. <div style="margin: 5px 0">思维网格</div>
  2922. </div>
  2923. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2924. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2925. <div class="checkDiv" v-else>
  2926. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2927. </div>
  2928. </div>
  2929. </div>
  2930. <div class="tool">
  2931. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2932. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2933. <div style="margin: 5px 0">电子白板</div>
  2934. </div>
  2935. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2936. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2937. <div class="checkDiv" v-else>
  2938. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. <!-- <div class="tool">
  2943. <div
  2944. class="whiteBIcon"
  2945. @click="addTools(2, itemTaskIndex, toolIndex)"
  2946. >
  2947. <img
  2948. src="../../../assets/icon/secondToolList/note.png"
  2949. alt
  2950. />
  2951. <div style="margin: 5px 0">便签</div>
  2952. </div>
  2953. <div
  2954. class="check"
  2955. @click="addTools(2, itemTaskIndex, toolIndex)"
  2956. >
  2957. <img
  2958. src="../../../assets/icon/checkNo.png"
  2959. alt
  2960. v-if="itemTool.tool.indexOf(2) == -1"
  2961. />
  2962. <div class="checkDiv" v-else>
  2963. <img
  2964. src="../../../assets/icon/checkedIs.png"
  2965. alt
  2966. /><span>已选择</span>
  2967. </div>
  2968. </div>
  2969. </div> -->
  2970. <!-- <div class="tool">
  2971. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2972. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2973. <div style="margin: 5px 0">协同文档</div>
  2974. </div>
  2975. <div
  2976. class="check"
  2977. @click="addTools(6, itemTaskIndex, toolIndex)"
  2978. >
  2979. <img
  2980. src="../../../assets/icon/checkNo.png"
  2981. alt
  2982. v-if="itemTool.tool.indexOf(6) == -1"
  2983. />
  2984. <div class="checkDiv" v-else>
  2985. <img
  2986. src="../../../assets/icon/checkedIs.png"
  2987. alt
  2988. /><span>已选择</span>
  2989. </div>
  2990. </div>
  2991. </div> -->
  2992. <div class="tool">
  2993. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2994. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2995. <div style="margin: 5px 0">文档</div>
  2996. </div>
  2997. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2998. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2999. <div class="checkDiv" v-else>
  3000. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. <div class="tool">
  3005. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3006. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3007. <div style="margin: 5px 0">思维导图</div>
  3008. </div>
  3009. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3010. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -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 class="tool">
  3017. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3018. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3019. <div style="margin: 5px 0">表格</div>
  3020. </div>
  3021. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3022. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3023. <div class="checkDiv" v-else>
  3024. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. <div class="toolSort" v-if="itemTool.toolType == 6">
  3030. <div class="tool">
  3031. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  3032. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  3033. <div style="margin: 5px 0">学生分组</div>
  3034. </div>
  3035. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  3036. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  3037. <div class="checkDiv" v-else>
  3038. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <div class="toolSort" v-if="itemTool.toolType == 2">
  3044. <!-- <div class="tool">
  3045. <div
  3046. class="whiteBIcon"
  3047. @click="addTools(5, itemTaskIndex, toolIndex)"
  3048. >
  3049. <img
  3050. src="../../../assets/icon/thirdToolList/score.png"
  3051. alt
  3052. />
  3053. <div style="margin: 5px 0">量规评分</div>
  3054. </div>
  3055. <div
  3056. class="check"
  3057. @click="addTools(5, itemTaskIndex, toolIndex)"
  3058. >
  3059. <img
  3060. src="../../../assets/icon/checkNo.png"
  3061. alt
  3062. v-if="itemTool.tool.indexOf(5) == -1"
  3063. />
  3064. <img
  3065. src="../../../assets/icon/checkedIs.png"
  3066. alt
  3067. v-else
  3068. />
  3069. </div>
  3070. </div>-->
  3071. <div class="tool">
  3072. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3073. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3074. <div style="margin: 5px 0">问卷调查</div>
  3075. </div>
  3076. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3077. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3078. <div class="checkDiv" v-else>
  3079. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. <div class="tool">
  3084. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3085. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3086. <div style="margin: 5px 0">选择题</div>
  3087. </div>
  3088. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3089. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3090. <div class="checkDiv" v-else>
  3091. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3092. </div>
  3093. </div>
  3094. </div>
  3095. <div class="tool">
  3096. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3097. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3098. <div style="margin: 5px 0">问答</div>
  3099. </div>
  3100. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3101. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3102. <div class="checkDiv" v-else>
  3103. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. <div class="tool">
  3108. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3109. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3110. <div style="margin: 5px 0">作业提交</div>
  3111. </div>
  3112. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3113. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3114. <div class="checkDiv" v-else>
  3115. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3116. </div>
  3117. </div>
  3118. </div>
  3119. <div class="tool">
  3120. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  3121. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3122. <div style="margin: 5px 0">批量上传</div>
  3123. </div>
  3124. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3125. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3126. <div class="checkDiv" v-else>
  3127. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3128. </div>
  3129. </div>
  3130. </div>
  3131. <!-- <div class="tool">
  3132. <div
  3133. class="whiteBIcon"
  3134. @click="openTools(itemTaskIndex, 40, toolIndex)"
  3135. >
  3136. <img
  3137. src="../../../assets/icon/thirdToolList/eval.png"
  3138. alt
  3139. />
  3140. <div style="margin: 5px 0">个人评价</div>
  3141. </div>
  3142. <div
  3143. class="check"
  3144. @click="addTools(40, itemTaskIndex, toolIndex)"
  3145. >
  3146. <img
  3147. src="../../../assets/icon/checkNo.png"
  3148. alt
  3149. v-if="itemTool.tool.indexOf(40) == -1"
  3150. />
  3151. <div class="checkDiv" v-else>
  3152. <img
  3153. src="../../../assets/icon/checkedIs.png"
  3154. alt
  3155. /><span>已选择</span>
  3156. </div>
  3157. </div>
  3158. </div> -->
  3159. <div class="tool">
  3160. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3161. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3162. <div style="margin: 5px 0">选择匹配</div>
  3163. </div>
  3164. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3165. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3166. <div class="checkDiv" v-else>
  3167. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3168. </div>
  3169. </div>
  3170. </div>
  3171. <div class="tool">
  3172. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3173. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3174. <div style="margin: 5px 0">排序</div>
  3175. </div>
  3176. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3177. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3178. <div class="checkDiv" v-else>
  3179. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3180. </div>
  3181. </div>
  3182. </div>
  3183. <!-- <div class="tool">
  3184. <div
  3185. class="whiteBIcon"
  3186. @click="openTools(itemTaskIndex, 42, toolIndex)"
  3187. >
  3188. <img
  3189. src="../../../assets/icon/thirdToolList/mp3.png"
  3190. alt
  3191. />
  3192. <div style="margin: 5px 0">上传音频</div>
  3193. </div>
  3194. <div
  3195. class="check"
  3196. @click="addTools(42, itemTaskIndex, toolIndex)"
  3197. >
  3198. <img
  3199. src="../../../assets/icon/checkNo.png"
  3200. alt
  3201. v-if="itemTool.tool.indexOf(42) == -1"
  3202. />
  3203. <img
  3204. src="../../../assets/icon/checkedIs.png"
  3205. alt
  3206. v-else
  3207. />
  3208. </div>
  3209. </div> -->
  3210. </div>
  3211. <div class="toolSort" v-if="itemTool.toolType == 3">
  3212. <div class="tool">
  3213. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  3214. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  3215. <div style="margin: 5px 0">训练平台</div>
  3216. </div>
  3217. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  3218. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  3219. <div class="checkDiv" v-else>
  3220. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. <div class="tool">
  3225. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  3226. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  3227. <div style="margin: 5px 0">AIoT Blockly</div>
  3228. </div>
  3229. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  3230. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  3231. <div class="checkDiv" v-else>
  3232. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3233. </div>
  3234. </div>
  3235. </div>
  3236. <div class="tool">
  3237. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  3238. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  3239. <div style="margin: 5px 0">AI体验</div>
  3240. </div>
  3241. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  3242. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  3243. <div class="checkDiv" v-else>
  3244. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div class="tool">
  3249. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  3250. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  3251. <div style="margin: 5px 0">AI Python</div>
  3252. </div>
  3253. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  3254. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  3255. <div class="checkDiv" v-else>
  3256. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. <div class="tool">
  3261. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  3262. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  3263. <div style="margin: 5px 0">AI Blockly</div>
  3264. </div>
  3265. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  3266. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  3267. <div class="checkDiv" v-else>
  3268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3269. </div>
  3270. </div>
  3271. </div>
  3272. <!-- <div class="tool">
  3273. <div
  3274. class="whiteBIcon"
  3275. @click="addTools(32, itemTaskIndex, toolIndex)"
  3276. >
  3277. <img
  3278. src="../../../assets/icon/thirdToolList/code.png"
  3279. alt
  3280. />
  3281. <div style="margin: 5px 0">源码编辑</div>
  3282. </div>
  3283. <div
  3284. class="check"
  3285. @click="addTools(32, itemTaskIndex, toolIndex)"
  3286. >
  3287. <img
  3288. src="../../../assets/icon/checkNo.png"
  3289. alt
  3290. v-if="itemTool.tool.indexOf(32) == -1"
  3291. />
  3292. <div class="checkDiv" v-else>
  3293. <img
  3294. src="../../../assets/icon/checkedIs.png"
  3295. alt
  3296. /><span>已选择</span>
  3297. </div>
  3298. </div>
  3299. </div> -->
  3300. <div class="tool">
  3301. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  3302. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  3303. <div style="margin: 5px 0">CocoPi</div>
  3304. </div>
  3305. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  3306. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -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 class="tool">
  3313. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  3314. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  3315. <div style="margin: 5px 0">海龟编程</div>
  3316. </div>
  3317. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  3318. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  3319. <div class="checkDiv" v-else>
  3320. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3321. </div>
  3322. </div>
  3323. </div>
  3324. </div>
  3325. <div class="toolSort" v-if="itemTool.toolType == 7">
  3326. <div class="tool">
  3327. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3328. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3329. <div style="margin: 5px 0">个人评价</div>
  3330. </div>
  3331. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3332. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -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>
  3339. <div class="toolSort" v-if="itemTool.toolType == 5">
  3340. <div class="tool">
  3341. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3342. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3343. <div style="margin: 5px 0">翻译</div>
  3344. </div>
  3345. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3346. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3347. <div class="checkDiv" v-else>
  3348. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3349. </div>
  3350. </div>
  3351. </div>
  3352. <div class="tool">
  3353. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3354. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3355. <div style="margin: 5px 0">魔盒识字</div>
  3356. </div>
  3357. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3358. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3359. <div class="checkDiv" v-else>
  3360. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3361. </div>
  3362. </div>
  3363. </div>
  3364. <div class="tool">
  3365. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3366. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3367. <div style="margin: 5px 0">24点</div>
  3368. </div>
  3369. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3370. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3371. <div class="checkDiv" v-else>
  3372. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3373. </div>
  3374. </div>
  3375. </div>
  3376. <div class="tool">
  3377. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3378. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3379. <div style="margin: 5px 0">数学画板</div>
  3380. </div>
  3381. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3382. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3383. <div class="checkDiv" v-else>
  3384. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3385. </div>
  3386. </div>
  3387. </div>
  3388. <div class="tool">
  3389. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3390. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3391. <div style="margin: 5px 0">GeoGebra</div>
  3392. </div>
  3393. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3394. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3395. <div class="checkDiv" v-else>
  3396. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3397. </div>
  3398. </div>
  3399. </div>
  3400. <div class="tool">
  3401. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3402. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3403. <div style="margin: 5px 0">模拟驾驶</div>
  3404. </div>
  3405. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3406. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3407. <div class="checkDiv" v-else>
  3408. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3409. </div>
  3410. </div>
  3411. </div>
  3412. <div class="tool">
  3413. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3414. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3415. <div style="margin: 5px 0">路径搜索</div>
  3416. </div>
  3417. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3418. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3419. <div class="checkDiv" v-else>
  3420. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3421. </div>
  3422. </div>
  3423. </div>
  3424. <div class="tool">
  3425. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3426. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3427. <div style="margin: 5px 0">深度学习</div>
  3428. </div>
  3429. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3430. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -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(61, itemTaskIndex, toolIndex)">
  3438. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3439. <div style="margin: 5px 0">全历史</div>
  3440. </div>
  3441. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3442. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -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>
  3449. <div class="toolSort" v-if="itemTool.toolType == 4">
  3450. <div class="tool">
  3451. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3452. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3453. <div style="margin: 5px 0">课程设计</div>
  3454. </div>
  3455. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3456. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3457. <div class="checkDiv" v-else>
  3458. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div class="tool">
  3463. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3464. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3465. <div style="margin: 5px 0">目标管理</div>
  3466. </div>
  3467. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3468. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3469. <div class="checkDiv" v-else>
  3470. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3471. </div>
  3472. </div>
  3473. </div>
  3474. <!-- <div class="tool">
  3475. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3476. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3477. <div style="margin: 5px 0">汉字宫</div>
  3478. </div>
  3479. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3480. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3481. <div class="checkDiv" v-else>
  3482. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3483. </div>
  3484. </div>
  3485. </div> -->
  3486. </div>
  3487. </div>
  3488. </div>
  3489. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3490. <div class="addToolImg">
  3491. <img src="../../../assets/icon/add.png" alt />
  3492. </div>
  3493. <div>添加工具</div>
  3494. </div>
  3495. </div>
  3496. </div>
  3497. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3498. unitJson[unitIndex].easy == 4
  3499. " class="toolChoose" style="padding: 0 0 0 30px">
  3500. <div class="tools">
  3501. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3502. :key="toolIndex">
  3503. <div>
  3504. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3505. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3506. </div>
  3507. <div style="
  3508. display: flex;
  3509. flex-direction: row;
  3510. align-items: baseline;
  3511. flex-wrap: nowrap;
  3512. justify-content: flex-start;
  3513. position: relative;
  3514. ">
  3515. <div style="margin-right: 20px; font-weight: bold">
  3516. 步骤 {{ toolIndex + 1 }} :
  3517. </div>
  3518. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3519. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3520. </div>
  3521. <div style="min-height: 163px">
  3522. <div class="toolSort">
  3523. <div class="tool">
  3524. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3525. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3526. <div style="margin: 5px 0">电子白板</div>
  3527. </div>
  3528. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3529. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3530. <div class="checkDiv" v-else>
  3531. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. <div class="tool">
  3536. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3537. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3538. <div style="margin: 5px 0">文档</div>
  3539. </div>
  3540. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3541. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3542. <div class="checkDiv" v-else>
  3543. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. <div class="tool">
  3548. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3549. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3550. <div style="margin: 5px 0">思维导图</div>
  3551. </div>
  3552. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3553. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3554. <div class="checkDiv" v-else>
  3555. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3556. </div>
  3557. </div>
  3558. </div>
  3559. <div class="tool">
  3560. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3561. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3562. <div style="margin: 5px 0">问卷调查</div>
  3563. </div>
  3564. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3565. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3566. <div class="checkDiv" v-else>
  3567. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3568. </div>
  3569. </div>
  3570. </div>
  3571. <div class="tool">
  3572. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3573. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3574. <div style="margin: 5px 0">选择题</div>
  3575. </div>
  3576. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3577. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3578. <div class="checkDiv" v-else>
  3579. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3580. </div>
  3581. </div>
  3582. </div>
  3583. <div class="tool">
  3584. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3585. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3586. <div style="margin: 5px 0">问答</div>
  3587. </div>
  3588. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3589. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3590. <div class="checkDiv" v-else>
  3591. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3592. </div>
  3593. </div>
  3594. </div>
  3595. <div class="tool">
  3596. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3597. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3598. <div style="margin: 5px 0">作业提交</div>
  3599. </div>
  3600. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3601. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3602. <div class="checkDiv" v-else>
  3603. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3604. </div>
  3605. </div>
  3606. </div>
  3607. <div class="tool">
  3608. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3609. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3610. <div style="margin: 5px 0">批量上传</div>
  3611. </div>
  3612. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3613. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3614. <div class="checkDiv" v-else>
  3615. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3616. </div>
  3617. </div>
  3618. </div>
  3619. <div class="tool">
  3620. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3621. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3622. <div style="margin: 5px 0">选择匹配</div>
  3623. </div>
  3624. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3625. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3626. <div class="checkDiv" v-else>
  3627. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3628. </div>
  3629. </div>
  3630. </div>
  3631. <div class="tool">
  3632. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3633. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3634. <div style="margin: 5px 0">排序</div>
  3635. </div>
  3636. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3637. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3638. <div class="checkDiv" v-else>
  3639. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3640. </div>
  3641. </div>
  3642. </div>
  3643. <div class="tool">
  3644. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3645. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3646. <div style="margin: 5px 0">表格</div>
  3647. </div>
  3648. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3649. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3650. <div class="checkDiv" v-else>
  3651. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3652. </div>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3659. <div class="addToolImg">
  3660. <img src="../../../assets/icon/add.png" alt />
  3661. </div>
  3662. <div>添加工具</div>
  3663. </div>
  3664. </div>
  3665. </div>
  3666. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3667. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3668. " class="toolChoose" style="padding: 0 0 0 30px">
  3669. <div class="tools">
  3670. <div class="leftTools" style="
  3671. width: 95%;
  3672. padding: 0 0 15px 0;
  3673. margin-bottom: 15px;
  3674. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3675. <div style="min-height: 163px">
  3676. <div class="toolSort">
  3677. <div class="tool">
  3678. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3679. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3680. <div style="margin: 5px 0">批量上传</div>
  3681. </div>
  3682. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3683. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3684. <div class="checkDiv" v-else>
  3685. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3686. </div>
  3687. </div>
  3688. </div>
  3689. </div>
  3690. </div>
  3691. </div>
  3692. </div>
  3693. </div>
  3694. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3695. <div class="elist_title">
  3696. <div style="
  3697. display: flex;
  3698. flex-direction: row;
  3699. align-items: center;
  3700. margin-bottom: 20px;
  3701. ">
  3702. <div class="lineTitle">评价设置</div>
  3703. </div>
  3704. </div>
  3705. <div class="mbCss">
  3706. <div class="pjCss">
  3707. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3708. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3709. <span>评价名称:</span>
  3710. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3711. <span>评星等级:</span>
  3712. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3713. <div class="remove" @click="
  3714. deletEList(unitIndex, itemTaskIndex, eIndex)
  3715. "></div>
  3716. <div class="elist_inptu_text">
  3717. <span>评价描述:</span>
  3718. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3719. </div>
  3720. <div class="elist_inptu_text" v-if="evalua">
  3721. <span>目标:</span>
  3722. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3723. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3724. @change="forceUpdate()">
  3725. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3726. :value="e.name">
  3727. </el-option>
  3728. </el-select> -->
  3729. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3730. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3731. </div>
  3732. </div>
  3733. </div>
  3734. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3735. <div class="addToolImg">
  3736. <img src="../../../assets/icon/add.png" alt />
  3737. </div>
  3738. <div>添加</div>
  3739. </div>
  3740. </div>
  3741. <div v-if="evalua" style="
  3742. border: 1px solid #e5e5e5;
  3743. width: 55%;
  3744. margin-top: 20px;
  3745. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3746. " class="evaCss">
  3747. <div class="e_add_top">
  3748. <div class="e_add_title">
  3749. <span>当前使用目标管理</span>
  3750. <span>{{ eTitle }}</span>
  3751. <img src="../../../assets/line.png" class="cru_line" style="
  3752. width: 125px;
  3753. height: 20px;
  3754. bottom: -10px;
  3755. left: 155px;
  3756. " />
  3757. </div>
  3758. </div>
  3759. <div class="e_add_content" style="width: 100%">
  3760. <div class="e_add_list_pbox" style="width: 100%">
  3761. <div class="e_add_list_pbox_title">
  3762. <span class="type_title">切换模式</span>
  3763. <div class="type_content">
  3764. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3765. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3766. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3767. </div>
  3768. </div>
  3769. <div class="e_add_list_pbox_content">
  3770. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3771. " v-if="typeMode == 1"></Mind>
  3772. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3773. </Sunburst>
  3774. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3775. v-if="typeMode == 3"></SeeBoard>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. </div>
  3782. <div class="funBlock" style="padding: 0">
  3783. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3784. <div>折叠</div>
  3785. <div class="arrow">
  3786. <img src="../../../assets/icon/fold.png" alt />
  3787. </div>
  3788. </div>
  3789. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3790. <div>展开</div>
  3791. <div class="arrow">
  3792. <img src="../../../assets/icon/expand.png" alt />
  3793. </div>
  3794. </div>
  3795. </div>
  3796. </div>
  3797. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3798. <div>
  3799. <img src="../../../assets/icon/addHw.png" alt />
  3800. <span>添加任务</span>
  3801. </div>
  3802. </div>
  3803. </div>
  3804. </div>
  3805. </div>
  3806. <div class="rightBox" v-if="this.steps == 4">
  3807. <div class="basic_box_success">
  3808. <div class="right_img">
  3809. <img src="../../../assets/icon/right.png" alt />
  3810. </div>
  3811. <div style="font-weight: bold">成功</div>
  3812. <!-- <div>您的课程编号</div>
  3813. <div class="number">{{ number }}</div>-->
  3814. <!-- <div class="success_button">
  3815. <div class="look_course" @click="isNoFinsh">
  3816. 邀请老师协同编辑
  3817. </div>
  3818. <div class="attend_others" @click="goCourse">预览课程</div>
  3819. </div> -->
  3820. </div>
  3821. </div>
  3822. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3823. @mouseleave="btnDisplay(false)" v-if="false">
  3824. <button v-if="isBtnDisplay" class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  3825. 返回课程
  3826. </button>
  3827. <button v-if="isBtnDisplay" class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  3828. 确认上传
  3829. </button>
  3830. </div>
  3831. </div>
  3832. </div>
  3833. </div>
  3834. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3835. class="dialog_diy2 customWidth">
  3836. <div>请复制该链接邀请协同编辑</div>
  3837. <div>http://www.boomyon.com/index-zhang.com</div>
  3838. <span slot="footer" class="dialog-footer">
  3839. <el-button type="primary">复制链接分享</el-button>
  3840. <el-button @click="dialogVisible = false">取消</el-button>
  3841. </span>
  3842. </el-dialog>
  3843. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3844. :before-close="handleClose" class="dialog_diy2 customWidth">
  3845. <el-form>
  3846. <el-form-item label="文档标题">
  3847. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3848. </el-form-item>
  3849. <div>文档简介</div>
  3850. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3851. </el-form>
  3852. <span slot="footer" class="dialog-footer">
  3853. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3854. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3855. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3856. </span>
  3857. </el-dialog>
  3858. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3859. :before-close="handleClose" class="dialog_diy">
  3860. <el-form>
  3861. <el-form-item label="文档标题">
  3862. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3863. </el-form-item>
  3864. <div>文档内容</div>
  3865. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3866. </el-form>
  3867. <span slot="footer" class="dialog-footer">
  3868. <el-button @click="clearChoose">取 消</el-button>
  3869. <el-button type="primary" @click="wordNext()">确定</el-button>
  3870. </span>
  3871. </el-dialog>
  3872. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3873. :before-close="handleClose" class="dialog_diy">
  3874. <el-form>
  3875. <el-form-item label="文本标题">
  3876. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3877. placeholder="请输入文本标题..."></el-input>
  3878. </el-form-item>
  3879. <!-- <div>富文本内容</div> -->
  3880. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3881. </el-form>
  3882. <span slot="footer" class="dialog-footer">
  3883. <el-button @click="clearAttText">取 消</el-button>
  3884. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3885. </span>
  3886. </el-dialog>
  3887. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3888. :before-close="handleClose" class="dialog_diy lineCss">
  3889. <el-form>
  3890. <el-form-item label="标题" :label-width="formLabelWidth">
  3891. <span>
  3892. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3893. </span>
  3894. </el-form-item>
  3895. <el-form-item label="链接" :label-width="formLabelWidth">
  3896. <span>
  3897. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3898. </span>
  3899. </el-form-item>
  3900. </el-form>
  3901. <span slot="footer" class="dialog-footer">
  3902. <el-button @click="clearLine">取 消</el-button>
  3903. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3904. </span>
  3905. </el-dialog>
  3906. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3907. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3908. <div>
  3909. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3910. </div>
  3911. <span slot="footer" class="dialog-footer">
  3912. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3913. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3914. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3915. </span>
  3916. </el-dialog>
  3917. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3918. :before-close="handleClose" class="addNewPP customWidth">
  3919. <div class="people">
  3920. <div class="people_top">
  3921. <div class="people_nav">选择成员</div>
  3922. <div class="people_top_right">
  3923. <div class="people_search">
  3924. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3925. <div class="search_img" @click="searchStudent">
  3926. <img src="../../../assets/icon/search.png" alt />
  3927. </div>
  3928. </div>
  3929. </div>
  3930. </div>
  3931. <el-checkbox-group v-model="checkboxList" class="people_name">
  3932. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3933. "暂无学生可选" }}</el-checkbox>
  3934. </el-checkbox-group>
  3935. </div>
  3936. <span slot="footer" class="dialog-footer">
  3937. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3938. <el-button type="primary" @click="isAddPP">确定</el-button>
  3939. </span>
  3940. </el-dialog>
  3941. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3942. :before-close="handleClose" class="addNewPP2">
  3943. <div class="check_classBox">
  3944. <div class="check_class_right">
  3945. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3946. 全部
  3947. </div>
  3948. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3949. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3950. {{ item.name }}
  3951. </div>
  3952. </el-tooltip>
  3953. </div>
  3954. <div class="check_class_left">
  3955. <div class="check_class_all_box">
  3956. <div class="check_class_left_title">选择班级</div>
  3957. <!-- <div style="display:flex;align-items:center;"><el-checkbox v-model="checkAll"
  3958. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div> -->
  3959. </div>
  3960. <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3961. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3962. </div>
  3963. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3964. <div v-for="item in grade2" :key="item.id" class="class_item">
  3965. <el-checkbox :label="item.id">
  3966. {{ item.name }}
  3967. </el-checkbox>
  3968. </div>
  3969. </el-checkbox-group>
  3970. <div v-if="!grade2.length">暂无数据</div>
  3971. </div>
  3972. </div>
  3973. <span slot="footer" class="dialog-footer">
  3974. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3975. <el-button type="primary" @click="isAddClass">确定</el-button>
  3976. </span>
  3977. </el-dialog>
  3978. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3979. :before-close="handleClose" class="addNewPP customWidth">
  3980. <div class="people">
  3981. <div class="people_top">
  3982. <div class="people_top_right">
  3983. <div class="people_search">
  3984. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3985. <div class="search_img" @click="getTeacher">
  3986. <img src="../../../assets/icon/search.png" alt />
  3987. </div>
  3988. </div>
  3989. </div>
  3990. <div class="people_nav">选择成员</div>
  3991. </div>
  3992. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3993. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3994. <div class="t_j_box">
  3995. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3996. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3997. </el-tooltip>
  3998. <el-tooltip placement="top" :content="item.username">
  3999. <span>{{ item.username }}</span>
  4000. </el-tooltip>
  4001. <el-tooltip placement="top" :content="item.school">
  4002. <span>{{ item.school }}</span>
  4003. </el-tooltip>
  4004. </div>
  4005. </el-checkbox>
  4006. </el-checkbox-group>
  4007. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  4008. </div>
  4009. <span slot="footer" class="dialog-footer">
  4010. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  4011. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  4012. </span>
  4013. </el-dialog>
  4014. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  4015. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  4016. <div style="height:100%">
  4017. <div class="a_add_title" style="
  4018. display: flex;
  4019. flex-direction: row;
  4020. align-items: center;
  4021. justify-content: center;
  4022. ">
  4023. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  4024. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4025. </div>
  4026. <div class="a_addBox" style="height:calc(100% - 50px)">
  4027. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  4028. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  4029. <div class="a_add_checkType">
  4030. <span :class="{
  4031. active:
  4032. askJson.askJson[index1].type == '1' ||
  4033. !askJson.askJson[index1].type,
  4034. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  4035. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  4036. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  4037. </div>
  4038. <div class="a_add_head">
  4039. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  4040. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  4041. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  4042. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  4043. </div>
  4044. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  4045. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  4046. </div>
  4047. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  4048. </div>
  4049. <div class="a_add_head_div">
  4050. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  4051. </el-button>
  4052. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  4053. </div>
  4054. </div>
  4055. <div class="a_add_body">
  4056. <div class="a_add_input" style="flex-direction: column;">
  4057. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  4058. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  4059. <div style="margin-right: 10px">
  4060. 选项{{ checkIndex + 1 }}
  4061. </div>
  4062. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  4063. " placeholder="请输入选项" style="width: 300px;" @change="() => { $forceUpdate() }"></textarea>
  4064. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  4065. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  4066. </div>
  4067. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  4068. </div>
  4069. <div class="a_add_body_div">
  4070. <el-button type="primary" size="small"
  4071. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  4072. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  4073. v-if="askJson.askJson[index1].askItem != 1">删除
  4074. </el-button>
  4075. </div>
  4076. </div>
  4077. </div>
  4078. <!-- <div class="a_add_body_div">
  4079. <el-button
  4080. style="margin: 10px 0px 0 0"
  4081. type="primary"
  4082. size="small"
  4083. @click="addcheckList(askJson.askJson[index1])"
  4084. >添加</el-button
  4085. >
  4086. <el-button
  4087. type="primary"
  4088. size="small"
  4089. style="margin: 10px 0 0 10px"
  4090. @click="deletecheckList(askJson.askJson[index1])"
  4091. v-if="askJson.askJson[index1].askItem != 1"
  4092. >删除
  4093. </el-button>
  4094. </div> -->
  4095. </div>
  4096. </div>
  4097. </div>
  4098. </div>
  4099. <span slot="footer" class="dialog-footer">
  4100. <el-button @click="closePan(4)">取 消</el-button>
  4101. <el-button type="primary" @click="addAsk">确 定</el-button>
  4102. </span>
  4103. </el-dialog>
  4104. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  4105. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  4106. <div style="height:100%">
  4107. <!-- <div class="a_add_title" style="
  4108. display: flex;
  4109. flex-direction: row;
  4110. align-items: center;
  4111. justify-content: center;
  4112. ">
  4113. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  4114. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  4115. </div> -->
  4116. <div class="a_addBox" style="height:100%">
  4117. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  4118. <!-- 请输入题目内容 -->
  4119. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  4120. v-if="isPasteChoice">智能粘贴</button>
  4121. </div>
  4122. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  4123. <div class="a_add_checkType">
  4124. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  4125. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  4126. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  4127. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  4128. </div>
  4129. <div class="a_add_head">
  4130. <div class="timuUpImg">
  4131. <div style="display: flex;align-items: center;">
  4132. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  4133. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  4134. placeholder="请输入题目">
  4135. </el-input> -->
  4136. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  4137. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  4138. @change="() => { $forceUpdate() }"></textarea>
  4139. </div>
  4140. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  4141. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  4142. </div>
  4143. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  4144. </div>
  4145. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  4146. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4147. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  4148. </div>
  4149. </div>
  4150. <div class="a_add_head_div">
  4151. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  4152. </el-button>
  4153. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  4154. </div>
  4155. </div>
  4156. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  4157. testJson.testJson[index1].timuList.length
  4158. ">
  4159. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  4160. @click.stop="previewImg(timg.src)">
  4161. <img :src="timg.src" alt="" />
  4162. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  4163. <img src="../../../assets/icon/delete.png" alt="" />
  4164. </div>
  4165. </div>
  4166. </div>
  4167. <div class="a_add_body">
  4168. <div class="a_add_input a_add_input_choice">
  4169. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  4170. @change="() => { $forceUpdate() }">
  4171. <div class="radioBox">
  4172. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  4173. .testItem" :key="checkIndex" :label="checkIndex">
  4174. <div style="margin-right: 10px">
  4175. 选项{{ checkIndex + 1 }}
  4176. </div>
  4177. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  4178. testJson.testJson[index1].checkList[checkIndex]
  4179. .imgType &&
  4180. testJson.testJson[index1].checkList[checkIndex]
  4181. .imgType == 1
  4182. ">
  4183. <div class="inImg" @click.stop="
  4184. previewImg(
  4185. testJson.testJson[index1].checkList[checkIndex]
  4186. .src
  4187. )
  4188. ">
  4189. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  4190. .src
  4191. " lazy />
  4192. <!-- <img :src="
  4193. testJson.testJson[index1].checkList[checkIndex]
  4194. .src
  4195. " alt="" /> -->
  4196. </div>
  4197. </div>
  4198. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  4199. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  4200. @change="() => { $forceUpdate() }"></textarea>
  4201. <div class="xzUpImg" @click.stop="addImg($event)">
  4202. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4203. <input type="file" accept="image/*" style="display: none"
  4204. @change="beforeUploadTi($event, index1, checkIndex)" />
  4205. </div>
  4206. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4207. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  4208. </div>
  4209. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  4210. </div>
  4211. <div class="a_add_body_div">
  4212. <el-button type="primary" size="small"
  4213. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  4214. <el-button type="primary" size="small"
  4215. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  4216. v-if="testJson.testJson[index1].testItem != 1">删除
  4217. </el-button>
  4218. </div>
  4219. </el-radio>
  4220. </div>
  4221. </el-radio-group>
  4222. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  4223. @change="() => { $forceUpdate() }">
  4224. <div class="radioBox">
  4225. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  4226. .testItem" :key="checkIndex1" :label="checkIndex1">
  4227. <div style="margin-right: 10px">
  4228. 选项{{ checkIndex1 + 1 }}
  4229. </div>
  4230. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  4231. testJson.testJson[index1].checkList[checkIndex1]
  4232. .imgType &&
  4233. testJson.testJson[index1].checkList[checkIndex1]
  4234. .imgType == 1
  4235. ">
  4236. <div class="inImg" @click.stop="
  4237. previewImg(
  4238. testJson.testJson[index1].checkList[checkIndex1]
  4239. .src
  4240. )
  4241. ">
  4242. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  4243. .src
  4244. " lazy />
  4245. <!-- <img :src="
  4246. testJson.testJson[index1].checkList[checkIndex1]
  4247. .src
  4248. " alt="" /> -->
  4249. </div>
  4250. </div>
  4251. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  4252. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  4253. @change="() => { $forceUpdate() }"></textarea>
  4254. <div class="xzUpImg" @click.stop="addImg($event)">
  4255. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  4256. <input type="file" accept="image/*" style="display: none"
  4257. @change="beforeUploadTi($event, index1, checkIndex1)" />
  4258. </div>
  4259. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  4260. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  4261. </div>
  4262. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  4263. </div>
  4264. <div class="a_add_body_div">
  4265. <el-button type="primary" size="small"
  4266. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  4267. <el-button type="primary" size="small"
  4268. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  4269. v-if="testJson.testJson[index1].testItem != 1">删除
  4270. </el-button>
  4271. </div>
  4272. </el-checkbox>
  4273. </div>
  4274. </el-checkbox-group>
  4275. </div>
  4276. <!-- <div class="a_add_body_div">
  4277. <el-button
  4278. type="primary"
  4279. size="small"
  4280. @click="addTcheckList(testJson.testJson[index1])"
  4281. >添加</el-button
  4282. >
  4283. <el-button
  4284. type="primary"
  4285. size="small"
  4286. @click="deleteTcheckList(testJson.testJson[index1])"
  4287. v-if="testJson.testJson[index1].testItem != 1"
  4288. >删除
  4289. </el-button>
  4290. </div> -->
  4291. </div>
  4292. </div>
  4293. </div>
  4294. </div>
  4295. <span slot="footer" class="dialog-footer">
  4296. <el-button @click="closePan(45)">取 消</el-button>
  4297. <el-button type="primary" @click="addTest">确 定</el-button>
  4298. </span>
  4299. </el-dialog>
  4300. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  4301. :before-close="handleClose" class="dialog_diy addToolsDia">
  4302. <div class="toolChoose" style="padding: 0 0 0 30px">
  4303. <div class="tools">
  4304. <div class="leftTools" style="
  4305. width: 95%;
  4306. padding: 0 0 15px 0;
  4307. margin: 15px 0;
  4308. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4309. <div style="
  4310. display: flex;
  4311. flex-direction: row;
  4312. align-items: baseline;
  4313. flex-wrap: nowrap;
  4314. justify-content: flex-start;
  4315. position: relative;
  4316. ">
  4317. <div class="chooseWho">
  4318. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4319. 互动类
  4320. </div>
  4321. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4322. 思维类
  4323. </div>
  4324. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4325. 评价类
  4326. </div>
  4327. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4328. 其他
  4329. </div>
  4330. </div>
  4331. </div>
  4332. <div style="min-height: 163px">
  4333. <div class="toolSort" v-if="chapToolsType == 0">
  4334. <div class="tool">
  4335. <div class="whiteBIcon" @click="chapAddTools(8)">
  4336. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4337. <div style="margin: 5px 0">素材库</div>
  4338. </div>
  4339. <div class="check" @click="chapAddTools(8)">
  4340. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4341. <div class="checkDiv" v-else>
  4342. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4343. </div>
  4344. </div>
  4345. </div>
  4346. </div>
  4347. <div class="toolSort" v-if="chapToolsType == 1">
  4348. <div class="tool">
  4349. <div class="whiteBIcon" @click="chapAddTools(7)">
  4350. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4351. <div style="margin: 5px 0">思维网格</div>
  4352. </div>
  4353. <div class="check" @click="chapAddTools(7)">
  4354. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4355. <div class="checkDiv" v-else>
  4356. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4357. </div>
  4358. </div>
  4359. </div>
  4360. <div class="tool">
  4361. <div class="whiteBIcon" @click="chapAddTools(1)">
  4362. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4363. <div style="margin: 5px 0">电子白板</div>
  4364. </div>
  4365. <div class="check" @click="chapAddTools(1)">
  4366. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4367. <div class="checkDiv" v-else>
  4368. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4369. </div>
  4370. </div>
  4371. </div>
  4372. <div class="tool">
  4373. <div class="whiteBIcon" @click="chapAddTools(2)">
  4374. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4375. <div style="margin: 5px 0">便签</div>
  4376. </div>
  4377. <div class="check" @click="chapAddTools(2)">
  4378. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4379. <div class="checkDiv" v-else>
  4380. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4381. </div>
  4382. </div>
  4383. </div>
  4384. <div class="tool">
  4385. <div class="whiteBIcon" @click="chapAddTools(6)">
  4386. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4387. <div style="margin: 5px 0">协同文档</div>
  4388. </div>
  4389. <div class="check" @click="chapAddTools(6)">
  4390. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4391. <div class="checkDiv" v-else>
  4392. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4393. </div>
  4394. </div>
  4395. </div>
  4396. <div class="tool">
  4397. <div class="whiteBIcon" @click="chapAddTools(3)">
  4398. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4399. <div style="margin: 5px 0">思维导图</div>
  4400. </div>
  4401. <div class="check" @click="chapAddTools(3)">
  4402. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4403. <div class="checkDiv" v-else>
  4404. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. <div class="tool">
  4409. <div class="whiteBIcon" @click="chapAddTools(31)">
  4410. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4411. <div style="margin: 5px 0">数学画板</div>
  4412. </div>
  4413. <div class="check" @click="chapAddTools(31)">
  4414. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4415. <div class="checkDiv" v-else>
  4416. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4417. </div>
  4418. </div>
  4419. </div>
  4420. </div>
  4421. <div class="toolSort" v-if="chapToolsType == 2">
  4422. <div class="tool">
  4423. <div class="whiteBIcon" @click="chapAddTools(5)">
  4424. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4425. <div style="margin: 5px 0">量规评分</div>
  4426. </div>
  4427. <div class="check" @click="chapAddTools(5)">
  4428. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4429. <div class="checkDiv" v-else>
  4430. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4431. </div>
  4432. </div>
  4433. </div>
  4434. <div class="tool">
  4435. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4436. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4437. <div style="margin: 5px 0">问卷调查</div>
  4438. </div>
  4439. <div class="check" @click="chapAddTools(4)">
  4440. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4441. <div class="checkDiv" v-else>
  4442. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4443. </div>
  4444. </div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. <div>
  4449. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4450. v-model="itemTools.toolDetail" />
  4451. </div>
  4452. </div>
  4453. </div>
  4454. </div>
  4455. <span slot="footer" class="dialog-footer">
  4456. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4457. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4458. </span>
  4459. </el-dialog>
  4460. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4461. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4462. <div>
  4463. <div class="a_add_title" style="
  4464. display: flex;
  4465. flex-direction: column;
  4466. align-items: flex-start;
  4467. justify-content: center;
  4468. ">
  4469. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4470. <!-- <el-input
  4471. v-model="answerQ"
  4472. placeholder="请输入您要问的问题"
  4473. ></el-input> -->
  4474. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4475. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4476. </div>
  4477. </div>
  4478. <span slot="footer" class="dialog-footer">
  4479. <el-button @click="closePan(15)">取 消</el-button>
  4480. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4481. </span>
  4482. </el-dialog>
  4483. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4484. :before-close="handleClose" class="dialog_diy">
  4485. <div>
  4486. <div class="a_add_title" style="
  4487. display: flex;
  4488. flex-direction: column;
  4489. align-items: flex-start;
  4490. justify-content: center;
  4491. ">
  4492. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4493. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4494. </div>
  4495. </div>
  4496. <span slot="footer" class="dialog-footer">
  4497. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4498. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4499. </span>
  4500. </el-dialog>
  4501. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4502. :before-close="handleClose" class="dialog_diy">
  4503. <div>
  4504. <div class="fileCss" style="padding-top: 20px">
  4505. <div>
  4506. <button class="info_btn" @click="addImg($event)">
  4507. 选择本地文件
  4508. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4509. </button>
  4510. <div class="spanName">选择本地文件</div>
  4511. </div>
  4512. <div>
  4513. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4514. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4515. <img :src="cover[0].url" alt="" />
  4516. <div class="deletePic" @click="deleteSysPic">
  4517. <img src="../../../assets/icon/delete.png" alt="" />
  4518. </div>
  4519. </div>
  4520. <div class="spanName">选择系统文件</div>
  4521. </div>
  4522. <div>
  4523. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4524. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4525. <img :src="cover[0].url" alt="" />
  4526. <div class="deletePic" @click="deleteSysPic">
  4527. <img src="../../../assets/icon/delete.png" alt="" />
  4528. </div>
  4529. </div>
  4530. <div class="spanName">选择网络文件</div>
  4531. </div>
  4532. </div>
  4533. <!-- <div class="fileCss">
  4534. <div>选择本地文件</div>
  4535. <div>选择系统文件</div>
  4536. </div> -->
  4537. </div>
  4538. <span slot="footer" class="dialog-footer">
  4539. <el-button @click="choosePicVisible = false">取 消</el-button>
  4540. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4541. </span>
  4542. </el-dialog>
  4543. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4544. :before-close="handleClose" class="dialog_diy">
  4545. <div class="cru_selectBox" style="margin: 0">
  4546. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4547. 绘画
  4548. </div>
  4549. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4550. 科技
  4551. </div>
  4552. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4553. 人文
  4554. </div>
  4555. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4556. 艺术
  4557. </div>
  4558. </div>
  4559. <div class="sysPicBox">
  4560. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4561. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4562. </div>
  4563. </div>
  4564. </el-dialog>
  4565. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4566. :before-close="handleClose" class="dialog_diy">
  4567. <div>
  4568. <div class="people_top_right" style="display: flex;align-items: center;">
  4569. <div style="position: relative; width: 100%;">
  4570. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4571. @keyup.enter.native="resetImage()"></el-input>
  4572. <div class="search_img" @click="resetImage" style="right: 10px;">
  4573. <img src="../../../assets/icon/search.png" alt />
  4574. </div>
  4575. </div>
  4576. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4577. </div>
  4578. <div class="sysPicBox" v-loading="imageloading">
  4579. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4580. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4581. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4582. </div>
  4583. </div>
  4584. </div>
  4585. </el-dialog>
  4586. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4587. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4588. <div v-if="selectJson" style="height:100%">
  4589. <div class="select_box1" v-if="selectSteps == 1">
  4590. <div class="select_box1_img">
  4591. <div class="select_box1_title">
  4592. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4593. </div>
  4594. <div class="select_box1_add_img">
  4595. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4596. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4597. <img src="../../../assets/icon/addPoster.png" alt="" />
  4598. </div>
  4599. <div class="isSysPic" v-else>
  4600. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4601. <div class="deletePic" @click="deleteSelectPic">
  4602. <img src="../../../assets/icon/delete.png" alt="" />
  4603. </div>
  4604. </div>
  4605. </div>
  4606. </div>
  4607. <div class="select_box1_select">
  4608. <div class="select_box1_title">
  4609. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4610. </div>
  4611. <div class="select_box1_select_box">
  4612. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4613. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4614. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4615. <div class="select_box1_select_box_add">
  4616. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4617. 添加</el-button>
  4618. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4619. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4620. </div>
  4621. </div>
  4622. </div>
  4623. </div>
  4624. <div v-if="selectSteps == 2" style="height:100%">
  4625. <div class="select_box2">
  4626. <div class="select_box2_title">设置每道题目的正确选项</div>
  4627. <div class="select_box2_box">
  4628. <div class="select_box2_img">
  4629. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4630. </div>
  4631. <div class="select_box2_answer">
  4632. <div class="select_answer_title">根据题目选择对应答案</div>
  4633. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4634. <span>{{ checkIndex + 1 }}、</span>
  4635. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4636. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4637. </el-option>
  4638. </el-select>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. </div>
  4643. </div>
  4644. </div>
  4645. <span slot="footer" class="dialog-footer">
  4646. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4647. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4648. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4649. </span>
  4650. </el-dialog>
  4651. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4652. :before-close="handleClose" class="dialog_diy">
  4653. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4654. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4655. <div class="pjCss" style="width: 100%">
  4656. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4657. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4658. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4659. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4660. <div class="remove" @click="deletRateList(eIndex)"></div>
  4661. <div style="width: 100%; display: flex">
  4662. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4663. <el-rate v-model="eItem.score" disabled></el-rate>
  4664. </div>
  4665. <div class="elist_inptu_text" style="align-items: flex-start">
  4666. <span style="min-width: 100px; text-align: right">描述:</span>
  4667. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4668. </div>
  4669. </div>
  4670. </div>
  4671. <div class="addToolFun" @click="addRateList()">
  4672. <div class="addToolImg">
  4673. <img src="../../../assets/icon/add.png" alt />
  4674. </div>
  4675. <div>添加</div>
  4676. </div>
  4677. </div>
  4678. </div>
  4679. <span slot="footer" class="dialog-footer">
  4680. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4681. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4682. </span>
  4683. </el-dialog>
  4684. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4685. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4686. <div style="height: 100%;">
  4687. <div class="sentenBox" style="height: 100%;">
  4688. <div class="addSen" @click="addSt">添加题目</div>
  4689. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4690. <div class="sentenTopBox">
  4691. <div class="sentenTop" :index="stIndex + 1">
  4692. <div>题目设置</div>
  4693. <div>
  4694. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4695. </div>
  4696. <div @click="addSen(stIndex)">添加</div>
  4697. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4698. </div>
  4699. </div>
  4700. <div class="cardList">
  4701. <div v-if="st.addSentence.length > 0" class="cardBox">
  4702. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4703. @click="setRightAnswer(s, stIndex, sIndex)">
  4704. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4705. <div>{{ s }}</div>
  4706. </el-tooltip>
  4707. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4708. <img src="../../../assets/icon/delete.png" alt="" />
  4709. </div>
  4710. </div>
  4711. </div>
  4712. <div class="card">
  4713. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4714. </div>
  4715. </div>
  4716. <div class="rightCardBox">
  4717. <div>正确顺序</div>
  4718. <div class="rightCardList">
  4719. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4720. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4721. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4722. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4723. <div>{{ r }}</div>
  4724. </el-tooltip>
  4725. </div>
  4726. <div>{{ rIndex + 1 }}</div>
  4727. </div>
  4728. </div>
  4729. <div class="card" v-if="st.rightAnswer.length == 0">
  4730. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4731. </div>
  4732. <div class="card" v-else>
  4733. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4734. </div>
  4735. </div>
  4736. </div>
  4737. </div>
  4738. </div>
  4739. </div>
  4740. <span slot="footer" class="dialog-footer">
  4741. <el-button @click="closePan(47)">取 消</el-button>
  4742. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4743. </span>
  4744. </el-dialog>
  4745. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4746. :before-close="handleClose" class="dialog_diy">
  4747. <el-form>
  4748. <!-- <el-form-item label="文本标题">
  4749. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4750. </el-form-item> -->
  4751. <div>表格内容</div>
  4752. <Table v-model="tableJson.text" @change="change"></Table>
  4753. </el-form>
  4754. <span slot="footer" class="dialog-footer">
  4755. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4756. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4757. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4758. </span>
  4759. </el-dialog>
  4760. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4761. :before-close="handleClose" class="dialog_diy">
  4762. <el-form>
  4763. <!-- <el-form-item label="文本标题">
  4764. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4765. </el-form-item> -->
  4766. <div>文档内容</div>
  4767. <editor-bar v-model="wordJson.text"></editor-bar>
  4768. </el-form>
  4769. <span slot="footer" class="dialog-footer">
  4770. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4771. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4772. </span>
  4773. </el-dialog>
  4774. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4775. :before-close="handleClose" class="dialog_diy">
  4776. <div style="
  4777. width: 100%;
  4778. display: flex;
  4779. flex-direction: row;
  4780. flex-wrap: nowrap;
  4781. align-items: center;
  4782. justify-content: center;
  4783. ">
  4784. <div>班级:</div>
  4785. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4786. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4787. </el-option>
  4788. </el-select>
  4789. </div>
  4790. <span slot="footer" class="dialog-footer">
  4791. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4792. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4793. </span>
  4794. </el-dialog>
  4795. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4796. :before-close="handleClose" class="dialog_diy">
  4797. <div style="
  4798. width: 100%;
  4799. display: flex;
  4800. flex-direction: row;
  4801. flex-wrap: nowrap;
  4802. align-items: center;
  4803. justify-content: center;
  4804. ">
  4805. <div>随机码:</div>
  4806. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4807. </div>
  4808. <span slot="footer" class="dialog-footer">
  4809. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4810. <el-button type="primary" @click="addInvite">确定</el-button>
  4811. </span>
  4812. </el-dialog>
  4813. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4814. :before-close="handleClose" class="dialog_diy">
  4815. <div>
  4816. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4817. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4818. </div>
  4819. <span slot="footer" class="dialog-footer">
  4820. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4821. <el-button type="primary" @click="addPreTime">确定</el-button>
  4822. </span>
  4823. </el-dialog>
  4824. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4825. class="dialog_diy">
  4826. <div>
  4827. <div style="
  4828. width: 100%;
  4829. display: flex;
  4830. flex-direction: row;
  4831. flex-wrap: nowrap;
  4832. align-content: center;
  4833. align-items: center;
  4834. justify-content: space-between;
  4835. ">
  4836. <div style="
  4837. display: flex;
  4838. flex-flow: row nowrap;
  4839. align-items: flex-start;
  4840. width: 100%;
  4841. flex-direction: column;
  4842. flex-wrap: nowrap;
  4843. position: relative;
  4844. ">
  4845. <div class="e_box">
  4846. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4847. <div class="e_card_picture">
  4848. <img src="../../../assets/e_picture.png" />
  4849. </div>
  4850. <div class="e_card_name">
  4851. <span>{{ item.title }}</span>
  4852. </div>
  4853. <div class="e_card_btn">
  4854. <span @click="checkEva(item.id, 2)">导入</span>
  4855. </div>
  4856. </div>
  4857. <div class="addEva" @click="openT">
  4858. <img src="../../../assets/icon/addEva.png" alt="" />
  4859. </div>
  4860. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4861. 暂无数据
  4862. </div>
  4863. </div>
  4864. </div>
  4865. </div>
  4866. </div>
  4867. <span slot="footer" class="dialog-footer">
  4868. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4869. </span>
  4870. </el-dialog>
  4871. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4872. :before-close="handleClose" class="dialog_diy">
  4873. <div class="groupBox">
  4874. <div v-if="groupJson.group" class="groupContent">
  4875. <div class="groupTitle">请设置小组数量及名称</div>
  4876. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4877. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4878. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4879. <div class="groupBtn">
  4880. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4881. 添加</el-button>
  4882. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4883. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4884. </div>
  4885. </div>
  4886. </div>
  4887. <div class="groupContent">
  4888. <div class="groupTitle">请设置每组人数</div>
  4889. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4890. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4891. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4892. @change="numberPan"></el-input>
  4893. </div>
  4894. </div>
  4895. <span slot="footer" class="dialog-footer">
  4896. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4897. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4898. </span>
  4899. </el-dialog>
  4900. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4901. :before-close="handleClose" class="dialog_diy">
  4902. <div style="
  4903. width: 100%;
  4904. display: flex;
  4905. flex-direction: row;
  4906. flex-wrap: nowrap;
  4907. align-items: center;
  4908. justify-content: center;
  4909. ">
  4910. <div style="min-width: fit-content;">文件名称:</div>
  4911. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4912. </div>
  4913. <span slot="footer" class="dialog-footer">
  4914. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4915. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4916. </span>
  4917. </el-dialog>
  4918. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4919. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle">
  4920. <englishRight @setEngList="setEnglishList" :englishList="englishList"></englishRight>
  4921. <span slot="footer" class="dialog-footer">
  4922. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4923. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4924. </span>
  4925. </el-dialog>
  4926. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4927. </div>
  4928. </template>
  4929. <script>
  4930. import "../../../common/aws-sdk-2.235.1.min.js";
  4931. import { tools as toolsData } from "../../../common/tools.js";
  4932. import $ from "jquery";
  4933. import EditorBar from "../../../components/tools/wangEnduit";
  4934. import Table from "../../../components/tools/table";
  4935. import Mind from "../../tools/jsmind2";
  4936. import Time from "../../tools/time.vue";
  4937. import Sunburst from "../../tools/sunburst";
  4938. import SeeBoard from "../../tools/seeBoard";
  4939. import weilaiData from "../components/weilai.js";
  4940. import sourceDialog from "../teacherSource/dialog.vue";
  4941. import interVideo from "../interVideo/index.vue";
  4942. import englishRight from "./commpont/englishRight.vue";
  4943. export default {
  4944. components: {
  4945. EditorBar,
  4946. Mind,
  4947. Time,
  4948. Sunburst,
  4949. SeeBoard,
  4950. Table,
  4951. sourceDialog,
  4952. interVideo,
  4953. englishRight,
  4954. },
  4955. data() {
  4956. return {
  4957. checkAll: false,
  4958. chooseType: 1,
  4959. checkedCities: [],
  4960. isIndeterminate: true,
  4961. isSysPic: false,
  4962. isSysPic2: false,
  4963. steps: 1,
  4964. nbOrder: 0,
  4965. courseId: "",
  4966. chapToolsType: 0,
  4967. chapTools: [
  4968. {
  4969. tools: [],
  4970. toolDetail: "",
  4971. },
  4972. ],
  4973. line: "",
  4974. lineTitle: "",
  4975. sysPic: [],
  4976. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4977. sentenceList2: [],
  4978. isPushTitleList: [],
  4979. lineCount: 0,
  4980. lineType: 0,
  4981. chapCount: 0,
  4982. courseName: "",
  4983. isTeacherSee: false,
  4984. courseText: "",
  4985. preTime: 0,
  4986. formLabelWidth: "100px",
  4987. choosePicVisible: false,
  4988. sysPicVisible: false,
  4989. uploadLoading1: false,
  4990. noneBtnImg: false,
  4991. updateBoolean2: false,
  4992. unitIndex: 0,
  4993. taskCount: 0,
  4994. dialogVisible: false,
  4995. dialogVisible1: false,
  4996. dialogVisible2: false,
  4997. dialogVisible3: false,
  4998. dialogVisible4: false,
  4999. dialogVisible5: false,
  5000. dialogVisible6: false,
  5001. dialogVisible7: false,
  5002. dialogVisible8: false,
  5003. dialogVisible9: false,
  5004. dialogVisibleClass: false,
  5005. dialogVisibleMember: false,
  5006. dialogVisibleMp3: false,
  5007. dialogVisibleSelect: false,
  5008. dialogVisibleSentence: false,
  5009. dialogVisibleRate: false,
  5010. dialogVisibleChoice: false,
  5011. dialogVisiblemb: false,
  5012. dialogVisibleInvite: false,
  5013. dialogVisibleSource: false,
  5014. dialogVisibleVideo: false,
  5015. dialogVisibleupdataVideoT: false,
  5016. englishDialogVisible: false,
  5017. isClickColor: 1,
  5018. toolIndexType: "",
  5019. publicTool: 0,
  5020. searchPeople: "",
  5021. searchTN: "",
  5022. userid: this.$route.query.userid,
  5023. oid: this.$route.query.oid,
  5024. org: this.$route.query.org,
  5025. role: this.$route.query.role,
  5026. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5027. dialogVisibleTable: false,
  5028. dialogVisibleWord: false,
  5029. tableJson: { text: "" },
  5030. wordJson: { text: "" },
  5031. dialogVisibleMoreUpload: false,
  5032. dialogVisiblePreTime: false,
  5033. uploadJson: [],
  5034. classJuri: [],
  5035. gradeList: [],
  5036. cover: [], //课程封面
  5037. myWord: [],
  5038. evaJuri: [],
  5039. evalua: "",
  5040. targetArray: [],
  5041. eTitle: "",
  5042. eJson: {},
  5043. fid: "", //一级
  5044. sid: "", //二级
  5045. tid: "", //二级
  5046. typeMode: 1,
  5047. eJSONNum: 0,
  5048. data: {
  5049. meta: {
  5050. name: "example",
  5051. author: "dd@163.com",
  5052. version: "0.2",
  5053. },
  5054. format: "node_array",
  5055. data: [{ id: "root", isroot: true, topic: "" }],
  5056. },
  5057. askJson: {
  5058. askCount: 1,
  5059. askTitle: "",
  5060. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5061. },
  5062. askJson2: {},
  5063. testJson: {},
  5064. testJson2: {},
  5065. selectJson: {},
  5066. selectJson2: {},
  5067. rateJson: [],
  5068. unitJson2: [],
  5069. unitJson: [
  5070. {
  5071. dyName: "", //单元标题
  5072. chapterInfo: [
  5073. {
  5074. isread: false,
  5075. chapterid: this.guid(),
  5076. title: "",
  5077. courseName: "",
  5078. taskJson: [
  5079. {
  5080. task: "",
  5081. taskDetail: "",
  5082. chapterData: [],
  5083. toolChoose: [
  5084. {
  5085. tool: [],
  5086. toolDetail: "",
  5087. toolType: 0,
  5088. askCount: 1,
  5089. askTitle: "",
  5090. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5091. },
  5092. ],
  5093. toolText: "",
  5094. isShowTools: false,
  5095. askCount: 1,
  5096. isFold: 0,
  5097. askTitle: "",
  5098. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5099. checkJson: [{ checkCount: [], checkPerent: [] }],
  5100. homeworkList: [],
  5101. },
  5102. ],
  5103. itemCount: 1,
  5104. fileList1: [],
  5105. video: [],
  5106. testData: [],
  5107. pData: [],
  5108. templateArray: [],
  5109. },
  5110. ],
  5111. },
  5112. ],
  5113. studentJuri: [],
  5114. teacherJuri: [],
  5115. checkboxList: [],
  5116. checkboxList2: [],
  5117. checkboxList3: [],
  5118. classSearch: "",
  5119. gradeId: "",
  5120. number: "",
  5121. tTitle: "",
  5122. tdetail: "",
  5123. templateC: {},
  5124. AttText: {},
  5125. AttTextType: 0,
  5126. AttTextIndex: 0,
  5127. cTemplate: "",
  5128. CourseType: [],
  5129. CourseType2: [],
  5130. CourseTypeJson: {},
  5131. courseTypeId: [],
  5132. courseTypeSon: [],
  5133. clearArray: [],
  5134. pTypeCheck: [],
  5135. pTypeCheckName: [],
  5136. loading: false,
  5137. toolType: 0,
  5138. inputShow: true,
  5139. inputShow2: true,
  5140. toolIndex: 0,
  5141. cidType: 0,
  5142. answerQ: "",
  5143. answerQ2: "",
  5144. grade: [],
  5145. grade2: [],
  5146. courseUserid: "",
  5147. timer: null,
  5148. timer2: null,
  5149. pasteTimer: null,
  5150. checkId: "",
  5151. isDelete: 1,
  5152. addindex: 0,
  5153. selectSteps: 1,
  5154. groupJson: {},
  5155. dialogVisibleGroup: false,
  5156. rightBoxHeight: 0,
  5157. ManAarray: [],
  5158. checkBoolean: false,
  5159. inviteCode: [],
  5160. inviteId: "",
  5161. icode: "",
  5162. easyArray: [2, 4],
  5163. sourceData: {},
  5164. updateSourcePan: false,
  5165. videoJson: {},
  5166. isBtnDisplay: false,
  5167. isPasteTask: false,
  5168. isPasteChoice: false,
  5169. sysPicVisible2: false,
  5170. imageloading: false,
  5171. searchImageValue: "",
  5172. ppage: 1,
  5173. imageList: [],
  5174. heightPx: '100%',
  5175. toolsData: toolsData,
  5176. oldIndex: 0,
  5177. oldData: null,
  5178. newIndex: "",
  5179. englishList:{},
  5180. typeIndex: "",
  5181. };
  5182. },
  5183. directives: {
  5184. autoHeight: {
  5185. update(el, binding) {
  5186. const { value } = binding
  5187. if (value && typeof value === 'number') {
  5188. el.style.height = `${value}px`
  5189. } else {
  5190. el.style.height = 'auto'
  5191. }
  5192. },
  5193. componentUpdated(el) {
  5194. el.style.height = `${el.scrollHeight + 5}px`
  5195. },
  5196. },
  5197. },
  5198. computed: {
  5199. // rightBoxHeight: function () {
  5200. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5201. // },
  5202. offsetLetfPx: function () {
  5203. //addnum可以直接在模板语法里面用,相当于data内的值
  5204. return (
  5205. $(".cru_select")[this.unitIndex] &&
  5206. $(".cru_select")[this.unitIndex].offsetLeft
  5207. );
  5208. },
  5209. getMan2() {
  5210. return function (people) {
  5211. let _people = people;
  5212. let _people2 = "";
  5213. if (this.ManAarray.length) {
  5214. for (var i = 0; i < this.ManAarray.length; i++) {
  5215. if (this.ManAarray[i].userid == people) {
  5216. _people2 = this.ManAarray[i].name;
  5217. break;
  5218. }
  5219. }
  5220. }
  5221. if (people == this.courseUserid) {
  5222. return "";
  5223. }
  5224. return this.ManAarray.length ? _people2 : "";
  5225. };
  5226. },
  5227. isInvite() {
  5228. return function (cid) {
  5229. let array = [];
  5230. for (var i = 0; i < this.inviteCode.length; i++) {
  5231. array.push(this.inviteCode[i].cid);
  5232. }
  5233. return array.indexOf(cid) != -1;
  5234. };
  5235. },
  5236. getInviteCodeC() {
  5237. return function (cid) {
  5238. let array = [];
  5239. for (var i = 0; i < this.inviteCode.length; i++) {
  5240. array.push(this.inviteCode[i].cid);
  5241. }
  5242. return this.inviteCode[array.indexOf(cid)].ic;
  5243. };
  5244. },
  5245. getClassC() {
  5246. return function (c) {
  5247. let _c2 = "";
  5248. if (this.grade.length) {
  5249. for (var i = 0; i < this.grade.length; i++) {
  5250. if (this.grade[i].id == c) {
  5251. _c2 = this.grade[i].name;
  5252. break;
  5253. }
  5254. }
  5255. }
  5256. return this.grade.length ? _c2 : "";
  5257. };
  5258. },
  5259. getListClassC() {
  5260. return function (list) {
  5261. let _c2 = [];
  5262. if (this.grade.length) {
  5263. for (var j = 0; j < list.length; j++) {
  5264. let c = list[j]
  5265. for (var i = 0; i < this.grade.length; i++) {
  5266. if (this.grade[i].id == c) {
  5267. _c2.push(this.grade[i].name);
  5268. break;
  5269. }
  5270. }
  5271. }
  5272. }
  5273. return this.grade.length ? _c2.join('、') : "";
  5274. };
  5275. },
  5276. },
  5277. watch: {
  5278. unitIndex(newValue, oldValue) {
  5279. if (this.isDelete == 2) {
  5280. this.isDelete = 1;
  5281. return;
  5282. }
  5283. if (this.cid != "") {
  5284. let _unitIndex = oldValue;
  5285. if (
  5286. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5287. JSON.stringify(this.unitJson[_unitIndex])
  5288. ) {
  5289. this.$refs.rightboxR.scrollTop = 0;
  5290. return;
  5291. }
  5292. let cPan = 1;
  5293. for (
  5294. var j = 0;
  5295. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5296. j++
  5297. ) {
  5298. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5299. j
  5300. ].proVisible = false;
  5301. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5302. j
  5303. ].proVisible2 = false;
  5304. if (
  5305. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5306. .length > 1
  5307. ) {
  5308. for (
  5309. var z = 0;
  5310. z <
  5311. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5312. .length;
  5313. z++
  5314. ) {
  5315. if (
  5316. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5317. .toolChoose[z].tool.length
  5318. ) {
  5319. this.$message.error("请把工具添加完整");
  5320. cPan = 2;
  5321. break;
  5322. }
  5323. }
  5324. }
  5325. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5326. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5327. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5328. (ele) => {
  5329. return ele.value != "";
  5330. }
  5331. );
  5332. }
  5333. }
  5334. if (cPan == 2) {
  5335. this.unitIndex = oldValue;
  5336. return;
  5337. }
  5338. for (var i = 0; i < this.unitJson.length; i++) {
  5339. if (this.addindex != i) {
  5340. delete this.unitJson[i].isUpdate;
  5341. }
  5342. }
  5343. this.$refs.rightboxR.scrollTop = 0;
  5344. this.addindex = -1;
  5345. let params = [
  5346. {
  5347. cid: this.cid,
  5348. chapters: JSON.stringify(this.unitJson),
  5349. uid: this.userid,
  5350. unitIndex: _unitIndex,
  5351. },
  5352. ];
  5353. this.ajax
  5354. .post(this.$store.state.api + "updateWorkNew4", params)
  5355. .then((res) => {
  5356. // this.$message({
  5357. // message: "修改成功",
  5358. // type: "success",
  5359. // });
  5360. // this.courseId = this.cid;
  5361. })
  5362. .catch((err) => {
  5363. this.$message.error("网络不佳");
  5364. console.error(err);
  5365. });
  5366. }
  5367. },
  5368. steps(newValue) {
  5369. if (newValue == 4) {
  5370. this.goTo(
  5371. "/course?userid=" +
  5372. this.userid +
  5373. "&oid=" +
  5374. this.oid +
  5375. "&org=" +
  5376. this.org +
  5377. "&role=" +
  5378. this.role
  5379. );
  5380. }
  5381. },
  5382. },
  5383. methods: {
  5384. openAI() {
  5385. window.parent.postMessage({ tools: "64" }, "*");
  5386. },
  5387. setMan() {
  5388. // let teacherJuri = this.teacherJuri2;
  5389. this.ManAarray = [];
  5390. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5391. if (_user.indexOf(this.userid) == -1) {
  5392. _user.push(this.userid);
  5393. }
  5394. if (_user.indexOf(this.courseUserid) == -1) {
  5395. _user.push(this.courseUserid);
  5396. }
  5397. let params = {
  5398. uid: _user.join(","),
  5399. };
  5400. this.ajax
  5401. .get(this.$store.state.api + "getAllUserById", params)
  5402. .then((res) => {
  5403. let teacherJuri = res.data[0];
  5404. this.ManAarray = teacherJuri;
  5405. })
  5406. .catch((err) => {
  5407. console.error(err);
  5408. });
  5409. },
  5410. previewImg(url) {
  5411. this.$hevueImgPreview(url);
  5412. },
  5413. btnDisplay(bool) {
  5414. this.isBtnDisplay = bool
  5415. },
  5416. scrollChange() {
  5417. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5418. // document.querySelector('.course_left').scrollHeight
  5419. // document.querySelector('.stepsBottom2').scrollHeight
  5420. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5421. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5422. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5423. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5424. let top = $(".rightBox")[0].scrollTop - maxheight;
  5425. // if (top < client) {
  5426. // $('.stepsBottom2')[0].style.position = 'absolute'
  5427. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5428. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5429. // } else
  5430. if (top > 0) {
  5431. let top = $(".rightBox")[0].offsetTop;
  5432. $(".stepsBottom2")[0].style.position = "fixed";
  5433. $(".stepsBottom2")[0].style.top = top + "px";
  5434. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5435. // $('.stepsBottom2')[0].style.top = top + 'px'
  5436. } else {
  5437. $(".stepsBottom2")[0].style.position = "absolute";
  5438. $(".stepsBottom2")[0].style.top = "0px";
  5439. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5440. }
  5441. const clientHeight = $(".rightBox")[0].clientHeight;
  5442. const scrollTop = $(".rightBox")[0].scrollTop;
  5443. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5444. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5445. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5446. }
  5447. },
  5448. addHw(e) {
  5449. var el = e.currentTarget;
  5450. el.getElementsByTagName("input")[0].click();
  5451. },
  5452. change(val) {
  5453. if (this.dialogVisible1) {
  5454. this.tdetail = val
  5455. } else if (this.dialogVisible6) {
  5456. this.AttText.text = val
  5457. } else if (this.dialogVisible2) {
  5458. this.cTemplate = val
  5459. } else if (this.dialogVisibleTable) {
  5460. this.tableJson.text = val
  5461. }
  5462. this.$forceUpdate();
  5463. console.log(val);
  5464. },
  5465. change2(val) {
  5466. console.log(val);
  5467. this.$forceUpdate();
  5468. },
  5469. handleClose(done) {
  5470. done();
  5471. },
  5472. closePan(tool) {
  5473. if (tool == 15) {
  5474. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5475. this.dialogVisible8 = false
  5476. } else {
  5477. this.closeConfirm(tool);
  5478. }
  5479. } else if (tool == 4) {
  5480. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5481. this.dialogVisible5 = false
  5482. } else {
  5483. this.closeConfirm(tool);
  5484. }
  5485. } else if (tool == 45) {
  5486. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5487. this.dialogVisibleChoice = false
  5488. } else {
  5489. this.closeConfirm(tool);
  5490. }
  5491. } else if (tool == 41) {
  5492. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5493. this.dialogVisibleSelect = false
  5494. } else {
  5495. this.closeConfirm(tool);
  5496. }
  5497. } else if (tool == 47) {
  5498. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5499. this.dialogVisibleSentence = false
  5500. } else {
  5501. this.closeConfirm(tool);
  5502. }
  5503. }else if (tool == 69){
  5504. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5505. this.englishDialogVisible = false
  5506. } else {
  5507. this.closeConfirm(tool);
  5508. }
  5509. }
  5510. },
  5511. closeConfirm(tool) {
  5512. this
  5513. .$confirm("是否保存已编辑内容?", "提示", {
  5514. confirmButtonText: "保存",
  5515. cancelButtonText: "不保存",
  5516. type: "warning",
  5517. })
  5518. .then(() => {
  5519. if (tool == 15) {
  5520. this.addAnswer();
  5521. } else if (tool == 4) {
  5522. this.addAsk();
  5523. } else if (tool == 45) {
  5524. this.addTest();
  5525. } else if (tool == 41) {
  5526. this.addSelectAnswer();
  5527. } else if (tool == 47) {
  5528. this.addSentenceTool();
  5529. }else if(tool == 69){
  5530. this.addEnglish();
  5531. }
  5532. })
  5533. .catch(() => {
  5534. if (tool == 15) {
  5535. this.dialogVisible8 = false;
  5536. } else if (tool == 4) {
  5537. this.dialogVisible5 = false;
  5538. } else if (tool == 45) {
  5539. this.dialogVisibleChoice = false;
  5540. } else if (tool == 41) {
  5541. this.dialogVisibleSelect = false;
  5542. } else if (tool == 47) {
  5543. this.dialogVisibleSentence = false;
  5544. } else if (tool == 69) {
  5545. this.englishDialogVisible = false;
  5546. }
  5547. });
  5548. },
  5549. addEnglish(){
  5550. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5551. this.$message.error("请将内容填写完整!");
  5552. return;
  5553. }
  5554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5555. this.taskCount
  5556. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5557. this.englishList = {};
  5558. this.englishDialogVisible = false;
  5559. if (
  5560. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5561. .toolChoose[this.toolIndex].tool != 69
  5562. ) {
  5563. this.addTools(69, this.taskCount, this.toolIndex);
  5564. }
  5565. },
  5566. setEnglishList(engList){
  5567. this.englishList = engList;
  5568. },
  5569. imgChange2(i, j) {
  5570. var _tmp = this.testJson.testJson[i].checkList[j];
  5571. this.noneBtnImg = _tmp.length >= 1;
  5572. },
  5573. imgChange3(i) {
  5574. var _tmp = this.testJson.testJson[i];
  5575. this.noneBtnImg = _tmp.length >= 1;
  5576. },
  5577. imgChange1(file, fileList, type, itemTaskIndex) {
  5578. if (type == 1) {
  5579. var _tmp = this.cover;
  5580. } else if (
  5581. type == 2 ||
  5582. type == 3 ||
  5583. type == 6 ||
  5584. type == 7 ||
  5585. type == 8
  5586. ) {
  5587. var _tmp =
  5588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5589. .chapterData;
  5590. } else if (type == 4) {
  5591. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5592. } else {
  5593. var _tmp =
  5594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5595. .homeworkList;
  5596. }
  5597. this.noneBtnImg = _tmp.length >= 1;
  5598. },
  5599. goTo(path) {
  5600. this.$router.push(path);
  5601. },
  5602. guid() {
  5603. var _num,
  5604. i,
  5605. _guid = "";
  5606. for (i = 0; i < 32; i++) {
  5607. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5608. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5609. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5610. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5611. _guid += "-";
  5612. }
  5613. }
  5614. return _guid;
  5615. },
  5616. lastSteps() {
  5617. this
  5618. .$confirm("是否保存已编辑内容?", "提示", {
  5619. confirmButtonText: "保存",
  5620. cancelButtonText: "不保存",
  5621. distinguishCancelAndClose: true,
  5622. type: "warning",
  5623. })
  5624. .then(() => {
  5625. if (this.cid == "" || this.cid == undefined) {
  5626. if (this.courseName == "") {
  5627. this.$message.error("请补充填写课程名称");
  5628. return;
  5629. } else {
  5630. this.addWork();
  5631. }
  5632. } else {
  5633. if (this.courseName == "") {
  5634. this.$message.error("请补充填写课程名称");
  5635. return;
  5636. } else {
  5637. if (this.userid != this.courseUserid && this.role != "1") {
  5638. this.updateWork2();
  5639. } else {
  5640. this.updateWork();
  5641. }
  5642. }
  5643. }
  5644. })
  5645. .catch((v) => {
  5646. console.log(v)
  5647. if(v == "cancel"){
  5648. this.goTo(
  5649. "/course?userid=" +
  5650. this.userid +
  5651. "&oid=" +
  5652. this.oid +
  5653. "&org=" +
  5654. this.org +
  5655. "&role=" +
  5656. this.role
  5657. );
  5658. }
  5659. });
  5660. },
  5661. nextSteps() {
  5662. if (this.cid == "" || this.cid == undefined) {
  5663. if (this.courseName == "") {
  5664. this.$message.error("请补充填写课程名称");
  5665. return;
  5666. } else {
  5667. this.addWork();
  5668. }
  5669. } else {
  5670. if (this.courseName == "") {
  5671. this.$message.error("请补充填写课程名称");
  5672. return;
  5673. } else {
  5674. if (this.userid != this.courseUserid && this.role != "1") {
  5675. this.updateWork2();
  5676. } else {
  5677. this.updateWork();
  5678. }
  5679. }
  5680. }
  5681. this.$refs.stepBox.scrollTop = 0;
  5682. },
  5683. unitSet(i) {
  5684. this.unitIndex = i;
  5685. // this.$refs.rightboxR.scrollTop = 0;
  5686. },
  5687. time() {
  5688. if (!this.now) {
  5689. this.now = new Date().getTime();
  5690. return true;
  5691. } else {
  5692. let time = new Date().getTime();
  5693. if (time - this.now > 3000) {
  5694. this.now = time;
  5695. return true;
  5696. } else {
  5697. return false;
  5698. }
  5699. }
  5700. },
  5701. deleteUnit(i) {
  5702. var _this = this;
  5703. if (_this.time()) {
  5704. _this
  5705. .$confirm("确定删除此单元吗?", "提示", {
  5706. confirmButtonText: "确定",
  5707. cancelButtonText: "取消",
  5708. type: "warning",
  5709. })
  5710. .then(() => {
  5711. _this.isDelete = 2;
  5712. // _this.unitIndex = _this.unitIndex - 1;
  5713. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5714. // _this.$message.success("删除成功");
  5715. })
  5716. .catch(() => {
  5717. return;
  5718. });
  5719. }
  5720. },
  5721. deleteWork(chapid) {
  5722. let params = [
  5723. {
  5724. cid: this.cid,
  5725. chapters: JSON.stringify(this.unitJson),
  5726. uid: this.userid,
  5727. chapid: chapid,
  5728. },
  5729. ];
  5730. this.ajax
  5731. .post(this.$store.state.api + "deleteWork", params)
  5732. .then((res) => {
  5733. this.$message({
  5734. message: "删除成功",
  5735. type: "success",
  5736. });
  5737. this.unitJson.splice(this.unitIndex, 1);
  5738. this.unitIndex = this.unitIndex - 1;
  5739. })
  5740. .catch((err) => {
  5741. this.$message.error("网络不佳");
  5742. console.error(err);
  5743. });
  5744. },
  5745. deleteTool(itemTaskIndex, i) {
  5746. var _this = this;
  5747. if (_this.time()) {
  5748. _this
  5749. .$confirm("确定删除此工具吗?", "提示", {
  5750. confirmButtonText: "确定",
  5751. cancelButtonText: "取消",
  5752. type: "warning",
  5753. })
  5754. .then(() => {
  5755. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5756. itemTaskIndex
  5757. ].toolChoose.splice(i, 1);
  5758. _this.$message.success("删除成功");
  5759. })
  5760. .catch(() => {
  5761. return;
  5762. });
  5763. }
  5764. },
  5765. deleteSentence(i) {
  5766. var _this = this;
  5767. _this
  5768. .$confirm("确定删除此题目吗?", "提示", {
  5769. confirmButtonText: "确定",
  5770. cancelButtonText: "取消",
  5771. type: "warning",
  5772. })
  5773. .then(() => {
  5774. _this.sentenceList.splice(i, 1);
  5775. _this.$message.success("删除成功");
  5776. })
  5777. .catch(() => {
  5778. return;
  5779. });
  5780. },
  5781. deleteS(s, i, j) {
  5782. this.sentenceList[i].addSentence.splice(j, 1);
  5783. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5784. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5785. this.sentenceList[i].rightAnswer.splice(a, 1);
  5786. }
  5787. },
  5788. openT() {
  5789. window.parent.postMessage({ tools: "25" }, "*");
  5790. },
  5791. deleteTask(i) {
  5792. var _this = this;
  5793. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5794. _this
  5795. .$confirm("确定删除此任务吗?", "提示", {
  5796. confirmButtonText: "确定",
  5797. cancelButtonText: "取消",
  5798. type: "warning",
  5799. })
  5800. .then(() => {
  5801. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5802. _this.$message.success("删除成功");
  5803. // this.$nextTick(() => {
  5804. // $('.stepsBottom2')[0].style.transition = 'unset'
  5805. // setTimeout(() => {
  5806. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5807. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5808. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5809. // if (top > client) {
  5810. // $('.stepsBottom2')[0].style.top = client + 'px'
  5811. // }
  5812. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5813. // this.$forceUpdate()
  5814. // }, 500)
  5815. // })
  5816. })
  5817. .catch(() => {
  5818. return;
  5819. });
  5820. },
  5821. handlePictureCardPreview(file) {
  5822. this.dialogImageUrl = file.url;
  5823. },
  5824. clean(i, c) {
  5825. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5826. },
  5827. handle_remove1(file, fileList, type) {
  5828. var _tmp = this.cover;
  5829. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5830. // if (_tmp[i].uid == file.uid) {
  5831. // _tmp.splice(i, 1);
  5832. // break;
  5833. // }
  5834. // this.cover = _tmp;
  5835. // }
  5836. this.cover = [];
  5837. this.noneBtnImg = this.cover.length >= 1;
  5838. this.isSysPic = false;
  5839. this.isSysPic2 = false;
  5840. this.$forceUpdate();
  5841. },
  5842. addImg(e) {
  5843. var el = e.currentTarget;
  5844. el.getElementsByTagName("input")[0].click();
  5845. e.target.value = "";
  5846. },
  5847. addChaptersTools(i) {
  5848. this.chapTools = [
  5849. {
  5850. tools: [],
  5851. toolDetail: "",
  5852. },
  5853. ];
  5854. this.chapCount = i;
  5855. this.dialogVisible4 = true;
  5856. },
  5857. isNoFinsh() {
  5858. this.$message.warning("功能正在开发中");
  5859. },
  5860. addAttText(i) {
  5861. this.AttText = {
  5862. title: "",
  5863. text: "",
  5864. };
  5865. this.taskCount = i;
  5866. this.AttTextType = 0;
  5867. this.$forceUpdate();
  5868. this.dialogVisible6 = true;
  5869. setTimeout(() => {
  5870. this.$refs['fuInput'].focus();
  5871. }, 100);
  5872. },
  5873. openLine(i) {
  5874. this.line = "";
  5875. this.lineCount = i;
  5876. this.lineType = 0;
  5877. this.$forceUpdate();
  5878. this.dialogVisible7 = true;
  5879. },
  5880. pasteLine(i) {
  5881. navigator.clipboard
  5882. .readText()
  5883. .then((v) => {
  5884. console.log("获取剪贴板成功:", v);
  5885. const html = v;
  5886. const regex = /src="(.*?)"/g;
  5887. const match = regex.exec(html);
  5888. if (match && match[1]) {
  5889. console.log(match[1]);
  5890. this.$message.success("粘贴成功");
  5891. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5892. i
  5893. ].chapterData.push({
  5894. name: "链接",
  5895. title: "嵌入代码",
  5896. url: match[1],
  5897. type: 8,
  5898. });
  5899. } else {
  5900. // console.log("未找到包含 src 属性的 iframe");
  5901. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5902. }
  5903. })
  5904. .catch((v) => {
  5905. console.log("获取剪贴板失败: ", v);
  5906. });
  5907. },
  5908. openSource(i) {
  5909. this.lineCount = i;
  5910. this.sourceData = {};
  5911. this.dialogVisibleSource = true;
  5912. this.updateSourcePan = false;
  5913. },
  5914. addSource() {
  5915. if (!Object.keys(this.sourceData).length) {
  5916. this.$message.error("请选择要上传的资源");
  5917. return;
  5918. }
  5919. let keys = Object.keys(this.sourceData);
  5920. for (var i = 0; i < keys.length; i++) {
  5921. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5922. this.lineCount
  5923. ].chapterData.push({
  5924. name: "链接",
  5925. title: this.sourceData[keys[i]].name,
  5926. url: this.sourceData[keys[i]].url,
  5927. type: 14,
  5928. id: keys[i]
  5929. });
  5930. }
  5931. this.$forceUpdate();
  5932. this.dialogVisibleSource = false;
  5933. },
  5934. updateSource() {
  5935. if (!Object.keys(this.sourceData).length) {
  5936. this.$message.error("请选择要上传的资源");
  5937. return;
  5938. }
  5939. let keys = Object.keys(this.sourceData);
  5940. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5941. this.taskCount
  5942. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5943. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5944. this.taskCount
  5945. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5946. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5947. this.taskCount
  5948. ].chapterData[this.lineCount].id = keys[0];
  5949. this.updateSourcePan = false;
  5950. this.$forceUpdate();
  5951. this.dialogVisibleSource = false;
  5952. },
  5953. deleteM(i, j) {
  5954. this.testJson.testJson[i].timuList.splice(j, 1);
  5955. },
  5956. beforeUploadTiMu(event, i) {
  5957. const loading = this.openLoading();
  5958. var file = event.target.files[0];
  5959. var credentials = {
  5960. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5961. secretAccessKey: "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",
  5962. }; //秘钥形式的登录上传
  5963. window.AWS.config.update(credentials);
  5964. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5965. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5966. var _this = this;
  5967. if (file) {
  5968. var params = {
  5969. Key:
  5970. file.name.split(".")[0] +
  5971. new Date().getTime() +
  5972. "." +
  5973. file.name.split(".")[file.name.split(".").length - 1],
  5974. ContentType: file.type,
  5975. Body: file,
  5976. "Access-Control-Allow-Credentials": "*",
  5977. ACL: "public-read",
  5978. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5979. var options = {
  5980. partSize: 2048 * 1024 * 1024,
  5981. queueSize: 2,
  5982. leavePartsOnError: true,
  5983. };
  5984. bucket
  5985. .upload(params, options)
  5986. .on("httpUploadProgress", function (evt) {
  5987. //这里可以写进度条
  5988. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5989. })
  5990. .send(function (err, data) {
  5991. loading.close();
  5992. if (err) {
  5993. _this.$message.error("上传失败");
  5994. } else {
  5995. if (_this.testJson.testJson[i].timuList) {
  5996. _this.testJson.testJson[i].timuList.push({
  5997. src: data.Location,
  5998. });
  5999. } else {
  6000. _this.testJson.testJson[i].timuList = [];
  6001. _this.testJson.testJson[i].timuList.push({
  6002. src: data.Location,
  6003. });
  6004. }
  6005. _this.imgChange3(i);
  6006. _this.$forceUpdate();
  6007. }
  6008. });
  6009. }
  6010. },
  6011. beforeUploadTi(event, i, j) {
  6012. const loading = this.openLoading();
  6013. var file = event.target.files[0];
  6014. var credentials = {
  6015. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6016. secretAccessKey: "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",
  6017. }; //秘钥形式的登录上传
  6018. window.AWS.config.update(credentials);
  6019. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6020. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6021. var _this = this;
  6022. if (file) {
  6023. var params = {
  6024. Key:
  6025. file.name.split(".")[0] +
  6026. new Date().getTime() +
  6027. "." +
  6028. file.name.split(".")[file.name.split(".").length - 1],
  6029. ContentType: file.type,
  6030. Body: file,
  6031. "Access-Control-Allow-Credentials": "*",
  6032. ACL: "public-read",
  6033. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6034. var options = {
  6035. partSize: 2048 * 1024 * 1024,
  6036. queueSize: 2,
  6037. leavePartsOnError: true,
  6038. };
  6039. bucket
  6040. .upload(params, options)
  6041. .on("httpUploadProgress", function (evt) {
  6042. //这里可以写进度条
  6043. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6044. })
  6045. .send(function (err, data) {
  6046. loading.close();
  6047. if (err) {
  6048. _this.$message.error("上传失败");
  6049. } else {
  6050. _this.testJson.testJson[i].checkList[j] = {};
  6051. _this.testJson.testJson[i].checkList[j].src = data.Location;
  6052. _this.testJson.testJson[i].checkList[j].imgType = 1;
  6053. _this.imgChange2(i, j);
  6054. _this.$forceUpdate();
  6055. }
  6056. });
  6057. }
  6058. },
  6059. beforeUpload1(event, type) {
  6060. // const loading = this.openLoading();
  6061. var file = event.target.files[0];
  6062. var credentials = {
  6063. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6064. secretAccessKey: "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",
  6065. }; //秘钥形式的登录上传
  6066. window.AWS.config.update(credentials);
  6067. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6068. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6069. var _this = this;
  6070. if (file) {
  6071. var params = {
  6072. Key:
  6073. file.name.split(".")[0] +
  6074. new Date().getTime() +
  6075. "." +
  6076. file.name.split(".")[file.name.split(".").length - 1],
  6077. ContentType: file.type,
  6078. Body: file,
  6079. "Access-Control-Allow-Credentials": "*",
  6080. ACL: "public-read",
  6081. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6082. var options = {
  6083. partSize: 2048 * 1024 * 1024,
  6084. queueSize: 2,
  6085. leavePartsOnError: true,
  6086. };
  6087. bucket
  6088. .upload(params, options)
  6089. .on("httpUploadProgress", function (evt) {
  6090. //这里可以写进度条
  6091. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6092. })
  6093. .send(function (err, data) {
  6094. // loading.close();
  6095. if (err) {
  6096. // var a = _this.$refs.upload1.uploadFiles;
  6097. // a.splice(a.length - 1, a.length);
  6098. _this.$message.error("上传失败");
  6099. } else {
  6100. _this.cover.push({
  6101. name: file.name,
  6102. url: data.Location,
  6103. uid: file.uid,
  6104. });
  6105. _this.imgChange1(null, null, 1, null);
  6106. _this.choosePicVisible = false;
  6107. console.log(data.Location);
  6108. }
  6109. });
  6110. }
  6111. },
  6112. beforeUploadSelect(event, type) {
  6113. // const loading = this.openLoading();
  6114. var file = event.target.files[0];
  6115. var credentials = {
  6116. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6117. secretAccessKey: "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",
  6118. }; //秘钥形式的登录上传
  6119. window.AWS.config.update(credentials);
  6120. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6121. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6122. var _this = this;
  6123. if (file) {
  6124. var params = {
  6125. Key:
  6126. file.name.split(".")[0] +
  6127. new Date().getTime() +
  6128. "." +
  6129. file.name.split(".")[file.name.split(".").length - 1],
  6130. ContentType: file.type,
  6131. Body: file,
  6132. "Access-Control-Allow-Credentials": "*",
  6133. ACL: "public-read",
  6134. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6135. var options = {
  6136. partSize: 2048 * 1024 * 1024,
  6137. queueSize: 2,
  6138. leavePartsOnError: true,
  6139. };
  6140. bucket
  6141. .upload(params, options)
  6142. .on("httpUploadProgress", function (evt) {
  6143. //这里可以写进度条
  6144. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6145. })
  6146. .send(function (err, data) {
  6147. // loading.close();
  6148. if (err) {
  6149. _this.$message.error("上传失败");
  6150. } else {
  6151. _this.selectJson.url = data.Location;
  6152. console.log(data.Location);
  6153. }
  6154. });
  6155. }
  6156. },
  6157. chooseSysPic(p) {
  6158. this.cover = []
  6159. setTimeout(() => {
  6160. this.cover[0] = {
  6161. name: "系统图片.png",
  6162. url: p,
  6163. };
  6164. this.imgChange1(null, null, 1, null);
  6165. this.$forceUpdate();
  6166. }, 0);
  6167. this.isSysPic = true;
  6168. this.isSysPic2 = false;
  6169. this.sysPicVisible = false;
  6170. this.$forceUpdate();
  6171. },
  6172. chooseSysPic2(p) {
  6173. this.cover = []
  6174. setTimeout(() => {
  6175. this.cover[0] = {
  6176. name: "网络图片.png",
  6177. url: p,
  6178. };
  6179. this.imgChange1(null, null, 1, null);
  6180. this.$forceUpdate();
  6181. }, 0);
  6182. this.isSysPic2 = true;
  6183. this.isSysPic = false;
  6184. this.sysPicVisible2 = false;
  6185. this.$forceUpdate();
  6186. },
  6187. beforeUpload(data) {
  6188. this.$refs.upload1.uploadFiles;
  6189. this.uploadLoading1 = true;
  6190. var file = data.file;
  6191. var credentials = {
  6192. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6193. secretAccessKey: "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",
  6194. }; //秘钥形式的登录上传
  6195. window.AWS.config.update(credentials);
  6196. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6197. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6198. var _this = this;
  6199. if (file) {
  6200. var params = {
  6201. Key:
  6202. file.name.split(".")[0] +
  6203. new Date().getTime() +
  6204. "." +
  6205. file.name.split(".")[file.name.split(".").length - 1],
  6206. ContentType: file.type,
  6207. Body: file,
  6208. "Access-Control-Allow-Credentials": "*",
  6209. ACL: "public-read",
  6210. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6211. var options = {
  6212. partSize: 2048 * 1024 * 1024,
  6213. queueSize: 2,
  6214. leavePartsOnError: true,
  6215. };
  6216. bucket
  6217. .upload(params, options)
  6218. .on("httpUploadProgress", function (evt) {
  6219. //这里可以写进度条
  6220. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6221. })
  6222. .send(function (err, data) {
  6223. _this.uploadLoading1 = false;
  6224. if (err) {
  6225. // var a = _this.$refs.upload1.uploadFiles;
  6226. // a.splice(a.length - 1, a.length);
  6227. _this.$message.error("上传失败");
  6228. } else {
  6229. //上传成功处理
  6230. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6231. name: file.name,
  6232. url: data.Location,
  6233. uid: file.uid,
  6234. });
  6235. _this.imgChange();
  6236. console.log(data.Location);
  6237. }
  6238. });
  6239. }
  6240. },
  6241. onExceed() {
  6242. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6243. },
  6244. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6245. // const loading = this.openLoading();
  6246. var file = event.target.files[0];
  6247. var credentials = {
  6248. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6249. secretAccessKey: "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",
  6250. }; //秘钥形式的登录上传
  6251. window.AWS.config.update(credentials);
  6252. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6253. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6254. var _this = this;
  6255. if (type == 3) {
  6256. var b = [
  6257. "DOC",
  6258. "DOCX",
  6259. "DOCM",
  6260. "DOTM",
  6261. "DOTX",
  6262. "PPTX",
  6263. "PPSX",
  6264. "PPT",
  6265. "PPS",
  6266. "PPTM",
  6267. "POTM",
  6268. "PPAM",
  6269. "POTX",
  6270. "PPSM",
  6271. ];
  6272. if (
  6273. b.indexOf(
  6274. file.name
  6275. .split(".")
  6276. [file.name.split(".").length - 1].toLocaleUpperCase()
  6277. ) != -1
  6278. ) {
  6279. if (file.size / 1024 / 1024 > 80) {
  6280. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6281. this.inputShow = true;
  6282. // var a = _this.$refs.upload1.uploadFiles;
  6283. // a.splice(a.length - 1, a.length);
  6284. // loading.close();
  6285. return;
  6286. }
  6287. } else if (
  6288. file.name
  6289. .split(".")
  6290. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6291. ) {
  6292. if (file.size / 1024 / 1024 > 80) {
  6293. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6294. this.inputShow = true;
  6295. // var a = _this.$refs.upload1.uploadFiles;
  6296. // a.splice(a.length - 1, a.length);
  6297. // loading.close();
  6298. return;
  6299. }
  6300. }
  6301. }
  6302. this.inputShow = false;
  6303. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6304. itemTaskIndex
  6305. ].progress = 0;
  6306. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6307. itemTaskIndex
  6308. ].proVisible = true;
  6309. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6310. itemTaskIndex
  6311. ].isFinishSize = 0;
  6312. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6313. itemTaskIndex
  6314. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6315. _this.$forceUpdate();
  6316. if (file) {
  6317. var params = {
  6318. Key:
  6319. file.name.split(".")[0] +
  6320. new Date().getTime() +
  6321. "." +
  6322. file.name.split(".")[file.name.split(".").length - 1],
  6323. ContentType: file.type,
  6324. Body: file,
  6325. "Access-Control-Allow-Credentials": "*",
  6326. ACL: "public-read",
  6327. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6328. var options = {
  6329. partSize: 2048 * 1024 * 1024,
  6330. queueSize: 2,
  6331. leavePartsOnError: true,
  6332. };
  6333. bucket
  6334. .upload(params, options)
  6335. .on("httpUploadProgress", function (evt) {
  6336. //这里可以写进度条
  6337. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6338. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6339. itemTaskIndex
  6340. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6341. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6342. itemTaskIndex
  6343. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6344. _this.$forceUpdate();
  6345. })
  6346. .send(function (err, data) {
  6347. // loading.close();
  6348. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6349. itemTaskIndex
  6350. ].progress = 100;
  6351. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6352. itemTaskIndex
  6353. ].isFinishSize =
  6354. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6355. itemTaskIndex
  6356. ].isAllSize;
  6357. _this.$forceUpdate();
  6358. setTimeout(() => {
  6359. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6360. itemTaskIndex
  6361. ].proVisible = false;
  6362. _this.$forceUpdate();
  6363. }, 1000);
  6364. _this.inputShow = true;
  6365. if (err) {
  6366. // var a = _this.$refs.upload1.uploadFiles;
  6367. // a.splice(a.length - 1, a.length);
  6368. _this.$message.error("上传失败");
  6369. } else {
  6370. if (type == 13) {
  6371. let _type = 2;
  6372. var imgA = [
  6373. "png",
  6374. "jpg",
  6375. "jpeg",
  6376. "bmp",
  6377. "gif",
  6378. "webp",
  6379. "psd",
  6380. "svg",
  6381. "tiff",
  6382. ];
  6383. var fileA = [
  6384. "PDF",
  6385. "DOC",
  6386. "DOCX",
  6387. "DOCM",
  6388. "DOTM",
  6389. "DOTX",
  6390. "PPTX",
  6391. "PPSX",
  6392. "PPT",
  6393. "PPS",
  6394. "PPTM",
  6395. "POTM",
  6396. "PPAM",
  6397. "POTX",
  6398. "PPSM",
  6399. "XLSX",
  6400. "XLS",
  6401. ];
  6402. var videoA = [
  6403. "AVI",
  6404. "NAVI",
  6405. "MPEG",
  6406. "ASF",
  6407. "MOV",
  6408. "WMV",
  6409. "3GP",
  6410. "RM",
  6411. "RMVB",
  6412. "FLV",
  6413. "F4V",
  6414. "H.264",
  6415. "H.265",
  6416. "REAL VIDEO",
  6417. "MKV",
  6418. "WebM",
  6419. "HDDVD",
  6420. "MP4",
  6421. "MPG",
  6422. "M4V",
  6423. "MGV",
  6424. "OGV",
  6425. "QTM",
  6426. "STR",
  6427. "AMC",
  6428. "DVX",
  6429. "EVO",
  6430. "DAT",
  6431. "OGG",
  6432. "OGM",
  6433. ];
  6434. if (
  6435. fileA.indexOf(
  6436. data.Location.split(".")[
  6437. data.Location.split(".").length - 1
  6438. ].toLocaleUpperCase()
  6439. ) != -1
  6440. ) {
  6441. _type = 3;
  6442. } else if (
  6443. videoA.indexOf(
  6444. data.Location.split(".")[
  6445. data.Location.split(".").length - 1
  6446. ].toLocaleUpperCase()
  6447. ) != -1
  6448. ) {
  6449. _type = 2;
  6450. } else if (
  6451. imgA.indexOf(
  6452. data.Location.split(".")[
  6453. data.Location.split(".").length - 1
  6454. ].toLocaleLowerCase()
  6455. ) != -1
  6456. ) {
  6457. _type = 13;
  6458. } else {
  6459. _type = 12;
  6460. }
  6461. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6462. itemTaskIndex
  6463. ].chapterData.push({
  6464. name: file.name,
  6465. url: data.Location,
  6466. uid: file.uid,
  6467. type: _type,
  6468. });
  6469. _this.imgChange1(null, null, _type, itemTaskIndex);
  6470. } else if (type == 2 || type == 3 || type == 12) {
  6471. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6472. itemTaskIndex
  6473. ].chapterData.push({
  6474. name: file.name,
  6475. url: data.Location,
  6476. uid: file.uid,
  6477. type: type,
  6478. });
  6479. _this.imgChange1(null, null, type, itemTaskIndex);
  6480. } else if (type == 4) {
  6481. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6482. itemTaskIndex
  6483. ].fileList1.push({
  6484. name: file.name,
  6485. url: data.Location,
  6486. uid: file.uid,
  6487. });
  6488. _this.imgChange1(null, null, type, itemTaskIndex);
  6489. } else if (type == 5) {
  6490. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6491. itemTaskIndex
  6492. ].homeworkList.push({
  6493. name: file.name,
  6494. url: data.Location,
  6495. uid: file.uid,
  6496. });
  6497. _this.imgChange1(null, null, type, itemTaskIndex);
  6498. }
  6499. console.log(data.Location);
  6500. }
  6501. });
  6502. }
  6503. },
  6504. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6505. // const loading = this.openLoading();
  6506. var file = event.target.files[0];
  6507. var credentials = {
  6508. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6509. secretAccessKey: "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",
  6510. }; //秘钥形式的登录上传
  6511. window.AWS.config.update(credentials);
  6512. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6513. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6514. var _this = this;
  6515. if (type == 3) {
  6516. var b = [
  6517. "DOC",
  6518. "DOCX",
  6519. "DOCM",
  6520. "DOTM",
  6521. "DOTX",
  6522. "PPTX",
  6523. "PPSX",
  6524. "PPT",
  6525. "PPS",
  6526. "PPTM",
  6527. "POTM",
  6528. "PPAM",
  6529. "POTX",
  6530. "PPSM",
  6531. ];
  6532. if (
  6533. b.indexOf(
  6534. file.name
  6535. .split(".")
  6536. [file.name.split(".").length - 1].toLocaleUpperCase()
  6537. ) != -1
  6538. ) {
  6539. if (file.size / 1024 / 1024 > 80) {
  6540. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6541. this.inputShow = true;
  6542. // var a = _this.$refs.upload1.uploadFiles;
  6543. // a.splice(a.length - 1, a.length);
  6544. // loading.close();
  6545. return;
  6546. }
  6547. } else if (
  6548. file.name
  6549. .split(".")
  6550. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6551. ) {
  6552. if (file.size / 1024 / 1024 > 80) {
  6553. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6554. this.inputShow = true;
  6555. // var a = _this.$refs.upload1.uploadFiles;
  6556. // a.splice(a.length - 1, a.length);
  6557. // loading.close();
  6558. return;
  6559. }
  6560. }
  6561. }
  6562. this.inputShow = false;
  6563. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6564. itemTaskIndex
  6565. ].progress = 0;
  6566. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6567. itemTaskIndex
  6568. ].proVisible = true;
  6569. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6570. itemTaskIndex
  6571. ].isFinishSize = 0;
  6572. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6573. itemTaskIndex
  6574. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6575. _this.$forceUpdate();
  6576. if (file) {
  6577. var params = {
  6578. Key:
  6579. file.name.split(".")[0] +
  6580. new Date().getTime() +
  6581. "." +
  6582. file.name.split(".")[file.name.split(".").length - 1],
  6583. ContentType: file.type,
  6584. Body: file,
  6585. "Access-Control-Allow-Credentials": "*",
  6586. ACL: "public-read",
  6587. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6588. var options = {
  6589. partSize: 2048 * 1024 * 1024,
  6590. queueSize: 2,
  6591. leavePartsOnError: true,
  6592. };
  6593. bucket
  6594. .upload(params, options)
  6595. .on("httpUploadProgress", function (evt) {
  6596. //这里可以写进度条
  6597. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6598. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6599. itemTaskIndex
  6600. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6601. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6602. itemTaskIndex
  6603. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6604. _this.$forceUpdate();
  6605. })
  6606. .send(function (err, data) {
  6607. // loading.close();
  6608. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6609. itemTaskIndex
  6610. ].progress = 100;
  6611. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6612. itemTaskIndex
  6613. ].isFinishSize =
  6614. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6615. itemTaskIndex
  6616. ].isAllSize;
  6617. _this.$forceUpdate();
  6618. setTimeout(() => {
  6619. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6620. itemTaskIndex
  6621. ].proVisible = false;
  6622. _this.$forceUpdate();
  6623. }, 1000);
  6624. _this.inputShow = true;
  6625. if (err) {
  6626. // var a = _this.$refs.upload1.uploadFiles;
  6627. // a.splice(a.length - 1, a.length);
  6628. _this.$message.error("上传失败");
  6629. } else {
  6630. if (type == 2 || type == 3) {
  6631. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6632. itemTaskIndex
  6633. ].chapterData.push({
  6634. name: file.name,
  6635. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6636. // itemTaskIndex
  6637. // ].chapterData.length+1),
  6638. url: data.Location,
  6639. uid: file.uid,
  6640. type: type,
  6641. text: string,
  6642. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6643. // itemTaskIndex
  6644. // ].chapterData.length + 1),
  6645. });
  6646. _this.imgChange1(null, null, type, itemTaskIndex);
  6647. } else if (type == 4) {
  6648. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6649. itemTaskIndex
  6650. ].fileList1.push({
  6651. name: file.name,
  6652. url: data.Location,
  6653. uid: file.uid,
  6654. });
  6655. _this.imgChange1(null, null, type, itemTaskIndex);
  6656. } else if (type == 5) {
  6657. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6658. itemTaskIndex
  6659. ].homeworkList.push({
  6660. name: file.name,
  6661. url: data.Location,
  6662. uid: file.uid,
  6663. });
  6664. _this.imgChange1(null, null, type, itemTaskIndex);
  6665. }
  6666. console.log(data.Location);
  6667. }
  6668. });
  6669. }
  6670. },
  6671. addunit() {
  6672. this.unitJson.push({
  6673. dyName: "", //单元标题
  6674. isUpdate: 1,
  6675. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6676. chapterInfo: [
  6677. {
  6678. isread: false,
  6679. chapterid: this.guid(),
  6680. title: "",
  6681. courseName: "",
  6682. taskJson: [
  6683. {
  6684. task: "",
  6685. taskDetail: "",
  6686. chapterData: [],
  6687. toolText: "",
  6688. toolChoose: [
  6689. {
  6690. tool: [],
  6691. toolDetail: "",
  6692. toolType: 0,
  6693. askCount: 1,
  6694. askTitle: "",
  6695. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6696. },
  6697. ],
  6698. isShowTools: false,
  6699. askCount: 1,
  6700. isFold: 0,
  6701. askTitle: "",
  6702. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6703. checkJson: [{ checkCount: [], checkPerent: [] }],
  6704. homeworkList: [],
  6705. },
  6706. ],
  6707. itemCount: 1,
  6708. fileList1: [],
  6709. video: [],
  6710. testData: [],
  6711. pData: [],
  6712. templateArray: [],
  6713. },
  6714. ],
  6715. });
  6716. this.addindex = this.unitJson.length - 1;
  6717. setTimeout(() => {
  6718. this.unitIndex = this.unitJson.length - 1;
  6719. this.unitSet(this.unitIndex);
  6720. }, 0);
  6721. },
  6722. addToolFun(itemTaskIndex) {
  6723. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6724. itemTaskIndex
  6725. ].toolChoose.push({
  6726. tool: [],
  6727. toolDetail: "",
  6728. toolType: 0,
  6729. askCount: 1,
  6730. askTitle: "",
  6731. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6732. });
  6733. },
  6734. addTaskBorder() {
  6735. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6736. task: "",
  6737. taskDetail: "",
  6738. chapterData: [],
  6739. toolChoose: [
  6740. {
  6741. tool: [],
  6742. toolDetail: "",
  6743. toolType: 0,
  6744. askCount: 1,
  6745. askTitle: "",
  6746. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6747. },
  6748. ],
  6749. toolText: "",
  6750. isShowTools: false,
  6751. askCount: 1,
  6752. isFold: 0,
  6753. askTitle: "",
  6754. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6755. checkJson: [{ checkCount: [], checkPerent: [] }],
  6756. homeworkList: [],
  6757. });
  6758. },
  6759. add(e, i) {
  6760. var el = e.currentTarget;
  6761. el.getElementsByTagName("input")[0].click();
  6762. },
  6763. fold(i, e, type) {
  6764. var a = e.currentTarget.parentElement.parentElement;
  6765. var b = e.currentTarget.parentElement;
  6766. if (type == 1) {
  6767. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6768. a.className += " smallTaskBorder";
  6769. b.className += " funBlockTop";
  6770. } else {
  6771. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6772. a.className = "taskBorder";
  6773. b.className = "funBlock";
  6774. }
  6775. console.log(e);
  6776. },
  6777. fold2(i) {
  6778. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6780. } else {
  6781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6782. }
  6783. setTimeout(() => {
  6784. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6785. setTimeout(() => {
  6786. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6787. }, 0);
  6788. }, 0);
  6789. this.$forceUpdate();
  6790. },
  6791. foldC(i) {
  6792. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6793. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6794. } else {
  6795. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6796. }
  6797. this.$forceUpdate();
  6798. },
  6799. fold3(i, ti) {
  6800. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6801. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6802. } else {
  6803. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6804. }
  6805. this.$forceUpdate();
  6806. },
  6807. deleteHomeworkBox(unitIndex, index, i) {
  6808. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6809. this.taskCount
  6810. ].homeworkList.splice(i, 1);
  6811. },
  6812. getStudent() {
  6813. let params = {
  6814. oid: this.oid,
  6815. cu: "",
  6816. cn: this.searchPeople,
  6817. };
  6818. this.ajax
  6819. .get(this.$store.state.api + "selectStudentAdd", params)
  6820. .then((res) => {
  6821. this.studentJuri = res.data[0];
  6822. })
  6823. .catch((err) => {
  6824. this.isLoading = false;
  6825. console.error(err);
  6826. });
  6827. },
  6828. getTeacher() {
  6829. let params = {
  6830. oid:
  6831. this.org && this.org != "undefined" && this.org != "null"
  6832. ? this.org
  6833. : this.oid,
  6834. cu: "",
  6835. cn: this.searchTN,
  6836. };
  6837. this.ajax
  6838. .get(
  6839. this.$store.state.api +
  6840. (this.org && this.org != "undefined" && this.org != "null"
  6841. ? "selectTeacherAddOrg"
  6842. : "selectTeacherAdd"),
  6843. params
  6844. )
  6845. .then((res) => {
  6846. let teacherJuri = res.data[0];
  6847. for (var i = 0; i < teacherJuri.length; i++) {
  6848. if (teacherJuri[i].userid == this.userid) {
  6849. teacherJuri.splice(i, 1);
  6850. break;
  6851. }
  6852. }
  6853. this.teacherJuri = teacherJuri;
  6854. })
  6855. .catch((err) => {
  6856. console.error(err);
  6857. });
  6858. },
  6859. searchStudent() {
  6860. this.getStudent();
  6861. },
  6862. selectGrage() {
  6863. let params = {
  6864. oid: this.oid,
  6865. };
  6866. this.ajax
  6867. .get(this.$store.state.api + "selectGrageBySchool", params)
  6868. .then((res) => {
  6869. this.gradeList = res.data[0];
  6870. })
  6871. .catch((err) => {
  6872. this.isLoading = false;
  6873. console.error(err);
  6874. });
  6875. },
  6876. //获取班级列表
  6877. getClass() {
  6878. let params = {
  6879. oid: this.oid,
  6880. gid: this.gradeId,
  6881. cn: this.classSearch,
  6882. };
  6883. this.ajax
  6884. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6885. .then((res) => {
  6886. if (!this.grade.length) {
  6887. this.grade = res.data[0];
  6888. }
  6889. this.grade2 = res.data[0];
  6890. this.classJuri = res.data[0];
  6891. let _check = []
  6892. let _check2 = []
  6893. for (var i = 0; i < this.grade2.length; i++) {
  6894. var gid = this.grade2[i].id
  6895. _check.push(gid)
  6896. }
  6897. for (var i = 0; i < this.checkboxList2.length; i++) {
  6898. var _id = this.checkboxList2[i]
  6899. if (_check.indexOf(_id) !== -1) {
  6900. _check2.push(_id)
  6901. }
  6902. }
  6903. this.checkAll = _check2.length === _check.length;
  6904. })
  6905. .catch((err) => {
  6906. this.isLoading = false;
  6907. console.error(err);
  6908. });
  6909. },
  6910. CourseType2Change(val) {
  6911. this.pTypeCheck = [];
  6912. for (var i = 0; i < this.CourseType2.length; i++) {
  6913. let typeA = this.CourseType2[i];
  6914. if (val.indexOf(typeA.name) != -1) {
  6915. this.pTypeCheck.push(...typeA.id);
  6916. }
  6917. }
  6918. },
  6919. getChapterData(e, i, j, ic, type) {
  6920. e.stopPropagation();
  6921. this.updataC = true;
  6922. this.icc = ic;
  6923. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6924. console.log("还不能下载图片喔");
  6925. }
  6926. },
  6927. deleteChapterData(e, i, j, ic, taskI) {
  6928. e.stopPropagation();
  6929. let _this = this;
  6930. _this
  6931. .$confirm("确定删除此项?", "提示", {
  6932. confirmButtonText: "确定",
  6933. cancelButtonText: "取消",
  6934. type: "warning",
  6935. })
  6936. .then(() => {
  6937. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6938. })
  6939. .catch(() => {
  6940. return;
  6941. });
  6942. },
  6943. updataVideoT(e, i, j, ic) {
  6944. // e.stopPropagation();
  6945. // this.unitJson[i].chapterInfo[0].taskJson[j].chapterData[
  6946. // ic
  6947. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6948. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6949. ic
  6950. ].name;
  6951. this.taskCount = j;
  6952. this.lineCount = ic;
  6953. this.dialogVisibleupdataVideoT = true;
  6954. this.$forceUpdate();
  6955. },
  6956. updataVideoC() {
  6957. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6958. this.dialogVisibleupdataVideoT = false;
  6959. this.$forceUpdate();
  6960. },
  6961. upCd(e, i, j, taskCount, ic) {
  6962. e.stopPropagation();
  6963. if (ic == 0) {
  6964. return;
  6965. }
  6966. var a =
  6967. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6968. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6969. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6970. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6971. this.$forceUpdate();
  6972. },
  6973. downCd(e, i, j, taskCount, ic) {
  6974. e.stopPropagation();
  6975. if (
  6976. ic ==
  6977. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6978. 1
  6979. ) {
  6980. return;
  6981. }
  6982. var a =
  6983. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6984. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6985. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6986. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6987. this.$forceUpdate();
  6988. },
  6989. upTool(e, i, j, tooli){
  6990. e.stopPropagation();
  6991. if (tooli == 0) {
  6992. return;
  6993. }
  6994. this.$confirm(
  6995. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6996. "提示",
  6997. {
  6998. confirmButtonText: "确定",
  6999. cancelButtonText: "取消",
  7000. type: "warning",
  7001. }
  7002. )
  7003. .then(() => {
  7004. var a =
  7005. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  7006. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  7007. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  7008. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7009. this.$forceUpdate()
  7010. })
  7011. .catch(() => {
  7012. return;
  7013. });
  7014. },
  7015. downTool(e, i, j, tooli){
  7016. e.stopPropagation();
  7017. if ( tooli ==
  7018. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  7019. 1) {
  7020. return;
  7021. }
  7022. this.$confirm(
  7023. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  7024. "提示",
  7025. {
  7026. confirmButtonText: "确定",
  7027. cancelButtonText: "取消",
  7028. type: "warning",
  7029. }
  7030. )
  7031. .then(() => {
  7032. var a =
  7033. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  7034. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  7035. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  7036. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  7037. this.$forceUpdate()
  7038. })
  7039. .catch(() => {
  7040. return;
  7041. });
  7042. },
  7043. addWork() {
  7044. let cPan = 1;
  7045. for (var i = 0; i < this.unitJson.length; i++) {
  7046. for (
  7047. var j = 0;
  7048. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7049. j++
  7050. ) {
  7051. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7052. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7053. if (
  7054. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7055. ) {
  7056. for (
  7057. var z = 0;
  7058. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7059. z++
  7060. ) {
  7061. if (
  7062. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  7063. .length
  7064. ) {
  7065. this.$message.error("请把工具添加完整");
  7066. cPan = 2;
  7067. break;
  7068. }
  7069. }
  7070. }
  7071. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7072. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7073. i
  7074. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7075. return ele.value != "";
  7076. });
  7077. }
  7078. }
  7079. }
  7080. this.inputShow = true;
  7081. if (cPan == 2) {
  7082. return;
  7083. }
  7084. for (var i = 0; i < this.unitJson.length; i++) {
  7085. delete this.unitJson[i].isUpdate;
  7086. }
  7087. let params = [
  7088. {
  7089. uid: this.userid,
  7090. title: this.courseName.replace(/%/g, "%25"),
  7091. brief: this.courseText.replace(/%/g, "%25"),
  7092. cover:
  7093. this.cover.length > 0
  7094. ? JSON.stringify(this.cover)
  7095. : JSON.stringify([
  7096. {
  7097. name: "noBanner.jpg",
  7098. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7099. uid: 1656409780264,
  7100. status: "success",
  7101. },
  7102. ]),
  7103. evaId: this.evalua,
  7104. astudent:
  7105. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7106. see: this.isTeacherSee == true ? 1 : 0,
  7107. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7108. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  7109. courseType: JSON.stringify(this.courseTypeId),
  7110. ateacher:
  7111. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7112. inviteCode: JSON.stringify(this.inviteCode),
  7113. },
  7114. ];
  7115. this.ajax
  7116. .post(this.$store.state.api + "addWorkNew2E", params)
  7117. .then((res) => {
  7118. console.log(this.steps);
  7119. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  7120. this.$message({
  7121. message: "新增成功",
  7122. type: "success",
  7123. });
  7124. // }
  7125. this.number = res.data.ordernumber;
  7126. this.courseId = res.data.courseId;
  7127. this.cid = res.data.courseId;
  7128. this.courseUserid = this.userid;
  7129. this.islogin = true;
  7130. this.steps = 4;
  7131. })
  7132. .catch((err) => {
  7133. this.$message.error("网络不佳");
  7134. console.error(err);
  7135. });
  7136. },
  7137. goCourse() {
  7138. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  7139. },
  7140. updateWork2() {
  7141. let _unitIndex = this.unitIndex;
  7142. let cPan = 1;
  7143. for (
  7144. var j = 0;
  7145. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  7146. j++
  7147. ) {
  7148. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  7149. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  7150. j
  7151. ].proVisible2 = false;
  7152. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  7153. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  7154. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  7155. (ele) => {
  7156. return ele.value != "";
  7157. }
  7158. );
  7159. }
  7160. }
  7161. this.inputShow = true;
  7162. if (cPan == 2) {
  7163. return;
  7164. }
  7165. let params = [
  7166. {
  7167. cid: this.cid,
  7168. chapters: JSON.stringify(this.unitJson),
  7169. uid: this.userid,
  7170. unitIndex: _unitIndex,
  7171. },
  7172. ];
  7173. this.ajax
  7174. .post(this.$store.state.api + "updateWorkNew4", params)
  7175. .then((res) => {
  7176. this.$message({
  7177. message: "修改成功",
  7178. type: "success",
  7179. });
  7180. this.courseId = this.cid;
  7181. })
  7182. .catch((err) => {
  7183. this.$message.error("网络不佳");
  7184. console.error(err);
  7185. });
  7186. },
  7187. updateWork() {
  7188. let cPan = 1;
  7189. for (var i = 0; i < this.unitJson.length; i++) {
  7190. for (
  7191. var j = 0;
  7192. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  7193. j++
  7194. ) {
  7195. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  7196. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  7197. if (
  7198. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  7199. ) {
  7200. for (
  7201. var z = 0;
  7202. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  7203. z++
  7204. ) {
  7205. if (
  7206. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  7207. .length
  7208. ) {
  7209. this.$message.error("请把工具添加完整");
  7210. cPan = 2;
  7211. break;
  7212. }
  7213. }
  7214. }
  7215. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  7216. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  7217. i
  7218. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  7219. return ele.value != "";
  7220. });
  7221. }
  7222. }
  7223. }
  7224. this.inputShow = true;
  7225. if (cPan == 2) {
  7226. this.step--;
  7227. return;
  7228. }
  7229. for (var i = 0; i < this.unitJson.length; i++) {
  7230. delete this.unitJson[i].isUpdate;
  7231. }
  7232. let params = [
  7233. {
  7234. cid: this.cid,
  7235. title: this.courseName.replace(/%/g, "%25"),
  7236. brief: this.courseText.replace(/%/g, "%25"),
  7237. cover:
  7238. this.cover.length > 0
  7239. ? JSON.stringify(this.cover)
  7240. : JSON.stringify([
  7241. {
  7242. name: "noBanner.jpg",
  7243. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  7244. uid: 1656409780264,
  7245. status: "success",
  7246. },
  7247. ]),
  7248. evaId: this.evalua,
  7249. astudent:
  7250. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  7251. see: this.isTeacherSee == true ? 1 : 0,
  7252. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  7253. template: this.myWord != "undefined" ? this.myWord : [],
  7254. uid: this.userid,
  7255. courseType: JSON.stringify(this.courseTypeId),
  7256. ateacher:
  7257. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  7258. inviteCode: JSON.stringify(this.inviteCode),
  7259. },
  7260. ];
  7261. this.ajax
  7262. .post(this.$store.state.api + "updateWorkNew2", params)
  7263. .then((res) => {
  7264. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  7265. if (this.cidType == 1) {
  7266. this.$message({
  7267. message: "修改成功",
  7268. type: "success",
  7269. });
  7270. } else {
  7271. this.$message({
  7272. message: "新增成功",
  7273. type: "success",
  7274. });
  7275. }
  7276. // }
  7277. this.number = this.nbOrder;
  7278. this.courseId = this.cid;
  7279. this.steps = 4;
  7280. })
  7281. .catch((err) => {
  7282. this.$message.error("网络不佳");
  7283. console.error(err);
  7284. });
  7285. },
  7286. guid() {
  7287. var _num,
  7288. i,
  7289. _guid = "";
  7290. for (i = 0; i < 32; i++) {
  7291. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7292. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7293. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7294. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7295. _guid += "-";
  7296. }
  7297. }
  7298. return _guid;
  7299. },
  7300. insertWord() {
  7301. this.dialogVisible1 = true;
  7302. this.updateBoolean2 = false;
  7303. this.tTitle = "";
  7304. this.tdetail = "";
  7305. },
  7306. addWord() {
  7307. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7308. name: this.tTitle,
  7309. content: this.tdetail,
  7310. uid: this.guid(),
  7311. });
  7312. this.dialogVisible1 = false;
  7313. },
  7314. upWord() { },
  7315. selectWord(uid, i, c) {
  7316. this.dialogVisible1 = true;
  7317. this.updateBoolean2 = true;
  7318. if (
  7319. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7320. ) {
  7321. this.tTitle =
  7322. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7323. this.tdetail =
  7324. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7325. }
  7326. },
  7327. isAddPP() {
  7328. if (this.checkboxList.length > 0) {
  7329. this.$message({
  7330. message: "添加成功",
  7331. type: "success",
  7332. });
  7333. this.dialogVisible3 = false;
  7334. } else {
  7335. this.$message({
  7336. message: "请添加课程成员",
  7337. type: "error",
  7338. });
  7339. }
  7340. },
  7341. isAddClass() {
  7342. this.dialogVisibleClass = false;
  7343. },
  7344. isAddPPTeacher() {
  7345. this.dialogVisibleMember = false;
  7346. this.setMan();
  7347. },
  7348. getTemplate() {
  7349. this.ajax
  7350. .get(this.$store.state.api + "getCourseTemplateT", "")
  7351. .then((res) => {
  7352. this.templateArray = res.data[0];
  7353. this.getTemplateOid();
  7354. this.$forceUpdate();
  7355. })
  7356. .catch((err) => { });
  7357. },
  7358. getTemplateOid() {
  7359. let params = {
  7360. oid: this.oid,
  7361. };
  7362. this.ajax
  7363. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7364. .then((res) => {
  7365. if (res.data[0].length) {
  7366. this.templateArray = [...res.data[0], ...this.templateArray];
  7367. }
  7368. this.getTemplateOrg();
  7369. this.$forceUpdate();
  7370. })
  7371. .catch((err) => { });
  7372. },
  7373. getTemplateOrg() {
  7374. let params = {
  7375. oid: this.org,
  7376. };
  7377. this.ajax
  7378. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7379. .then((res) => {
  7380. if (res.data[0].length) {
  7381. this.templateArray = [...res.data[0], ...this.templateArray];
  7382. }
  7383. this.$forceUpdate();
  7384. })
  7385. .catch((err) => { });
  7386. },
  7387. clearChoose() {
  7388. this.clearArray.splice(this.templateC.id, 1);
  7389. this.dialogVisible2 = false;
  7390. },
  7391. clearAttText() {
  7392. this.AttText = {
  7393. title: "",
  7394. text: "",
  7395. };
  7396. this.dialogVisible6 = false;
  7397. },
  7398. clearLine() {
  7399. this.line = "";
  7400. this.dialogVisible7 = false;
  7401. },
  7402. checkTemplate(res) {
  7403. let _this = this;
  7404. _this
  7405. .$confirm("确定选择此模板吗?", "提示", {
  7406. confirmButtonText: "确定",
  7407. cancelButtonText: "取消",
  7408. type: "warning",
  7409. })
  7410. .then(() => {
  7411. _this.unitJson = JSON.parse(res.chapters);
  7412. _this.steps++;
  7413. setTimeout(() => {
  7414. this.checkEva(this.checkId);
  7415. }, 1000);
  7416. })
  7417. .catch(() => {
  7418. return;
  7419. });
  7420. },
  7421. checkTemplate1(w) {
  7422. this.steps++;
  7423. },
  7424. checkTemplate2() {
  7425. let _this = this;
  7426. _this
  7427. .$confirm("确定选择空模板吗?", "提示", {
  7428. confirmButtonText: "确定",
  7429. cancelButtonText: "取消",
  7430. type: "warning",
  7431. })
  7432. .then(() => {
  7433. _this.unitIndex = 0;
  7434. _this.unitJson = [
  7435. {
  7436. dyName: "", //单元标题
  7437. chapterInfo: [
  7438. {
  7439. isread: false,
  7440. chapterid: this.guid(),
  7441. title: "",
  7442. courseName: "",
  7443. taskJson: [
  7444. {
  7445. task: "",
  7446. taskDetail: "",
  7447. chapterData: [],
  7448. toolText: "",
  7449. toolChoose: [
  7450. {
  7451. tool: [],
  7452. toolDetail: "",
  7453. toolType: 0,
  7454. askCount: 1,
  7455. askTitle: "",
  7456. askJson: [
  7457. { askstitle: "", askItem: 1, checkList: [] },
  7458. ],
  7459. },
  7460. ],
  7461. isShowTools: false,
  7462. askCount: 1,
  7463. isFold: 0,
  7464. askTitle: "",
  7465. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7466. checkJson: [{ checkCount: [], checkPerent: [] }],
  7467. homeworkList: [],
  7468. },
  7469. ],
  7470. itemCount: 1,
  7471. fileList1: [],
  7472. video: [],
  7473. testData: [],
  7474. pData: [],
  7475. templateArray: [],
  7476. },
  7477. ],
  7478. },
  7479. ];
  7480. this.steps++;
  7481. this.updateWork();
  7482. })
  7483. .catch(() => {
  7484. return;
  7485. });
  7486. },
  7487. checkTemplate3() {
  7488. let _this = this;
  7489. _this
  7490. .$confirm("确定选择简易模式吗?", "提示", {
  7491. confirmButtonText: "确定",
  7492. cancelButtonText: "取消",
  7493. type: "warning",
  7494. })
  7495. .then(() => {
  7496. _this.unitIndex = 0;
  7497. _this.unitJson = [
  7498. {
  7499. dyName: "", //单元标题
  7500. easy: 1,
  7501. chapterInfo: [
  7502. {
  7503. isread: false,
  7504. chapterid: this.guid(),
  7505. title: "",
  7506. courseName: "",
  7507. taskJson: [
  7508. {
  7509. task: "",
  7510. taskDetail: "",
  7511. chapterData: [],
  7512. toolText: "",
  7513. toolChoose: [
  7514. {
  7515. tool: [],
  7516. toolDetail: "",
  7517. toolType: 0,
  7518. askCount: 1,
  7519. askTitle: "",
  7520. askJson: [
  7521. { askstitle: "", askItem: 1, checkList: [] },
  7522. ],
  7523. },
  7524. ],
  7525. isShowTools: false,
  7526. askCount: 1,
  7527. isFold: 0,
  7528. askTitle: "",
  7529. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7530. checkJson: [{ checkCount: [], checkPerent: [] }],
  7531. homeworkList: [],
  7532. },
  7533. ],
  7534. itemCount: 1,
  7535. fileList1: [],
  7536. video: [],
  7537. testData: [],
  7538. pData: [],
  7539. templateArray: [],
  7540. },
  7541. ],
  7542. },
  7543. ];
  7544. this.steps++;
  7545. this.updateWork();
  7546. })
  7547. .catch(() => {
  7548. return;
  7549. });
  7550. },
  7551. checkTemplate4() {
  7552. let _this = this;
  7553. _this
  7554. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7555. confirmButtonText: "确定",
  7556. cancelButtonText: "取消",
  7557. type: "warning",
  7558. })
  7559. .then(() => {
  7560. _this.unitIndex = 0;
  7561. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7562. this.steps++;
  7563. this.updateWork();
  7564. })
  7565. .catch(() => {
  7566. return;
  7567. });
  7568. },
  7569. wordNext() {
  7570. this.dialogVisible2 = false;
  7571. },
  7572. isAddOrUpdateAttText() {
  7573. if (this.AttTextType == 0) {
  7574. this.addAttTextMessage();
  7575. } else {
  7576. this.updateAttText();
  7577. }
  7578. },
  7579. isAddOrUpdateLine() {
  7580. if (!this.lineTitle) {
  7581. this.$message.error("请填写链接标题");
  7582. return;
  7583. }
  7584. if (this.lineType == 0) {
  7585. this.addLine();
  7586. } else {
  7587. this.updateLine();
  7588. }
  7589. },
  7590. addAttTextMessage() {
  7591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7592. this.taskCount
  7593. ].chapterData.push({
  7594. name: this.AttText.title,
  7595. url: this.AttText.text,
  7596. type: 6,
  7597. });
  7598. this.imgChange1(null, null, 6, this.taskCount);
  7599. this.dialogVisible6 = false;
  7600. },
  7601. selectAttText(itemTaskIndex, i) {
  7602. this.AttText.title =
  7603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7604. itemTaskIndex
  7605. ].chapterData[i].name;
  7606. this.AttText.text =
  7607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7608. itemTaskIndex
  7609. ].chapterData[i].url;
  7610. this.taskCount = itemTaskIndex;
  7611. this.AttTextIndex = i;
  7612. this.AttTextType = 1;
  7613. this.dialogVisible6 = true;
  7614. },
  7615. updateAttText() {
  7616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7617. this.taskCount
  7618. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7620. this.taskCount
  7621. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7622. this.dialogVisible6 = false;
  7623. },
  7624. addLine() {
  7625. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7626. this.lineCount
  7627. ].chapterData.push({
  7628. name: "链接",
  7629. title: this.lineTitle,
  7630. url: this.line,
  7631. type: 8,
  7632. });
  7633. this.imgChange1(null, null, 8, this.lineCount);
  7634. this.dialogVisible7 = false;
  7635. },
  7636. selectLine(itemTaskIndex, i) {
  7637. this.line =
  7638. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7639. itemTaskIndex
  7640. ].chapterData[i].url;
  7641. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7642. itemTaskIndex
  7643. ].chapterData[i].title
  7644. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7645. .chapterData[i].title
  7646. : "";
  7647. this.taskCount = itemTaskIndex;
  7648. this.lineCount = i;
  7649. this.lineType = 1;
  7650. this.dialogVisible7 = true;
  7651. },
  7652. openUpdateSource(itemTaskIndex, i) {
  7653. this.sourceData = {}
  7654. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7655. this.sourceData[source.id] = {}
  7656. this.sourceData[source.id].name = source.title
  7657. this.sourceData[source.id].url = source.url
  7658. this.dialogVisibleSource = true;
  7659. this.updateSourcePan = true;
  7660. this.taskCount = itemTaskIndex;
  7661. this.lineCount = i;
  7662. },
  7663. updateLine() {
  7664. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7665. this.taskCount
  7666. ].chapterData[this.lineCount].url = this.line;
  7667. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7668. this.taskCount
  7669. ].chapterData[this.lineCount].title = this.lineTitle;
  7670. this.dialogVisible7 = false;
  7671. },
  7672. addPP() {
  7673. this.dialogVisible3 = true;
  7674. },
  7675. goTo(path) {
  7676. this.$router.push(path);
  7677. },
  7678. openTools(itemTaskIndex, i, toolIndex) {
  7679. this.toolIndex = toolIndex;
  7680. this.taskCount = itemTaskIndex;
  7681. if (i == 4) {
  7682. if (toolIndex == null) {
  7683. var a =
  7684. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7685. .chapterData;
  7686. for (var i = 0; i < a.length; i++) {
  7687. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7688. this.askJson =
  7689. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7690. itemTaskIndex
  7691. ].chapterData[i].askJson;
  7692. }
  7693. }
  7694. } else {
  7695. this.askJson = JSON.parse(
  7696. JSON.stringify(
  7697. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7698. itemTaskIndex
  7699. ].toolChoose[toolIndex]
  7700. )
  7701. );
  7702. }
  7703. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7704. this.dialogVisible5 = true;
  7705. } else if (i == 45) {
  7706. if (
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7708. .toolChoose[toolIndex].testJson
  7709. ) {
  7710. this.testJson = JSON.parse(
  7711. JSON.stringify(
  7712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7713. itemTaskIndex
  7714. ].toolChoose[toolIndex].testJson
  7715. )
  7716. );
  7717. } else {
  7718. var testJson = {
  7719. testCount: 1,
  7720. testTitle: "",
  7721. testJson: [
  7722. {
  7723. teststitle: "",
  7724. testItem: 1,
  7725. checkList: [],
  7726. timuList: [],
  7727. answer: [],
  7728. type: "1",
  7729. },
  7730. ],
  7731. };
  7732. this.testJson = testJson;
  7733. }
  7734. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7735. this.dialogVisibleChoice = true;
  7736. } else if (i == 47) {
  7737. if (
  7738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7739. .toolChoose[toolIndex].sentenceList
  7740. ) {
  7741. this.sentenceList = JSON.parse(
  7742. JSON.stringify(
  7743. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7744. itemTaskIndex
  7745. ].toolChoose[toolIndex].sentenceList
  7746. )
  7747. );
  7748. } else {
  7749. var sentenceList = [
  7750. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7751. ];
  7752. this.sentenceList = sentenceList;
  7753. }
  7754. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7755. this.dialogVisibleSentence = true;
  7756. } else if (i == 48) {
  7757. if (
  7758. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7759. .toolChoose[toolIndex].tableJson
  7760. ) {
  7761. this.tableJson = JSON.parse(
  7762. JSON.stringify(
  7763. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7764. itemTaskIndex
  7765. ].toolChoose[toolIndex].tableJson
  7766. )
  7767. );
  7768. } else {
  7769. var tableJson = { text: "" };
  7770. this.tableJson = tableJson;
  7771. }
  7772. this.dialogVisibleTable = true;
  7773. } else if (i == 52) {
  7774. if (
  7775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7776. .toolChoose[toolIndex].wordJson
  7777. ) {
  7778. this.wordJson = JSON.parse(
  7779. JSON.stringify(
  7780. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7781. itemTaskIndex
  7782. ].toolChoose[toolIndex].wordJson
  7783. )
  7784. );
  7785. } else {
  7786. var wordJson = { text: "" };
  7787. this.wordJson = wordJson;
  7788. }
  7789. this.dialogVisibleWord = true;
  7790. // else if (i == 50) {
  7791. // if (
  7792. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7793. // .toolChoose[toolIndex].uploadJson
  7794. // ) {
  7795. // this.uploadJson = JSON.parse(
  7796. // JSON.stringify(
  7797. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7798. // itemTaskIndex
  7799. // ].toolChoose[toolIndex].uploadJson
  7800. // )
  7801. // );
  7802. // } else {
  7803. // var uploadJson = [];
  7804. // this.uploadJson = uploadJson;
  7805. // }
  7806. // this.dialogVisibleMoreUpload = true;
  7807. // }
  7808. } else if (i == 10) {
  7809. if (
  7810. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7811. .toolChoose[toolIndex].preTime
  7812. ) {
  7813. this.preTime = JSON.parse(
  7814. JSON.stringify(
  7815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7816. itemTaskIndex
  7817. ].toolChoose[toolIndex].preTime
  7818. )
  7819. );
  7820. } else {
  7821. var preTime = 0;
  7822. this.preTime = preTime;
  7823. }
  7824. this.dialogVisiblePreTime = true;
  7825. } else if (i == 49) {
  7826. if (
  7827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7828. .toolChoose[toolIndex].groupJson
  7829. ) {
  7830. this.groupJson = JSON.parse(
  7831. JSON.stringify(
  7832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7833. itemTaskIndex
  7834. ].toolChoose[toolIndex].groupJson
  7835. )
  7836. );
  7837. } else {
  7838. var groupJson = {
  7839. group: [{ name: "第1组" }],
  7840. number: undefined,
  7841. islock: 1,
  7842. };
  7843. this.groupJson = groupJson;
  7844. }
  7845. this.dialogVisibleGroup = true;
  7846. } else if (i == 62) {
  7847. if (
  7848. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7849. .toolChoose[toolIndex].videoJson
  7850. ) {
  7851. this.videoJson = JSON.parse(
  7852. JSON.stringify(
  7853. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7854. itemTaskIndex
  7855. ].toolChoose[toolIndex].videoJson
  7856. )
  7857. );
  7858. } else {
  7859. var videoJson = {
  7860. video: "",
  7861. setting: [],
  7862. };
  7863. this.videoJson = videoJson;
  7864. }
  7865. this.dialogVisibleVideo = true;
  7866. } else if (i == 15) {
  7867. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7868. itemTaskIndex
  7869. ].toolChoose[toolIndex].answerQ
  7870. ? JSON.parse(
  7871. JSON.stringify(
  7872. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7873. itemTaskIndex
  7874. ].toolChoose[toolIndex].answerQ
  7875. )
  7876. )
  7877. : "";
  7878. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7879. this.dialogVisible8 = true;
  7880. } else if (i == 40) {
  7881. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7882. itemTaskIndex
  7883. ].toolChoose[toolIndex].rateJson
  7884. ? JSON.parse(
  7885. JSON.stringify(
  7886. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7887. itemTaskIndex
  7888. ].toolChoose[toolIndex].rateJson
  7889. )
  7890. )
  7891. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7892. this.selectSteps = 1;
  7893. this.dialogVisibleRate = true;
  7894. } else if (i == 42) {
  7895. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7896. itemTaskIndex
  7897. ].toolChoose[toolIndex].answerQ
  7898. ? JSON.parse(
  7899. JSON.stringify(
  7900. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7901. itemTaskIndex
  7902. ].toolChoose[toolIndex].answerQ
  7903. )
  7904. )
  7905. : "";
  7906. this.dialogVisibleMp3 = true;
  7907. } else if (i == 41) {
  7908. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7909. itemTaskIndex
  7910. ].toolChoose[toolIndex].selectJson
  7911. ? JSON.parse(
  7912. JSON.stringify(
  7913. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7914. itemTaskIndex
  7915. ].toolChoose[toolIndex].selectJson
  7916. )
  7917. )
  7918. : { url: "", select: [], answer: [] };
  7919. this.selectSteps = 1;
  7920. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7921. this.dialogVisibleSelect = true;
  7922. } else if (i == 3) {
  7923. if (!this.cid) {
  7924. this.$message.error(
  7925. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7926. );
  7927. return;
  7928. }
  7929. window.parent.postMessage(
  7930. {
  7931. tools: "3y",
  7932. cid: this.cid,
  7933. stage: this.unitIndex,
  7934. task: itemTaskIndex,
  7935. tool: toolIndex,
  7936. },
  7937. "*"
  7938. );
  7939. } else if (i == 1) {
  7940. if (!this.cid) {
  7941. this.$message.error(
  7942. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7943. );
  7944. return;
  7945. }
  7946. window.parent.postMessage(
  7947. {
  7948. tools: "1y",
  7949. cid: this.cid,
  7950. stage: this.unitIndex,
  7951. task: itemTaskIndex,
  7952. tool: toolIndex,
  7953. },
  7954. "*"
  7955. );
  7956. } else if (i == 57) {
  7957. if (!this.cid) {
  7958. this.$message.error(
  7959. "任务模式添加时不能添加模板,请添加课程后再修改添加模板"
  7960. );
  7961. return;
  7962. }
  7963. window.parent.postMessage(
  7964. {
  7965. tools: "57y",
  7966. cid: this.cid,
  7967. stage: this.unitIndex,
  7968. task: itemTaskIndex,
  7969. tool: toolIndex,
  7970. },
  7971. "*"
  7972. );
  7973. }else if(i == 69){
  7974. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7975. itemTaskIndex
  7976. ].toolChoose[toolIndex].englishList
  7977. ? JSON.parse(
  7978. JSON.stringify(
  7979. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7980. itemTaskIndex
  7981. ].toolChoose[toolIndex].englishList
  7982. )
  7983. )
  7984. : { };
  7985. this.englishDialogVisible = true;
  7986. }
  7987. },
  7988. chapAddTools(i) {
  7989. if (this.chapTools[0].tools.length == 0) {
  7990. this.chapTools[0].tools.push(i);
  7991. } else {
  7992. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7993. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7994. } else {
  7995. this.chapTools[0].tools.push(i);
  7996. }
  7997. }
  7998. this.$forceUpdate();
  7999. },
  8000. addChaptersDataTools() {
  8001. if (this.chapTools[0].tools.indexOf(4) != -1) {
  8002. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8003. this.chapCount
  8004. ].chapterData.push({
  8005. name: this.chapTools[0].toolDetail,
  8006. url: this.chapTools[0].tools,
  8007. type: 7,
  8008. askJson: this.askJson,
  8009. });
  8010. } else {
  8011. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8012. this.chapCount
  8013. ].chapterData.push({
  8014. name: this.chapTools[0].toolDetail,
  8015. url: this.chapTools[0].tools,
  8016. type: 7,
  8017. });
  8018. }
  8019. this.imgChange1(null, null, 7, this.chapCount);
  8020. this.dialogVisible4 = false;
  8021. },
  8022. addTools(i, itemTaskIndex, toolIndex) {
  8023. // if (
  8024. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8025. // .toolChoose[toolIndex].tool.length == 0
  8026. // ) {
  8027. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8028. // itemTaskIndex
  8029. // ].toolChoose[toolIndex].tool.push(i);
  8030. // } else {
  8031. // if (
  8032. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8033. // itemTaskIndex
  8034. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  8035. // ) {
  8036. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8037. // itemTaskIndex
  8038. // ].toolChoose[toolIndex].tool.splice(
  8039. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8040. // itemTaskIndex
  8041. // ].toolChoose[toolIndex].tool.indexOf(i),
  8042. // 1
  8043. // );
  8044. // } else {
  8045. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8046. // itemTaskIndex
  8047. // ].toolChoose[toolIndex].tool.push(i);
  8048. // }
  8049. // console.log(
  8050. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8051. // .toolChoose[toolIndex].tool
  8052. // );
  8053. // }
  8054. if (i == 4) {
  8055. if (
  8056. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8057. .toolChoose[toolIndex].askJson.askTitle == "" ||
  8058. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8059. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  8060. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8061. .toolChoose[toolIndex].askJson[0].checkList < 2
  8062. ) {
  8063. this.openTools(itemTaskIndex, 4, toolIndex);
  8064. // this.$message({
  8065. // message: "请填写完整问卷内容",
  8066. // type: "error",
  8067. // });
  8068. return;
  8069. }
  8070. }
  8071. if (i == 45) {
  8072. if (
  8073. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8074. .toolChoose[toolIndex].testJson ||
  8075. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8076. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  8077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8078. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  8079. ) {
  8080. this.openTools(itemTaskIndex, 45, toolIndex);
  8081. // this.$message({
  8082. // message: "请填写完整问卷内容",
  8083. // type: "error",
  8084. // });
  8085. return;
  8086. }
  8087. }
  8088. if (i == 47) {
  8089. if (
  8090. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8091. .toolChoose[toolIndex].sentenceList ||
  8092. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8093. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  8094. ) {
  8095. this.openTools(itemTaskIndex, 47, toolIndex);
  8096. return;
  8097. }
  8098. }
  8099. if(i == 69){
  8100. if (
  8101. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8102. .toolChoose[toolIndex].englishList.engTitle == "" ||
  8103. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8104. .toolChoose[toolIndex].englishList.englishText == ""
  8105. ) {
  8106. this.openTools(itemTaskIndex, 69, toolIndex);
  8107. return;
  8108. }
  8109. }
  8110. // if (i == 48) {
  8111. // if (
  8112. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8113. // .toolChoose[toolIndex].tableJson
  8114. // ) {
  8115. // this.openTools(itemTaskIndex, 48, toolIndex);
  8116. // return;
  8117. // }
  8118. // }
  8119. // if (i == 50) {
  8120. // if (
  8121. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8122. // .toolChoose[toolIndex].uploadJson
  8123. // ) {
  8124. // this.openTools(itemTaskIndex, 50, toolIndex);
  8125. // return;
  8126. // }
  8127. // }
  8128. if (i == 49) {
  8129. if (
  8130. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8131. .toolChoose[toolIndex].groupJson
  8132. ) {
  8133. this.openTools(itemTaskIndex, 49, toolIndex);
  8134. return;
  8135. }
  8136. }
  8137. if (i == 62) {
  8138. if (
  8139. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8140. .toolChoose[toolIndex].videoJson
  8141. ) {
  8142. this.openTools(itemTaskIndex, 62, toolIndex);
  8143. return;
  8144. }
  8145. }
  8146. if (i == 15) {
  8147. if (
  8148. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8149. .toolChoose[toolIndex].answerQ ||
  8150. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8151. .toolChoose[toolIndex].answerQ == ""
  8152. ) {
  8153. this.openTools(itemTaskIndex, 15, toolIndex);
  8154. // this.$message({
  8155. // message: "请填写问答内容",
  8156. // type: "error",
  8157. // });
  8158. return;
  8159. }
  8160. }
  8161. if (i == 40) {
  8162. if (
  8163. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8164. .toolChoose[toolIndex].rateJson ||
  8165. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8166. .toolChoose[toolIndex].rateJson.length
  8167. ) {
  8168. this.openTools(itemTaskIndex, 40, toolIndex);
  8169. return;
  8170. }
  8171. }
  8172. if (i == 41) {
  8173. if (
  8174. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8175. .toolChoose[toolIndex].selectJson ||
  8176. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8177. .toolChoose[toolIndex].selectJson.url == "" ||
  8178. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8179. .toolChoose[toolIndex].selectJson.select.length ||
  8180. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8181. .toolChoose[toolIndex].selectJson.answer.length
  8182. ) {
  8183. this.openTools(itemTaskIndex, 41, toolIndex);
  8184. return;
  8185. }
  8186. }
  8187. if (i == 42) {
  8188. if (
  8189. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8190. .toolChoose[toolIndex].answerQ ||
  8191. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8192. .toolChoose[toolIndex].answerQ == ""
  8193. ) {
  8194. this.openTools(itemTaskIndex, 42, toolIndex);
  8195. return;
  8196. }
  8197. }
  8198. if (
  8199. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  8200. .toolChoose[toolIndex].tool.length > 0
  8201. ) {
  8202. if (
  8203. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8204. itemTaskIndex
  8205. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  8206. ) {
  8207. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8208. itemTaskIndex
  8209. ].toolChoose[toolIndex].tool.splice(
  8210. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8211. itemTaskIndex
  8212. ].toolChoose[toolIndex].tool.indexOf(i),
  8213. 1
  8214. );
  8215. } else {
  8216. // this.$message({
  8217. // message: "每个工具只能添加一个",
  8218. // type: "error",
  8219. // });
  8220. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8221. itemTaskIndex
  8222. ].toolChoose[toolIndex].tool = [];
  8223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8224. itemTaskIndex
  8225. ].toolChoose[toolIndex].tool.push(i);
  8226. }
  8227. } else {
  8228. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8229. itemTaskIndex
  8230. ].toolChoose[toolIndex].tool.push(i);
  8231. }
  8232. this.$forceUpdate();
  8233. },
  8234. addAskList(index) {
  8235. this.askJson.askJson.splice(index + 1, 0, {
  8236. askstitle: "",
  8237. askItem: 1,
  8238. checkList: [],
  8239. })
  8240. this.askJson.askCount++;
  8241. },
  8242. addTestList(index) {
  8243. this.testJson.testJson.splice(index + 1, 0, {
  8244. teststitle: "",
  8245. testItem: 1,
  8246. checkList: [],
  8247. timuList: [],
  8248. answer: [],
  8249. type: "1",
  8250. })
  8251. this.testJson.testCount++;
  8252. },
  8253. deleteAskList(index) {
  8254. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  8255. this.askJson.askJson.splice(index, 1);
  8256. this.askJson.askCount--;
  8257. } else {
  8258. let _this = this;
  8259. _this
  8260. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8261. confirmButtonText: "确定",
  8262. cancelButtonText: "取消",
  8263. type: "warning",
  8264. })
  8265. .then(() => {
  8266. _this.askJson.askJson.splice(index, 1);
  8267. _this.askJson.askCount--;
  8268. })
  8269. .catch(() => {
  8270. return;
  8271. });
  8272. }
  8273. },
  8274. deleteTestList(index) {
  8275. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  8276. this.testJson.testJson.splice(index, 1);
  8277. this.testJson.testCount--;
  8278. } else {
  8279. let _this = this;
  8280. _this
  8281. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8282. confirmButtonText: "确定",
  8283. cancelButtonText: "取消",
  8284. type: "warning",
  8285. })
  8286. .then(() => {
  8287. _this.testJson.testJson.splice(index, 1);
  8288. _this.testJson.testCount--;
  8289. })
  8290. .catch(() => {
  8291. return;
  8292. });
  8293. }
  8294. },
  8295. askMove(type, index) {
  8296. if (type == 1) {
  8297. if (index > 0) {
  8298. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8299. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8300. this.askJson.askJson[index - 1] = b;
  8301. this.askJson.askJson[index] = a;
  8302. }
  8303. } else {
  8304. if (
  8305. index < this.askJson.askJson.length - 1
  8306. ) {
  8307. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8308. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8309. this.askJson.askJson[index + 1] = b;
  8310. this.askJson.askJson[index] = a;
  8311. }
  8312. }
  8313. this.$forceUpdate();
  8314. },
  8315. checkMove(type, index, checkIndex) {
  8316. if (type == 1) {
  8317. if (checkIndex > 0) {
  8318. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8319. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8320. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8321. this.askJson.askJson[index].checkList[checkIndex] = a;
  8322. }
  8323. } else {
  8324. if (
  8325. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8326. ) {
  8327. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8328. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8329. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8330. this.askJson.askJson[index].checkList[checkIndex] = a;
  8331. }
  8332. }
  8333. this.$forceUpdate();
  8334. },
  8335. testMove(type, index) {
  8336. if (type == 1) {
  8337. if (index > 0) {
  8338. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8339. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8340. this.testJson.testJson[index - 1] = b;
  8341. this.testJson.testJson[index] = a;
  8342. }
  8343. } else {
  8344. if (
  8345. index < this.testJson.testJson.length - 1
  8346. ) {
  8347. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8348. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8349. this.testJson.testJson[index + 1] = b;
  8350. this.testJson.testJson[index] = a;
  8351. }
  8352. }
  8353. this.$forceUpdate();
  8354. },
  8355. tcheckMove(type, index, checkIndex) {
  8356. if (type == 1) {
  8357. if (checkIndex > 0) {
  8358. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8359. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8360. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8361. this.testJson.testJson[index].checkList[checkIndex] = a;
  8362. }
  8363. } else {
  8364. if (
  8365. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8366. ) {
  8367. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8368. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8369. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8370. this.testJson.testJson[index].checkList[checkIndex] = a;
  8371. }
  8372. }
  8373. this.$forceUpdate();
  8374. },
  8375. addcheckList(json, index) {
  8376. // json.checkList.length++;
  8377. json.checkList.splice(index + 1, 0, '')
  8378. json.askItem++;
  8379. this.$forceUpdate();
  8380. },
  8381. deletecheckList(json, index) {
  8382. // json.checkList.length--;
  8383. json.checkList.splice(index, 1)
  8384. json.askItem--;
  8385. this.$forceUpdate();
  8386. },
  8387. addTcheckList(json, index) {
  8388. // json.checkList.length++;
  8389. json.checkList.splice(index + 1, 0, '')
  8390. json.testItem++;
  8391. this.$forceUpdate();
  8392. },
  8393. deleteTcheckList(json, index) {
  8394. // json.checkList.length--;
  8395. json.checkList.splice(index, 1)
  8396. json.testItem--;
  8397. this.$forceUpdate();
  8398. },
  8399. checkTestType(type, json) {
  8400. json.type = type;
  8401. setTimeout(() => {
  8402. json.answer = [];
  8403. }, 100)
  8404. },
  8405. checkAskType(type, json) {
  8406. json.type = type;
  8407. // json.checkList = [];
  8408. this.$forceUpdate();
  8409. },
  8410. addSelectList(json) {
  8411. json.select.push("");
  8412. json.answer.push("");
  8413. },
  8414. deleteSelectList(json) {
  8415. // json.select.length--;
  8416. // json.answer.length--;
  8417. json.select.splice(json.select.length - 1, 1);
  8418. json.answer.splice(json.answer.length - 1, 1);
  8419. },
  8420. addAsk() {
  8421. if (this.askJson.askTitle === "") {
  8422. this.$message.error("标题不能为空!");
  8423. return;
  8424. }
  8425. var aj = this.askJson.askJson;
  8426. var b = 1;
  8427. for (var i = 0; i < aj.length; i++) {
  8428. if (aj[i].askstitle === "") {
  8429. var a = 1;
  8430. for (let index = 0; index < aj[i].askItem; index++) {
  8431. const element = aj[i].checkList[index]
  8432. ? aj[i].checkList[index]
  8433. : "";
  8434. if (element != "") {
  8435. b++;
  8436. this.$message.error(`请将题目${i + 1}填写完整。`);
  8437. return;
  8438. } else {
  8439. a++;
  8440. }
  8441. }
  8442. if (b == 1) {
  8443. this.$message.error("至少填写一个问题");
  8444. return;
  8445. }
  8446. } else if (aj[i].askstitle != "") {
  8447. for (let index = 0; index < aj[i].askItem; index++) {
  8448. const element = aj[i].checkList[index]
  8449. ? aj[i].checkList[index]
  8450. : "";
  8451. var index = 0;
  8452. for (var z = 0; z < aj[i].checkList.length; z++) {
  8453. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8454. if (checkC != "") {
  8455. index++;
  8456. } else {
  8457. this.$message.error(`题目${i + 1}选项不能为空!`);
  8458. return;
  8459. }
  8460. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8461. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8462. if (checkC == checkC2) {
  8463. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8464. return;
  8465. }
  8466. }
  8467. }
  8468. b++;
  8469. if (index < 2) {
  8470. this.$message.error("每道题目至少需要设置2个选项。");
  8471. return;
  8472. }
  8473. }
  8474. }
  8475. }
  8476. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8477. var elc = el.checkList.filter((element) => {
  8478. return element != "";
  8479. });
  8480. return el.askstitle != "" && elc.length != 0;
  8481. });
  8482. if (!this.dialogVisible4) {
  8483. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8484. this.taskCount
  8485. ].toolChoose[this.toolIndex] = this.askJson;
  8486. }
  8487. this.dialogVisible5 = false;
  8488. if (
  8489. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8490. .toolChoose[this.toolIndex].tool != 4
  8491. ) {
  8492. this.addTools(4, this.taskCount, this.toolIndex);
  8493. }
  8494. },
  8495. addTest() {
  8496. // if (this.testJson.testTitle === "") {
  8497. // this.$message.error("标题不能为空!");
  8498. // return;
  8499. // }
  8500. var aj = this.testJson.testJson;
  8501. var b = 1;
  8502. for (var i = 0; i < aj.length; i++) {
  8503. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8504. var a = 1;
  8505. for (let index = 0; index < aj[i].testItem; index++) {
  8506. const element = aj[i].checkList[index]
  8507. ? aj[i].checkList[index]
  8508. : "";
  8509. if (element != "") {
  8510. b++;
  8511. this.$message.error(`请将题目${i + 1}填写完整。`);
  8512. return;
  8513. } else {
  8514. a++;
  8515. }
  8516. }
  8517. if (b == 1) {
  8518. this.$message.error("至少填写一个问题");
  8519. return;
  8520. }
  8521. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8522. for (let index = 0; index < aj[i].testItem; index++) {
  8523. const element = aj[i].checkList[index]
  8524. ? aj[i].checkList[index]
  8525. : "";
  8526. var index = 0;
  8527. for (var z = 0; z < aj[i].checkList.length; z++) {
  8528. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8529. if (checkC != "") {
  8530. index++;
  8531. } else {
  8532. this.$message.error(`题目${i + 1}选项不能为空!`);
  8533. return;
  8534. }
  8535. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8536. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8537. if (checkC == checkC2) {
  8538. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8539. return;
  8540. }
  8541. }
  8542. }
  8543. b++;
  8544. if (index < 2) {
  8545. this.$message.error("每道题目至少需要设置2个选项。");
  8546. return;
  8547. }
  8548. if (
  8549. (aj[i].type == "2" && !aj[i].answer.length) ||
  8550. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8551. ) {
  8552. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8553. return;
  8554. }
  8555. }
  8556. }
  8557. }
  8558. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8559. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8560. var elc = el.checkList.filter((element) => {
  8561. return element != "";
  8562. });
  8563. return (
  8564. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8565. );
  8566. });
  8567. isTestJson.testCount = isTestJson.testJson.length;
  8568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8569. this.taskCount
  8570. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8571. this.dialogVisibleChoice = false;
  8572. if (
  8573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8574. .toolChoose[this.toolIndex].tool != 45
  8575. ) {
  8576. this.addTools(45, this.taskCount, this.toolIndex);
  8577. }
  8578. },
  8579. addVideoJson(videoJson) {
  8580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8581. this.taskCount
  8582. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8583. this.dialogVisibleVideo = false;
  8584. if (
  8585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8586. .toolChoose[this.toolIndex].tool != 62
  8587. ) {
  8588. this.addTools(62, this.taskCount, this.toolIndex);
  8589. }
  8590. },
  8591. //自动获取剪贴板
  8592. pasteOption() {
  8593. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8594. if (!iframe) {
  8595. this.$message.error("请使用AI共创生成题目");
  8596. return;
  8597. }
  8598. let copyData = iframe.contentWindow.copyData;
  8599. if (!copyData || !copyData.selectData.length) {
  8600. this.$message.error("请使用AI共创生成题目");
  8601. return;
  8602. }
  8603. let selectData = copyData.selectData;
  8604. for (var i = 0; i < selectData.length; i++) {
  8605. let answer = 0;
  8606. switch (selectData[i].answer[0]) {
  8607. case "A":
  8608. answer = 0;
  8609. break;
  8610. case "B":
  8611. answer = 1;
  8612. break;
  8613. case "C":
  8614. answer = 2;
  8615. break;
  8616. case "D":
  8617. answer = 3;
  8618. break;
  8619. case "E":
  8620. answer = 4;
  8621. break;
  8622. default:
  8623. break;
  8624. }
  8625. this.testJson.testJson.push({
  8626. teststitle: selectData[i].subject,
  8627. testItem: selectData[i].options.length,
  8628. checkList: selectData[i].options,
  8629. timuList: [],
  8630. answer: answer,
  8631. type: "1",
  8632. });
  8633. this.testJson.testCount++;
  8634. }
  8635. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8636. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8637. var elc = el.checkList.filter((element) => {
  8638. return element != "";
  8639. });
  8640. return (
  8641. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8642. );
  8643. });
  8644. isTestJson.testCount = isTestJson.testJson.length;
  8645. this.testJson = isTestJson;
  8646. this.$forceUpdate();
  8647. },
  8648. pasteTask() {
  8649. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8650. if (!iframe) {
  8651. this.$message.error("请使用AI共创生成");
  8652. return;
  8653. }
  8654. let copyData = iframe.contentWindow.copyData;
  8655. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8656. this.$message.error("请使用AI共创生成");
  8657. return;
  8658. }
  8659. let stageTasksData = copyData.tasksData;
  8660. let taskA = [];
  8661. let tasks = stageTasksData;
  8662. for (var j = 0; j < tasks.length; j++) {
  8663. taskA.push({
  8664. task: tasks[j].taskName,
  8665. taskDetail: tasks[j].taskDecs,
  8666. chapterData: [],
  8667. toolText: "",
  8668. toolChoose: [
  8669. {
  8670. tool: [],
  8671. toolDetail: "",
  8672. toolType: 0,
  8673. askCount: 1,
  8674. askTitle: "",
  8675. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8676. },
  8677. ],
  8678. isShowTools: false,
  8679. askCount: 1,
  8680. isFold: 0,
  8681. askTitle: "",
  8682. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8683. checkJson: [{ checkCount: [], checkPerent: [] }],
  8684. homeworkList: [],
  8685. });
  8686. }
  8687. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8688. this.$forceUpdate();
  8689. },
  8690. pasteStage() {
  8691. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8692. if (!iframe) {
  8693. this.$message.error("请使用AI共创生成");
  8694. return;
  8695. }
  8696. let copyData = iframe.contentWindow.copyData;
  8697. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8698. this.$message.error("请使用AI共创生成");
  8699. return;
  8700. }
  8701. let stageData = copyData.stageData;
  8702. let stage = [];
  8703. for (var i = 0; i < stageData.length; i++) {
  8704. stage.push({
  8705. dyName: stageData[i], //单元标题
  8706. chapterInfo: [
  8707. {
  8708. isread: false,
  8709. chapterid: this.guid(),
  8710. title: "",
  8711. courseName: "",
  8712. taskJson: [
  8713. {
  8714. task: "",
  8715. taskDetail: "",
  8716. chapterData: [],
  8717. toolText: "",
  8718. toolChoose: [
  8719. {
  8720. tool: [],
  8721. toolDetail: "",
  8722. toolType: 0,
  8723. askCount: 1,
  8724. askTitle: "",
  8725. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8726. },
  8727. ],
  8728. isShowTools: false,
  8729. askCount: 1,
  8730. isFold: 0,
  8731. askTitle: "",
  8732. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8733. checkJson: [{ checkCount: [], checkPerent: [] }],
  8734. homeworkList: [],
  8735. },
  8736. ],
  8737. itemCount: 1,
  8738. fileList1: [],
  8739. video: [],
  8740. testData: [],
  8741. pData: [],
  8742. templateArray: [],
  8743. },
  8744. ],
  8745. });
  8746. }
  8747. let _this = this;
  8748. _this
  8749. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8750. confirmButtonText: "确定",
  8751. cancelButtonText: "取消",
  8752. type: "warning",
  8753. })
  8754. .then(() => {
  8755. _this.unitIndex = 0;
  8756. _this.unitJson = stage;
  8757. _this.steps++;
  8758. _this.updateWork();
  8759. })
  8760. .catch(() => {
  8761. return;
  8762. });
  8763. },
  8764. addAnswer() {
  8765. if (this.answerQ == "") {
  8766. this.$message.error("请输入您想要问的问题");
  8767. return;
  8768. }
  8769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8770. this.taskCount
  8771. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8772. this.dialogVisible8 = false;
  8773. if (
  8774. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8775. .toolChoose[this.toolIndex].tool != 15
  8776. ) {
  8777. this.addTools(15, this.taskCount, this.toolIndex);
  8778. }
  8779. },
  8780. addMp3Answer() {
  8781. if (this.answerQ == "") {
  8782. this.$message.error("请输入您想要回答的问题");
  8783. return;
  8784. }
  8785. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8786. this.taskCount
  8787. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8788. this.dialogVisibleMp3 = false;
  8789. },
  8790. addRateAnswer() {
  8791. var a = 1;
  8792. for (var i = 0; i < this.rateJson.length; i++) {
  8793. if (this.rateJson[i].value == "") {
  8794. a = 2;
  8795. break;
  8796. }
  8797. }
  8798. if (a == 2) {
  8799. this.$message.error("请把评价信息填写完整");
  8800. return;
  8801. }
  8802. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8803. this.taskCount
  8804. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8805. this.dialogVisibleRate = false;
  8806. if (
  8807. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8808. .toolChoose[this.toolIndex].tool != 40
  8809. ) {
  8810. this.addTools(40, this.taskCount, this.toolIndex);
  8811. }
  8812. },
  8813. addSelectAnswer() {
  8814. if (this.selectJson.url == "") {
  8815. this.$message.error("请上传题目");
  8816. return;
  8817. }
  8818. if (!this.selectJson.select.length) {
  8819. this.$message.error("请添加选项");
  8820. return;
  8821. }
  8822. if (!this.selectJson.answer.length) {
  8823. this.$message.error("请设置答案");
  8824. return;
  8825. }
  8826. var a = 1;
  8827. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8828. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8829. a = 2;
  8830. }
  8831. }
  8832. if (a == 2) {
  8833. this.$message.error("请设置答案");
  8834. return;
  8835. }
  8836. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8837. this.taskCount
  8838. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8839. this.dialogVisibleSelect = false;
  8840. if (
  8841. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8842. .toolChoose[this.toolIndex].tool != 41
  8843. ) {
  8844. this.addTools(41, this.taskCount, this.toolIndex);
  8845. }
  8846. },
  8847. nextSelectSteps() {
  8848. if (this.selectJson.url == "") {
  8849. this.$message.error("请上传题目");
  8850. return;
  8851. }
  8852. if (!this.selectJson.select.length) {
  8853. this.$message.error("请添加选项");
  8854. return;
  8855. } else {
  8856. for (var z = 0; z < this.selectJson.select.length; z++) {
  8857. let checkC = this.selectJson.select[z];
  8858. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8859. let checkC2 = this.selectJson.select[z2];
  8860. if (checkC == checkC2) {
  8861. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8862. return;
  8863. }
  8864. }
  8865. }
  8866. }
  8867. var a = 1;
  8868. for (var i = 0; i < this.selectJson.select.length; i++) {
  8869. if (!this.selectJson.select[i]) {
  8870. a = 2;
  8871. }
  8872. }
  8873. if (a == 2) {
  8874. this.$message.error("添加的选项不能为空");
  8875. return;
  8876. }
  8877. this.selectSteps++;
  8878. },
  8879. selectCourseDetail() {
  8880. if (this.cid == "" || this.cid == undefined) {
  8881. console.log("这是新增课程");
  8882. this.selectAllType();
  8883. } else {
  8884. this.cidType = 1;
  8885. let params = {
  8886. cid: this.cid,
  8887. };
  8888. this.ajax
  8889. .get(this.$store.state.api + "select_course_detail", params)
  8890. .then((res) => {
  8891. this.loading = true;
  8892. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8893. for (var j = 0; j < this.unitJson.length; j++) {
  8894. for (
  8895. var k = 0;
  8896. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8897. k++
  8898. ) {
  8899. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8900. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8901. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8902. : [];
  8903. let _chapterData = [];
  8904. for (
  8905. var c = 0;
  8906. c <
  8907. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8908. .length;
  8909. c++
  8910. ) {
  8911. if (
  8912. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8913. ) {
  8914. _chapterData.push(
  8915. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8916. );
  8917. }
  8918. }
  8919. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8920. _chapterData;
  8921. }
  8922. }
  8923. this.$forceUpdate();
  8924. this.courseName = res.data[0][0].title;
  8925. this.courseText = res.data[0][0].brief;
  8926. this.evalua = res.data[0][0].evaId;
  8927. this.cover = JSON.parse(res.data[0][0].cover);
  8928. this.noneBtnImg = this.cover.length >= 1;
  8929. // this.checkboxList =
  8930. // res.data[0][0].course_student.length > 0
  8931. // ? JSON.parse(res.data[0][0].course_student)
  8932. // : [];
  8933. this.checkboxList2 = res.data[0][0].juri
  8934. ? res.data[0][0].juri.split(",")
  8935. : [];
  8936. this.inviteCode = [];
  8937. for (var i = 0; i < res.data[2].length; i++) {
  8938. this.inviteCode.push({
  8939. cid: res.data[2][i].classid,
  8940. ic: res.data[2][i].code,
  8941. });
  8942. }
  8943. this.checkboxList3 = res.data[0][0].course_teacher
  8944. ? res.data[0][0].course_teacher.split(",")
  8945. : [];
  8946. // this.isTeacherSee =
  8947. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8948. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8949. this.myWord = res.data[0][0].template;
  8950. this.templateC.id = "123";
  8951. this.courseUserid = res.data[0][0].userid;
  8952. // if(this.courseUserid == this.userid){
  8953. // this.InviteChange(this.checkboxList2)
  8954. // }
  8955. this.nbOrder = res.data[0][0].ordernumber;
  8956. this.courseTypeId = [];
  8957. for (var i = 0; i < res.data[1].length; i++) {
  8958. this.courseTypeId.push(res.data[1][i].typeid);
  8959. }
  8960. console.log(this.courseTypeId);
  8961. // if (this.timer) clearInterval(this.timer);
  8962. if (this.timer) clearTimeout(this.timer);
  8963. this.timer = null;
  8964. // this.timer = setInterval(() => {
  8965. // this.seleteCourseUpdate();
  8966. this.setMan();
  8967. this.selectAllType();
  8968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8969. // }, 5000);
  8970. this.$forceUpdate();
  8971. setTimeout(() => {
  8972. this.checkEva(this.evalua);
  8973. }, 0);
  8974. })
  8975. .catch((err) => {
  8976. console.error(err);
  8977. });
  8978. }
  8979. },
  8980. seleteCourseUpdate() {
  8981. let params = {
  8982. cid: this.cid,
  8983. };
  8984. this.ajax
  8985. .get(this.$store.state.api + "select_course_detail", params)
  8986. .then((res) => {
  8987. // console.log(this.unitJson);
  8988. let unitJson = JSON.parse(res.data[0][0].chapters);
  8989. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8990. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8991. let _unitJson = [];
  8992. let _chapAarry = [];
  8993. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8994. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8995. let index = 1;
  8996. let chapindex;
  8997. if (_unitJson2.length > unitJson.length) {
  8998. for (let c = 0; c < _unitJson2.length; c++) {
  8999. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  9000. }
  9001. for (let j = 0; j < unitJson.length; j++) {
  9002. let count = 0;
  9003. for (let k = 0; k < _unitJson2.length; k++) {
  9004. if (
  9005. unitJson[j].chapterInfo[0].chapterid ==
  9006. _unitJson2[k].chapterInfo[0].chapterid
  9007. ) {
  9008. count++;
  9009. _chapAarry.splice(
  9010. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  9011. 1
  9012. );
  9013. _unitJson.push(unitJson[j]);
  9014. break;
  9015. }
  9016. }
  9017. // if(count === 0){
  9018. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  9019. // }
  9020. }
  9021. for (let k = 0; k < _unitJson2.length; k++) {
  9022. if (_unitJson2[k].isUpdate == 1) {
  9023. _chapAarry.splice(
  9024. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  9025. 1
  9026. );
  9027. _unitJson.push(_unitJson2[k]);
  9028. }
  9029. }
  9030. console.log(_chapAarry);
  9031. for (let d = 0; d < _unitJson2.length; d++) {
  9032. if (
  9033. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  9034. ) {
  9035. if (_unitIndex == d) {
  9036. index = 2;
  9037. }
  9038. chapindex = d;
  9039. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  9040. }
  9041. }
  9042. } else {
  9043. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  9044. }
  9045. for (let i = 0; i < unitJson.length; i++) {
  9046. if (
  9047. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  9048. _unitJson[i].chapterInfo[0].chapterid !=
  9049. unitJson[i].chapterInfo[0].chapterid
  9050. ) {
  9051. if (i == _unitJson.length - 1) {
  9052. // this.unitIndex++
  9053. _unitIndex2++;
  9054. }
  9055. _unitJson.splice(i, 0, unitJson[i]);
  9056. } else if (i > _unitJson.length - 1) {
  9057. _unitJson.push(unitJson[i]);
  9058. } else if (
  9059. _unitJson[i].chapterInfo[0].chapterid ==
  9060. unitJson[i].chapterInfo[0].chapterid
  9061. ) {
  9062. _unitJson[i] = unitJson[i];
  9063. }
  9064. // if (i == _unitIndex) {
  9065. // continue;
  9066. // } else
  9067. }
  9068. if (_chapAarry.length && index != 2) {
  9069. if (chapindex < _unitIndex) {
  9070. this.isDelete = 2;
  9071. // this.unitIndex--;
  9072. _unitIndex2--;
  9073. } else if (
  9074. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  9075. _unitJson[_unitIndex].chapterInfo[0].chapterid
  9076. ) {
  9077. this.isDelete = 2;
  9078. for (let n = 0; n < _unitJson.length; n++) {
  9079. if (
  9080. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  9081. _unitJson[n].chapterInfo[0].chapterid
  9082. ) {
  9083. // this.unitIndex = n;
  9084. _unitIndex2 = n;
  9085. _unitJson[n] = _unitJson2[_unitIndex];
  9086. break;
  9087. }
  9088. }
  9089. }
  9090. } else if (index != 2) {
  9091. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  9092. _unitJson2[_unitIndex];
  9093. for (
  9094. var ci = 0;
  9095. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  9096. ci++
  9097. ) {
  9098. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  9099. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  9100. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9101. .toolChoose
  9102. : [];
  9103. let _chapterData = [];
  9104. for (
  9105. var c = 0;
  9106. c <
  9107. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  9108. .length;
  9109. c++
  9110. ) {
  9111. if (
  9112. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9113. .chapterData[c]
  9114. ) {
  9115. _chapterData.push(
  9116. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  9117. .chapterData[c]
  9118. );
  9119. }
  9120. }
  9121. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  9122. _chapterData;
  9123. }
  9124. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  9125. }
  9126. if (index == 1) {
  9127. this.unitJson = _unitJson;
  9128. this.$forceUpdate();
  9129. setTimeout(() => {
  9130. if (this.unitIndex != _unitIndex2) {
  9131. this.isDelete = 2;
  9132. this.unitIndex = _unitIndex2;
  9133. }
  9134. }, 0);
  9135. this.timer = setTimeout(() => {
  9136. this.seleteCourseUpdate();
  9137. }, 1000);
  9138. } else if (index == 2) {
  9139. let _this = this;
  9140. _this
  9141. .$confirm(
  9142. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  9143. "提示",
  9144. {
  9145. confirmButtonText: "需要",
  9146. cancelButtonText: "取消",
  9147. type: "warning",
  9148. }
  9149. )
  9150. .then(() => {
  9151. if (_this.time()) {
  9152. _this.restoreWork(
  9153. _chapAarry[0],
  9154. _unitJson,
  9155. chapindex,
  9156. _unitJson2,
  9157. _unitIndex2
  9158. );
  9159. }
  9160. })
  9161. .catch(() => {
  9162. _this.unitJson = _unitJson;
  9163. _this.$forceUpdate();
  9164. setTimeout(() => {
  9165. if (this.unitIndex != _unitIndex2) {
  9166. this.isDelete = 2;
  9167. this.unitIndex = _unitIndex2;
  9168. }
  9169. }, 0);
  9170. _this.timer = setTimeout(() => {
  9171. _this.seleteCourseUpdate();
  9172. }, 1000);
  9173. });
  9174. }
  9175. })
  9176. .catch((err) => {
  9177. console.error(err);
  9178. });
  9179. },
  9180. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  9181. let params = [
  9182. {
  9183. cid: this.cid,
  9184. chapters: JSON.stringify(this.unitJson),
  9185. uid: this.userid,
  9186. chapid: chapid,
  9187. },
  9188. ];
  9189. this.ajax
  9190. .post(this.$store.state.api + "restoreWork", params)
  9191. .then((res) => {
  9192. this.$message({
  9193. message: "恢复成功",
  9194. type: "success",
  9195. });
  9196. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  9197. this.unitJson = unitJson;
  9198. this.$forceUpdate();
  9199. setTimeout(() => {
  9200. if (this.unitIndex != unitIndex2) {
  9201. this.isDelete = 2;
  9202. this.unitIndex = unitIndex2;
  9203. }
  9204. }, 0);
  9205. this.timer = setTimeout(() => {
  9206. this.seleteCourseUpdate();
  9207. }, 1000);
  9208. })
  9209. .catch((err) => {
  9210. this.$message.error("网络不佳");
  9211. console.error(err);
  9212. });
  9213. },
  9214. getTypeName() {
  9215. console.log(this.courseTypeId);
  9216. this.$forceUpdate();
  9217. },
  9218. selectAllType() {
  9219. let params = {
  9220. org: this.org && this.org != "" ? this.org : "",
  9221. oid: this.oid && this.oid != "" ? this.oid : "",
  9222. };
  9223. this.ajax
  9224. .get(this.$store.state.api + "selectAllType", params)
  9225. .then((res) => {
  9226. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9227. res.data[0] = [...res.data[0], ...res.data[4]]
  9228. }
  9229. this.CourseType = res.data;
  9230. this.CourseType2 = [
  9231. { name: "智见课程", id: [] },
  9232. { name: "智行课程", id: [] },
  9233. { name: "智创课程", id: [] },
  9234. ];
  9235. for (var cti = 0; cti < res.data[0].length; cti++) {
  9236. if (
  9237. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  9238. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  9239. ) {
  9240. this.CourseType2[0].id.push(res.data[0][cti].id);
  9241. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  9242. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9243. this.CourseType2[1].id.push(res.data[0][cti].id);
  9244. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9245. this.CourseType2[2].id.push(res.data[0][cti].id);
  9246. }
  9247. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  9248. res.data[0][cti].name = "年级";
  9249. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9250. res.data[0][cti].name = "学科";
  9251. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9252. res.data[0][cti].name = "主题";
  9253. }
  9254. }
  9255. let _courseTypeId = [];
  9256. for (var i = 0; i < res.data[0].length; i++) {
  9257. if (!this.cid) {
  9258. this.courseTypeId[res.data[0][i].id] = [];
  9259. }
  9260. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  9261. // }
  9262. this.CourseTypeJson[res.data[0][i].id] = [];
  9263. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9264. if (res.data[0][i].name == "栏目") {
  9265. this.CourseType[0][i].name = "主题";
  9266. }
  9267. }
  9268. if (res.data[2].length == 0 && res.data[3].length == 0) {
  9269. for (var j = 0; j < res.data[1].length; j++) {
  9270. if (
  9271. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  9272. _courseTypeId.indexOf(res.data[1][j].id) == -1
  9273. ) {
  9274. _courseTypeId.push(res.data[1][j].id);
  9275. }
  9276. if (res.data[0][i].id == res.data[1][j].pid) {
  9277. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9278. }
  9279. }
  9280. } else {
  9281. if (res.data[2].length > 0) {
  9282. for (var j = 0; j < res.data[2].length; j++) {
  9283. if (
  9284. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9285. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9286. ) {
  9287. _courseTypeId.push(res.data[2][j].id);
  9288. }
  9289. if (res.data[0][i].id == res.data[2][j].pid) {
  9290. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9291. }
  9292. }
  9293. }
  9294. if (res.data[3].length > 0) {
  9295. for (var j = 0; j < res.data[3].length; j++) {
  9296. if (
  9297. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9298. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9299. ) {
  9300. _courseTypeId.push(res.data[3][j].id);
  9301. }
  9302. if (res.data[0][i].id == res.data[3][j].pid) {
  9303. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9304. }
  9305. }
  9306. }
  9307. }
  9308. }
  9309. this.courseTypeId = _courseTypeId;
  9310. })
  9311. .catch((err) => {
  9312. console.error(err);
  9313. });
  9314. },
  9315. selectType() {
  9316. this.ajax
  9317. .get(this.$store.state.api + "selectType")
  9318. .then((res) => {
  9319. this.CourseType = res.data;
  9320. for (var i = 0; i < res.data[0].length; i++) {
  9321. if (!this.cid) {
  9322. this.courseTypeId[res.data[0][i].id] = "";
  9323. }
  9324. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9325. if (res.data[0][i].name == "栏目") {
  9326. this.CourseType[0][i].name = "主题";
  9327. }
  9328. }
  9329. for (var j = 0; j < res.data[1].length; j++) {
  9330. if (res.data[0][i].id == res.data[1][j].pid) {
  9331. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9332. this.CourseTypeJson[res.data[0][i].id] = [];
  9333. }
  9334. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9335. }
  9336. }
  9337. }
  9338. this.selectTypeByOid();
  9339. this.selectTypeByOrg();
  9340. })
  9341. .catch((err) => {
  9342. console.error(err);
  9343. });
  9344. },
  9345. selectTypeByOid() {
  9346. let params = {
  9347. oid: this.oid,
  9348. };
  9349. this.ajax
  9350. .get(this.$store.state.api + "selectTypeByOid", params)
  9351. .then((res) => {
  9352. for (var i = 0; i < res.data[0].length; i++) {
  9353. for (var j = 0; j < res.data[1].length; j++) {
  9354. if (res.data[0][i].id == res.data[1][j].pid) {
  9355. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9356. this.CourseTypeJson[res.data[0][i].id] = [];
  9357. }
  9358. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9359. }
  9360. }
  9361. }
  9362. })
  9363. .catch((err) => {
  9364. console.error(err);
  9365. });
  9366. },
  9367. selectTypeByOrg() {
  9368. let params = {
  9369. oid: this.org,
  9370. };
  9371. this.ajax
  9372. .get(this.$store.state.api + "selectTypeByOrg", params)
  9373. .then((res) => {
  9374. for (var i = 0; i < res.data[0].length; i++) {
  9375. for (var j = 0; j < res.data[1].length; j++) {
  9376. if (res.data[0][i].id == res.data[1][j].pid) {
  9377. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9378. this.CourseTypeJson[res.data[0][i].id] = [];
  9379. }
  9380. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9381. }
  9382. }
  9383. }
  9384. this.$forceUpdate();
  9385. })
  9386. .catch((err) => {
  9387. console.error(err);
  9388. });
  9389. },
  9390. OtherMb(type) {
  9391. this.typeMode = type;
  9392. setTimeout(() => {
  9393. this.checkEva(this.checkId);
  9394. }, 0);
  9395. },
  9396. openMember() {
  9397. this.searchTN = "";
  9398. this.getTeacher();
  9399. this.dialogVisibleMember = true;
  9400. },
  9401. checkEva(id, type) {
  9402. this.dialogVisiblemb = false;
  9403. this.selectEva();
  9404. if (this.evalua != id && type == 2) {
  9405. this.$message.success("导入成功");
  9406. }
  9407. this.evalua = id;
  9408. this.checkId = id;
  9409. if (this.evalua != "") {
  9410. for (var i = 0; i < this.evaJuri.length; i++) {
  9411. if (this.evalua == this.evaJuri[i].id) {
  9412. this.eTitle = this.evaJuri[i].title;
  9413. this.eJson = JSON.parse(this.evaJuri[i].content);
  9414. }
  9415. }
  9416. this.data.data = [];
  9417. this.$forceUpdate();
  9418. setTimeout(() => {
  9419. this.setMindData();
  9420. }, 500);
  9421. }
  9422. },
  9423. deleteEva() {
  9424. let _this = this;
  9425. if (_this.evalua == "") {
  9426. this.$message.warning("内容已经清空了,请勿重复清空");
  9427. return;
  9428. }
  9429. _this
  9430. .$confirm("确定删除此目标吗?", "提示", {
  9431. confirmButtonText: "确定",
  9432. cancelButtonText: "取消",
  9433. type: "warning",
  9434. })
  9435. .then(() => {
  9436. _this.evalua = "";
  9437. _this.checkId = "";
  9438. _this.eTitle = "";
  9439. let _unitJson = _this.unitJson;
  9440. for (var i = 0; i < _unitJson.length; i++) {
  9441. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9442. for (var j = 0; j < _task.length; j++) {
  9443. let _eList = _task[j].eList;
  9444. for (var k = 0; k < _eList.length; k++) {
  9445. delete _eList[k].target;
  9446. }
  9447. }
  9448. }
  9449. _this.$forceUpdate();
  9450. if (_this.cid) {
  9451. _this.updateWork();
  9452. }
  9453. })
  9454. .catch(() => {
  9455. return;
  9456. });
  9457. },
  9458. selectEva() {
  9459. let params = {
  9460. oid: this.oid,
  9461. };
  9462. this.ajax
  9463. .get(this.$store.state.api + "selectAllEvaluation", params)
  9464. .then((res) => {
  9465. this.evaJuri = res.data[0];
  9466. })
  9467. .catch((err) => {
  9468. console.error(err);
  9469. });
  9470. },
  9471. setMindData() {
  9472. let targetArray = [];
  9473. this.data.data = [];
  9474. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9475. let _eJson = Object.keys(this.eJson);
  9476. let _e = this.eJson;
  9477. for (let i = 0; i < _eJson.length; i++) {
  9478. let element = _e[_eJson[i]];
  9479. this.data.data.push({
  9480. id: element.id,
  9481. parentid: "root",
  9482. topic: element.name,
  9483. });
  9484. // targetArray.push({
  9485. // id: element.id,
  9486. // parentid: "root",
  9487. // name: element.name,
  9488. // });
  9489. targetArray.push({
  9490. value: element.name,
  9491. label: element.name,
  9492. children: [],
  9493. });
  9494. let _eJsonc = Object.keys(element.child);
  9495. let _e2 = element.child;
  9496. for (let j = 0; j < _eJsonc.length; j++) {
  9497. let _ec = _e2[_eJsonc[j]];
  9498. this.data.data.push({
  9499. id: _ec.id,
  9500. parentid: element.id,
  9501. topic: _ec.name,
  9502. });
  9503. // targetArray.push({
  9504. // id: _ec.id,
  9505. // parentid: element.id,
  9506. // name: _ec.name,
  9507. // });
  9508. targetArray[i].children.push({
  9509. value: _ec.name,
  9510. label: _ec.name,
  9511. children: [],
  9512. });
  9513. let _eJsonz = Object.keys(_ec.child);
  9514. let _e3 = _ec.child;
  9515. for (let z = 0; z < _eJsonz.length; z++) {
  9516. let _ez = _e3[_eJsonz[z]];
  9517. this.data.data.push({
  9518. id: _ez.id,
  9519. parentid: _ec.id,
  9520. topic: _ez.name,
  9521. });
  9522. // targetArray.push({
  9523. // id: _ez.id,
  9524. // parentid: _ec.id,
  9525. // name: _ez.name,
  9526. // });
  9527. targetArray[i].children[j].children.push({
  9528. value: _ez.name,
  9529. label: _ez.name,
  9530. });
  9531. }
  9532. }
  9533. }
  9534. this.targetArray = targetArray;
  9535. this.$forceUpdate();
  9536. },
  9537. /*添加评价 */
  9538. addEList(index, tIndex) {
  9539. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9540. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9541. value: "",
  9542. detail: "",
  9543. score: 5,
  9544. })
  9545. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9546. { value: "", detail: "", score: 5 },
  9547. ]);
  9548. this.$forceUpdate();
  9549. },
  9550. forceUpdate() {
  9551. this.$forceUpdate();
  9552. },
  9553. deletEList(index, tIndex, eIndex) {
  9554. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9555. eIndex,
  9556. 1
  9557. );
  9558. this.$forceUpdate();
  9559. },
  9560. getChoosePic(t) {
  9561. this.chooseType = t;
  9562. this.getAllBanner();
  9563. },
  9564. getAllBanner() {
  9565. this.sysPicVisible = true;
  9566. let params = {
  9567. t: this.chooseType,
  9568. };
  9569. this.ajax
  9570. .get(this.$store.state.api + "selectAllBanner", params)
  9571. .then((res) => {
  9572. this.sysPic = res.data[0];
  9573. })
  9574. .catch((err) => {
  9575. console.error(err);
  9576. });
  9577. },
  9578. // getClass() {
  9579. // let params = {
  9580. // oid: this.oid,
  9581. // };
  9582. // this.ajax
  9583. // .get(this.$store.state.api + "selectClassBySchool", params)
  9584. // .then((res) => {
  9585. // this.classJuri = res.data[0];
  9586. // })
  9587. // .catch((err) => {
  9588. // console.error(err);
  9589. // });
  9590. // },
  9591. deleteSysPic() {
  9592. this.cover = [];
  9593. this.isSysPic = false;
  9594. this.isSysPic2 = false;
  9595. },
  9596. deleteSelectPic() {
  9597. this.selectJson.url = "";
  9598. },
  9599. setEListStar() {
  9600. this.$forceUpdate();
  9601. },
  9602. deletRateList(i) {
  9603. this.rateJson.splice(i, 1);
  9604. },
  9605. addRateList() {
  9606. this.rateJson.push({ detail: "", score: 5, value: "" });
  9607. },
  9608. addSt() {
  9609. this.sentenceList.push({
  9610. sentenceTitle: "",
  9611. addSentence: [],
  9612. rightAnswer: [],
  9613. });
  9614. },
  9615. addSen(i) {
  9616. if (!this.sentenceList[i].sentenceTitle) {
  9617. this.$message.error("请填写卡片内容!");
  9618. return;
  9619. }
  9620. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9621. this.$message.error("卡片内容字数不能超过10位");
  9622. return;
  9623. }
  9624. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9625. this.$message.error("不能添加重复的卡片内容!");
  9626. return;
  9627. }
  9628. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9629. // this.isPushTitleList.push(this.sentenceTitle);
  9630. this.sentenceList[i].sentenceTitle = "";
  9631. },
  9632. setRightAnswer(s, i, j) {
  9633. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9634. this.sentenceList[i].rightAnswer.push(s);
  9635. }
  9636. },
  9637. returnCard(r, i, j) {
  9638. this.sentenceList[i].rightAnswer.splice(j, 1);
  9639. },
  9640. addSentenceTool() {
  9641. for (var i = 0; i < this.sentenceList.length; i++) {
  9642. if (this.sentenceList[i].rightAnswer.length == 0) {
  9643. this.$message.error(`请将题目${i + 1}设置完整。`);
  9644. return;
  9645. }
  9646. if (
  9647. this.sentenceList[i].addSentence.length !=
  9648. this.sentenceList[i].rightAnswer.length
  9649. ) {
  9650. this.$message.error(`请将题目${i + 1}设置完整。`);
  9651. return;
  9652. }
  9653. }
  9654. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9655. this.taskCount
  9656. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9657. this.sentenceList = [
  9658. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9659. ];
  9660. this.dialogVisibleSentence = false;
  9661. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9662. // itemTaskIndex
  9663. // ].toolChoose[toolIndex].tool = [];
  9664. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9665. // itemTaskIndex
  9666. // ].toolChoose[toolIndex].tool.push(i);
  9667. if (
  9668. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9669. .toolChoose[this.toolIndex].tool != 47
  9670. ) {
  9671. this.addTools(47, this.taskCount, this.toolIndex);
  9672. }
  9673. },
  9674. addTableJson() {
  9675. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9676. // this.$message.error("请将信息填写完整!");
  9677. // return;
  9678. // }
  9679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9680. this.taskCount
  9681. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9682. // this.tableJson = [{ text: "" }];
  9683. // this.dialogVisibleTable = false;
  9684. this.$message.success("上传成功");
  9685. if (
  9686. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9687. .toolChoose[this.toolIndex].tool != 48
  9688. ) {
  9689. this.addTools(48, this.taskCount, this.toolIndex);
  9690. }
  9691. },
  9692. addWordJson() {
  9693. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9694. this.taskCount
  9695. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9696. // this.wordJson = [{ text: "" }];
  9697. // this.dialogVisibleWord = false;
  9698. this.$message.success("上传成功");
  9699. if (
  9700. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9701. .toolChoose[this.toolIndex].tool != 52
  9702. ) {
  9703. this.addTools(52, this.taskCount, this.toolIndex);
  9704. }
  9705. },
  9706. addMoreUpload() {
  9707. if (this.uploadJson.length == 0) {
  9708. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9709. this.taskCount
  9710. ].toolChoose[this.toolIndex].uploadJson = [];
  9711. } else {
  9712. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9713. this.taskCount
  9714. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9715. }
  9716. this.uploadJson = [];
  9717. this.dialogVisibleMoreUpload = false;
  9718. if (
  9719. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9720. .toolChoose[this.toolIndex].tool != 50
  9721. ) {
  9722. this.addTools(50, this.taskCount, this.toolIndex);
  9723. }
  9724. },
  9725. addPreTime() {
  9726. if (this.preTime == 0) {
  9727. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9728. this.taskCount
  9729. ].toolChoose[this.toolIndex].preTime = 0;
  9730. } else {
  9731. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9732. this.taskCount
  9733. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9734. }
  9735. this.preTime = 0;
  9736. this.dialogVisiblePreTime = false;
  9737. if (
  9738. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9739. .toolChoose[this.toolIndex].tool != 10
  9740. ) {
  9741. this.addTools(10, this.taskCount, this.toolIndex);
  9742. }
  9743. },
  9744. goToTask(i) {
  9745. this.toolIndexType = ''
  9746. if (this.isClickColor == (i + 1)) {
  9747. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9748. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9749. } else {
  9750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9751. }
  9752. this.$forceUpdate();
  9753. return;
  9754. }
  9755. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9757. } else {
  9758. document.querySelectorAll(".rightBox")[0].scrollTop =
  9759. document.querySelectorAll(".taskBorder")[i].offsetTop +
  9760. document.querySelectorAll(".taskBorder")[i].parentElement.parentElement.offsetTop;
  9761. this.isClickColor = i + 1;
  9762. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9763. }
  9764. this.$forceUpdate();
  9765. },
  9766. taskMove(type, index) {
  9767. // this
  9768. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9769. // confirmButtonText: "确定",
  9770. // cancelButtonText: "取消",
  9771. // type: "warning",
  9772. // })
  9773. // .then(() => {
  9774. if (type == 1) {
  9775. if (index > 0) {
  9776. let a = JSON.parse(
  9777. JSON.stringify(
  9778. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9779. )
  9780. );
  9781. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9782. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9783. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9784. }
  9785. } else {
  9786. if (
  9787. index <
  9788. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9789. ) {
  9790. let a = JSON.parse(
  9791. JSON.stringify(
  9792. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9793. )
  9794. );
  9795. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9796. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9797. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9798. }
  9799. }
  9800. this.$forceUpdate();
  9801. // })
  9802. // .catch(() => {
  9803. // return;
  9804. // })
  9805. },
  9806. addGroup(i) {
  9807. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9808. this.groupJson.group.push({
  9809. name: "第" + (this.groupJson.group.length + 1) + "组",
  9810. });
  9811. },
  9812. deleteGroup(i) {
  9813. this.groupJson.group.splice(i, 1);
  9814. },
  9815. numberPan() {
  9816. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9817. this.$message.error('请输入2-10的数字')
  9818. this.groupJson.number = ''
  9819. }
  9820. },
  9821. addGroupJson() {
  9822. for (var i = 0; i < this.groupJson.group.length; i++) {
  9823. if (!this.groupJson.group[i].name) {
  9824. this.$message.error("请将信息填写完整!");
  9825. return;
  9826. }
  9827. }
  9828. if (!this.groupJson.number) {
  9829. this.$message.error("请将信息填写完整!");
  9830. return;
  9831. }
  9832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9833. this.taskCount
  9834. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9835. JSON.stringify(this.groupJson)
  9836. );
  9837. this.dialogVisibleGroup = false;
  9838. this.groupJson = {};
  9839. if (
  9840. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9841. .toolChoose[this.toolIndex].tool != 49
  9842. ) {
  9843. this.addTools(49, this.taskCount, this.toolIndex);
  9844. }
  9845. },
  9846. updateTime(preTime) {
  9847. this.preTime = preTime;
  9848. },
  9849. InviteChange(val) {
  9850. console.log(val);
  9851. let _check = []
  9852. let _check2 = []
  9853. for (var i = 0; i < this.grade2.length; i++) {
  9854. var gid = this.grade2[i].id
  9855. _check.push(gid)
  9856. }
  9857. for (var i = 0; i < this.checkboxList2.length; i++) {
  9858. var _id = this.checkboxList2[i]
  9859. if (_check.indexOf(_id) !== -1) {
  9860. _check2.push(_id)
  9861. }
  9862. }
  9863. this.checkAll = _check2.length === _check.length;
  9864. return;
  9865. let array = JSON.parse(JSON.stringify(val));
  9866. this.inviteCode = this.inviteCode.filter((el) => {
  9867. if (val.indexOf(el.cid) != -1) {
  9868. array.splice(array.indexOf(el.cid), 1);
  9869. return el;
  9870. }
  9871. });
  9872. for (var i = 0; i < array.length; i++) {
  9873. this.getInviteCode(array[i]);
  9874. }
  9875. },
  9876. handleCheckAllChange(val) {
  9877. if (val) {
  9878. for (var i = 0; i < this.grade2.length; i++) {
  9879. var gid = this.grade2[i].id
  9880. if (this.checkboxList2.indexOf(gid) === -1) {
  9881. this.checkboxList2.push(gid)
  9882. }
  9883. }
  9884. } else {
  9885. let _check = []
  9886. let _check2 = []
  9887. for (var i = 0; i < this.grade2.length; i++) {
  9888. var gid = this.grade2[i].id
  9889. _check.push(gid)
  9890. }
  9891. for (var i = 0; i < this.checkboxList2.length; i++) {
  9892. var _id = this.checkboxList2[i]
  9893. if (_check.indexOf(_id) === -1) {
  9894. _check2.push(_id)
  9895. }
  9896. }
  9897. this.checkboxList2 = _check2
  9898. }
  9899. this.isIndeterminate = false;
  9900. },
  9901. async getInviteCode(cid) {
  9902. let code = this.randomNumber();
  9903. let params = {
  9904. code: code,
  9905. oid: this.oid,
  9906. };
  9907. let type = 1;
  9908. for (var i = 0; i < this.inviteCode.length; i++) {
  9909. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9910. type = 2;
  9911. }
  9912. }
  9913. if (type == 2) {
  9914. this.getInviteCode(cid);
  9915. return;
  9916. }
  9917. const res = await this.ajax.get(
  9918. this.$store.state.api + "selectInviteCode2",
  9919. params
  9920. );
  9921. if (
  9922. res.data.length &&
  9923. res.data[0].length &&
  9924. res.data[0][0].courseId != this.cid
  9925. ) {
  9926. this.getInviteCode(cid);
  9927. return;
  9928. }
  9929. let array = [];
  9930. for (var i = 0; i < this.inviteCode.length; i++) {
  9931. array.push(this.inviteCode[i].cid);
  9932. }
  9933. if (array.indexOf(cid) != -1) {
  9934. this.inviteCode[array.indexOf(cid)].ic = code;
  9935. } else {
  9936. this.inviteCode.push({ cid: cid, ic: code });
  9937. }
  9938. },
  9939. OpenInviteD(cid) {
  9940. let array = [];
  9941. this.icode = "";
  9942. for (var i = 0; i < this.inviteCode.length; i++) {
  9943. array.push(this.inviteCode[i].cid);
  9944. }
  9945. if (array.indexOf(cid) != -1) {
  9946. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9947. }
  9948. this.inviteId = cid;
  9949. this.dialogVisibleInvite = true;
  9950. },
  9951. addInvite() {
  9952. let reg = /^[A-Za-z0-9]{4,}$/;
  9953. if (!reg.test(this.icode)) {
  9954. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9955. return;
  9956. }
  9957. let type = 1;
  9958. for (var i = 0; i < this.inviteCode.length; i++) {
  9959. if (
  9960. this.inviteCode[i].cid != this.inviteId &&
  9961. this.icode == this.inviteCode[i].ic
  9962. ) {
  9963. type = 2;
  9964. }
  9965. }
  9966. if (type == 2) {
  9967. this.$message.error("已有此随机码,不能重复");
  9968. return;
  9969. }
  9970. let params = {
  9971. code: this.icode,
  9972. oid: this.oid,
  9973. };
  9974. this.ajax
  9975. .get(this.$store.state.api + "selectInviteCode", params)
  9976. .then((res) => {
  9977. if (
  9978. res.data.length &&
  9979. res.data[0].length &&
  9980. res.data[0][0].courseId != this.cid
  9981. ) {
  9982. this.$message.error("已有此随机码,不能重复");
  9983. return;
  9984. }
  9985. let array = [];
  9986. for (var i = 0; i < this.inviteCode.length; i++) {
  9987. array.push(this.inviteCode[i].cid);
  9988. }
  9989. if (array.indexOf(this.inviteId) != -1) {
  9990. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9991. } else {
  9992. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9993. }
  9994. this.icode = "";
  9995. this.dialogVisibleInvite = false;
  9996. })
  9997. .catch((err) => {
  9998. console.error(err);
  9999. });
  10000. },
  10001. randomNumber() {
  10002. // 随机生成两位数
  10003. // let num = Math.floor(Math.random() * 900) + 100;
  10004. // 生成 0 到 99 之间的随机整数
  10005. const randomNumber = Math.floor(Math.random() * 100);
  10006. // 如果随机数小于 10,补上前导零
  10007. const num =
  10008. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  10009. // 随机生成两个大写字母
  10010. let letters = "";
  10011. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  10012. for (let i = 0; i < 3; i++) {
  10013. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  10014. }
  10015. // 随机生成两位数字和字母的组合
  10016. let mix = "";
  10017. let chars =
  10018. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  10019. for (let i = 0; i < 3; i++) {
  10020. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  10021. mix += char;
  10022. }
  10023. // 随机选择一种类型
  10024. let type = Math.floor(Math.random() * 3);
  10025. return num;
  10026. // 根据类型输出结果
  10027. switch (type) {
  10028. case 0:
  10029. console.log(num); // 输出两位数
  10030. return num;
  10031. case 1:
  10032. console.log(letters); // 输出两个大写字母
  10033. return letters;
  10034. case 2:
  10035. console.log(mix); // 输出两位数字和字母的组合
  10036. return mix;
  10037. }
  10038. },
  10039. getPaste() {
  10040. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  10041. if (!iframe) {
  10042. return;
  10043. }
  10044. let copyData = iframe.contentWindow.copyData;
  10045. // if (copyData && copyData.stageData && copyData.stageData.length) {
  10046. // this.isPasteStage = true
  10047. // }
  10048. if (copyData && copyData.selectData.length) {
  10049. this.isPasteChoice = true
  10050. }
  10051. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  10052. this.isPasteTask = true
  10053. }
  10054. },
  10055. searchImage() {
  10056. var _this = this;
  10057. _this.imageList = []
  10058. if (!_this.searchImageValue) {
  10059. _this.sysPicVisible2 = true
  10060. return
  10061. }
  10062. _this.imageloading = true
  10063. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  10064. page: _this.ppage,
  10065. pagesize: 9,
  10066. query: _this.searchImageValue
  10067. }).then(function (response) {
  10068. // console.log(response.data.data);
  10069. var data = response.data.FunctionResponse.result;
  10070. for (var i = 0; i < data.length; i++) {
  10071. _this.imageList.push({ url: data[i].thumbnail })
  10072. }
  10073. _this.imageloading = false
  10074. }).catch(function (error) {
  10075. console.log(error);
  10076. });
  10077. _this.sysPicVisible2 = true
  10078. },
  10079. changePicture() {
  10080. this.ppage++
  10081. this.searchImage()
  10082. },
  10083. resetImage() {
  10084. this.ppage = 1
  10085. this.searchImage()
  10086. },
  10087. jumpGj(i, j) {
  10088. if ((i + 1) != this.isClickColor) {
  10089. this.isClickColor = (i + 1)
  10090. }
  10091. var a = document.scrollingElement;
  10092. this.toolIndexType = `gj${i}${j}`
  10093. let target = document.querySelector(`#gj${i}${j}`);
  10094. if (target) {
  10095. target.scrollIntoView(true);
  10096. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  10097. // setTimeout(() => {
  10098. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  10099. // }, 0);
  10100. }
  10101. },
  10102. dragStart(val, i, j) {
  10103. this.taskCount = j
  10104. this.oldIndex = i;
  10105. this.oldData = val;
  10106. },
  10107. dragOver(i, j) {
  10108. this.typeIndex = "chapter-" + j + '-' + i
  10109. this.newIndex = i;
  10110. },
  10111. dragEnd() {
  10112. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  10113. // 删除老的节点
  10114. newItems.splice(this.oldIndex, 1);
  10115. // 在列表中目标位置增加新的节点
  10116. newItems.splice(this.newIndex, 0, this.oldData);
  10117. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  10118. this.typeIndex = "";
  10119. this.newIndex = "";
  10120. this.$forceUpdate()
  10121. },
  10122. dragTaskStart(val, i) {
  10123. this.oldIndex = i;
  10124. this.oldData = val;
  10125. },
  10126. dragTaskOver(i) {
  10127. this.typeIndex = "task-" + i
  10128. this.newIndex = i;
  10129. },
  10130. dragTaskEnd() {
  10131. if(this.newIndex == this.oldIndex){
  10132. this.newIndex = "";
  10133. this.typeIndex = "";
  10134. return;
  10135. }
  10136. this.$confirm(
  10137. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  10138. "提示",
  10139. {
  10140. confirmButtonText: "确定",
  10141. cancelButtonText: "取消",
  10142. type: "warning",
  10143. }
  10144. )
  10145. .then(() => {
  10146. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  10147. // 删除老的节点
  10148. newItems.splice(this.oldIndex, 1);
  10149. // 在列表中目标位置增加新的节点
  10150. newItems.splice(this.newIndex, 0, this.oldData);
  10151. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  10152. this.typeIndex = "";
  10153. this.newIndex = "";
  10154. this.$forceUpdate()
  10155. })
  10156. .catch(() => {
  10157. this.typeIndex = "";
  10158. this.newIndex = "";
  10159. return;
  10160. });
  10161. },
  10162. },
  10163. beforeDestroy() {
  10164. clearTimeout(this.timer);
  10165. this.timer = null;
  10166. clearInterval(this.timer2);
  10167. this.timer2 = null;
  10168. clearInterval(this.pasteTimer);
  10169. this.pasteTimer = null;
  10170. },
  10171. beforeRouteLeave(to, from, next) {
  10172. clearTimeout(this.timer);
  10173. this.timer = null;
  10174. clearInterval(this.timer2);
  10175. this.timer2 = null;
  10176. clearInterval(this.pasteTimer);
  10177. this.pasteTimer = null;
  10178. next();
  10179. },
  10180. created() {
  10181. this.getStudent();
  10182. this.getTeacher();
  10183. this.getClass();
  10184. this.selectGrage();
  10185. this.getTemplate();
  10186. // this.selectType();
  10187. this.selectEva();
  10188. this.loading = false;
  10189. this.timer2 = setInterval(() => {
  10190. this.selectEva();
  10191. }, 5000);
  10192. this.pasteTimer = setInterval(() => {
  10193. this.getPaste();
  10194. }, 1000);
  10195. setTimeout(() => {
  10196. this.selectCourseDetail();
  10197. }, 500);
  10198. },
  10199. mounted() {
  10200. this.$nextTick(() => {
  10201. //监听这个dom的scroll事件
  10202. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  10203. this.heightPx = $(".rightBox")[0].offsetHeight + 'px';
  10204. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  10205. this.$forceUpdate();
  10206. });
  10207. },
  10208. };
  10209. </script>
  10210. <style scoped>
  10211. @media screen and (max-width: 1280px) {
  10212. .mbCss {
  10213. flex-direction: column !important;
  10214. }
  10215. .pjCss {
  10216. width: 100% !important;
  10217. }
  10218. .evaCss {
  10219. width: 100% !important;
  10220. }
  10221. }
  10222. .dialog_diy>>>.el-dialog__header {
  10223. background: #3c3c3c !important;
  10224. padding: 15px 20px;
  10225. }
  10226. .dialog_diy>>>.el-dialog__title {
  10227. color: #fff;
  10228. }
  10229. .dialog_diy>>>.el-dialog__headerbtn {
  10230. top: 19px;
  10231. }
  10232. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10233. color: #fff;
  10234. }
  10235. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10236. color: #fff;
  10237. }
  10238. .dialog_diy>>>.el-dialog__body,
  10239. .dialog_diy>>>.el-dialog__footer {
  10240. background: #fafafa;
  10241. }
  10242. .dialog_diy3>>>.el-dialog__body,
  10243. .dialog_diy3>>>.el-dialog__footer {
  10244. background: #eee !important;
  10245. }
  10246. .dialog_diy3>>>.el-dialog__body {
  10247. padding: 20px 20px;
  10248. }
  10249. .source_diy>>>.el-dialog {
  10250. height: 100% !important;
  10251. margin: 0 auto !important;
  10252. }
  10253. .source_diy>>>.el-dialog__body {
  10254. height: calc(100% - 185px);
  10255. overflow: auto;
  10256. background: #e6eaf0;
  10257. }
  10258. .source_diy>>>.el-dialog__footer {
  10259. background: #e6eaf0 !important;
  10260. }
  10261. .left {
  10262. border-right: 1px solid rgb(60, 94, 143);
  10263. display: flex;
  10264. flex-direction: column;
  10265. align-items: center;
  10266. min-height: 600px;
  10267. width: 385px;
  10268. height: 80%;
  10269. }
  10270. .tips {
  10271. color: rgb(128, 128, 128);
  10272. font-size: 12px;
  10273. width: 270px;
  10274. margin: 40px;
  10275. }
  10276. .pb_content {
  10277. height: 100% !important;
  10278. /* margin: 0 20px 0 20px; */
  10279. }
  10280. .pb_content_body {
  10281. width: 100% !important;
  10282. height: 100%;
  10283. }
  10284. .info_solid {
  10285. width: 270px;
  10286. height: 30px;
  10287. border-left: 1px solid #bdbdbd;
  10288. margin: 10px 0px 10px 30px;
  10289. }
  10290. .info_steps {
  10291. width: 270px;
  10292. font-size: 0.875rem;
  10293. display: flex;
  10294. align-items: center;
  10295. }
  10296. .info_steps span:nth-child(1) {
  10297. width: 30px;
  10298. height: 30px;
  10299. background: rgba(0, 0, 0, 0.38);
  10300. display: block;
  10301. color: #fff;
  10302. border-radius: 40px;
  10303. text-align: center;
  10304. line-height: 30px;
  10305. }
  10306. .steps_active {
  10307. background: #3d67bc !important;
  10308. }
  10309. .info_steps span:nth-child(2) {
  10310. margin-left: 5px;
  10311. }
  10312. .right {
  10313. height: 100%;
  10314. width: calc(100% - 40px);
  10315. display: flex;
  10316. overflow: hidden;
  10317. margin: 0 auto;
  10318. }
  10319. .basic_box {
  10320. margin: 0 auto;
  10321. position: relative;
  10322. padding: 0 20px 0 20px;
  10323. }
  10324. .basic_box2 {
  10325. position: relative;
  10326. width: calc(100% - 300px);
  10327. }
  10328. .basic_box_success {
  10329. width: 100%;
  10330. height: 100%;
  10331. padding: 50px 0;
  10332. position: relative;
  10333. text-align: center;
  10334. /* border-bottom: 1px solid #bfbfbf; */
  10335. box-sizing: border-box;
  10336. display: flex;
  10337. align-items: center;
  10338. flex-direction: column;
  10339. justify-content: center;
  10340. }
  10341. .info_title {
  10342. font-size: 1.5em;
  10343. margin-right: 25px;
  10344. /* margin: 20px 30px 20px 30px; */
  10345. }
  10346. .bInfo_title {
  10347. text-align: left;
  10348. margin: 10px 0;
  10349. }
  10350. .small_title {
  10351. font-size: 14px;
  10352. line-height: 40px;
  10353. }
  10354. .chapter_beizhu {
  10355. font-size: 12px;
  10356. font-weight: bold;
  10357. float: right;
  10358. color: rgb(128, 128, 128);
  10359. margin-top: 5px;
  10360. }
  10361. .chapter_uploadBox1 {
  10362. text-align: left;
  10363. background-color: rgb(242, 242, 242);
  10364. width: 100%;
  10365. height: 67px;
  10366. padding: 0px 15px;
  10367. border-radius: 8px;
  10368. overflow: hidden;
  10369. font-size: 16px;
  10370. box-sizing: border-box;
  10371. position: relative;
  10372. }
  10373. .chapter_add {
  10374. width: 100%;
  10375. height: 32px;
  10376. margin-top: 15px;
  10377. cursor: pointer;
  10378. }
  10379. .chapter_add_l {
  10380. margin-left: 5px;
  10381. width: 30px;
  10382. height: 30px;
  10383. float: left;
  10384. border: 1px solid #aaa;
  10385. color: #aaa;
  10386. border-radius: 50%;
  10387. font-size: 25px;
  10388. text-align: center;
  10389. }
  10390. .chapter_add_r {
  10391. font-size: 18px;
  10392. height: 40px;
  10393. line-height: 30px;
  10394. text-indent: 10px;
  10395. color: #aaa;
  10396. }
  10397. .chapter_add_r span {
  10398. font-size: 12px;
  10399. color: rgb(204, 204, 204);
  10400. }
  10401. .chapter_add_input {
  10402. display: none;
  10403. }
  10404. .line {
  10405. width: 85%;
  10406. margin: 0 auto;
  10407. border-top: 1px solid #e5e5e5;
  10408. margin-top: 20px;
  10409. }
  10410. .info_btnBox {
  10411. width: calc(100%);
  10412. display: flex;
  10413. justify-content: center;
  10414. height: 70px;
  10415. align-items: center;
  10416. background: #fff;
  10417. margin: 0 auto;
  10418. border-top: 2px solid rgb(228, 232, 237);
  10419. box-sizing: border-box;
  10420. border-radius: 0px 0 5px 5px;
  10421. }
  10422. .info_btnBox2 {
  10423. width: calc(100%);
  10424. display: flex;
  10425. justify-content: center;
  10426. height: 20px;
  10427. align-items: center;
  10428. background: #fff;
  10429. margin: 0 auto;
  10430. border-top: 2px solid rgb(228, 232, 237);
  10431. box-sizing: border-box;
  10432. overflow: hidden;
  10433. cursor: pointer;
  10434. }
  10435. .info_btnBox3 {
  10436. width: calc(100%);
  10437. display: flex;
  10438. justify-content: flex-end;
  10439. padding: 0 20px;
  10440. height: 60px;
  10441. align-items: center;
  10442. background: unset;
  10443. margin: 0 auto;
  10444. /* border-top: 1px solid rgb(228, 232, 237); */
  10445. box-sizing: border-box;
  10446. overflow: hidden;
  10447. cursor: pointer;
  10448. background: #fff;
  10449. border-radius: 10px;
  10450. }
  10451. .info_btn+.info_btn {
  10452. margin-left: 15px;
  10453. }
  10454. .info_btn,
  10455. .teacherWord {
  10456. color: #fff;
  10457. background-color: #0f7eff;
  10458. padding: 8px 24px;
  10459. font-size: 0.9375rem;
  10460. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10461. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10462. min-width: 64px;
  10463. font-weight: 500;
  10464. border-radius: 4px;
  10465. box-sizing: border-box;
  10466. border: none;
  10467. cursor: pointer;
  10468. }
  10469. .teacherWord {
  10470. width: 105px !important;
  10471. text-align: center !important;
  10472. line-height: 36px !important;
  10473. padding: 0 !important;
  10474. font-size: 14px !important;
  10475. margin: 10px 0 !important;
  10476. }
  10477. .wordTeacher {
  10478. display: flex;
  10479. flex-direction: column;
  10480. width: 20%;
  10481. text-align: center;
  10482. font-size: 14px;
  10483. margin: 30px 30px 0 10px;
  10484. background: #fff;
  10485. position: relative;
  10486. border-radius: 5px;
  10487. padding: 25px 0px;
  10488. }
  10489. .wordPic {
  10490. margin: 0 auto;
  10491. width: 60px;
  10492. height: 60px;
  10493. cursor: pointer;
  10494. }
  10495. .deleteWord {
  10496. width: 22px;
  10497. height: 22px;
  10498. position: absolute;
  10499. right: 5px;
  10500. top: -15px;
  10501. cursor: pointer;
  10502. display: none;
  10503. z-index: 999;
  10504. }
  10505. .wordPic>img,
  10506. .deleteWord>img,
  10507. .addToolImg>img {
  10508. width: 100%;
  10509. height: 100%;
  10510. }
  10511. .info_btn:hover {
  10512. background-color: #4f7cd5 !important;
  10513. }
  10514. .cru_selectBox {
  10515. display: flex;
  10516. margin: 24px 0 10px;
  10517. flex-wrap: nowrap;
  10518. white-space: nowrap;
  10519. overflow: auto;
  10520. position: relative;
  10521. height: 47px;
  10522. }
  10523. .cru_selectBox::-webkit-scrollbar {
  10524. /*滚动条整体样式*/
  10525. width: 6px;
  10526. /*高宽分别对应横竖滚动条的尺寸*/
  10527. height: 6px;
  10528. }
  10529. /*定义滚动条轨道 内阴影+圆角*/
  10530. .cru_selectBox::-webkit-scrollbar-track {
  10531. border-radius: 10px;
  10532. background-color: #eee;
  10533. }
  10534. /*定义滑块 内阴影+圆角*/
  10535. .cru_selectBox::-webkit-scrollbar-thumb {
  10536. border-radius: 10px;
  10537. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10538. background-color: rgba(0, 0, 0, 0.1);
  10539. }
  10540. .cru_line {
  10541. position: absolute;
  10542. bottom: 0px;
  10543. transition: all 0.5s;
  10544. left: 0px;
  10545. width: 125px;
  10546. margin-left: -25px;
  10547. }
  10548. .cru_select {
  10549. font-size: 21px;
  10550. margin-right: 37px;
  10551. margin-left: 5px;
  10552. cursor: pointer;
  10553. color: #a6a6a6;
  10554. }
  10555. .cru_selected {
  10556. color: #0b7fc2 !important;
  10557. }
  10558. .chapter_contentbox {
  10559. display: flex;
  10560. align-items: center;
  10561. margin-top: 15px;
  10562. }
  10563. .chapter_contentbox .cc_title {
  10564. margin: 0px;
  10565. color: black;
  10566. display: block;
  10567. white-space: nowrap;
  10568. overflow: hidden;
  10569. text-overflow: ellipsis;
  10570. margin-right: 20px;
  10571. font-size: 18px;
  10572. height: 20px;
  10573. line-height: 22px;
  10574. min-width: fit-content;
  10575. display: flex;
  10576. }
  10577. .chapter_contentbox .cc_title::before {
  10578. content: '';
  10579. height: 100%;
  10580. width: 3px;
  10581. background: #3681FC;
  10582. border-radius: 3px;
  10583. opacity: 1;
  10584. display: block;
  10585. margin-right: 10px;
  10586. }
  10587. .chapter_contentbox .cc_input {
  10588. width: 100%;
  10589. display: flex;
  10590. }
  10591. .show_taskD {
  10592. min-width: fit-content;
  10593. margin-left: 10px;
  10594. display: flex;
  10595. align-items: center;
  10596. font-size: 14px;
  10597. cursor: pointer;
  10598. color: #717C8D;
  10599. }
  10600. .show_taskD>img {
  10601. width: 15px;
  10602. margin-right: 5px;
  10603. transition: .2s all;
  10604. transform: rotate(-90deg);
  10605. }
  10606. .show_taskD.show>img {
  10607. transform: rotate(0deg);
  10608. }
  10609. .show_toolD {
  10610. min-width: fit-content;
  10611. margin-left: 10px;
  10612. display: flex;
  10613. align-items: center;
  10614. font-size: 14px;
  10615. cursor: pointer;
  10616. color: #717C8D;
  10617. /* position: absolute;
  10618. right: 45px;
  10619. top: 5px; */
  10620. }
  10621. .show_toolD>img {
  10622. width: 15px;
  10623. margin-right: 5px;
  10624. transition: .2s all;
  10625. transform: rotate(-90deg);
  10626. }
  10627. .show_toolD.show>img {
  10628. transform: rotate(0deg);
  10629. }
  10630. .remove {
  10631. background-image: url("../../../assets/icon/new/delete_u.png");
  10632. cursor: pointer;
  10633. opacity: 0.5;
  10634. width: 30px;
  10635. min-width: 30px;
  10636. height: 30px;
  10637. background-size: 100% 100%;
  10638. background-repeat: no-repeat;
  10639. margin-left: 10px;
  10640. }
  10641. .remove1 {
  10642. background-image: url("../../../assets/remove1.png");
  10643. background-repeat: no-repeat;
  10644. background-position: 5px 10px;
  10645. width: 40px;
  10646. height: 50px;
  10647. cursor: pointer;
  10648. margin-left: 10px;
  10649. }
  10650. .binfo_input {
  10651. width: 100%;
  10652. margin: 0;
  10653. padding: 12px 14px;
  10654. display: block;
  10655. min-width: 0;
  10656. outline: none;
  10657. box-sizing: border-box;
  10658. background: none;
  10659. border: none;
  10660. border-radius: 4px;
  10661. background: #fff;
  10662. font-size: 16px;
  10663. resize: none;
  10664. font-family: 'Microsoft YaHei';
  10665. min-height: 48px;
  10666. /* border: 1px solid #3682fc00; */
  10667. border: 1.5px solid #CAD1DC;
  10668. }
  10669. .binfo_textarea {
  10670. border: 1.5px solid #CAD1DC;
  10671. font-size: 16px;
  10672. resize: none;
  10673. background: #f6f6f6;
  10674. font-family: 'Microsoft YaHei';
  10675. }
  10676. .binfo_input:focus-visible {
  10677. border: 1.5px solid #3681FC !important;
  10678. }
  10679. .time {
  10680. display: flex;
  10681. margin: 35px 0 80px 0;
  10682. }
  10683. .chapter_btnbox {
  10684. width: 160px;
  10685. border-radius: 5px;
  10686. border: 2px dashed gray;
  10687. display: flex;
  10688. padding: 8px 50px;
  10689. align-items: center;
  10690. justify-content: center;
  10691. margin: 30px auto 0;
  10692. cursor: pointer;
  10693. }
  10694. .icon_add {
  10695. position: relative;
  10696. width: 24px;
  10697. padding-top: 20px;
  10698. border-radius: 100%;
  10699. border-width: 2px;
  10700. border-style: solid;
  10701. border-color: gray;
  10702. }
  10703. .icon_add i:nth-child(1) {
  10704. position: absolute;
  10705. left: 50%;
  10706. top: 50%;
  10707. height: 60%;
  10708. transform: translate(-50%, -50%);
  10709. border-width: 1px;
  10710. border-style: solid;
  10711. border-color: inherit;
  10712. }
  10713. .icon_add i:nth-child(2) {
  10714. position: absolute;
  10715. top: 50%;
  10716. left: 50%;
  10717. width: 60%;
  10718. transform: translate(-50%, -50%);
  10719. border-width: 1px;
  10720. border-style: solid;
  10721. border-color: inherit;
  10722. }
  10723. .chapter_btn_w {
  10724. font-size: 0.9375rem;
  10725. font-weight: bold;
  10726. color: gray;
  10727. margin-left: 20px;
  10728. }
  10729. .disUoloadSty>>>.el-icon-plus {
  10730. display: none !important;
  10731. /* 上传按钮隐藏 */
  10732. }
  10733. .imgLeft {
  10734. margin: 15px 0;
  10735. }
  10736. .add_info_box {
  10737. margin: 0 0 0 auto;
  10738. display: flex;
  10739. flex-wrap: wrap;
  10740. }
  10741. .add_info_box button {
  10742. margin: 0 5px 10px 0;
  10743. }
  10744. .add_info_box2 {
  10745. display: flex;
  10746. align-items: center;
  10747. flex-wrap: wrap;
  10748. }
  10749. .add_info_box2::after {
  10750. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10751. color: red;
  10752. font-size: 14px;
  10753. margin-bottom: 10px;
  10754. }
  10755. .add_chapters_box {
  10756. text-align: left;
  10757. background-color: #fff;
  10758. width: 100%;
  10759. border-radius: 4px;
  10760. font-size: 16px;
  10761. box-sizing: border-box;
  10762. position: relative;
  10763. padding: 0 15px;
  10764. height: auto;
  10765. overflow-y: auto;
  10766. overflow-x: hidden;
  10767. border: 1px solid #CAD1DC;
  10768. }
  10769. .add_chapters_box.add_c_none {
  10770. display: flex;
  10771. justify-content: center;
  10772. align-items: center;
  10773. padding: 15px;
  10774. }
  10775. .add_c_none>img {
  10776. width: 25px;
  10777. }
  10778. .add_chapters_box.add_c_none>span {
  10779. font-size: 14px;
  10780. font-weight: 400;
  10781. margin: 0 0 5px 5px;
  10782. }
  10783. .homework_box {
  10784. display: flex;
  10785. align-items: flex-start;
  10786. flex-wrap: wrap;
  10787. margin: 15px 0 0 0;
  10788. flex-direction: column;
  10789. align-content: flex-start;
  10790. }
  10791. .course_homework {
  10792. display: flex;
  10793. justify-content: center;
  10794. flex-direction: row;
  10795. align-items: center;
  10796. margin: 0 10px 0 0;
  10797. }
  10798. .course_homework>>>.el-input__inner {
  10799. width: 140px;
  10800. margin-left: 15px;
  10801. }
  10802. .chapter_upload_move {
  10803. position: relative;
  10804. background-color: #fff;
  10805. position: absolute;
  10806. width: 100%;
  10807. top: 0px;
  10808. left: 0px;
  10809. border: 1px solid #eee;
  10810. border-radius: 5px;
  10811. transition: width 2s;
  10812. -moz-transition: width 2s;
  10813. -webkit-transition: width 2s;
  10814. -o-transition: width 2s;
  10815. }
  10816. .chapter_upload_l_i {
  10817. background-image: url("../../../assets/icon.png");
  10818. background-position: 3px -165px;
  10819. width: 30px;
  10820. height: 30px;
  10821. margin: 10px auto 0 auto;
  10822. }
  10823. .course_input_box {
  10824. display: flex;
  10825. margin-right: 20px;
  10826. width: 100%;
  10827. align-items: center;
  10828. position: relative;
  10829. }
  10830. .course_input_box>.binfo_input {
  10831. width: calc(100% - 0 - 200px - 20px);
  10832. margin: 0 10px;
  10833. }
  10834. .bb_courseIcon {
  10835. width: 57px;
  10836. height: 45px;
  10837. background: #F0F4FA;
  10838. border-radius: 5px 0px 0px 5px;
  10839. display: flex;
  10840. align-items: center;
  10841. justify-content: center;
  10842. border-right: 1.5px solid rgb(202, 209, 220);
  10843. box-sizing: border-box;
  10844. position: absolute;
  10845. left: 1.5px
  10846. }
  10847. .bb_courseIcon>img {
  10848. width: 25px;
  10849. height: auto
  10850. }
  10851. .big_box {
  10852. /* margin-top: 20px; */
  10853. display: flex;
  10854. justify-content: space-between;
  10855. /* border-bottom: 1px solid #E0E2ED; */
  10856. }
  10857. .left_first {
  10858. display: flex;
  10859. flex-direction: column;
  10860. flex-wrap: nowrap;
  10861. width: calc(100% - 310px);
  10862. padding: 20px;
  10863. box-sizing: border-box;
  10864. background: #fff;
  10865. border-radius: 5px;
  10866. }
  10867. .right_first {
  10868. width: 300px;
  10869. display: flex;
  10870. align-items: center;
  10871. justify-content: center;
  10872. /* border-left: 1px solid #E0E2ED; */
  10873. box-sizing: border-box;
  10874. padding: 20px;
  10875. flex-direction: column;
  10876. background: #fff;
  10877. border-radius: 5px;
  10878. }
  10879. .ai_box {
  10880. width: 204px;
  10881. display: flex;
  10882. justify-content: flex-end;
  10883. margin-bottom: 15px;
  10884. }
  10885. .ai_content {
  10886. display: flex;
  10887. align-items: center;
  10888. font-size: 14px;
  10889. padding: 7px 20px;
  10890. box-sizing: border-box;
  10891. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10892. border-radius: 12px;
  10893. font-weight: 700;
  10894. cursor: pointer;
  10895. }
  10896. .ai_content>img {
  10897. width: 40px;
  10898. margin-right: 5px;
  10899. }
  10900. .c_info_title {
  10901. padding: 15px 0 15px 0;
  10902. font-size: 16px;
  10903. font-weight: bold;
  10904. margin: 0 0 0 20px;
  10905. box-sizing: border-box;
  10906. display: flex;
  10907. align-items: center;
  10908. line-height: 20px;
  10909. }
  10910. .c_info_title::before {
  10911. content: '';
  10912. display: block;
  10913. width: 3px;
  10914. height: 20px;
  10915. background: #0061FF;
  10916. border-radius: 3px;
  10917. margin: 0 5px 0 0;
  10918. }
  10919. .right_title {
  10920. /* height: 30px; */
  10921. padding: 0 20px;
  10922. font-size: 18px;
  10923. font-weight: bold;
  10924. /* color: #0f7eff; */
  10925. margin: 20px auto 0;
  10926. display: flex;
  10927. /* justify-content: space-between; */
  10928. align-items: center;
  10929. }
  10930. .people {
  10931. border: 1px solid rgb(229 229 229);
  10932. height: 495px;
  10933. border-radius: 5px;
  10934. width: 100%;
  10935. overflow: auto;
  10936. }
  10937. .people_top {
  10938. display: flex;
  10939. width: 100%;
  10940. /* justify-content: space-between; */
  10941. /* align-items: center; */
  10942. flex-direction: column;
  10943. padding: 10px 10px 0;
  10944. box-sizing: border-box;
  10945. }
  10946. .people_nav,
  10947. .people_top_right {
  10948. /* padding: 20px 0 0 20px; */
  10949. }
  10950. .people_top_right {
  10951. height: 40px;
  10952. margin-bottom: 10px;
  10953. }
  10954. .people_search {
  10955. display: flex;
  10956. position: relative;
  10957. }
  10958. .people_search>>>.el-input__inner {
  10959. /* height: 25px; */
  10960. width: 95%;
  10961. }
  10962. .search_img {
  10963. width: 20px;
  10964. height: 20px;
  10965. position: absolute;
  10966. right: 30px;
  10967. top: 50%;
  10968. transform: translateY(-50%);
  10969. }
  10970. .search_img>img {
  10971. width: 100%;
  10972. height: 100%;
  10973. }
  10974. .people_name {
  10975. display: flex;
  10976. justify-content: flex-start;
  10977. padding: 20px 10px;
  10978. flex-direction: column;
  10979. flex-wrap: wrap;
  10980. }
  10981. .p_box {
  10982. position: relative;
  10983. }
  10984. .people_name>>>.el-checkbox {
  10985. width: 100%;
  10986. display: flex;
  10987. align-items: center;
  10988. margin-bottom: 10px;
  10989. }
  10990. .people_name>>>.el-checkbox__label {
  10991. text-overflow: ellipsis;
  10992. overflow: hidden;
  10993. width: calc(100%);
  10994. }
  10995. .people_name2>>>.el-checkbox__label {
  10996. width: calc(100% - 130px);
  10997. }
  10998. .inviteCode {
  10999. position: absolute;
  11000. right: 30px;
  11001. color: #237ade;
  11002. top: 0;
  11003. cursor: pointer;
  11004. font-size: 13px;
  11005. }
  11006. .noneInvite {
  11007. color: #a8a8a8;
  11008. }
  11009. .inviteImg {
  11010. position: absolute;
  11011. right: 5px;
  11012. top: 0;
  11013. width: 20px;
  11014. }
  11015. .right_img {
  11016. width: 150px;
  11017. height: 150px;
  11018. margin: 20px auto;
  11019. }
  11020. .right_img>img {
  11021. width: 100%;
  11022. height: 100%;
  11023. }
  11024. .number {
  11025. margin-top: 20px;
  11026. color: #4aa6ff;
  11027. text-decoration: underline;
  11028. }
  11029. .success_button {
  11030. display: flex;
  11031. text-align: center;
  11032. margin: 5% 0 auto;
  11033. flex-direction: row;
  11034. justify-content: center;
  11035. }
  11036. .look_course {
  11037. margin-right: 40px;
  11038. background: #3d67bc;
  11039. width: 200px;
  11040. height: 35px;
  11041. line-height: 35px;
  11042. color: #fff;
  11043. text-align: center;
  11044. font-size: 14px;
  11045. border-radius: 5px;
  11046. cursor: pointer;
  11047. }
  11048. .attend_others {
  11049. width: 250px;
  11050. background: #4fb13c;
  11051. height: 35px;
  11052. line-height: 35px;
  11053. color: #fff;
  11054. text-align: center;
  11055. font-size: 14px;
  11056. border-radius: 5px;
  11057. cursor: pointer;
  11058. }
  11059. .dialog_diy2>>>.el-dialog__body {
  11060. text-align: center;
  11061. }
  11062. .write_togother {
  11063. position: absolute;
  11064. right: 45px;
  11065. display: flex;
  11066. top: 5%;
  11067. }
  11068. .write_people {
  11069. font-size: 14px;
  11070. line-height: 50px;
  11071. padding-right: 10px;
  11072. }
  11073. .end_write {
  11074. background: #3d67bc;
  11075. color: #fff;
  11076. width: 100px;
  11077. height: 35px;
  11078. line-height: 35px;
  11079. text-align: center;
  11080. font-size: 14px;
  11081. border-radius: 5px;
  11082. cursor: pointer;
  11083. }
  11084. .chapter_upload+.chapter_upload {
  11085. /* margin-top: 15px; */
  11086. border-top: 1px solid #E7EBF1;
  11087. }
  11088. .chapter_upload {
  11089. height: 45px;
  11090. position: relative;
  11091. display: flex;
  11092. align-items: center;
  11093. width: 100%;
  11094. min-height: 45px;
  11095. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  11096. /* border-radius: 4px; */
  11097. /* overflow: hidden; */
  11098. box-sizing: border-box;
  11099. }
  11100. .chapter_upload_drag {
  11101. position: absolute;
  11102. cursor: pointer;
  11103. width: 16px;
  11104. height: 16px;
  11105. left: -9px;
  11106. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  11107. background-size: 100% 100%;
  11108. z-index: 10;
  11109. }
  11110. .chapter_upload_t {
  11111. background-color: #fff;
  11112. position: absolute;
  11113. height: 100%;
  11114. top: 0px;
  11115. left: 0px;
  11116. box-sizing: border-box;
  11117. }
  11118. .chapter_upload_o {
  11119. width: 100%;
  11120. height: 100%;
  11121. position: relative;
  11122. z-index: 1;
  11123. }
  11124. .chapter_upload_ic {
  11125. margin: 0 15px 0px auto;
  11126. display: flex;
  11127. align-items: center;
  11128. }
  11129. .chapter_upload_ic_l {
  11130. width: 50px;
  11131. height: 50px;
  11132. float: left;
  11133. }
  11134. .chapter_upload_ic_l div {
  11135. width: 30px;
  11136. height: 35px;
  11137. background: url("../../../assets/icon/icon.png");
  11138. }
  11139. .chapter_upload_ic_edit {
  11140. height: 100%;
  11141. display: flex;
  11142. align-items: center;
  11143. cursor: pointer;
  11144. margin: 0 10px 0 0;
  11145. }
  11146. .chapter_upload_ic_edit div {
  11147. width: 18px;
  11148. height: 18px;
  11149. background-image: url("../../../assets/icon/new/edit_u.png");
  11150. background-size: 100% 100%;
  11151. }
  11152. .chapter_upload_ic_r {
  11153. height: 100%;
  11154. display: flex;
  11155. align-items: center;
  11156. cursor: pointer;
  11157. }
  11158. .chapter_upload_ic_r div {
  11159. width: 18px;
  11160. height: 18px;
  11161. background-image: url("../../../assets/icon/new/delete_u.png");
  11162. background-size: 100% 100%;
  11163. }
  11164. .chapter_upload_n {
  11165. display: flex;
  11166. text-indent: 10px;
  11167. text-decoration: none;
  11168. text-overflow: ellipsis;
  11169. white-space: nowrap;
  11170. overflow: hidden;
  11171. width: 55%;
  11172. margin-left: 10px;
  11173. cursor: pointer;
  11174. margin-top: 2px;
  11175. align-items: center;
  11176. }
  11177. .chapter_upload_l_i2,
  11178. .chapter_upload_l_i3,
  11179. .chapter_upload_l_i8,
  11180. .chapter_upload_l_i6,
  11181. .chapter_upload_l_i12,
  11182. .chapter_upload_l_i14,
  11183. .chapter_upload_l_i13 {
  11184. width: 15px;
  11185. height: 15px;
  11186. background-size: 100% 100%;
  11187. }
  11188. .chapter_upload_l_i2 {
  11189. background-image: url("../../../assets/icon/new/u_word.png");
  11190. }
  11191. .chapter_upload_l_i3 {
  11192. background-image: url("../../../assets/icon/new/u_video.png");
  11193. }
  11194. .chapter_upload_l_i8 {
  11195. background-image: url("../../../assets/icon/new/u_url.png");
  11196. }
  11197. .chapter_upload_l_i14 {
  11198. background-image: url("../../../assets/icon/new/u_source.png");
  11199. }
  11200. .chapter_upload_l_i6 {
  11201. background-image: url("../../../assets/icon/new/u_picture.png");
  11202. }
  11203. .chapter_upload_l_i12 {
  11204. background-image: url("../../../assets/icon/new/u_word.png");
  11205. }
  11206. .chapter_upload_l_i13 {
  11207. background-image: url("../../../assets/icon/new/u_img.png");
  11208. }
  11209. .chapter_upload_noSee {
  11210. background-image: url("../../../assets/icon/new/u_noUpload.png");
  11211. width: 18px;
  11212. height: 18px;
  11213. background-size: 100% 100%;
  11214. display: block;
  11215. margin-right: 10px;
  11216. }
  11217. .chapter_upload_ud {
  11218. display: flex;
  11219. flex-direction: row;
  11220. justify-content: center;
  11221. margin: 0 10px 0 0;
  11222. }
  11223. .chapter_upload_ud>.chapter_upload_up {
  11224. margin-bottom: 0;
  11225. margin-right: 10px;
  11226. }
  11227. .chapter_upload_down,
  11228. .chapter_upload_up {
  11229. width: 20px;
  11230. height: 20px;
  11231. background: #e4eaf2;
  11232. cursor: pointer;
  11233. margin: 0 auto;
  11234. border-radius: 5px;
  11235. display: flex;
  11236. justify-content: center;
  11237. align-items: center;
  11238. }
  11239. .chapter_upload_up::after,
  11240. .chapter_upload_down::after {
  11241. content: '';
  11242. background-image: url('../../../assets/icon/new/downBtn.png');
  11243. width: 13px;
  11244. height: 13px;
  11245. background-size: 100% 100%;
  11246. display: block;
  11247. }
  11248. .chapter_upload_up::after {
  11249. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  11250. }
  11251. .chapter_upload_up {
  11252. margin-bottom: 5px;
  11253. }
  11254. .chapter_upload_ud2 {
  11255. display: flex;
  11256. flex-direction: row;
  11257. justify-content: center;
  11258. margin: 0 10px 0 0;
  11259. }
  11260. .chapter_upload_ud2>.chapter_upload_up2 {
  11261. margin-bottom: 0;
  11262. margin-right: 10px;
  11263. }
  11264. .chapter_upload_down2,
  11265. .chapter_upload_up2 {
  11266. cursor: pointer;
  11267. margin: 0 auto;
  11268. border-radius: 5px;
  11269. display: flex;
  11270. justify-content: center;
  11271. align-items: center;
  11272. color: #717C8D;
  11273. font-size: 14px;
  11274. }
  11275. .chapter_upload_up2{
  11276. margin-right:10px;
  11277. }
  11278. .chapter_upload_up2::before,
  11279. .chapter_upload_down2::before {
  11280. content: '';
  11281. background-image: url('../../../assets/icon/new/c_up.png');
  11282. width: 14px;
  11283. height: 14px;
  11284. background-size: 100% 100%;
  11285. display: block;
  11286. margin-right: 5px;
  11287. }
  11288. .chapter_upload_up2::before {
  11289. background-image: url('../../../assets/icon/new/c_down.png') !important;
  11290. }
  11291. .addWordStyle {
  11292. display: flex;
  11293. flex-direction: row;
  11294. justify-content: flex-start;
  11295. overflow-x: auto;
  11296. white-space: nowrap;
  11297. flex-wrap: wrap;
  11298. }
  11299. /* table 样式 */
  11300. .cont>>>table {
  11301. border-top: 1px solid #ccc;
  11302. border-left: 1px solid #ccc;
  11303. }
  11304. .cont>>>table td,
  11305. .cont>>>table th {
  11306. border-bottom: 1px solid #ccc;
  11307. border-right: 1px solid #ccc;
  11308. /* padding: 20px 5px; */
  11309. padding: 5px 10px;
  11310. max-width: 0px;
  11311. height: 30px;
  11312. vertical-align: baseline;
  11313. }
  11314. .cont>>>table th {
  11315. border-bottom: 2px solid #ccc;
  11316. text-align: center;
  11317. }
  11318. /* blockquote 样式 */
  11319. .cont>>>blockquote {
  11320. display: block;
  11321. border-left: 8px solid #d0e5f2;
  11322. padding: 5px 10px;
  11323. margin: 10px 0;
  11324. line-height: 1.4;
  11325. font-size: 100%;
  11326. background-color: #f1f1f1;
  11327. }
  11328. /* code 样式 */
  11329. .cont>>>code {
  11330. display: inline-block;
  11331. /* *display: inline; */
  11332. zoom: 1;
  11333. background-color: #f1f1f1;
  11334. border-radius: 3px;
  11335. padding: 3px 5px;
  11336. margin: 0 3px;
  11337. }
  11338. .cont>>>pre code {
  11339. display: block;
  11340. }
  11341. /* ul ol 样式 */
  11342. .cont>>>ul,
  11343. ol {
  11344. margin: 10px 0 10px 20px;
  11345. }
  11346. .wordbox {
  11347. display: flex;
  11348. flex-wrap: wrap;
  11349. cursor: pointer;
  11350. width: 100%;
  11351. }
  11352. .checkword {
  11353. width: 22px;
  11354. height: 22px;
  11355. margin: 10px auto 0;
  11356. cursor: pointer;
  11357. }
  11358. .checkword img {
  11359. width: 100%;
  11360. }
  11361. .stepBg {
  11362. display: flex;
  11363. flex-direction: column;
  11364. justify-content: space-between;
  11365. align-items: center;
  11366. background: #fff;
  11367. width: 300px;
  11368. margin: 0 25px 0 0;
  11369. }
  11370. .stepTop {
  11371. min-width: 300px;
  11372. width: 300px;
  11373. /* border-radius: 10px; */
  11374. display: flex;
  11375. flex-direction: column;
  11376. justify-content: flex-start;
  11377. align-items: center;
  11378. flex-wrap: nowrap;
  11379. background: #fff;
  11380. /* top: 18%; */
  11381. }
  11382. .stepTop>div {
  11383. height: 80px;
  11384. width: 85%;
  11385. cursor: pointer;
  11386. margin: 10px 0;
  11387. border-radius: 10px;
  11388. }
  11389. .first,
  11390. .second,
  11391. .third,
  11392. .four {
  11393. background: #4a83d0;
  11394. height: 90px;
  11395. color: #fff;
  11396. display: flex;
  11397. flex-direction: row;
  11398. align-items: center;
  11399. justify-content: center;
  11400. }
  11401. .first>div:nth-child(1),
  11402. .second>div:nth-child(1),
  11403. .third>div:nth-child(1),
  11404. .four>div:nth-child(1) {
  11405. margin: 5px 10px 0 0;
  11406. width: 2rem;
  11407. }
  11408. .firstNo,
  11409. .secondNo,
  11410. .thirdNo,
  11411. .fourNo {
  11412. background: #e7e7e7;
  11413. color: #adadad;
  11414. display: flex;
  11415. flex-direction: row;
  11416. align-items: center;
  11417. justify-content: center;
  11418. }
  11419. .firstNo>div:nth-child(1),
  11420. .secondNo>div:nth-child(1),
  11421. .thirdNo>div:nth-child(1),
  11422. .fourNo>div:nth-child(1) {
  11423. margin: 5px 10px 0 0;
  11424. width: 2rem;
  11425. }
  11426. .uploadWidth>>>.el-upload {
  11427. width: 60px;
  11428. height: 60px;
  11429. position: relative;
  11430. }
  11431. .addPeople {
  11432. background: #fa6060;
  11433. width: 150px;
  11434. height: 40px;
  11435. color: #fff;
  11436. border-radius: 5px;
  11437. text-align: center;
  11438. line-height: 40px;
  11439. font-size: 14px;
  11440. cursor: pointer;
  11441. }
  11442. .kcImg {
  11443. width: 60px;
  11444. margin-left: 10px;
  11445. }
  11446. .zyImg {
  11447. width: 55px;
  11448. margin: 0 10px;
  11449. }
  11450. .deleteZy {
  11451. width: 20px;
  11452. position: absolute;
  11453. top: 5px;
  11454. right: 5px;
  11455. cursor: pointer;
  11456. }
  11457. .kcImg>img,
  11458. .zyImg>img,
  11459. .deleteZy>img {
  11460. width: 100%;
  11461. height: 100%;
  11462. }
  11463. .zyBox {
  11464. display: flex;
  11465. flex-direction: row;
  11466. align-items: center;
  11467. background: #67d37d;
  11468. color: #fff;
  11469. width: 210px;
  11470. margin: 20px 20px 0 0;
  11471. border-radius: 10px;
  11472. height: 70px;
  11473. position: relative;
  11474. }
  11475. .upCss {
  11476. display: flex;
  11477. flex-direction: row;
  11478. justify-content: flex-start;
  11479. }
  11480. .upCss>>>.el-icon-plus {
  11481. position: none !important;
  11482. width: 200px;
  11483. height: 100px;
  11484. display: flex;
  11485. flex-wrap: nowrap;
  11486. flex-direction: column;
  11487. align-items: center;
  11488. justify-content: center;
  11489. border: 1px dashed #ccc;
  11490. min-width: 78px;
  11491. min-height: 100px;
  11492. z-index: 999;
  11493. }
  11494. .upCss>>>.el-upload-list__item-name {
  11495. width: 100px;
  11496. white-space: nowrap;
  11497. overflow: hidden;
  11498. text-overflow: ellipsis;
  11499. }
  11500. .upCss>>>.el-upload-list__item .el-icon-close {
  11501. font-size: 20px;
  11502. z-index: 9999;
  11503. }
  11504. .addStageImg {
  11505. min-width: 25px;
  11506. min-height: 25px;
  11507. width: 25px;
  11508. height: 25px;
  11509. cursor: pointer;
  11510. }
  11511. .addHW {
  11512. width: 28px;
  11513. height: 28px;
  11514. cursor: pointer;
  11515. }
  11516. .addStageImg>img,
  11517. .addHW>img {
  11518. width: 100%;
  11519. height: 100%;
  11520. }
  11521. .addNewPP>>>.el-dialog__body {
  11522. padding: 5px 20px;
  11523. }
  11524. .addNewPP>>>.el-dialog {
  11525. margin-top: 5vh !important;
  11526. }
  11527. .addNewPP2>>>.el-dialog__body {
  11528. padding: 5px 0;
  11529. }
  11530. .addNewPP2>>>.el-dialog {
  11531. margin-top: 5vh !important;
  11532. }
  11533. .isHeight {
  11534. height: 680px;
  11535. }
  11536. .toolChoose {
  11537. display: flex;
  11538. /* width: 100%; */
  11539. flex-direction: row;
  11540. flex-wrap: wrap;
  11541. }
  11542. .tool,
  11543. .isToolChoose {
  11544. display: flex;
  11545. flex-direction: column;
  11546. flex-wrap: nowrap;
  11547. width: fit-content;
  11548. margin: 10px 0 10px 0;
  11549. align-items: center;
  11550. border: 2px solid #dbdbdb00;
  11551. padding: 10px 20px;
  11552. border-radius: 5px;
  11553. cursor: pointer;
  11554. /* box-shadow: 0 0 2px 0px #dedede; */
  11555. position: relative;
  11556. box-sizing: border-box;
  11557. }
  11558. .tool:hover {
  11559. border: 2px solid #a5c7ff;
  11560. }
  11561. .tool:hover>.isCTool {
  11562. opacity: 0.5;
  11563. display: block !important;
  11564. }
  11565. .isToolChoose {
  11566. border: 2px solid #438aff !important;
  11567. box-shadow: 0 0 2px 0px #438aff;
  11568. }
  11569. .isToolChoose>.isCTool {
  11570. opacity: 1 !important;
  11571. }
  11572. .isCTool {
  11573. width: 30px;
  11574. height: 30px;
  11575. position: absolute;
  11576. top: -4px;
  11577. right: -4px;
  11578. }
  11579. .isCTool>img {
  11580. width: 100%;
  11581. height: 100%;
  11582. }
  11583. .tool+.tool {
  11584. margin-right: 45px;
  11585. }
  11586. .whiteBIcon {
  11587. width: 80px;
  11588. cursor: pointer;
  11589. display: flex;
  11590. flex-direction: column;
  11591. flex-wrap: nowrap;
  11592. align-items: center;
  11593. font-size: 14px;
  11594. }
  11595. .whiteBIcon>img,
  11596. .toolIcon>img,
  11597. .arrow>img {
  11598. width: 100%;
  11599. height: 100%;
  11600. }
  11601. .check img {
  11602. width: 20px;
  11603. height: 20px;
  11604. }
  11605. .whiteBIcon>img {
  11606. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11607. border-radius: 15px;
  11608. }
  11609. .whiteBIcon>div:nth-child(2) {
  11610. height: 20px;
  11611. line-height: 20px;
  11612. }
  11613. .check {
  11614. /* width: 20px;
  11615. height: 20px; */
  11616. cursor: pointer;
  11617. margin: 10px 0 0;
  11618. }
  11619. .checkDiv {
  11620. display: flex;
  11621. align-items: center;
  11622. }
  11623. .checkDiv span {
  11624. margin-left: 5px;
  11625. color: #858585;
  11626. }
  11627. .customWidth>>>.el-dialog {
  11628. min-width: 500px !important;
  11629. }
  11630. .a_addBox {
  11631. margin: 10px 0;
  11632. background: #fff;
  11633. padding: 15px;
  11634. /* max-height: 600px; */
  11635. overflow: auto;
  11636. }
  11637. .a_add_box {
  11638. border-bottom: 2px solid #eee;
  11639. padding-bottom: 25px;
  11640. }
  11641. .a_add_head {
  11642. display: flex;
  11643. align-items: center;
  11644. justify-content: space-between;
  11645. margin: 10px 0 0 0;
  11646. font-size: 18px;
  11647. }
  11648. .a_add_checkType {
  11649. margin-top: 10px;
  11650. display: flex;
  11651. font-size: 14px;
  11652. align-items: center;
  11653. }
  11654. .a_add_checkType span {
  11655. box-sizing: border-box;
  11656. padding: 0 0 5px 0;
  11657. cursor: pointer;
  11658. }
  11659. .a_add_checkType span+span {
  11660. margin-left: 10px;
  11661. }
  11662. .a_add_checkType .active {
  11663. border-bottom: 2px solid #409eff;
  11664. color: #409eff;
  11665. }
  11666. .a_add_head .a_add_head_input {
  11667. width: 100%;
  11668. }
  11669. .a_add_head .a_add_head_div {
  11670. display: flex;
  11671. align-items: center;
  11672. justify-content: space-between;
  11673. }
  11674. .a_add_body {
  11675. display: flex;
  11676. /* align-items: center; */
  11677. align-items: flex-end;
  11678. }
  11679. .a_add_input {
  11680. display: flex;
  11681. align-items: center;
  11682. flex-wrap: wrap;
  11683. }
  11684. .a_add_input_choice {
  11685. flex-direction: column;
  11686. margin-right: 10px;
  11687. }
  11688. .a_add_input_choice>>>.el-radio {
  11689. display: flex;
  11690. align-items: center;
  11691. flex-direction: row-reverse;
  11692. margin: 30px 0 0 0;
  11693. position: relative;
  11694. }
  11695. .a_add_input_choice>>>.el-checkbox {
  11696. display: flex;
  11697. align-items: center;
  11698. flex-direction: row-reverse;
  11699. margin: 30px 0 0 0;
  11700. position: relative;
  11701. }
  11702. .width100 {
  11703. width: 100%;
  11704. }
  11705. .a_add_input .a_add_persent {
  11706. width: 100%;
  11707. }
  11708. .a_add_persent_div {
  11709. width: 100%;
  11710. display: flex;
  11711. align-items: center;
  11712. }
  11713. .a_add_persent_div span {
  11714. margin: 5px 0;
  11715. }
  11716. .a_add_persent_div span:nth-child(1) {
  11717. width: 30%;
  11718. }
  11719. .a_add_persent_div span:nth-child(2) {
  11720. width: 7%;
  11721. }
  11722. .a_add_persent_div span:nth-child(3) {
  11723. width: 40%;
  11724. }
  11725. .a_add_body_div {
  11726. display: flex;
  11727. align-items: center;
  11728. justify-content: center;
  11729. /* flex-direction: column; */
  11730. position: absolute;
  11731. right: -20px;
  11732. transform: translateX(100%);
  11733. }
  11734. .a_add_body_div>>>.el-button--primary {
  11735. background: #466b99;
  11736. border: none;
  11737. }
  11738. .all_choose {
  11739. display: flex;
  11740. flex-direction: row;
  11741. align-items: flex-start;
  11742. width: 100%;
  11743. }
  11744. .all_choose>span {
  11745. min-width: fit-content;
  11746. display: block;
  11747. white-space: nowrap;
  11748. overflow: hidden;
  11749. text-overflow: ellipsis;
  11750. margin-right: 20px;
  11751. font-weight: bold;
  11752. font-size: 14px;
  11753. }
  11754. .all_choose>>>.el-checkbox-group {
  11755. display: flex;
  11756. flex-direction: row;
  11757. width: 100%;
  11758. flex-wrap: wrap;
  11759. align-content: center;
  11760. justify-content: flex-start;
  11761. align-items: center;
  11762. margin-top: 3px;
  11763. }
  11764. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11765. margin-bottom: 10px;
  11766. display: flex;
  11767. flex-direction: row;
  11768. align-items: center;
  11769. margin-right: 10px;
  11770. }
  11771. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11772. min-width: 80px;
  11773. overflow: hidden;
  11774. width: 80px;
  11775. text-overflow: ellipsis;
  11776. white-space: nowrap;
  11777. }
  11778. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11779. width: auto;
  11780. }
  11781. .choose>div:nth-child(3)>span {
  11782. /* letter-spacing: 0 !important; */
  11783. }
  11784. .choose {
  11785. display: flex;
  11786. flex-direction: column;
  11787. flex-wrap: nowrap;
  11788. height: 100%;
  11789. justify-content: space-evenly;
  11790. align-items: flex-start;
  11791. }
  11792. .both {
  11793. display: flex;
  11794. flex-direction: row;
  11795. flex-wrap: wrap;
  11796. width: 100%;
  11797. align-items: center;
  11798. justify-content: flex-start;
  11799. margin: 15px 0;
  11800. }
  11801. .notice>>>.el-dialog {
  11802. width: 500px !important;
  11803. text-align: center;
  11804. }
  11805. .notice>>>.el-button {
  11806. margin-top: 20px;
  11807. }
  11808. .whiteBg {
  11809. background: #fff;
  11810. border-radius: 10px;
  11811. }
  11812. .wb_j_box {
  11813. display: flex;
  11814. width: 100%;
  11815. padding: 10px 20px;
  11816. box-sizing: border-box;
  11817. }
  11818. .wb_j_box_content {
  11819. width: calc(100% - 55% - 100px);
  11820. display: flex;
  11821. align-items: center;
  11822. }
  11823. .wb_j_box_p_box {
  11824. max-width: calc(100% - 200px);
  11825. word-break: break-all;
  11826. overflow: hidden;
  11827. margin: 0 0 0 10px;
  11828. font-size: 14px;
  11829. color: #6e6e6e;
  11830. }
  11831. .chooseWho {
  11832. display: flex;
  11833. width: 410px;
  11834. flex-direction: row;
  11835. flex-wrap: nowrap;
  11836. justify-content: space-between;
  11837. padding-bottom: 10px;
  11838. }
  11839. .chooseWho>div {
  11840. cursor: pointer;
  11841. padding-bottom: 10px;
  11842. font-weight: bold;
  11843. }
  11844. .isChooseActive {
  11845. color: #3e88f4;
  11846. border-bottom: 2px solid #2f80f3;
  11847. }
  11848. .toolSort {
  11849. display: flex;
  11850. flex-direction: row;
  11851. flex-wrap: wrap;
  11852. justify-content: flex-start;
  11853. align-items: flex-start;
  11854. }
  11855. .toolSort>div {
  11856. margin-right: 45px;
  11857. }
  11858. .tools {
  11859. width: 100%;
  11860. display: flex;
  11861. flex-direction: column;
  11862. flex-wrap: nowrap;
  11863. align-items: flex-start;
  11864. }
  11865. .leftTools,
  11866. .rightTools {
  11867. width: 50%;
  11868. }
  11869. .leftTools+.leftTools {
  11870. border-top: 1px solid #dbdbdb;
  11871. padding-top: 30px;
  11872. }
  11873. .rightTools {
  11874. display: flex;
  11875. flex-direction: row;
  11876. flex-wrap: nowrap;
  11877. justify-content: space-around;
  11878. }
  11879. .firstToolList {
  11880. display: flex;
  11881. flex-direction: column;
  11882. flex-wrap: nowrap;
  11883. align-items: center;
  11884. }
  11885. .iconList {
  11886. display: flex;
  11887. flex-direction: row;
  11888. flex-wrap: wrap;
  11889. justify-content: flex-start;
  11890. align-items: center;
  11891. margin: 20px 0 5px 0;
  11892. width: 240px;
  11893. min-width: 240px;
  11894. }
  11895. .iconTool {
  11896. display: flex;
  11897. flex-direction: column;
  11898. flex-wrap: nowrap;
  11899. align-items: center;
  11900. justify-content: flex-start;
  11901. margin: 15px 10px;
  11902. }
  11903. .toolIcon {
  11904. width: 50px;
  11905. }
  11906. .taskBorder {
  11907. /*border: 1px solid #e1e1e1; */
  11908. border-radius: 8px;
  11909. margin-top: 10px;
  11910. /* min-height: 1160px; */
  11911. position: relative;
  11912. background: #F0F4FA;
  11913. padding: 20px 20px 0;
  11914. overflow: hidden;
  11915. box-sizing: border-box;
  11916. background: #fff;
  11917. }
  11918. .smallTaskBorder {
  11919. height: 170px;
  11920. min-height: 170px !important;
  11921. overflow: hidden;
  11922. }
  11923. .taskBorder>div {
  11924. /* padding: 30px 0 10px 30px; */
  11925. }
  11926. .addTaskBorder {
  11927. /* border: 2px solid #5E9AFC; */
  11928. border-radius: 8px;
  11929. margin-top: 10px;
  11930. cursor: pointer;
  11931. /* height: 50px;
  11932. line-height: 50px; */
  11933. background: #fff;
  11934. padding: 15px 0;
  11935. display: flex;
  11936. align-items: center;
  11937. justify-content: center;
  11938. }
  11939. /* .addTaskBorder>div {
  11940. margin: 0 auto;
  11941. display: flex;
  11942. align-items: center;
  11943. justify-content: center;
  11944. }
  11945. .addTaskBorder>div>img {
  11946. width: 20px;
  11947. }
  11948. .addTaskBorder>div>span {
  11949. font-size: 16px;
  11950. margin-left: 10px;
  11951. color: #5E9AFC;
  11952. } */
  11953. .funBlock {
  11954. display: flex;
  11955. padding: 15px 0;
  11956. flex-direction: row;
  11957. justify-content: flex-end;
  11958. align-items: center;
  11959. position: absolute;
  11960. right: 15px;
  11961. bottom: 35px;
  11962. z-index: 999;
  11963. }
  11964. .fold {
  11965. display: flex;
  11966. margin: 0 10px;
  11967. flex-direction: row;
  11968. align-items: center;
  11969. cursor: pointer;
  11970. }
  11971. .arrow {
  11972. width: 15px;
  11973. height: 15px;
  11974. margin-left: 10px;
  11975. }
  11976. .addToolFun {
  11977. display: flex;
  11978. width: 150px;
  11979. flex-direction: row;
  11980. align-items: center;
  11981. justify-content: center;
  11982. border: 1px dashed;
  11983. border-radius: 5px;
  11984. height: 50px;
  11985. margin: 20px auto 35px;
  11986. cursor: pointer;
  11987. }
  11988. .addToolFun2 {
  11989. display: flex;
  11990. width: 150px;
  11991. border: 2px dashed #CAD1DC;
  11992. flex-direction: row;
  11993. align-items: center;
  11994. justify-content: center;
  11995. border-radius: 5px;
  11996. height: 50px;
  11997. margin: 0 auto 0;
  11998. cursor: pointer;
  11999. }
  12000. .addToolImg {
  12001. width: 20px;
  12002. height: 20px;
  12003. margin-right: 10px;
  12004. }
  12005. .addToolsDia>>>.el-dialog__body {
  12006. padding: 20px;
  12007. }
  12008. .addToolsDia>>>.el-dialog__body>.toolChoose {
  12009. padding: 0;
  12010. }
  12011. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  12012. padding: 0;
  12013. border-bottom: none;
  12014. margin-bottom: 0;
  12015. }
  12016. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  12017. width: 100%;
  12018. }
  12019. .lineCss>>>.el-form-item__label {
  12020. width: auto !important;
  12021. }
  12022. .lineCss>>>.el-form-item__content {
  12023. margin-left: 50px !important;
  12024. }
  12025. .newSteps {
  12026. display: flex;
  12027. width: 100% !important;
  12028. height: 80px;
  12029. cursor: pointer;
  12030. margin: 10px 0;
  12031. border-radius: 10px;
  12032. flex-direction: row;
  12033. align-content: center;
  12034. justify-content: center;
  12035. align-items: center;
  12036. margin: 0 !important;
  12037. }
  12038. /* 评价样式 */
  12039. .elist_css {
  12040. padding-bottom: 60px !important;
  12041. }
  12042. .elist_title {
  12043. margin-bottom: 10px;
  12044. }
  12045. .elist_input {}
  12046. .elist_input_box {
  12047. display: flex;
  12048. align-items: center;
  12049. flex-wrap: wrap;
  12050. }
  12051. .elist_input_box+.elist_input_box {
  12052. margin-top: 30px;
  12053. }
  12054. .elist_input .elist_input_box input {
  12055. font: inherit;
  12056. color: currentColor;
  12057. /* width: 200px; */
  12058. max-width: 200px;
  12059. padding: 8px 14px;
  12060. display: block;
  12061. min-width: 0;
  12062. outline: none;
  12063. border: 1px solid rgba(0, 0, 0, 0.23);
  12064. border-radius: 4px;
  12065. box-sizing: border-box;
  12066. background: #fff;
  12067. margin: 0 20px 0 0;
  12068. }
  12069. .elist_input .elist_input_box span {
  12070. height: 36px;
  12071. line-height: 36px;
  12072. color: rgb(82, 82, 82);
  12073. min-width: 80px;
  12074. }
  12075. .elist_input .elist_input_box .remove {
  12076. height: 20px;
  12077. width: 20px;
  12078. background-size: 100% 100%;
  12079. background-position: unset;
  12080. margin-left: 5px;
  12081. }
  12082. .elist_input_box>>>.el-rate {
  12083. display: flex;
  12084. height: 36px;
  12085. align-items: center;
  12086. }
  12087. .elist_input_box .elist_inptu_text {
  12088. width: 100%;
  12089. display: flex;
  12090. align-items: center;
  12091. margin-top: 10px;
  12092. }
  12093. .elist_input_box .elist_inptu_text input {
  12094. /* width: 500px; */
  12095. width: 100%;
  12096. max-width: unset;
  12097. }
  12098. .elist_input_box>>>.el-rate__icon {
  12099. font-size: 24px;
  12100. }
  12101. .elist_btn {
  12102. margin-top: 10px;
  12103. }
  12104. .lineTitle {
  12105. /* margin-top: 15px; */
  12106. width: 110px;
  12107. font-size: 16px;
  12108. display: flex;
  12109. align-items: center;
  12110. line-height: 20px;
  12111. }
  12112. .lineTitle::before {
  12113. content: '';
  12114. display: block;
  12115. width: 3px;
  12116. height: 20px;
  12117. background: #0061FF;
  12118. border-radius: 3px;
  12119. margin: 0 5px 0 0;
  12120. }
  12121. .courseTop {
  12122. display: flex;
  12123. flex-direction: row;
  12124. justify-content: space-between;
  12125. align-items: center;
  12126. width: calc(100%);
  12127. margin: 0 auto;
  12128. padding: 10px 0;
  12129. }
  12130. .stepsNav {
  12131. display: flex;
  12132. flex-direction: row;
  12133. justify-content: flex-start;
  12134. align-items: center;
  12135. }
  12136. .stepsWord {
  12137. font-size: 18px;
  12138. color: #fff;
  12139. font-weight: bold;
  12140. margin-left: auto;
  12141. background: rgb(15, 126, 255);
  12142. border-radius: 5px;
  12143. padding: 3px 25px;
  12144. box-sizing: border-box;
  12145. }
  12146. .rightBox {
  12147. width: calc(100%);
  12148. background: #F0F2F5;
  12149. /* border-radius: 10px; */
  12150. overflow: auto;
  12151. height: calc(100% - 120px);
  12152. margin: 0 auto;
  12153. position: relative;
  12154. box-sizing: border-box;
  12155. border-radius: 5px;
  12156. }
  12157. .e_add_top {
  12158. display: flex;
  12159. justify-content: space-between;
  12160. padding: 20px 20px 0 20px;
  12161. border-radius: 3px;
  12162. background: #fff;
  12163. }
  12164. .e_add_title2 {
  12165. display: flex;
  12166. align-items: center;
  12167. }
  12168. .e_add_title2 span {
  12169. width: 40px;
  12170. }
  12171. .e_add_title {
  12172. display: flex;
  12173. align-items: center;
  12174. color: #b8b8b8;
  12175. font-size: 18px;
  12176. position: relative;
  12177. height: 40px;
  12178. }
  12179. .e_add_title span {
  12180. margin-right: 10px;
  12181. }
  12182. .e_add_title .el_input {
  12183. width: 300px;
  12184. }
  12185. .e_add_title>>>.el-input__inner {
  12186. width: 400px;
  12187. }
  12188. .e_add_btn {}
  12189. .e_add_content {
  12190. display: flex;
  12191. width: 100%;
  12192. }
  12193. .e_add_list {
  12194. background: #fff;
  12195. height: 500px;
  12196. width: 210px;
  12197. position: relative;
  12198. margin: 15px 5px 0 0;
  12199. flex-shrink: 0;
  12200. display: flex;
  12201. flex-direction: column;
  12202. }
  12203. .e_add_list_title {
  12204. font-size: 20px;
  12205. width: 100%;
  12206. box-sizing: border-box;
  12207. padding: 15px 40px;
  12208. text-align: center;
  12209. border-bottom: 1px solid #eaeaea;
  12210. position: relative;
  12211. display: flex;
  12212. align-items: center;
  12213. justify-content: center;
  12214. height: 57px;
  12215. background: #f6f6f6;
  12216. }
  12217. .e_add_list_title span {
  12218. overflow: hidden;
  12219. white-space: nowrap;
  12220. text-overflow: ellipsis;
  12221. }
  12222. .e_add_list_title img {
  12223. position: absolute;
  12224. right: 15px;
  12225. width: 25px;
  12226. cursor: pointer;
  12227. top: 50%;
  12228. transform: translateY(-50%);
  12229. }
  12230. .e_add_list_body {
  12231. height: calc(100% - 187px);
  12232. overflow: auto;
  12233. }
  12234. .e_add_list_child {
  12235. width: 100%;
  12236. display: flex;
  12237. align-items: center;
  12238. justify-content: center;
  12239. position: relative;
  12240. box-sizing: border-box;
  12241. padding: 15px 40px;
  12242. text-align: center;
  12243. }
  12244. .e_add_list_child span {
  12245. overflow: hidden;
  12246. white-space: nowrap;
  12247. text-overflow: ellipsis;
  12248. cursor: pointer;
  12249. }
  12250. .e_add_list_child img {
  12251. position: absolute;
  12252. right: 10px;
  12253. width: 21px;
  12254. cursor: pointer;
  12255. top: 50%;
  12256. transform: translateY(-50%);
  12257. }
  12258. .e_add_list_child+.e_add_list_child {
  12259. border-top: 1px solid #eaeaea;
  12260. }
  12261. .e_add_list_child .active {
  12262. color: #409eff;
  12263. }
  12264. .e_add_list_btn {
  12265. position: absolute;
  12266. bottom: 0;
  12267. height: 50px;
  12268. background: rgb(120, 120, 254);
  12269. width: 100%;
  12270. color: #fff;
  12271. font-size: 16px;
  12272. text-align: center;
  12273. line-height: 50px;
  12274. cursor: pointer;
  12275. }
  12276. .e_add_list_detail {
  12277. position: absolute;
  12278. bottom: 0;
  12279. height: 130px;
  12280. background: rgb(120, 120, 254);
  12281. width: 100%;
  12282. color: #fff;
  12283. font-size: 16px;
  12284. display: flex;
  12285. align-items: center;
  12286. justify-content: center;
  12287. }
  12288. .e_add_list_detail textarea {
  12289. height: 90%;
  12290. width: 95%;
  12291. border: none;
  12292. resize: none;
  12293. outline: none;
  12294. padding: 5px;
  12295. box-sizing: border-box;
  12296. }
  12297. .e_add_list_pbox {
  12298. width: 100%;
  12299. }
  12300. .e_add_list_pbox_title {
  12301. height: 50px;
  12302. background: #fff;
  12303. display: flex;
  12304. align-items: center;
  12305. width: 100%;
  12306. box-sizing: border-box;
  12307. padding: 0 20px;
  12308. flex-direction: row;
  12309. flex-wrap: wrap;
  12310. }
  12311. .type_title {
  12312. font-size: 18px;
  12313. font-weight: 700;
  12314. }
  12315. .type_content {
  12316. font-size: 16px;
  12317. margin-left: 30px;
  12318. }
  12319. .type_content span+span {
  12320. margin-left: 20px;
  12321. }
  12322. .type_content span {
  12323. cursor: pointer;
  12324. padding-bottom: 5px;
  12325. box-sizing: border-box;
  12326. }
  12327. .type_content .active {
  12328. color: #409eff;
  12329. border-bottom: 2px solid #409eff;
  12330. }
  12331. .e_add_list_pbox_content {
  12332. height: calc(100% - 50px);
  12333. display: flex;
  12334. align-items: center;
  12335. width: 100%;
  12336. background: #fff;
  12337. }
  12338. .mbCss {
  12339. width: 100%;
  12340. display: flex;
  12341. flex-direction: row;
  12342. flex-wrap: nowrap;
  12343. align-content: center;
  12344. align-items: flex-start;
  12345. justify-content: flex-start;
  12346. }
  12347. .pjCss {
  12348. /* width: 42%; */
  12349. width: calc(100% - 55%);
  12350. display: flex;
  12351. flex-direction: column;
  12352. flex-wrap: nowrap;
  12353. align-items: flex-start;
  12354. margin-top: 1.5%;
  12355. }
  12356. .e_box {
  12357. display: flex;
  12358. flex-wrap: wrap;
  12359. max-height: 500px;
  12360. align-items: flex-start;
  12361. overflow: auto;
  12362. }
  12363. .e_card {
  12364. border: 1px solid #ccc;
  12365. background: #fff;
  12366. margin-right: 20px;
  12367. width: 270px;
  12368. display: flex;
  12369. flex-direction: column;
  12370. align-items: center;
  12371. border-radius: 5px;
  12372. margin-top: 10px;
  12373. text-align: center;
  12374. }
  12375. .e_card_picture {
  12376. margin: 10px 0;
  12377. }
  12378. .e_card_picture>img {
  12379. width: 50px;
  12380. }
  12381. .e_card_name {
  12382. width: 100%;
  12383. padding: 0 10px;
  12384. box-sizing: border-box;
  12385. margin-bottom: 10px;
  12386. overflow: hidden;
  12387. text-overflow: ellipsis;
  12388. white-space: nowrap;
  12389. }
  12390. .e_card_time {
  12391. width: 100%;
  12392. padding: 0 10px;
  12393. box-sizing: border-box;
  12394. font-size: 15px;
  12395. color: #c3c3c3;
  12396. margin-bottom: 10px;
  12397. }
  12398. .e_card_btn {
  12399. height: 40px;
  12400. display: flex;
  12401. align-items: center;
  12402. width: 100%;
  12403. background: rgb(244, 244, 244);
  12404. }
  12405. .e_card_btn:hover {
  12406. background: rgb(221 221 221);
  12407. }
  12408. .e_card_btn span {
  12409. flex: 1 1 auto;
  12410. text-align: center;
  12411. cursor: pointer;
  12412. }
  12413. .addEva {
  12414. border: 1px solid #ccc;
  12415. background: #fff;
  12416. margin-right: 20px;
  12417. width: 270px;
  12418. height: 149px;
  12419. display: flex;
  12420. flex-direction: column;
  12421. align-items: center;
  12422. border-radius: 5px;
  12423. margin-top: 10px;
  12424. text-align: center;
  12425. cursor: pointer;
  12426. justify-content: center;
  12427. }
  12428. .addEva>img {
  12429. width: 50px;
  12430. object-fit: cover;
  12431. }
  12432. .uploadFm {
  12433. border: 1px dashed #ccc;
  12434. width: 100%;
  12435. height: 140px;
  12436. position: relative;
  12437. cursor: pointer;
  12438. display: flex;
  12439. flex-direction: column;
  12440. justify-content: center;
  12441. align-items: center;
  12442. font-size: 14px;
  12443. color: #6e6e6e;
  12444. position:relative;
  12445. }
  12446. .cover_p{
  12447. width: 100% !important;
  12448. height: 100%;
  12449. object-fit: cover;
  12450. }
  12451. .uploadFm2:hover .cover_mask{
  12452. display: flex !important;
  12453. }
  12454. .cover_mask{
  12455. display:none;
  12456. width:100%;
  12457. height:100%;
  12458. position:absolute;
  12459. background:#00000054;
  12460. align-items: center;
  12461. justify-content: center;
  12462. flex-direction: column;
  12463. }
  12464. .cover_mask > img{
  12465. width: 30px;
  12466. }
  12467. .cover_mask > span{
  12468. color: #fff;
  12469. font-size: 12px;
  12470. }
  12471. .uploadFm>img {
  12472. width: 50px;
  12473. }
  12474. .fileCss {
  12475. width: 100%;
  12476. display: flex;
  12477. flex-direction: row;
  12478. flex-wrap: nowrap;
  12479. justify-content: space-around;
  12480. align-items: center;
  12481. padding-top: 15px;
  12482. }
  12483. .fileCss>div {
  12484. display: flex;
  12485. flex-direction: column;
  12486. align-items: center;
  12487. }
  12488. .fileCss .spanName {
  12489. margin-top: 10px
  12490. }
  12491. .sysPicBox {
  12492. display: flex;
  12493. flex-direction: row;
  12494. flex-wrap: wrap;
  12495. align-content: flex-start;
  12496. height: 435px;
  12497. overflow: auto;
  12498. position: relative;
  12499. }
  12500. .picNone {
  12501. position: absolute;
  12502. left: 50%;
  12503. top: 45%;
  12504. transform: translate(-50%, -50%);
  12505. width: fit-content;
  12506. color: #9c9c9c;
  12507. }
  12508. .sysPic {
  12509. width: 200px;
  12510. height: 115px;
  12511. margin: 0 20px 20px 0;
  12512. cursor: pointer;
  12513. }
  12514. .sysPic>img,
  12515. .isSysPic>img,
  12516. .deletePic>img {
  12517. width: 100%;
  12518. height: 100%;
  12519. object-fit: cover;
  12520. }
  12521. .isSysPic {
  12522. width: 200px;
  12523. height: 115px;
  12524. position: relative;
  12525. }
  12526. .deletePic {
  12527. width: 20px;
  12528. height: 20px;
  12529. position: absolute;
  12530. top: 0;
  12531. right: 0;
  12532. cursor: pointer;
  12533. }
  12534. .select_box1 {
  12535. height: 100%;
  12536. }
  12537. .select_box1_img {
  12538. background: #fff;
  12539. border-radius: 5px;
  12540. padding: 15px;
  12541. box-sizing: border-box;
  12542. margin-bottom: 20px;
  12543. }
  12544. .select_box1_title {
  12545. padding: 0 0 15px 0;
  12546. border-bottom: 1px solid #eee;
  12547. margin-bottom: 15px;
  12548. }
  12549. .select_box1_title span:nth-child(1) {
  12550. font-size: 16px;
  12551. margin-right: 20px;
  12552. color: #000;
  12553. }
  12554. .select_box1_title span:nth-child(2) {
  12555. font-size: 14px;
  12556. color: rgb(112, 112, 112);
  12557. }
  12558. .select_box1_add_img {}
  12559. .select_box1_select {
  12560. background: #fff;
  12561. border-radius: 5px;
  12562. padding: 15px;
  12563. box-sizing: border-box;
  12564. height: calc(100% - 200px);
  12565. overflow: auto;
  12566. }
  12567. .select_box2 {
  12568. height: 100%;
  12569. }
  12570. .select_box2_title {
  12571. background: #fff;
  12572. border-radius: 5px;
  12573. padding: 5px 10px;
  12574. box-sizing: border-box;
  12575. margin-bottom: 10px;
  12576. }
  12577. .select_box2_box {
  12578. display: flex;
  12579. height: calc(100% - 30px);
  12580. }
  12581. .select_box2_img {
  12582. width: calc(100% - 310px);
  12583. height: 100%;
  12584. overflow: auto;
  12585. background: #fff;
  12586. border-radius: 5px;
  12587. }
  12588. .select_box2_img img {
  12589. width: 100%;
  12590. }
  12591. .select_box2_answer {
  12592. background: #fff;
  12593. margin-left: 10px;
  12594. border-radius: 5px;
  12595. width: 300px;
  12596. overflow: auto;
  12597. height: 100%;
  12598. display: flex;
  12599. flex-direction: column;
  12600. align-items: center;
  12601. padding-top: 10px;
  12602. box-sizing: border-box;
  12603. }
  12604. .select_box2_answer_box {
  12605. margin: 0 0 10px 0;
  12606. width: 85%;
  12607. }
  12608. .rate_textarea {
  12609. font: inherit;
  12610. color: currentColor;
  12611. width: 100%;
  12612. padding: 8px 14px;
  12613. display: block;
  12614. min-width: 0;
  12615. outline: none;
  12616. border: 1px solid rgba(0, 0, 0, 0.23);
  12617. border-radius: 4px;
  12618. box-sizing: border-box;
  12619. background: #fff;
  12620. margin: 0 20px 0 0;
  12621. resize: none;
  12622. }
  12623. .select_answer_title {
  12624. text-align: left;
  12625. width: 85%;
  12626. margin-bottom: 10px;
  12627. font-size: 18px;
  12628. color: #8e8e8e;
  12629. }
  12630. .mask {
  12631. background-color: rgb(0 0 0 / 30%);
  12632. /* position: fixed; */
  12633. position: absolute;
  12634. top: 0;
  12635. left: 0;
  12636. width: 100%;
  12637. height: 100%;
  12638. z-index: 90;
  12639. display: flex;
  12640. align-items: center;
  12641. justify-content: center;
  12642. }
  12643. .progressBox {
  12644. width: 300px;
  12645. height: 150px;
  12646. background: #fff;
  12647. border-radius: 10px;
  12648. box-shadow: 0 0 6px 1px #bfbfbf;
  12649. display: flex;
  12650. align-items: center;
  12651. justify-content: center;
  12652. flex-direction: column;
  12653. position: relative;
  12654. color: #6c6c6c;
  12655. }
  12656. .progressBox>>>.el-progress-bar__outer {
  12657. background-color: #d1dfff !important;
  12658. }
  12659. .progressBox .lbox {
  12660. height: 50px;
  12661. font-size: 19px;
  12662. display: flex;
  12663. align-items: center;
  12664. color: #747474;
  12665. }
  12666. .progressBox .lbox img {
  12667. width: 40px;
  12668. margin-right: 20px;
  12669. }
  12670. .closeCss {
  12671. position: absolute;
  12672. top: 8px;
  12673. right: 8px;
  12674. cursor: pointer;
  12675. width: 20px;
  12676. height: 20px;
  12677. }
  12678. .closeCss>img {
  12679. width: 100%;
  12680. height: 100%;
  12681. }
  12682. .updateTips::after {
  12683. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12684. font-size: 14px;
  12685. margin-left: 20px;
  12686. font-weight: 400;
  12687. color: #ff3a3a;
  12688. }
  12689. .updateMask {
  12690. width: 100%;
  12691. z-index: 3;
  12692. top: 0;
  12693. position: absolute;
  12694. /* background-color: rgba(0,0,0,.3); */
  12695. }
  12696. .t_j_box {
  12697. display: flex;
  12698. }
  12699. .t_j_box span:nth-child(1) {
  12700. width: 15%;
  12701. overflow: hidden;
  12702. margin-right: 10px;
  12703. text-overflow: ellipsis;
  12704. white-space: nowrap;
  12705. }
  12706. .t_j_box span:nth-child(2) {
  12707. width: 30%;
  12708. overflow: hidden;
  12709. text-overflow: ellipsis;
  12710. margin-right: 10px;
  12711. }
  12712. .t_j_box span:nth-child(3) {
  12713. max-width: calc(55% - 20px);
  12714. overflow: hidden;
  12715. text-overflow: ellipsis;
  12716. }
  12717. .sentenBox {
  12718. background: #fff;
  12719. height: 600px;
  12720. overflow: auto;
  12721. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12722. background-position: 102%;
  12723. background-repeat: no-repeat;
  12724. background-size: 60%;
  12725. }
  12726. .sentenBox>.sentenContent {
  12727. padding-bottom: 10px;
  12728. width: 97%;
  12729. margin: 0 auto;
  12730. }
  12731. .sentenBox>.sentenContent+.sentenContent {
  12732. border-top: 1px solid #cbcbcb;
  12733. }
  12734. .addSen {
  12735. background: #409efe;
  12736. width: 90px;
  12737. color: #fff;
  12738. height: 35px;
  12739. text-align: center;
  12740. line-height: 35px;
  12741. border-radius: 5px;
  12742. float: right;
  12743. margin: 10px 20px 0 0;
  12744. cursor: pointer;
  12745. }
  12746. .sentenTop {
  12747. display: flex;
  12748. flex-direction: row;
  12749. flex-wrap: nowrap;
  12750. align-items: center;
  12751. }
  12752. .sentenTop::before {
  12753. content: attr(index);
  12754. background: #3681fc;
  12755. border-radius: 50%;
  12756. color: #fff;
  12757. width: 25px;
  12758. height: 25px;
  12759. min-width: 25px;
  12760. min-height: 25px;
  12761. text-align: center;
  12762. line-height: 25px;
  12763. margin-right: 5px;
  12764. }
  12765. .sentenTop>div:nth-child(2) {
  12766. width: 300px;
  12767. margin: 0 15px;
  12768. }
  12769. .sentenTop>div:nth-child(3) {
  12770. background: #409efe;
  12771. color: #fff;
  12772. width: 65px;
  12773. height: 35px;
  12774. text-align: center;
  12775. line-height: 35px;
  12776. border-radius: 5px;
  12777. cursor: pointer;
  12778. }
  12779. .cardList {
  12780. padding: 30px 0 20px 0;
  12781. display: flex;
  12782. flex-direction: row;
  12783. flex-wrap: wrap;
  12784. align-items: center;
  12785. box-sizing: border-box;
  12786. border-bottom: 1px solid #f4f4f4;
  12787. width: 98%;
  12788. margin: 0 auto;
  12789. }
  12790. .rightCardList {
  12791. display: flex;
  12792. flex-wrap: wrap;
  12793. }
  12794. .cardBox {
  12795. display: flex;
  12796. flex-direction: row;
  12797. flex-wrap: wrap;
  12798. align-items: center;
  12799. align-content: center;
  12800. }
  12801. .isCard,
  12802. .isCard,
  12803. .isCard1 {
  12804. width: auto;
  12805. padding: 0 20px;
  12806. height: 65px;
  12807. text-align: center;
  12808. line-height: 65px;
  12809. font-size: 14px;
  12810. cursor: pointer;
  12811. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12812. background-size: 100% 100%;
  12813. position: relative;
  12814. z-index: 99;
  12815. }
  12816. .isCard1 {
  12817. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12818. }
  12819. .isCard:hover .deleteWord {
  12820. display: block;
  12821. }
  12822. .isCard>div:nth-child(1),
  12823. .isCard1>div:nth-child(1) {
  12824. white-space: nowrap;
  12825. overflow: hidden;
  12826. text-overflow: ellipsis;
  12827. width: 100%;
  12828. margin: 0 auto;
  12829. }
  12830. .card {
  12831. width: 140px;
  12832. height: 65px;
  12833. }
  12834. .card>img {
  12835. width: 100%;
  12836. height: 100%;
  12837. }
  12838. .rightCardBox {
  12839. width: 98%;
  12840. margin: 10px auto 0;
  12841. }
  12842. .rightCardBox>div:nth-child(1) {
  12843. margin-bottom: 10px;
  12844. }
  12845. .cardCss {
  12846. display: flex;
  12847. flex-direction: column;
  12848. flex-wrap: nowrap;
  12849. align-items: center;
  12850. border-bottom: 3px solid #b4c3d3;
  12851. padding: 0 0 5px 0;
  12852. /* margin-right: 10px; */
  12853. }
  12854. .cardCss>div:nth-child(2) {
  12855. background: #5b7b9d;
  12856. color: #fff;
  12857. width: 20px;
  12858. height: 20px;
  12859. border-radius: 50%;
  12860. text-align: center;
  12861. line-height: 20px;
  12862. }
  12863. .sentenTopBox {
  12864. display: flex;
  12865. flex-direction: row;
  12866. flex-wrap: nowrap;
  12867. align-items: center;
  12868. justify-content: space-between;
  12869. padding: 55px 0 0 20px;
  12870. box-sizing: border-box;
  12871. width: 85%;
  12872. }
  12873. .stepsBottom {
  12874. width: 85%;
  12875. margin-bottom: 20px;
  12876. box-shadow: 0 0 10px 10px #f7f7f7;
  12877. background: #f7f7f7;
  12878. border-radius: 10px;
  12879. overflow: hidden;
  12880. }
  12881. .course_left {
  12882. width: 300px;
  12883. height: auto;
  12884. position: relative;
  12885. }
  12886. .stepsBottom2 {
  12887. width: 300px;
  12888. margin: 10px 0;
  12889. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12890. /* background: #f7f7f7; */
  12891. border-radius: 8px;
  12892. overflow: hidden;
  12893. height: fit-content;
  12894. position: relative;
  12895. /* transition: all .5s; */
  12896. }
  12897. .navTop {
  12898. background: #53749b;
  12899. color: #fff;
  12900. height: 40px;
  12901. line-height: 40px;
  12902. padding-left: 15px;
  12903. font-size: 18px;
  12904. }
  12905. .navBottom {
  12906. background: #fff;
  12907. height: calc(100vh - 210px);
  12908. overflow: auto;
  12909. }
  12910. .navTask {
  12911. display: flex;
  12912. flex-direction: row;
  12913. flex-wrap: nowrap;
  12914. align-items: center;
  12915. padding: 10px 10px 10px 0;
  12916. cursor: pointer;
  12917. background: #ffffff;
  12918. width: 95%;
  12919. margin: 10px auto 0;
  12920. box-sizing: border-box;
  12921. border-radius: 5px;
  12922. flex-wrap: wrap;
  12923. position: relative;
  12924. }
  12925. .navTask::before {
  12926. content: '';
  12927. display: block;
  12928. width: 16px;
  12929. height: 16px;
  12930. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12931. background-size: 100%;
  12932. margin-left: 23px;
  12933. }
  12934. .isNavOpen::before {
  12935. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12936. }
  12937. .dragOverTop {
  12938. border-top: 2px solid #0061FF !important;
  12939. border-radius: 0 !important;
  12940. margin-top: 10px;
  12941. }
  12942. .dragOverBottom {
  12943. border-bottom: 2px solid #0061FF !important;
  12944. border-radius: 0 !important;
  12945. margin-top: 10px;
  12946. }
  12947. .dragOverTop2 {
  12948. border-top: 2px solid #0061FF !important;
  12949. border-radius: 0 !important;
  12950. }
  12951. .dragOverBottom2 {
  12952. border-bottom: 2px solid #0061FF !important;
  12953. border-radius: 0 !important;
  12954. }
  12955. .isNavTask {
  12956. /* background: #3681FC; */
  12957. background: #EEF3FB;
  12958. }
  12959. .isNavTask>.chapter_upload_drag {
  12960. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12961. }
  12962. .isNavTask .nt_taskName {
  12963. /* color: #fff !important; */
  12964. font-weight: bold !important;
  12965. color: #0061FF !important;
  12966. }
  12967. .isNavTask .nt_taskTitle {
  12968. /* color: #AECCFE !important; */
  12969. font-weight: bold !important;
  12970. color: #0061FF !important;
  12971. }
  12972. .navTask .nt_taskBox {
  12973. width: calc(100% - 40px);
  12974. padding: 0 0 0 5px;
  12975. box-sizing: border-box;
  12976. box-sizing: border-box;
  12977. display: flex;
  12978. flex-direction: row;
  12979. flex-wrap: nowrap;
  12980. align-items: baseline;
  12981. }
  12982. .navTask .nt_taskTitle {
  12983. /* color: #717C8D; */
  12984. color: #060E17;
  12985. line-height: 25px;
  12986. font-size: 16px;
  12987. min-width: 50px;
  12988. }
  12989. .navTask .nt_taskName {
  12990. /* color: #fff; */
  12991. /* max-width: 130px; */
  12992. /* width: 100%; */
  12993. max-width: calc(100% - 50px);
  12994. white-space: nowrap;
  12995. overflow: hidden;
  12996. text-overflow: ellipsis;
  12997. font-size: 16px;
  12998. color: #060E17;
  12999. /* color: #0E1E33; */
  13000. }
  13001. .gjBox {
  13002. width: calc(100% - 25px);
  13003. padding: 0 0 0 0;
  13004. box-sizing: border-box;
  13005. border-left: 1px solid #CAD1DC;
  13006. margin-left: 25px;
  13007. }
  13008. .gjBox>div {
  13009. display: flex;
  13010. align-items: center;
  13011. }
  13012. .gjBox>div::before {
  13013. content: '';
  13014. height: 1px;
  13015. width: 10px;
  13016. background: #CAD1DC;
  13017. display: block;
  13018. margin-right: 5px;
  13019. }
  13020. .gjCss {
  13021. display: flex;
  13022. flex-direction: row;
  13023. flex-wrap: nowrap;
  13024. align-items: center;
  13025. padding: 15px 0;
  13026. box-sizing: border-box;
  13027. font-size: 14px;
  13028. cursor: pointer;
  13029. }
  13030. .isGjCss {
  13031. color: #0061ff;
  13032. }
  13033. .groupBox {}
  13034. .groupContent+.groupContent {
  13035. margin-top: 30px;
  13036. }
  13037. .groupTitle {
  13038. font-size: 24px;
  13039. color: rgb(80, 80, 80);
  13040. margin-bottom: 20px;
  13041. }
  13042. .groupName {
  13043. display: flex;
  13044. align-items: center;
  13045. }
  13046. .groupn {
  13047. font-size: 15px;
  13048. margin-right: 10px;
  13049. }
  13050. .groupName+.groupName {
  13051. margin-top: 15px;
  13052. }
  13053. .groupBtn {
  13054. margin-left: 10px;
  13055. }
  13056. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13057. text-align: left;
  13058. }
  13059. .radioBox>div {
  13060. margin: 10px 0 0 10px;
  13061. }
  13062. .radioBox>>>.el-radio__input,
  13063. .radioBox>>>.el-checkbox__inner {
  13064. margin-left: 10px;
  13065. }
  13066. .radioBox>>>.el-radio__label,
  13067. .radioBox>>>.el-checkbox__label {
  13068. display: flex;
  13069. align-items: center;
  13070. }
  13071. .inImg {
  13072. width: 50px;
  13073. }
  13074. .inImg>img {
  13075. width: 100%;
  13076. height: 100%;
  13077. object-fit: cover;
  13078. }
  13079. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13080. height: auto;
  13081. padding: 10px;
  13082. margin: 0;
  13083. }
  13084. .upCss>>>.el-upload-list {
  13085. width: 100%;
  13086. }
  13087. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13088. width: 100%;
  13089. height: 120px;
  13090. object-fit: contain;
  13091. background: unset;
  13092. margin-left: 0;
  13093. }
  13094. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13095. display: none;
  13096. }
  13097. .tcMember+.tcMember::before {
  13098. content: "、";
  13099. }
  13100. .xzUpImg {
  13101. width: 25px;
  13102. height: 25px;
  13103. min-width: 25px;
  13104. min-height: 25px;
  13105. cursor: pointer;
  13106. margin: 0 10px;
  13107. }
  13108. .xzUpImg>img {
  13109. width: 100%;
  13110. height: 100%;
  13111. }
  13112. .closeCss {
  13113. position: absolute;
  13114. top: 8px;
  13115. right: 8px;
  13116. cursor: pointer;
  13117. width: 20px;
  13118. height: 20px;
  13119. }
  13120. .closeCss>img {
  13121. width: 100%;
  13122. height: 100%;
  13123. }
  13124. .moveBtn {
  13125. display: flex;
  13126. flex-direction: row;
  13127. flex-wrap: nowrap;
  13128. align-items: center;
  13129. width: 55px;
  13130. }
  13131. .timuUpImg {
  13132. display: flex;
  13133. flex-direction: row;
  13134. align-items: center;
  13135. width: 100%;
  13136. margin-right: 10px;
  13137. }
  13138. .timuUpImg>div:nth-child(1) {
  13139. margin-right: 10px;
  13140. display: flex;
  13141. align-items: center;
  13142. width: 100%;
  13143. }
  13144. .timuImgBox {
  13145. margin: 10px 0;
  13146. display: flex;
  13147. flex-direction: column;
  13148. flex-wrap: wrap;
  13149. align-items: flex-start;
  13150. }
  13151. .timuImg {
  13152. width: 100px;
  13153. margin: 5px 0;
  13154. cursor: pointer;
  13155. position: relative;
  13156. }
  13157. .timuImg:hover .deleteWord {
  13158. display: block;
  13159. }
  13160. .deleteWord {
  13161. width: 25px;
  13162. height: 25px;
  13163. position: absolute;
  13164. right: -5px;
  13165. top: -5px;
  13166. cursor: pointer;
  13167. display: none;
  13168. }
  13169. .timuImg>img,
  13170. .deleteWord>img {
  13171. width: 100%;
  13172. height: 100%;
  13173. object-fit: cover;
  13174. }
  13175. .e_add_delete {
  13176. cursor: pointer;
  13177. margin-left: 10px;
  13178. }
  13179. .pType_box {
  13180. margin-top: 30px;
  13181. align-items: flex-end;
  13182. }
  13183. .noneBox {
  13184. height: 100%;
  13185. width: 100%;
  13186. display: flex;
  13187. align-items: center;
  13188. justify-content: center;
  13189. margin-top: 150px;
  13190. }
  13191. .noneBox>img {
  13192. width: 300px;
  13193. }
  13194. .textarea_css {
  13195. display: block;
  13196. resize: none;
  13197. padding: 10px 15px;
  13198. line-height: 1.5;
  13199. box-sizing: border-box;
  13200. width: 100%;
  13201. font-size: 14px;
  13202. color: #606266;
  13203. background-color: #FFF;
  13204. background-image: none;
  13205. border: 1px solid #DCDFE6;
  13206. border-radius: 4px;
  13207. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13208. outline: none;
  13209. overflow: hidden;
  13210. height: 46px;
  13211. font-family: 'Microsoft YaHei';
  13212. }
  13213. .textarea_css::-webkit-input-placeholder {
  13214. color: #C0C4CC
  13215. }
  13216. .textarea_css:focus {
  13217. border-color: #409EFF;
  13218. outline: 0;
  13219. }
  13220. .moveBtn2 {
  13221. flex-direction: column;
  13222. width: fit-content;
  13223. margin: 0 10px 0 10px;
  13224. }
  13225. .moveBtn2 .chapter_upload_down,
  13226. .moveBtn2 .chapter_upload_up {
  13227. width: 16px;
  13228. height: 16px;
  13229. }
  13230. .moveBtn2 .chapter_upload_up::after,
  13231. .moveBtn2 .chapter_upload_down::after {
  13232. width: 10px;
  13233. height: 10px;
  13234. }
  13235. .fullStyle>>>.el-dialog__body {
  13236. height: calc(100% - 125px) !important;
  13237. box-sizing: border-box;
  13238. }
  13239. .fullStyle>>>.el-dialog {
  13240. width: 100% !important;
  13241. max-width: 100% !important;
  13242. height: 100% !important;
  13243. margin: 0 !important;
  13244. }
  13245. .fullStyle {
  13246. width: 100% !important;
  13247. max-width: 100% !important;
  13248. height: 100% !important;
  13249. margin: 0 auto !important;
  13250. }
  13251. .wb_j_box_btn {
  13252. width: calc(100% - 30px);
  13253. display: flex;
  13254. height: 40px;
  13255. border: 1.5px solid #CAD1DC;
  13256. border-radius: 4px;
  13257. box-sizing: border-box;
  13258. align-items: center;
  13259. font-size: 14px;
  13260. cursor: pointer;
  13261. overflow: hidden;
  13262. }
  13263. .wb_j_box_btn:hover {
  13264. border: 1.5px solid #0061FF;
  13265. }
  13266. .wb_j_box_title {
  13267. background: #F0F4FA;
  13268. height: 100%;
  13269. line-height: 40px;
  13270. width: 90px;
  13271. text-align: center;
  13272. color: #060E17;
  13273. border-right: 1.5px solid #CAD1DC;
  13274. box-sizing: border-box;
  13275. }
  13276. .wb_j_box_btn_c {
  13277. width: calc(100% - 90px);
  13278. padding: 0 35px 0 10px;
  13279. box-sizing: border-box;
  13280. position: relative;
  13281. }
  13282. .wb_j_box_span {
  13283. width: 100%;
  13284. overflow: hidden;
  13285. white-space: nowrap;
  13286. text-overflow: ellipsis;
  13287. word-wrap: break-word;
  13288. color: #717C8D;
  13289. }
  13290. .wb_j_box_arrow {
  13291. content: '';
  13292. width: 14px;
  13293. height: 14px;
  13294. background: url(../../../assets/icon/new/u_arrow.png);
  13295. background-size: 100% 100%;
  13296. position: absolute;
  13297. right: 12px;
  13298. top: 50%;
  13299. transform: translateY(-50%);
  13300. }
  13301. .check_classBox {
  13302. height: 400px;
  13303. display: flex;
  13304. border-top: 1.5px solid #E7EBF1;
  13305. border-bottom: 1.5px solid #E7EBF1;
  13306. }
  13307. .check_class_right {
  13308. width: 130px;
  13309. border-right: 1px solid #E7EBF1;
  13310. display: flex;
  13311. align-items: center;
  13312. flex-direction: column;
  13313. height: 100%;
  13314. overflow: auto;
  13315. padding: 15px 0;
  13316. box-sizing: border-box;
  13317. }
  13318. .check_class {
  13319. width: 85%;
  13320. border-radius: 5px;
  13321. height: 30px;
  13322. line-height: 30px;
  13323. text-align: center;
  13324. padding: 0 10px;
  13325. box-sizing: border-box;
  13326. cursor: pointer;
  13327. white-space: nowrap;
  13328. overflow: hidden;
  13329. text-overflow: ellipsis;
  13330. }
  13331. .check_class.activeX {
  13332. background: #E0EAFB;
  13333. color: #3681FC;
  13334. font-weight: 700;
  13335. }
  13336. .check_class+.check_class {
  13337. margin-top: 15px;
  13338. }
  13339. .check_class_left {
  13340. background: #FAFAFA;
  13341. width: calc(100% - 130px);
  13342. padding: 15px;
  13343. box-sizing: border-box;
  13344. }
  13345. .check_class_all_box {
  13346. display: flex;
  13347. margin-bottom: 10px;
  13348. }
  13349. .all_check {
  13350. display: flex;
  13351. align-items: center;
  13352. padding: 2px 0 0;
  13353. margin-left: 10px;
  13354. }
  13355. .all_check>>>.el-checkbox__label {
  13356. line-height: unset;
  13357. }
  13358. .check_class_left_title {
  13359. font-size: 16px;
  13360. font-weight: 700;
  13361. }
  13362. .check_class_item {
  13363. display: flex;
  13364. flex-wrap: wrap;
  13365. height: calc(100% - 45px);
  13366. overflow: auto;
  13367. justify-content: flex-start;
  13368. align-items: flex-start;
  13369. align-content: flex-start;
  13370. }
  13371. .class_item:first-child {
  13372. margin: 0 15px 15px 67px;
  13373. }
  13374. .class_item {
  13375. margin: 0 15px 15px 0;
  13376. }
  13377. .class_item:hover>>>.el-checkbox__label {
  13378. color: #409EFF;
  13379. }
  13380. .class_item>>>.el-checkbox__label {
  13381. color: #0E1E33;
  13382. }
  13383. .class_item:hover>>>.el-checkbox__inner {
  13384. border-color: #409EFF;
  13385. }
  13386. .class_item>>>.el-checkbox,
  13387. .class_item>>>.el-checkbox__input {
  13388. display: flex;
  13389. align-items: center;
  13390. }
  13391. </style>