addCourse.vue 502 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950
  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="padding: 0;"
  29. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1"
  30. @mousewheel="scrollChange">
  31. <div class="updateMask" :style="{
  32. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  33. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  34. <div class="whiteBg" style="background:unset;padding: 0;">
  35. <div>
  36. <div class="basic_box" style="padding: 0;">
  37. <div class="big_box">
  38. <div class="left_first">
  39. <div :class="{
  40. updateTips: cid && userid != courseUserid && role != '1',
  41. }">
  42. <div style="width: 100%;">
  43. <div class="course_input_box">
  44. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  45. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  46. 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;" />
  47. <!-- background: #f6f6f6; -->
  48. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  49. style="justify-content: center;width: 200px;"></el-switch>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  54. <span>类型</span>
  55. <!-- 学科+ 主题+ 未来+ -->
  56. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  57. style="display: flex; align-items: center">
  58. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  59. <el-radio :label="item.name">{{
  60. item.name
  61. }}</el-radio>
  62. </div>
  63. </el-radio-group>
  64. </div>
  65. <div class="both">
  66. <div class="choose">
  67. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  68. <span v-if="CourseTypeJson[item.id].length > 0 &&
  69. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  70. ? pTypeCheck.indexOf(item.id) != -1
  71. : true)
  72. ">{{ item.name }}:</span>
  73. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  74. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  75. ? pTypeCheck.indexOf(item.id) != -1
  76. : true)
  77. ">
  78. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  79. item1.name }}</el-checkbox>
  80. </el-checkbox-group>
  81. <!-- <div
  82. v-else
  83. style="font-size: 14px; margin-left: -8px"
  84. >
  85. 暂无
  86. </div> -->
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right_first">
  92. <!-- <div class="ai_box">
  93. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  94. </div> -->
  95. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  96. <div style="width: 100%;">
  97. <div class="uploadFm" @click="choosePicVisible = true" :class="{uploadFm2:cover.length}">
  98. <img src="../../../assets/icon/addPoster.png" alt="" v-if="cover.length == 0"/>
  99. <img :src="cover[0].url" alt="" class="cover_p" v-else/>
  100. <div v-if="cover.length == 0">点击添加封面</div>
  101. <div class="cover_mask"><img src="../../../assets/icon/new/cover_update.png" /><span style="margin-top:5px;">修改封面</span></div>
  102. </div>
  103. <!-- <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  104. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  105. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  106. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  107. <i class="el-icon-plus"></i>
  108. </el-upload> -->
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="whiteBg" style="margin-top: 10px">
  116. <div class="wb_j_box">
  117. <div class="wb_j_box_content">
  118. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="
  119. (dialogVisibleClass = true),
  120. (classSearch = ''),
  121. (gradeId = ''),
  122. getClass()
  123. ">添加班级</button>
  124. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  125. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  126. getClassC(tc) }}</span>
  127. </div> -->
  128. <div class="wb_j_box_btn" @click="
  129. (dialogVisibleClass = true),
  130. (classSearch = ''),
  131. (gradeId = ''),
  132. getClass()
  133. ">
  134. <div class="wb_j_box_title">授课班级</div>
  135. <div class="wb_j_box_btn_c">
  136. <el-tooltip effect="dark" :content="getListClassC(checkboxList2)" placement="top"
  137. v-if="checkboxList2.length" popper-class="text_tooltip2">
  138. <div class="wb_j_box_span">{{ getListClassC(checkboxList2) }}</div>
  139. </el-tooltip>
  140. <div v-else class="wb_j_box_span">请选择授课班级</div>
  141. <div class="wb_j_box_arrow"></div>
  142. </div>
  143. </div>
  144. </div>
  145. <div style="margin-left: auto;">
  146. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  151. <div class="right_title">课程简要描述</div>
  152. <div style="width: 95%; padding: 15px 0px 15px 20px">
  153. <div style="width: 55%">
  154. <textarea rows="8" class="binfo_input" cols v-model="courseText"></textarea>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;">
  159. <!-- <div class="right_title">
  160. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  161. </div>
  162. <span style="margin:0 10px">上传课程内容</span>
  163. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px"
  164. v-if="isPasteTask">智能粘贴</button>
  165. </div> -->
  166. <div style="display: flex">
  167. <div class="course_left">
  168. <div class="stepsBottom2">
  169. <div class="navBottom" :style="{ height: heightPx }">
  170. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  171. .taskJson" :key="tIndex" :class="{
  172. dragOverTop: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex > tIndex,
  173. dragOverBottom: newIndex === tIndex && typeIndex == 'task-'+tIndex && oldIndex < tIndex,
  174. }">
  175. <div @dragstart="dragTaskStart(t, tIndex)" @dragover.prevent="dragTaskOver(tIndex)"
  176. @dragend="dragTaskEnd()" :draggable="isdrag == 'task-'+tIndex" @click="goToTask(tIndex)" class="navTask" :class="{
  177. isNavTask:
  178. isClickColor > 0 && isClickColor == tIndex + 1,
  179. isNavOpen: t.toolOpen,
  180. }">
  181. <div @click.stop="taskOpen(tIndex)" class="chapter_upload_open"></div>
  182. <div @mousedown="isdrag = 'task-'+tIndex" @mouseup="isdrag = ''"
  183. @touchstart="isdrag = 'task-'+tIndex" @touchend="isdrag = ''" style="left: 8px;" class="chapter_upload_drag"></div>
  184. <div class="nt_taskBox">
  185. <div class="nt_taskTitle">任务{{ tIndex + 1 }}:</div>
  186. <div class="nt_taskName">
  187. <el-tooltip effect="light" :content="t.task ? t.task : '未命名任务'" placement="top">
  188. <span>{{ t.task ? t.task : '未命名任务' }}</span>
  189. </el-tooltip>
  190. </div>
  191. </div>
  192. <!-- <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  193. 1
  194. ">
  195. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  196. @click.stop="taskMove(1, tIndex)"></div>
  197. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  198. @click.stop="taskMove(2, tIndex)"></div>
  199. </div> -->
  200. </div>
  201. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  202. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  203. @click="jumpGj(tIndex, toolIndex2)">
  204. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  205. <div>工具{{ toolIndex2 + 1 }}:</div>
  206. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="basic_box2">
  215. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  216. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  217. <div class="taskBorder" style="padding: 20px 20px 10px;" >
  218. <div class="basic_box" style="
  219. margin: 0;
  220. min-height: 0;
  221. padding: 10px 0 0 !important;
  222. ">
  223. <div style="
  224. display: flex;
  225. margin: 0 0 0 0;
  226. flex-direction: row;
  227. justify-content: space-between;
  228. align-items: center;
  229. ">
  230. <div class="lineTitle" style="margin-bottom:10px">学习内容</div>
  231. <!-- <div style="margin-bottom:10px" v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show"
  232. @click="foldC(0)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  233. <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(0)"><img
  234. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
  235. </div>
  236. <!-- v-if="!item.taskJson[0].isFoldchapter" -->
  237. <div>
  238. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  239. item.taskJson[0].chapterData.length == 0
  240. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  241. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  242. <div @dragstart="dragStart(item1, index1, 0)" @dragover.prevent="dragOver(index1, 0)"
  243. @dragend="dragEnd()" :draggable="isdrag == 'chapter-'+'0'+'-'+index1" class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  244. .chapterData" :key="item1.id" @click="
  245. getChapterData(
  246. $event,
  247. unitIndex,
  248. index,
  249. index1,
  250. item1.type
  251. )
  252. " :class="{
  253. dragOverTop2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex > index1,
  254. dragOverBottom2: newIndex === index1 && typeIndex == 'chapter-'+'0'+'-'+index1 && oldIndex < index1,
  255. }">
  256. <div @mousedown="isdrag = 'chapter-'+'0'+'-'+index1" @mouseup="isdrag = ''"
  257. @touchstart="isdrag = 'chapter-'+'0'+'-'+index1" @touchend="isdrag = ''" class="chapter_upload_drag"></div>
  258. <div class="chapter_upload_t" style="width: 100%"></div>
  259. <div class="chapter_upload_o" style="
  260. position: relative;
  261. display: flex;
  262. align-items: center;
  263. ">
  264. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  265. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  266. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  267. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  268. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  269. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  270. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  271. </div>
  272. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  273. </div>
  274. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  275. </div>
  276. </div>
  277. <div class="chapter_upload_n">
  278. <input readonly="true" v-if="item1.type == 2 ||
  279. item1.type == 3 ||
  280. item1.type == 12 ||
  281. item1.type == 13 ||
  282. item1.type == 7
  283. " :placeholder="item1.name" @click="
  284. updataVideoT(
  285. $event,
  286. unitIndex,
  287. 0,
  288. index1
  289. )
  290. " style="
  291. border: none;
  292. outline: none;
  293. width: 80%;
  294. minwidth: 215px;
  295. z-index: 99;
  296. font-size: 14px;
  297. white-space: nowrap;
  298. overflow: hidden;
  299. text-overflow: ellipsis;
  300. " />
  301. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  302. border: none;
  303. outline: none;
  304. width: 80%;
  305. white-space: nowrap;
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. " readonly="true" @click="selectAttText(0, index1)" />
  309. <input :placeholder="item1.title ? item1.title : '链接'
  310. " v-if="item1.type == 8" style="
  311. border: none;
  312. outline: none;
  313. width: 80%;
  314. white-space: nowrap;
  315. overflow: hidden;
  316. text-overflow: ellipsis;
  317. " readonly="true" @click="selectLine(0, index1)" />
  318. <input :placeholder="item1.title ? item1.title : '链接'
  319. " v-if="item1.type == 14" style="
  320. border: none;
  321. outline: none;
  322. width: 80%;
  323. white-space: nowrap;
  324. overflow: hidden;
  325. text-overflow: ellipsis;
  326. " readonly="true" @click="openUpdateSource(0, index1)" />
  327. </div>
  328. <div class="chapter_upload_ic">
  329. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  330. </div>
  331. <div class="chapter_upload_ud" style="z-index: 99">
  332. <div class="chapter_upload_up" @click.stop="
  333. upCd(
  334. $event,
  335. unitIndex,
  336. index,
  337. 0,
  338. index1
  339. )
  340. "></div>
  341. <div class="chapter_upload_down" @click.stop="
  342. downCd(
  343. $event,
  344. unitIndex,
  345. index,
  346. 0,
  347. index1
  348. )
  349. "></div>
  350. </div>
  351. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  352. item1.type == 3 ||
  353. item1.type == 12 ||
  354. item1.type == 13 ||
  355. item1.type == 7
  356. " @click.stop="
  357. updataVideoT(
  358. $event,
  359. unitIndex,
  360. 0,
  361. index1
  362. )
  363. ">
  364. <div></div>
  365. </div>
  366. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  367. @click="selectAttText(0, index1)">
  368. <div></div>
  369. </div>
  370. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  371. @click="selectLine(0, index1)">
  372. <div></div>
  373. </div>
  374. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  375. @click="openUpdateSource(0, index1)">
  376. <div></div>
  377. </div>
  378. <div class="chapter_upload_ic_r" @click.stop="
  379. deleteChapterData(
  380. $event,
  381. unitIndex,
  382. index,
  383. index1,
  384. 0
  385. )
  386. ">
  387. <div></div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. <!-- v-if="!item.taskJson[0].isFoldchapter" -->
  395. <div class="add_info_box" style="margin:10px 0 0">
  396. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  397. 文件
  398. <input type="file" accept="*" style="display: none" v-if="inputShow"
  399. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  400. </button>
  401. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  402. 图文
  403. </button>
  404. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  405. 链接
  406. </button>
  407. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  408. 代码
  409. </button>
  410. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  411. 资源
  412. </button> -->
  413. <!-- <button class="info_btn" @click="addImg($event)">
  414. 其他附件
  415. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  416. " />
  417. </button> -->
  418. </div>
  419. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  420. .proVisible
  421. " class="mask">
  422. <div class="progressBox">
  423. <!-- <div id="closePro" class="closeCss">
  424. <img src="../../../../assets/icon/close.png" alt />
  425. </div> -->
  426. <div class="lbox">
  427. <img src="../../../assets/loading.gif" />上传中,请稍后
  428. </div>
  429. <div style="margin-bottom: 10px">
  430. <span>{{
  431. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  432. .isFinishSize
  433. }}M</span>
  434. /
  435. <span>{{
  436. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  437. .isAllSize
  438. }}M</span>
  439. </div>
  440. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  441. .progress
  442. ? unitJson[unitIndex].chapterInfo[0]
  443. .taskJson[0].progress
  444. : 0
  445. " style="width: 80%"></el-progress>
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="taskBorder" :style="{
  451. minHeight: unitJson[unitIndex].easy && 'unset', paddingBottom: '40px'
  452. }" :class="{ smallTaskBorder: itemTask.isFold === 1 }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  453. <div class="taskTitle">任务{{ itemTaskIndex + 1 }}</div>
  454. <div v-if="unitJson[unitIndex].easy != 1">
  455. <div :style="{
  456. marginBottom:
  457. unitJson[unitIndex].easy == 3 ||
  458. (unitJson[unitIndex].easy == 5 &&
  459. itemTask.taskType == 1)
  460. ? '75px'
  461. : '0',
  462. }">
  463. <div style="
  464. display: flex;
  465. margin: 0px 0 20px;
  466. flex-direction: row;
  467. justify-content: flex-start;
  468. align-items: center;
  469. ">
  470. <div class="lineTitle">任务概述</div>
  471. </div>
  472. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  473. flex-direction: row;
  474. justify-content: flex-start;
  475. align-items: center;
  476. ">
  477. <!-- <div class="cc_title">
  478. 任务{{ itemTaskIndex + 1 }}
  479. </div> -->
  480. <div class="cc_input">
  481. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  482. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  483. itemTaskIndex
  484. ].task
  485. " />
  486. <!-- <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  487. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  488. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  489. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div> -->
  490. </div>
  491. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  492. </div>
  493. </div>
  494. </div>
  495. <div style="margin: 25px 0">
  496. <!-- v-if="!itemTask.isFold2" -->
  497. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  498. itemTaskIndex
  499. ].taskDetail
  500. " @change="change"></editor-bar> -->
  501. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  502. itemTaskIndex
  503. ].taskDetail
  504. "></textarea>
  505. </div>
  506. <div class="toolChoose" style="margin: 20px 0">
  507. <div class="tools">
  508. <div class="leftTools" style="
  509. width: 100%;
  510. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  511. <div style="
  512. display: flex;
  513. flex-direction: row;
  514. align-items: baseline;
  515. flex-wrap: nowrap;
  516. justify-content: flex-start;
  517. position: relative;
  518. ">
  519. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  520. style="margin-right: 20px; font-weight: bold">
  521. 工具 {{ toolIndex + 1 }} :
  522. </div>
  523. <div class="chooseWho">
  524. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  525. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = false), $forceUpdate()">
  526. 互动类
  527. </div>
  528. <div :class="itemTool.toolType == 1
  529. ? 'isChooseActive'
  530. : ''
  531. " @click="
  532. (itemTool.toolType = 1), (itemTool.isFold3 = false), $forceUpdate()
  533. ">
  534. 思维类
  535. </div>
  536. <div :class="itemTool.toolType == 6
  537. ? 'isChooseActive'
  538. : ''
  539. " @click="
  540. (itemTool.toolType = 6), (itemTool.isFold3 = false), $forceUpdate()
  541. ">
  542. 协作类
  543. </div>
  544. <div :class="itemTool.toolType == 2
  545. ? 'isChooseActive'
  546. : ''
  547. " @click="
  548. (itemTool.toolType = 2), (itemTool.isFold3 = false), $forceUpdate()
  549. ">
  550. 测评类
  551. </div>
  552. <div :class="itemTool.toolType == 7
  553. ? 'isChooseActive'
  554. : ''
  555. " @click="
  556. (itemTool.toolType = 7), (itemTool.isFold3 = false), $forceUpdate()
  557. ">
  558. 评价类
  559. </div>
  560. <div :class="itemTool.toolType == 3
  561. ? 'isChooseActive'
  562. : ''
  563. " @click="
  564. (itemTool.toolType = 3), (itemTool.isFold3 = false), $forceUpdate()
  565. ">
  566. 编程类
  567. </div>
  568. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  569. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = false), $forceUpdate()">
  570. 学科类
  571. </div>
  572. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  573. " @click="(itemTool.toolType = 4), $forceUpdate()">
  574. 其他
  575. </div> -->
  576. </div>
  577. <div class="chapter_upload_ud2" style="z-index: 9;margin:0 0 0 auto" :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px auto' : '0 0 0 auto' }" v-if="itemTask.toolChoose.length > 1">
  578. <div class="chapter_upload_up2" @click.stop="
  579. upTool(
  580. $event,
  581. unitIndex,
  582. itemTaskIndex,
  583. toolIndex
  584. )
  585. ">上移</div>
  586. <div class="chapter_upload_down2" @click.stop="
  587. downTool(
  588. $event,
  589. unitIndex,
  590. itemTaskIndex,
  591. toolIndex
  592. )
  593. ">下移</div>
  594. </div>
  595. <!-- <div v-if="!itemTool.isFold3" class="show_toolD show"
  596. @click="fold3(itemTaskIndex, toolIndex)"
  597. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  598. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  599. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  600. :style="{ margin: itemTask.toolChoose.length > 1 ? '0px 35px 0px 10px' : '0 0 0 auto' }"><img
  601. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div> -->
  602. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  603. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0;top:-5px;"></div>
  604. </div>
  605. <!-- v-show="!itemTool.isFold3" -->
  606. <div style="min-height: 163px" >
  607. <div class="toolSort" v-if="itemTool.toolType == 0">
  608. <!-- <div class="tool">
  609. <div
  610. class="whiteBIcon"
  611. @click="addTools(8, itemTaskIndex, toolIndex)"
  612. >
  613. <img src="../../../assets/icon/secondToolList/library.png" alt />
  614. <div style="margin: 5px 0">素材库</div>
  615. </div>
  616. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  617. <img
  618. src="../../../assets/icon/checkNo.png"
  619. alt
  620. v-if="itemTool.tool.indexOf(8) == -1"
  621. />
  622. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  623. alt /><span>已选择</span></div>
  624. </div>
  625. </div>-->
  626. <!-- <div class="tool">
  627. <div
  628. class="whiteBIcon"
  629. @click="addTools(17, itemTaskIndex, toolIndex)"
  630. >
  631. <img
  632. src="../../../assets/icon/secondToolList/library.png"
  633. alt
  634. />
  635. <div style="margin: 5px 0">学习资料</div>
  636. </div>
  637. <div
  638. class="check"
  639. @click="addTools(17, itemTaskIndex, toolIndex)"
  640. >
  641. <img
  642. src="../../../assets/icon/checkNo.png"
  643. alt
  644. v-if="itemTool.tool.indexOf(17) == -1"
  645. />
  646. <img
  647. src="../../../assets/icon/checkedIs.png"
  648. alt
  649. v-else
  650. />
  651. </div>10
  652. </div> -->
  653. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(10) != -1 }"
  654. @click="addTools(10, itemTaskIndex, toolIndex)">
  655. <div class="whiteBIcon" @click.stop="
  656. openTools(itemTaskIndex, 10, toolIndex)
  657. ">
  658. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  659. <div style="margin: 5px 0">倒计时</div>
  660. </div>
  661. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  662. <div class="isCTool" v-if="itemTool.tool.indexOf(10) != -1"><img
  663. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  664. <!-- <div class="check" @click="
  665. addTools(10, itemTaskIndex, toolIndex)
  666. ">
  667. <img src="../../../assets/icon/checkNo.png" alt
  668. v-if="itemTool.tool.indexOf(10) == -1" />
  669. <div class="checkDiv" v-else>
  670. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  671. </div>
  672. </div> -->
  673. </div>
  674. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(65) != -1 }"
  675. @click="addTools(65, itemTaskIndex, toolIndex)">
  676. <div class="whiteBIcon" @click.stop="addTools(65, itemTaskIndex, toolIndex)">
  677. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  678. <div style="margin: 5px 0">挑人</div>
  679. </div>
  680. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  681. <div class="isCTool" v-if="itemTool.tool.indexOf(65) != -1"><img
  682. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  683. <!-- <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  684. <img src="../../../assets/icon/checkNo.png" alt
  685. 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 class="whiteBIcon" @click="
  725. openTools(itemTaskIndex, 62, toolIndex)
  726. ">
  727. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  728. <div style="margin: 5px 0">交互视频</div>
  729. </div>
  730. <div class="check" @click="
  731. addTools(62, itemTaskIndex, toolIndex)
  732. ">
  733. <img src="../../../assets/icon/checkNo.png" alt
  734. v-if="itemTool.tool.indexOf(62) == -1" />
  735. <div class="checkDiv" v-else>
  736. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  737. </div>
  738. </div>
  739. </div> -->
  740. </div>
  741. <div class="toolSort" v-if="itemTool.toolType == 1">
  742. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(7) != -1 }"
  743. @click="addTools(7, itemTaskIndex, toolIndex)">
  744. <div class="whiteBIcon" @click.stop="
  745. addTools(7, itemTaskIndex, toolIndex)
  746. ">
  747. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  748. <div style="margin: 5px 0">思维网格</div>
  749. </div>
  750. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  751. <div class="isCTool" v-if="itemTool.tool.indexOf(7) != -1"><img
  752. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  753. <!-- <div class="check" @click="
  754. addTools(7, itemTaskIndex, toolIndex)
  755. ">
  756. <img src="../../../assets/icon/checkNo.png" alt
  757. v-if="itemTool.tool.indexOf(7) == -1" />
  758. <div class="checkDiv" v-else>
  759. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  760. </div>
  761. </div> -->
  762. </div>
  763. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(1) != -1 }"
  764. @click="addTools(1, itemTaskIndex, toolIndex)">
  765. <div class="whiteBIcon" @click.stop="
  766. openTools(itemTaskIndex, 1, toolIndex)
  767. ">
  768. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  769. <div style="margin: 5px 0">电子白板</div>
  770. </div>
  771. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  772. <div class="isCTool" v-if="itemTool.tool.indexOf(1) != -1"><img
  773. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  774. <!-- <div class="check" @click="
  775. addTools(1, itemTaskIndex, toolIndex)
  776. ">
  777. <img src="../../../assets/icon/checkNo.png" alt
  778. v-if="itemTool.tool.indexOf(1) == -1" />
  779. <div class="checkDiv" v-else>
  780. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  781. </div>
  782. </div> -->
  783. </div>
  784. <!-- <div class="tool">
  785. <div
  786. class="whiteBIcon"
  787. @click="addTools(2, itemTaskIndex, toolIndex)"
  788. >
  789. <img
  790. src="../../../assets/icon/secondToolList/note.png"
  791. alt
  792. />
  793. <div style="margin: 5px 0">便签</div>
  794. </div>
  795. <div
  796. class="check"
  797. @click="addTools(2, itemTaskIndex, toolIndex)"
  798. >
  799. <img
  800. src="../../../assets/icon/checkNo.png"
  801. alt
  802. v-if="itemTool.tool.indexOf(2) == -1"
  803. />
  804. <div class="checkDiv" v-else>
  805. <img
  806. src="../../../assets/icon/checkedIs.png"
  807. alt
  808. /><span>已选择</span>
  809. </div>
  810. </div>
  811. </div> -->
  812. <!-- <div class="tool">
  813. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  814. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  815. <div style="margin: 5px 0">协同文档</div>
  816. </div>
  817. <div
  818. class="check"
  819. @click="addTools(6, itemTaskIndex, toolIndex)"
  820. >
  821. <img
  822. src="../../../assets/icon/checkNo.png"
  823. alt
  824. v-if="itemTool.tool.indexOf(6) == -1"
  825. />
  826. <div class="checkDiv" v-else>
  827. <img
  828. src="../../../assets/icon/checkedIs.png"
  829. alt
  830. /><span>已选择</span>
  831. </div>
  832. </div>
  833. </div> -->
  834. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(52) != -1 }"
  835. @click="addTools(52, itemTaskIndex, toolIndex)">
  836. <div class="whiteBIcon" @click.stop="
  837. openTools(itemTaskIndex, 52, toolIndex)
  838. ">
  839. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  840. <div style="margin: 5px 0">文档</div>
  841. </div>
  842. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  843. <div class="isCTool" v-if="itemTool.tool.indexOf(52) != -1"><img
  844. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  845. <!-- <div class="check" @click="
  846. addTools(52, itemTaskIndex, toolIndex)
  847. ">
  848. <img src="../../../assets/icon/checkNo.png" alt
  849. v-if="itemTool.tool.indexOf(52) == -1" />
  850. <div class="checkDiv" v-else>
  851. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  852. </div>
  853. </div> -->
  854. </div>
  855. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(3) != -1 }"
  856. @click="addTools(3, itemTaskIndex, toolIndex)">
  857. <div class="whiteBIcon" @click.stop="
  858. openTools(itemTaskIndex, 3, toolIndex)
  859. ">
  860. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  861. <div style="margin: 5px 0">思维导图</div>
  862. </div>
  863. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  864. <div class="isCTool" v-if="itemTool.tool.indexOf(3) != -1"><img
  865. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  866. <!-- <div class="check" @click="
  867. addTools(3, itemTaskIndex, toolIndex)
  868. ">
  869. <img src="../../../assets/icon/checkNo.png" alt
  870. v-if="itemTool.tool.indexOf(3) == -1" />
  871. <div class="checkDiv" v-else>
  872. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  873. </div>
  874. </div> -->
  875. </div>
  876. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(48) != -1 }"
  877. @click="addTools(48, itemTaskIndex, toolIndex)">
  878. <div class="whiteBIcon" @click.stop="
  879. openTools(itemTaskIndex, 48, toolIndex)
  880. ">
  881. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  882. <div style="margin: 5px 0">表格</div>
  883. </div>
  884. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  885. <div class="isCTool" v-if="itemTool.tool.indexOf(48) != -1"><img
  886. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  887. <!-- <div class="check" @click="
  888. addTools(48, itemTaskIndex, toolIndex)
  889. ">
  890. <img src="../../../assets/icon/checkNo.png" alt
  891. v-if="itemTool.tool.indexOf(48) == -1" />
  892. <div class="checkDiv" v-else>
  893. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  894. </div>
  895. </div> -->
  896. </div>
  897. </div>
  898. <div class="toolSort" v-if="itemTool.toolType == 6">
  899. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(49) != -1 }"
  900. @click="addTools(49, itemTaskIndex, toolIndex)">
  901. <div class="whiteBIcon" @click.stop="
  902. openTools(itemTaskIndex, 49, toolIndex)
  903. ">
  904. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  905. <div style="margin: 5px 0">学生分组</div>
  906. </div>
  907. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  908. <div class="isCTool" v-if="itemTool.tool.indexOf(49) != -1"><img
  909. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  910. <!-- <div class="check" @click="
  911. addTools(49, itemTaskIndex, toolIndex)
  912. ">
  913. <img src="../../../assets/icon/checkNo.png" alt
  914. v-if="itemTool.tool.indexOf(49) == -1" />
  915. <div class="checkDiv" v-else>
  916. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  917. </div>
  918. </div> -->
  919. </div>
  920. </div>
  921. <div class="toolSort" v-if="itemTool.toolType == 2">
  922. <!-- <div class="tool">
  923. <div
  924. class="whiteBIcon"
  925. @click="addTools(5, itemTaskIndex, toolIndex)"
  926. >
  927. <img
  928. src="../../../assets/icon/thirdToolList/score.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">量规评分</div>
  932. </div>
  933. <div
  934. class="check"
  935. @click="addTools(5, itemTaskIndex, toolIndex)"
  936. >
  937. <img
  938. src="../../../assets/icon/checkNo.png"
  939. alt
  940. v-if="itemTool.tool.indexOf(5) == -1"
  941. />
  942. <img
  943. src="../../../assets/icon/checkedIs.png"
  944. alt
  945. v-else
  946. />
  947. </div>
  948. </div>-->
  949. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(4) != -1 }"
  950. @click="addTools(4, itemTaskIndex, toolIndex)">
  951. <div class="whiteBIcon" @click.stop="
  952. openTools(itemTaskIndex, 4, toolIndex)
  953. ">
  954. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  955. <div style="margin: 5px 0">问卷调查</div>
  956. </div>
  957. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  958. <div class="isCTool" v-if="itemTool.tool.indexOf(4) != -1"><img
  959. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  960. <!-- <div class="check" @click="
  961. addTools(4, itemTaskIndex, toolIndex)
  962. ">
  963. <img src="../../../assets/icon/checkNo.png" alt
  964. v-if="itemTool.tool.indexOf(4) == -1" />
  965. <div class="checkDiv" v-else>
  966. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  967. </div>
  968. </div> -->
  969. </div>
  970. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(45) != -1 }"
  971. @click="addTools(45, itemTaskIndex, toolIndex)">
  972. <div class="whiteBIcon" @click.stop="
  973. openTools(itemTaskIndex, 45, toolIndex)
  974. ">
  975. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  976. <div style="margin: 5px 0">选择题</div>
  977. </div>
  978. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  979. <div class="isCTool" v-if="itemTool.tool.indexOf(45) != -1"><img
  980. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  981. <!-- <div class="check" @click="
  982. addTools(45, itemTaskIndex, toolIndex)
  983. ">
  984. <img src="../../../assets/icon/checkNo.png" alt
  985. v-if="itemTool.tool.indexOf(45) == -1" />
  986. <div class="checkDiv" v-else>
  987. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  988. </div>
  989. </div> -->
  990. </div>
  991. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(15) != -1 }"
  992. @click="addTools(15, itemTaskIndex, toolIndex)">
  993. <div class="whiteBIcon" @click.stop="
  994. openTools(itemTaskIndex, 15, toolIndex)
  995. ">
  996. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  997. <div style="margin: 5px 0">问答</div>
  998. </div>
  999. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1000. <div class="isCTool" v-if="itemTool.tool.indexOf(15) != -1"><img
  1001. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1002. <!-- <div class="check" @click="
  1003. addTools(15, itemTaskIndex, toolIndex)
  1004. ">
  1005. <img src="../../../assets/icon/checkNo.png" alt
  1006. v-if="itemTool.tool.indexOf(15) == -1" />
  1007. <div class="checkDiv" v-else>
  1008. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1009. </div>
  1010. </div> -->
  1011. </div>
  1012. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(16) != -1 }"
  1013. @click="addTools(16, itemTaskIndex, toolIndex)">
  1014. <div class="whiteBIcon" @click.stop="
  1015. addTools(16, itemTaskIndex, toolIndex)
  1016. ">
  1017. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1018. <div style="margin: 5px 0">作业提交</div>
  1019. </div>
  1020. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1021. <div class="isCTool" v-if="itemTool.tool.indexOf(16) != -1"><img
  1022. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1023. <!-- <div class="check" @click="
  1024. addTools(16, itemTaskIndex, toolIndex)
  1025. ">
  1026. <img src="../../../assets/icon/checkNo.png" alt
  1027. v-if="itemTool.tool.indexOf(16) == -1" />
  1028. <div class="checkDiv" v-else>
  1029. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1030. </div>
  1031. </div> -->
  1032. </div>
  1033. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(50) != -1 }"
  1034. @click="addTools(50, itemTaskIndex, toolIndex)">
  1035. <div class="whiteBIcon" @click.stop="
  1036. addTools(50, itemTaskIndex, toolIndex)
  1037. ">
  1038. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1039. <div style="margin: 5px 0">批量上传</div>
  1040. </div>
  1041. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1042. <div class="isCTool" v-if="itemTool.tool.indexOf(50) != -1"><img
  1043. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1044. <!-- <div class="check" @click="
  1045. addTools(50, itemTaskIndex, toolIndex)
  1046. ">
  1047. <img src="../../../assets/icon/checkNo.png" alt
  1048. v-if="itemTool.tool.indexOf(50) == -1" />
  1049. <div class="checkDiv" v-else>
  1050. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1051. </div>
  1052. </div> -->
  1053. </div>
  1054. <!-- <div class="tool">
  1055. <div
  1056. class="whiteBIcon"
  1057. @click="
  1058. openTools(itemTaskIndex, 40, toolIndex)
  1059. "
  1060. >
  1061. <img
  1062. src="../../../assets/icon/thirdToolList/eval.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">个人评价</div>
  1066. </div>
  1067. <div
  1068. class="check"
  1069. @click="
  1070. addTools(40, itemTaskIndex, toolIndex)
  1071. "
  1072. >
  1073. <img
  1074. src="../../../assets/icon/checkNo.png"
  1075. alt
  1076. v-if="itemTool.tool.indexOf(40) == -1"
  1077. />
  1078. <div class="checkDiv" v-else>
  1079. <img
  1080. src="../../../assets/icon/checkedIs.png"
  1081. alt
  1082. /><span>已选择</span>
  1083. </div>
  1084. </div>
  1085. </div> -->
  1086. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(41) != -1 }"
  1087. @click="addTools(41, itemTaskIndex, toolIndex)">
  1088. <div class="whiteBIcon" @click.stop="
  1089. openTools(itemTaskIndex, 41, toolIndex)
  1090. ">
  1091. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1092. <div style="margin: 5px 0">选择匹配</div>
  1093. </div>
  1094. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1095. <div class="isCTool" v-if="itemTool.tool.indexOf(41) != -1"><img
  1096. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1097. <!-- <div class="check" @click="
  1098. addTools(41, itemTaskIndex, toolIndex)
  1099. ">
  1100. <img src="../../../assets/icon/checkNo.png" alt
  1101. v-if="itemTool.tool.indexOf(41) == -1" />
  1102. <div class="checkDiv" v-else>
  1103. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1104. </div>
  1105. </div> -->
  1106. </div>
  1107. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(47) != -1 }"
  1108. @click="addTools(47, itemTaskIndex, toolIndex)">
  1109. <div class="whiteBIcon" @click.stop="
  1110. openTools(itemTaskIndex, 47, toolIndex)
  1111. ">
  1112. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1113. <div style="margin: 5px 0">排序</div>
  1114. </div>
  1115. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1116. <div class="isCTool" v-if="itemTool.tool.indexOf(47) != -1"><img
  1117. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1118. <!-- <div class="check" @click="
  1119. addTools(47, itemTaskIndex, toolIndex)
  1120. ">
  1121. <img src="../../../assets/icon/checkNo.png" alt
  1122. v-if="itemTool.tool.indexOf(47) == -1" />
  1123. <div class="checkDiv" v-else>
  1124. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1125. </div>
  1126. </div> -->
  1127. </div>
  1128. <!-- <div class="tool">
  1129. <div
  1130. class="whiteBIcon"
  1131. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1132. >
  1133. <img
  1134. src="../../../assets/icon/thirdToolList/mp3.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">上传音频</div>
  1138. </div>
  1139. <div
  1140. class="check"
  1141. @click="addTools(42, itemTaskIndex, toolIndex)"
  1142. >
  1143. <img
  1144. src="../../../assets/icon/checkNo.png"
  1145. alt
  1146. v-if="itemTool.tool.indexOf(42) == -1"
  1147. />
  1148. <img
  1149. src="../../../assets/icon/checkedIs.png"
  1150. alt
  1151. v-else
  1152. />
  1153. </div>
  1154. </div> -->
  1155. </div>
  1156. <div class="toolSort" v-if="itemTool.toolType == 3">
  1157. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(18) != -1 }"
  1158. @click="addTools(18, itemTaskIndex, toolIndex)">
  1159. <div class="whiteBIcon" @click.stop="
  1160. addTools(18, itemTaskIndex, toolIndex)
  1161. ">
  1162. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1163. <div style="margin: 5px 0">训练平台</div>
  1164. </div>
  1165. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1166. <div class="isCTool" v-if="itemTool.tool.indexOf(18) != -1"><img
  1167. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1168. <!-- <div class="check" @click="
  1169. addTools(18, itemTaskIndex, toolIndex)
  1170. ">
  1171. <img src="../../../assets/icon/checkNo.png" alt
  1172. v-if="itemTool.tool.indexOf(18) == -1" />
  1173. <div class="checkDiv" v-else>
  1174. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1175. </div>
  1176. </div> -->
  1177. </div>
  1178. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(21) != -1 }"
  1179. @click="addTools(21, itemTaskIndex, toolIndex)">
  1180. <div class="whiteBIcon" @click.stop="
  1181. addTools(21, itemTaskIndex, toolIndex)
  1182. ">
  1183. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1184. <div style="margin: 5px 0">AIoT Blockly</div>
  1185. </div>
  1186. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1187. <div class="isCTool" v-if="itemTool.tool.indexOf(21) != -1"><img
  1188. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1189. <!-- <div class="check" @click="
  1190. addTools(21, itemTaskIndex, toolIndex)
  1191. ">
  1192. <img src="../../../assets/icon/checkNo.png" alt
  1193. v-if="itemTool.tool.indexOf(21) == -1" />
  1194. <div class="checkDiv" v-else>
  1195. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1196. </div>
  1197. </div> -->
  1198. </div>
  1199. <!-- <div class="tool">
  1200. <div class="whiteBIcon" @click="
  1201. addTools(22, itemTaskIndex, toolIndex)
  1202. ">
  1203. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1204. <div style="margin: 5px 0">AI体验</div>
  1205. </div>
  1206. <div class="check" @click="
  1207. addTools(22, itemTaskIndex, toolIndex)
  1208. ">
  1209. <img src="../../../assets/icon/checkNo.png" alt
  1210. v-if="itemTool.tool.indexOf(22) == -1" />
  1211. <div class="checkDiv" v-else>
  1212. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1213. </div>
  1214. </div>
  1215. </div> -->
  1216. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(23) != -1 }"
  1217. @click="addTools(23, itemTaskIndex, toolIndex)">
  1218. <div class="whiteBIcon" @click.stop="
  1219. addTools(23, itemTaskIndex, toolIndex)
  1220. ">
  1221. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1222. <div style="margin: 5px 0">AI Python</div>
  1223. </div>
  1224. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1225. <div class="isCTool" v-if="itemTool.tool.indexOf(23) != -1"><img
  1226. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1227. <!-- <div class="check" @click="
  1228. addTools(23, itemTaskIndex, toolIndex)
  1229. ">
  1230. <img src="../../../assets/icon/checkNo.png" alt
  1231. v-if="itemTool.tool.indexOf(23) == -1" />
  1232. <div class="checkDiv" v-else>
  1233. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1234. </div>
  1235. </div> -->
  1236. </div>
  1237. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(24) != -1 }"
  1238. @click="addTools(24, itemTaskIndex, toolIndex)">
  1239. <div class="whiteBIcon" @click.stop="
  1240. addTools(24, itemTaskIndex, toolIndex)
  1241. ">
  1242. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1243. <div style="margin: 5px 0">AI Blockly</div>
  1244. </div>
  1245. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1246. <div class="isCTool" v-if="itemTool.tool.indexOf(24) != -1"><img
  1247. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1248. <!-- <div class="check" @click="
  1249. addTools(24, itemTaskIndex, toolIndex)
  1250. ">
  1251. <img src="../../../assets/icon/checkNo.png" alt
  1252. v-if="itemTool.tool.indexOf(24) == -1" />
  1253. <div class="checkDiv" v-else>
  1254. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1255. </div>
  1256. </div> -->
  1257. </div>
  1258. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(32) != -1 }"
  1259. @click="addTools(32, itemTaskIndex, toolIndex)">
  1260. <div class="whiteBIcon" @click.stop="
  1261. addTools(32, itemTaskIndex, toolIndex)
  1262. ">
  1263. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1264. <div style="margin: 5px 0">源码编辑</div>
  1265. </div>
  1266. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1267. <div class="isCTool" v-if="itemTool.tool.indexOf(32) != -1"><img
  1268. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1269. <!-- <div class="check" @click="
  1270. addTools(32, itemTaskIndex, toolIndex)
  1271. ">
  1272. <img src="../../../assets/icon/checkNo.png" alt
  1273. v-if="itemTool.tool.indexOf(32) == -1" />
  1274. <div class="checkDiv" v-else>
  1275. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1276. </div>
  1277. </div> -->
  1278. </div>
  1279. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(57) != -1 }"
  1280. @click="addTools(57, itemTaskIndex, toolIndex)">
  1281. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 57, toolIndex)">
  1282. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1283. <div style="margin: 5px 0">CocoPi</div>
  1284. </div>
  1285. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1286. <div class="isCTool" v-if="itemTool.tool.indexOf(57) != -1"><img
  1287. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1288. <!-- <div class="check" @click="
  1289. addTools(57, itemTaskIndex, toolIndex)
  1290. ">
  1291. <img src="../../../assets/icon/checkNo.png" alt
  1292. v-if="itemTool.tool.indexOf(57) == -1" />
  1293. <div class="checkDiv" v-else>
  1294. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1295. </div>
  1296. </div> -->
  1297. </div>
  1298. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(63) != -1 }"
  1299. @click="addTools(63, itemTaskIndex, toolIndex)">
  1300. <div class="whiteBIcon" @click.stop="
  1301. addTools(63, itemTaskIndex, toolIndex)
  1302. ">
  1303. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1304. <div style="margin: 5px 0">海龟编程</div>
  1305. </div>
  1306. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1307. <div class="isCTool" v-if="itemTool.tool.indexOf(63) != -1"><img
  1308. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1309. <!-- <div class="check" @click="
  1310. addTools(63, itemTaskIndex, toolIndex)
  1311. ">
  1312. <img src="../../../assets/icon/checkNo.png" alt
  1313. v-if="itemTool.tool.indexOf(63) == -1" />
  1314. <div class="checkDiv" v-else>
  1315. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1316. </div>
  1317. </div> -->
  1318. </div>
  1319. </div>
  1320. <div class="toolSort" v-if="itemTool.toolType == 5">
  1321. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(28) != -1 }"
  1322. @click="addTools(28, itemTaskIndex, toolIndex)">
  1323. <div class="whiteBIcon" @click.stop="
  1324. addTools(28, itemTaskIndex, toolIndex)
  1325. ">
  1326. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1327. <div style="margin: 5px 0">翻译</div>
  1328. </div>
  1329. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1330. <div class="isCTool" v-if="itemTool.tool.indexOf(28) != -1"><img
  1331. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1332. <!-- <div class="check" @click="
  1333. addTools(28, itemTaskIndex, toolIndex)
  1334. ">
  1335. <img src="../../../assets/icon/checkNo.png" alt
  1336. v-if="itemTool.tool.indexOf(28) == -1" />
  1337. <div class="checkDiv" v-else>
  1338. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1339. </div>
  1340. </div> -->
  1341. </div>
  1342. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(31) != -1 }"
  1343. @click="addTools(31, itemTaskIndex, toolIndex)">
  1344. <div class="whiteBIcon" @click.stop="
  1345. addTools(31, itemTaskIndex, toolIndex)
  1346. ">
  1347. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1348. <div style="margin: 5px 0">数字画板</div>
  1349. </div>
  1350. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1351. <div class="isCTool" v-if="itemTool.tool.indexOf(31) != -1"><img
  1352. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1353. <!-- <div class="check" @click="
  1354. addTools(31, itemTaskIndex, toolIndex)
  1355. ">
  1356. <img src="../../../assets/icon/checkNo.png" alt
  1357. v-if="itemTool.tool.indexOf(31) == -1" />
  1358. <div class="checkDiv" v-else>
  1359. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1360. </div>
  1361. </div> -->
  1362. </div>
  1363. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(39) != -1 }"
  1364. @click="addTools(39, itemTaskIndex, toolIndex)">
  1365. <div class="whiteBIcon" @click.stop="
  1366. addTools(39, itemTaskIndex, toolIndex)
  1367. ">
  1368. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1369. <div style="margin: 5px 0">GeoGebra</div>
  1370. </div>
  1371. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1372. <div class="isCTool" v-if="itemTool.tool.indexOf(39) != -1"><img
  1373. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1374. <!-- <div class="check" @click="
  1375. addTools(39, itemTaskIndex, toolIndex)
  1376. ">
  1377. <img src="../../../assets/icon/checkNo.png" alt
  1378. v-if="itemTool.tool.indexOf(39) == -1" />
  1379. <div class="checkDiv" v-else>
  1380. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1381. </div>
  1382. </div> -->
  1383. </div>
  1384. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(66) != -1 }"
  1385. @click="addTools(66, itemTaskIndex, toolIndex)">
  1386. <div class="whiteBIcon" @click.stop="
  1387. addTools(66, itemTaskIndex, toolIndex)
  1388. ">
  1389. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1390. <div style="margin: 5px 0">公式编辑</div>
  1391. </div>
  1392. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1393. <div class="isCTool" v-if="itemTool.tool.indexOf(66) != -1"><img
  1394. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1395. <!-- <div class="check" @click="
  1396. addTools(66, itemTaskIndex, toolIndex)
  1397. ">
  1398. <img src="../../../assets/icon/checkNo.png" alt
  1399. v-if="itemTool.tool.indexOf(66) == -1" />
  1400. <div class="checkDiv" v-else>
  1401. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1402. </div>
  1403. </div> -->
  1404. </div>
  1405. <!-- <div class="tool">
  1406. <div class="whiteBIcon" @click="
  1407. addTools(67, itemTaskIndex, toolIndex)
  1408. ">
  1409. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1410. <div style="margin: 5px 0">分子结构</div>
  1411. </div>
  1412. <div class="check" @click="
  1413. addTools(67, itemTaskIndex, toolIndex)
  1414. ">
  1415. <img src="../../../assets/icon/checkNo.png" alt
  1416. v-if="itemTool.tool.indexOf(67) == -1" />
  1417. <div class="checkDiv" v-else>
  1418. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1419. </div>
  1420. </div>
  1421. </div> -->
  1422. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(68) != -1 }"
  1423. @click="addTools(68, itemTaskIndex, toolIndex)">
  1424. <div class="whiteBIcon" @click.stop="
  1425. addTools(68, itemTaskIndex, toolIndex)
  1426. ">
  1427. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1428. <div style="margin: 5px 0">时间轴</div>
  1429. </div>
  1430. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1431. <div class="isCTool" v-if="itemTool.tool.indexOf(68) != -1"><img
  1432. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1433. <!-- <div class="check" @click="
  1434. addTools(68, itemTaskIndex, toolIndex)
  1435. ">
  1436. <img src="../../../assets/icon/checkNo.png" alt
  1437. v-if="itemTool.tool.indexOf(68) == -1" />
  1438. <div class="checkDiv" v-else>
  1439. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1440. </div>
  1441. </div> -->
  1442. </div>
  1443. <!-- <div class="tool">
  1444. <div class="whiteBIcon" @click="
  1445. addTools(28, itemTaskIndex, toolIndex)
  1446. ">
  1447. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1448. <div style="margin: 5px 0">翻译</div>
  1449. </div>
  1450. <div class="check" @click="
  1451. addTools(28, itemTaskIndex, toolIndex)
  1452. ">
  1453. <img src="../../../assets/icon/checkNo.png" alt
  1454. v-if="itemTool.tool.indexOf(28) == -1" />
  1455. <div class="checkDiv" v-else>
  1456. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1457. </div>
  1458. </div>
  1459. </div>
  1460. <div class="tool">
  1461. <div class="whiteBIcon" @click="
  1462. addTools(37, itemTaskIndex, toolIndex)
  1463. ">
  1464. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1465. <div style="margin: 5px 0">魔盒识字</div>
  1466. </div>
  1467. <div class="check" @click="
  1468. addTools(37, itemTaskIndex, toolIndex)
  1469. ">
  1470. <img src="../../../assets/icon/checkNo.png" alt
  1471. v-if="itemTool.tool.indexOf(37) == -1" />
  1472. <div class="checkDiv" v-else>
  1473. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1474. </div>
  1475. </div>
  1476. </div>
  1477. <div class="tool">
  1478. <div class="whiteBIcon" @click="
  1479. addTools(38, itemTaskIndex, toolIndex)
  1480. ">
  1481. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1482. <div style="margin: 5px 0">24点</div>
  1483. </div>
  1484. <div class="check" @click="
  1485. addTools(38, itemTaskIndex, toolIndex)
  1486. ">
  1487. <img src="../../../assets/icon/checkNo.png" alt
  1488. v-if="itemTool.tool.indexOf(38) == -1" />
  1489. <div class="checkDiv" v-else>
  1490. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. <div class="tool">
  1495. <div class="whiteBIcon" @click="
  1496. addTools(31, itemTaskIndex, toolIndex)
  1497. ">
  1498. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1499. <div style="margin: 5px 0">数学画板</div>
  1500. </div>
  1501. <div class="check" @click="
  1502. addTools(31, itemTaskIndex, toolIndex)
  1503. ">
  1504. <img src="../../../assets/icon/checkNo.png" alt
  1505. v-if="itemTool.tool.indexOf(31) == -1" />
  1506. <div class="checkDiv" v-else>
  1507. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. <div class="tool">
  1512. <div class="whiteBIcon" @click="
  1513. addTools(39, itemTaskIndex, toolIndex)
  1514. ">
  1515. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1516. <div style="margin: 5px 0">GeoGebra</div>
  1517. </div>
  1518. <div class="check" @click="
  1519. addTools(39, itemTaskIndex, toolIndex)
  1520. ">
  1521. <img src="../../../assets/icon/checkNo.png" alt
  1522. v-if="itemTool.tool.indexOf(39) == -1" />
  1523. <div class="checkDiv" v-else>
  1524. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1525. </div>
  1526. </div>
  1527. </div>
  1528. <div class="tool">
  1529. <div class="whiteBIcon" @click="
  1530. addTools(58, itemTaskIndex, toolIndex)
  1531. ">
  1532. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1533. <div style="margin: 5px 0">模拟驾驶</div>
  1534. </div>
  1535. <div class="check" @click="
  1536. addTools(58, itemTaskIndex, toolIndex)
  1537. ">
  1538. <img src="../../../assets/icon/checkNo.png" alt
  1539. v-if="itemTool.tool.indexOf(58) == -1" />
  1540. <div class="checkDiv" v-else>
  1541. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. <div class="tool">
  1546. <div class="whiteBIcon" @click="
  1547. addTools(59, itemTaskIndex, toolIndex)
  1548. ">
  1549. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1550. <div style="margin: 5px 0">路径搜索</div>
  1551. </div>
  1552. <div class="check" @click="
  1553. addTools(59, itemTaskIndex, toolIndex)
  1554. ">
  1555. <img src="../../../assets/icon/checkNo.png" alt
  1556. v-if="itemTool.tool.indexOf(59) == -1" />
  1557. <div class="checkDiv" v-else>
  1558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1559. </div>
  1560. </div>
  1561. </div>
  1562. <div class="tool">
  1563. <div class="whiteBIcon" @click="
  1564. addTools(60, itemTaskIndex, toolIndex)
  1565. ">
  1566. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1567. <div style="margin: 5px 0">深度学习</div>
  1568. </div>
  1569. <div class="check" @click="
  1570. addTools(60, itemTaskIndex, toolIndex)
  1571. ">
  1572. <img src="../../../assets/icon/checkNo.png" alt
  1573. v-if="itemTool.tool.indexOf(60) == -1" />
  1574. <div class="checkDiv" v-else>
  1575. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div class="tool">
  1580. <div class="whiteBIcon" @click="
  1581. addTools(61, itemTaskIndex, toolIndex)
  1582. ">
  1583. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1584. <div style="margin: 5px 0">全历史</div>
  1585. </div>
  1586. <div class="check" @click="
  1587. addTools(61, itemTaskIndex, toolIndex)
  1588. ">
  1589. <img src="../../../assets/icon/checkNo.png" alt
  1590. v-if="itemTool.tool.indexOf(61) == -1" />
  1591. <div class="checkDiv" v-else>
  1592. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1593. </div>
  1594. </div>
  1595. </div> -->
  1596. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(69) != -1 }"
  1597. @click="addTools(69, itemTaskIndex, toolIndex)">
  1598. <div class="whiteBIcon" @click.stop="
  1599. openTools(itemTaskIndex, 69, toolIndex)
  1600. ">
  1601. <img src="../../../assets/icon/thirdToolList/english.png" alt />
  1602. <div style="margin: 5px 0">英语写作</div>
  1603. </div>
  1604. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1605. <div class="isCTool" v-if="itemTool.tool.indexOf(69) != -1"><img
  1606. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1607. <!-- <div class="check" @click="
  1608. addTools(4, itemTaskIndex, toolIndex)
  1609. ">
  1610. <img src="../../../assets/icon/checkNo.png" alt
  1611. v-if="itemTool.tool.indexOf(4) == -1" />
  1612. <div class="checkDiv" v-else>
  1613. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1614. </div>
  1615. </div> -->
  1616. </div>
  1617. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(70) != -1 }"
  1618. @click="addTools(70, itemTaskIndex, toolIndex)">
  1619. <div class="whiteBIcon" @click.stop="openTools(itemTaskIndex, 70, toolIndex)">
  1620. <img src="../../../assets/icon/thirdToolList/englishVoice.png" alt />
  1621. <div style="margin: 5px 0">英语口语</div>
  1622. </div>
  1623. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1624. <div class="isCTool" v-if="itemTool.tool.indexOf(70) != -1"><img
  1625. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1626. </div>
  1627. </div>
  1628. <div class="toolSort" v-if="itemTool.toolType == 7">
  1629. <div class="tool" :class="{ isToolChoose: itemTool.tool.indexOf(40) != -1 }"
  1630. @click.stop="addTools(40, itemTaskIndex, toolIndex)">
  1631. <div class="whiteBIcon" @click="
  1632. openTools(itemTaskIndex, 40, toolIndex)
  1633. ">
  1634. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1635. <div style="margin: 5px 0">个人评价</div>
  1636. </div>
  1637. <div class="noCTool"><img src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1638. <div class="isCTool" v-if="itemTool.tool.indexOf(40) != -1"><img
  1639. src="../../../assets/icon/new/isToolC.png" alt="" /></div>
  1640. <!-- <div class="check" @click="
  1641. addTools(40, itemTaskIndex, toolIndex)
  1642. ">
  1643. <img src="../../../assets/icon/checkNo.png" alt
  1644. v-if="itemTool.tool.indexOf(40) == -1" />
  1645. <div class="checkDiv" v-else>
  1646. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1647. </div>
  1648. </div> -->
  1649. </div>
  1650. </div>
  1651. <div class="toolSort" v-if="itemTool.toolType == 4">
  1652. <div class="tool">
  1653. <div class="whiteBIcon" @click="
  1654. addTools(26, itemTaskIndex, toolIndex)
  1655. ">
  1656. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1657. <div style="margin: 5px 0">课程设计</div>
  1658. </div>
  1659. <div class="check" @click="
  1660. addTools(26, itemTaskIndex, toolIndex)
  1661. ">
  1662. <img src="../../../assets/icon/checkNo.png" alt
  1663. v-if="itemTool.tool.indexOf(26) == -1" />
  1664. <div class="checkDiv" v-else>
  1665. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1666. </div>
  1667. </div>
  1668. </div>
  1669. <div class="tool">
  1670. <div class="whiteBIcon" @click="
  1671. addTools(25, itemTaskIndex, toolIndex)
  1672. ">
  1673. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1674. <div style="margin: 5px 0">目标管理</div>
  1675. </div>
  1676. <div class="check" @click="
  1677. addTools(25, itemTaskIndex, toolIndex)
  1678. ">
  1679. <img src="../../../assets/icon/checkNo.png" alt
  1680. v-if="itemTool.tool.indexOf(25) == -1" />
  1681. <div class="checkDiv" v-else>
  1682. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. <!-- <div class="tool">
  1687. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1688. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1689. <div style="margin: 5px 0">汉字宫</div>
  1690. </div>
  1691. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1692. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1693. <div class="checkDiv" v-else>
  1694. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1695. </div>
  1696. </div>
  1697. </div> -->
  1698. </div>
  1699. </div>
  1700. <!-- v-show="!itemTool.isFold3" -->
  1701. <div>
  1702. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1703. style="
  1704. margin: 0 0 20px 0;
  1705. " v-model="itemTool.toolDetail"></textarea>
  1706. </div>
  1707. </div>
  1708. <!-- <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1709. <div class="addToolImg">
  1710. <img src="../../../assets/icon/add.png" alt />
  1711. </div>
  1712. <div>添加工具</div>
  1713. </div> -->
  1714. <button class="c_pub_button_add pub_btn_tool_img" @click="addToolFun(itemTaskIndex)"
  1715. style="margin: 0 auto;padding: 0 30px;height: 45px;">
  1716. 添加工具
  1717. </button>
  1718. </div>
  1719. </div>
  1720. <div class="funBlock" style="padding: 0">
  1721. <div class="fold" @click="fold(itemTaskIndex, $event)">
  1722. <div
  1723. class="arrow"
  1724. :class="{ arrowZ: !(itemTask.isFold === 1) }"
  1725. ></div>
  1726. <div>
  1727. {{ itemTask.isFold === 1 ? "展开任务" : "收起任务" }}
  1728. </div>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1733. <!-- <div>
  1734. <img src="../../../assets/icon/new/addStage.png" alt />
  1735. <span>添加任务</span>
  1736. </div> -->
  1737. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1738. 添加任务
  1739. </button>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. <div class="info_btnBox3">
  1746. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1747. 返回课程
  1748. </button>
  1749. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
  1750. 确认上传
  1751. </button>
  1752. </div>
  1753. </div>
  1754. <div class="rightBox" v-if="this.steps == 2">
  1755. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1756. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1757. 请选择合适的课程模板
  1758. </div>
  1759. <div class="wordbox">
  1760. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1761. <div class="wordPic">
  1762. <img src="../../../assets/icon/wordMub.png" alt />
  1763. </div>
  1764. <div style="
  1765. margin-top: 10px;
  1766. line-height: 19px;
  1767. overflow: hidden;
  1768. text-overflow: ellipsis;
  1769. white-space: nowrap;
  1770. padding: 0 20px;
  1771. ">
  1772. {{ aa.title }}
  1773. </div>
  1774. </div>
  1775. <div class="wordTeacher" @click="checkTemplate2()">
  1776. <div class="wordPic">
  1777. <img src="../../../assets/icon/wordMub.png" alt />
  1778. </div>
  1779. <div style="
  1780. margin-top: 10px;
  1781. line-height: 19px;
  1782. overflow: hidden;
  1783. text-overflow: ellipsis;
  1784. white-space: nowrap;
  1785. padding: 0 20px;
  1786. ">
  1787. 任务模式
  1788. </div>
  1789. </div>
  1790. <div class="wordTeacher" @click="checkTemplate3()">
  1791. <div class="wordPic">
  1792. <img src="../../../assets/icon/wordMub.png" alt />
  1793. </div>
  1794. <div style="
  1795. margin-top: 10px;
  1796. line-height: 19px;
  1797. overflow: hidden;
  1798. text-overflow: ellipsis;
  1799. white-space: nowrap;
  1800. padding: 0 20px;
  1801. ">
  1802. 简易模式
  1803. </div>
  1804. </div>
  1805. <div class="wordTeacher" @click="pasteStage()">
  1806. <div class="wordPic">
  1807. <img src="../../../assets/icon/wordMub.png" alt />
  1808. </div>
  1809. <div style="
  1810. margin-top: 10px;
  1811. line-height: 19px;
  1812. overflow: hidden;
  1813. text-overflow: ellipsis;
  1814. white-space: nowrap;
  1815. padding: 0 20px;
  1816. ">
  1817. 智能粘贴模式
  1818. </div>
  1819. </div>
  1820. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1821. <div class="wordPic">
  1822. <img src="../../../assets/icon/wordMub.png" alt />
  1823. </div>
  1824. <div style="
  1825. margin-top: 10px;
  1826. line-height: 19px;
  1827. overflow: hidden;
  1828. text-overflow: ellipsis;
  1829. white-space: nowrap;
  1830. padding: 0 20px;
  1831. ">
  1832. 未来小学课程设计
  1833. </div>
  1834. </div> -->
  1835. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1836. <div class="wordPic">
  1837. <img src="../../../assets/icon/wordMub.png" alt />
  1838. </div>
  1839. <div style="
  1840. margin-top: 10px;
  1841. line-height: 19px;
  1842. overflow: hidden;
  1843. text-overflow: ellipsis;
  1844. white-space: nowrap;
  1845. padding: 0 20px;
  1846. ">
  1847. 我的课程
  1848. </div>
  1849. </div> -->
  1850. </div>
  1851. </div>
  1852. </div>
  1853. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1854. <div class="basic_box">
  1855. <div style="
  1856. display: flex;
  1857. flex-direction: row;
  1858. align-items: center;
  1859. position: sticky;
  1860. top: 0;
  1861. background: #fff;
  1862. z-index: 99;
  1863. width: 100%;
  1864. padding: 0 20px 0 20px;
  1865. box-sizing: border-box;
  1866. ">
  1867. <div class="cru_selectBox">
  1868. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1869. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1870. <!-- item.dyName ? item.dyName : -->
  1871. {{ "第" + (index + 1) + "阶段" }}
  1872. </div>
  1873. <img src="../../../assets/line.png" class="cru_line" :style="{
  1874. left: offsetLetfPx + 'px',
  1875. }" />
  1876. </div>
  1877. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1878. !(unitJson[unitJson.length - 1].easy == 6)
  1879. ">
  1880. <img src="../../../assets/icon/add.png" alt />
  1881. </div>
  1882. </div>
  1883. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1884. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1885. <div>
  1886. <div class="chapter_contentbox">
  1887. <div>第{{ unitIndex + 1 }}阶段</div>
  1888. <div>
  1889. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1890. </div>
  1891. <div v-if="unitJson.length > 1 &&
  1892. !(unitJson[unitJson.length - 1].easy == 4) &&
  1893. !(unitJson[unitJson.length - 1].easy == 6)
  1894. " @click="deleteUnit(unitIndex)"></div>
  1895. </div>
  1896. </div>
  1897. <div v-if="!unitJson[unitIndex].easy" style="
  1898. margin: 50px 0px 10px;
  1899. font-size: 1.5em;
  1900. font-weight: 700;
  1901. color: #0f7eff;
  1902. ">
  1903. 添加任务
  1904. </div>
  1905. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1906. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1907. <div v-if="unitJson[unitIndex].easy != 1">
  1908. <div :style="{
  1909. marginBottom:
  1910. unitJson[unitIndex].easy == 3 ||
  1911. (unitJson[unitIndex].easy == 5 &&
  1912. itemTask.taskType == 1)
  1913. ? '75px'
  1914. : '0',
  1915. }">
  1916. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1917. 任务{{ itemTaskIndex + 1 }}
  1918. </div>
  1919. <div class="chapter_contentbox" style="
  1920. flex-direction: row;
  1921. justify-content: flex-start;
  1922. align-items: center;
  1923. ">
  1924. <div style="
  1925. border-left: 6px solid #5699e8;
  1926. height: 20px;
  1927. padding-left: 10px;
  1928. line-height: 22px;
  1929. ">
  1930. 任务名称
  1931. </div>
  1932. <div>
  1933. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1934. itemTaskIndex
  1935. ].task
  1936. " />
  1937. </div>
  1938. <div class="remove" v-if="item.taskJson.length > 1 &&
  1939. (!unitJson[unitIndex].easy ||
  1940. unitJson[unitIndex].easy == 6)
  1941. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1942. </div>
  1943. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1944. display: flex;
  1945. margin: 0 0 20px 0;
  1946. flex-direction: row;
  1947. justify-content: flex-start;
  1948. align-items: center;
  1949. width: 70.5% !important;
  1950. padding-top: 30px;
  1951. ">
  1952. <div class="lineTitle">任务描述</div>
  1953. </div>
  1954. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1955. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1956. itemTaskIndex
  1957. ].taskDetail
  1958. " @change="change"></editor-bar>
  1959. <!-- <textarea
  1960. rows="6"
  1961. class="binfo_input"
  1962. placeholder="请输入任务描述"
  1963. cols
  1964. style="width: 70.5% !important; height: 120px"
  1965. v-model="
  1966. unitJson[unitIndex].chapterInfo[0].taskJson[
  1967. itemTaskIndex
  1968. ].taskDetail
  1969. "
  1970. ></textarea>-->
  1971. </div>
  1972. </div>
  1973. </div>
  1974. <div v-if="!unitJson[unitIndex].easy ||
  1975. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1976. " class="basic_box" style="
  1977. padding: 0 !important;
  1978. ">
  1979. <div style="
  1980. display: flex;
  1981. margin: 0 0 20px 0;
  1982. flex-direction: row;
  1983. justify-content: flex-start;
  1984. align-items: center;
  1985. ">
  1986. <div class="lineTitle">学习内容</div>
  1987. </div>
  1988. <div>
  1989. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1990. itemTask.chapterData.length == 0
  1991. " style="height: 185px"></div>
  1992. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1993. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1994. @click="
  1995. getChapterData(
  1996. $event,
  1997. unitIndex,
  1998. index,
  1999. index1,
  2000. item1.type
  2001. )
  2002. ">
  2003. <div class="chapter_upload_t" style="width: 100%"></div>
  2004. <div class="chapter_upload_o" style="
  2005. position: relative;
  2006. display: flex;
  2007. align-items: center;
  2008. ">
  2009. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2010. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2011. <div v-if="item1.type == 3 ||
  2012. item1.type == 12 ||
  2013. item1.type == 13 ||
  2014. item1.type == 6 ||
  2015. item1.type == 7
  2016. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2017. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2018. </div>
  2019. <div class="chapter_upload_ic" style="
  2020. cursor: pointer;
  2021. position: absolute;
  2022. width: 45px;
  2023. right: 0;
  2024. top: 0;
  2025. ">
  2026. <div class="chapter_upload_ic_l"></div>
  2027. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2028. deleteChapterData(
  2029. $event,
  2030. unitIndex,
  2031. index,
  2032. index1,
  2033. itemTaskIndex
  2034. )
  2035. ">
  2036. <div></div>
  2037. </div>
  2038. </div>
  2039. <div class="chapter_upload_n">
  2040. <input v-if="item1.type == 2 ||
  2041. item1.type == 3 ||
  2042. item1.type == 12 ||
  2043. item1.type == 13 ||
  2044. item1.type == 7
  2045. " :placeholder="item1.name" @change="
  2046. updataVideoT(
  2047. $event,
  2048. unitIndex,
  2049. chapterIndex,
  2050. index1
  2051. )
  2052. " style="
  2053. border: none;
  2054. outline: none;
  2055. width: 80%;
  2056. minwidth: 215px;
  2057. z-index: 99;
  2058. font-size: 14px;
  2059. white-space: nowrap;
  2060. overflow: hidden;
  2061. text-overflow: ellipsis;
  2062. " />
  2063. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2064. border: none;
  2065. outline: none;
  2066. width: 80%;
  2067. white-space: nowrap;
  2068. overflow: hidden;
  2069. text-overflow: ellipsis;
  2070. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2071. <input :placeholder="item1.title ? item1.title : '链接'
  2072. " v-if="item1.type == 8" style="
  2073. border: none;
  2074. outline: none;
  2075. width: 80%;
  2076. white-space: nowrap;
  2077. overflow: hidden;
  2078. text-overflow: ellipsis;
  2079. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2080. <div class="chapter_upload_ud" style="z-index: 99">
  2081. <div class="chapter_upload_up" @click="
  2082. upCd(
  2083. $event,
  2084. unitIndex,
  2085. index,
  2086. itemTaskIndex,
  2087. index1
  2088. )
  2089. "></div>
  2090. <div class="chapter_upload_down" @click="
  2091. downCd(
  2092. $event,
  2093. unitIndex,
  2094. index,
  2095. itemTaskIndex,
  2096. index1
  2097. )
  2098. "></div>
  2099. </div>
  2100. </div>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. </div>
  2105. <div class="add_info_box">
  2106. <button class="info_btn" @click="addImg($event)">
  2107. 添加文件
  2108. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  2109. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  2110. " />
  2111. </button>
  2112. <!-- <button class="info_btn" @click="addImg($event)">
  2113. 添加视频
  2114. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2115. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  2116. " />
  2117. </button>
  2118. <button class="info_btn" @click="addImg($event)">
  2119. 添加文档
  2120. <input type="file"
  2121. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2122. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  2123. " />
  2124. </button> -->
  2125. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  2126. 添加图文
  2127. </button>
  2128. <button class="info_btn" @click="openLine(itemTaskIndex)">
  2129. 添加链接
  2130. </button>
  2131. <button class="info_btn" @click="openSource(itemTaskIndex)">
  2132. 添加资源
  2133. </button>
  2134. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  2135. 嵌入代码
  2136. </button>
  2137. <!-- <button class="info_btn" @click="addImg($event)">
  2138. 其他附件
  2139. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  2140. " />
  2141. </button> -->
  2142. </div>
  2143. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2144. itemTaskIndex
  2145. ].proVisible
  2146. " class="mask">
  2147. <div class="progressBox">
  2148. <!-- <div id="closePro" class="closeCss">
  2149. <img src="../../../../assets/icon/close.png" alt />
  2150. </div> -->
  2151. <div class="lbox">
  2152. <img src="../../../assets/loading.gif" />上传中,请稍后
  2153. </div>
  2154. <div style="margin-bottom: 10px">
  2155. <span>{{
  2156. unitJson[unitIndex].chapterInfo[0].taskJson[
  2157. itemTaskIndex
  2158. ].isFinishSize
  2159. }}M</span>
  2160. /
  2161. <span>{{
  2162. unitJson[unitIndex].chapterInfo[0].taskJson[
  2163. itemTaskIndex
  2164. ].isAllSize
  2165. }}M</span>
  2166. </div>
  2167. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2168. itemTaskIndex
  2169. ].progress
  2170. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2171. itemTaskIndex
  2172. ].progress
  2173. : 0
  2174. " style="width: 80%"></el-progress>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. <div v-if="unitJson[unitIndex].easy == 1 ||
  2179. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2180. " class="basic_box" style="
  2181. margin: 0 auto;
  2182. min-height: 0;
  2183. width: 95% !important;
  2184. padding: 20px 10px 10px;
  2185. ">
  2186. <div>
  2187. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  2188. itemTask.chapterData.length == 0
  2189. " style="height: 185px"></div>
  2190. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  2191. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  2192. <div class="chapter_upload" @click="
  2193. getChapterData(
  2194. $event,
  2195. unitIndex,
  2196. index,
  2197. index1,
  2198. item1.type
  2199. )
  2200. ">
  2201. <div class="chapter_upload_t" style="width: 100%"></div>
  2202. <div class="chapter_upload_o" style="
  2203. position: relative;
  2204. display: flex;
  2205. align-items: center;
  2206. ">
  2207. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  2208. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  2209. <div v-if="item1.type == 3 ||
  2210. item1.type == 6 ||
  2211. item1.type == 7
  2212. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  2213. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  2214. </div>
  2215. <div class="chapter_upload_ic" style="
  2216. cursor: pointer;
  2217. position: absolute;
  2218. width: 45px;
  2219. right: 0;
  2220. top: 0;
  2221. ">
  2222. <div class="chapter_upload_ic_l"></div>
  2223. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  2224. deleteChapterData(
  2225. $event,
  2226. unitIndex,
  2227. index,
  2228. index1,
  2229. itemTaskIndex
  2230. )
  2231. ">
  2232. <div></div>
  2233. </div>
  2234. </div>
  2235. <div class="chapter_upload_n">
  2236. <span style="
  2237. font-size: 14px;
  2238. color: rgb(109, 109, 109);
  2239. height: 14px;
  2240. line-height: 12px;
  2241. " v-if="item1.type == 2 ||
  2242. item1.type == 3 ||
  2243. item1.type == 7
  2244. ">{{ item1.text }}-</span>
  2245. <input v-if="item1.type == 2 ||
  2246. item1.type == 3 ||
  2247. item1.type == 7
  2248. " :placeholder="item1.name" @change="
  2249. updataVideoT(
  2250. $event,
  2251. unitIndex,
  2252. chapterIndex,
  2253. index1
  2254. )
  2255. " style="
  2256. border: none;
  2257. outline: none;
  2258. width: 80%;
  2259. minwidth: 215px;
  2260. z-index: 99;
  2261. font-size: 14px;
  2262. white-space: nowrap;
  2263. overflow: hidden;
  2264. text-overflow: ellipsis;
  2265. " />
  2266. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  2267. border: none;
  2268. outline: none;
  2269. width: 80%;
  2270. white-space: nowrap;
  2271. overflow: hidden;
  2272. text-overflow: ellipsis;
  2273. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  2274. <input :placeholder="item1.title ? item1.title : '链接'
  2275. " v-if="item1.type == 8" style="
  2276. border: none;
  2277. outline: none;
  2278. width: 80%;
  2279. white-space: nowrap;
  2280. overflow: hidden;
  2281. text-overflow: ellipsis;
  2282. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  2283. <div class="chapter_upload_ud" style="z-index: 99">
  2284. <div class="chapter_upload_up" @click="
  2285. upCd(
  2286. $event,
  2287. unitIndex,
  2288. index,
  2289. itemTaskIndex,
  2290. index1
  2291. )
  2292. "></div>
  2293. <div class="chapter_upload_down" @click="
  2294. downCd(
  2295. $event,
  2296. unitIndex,
  2297. index,
  2298. itemTaskIndex,
  2299. index1
  2300. )
  2301. "></div>
  2302. </div>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. </div>
  2309. <div class="add_info_box" style="margin: 10px 0 0">
  2310. <button class="info_btn" @click="addImg($event)">
  2311. <span style="color: red">*</span>
  2312. 教学设计
  2313. <input type="file"
  2314. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2315. style="display: none" v-if="inputShow" @change="
  2316. beforeUpload3(
  2317. $event,
  2318. unitIndex,
  2319. 3,
  2320. itemTaskIndex,
  2321. '教学设计'
  2322. )
  2323. " />
  2324. </button>
  2325. <button class="info_btn" @click="addImg($event)">
  2326. <span style="color: red">*</span>
  2327. 教学课件
  2328. <input type="file"
  2329. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2330. style="display: none" v-if="inputShow" @change="
  2331. beforeUpload3(
  2332. $event,
  2333. unitIndex,
  2334. 3,
  2335. itemTaskIndex,
  2336. '教学课件'
  2337. )
  2338. " />
  2339. </button>
  2340. <button class="info_btn" @click="addImg($event)">
  2341. 教学视频
  2342. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  2343. v-if="inputShow" @change="
  2344. beforeUpload3(
  2345. $event,
  2346. unitIndex,
  2347. 2,
  2348. itemTaskIndex,
  2349. '教学视频'
  2350. )
  2351. " />
  2352. </button>
  2353. <button class="info_btn" @click="addImg($event)">
  2354. 教学音频
  2355. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  2356. beforeUpload3(
  2357. $event,
  2358. unitIndex,
  2359. 2,
  2360. itemTaskIndex,
  2361. '教学音频'
  2362. )
  2363. " />
  2364. </button>
  2365. <button class="info_btn" @click="addImg($event)">
  2366. 学习单
  2367. <input type="file"
  2368. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  2369. style="display: none" v-if="inputShow" @change="
  2370. beforeUpload3(
  2371. $event,
  2372. unitIndex,
  2373. 3,
  2374. itemTaskIndex,
  2375. '学习单'
  2376. )
  2377. " />
  2378. </button>
  2379. </div>
  2380. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  2381. itemTaskIndex
  2382. ].proVisible
  2383. " class="mask">
  2384. <div class="progressBox">
  2385. <!-- <div id="closePro" class="closeCss">
  2386. <img src="../../../../assets/icon/close.png" alt />
  2387. </div> -->
  2388. <div class="lbox">
  2389. <img src="../../../assets/loading.gif" />上传中,请稍后
  2390. </div>
  2391. <div style="margin-bottom: 10px">
  2392. <span>{{
  2393. unitJson[unitIndex].chapterInfo[0].taskJson[
  2394. itemTaskIndex
  2395. ].isFinishSize
  2396. }}M</span>
  2397. /
  2398. <span>{{
  2399. unitJson[unitIndex].chapterInfo[0].taskJson[
  2400. itemTaskIndex
  2401. ].isAllSize
  2402. }}M</span>
  2403. </div>
  2404. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  2405. itemTaskIndex
  2406. ].progress
  2407. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  2408. itemTaskIndex
  2409. ].progress
  2410. : 0
  2411. " style="width: 80%"></el-progress>
  2412. </div>
  2413. </div>
  2414. </div>
  2415. <div v-if="unitJson[unitIndex].easy != 3 &&
  2416. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2417. " style="
  2418. flex-direction: row;
  2419. justify-content: flex-start;
  2420. align-items: center;
  2421. padding: 0 0 0 30px;
  2422. paddint-top: 10px !important;
  2423. ">
  2424. <div style="
  2425. display: flex;
  2426. flex-direction: row;
  2427. align-items: center;
  2428. margin-bottom: 20px;
  2429. ">
  2430. <div class="lineTitle">
  2431. {{
  2432. !unitJson[unitIndex].easy ||
  2433. unitJson[unitIndex].easy == 6 ||
  2434. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2435. ? "练习内容"
  2436. : "评价内容"
  2437. }}
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2442. " class="toolChoose" style="padding: 0 0 0 30px">
  2443. <div class="tools">
  2444. <div class="leftTools" style="
  2445. width: 95%;
  2446. padding: 0 0 15px 0;
  2447. margin: 15px 0;
  2448. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2449. <div>
  2450. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2451. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2452. </div>
  2453. <div style="
  2454. display: flex;
  2455. flex-direction: row;
  2456. align-items: baseline;
  2457. flex-wrap: nowrap;
  2458. justify-content: flex-start;
  2459. position: relative;
  2460. ">
  2461. <div style="margin-right: 20px; font-weight: bold">
  2462. 工具 {{ toolIndex + 1 }} :
  2463. </div>
  2464. <div class="chooseWho">
  2465. <!-- <div
  2466. :class="
  2467. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2468. "
  2469. @click="(itemTool.toolType = 0), $forceUpdate()"
  2470. >
  2471. 互动类
  2472. </div> -->
  2473. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2474. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2475. 思维类
  2476. </div>
  2477. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2478. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2479. 协作类
  2480. </div>
  2481. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2482. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2483. 测评类
  2484. </div>
  2485. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2486. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2487. 评价类
  2488. </div>
  2489. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2490. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2491. 学科类
  2492. </div>
  2493. <!-- <div
  2494. :class="
  2495. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2496. "
  2497. @click="(itemTool.toolType = 5), $forceUpdate()"
  2498. >
  2499. 学科类
  2500. </div>
  2501. <div
  2502. :class="
  2503. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2504. "
  2505. @click="(itemTool.toolType = 4), $forceUpdate()"
  2506. >
  2507. 其他
  2508. </div> -->
  2509. </div>
  2510. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2511. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2512. </div>
  2513. <div style="min-height: 163px">
  2514. <div class="toolSort" v-if="itemTool.toolType == 0">
  2515. <!-- <div class="tool">
  2516. <div
  2517. class="whiteBIcon"
  2518. @click="addTools(8, itemTaskIndex, toolIndex)"
  2519. >
  2520. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2521. <div style="margin: 5px 0">素材库</div>
  2522. </div>
  2523. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2524. <img
  2525. src="../../../assets/icon/checkNo.png"
  2526. alt
  2527. v-if="itemTool.tool.indexOf(8) == -1"
  2528. />
  2529. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2530. alt /><span>已选择</span></div>
  2531. </div>
  2532. </div>-->
  2533. <!-- <div class="tool">
  2534. <div
  2535. class="whiteBIcon"
  2536. @click="addTools(17, itemTaskIndex, toolIndex)"
  2537. >
  2538. <img
  2539. src="../../../assets/icon/secondToolList/library.png"
  2540. alt
  2541. />
  2542. <div style="margin: 5px 0">学习资料</div>
  2543. </div>
  2544. <div
  2545. class="check"
  2546. @click="addTools(17, itemTaskIndex, toolIndex)"
  2547. >
  2548. <img
  2549. src="../../../assets/icon/checkNo.png"
  2550. alt
  2551. v-if="itemTool.tool.indexOf(17) == -1"
  2552. />
  2553. <img
  2554. src="../../../assets/icon/checkedIs.png"
  2555. alt
  2556. v-else
  2557. />
  2558. </div>10
  2559. </div> -->
  2560. <div class="tool">
  2561. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2562. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2563. <div style="margin: 5px 0">倒计时</div>
  2564. </div>
  2565. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2566. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2567. <div class="checkDiv" v-else>
  2568. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. <!-- <div class="tool">
  2573. <div
  2574. class="whiteBIcon"
  2575. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2576. >
  2577. <img
  2578. src="../../../assets/icon/fourthToolList/group.png"
  2579. alt
  2580. />
  2581. <div style="margin: 5px 0">学生分组</div>
  2582. </div>
  2583. <div
  2584. class="check"
  2585. @click="addTools(49, itemTaskIndex, toolIndex)"
  2586. >
  2587. <img
  2588. src="../../../assets/icon/checkNo.png"
  2589. alt
  2590. v-if="itemTool.tool.indexOf(49) == -1"
  2591. />
  2592. <div class="checkDiv" v-else>
  2593. <img
  2594. src="../../../assets/icon/checkedIs.png"
  2595. alt
  2596. /><span>已选择</span>
  2597. </div>
  2598. </div>
  2599. </div> -->
  2600. <div class="tool">
  2601. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2602. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2603. <div style="margin: 5px 0">交互视频</div>
  2604. </div>
  2605. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2606. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2607. <div class="checkDiv" v-else>
  2608. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2609. </div>
  2610. </div>
  2611. </div>
  2612. </div>
  2613. <div class="toolSort" v-if="itemTool.toolType == 1">
  2614. <div class="tool">
  2615. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2616. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2617. <div style="margin: 5px 0">思维网格</div>
  2618. </div>
  2619. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2620. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2621. <div class="checkDiv" v-else>
  2622. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2623. </div>
  2624. </div>
  2625. </div>
  2626. <div class="tool">
  2627. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2628. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2629. <div style="margin: 5px 0">电子白板</div>
  2630. </div>
  2631. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2632. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2633. <div class="checkDiv" v-else>
  2634. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2635. </div>
  2636. </div>
  2637. </div>
  2638. <!-- <div class="tool">
  2639. <div
  2640. class="whiteBIcon"
  2641. @click="addTools(2, itemTaskIndex, toolIndex)"
  2642. >
  2643. <img
  2644. src="../../../assets/icon/secondToolList/note.png"
  2645. alt
  2646. />
  2647. <div style="margin: 5px 0">便签</div>
  2648. </div>
  2649. <div
  2650. class="check"
  2651. @click="addTools(2, itemTaskIndex, toolIndex)"
  2652. >
  2653. <img
  2654. src="../../../assets/icon/checkNo.png"
  2655. alt
  2656. v-if="itemTool.tool.indexOf(2) == -1"
  2657. />
  2658. <div class="checkDiv" v-else>
  2659. <img
  2660. src="../../../assets/icon/checkedIs.png"
  2661. alt
  2662. /><span>已选择</span>
  2663. </div>
  2664. </div>
  2665. </div> -->
  2666. <!-- <div class="tool">
  2667. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2668. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2669. <div style="margin: 5px 0">协同文档</div>
  2670. </div>
  2671. <div
  2672. class="check"
  2673. @click="addTools(6, itemTaskIndex, toolIndex)"
  2674. >
  2675. <img
  2676. src="../../../assets/icon/checkNo.png"
  2677. alt
  2678. v-if="itemTool.tool.indexOf(6) == -1"
  2679. />
  2680. <div class="checkDiv" v-else>
  2681. <img
  2682. src="../../../assets/icon/checkedIs.png"
  2683. alt
  2684. /><span>已选择</span>
  2685. </div>
  2686. </div>
  2687. </div> -->
  2688. <div class="tool">
  2689. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2690. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2691. <div style="margin: 5px 0">文档</div>
  2692. </div>
  2693. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2694. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2695. <div class="checkDiv" v-else>
  2696. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2697. </div>
  2698. </div>
  2699. </div>
  2700. <div class="tool">
  2701. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2702. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2703. <div style="margin: 5px 0">思维导图</div>
  2704. </div>
  2705. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2706. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2707. <div class="checkDiv" v-else>
  2708. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2709. </div>
  2710. </div>
  2711. </div>
  2712. <div class="tool">
  2713. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2714. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2715. <div style="margin: 5px 0">表格</div>
  2716. </div>
  2717. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2718. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2719. <div class="checkDiv" v-else>
  2720. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2721. </div>
  2722. </div>
  2723. </div>
  2724. </div>
  2725. <div class="toolSort" v-if="itemTool.toolType == 6">
  2726. <div class="tool">
  2727. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2728. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2729. <div style="margin: 5px 0">学生分组</div>
  2730. </div>
  2731. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2732. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2733. <div class="checkDiv" v-else>
  2734. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2735. </div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. <div class="toolSort" v-if="itemTool.toolType == 2">
  2740. <!-- <div class="tool">
  2741. <div
  2742. class="whiteBIcon"
  2743. @click="addTools(5, itemTaskIndex, toolIndex)"
  2744. >
  2745. <img
  2746. src="../../../assets/icon/thirdToolList/score.png"
  2747. alt
  2748. />
  2749. <div style="margin: 5px 0">量规评分</div>
  2750. </div>
  2751. <div
  2752. class="check"
  2753. @click="addTools(5, itemTaskIndex, toolIndex)"
  2754. >
  2755. <img
  2756. src="../../../assets/icon/checkNo.png"
  2757. alt
  2758. v-if="itemTool.tool.indexOf(5) == -1"
  2759. />
  2760. <img
  2761. src="../../../assets/icon/checkedIs.png"
  2762. alt
  2763. v-else
  2764. />
  2765. </div>
  2766. </div>-->
  2767. <div class="tool">
  2768. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2769. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2770. <div style="margin: 5px 0">问卷调查</div>
  2771. </div>
  2772. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2773. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2774. <div class="checkDiv" v-else>
  2775. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2776. </div>
  2777. </div>
  2778. </div>
  2779. <div class="tool">
  2780. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2781. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2782. <div style="margin: 5px 0">选择题</div>
  2783. </div>
  2784. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2785. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2786. <div class="checkDiv" v-else>
  2787. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. <div class="tool">
  2792. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2793. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2794. <div style="margin: 5px 0">问答</div>
  2795. </div>
  2796. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2797. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2798. <div class="checkDiv" v-else>
  2799. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2800. </div>
  2801. </div>
  2802. </div>
  2803. <div class="tool">
  2804. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2805. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2806. <div style="margin: 5px 0">作业提交</div>
  2807. </div>
  2808. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2809. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2810. <div class="checkDiv" v-else>
  2811. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2812. </div>
  2813. </div>
  2814. </div>
  2815. <div class="tool">
  2816. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2817. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2818. <div style="margin: 5px 0">批量上传</div>
  2819. </div>
  2820. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2821. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2822. <div class="checkDiv" v-else>
  2823. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. <!-- <div class="tool">
  2828. <div
  2829. class="whiteBIcon"
  2830. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2831. >
  2832. <img
  2833. src="../../../assets/icon/thirdToolList/eval.png"
  2834. alt
  2835. />
  2836. <div style="margin: 5px 0">个人评价</div>
  2837. </div>
  2838. <div
  2839. class="check"
  2840. @click="addTools(40, itemTaskIndex, toolIndex)"
  2841. >
  2842. <img
  2843. src="../../../assets/icon/checkNo.png"
  2844. alt
  2845. v-if="itemTool.tool.indexOf(40) == -1"
  2846. />
  2847. <div class="checkDiv" v-else>
  2848. <img
  2849. src="../../../assets/icon/checkedIs.png"
  2850. alt
  2851. /><span>已选择</span>
  2852. </div>
  2853. </div>
  2854. </div> -->
  2855. <div class="tool">
  2856. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2857. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2858. <div style="margin: 5px 0">选择匹配</div>
  2859. </div>
  2860. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2861. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2862. <div class="checkDiv" v-else>
  2863. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2864. </div>
  2865. </div>
  2866. </div>
  2867. <div class="tool">
  2868. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2869. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2870. <div style="margin: 5px 0">排序</div>
  2871. </div>
  2872. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2873. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2874. <div class="checkDiv" v-else>
  2875. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2876. </div>
  2877. </div>
  2878. </div>
  2879. <!-- <div class="tool">
  2880. <div
  2881. class="whiteBIcon"
  2882. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2883. >
  2884. <img
  2885. src="../../../assets/icon/thirdToolList/mp3.png"
  2886. alt
  2887. />
  2888. <div style="margin: 5px 0">上传音频</div>
  2889. </div>
  2890. <div
  2891. class="check"
  2892. @click="addTools(42, itemTaskIndex, toolIndex)"
  2893. >
  2894. <img
  2895. src="../../../assets/icon/checkNo.png"
  2896. alt
  2897. v-if="itemTool.tool.indexOf(42) == -1"
  2898. />
  2899. <img
  2900. src="../../../assets/icon/checkedIs.png"
  2901. alt
  2902. v-else
  2903. />
  2904. </div>
  2905. </div> -->
  2906. </div>
  2907. <div class="toolSort" v-if="itemTool.toolType == 3">
  2908. <div class="tool">
  2909. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2910. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2911. <div style="margin: 5px 0">训练平台</div>
  2912. </div>
  2913. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2914. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2915. <div class="checkDiv" v-else>
  2916. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. <div class="tool">
  2921. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2922. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2923. <div style="margin: 5px 0">AIoT Blockly</div>
  2924. </div>
  2925. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2926. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2927. <div class="checkDiv" v-else>
  2928. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2929. </div>
  2930. </div>
  2931. </div>
  2932. <div class="tool">
  2933. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2934. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2935. <div style="margin: 5px 0">AI体验</div>
  2936. </div>
  2937. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2938. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2939. <div class="checkDiv" v-else>
  2940. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2941. </div>
  2942. </div>
  2943. </div>
  2944. <div class="tool">
  2945. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2946. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2947. <div style="margin: 5px 0">AI Python</div>
  2948. </div>
  2949. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2950. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2951. <div class="checkDiv" v-else>
  2952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. <div class="tool">
  2957. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2958. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2959. <div style="margin: 5px 0">AI Blockly</div>
  2960. </div>
  2961. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2962. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2963. <div class="checkDiv" v-else>
  2964. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2965. </div>
  2966. </div>
  2967. </div>
  2968. <!-- <div class="tool">
  2969. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2970. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2971. <div style="margin: 5px 0">源码编辑</div>
  2972. </div>
  2973. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2974. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2975. <div class="checkDiv" v-else>
  2976. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2977. </div>
  2978. </div>
  2979. </div> -->
  2980. <div class="tool">
  2981. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2982. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2983. <div style="margin: 5px 0">CocoPi</div>
  2984. </div>
  2985. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2986. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2987. <div class="checkDiv" v-else>
  2988. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2989. </div>
  2990. </div>
  2991. </div>
  2992. <div class="tool">
  2993. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2994. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2995. <div style="margin: 5px 0">海龟编程</div>
  2996. </div>
  2997. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2998. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -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>
  3005. <div class="toolSort" v-if="itemTool.toolType == 7">
  3006. <div class="tool">
  3007. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  3008. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  3009. <div style="margin: 5px 0">个人评价</div>
  3010. </div>
  3011. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  3012. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  3013. <div class="checkDiv" v-else>
  3014. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3015. </div>
  3016. </div>
  3017. </div>
  3018. </div>
  3019. <div class="toolSort" v-if="itemTool.toolType == 5">
  3020. <div class="tool">
  3021. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  3022. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  3023. <div style="margin: 5px 0">翻译</div>
  3024. </div>
  3025. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  3026. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  3027. <div class="checkDiv" v-else>
  3028. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3029. </div>
  3030. </div>
  3031. </div>
  3032. <div class="tool">
  3033. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  3034. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  3035. <div style="margin: 5px 0">魔盒识字</div>
  3036. </div>
  3037. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  3038. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  3039. <div class="checkDiv" v-else>
  3040. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. <div class="tool">
  3045. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  3046. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  3047. <div style="margin: 5px 0">24点</div>
  3048. </div>
  3049. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  3050. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  3051. <div class="checkDiv" v-else>
  3052. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3053. </div>
  3054. </div>
  3055. </div>
  3056. <div class="tool">
  3057. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  3058. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3059. <div style="margin: 5px 0">数学画板</div>
  3060. </div>
  3061. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  3062. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  3063. <div class="checkDiv" v-else>
  3064. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3065. </div>
  3066. </div>
  3067. </div>
  3068. <div class="tool">
  3069. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  3070. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  3071. <div style="margin: 5px 0">GeoGebra</div>
  3072. </div>
  3073. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  3074. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  3075. <div class="checkDiv" v-else>
  3076. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3077. </div>
  3078. </div>
  3079. </div>
  3080. <div class="tool">
  3081. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  3082. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  3083. <div style="margin: 5px 0">模拟驾驶</div>
  3084. </div>
  3085. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  3086. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  3087. <div class="checkDiv" v-else>
  3088. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3089. </div>
  3090. </div>
  3091. </div>
  3092. <div class="tool">
  3093. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  3094. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  3095. <div style="margin: 5px 0">路径搜索</div>
  3096. </div>
  3097. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  3098. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  3099. <div class="checkDiv" v-else>
  3100. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3101. </div>
  3102. </div>
  3103. </div>
  3104. <div class="tool">
  3105. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  3106. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  3107. <div style="margin: 5px 0">深度学习</div>
  3108. </div>
  3109. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  3110. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  3111. <div class="checkDiv" v-else>
  3112. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3113. </div>
  3114. </div>
  3115. </div>
  3116. <div class="tool">
  3117. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  3118. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  3119. <div style="margin: 5px 0">全历史</div>
  3120. </div>
  3121. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  3122. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  3123. <div class="checkDiv" v-else>
  3124. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3125. </div>
  3126. </div>
  3127. </div>
  3128. </div>
  3129. <div class="toolSort" v-if="itemTool.toolType == 4">
  3130. <div class="tool">
  3131. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  3132. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  3133. <div style="margin: 5px 0">课程设计</div>
  3134. </div>
  3135. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  3136. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  3137. <div class="checkDiv" v-else>
  3138. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3139. </div>
  3140. </div>
  3141. </div>
  3142. <div class="tool">
  3143. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  3144. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  3145. <div style="margin: 5px 0">目标管理</div>
  3146. </div>
  3147. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  3148. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  3149. <div class="checkDiv" v-else>
  3150. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. <!-- <div class="tool">
  3155. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  3156. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  3157. <div style="margin: 5px 0">汉字宫</div>
  3158. </div>
  3159. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  3160. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  3161. <div class="checkDiv" v-else>
  3162. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3163. </div>
  3164. </div>
  3165. </div> -->
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  3170. <div class="addToolImg">
  3171. <img src="../../../assets/icon/add.png" alt />
  3172. </div>
  3173. <div>添加工具</div>
  3174. </div>
  3175. </div>
  3176. </div>
  3177. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  3178. unitJson[unitIndex].easy == 4
  3179. " class="toolChoose" style="padding: 0 0 0 30px">
  3180. <div class="tools">
  3181. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3182. :key="toolIndex">
  3183. <div>
  3184. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  3185. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  3186. </div>
  3187. <div style="
  3188. display: flex;
  3189. flex-direction: row;
  3190. align-items: baseline;
  3191. flex-wrap: nowrap;
  3192. justify-content: flex-start;
  3193. position: relative;
  3194. ">
  3195. <div style="margin-right: 20px; font-weight: bold">
  3196. 工具 {{ toolIndex + 1 }} :
  3197. </div>
  3198. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  3199. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  3200. </div>
  3201. <div style="min-height: 163px">
  3202. <div class="toolSort">
  3203. <div class="tool">
  3204. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  3205. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3206. <div style="margin: 5px 0">电子白板</div>
  3207. </div>
  3208. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  3209. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  3210. <div class="checkDiv" v-else>
  3211. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. <div class="tool">
  3216. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  3217. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  3218. <div style="margin: 5px 0">文档</div>
  3219. </div>
  3220. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  3221. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  3222. <div class="checkDiv" v-else>
  3223. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div class="tool">
  3228. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  3229. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3230. <div style="margin: 5px 0">思维导图</div>
  3231. </div>
  3232. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  3233. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  3234. <div class="checkDiv" v-else>
  3235. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3236. </div>
  3237. </div>
  3238. </div>
  3239. <div class="tool">
  3240. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  3241. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3242. <div style="margin: 5px 0">问卷调查</div>
  3243. </div>
  3244. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  3245. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  3246. <div class="checkDiv" v-else>
  3247. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3248. </div>
  3249. </div>
  3250. </div>
  3251. <div class="tool">
  3252. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  3253. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  3254. <div style="margin: 5px 0">选择题</div>
  3255. </div>
  3256. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  3257. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  3258. <div class="checkDiv" v-else>
  3259. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3260. </div>
  3261. </div>
  3262. </div>
  3263. <div class="tool">
  3264. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  3265. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  3266. <div style="margin: 5px 0">问答</div>
  3267. </div>
  3268. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  3269. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  3270. <div class="checkDiv" v-else>
  3271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3272. </div>
  3273. </div>
  3274. </div>
  3275. <div class="tool">
  3276. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  3277. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  3278. <div style="margin: 5px 0">作业提交</div>
  3279. </div>
  3280. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  3281. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  3282. <div class="checkDiv" v-else>
  3283. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3284. </div>
  3285. </div>
  3286. </div>
  3287. <div class="tool">
  3288. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3289. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3290. <div style="margin: 5px 0">批量上传</div>
  3291. </div>
  3292. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3293. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3294. <div class="checkDiv" v-else>
  3295. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. <div class="tool">
  3300. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  3301. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  3302. <div style="margin: 5px 0">选择匹配</div>
  3303. </div>
  3304. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  3305. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  3306. <div class="checkDiv" v-else>
  3307. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3308. </div>
  3309. </div>
  3310. </div>
  3311. <div class="tool">
  3312. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  3313. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  3314. <div style="margin: 5px 0">排序</div>
  3315. </div>
  3316. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  3317. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  3318. <div class="checkDiv" v-else>
  3319. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3320. </div>
  3321. </div>
  3322. </div>
  3323. <div class="tool">
  3324. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  3325. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  3326. <div style="margin: 5px 0">表格</div>
  3327. </div>
  3328. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  3329. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  3330. <div class="checkDiv" v-else>
  3331. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3332. </div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. </div>
  3338. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  3339. <div class="addToolImg">
  3340. <img src="../../../assets/icon/add.png" alt />
  3341. </div>
  3342. <div>添加工具</div>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  3347. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3348. " class="toolChoose" style="padding: 0 0 0 30px">
  3349. <div class="tools">
  3350. <div class="leftTools" style="
  3351. width: 95%;
  3352. padding: 0 0 15px 0;
  3353. margin-bottom: 15px;
  3354. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  3355. <div style="min-height: 163px">
  3356. <div class="toolSort">
  3357. <div class="tool">
  3358. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  3359. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  3360. <div style="margin: 5px 0">批量上传</div>
  3361. </div>
  3362. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  3363. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  3364. <div class="checkDiv" v-else>
  3365. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3366. </div>
  3367. </div>
  3368. </div>
  3369. </div>
  3370. </div>
  3371. </div>
  3372. </div>
  3373. </div>
  3374. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  3375. <div class="elist_title">
  3376. <div style="
  3377. display: flex;
  3378. flex-direction: row;
  3379. align-items: center;
  3380. margin-bottom: 20px;
  3381. ">
  3382. <div class="lineTitle">评价设置</div>
  3383. </div>
  3384. </div>
  3385. <div class="mbCss">
  3386. <div class="pjCss">
  3387. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  3388. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  3389. <span>评价名称:</span>
  3390. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  3391. <span>评星等级:</span>
  3392. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  3393. <div class="remove" @click="
  3394. deletEList(unitIndex, itemTaskIndex, eIndex)
  3395. "></div>
  3396. <div class="elist_inptu_text">
  3397. <span>评价描述:</span>
  3398. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  3399. </div>
  3400. <div class="elist_inptu_text" v-if="evalua">
  3401. <span>目标:</span>
  3402. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3403. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3404. @change="forceUpdate()">
  3405. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3406. :value="e.name">
  3407. </el-option>
  3408. </el-select> -->
  3409. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  3410. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  3411. </div>
  3412. </div>
  3413. </div>
  3414. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  3415. <div class="addToolImg">
  3416. <img src="../../../assets/icon/add.png" alt />
  3417. </div>
  3418. <div>添加</div>
  3419. </div>
  3420. </div>
  3421. <div v-if="evalua" style="
  3422. border: 1px solid #e5e5e5;
  3423. width: 55%;
  3424. margin-top: 20px;
  3425. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3426. " class="evaCss">
  3427. <div class="e_add_top">
  3428. <div class="e_add_title">
  3429. <span>当前使用目标管理</span>
  3430. <span>{{ eTitle }}</span>
  3431. <img src="../../../assets/line.png" class="cru_line" style="
  3432. width: 125px;
  3433. height: 20px;
  3434. bottom: -10px;
  3435. left: 155px;
  3436. " />
  3437. </div>
  3438. </div>
  3439. <div class="e_add_content" style="width: 100%">
  3440. <div class="e_add_list_pbox" style="width: 100%">
  3441. <div class="e_add_list_pbox_title">
  3442. <span class="type_title">切换模式</span>
  3443. <div class="type_content">
  3444. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3445. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3446. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3447. </div>
  3448. </div>
  3449. <div class="e_add_list_pbox_content">
  3450. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3451. " v-if="typeMode == 1"></Mind>
  3452. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3453. </Sunburst>
  3454. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3455. v-if="typeMode == 3"></SeeBoard>
  3456. </div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div class="funBlock" style="padding: 0">
  3463. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3464. <div>折叠</div>
  3465. <div class="arrow">
  3466. <img src="../../../assets/icon/fold.png" alt />
  3467. </div>
  3468. </div>
  3469. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3470. <div>展开</div>
  3471. <div class="arrow">
  3472. <img src="../../../assets/icon/expand.png" alt />
  3473. </div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3478. <div>
  3479. <img src="../../../assets/icon/new/addStage.png" alt />
  3480. <span>添加任务</span>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. </div>
  3485. </div>
  3486. <div class="rightBox" v-if="this.steps == 4">
  3487. <div class="basic_box_success">
  3488. <div class="right_img">
  3489. <img src="../../../assets/icon/right.png" alt />
  3490. </div>
  3491. <div style="font-weight: bold">成功</div>
  3492. <!-- <div>您的课程编号</div>
  3493. <div class="number">{{ number }}</div>-->
  3494. <!-- <div class="success_button">
  3495. <div class="look_course" @click="isNoFinsh">
  3496. 邀请老师协同编辑
  3497. </div>
  3498. <div class="attend_others" @click="goCourse">预览课程</div>
  3499. </div> -->
  3500. </div>
  3501. </div>
  3502. <div :class="{ info_btnBox: isBtnDisplay, info_btnBox2: !isBtnDisplay }" @mouseenter="btnDisplay(true)"
  3503. @mouseleave="btnDisplay(false)" v-if="false">
  3504. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
  3505. 返回课程
  3506. </button>
  3507. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
  3508. 确认上传
  3509. </button>
  3510. </div>
  3511. </div>
  3512. </div>
  3513. </div>
  3514. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3515. class="dialog_diy2 customWidth">
  3516. <div>请复制该链接邀请协同编辑</div>
  3517. <div>http://www.boomyon.com/index-zhang.com</div>
  3518. <span slot="footer" class="dialog-footer">
  3519. <el-button type="primary">复制链接分享</el-button>
  3520. <el-button @click="dialogVisible = false">取消</el-button>
  3521. </span>
  3522. </el-dialog>
  3523. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3524. :before-close="handleClose" class="dialog_diy2 customWidth">
  3525. <el-form>
  3526. <el-form-item label="文档标题">
  3527. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3528. </el-form-item>
  3529. <div>文档简介</div>
  3530. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3531. </el-form>
  3532. <span slot="footer" class="dialog-footer">
  3533. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3534. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3535. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3536. </span>
  3537. </el-dialog>
  3538. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3539. :before-close="handleClose" class="dialog_diy">
  3540. <el-form>
  3541. <el-form-item label="文档标题">
  3542. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3543. </el-form-item>
  3544. <div>文档内容</div>
  3545. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3546. </el-form>
  3547. <span slot="footer" class="dialog-footer">
  3548. <el-button @click="clearChoose">取 消</el-button>
  3549. <el-button type="primary" @click="wordNext()">确定</el-button>
  3550. </span>
  3551. </el-dialog>
  3552. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3553. :before-close="handleClose" class="dialog_diy">
  3554. <el-form>
  3555. <el-form-item label="文本标题">
  3556. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  3557. placeholder="请输入文本标题..."></el-input>
  3558. </el-form-item>
  3559. <!-- <div>富文本内容</div> -->
  3560. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3561. </el-form>
  3562. <span slot="footer" class="dialog-footer">
  3563. <el-button @click="clearAttText">取 消</el-button>
  3564. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3565. </span>
  3566. </el-dialog>
  3567. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3568. :before-close="handleClose" class="dialog_diy lineCss">
  3569. <el-form>
  3570. <el-form-item label="标题" :label-width="formLabelWidth">
  3571. <span>
  3572. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3573. </span>
  3574. </el-form-item>
  3575. <el-form-item label="链接" :label-width="formLabelWidth">
  3576. <span>
  3577. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3578. </span>
  3579. </el-form-item>
  3580. </el-form>
  3581. <span slot="footer" class="dialog-footer">
  3582. <el-button @click="clearLine">取 消</el-button>
  3583. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3584. </span>
  3585. </el-dialog>
  3586. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  3587. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  3588. <div>
  3589. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  3590. </div>
  3591. <span slot="footer" class="dialog-footer">
  3592. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3593. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  3594. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  3595. </span>
  3596. </el-dialog>
  3597. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3598. :before-close="handleClose" class="addNewPP customWidth">
  3599. <div class="people">
  3600. <div class="people_top">
  3601. <div class="people_nav">选择成员</div>
  3602. <div class="people_top_right">
  3603. <div class="people_search">
  3604. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3605. <div class="search_img" @click="searchStudent">
  3606. <img src="../../../assets/icon/search.png" alt />
  3607. </div>
  3608. </div>
  3609. </div>
  3610. </div>
  3611. <el-checkbox-group v-model="checkboxList" class="people_name">
  3612. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3613. "暂无学生可选" }}</el-checkbox>
  3614. </el-checkbox-group>
  3615. </div>
  3616. <span slot="footer" class="dialog-footer">
  3617. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3618. <el-button type="primary" @click="isAddPP">确定</el-button>
  3619. </span>
  3620. </el-dialog>
  3621. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3622. :before-close="handleClose" class="addNewPP">
  3623. <div class="people" style="height: 300px">
  3624. <div class="people_top">
  3625. <div class="people_top_right">
  3626. <div class="people_search">
  3627. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  3628. <el-option label="全部" value=""></el-option>
  3629. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  3630. :value="item.id"></el-option>
  3631. </el-select>
  3632. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3633. <div class="search_img">
  3634. <img src="../../../assets/icon/search.png" alt />
  3635. </div>
  3636. </div>
  3637. </div>
  3638. <div class="people_nav">选择班级</div>
  3639. </div>
  3640. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  3641. v-if="grade2.length">
  3642. <div v-for="item in grade2" :key="item.id" class="p_box">
  3643. <el-checkbox :label="item.id">
  3644. {{ item.name }}
  3645. </el-checkbox>
  3646. </div>
  3647. </el-checkbox-group>
  3648. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  3649. </div>
  3650. <span slot="footer" class="dialog-footer">
  3651. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3652. <el-button type="primary" @click="isAddClass">确定</el-button>
  3653. </span>
  3654. </el-dialog> -->
  3655. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  3656. :before-close="handleClose" class="addNewPP2">
  3657. <div class="check_classBox">
  3658. <div class="check_class_right">
  3659. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  3660. 全部
  3661. </div>
  3662. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  3663. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  3664. {{ item.name }}
  3665. </div>
  3666. </el-tooltip>
  3667. </div>
  3668. <div class="check_class_left">
  3669. <div class="check_class_all_box">
  3670. <div class="check_class_left_title">选择班级</div>
  3671. <div style="display:flex;align-items:center;margin-left:auto;"><el-checkbox v-model="checkAll"
  3672. @change="handleCheckAllChange" class="all_check">全选</el-checkbox></div>
  3673. </div>
  3674. <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
  3675. <el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  3676. </div> -->
  3677. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  3678. <div v-for="item in grade2" :key="item.id" class="class_item">
  3679. <el-checkbox :label="item.id">
  3680. {{ item.name }}
  3681. </el-checkbox>
  3682. </div>
  3683. </el-checkbox-group>
  3684. <div v-if="!grade2.length">暂无数据</div>
  3685. </div>
  3686. </div>
  3687. <span slot="footer" class="dialog-footer">
  3688. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3689. <el-button type="primary" @click="isAddClass">确定</el-button>
  3690. </span>
  3691. </el-dialog>
  3692. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3693. :before-close="handleClose" class="addNewPP customWidth">
  3694. <div class="people">
  3695. <div class="people_top">
  3696. <div class="people_top_right">
  3697. <div class="people_search">
  3698. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3699. <div class="search_img" @click="getTeacher">
  3700. <img src="../../../assets/icon/search.png" alt />
  3701. </div>
  3702. </div>
  3703. </div>
  3704. <div class="people_nav">选择成员</div>
  3705. </div>
  3706. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3707. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3708. <div class="t_j_box">
  3709. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3710. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3711. </el-tooltip>
  3712. <el-tooltip placement="top" :content="item.username">
  3713. <span>{{ item.username }}</span>
  3714. </el-tooltip>
  3715. <el-tooltip placement="top" :content="item.school">
  3716. <span>{{ item.school }}</span>
  3717. </el-tooltip>
  3718. </div>
  3719. </el-checkbox>
  3720. </el-checkbox-group>
  3721. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3722. </div>
  3723. <span slot="footer" class="dialog-footer">
  3724. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3725. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3726. </span>
  3727. </el-dialog>
  3728. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3729. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  3730. <div style="height:100%">
  3731. <div class="a_add_title" style="
  3732. display: flex;
  3733. flex-direction: row;
  3734. align-items: center;
  3735. justify-content: center;
  3736. ">
  3737. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  3738. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3739. </div>
  3740. <div class="a_addBox" style="height:calc(100% - 50px)">
  3741. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  3742. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3743. <div class="a_add_checkType">
  3744. <span :class="{
  3745. active:
  3746. askJson.askJson[index1].type == '1' ||
  3747. !askJson.askJson[index1].type,
  3748. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3749. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3750. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3751. </div>
  3752. <div class="a_add_head">
  3753. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  3754. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3755. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  3756. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  3757. </div>
  3758. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  3759. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  3760. </div>
  3761. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  3762. </div>
  3763. <div class="a_add_head_div">
  3764. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3765. </el-button>
  3766. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  3767. </div>
  3768. </div>
  3769. <div class="a_add_body">
  3770. <div class="a_add_input" style="flex-direction: column;">
  3771. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3772. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  3773. <div style="margin-right: 10px">
  3774. 选项{{ checkIndex + 1 }}
  3775. </div>
  3776. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  3777. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  3778. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  3779. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  3780. </div>
  3781. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  3782. </div>
  3783. <div class="a_add_body_div">
  3784. <el-button type="primary" size="small"
  3785. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  3786. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  3787. v-if="askJson.askJson[index1].askItem != 1">删除
  3788. </el-button>
  3789. </div>
  3790. </div>
  3791. </div>
  3792. <!-- <div class="a_add_body_div">
  3793. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3794. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3795. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3796. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3797. </el-button>
  3798. </div> -->
  3799. </div>
  3800. </div>
  3801. </div>
  3802. </div>
  3803. <span slot="footer" class="dialog-footer">
  3804. <el-button @click="closePan(4)">取 消</el-button>
  3805. <el-button type="primary" @click="addAsk">确 定</el-button>
  3806. </span>
  3807. </el-dialog>
  3808. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3809. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  3810. <div style="height:100%">
  3811. <!-- <div class="a_add_title" style="
  3812. display: flex;
  3813. flex-direction: row;
  3814. align-items: center;
  3815. justify-content: center;
  3816. ">
  3817. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3818. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3819. </div> -->
  3820. <div class="a_addBox" style="height:100%">
  3821. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3822. <!-- 请输入题目内容 -->
  3823. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  3824. v-if="isPasteChoice">智能粘贴</button>
  3825. </div>
  3826. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3827. <div class="a_add_checkType">
  3828. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3829. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3830. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3831. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3832. </div>
  3833. <div class="a_add_head">
  3834. <div class="timuUpImg">
  3835. <div style="display: flex;align-items: center;">
  3836. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  3837. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  3838. placeholder="请输入题目">
  3839. </el-input> -->
  3840. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  3841. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  3842. @change="() => { $forceUpdate() }"></textarea>
  3843. </div>
  3844. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  3845. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  3846. </div>
  3847. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  3848. </div>
  3849. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  3850. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3851. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3852. </div>
  3853. </div>
  3854. <div class="a_add_head_div">
  3855. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3856. </el-button>
  3857. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  3858. </div>
  3859. </div>
  3860. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3861. testJson.testJson[index1].timuList.length
  3862. ">
  3863. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3864. @click.stop="previewImg(timg.src)">
  3865. <img :src="timg.src" alt="" />
  3866. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3867. <img src="../../../assets/icon/delete.png" alt="" />
  3868. </div>
  3869. </div>
  3870. </div>
  3871. <div class="a_add_body">
  3872. <div class="a_add_input a_add_input_choice">
  3873. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  3874. @change="() => { $forceUpdate() }">
  3875. <div class="radioBox">
  3876. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3877. .testItem" :key="checkIndex" :label="checkIndex">
  3878. <div style="margin-right: 10px">
  3879. 选项{{ checkIndex + 1 }}
  3880. </div>
  3881. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3882. testJson.testJson[index1].checkList[checkIndex]
  3883. .imgType &&
  3884. testJson.testJson[index1].checkList[checkIndex]
  3885. .imgType == 1
  3886. ">
  3887. <div class="inImg" @click.stop="
  3888. previewImg(
  3889. testJson.testJson[index1].checkList[checkIndex]
  3890. .src
  3891. )
  3892. ">
  3893. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3894. .src
  3895. " lazy />
  3896. <!-- <img :src="
  3897. testJson.testJson[index1].checkList[checkIndex]
  3898. .src
  3899. " alt="" /> -->
  3900. </div>
  3901. </div>
  3902. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3903. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3904. @change="() => { $forceUpdate() }"></textarea>
  3905. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3906. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  3907. </div>
  3908. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  3909. </div>
  3910. <div class="xzUpImg" @click.stop="addImg($event)">
  3911. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3912. <input type="file" accept="image/*" style="display: none"
  3913. @change="beforeUploadTi($event, index1, checkIndex)" />
  3914. </div>
  3915. <div class="a_add_body_div">
  3916. <el-button type="primary" size="small"
  3917. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  3918. <el-button type="primary" size="small"
  3919. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  3920. v-if="testJson.testJson[index1].testItem != 1">删除
  3921. </el-button>
  3922. </div>
  3923. </el-radio>
  3924. </div>
  3925. </el-radio-group>
  3926. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  3927. @change="() => { $forceUpdate() }">
  3928. <div class="radioBox">
  3929. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3930. .testItem" :key="checkIndex1" :label="checkIndex1">
  3931. <div style="margin-right: 10px">
  3932. 选项{{ checkIndex1 + 1 }}
  3933. </div>
  3934. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3935. testJson.testJson[index1].checkList[checkIndex1]
  3936. .imgType &&
  3937. testJson.testJson[index1].checkList[checkIndex1]
  3938. .imgType == 1
  3939. ">
  3940. <div class="inImg" @click.stop="
  3941. previewImg(
  3942. testJson.testJson[index1].checkList[checkIndex1]
  3943. .src
  3944. )
  3945. ">
  3946. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3947. .src
  3948. " lazy />
  3949. <!-- <img :src="
  3950. testJson.testJson[index1].checkList[checkIndex1]
  3951. .src
  3952. " alt="" /> -->
  3953. </div>
  3954. </div>
  3955. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3956. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  3957. @change="() => { $forceUpdate() }"></textarea>
  3958. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  3959. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  3960. </div>
  3961. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  3962. </div>
  3963. <div class="xzUpImg" @click.stop="addImg($event)">
  3964. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3965. <input type="file" accept="image/*" style="display: none"
  3966. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3967. </div>
  3968. <div class="a_add_body_div">
  3969. <el-button type="primary" size="small"
  3970. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  3971. <el-button type="primary" size="small"
  3972. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  3973. v-if="testJson.testJson[index1].testItem != 1">删除
  3974. </el-button>
  3975. </div>
  3976. </el-checkbox>
  3977. </div>
  3978. </el-checkbox-group>
  3979. </div>
  3980. <!-- <div class="a_add_body_div">
  3981. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3982. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3983. v-if="testJson.testJson[index1].testItem != 1">删除
  3984. </el-button>
  3985. </div> -->
  3986. </div>
  3987. </div>
  3988. </div>
  3989. </div>
  3990. <span slot="footer" class="dialog-footer">
  3991. <el-button @click="closePan(45)">取 消</el-button>
  3992. <el-button type="primary" @click="addTest">确 定</el-button>
  3993. </span>
  3994. </el-dialog>
  3995. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3996. :before-close="handleClose" class="dialog_diy addToolsDia">
  3997. <div class="toolChoose" style="padding: 0 0 0 30px">
  3998. <div class="tools">
  3999. <div class="leftTools" style="
  4000. width: 95%;
  4001. padding: 0 0 15px 0;
  4002. margin: 15px 0;
  4003. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  4004. <div style="
  4005. display: flex;
  4006. flex-direction: row;
  4007. align-items: baseline;
  4008. flex-wrap: nowrap;
  4009. justify-content: flex-start;
  4010. position: relative;
  4011. ">
  4012. <div class="chooseWho">
  4013. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  4014. 互动类
  4015. </div>
  4016. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  4017. 思维类
  4018. </div>
  4019. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4020. 评价类
  4021. </div>
  4022. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  4023. 其他
  4024. </div>
  4025. </div>
  4026. </div>
  4027. <div style="min-height: 163px">
  4028. <div class="toolSort" v-if="chapToolsType == 0">
  4029. <div class="tool">
  4030. <div class="whiteBIcon" @click="chapAddTools(8)">
  4031. <img src="../../../assets/icon/secondToolList/library.png" alt />
  4032. <div style="margin: 5px 0">素材库</div>
  4033. </div>
  4034. <div class="check" @click="chapAddTools(8)">
  4035. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  4036. <div class="checkDiv" v-else>
  4037. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4038. </div>
  4039. </div>
  4040. </div>
  4041. </div>
  4042. <div class="toolSort" v-if="chapToolsType == 1">
  4043. <div class="tool">
  4044. <div class="whiteBIcon" @click="chapAddTools(7)">
  4045. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  4046. <div style="margin: 5px 0">思维网格</div>
  4047. </div>
  4048. <div class="check" @click="chapAddTools(7)">
  4049. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  4050. <div class="checkDiv" v-else>
  4051. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4052. </div>
  4053. </div>
  4054. </div>
  4055. <div class="tool">
  4056. <div class="whiteBIcon" @click="chapAddTools(1)">
  4057. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  4058. <div style="margin: 5px 0">电子白板</div>
  4059. </div>
  4060. <div class="check" @click="chapAddTools(1)">
  4061. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  4062. <div class="checkDiv" v-else>
  4063. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4064. </div>
  4065. </div>
  4066. </div>
  4067. <div class="tool">
  4068. <div class="whiteBIcon" @click="chapAddTools(2)">
  4069. <img src="../../../assets/icon/secondToolList/note.png" alt />
  4070. <div style="margin: 5px 0">便签</div>
  4071. </div>
  4072. <div class="check" @click="chapAddTools(2)">
  4073. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  4074. <div class="checkDiv" v-else>
  4075. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4076. </div>
  4077. </div>
  4078. </div>
  4079. <div class="tool">
  4080. <div class="whiteBIcon" @click="chapAddTools(6)">
  4081. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  4082. <div style="margin: 5px 0">协同文档</div>
  4083. </div>
  4084. <div class="check" @click="chapAddTools(6)">
  4085. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  4086. <div class="checkDiv" v-else>
  4087. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4088. </div>
  4089. </div>
  4090. </div>
  4091. <div class="tool">
  4092. <div class="whiteBIcon" @click="chapAddTools(3)">
  4093. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  4094. <div style="margin: 5px 0">思维导图</div>
  4095. </div>
  4096. <div class="check" @click="chapAddTools(3)">
  4097. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  4098. <div class="checkDiv" v-else>
  4099. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. <div class="tool">
  4104. <div class="whiteBIcon" @click="chapAddTools(31)">
  4105. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  4106. <div style="margin: 5px 0">数学画板</div>
  4107. </div>
  4108. <div class="check" @click="chapAddTools(31)">
  4109. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  4110. <div class="checkDiv" v-else>
  4111. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4112. </div>
  4113. </div>
  4114. </div>
  4115. </div>
  4116. <div class="toolSort" v-if="chapToolsType == 2">
  4117. <div class="tool">
  4118. <div class="whiteBIcon" @click="chapAddTools(5)">
  4119. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  4120. <div style="margin: 5px 0">量规评分</div>
  4121. </div>
  4122. <div class="check" @click="chapAddTools(5)">
  4123. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  4124. <div class="checkDiv" v-else>
  4125. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4126. </div>
  4127. </div>
  4128. </div>
  4129. <div class="tool">
  4130. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  4131. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  4132. <div style="margin: 5px 0">问卷调查</div>
  4133. </div>
  4134. <div class="check" @click="chapAddTools(4)">
  4135. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  4136. <div class="checkDiv" v-else>
  4137. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  4138. </div>
  4139. </div>
  4140. </div>
  4141. </div>
  4142. </div>
  4143. <div>
  4144. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  4145. v-model="itemTools.toolDetail" />
  4146. </div>
  4147. </div>
  4148. </div>
  4149. </div>
  4150. <span slot="footer" class="dialog-footer">
  4151. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4152. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4153. </span>
  4154. </el-dialog>
  4155. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  4156. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  4157. <div>
  4158. <div class="a_add_title" style="
  4159. display: flex;
  4160. flex-direction: column;
  4161. align-items: flex-start;
  4162. justify-content: center;
  4163. ">
  4164. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4165. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  4166. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  4167. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  4168. </div>
  4169. </div>
  4170. <span slot="footer" class="dialog-footer">
  4171. <el-button @click="closePan(15)">取 消</el-button>
  4172. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4173. </span>
  4174. </el-dialog>
  4175. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  4176. :before-close="handleClose" class="dialog_diy">
  4177. <div>
  4178. <div class="a_add_title" style="
  4179. display: flex;
  4180. flex-direction: column;
  4181. align-items: flex-start;
  4182. justify-content: center;
  4183. ">
  4184. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4185. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  4186. </div>
  4187. </div>
  4188. <span slot="footer" class="dialog-footer">
  4189. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4190. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4191. </span>
  4192. </el-dialog>
  4193. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  4194. :before-close="handleClose" class="dialog_diy">
  4195. <div>
  4196. <div class="fileCss" style="padding-top: 20px">
  4197. <div>
  4198. <button class="info_btn" @click="addImg($event)">
  4199. 选择本地文件
  4200. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  4201. </button>
  4202. <div class="spanName">选择本地文件</div>
  4203. </div>
  4204. <!-- <div>
  4205. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  4206. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4207. <img :src="cover[0].url" alt="" />
  4208. <div class="deletePic" @click="deleteSysPic">
  4209. <img src="../../../assets/icon/delete.png" alt="" />
  4210. </div>
  4211. </div>
  4212. <div class="spanName">选择系统文件</div>
  4213. </div> -->
  4214. <div>
  4215. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  4216. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  4217. <img :src="cover[0].url" alt="" />
  4218. <div class="deletePic" @click="deleteSysPic">
  4219. <img src="../../../assets/icon/delete.png" alt="" />
  4220. </div>
  4221. </div>
  4222. <div class="spanName">选择网络文件</div>
  4223. </div>
  4224. </div>
  4225. <!-- <div class="fileCss">
  4226. <div>选择本地文件</div>
  4227. <div>选择系统文件</div>
  4228. </div> -->
  4229. </div>
  4230. <span slot="footer" class="dialog-footer">
  4231. <el-button @click="choosePicVisible = false">取 消</el-button>
  4232. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  4233. </span>
  4234. </el-dialog>
  4235. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  4236. :before-close="handleClose" class="dialog_diy">
  4237. <div class="cru_selectBox" style="margin: 0">
  4238. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  4239. 绘画
  4240. </div>
  4241. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  4242. 科技
  4243. </div>
  4244. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  4245. 人文
  4246. </div>
  4247. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  4248. 艺术
  4249. </div>
  4250. </div>
  4251. <div class="sysPicBox">
  4252. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4253. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4254. </div>
  4255. </div>
  4256. </el-dialog>
  4257. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  4258. :before-close="handleClose" class="dialog_diy">
  4259. <div>
  4260. <div class="people_top_right" style="display: flex;align-items: center;">
  4261. <div style="position: relative; width: 100%;">
  4262. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  4263. @keyup.enter.native="resetImage()"></el-input>
  4264. <div class="search_img" @click="resetImage" style="right: 10px;">
  4265. <img src="../../../assets/icon/search.png" alt />
  4266. </div>
  4267. </div>
  4268. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  4269. </div>
  4270. <div class="sysPicBox" v-loading="imageloading">
  4271. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  4272. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  4273. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  4274. </div>
  4275. </div>
  4276. </div>
  4277. </el-dialog>
  4278. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  4279. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  4280. <div v-if="selectJson" style="height:100%">
  4281. <div class="select_box1" v-if="selectSteps == 1">
  4282. <div class="select_box1_img">
  4283. <div class="select_box1_title">
  4284. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  4285. </div>
  4286. <div class="select_box1_add_img">
  4287. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  4288. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  4289. <img src="../../../assets/icon/addPoster.png" alt="" />
  4290. </div>
  4291. <div class="isSysPic" v-else>
  4292. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4293. <div class="deletePic" @click="deleteSelectPic">
  4294. <img src="../../../assets/icon/delete.png" alt="" />
  4295. </div>
  4296. </div>
  4297. </div>
  4298. </div>
  4299. <div class="select_box1_select">
  4300. <div class="select_box1_title">
  4301. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  4302. </div>
  4303. <div class="select_box1_select_box">
  4304. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  4305. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  4306. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  4307. <div class="select_box1_select_box_add">
  4308. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  4309. 添加</el-button>
  4310. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  4311. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  4312. </div>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. <div v-if="selectSteps == 2" style="height:100%">
  4317. <div class="select_box2">
  4318. <div class="select_box2_title">设置每道题目的正确选项</div>
  4319. <div class="select_box2_box">
  4320. <div class="select_box2_img">
  4321. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  4322. </div>
  4323. <div class="select_box2_answer">
  4324. <div class="select_answer_title">根据题目选择对应答案</div>
  4325. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4326. <span>{{ checkIndex + 1 }}、</span>
  4327. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  4328. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4329. </el-option>
  4330. </el-select>
  4331. </div>
  4332. </div>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. </div>
  4337. <span slot="footer" class="dialog-footer">
  4338. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  4339. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  4340. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  4341. </span>
  4342. </el-dialog>
  4343. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  4344. :before-close="handleClose" class="dialog_diy">
  4345. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4346. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4347. <div class="pjCss" style="width: 100%">
  4348. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  4349. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  4350. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  4351. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  4352. <div class="remove" @click="deletRateList(eIndex)"></div>
  4353. <div style="width: 100%; display: flex">
  4354. <span style="min-width: 100px; text-align: right">评星等级:</span>
  4355. <el-rate v-model="eItem.score" disabled></el-rate>
  4356. </div>
  4357. <div class="elist_inptu_text" style="align-items: flex-start">
  4358. <span style="min-width: 100px; text-align: right">描述:</span>
  4359. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  4360. </div>
  4361. </div>
  4362. </div>
  4363. <div class="addToolFun" @click="addRateList()">
  4364. <div class="addToolImg">
  4365. <img src="../../../assets/icon/add.png" alt />
  4366. </div>
  4367. <div>添加</div>
  4368. </div>
  4369. </div>
  4370. </div>
  4371. <span slot="footer" class="dialog-footer">
  4372. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4373. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4374. </span>
  4375. </el-dialog>
  4376. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4377. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  4378. <div style="height: 100%;">
  4379. <div class="sentenBox" style="height: 100%;">
  4380. <div class="addSen" @click="addSt">添加题目</div>
  4381. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  4382. <div class="sentenTopBox">
  4383. <div class="sentenTop" :index="stIndex + 1">
  4384. <div>题目设置</div>
  4385. <div>
  4386. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  4387. </div>
  4388. <div @click="addSen(stIndex)">添加</div>
  4389. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  4390. </div>
  4391. </div>
  4392. <div class="cardList">
  4393. <div v-if="st.addSentence.length > 0" class="cardBox">
  4394. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  4395. @click="setRightAnswer(s, stIndex, sIndex)">
  4396. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4397. <div>{{ s }}</div>
  4398. </el-tooltip>
  4399. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  4400. <img src="../../../assets/icon/delete.png" alt="" />
  4401. </div>
  4402. </div>
  4403. </div>
  4404. <div class="card">
  4405. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  4406. </div>
  4407. </div>
  4408. <div class="rightCardBox">
  4409. <div>正确顺序</div>
  4410. <div class="rightCardList">
  4411. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4412. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  4413. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  4414. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4415. <div>{{ r }}</div>
  4416. </el-tooltip>
  4417. </div>
  4418. <div>{{ rIndex + 1 }}</div>
  4419. </div>
  4420. </div>
  4421. <div class="card" v-if="st.rightAnswer.length == 0">
  4422. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  4423. </div>
  4424. <div class="card" v-else>
  4425. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  4426. </div>
  4427. </div>
  4428. </div>
  4429. </div>
  4430. </div>
  4431. </div>
  4432. <span slot="footer" class="dialog-footer">
  4433. <el-button @click="closePan(47)">取 消</el-button>
  4434. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4435. </span>
  4436. </el-dialog>
  4437. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4438. :before-close="handleClose" class="dialog_diy">
  4439. <el-form>
  4440. <!-- <el-form-item label="文本标题">
  4441. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4442. </el-form-item> -->
  4443. <div>表格内容</div>
  4444. <Table v-model="tableJson.text" @change="change"></Table>
  4445. </el-form>
  4446. <span slot="footer" class="dialog-footer">
  4447. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4448. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4449. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4450. </span>
  4451. </el-dialog>
  4452. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  4453. :before-close="handleClose" class="dialog_diy">
  4454. <el-form>
  4455. <!-- <el-form-item label="文本标题">
  4456. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4457. </el-form-item> -->
  4458. <div>文档内容</div>
  4459. <editor-bar v-model="wordJson.text"></editor-bar>
  4460. </el-form>
  4461. <span slot="footer" class="dialog-footer">
  4462. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4463. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4464. </span>
  4465. </el-dialog>
  4466. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  4467. :before-close="handleClose" class="dialog_diy">
  4468. <div style="
  4469. width: 100%;
  4470. display: flex;
  4471. flex-direction: row;
  4472. flex-wrap: nowrap;
  4473. align-items: center;
  4474. justify-content: center;
  4475. ">
  4476. <div>班级:</div>
  4477. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4478. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  4479. </el-option>
  4480. </el-select>
  4481. </div>
  4482. <span slot="footer" class="dialog-footer">
  4483. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4484. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4485. </span>
  4486. </el-dialog>
  4487. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  4488. :before-close="handleClose" class="dialog_diy">
  4489. <div style="
  4490. width: 100%;
  4491. display: flex;
  4492. flex-direction: row;
  4493. flex-wrap: nowrap;
  4494. align-items: center;
  4495. justify-content: center;
  4496. ">
  4497. <div>随机码:</div>
  4498. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  4499. </div>
  4500. <span slot="footer" class="dialog-footer">
  4501. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4502. <el-button type="primary" @click="addInvite">确定</el-button>
  4503. </span>
  4504. </el-dialog>
  4505. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  4506. :before-close="handleClose" class="dialog_diy">
  4507. <div>
  4508. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  4509. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  4510. </div>
  4511. <span slot="footer" class="dialog-footer">
  4512. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4513. <el-button type="primary" @click="addPreTime">确定</el-button>
  4514. </span>
  4515. </el-dialog>
  4516. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  4517. class="dialog_diy">
  4518. <div>
  4519. <div style="
  4520. width: 100%;
  4521. display: flex;
  4522. flex-direction: row;
  4523. flex-wrap: nowrap;
  4524. align-content: center;
  4525. align-items: center;
  4526. justify-content: space-between;
  4527. ">
  4528. <div style="
  4529. display: flex;
  4530. flex-flow: row nowrap;
  4531. align-items: flex-start;
  4532. width: 100%;
  4533. flex-direction: column;
  4534. flex-wrap: nowrap;
  4535. position: relative;
  4536. ">
  4537. <div class="e_box">
  4538. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4539. <div class="e_card_picture">
  4540. <img src="../../../assets/e_picture.png" />
  4541. </div>
  4542. <div class="e_card_name">
  4543. <span>{{ item.title }}</span>
  4544. </div>
  4545. <div class="e_card_btn">
  4546. <span @click="checkEva(item.id, 2)">导入</span>
  4547. </div>
  4548. </div>
  4549. <div class="addEva" @click="openT">
  4550. <img src="../../../assets/icon/addEva.png" alt="" />
  4551. </div>
  4552. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4553. 暂无数据
  4554. </div>
  4555. </div>
  4556. </div>
  4557. </div>
  4558. </div>
  4559. <span slot="footer" class="dialog-footer">
  4560. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4561. </span>
  4562. </el-dialog>
  4563. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4564. :before-close="handleClose" class="dialog_diy">
  4565. <div class="groupBox">
  4566. <div v-if="groupJson.group" class="groupContent">
  4567. <div class="groupTitle">请设置小组数量及名称</div>
  4568. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4569. <span class="groupn">第{{ index + 1 }}组名称:</span>
  4570. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4571. <div class="groupBtn">
  4572. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  4573. 添加</el-button>
  4574. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4575. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4576. </div>
  4577. </div>
  4578. </div>
  4579. <div class="groupContent">
  4580. <div class="groupTitle">请设置每组人数</div>
  4581. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4582. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4583. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  4584. @change="numberPan"></el-input>
  4585. </div>
  4586. </div>
  4587. <span slot="footer" class="dialog-footer">
  4588. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4589. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4590. </span>
  4591. </el-dialog>
  4592. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  4593. :before-close="handleClose" class="dialog_diy">
  4594. <div style="
  4595. width: 100%;
  4596. display: flex;
  4597. flex-direction: row;
  4598. flex-wrap: nowrap;
  4599. align-items: center;
  4600. justify-content: center;
  4601. ">
  4602. <div style="min-width: fit-content;">文件名称:</div>
  4603. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  4604. </div>
  4605. <span slot="footer" class="dialog-footer">
  4606. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  4607. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  4608. </span>
  4609. </el-dialog>
  4610. <el-dialog title="创建作文题目" :visible.sync="englishDialogVisible" :append-to-body="true" width="800px"
  4611. :before-close="(done) => { closePan(69) }" class="dialog_diy fullStyle fullStyle1">
  4612. <englishRight :englishList="englishList" :oid="oid" ref="engJson"></englishRight>
  4613. <span slot="footer" class="dialog-footer">
  4614. <el-button @click="englishDialogVisible = false">取 消</el-button>
  4615. <el-button type="primary" @click="addEnglish">确 定</el-button>
  4616. </span>
  4617. </el-dialog>
  4618. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4619. <EnglishVoice :oid='oid' :org="org" :EnglishVoiceDialog.sync="EnglishVoiceDialog" :englishVoiceJson="englishVoiceJson" @setEnglishVoiceJson="setEnglishVoiceJson"></EnglishVoice>
  4620. </div>
  4621. </template>
  4622. <script>
  4623. import "../../../common/aws-sdk-2.235.1.min.js";
  4624. import { tools as toolsData } from "../../../common/tools.js";
  4625. import $ from "jquery";
  4626. import EditorBar from "../../../components/tools/wangEnduit";
  4627. import Table from "../../../components/tools/table";
  4628. import Mind from "../../tools/jsmind2";
  4629. import Time from "../../tools/time.vue";
  4630. import Sunburst from "../../tools/sunburst";
  4631. import SeeBoard from "../../tools/seeBoard";
  4632. import weilaiData from "../components/weilai.js";
  4633. import sourceDialog from "../teacherSource/dialog.vue";
  4634. import interVideo from "../interVideo/index.vue";
  4635. import englishRight from "./commpont/englishRight.vue";
  4636. import EnglishVoice from '../EnglishVoice/index.vue'
  4637. export default {
  4638. components: {
  4639. EditorBar,
  4640. Mind,
  4641. Time,
  4642. Sunburst,
  4643. SeeBoard,
  4644. Table,
  4645. sourceDialog,
  4646. interVideo,
  4647. englishRight,
  4648. EnglishVoice
  4649. },
  4650. data() {
  4651. return {
  4652. checkAll: false,
  4653. chooseType: 1,
  4654. checkedCities: [],
  4655. isIndeterminate: true,
  4656. isSysPic: false,
  4657. isSysPic2: false,
  4658. steps: 1,
  4659. nbOrder: 0,
  4660. courseId: "",
  4661. chapToolsType: 0,
  4662. chapTools: [
  4663. {
  4664. tools: [],
  4665. toolDetail: "",
  4666. },
  4667. ],
  4668. line: "",
  4669. lineTitle: "",
  4670. sysPic: [],
  4671. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4672. sentenceList2: [],
  4673. isPushTitleList: [],
  4674. lineCount: 0,
  4675. lineType: 0,
  4676. chapCount: 0,
  4677. courseName: "",
  4678. isTeacherSee: false,
  4679. courseText: "",
  4680. preTime: 0,
  4681. formLabelWidth: "100px",
  4682. choosePicVisible: false,
  4683. sysPicVisible: false,
  4684. uploadLoading1: false,
  4685. noneBtnImg: false,
  4686. updateBoolean2: false,
  4687. unitIndex: 0,
  4688. taskCount: 0,
  4689. dialogVisible: false,
  4690. dialogVisible1: false,
  4691. dialogVisible2: false,
  4692. dialogVisible3: false,
  4693. dialogVisible4: false,
  4694. dialogVisible5: false,
  4695. dialogVisible6: false,
  4696. dialogVisible7: false,
  4697. dialogVisible8: false,
  4698. dialogVisible9: false,
  4699. dialogVisibleClass: false,
  4700. dialogVisibleMember: false,
  4701. dialogVisibleMp3: false,
  4702. dialogVisibleSelect: false,
  4703. dialogVisibleSentence: false,
  4704. dialogVisibleRate: false,
  4705. dialogVisibleChoice: false,
  4706. dialogVisiblemb: false,
  4707. dialogVisibleInvite: false,
  4708. dialogVisibleSource: false,
  4709. dialogVisibleVideo: false,
  4710. dialogVisibleupdataVideoT: false,
  4711. isClickColor: 1,
  4712. toolIndexType: "",
  4713. publicTool: 0,
  4714. searchPeople: "",
  4715. searchTN: "",
  4716. userid: this.$route.query.userid,
  4717. oid: this.$route.query.oid,
  4718. org: this.$route.query.org,
  4719. role: this.$route.query.role,
  4720. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4721. dialogVisibleTable: false,
  4722. dialogVisibleWord: false,
  4723. tableJson: { text: "" },
  4724. wordJson: { text: "" },
  4725. dialogVisibleMoreUpload: false,
  4726. dialogVisiblePreTime: false,
  4727. englishDialogVisible: false,
  4728. uploadJson: [],
  4729. classJuri: [],
  4730. gradeList: [],
  4731. cover: [], //课程封面
  4732. myWord: [],
  4733. evaJuri: [],
  4734. evalua: "",
  4735. targetArray: [],
  4736. eTitle: "",
  4737. eJson: {},
  4738. fid: "", //一级
  4739. sid: "", //二级
  4740. tid: "", //二级
  4741. typeMode: 1,
  4742. eJSONNum: 0,
  4743. data: {
  4744. meta: {
  4745. name: "example",
  4746. author: "dd@163.com",
  4747. version: "0.2",
  4748. },
  4749. format: "node_array",
  4750. data: [{ id: "root", isroot: true, topic: "" }],
  4751. },
  4752. askJson: {
  4753. askCount: 1,
  4754. askTitle: "",
  4755. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4756. },
  4757. askJson2: {},
  4758. testJson: {},
  4759. testJson2: {},
  4760. selectJson: {},
  4761. selectJson2: {},
  4762. englishList:{},
  4763. rateJson: [],
  4764. unitJson2: [],
  4765. unitJson: [
  4766. {
  4767. dyName: "", //单元标题
  4768. chapterInfo: [
  4769. {
  4770. isread: false,
  4771. chapterid: this.guid(),
  4772. title: "",
  4773. courseName: "",
  4774. taskJson: [
  4775. {
  4776. task: "",
  4777. taskDetail: "",
  4778. chapterData: [],
  4779. toolChoose: [
  4780. {
  4781. tool: [],
  4782. toolDetail: "",
  4783. toolType: 0,
  4784. askCount: 1,
  4785. askTitle: "",
  4786. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4787. },
  4788. ],
  4789. toolText: "",
  4790. isShowTools: false,
  4791. askCount: 1,
  4792. isFold: 1,
  4793. askTitle: "",
  4794. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4795. checkJson: [{ checkCount: [], checkPerent: [] }],
  4796. homeworkList: [],
  4797. },
  4798. ],
  4799. itemCount: 1,
  4800. fileList1: [],
  4801. video: [],
  4802. testData: [],
  4803. pData: [],
  4804. templateArray: [],
  4805. },
  4806. ],
  4807. },
  4808. ],
  4809. templateArray: [],
  4810. studentJuri: [],
  4811. teacherJuri: [],
  4812. checkboxList: [],
  4813. checkboxList2: [],
  4814. checkboxList3: [],
  4815. classSearch: "",
  4816. gradeId: "",
  4817. number: "",
  4818. tTitle: "",
  4819. tdetail: "",
  4820. templateC: {},
  4821. AttText: {},
  4822. AttTextType: 0,
  4823. AttTextIndex: 0,
  4824. cTemplate: "",
  4825. CourseType: [],
  4826. CourseType2: [],
  4827. CourseTypeJson: {},
  4828. courseTypeId: [],
  4829. courseTypeSon: [],
  4830. clearArray: [],
  4831. pTypeCheck: [],
  4832. pTypeCheckName: [],
  4833. loading: false,
  4834. toolType: 0,
  4835. inputShow: true,
  4836. inputShow2: true,
  4837. toolIndex: 0,
  4838. cidType: 0,
  4839. answerQ: "",
  4840. answerQ2: "",
  4841. grade: [],
  4842. grade2: [],
  4843. courseUserid: "",
  4844. timer: null,
  4845. timer2: null,
  4846. pasteTimer: null,
  4847. checkId: "",
  4848. isDelete: 1,
  4849. addindex: 0,
  4850. selectSteps: 1,
  4851. groupJson: {},
  4852. dialogVisibleGroup: false,
  4853. rightBoxHeight: 0,
  4854. ManAarray: [],
  4855. checkBoolean: false,
  4856. inviteCode: [],
  4857. inviteId: "",
  4858. icode: "",
  4859. easyArray: [2, 4],
  4860. sourceData: {},
  4861. updateSourcePan: false,
  4862. videoJson: {},
  4863. isBtnDisplay: false,
  4864. isPasteTask: false,
  4865. isPasteChoice: false,
  4866. sysPicVisible2: false,
  4867. imageloading: false,
  4868. searchImageValue: "",
  4869. ppage: 1,
  4870. imageList: [],
  4871. heightPx: '100%',
  4872. toolsData: toolsData,
  4873. oldIndex: 0,
  4874. oldData: null,
  4875. newIndex: "",
  4876. typeIndex: "",
  4877. isdrag: '',
  4878. EnglishVoiceDialog: false,
  4879. englishVoiceJson:{}
  4880. };
  4881. },
  4882. directives: {
  4883. autoHeight: {
  4884. update(el, binding) {
  4885. const { value } = binding
  4886. if (value && typeof value === 'number') {
  4887. el.style.height = `${value}px`
  4888. } else {
  4889. el.style.height = 'auto'
  4890. }
  4891. },
  4892. componentUpdated(el) {
  4893. el.style.height = `${el.scrollHeight + 5}px`
  4894. },
  4895. },
  4896. },
  4897. computed: {
  4898. // rightBoxHeight: function () {
  4899. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4900. // },
  4901. offsetLetfPx: function () {
  4902. //addnum可以直接在模板语法里面用,相当于data内的值
  4903. return (
  4904. $(".cru_select")[this.unitIndex] &&
  4905. $(".cru_select")[this.unitIndex].offsetLeft
  4906. );
  4907. },
  4908. getMan2() {
  4909. return function (people) {
  4910. let _people = people;
  4911. let _people2 = "";
  4912. if (this.ManAarray.length) {
  4913. for (var i = 0; i < this.ManAarray.length; i++) {
  4914. if (this.ManAarray[i].userid == people) {
  4915. _people2 = this.ManAarray[i].name;
  4916. break;
  4917. }
  4918. }
  4919. }
  4920. if (people == this.courseUserid) {
  4921. return "";
  4922. }
  4923. return this.ManAarray.length ? _people2 : "";
  4924. };
  4925. },
  4926. isInvite() {
  4927. return function (cid) {
  4928. let array = [];
  4929. for (var i = 0; i < this.inviteCode.length; i++) {
  4930. array.push(this.inviteCode[i].cid);
  4931. }
  4932. return array.indexOf(cid) != -1;
  4933. };
  4934. },
  4935. getInviteCodeC() {
  4936. return function (cid) {
  4937. let array = [];
  4938. for (var i = 0; i < this.inviteCode.length; i++) {
  4939. array.push(this.inviteCode[i].cid);
  4940. }
  4941. return this.inviteCode[array.indexOf(cid)].ic;
  4942. };
  4943. },
  4944. getClassC() {
  4945. return function (c) {
  4946. let _c2 = "";
  4947. if (this.grade.length) {
  4948. for (var i = 0; i < this.grade.length; i++) {
  4949. if (this.grade[i].id == c) {
  4950. _c2 = this.grade[i].name;
  4951. break;
  4952. }
  4953. }
  4954. }
  4955. return this.grade.length ? _c2 : "";
  4956. };
  4957. },
  4958. getListClassC() {
  4959. return function (list) {
  4960. let _c2 = [];
  4961. if (this.grade.length) {
  4962. for (var j = 0; j < list.length; j++) {
  4963. let c = list[j]
  4964. for (var i = 0; i < this.grade.length; i++) {
  4965. if (this.grade[i].id == c) {
  4966. _c2.push(this.grade[i].name);
  4967. break;
  4968. }
  4969. }
  4970. }
  4971. }
  4972. return this.grade.length ? _c2.join('、') : "";
  4973. };
  4974. },
  4975. },
  4976. watch: {
  4977. unitIndex(newValue, oldValue) {
  4978. if (this.isDelete == 2) {
  4979. this.isDelete = 1;
  4980. return;
  4981. }
  4982. if (this.cid != "") {
  4983. let _unitIndex = oldValue;
  4984. if (
  4985. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4986. JSON.stringify(this.unitJson[_unitIndex])
  4987. ) {
  4988. this.$refs.rightboxR.scrollTop = 0;
  4989. return;
  4990. }
  4991. let cPan = 1;
  4992. for (
  4993. var j = 0;
  4994. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4995. j++
  4996. ) {
  4997. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4998. j
  4999. ].proVisible = false;
  5000. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5001. j
  5002. ].proVisible2 = false;
  5003. if (
  5004. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5005. .length > 1
  5006. ) {
  5007. for (
  5008. var z = 0;
  5009. z <
  5010. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5011. .length;
  5012. z++
  5013. ) {
  5014. if (
  5015. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5016. .toolChoose[z].tool.length
  5017. ) {
  5018. this.$message.error("请把工具添加完整");
  5019. cPan = 2;
  5020. break;
  5021. }
  5022. }
  5023. }
  5024. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5025. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5026. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5027. (ele) => {
  5028. return ele.value != "";
  5029. }
  5030. );
  5031. }
  5032. }
  5033. if (cPan == 2) {
  5034. this.unitIndex = oldValue;
  5035. return;
  5036. }
  5037. for (var i = 0; i < this.unitJson.length; i++) {
  5038. if (this.addindex != i) {
  5039. delete this.unitJson[i].isUpdate;
  5040. }
  5041. }
  5042. this.$refs.rightboxR.scrollTop = 0;
  5043. this.addindex = -1;
  5044. let params = [
  5045. {
  5046. cid: this.cid,
  5047. chapters: JSON.stringify(this.unitJson),
  5048. uid: this.userid,
  5049. unitIndex: _unitIndex,
  5050. },
  5051. ];
  5052. this.ajax
  5053. .post(this.$store.state.api + "updateWorkNew4", params)
  5054. .then((res) => {
  5055. // this.$message({
  5056. // message: "修改成功",
  5057. // type: "success",
  5058. // });
  5059. // this.courseId = this.cid;
  5060. })
  5061. .catch((err) => {
  5062. this.$message.error("网络不佳");
  5063. console.error(err);
  5064. });
  5065. }
  5066. },
  5067. steps(newValue) {
  5068. if (newValue == 4) {
  5069. this.goTo(
  5070. "/course?userid=" +
  5071. this.userid +
  5072. "&oid=" +
  5073. this.oid +
  5074. "&org=" +
  5075. this.org +
  5076. "&role=" +
  5077. this.role
  5078. );
  5079. }
  5080. },
  5081. },
  5082. methods: {
  5083. openAI() {
  5084. top.postMessage({ tools: "64" }, "*");
  5085. },
  5086. setMan() {
  5087. // let teacherJuri = this.teacherJuri2;
  5088. this.ManAarray = [];
  5089. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5090. if (_user.indexOf(this.userid) == -1) {
  5091. _user.push(this.userid);
  5092. }
  5093. if (_user.indexOf(this.courseUserid) == -1) {
  5094. _user.push(this.courseUserid);
  5095. }
  5096. let params = {
  5097. uid: _user.join(","),
  5098. };
  5099. this.ajax
  5100. .get(this.$store.state.api + "getAllUserById", params)
  5101. .then((res) => {
  5102. let teacherJuri = res.data[0];
  5103. this.ManAarray = teacherJuri;
  5104. })
  5105. .catch((err) => {
  5106. console.error(err);
  5107. });
  5108. },
  5109. previewImg(url) {
  5110. this.$hevueImgPreview(url);
  5111. },
  5112. btnDisplay(bool) {
  5113. this.isBtnDisplay = bool
  5114. },
  5115. scrollChange() {
  5116. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5117. // document.querySelector('.course_left').scrollHeight
  5118. // document.querySelector('.stepsBottom2').scrollHeight
  5119. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  5120. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  5121. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  5122. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  5123. let top = $(".rightBox")[0].scrollTop - maxheight;
  5124. // if (top < client) {
  5125. // $('.stepsBottom2')[0].style.position = 'absolute'
  5126. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  5127. // // $('.stepsBottom2')[0].style.top = client + 'px'
  5128. // } else
  5129. if (top > 0) {
  5130. let top = $(".rightBox")[0].offsetTop;
  5131. $(".stepsBottom2")[0].style.position = "fixed";
  5132. $(".stepsBottom2")[0].style.top = top + "px";
  5133. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  5134. // $('.stepsBottom2')[0].style.top = top + 'px'
  5135. } else {
  5136. $(".stepsBottom2")[0].style.position = "absolute";
  5137. $(".stepsBottom2")[0].style.top = "0px";
  5138. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  5139. }
  5140. const clientHeight = $(".rightBox")[0].clientHeight;
  5141. const scrollTop = $(".rightBox")[0].scrollTop;
  5142. const scrollHeight = $(".rightBox")[0].scrollHeight;
  5143. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  5144. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  5145. }
  5146. },
  5147. addHw(e) {
  5148. var el = e.currentTarget;
  5149. el.getElementsByTagName("input")[0].click();
  5150. },
  5151. change(val) {
  5152. if (this.dialogVisible1) {
  5153. this.tdetail = val
  5154. } else if (this.dialogVisible6) {
  5155. this.AttText.text = val
  5156. } else if (this.dialogVisible2) {
  5157. this.cTemplate = val
  5158. } else if (this.dialogVisibleTable) {
  5159. this.tableJson.text = val
  5160. }
  5161. this.$forceUpdate();
  5162. console.log(val);
  5163. },
  5164. change2(val) {
  5165. console.log(val);
  5166. this.$forceUpdate();
  5167. },
  5168. handleClose(done) {
  5169. done();
  5170. },
  5171. closePan(tool) {
  5172. if (tool == 15) {
  5173. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  5174. this.dialogVisible8 = false
  5175. } else {
  5176. this.closeConfirm(tool);
  5177. }
  5178. } else if (tool == 4) {
  5179. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  5180. this.dialogVisible5 = false
  5181. } else {
  5182. this.closeConfirm(tool);
  5183. }
  5184. } else if (tool == 45) {
  5185. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  5186. this.dialogVisibleChoice = false
  5187. } else {
  5188. this.closeConfirm(tool);
  5189. }
  5190. } else if (tool == 41) {
  5191. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  5192. this.dialogVisibleSelect = false
  5193. } else {
  5194. this.closeConfirm(tool);
  5195. }
  5196. } else if (tool == 47) {
  5197. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  5198. this.dialogVisibleSentence = false
  5199. } else {
  5200. this.closeConfirm(tool);
  5201. }
  5202. }else if (tool == 69){
  5203. if (JSON.stringify(this.englishList) == JSON.stringify(this.englishList)) {
  5204. this.englishDialogVisible = false
  5205. } else {
  5206. this.closeConfirm(tool);
  5207. }
  5208. }
  5209. },
  5210. closeConfirm(tool) {
  5211. this
  5212. .$confirm("是否保存已编辑内容?", "提示", {
  5213. confirmButtonText: "保存",
  5214. cancelButtonText: "不保存",
  5215. type: "warning",
  5216. })
  5217. .then(() => {
  5218. if (tool == 15) {
  5219. this.addAnswer();
  5220. } else if (tool == 4) {
  5221. this.addAsk();
  5222. } else if (tool == 45) {
  5223. this.addTest();
  5224. } else if (tool == 41) {
  5225. this.addSelectAnswer();
  5226. } else if (tool == 47) {
  5227. this.addSentenceTool();
  5228. }else if(tool == 69){
  5229. this.addEnglish();
  5230. }
  5231. })
  5232. .catch(() => {
  5233. if (tool == 15) {
  5234. this.dialogVisible8 = false;
  5235. } else if (tool == 4) {
  5236. this.dialogVisible5 = false;
  5237. } else if (tool == 45) {
  5238. this.dialogVisibleChoice = false;
  5239. } else if (tool == 41) {
  5240. this.dialogVisibleSelect = false;
  5241. } else if (tool == 47) {
  5242. this.dialogVisibleSentence = false;
  5243. } else if (tool == 69) {
  5244. this.englishDialogVisible = false;
  5245. }
  5246. });
  5247. },
  5248. addEnglish(){
  5249. this.englishList.engTitle = this.$refs['engJson'].engList.engTitle;
  5250. this.englishList.englishText = this.$refs['engJson'].engList.englishText;
  5251. this.englishList.textJson = this.$refs['engJson'].engList.textJson;
  5252. if(this.englishList.engTitle == "" || this.englishList.englishText == ""){
  5253. this.$message.error("请将内容填写完整!");
  5254. return;
  5255. }
  5256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5257. this.taskCount
  5258. ].toolChoose[this.toolIndex].englishList = this.englishList;
  5259. this.englishList = {};
  5260. this.englishDialogVisible = false;
  5261. if (
  5262. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5263. .toolChoose[this.toolIndex].tool != 69
  5264. ) {
  5265. this.addTools(69, this.taskCount, this.toolIndex);
  5266. }
  5267. },
  5268. imgChange2(i, j) {
  5269. var _tmp = this.testJson.testJson[i].checkList[j];
  5270. this.noneBtnImg = _tmp.length >= 1;
  5271. },
  5272. imgChange3(i) {
  5273. var _tmp = this.testJson.testJson[i];
  5274. this.noneBtnImg = _tmp.length >= 1;
  5275. },
  5276. imgChange1(file, fileList, type, itemTaskIndex) {
  5277. if (type == 1) {
  5278. var _tmp = this.cover;
  5279. } else if (
  5280. type == 2 ||
  5281. type == 3 ||
  5282. type == 6 ||
  5283. type == 7 ||
  5284. type == 8
  5285. ) {
  5286. var _tmp =
  5287. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5288. .chapterData;
  5289. } else if (type == 4) {
  5290. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5291. } else {
  5292. var _tmp =
  5293. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5294. .homeworkList;
  5295. }
  5296. this.noneBtnImg = _tmp.length >= 1;
  5297. },
  5298. goTo(path) {
  5299. this.$router.push(path);
  5300. },
  5301. guid() {
  5302. var _num,
  5303. i,
  5304. _guid = "";
  5305. for (i = 0; i < 32; i++) {
  5306. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5307. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5308. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5309. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5310. _guid += "-";
  5311. }
  5312. }
  5313. return _guid;
  5314. },
  5315. lastSteps() {
  5316. this
  5317. .$confirm("是否保存已编辑内容?", "提示", {
  5318. confirmButtonText: "保存",
  5319. cancelButtonText: "不保存",
  5320. distinguishCancelAndClose: true,
  5321. type: "warning",
  5322. })
  5323. .then(() => {
  5324. if (this.cid == "" || this.cid == undefined) {
  5325. if (this.courseName == "") {
  5326. this.$message.error("请补充填写课程名称");
  5327. return;
  5328. } else {
  5329. this.addWork();
  5330. }
  5331. } else {
  5332. if (this.courseName == "") {
  5333. this.$message.error("请补充填写课程名称");
  5334. return;
  5335. } else {
  5336. if (this.userid != this.courseUserid && this.role != "1") {
  5337. this.updateWork2();
  5338. } else {
  5339. this.updateWork();
  5340. }
  5341. }
  5342. }
  5343. })
  5344. .catch((v) => {
  5345. console.log(v)
  5346. if(v == "cancel"){
  5347. this.goTo(
  5348. "/course?userid=" +
  5349. this.userid +
  5350. "&oid=" +
  5351. this.oid +
  5352. "&org=" +
  5353. this.org +
  5354. "&role=" +
  5355. this.role
  5356. );
  5357. }
  5358. });
  5359. },
  5360. nextSteps() {
  5361. if (this.cid == "" || this.cid == undefined) {
  5362. if (this.courseName == "") {
  5363. this.$message.error("请补充填写课程名称");
  5364. return;
  5365. } else {
  5366. this.addWork();
  5367. }
  5368. } else {
  5369. if (this.courseName == "") {
  5370. this.$message.error("请补充填写课程名称");
  5371. return;
  5372. } else {
  5373. if (this.userid != this.courseUserid && this.role != "1") {
  5374. this.updateWork2();
  5375. } else {
  5376. this.updateWork();
  5377. }
  5378. }
  5379. }
  5380. this.$refs.stepBox.scrollTop = 0;
  5381. },
  5382. unitSet(i) {
  5383. this.unitIndex = i;
  5384. // this.$refs.rightboxR.scrollTop = 0;
  5385. },
  5386. time() {
  5387. if (!this.now) {
  5388. this.now = new Date().getTime();
  5389. return true;
  5390. } else {
  5391. let time = new Date().getTime();
  5392. if (time - this.now > 3000) {
  5393. this.now = time;
  5394. return true;
  5395. } else {
  5396. return false;
  5397. }
  5398. }
  5399. },
  5400. deleteUnit(i) {
  5401. var _this = this;
  5402. if (_this.time()) {
  5403. _this
  5404. .$confirm("确定删除此单元吗?", "提示", {
  5405. confirmButtonText: "确定",
  5406. cancelButtonText: "取消",
  5407. type: "warning",
  5408. })
  5409. .then(() => {
  5410. _this.isDelete = 2;
  5411. // _this.unitIndex = _this.unitIndex - 1;
  5412. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5413. // _this.$message.success("删除成功");
  5414. })
  5415. .catch(() => {
  5416. return;
  5417. });
  5418. }
  5419. },
  5420. deleteWork(chapid) {
  5421. let params = [
  5422. {
  5423. cid: this.cid,
  5424. chapters: JSON.stringify(this.unitJson),
  5425. uid: this.userid,
  5426. chapid: chapid,
  5427. },
  5428. ];
  5429. this.ajax
  5430. .post(this.$store.state.api + "deleteWork", params)
  5431. .then((res) => {
  5432. this.$message({
  5433. message: "删除成功",
  5434. type: "success",
  5435. });
  5436. this.unitJson.splice(this.unitIndex, 1);
  5437. this.unitIndex = this.unitIndex - 1;
  5438. })
  5439. .catch((err) => {
  5440. this.$message.error("网络不佳");
  5441. console.error(err);
  5442. });
  5443. },
  5444. deleteTool(itemTaskIndex, i) {
  5445. var _this = this;
  5446. if (_this.time()) {
  5447. _this
  5448. .$confirm("确定删除此工具吗?", "提示", {
  5449. confirmButtonText: "确定",
  5450. cancelButtonText: "取消",
  5451. type: "warning",
  5452. })
  5453. .then(() => {
  5454. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5455. itemTaskIndex
  5456. ].toolChoose.splice(i, 1);
  5457. _this.$message.success("删除成功");
  5458. })
  5459. .catch(() => {
  5460. return;
  5461. });
  5462. }
  5463. },
  5464. deleteSentence(i) {
  5465. var _this = this;
  5466. _this
  5467. .$confirm("确定删除此题目吗?", "提示", {
  5468. confirmButtonText: "确定",
  5469. cancelButtonText: "取消",
  5470. type: "warning",
  5471. })
  5472. .then(() => {
  5473. _this.sentenceList.splice(i, 1);
  5474. _this.$message.success("删除成功");
  5475. })
  5476. .catch(() => {
  5477. return;
  5478. });
  5479. },
  5480. deleteS(s, i, j) {
  5481. this.sentenceList[i].addSentence.splice(j, 1);
  5482. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5483. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5484. this.sentenceList[i].rightAnswer.splice(a, 1);
  5485. }
  5486. },
  5487. openT() {
  5488. top.postMessage({ tools: "25" }, "*");
  5489. },
  5490. deleteTask(i) {
  5491. var _this = this;
  5492. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  5493. _this
  5494. .$confirm("确定删除此任务吗?", "提示", {
  5495. confirmButtonText: "确定",
  5496. cancelButtonText: "取消",
  5497. type: "warning",
  5498. })
  5499. .then(() => {
  5500. if (i == 0) {
  5501. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5502. i + 1
  5503. ].chapterData = JSON.parse(
  5504. JSON.stringify(
  5505. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  5506. .chapterData
  5507. )
  5508. );
  5509. }
  5510. _this.$forceUpdate();
  5511. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  5512. _this.$message.success("删除成功");
  5513. // this.$nextTick(() => {
  5514. // $('.stepsBottom2')[0].style.transition = 'unset'
  5515. // setTimeout(() => {
  5516. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  5517. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  5518. // let top = $('.stepsBottom2')[0].offsetTop - 20
  5519. // if (top > client) {
  5520. // $('.stepsBottom2')[0].style.top = client + 'px'
  5521. // }
  5522. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  5523. // this.$forceUpdate()
  5524. // }, 500)
  5525. // })
  5526. })
  5527. .catch(() => {
  5528. return;
  5529. });
  5530. },
  5531. handlePictureCardPreview(file) {
  5532. this.dialogImageUrl = file.url;
  5533. },
  5534. clean(i, c) {
  5535. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5536. },
  5537. handle_remove1(file, fileList, type) {
  5538. var _tmp = this.cover;
  5539. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5540. // if (_tmp[i].uid == file.uid) {
  5541. // _tmp.splice(i, 1);
  5542. // break;
  5543. // }
  5544. // this.cover = _tmp;
  5545. // }
  5546. this.cover = [];
  5547. this.noneBtnImg = this.cover.length >= 1;
  5548. this.isSysPic = false;
  5549. this.isSysPic2 = false;
  5550. this.$forceUpdate();
  5551. },
  5552. addImg(e) {
  5553. var el = e.currentTarget;
  5554. el.getElementsByTagName("input")[0].click();
  5555. e.target.value = "";
  5556. },
  5557. addChaptersTools(i) {
  5558. this.chapTools = [
  5559. {
  5560. tools: [],
  5561. toolDetail: "",
  5562. },
  5563. ];
  5564. this.chapCount = i;
  5565. this.dialogVisible4 = true;
  5566. },
  5567. isNoFinsh() {
  5568. this.$message.warning("功能正在开发中");
  5569. },
  5570. addAttText(i) {
  5571. this.AttText = {
  5572. title: "",
  5573. text: "",
  5574. };
  5575. this.taskCount = i;
  5576. this.AttTextType = 0;
  5577. this.$forceUpdate();
  5578. this.dialogVisible6 = true;
  5579. setTimeout(() => {
  5580. this.$refs['fuInput'].focus();
  5581. }, 100);
  5582. },
  5583. openLine(i) {
  5584. this.line = "";
  5585. this.lineCount = i;
  5586. this.lineType = 0;
  5587. this.$forceUpdate();
  5588. this.dialogVisible7 = true;
  5589. },
  5590. pasteLine(i) {
  5591. navigator.clipboard
  5592. .readText()
  5593. .then((v) => {
  5594. console.log("获取剪贴板成功:", v);
  5595. const html = v;
  5596. const regex = /src="(.*?)"/g;
  5597. const match = regex.exec(html);
  5598. if (match && match[1]) {
  5599. console.log(match[1]);
  5600. this.$message.success("粘贴成功");
  5601. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5602. i
  5603. ].chapterData.push({
  5604. name: "链接",
  5605. title: "嵌入代码",
  5606. url: match[1],
  5607. type: 8,
  5608. });
  5609. } else {
  5610. // console.log("未找到包含 src 属性的 iframe");
  5611. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  5612. }
  5613. })
  5614. .catch((v) => {
  5615. console.log("获取剪贴板失败: ", v);
  5616. });
  5617. },
  5618. openSource(i) {
  5619. this.lineCount = i;
  5620. this.sourceData = {};
  5621. this.dialogVisibleSource = true;
  5622. this.updateSourcePan = false;
  5623. },
  5624. addSource() {
  5625. if (!Object.keys(this.sourceData).length) {
  5626. this.$message.error("请选择要上传的资源");
  5627. return;
  5628. }
  5629. let keys = Object.keys(this.sourceData);
  5630. for (var i = 0; i < keys.length; i++) {
  5631. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5632. this.lineCount
  5633. ].chapterData.push({
  5634. name: "链接",
  5635. title: this.sourceData[keys[i]].name,
  5636. url: this.sourceData[keys[i]].url,
  5637. type: 14,
  5638. id: keys[i]
  5639. });
  5640. }
  5641. this.$forceUpdate();
  5642. this.dialogVisibleSource = false;
  5643. },
  5644. updateSource() {
  5645. if (!Object.keys(this.sourceData).length) {
  5646. this.$message.error("请选择要上传的资源");
  5647. return;
  5648. }
  5649. let keys = Object.keys(this.sourceData);
  5650. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5651. this.taskCount
  5652. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  5653. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5654. this.taskCount
  5655. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  5656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5657. this.taskCount
  5658. ].chapterData[this.lineCount].id = keys[0];
  5659. this.updateSourcePan = false;
  5660. this.$forceUpdate();
  5661. this.dialogVisibleSource = false;
  5662. },
  5663. deleteM(i, j) {
  5664. this.testJson.testJson[i].timuList.splice(j, 1);
  5665. },
  5666. beforeUploadTiMu(event, i) {
  5667. const loading = this.openLoading();
  5668. var file = event.target.files[0];
  5669. var credentials = {
  5670. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5671. secretAccessKey: "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",
  5672. }; //秘钥形式的登录上传
  5673. window.AWS.config.update(credentials);
  5674. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5675. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5676. var _this = this;
  5677. if (file) {
  5678. var params = {
  5679. Key:
  5680. file.name.split(".")[0] +
  5681. new Date().getTime() +
  5682. "." +
  5683. file.name.split(".")[file.name.split(".").length - 1],
  5684. ContentType: file.type,
  5685. Body: file,
  5686. "Access-Control-Allow-Credentials": "*",
  5687. ACL: "public-read",
  5688. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5689. var options = {
  5690. partSize: 2048 * 1024 * 1024,
  5691. queueSize: 2,
  5692. leavePartsOnError: true,
  5693. };
  5694. bucket
  5695. .upload(params, options)
  5696. .on("httpUploadProgress", function (evt) {
  5697. //这里可以写进度条
  5698. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5699. })
  5700. .send(function (err, data) {
  5701. loading.close();
  5702. if (err) {
  5703. _this.$message.error("上传失败");
  5704. } else {
  5705. if (_this.testJson.testJson[i].timuList) {
  5706. _this.testJson.testJson[i].timuList.push({
  5707. src: data.Location,
  5708. });
  5709. } else {
  5710. _this.testJson.testJson[i].timuList = [];
  5711. _this.testJson.testJson[i].timuList.push({
  5712. src: data.Location,
  5713. });
  5714. }
  5715. _this.imgChange3(i);
  5716. _this.$forceUpdate();
  5717. }
  5718. });
  5719. }
  5720. },
  5721. beforeUploadTi(event, i, j) {
  5722. const loading = this.openLoading();
  5723. var file = event.target.files[0];
  5724. var credentials = {
  5725. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5726. secretAccessKey: "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",
  5727. }; //秘钥形式的登录上传
  5728. window.AWS.config.update(credentials);
  5729. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5730. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5731. var _this = this;
  5732. if (file) {
  5733. var params = {
  5734. Key:
  5735. file.name.split(".")[0] +
  5736. new Date().getTime() +
  5737. "." +
  5738. file.name.split(".")[file.name.split(".").length - 1],
  5739. ContentType: file.type,
  5740. Body: file,
  5741. "Access-Control-Allow-Credentials": "*",
  5742. ACL: "public-read",
  5743. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5744. var options = {
  5745. partSize: 2048 * 1024 * 1024,
  5746. queueSize: 2,
  5747. leavePartsOnError: true,
  5748. };
  5749. bucket
  5750. .upload(params, options)
  5751. .on("httpUploadProgress", function (evt) {
  5752. //这里可以写进度条
  5753. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5754. })
  5755. .send(function (err, data) {
  5756. loading.close();
  5757. if (err) {
  5758. _this.$message.error("上传失败");
  5759. } else {
  5760. _this.testJson.testJson[i].checkList[j] = {};
  5761. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5762. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5763. _this.imgChange2(i, j);
  5764. _this.$forceUpdate();
  5765. }
  5766. });
  5767. }
  5768. },
  5769. beforeUpload1(event, type) {
  5770. // const loading = this.openLoading();
  5771. var file = event.target.files[0];
  5772. var credentials = {
  5773. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5774. secretAccessKey: "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",
  5775. }; //秘钥形式的登录上传
  5776. window.AWS.config.update(credentials);
  5777. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5778. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5779. var _this = this;
  5780. if (file) {
  5781. var params = {
  5782. Key:
  5783. file.name.split(".")[0] +
  5784. new Date().getTime() +
  5785. "." +
  5786. file.name.split(".")[file.name.split(".").length - 1],
  5787. ContentType: file.type,
  5788. Body: file,
  5789. "Access-Control-Allow-Credentials": "*",
  5790. ACL: "public-read",
  5791. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5792. var options = {
  5793. partSize: 2048 * 1024 * 1024,
  5794. queueSize: 2,
  5795. leavePartsOnError: true,
  5796. };
  5797. bucket
  5798. .upload(params, options)
  5799. .on("httpUploadProgress", function (evt) {
  5800. //这里可以写进度条
  5801. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5802. })
  5803. .send(function (err, data) {
  5804. // loading.close();
  5805. if (err) {
  5806. // var a = _this.$refs.upload1.uploadFiles;
  5807. // a.splice(a.length - 1, a.length);
  5808. _this.$message.error("上传失败");
  5809. } else {
  5810. _this.cover = [{
  5811. name: file.name,
  5812. url: data.Location,
  5813. uid: file.uid,
  5814. }];
  5815. _this.imgChange1(null, null, 1, null);
  5816. _this.choosePicVisible = false;
  5817. console.log(data.Location);
  5818. }
  5819. });
  5820. }
  5821. },
  5822. beforeUploadSelect(event, type) {
  5823. // const loading = this.openLoading();
  5824. var file = event.target.files[0];
  5825. var credentials = {
  5826. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5827. secretAccessKey: "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",
  5828. }; //秘钥形式的登录上传
  5829. window.AWS.config.update(credentials);
  5830. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5831. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5832. var _this = this;
  5833. if (file) {
  5834. var params = {
  5835. Key:
  5836. file.name.split(".")[0] +
  5837. new Date().getTime() +
  5838. "." +
  5839. file.name.split(".")[file.name.split(".").length - 1],
  5840. ContentType: file.type,
  5841. Body: file,
  5842. "Access-Control-Allow-Credentials": "*",
  5843. ACL: "public-read",
  5844. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5845. var options = {
  5846. partSize: 2048 * 1024 * 1024,
  5847. queueSize: 2,
  5848. leavePartsOnError: true,
  5849. };
  5850. bucket
  5851. .upload(params, options)
  5852. .on("httpUploadProgress", function (evt) {
  5853. //这里可以写进度条
  5854. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5855. })
  5856. .send(function (err, data) {
  5857. // loading.close();
  5858. if (err) {
  5859. _this.$message.error("上传失败");
  5860. } else {
  5861. _this.selectJson.url = data.Location;
  5862. console.log(data.Location);
  5863. }
  5864. });
  5865. }
  5866. },
  5867. chooseSysPic(p) {
  5868. this.cover = []
  5869. setTimeout(() => {
  5870. this.cover[0] = {
  5871. name: "系统图片.png",
  5872. url: p,
  5873. };
  5874. this.imgChange1(null, null, 1, null);
  5875. this.$forceUpdate();
  5876. }, 0);
  5877. this.isSysPic = true;
  5878. this.isSysPic2 = false;
  5879. this.sysPicVisible = false;
  5880. this.$forceUpdate();
  5881. },
  5882. chooseSysPic2(p) {
  5883. this.cover = []
  5884. setTimeout(() => {
  5885. this.cover[0] = {
  5886. name: "网络图片.png",
  5887. url: p,
  5888. };
  5889. this.imgChange1(null, null, 1, null);
  5890. this.$forceUpdate();
  5891. }, 0);
  5892. this.isSysPic2 = true;
  5893. this.isSysPic = false;
  5894. this.sysPicVisible2 = false;
  5895. this.$forceUpdate();
  5896. },
  5897. beforeUpload(data) {
  5898. this.$refs.upload1.uploadFiles;
  5899. this.uploadLoading1 = true;
  5900. var file = data.file;
  5901. var credentials = {
  5902. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5903. secretAccessKey: "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",
  5904. }; //秘钥形式的登录上传
  5905. window.AWS.config.update(credentials);
  5906. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5907. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5908. var _this = this;
  5909. if (file) {
  5910. var params = {
  5911. Key:
  5912. file.name.split(".")[0] +
  5913. new Date().getTime() +
  5914. "." +
  5915. file.name.split(".")[file.name.split(".").length - 1],
  5916. ContentType: file.type,
  5917. Body: file,
  5918. "Access-Control-Allow-Credentials": "*",
  5919. ACL: "public-read",
  5920. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5921. var options = {
  5922. partSize: 2048 * 1024 * 1024,
  5923. queueSize: 2,
  5924. leavePartsOnError: true,
  5925. };
  5926. bucket
  5927. .upload(params, options)
  5928. .on("httpUploadProgress", function (evt) {
  5929. //这里可以写进度条
  5930. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5931. })
  5932. .send(function (err, data) {
  5933. _this.uploadLoading1 = false;
  5934. if (err) {
  5935. // var a = _this.$refs.upload1.uploadFiles;
  5936. // a.splice(a.length - 1, a.length);
  5937. _this.$message.error("上传失败");
  5938. } else {
  5939. //上传成功处理
  5940. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5941. name: file.name,
  5942. url: data.Location,
  5943. uid: file.uid,
  5944. });
  5945. _this.imgChange();
  5946. console.log(data.Location);
  5947. }
  5948. });
  5949. }
  5950. },
  5951. onExceed() {
  5952. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5953. },
  5954. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5955. // const loading = this.openLoading();
  5956. var file = event.target.files[0];
  5957. var credentials = {
  5958. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5959. secretAccessKey: "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",
  5960. }; //秘钥形式的登录上传
  5961. window.AWS.config.update(credentials);
  5962. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5963. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5964. var _this = this;
  5965. if (type == 3) {
  5966. var b = [
  5967. "DOC",
  5968. "DOCX",
  5969. "DOCM",
  5970. "DOTM",
  5971. "DOTX",
  5972. "PPTX",
  5973. "PPSX",
  5974. "PPT",
  5975. "PPS",
  5976. "PPTM",
  5977. "POTM",
  5978. "PPAM",
  5979. "POTX",
  5980. "PPSM",
  5981. "XLSX",
  5982. "XLS",
  5983. ];
  5984. if (
  5985. b.indexOf(
  5986. file.name
  5987. .split(".")
  5988. [file.name.split(".").length - 1].toLocaleUpperCase()
  5989. ) != -1
  5990. ) {
  5991. if (file.size / 1024 / 1024 > 80) {
  5992. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5993. this.inputShow = true;
  5994. // var a = _this.$refs.upload1.uploadFiles;
  5995. // a.splice(a.length - 1, a.length);
  5996. // loading.close();
  5997. return;
  5998. }
  5999. } else if (
  6000. file.name
  6001. .split(".")
  6002. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6003. ) {
  6004. if (file.size / 1024 / 1024 > 80) {
  6005. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6006. this.inputShow = true;
  6007. // var a = _this.$refs.upload1.uploadFiles;
  6008. // a.splice(a.length - 1, a.length);
  6009. // loading.close();
  6010. return;
  6011. }
  6012. }
  6013. }
  6014. this.inputShow = false;
  6015. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6016. itemTaskIndex
  6017. ].progress = 0;
  6018. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6019. itemTaskIndex
  6020. ].proVisible = true;
  6021. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6022. itemTaskIndex
  6023. ].isFinishSize = 0;
  6024. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6025. itemTaskIndex
  6026. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6027. _this.$forceUpdate();
  6028. if (file) {
  6029. var params = {
  6030. Key:
  6031. file.name.split(".")[0] +
  6032. new Date().getTime() +
  6033. "." +
  6034. file.name.split(".")[file.name.split(".").length - 1],
  6035. ContentType: file.type,
  6036. Body: file,
  6037. "Access-Control-Allow-Credentials": "*",
  6038. ACL: "public-read",
  6039. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6040. var options = {
  6041. partSize: 2048 * 1024 * 1024,
  6042. queueSize: 2,
  6043. leavePartsOnError: true,
  6044. };
  6045. bucket
  6046. .upload(params, options)
  6047. .on("httpUploadProgress", function (evt) {
  6048. //这里可以写进度条
  6049. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6050. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6051. itemTaskIndex
  6052. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6053. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6054. itemTaskIndex
  6055. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6056. _this.$forceUpdate();
  6057. })
  6058. .send(function (err, data) {
  6059. // loading.close();
  6060. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6061. itemTaskIndex
  6062. ].progress = 100;
  6063. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6064. itemTaskIndex
  6065. ].isFinishSize =
  6066. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6067. itemTaskIndex
  6068. ].isAllSize;
  6069. _this.$forceUpdate();
  6070. setTimeout(() => {
  6071. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6072. itemTaskIndex
  6073. ].proVisible = false;
  6074. _this.$forceUpdate();
  6075. }, 1000);
  6076. _this.inputShow = true;
  6077. if (err) {
  6078. // var a = _this.$refs.upload1.uploadFiles;
  6079. // a.splice(a.length - 1, a.length);
  6080. _this.$message.error("上传失败");
  6081. } else {
  6082. if (type == 13) {
  6083. let _type = 2;
  6084. var imgA = [
  6085. "png",
  6086. "jpg",
  6087. "jpeg",
  6088. "bmp",
  6089. "gif",
  6090. "webp",
  6091. "psd",
  6092. "svg",
  6093. "tiff",
  6094. ];
  6095. var fileA = [
  6096. "PDF",
  6097. "DOC",
  6098. "DOCX",
  6099. "DOCM",
  6100. "DOTM",
  6101. "DOTX",
  6102. "PPTX",
  6103. "PPSX",
  6104. "PPT",
  6105. "PPS",
  6106. "PPTM",
  6107. "POTM",
  6108. "PPAM",
  6109. "POTX",
  6110. "PPSM",
  6111. "XLSX",
  6112. "XLS",
  6113. ];
  6114. var videoA = [
  6115. "AVI",
  6116. "NAVI",
  6117. "MPEG",
  6118. "ASF",
  6119. "MOV",
  6120. "WMV",
  6121. "3GP",
  6122. "RM",
  6123. "RMVB",
  6124. "FLV",
  6125. "F4V",
  6126. "H.264",
  6127. "H.265",
  6128. "REAL VIDEO",
  6129. "MKV",
  6130. "WebM",
  6131. "HDDVD",
  6132. "MP4",
  6133. "MPG",
  6134. "M4V",
  6135. "MGV",
  6136. "OGV",
  6137. "QTM",
  6138. "STR",
  6139. "AMC",
  6140. "DVX",
  6141. "EVO",
  6142. "DAT",
  6143. "OGG",
  6144. "OGM",
  6145. ];
  6146. if (
  6147. fileA.indexOf(
  6148. data.Location.split(".")[
  6149. data.Location.split(".").length - 1
  6150. ].toLocaleUpperCase()
  6151. ) != -1
  6152. ) {
  6153. _type = 3;
  6154. } else if (
  6155. videoA.indexOf(
  6156. data.Location.split(".")[
  6157. data.Location.split(".").length - 1
  6158. ].toLocaleUpperCase()
  6159. ) != -1
  6160. ) {
  6161. _type = 2;
  6162. } else if (
  6163. imgA.indexOf(
  6164. data.Location.split(".")[
  6165. data.Location.split(".").length - 1
  6166. ].toLocaleLowerCase()
  6167. ) != -1
  6168. ) {
  6169. _type = 13;
  6170. } else {
  6171. _type = 12;
  6172. }
  6173. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6174. itemTaskIndex
  6175. ].chapterData.push({
  6176. name: file.name,
  6177. url: data.Location,
  6178. uid: file.uid,
  6179. type: _type,
  6180. });
  6181. _this.imgChange1(null, null, _type, itemTaskIndex);
  6182. } else if (type == 2 || type == 3 || type == 12) {
  6183. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6184. itemTaskIndex
  6185. ].chapterData.push({
  6186. name: file.name,
  6187. url: data.Location,
  6188. uid: file.uid,
  6189. type: type,
  6190. });
  6191. _this.imgChange1(null, null, type, itemTaskIndex);
  6192. } else if (type == 4) {
  6193. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6194. itemTaskIndex
  6195. ].fileList1.push({
  6196. name: file.name,
  6197. url: data.Location,
  6198. uid: file.uid,
  6199. });
  6200. _this.imgChange1(null, null, type, itemTaskIndex);
  6201. } else if (type == 5) {
  6202. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6203. itemTaskIndex
  6204. ].homeworkList.push({
  6205. name: file.name,
  6206. url: data.Location,
  6207. uid: file.uid,
  6208. });
  6209. _this.imgChange1(null, null, type, itemTaskIndex);
  6210. }
  6211. console.log(data.Location);
  6212. }
  6213. });
  6214. }
  6215. },
  6216. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6217. // const loading = this.openLoading();
  6218. var file = event.target.files[0];
  6219. var credentials = {
  6220. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6221. secretAccessKey: "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",
  6222. }; //秘钥形式的登录上传
  6223. window.AWS.config.update(credentials);
  6224. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6225. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6226. var _this = this;
  6227. if (type == 3) {
  6228. var b = [
  6229. "DOC",
  6230. "DOCX",
  6231. "DOCM",
  6232. "DOTM",
  6233. "DOTX",
  6234. "PPTX",
  6235. "PPSX",
  6236. "PPT",
  6237. "PPS",
  6238. "PPTM",
  6239. "POTM",
  6240. "PPAM",
  6241. "POTX",
  6242. "PPSM",
  6243. ];
  6244. if (
  6245. b.indexOf(
  6246. file.name
  6247. .split(".")
  6248. [file.name.split(".").length - 1].toLocaleUpperCase()
  6249. ) != -1
  6250. ) {
  6251. if (file.size / 1024 / 1024 > 80) {
  6252. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6253. this.inputShow = true;
  6254. // var a = _this.$refs.upload1.uploadFiles;
  6255. // a.splice(a.length - 1, a.length);
  6256. // loading.close();
  6257. return;
  6258. }
  6259. } else if (
  6260. file.name
  6261. .split(".")
  6262. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6263. ) {
  6264. if (file.size / 1024 / 1024 > 80) {
  6265. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6266. this.inputShow = true;
  6267. // var a = _this.$refs.upload1.uploadFiles;
  6268. // a.splice(a.length - 1, a.length);
  6269. // loading.close();
  6270. return;
  6271. }
  6272. }
  6273. }
  6274. this.inputShow = false;
  6275. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6276. itemTaskIndex
  6277. ].progress = 0;
  6278. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6279. itemTaskIndex
  6280. ].proVisible = true;
  6281. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6282. itemTaskIndex
  6283. ].isFinishSize = 0;
  6284. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6285. itemTaskIndex
  6286. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6287. _this.$forceUpdate();
  6288. if (file) {
  6289. var params = {
  6290. Key:
  6291. file.name.split(".")[0] +
  6292. new Date().getTime() +
  6293. "." +
  6294. file.name.split(".")[file.name.split(".").length - 1],
  6295. ContentType: file.type,
  6296. Body: file,
  6297. "Access-Control-Allow-Credentials": "*",
  6298. ACL: "public-read",
  6299. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6300. var options = {
  6301. partSize: 2048 * 1024 * 1024,
  6302. queueSize: 2,
  6303. leavePartsOnError: true,
  6304. };
  6305. bucket
  6306. .upload(params, options)
  6307. .on("httpUploadProgress", function (evt) {
  6308. //这里可以写进度条
  6309. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6310. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6311. itemTaskIndex
  6312. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6313. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6314. itemTaskIndex
  6315. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6316. _this.$forceUpdate();
  6317. })
  6318. .send(function (err, data) {
  6319. // loading.close();
  6320. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6321. itemTaskIndex
  6322. ].progress = 100;
  6323. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6324. itemTaskIndex
  6325. ].isFinishSize =
  6326. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6327. itemTaskIndex
  6328. ].isAllSize;
  6329. _this.$forceUpdate();
  6330. setTimeout(() => {
  6331. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6332. itemTaskIndex
  6333. ].proVisible = false;
  6334. _this.$forceUpdate();
  6335. }, 1000);
  6336. _this.inputShow = true;
  6337. if (err) {
  6338. // var a = _this.$refs.upload1.uploadFiles;
  6339. // a.splice(a.length - 1, a.length);
  6340. _this.$message.error("上传失败");
  6341. } else {
  6342. if (type == 2 || type == 3) {
  6343. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6344. itemTaskIndex
  6345. ].chapterData.push({
  6346. name: file.name,
  6347. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6348. // itemTaskIndex
  6349. // ].chapterData.length+1),
  6350. url: data.Location,
  6351. uid: file.uid,
  6352. type: type,
  6353. text: string,
  6354. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6355. // itemTaskIndex
  6356. // ].chapterData.length + 1),
  6357. });
  6358. _this.imgChange1(null, null, type, itemTaskIndex);
  6359. } else if (type == 4) {
  6360. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6361. itemTaskIndex
  6362. ].fileList1.push({
  6363. name: file.name,
  6364. url: data.Location,
  6365. uid: file.uid,
  6366. });
  6367. _this.imgChange1(null, null, type, itemTaskIndex);
  6368. } else if (type == 5) {
  6369. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6370. itemTaskIndex
  6371. ].homeworkList.push({
  6372. name: file.name,
  6373. url: data.Location,
  6374. uid: file.uid,
  6375. });
  6376. _this.imgChange1(null, null, type, itemTaskIndex);
  6377. }
  6378. console.log(data.Location);
  6379. }
  6380. });
  6381. }
  6382. },
  6383. addunit() {
  6384. this.unitJson.push({
  6385. dyName: "", //单元标题
  6386. isUpdate: 1,
  6387. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6388. chapterInfo: [
  6389. {
  6390. isread: false,
  6391. chapterid: this.guid(),
  6392. title: "",
  6393. courseName: "",
  6394. taskJson: [
  6395. {
  6396. task: "",
  6397. taskDetail: "",
  6398. chapterData: [],
  6399. toolText: "",
  6400. toolChoose: [
  6401. {
  6402. tool: [],
  6403. toolDetail: "",
  6404. toolType: 0,
  6405. askCount: 1,
  6406. askTitle: "",
  6407. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6408. },
  6409. ],
  6410. isShowTools: false,
  6411. askCount: 1,
  6412. isFold: 1,
  6413. askTitle: "",
  6414. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6415. checkJson: [{ checkCount: [], checkPerent: [] }],
  6416. homeworkList: [],
  6417. },
  6418. ],
  6419. itemCount: 1,
  6420. fileList1: [],
  6421. video: [],
  6422. testData: [],
  6423. pData: [],
  6424. templateArray: [],
  6425. },
  6426. ],
  6427. });
  6428. this.addindex = this.unitJson.length - 1;
  6429. setTimeout(() => {
  6430. this.unitIndex = this.unitJson.length - 1;
  6431. this.unitSet(this.unitIndex);
  6432. }, 0);
  6433. },
  6434. addToolFun(itemTaskIndex) {
  6435. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6436. itemTaskIndex
  6437. ].toolChoose.push({
  6438. tool: [],
  6439. toolDetail: "",
  6440. toolType: 0,
  6441. askCount: 1,
  6442. askTitle: "",
  6443. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6444. });
  6445. },
  6446. addTaskBorder() {
  6447. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6448. task: "",
  6449. taskDetail: "",
  6450. chapterData: [],
  6451. toolChoose: [
  6452. {
  6453. tool: [],
  6454. toolDetail: "",
  6455. toolType: 0,
  6456. askCount: 1,
  6457. askTitle: "",
  6458. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6459. },
  6460. ],
  6461. toolText: "",
  6462. isShowTools: false,
  6463. askCount: 1,
  6464. isFold: 1,
  6465. askTitle: "",
  6466. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6467. checkJson: [{ checkCount: [], checkPerent: [] }],
  6468. homeworkList: [],
  6469. });
  6470. },
  6471. add(e, i) {
  6472. var el = e.currentTarget;
  6473. el.getElementsByTagName("input")[0].click();
  6474. },
  6475. fold(i, e, type) {
  6476. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold == 0) {
  6477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6478. } else {
  6479. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6480. }
  6481. console.log(e);
  6482. },
  6483. fold2(i) {
  6484. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  6485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  6486. } else {
  6487. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  6488. }
  6489. setTimeout(() => {
  6490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  6491. setTimeout(() => {
  6492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  6493. }, 0);
  6494. }, 0);
  6495. this.$forceUpdate();
  6496. },
  6497. foldC(i) {
  6498. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  6499. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  6500. } else {
  6501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  6502. }
  6503. this.$forceUpdate();
  6504. },
  6505. fold3(i, ti) {
  6506. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  6507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  6508. } else {
  6509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  6510. }
  6511. this.$forceUpdate();
  6512. },
  6513. deleteHomeworkBox(unitIndex, index, i) {
  6514. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6515. this.taskCount
  6516. ].homeworkList.splice(i, 1);
  6517. },
  6518. getStudent() {
  6519. let params = {
  6520. oid: this.oid,
  6521. cu: "",
  6522. cn: this.searchPeople,
  6523. };
  6524. this.ajax
  6525. .get(this.$store.state.api + "selectStudentAdd", params)
  6526. .then((res) => {
  6527. this.studentJuri = res.data[0];
  6528. })
  6529. .catch((err) => {
  6530. this.isLoading = false;
  6531. console.error(err);
  6532. });
  6533. },
  6534. getTeacher() {
  6535. let params = {
  6536. oid:
  6537. this.org && this.org != "undefined" && this.org != "null"
  6538. ? this.org
  6539. : this.oid,
  6540. cu: "",
  6541. cn: this.searchTN,
  6542. };
  6543. this.ajax
  6544. .get(
  6545. this.$store.state.api +
  6546. (this.org && this.org != "undefined" && this.org != "null"
  6547. ? "selectTeacherAddOrg"
  6548. : "selectTeacherAdd"),
  6549. params
  6550. )
  6551. .then((res) => {
  6552. let teacherJuri = res.data[0];
  6553. for (var i = 0; i < teacherJuri.length; i++) {
  6554. if (teacherJuri[i].userid == this.userid) {
  6555. teacherJuri.splice(i, 1);
  6556. break;
  6557. }
  6558. }
  6559. this.teacherJuri = teacherJuri;
  6560. })
  6561. .catch((err) => {
  6562. console.error(err);
  6563. });
  6564. },
  6565. searchStudent() {
  6566. this.getStudent();
  6567. },
  6568. selectGrage() {
  6569. let params = {
  6570. oid: this.oid,
  6571. };
  6572. this.ajax
  6573. .get(this.$store.state.api + "selectGrageBySchool", params)
  6574. .then((res) => {
  6575. this.gradeList = res.data[0];
  6576. })
  6577. .catch((err) => {
  6578. this.isLoading = false;
  6579. console.error(err);
  6580. });
  6581. },
  6582. //获取班级列表
  6583. getClass() {
  6584. let params = {
  6585. oid: this.oid,
  6586. gid: this.gradeId,
  6587. cn: this.classSearch,
  6588. };
  6589. this.ajax
  6590. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  6591. .then((res) => {
  6592. if (!this.grade.length) {
  6593. this.grade = res.data[0];
  6594. }
  6595. this.grade2 = res.data[0];
  6596. this.classJuri = res.data[0];
  6597. let _check = []
  6598. let _check2 = []
  6599. for (var i = 0; i < this.grade2.length; i++) {
  6600. var gid = this.grade2[i].id
  6601. _check.push(gid)
  6602. }
  6603. for (var i = 0; i < this.checkboxList2.length; i++) {
  6604. var _id = this.checkboxList2[i]
  6605. if (_check.indexOf(_id) !== -1) {
  6606. _check2.push(_id)
  6607. }
  6608. }
  6609. this.checkAll = _check2.length === _check.length;
  6610. })
  6611. .catch((err) => {
  6612. this.isLoading = false;
  6613. console.error(err);
  6614. });
  6615. },
  6616. CourseType2Change(val) {
  6617. this.pTypeCheck = [];
  6618. for (var i = 0; i < this.CourseType2.length; i++) {
  6619. let typeA = this.CourseType2[i];
  6620. if (val.indexOf(typeA.name) != -1) {
  6621. this.pTypeCheck.push(...typeA.id);
  6622. }
  6623. }
  6624. },
  6625. getChapterData(e, i, j, ic, type) {
  6626. e.stopPropagation();
  6627. this.updataC = true;
  6628. this.icc = ic;
  6629. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6630. console.log("还不能下载图片喔");
  6631. }
  6632. },
  6633. deleteChapterData(e, i, j, ic, taskI) {
  6634. e.stopPropagation();
  6635. let _this = this;
  6636. _this
  6637. .$confirm("确定删除此项?", "提示", {
  6638. confirmButtonText: "确定",
  6639. cancelButtonText: "取消",
  6640. type: "warning",
  6641. })
  6642. .then(() => {
  6643. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6644. })
  6645. .catch(() => {
  6646. return;
  6647. });
  6648. },
  6649. updataVideoT(e, i, j, ic) {
  6650. // e.stopPropagation();
  6651. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6652. // ic
  6653. // ].name = JSON.parse(JSON.stringify(e.target.value));
  6654. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  6655. ic
  6656. ].name;
  6657. this.taskCount = j;
  6658. this.lineCount = ic;
  6659. this.dialogVisibleupdataVideoT = true;
  6660. this.$forceUpdate();
  6661. },
  6662. updataVideoC() {
  6663. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  6664. this.dialogVisibleupdataVideoT = false;
  6665. this.$forceUpdate();
  6666. },
  6667. upCd(e, i, j, taskCount, ic) {
  6668. e.stopPropagation();
  6669. if (ic == 0) {
  6670. return;
  6671. }
  6672. var a =
  6673. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  6674. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6675. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6676. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6677. this.$forceUpdate();
  6678. },
  6679. downCd(e, i, j, taskCount, ic) {
  6680. e.stopPropagation();
  6681. if (
  6682. ic ==
  6683. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6684. 1
  6685. ) {
  6686. return;
  6687. }
  6688. var a =
  6689. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  6690. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6691. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  6692. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6693. this.$forceUpdate();
  6694. },
  6695. async upTool(e, i, j, tooli){
  6696. e.stopPropagation();
  6697. if (tooli == 0) {
  6698. return;
  6699. }
  6700. let count1 = await this.getWorksCount(3, i, j, tooli - 1)
  6701. let count2 = await this.getWorksCount(3, i, j, tooli)
  6702. if(count1 > 0 || count2 > 0){
  6703. this.$confirm(
  6704. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6705. "提示",
  6706. {
  6707. confirmButtonText: "确定",
  6708. cancelButtonText: "取消",
  6709. type: "warning",
  6710. }
  6711. )
  6712. .then(() => {
  6713. var a =
  6714. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6715. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6716. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6717. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6718. this.$forceUpdate()
  6719. })
  6720. .catch(() => {
  6721. return;
  6722. });
  6723. }else{
  6724. var a =
  6725. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1]));
  6726. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli - 1] =
  6727. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6728. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6729. this.$forceUpdate()
  6730. }
  6731. },
  6732. async downTool(e, i, j, tooli){
  6733. e.stopPropagation();
  6734. if ( tooli ==
  6735. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length -
  6736. 1) {
  6737. return;
  6738. }
  6739. let count1 = await this.getWorksCount(3, i, j, tooli + 1)
  6740. let count2 = await this.getWorksCount(3, i, j, tooli)
  6741. if(count1 > 0 || count2 > 0){
  6742. this.$confirm(
  6743. "切换工具顺序将删除此工具的提交成果,是否继续此操作?",
  6744. "提示",
  6745. {
  6746. confirmButtonText: "确定",
  6747. cancelButtonText: "取消",
  6748. type: "warning",
  6749. }
  6750. )
  6751. .then(() => {
  6752. var a =
  6753. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6754. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6755. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6756. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6757. this.$forceUpdate()
  6758. })
  6759. .catch(() => {
  6760. return;
  6761. });
  6762. }else{
  6763. var a =
  6764. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1]));
  6765. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli + 1] =
  6766. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli]));
  6767. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[tooli] = a;
  6768. this.$forceUpdate()
  6769. }
  6770. },
  6771. addWork() {
  6772. let cPan = 1;
  6773. for (var i = 0; i < this.unitJson.length; i++) {
  6774. for (
  6775. var j = 0;
  6776. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6777. j++
  6778. ) {
  6779. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6780. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6781. if (
  6782. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6783. ) {
  6784. for (
  6785. var z = 0;
  6786. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6787. z++
  6788. ) {
  6789. if (
  6790. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6791. .length
  6792. ) {
  6793. this.$message.error("请把工具添加完整");
  6794. cPan = 2;
  6795. break;
  6796. }
  6797. }
  6798. }
  6799. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6800. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6801. i
  6802. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6803. return ele.value != "";
  6804. });
  6805. }
  6806. }
  6807. }
  6808. this.inputShow = true;
  6809. if (cPan == 2) {
  6810. return;
  6811. }
  6812. for (var i = 0; i < this.unitJson.length; i++) {
  6813. delete this.unitJson[i].isUpdate;
  6814. }
  6815. let params = [
  6816. {
  6817. uid: this.userid,
  6818. title: this.courseName.replace(/%/g, "%25"),
  6819. brief: this.courseText.replace(/%/g, "%25"),
  6820. cover:
  6821. this.cover.length > 0
  6822. ? JSON.stringify(this.cover)
  6823. : JSON.stringify([
  6824. {
  6825. name: "noBanner.jpg",
  6826. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6827. uid: 1656409780264,
  6828. status: "success",
  6829. },
  6830. ]),
  6831. evaId: this.evalua,
  6832. astudent:
  6833. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6834. see: this.isTeacherSee == true ? 1 : 0,
  6835. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6836. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6837. courseType: JSON.stringify(this.courseTypeId),
  6838. ateacher:
  6839. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6840. inviteCode: JSON.stringify(this.inviteCode),
  6841. },
  6842. ];
  6843. this.ajax
  6844. .post(this.$store.state.api + "addWorkNew2T", params)
  6845. .then((res) => {
  6846. console.log(this.steps);
  6847. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6848. this.$message({
  6849. message: "新增成功",
  6850. type: "success",
  6851. });
  6852. // }
  6853. this.number = res.data.ordernumber;
  6854. this.courseId = res.data.courseId;
  6855. this.cid = res.data.courseId;
  6856. this.courseUserid = this.userid;
  6857. this.islogin = true;
  6858. this.steps = 4;
  6859. })
  6860. .catch((err) => {
  6861. this.$message.error("网络不佳");
  6862. console.error(err);
  6863. });
  6864. },
  6865. goCourse() {
  6866. top.postMessage({ cid: this.courseId, type: "1" }, "*");
  6867. },
  6868. updateWork2() {
  6869. let _unitIndex = this.unitIndex;
  6870. let cPan = 1;
  6871. for (
  6872. var j = 0;
  6873. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6874. j++
  6875. ) {
  6876. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6877. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6878. j
  6879. ].proVisible2 = false;
  6880. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6881. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6882. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6883. (ele) => {
  6884. return ele.value != "";
  6885. }
  6886. );
  6887. }
  6888. }
  6889. this.inputShow = true;
  6890. if (cPan == 2) {
  6891. return;
  6892. }
  6893. let params = [
  6894. {
  6895. cid: this.cid,
  6896. chapters: JSON.stringify(this.unitJson),
  6897. uid: this.userid,
  6898. unitIndex: _unitIndex,
  6899. },
  6900. ];
  6901. this.ajax
  6902. .post(this.$store.state.api + "updateWorkNew4", params)
  6903. .then((res) => {
  6904. this.$message({
  6905. message: "修改成功",
  6906. type: "success",
  6907. });
  6908. this.courseId = this.cid;
  6909. })
  6910. .catch((err) => {
  6911. this.$message.error("网络不佳");
  6912. console.error(err);
  6913. });
  6914. },
  6915. updateWork() {
  6916. let cPan = 1;
  6917. for (var i = 0; i < this.unitJson.length; i++) {
  6918. for (
  6919. var j = 0;
  6920. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6921. j++
  6922. ) {
  6923. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6924. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6925. if (
  6926. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6927. ) {
  6928. for (
  6929. var z = 0;
  6930. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6931. z++
  6932. ) {
  6933. if (
  6934. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6935. .length
  6936. ) {
  6937. this.$message.error("请把工具添加完整");
  6938. cPan = 2;
  6939. break;
  6940. }
  6941. }
  6942. }
  6943. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6944. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6945. i
  6946. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6947. return ele.value != "";
  6948. });
  6949. }
  6950. }
  6951. }
  6952. this.inputShow = true;
  6953. if (cPan == 2) {
  6954. return;
  6955. }
  6956. for (var i = 0; i < this.unitJson.length; i++) {
  6957. delete this.unitJson[i].isUpdate;
  6958. }
  6959. let params = [
  6960. {
  6961. cid: this.cid,
  6962. title: this.courseName.replace(/%/g, "%25"),
  6963. brief: this.courseText.replace(/%/g, "%25"),
  6964. cover:
  6965. this.cover.length > 0
  6966. ? JSON.stringify(this.cover)
  6967. : JSON.stringify([
  6968. {
  6969. name: "noBanner.jpg",
  6970. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6971. uid: 1656409780264,
  6972. status: "success",
  6973. },
  6974. ]),
  6975. evaId: this.evalua,
  6976. astudent:
  6977. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6978. see: this.isTeacherSee == true ? 1 : 0,
  6979. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6980. template: this.myWord != "undefined" ? this.myWord : [],
  6981. uid: this.userid,
  6982. courseType: JSON.stringify(this.courseTypeId),
  6983. ateacher:
  6984. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6985. inviteCode: JSON.stringify(this.inviteCode),
  6986. },
  6987. ];
  6988. this.ajax
  6989. .post(this.$store.state.api + "updateWorkNew2", params)
  6990. .then((res) => {
  6991. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6992. if (this.cidType == 1) {
  6993. this.$message({
  6994. message: "修改成功",
  6995. type: "success",
  6996. });
  6997. } else {
  6998. this.$message({
  6999. message: "新增成功",
  7000. type: "success",
  7001. });
  7002. }
  7003. // }
  7004. this.number = this.nbOrder;
  7005. this.courseId = this.cid;
  7006. this.steps = 4;
  7007. })
  7008. .catch((err) => {
  7009. this.$message.error("网络不佳");
  7010. console.error(err);
  7011. });
  7012. },
  7013. guid() {
  7014. var _num,
  7015. i,
  7016. _guid = "";
  7017. for (i = 0; i < 32; i++) {
  7018. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  7019. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  7020. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  7021. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  7022. _guid += "-";
  7023. }
  7024. }
  7025. return _guid;
  7026. },
  7027. insertWord() {
  7028. this.dialogVisible1 = true;
  7029. this.updateBoolean2 = false;
  7030. this.tTitle = "";
  7031. this.tdetail = "";
  7032. },
  7033. addWord() {
  7034. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7035. name: this.tTitle,
  7036. content: this.tdetail,
  7037. uid: this.guid(),
  7038. });
  7039. this.dialogVisible1 = false;
  7040. },
  7041. upWord() { },
  7042. selectWord(uid, i, c) {
  7043. this.dialogVisible1 = true;
  7044. this.updateBoolean2 = true;
  7045. if (
  7046. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7047. ) {
  7048. this.tTitle =
  7049. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7050. this.tdetail =
  7051. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7052. }
  7053. },
  7054. isAddPP() {
  7055. if (this.checkboxList.length > 0) {
  7056. this.$message({
  7057. message: "添加成功",
  7058. type: "success",
  7059. });
  7060. this.dialogVisible3 = false;
  7061. } else {
  7062. this.$message({
  7063. message: "请添加课程成员",
  7064. type: "error",
  7065. });
  7066. }
  7067. },
  7068. isAddClass() {
  7069. this.dialogVisibleClass = false;
  7070. },
  7071. isAddPPTeacher() {
  7072. this.dialogVisibleMember = false;
  7073. this.setMan();
  7074. },
  7075. getTemplate() {
  7076. this.ajax
  7077. .get(this.$store.state.api + "getCourseTemplateT", "")
  7078. .then((res) => {
  7079. this.templateArray = res.data[0];
  7080. this.getTemplateOid();
  7081. this.$forceUpdate();
  7082. })
  7083. .catch((err) => { });
  7084. },
  7085. getTemplateOid() {
  7086. let params = {
  7087. oid: this.oid,
  7088. };
  7089. this.ajax
  7090. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7091. .then((res) => {
  7092. if (res.data[0].length) {
  7093. this.templateArray = [...res.data[0], ...this.templateArray];
  7094. }
  7095. this.getTemplateOrg();
  7096. this.$forceUpdate();
  7097. })
  7098. .catch((err) => { });
  7099. },
  7100. getTemplateOrg() {
  7101. let params = {
  7102. oid: this.org,
  7103. };
  7104. this.ajax
  7105. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7106. .then((res) => {
  7107. if (res.data[0].length) {
  7108. this.templateArray = [...res.data[0], ...this.templateArray];
  7109. }
  7110. this.$forceUpdate();
  7111. })
  7112. .catch((err) => { });
  7113. },
  7114. clearChoose() {
  7115. this.clearArray.splice(this.templateC.id, 1);
  7116. this.dialogVisible2 = false;
  7117. },
  7118. clearAttText() {
  7119. this.AttText = {
  7120. title: "",
  7121. text: "",
  7122. };
  7123. this.dialogVisible6 = false;
  7124. },
  7125. clearLine() {
  7126. this.line = "";
  7127. this.dialogVisible7 = false;
  7128. },
  7129. checkTemplate(res) {
  7130. let _this = this;
  7131. _this
  7132. .$confirm("确定选择此模板吗?", "提示", {
  7133. confirmButtonText: "确定",
  7134. cancelButtonText: "取消",
  7135. type: "warning",
  7136. })
  7137. .then(() => {
  7138. _this.unitJson = JSON.parse(res.chapters);
  7139. _this.steps++;
  7140. setTimeout(() => {
  7141. this.checkEva(this.checkId);
  7142. }, 1000);
  7143. })
  7144. .catch(() => {
  7145. return;
  7146. });
  7147. },
  7148. checkTemplate1(w) {
  7149. this.steps++;
  7150. },
  7151. checkTemplate2() {
  7152. let _this = this;
  7153. _this
  7154. .$confirm("确定选择空模板吗?", "提示", {
  7155. confirmButtonText: "确定",
  7156. cancelButtonText: "取消",
  7157. type: "warning",
  7158. })
  7159. .then(() => {
  7160. _this.unitIndex = 0;
  7161. _this.unitJson = [
  7162. {
  7163. dyName: "", //单元标题
  7164. chapterInfo: [
  7165. {
  7166. isread: false,
  7167. chapterid: this.guid(),
  7168. title: "",
  7169. courseName: "",
  7170. taskJson: [
  7171. {
  7172. task: "",
  7173. taskDetail: "",
  7174. chapterData: [],
  7175. toolText: "",
  7176. toolChoose: [
  7177. {
  7178. tool: [],
  7179. toolDetail: "",
  7180. toolType: 0,
  7181. askCount: 1,
  7182. askTitle: "",
  7183. askJson: [
  7184. { askstitle: "", askItem: 1, checkList: [] },
  7185. ],
  7186. },
  7187. ],
  7188. isShowTools: false,
  7189. askCount: 1,
  7190. isFold: 1,
  7191. askTitle: "",
  7192. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7193. checkJson: [{ checkCount: [], checkPerent: [] }],
  7194. homeworkList: [],
  7195. },
  7196. ],
  7197. itemCount: 1,
  7198. fileList1: [],
  7199. video: [],
  7200. testData: [],
  7201. pData: [],
  7202. templateArray: [],
  7203. },
  7204. ],
  7205. },
  7206. ];
  7207. this.steps++;
  7208. this.updateWork();
  7209. })
  7210. .catch(() => {
  7211. return;
  7212. });
  7213. },
  7214. checkTemplate3() {
  7215. let _this = this;
  7216. _this
  7217. .$confirm("确定选择简易模式吗?", "提示", {
  7218. confirmButtonText: "确定",
  7219. cancelButtonText: "取消",
  7220. type: "warning",
  7221. })
  7222. .then(() => {
  7223. _this.unitIndex = 0;
  7224. _this.unitJson = [
  7225. {
  7226. dyName: "", //单元标题
  7227. easy: 1,
  7228. chapterInfo: [
  7229. {
  7230. isread: false,
  7231. chapterid: this.guid(),
  7232. title: "",
  7233. courseName: "",
  7234. taskJson: [
  7235. {
  7236. task: "",
  7237. taskDetail: "",
  7238. chapterData: [],
  7239. toolText: "",
  7240. toolChoose: [
  7241. {
  7242. tool: [],
  7243. toolDetail: "",
  7244. toolType: 0,
  7245. askCount: 1,
  7246. askTitle: "",
  7247. askJson: [
  7248. { askstitle: "", askItem: 1, checkList: [] },
  7249. ],
  7250. },
  7251. ],
  7252. isShowTools: false,
  7253. askCount: 1,
  7254. isFold: 1,
  7255. askTitle: "",
  7256. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7257. checkJson: [{ checkCount: [], checkPerent: [] }],
  7258. homeworkList: [],
  7259. },
  7260. ],
  7261. itemCount: 1,
  7262. fileList1: [],
  7263. video: [],
  7264. testData: [],
  7265. pData: [],
  7266. templateArray: [],
  7267. },
  7268. ],
  7269. },
  7270. ];
  7271. this.steps++;
  7272. this.updateWork();
  7273. })
  7274. .catch(() => {
  7275. return;
  7276. });
  7277. },
  7278. checkTemplate4() {
  7279. let _this = this;
  7280. _this
  7281. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7282. confirmButtonText: "确定",
  7283. cancelButtonText: "取消",
  7284. type: "warning",
  7285. })
  7286. .then(() => {
  7287. _this.unitIndex = 0;
  7288. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7289. this.steps++;
  7290. this.updateWork();
  7291. })
  7292. .catch(() => {
  7293. return;
  7294. });
  7295. },
  7296. wordNext() {
  7297. this.dialogVisible2 = false;
  7298. },
  7299. isAddOrUpdateAttText() {
  7300. if (this.AttTextType == 0) {
  7301. this.addAttTextMessage();
  7302. } else {
  7303. this.updateAttText();
  7304. }
  7305. },
  7306. isAddOrUpdateLine() {
  7307. if (!this.lineTitle) {
  7308. this.$message.error("请填写链接标题");
  7309. return;
  7310. }
  7311. if (this.lineType == 0) {
  7312. this.addLine();
  7313. } else {
  7314. this.updateLine();
  7315. }
  7316. },
  7317. addAttTextMessage() {
  7318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7319. this.taskCount
  7320. ].chapterData.push({
  7321. name: this.AttText.title,
  7322. url: this.AttText.text,
  7323. type: 6,
  7324. });
  7325. this.imgChange1(null, null, 6, this.taskCount);
  7326. this.dialogVisible6 = false;
  7327. },
  7328. selectAttText(itemTaskIndex, i) {
  7329. this.AttText.title =
  7330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7331. itemTaskIndex
  7332. ].chapterData[i].name;
  7333. this.AttText.text =
  7334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7335. itemTaskIndex
  7336. ].chapterData[i].url;
  7337. this.taskCount = itemTaskIndex;
  7338. this.AttTextIndex = i;
  7339. this.AttTextType = 1;
  7340. this.dialogVisible6 = true;
  7341. },
  7342. updateAttText() {
  7343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7344. this.taskCount
  7345. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7347. this.taskCount
  7348. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7349. this.dialogVisible6 = false;
  7350. },
  7351. addLine() {
  7352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7353. this.lineCount
  7354. ].chapterData.push({
  7355. name: "链接",
  7356. title: this.lineTitle,
  7357. url: this.line,
  7358. type: 8,
  7359. });
  7360. this.imgChange1(null, null, 8, this.lineCount);
  7361. this.dialogVisible7 = false;
  7362. },
  7363. selectLine(itemTaskIndex, i) {
  7364. this.line =
  7365. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7366. itemTaskIndex
  7367. ].chapterData[i].url;
  7368. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7369. itemTaskIndex
  7370. ].chapterData[i].title
  7371. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7372. .chapterData[i].title
  7373. : "";
  7374. this.taskCount = itemTaskIndex;
  7375. this.lineCount = i;
  7376. this.lineType = 1;
  7377. this.dialogVisible7 = true;
  7378. },
  7379. openUpdateSource(itemTaskIndex, i) {
  7380. this.sourceData = {}
  7381. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  7382. this.sourceData[source.id] = {}
  7383. this.sourceData[source.id].name = source.title
  7384. this.sourceData[source.id].url = source.url
  7385. this.dialogVisibleSource = true;
  7386. this.updateSourcePan = true;
  7387. this.taskCount = itemTaskIndex;
  7388. this.lineCount = i;
  7389. },
  7390. updateLine() {
  7391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7392. this.taskCount
  7393. ].chapterData[this.lineCount].url = this.line;
  7394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7395. this.taskCount
  7396. ].chapterData[this.lineCount].title = this.lineTitle;
  7397. this.dialogVisible7 = false;
  7398. },
  7399. addPP() {
  7400. this.dialogVisible3 = true;
  7401. },
  7402. goTo(path) {
  7403. this.$router.push(path);
  7404. },
  7405. openTools(itemTaskIndex, i, toolIndex) {
  7406. this.toolIndex = toolIndex;
  7407. this.taskCount = itemTaskIndex;
  7408. if (i == 4) {
  7409. if (toolIndex == null) {
  7410. var a =
  7411. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7412. .chapterData;
  7413. for (var i = 0; i < a.length; i++) {
  7414. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7415. this.askJson =
  7416. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7417. itemTaskIndex
  7418. ].chapterData[i].askJson;
  7419. }
  7420. }
  7421. } else {
  7422. this.askJson = JSON.parse(
  7423. JSON.stringify(
  7424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7425. itemTaskIndex
  7426. ].toolChoose[toolIndex]
  7427. )
  7428. );
  7429. }
  7430. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  7431. this.dialogVisible5 = true;
  7432. } else if (i == 45) {
  7433. if (
  7434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7435. .toolChoose[toolIndex].testJson
  7436. ) {
  7437. this.testJson = JSON.parse(
  7438. JSON.stringify(
  7439. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7440. itemTaskIndex
  7441. ].toolChoose[toolIndex].testJson
  7442. )
  7443. );
  7444. } else {
  7445. var testJson = {
  7446. testCount: 1,
  7447. testTitle: "",
  7448. testJson: [
  7449. {
  7450. teststitle: "",
  7451. testItem: 1,
  7452. checkList: [],
  7453. timuList: [],
  7454. answer: [],
  7455. type: "1",
  7456. },
  7457. ],
  7458. };
  7459. this.testJson = testJson;
  7460. }
  7461. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  7462. this.dialogVisibleChoice = true;
  7463. } else if (i == 47) {
  7464. if (
  7465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7466. .toolChoose[toolIndex].sentenceList
  7467. ) {
  7468. this.sentenceList = JSON.parse(
  7469. JSON.stringify(
  7470. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7471. itemTaskIndex
  7472. ].toolChoose[toolIndex].sentenceList
  7473. )
  7474. );
  7475. } else {
  7476. var sentenceList = [
  7477. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7478. ];
  7479. this.sentenceList = sentenceList;
  7480. }
  7481. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  7482. this.dialogVisibleSentence = true;
  7483. } else if (i == 48) {
  7484. if (
  7485. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7486. .toolChoose[toolIndex].tableJson
  7487. ) {
  7488. this.tableJson = JSON.parse(
  7489. JSON.stringify(
  7490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7491. itemTaskIndex
  7492. ].toolChoose[toolIndex].tableJson
  7493. )
  7494. );
  7495. } else {
  7496. var tableJson = { text: "" };
  7497. this.tableJson = tableJson;
  7498. }
  7499. this.dialogVisibleTable = true;
  7500. } else if (i == 52) {
  7501. if (
  7502. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7503. .toolChoose[toolIndex].wordJson
  7504. ) {
  7505. this.wordJson = JSON.parse(
  7506. JSON.stringify(
  7507. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7508. itemTaskIndex
  7509. ].toolChoose[toolIndex].wordJson
  7510. )
  7511. );
  7512. } else {
  7513. var wordJson = { text: "" };
  7514. this.wordJson = wordJson;
  7515. }
  7516. this.dialogVisibleWord = true;
  7517. // else if (i == 50) {
  7518. // if (
  7519. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7520. // .toolChoose[toolIndex].uploadJson
  7521. // ) {
  7522. // this.uploadJson = JSON.parse(
  7523. // JSON.stringify(
  7524. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7525. // itemTaskIndex
  7526. // ].toolChoose[toolIndex].uploadJson
  7527. // )
  7528. // );
  7529. // } else {
  7530. // var uploadJson = [];
  7531. // this.uploadJson = uploadJson;
  7532. // }
  7533. // this.dialogVisibleMoreUpload = true;
  7534. // }
  7535. } else if (i == 10) {
  7536. if (
  7537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7538. .toolChoose[toolIndex].preTime
  7539. ) {
  7540. this.preTime = JSON.parse(
  7541. JSON.stringify(
  7542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7543. itemTaskIndex
  7544. ].toolChoose[toolIndex].preTime
  7545. )
  7546. );
  7547. } else {
  7548. var preTime = 0;
  7549. this.preTime = preTime;
  7550. }
  7551. this.dialogVisiblePreTime = true;
  7552. } else if (i == 49) {
  7553. if (
  7554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7555. .toolChoose[toolIndex].groupJson
  7556. ) {
  7557. this.groupJson = JSON.parse(
  7558. JSON.stringify(
  7559. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7560. itemTaskIndex
  7561. ].toolChoose[toolIndex].groupJson
  7562. )
  7563. );
  7564. } else {
  7565. var groupJson = {
  7566. group: [{ name: "第1组" }],
  7567. number: undefined,
  7568. islock: 1,
  7569. };
  7570. this.groupJson = groupJson;
  7571. }
  7572. this.dialogVisibleGroup = true;
  7573. } else if (i == 62) {
  7574. if (
  7575. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7576. .toolChoose[toolIndex].videoJson
  7577. ) {
  7578. this.videoJson = JSON.parse(
  7579. JSON.stringify(
  7580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7581. itemTaskIndex
  7582. ].toolChoose[toolIndex].videoJson
  7583. )
  7584. );
  7585. } else {
  7586. var videoJson = {
  7587. video: "",
  7588. setting: [],
  7589. };
  7590. this.videoJson = videoJson;
  7591. }
  7592. this.dialogVisibleVideo = true;
  7593. } else if (i == 15) {
  7594. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7595. itemTaskIndex
  7596. ].toolChoose[toolIndex].answerQ
  7597. ? JSON.parse(
  7598. JSON.stringify(
  7599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7600. itemTaskIndex
  7601. ].toolChoose[toolIndex].answerQ
  7602. )
  7603. )
  7604. : "";
  7605. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  7606. this.dialogVisible8 = true;
  7607. } else if (i == 40) {
  7608. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7609. itemTaskIndex
  7610. ].toolChoose[toolIndex].rateJson
  7611. ? JSON.parse(
  7612. JSON.stringify(
  7613. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7614. itemTaskIndex
  7615. ].toolChoose[toolIndex].rateJson
  7616. )
  7617. )
  7618. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7619. this.selectSteps = 1;
  7620. this.dialogVisibleRate = true;
  7621. } else if (i == 42) {
  7622. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7623. itemTaskIndex
  7624. ].toolChoose[toolIndex].answerQ
  7625. ? JSON.parse(
  7626. JSON.stringify(
  7627. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7628. itemTaskIndex
  7629. ].toolChoose[toolIndex].answerQ
  7630. )
  7631. )
  7632. : "";
  7633. this.dialogVisibleMp3 = true;
  7634. } else if (i == 41) {
  7635. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7636. itemTaskIndex
  7637. ].toolChoose[toolIndex].selectJson
  7638. ? JSON.parse(
  7639. JSON.stringify(
  7640. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7641. itemTaskIndex
  7642. ].toolChoose[toolIndex].selectJson
  7643. )
  7644. )
  7645. : { url: "", select: [], answer: [] };
  7646. this.selectSteps = 1;
  7647. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  7648. this.dialogVisibleSelect = true;
  7649. } else if (i == 3) {
  7650. if (!this.cid) {
  7651. this.$message.error(
  7652. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7653. );
  7654. return;
  7655. }
  7656. top.postMessage(
  7657. {
  7658. tools: "3y",
  7659. cid: this.cid,
  7660. stage: this.unitIndex,
  7661. task: itemTaskIndex,
  7662. tool: toolIndex,
  7663. },
  7664. "*"
  7665. );
  7666. } else if (i == 1) {
  7667. if (!this.cid) {
  7668. this.$message.error(
  7669. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7670. );
  7671. return;
  7672. }
  7673. top.postMessage(
  7674. {
  7675. tools: "1y",
  7676. cid: this.cid,
  7677. stage: this.unitIndex,
  7678. task: itemTaskIndex,
  7679. tool: toolIndex,
  7680. },
  7681. "*"
  7682. );
  7683. } else if (i == 57) {
  7684. if (!this.cid) {
  7685. this.$message.error(
  7686. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  7687. );
  7688. return;
  7689. }
  7690. top.postMessage(
  7691. {
  7692. tools: "57y",
  7693. cid: this.cid,
  7694. stage: this.unitIndex,
  7695. task: itemTaskIndex,
  7696. tool: toolIndex,
  7697. },
  7698. "*"
  7699. );
  7700. }else if(i == 69){
  7701. this.englishList = {};
  7702. this.englishList = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7703. itemTaskIndex
  7704. ].toolChoose[toolIndex].englishList
  7705. ? JSON.parse(
  7706. JSON.stringify(
  7707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7708. itemTaskIndex
  7709. ].toolChoose[toolIndex].englishList
  7710. )
  7711. )
  7712. : { };
  7713. this.$forceUpdate();
  7714. this.englishDialogVisible = true;
  7715. }else if(i == 70){
  7716. this.englishVoiceJson = {};
  7717. this.englishVoiceJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7718. itemTaskIndex
  7719. ].toolChoose[toolIndex].englishVoiceJson
  7720. ? JSON.parse(
  7721. JSON.stringify(
  7722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7723. itemTaskIndex
  7724. ].toolChoose[toolIndex].englishVoiceJson
  7725. )
  7726. )
  7727. : {
  7728. title:'',
  7729. detail:'',
  7730. array:[]
  7731. };
  7732. this.$forceUpdate();
  7733. this.EnglishVoiceDialog = true;
  7734. }
  7735. },
  7736. setEnglishVoiceJson(val){
  7737. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex].englishVoiceJson = JSON.parse(JSON.stringify(val))
  7738. this.$forceUpdate();
  7739. if (
  7740. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7741. .toolChoose[this.toolIndex].tool != 70
  7742. ) {
  7743. this.addTools(70, this.taskCount, this.toolIndex);
  7744. }
  7745. },
  7746. chapAddTools(i) {
  7747. if (this.chapTools[0].tools.length == 0) {
  7748. this.chapTools[0].tools.push(i);
  7749. } else {
  7750. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7751. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7752. } else {
  7753. this.chapTools[0].tools.push(i);
  7754. }
  7755. }
  7756. this.$forceUpdate();
  7757. },
  7758. addChaptersDataTools() {
  7759. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7760. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7761. this.chapCount
  7762. ].chapterData.push({
  7763. name: this.chapTools[0].toolDetail,
  7764. url: this.chapTools[0].tools,
  7765. type: 7,
  7766. askJson: this.askJson,
  7767. });
  7768. } else {
  7769. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7770. this.chapCount
  7771. ].chapterData.push({
  7772. name: this.chapTools[0].toolDetail,
  7773. url: this.chapTools[0].tools,
  7774. type: 7,
  7775. });
  7776. }
  7777. this.imgChange1(null, null, 7, this.chapCount);
  7778. this.dialogVisible4 = false;
  7779. },
  7780. addTools(i, itemTaskIndex, toolIndex) {
  7781. // if (
  7782. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7783. // .toolChoose[toolIndex].tool.length == 0
  7784. // ) {
  7785. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7786. // itemTaskIndex
  7787. // ].toolChoose[toolIndex].tool.push(i);
  7788. // } else {
  7789. // if (
  7790. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7791. // itemTaskIndex
  7792. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7793. // ) {
  7794. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7795. // itemTaskIndex
  7796. // ].toolChoose[toolIndex].tool.splice(
  7797. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7798. // itemTaskIndex
  7799. // ].toolChoose[toolIndex].tool.indexOf(i),
  7800. // 1
  7801. // );
  7802. // } else {
  7803. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7804. // itemTaskIndex
  7805. // ].toolChoose[toolIndex].tool.push(i);
  7806. // }
  7807. // console.log(
  7808. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7809. // .toolChoose[toolIndex].tool
  7810. // );
  7811. // }
  7812. if (i == 4) {
  7813. if (
  7814. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7815. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7816. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7817. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7818. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7819. .toolChoose[toolIndex].askJson[0].checkList < 2
  7820. ) {
  7821. this.openTools(itemTaskIndex, 4, toolIndex);
  7822. // this.$message({
  7823. // message: "请填写完整问卷内容",
  7824. // type: "error",
  7825. // });
  7826. return;
  7827. }
  7828. }
  7829. if (i == 45) {
  7830. if (
  7831. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7832. .toolChoose[toolIndex].testJson ||
  7833. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7834. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7835. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7836. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7837. ) {
  7838. this.openTools(itemTaskIndex, 45, toolIndex);
  7839. // this.$message({
  7840. // message: "请填写完整问卷内容",
  7841. // type: "error",
  7842. // });
  7843. return;
  7844. }
  7845. }
  7846. if (i == 47) {
  7847. if (
  7848. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7849. .toolChoose[toolIndex].sentenceList ||
  7850. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7851. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7852. ) {
  7853. this.openTools(itemTaskIndex, 47, toolIndex);
  7854. return;
  7855. }
  7856. }
  7857. if(i == 69){
  7858. if (
  7859. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7860. .toolChoose[toolIndex].englishList
  7861. ) {
  7862. this.openTools(itemTaskIndex, 69, toolIndex);
  7863. return;
  7864. }
  7865. }
  7866. if(i == 70){
  7867. if (
  7868. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7869. .toolChoose[toolIndex].englishVoiceJson
  7870. ) {
  7871. this.openTools(itemTaskIndex, 70, toolIndex);
  7872. return;
  7873. }
  7874. }
  7875. // if (i == 48) {
  7876. // if (
  7877. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7878. // .toolChoose[toolIndex].tableJson
  7879. // ) {
  7880. // this.openTools(itemTaskIndex, 48, toolIndex);
  7881. // return;
  7882. // }
  7883. // }
  7884. // if (i == 50) {
  7885. // if (
  7886. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7887. // .toolChoose[toolIndex].uploadJson
  7888. // ) {
  7889. // this.openTools(itemTaskIndex, 50, toolIndex);
  7890. // return;
  7891. // }
  7892. // }
  7893. if (i == 49) {
  7894. if (
  7895. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7896. .toolChoose[toolIndex].groupJson
  7897. ) {
  7898. this.openTools(itemTaskIndex, 49, toolIndex);
  7899. return;
  7900. }
  7901. }
  7902. if (i == 62) {
  7903. if (
  7904. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7905. .toolChoose[toolIndex].videoJson
  7906. ) {
  7907. this.openTools(itemTaskIndex, 62, toolIndex);
  7908. return;
  7909. }
  7910. }
  7911. if (i == 15) {
  7912. if (
  7913. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7914. .toolChoose[toolIndex].answerQ ||
  7915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7916. .toolChoose[toolIndex].answerQ == ""
  7917. ) {
  7918. this.openTools(itemTaskIndex, 15, toolIndex);
  7919. // this.$message({
  7920. // message: "请填写问答内容",
  7921. // type: "error",
  7922. // });
  7923. return;
  7924. }
  7925. }
  7926. if (i == 40) {
  7927. if (
  7928. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7929. .toolChoose[toolIndex].rateJson ||
  7930. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7931. .toolChoose[toolIndex].rateJson.length
  7932. ) {
  7933. this.openTools(itemTaskIndex, 40, toolIndex);
  7934. return;
  7935. }
  7936. }
  7937. if (i == 41) {
  7938. if (
  7939. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7940. .toolChoose[toolIndex].selectJson ||
  7941. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7942. .toolChoose[toolIndex].selectJson.url == "" ||
  7943. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7944. .toolChoose[toolIndex].selectJson.select.length ||
  7945. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7946. .toolChoose[toolIndex].selectJson.answer.length
  7947. ) {
  7948. this.openTools(itemTaskIndex, 41, toolIndex);
  7949. return;
  7950. }
  7951. }
  7952. if (i == 42) {
  7953. if (
  7954. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7955. .toolChoose[toolIndex].answerQ ||
  7956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7957. .toolChoose[toolIndex].answerQ == ""
  7958. ) {
  7959. this.openTools(itemTaskIndex, 42, toolIndex);
  7960. return;
  7961. }
  7962. }
  7963. if (
  7964. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7965. .toolChoose[toolIndex].tool.length > 0
  7966. ) {
  7967. if (
  7968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7969. itemTaskIndex
  7970. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7971. ) {
  7972. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7973. itemTaskIndex
  7974. ].toolChoose[toolIndex].tool.splice(
  7975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7976. itemTaskIndex
  7977. ].toolChoose[toolIndex].tool.indexOf(i),
  7978. 1
  7979. );
  7980. } else {
  7981. // this.$message({
  7982. // message: "每个工具只能添加一个",
  7983. // type: "error",
  7984. // });
  7985. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7986. itemTaskIndex
  7987. ].toolChoose[toolIndex].tool = [];
  7988. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7989. itemTaskIndex
  7990. ].toolChoose[toolIndex].tool.push(i);
  7991. }
  7992. } else {
  7993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7994. itemTaskIndex
  7995. ].toolChoose[toolIndex].tool.push(i);
  7996. }
  7997. this.$forceUpdate();
  7998. },
  7999. addAskList(index) {
  8000. this.askJson.askJson.splice(index + 1, 0, {
  8001. askstitle: "",
  8002. askItem: 1,
  8003. checkList: [],
  8004. })
  8005. this.askJson.askCount++;
  8006. },
  8007. addTestList(index) {
  8008. this.testJson.testJson.splice(index + 1, 0, {
  8009. teststitle: "",
  8010. testItem: 1,
  8011. checkList: [],
  8012. timuList: [],
  8013. answer: [],
  8014. type: "1",
  8015. })
  8016. this.testJson.testCount++;
  8017. },
  8018. deleteAskList(index) {
  8019. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  8020. this.askJson.askJson.splice(index, 1);
  8021. this.askJson.askCount--;
  8022. } else {
  8023. let _this = this;
  8024. _this
  8025. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8026. confirmButtonText: "确定",
  8027. cancelButtonText: "取消",
  8028. type: "warning",
  8029. })
  8030. .then(() => {
  8031. _this.askJson.askJson.splice(index, 1);
  8032. _this.askJson.askCount--;
  8033. })
  8034. .catch(() => {
  8035. return;
  8036. });
  8037. }
  8038. },
  8039. deleteTestList(index) {
  8040. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  8041. this.testJson.testJson.splice(index, 1);
  8042. this.testJson.testCount--;
  8043. } else {
  8044. let _this = this;
  8045. _this
  8046. .$confirm("此操作不可撤销,是否继续?", "提示", {
  8047. confirmButtonText: "确定",
  8048. cancelButtonText: "取消",
  8049. type: "warning",
  8050. })
  8051. .then(() => {
  8052. _this.testJson.testJson.splice(index, 1);
  8053. _this.testJson.testCount--;
  8054. })
  8055. .catch(() => {
  8056. return;
  8057. });
  8058. }
  8059. },
  8060. askMove(type, index) {
  8061. if (type == 1) {
  8062. if (index > 0) {
  8063. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  8064. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8065. this.askJson.askJson[index - 1] = b;
  8066. this.askJson.askJson[index] = a;
  8067. }
  8068. } else {
  8069. if (
  8070. index < this.askJson.askJson.length - 1
  8071. ) {
  8072. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  8073. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  8074. this.askJson.askJson[index + 1] = b;
  8075. this.askJson.askJson[index] = a;
  8076. }
  8077. }
  8078. this.$forceUpdate();
  8079. },
  8080. checkMove(type, index, checkIndex) {
  8081. if (type == 1) {
  8082. if (checkIndex > 0) {
  8083. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  8084. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8085. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  8086. this.askJson.askJson[index].checkList[checkIndex] = a;
  8087. }
  8088. } else {
  8089. if (
  8090. checkIndex < this.askJson.askJson[index].checkList.length - 1
  8091. ) {
  8092. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  8093. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  8094. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  8095. this.askJson.askJson[index].checkList[checkIndex] = a;
  8096. }
  8097. }
  8098. this.$forceUpdate();
  8099. },
  8100. testMove(type, index) {
  8101. if (type == 1) {
  8102. if (index > 0) {
  8103. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  8104. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8105. this.testJson.testJson[index - 1] = b;
  8106. this.testJson.testJson[index] = a;
  8107. }
  8108. } else {
  8109. if (
  8110. index < this.testJson.testJson.length - 1
  8111. ) {
  8112. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  8113. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  8114. this.testJson.testJson[index + 1] = b;
  8115. this.testJson.testJson[index] = a;
  8116. }
  8117. }
  8118. this.$forceUpdate();
  8119. },
  8120. tcheckMove(type, index, checkIndex) {
  8121. if (type == 1) {
  8122. if (checkIndex > 0) {
  8123. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  8124. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8125. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  8126. this.testJson.testJson[index].checkList[checkIndex] = a;
  8127. }
  8128. } else {
  8129. if (
  8130. checkIndex < this.testJson.testJson[index].checkList.length - 1
  8131. ) {
  8132. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  8133. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  8134. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  8135. this.testJson.testJson[index].checkList[checkIndex] = a;
  8136. }
  8137. }
  8138. this.$forceUpdate();
  8139. },
  8140. addcheckList(json, index) {
  8141. // json.checkList.length++;
  8142. json.checkList.splice(index + 1, 0, '')
  8143. json.askItem++;
  8144. this.$forceUpdate();
  8145. },
  8146. deletecheckList(json, index) {
  8147. // json.checkList.length--;
  8148. json.checkList.splice(index, 1)
  8149. json.askItem--;
  8150. this.$forceUpdate();
  8151. },
  8152. addTcheckList(json, index) {
  8153. // json.checkList.length++;
  8154. json.checkList.splice(index + 1, 0, '')
  8155. json.testItem++;
  8156. this.$forceUpdate();
  8157. },
  8158. deleteTcheckList(json, index) {
  8159. // json.checkList.length--;
  8160. json.checkList.splice(index, 1)
  8161. json.testItem--;
  8162. this.$forceUpdate();
  8163. },
  8164. checkTestType(type, json) {
  8165. json.type = type;
  8166. setTimeout(() => {
  8167. json.answer = [];
  8168. }, 100)
  8169. this.$forceUpdate();
  8170. },
  8171. checkAskType(type, json) {
  8172. json.type = type;
  8173. // json.checkList = [];
  8174. this.$forceUpdate();
  8175. },
  8176. addSelectList(json) {
  8177. json.select.push("");
  8178. json.answer.push("");
  8179. },
  8180. deleteSelectList(json) {
  8181. // json.select.length--;
  8182. // json.answer.length--;
  8183. json.select.splice(json.select.length - 1, 1);
  8184. json.answer.splice(json.answer.length - 1, 1);
  8185. },
  8186. addAsk() {
  8187. if (this.askJson.askTitle === "") {
  8188. this.$message.error("标题不能为空!");
  8189. return;
  8190. }
  8191. var aj = this.askJson.askJson;
  8192. var b = 1;
  8193. for (var i = 0; i < aj.length; i++) {
  8194. if (aj[i].askstitle === "") {
  8195. var a = 1;
  8196. for (let index = 0; index < aj[i].askItem; index++) {
  8197. const element = aj[i].checkList[index]
  8198. ? aj[i].checkList[index]
  8199. : "";
  8200. if (element != "") {
  8201. b++;
  8202. this.$message.error(`请将题目${i + 1}填写完整。`);
  8203. return;
  8204. } else {
  8205. a++;
  8206. }
  8207. }
  8208. if (b == 1) {
  8209. this.$message.error("至少填写一个问题");
  8210. return;
  8211. }
  8212. } else if (aj[i].askstitle != "") {
  8213. for (let index = 0; index < aj[i].askItem; index++) {
  8214. const element = aj[i].checkList[index]
  8215. ? aj[i].checkList[index]
  8216. : "";
  8217. var index = 0;
  8218. for (var z = 0; z < aj[i].checkList.length; z++) {
  8219. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8220. if (checkC != "") {
  8221. index++;
  8222. } else {
  8223. this.$message.error(`题目${i + 1}选项不能为空!`);
  8224. return;
  8225. }
  8226. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8227. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8228. if (checkC == checkC2) {
  8229. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8230. return;
  8231. }
  8232. }
  8233. }
  8234. b++;
  8235. if (index < 2) {
  8236. this.$message.error("每道题目至少需要设置2个选项。");
  8237. return;
  8238. }
  8239. }
  8240. }
  8241. }
  8242. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  8243. var elc = el.checkList.filter((element) => {
  8244. return element != "";
  8245. });
  8246. return el.askstitle != "" && elc.length != 0;
  8247. });
  8248. if (!this.dialogVisible4) {
  8249. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8250. this.taskCount
  8251. ].toolChoose[this.toolIndex] = this.askJson;
  8252. }
  8253. this.dialogVisible5 = false;
  8254. if (
  8255. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8256. .toolChoose[this.toolIndex].tool != 4
  8257. ) {
  8258. this.addTools(4, this.taskCount, this.toolIndex);
  8259. }
  8260. },
  8261. addTest() {
  8262. // if (this.testJson.testTitle === "") {
  8263. // this.$message.error("标题不能为空!");
  8264. // return;
  8265. // }
  8266. var aj = this.testJson.testJson;
  8267. var b = 1;
  8268. for (var i = 0; i < aj.length; i++) {
  8269. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  8270. var a = 1;
  8271. for (let index = 0; index < aj[i].testItem; index++) {
  8272. const element = aj[i].checkList[index]
  8273. ? aj[i].checkList[index]
  8274. : "";
  8275. if (element != "") {
  8276. b++;
  8277. this.$message.error(`请将题目${i + 1}填写完整。`);
  8278. return;
  8279. } else {
  8280. a++;
  8281. }
  8282. }
  8283. if (b == 1) {
  8284. this.$message.error("至少填写一个问题");
  8285. return;
  8286. }
  8287. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  8288. for (let index = 0; index < aj[i].testItem; index++) {
  8289. const element = aj[i].checkList[index]
  8290. ? aj[i].checkList[index]
  8291. : "";
  8292. var index = 0;
  8293. for (var z = 0; z < aj[i].checkList.length; z++) {
  8294. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  8295. if (checkC != "") {
  8296. index++;
  8297. } else {
  8298. this.$message.error(`题目${i + 1}选项不能为空!`);
  8299. return;
  8300. }
  8301. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  8302. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  8303. if (checkC == checkC2) {
  8304. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8305. return;
  8306. }
  8307. }
  8308. }
  8309. b++;
  8310. if (index < 2) {
  8311. this.$message.error("每道题目至少需要设置2个选项。");
  8312. return;
  8313. }
  8314. if (
  8315. (aj[i].type == "2" && !aj[i].answer.length) ||
  8316. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  8317. ) {
  8318. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  8319. return;
  8320. }
  8321. }
  8322. }
  8323. }
  8324. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8325. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8326. var elc = el.checkList.filter((element) => {
  8327. return element != "";
  8328. });
  8329. return (
  8330. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8331. );
  8332. });
  8333. isTestJson.testCount = isTestJson.testJson.length;
  8334. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8335. this.taskCount
  8336. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8337. this.dialogVisibleChoice = false;
  8338. if (
  8339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8340. .toolChoose[this.toolIndex].tool != 45
  8341. ) {
  8342. this.addTools(45, this.taskCount, this.toolIndex);
  8343. }
  8344. },
  8345. addVideoJson(videoJson) {
  8346. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8347. this.taskCount
  8348. ].toolChoose[this.toolIndex].videoJson = videoJson;
  8349. this.dialogVisibleVideo = false;
  8350. if (
  8351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8352. .toolChoose[this.toolIndex].tool != 62
  8353. ) {
  8354. this.addTools(62, this.taskCount, this.toolIndex);
  8355. }
  8356. },
  8357. //自动获取剪贴板
  8358. pasteOption() {
  8359. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8360. if (!iframe) {
  8361. this.$message.error("请使用AI共创生成题目");
  8362. return;
  8363. }
  8364. let copyData = iframe.contentWindow.copyData;
  8365. if (!copyData || !copyData.selectData.length) {
  8366. this.$message.error("请使用AI共创生成题目");
  8367. return;
  8368. }
  8369. let selectData = copyData.selectData;
  8370. for (var i = 0; i < selectData.length; i++) {
  8371. let answer = 0;
  8372. switch (selectData[i].answer[0]) {
  8373. case "A":
  8374. answer = 0;
  8375. break;
  8376. case "B":
  8377. answer = 1;
  8378. break;
  8379. case "C":
  8380. answer = 2;
  8381. break;
  8382. case "D":
  8383. answer = 3;
  8384. break;
  8385. case "E":
  8386. answer = 4;
  8387. break;
  8388. default:
  8389. break;
  8390. }
  8391. this.testJson.testJson.push({
  8392. teststitle: selectData[i].subject,
  8393. testItem: selectData[i].options.length,
  8394. checkList: selectData[i].options,
  8395. timuList: [],
  8396. answer: answer,
  8397. type: "1",
  8398. });
  8399. this.testJson.testCount++;
  8400. }
  8401. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8402. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8403. var elc = el.checkList.filter((element) => {
  8404. return element != "";
  8405. });
  8406. return (
  8407. el.teststitle != "" || el.timuList.length > 0 || elc.length != 0
  8408. );
  8409. });
  8410. isTestJson.testCount = isTestJson.testJson.length;
  8411. if(!isTestJson.testCount){
  8412. return;
  8413. }
  8414. this.testJson = isTestJson;
  8415. this.$forceUpdate();
  8416. },
  8417. pasteTask() {
  8418. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8419. if (!iframe) {
  8420. this.$message.error("请使用AI共创生成");
  8421. return;
  8422. }
  8423. let copyData = iframe.contentWindow.copyData;
  8424. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  8425. this.$message.error("请使用AI共创生成");
  8426. return;
  8427. }
  8428. let stageTasksData = copyData.tasksData;
  8429. let taskA = [];
  8430. let tasks = stageTasksData;
  8431. for (var j = 0; j < tasks.length; j++) {
  8432. taskA.push({
  8433. task: tasks[j].taskName,
  8434. taskDetail: tasks[j].taskDecs,
  8435. chapterData: [],
  8436. toolText: "",
  8437. toolChoose: [
  8438. {
  8439. tool: [],
  8440. toolDetail: "",
  8441. toolType: 0,
  8442. askCount: 1,
  8443. askTitle: "",
  8444. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8445. },
  8446. ],
  8447. isShowTools: false,
  8448. askCount: 1,
  8449. isFold: 1,
  8450. askTitle: "",
  8451. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8452. checkJson: [{ checkCount: [], checkPerent: [] }],
  8453. homeworkList: [],
  8454. });
  8455. }
  8456. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  8457. this.$forceUpdate();
  8458. },
  8459. pasteStage(stageJson) {
  8460. let stageData = [];
  8461. if(stageJson){
  8462. stageData = stageJson
  8463. }else{
  8464. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  8465. if (!iframe) {
  8466. this.$message.error("请使用AI共创生成");
  8467. return;
  8468. }
  8469. let copyData = iframe.contentWindow.copyData;
  8470. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  8471. this.$message.error("请使用AI共创生成");
  8472. return;
  8473. }
  8474. stageData = copyData.stageData
  8475. }
  8476. let stage = [];
  8477. for (var i = 0; i < stageData.length; i++) {
  8478. stage.push({
  8479. dyName: stageData[i], //单元标题
  8480. chapterInfo: [
  8481. {
  8482. isread: false,
  8483. chapterid: this.guid(),
  8484. title: "",
  8485. courseName: "",
  8486. taskJson: [
  8487. {
  8488. task: "",
  8489. taskDetail: "",
  8490. chapterData: [],
  8491. toolText: "",
  8492. toolChoose: [
  8493. {
  8494. tool: [],
  8495. toolDetail: "",
  8496. toolType: 0,
  8497. askCount: 1,
  8498. askTitle: "",
  8499. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8500. },
  8501. ],
  8502. isShowTools: false,
  8503. askCount: 1,
  8504. isFold: 1,
  8505. askTitle: "",
  8506. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  8507. checkJson: [{ checkCount: [], checkPerent: [] }],
  8508. homeworkList: [],
  8509. },
  8510. ],
  8511. itemCount: 1,
  8512. fileList1: [],
  8513. video: [],
  8514. testData: [],
  8515. pData: [],
  8516. templateArray: [],
  8517. },
  8518. ],
  8519. });
  8520. }
  8521. let _this = this;
  8522. if(stageJson){
  8523. _this.unitIndex = 0;
  8524. _this.unitJson = stage;
  8525. _this.updateWork();
  8526. }else{
  8527. _this
  8528. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  8529. confirmButtonText: "确定",
  8530. cancelButtonText: "取消",
  8531. type: "warning",
  8532. })
  8533. .then(() => {
  8534. _this.unitIndex = 0;
  8535. _this.unitJson = stage;
  8536. _this.updateWork();
  8537. })
  8538. .catch(() => {
  8539. return;
  8540. });
  8541. }
  8542. },
  8543. addAnswer() {
  8544. if (this.answerQ == "") {
  8545. this.$message.error("请输入您想要问的问题");
  8546. return;
  8547. }
  8548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8549. this.taskCount
  8550. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8551. this.dialogVisible8 = false;
  8552. if (
  8553. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8554. .toolChoose[this.toolIndex].tool != 15
  8555. ) {
  8556. this.addTools(15, this.taskCount, this.toolIndex);
  8557. }
  8558. },
  8559. addMp3Answer() {
  8560. if (this.answerQ == "") {
  8561. this.$message.error("请输入您想要回答的问题");
  8562. return;
  8563. }
  8564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8565. this.taskCount
  8566. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8567. this.dialogVisibleMp3 = false;
  8568. },
  8569. addRateAnswer() {
  8570. var a = 1;
  8571. for (var i = 0; i < this.rateJson.length; i++) {
  8572. if (this.rateJson[i].value == "") {
  8573. a = 2;
  8574. break;
  8575. }
  8576. }
  8577. if (a == 2) {
  8578. this.$message.error("请把评价信息填写完整");
  8579. return;
  8580. }
  8581. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8582. this.taskCount
  8583. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8584. this.dialogVisibleRate = false;
  8585. if (
  8586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8587. .toolChoose[this.toolIndex].tool != 40
  8588. ) {
  8589. this.addTools(40, this.taskCount, this.toolIndex);
  8590. }
  8591. },
  8592. addSelectAnswer() {
  8593. if (this.selectJson.url == "") {
  8594. this.$message.error("请上传题目");
  8595. return;
  8596. }
  8597. if (!this.selectJson.select.length) {
  8598. this.$message.error("请添加选项");
  8599. return;
  8600. }
  8601. if (!this.selectJson.answer.length) {
  8602. this.$message.error("请设置答案");
  8603. return;
  8604. }
  8605. var a = 1;
  8606. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8607. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8608. a = 2;
  8609. }
  8610. }
  8611. if (a == 2) {
  8612. this.$message.error("请设置答案");
  8613. return;
  8614. }
  8615. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8616. this.taskCount
  8617. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8618. this.dialogVisibleSelect = false;
  8619. if (
  8620. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8621. .toolChoose[this.toolIndex].tool != 41
  8622. ) {
  8623. this.addTools(41, this.taskCount, this.toolIndex);
  8624. }
  8625. },
  8626. nextSelectSteps() {
  8627. if (this.selectJson.url == "") {
  8628. this.$message.error("请上传题目");
  8629. return;
  8630. }
  8631. if (!this.selectJson.select.length) {
  8632. this.$message.error("请添加选项");
  8633. return;
  8634. } else {
  8635. for (var z = 0; z < this.selectJson.select.length; z++) {
  8636. let checkC = this.selectJson.select[z];
  8637. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  8638. let checkC2 = this.selectJson.select[z2];
  8639. if (checkC == checkC2) {
  8640. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  8641. return;
  8642. }
  8643. }
  8644. }
  8645. }
  8646. var a = 1;
  8647. for (var i = 0; i < this.selectJson.select.length; i++) {
  8648. if (!this.selectJson.select[i]) {
  8649. a = 2;
  8650. }
  8651. }
  8652. if (a == 2) {
  8653. this.$message.error("添加的选项不能为空");
  8654. return;
  8655. }
  8656. this.selectSteps++;
  8657. },
  8658. selectCourseDetail() {
  8659. if (this.cid == "" || this.cid == undefined) {
  8660. if(this.oid == '4c686762-1d0a-11ed-8c78-005056b86db5'){
  8661. this.isTeacherSee = true;
  8662. }
  8663. console.log("这是新增课程");
  8664. this.selectAllType();
  8665. } else {
  8666. this.cidType = 1;
  8667. let params = {
  8668. cid: this.cid,
  8669. };
  8670. this.ajax
  8671. .get(this.$store.state.api + "select_course_detail", params)
  8672. .then((res) => {
  8673. this.loading = true;
  8674. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8675. for (var j = 0; j < this.unitJson.length; j++) {
  8676. for (
  8677. var k = 0;
  8678. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8679. k++
  8680. ) {
  8681. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8682. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8683. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8684. : [];
  8685. let _chapterData = [];
  8686. for (
  8687. var c = 0;
  8688. c <
  8689. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8690. .length;
  8691. c++
  8692. ) {
  8693. if (
  8694. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8695. ) {
  8696. _chapterData.push(
  8697. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8698. );
  8699. }
  8700. }
  8701. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8702. _chapterData;
  8703. }
  8704. }
  8705. this.$forceUpdate();
  8706. this.courseName = res.data[0][0].title;
  8707. this.courseText = res.data[0][0].brief;
  8708. this.evalua = res.data[0][0].evaId;
  8709. this.cover = JSON.parse(res.data[0][0].cover);
  8710. this.noneBtnImg = this.cover.length >= 1;
  8711. // this.checkboxList =
  8712. // res.data[0][0].course_student.length > 0
  8713. // ? JSON.parse(res.data[0][0].course_student)
  8714. // : [];
  8715. this.checkboxList2 = res.data[0][0].juri
  8716. ? res.data[0][0].juri.split(",")
  8717. : [];
  8718. this.inviteCode = [];
  8719. for (var i = 0; i < res.data[2].length; i++) {
  8720. this.inviteCode.push({
  8721. cid: res.data[2][i].classid,
  8722. ic: res.data[2][i].code,
  8723. });
  8724. }
  8725. this.checkboxList3 = res.data[0][0].course_teacher
  8726. ? res.data[0][0].course_teacher.split(",")
  8727. : [];
  8728. // this.isTeacherSee =
  8729. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8730. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8731. this.myWord = res.data[0][0].template;
  8732. this.templateC.id = "123";
  8733. this.courseUserid = res.data[0][0].userid;
  8734. // if(this.courseUserid == this.userid){
  8735. // this.InviteChange(this.checkboxList2)
  8736. // }
  8737. this.nbOrder = res.data[0][0].ordernumber;
  8738. this.courseTypeId = [];
  8739. for (var i = 0; i < res.data[1].length; i++) {
  8740. this.courseTypeId.push(res.data[1][i].typeid);
  8741. }
  8742. console.log(this.courseTypeId);
  8743. // if (this.timer) clearInterval(this.timer);
  8744. if (this.timer) clearTimeout(this.timer);
  8745. this.timer = null;
  8746. // this.timer = setInterval(() => {
  8747. // this.seleteCourseUpdate();
  8748. this.setMan();
  8749. this.selectAllType();
  8750. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  8751. // }, 5000);
  8752. this.$forceUpdate();
  8753. setTimeout(() => {
  8754. this.checkEva(this.evalua);
  8755. }, 0);
  8756. })
  8757. .catch((err) => {
  8758. console.error(err);
  8759. });
  8760. }
  8761. },
  8762. seleteCourseUpdate() {
  8763. let params = {
  8764. cid: this.cid,
  8765. };
  8766. this.ajax
  8767. .get(this.$store.state.api + "select_course_detail", params)
  8768. .then((res) => {
  8769. // console.log(this.unitJson);
  8770. let unitJson = JSON.parse(res.data[0][0].chapters);
  8771. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8772. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8773. let _unitJson = [];
  8774. let _chapAarry = [];
  8775. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8776. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8777. let index = 1;
  8778. let chapindex;
  8779. if (_unitJson2.length > unitJson.length) {
  8780. for (let c = 0; c < _unitJson2.length; c++) {
  8781. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8782. }
  8783. for (let j = 0; j < unitJson.length; j++) {
  8784. let count = 0;
  8785. for (let k = 0; k < _unitJson2.length; k++) {
  8786. if (
  8787. unitJson[j].chapterInfo[0].chapterid ==
  8788. _unitJson2[k].chapterInfo[0].chapterid
  8789. ) {
  8790. count++;
  8791. _chapAarry.splice(
  8792. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8793. 1
  8794. );
  8795. _unitJson.push(unitJson[j]);
  8796. break;
  8797. }
  8798. }
  8799. // if(count === 0){
  8800. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8801. // }
  8802. }
  8803. for (let k = 0; k < _unitJson2.length; k++) {
  8804. if (_unitJson2[k].isUpdate == 1) {
  8805. _chapAarry.splice(
  8806. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8807. 1
  8808. );
  8809. _unitJson.push(_unitJson2[k]);
  8810. }
  8811. }
  8812. console.log(_chapAarry);
  8813. for (let d = 0; d < _unitJson2.length; d++) {
  8814. if (
  8815. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8816. ) {
  8817. if (_unitIndex == d) {
  8818. index = 2;
  8819. }
  8820. chapindex = d;
  8821. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8822. }
  8823. }
  8824. } else {
  8825. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8826. }
  8827. for (let i = 0; i < unitJson.length; i++) {
  8828. if (
  8829. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8830. _unitJson[i].chapterInfo[0].chapterid !=
  8831. unitJson[i].chapterInfo[0].chapterid
  8832. ) {
  8833. if (i == _unitJson.length - 1) {
  8834. // this.unitIndex++
  8835. _unitIndex2++;
  8836. }
  8837. _unitJson.splice(i, 0, unitJson[i]);
  8838. } else if (i > _unitJson.length - 1) {
  8839. _unitJson.push(unitJson[i]);
  8840. } else if (
  8841. _unitJson[i].chapterInfo[0].chapterid ==
  8842. unitJson[i].chapterInfo[0].chapterid
  8843. ) {
  8844. _unitJson[i] = unitJson[i];
  8845. }
  8846. // if (i == _unitIndex) {
  8847. // continue;
  8848. // } else
  8849. }
  8850. if (_chapAarry.length && index != 2) {
  8851. if (chapindex < _unitIndex) {
  8852. this.isDelete = 2;
  8853. // this.unitIndex--;
  8854. _unitIndex2--;
  8855. } else if (
  8856. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8857. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8858. ) {
  8859. this.isDelete = 2;
  8860. for (let n = 0; n < _unitJson.length; n++) {
  8861. if (
  8862. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8863. _unitJson[n].chapterInfo[0].chapterid
  8864. ) {
  8865. // this.unitIndex = n;
  8866. _unitIndex2 = n;
  8867. _unitJson[n] = _unitJson2[_unitIndex];
  8868. break;
  8869. }
  8870. }
  8871. }
  8872. } else if (index != 2) {
  8873. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8874. _unitJson2[_unitIndex];
  8875. for (
  8876. var ci = 0;
  8877. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8878. ci++
  8879. ) {
  8880. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8881. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8882. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8883. .toolChoose
  8884. : [];
  8885. let _chapterData = [];
  8886. for (
  8887. var c = 0;
  8888. c <
  8889. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8890. .length;
  8891. c++
  8892. ) {
  8893. if (
  8894. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8895. .chapterData[c]
  8896. ) {
  8897. _chapterData.push(
  8898. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8899. .chapterData[c]
  8900. );
  8901. }
  8902. }
  8903. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8904. _chapterData;
  8905. }
  8906. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8907. }
  8908. if (index == 1) {
  8909. this.unitJson = _unitJson;
  8910. this.$forceUpdate();
  8911. setTimeout(() => {
  8912. if (this.unitIndex != _unitIndex2) {
  8913. this.isDelete = 2;
  8914. this.unitIndex = _unitIndex2;
  8915. }
  8916. }, 0);
  8917. this.timer = setTimeout(() => {
  8918. this.seleteCourseUpdate();
  8919. }, 1000);
  8920. } else if (index == 2) {
  8921. let _this = this;
  8922. _this
  8923. .$confirm(
  8924. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8925. "提示",
  8926. {
  8927. confirmButtonText: "需要",
  8928. cancelButtonText: "取消",
  8929. type: "warning",
  8930. }
  8931. )
  8932. .then(() => {
  8933. if (_this.time()) {
  8934. _this.restoreWork(
  8935. _chapAarry[0],
  8936. _unitJson,
  8937. chapindex,
  8938. _unitJson2,
  8939. _unitIndex2
  8940. );
  8941. }
  8942. })
  8943. .catch(() => {
  8944. _this.unitJson = _unitJson;
  8945. _this.$forceUpdate();
  8946. setTimeout(() => {
  8947. if (this.unitIndex != _unitIndex2) {
  8948. this.isDelete = 2;
  8949. this.unitIndex = _unitIndex2;
  8950. }
  8951. }, 0);
  8952. _this.timer = setTimeout(() => {
  8953. _this.seleteCourseUpdate();
  8954. }, 1000);
  8955. });
  8956. }
  8957. })
  8958. .catch((err) => {
  8959. console.error(err);
  8960. });
  8961. },
  8962. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8963. let params = [
  8964. {
  8965. cid: this.cid,
  8966. chapters: JSON.stringify(this.unitJson),
  8967. uid: this.userid,
  8968. chapid: chapid,
  8969. },
  8970. ];
  8971. this.ajax
  8972. .post(this.$store.state.api + "restoreWork", params)
  8973. .then((res) => {
  8974. this.$message({
  8975. message: "恢复成功",
  8976. type: "success",
  8977. });
  8978. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8979. this.unitJson = unitJson;
  8980. this.$forceUpdate();
  8981. setTimeout(() => {
  8982. if (this.unitIndex != unitIndex2) {
  8983. this.isDelete = 2;
  8984. this.unitIndex = unitIndex2;
  8985. }
  8986. }, 0);
  8987. this.timer = setTimeout(() => {
  8988. this.seleteCourseUpdate();
  8989. }, 1000);
  8990. })
  8991. .catch((err) => {
  8992. this.$message.error("网络不佳");
  8993. console.error(err);
  8994. });
  8995. },
  8996. getTypeName() {
  8997. console.log(this.courseTypeId);
  8998. this.$forceUpdate();
  8999. },
  9000. selectAllType() {
  9001. let params = {
  9002. org: this.org && this.org != "" ? this.org : "",
  9003. oid: this.oid && this.oid != "" ? this.oid : "",
  9004. };
  9005. this.ajax
  9006. .get(this.$store.state.api + "selectAllType", params)
  9007. .then((res) => {
  9008. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9009. res.data[0] = [...res.data[0], ...res.data[4]]
  9010. }
  9011. this.CourseType = res.data;
  9012. this.CourseType2 = [
  9013. { name: "智见课程", id: [] },
  9014. { name: "智行课程", id: [] },
  9015. { name: "智创课程", id: [] },
  9016. ];
  9017. for (var cti = 0; cti < res.data[0].length; cti++) {
  9018. if (
  9019. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  9020. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  9021. ) {
  9022. this.CourseType2[0].id.push(res.data[0][cti].id);
  9023. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  9024. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9025. this.CourseType2[1].id.push(res.data[0][cti].id);
  9026. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9027. this.CourseType2[2].id.push(res.data[0][cti].id);
  9028. }
  9029. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  9030. res.data[0][cti].name = "年级";
  9031. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  9032. res.data[0][cti].name = "学科";
  9033. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  9034. res.data[0][cti].name = "主题";
  9035. }
  9036. }
  9037. let _courseTypeId = [];
  9038. for (var i = 0; i < res.data[0].length; i++) {
  9039. if (!this.cid) {
  9040. this.courseTypeId[res.data[0][i].id] = [];
  9041. }
  9042. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  9043. // }
  9044. this.CourseTypeJson[res.data[0][i].id] = [];
  9045. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9046. if (res.data[0][i].name == "栏目") {
  9047. this.CourseType[0][i].name = "主题";
  9048. }
  9049. }
  9050. if (res.data[2].length == 0 && res.data[3].length == 0) {
  9051. for (var j = 0; j < res.data[1].length; j++) {
  9052. if (
  9053. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  9054. _courseTypeId.indexOf(res.data[1][j].id) == -1
  9055. ) {
  9056. _courseTypeId.push(res.data[1][j].id);
  9057. }
  9058. if (res.data[0][i].id == res.data[1][j].pid) {
  9059. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9060. }
  9061. }
  9062. } else {
  9063. if (res.data[2].length > 0) {
  9064. for (var j = 0; j < res.data[2].length; j++) {
  9065. if (
  9066. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  9067. _courseTypeId.indexOf(res.data[2][j].id) == -1
  9068. ) {
  9069. _courseTypeId.push(res.data[2][j].id);
  9070. }
  9071. if (res.data[0][i].id == res.data[2][j].pid) {
  9072. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  9073. }
  9074. }
  9075. }
  9076. if (res.data[3].length > 0) {
  9077. for (var j = 0; j < res.data[3].length; j++) {
  9078. if (
  9079. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  9080. _courseTypeId.indexOf(res.data[3][j].id) == -1
  9081. ) {
  9082. _courseTypeId.push(res.data[3][j].id);
  9083. }
  9084. if (res.data[0][i].id == res.data[3][j].pid) {
  9085. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  9086. }
  9087. }
  9088. }
  9089. }
  9090. }
  9091. this.courseTypeId = _courseTypeId;
  9092. })
  9093. .catch((err) => {
  9094. console.error(err);
  9095. });
  9096. },
  9097. selectType() {
  9098. this.ajax
  9099. .get(this.$store.state.api + "selectType")
  9100. .then((res) => {
  9101. this.CourseType = res.data;
  9102. for (var i = 0; i < res.data[0].length; i++) {
  9103. if (!this.cid) {
  9104. this.courseTypeId[res.data[0][i].id] = "";
  9105. }
  9106. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  9107. if (res.data[0][i].name == "栏目") {
  9108. this.CourseType[0][i].name = "主题";
  9109. }
  9110. }
  9111. for (var j = 0; j < res.data[1].length; j++) {
  9112. if (res.data[0][i].id == res.data[1][j].pid) {
  9113. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9114. this.CourseTypeJson[res.data[0][i].id] = [];
  9115. }
  9116. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  9117. }
  9118. }
  9119. }
  9120. this.selectTypeByOid();
  9121. this.selectTypeByOrg();
  9122. })
  9123. .catch((err) => {
  9124. console.error(err);
  9125. });
  9126. },
  9127. selectTypeByOid() {
  9128. let params = {
  9129. oid: this.oid,
  9130. };
  9131. this.ajax
  9132. .get(this.$store.state.api + "selectTypeByOid", params)
  9133. .then((res) => {
  9134. for (var i = 0; i < res.data[0].length; i++) {
  9135. for (var j = 0; j < res.data[1].length; j++) {
  9136. if (res.data[0][i].id == res.data[1][j].pid) {
  9137. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9138. this.CourseTypeJson[res.data[0][i].id] = [];
  9139. }
  9140. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9141. }
  9142. }
  9143. }
  9144. })
  9145. .catch((err) => {
  9146. console.error(err);
  9147. });
  9148. },
  9149. selectTypeByOrg() {
  9150. let params = {
  9151. oid: this.org,
  9152. };
  9153. this.ajax
  9154. .get(this.$store.state.api + "selectTypeByOrg", params)
  9155. .then((res) => {
  9156. for (var i = 0; i < res.data[0].length; i++) {
  9157. for (var j = 0; j < res.data[1].length; j++) {
  9158. if (res.data[0][i].id == res.data[1][j].pid) {
  9159. if (!this.CourseTypeJson[res.data[0][i].id]) {
  9160. this.CourseTypeJson[res.data[0][i].id] = [];
  9161. }
  9162. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  9163. }
  9164. }
  9165. }
  9166. this.$forceUpdate();
  9167. })
  9168. .catch((err) => {
  9169. console.error(err);
  9170. });
  9171. },
  9172. OtherMb(type) {
  9173. this.typeMode = type;
  9174. setTimeout(() => {
  9175. this.checkEva(this.checkId);
  9176. }, 0);
  9177. },
  9178. openMember() {
  9179. this.searchTN = "";
  9180. this.getTeacher();
  9181. this.dialogVisibleMember = true;
  9182. },
  9183. checkEva(id, type) {
  9184. this.dialogVisiblemb = false;
  9185. this.selectEva();
  9186. if (this.evalua != id && type == 2) {
  9187. this.$message.success("导入成功");
  9188. }
  9189. this.evalua = id;
  9190. this.checkId = id;
  9191. if (this.evalua != "") {
  9192. for (var i = 0; i < this.evaJuri.length; i++) {
  9193. if (this.evalua == this.evaJuri[i].id) {
  9194. this.eTitle = this.evaJuri[i].title;
  9195. this.eJson = JSON.parse(this.evaJuri[i].content);
  9196. }
  9197. }
  9198. this.data.data = [];
  9199. this.$forceUpdate();
  9200. setTimeout(() => {
  9201. this.setMindData();
  9202. }, 500);
  9203. }
  9204. },
  9205. deleteEva() {
  9206. let _this = this;
  9207. if (_this.evalua == "") {
  9208. this.$message.warning("内容已经清空了,请勿重复清空");
  9209. return;
  9210. }
  9211. _this
  9212. .$confirm("确定删除此目标吗?", "提示", {
  9213. confirmButtonText: "确定",
  9214. cancelButtonText: "取消",
  9215. type: "warning",
  9216. })
  9217. .then(() => {
  9218. _this.evalua = "";
  9219. _this.checkId = "";
  9220. _this.eTitle = "";
  9221. let _unitJson = _this.unitJson;
  9222. for (var i = 0; i < _unitJson.length; i++) {
  9223. let _task = _unitJson[i].chapterInfo[0].taskJson;
  9224. for (var j = 0; j < _task.length; j++) {
  9225. let _eList = _task[j].eList;
  9226. for (var k = 0; k < _eList.length; k++) {
  9227. delete _eList[k].target;
  9228. }
  9229. }
  9230. }
  9231. _this.$forceUpdate();
  9232. if (_this.cid) {
  9233. _this.updateWork();
  9234. }
  9235. })
  9236. .catch(() => {
  9237. return;
  9238. });
  9239. },
  9240. selectEva() {
  9241. let params = {
  9242. oid: this.oid,
  9243. };
  9244. this.ajax
  9245. .get(this.$store.state.api + "selectAllEvaluation", params)
  9246. .then((res) => {
  9247. this.evaJuri = res.data[0];
  9248. })
  9249. .catch((err) => {
  9250. console.error(err);
  9251. });
  9252. },
  9253. setMindData() {
  9254. let targetArray = [];
  9255. this.data.data = [];
  9256. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  9257. let _eJson = Object.keys(this.eJson);
  9258. let _e = this.eJson;
  9259. for (let i = 0; i < _eJson.length; i++) {
  9260. let element = _e[_eJson[i]];
  9261. this.data.data.push({
  9262. id: element.id,
  9263. parentid: "root",
  9264. topic: element.name,
  9265. });
  9266. // targetArray.push({
  9267. // id: element.id,
  9268. // parentid: "root",
  9269. // name: element.name,
  9270. // });
  9271. targetArray.push({
  9272. value: element.name,
  9273. label: element.name,
  9274. children: [],
  9275. });
  9276. let _eJsonc = Object.keys(element.child);
  9277. let _e2 = element.child;
  9278. for (let j = 0; j < _eJsonc.length; j++) {
  9279. let _ec = _e2[_eJsonc[j]];
  9280. this.data.data.push({
  9281. id: _ec.id,
  9282. parentid: element.id,
  9283. topic: _ec.name,
  9284. });
  9285. // targetArray.push({
  9286. // id: _ec.id,
  9287. // parentid: element.id,
  9288. // name: _ec.name,
  9289. // });
  9290. targetArray[i].children.push({
  9291. value: _ec.name,
  9292. label: _ec.name,
  9293. children: [],
  9294. });
  9295. let _eJsonz = Object.keys(_ec.child);
  9296. let _e3 = _ec.child;
  9297. for (let z = 0; z < _eJsonz.length; z++) {
  9298. let _ez = _e3[_eJsonz[z]];
  9299. this.data.data.push({
  9300. id: _ez.id,
  9301. parentid: _ec.id,
  9302. topic: _ez.name,
  9303. });
  9304. // targetArray.push({
  9305. // id: _ez.id,
  9306. // parentid: _ec.id,
  9307. // name: _ez.name,
  9308. // });
  9309. targetArray[i].children[j].children.push({
  9310. value: _ez.name,
  9311. label: _ez.name,
  9312. });
  9313. }
  9314. }
  9315. }
  9316. this.targetArray = targetArray;
  9317. this.$forceUpdate();
  9318. },
  9319. /*添加评价 */
  9320. addEList(index, tIndex) {
  9321. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  9322. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  9323. value: "",
  9324. detail: "",
  9325. score: 5,
  9326. })
  9327. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  9328. { value: "", detail: "", score: 5 },
  9329. ]);
  9330. this.$forceUpdate();
  9331. },
  9332. forceUpdate() {
  9333. this.$forceUpdate();
  9334. },
  9335. deletEList(index, tIndex, eIndex) {
  9336. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  9337. eIndex,
  9338. 1
  9339. );
  9340. this.$forceUpdate();
  9341. },
  9342. getChoosePic(t) {
  9343. this.chooseType = t;
  9344. this.getAllBanner();
  9345. },
  9346. getAllBanner() {
  9347. this.sysPicVisible = true;
  9348. let params = {
  9349. t: this.chooseType,
  9350. };
  9351. this.ajax
  9352. .get(this.$store.state.api + "selectAllBanner", params)
  9353. .then((res) => {
  9354. this.sysPic = res.data[0];
  9355. })
  9356. .catch((err) => {
  9357. console.error(err);
  9358. });
  9359. },
  9360. // getClass() {
  9361. // let params = {
  9362. // oid: this.oid,
  9363. // };
  9364. // this.ajax
  9365. // .get(this.$store.state.api + "selectClassBySchool", params)
  9366. // .then((res) => {
  9367. // this.classJuri = res.data[0];
  9368. // })
  9369. // .catch((err) => {
  9370. // console.error(err);
  9371. // });
  9372. // },
  9373. deleteSysPic() {
  9374. this.cover = [];
  9375. this.isSysPic = false;
  9376. this.isSysPic2 = false;
  9377. },
  9378. deleteSelectPic() {
  9379. this.selectJson.url = "";
  9380. },
  9381. setEListStar() {
  9382. this.$forceUpdate();
  9383. },
  9384. deletRateList(i) {
  9385. this.rateJson.splice(i, 1);
  9386. },
  9387. addRateList() {
  9388. this.rateJson.push({ detail: "", score: 5, value: "" });
  9389. },
  9390. addSt() {
  9391. this.sentenceList.push({
  9392. sentenceTitle: "",
  9393. addSentence: [],
  9394. rightAnswer: [],
  9395. });
  9396. },
  9397. addSen(i) {
  9398. if (!this.sentenceList[i].sentenceTitle) {
  9399. this.$message.error("请填写卡片内容!");
  9400. return;
  9401. }
  9402. if (this.sentenceList[i].sentenceTitle.length > 10) {
  9403. this.$message.error("卡片内容字数不能超过10位");
  9404. return;
  9405. }
  9406. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  9407. this.$message.error("不能添加重复的卡片内容!");
  9408. return;
  9409. }
  9410. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  9411. // this.isPushTitleList.push(this.sentenceTitle);
  9412. this.sentenceList[i].sentenceTitle = "";
  9413. },
  9414. setRightAnswer(s, i, j) {
  9415. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  9416. this.sentenceList[i].rightAnswer.push(s);
  9417. }
  9418. },
  9419. returnCard(r, i, j) {
  9420. this.sentenceList[i].rightAnswer.splice(j, 1);
  9421. },
  9422. addSentenceTool() {
  9423. for (var i = 0; i < this.sentenceList.length; i++) {
  9424. if (this.sentenceList[i].rightAnswer.length == 0) {
  9425. this.$message.error(`请将题目${i + 1}设置完整。`);
  9426. return;
  9427. }
  9428. if (
  9429. this.sentenceList[i].addSentence.length !=
  9430. this.sentenceList[i].rightAnswer.length
  9431. ) {
  9432. this.$message.error(`请将题目${i + 1}设置完整。`);
  9433. return;
  9434. }
  9435. }
  9436. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9437. this.taskCount
  9438. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  9439. this.sentenceList = [
  9440. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  9441. ];
  9442. this.dialogVisibleSentence = false;
  9443. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9444. // itemTaskIndex
  9445. // ].toolChoose[toolIndex].tool = [];
  9446. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9447. // itemTaskIndex
  9448. // ].toolChoose[toolIndex].tool.push(i);
  9449. if (
  9450. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9451. .toolChoose[this.toolIndex].tool != 47
  9452. ) {
  9453. this.addTools(47, this.taskCount, this.toolIndex);
  9454. }
  9455. },
  9456. addTableJson() {
  9457. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  9458. // this.$message.error("请将信息填写完整!");
  9459. // return;
  9460. // }
  9461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9462. this.taskCount
  9463. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  9464. // this.tableJson = [{ text: "" }];
  9465. // this.dialogVisibleTable = false;
  9466. this.$message.success("上传成功");
  9467. if (
  9468. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9469. .toolChoose[this.toolIndex].tool != 48
  9470. ) {
  9471. this.addTools(48, this.taskCount, this.toolIndex);
  9472. }
  9473. },
  9474. addWordJson() {
  9475. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9476. this.taskCount
  9477. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  9478. // this.wordJson = [{ text: "" }];
  9479. // this.dialogVisibleWord = false;
  9480. this.$message.success("上传成功");
  9481. if (
  9482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9483. .toolChoose[this.toolIndex].tool != 52
  9484. ) {
  9485. this.addTools(52, this.taskCount, this.toolIndex);
  9486. }
  9487. },
  9488. addMoreUpload() {
  9489. if (this.uploadJson.length == 0) {
  9490. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9491. this.taskCount
  9492. ].toolChoose[this.toolIndex].uploadJson = [];
  9493. } else {
  9494. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9495. this.taskCount
  9496. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  9497. }
  9498. this.uploadJson = [];
  9499. this.dialogVisibleMoreUpload = false;
  9500. if (
  9501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9502. .toolChoose[this.toolIndex].tool != 50
  9503. ) {
  9504. this.addTools(50, this.taskCount, this.toolIndex);
  9505. }
  9506. },
  9507. addPreTime() {
  9508. if (this.preTime == 0) {
  9509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9510. this.taskCount
  9511. ].toolChoose[this.toolIndex].preTime = 0;
  9512. } else {
  9513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9514. this.taskCount
  9515. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9516. }
  9517. this.preTime = 0;
  9518. this.dialogVisiblePreTime = false;
  9519. if (
  9520. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9521. .toolChoose[this.toolIndex].tool != 10
  9522. ) {
  9523. this.addTools(10, this.taskCount, this.toolIndex);
  9524. }
  9525. },
  9526. goToTask(i) {
  9527. this.toolIndexType = ''
  9528. if (this.isClickColor == (i + 1)) {
  9529. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9530. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9531. // } else {
  9532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9533. // }
  9534. this.$forceUpdate();
  9535. return;
  9536. }
  9537. // if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9538. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9539. // } else {
  9540. document.querySelectorAll(".rightBox")[0].scrollTop =
  9541. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  9542. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  9543. this.isClickColor = i + 1;
  9544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9545. // }
  9546. this.$forceUpdate();
  9547. },
  9548. taskOpen(i){
  9549. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  9550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  9551. } else {
  9552. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  9553. }
  9554. this.$forceUpdate();
  9555. },
  9556. taskMove(type, index) {
  9557. // this
  9558. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  9559. // confirmButtonText: "确定",
  9560. // cancelButtonText: "取消",
  9561. // type: "warning",
  9562. // })
  9563. // .then(() => {
  9564. if (type == 1) {
  9565. if (index > 0) {
  9566. let a = JSON.parse(
  9567. JSON.stringify(
  9568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9569. )
  9570. );
  9571. let b = JSON.parse(
  9572. JSON.stringify(
  9573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9574. )
  9575. );
  9576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9577. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9578. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9579. if (index - 1 == 0) {
  9580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9581. index - 1
  9582. ].chapterData = a.chapterData;
  9583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9584. index
  9585. ].chapterData = b.chapterData;
  9586. }
  9587. }
  9588. } else {
  9589. if (
  9590. index <
  9591. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9592. ) {
  9593. let a = JSON.parse(
  9594. JSON.stringify(
  9595. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9596. )
  9597. );
  9598. let b = JSON.parse(
  9599. JSON.stringify(
  9600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  9601. )
  9602. );
  9603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9604. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9605. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9606. if (index == 0) {
  9607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9608. index + 1
  9609. ].chapterData = a.chapterData;
  9610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9611. index
  9612. ].chapterData = b.chapterData;
  9613. }
  9614. }
  9615. }
  9616. this.$forceUpdate();
  9617. // })
  9618. // .catch(() => {
  9619. // return;
  9620. // })
  9621. },
  9622. addGroup(i) {
  9623. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9624. this.groupJson.group.push({
  9625. name: "第" + (this.groupJson.group.length + 1) + "组",
  9626. });
  9627. },
  9628. deleteGroup(i) {
  9629. this.groupJson.group.splice(i, 1);
  9630. },
  9631. numberPan() {
  9632. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  9633. this.$message.error('请输入2-10的数字')
  9634. this.groupJson.number = ''
  9635. }
  9636. },
  9637. addGroupJson() {
  9638. for (var i = 0; i < this.groupJson.group.length; i++) {
  9639. if (!this.groupJson.group[i].name) {
  9640. this.$message.error("请将信息填写完整!");
  9641. return;
  9642. }
  9643. }
  9644. if (!this.groupJson.number) {
  9645. this.$message.error("请将信息填写完整!");
  9646. return;
  9647. }
  9648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9649. this.taskCount
  9650. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9651. JSON.stringify(this.groupJson)
  9652. );
  9653. this.dialogVisibleGroup = false;
  9654. this.groupJson = {};
  9655. if (
  9656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9657. .toolChoose[this.toolIndex].tool != 49
  9658. ) {
  9659. this.addTools(49, this.taskCount, this.toolIndex);
  9660. }
  9661. },
  9662. updateTime(preTime) {
  9663. this.preTime = preTime;
  9664. },
  9665. InviteChange(val) {
  9666. console.log(val);
  9667. let _check = []
  9668. let _check2 = []
  9669. for (var i = 0; i < this.grade2.length; i++) {
  9670. var gid = this.grade2[i].id
  9671. _check.push(gid)
  9672. }
  9673. for (var i = 0; i < this.checkboxList2.length; i++) {
  9674. var _id = this.checkboxList2[i]
  9675. if (_check.indexOf(_id) !== -1) {
  9676. _check2.push(_id)
  9677. }
  9678. }
  9679. this.checkAll = _check2.length === _check.length;
  9680. return;
  9681. let array = JSON.parse(JSON.stringify(val));
  9682. this.inviteCode = this.inviteCode.filter((el) => {
  9683. if (val.indexOf(el.cid) != -1) {
  9684. array.splice(array.indexOf(el.cid), 1);
  9685. return el;
  9686. }
  9687. });
  9688. for (var i = 0; i < array.length; i++) {
  9689. this.getInviteCode(array[i]);
  9690. }
  9691. },
  9692. handleCheckAllChange(val) {
  9693. if (val) {
  9694. for (var i = 0; i < this.grade2.length; i++) {
  9695. var gid = this.grade2[i].id
  9696. if (this.checkboxList2.indexOf(gid) === -1) {
  9697. this.checkboxList2.push(gid)
  9698. }
  9699. }
  9700. } else {
  9701. let _check = []
  9702. let _check2 = []
  9703. for (var i = 0; i < this.grade2.length; i++) {
  9704. var gid = this.grade2[i].id
  9705. _check.push(gid)
  9706. }
  9707. for (var i = 0; i < this.checkboxList2.length; i++) {
  9708. var _id = this.checkboxList2[i]
  9709. if (_check.indexOf(_id) === -1) {
  9710. _check2.push(_id)
  9711. }
  9712. }
  9713. this.checkboxList2 = _check2
  9714. }
  9715. this.isIndeterminate = false;
  9716. },
  9717. async getInviteCode(cid) {
  9718. let code = this.randomNumber();
  9719. let params = {
  9720. code: code,
  9721. oid: this.oid,
  9722. };
  9723. let type = 1;
  9724. for (var i = 0; i < this.inviteCode.length; i++) {
  9725. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9726. type = 2;
  9727. }
  9728. }
  9729. if (type == 2) {
  9730. this.getInviteCode(cid);
  9731. return;
  9732. }
  9733. const res = await this.ajax.get(
  9734. this.$store.state.api + "selectInviteCode2",
  9735. params
  9736. );
  9737. if (
  9738. res.data.length &&
  9739. res.data[0].length &&
  9740. res.data[0][0].courseId != this.cid
  9741. ) {
  9742. this.getInviteCode(cid);
  9743. return;
  9744. }
  9745. let array = [];
  9746. for (var i = 0; i < this.inviteCode.length; i++) {
  9747. array.push(this.inviteCode[i].cid);
  9748. }
  9749. if (array.indexOf(cid) != -1) {
  9750. this.inviteCode[array.indexOf(cid)].ic = code;
  9751. } else {
  9752. this.inviteCode.push({ cid: cid, ic: code });
  9753. }
  9754. },
  9755. OpenInviteD(cid) {
  9756. let array = [];
  9757. this.icode = "";
  9758. for (var i = 0; i < this.inviteCode.length; i++) {
  9759. array.push(this.inviteCode[i].cid);
  9760. }
  9761. if (array.indexOf(cid) != -1) {
  9762. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9763. }
  9764. this.inviteId = cid;
  9765. this.dialogVisibleInvite = true;
  9766. },
  9767. addInvite() {
  9768. let reg = /^[A-Za-z0-9]{4,}$/;
  9769. if (!reg.test(this.icode)) {
  9770. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9771. return;
  9772. }
  9773. let type = 1;
  9774. for (var i = 0; i < this.inviteCode.length; i++) {
  9775. if (
  9776. this.inviteCode[i].cid != this.inviteId &&
  9777. this.icode == this.inviteCode[i].ic
  9778. ) {
  9779. type = 2;
  9780. }
  9781. }
  9782. if (type == 2) {
  9783. this.$message.error("已有此随机码,不能重复");
  9784. return;
  9785. }
  9786. let params = {
  9787. code: this.icode,
  9788. oid: this.oid,
  9789. };
  9790. this.ajax
  9791. .get(this.$store.state.api + "selectInviteCode", params)
  9792. .then((res) => {
  9793. if (
  9794. res.data.length &&
  9795. res.data[0].length &&
  9796. res.data[0][0].courseId != this.cid
  9797. ) {
  9798. this.$message.error("已有此随机码,不能重复");
  9799. return;
  9800. }
  9801. let array = [];
  9802. for (var i = 0; i < this.inviteCode.length; i++) {
  9803. array.push(this.inviteCode[i].cid);
  9804. }
  9805. if (array.indexOf(this.inviteId) != -1) {
  9806. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9807. } else {
  9808. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9809. }
  9810. this.icode = "";
  9811. this.dialogVisibleInvite = false;
  9812. })
  9813. .catch((err) => {
  9814. console.error(err);
  9815. });
  9816. },
  9817. randomNumber() {
  9818. // 随机生成两位数
  9819. // let num = Math.floor(Math.random() * 900) + 100;
  9820. // 生成 0 到 99 之间的随机整数
  9821. const randomNumber = Math.floor(Math.random() * 100);
  9822. // 如果随机数小于 10,补上前导零
  9823. const num =
  9824. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9825. // 随机生成两个大写字母
  9826. let letters = "";
  9827. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9828. for (let i = 0; i < 3; i++) {
  9829. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9830. }
  9831. // 随机生成两位数字和字母的组合
  9832. let mix = "";
  9833. let chars =
  9834. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9835. for (let i = 0; i < 3; i++) {
  9836. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9837. mix += char;
  9838. }
  9839. // 随机选择一种类型
  9840. let type = Math.floor(Math.random() * 3);
  9841. return num;
  9842. // 根据类型输出结果
  9843. switch (type) {
  9844. case 0:
  9845. console.log(num); // 输出两位数
  9846. return num;
  9847. case 1:
  9848. console.log(letters); // 输出两个大写字母
  9849. return letters;
  9850. case 2:
  9851. console.log(mix); // 输出两位数字和字母的组合
  9852. return mix;
  9853. }
  9854. },
  9855. getPaste() {
  9856. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  9857. if (!iframe) {
  9858. return;
  9859. }
  9860. let copyData = iframe.contentWindow.copyData;
  9861. // if (copyData && copyData.stageData && copyData.stageData.length) {
  9862. // this.isPasteStage = true
  9863. // }
  9864. if (copyData && copyData.selectData.length) {
  9865. this.isPasteChoice = true
  9866. }
  9867. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  9868. this.isPasteTask = true
  9869. }
  9870. },
  9871. searchImage() {
  9872. var _this = this;
  9873. _this.imageList = []
  9874. if (!_this.searchImageValue) {
  9875. _this.sysPicVisible2 = true
  9876. return
  9877. }
  9878. _this.imageloading = true
  9879. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  9880. page: _this.ppage,
  9881. pagesize: 9,
  9882. query: _this.searchImageValue
  9883. }).then(function (response) {
  9884. // console.log(response.data.data);
  9885. var data = response.data.FunctionResponse.result;
  9886. for (var i = 0; i < data.length; i++) {
  9887. _this.imageList.push({ url: data[i].thumbnail })
  9888. }
  9889. _this.imageloading = false
  9890. }).catch(function (error) {
  9891. console.log(error);
  9892. });
  9893. _this.sysPicVisible2 = true
  9894. },
  9895. changePicture() {
  9896. this.ppage++
  9897. this.searchImage()
  9898. },
  9899. resetImage() {
  9900. this.ppage = 1
  9901. this.searchImage()
  9902. },
  9903. jumpGj(i, j) {
  9904. if ((i + 1) != this.isClickColor) {
  9905. this.isClickColor = (i + 1)
  9906. }
  9907. var a = document.scrollingElement;
  9908. this.toolIndexType = `gj${i}${j}`
  9909. let target = document.querySelector(`#gj${i}${j}`);
  9910. if (target) {
  9911. target.scrollIntoView(true);
  9912. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = false
  9913. // setTimeout(() => {
  9914. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  9915. // }, 0);
  9916. }
  9917. },
  9918. dragStart(val, i, j) {
  9919. this.taskCount = j
  9920. this.oldIndex = i;
  9921. this.oldData = val;
  9922. },
  9923. dragOver(i, j) {
  9924. this.typeIndex = "chapter-" + j + '-' + i
  9925. this.newIndex = i;
  9926. },
  9927. dragEnd() {
  9928. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData];
  9929. // 删除老的节点
  9930. newItems.splice(this.oldIndex, 1);
  9931. // 在列表中目标位置增加新的节点
  9932. newItems.splice(this.newIndex, 0, this.oldData);
  9933. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData = [...newItems];
  9934. this.newIndex = "";
  9935. this.typeIndex = "";
  9936. this.isdrag = "";
  9937. this.$forceUpdate()
  9938. },
  9939. dragTaskStart(val, i) {
  9940. this.oldIndex = i;
  9941. this.oldData = val;
  9942. },
  9943. dragTaskOver(i) {
  9944. this.typeIndex = "task-" + i
  9945. this.newIndex = i;
  9946. },
  9947. async dragTaskEnd() {
  9948. if (this.newIndex == this.oldIndex) {
  9949. this.typeIndex = "";
  9950. this.newIndex = "";
  9951. this.isdrag = "";
  9952. return;
  9953. }
  9954. let count1 = await this.getWorksCount(2, 0, this.newIndex, 0)
  9955. let count2 = await this.getWorksCount(2, 0, this.oldIndex, 0)
  9956. if(count1 > 0 || count2 > 0){
  9957. this.$confirm(
  9958. "切换任务顺序将删除所有工具的提交成果,是否继续此操作?",
  9959. "提示",
  9960. {
  9961. confirmButtonText: "确定",
  9962. cancelButtonText: "取消",
  9963. type: "warning",
  9964. }
  9965. )
  9966. .then(() => {
  9967. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9968. let chapterData = []
  9969. if (this.oldIndex == 0) {
  9970. chapterData = newItems[this.oldIndex].chapterData
  9971. newItems[this.oldIndex].chapterData = []
  9972. }else if(this.newIndex == 0){
  9973. chapterData = newItems[this.newIndex].chapterData
  9974. newItems[this.oldIndex].chapterData = []
  9975. }
  9976. // 删除老的节点
  9977. newItems.splice(this.oldIndex, 1);
  9978. // 在列表中目标位置增加新的节点
  9979. newItems.splice(this.newIndex, 0, this.oldData);
  9980. if (this.oldIndex == 0 || this.newIndex == 0) {
  9981. newItems[0].chapterData = chapterData
  9982. }
  9983. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  9984. this.typeIndex = "";
  9985. this.newIndex = "";
  9986. this.isdrag = "";
  9987. this.$forceUpdate()
  9988. })
  9989. .catch(() => {
  9990. this.typeIndex = "";
  9991. this.newIndex = "";
  9992. this.isdrag = "";
  9993. return;
  9994. });
  9995. }else{
  9996. let newItems = [...this.unitJson[this.unitIndex].chapterInfo[0].taskJson];
  9997. let chapterData = []
  9998. if (this.oldIndex == 0) {
  9999. chapterData = newItems[this.oldIndex].chapterData
  10000. newItems[this.oldIndex].chapterData = []
  10001. }else if(this.newIndex == 0){
  10002. chapterData = newItems[this.newIndex].chapterData
  10003. newItems[this.oldIndex].chapterData = []
  10004. }
  10005. // 删除老的节点
  10006. newItems.splice(this.oldIndex, 1);
  10007. // 在列表中目标位置增加新的节点
  10008. newItems.splice(this.newIndex, 0, this.oldData);
  10009. if (this.oldIndex == 0 || this.newIndex == 0) {
  10010. newItems[0].chapterData = chapterData
  10011. }
  10012. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = [...newItems];
  10013. this.typeIndex = "";
  10014. this.newIndex = "";
  10015. this.$forceUpdate()
  10016. }
  10017. },
  10018. getWorksCount(type, stage, task, tool){
  10019. return new Promise((resolve, reject) => {
  10020. let params = [
  10021. {
  10022. cid: this.cid,
  10023. stage: stage,
  10024. task: task,
  10025. tool: tool,
  10026. type: type
  10027. },
  10028. ];
  10029. this.ajax
  10030. .post(this.$store.state.api + "getCourseWorkCount", params)
  10031. .then((res) => {
  10032. let count = res.data[0][0].count
  10033. resolve(count)
  10034. })
  10035. .catch((err) => {
  10036. resolve(0)
  10037. this.$message.error("网络不佳");
  10038. console.error(err);
  10039. });
  10040. });
  10041. }
  10042. },
  10043. beforeDestroy() {
  10044. clearTimeout(this.timer);
  10045. this.timer = null;
  10046. clearInterval(this.timer2);
  10047. this.timer2 = null;
  10048. clearInterval(this.pasteTimer);
  10049. this.pasteTimer = null;
  10050. },
  10051. beforeRouteLeave(to, from, next) {
  10052. clearTimeout(this.timer);
  10053. this.timer = null;
  10054. clearInterval(this.timer2);
  10055. this.timer2 = null;
  10056. clearInterval(this.pasteTimer);
  10057. this.pasteTimer = null;
  10058. next();
  10059. },
  10060. created() {
  10061. this.getStudent();
  10062. this.getTeacher();
  10063. this.getClass();
  10064. this.selectGrage();
  10065. this.getTemplate();
  10066. // this.selectType();
  10067. this.selectEva();
  10068. this.loading = false;
  10069. this.timer2 = setInterval(() => {
  10070. this.selectEva();
  10071. }, 5000);
  10072. this.pasteTimer = setInterval(() => {
  10073. this.getPaste();
  10074. }, 1000);
  10075. setTimeout(() => {
  10076. this.selectCourseDetail();
  10077. }, 500);
  10078. },
  10079. mounted() {
  10080. this.$nextTick(() => {
  10081. //监听这个dom的scroll事件
  10082. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  10083. this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  10084. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  10085. this.$forceUpdate();
  10086. });
  10087. let _this = this
  10088. window.pasteStage = function(json){
  10089. _this.pasteStage(json)
  10090. }
  10091. },
  10092. };
  10093. </script>
  10094. <style scoped>
  10095. @media screen and (max-width: 1280px) {
  10096. .mbCss {
  10097. flex-direction: column !important;
  10098. }
  10099. .pjCss {
  10100. width: 100% !important;
  10101. }
  10102. .evaCss {
  10103. width: 100% !important;
  10104. }
  10105. }
  10106. .dialog_diy>>>.el-dialog__header {
  10107. background: #3c3c3c !important;
  10108. padding: 15px 20px;
  10109. }
  10110. .dialog_diy>>>.el-dialog__title {
  10111. color: #fff;
  10112. }
  10113. .dialog_diy>>>.el-dialog__headerbtn {
  10114. top: 19px;
  10115. }
  10116. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  10117. color: #fff;
  10118. }
  10119. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  10120. color: #fff;
  10121. }
  10122. .dialog_diy>>>.el-dialog__body,
  10123. .dialog_diy>>>.el-dialog__footer {
  10124. background: #fafafa;
  10125. }
  10126. .dialog_diy3>>>.el-dialog__body,
  10127. .dialog_diy3>>>.el-dialog__footer {
  10128. background: #eee !important;
  10129. }
  10130. .dialog_diy3>>>.el-dialog__body {
  10131. padding: 20px 20px;
  10132. }
  10133. .source_diy>>>.el-dialog {
  10134. height: 100% !important;
  10135. margin: 0 auto !important;
  10136. }
  10137. .source_diy>>>.el-dialog__body {
  10138. height: calc(100% - 185px);
  10139. overflow: auto;
  10140. background: #e6eaf0;
  10141. }
  10142. .source_diy>>>.el-dialog__footer {
  10143. background: #e6eaf0 !important;
  10144. }
  10145. .left {
  10146. border-right: 1px solid rgb(60, 94, 143);
  10147. display: flex;
  10148. flex-direction: column;
  10149. align-items: center;
  10150. min-height: 600px;
  10151. width: 385px;
  10152. height: 80%;
  10153. }
  10154. .tips {
  10155. color: rgb(128, 128, 128);
  10156. font-size: 12px;
  10157. width: 270px;
  10158. margin: 40px;
  10159. }
  10160. .pb_content {
  10161. height: 100% !important;
  10162. /* margin: 0 20px 0 20px; */
  10163. }
  10164. .pb_content_body {
  10165. width: 100% !important;
  10166. height: 100%;
  10167. }
  10168. .info_solid {
  10169. width: 270px;
  10170. height: 30px;
  10171. border-left: 1px solid #bdbdbd;
  10172. margin: 10px 0px 10px 30px;
  10173. }
  10174. .info_steps {
  10175. width: 270px;
  10176. font-size: 0.875rem;
  10177. display: flex;
  10178. align-items: center;
  10179. }
  10180. .info_steps span:nth-child(1) {
  10181. width: 30px;
  10182. height: 30px;
  10183. background: rgba(0, 0, 0, 0.38);
  10184. display: block;
  10185. color: #fff;
  10186. border-radius: 40px;
  10187. text-align: center;
  10188. line-height: 30px;
  10189. }
  10190. .steps_active {
  10191. background: #3d67bc !important;
  10192. }
  10193. .info_steps span:nth-child(2) {
  10194. margin-left: 5px;
  10195. }
  10196. .right {
  10197. height: 100%;
  10198. width: calc(100% - 40px);
  10199. display: flex;
  10200. overflow: hidden;
  10201. margin: 0 auto;
  10202. }
  10203. .basic_box {
  10204. margin: 0 auto;
  10205. position: relative;
  10206. padding: 0 20px 0 20px;
  10207. }
  10208. .basic_box2 {
  10209. position: relative;
  10210. width: calc(100% - 300px);
  10211. }
  10212. .basic_box_success {
  10213. width: 100%;
  10214. height: 100%;
  10215. padding: 50px 0;
  10216. position: relative;
  10217. text-align: center;
  10218. /* border-bottom: 1px solid #bfbfbf; */
  10219. box-sizing: border-box;
  10220. display: flex;
  10221. align-items: center;
  10222. flex-direction: column;
  10223. justify-content: center;
  10224. }
  10225. .info_title {
  10226. font-size: 1.5em;
  10227. margin-right: 25px;
  10228. /* margin: 20px 30px 20px 30px; */
  10229. }
  10230. .bInfo_title {
  10231. text-align: left;
  10232. margin: 10px 0;
  10233. }
  10234. .small_title {
  10235. font-size: 14px;
  10236. line-height: 40px;
  10237. }
  10238. .chapter_beizhu {
  10239. font-size: 12px;
  10240. font-weight: bold;
  10241. float: right;
  10242. color: rgb(128, 128, 128);
  10243. margin-top: 5px;
  10244. }
  10245. .chapter_uploadBox1 {
  10246. text-align: left;
  10247. background-color: rgb(242, 242, 242);
  10248. width: 100%;
  10249. height: 67px;
  10250. padding: 0px 15px;
  10251. border-radius: 8px;
  10252. overflow: hidden;
  10253. font-size: 16px;
  10254. box-sizing: border-box;
  10255. position: relative;
  10256. }
  10257. .chapter_add {
  10258. width: 100%;
  10259. height: 32px;
  10260. margin-top: 15px;
  10261. cursor: pointer;
  10262. }
  10263. .chapter_add_l {
  10264. margin-left: 5px;
  10265. width: 30px;
  10266. height: 30px;
  10267. float: left;
  10268. border: 1px solid #aaa;
  10269. color: #aaa;
  10270. border-radius: 50%;
  10271. font-size: 25px;
  10272. text-align: center;
  10273. }
  10274. .chapter_add_r {
  10275. font-size: 18px;
  10276. height: 40px;
  10277. line-height: 30px;
  10278. text-indent: 10px;
  10279. color: #aaa;
  10280. }
  10281. .chapter_add_r span {
  10282. font-size: 12px;
  10283. color: rgb(204, 204, 204);
  10284. }
  10285. .chapter_add_input {
  10286. display: none;
  10287. }
  10288. .line {
  10289. width: 85%;
  10290. margin: 0 auto;
  10291. border-top: 1px solid #e5e5e5;
  10292. margin-top: 20px;
  10293. }
  10294. .info_btnBox {
  10295. width: calc(100%);
  10296. display: flex;
  10297. justify-content: center;
  10298. height: 70px;
  10299. align-items: center;
  10300. background: #fff;
  10301. margin: 0 auto;
  10302. border-top: 2px solid rgb(228, 232, 237);
  10303. box-sizing: border-box;
  10304. border-radius: 0px 0 5px 5px;
  10305. }
  10306. .info_btnBox2 {
  10307. width: calc(100%);
  10308. display: flex;
  10309. justify-content: center;
  10310. height: 20px;
  10311. align-items: center;
  10312. background: #fff;
  10313. margin: 0 auto;
  10314. border-top: 2px solid rgb(228, 232, 237);
  10315. box-sizing: border-box;
  10316. overflow: hidden;
  10317. cursor: pointer;
  10318. }
  10319. .info_btnBox3 {
  10320. width: calc(100%);
  10321. display: flex;
  10322. justify-content: flex-end;
  10323. padding: 0 20px;
  10324. height: 60px;
  10325. align-items: center;
  10326. background: unset;
  10327. margin: 0 auto;
  10328. /* border-top: 1px solid rgb(228, 232, 237); */
  10329. box-sizing: border-box;
  10330. overflow: hidden;
  10331. cursor: pointer;
  10332. background: #fff;
  10333. border-radius: 10px;
  10334. }
  10335. .info_btn+.info_btn {
  10336. margin-left: 15px;
  10337. }
  10338. .info_btn,
  10339. .teacherWord {
  10340. color: #fff;
  10341. background-color: #0f7eff;
  10342. padding: 8px 24px;
  10343. font-size: 0.9375rem;
  10344. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  10345. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  10346. min-width: 64px;
  10347. font-weight: 500;
  10348. border-radius: 4px;
  10349. box-sizing: border-box;
  10350. border: none;
  10351. cursor: pointer;
  10352. }
  10353. .teacherWord {
  10354. width: 105px !important;
  10355. text-align: center !important;
  10356. line-height: 36px !important;
  10357. padding: 0 !important;
  10358. font-size: 14px !important;
  10359. margin: 10px 0 !important;
  10360. }
  10361. .wordTeacher {
  10362. display: flex;
  10363. flex-direction: column;
  10364. width: 20%;
  10365. text-align: center;
  10366. font-size: 14px;
  10367. margin: 30px 30px 0 10px;
  10368. background: #fff;
  10369. position: relative;
  10370. border-radius: 5px;
  10371. padding: 25px 0px;
  10372. }
  10373. .wordPic {
  10374. margin: 0 auto;
  10375. width: 60px;
  10376. height: 60px;
  10377. cursor: pointer;
  10378. }
  10379. .deleteWord {
  10380. width: 22px;
  10381. height: 22px;
  10382. position: absolute;
  10383. right: 5px;
  10384. top: -15px;
  10385. cursor: pointer;
  10386. display: none;
  10387. z-index: 999;
  10388. }
  10389. .wordPic>img,
  10390. .deleteWord>img,
  10391. .addToolImg>img {
  10392. width: 100%;
  10393. height: 100%;
  10394. }
  10395. .info_btn:hover {
  10396. background-color: #4f7cd5 !important;
  10397. }
  10398. .cru_selectBox {
  10399. display: flex;
  10400. margin: 24px 0 10px;
  10401. flex-wrap: nowrap;
  10402. white-space: nowrap;
  10403. overflow: auto;
  10404. position: relative;
  10405. height: 47px;
  10406. }
  10407. .cru_selectBox::-webkit-scrollbar {
  10408. /*滚动条整体样式*/
  10409. width: 6px;
  10410. /*高宽分别对应横竖滚动条的尺寸*/
  10411. height: 6px;
  10412. }
  10413. /*定义滚动条轨道 内阴影+圆角*/
  10414. .cru_selectBox::-webkit-scrollbar-track {
  10415. border-radius: 10px;
  10416. background-color: #eee;
  10417. }
  10418. /*定义滑块 内阴影+圆角*/
  10419. .cru_selectBox::-webkit-scrollbar-thumb {
  10420. border-radius: 10px;
  10421. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  10422. background-color: rgba(0, 0, 0, 0.1);
  10423. }
  10424. .cru_line {
  10425. position: absolute;
  10426. bottom: 0px;
  10427. transition: all 0.5s;
  10428. left: 0px;
  10429. width: 125px;
  10430. margin-left: -25px;
  10431. }
  10432. .cru_select {
  10433. font-size: 21px;
  10434. margin-right: 37px;
  10435. margin-left: 5px;
  10436. cursor: pointer;
  10437. color: #a6a6a6;
  10438. }
  10439. .cru_selected {
  10440. color: #0b7fc2 !important;
  10441. }
  10442. .chapter_contentbox {
  10443. display: flex;
  10444. align-items: center;
  10445. margin-top: 15px;
  10446. }
  10447. .chapter_contentbox .cc_title {
  10448. margin: 0px;
  10449. color: black;
  10450. display: block;
  10451. white-space: nowrap;
  10452. overflow: hidden;
  10453. text-overflow: ellipsis;
  10454. margin-right: 20px;
  10455. font-size: 18px;
  10456. height: 20px;
  10457. line-height: 22px;
  10458. min-width: fit-content;
  10459. display: flex;
  10460. }
  10461. .chapter_contentbox .cc_title::before {
  10462. content: '';
  10463. height: 100%;
  10464. width: 3px;
  10465. background: #3681FC;
  10466. border-radius: 3px;
  10467. opacity: 1;
  10468. display: block;
  10469. margin-right: 10px;
  10470. }
  10471. .chapter_contentbox .cc_input {
  10472. width: 100%;
  10473. display: flex;
  10474. }
  10475. .show_taskD {
  10476. min-width: fit-content;
  10477. margin-left: 10px;
  10478. display: flex;
  10479. align-items: center;
  10480. font-size: 14px;
  10481. cursor: pointer;
  10482. color: #717C8D;
  10483. }
  10484. .show_taskD>img {
  10485. width: 15px;
  10486. margin-right: 5px;
  10487. transition: .2s all;
  10488. transform: rotate(-90deg);
  10489. }
  10490. .show_taskD.show>img {
  10491. transform: rotate(0deg);
  10492. }
  10493. .show_toolD {
  10494. min-width: fit-content;
  10495. margin-left: 10px;
  10496. display: flex;
  10497. align-items: center;
  10498. font-size: 14px;
  10499. cursor: pointer;
  10500. color: #717C8D;
  10501. /* position: absolute;
  10502. right: 45px;
  10503. top: 5px; */
  10504. }
  10505. .show_toolD>img {
  10506. width: 15px;
  10507. margin-right: 5px;
  10508. transition: .2s all;
  10509. transform: rotate(-90deg);
  10510. }
  10511. .show_toolD.show>img {
  10512. transform: rotate(0deg);
  10513. }
  10514. .remove {
  10515. background-image: url("../../../assets/icon/new/delete_u.png");
  10516. cursor: pointer;
  10517. opacity: 0.5;
  10518. width: 30px;
  10519. min-width: 30px;
  10520. height: 30px;
  10521. background-size: 100% 100%;
  10522. background-repeat: no-repeat;
  10523. margin-left: 10px;
  10524. }
  10525. .remove1 {
  10526. background-image: url("../../../assets/remove1.png");
  10527. background-repeat: no-repeat;
  10528. background-position: 5px 10px;
  10529. width: 40px;
  10530. height: 50px;
  10531. cursor: pointer;
  10532. margin-left: 10px;
  10533. }
  10534. .binfo_input {
  10535. width: 100%;
  10536. margin: 0;
  10537. padding: 12px 14px;
  10538. display: block;
  10539. min-width: 0;
  10540. outline: none;
  10541. box-sizing: border-box;
  10542. background: none;
  10543. border: none;
  10544. border-radius: 4px;
  10545. background: #fff;
  10546. font-size: 16px;
  10547. resize: none;
  10548. font-family: 'Microsoft YaHei';
  10549. min-height: 48px;
  10550. border: 1.5px solid #CAD1DC;
  10551. }
  10552. .binfo_textarea {
  10553. border: 1.5px solid #CAD1DC;
  10554. font-size: 16px;
  10555. resize: none;
  10556. background: #f6f6f6;
  10557. font-family: 'Microsoft YaHei';
  10558. }
  10559. .binfo_input:focus-visible {
  10560. border: 1.5px solid #3681FC !important;
  10561. }
  10562. .time {
  10563. display: flex;
  10564. margin: 35px 0 80px 0;
  10565. }
  10566. .chapter_btnbox {
  10567. width: 160px;
  10568. border-radius: 5px;
  10569. border: 2px dashed gray;
  10570. display: flex;
  10571. padding: 8px 50px;
  10572. align-items: center;
  10573. justify-content: center;
  10574. margin: 30px auto 0;
  10575. cursor: pointer;
  10576. }
  10577. .icon_add {
  10578. position: relative;
  10579. width: 24px;
  10580. padding-top: 20px;
  10581. border-radius: 100%;
  10582. border-width: 2px;
  10583. border-style: solid;
  10584. border-color: gray;
  10585. }
  10586. .icon_add i:nth-child(1) {
  10587. position: absolute;
  10588. left: 50%;
  10589. top: 50%;
  10590. height: 60%;
  10591. transform: translate(-50%, -50%);
  10592. border-width: 1px;
  10593. border-style: solid;
  10594. border-color: inherit;
  10595. }
  10596. .icon_add i:nth-child(2) {
  10597. position: absolute;
  10598. top: 50%;
  10599. left: 50%;
  10600. width: 60%;
  10601. transform: translate(-50%, -50%);
  10602. border-width: 1px;
  10603. border-style: solid;
  10604. border-color: inherit;
  10605. }
  10606. .chapter_btn_w {
  10607. font-size: 0.9375rem;
  10608. font-weight: bold;
  10609. color: gray;
  10610. margin-left: 20px;
  10611. }
  10612. .disUoloadSty>>>.el-icon-plus {
  10613. display: none !important;
  10614. /* 上传按钮隐藏 */
  10615. }
  10616. .imgLeft {
  10617. margin: 15px 0;
  10618. }
  10619. .add_info_box {
  10620. margin: 0 0 0 auto;
  10621. display: flex;
  10622. flex-wrap: wrap;
  10623. }
  10624. .add_info_box button {
  10625. margin: 0 5px 10px 0;
  10626. }
  10627. .add_info_box2 {
  10628. display: flex;
  10629. align-items: center;
  10630. flex-wrap: wrap;
  10631. }
  10632. .add_info_box2::after {
  10633. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  10634. color: red;
  10635. font-size: 14px;
  10636. margin-bottom: 10px;
  10637. }
  10638. .add_chapters_box {
  10639. text-align: left;
  10640. background-color: #fff;
  10641. width: 100%;
  10642. border-radius: 4px;
  10643. font-size: 16px;
  10644. box-sizing: border-box;
  10645. position: relative;
  10646. padding: 0 15px;
  10647. height: auto;
  10648. overflow-y: auto;
  10649. overflow-x: hidden;
  10650. border: 1px solid #CAD1DC;
  10651. }
  10652. .add_chapters_box.add_c_none {
  10653. display: flex;
  10654. justify-content: center;
  10655. align-items: center;
  10656. padding: 15px;
  10657. }
  10658. .add_c_none>img {
  10659. width: 25px;
  10660. }
  10661. .add_chapters_box.add_c_none>span {
  10662. font-size: 14px;
  10663. font-weight: 400;
  10664. margin: 0 0 5px 5px;
  10665. }
  10666. .homework_box {
  10667. display: flex;
  10668. align-items: flex-start;
  10669. flex-wrap: wrap;
  10670. margin: 15px 0 0 0;
  10671. flex-direction: column;
  10672. align-content: flex-start;
  10673. }
  10674. .course_homework {
  10675. display: flex;
  10676. justify-content: center;
  10677. flex-direction: row;
  10678. align-items: center;
  10679. margin: 0 10px 0 0;
  10680. }
  10681. .course_homework>>>.el-input__inner {
  10682. width: 140px;
  10683. margin-left: 15px;
  10684. }
  10685. .chapter_upload_move {
  10686. position: relative;
  10687. background-color: #fff;
  10688. position: absolute;
  10689. width: 100%;
  10690. top: 0px;
  10691. left: 0px;
  10692. border: 1px solid #eee;
  10693. border-radius: 5px;
  10694. transition: width 2s;
  10695. -moz-transition: width 2s;
  10696. -webkit-transition: width 2s;
  10697. -o-transition: width 2s;
  10698. }
  10699. .chapter_upload_l_i {
  10700. background-image: url("../../../assets/icon.png");
  10701. background-position: 3px -165px;
  10702. width: 30px;
  10703. height: 30px;
  10704. margin: 10px auto 0 auto;
  10705. }
  10706. .course_input_box {
  10707. display: flex;
  10708. margin-right: 20px;
  10709. width: 100%;
  10710. align-items: center;
  10711. position: relative;
  10712. }
  10713. .course_input_box>.binfo_input {
  10714. width: calc(100% - 0 - 200px - 20px);
  10715. margin: 0 10px;
  10716. }
  10717. .bb_courseIcon {
  10718. width: 57px;
  10719. height: 45px;
  10720. background: #F0F4FA;
  10721. border-radius: 5px 0px 0px 5px;
  10722. display: flex;
  10723. align-items: center;
  10724. justify-content: center;
  10725. border-right: 1.5px solid rgb(202, 209, 220);
  10726. box-sizing: border-box;
  10727. position: absolute;
  10728. left: 1.5px
  10729. }
  10730. .bb_courseIcon>img {
  10731. width: 25px;
  10732. height: auto
  10733. }
  10734. .big_box {
  10735. /* margin-top: 20px; */
  10736. display: flex;
  10737. justify-content: space-between;
  10738. /* border-bottom: 1px solid #E0E2ED; */
  10739. }
  10740. .left_first {
  10741. display: flex;
  10742. flex-direction: column;
  10743. flex-wrap: nowrap;
  10744. width: calc(100% - 310px);
  10745. padding: 20px;
  10746. box-sizing: border-box;
  10747. background: #fff;
  10748. border-radius: 5px;
  10749. }
  10750. .right_first {
  10751. width: 300px;
  10752. display: flex;
  10753. align-items: center;
  10754. justify-content: center;
  10755. /* border-left: 1px solid #E0E2ED; */
  10756. box-sizing: border-box;
  10757. padding: 20px;
  10758. flex-direction: column;
  10759. background: #fff;
  10760. border-radius: 5px;
  10761. }
  10762. .ai_box {
  10763. width: 204px;
  10764. display: flex;
  10765. justify-content: flex-end;
  10766. margin-bottom: 15px;
  10767. }
  10768. .ai_content {
  10769. display: flex;
  10770. align-items: center;
  10771. font-size: 14px;
  10772. padding: 7px 20px;
  10773. box-sizing: border-box;
  10774. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  10775. border-radius: 12px;
  10776. font-weight: 700;
  10777. cursor: pointer;
  10778. }
  10779. .ai_content>img {
  10780. width: 40px;
  10781. margin-right: 5px;
  10782. }
  10783. .c_info_title {
  10784. padding: 15px 0 15px 0;
  10785. font-size: 16px;
  10786. font-weight: bold;
  10787. margin: 0 0 0 20px;
  10788. box-sizing: border-box;
  10789. display: flex;
  10790. align-items: center;
  10791. line-height: 20px;
  10792. }
  10793. .c_info_title::before {
  10794. content: '';
  10795. display: block;
  10796. width: 3px;
  10797. height: 20px;
  10798. background: #0061FF;
  10799. border-radius: 3px;
  10800. margin: 0 5px 0 0;
  10801. }
  10802. .right_title {
  10803. /* height: 30px; */
  10804. padding: 0 20px;
  10805. font-size: 18px;
  10806. font-weight: bold;
  10807. /* color: #0f7eff; */
  10808. margin: 20px auto 0;
  10809. display: flex;
  10810. /* justify-content: space-between; */
  10811. align-items: center;
  10812. }
  10813. .people {
  10814. border: 1px solid rgb(229 229 229);
  10815. height: 495px;
  10816. border-radius: 5px;
  10817. width: 100%;
  10818. overflow: auto;
  10819. }
  10820. .people_top {
  10821. display: flex;
  10822. width: 100%;
  10823. /* justify-content: space-between; */
  10824. /* align-items: center; */
  10825. flex-direction: column;
  10826. padding: 10px 10px 0;
  10827. box-sizing: border-box;
  10828. }
  10829. .people_nav,
  10830. .people_top_right {
  10831. /* padding: 20px 0 0 20px; */
  10832. }
  10833. .people_top_right {
  10834. height: 40px;
  10835. margin-bottom: 10px;
  10836. }
  10837. .people_search {
  10838. display: flex;
  10839. position: relative;
  10840. }
  10841. .people_search>>>.el-input__inner {
  10842. /* height: 25px; */
  10843. width: 95%;
  10844. }
  10845. .search_img {
  10846. width: 20px;
  10847. height: 20px;
  10848. position: absolute;
  10849. right: 30px;
  10850. top: 50%;
  10851. transform: translateY(-50%);
  10852. }
  10853. .search_img>img {
  10854. width: 100%;
  10855. height: 100%;
  10856. }
  10857. .people_name {
  10858. display: flex;
  10859. justify-content: flex-start;
  10860. padding: 20px 10px;
  10861. flex-direction: column;
  10862. flex-wrap: wrap;
  10863. }
  10864. .p_box {
  10865. position: relative;
  10866. }
  10867. .people_name>>>.el-checkbox {
  10868. width: 100%;
  10869. display: flex;
  10870. align-items: center;
  10871. margin-bottom: 10px;
  10872. }
  10873. .people_name>>>.el-checkbox__label {
  10874. text-overflow: ellipsis;
  10875. overflow: hidden;
  10876. width: calc(100%);
  10877. }
  10878. .people_name2>>>.el-checkbox__label {
  10879. width: calc(100% - 130px);
  10880. }
  10881. .inviteCode {
  10882. position: absolute;
  10883. right: 30px;
  10884. color: #237ade;
  10885. top: 0;
  10886. cursor: pointer;
  10887. font-size: 13px;
  10888. }
  10889. .noneInvite {
  10890. color: #a8a8a8;
  10891. }
  10892. .inviteImg {
  10893. position: absolute;
  10894. right: 5px;
  10895. top: 0;
  10896. width: 20px;
  10897. }
  10898. .right_img {
  10899. width: 150px;
  10900. height: 150px;
  10901. margin: 20px auto;
  10902. }
  10903. .right_img>img {
  10904. width: 100%;
  10905. height: 100%;
  10906. }
  10907. .number {
  10908. margin-top: 20px;
  10909. color: #4aa6ff;
  10910. text-decoration: underline;
  10911. }
  10912. .success_button {
  10913. display: flex;
  10914. text-align: center;
  10915. margin: 5% 0 auto;
  10916. flex-direction: row;
  10917. justify-content: center;
  10918. }
  10919. .look_course {
  10920. margin-right: 40px;
  10921. background: #3d67bc;
  10922. width: 200px;
  10923. height: 35px;
  10924. line-height: 35px;
  10925. color: #fff;
  10926. text-align: center;
  10927. font-size: 14px;
  10928. border-radius: 5px;
  10929. cursor: pointer;
  10930. }
  10931. .attend_others {
  10932. width: 250px;
  10933. background: #4fb13c;
  10934. height: 35px;
  10935. line-height: 35px;
  10936. color: #fff;
  10937. text-align: center;
  10938. font-size: 14px;
  10939. border-radius: 5px;
  10940. cursor: pointer;
  10941. }
  10942. .dialog_diy2>>>.el-dialog__body {
  10943. text-align: center;
  10944. }
  10945. .write_togother {
  10946. position: absolute;
  10947. right: 45px;
  10948. display: flex;
  10949. top: 5%;
  10950. }
  10951. .write_people {
  10952. font-size: 14px;
  10953. line-height: 50px;
  10954. padding-right: 10px;
  10955. }
  10956. .end_write {
  10957. background: #3d67bc;
  10958. color: #fff;
  10959. width: 100px;
  10960. height: 35px;
  10961. line-height: 35px;
  10962. text-align: center;
  10963. font-size: 14px;
  10964. border-radius: 5px;
  10965. cursor: pointer;
  10966. }
  10967. .chapter_upload+.chapter_upload {
  10968. /* margin-top: 15px; */
  10969. border-top: 1px solid #E7EBF1;
  10970. }
  10971. .chapter_upload {
  10972. height: 45px;
  10973. position: relative;
  10974. display: flex;
  10975. align-items: center;
  10976. width: 100%;
  10977. min-height: 45px;
  10978. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  10979. /* border-radius: 4px; */
  10980. /* overflow: hidden; */
  10981. box-sizing: border-box;
  10982. }
  10983. .chapter_upload:hover > .chapter_upload_drag{
  10984. display: block;
  10985. }
  10986. .chapter_upload_drag {
  10987. position: absolute;
  10988. cursor: pointer;
  10989. width: 16px;
  10990. height: 16px;
  10991. left: -9px;
  10992. background-image: url("../../../assets/icon/new/icon_course_drag.png");
  10993. background-size: 100% 100%;
  10994. z-index: 10;
  10995. display: none;
  10996. }
  10997. .chapter_upload_t {
  10998. background-color: #fff;
  10999. position: absolute;
  11000. height: 100%;
  11001. top: 0px;
  11002. left: 0px;
  11003. box-sizing: border-box;
  11004. }
  11005. .chapter_upload_o {
  11006. width: 100%;
  11007. height: 100%;
  11008. position: relative;
  11009. z-index: 1;
  11010. }
  11011. .chapter_upload_ic {
  11012. margin: 0 15px 0px auto;
  11013. display: flex;
  11014. align-items: center;
  11015. }
  11016. .chapter_upload_ic_l {
  11017. width: 50px;
  11018. height: 50px;
  11019. float: left;
  11020. }
  11021. .chapter_upload_ic_l div {
  11022. width: 30px;
  11023. height: 35px;
  11024. background: url("../../../assets/icon/icon.png");
  11025. }
  11026. .chapter_upload_ic_edit {
  11027. height: 100%;
  11028. display: flex;
  11029. align-items: center;
  11030. cursor: pointer;
  11031. margin: 0 10px 0 0;
  11032. }
  11033. .chapter_upload_ic_edit div {
  11034. width: 18px;
  11035. height: 18px;
  11036. background-image: url("../../../assets/icon/new/edit_u.png");
  11037. background-size: 100% 100%;
  11038. }
  11039. .chapter_upload_ic_r {
  11040. height: 100%;
  11041. display: flex;
  11042. align-items: center;
  11043. cursor: pointer;
  11044. }
  11045. .chapter_upload_ic_r div {
  11046. width: 18px;
  11047. height: 18px;
  11048. background-image: url("../../../assets/icon/new/delete_u.png");
  11049. background-size: 100% 100%;
  11050. }
  11051. .chapter_upload_n {
  11052. display: flex;
  11053. text-indent: 10px;
  11054. text-decoration: none;
  11055. text-overflow: ellipsis;
  11056. white-space: nowrap;
  11057. overflow: hidden;
  11058. width: 55%;
  11059. margin-left: 10px;
  11060. cursor: pointer;
  11061. margin-top: 2px;
  11062. align-items: center;
  11063. }
  11064. .chapter_upload_l_i2,
  11065. .chapter_upload_l_i3,
  11066. .chapter_upload_l_i8,
  11067. .chapter_upload_l_i6,
  11068. .chapter_upload_l_i12,
  11069. .chapter_upload_l_i14,
  11070. .chapter_upload_l_i13 {
  11071. width: 15px;
  11072. height: 15px;
  11073. background-size: 100% 100%;
  11074. }
  11075. .chapter_upload_l_i2 {
  11076. background-image: url("../../../assets/icon/new/u_word.png");
  11077. }
  11078. .chapter_upload_l_i3 {
  11079. background-image: url("../../../assets/icon/new/u_video.png");
  11080. }
  11081. .chapter_upload_l_i8 {
  11082. background-image: url("../../../assets/icon/new/u_url.png");
  11083. }
  11084. .chapter_upload_l_i14 {
  11085. background-image: url("../../../assets/icon/new/u_source.png");
  11086. }
  11087. .chapter_upload_l_i6 {
  11088. background-image: url("../../../assets/icon/new/u_picture.png");
  11089. }
  11090. .chapter_upload_l_i12 {
  11091. background-image: url("../../../assets/icon/new/u_word.png");
  11092. }
  11093. .chapter_upload_l_i13 {
  11094. background-image: url("../../../assets/icon/new/u_img.png");
  11095. }
  11096. .chapter_upload_noSee {
  11097. background-image: url("../../../assets/icon/new/u_noUpload.png");
  11098. width: 18px;
  11099. height: 18px;
  11100. background-size: 100% 100%;
  11101. display: block;
  11102. margin-right: 10px;
  11103. }
  11104. .chapter_upload_ud {
  11105. display: flex;
  11106. flex-direction: row;
  11107. justify-content: center;
  11108. margin: 0 10px 0 0;
  11109. }
  11110. .chapter_upload_ud>.chapter_upload_up {
  11111. margin-bottom: 0;
  11112. margin-right: 10px;
  11113. }
  11114. .chapter_upload_down,
  11115. .chapter_upload_up {
  11116. width: 20px;
  11117. height: 20px;
  11118. background: #e4eaf2;
  11119. cursor: pointer;
  11120. margin: 0 auto;
  11121. border-radius: 5px;
  11122. display: flex;
  11123. justify-content: center;
  11124. align-items: center;
  11125. }
  11126. .chapter_upload_up::after,
  11127. .chapter_upload_down::after {
  11128. content: '';
  11129. background-image: url('../../../assets/icon/new/downBtn.png');
  11130. width: 13px;
  11131. height: 13px;
  11132. background-size: 100% 100%;
  11133. display: block;
  11134. }
  11135. .chapter_upload_up::after {
  11136. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  11137. }
  11138. .chapter_upload_up {
  11139. margin-bottom: 5px;
  11140. }
  11141. .chapter_upload_ud2 {
  11142. display: flex;
  11143. flex-direction: row;
  11144. justify-content: center;
  11145. margin: 0 10px 0 0;
  11146. }
  11147. .chapter_upload_ud2>.chapter_upload_up2 {
  11148. margin-bottom: 0;
  11149. margin-right: 10px;
  11150. }
  11151. .chapter_upload_down2,
  11152. .chapter_upload_up2 {
  11153. cursor: pointer;
  11154. margin: 0 auto;
  11155. border-radius: 5px;
  11156. display: flex;
  11157. justify-content: center;
  11158. align-items: center;
  11159. color: #717C8D;
  11160. font-size: 14px;
  11161. }
  11162. .chapter_upload_up2{
  11163. margin-right:10px;
  11164. }
  11165. .chapter_upload_up2::before,
  11166. .chapter_upload_down2::before {
  11167. content: '';
  11168. background-image: url('../../../assets/icon/new/c_down.png');
  11169. width: 14px;
  11170. height: 14px;
  11171. background-size: 100% 100%;
  11172. display: block;
  11173. margin-right: 5px;
  11174. }
  11175. .chapter_upload_up2::before {
  11176. background-image: url('../../../assets/icon/new/c_up.png') !important;
  11177. }
  11178. .addWordStyle {
  11179. display: flex;
  11180. flex-direction: row;
  11181. justify-content: flex-start;
  11182. overflow-x: auto;
  11183. white-space: nowrap;
  11184. flex-wrap: wrap;
  11185. }
  11186. /* table 样式 */
  11187. .cont>>>table {
  11188. border-top: 1px solid #ccc;
  11189. border-left: 1px solid #ccc;
  11190. }
  11191. .cont>>>table td,
  11192. .cont>>>table th {
  11193. border-bottom: 1px solid #ccc;
  11194. border-right: 1px solid #ccc;
  11195. /* padding: 20px 5px; */
  11196. padding: 5px 10px;
  11197. max-width: 0px;
  11198. height: 30px;
  11199. vertical-align: baseline;
  11200. }
  11201. .cont>>>table th {
  11202. border-bottom: 2px solid #ccc;
  11203. text-align: center;
  11204. }
  11205. /* blockquote 样式 */
  11206. .cont>>>blockquote {
  11207. display: block;
  11208. border-left: 8px solid #d0e5f2;
  11209. padding: 5px 10px;
  11210. margin: 10px 0;
  11211. line-height: 1.4;
  11212. font-size: 100%;
  11213. background-color: #f1f1f1;
  11214. }
  11215. /* code 样式 */
  11216. .cont>>>code {
  11217. display: inline-block;
  11218. /* *display: inline; */
  11219. zoom: 1;
  11220. background-color: #f1f1f1;
  11221. border-radius: 3px;
  11222. padding: 3px 5px;
  11223. margin: 0 3px;
  11224. }
  11225. .cont>>>pre code {
  11226. display: block;
  11227. }
  11228. /* ul ol 样式 */
  11229. .cont>>>ul,
  11230. ol {
  11231. margin: 10px 0 10px 20px;
  11232. }
  11233. .wordbox {
  11234. display: flex;
  11235. flex-wrap: wrap;
  11236. cursor: pointer;
  11237. width: 100%;
  11238. }
  11239. .checkword {
  11240. width: 22px;
  11241. height: 22px;
  11242. margin: 10px auto 0;
  11243. cursor: pointer;
  11244. }
  11245. .checkword img {
  11246. width: 100%;
  11247. }
  11248. .stepBg {
  11249. display: flex;
  11250. flex-direction: column;
  11251. justify-content: space-between;
  11252. align-items: center;
  11253. background: #fff;
  11254. width: 300px;
  11255. margin: 0 25px 0 0;
  11256. }
  11257. .stepTop {
  11258. min-width: 300px;
  11259. width: 300px;
  11260. /* border-radius: 10px; */
  11261. display: flex;
  11262. flex-direction: column;
  11263. justify-content: flex-start;
  11264. align-items: center;
  11265. flex-wrap: nowrap;
  11266. background: #fff;
  11267. /* top: 18%; */
  11268. }
  11269. .stepTop>div {
  11270. height: 80px;
  11271. width: 85%;
  11272. cursor: pointer;
  11273. margin: 10px 0;
  11274. border-radius: 10px;
  11275. }
  11276. .first,
  11277. .second,
  11278. .third,
  11279. .four {
  11280. background: #4a83d0;
  11281. height: 90px;
  11282. color: #fff;
  11283. display: flex;
  11284. flex-direction: row;
  11285. align-items: center;
  11286. justify-content: center;
  11287. }
  11288. .first>div:nth-child(1),
  11289. .second>div:nth-child(1),
  11290. .third>div:nth-child(1),
  11291. .four>div:nth-child(1) {
  11292. margin: 5px 10px 0 0;
  11293. width: 2rem;
  11294. }
  11295. .firstNo,
  11296. .secondNo,
  11297. .thirdNo,
  11298. .fourNo {
  11299. background: #e7e7e7;
  11300. color: #adadad;
  11301. display: flex;
  11302. flex-direction: row;
  11303. align-items: center;
  11304. justify-content: center;
  11305. }
  11306. .firstNo>div:nth-child(1),
  11307. .secondNo>div:nth-child(1),
  11308. .thirdNo>div:nth-child(1),
  11309. .fourNo>div:nth-child(1) {
  11310. margin: 5px 10px 0 0;
  11311. width: 2rem;
  11312. }
  11313. .uploadWidth>>>.el-upload {
  11314. width: 60px;
  11315. height: 60px;
  11316. position: relative;
  11317. }
  11318. .addPeople {
  11319. background: #fa6060;
  11320. width: 150px;
  11321. height: 40px;
  11322. color: #fff;
  11323. border-radius: 5px;
  11324. text-align: center;
  11325. line-height: 40px;
  11326. font-size: 14px;
  11327. cursor: pointer;
  11328. }
  11329. .kcImg {
  11330. width: 60px;
  11331. margin-left: 10px;
  11332. }
  11333. .zyImg {
  11334. width: 55px;
  11335. margin: 0 10px;
  11336. }
  11337. .deleteZy {
  11338. width: 20px;
  11339. position: absolute;
  11340. top: 5px;
  11341. right: 5px;
  11342. cursor: pointer;
  11343. }
  11344. .kcImg>img,
  11345. .zyImg>img,
  11346. .deleteZy>img {
  11347. width: 100%;
  11348. height: 100%;
  11349. }
  11350. .zyBox {
  11351. display: flex;
  11352. flex-direction: row;
  11353. align-items: center;
  11354. background: #67d37d;
  11355. color: #fff;
  11356. width: 210px;
  11357. margin: 20px 20px 0 0;
  11358. border-radius: 10px;
  11359. height: 70px;
  11360. position: relative;
  11361. }
  11362. .upCss {
  11363. display: flex;
  11364. flex-direction: row;
  11365. justify-content: flex-start;
  11366. }
  11367. .upCss>>>.el-icon-plus {
  11368. position: none !important;
  11369. width: 200px;
  11370. height: 100px;
  11371. display: flex;
  11372. flex-wrap: nowrap;
  11373. flex-direction: column;
  11374. align-items: center;
  11375. justify-content: center;
  11376. border: 1px dashed #ccc;
  11377. min-width: 78px;
  11378. min-height: 100px;
  11379. z-index: 999;
  11380. }
  11381. .upCss>>>.el-upload-list__item-name {
  11382. width: 100px;
  11383. white-space: nowrap;
  11384. overflow: hidden;
  11385. text-overflow: ellipsis;
  11386. }
  11387. .upCss>>>.el-upload-list__item .el-icon-close {
  11388. font-size: 20px;
  11389. z-index: 9999;
  11390. }
  11391. .addStageImg {
  11392. min-width: 25px;
  11393. min-height: 25px;
  11394. width: 25px;
  11395. height: 25px;
  11396. cursor: pointer;
  11397. }
  11398. .addHW {
  11399. width: 28px;
  11400. height: 28px;
  11401. cursor: pointer;
  11402. }
  11403. .addStageImg>img,
  11404. .addHW>img {
  11405. width: 100%;
  11406. height: 100%;
  11407. }
  11408. .addNewPP>>>.el-dialog__body {
  11409. padding: 5px 20px;
  11410. }
  11411. .addNewPP>>>.el-dialog {
  11412. margin-top: 5vh !important;
  11413. }
  11414. .addNewPP2>>>.el-dialog__body {
  11415. padding: 5px 0;
  11416. }
  11417. .addNewPP2>>>.el-dialog {
  11418. margin-top: 5vh !important;
  11419. }
  11420. .isHeight {
  11421. height: 680px;
  11422. }
  11423. .toolChoose {
  11424. display: flex;
  11425. /* width: 100%; */
  11426. flex-direction: row;
  11427. flex-wrap: wrap;
  11428. }
  11429. .tool,
  11430. .isToolChoose {
  11431. display: flex;
  11432. flex-direction: column;
  11433. flex-wrap: nowrap;
  11434. width: fit-content;
  11435. margin: 10px 0 10px 0;
  11436. align-items: center;
  11437. border: 2px solid #dbdbdb00;
  11438. padding: 10px 20px;
  11439. border-radius: 5px;
  11440. cursor: pointer;
  11441. /* box-shadow: 0 0 2px 0px #dedede; */
  11442. position: relative;
  11443. box-sizing: border-box;
  11444. }
  11445. .tool:hover {
  11446. border: 2px solid #a5c7ff;
  11447. }
  11448. .tool:hover>.noCTool {
  11449. display: block;
  11450. opacity: 0.5;
  11451. }
  11452. .isToolChoose {
  11453. border: 2px solid #438aff !important;
  11454. box-shadow: 0 0 2px 0px #438aff;
  11455. opacity: 1 !important;
  11456. }
  11457. .isCTool,
  11458. .noCTool {
  11459. width: 30px;
  11460. height: 30px;
  11461. position: absolute;
  11462. top: -4px;
  11463. right: -4px;
  11464. }
  11465. .noCTool {
  11466. display: none;
  11467. }
  11468. .isCTool>img,
  11469. .noCTool>img {
  11470. width: 100%;
  11471. height: 100%;
  11472. }
  11473. .tool+.tool {
  11474. margin-right: 10px;
  11475. }
  11476. .whiteBIcon {
  11477. width: 80px;
  11478. cursor: pointer;
  11479. display: flex;
  11480. flex-direction: column;
  11481. flex-wrap: nowrap;
  11482. align-items: center;
  11483. font-size: 14px;
  11484. }
  11485. .whiteBIcon>img,
  11486. .toolIcon>img,
  11487. .arrow>img {
  11488. width: 100%;
  11489. height: 100%;
  11490. }
  11491. .check img {
  11492. width: 20px;
  11493. height: 20px;
  11494. }
  11495. .whiteBIcon>img {
  11496. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  11497. border-radius: 15px;
  11498. }
  11499. .whiteBIcon>div:nth-child(2) {
  11500. height: 20px;
  11501. line-height: 20px;
  11502. }
  11503. .check {
  11504. /* width: 20px;
  11505. height: 20px; */
  11506. cursor: pointer;
  11507. margin: 10px 0 0;
  11508. }
  11509. .checkDiv {
  11510. display: flex;
  11511. align-items: center;
  11512. }
  11513. .checkDiv span {
  11514. margin-left: 5px;
  11515. color: #858585;
  11516. }
  11517. .customWidth>>>.el-dialog {
  11518. min-width: 500px !important;
  11519. }
  11520. .a_addBox {
  11521. margin: 10px 0;
  11522. background: #fff;
  11523. padding: 15px;
  11524. /* max-height: 600px; */
  11525. overflow: auto;
  11526. }
  11527. .a_add_box {
  11528. border-bottom: 2px solid #eee;
  11529. padding-bottom: 25px;
  11530. }
  11531. .a_add_head {
  11532. display: flex;
  11533. align-items: center;
  11534. justify-content: space-between;
  11535. margin: 10px 0 0 0;
  11536. font-size: 18px;
  11537. }
  11538. .a_add_checkType {
  11539. margin-top: 10px;
  11540. display: flex;
  11541. font-size: 14px;
  11542. align-items: center;
  11543. }
  11544. .a_add_checkType span {
  11545. box-sizing: border-box;
  11546. padding: 0 0 5px 0;
  11547. cursor: pointer;
  11548. }
  11549. .a_add_checkType span+span {
  11550. margin-left: 10px;
  11551. }
  11552. .a_add_checkType .active {
  11553. border-bottom: 2px solid #409eff;
  11554. color: #409eff;
  11555. }
  11556. .a_add_head .a_add_head_input {
  11557. width: 100%;
  11558. }
  11559. .a_add_head .a_add_head_div {
  11560. display: flex;
  11561. align-items: center;
  11562. justify-content: space-between;
  11563. }
  11564. .a_add_body {
  11565. display: flex;
  11566. /* align-items: center; */
  11567. align-items: flex-end;
  11568. }
  11569. .a_add_input {
  11570. display: flex;
  11571. align-items: center;
  11572. flex-wrap: wrap;
  11573. }
  11574. .a_add_input_choice {
  11575. flex-direction: column;
  11576. margin-right: 10px;
  11577. }
  11578. .a_add_input_choice>>>.el-radio {
  11579. display: flex;
  11580. align-items: center;
  11581. flex-direction: row-reverse;
  11582. margin: 30px 0 0 0;
  11583. position: relative;
  11584. }
  11585. .a_add_input_choice>>>.el-checkbox {
  11586. display: flex;
  11587. align-items: center;
  11588. flex-direction: row-reverse;
  11589. margin: 30px 0 0 0;
  11590. position: relative;
  11591. }
  11592. .width100 {
  11593. width: 100%;
  11594. }
  11595. .a_add_input .a_add_persent {
  11596. width: 100%;
  11597. }
  11598. .a_add_persent_div {
  11599. width: 100%;
  11600. display: flex;
  11601. align-items: center;
  11602. }
  11603. .a_add_persent_div span {
  11604. margin: 5px 0;
  11605. }
  11606. .a_add_persent_div span:nth-child(1) {
  11607. width: 30%;
  11608. }
  11609. .a_add_persent_div span:nth-child(2) {
  11610. width: 7%;
  11611. }
  11612. .a_add_persent_div span:nth-child(3) {
  11613. width: 40%;
  11614. }
  11615. .a_add_body_div {
  11616. display: flex;
  11617. align-items: center;
  11618. justify-content: center;
  11619. /* flex-direction: column; */
  11620. position: absolute;
  11621. right: -20px;
  11622. transform: translateX(100%);
  11623. }
  11624. .a_add_body_div>>>.el-button--primary {
  11625. background: #466b99;
  11626. border: none;
  11627. }
  11628. .all_choose {
  11629. display: flex;
  11630. flex-direction: row;
  11631. align-items: flex-start;
  11632. width: 100%;
  11633. }
  11634. .all_choose>span {
  11635. min-width: fit-content;
  11636. display: block;
  11637. white-space: nowrap;
  11638. overflow: hidden;
  11639. text-overflow: ellipsis;
  11640. margin-right: 20px;
  11641. font-weight: bold;
  11642. font-size: 14px;
  11643. }
  11644. .all_choose>>>.el-checkbox-group {
  11645. display: flex;
  11646. flex-direction: row;
  11647. width: 100%;
  11648. flex-wrap: wrap;
  11649. align-content: center;
  11650. justify-content: flex-start;
  11651. align-items: center;
  11652. margin-top: 3px;
  11653. }
  11654. .all_choose>.el-checkbox-group>>>.el-checkbox {
  11655. margin-bottom: 10px;
  11656. display: flex;
  11657. flex-direction: row;
  11658. align-items: center;
  11659. margin-right: 10px;
  11660. }
  11661. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  11662. min-width: 80px;
  11663. overflow: hidden;
  11664. width: 80px;
  11665. text-overflow: ellipsis;
  11666. white-space: nowrap;
  11667. }
  11668. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  11669. width: auto;
  11670. }
  11671. .choose>div:nth-child(3)>span {
  11672. /* letter-spacing: 0 !important; */
  11673. }
  11674. .choose {
  11675. display: flex;
  11676. flex-direction: column;
  11677. flex-wrap: nowrap;
  11678. height: 100%;
  11679. justify-content: space-evenly;
  11680. align-items: flex-start;
  11681. }
  11682. .both {
  11683. display: flex;
  11684. flex-direction: row;
  11685. flex-wrap: wrap;
  11686. width: 100%;
  11687. align-items: center;
  11688. justify-content: flex-start;
  11689. margin: 15px 0;
  11690. }
  11691. .notice>>>.el-dialog {
  11692. width: 500px !important;
  11693. text-align: center;
  11694. }
  11695. .notice>>>.el-button {
  11696. margin-top: 20px;
  11697. }
  11698. .whiteBg {
  11699. background: #fff;
  11700. border-radius: 10px;
  11701. }
  11702. .wb_j_box {
  11703. display: flex;
  11704. width: 100%;
  11705. padding: 10px 20px;
  11706. box-sizing: border-box;
  11707. }
  11708. .wb_j_box_content {
  11709. width: calc(100% - 55% - 100px);
  11710. display: flex;
  11711. align-items: center;
  11712. }
  11713. .wb_j_box_p_box {
  11714. max-width: calc(100% - 200px);
  11715. word-break: break-all;
  11716. overflow: hidden;
  11717. margin: 0 0 0 10px;
  11718. font-size: 14px;
  11719. color: #6e6e6e;
  11720. }
  11721. .chooseWho {
  11722. display: flex;
  11723. width: 410px;
  11724. flex-direction: row;
  11725. flex-wrap: nowrap;
  11726. justify-content: space-between;
  11727. padding-bottom: 10px;
  11728. }
  11729. .chooseWho>div {
  11730. cursor: pointer;
  11731. padding-bottom: 10px;
  11732. font-weight: bold;
  11733. }
  11734. .isChooseActive {
  11735. color: #3e88f4;
  11736. border-bottom: 2px solid #2f80f3;
  11737. }
  11738. .toolSort {
  11739. display: flex;
  11740. flex-direction: row;
  11741. flex-wrap: wrap;
  11742. justify-content: flex-start;
  11743. align-items: flex-start;
  11744. }
  11745. .toolSort>div {
  11746. margin-right: 10px;
  11747. }
  11748. .tools {
  11749. width: 100%;
  11750. display: flex;
  11751. flex-direction: column;
  11752. flex-wrap: nowrap;
  11753. align-items: flex-start;
  11754. }
  11755. .leftTools,
  11756. .rightTools {
  11757. width: 50%;
  11758. }
  11759. .leftTools+.leftTools {
  11760. border-top: 1px solid #dbdbdb;
  11761. padding-top: 30px;
  11762. }
  11763. .rightTools {
  11764. display: flex;
  11765. flex-direction: row;
  11766. flex-wrap: nowrap;
  11767. justify-content: space-around;
  11768. }
  11769. .firstToolList {
  11770. display: flex;
  11771. flex-direction: column;
  11772. flex-wrap: nowrap;
  11773. align-items: center;
  11774. }
  11775. .iconList {
  11776. display: flex;
  11777. flex-direction: row;
  11778. flex-wrap: wrap;
  11779. justify-content: flex-start;
  11780. align-items: center;
  11781. margin: 20px 0 5px 0;
  11782. width: 240px;
  11783. min-width: 240px;
  11784. }
  11785. .iconTool {
  11786. display: flex;
  11787. flex-direction: column;
  11788. flex-wrap: nowrap;
  11789. align-items: center;
  11790. justify-content: flex-start;
  11791. margin: 15px 10px;
  11792. }
  11793. .toolIcon {
  11794. width: 50px;
  11795. }
  11796. .taskBorder {
  11797. /*border: 1px solid #e1e1e1; */
  11798. border-radius: 8px;
  11799. margin-top: 10px;
  11800. /* min-height: 1160px; */
  11801. position: relative;
  11802. background: #fff;
  11803. padding: 20px 20px 0;
  11804. overflow: hidden;
  11805. box-sizing: border-box;
  11806. }
  11807. .smallTaskBorder {
  11808. height: 340px;
  11809. min-height: 340px !important;
  11810. overflow: hidden;
  11811. }
  11812. .taskBorder>div {
  11813. /* padding: 30px 0 10px 30px; */
  11814. }
  11815. .addTaskBorder {
  11816. /* border: 2px solid #5E9AFC; */
  11817. border-radius: 8px;
  11818. margin-top: 10px;
  11819. cursor: pointer;
  11820. /* height: 50px;
  11821. line-height: 50px; */
  11822. background: #fff;
  11823. padding: 15px 0;
  11824. display: flex;
  11825. align-items: center;
  11826. justify-content: center;
  11827. }
  11828. /* .addTaskBorder>div {
  11829. margin: 0 auto;
  11830. display: flex;
  11831. align-items: center;
  11832. justify-content: center;
  11833. }
  11834. .addTaskBorder>div>img {
  11835. width: 20px;
  11836. }
  11837. .addTaskBorder>div>span {
  11838. font-size: 16px;
  11839. margin-left: 10px;
  11840. color: #5E9AFC;
  11841. } */
  11842. .funBlock {
  11843. display: flex;
  11844. padding: 15px 0;
  11845. flex-direction: row;
  11846. justify-content: center;
  11847. align-items: center;
  11848. position: absolute;
  11849. right: 0;
  11850. bottom: 0;
  11851. background: #fff;
  11852. width: 100%;
  11853. height: 60px;
  11854. z-index: 9;
  11855. }
  11856. .fold {
  11857. display: flex;
  11858. margin: 0 20px;
  11859. flex-direction: row;
  11860. align-items: center;
  11861. cursor: pointer;
  11862. color: #2b7bff;
  11863. }
  11864. .arrow {
  11865. margin-right: 8px;
  11866. width: 16px;
  11867. height: 16px;
  11868. min-width: 16px;
  11869. min-height: 16px;
  11870. background-size: 100% 100%;
  11871. display: block;
  11872. background-image: url(../../../assets/icon/new/u_up.png);
  11873. /* border-left: 7px solid transparent;
  11874. border-bottom: 7px solid #717C8D;
  11875. border-top: 0px solid transparent;
  11876. border-right: 7px solid transparent; */
  11877. /* box-sizing: border-box; */
  11878. transition: all .3s;
  11879. }
  11880. .arrowZ {
  11881. transform: rotate(180deg);
  11882. }
  11883. .addToolFun {
  11884. display: flex;
  11885. width: 150px;
  11886. flex-direction: row;
  11887. align-items: center;
  11888. justify-content: center;
  11889. border: 1px dashed;
  11890. border-radius: 5px;
  11891. height: 50px;
  11892. margin: 20px auto 35px;
  11893. cursor: pointer;
  11894. }
  11895. .addToolFun2 {
  11896. display: flex;
  11897. width: 150px;
  11898. border: 2px dashed #CAD1DC;
  11899. flex-direction: row;
  11900. align-items: center;
  11901. justify-content: center;
  11902. border-radius: 5px;
  11903. height: 50px;
  11904. margin: 0 auto 0;
  11905. cursor: pointer;
  11906. }
  11907. .addToolImg {
  11908. width: 20px;
  11909. height: 20px;
  11910. margin-right: 10px;
  11911. }
  11912. .addToolsDia>>>.el-dialog__body {
  11913. padding: 20px;
  11914. }
  11915. .addToolsDia>>>.el-dialog__body>.toolChoose {
  11916. padding: 0;
  11917. }
  11918. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  11919. padding: 0;
  11920. border-bottom: none;
  11921. margin-bottom: 0;
  11922. }
  11923. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  11924. width: 100%;
  11925. }
  11926. .lineCss>>>.el-form-item__label {
  11927. width: auto !important;
  11928. }
  11929. .lineCss>>>.el-form-item__content {
  11930. margin-left: 50px !important;
  11931. }
  11932. .newSteps {
  11933. display: flex;
  11934. width: 100% !important;
  11935. height: 80px;
  11936. cursor: pointer;
  11937. margin: 10px 0;
  11938. border-radius: 10px;
  11939. flex-direction: row;
  11940. align-content: center;
  11941. justify-content: center;
  11942. align-items: center;
  11943. margin: 0 !important;
  11944. }
  11945. /* 评价样式 */
  11946. .elist_css {
  11947. padding-bottom: 60px !important;
  11948. }
  11949. .elist_title {
  11950. margin-bottom: 10px;
  11951. }
  11952. .elist_input {}
  11953. .elist_input_box {
  11954. display: flex;
  11955. align-items: center;
  11956. flex-wrap: wrap;
  11957. }
  11958. .elist_input_box+.elist_input_box {
  11959. margin-top: 30px;
  11960. }
  11961. .elist_input .elist_input_box input {
  11962. font: inherit;
  11963. color: currentColor;
  11964. /* width: 200px; */
  11965. max-width: 200px;
  11966. padding: 8px 14px;
  11967. display: block;
  11968. min-width: 0;
  11969. outline: none;
  11970. border: 1px solid rgba(0, 0, 0, 0.23);
  11971. border-radius: 4px;
  11972. box-sizing: border-box;
  11973. background: #fff;
  11974. margin: 0 5px 0 0;
  11975. }
  11976. .elist_input .elist_input_box span {
  11977. height: 36px;
  11978. line-height: 36px;
  11979. color: rgb(82, 82, 82);
  11980. min-width: 80px;
  11981. }
  11982. .elist_input .elist_input_box .remove {
  11983. height: 20px;
  11984. width: 20px;
  11985. min-width: 20px;
  11986. background-size: 100% 100%;
  11987. background-position: unset;
  11988. margin-left: 5px;
  11989. }
  11990. .elist_input_box>>>.el-rate {
  11991. display: flex;
  11992. height: 36px;
  11993. align-items: center;
  11994. }
  11995. .elist_input_box .elist_inptu_text {
  11996. width: 100%;
  11997. display: flex;
  11998. align-items: center;
  11999. margin-top: 10px;
  12000. }
  12001. .elist_input_box .elist_inptu_text input {
  12002. /* width: 500px; */
  12003. width: 100%;
  12004. max-width: unset;
  12005. }
  12006. .elist_input_box>>>.el-rate__icon {
  12007. font-size: 24px;
  12008. }
  12009. .elist_btn {
  12010. margin-top: 10px;
  12011. }
  12012. .lineTitle {
  12013. /* margin-top: 15px; */
  12014. width: 110px;
  12015. font-size: 16px;
  12016. display: flex;
  12017. align-items: center;
  12018. line-height: 20px;
  12019. }
  12020. .lineTitle::before {
  12021. content: '';
  12022. display: block;
  12023. width: 3px;
  12024. height: 20px;
  12025. background: #0061FF;
  12026. border-radius: 3px;
  12027. margin: 0 5px 0 0;
  12028. }
  12029. .clineTitle::before {
  12030. content: '';
  12031. display: block;
  12032. min-width: 10px;
  12033. width: 10px;
  12034. height: 10px;
  12035. background: #0061ff;
  12036. border-radius: 50%;
  12037. margin: 0 5px 0 0;
  12038. }
  12039. .courseTop {
  12040. display: flex;
  12041. flex-direction: row;
  12042. justify-content: space-between;
  12043. align-items: center;
  12044. width: calc(100%);
  12045. padding: 10px 0;
  12046. margin: 0 auto;
  12047. }
  12048. .stepsNav {
  12049. display: flex;
  12050. flex-direction: row;
  12051. justify-content: flex-start;
  12052. align-items: center;
  12053. }
  12054. .stepsWord {
  12055. font-size: 18px;
  12056. color: #fff;
  12057. font-weight: bold;
  12058. margin-left: auto;
  12059. background: rgb(15, 126, 255);
  12060. border-radius: 5px;
  12061. padding: 3px 25px;
  12062. box-sizing: border-box;
  12063. }
  12064. .rightBox {
  12065. width: calc(100%);
  12066. background: #F0F2F5;
  12067. /* border-radius: 10px; */
  12068. overflow: auto;
  12069. height: calc(100% - 120px);
  12070. margin: 0 auto;
  12071. position: relative;
  12072. box-sizing: border-box;
  12073. border-radius: 5px;
  12074. }
  12075. .e_add_top {
  12076. display: flex;
  12077. justify-content: space-between;
  12078. padding: 20px 20px 0 20px;
  12079. border-radius: 3px;
  12080. background: #fff;
  12081. }
  12082. .e_add_title2 {
  12083. display: flex;
  12084. align-items: center;
  12085. }
  12086. .e_add_title2 span {
  12087. width: 40px;
  12088. }
  12089. .e_add_title {
  12090. display: flex;
  12091. align-items: center;
  12092. color: #b8b8b8;
  12093. font-size: 18px;
  12094. position: relative;
  12095. height: 40px;
  12096. }
  12097. .e_add_title span {
  12098. margin-right: 10px;
  12099. }
  12100. .e_add_title .el_input {
  12101. width: 300px;
  12102. }
  12103. .e_add_title>>>.el-input__inner {
  12104. width: 400px;
  12105. }
  12106. .e_add_btn {}
  12107. .e_add_content {
  12108. display: flex;
  12109. width: 100%;
  12110. }
  12111. .e_add_list {
  12112. background: #fff;
  12113. height: 500px;
  12114. width: 210px;
  12115. position: relative;
  12116. margin: 15px 5px 0 0;
  12117. flex-shrink: 0;
  12118. display: flex;
  12119. flex-direction: column;
  12120. }
  12121. .e_add_list_title {
  12122. font-size: 20px;
  12123. width: 100%;
  12124. box-sizing: border-box;
  12125. padding: 15px 40px;
  12126. text-align: center;
  12127. border-bottom: 1px solid #eaeaea;
  12128. position: relative;
  12129. display: flex;
  12130. align-items: center;
  12131. justify-content: center;
  12132. height: 57px;
  12133. background: #f6f6f6;
  12134. }
  12135. .e_add_list_title span {
  12136. overflow: hidden;
  12137. white-space: nowrap;
  12138. text-overflow: ellipsis;
  12139. }
  12140. .e_add_list_title img {
  12141. position: absolute;
  12142. right: 15px;
  12143. width: 25px;
  12144. cursor: pointer;
  12145. top: 50%;
  12146. transform: translateY(-50%);
  12147. }
  12148. .e_add_list_body {
  12149. height: calc(100% - 187px);
  12150. overflow: auto;
  12151. }
  12152. .e_add_list_child {
  12153. width: 100%;
  12154. display: flex;
  12155. align-items: center;
  12156. justify-content: center;
  12157. position: relative;
  12158. box-sizing: border-box;
  12159. padding: 15px 40px;
  12160. text-align: center;
  12161. }
  12162. .e_add_list_child span {
  12163. overflow: hidden;
  12164. white-space: nowrap;
  12165. text-overflow: ellipsis;
  12166. cursor: pointer;
  12167. }
  12168. .e_add_list_child img {
  12169. position: absolute;
  12170. right: 10px;
  12171. width: 21px;
  12172. cursor: pointer;
  12173. top: 50%;
  12174. transform: translateY(-50%);
  12175. }
  12176. .e_add_list_child+.e_add_list_child {
  12177. border-top: 1px solid #eaeaea;
  12178. }
  12179. .e_add_list_child .active {
  12180. color: #409eff;
  12181. }
  12182. .e_add_list_btn {
  12183. position: absolute;
  12184. bottom: 0;
  12185. height: 50px;
  12186. background: rgb(120, 120, 254);
  12187. width: 100%;
  12188. color: #fff;
  12189. font-size: 16px;
  12190. text-align: center;
  12191. line-height: 50px;
  12192. cursor: pointer;
  12193. }
  12194. .e_add_list_detail {
  12195. position: absolute;
  12196. bottom: 0;
  12197. height: 130px;
  12198. background: rgb(120, 120, 254);
  12199. width: 100%;
  12200. color: #fff;
  12201. font-size: 16px;
  12202. display: flex;
  12203. align-items: center;
  12204. justify-content: center;
  12205. }
  12206. .e_add_list_detail textarea {
  12207. height: 90%;
  12208. width: 95%;
  12209. border: none;
  12210. resize: none;
  12211. outline: none;
  12212. padding: 5px;
  12213. box-sizing: border-box;
  12214. }
  12215. .e_add_list_pbox {
  12216. width: 100%;
  12217. }
  12218. .e_add_list_pbox_title {
  12219. height: 50px;
  12220. background: #fff;
  12221. display: flex;
  12222. align-items: center;
  12223. width: 100%;
  12224. box-sizing: border-box;
  12225. padding: 0 20px;
  12226. flex-direction: row;
  12227. flex-wrap: wrap;
  12228. }
  12229. .type_title {
  12230. font-size: 18px;
  12231. font-weight: 700;
  12232. }
  12233. .type_content {
  12234. font-size: 16px;
  12235. margin-left: 30px;
  12236. }
  12237. .type_content span+span {
  12238. margin-left: 20px;
  12239. }
  12240. .type_content span {
  12241. cursor: pointer;
  12242. padding-bottom: 5px;
  12243. box-sizing: border-box;
  12244. }
  12245. .type_content .active {
  12246. color: #409eff;
  12247. border-bottom: 2px solid #409eff;
  12248. }
  12249. .e_add_list_pbox_content {
  12250. height: calc(100% - 50px);
  12251. display: flex;
  12252. align-items: center;
  12253. width: 100%;
  12254. background: #fff;
  12255. }
  12256. .mbCss {
  12257. width: 100%;
  12258. display: flex;
  12259. flex-direction: row;
  12260. flex-wrap: nowrap;
  12261. align-content: center;
  12262. align-items: flex-start;
  12263. justify-content: flex-start;
  12264. }
  12265. .pjCss {
  12266. /* width: 42%; */
  12267. width: calc(100% - 55%);
  12268. display: flex;
  12269. flex-direction: column;
  12270. flex-wrap: nowrap;
  12271. align-items: flex-start;
  12272. margin-top: 1.5%;
  12273. }
  12274. .e_box {
  12275. display: flex;
  12276. flex-wrap: wrap;
  12277. max-height: 500px;
  12278. align-items: flex-start;
  12279. overflow: auto;
  12280. }
  12281. .e_card {
  12282. border: 1px solid #ccc;
  12283. background: #fff;
  12284. margin-right: 20px;
  12285. width: 270px;
  12286. display: flex;
  12287. flex-direction: column;
  12288. align-items: center;
  12289. border-radius: 5px;
  12290. margin-top: 10px;
  12291. text-align: center;
  12292. }
  12293. .e_card_picture {
  12294. margin: 10px 0;
  12295. }
  12296. .e_card_picture>img {
  12297. width: 50px;
  12298. }
  12299. .e_card_name {
  12300. width: 100%;
  12301. padding: 0 10px;
  12302. box-sizing: border-box;
  12303. margin-bottom: 10px;
  12304. overflow: hidden;
  12305. text-overflow: ellipsis;
  12306. white-space: nowrap;
  12307. }
  12308. .e_card_time {
  12309. width: 100%;
  12310. padding: 0 10px;
  12311. box-sizing: border-box;
  12312. font-size: 15px;
  12313. color: #c3c3c3;
  12314. margin-bottom: 10px;
  12315. }
  12316. .e_card_btn {
  12317. height: 40px;
  12318. display: flex;
  12319. align-items: center;
  12320. width: 100%;
  12321. background: rgb(244, 244, 244);
  12322. }
  12323. .e_card_btn:hover {
  12324. background: rgb(221 221 221);
  12325. }
  12326. .e_card_btn span {
  12327. flex: 1 1 auto;
  12328. text-align: center;
  12329. cursor: pointer;
  12330. }
  12331. .addEva {
  12332. border: 1px solid #ccc;
  12333. background: #fff;
  12334. margin-right: 20px;
  12335. width: 270px;
  12336. height: 149px;
  12337. display: flex;
  12338. flex-direction: column;
  12339. align-items: center;
  12340. border-radius: 5px;
  12341. margin-top: 10px;
  12342. text-align: center;
  12343. cursor: pointer;
  12344. justify-content: center;
  12345. }
  12346. .addEva>img {
  12347. width: 50px;
  12348. object-fit: cover;
  12349. }
  12350. .uploadFm {
  12351. border: 1px dashed #ccc;
  12352. width: 100%;
  12353. height: 140px;
  12354. position: relative;
  12355. cursor: pointer;
  12356. display: flex;
  12357. flex-direction: column;
  12358. justify-content: center;
  12359. align-items: center;
  12360. font-size: 14px;
  12361. color: #6e6e6e;
  12362. position:relative;
  12363. }
  12364. .cover_p{
  12365. width: 100% !important;
  12366. height: 100%;
  12367. object-fit: cover;
  12368. }
  12369. .uploadFm2:hover .cover_mask{
  12370. display: flex !important;
  12371. }
  12372. .cover_mask{
  12373. display:none;
  12374. width:100%;
  12375. height:100%;
  12376. position:absolute;
  12377. background:#00000054;
  12378. align-items: center;
  12379. justify-content: center;
  12380. flex-direction: column;
  12381. }
  12382. .cover_mask > img{
  12383. width: 30px;
  12384. }
  12385. .cover_mask > span{
  12386. color: #fff;
  12387. font-size: 12px;
  12388. }
  12389. .uploadFm>img {
  12390. width: 50px;
  12391. }
  12392. .fileCss {
  12393. width: 100%;
  12394. display: flex;
  12395. flex-direction: row;
  12396. flex-wrap: nowrap;
  12397. justify-content: space-around;
  12398. align-items: center;
  12399. padding-top: 15px;
  12400. }
  12401. .fileCss>div {
  12402. display: flex;
  12403. flex-direction: column;
  12404. align-items: center;
  12405. }
  12406. .fileCss .spanName {
  12407. margin-top: 10px
  12408. }
  12409. .sysPicBox {
  12410. display: flex;
  12411. flex-direction: row;
  12412. flex-wrap: wrap;
  12413. align-content: flex-start;
  12414. height: 435px;
  12415. overflow: auto;
  12416. position: relative;
  12417. }
  12418. .picNone {
  12419. position: absolute;
  12420. left: 50%;
  12421. top: 45%;
  12422. transform: translate(-50%, -50%);
  12423. width: fit-content;
  12424. color: #9c9c9c;
  12425. }
  12426. .sysPic {
  12427. width: 200px;
  12428. height: 115px;
  12429. margin: 0 20px 20px 0;
  12430. cursor: pointer;
  12431. }
  12432. .sysPic>img,
  12433. .isSysPic>img,
  12434. .deletePic>img {
  12435. width: 100%;
  12436. height: 100%;
  12437. object-fit: cover;
  12438. }
  12439. .isSysPic {
  12440. width: 200px;
  12441. height: 115px;
  12442. position: relative;
  12443. }
  12444. .deletePic {
  12445. width: 20px;
  12446. height: 20px;
  12447. position: absolute;
  12448. top: 0;
  12449. right: 0;
  12450. cursor: pointer;
  12451. }
  12452. .select_box1 {
  12453. height: 100%;
  12454. }
  12455. .select_box1_img {
  12456. background: #fff;
  12457. border-radius: 5px;
  12458. padding: 15px;
  12459. box-sizing: border-box;
  12460. margin-bottom: 20px;
  12461. }
  12462. .select_box1_title {
  12463. padding: 0 0 15px 0;
  12464. border-bottom: 1px solid #eee;
  12465. margin-bottom: 15px;
  12466. }
  12467. .select_box1_title span:nth-child(1) {
  12468. font-size: 16px;
  12469. margin-right: 20px;
  12470. color: #000;
  12471. }
  12472. .select_box1_title span:nth-child(2) {
  12473. font-size: 14px;
  12474. color: rgb(112, 112, 112);
  12475. }
  12476. .select_box1_add_img {}
  12477. .select_box1_select {
  12478. background: #fff;
  12479. border-radius: 5px;
  12480. padding: 15px;
  12481. box-sizing: border-box;
  12482. height: calc(100% - 200px);
  12483. overflow: auto;
  12484. }
  12485. .select_box2 {
  12486. height: 100%;
  12487. }
  12488. .select_box2_title {
  12489. background: #fff;
  12490. border-radius: 5px;
  12491. padding: 5px 10px;
  12492. box-sizing: border-box;
  12493. margin-bottom: 10px;
  12494. }
  12495. .select_box2_box {
  12496. display: flex;
  12497. height: calc(100% - 30px);
  12498. }
  12499. .select_box2_img {
  12500. width: calc(100% - 310px);
  12501. height: 100%;
  12502. overflow: auto;
  12503. background: #fff;
  12504. border-radius: 5px;
  12505. }
  12506. .select_box2_img img {
  12507. width: 100%;
  12508. }
  12509. .select_box2_answer {
  12510. background: #fff;
  12511. margin-left: 10px;
  12512. border-radius: 5px;
  12513. width: 300px;
  12514. overflow: auto;
  12515. height: 100%;
  12516. display: flex;
  12517. flex-direction: column;
  12518. align-items: center;
  12519. padding-top: 10px;
  12520. box-sizing: border-box;
  12521. }
  12522. .select_box2_answer_box {
  12523. margin: 0 0 10px 0;
  12524. width: 85%;
  12525. }
  12526. .rate_textarea {
  12527. font: inherit;
  12528. color: currentColor;
  12529. width: 100%;
  12530. padding: 8px 14px;
  12531. display: block;
  12532. min-width: 0;
  12533. outline: none;
  12534. border: 1px solid rgba(0, 0, 0, 0.23);
  12535. border-radius: 4px;
  12536. box-sizing: border-box;
  12537. background: #fff;
  12538. margin: 0 20px 0 0;
  12539. resize: none;
  12540. }
  12541. .select_answer_title {
  12542. text-align: left;
  12543. width: 85%;
  12544. margin-bottom: 10px;
  12545. font-size: 18px;
  12546. color: #8e8e8e;
  12547. }
  12548. .mask {
  12549. background-color: rgb(0 0 0 / 30%);
  12550. /* position: fixed; */
  12551. position: absolute;
  12552. top: 0;
  12553. left: 0;
  12554. width: 100%;
  12555. height: 100%;
  12556. z-index: 90;
  12557. display: flex;
  12558. align-items: center;
  12559. justify-content: center;
  12560. }
  12561. .progressBox {
  12562. width: 300px;
  12563. height: 150px;
  12564. background: #fff;
  12565. border-radius: 10px;
  12566. box-shadow: 0 0 6px 1px #bfbfbf;
  12567. display: flex;
  12568. align-items: center;
  12569. justify-content: center;
  12570. flex-direction: column;
  12571. position: relative;
  12572. color: #6c6c6c;
  12573. }
  12574. .progressBox>>>.el-progress-bar__outer {
  12575. background-color: #d1dfff !important;
  12576. }
  12577. .progressBox .lbox {
  12578. height: 50px;
  12579. font-size: 19px;
  12580. display: flex;
  12581. align-items: center;
  12582. color: #747474;
  12583. }
  12584. .progressBox .lbox img {
  12585. width: 40px;
  12586. margin-right: 20px;
  12587. }
  12588. .closeCss {
  12589. position: absolute;
  12590. top: 8px;
  12591. right: 8px;
  12592. cursor: pointer;
  12593. width: 20px;
  12594. height: 20px;
  12595. }
  12596. .closeCss>img {
  12597. width: 100%;
  12598. height: 100%;
  12599. }
  12600. .updateTips::after {
  12601. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  12602. font-size: 14px;
  12603. margin-left: 20px;
  12604. font-weight: 400;
  12605. color: #ff3a3a;
  12606. }
  12607. .updateMask {
  12608. width: 100%;
  12609. z-index: 3;
  12610. top: 0;
  12611. position: absolute;
  12612. /* background-color: rgba(0,0,0,.3); */
  12613. }
  12614. .t_j_box {
  12615. display: flex;
  12616. }
  12617. .t_j_box span:nth-child(1) {
  12618. width: 15%;
  12619. overflow: hidden;
  12620. margin-right: 10px;
  12621. text-overflow: ellipsis;
  12622. white-space: nowrap;
  12623. }
  12624. .t_j_box span:nth-child(2) {
  12625. width: 30%;
  12626. overflow: hidden;
  12627. text-overflow: ellipsis;
  12628. margin-right: 10px;
  12629. }
  12630. .t_j_box span:nth-child(3) {
  12631. max-width: calc(55% - 20px);
  12632. overflow: hidden;
  12633. text-overflow: ellipsis;
  12634. }
  12635. .sentenBox {
  12636. background: #fff;
  12637. height: 600px;
  12638. overflow: auto;
  12639. background-image: url("../../../assets/icon/conSentences/csBg.png");
  12640. background-position: 102%;
  12641. background-repeat: no-repeat;
  12642. background-size: 60%;
  12643. }
  12644. .sentenBox>.sentenContent {
  12645. padding-bottom: 10px;
  12646. width: 97%;
  12647. margin: 0 auto;
  12648. }
  12649. .sentenBox>.sentenContent+.sentenContent {
  12650. border-top: 1px solid #cbcbcb;
  12651. }
  12652. .addSen {
  12653. background: #409efe;
  12654. width: 90px;
  12655. color: #fff;
  12656. height: 35px;
  12657. text-align: center;
  12658. line-height: 35px;
  12659. border-radius: 5px;
  12660. float: right;
  12661. margin: 10px 20px 0 0;
  12662. cursor: pointer;
  12663. }
  12664. .sentenTop {
  12665. display: flex;
  12666. flex-direction: row;
  12667. flex-wrap: nowrap;
  12668. align-items: center;
  12669. }
  12670. .sentenTop::before {
  12671. content: attr(index);
  12672. background: #3681fc;
  12673. border-radius: 50%;
  12674. color: #fff;
  12675. width: 25px;
  12676. height: 25px;
  12677. min-width: 25px;
  12678. min-height: 25px;
  12679. text-align: center;
  12680. line-height: 25px;
  12681. margin-right: 5px;
  12682. }
  12683. .sentenTop>div:nth-child(2) {
  12684. width: 300px;
  12685. margin: 0 15px;
  12686. }
  12687. .sentenTop>div:nth-child(3) {
  12688. background: #409efe;
  12689. color: #fff;
  12690. width: 65px;
  12691. height: 35px;
  12692. text-align: center;
  12693. line-height: 35px;
  12694. border-radius: 5px;
  12695. cursor: pointer;
  12696. }
  12697. .cardList {
  12698. padding: 20px 0 20px 0;
  12699. display: flex;
  12700. flex-direction: row;
  12701. flex-wrap: wrap;
  12702. align-items: center;
  12703. box-sizing: border-box;
  12704. border-bottom: 1px solid #f4f4f4;
  12705. width: 98%;
  12706. margin: 0 auto;
  12707. }
  12708. .rightCardList {
  12709. display: flex;
  12710. flex-wrap: wrap;
  12711. }
  12712. .cardBox {
  12713. display: flex;
  12714. flex-direction: row;
  12715. flex-wrap: wrap;
  12716. align-items: center;
  12717. align-content: center;
  12718. }
  12719. .isCard,
  12720. .isCard1 {
  12721. width: auto;
  12722. padding: 0 20px;
  12723. height: 65px;
  12724. text-align: center;
  12725. line-height: 65px;
  12726. font-size: 14px;
  12727. cursor: pointer;
  12728. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  12729. background-size: 100% 100%;
  12730. position: relative;
  12731. z-index: 99;
  12732. }
  12733. .isCard1 {
  12734. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  12735. }
  12736. .isCard:hover .deleteWord {
  12737. display: block;
  12738. }
  12739. .isCard>div:nth-child(1),
  12740. .isCard1>div:nth-child(1) {
  12741. white-space: nowrap;
  12742. overflow: hidden;
  12743. text-overflow: ellipsis;
  12744. width: 100%;
  12745. margin: 0 auto;
  12746. }
  12747. .card {
  12748. width: 140px;
  12749. height: 65px;
  12750. }
  12751. .card>img {
  12752. width: 100%;
  12753. height: 100%;
  12754. }
  12755. .rightCardBox {
  12756. width: 98%;
  12757. margin: 10px auto 0;
  12758. }
  12759. .rightCardBox>div:nth-child(1) {
  12760. margin-bottom: 10px;
  12761. }
  12762. .cardCss {
  12763. display: flex;
  12764. flex-direction: column;
  12765. flex-wrap: nowrap;
  12766. align-items: center;
  12767. border-bottom: 3px solid #b4c3d3;
  12768. padding: 0 0 5px 0;
  12769. /* margin-right: 10px; */
  12770. }
  12771. .cardCss>div:nth-child(2) {
  12772. background: #5b7b9d;
  12773. color: #fff;
  12774. width: 20px;
  12775. height: 20px;
  12776. border-radius: 50%;
  12777. text-align: center;
  12778. line-height: 20px;
  12779. }
  12780. .sentenTopBox {
  12781. display: flex;
  12782. flex-direction: row;
  12783. flex-wrap: nowrap;
  12784. align-items: center;
  12785. justify-content: space-between;
  12786. padding: 55px 0 0 20px;
  12787. box-sizing: border-box;
  12788. width: 85%;
  12789. }
  12790. .stepsBottom {
  12791. width: 85%;
  12792. margin-bottom: 20px;
  12793. box-shadow: 0 0 10px 10px #f7f7f7;
  12794. background: #f7f7f7;
  12795. border-radius: 10px;
  12796. overflow: hidden;
  12797. }
  12798. .course_left {
  12799. width: 300px;
  12800. height: auto;
  12801. position: relative;
  12802. }
  12803. .stepsBottom2 {
  12804. width: 300px;
  12805. margin: 10px 0;
  12806. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  12807. /* background: #f7f7f7; */
  12808. border-radius: 8px;
  12809. overflow: hidden;
  12810. height: fit-content;
  12811. position: relative;
  12812. /* transition: all .5s; */
  12813. }
  12814. .navTop {
  12815. background: #53749b;
  12816. color: #fff;
  12817. height: 40px;
  12818. line-height: 40px;
  12819. padding-left: 15px;
  12820. font-size: 18px;
  12821. }
  12822. .navBottom {
  12823. background: #fff;
  12824. height: calc(100vh - 210px);
  12825. overflow: auto;
  12826. }
  12827. .navTask {
  12828. display: flex;
  12829. flex-direction: row;
  12830. flex-wrap: nowrap;
  12831. align-items: center;
  12832. padding: 10px 10px 10px 0;
  12833. cursor: pointer;
  12834. background: #ffffff;
  12835. width: 95%;
  12836. margin: 5px auto 5px;
  12837. box-sizing: border-box;
  12838. border-radius: 5px;
  12839. flex-wrap: wrap;
  12840. position: relative;
  12841. }
  12842. .navTask:hover > .chapter_upload_drag{
  12843. display: block;
  12844. }
  12845. .navTask .chapter_upload_open {
  12846. content: '';
  12847. display: block;
  12848. width: 16px;
  12849. height: 16px;
  12850. background-image: url(../../../assets/icon/new/icon_arrow.png);
  12851. background-size: 100%;
  12852. margin-left: 23px;
  12853. }
  12854. .noImage .chapter_upload_open {
  12855. display: none;
  12856. background-image: unset !important;
  12857. }
  12858. .isNavOpen .chapter_upload_open {
  12859. /* background-image: url(../../assets/icon/new/icon_arrow_a.png) !important; */
  12860. transform: rotate(90deg);
  12861. }
  12862. .isNavTask .chapter_upload_open {
  12863. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  12864. transform: rotate(-90deg);
  12865. }
  12866. .isNavTask.isNavOpen .chapter_upload_open{
  12867. transform: rotate(0deg);
  12868. }
  12869. .dragOverTop {
  12870. border-top: 2px solid #0061FF !important;
  12871. border-radius: 0 !important;
  12872. margin-top: 10px;
  12873. }
  12874. .dragOverBottom {
  12875. border-bottom: 2px solid #0061FF !important;
  12876. border-radius: 0 !important;
  12877. margin-top: 10px;
  12878. }
  12879. .dragOverTop2 {
  12880. border-top: 2px solid #0061FF !important;
  12881. border-radius: 0 !important;
  12882. }
  12883. .dragOverBottom2 {
  12884. border-bottom: 2px solid #0061FF !important;
  12885. border-radius: 0 !important;
  12886. }
  12887. .isNavTask {
  12888. /* background: #3681FC; */
  12889. background: #EEF3FB;
  12890. }
  12891. .isNavTask>.chapter_upload_drag {
  12892. background-image: url(../../../assets/icon/new/icon_course_drag_active.png) !important;
  12893. }
  12894. .isNavTask .nt_taskName {
  12895. /* color: #fff !important; */
  12896. font-weight: bold !important;
  12897. color: #0061FF !important;
  12898. }
  12899. .isNavTask .nt_taskTitle {
  12900. /* color: #AECCFE !important; */
  12901. font-weight: bold !important;
  12902. color: #0061FF !important;
  12903. }
  12904. .navTask .nt_taskBox {
  12905. width: calc(100% - 40px);
  12906. padding: 0 0 0 5px;
  12907. box-sizing: border-box;
  12908. box-sizing: border-box;
  12909. display: flex;
  12910. flex-direction: row;
  12911. flex-wrap: nowrap;
  12912. align-items: baseline;
  12913. }
  12914. .navTask .nt_taskTitle {
  12915. /* color: #717C8D; */
  12916. color: #060E17;
  12917. line-height: 25px;
  12918. font-size: 16px;
  12919. /* min-width: 66px; */
  12920. }
  12921. .navTask .nt_taskName {
  12922. /* color: #fff; */
  12923. /* max-width: 130px; */
  12924. /* width: 100%; */
  12925. max-width: calc(100% - 66px);
  12926. font-size: 16px;
  12927. color: #060E17;
  12928. /* color: #0E1E33; */
  12929. }
  12930. .navTask .nt_taskName span{
  12931. width: 100%;
  12932. white-space: nowrap;
  12933. overflow: hidden;
  12934. text-overflow: ellipsis;
  12935. display:block;
  12936. }
  12937. .gjBox {
  12938. width: calc(100% - 25px);
  12939. padding: 0 0 0 0;
  12940. box-sizing: border-box;
  12941. border-left: 1px solid #CAD1DC;
  12942. margin-left: 25px;
  12943. }
  12944. .gjBox>div {
  12945. display: flex;
  12946. align-items: center;
  12947. }
  12948. .gjBox>div::before {
  12949. content: '';
  12950. height: 1px;
  12951. width: 10px;
  12952. background: #CAD1DC;
  12953. display: block;
  12954. margin-right: 5px;
  12955. }
  12956. .gjCss {
  12957. display: flex;
  12958. flex-direction: row;
  12959. flex-wrap: nowrap;
  12960. align-items: center;
  12961. padding: 15px 0;
  12962. box-sizing: border-box;
  12963. font-size: 14px;
  12964. cursor: pointer;
  12965. }
  12966. .isGjCss {
  12967. color: #0061ff;
  12968. }
  12969. .groupBox {}
  12970. .groupContent+.groupContent {
  12971. margin-top: 30px;
  12972. }
  12973. .groupTitle {
  12974. font-size: 24px;
  12975. color: rgb(80, 80, 80);
  12976. margin-bottom: 20px;
  12977. }
  12978. .groupName {
  12979. display: flex;
  12980. align-items: center;
  12981. }
  12982. .groupn {
  12983. font-size: 15px;
  12984. margin-right: 10px;
  12985. }
  12986. .groupName+.groupName {
  12987. margin-top: 15px;
  12988. }
  12989. .groupBtn {
  12990. margin-left: 10px;
  12991. }
  12992. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  12993. text-align: left;
  12994. }
  12995. .radioBox>div {
  12996. margin: 10px 0 0 10px;
  12997. }
  12998. .radioBox>>>.el-radio__input,
  12999. .radioBox>>>.el-checkbox__inner {
  13000. margin-left: 10px;
  13001. }
  13002. .radioBox>>>.el-radio__label,
  13003. .radioBox>>>.el-checkbox__label {
  13004. display: flex;
  13005. align-items: center;
  13006. }
  13007. .inImg {
  13008. width: 50px;
  13009. }
  13010. .inImg>img {
  13011. width: 100%;
  13012. height: 100%;
  13013. object-fit: cover;
  13014. }
  13015. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  13016. height: auto;
  13017. padding: 10px;
  13018. margin: 0;
  13019. }
  13020. .upCss>>>.el-upload-list {
  13021. width: 100%;
  13022. }
  13023. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  13024. width: 100%;
  13025. height: 120px;
  13026. object-fit: contain;
  13027. background: unset;
  13028. margin-left: 0;
  13029. }
  13030. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  13031. display: none;
  13032. }
  13033. .tcMember+.tcMember::before {
  13034. content: "、";
  13035. }
  13036. .xzUpImg {
  13037. width: 25px;
  13038. height: 25px;
  13039. min-width: 25px;
  13040. min-height: 25px;
  13041. cursor: pointer;
  13042. margin: 0 10px;
  13043. }
  13044. .xzUpImg>img {
  13045. width: 100%;
  13046. height: 100%;
  13047. }
  13048. .closeCss {
  13049. position: absolute;
  13050. top: 8px;
  13051. right: 8px;
  13052. cursor: pointer;
  13053. width: 20px;
  13054. height: 20px;
  13055. }
  13056. .closeCss>img {
  13057. width: 100%;
  13058. height: 100%;
  13059. }
  13060. .moveBtn {
  13061. display: flex;
  13062. flex-direction: row;
  13063. flex-wrap: nowrap;
  13064. align-items: center;
  13065. width: 55px;
  13066. }
  13067. .timuUpImg {
  13068. display: flex;
  13069. flex-direction: row;
  13070. align-items: center;
  13071. width: 100%;
  13072. margin-right: 10px;
  13073. }
  13074. .timuUpImg>div:nth-child(1) {
  13075. margin-right: 10px;
  13076. display: flex;
  13077. align-items: center;
  13078. width: 100%;
  13079. }
  13080. .timuImgBox {
  13081. margin: 10px 0;
  13082. display: flex;
  13083. flex-direction: column;
  13084. flex-wrap: wrap;
  13085. align-items: flex-start;
  13086. }
  13087. .timuImg {
  13088. width: 100px;
  13089. margin: 5px 0;
  13090. cursor: pointer;
  13091. position: relative;
  13092. }
  13093. .timuImg:hover .deleteWord {
  13094. display: block;
  13095. }
  13096. .deleteWord {
  13097. width: 25px;
  13098. height: 25px;
  13099. position: absolute;
  13100. right: -5px;
  13101. top: -5px;
  13102. cursor: pointer;
  13103. display: none;
  13104. }
  13105. .timuImg>img,
  13106. .deleteWord>img {
  13107. width: 100%;
  13108. height: 100%;
  13109. object-fit: cover;
  13110. }
  13111. .e_add_delete {
  13112. cursor: pointer;
  13113. margin-left: 10px;
  13114. }
  13115. .pType_box {
  13116. margin-top: 30px;
  13117. align-items: flex-end;
  13118. }
  13119. .noneBox {
  13120. height: 100%;
  13121. width: 100%;
  13122. display: flex;
  13123. align-items: center;
  13124. justify-content: center;
  13125. margin-top: 150px;
  13126. }
  13127. .noneBox>img {
  13128. width: 300px;
  13129. }
  13130. .textarea_css {
  13131. display: block;
  13132. resize: none;
  13133. padding: 10px 15px;
  13134. line-height: 1.5;
  13135. box-sizing: border-box;
  13136. width: 100%;
  13137. font-size: 14px;
  13138. color: #606266;
  13139. background-color: #FFF;
  13140. background-image: none;
  13141. border: 1px solid #DCDFE6;
  13142. border-radius: 4px;
  13143. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  13144. outline: none;
  13145. overflow: hidden;
  13146. height: 46px;
  13147. font-family: 'Microsoft YaHei';
  13148. }
  13149. .textarea_css::-webkit-input-placeholder {
  13150. color: #C0C4CC
  13151. }
  13152. .textarea_css:focus {
  13153. border-color: #409EFF;
  13154. outline: 0;
  13155. }
  13156. .moveBtn2 {
  13157. flex-direction: column;
  13158. width: fit-content;
  13159. margin: 0 10px 0 10px;
  13160. }
  13161. .moveBtn2 .chapter_upload_down,
  13162. .moveBtn2 .chapter_upload_up {
  13163. width: 16px;
  13164. height: 16px;
  13165. }
  13166. .moveBtn2 .chapter_upload_up::after,
  13167. .moveBtn2 .chapter_upload_down::after {
  13168. width: 10px;
  13169. height: 10px;
  13170. }
  13171. .fullStyle>>>.el-dialog__body {
  13172. height: calc(100% - 125px) !important;
  13173. box-sizing: border-box;
  13174. }
  13175. .fullStyle>>>.el-dialog {
  13176. width: 100% !important;
  13177. max-width: 100% !important;
  13178. height: 100% !important;
  13179. margin: 0 !important;
  13180. }
  13181. .fullStyle {
  13182. width: 100% !important;
  13183. max-width: 100% !important;
  13184. height: 100% !important;
  13185. margin: 0 auto !important;
  13186. }
  13187. .fullStyle1>>>.el-dialog__body {
  13188. height: auto !important;
  13189. }
  13190. .wb_j_box_btn {
  13191. width: calc(100% - 30px);
  13192. display: flex;
  13193. height: 40px;
  13194. border: 1.5px solid #CAD1DC;
  13195. border-radius: 4px;
  13196. box-sizing: border-box;
  13197. align-items: center;
  13198. font-size: 14px;
  13199. cursor: pointer;
  13200. overflow: hidden;
  13201. }
  13202. .wb_j_box_btn:hover {
  13203. border: 1.5px solid #0061FF;
  13204. }
  13205. .wb_j_box_title {
  13206. background: #F0F4FA;
  13207. height: 100%;
  13208. line-height: 40px;
  13209. width: 90px;
  13210. text-align: center;
  13211. color: #060E17;
  13212. border-right: 1.5px solid #CAD1DC;
  13213. box-sizing: border-box;
  13214. }
  13215. .wb_j_box_btn_c {
  13216. width: calc(100% - 90px);
  13217. padding: 0 35px 0 10px;
  13218. box-sizing: border-box;
  13219. position: relative;
  13220. }
  13221. .wb_j_box_span {
  13222. width: 100%;
  13223. overflow: hidden;
  13224. white-space: nowrap;
  13225. text-overflow: ellipsis;
  13226. word-wrap: break-word;
  13227. color: #717C8D;
  13228. }
  13229. .wb_j_box_arrow {
  13230. content: '';
  13231. width: 14px;
  13232. height: 14px;
  13233. background: url(../../../assets/icon/new/u_arrow.png);
  13234. background-size: 100% 100%;
  13235. position: absolute;
  13236. right: 12px;
  13237. top: 50%;
  13238. transform: translateY(-50%);
  13239. }
  13240. .check_classBox {
  13241. height: 400px;
  13242. display: flex;
  13243. border-top: 1.5px solid #E7EBF1;
  13244. border-bottom: 1.5px solid #E7EBF1;
  13245. }
  13246. .check_class_right {
  13247. width: 130px;
  13248. border-right: 1px solid #E7EBF1;
  13249. display: flex;
  13250. align-items: center;
  13251. flex-direction: column;
  13252. height: 100%;
  13253. overflow: auto;
  13254. padding: 15px 0;
  13255. box-sizing: border-box;
  13256. }
  13257. .check_class {
  13258. width: 85%;
  13259. border-radius: 5px;
  13260. height: 30px;
  13261. line-height: 30px;
  13262. text-align: center;
  13263. padding: 0 10px;
  13264. box-sizing: border-box;
  13265. cursor: pointer;
  13266. white-space: nowrap;
  13267. overflow: hidden;
  13268. text-overflow: ellipsis;
  13269. }
  13270. .check_class.activeX {
  13271. background: #E0EAFB;
  13272. color: #3681FC;
  13273. font-weight: 700;
  13274. }
  13275. .check_class+.check_class {
  13276. margin-top: 15px;
  13277. }
  13278. .check_class_left {
  13279. background: #FAFAFA;
  13280. width: calc(100% - 130px);
  13281. padding: 15px;
  13282. box-sizing: border-box;
  13283. }
  13284. .check_class_all_box {
  13285. display: flex;
  13286. margin-bottom: 10px;
  13287. }
  13288. .all_check {
  13289. display: flex;
  13290. align-items: center;
  13291. padding: 2px 0 0;
  13292. margin-left: 10px;
  13293. }
  13294. .all_check>>>.el-checkbox__label {
  13295. line-height: 18px;
  13296. }
  13297. .check_class_left_title {
  13298. font-size: 16px;
  13299. font-weight: 700;
  13300. }
  13301. .check_class_item {
  13302. display: flex;
  13303. flex-wrap: wrap;
  13304. height: calc(100% - 45px);
  13305. overflow: auto;
  13306. justify-content: flex-start;
  13307. align-items: flex-start;
  13308. align-content: flex-start;
  13309. }
  13310. .class_item:first-child {
  13311. /* margin: 0 15px 15px 67px; */
  13312. }
  13313. .class_item {
  13314. margin: 0 15px 15px 0;
  13315. }
  13316. .class_item:hover>>>.el-checkbox__label {
  13317. color: #409EFF;
  13318. }
  13319. .class_item>>>.el-checkbox__label {
  13320. color: #0E1E33;
  13321. }
  13322. .class_item:hover>>>.el-checkbox__inner {
  13323. border-color: #409EFF;
  13324. }
  13325. .class_item>>>.el-checkbox,
  13326. .class_item>>>.el-checkbox__input {
  13327. display: flex;
  13328. align-items: center;
  13329. }
  13330. .taskTitle{
  13331. font-size: 20px;
  13332. font-weight: bold;
  13333. margin-bottom: 35px;
  13334. }
  13335. .taskTitle:after{
  13336. content: '';
  13337. width: 100%;
  13338. display: block;
  13339. height: 1px;
  13340. background: #CAD1DC;
  13341. position: absolute;
  13342. left: 0;
  13343. margin: 15px 0 0;
  13344. }
  13345. </style>