addCourse.vue 382 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <div class="stepBg">
  6. <div class="stepTop">
  7. <div v-if="steps == 1" class="first" @click="navSteps(1)">
  8. <div>
  9. <img src="../../assets/icon/first.png" alt />
  10. </div>
  11. <div>填写基本信息</div>
  12. </div>
  13. <div v-else class="firstNo" @click="navSteps(1)">
  14. <div>
  15. <img src="../../assets/icon/firstNo.png" alt />
  16. </div>
  17. <div>填写基本信息</div>
  18. </div>
  19. <div v-show="cidType === 0" class="secondNo">
  20. <div
  21. v-if="steps == 2"
  22. class="newSteps second"
  23. @click="navSteps(2)"
  24. >
  25. <div style="margin: 5px 10px 0 0; width: 2rem">
  26. <img src="../../assets/icon/second.png" alt />
  27. </div>
  28. <div>选择课程框架</div>
  29. </div>
  30. <div v-else class="newSteps secondNo" @click="navSteps(2)">
  31. <div>
  32. <img src="../../assets/icon/secondNo.png" alt />
  33. </div>
  34. <div>选择课程框架</div>
  35. </div>
  36. </div>
  37. <div v-if="steps == 3" class="third" @click="navSteps(3)">
  38. <div>
  39. <img src="../../assets/icon/third.png" alt />
  40. </div>
  41. <div>上传课程内容</div>
  42. </div>
  43. <div v-else class="thirdNo" @click="navSteps(3)">
  44. <div>
  45. <img src="../../assets/icon/thirdNo.png" alt />
  46. </div>
  47. <div>上传课程内容</div>
  48. </div>
  49. <div v-if="steps == 4" class="four">
  50. <div>
  51. <img src="../../assets/icon/four.png" alt />
  52. </div>
  53. <div>上传完成</div>
  54. </div>
  55. <div v-else class="fourNo">
  56. <div>
  57. <img src="../../assets/icon/fourNo.png" alt />
  58. </div>
  59. <div>上传完成</div>
  60. </div>
  61. </div>
  62. <div
  63. class="stepsBottom"
  64. v-if="steps == 3 && unitJson[unitIndex].easy != 1"
  65. >
  66. <div class="navTop">辅助导航</div>
  67. <div class="navBottom">
  68. <div
  69. class="navTask"
  70. :class="{
  71. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  72. }"
  73. v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  74. .taskJson"
  75. :key="tIndex"
  76. @click="goToTask(tIndex)"
  77. >
  78. <div>任务{{ tIndex + 1 }}</div>
  79. <div>
  80. <el-tooltip effect="light" :content="t.task" placement="top">
  81. <span>{{ t.task }}</span>
  82. </el-tooltip>
  83. </div>
  84. <div
  85. class="moveBtn"
  86. v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1"
  87. >
  88. <div
  89. class="chapter_upload_up"
  90. style="width: 15px; height: 15px"
  91. @click.stop="taskMove(1, tIndex)"
  92. ></div>
  93. <div
  94. class="chapter_upload_down"
  95. style="width: 15px; height: 15px; margin: 2px 0 0"
  96. @click.stop="taskMove(2, tIndex)"
  97. ></div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  104. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  105. <div class="courseTop">
  106. <div class="stepsNav">
  107. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  108. <h3 class="info_title" v-if="steps == 2">请选择课程框架</h3>
  109. <h3 class="info_title" v-if="steps == 3">上传课程内容</h3>
  110. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  111. <el-breadcrumb
  112. separator-class="el-icon-arrow-right"
  113. style="margin-top: 15px"
  114. >
  115. <el-breadcrumb-item
  116. :to="{
  117. path:
  118. '/course?userid=' +
  119. userid +
  120. '&oid=' +
  121. oid +
  122. '&org=' +
  123. org +
  124. '&role=' +
  125. role,
  126. }"
  127. >课程管理</el-breadcrumb-item
  128. >
  129. <el-breadcrumb-item>
  130. <span style="color: rgb(15, 126, 255)">添加课程</span>
  131. </el-breadcrumb-item>
  132. </el-breadcrumb>
  133. </div>
  134. <div
  135. v-if="steps == 1 || steps == 2 || steps == 3"
  136. class="stepsWord"
  137. >
  138. {{
  139. steps == 1
  140. ? "第一步"
  141. : steps == 2
  142. ? "第二步"
  143. : steps == 3
  144. ? cidType === 0
  145. ? "第三步"
  146. : "第二步"
  147. : ""
  148. }}
  149. </div>
  150. </div>
  151. <div
  152. class="rightBox"
  153. v-if="this.steps == 1"
  154. @mousewheel="scrollChange"
  155. >
  156. <div
  157. class="updateMask"
  158. :style="{
  159. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  160. }"
  161. v-if="cid && userid != courseUserid"
  162. ></div>
  163. <div class="whiteBg">
  164. <div
  165. class="right_title"
  166. :class="{ updateTips: cid && userid != courseUserid }"
  167. >
  168. 课程基本信息
  169. </div>
  170. <div class="basic_box">
  171. <div class="big_box">
  172. <div class="left_first">
  173. <div>
  174. <div>
  175. <div class="bInfo_title" style="margin-bottom: 15px">
  176. <!-- <span style="color: red">*</span> -->
  177. 课程名称
  178. </div>
  179. <div style="display: flex; margin-right: 20px">
  180. <img
  181. src="../../assets/icon/projectName.png"
  182. alt
  183. style="margin-right: 8px"
  184. />
  185. <input
  186. type="text"
  187. placeholder="请输入课程名称"
  188. class="binfo_input"
  189. v-model="courseName"
  190. />
  191. </div>
  192. </div>
  193. <div
  194. class="pType_box all_choose"
  195. v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'"
  196. >
  197. <span>类型</span>
  198. <!-- 学科+ 主题+ 未来+ -->
  199. <el-radio-group
  200. @change="CourseType2Change"
  201. v-model="pTypeCheckName"
  202. style="display: flex; align-items: center"
  203. >
  204. <div
  205. class="all_choose"
  206. style="width: 100px"
  207. v-for="(item, index) in CourseType2"
  208. :key="index"
  209. >
  210. <el-radio :label="item.name">{{
  211. item.name
  212. }}</el-radio>
  213. </div>
  214. </el-radio-group>
  215. </div>
  216. <div class="both">
  217. <div class="choose">
  218. <div
  219. class="all_choose"
  220. v-for="(item, index) in CourseType[0]"
  221. :key="index"
  222. >
  223. <span
  224. v-if="
  225. CourseTypeJson[item.id].length > 0 &&
  226. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  227. ? pTypeCheck.indexOf(item.id) != -1
  228. : true)
  229. "
  230. >{{ item.name }}</span
  231. >
  232. <el-checkbox-group
  233. v-model="courseTypeId"
  234. v-if="
  235. CourseTypeJson[item.id].length > 0 &&
  236. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  237. ? pTypeCheck.indexOf(item.id) != -1
  238. : true)
  239. "
  240. >
  241. <el-checkbox
  242. v-for="item1 in CourseTypeJson[item.id]"
  243. :key="item1.id"
  244. :label="item1.id"
  245. >{{ item1.name }}</el-checkbox
  246. >
  247. </el-checkbox-group>
  248. <!-- <div
  249. v-else
  250. style="font-size: 14px; margin-left: -8px"
  251. >
  252. 暂无
  253. </div> -->
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="whiteBg" style="border-radius: 0">
  263. <div class="right_first">
  264. <div class="right_title">上传封面与成员</div>
  265. <div
  266. style="
  267. padding: 0 0 50px 20px;
  268. display: flex;
  269. align-items: baseline;
  270. justify-content: flex-start;
  271. margin: 0 auto;
  272. "
  273. >
  274. <div>
  275. <div class="bInfo_title" style="margin-top: 0 !important">
  276. 课程封面
  277. </div>
  278. <div
  279. class="uploadFm"
  280. @click="choosePicVisible = true"
  281. v-if="cover.length == 0"
  282. >
  283. <img src="../../assets/icon/addPoster.png" alt="" />
  284. </div>
  285. <el-upload
  286. :class="{ disUoloadSty: noneBtnImg }"
  287. class="upCss"
  288. action="#"
  289. list-type="picture"
  290. v-loading="uploadLoading1"
  291. :http-request="beforeUpload1"
  292. ref="upload1"
  293. :on-preview="handlePictureCardPreview"
  294. :on-remove="handle_remove1"
  295. :show-file-list="true"
  296. :file-list="cover"
  297. accept="image/*"
  298. :limit="1"
  299. :on-exceed="onExceed"
  300. v-else
  301. >
  302. <i class="el-icon-plus"></i>
  303. </el-upload>
  304. </div>
  305. <div
  306. style="
  307. display: flex;
  308. flex-flow: row nowrap;
  309. flex-direction: row;
  310. flex-wrap: wrap;
  311. align-items: baseline;
  312. margin: 0 30px;
  313. "
  314. >
  315. <!-- <div style="margin: 0 80px">
  316. <div class="bInfo_title">
  317. 选择课程成员
  318. </div>
  319. <div
  320. class="addPeople"
  321. @click="addPP"
  322. v-if="this.checkboxList.length == 0"
  323. >添加成员</div>
  324. <div class="addPeople" @click="addPP" v-else>已添加,点击查看</div>
  325. </div>-->
  326. <div style="margin: 0 30px 0 0; width: 150px">
  327. <div class="bInfo_title">添加班级</div>
  328. <div
  329. class="addPeople"
  330. @click="
  331. (dialogVisibleClass = true),
  332. (classSearch = ''),
  333. getClass()
  334. "
  335. >
  336. 添加班级
  337. </div>
  338. <div
  339. v-if="checkboxList2.length"
  340. style="
  341. max-width: 100%;
  342. word-break: break-all;
  343. overflow: hidden;
  344. margin-top: 10px;
  345. font-size: 14px;
  346. color: #6e6e6e;
  347. "
  348. >
  349. <span
  350. :class="{ tcMember: getClassC(tc) }"
  351. v-for="(tc, tcIndex) in checkboxList2"
  352. :key="tcIndex"
  353. >{{ getClassC(tc) }}</span
  354. >
  355. </div>
  356. </div>
  357. <div
  358. style="flex: 0.5 1 0%; margin: 0; width: 180px"
  359. v-if="courseUserid != '' ? courseUserid == userid : true"
  360. >
  361. <div class="bInfo_title">协同编辑</div>
  362. <div
  363. class="addPeople"
  364. @click="openMember"
  365. style="background: #6b92c9"
  366. >
  367. 添加协同成员
  368. </div>
  369. <div
  370. v-if="checkboxList3.length"
  371. style="
  372. max-width: 100%;
  373. word-break: break-all;
  374. overflow: hidden;
  375. margin-top: 10px;
  376. font-size: 14px;
  377. color: #6e6e6e;
  378. cursor: pointer;
  379. "
  380. @click="checkBoolean = !checkBoolean"
  381. >
  382. <span
  383. :class="{ tcMember: getMan2(tc) }"
  384. v-for="(tc, tcIndex) in checkboxList3.length > 6 &&
  385. checkBoolean
  386. ? checkboxList3
  387. : checkboxList3.slice(0, 6)"
  388. :key="tcIndex"
  389. >{{ getMan2(tc) }}</span
  390. ><span
  391. class="tcMember"
  392. v-if="checkboxList3.length > 6 && !checkBoolean"
  393. >更多...</span
  394. >
  395. </div>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  402. <div class="right_title">课程简要描述</div>
  403. <div style="width: 95%; padding: 15px 0px 15px 20px">
  404. <div style="width: 55%">
  405. <textarea
  406. rows="8"
  407. class="binfo_input"
  408. cols
  409. v-model="courseText"
  410. :placeholder="
  411. '1、课程内容说明' +
  412. '\n' +
  413. '2、课程学习知识目标' +
  414. '\n' +
  415. '3、课程学习技能目标'
  416. "
  417. ></textarea>
  418. </div>
  419. </div>
  420. <!-- <div style="width: 95%; margin: 15px auto">
  421. <el-switch
  422. v-model="isTeacherSee"
  423. active-text="允许给其他老师查看"
  424. style="padding-bottom: 30px"
  425. ></el-switch>
  426. </div>-->
  427. <div style="width: 95%; padding: 15px 0px 15px 20px">
  428. <el-switch
  429. v-model="isTeacherSee"
  430. active-text="是否公开此课程"
  431. style="padding-bottom: 30px"
  432. ></el-switch>
  433. </div>
  434. </div>
  435. <div
  436. class="whiteBg"
  437. style="border-radius: 0; margin-top: 15px; padding-bottom: 20px"
  438. >
  439. <div class="right_title">目标管理</div>
  440. <div style="margin: 15px auto; padding: 0 0 0 20px">
  441. <div
  442. style="
  443. border: 1px solid #e5e5e5;
  444. width: 95%;
  445. min-height: 600px;
  446. margin-top: 30px;
  447. box-shadow: 3px 1px 15px 3px #e0e0e0;
  448. "
  449. >
  450. <div class="e_add_top">
  451. <div class="e_add_title">
  452. <el-button
  453. type="primary"
  454. size="small"
  455. @click="dialogVisiblemb = true"
  456. >添加</el-button
  457. >
  458. <el-button
  459. type="primary"
  460. size="small"
  461. @click="deleteEva()"
  462. >清除</el-button
  463. >
  464. <!-- <span>当前使用目标管理</span>
  465. <span>{{ eTitle ? eTitle : "请添加目标" }}</span>
  466. <img
  467. src="../../assets/line.png"
  468. class="cru_line"
  469. style="
  470. width: 125px;
  471. height: 20px;
  472. bottom: -10px;
  473. left: 155px;
  474. "
  475. /> -->
  476. </div>
  477. <div
  478. style="
  479. display: flex;
  480. flex-direction: row;
  481. align-items: center;
  482. "
  483. >
  484. <!-- <el-button
  485. type="primary"
  486. size="small"
  487. @click="dialogVisiblemb = true"
  488. >添加目标管理</el-button
  489. >
  490. <el-button
  491. type="primary"
  492. size="small"
  493. @click="deleteEva()"
  494. >清除内容</el-button
  495. > -->
  496. <!-- <div class="e_add_delete" @click="deleteEva()">
  497. <img src="../../assets/icon/delete.png" alt="" />
  498. </div> -->
  499. </div>
  500. </div>
  501. <div v-if="evalua == ''">
  502. <div class="noneBox">
  503. <img src="../../assets/icon/isNoMessage.png" />
  504. </div>
  505. </div>
  506. <div class="e_add_content" v-else>
  507. <div class="e_add_list_pbox">
  508. <div class="e_add_list_pbox_title">
  509. <span class="type_title">切换模式</span>
  510. <div class="type_content">
  511. <span
  512. :class="{ active: typeMode == 1 }"
  513. @click="OtherMb(1)"
  514. >目标树</span
  515. >
  516. <span
  517. :class="{ active: typeMode == 2 }"
  518. @click="OtherMb(2)"
  519. >目标罗盘</span
  520. >
  521. <span
  522. :class="{ active: typeMode == 3 }"
  523. @click="OtherMb(3)"
  524. >目标看板</span
  525. >
  526. </div>
  527. </div>
  528. <div class="e_add_list_pbox_content">
  529. <Mind
  530. :showBar="false"
  531. :mindData="data"
  532. v-show="typeMode == 1"
  533. ></Mind>
  534. <Sunburst
  535. :Josn="eJson"
  536. :num="eJSONNum"
  537. style="width: 100%"
  538. v-if="typeMode == 2"
  539. ></Sunburst>
  540. <SeeBoard
  541. :Josn="eJson"
  542. :num="eJSONNum"
  543. :ename="eTitle"
  544. style="width: 100%"
  545. v-if="typeMode == 3"
  546. >
  547. </SeeBoard>
  548. </div>
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. </div>
  554. </div>
  555. <div class="rightBox" v-if="this.steps == 2">
  556. <div
  557. class="basic_box"
  558. style="padding: 20px 30px 0px !important; box-sizing: border-box"
  559. >
  560. <!-- <div
  561. style="
  562. color: #b8b8b8;
  563. background: #fff;
  564. width: 26%;
  565. height: 40px;
  566. border-radius: 15px;
  567. padding-left: 20px;
  568. line-height: 40px;
  569. font-size: 17px;
  570. box-shadow: 0px 1px 2px 2px #e0e0e0;
  571. "
  572. >-->
  573. <div
  574. class="right_title"
  575. style="border: none; margin: 0; padding: 0"
  576. >
  577. 请选择合适的课程模板
  578. </div>
  579. <div class="wordbox">
  580. <div
  581. class="wordTeacher"
  582. v-for="(aa, indexF) in templateArray"
  583. :key="indexF"
  584. @click="checkTemplate(aa)"
  585. >
  586. <div class="wordPic">
  587. <img src="../../assets/icon/wordMub.png" alt />
  588. </div>
  589. <div
  590. style="
  591. margin-top: 10px;
  592. line-height: 19px;
  593. overflow: hidden;
  594. text-overflow: ellipsis;
  595. white-space: nowrap;
  596. padding: 0 20px;
  597. "
  598. >
  599. {{ aa.title }}
  600. </div>
  601. </div>
  602. <div class="wordTeacher" @click="checkTemplate2()">
  603. <div class="wordPic">
  604. <img src="../../assets/icon/wordMub.png" alt />
  605. </div>
  606. <div
  607. style="
  608. margin-top: 10px;
  609. line-height: 19px;
  610. overflow: hidden;
  611. text-overflow: ellipsis;
  612. white-space: nowrap;
  613. padding: 0 20px;
  614. "
  615. >
  616. 任务模式
  617. </div>
  618. </div>
  619. <div class="wordTeacher" @click="checkTemplate3()">
  620. <div class="wordPic">
  621. <img src="../../assets/icon/wordMub.png" alt />
  622. </div>
  623. <div
  624. style="
  625. margin-top: 10px;
  626. line-height: 19px;
  627. overflow: hidden;
  628. text-overflow: ellipsis;
  629. white-space: nowrap;
  630. padding: 0 20px;
  631. "
  632. >
  633. 简易模式
  634. </div>
  635. </div>
  636. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  637. <div class="wordPic">
  638. <img src="../../assets/icon/wordMub.png" alt />
  639. </div>
  640. <div style="
  641. margin-top: 10px;
  642. line-height: 19px;
  643. overflow: hidden;
  644. text-overflow: ellipsis;
  645. white-space: nowrap;
  646. padding: 0 20px;
  647. ">
  648. 未来小学课程设计
  649. </div>
  650. </div> -->
  651. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  652. <div class="wordPic">
  653. <img src="../../assets/icon/wordMub.png" alt />
  654. </div>
  655. <div style="
  656. margin-top: 10px;
  657. line-height: 19px;
  658. overflow: hidden;
  659. text-overflow: ellipsis;
  660. white-space: nowrap;
  661. padding: 0 20px;
  662. ">
  663. 我的课程
  664. </div>
  665. </div> -->
  666. </div>
  667. </div>
  668. </div>
  669. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  670. <div class="basic_box">
  671. <div
  672. style="
  673. display: flex;
  674. flex-direction: row;
  675. align-items: center;
  676. position: sticky;
  677. top: 0;
  678. background: #fff;
  679. z-index: 99;
  680. width: 100%;
  681. padding: 0 20px 0 20px;
  682. box-sizing: border-box;
  683. "
  684. >
  685. <div class="cru_selectBox">
  686. <div
  687. v-for="(item, index) in unitJson"
  688. :key="index"
  689. class="cru_select"
  690. :class="unitIndex == index ? 'cru_selected' : ''"
  691. @click="unitSet(index)"
  692. >
  693. {{
  694. item.dyName ? item.dyName : "第" + (index + 1) + "阶段"
  695. }}
  696. </div>
  697. <img
  698. src="../../assets/line.png"
  699. class="cru_line"
  700. :style="{
  701. left: offsetLetfPx + 'px',
  702. }"
  703. />
  704. </div>
  705. <div
  706. class="addStageImg"
  707. @click="addunit()"
  708. v-if="
  709. !(unitJson[unitJson.length - 1].easy == 4) &&
  710. !(unitJson[unitJson.length - 1].easy == 6)
  711. "
  712. >
  713. <img src="../../assets/icon/add.png" alt />
  714. </div>
  715. </div>
  716. <div
  717. style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  718. v-for="(item, index) in unitJson[unitIndex].chapterInfo"
  719. :key="index"
  720. >
  721. <div>
  722. <div class="chapter_contentbox">
  723. <div>第{{ unitIndex + 1 }}阶段</div>
  724. <div>
  725. <input
  726. type="text"
  727. placeholder="阶段标题"
  728. class="binfo_input"
  729. v-model="unitJson[unitIndex].dyName"
  730. />
  731. </div>
  732. <div
  733. v-if="
  734. unitJson.length > 1 &&
  735. !(unitJson[unitJson.length - 1].easy == 4) &&
  736. !(unitJson[unitJson.length - 1].easy == 6)
  737. "
  738. @click="deleteUnit(unitIndex)"
  739. ></div>
  740. </div>
  741. </div>
  742. <div
  743. v-if="!unitJson[unitIndex].easy"
  744. style="
  745. margin: 50px 0px 10px;
  746. font-size: 1.5em;
  747. font-weight: 700;
  748. color: #0f7eff;
  749. "
  750. >
  751. 添加任务
  752. </div>
  753. <div
  754. class="taskBorder"
  755. :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  756. v-for="(itemTask, itemTaskIndex) in item.taskJson"
  757. :key="itemTaskIndex"
  758. >
  759. <div v-if="unitJson[unitIndex].easy != 1">
  760. <div
  761. :style="{
  762. marginBottom:
  763. unitJson[unitIndex].easy == 3 ||
  764. (unitJson[unitIndex].easy == 5 &&
  765. itemTask.taskType == 1)
  766. ? '75px'
  767. : '0',
  768. }"
  769. >
  770. <div
  771. style="font-size: 22px; color: #8e8e8e"
  772. :id="'task' + itemTaskIndex"
  773. >
  774. 任务{{ itemTaskIndex + 1 }}
  775. </div>
  776. <div
  777. class="chapter_contentbox"
  778. style="
  779. flex-direction: row;
  780. justify-content: flex-start;
  781. align-items: center;
  782. "
  783. >
  784. <div
  785. style="
  786. border-left: 6px solid #5699e8;
  787. height: 20px;
  788. padding-left: 10px;
  789. line-height: 22px;
  790. "
  791. >
  792. 任务名称
  793. </div>
  794. <div>
  795. <input
  796. type="text"
  797. placeholder="输入任务名称"
  798. class="binfo_input"
  799. style="border-radius: 4px"
  800. v-model="
  801. unitJson[unitIndex].chapterInfo[0].taskJson[
  802. itemTaskIndex
  803. ].task
  804. "
  805. />
  806. </div>
  807. <div
  808. class="remove"
  809. v-if="
  810. item.taskJson.length > 1 &&
  811. (!unitJson[unitIndex].easy ||
  812. unitJson[unitIndex].easy == 6)
  813. "
  814. @click="deleteTask(itemTaskIndex)"
  815. style="position: absolute; right: 55px"
  816. ></div>
  817. </div>
  818. <div
  819. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  820. style="
  821. display: flex;
  822. margin: 0 0 20px 0;
  823. flex-direction: row;
  824. justify-content: flex-start;
  825. align-items: center;
  826. width: 70.5% !important;
  827. padding-top: 30px;
  828. "
  829. >
  830. <div class="lineTitle">任务描述</div>
  831. <div class="line"></div>
  832. </div>
  833. <div
  834. v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1"
  835. >
  836. <editor-bar
  837. style="width: 90% !important; margin: 0"
  838. placeholder="请输入任务描述"
  839. v-model="
  840. unitJson[unitIndex].chapterInfo[0].taskJson[
  841. itemTaskIndex
  842. ].taskDetail
  843. "
  844. @change="change"
  845. ></editor-bar>
  846. <!-- <textarea
  847. rows="6"
  848. class="binfo_input"
  849. placeholder="请输入任务描述"
  850. cols
  851. style="width: 70.5% !important; height: 120px"
  852. v-model="
  853. unitJson[unitIndex].chapterInfo[0].taskJson[
  854. itemTaskIndex
  855. ].taskDetail
  856. "
  857. ></textarea>-->
  858. </div>
  859. </div>
  860. </div>
  861. <div
  862. v-if="
  863. !unitJson[unitIndex].easy ||
  864. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  865. "
  866. class="basic_box"
  867. style="
  868. margin: 0;
  869. min-height: 0;
  870. width: 90% !important;
  871. padding-top: 10px !important;
  872. "
  873. >
  874. <div
  875. style="
  876. display: flex;
  877. margin: 0 0 20px 0;
  878. flex-direction: row;
  879. justify-content: flex-start;
  880. align-items: center;
  881. "
  882. >
  883. <div class="lineTitle">学习内容</div>
  884. <div class="line"></div>
  885. </div>
  886. <div>
  887. <div
  888. class="add_chapters_box"
  889. v-if="
  890. itemTask.chapterData &&
  891. itemTask.chapterData.length == 0
  892. "
  893. style="height: 185px"
  894. ></div>
  895. <div
  896. v-else
  897. class="add_chapters_box"
  898. style="display: flex; flex-direction: column"
  899. >
  900. <div
  901. class="chapter_upload"
  902. v-for="(item1, index1) in itemTask.chapterData"
  903. :key="item1.id"
  904. @click="
  905. getChapterData(
  906. $event,
  907. unitIndex,
  908. index,
  909. index1,
  910. item1.type
  911. )
  912. "
  913. >
  914. <div
  915. class="chapter_upload_t"
  916. style="width: 100%"
  917. ></div>
  918. <div
  919. class="chapter_upload_o"
  920. style="
  921. position: relative;
  922. display: flex;
  923. align-items: center;
  924. "
  925. >
  926. <div
  927. class="chapter_upload_l"
  928. style="padding: 1px 0 0 10px"
  929. >
  930. <div
  931. v-if="item1.type == 2"
  932. class="chapter_upload_l_i1"
  933. ></div>
  934. <div
  935. v-if="
  936. item1.type == 3 ||
  937. item1.type == 12 ||
  938. item1.type == 6 ||
  939. item1.type == 7
  940. "
  941. class="chapter_upload_l_i5"
  942. style="margin-left: 1px"
  943. ></div>
  944. <div
  945. v-if="item1.type == 8"
  946. class="chapter_upload_l_i8"
  947. style="margin-left: 1px"
  948. ></div>
  949. </div>
  950. <div
  951. class="chapter_upload_ic"
  952. style="
  953. cursor: pointer;
  954. position: absolute;
  955. width: 45px;
  956. right: 0;
  957. top: 0;
  958. "
  959. >
  960. <div class="chapter_upload_ic_l"></div>
  961. <div
  962. class="chapter_upload_ic_r"
  963. style="position: absolute"
  964. @click.stop="
  965. deleteChapterData(
  966. $event,
  967. unitIndex,
  968. index,
  969. index1,
  970. itemTaskIndex
  971. )
  972. "
  973. >
  974. <div></div>
  975. </div>
  976. </div>
  977. <div class="chapter_upload_n">
  978. <input
  979. v-if="
  980. item1.type == 2 ||
  981. item1.type == 3 ||
  982. item1.type == 12 ||
  983. item1.type == 7
  984. "
  985. :placeholder="item1.name"
  986. @change="
  987. updataVideoT(
  988. $event,
  989. unitIndex,
  990. chapterIndex,
  991. index1
  992. )
  993. "
  994. style="
  995. border: none;
  996. outline: none;
  997. width: 80%;
  998. minwidth: 215px;
  999. z-index: 99;
  1000. font-size: 14px;
  1001. white-space: nowrap;
  1002. overflow: hidden;
  1003. text-overflow: ellipsis;
  1004. "
  1005. />
  1006. <input
  1007. :placeholder="item1.name"
  1008. v-if="item1.type == 6"
  1009. style="
  1010. border: none;
  1011. outline: none;
  1012. width: 80%;
  1013. white-space: nowrap;
  1014. overflow: hidden;
  1015. text-overflow: ellipsis;
  1016. "
  1017. readonly="true"
  1018. @click="selectAttText(itemTaskIndex, index1)"
  1019. />
  1020. <input
  1021. :placeholder="
  1022. item1.title ? item1.title : '链接'
  1023. "
  1024. v-if="item1.type == 8"
  1025. style="
  1026. border: none;
  1027. outline: none;
  1028. width: 80%;
  1029. white-space: nowrap;
  1030. overflow: hidden;
  1031. text-overflow: ellipsis;
  1032. "
  1033. readonly="true"
  1034. @click="selectLine(itemTaskIndex, index1)"
  1035. />
  1036. <div
  1037. class="chapter_upload_ud"
  1038. style="z-index: 99"
  1039. >
  1040. <div
  1041. class="chapter_upload_up"
  1042. @click="
  1043. upCd(
  1044. $event,
  1045. unitIndex,
  1046. index,
  1047. itemTaskIndex,
  1048. index1
  1049. )
  1050. "
  1051. ></div>
  1052. <div
  1053. class="chapter_upload_down"
  1054. @click="
  1055. downCd(
  1056. $event,
  1057. unitIndex,
  1058. index,
  1059. itemTaskIndex,
  1060. index1
  1061. )
  1062. "
  1063. ></div>
  1064. </div>
  1065. </div>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. <div class="add_info_box">
  1071. <button class="info_btn" @click="addImg($event)">
  1072. 添加视频
  1073. <!-- capture="camera" -->
  1074. <input
  1075. type="file"
  1076. accept="video/mp4, video/quicktime, video/x-msvideo"
  1077. style="display: none"
  1078. v-if="inputShow"
  1079. @change="
  1080. beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  1081. "
  1082. />
  1083. </button>
  1084. <button class="info_btn" @click="addImg($event)">
  1085. 添加文档
  1086. <input
  1087. type="file"
  1088. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1089. style="display: none"
  1090. v-if="inputShow"
  1091. @change="
  1092. beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  1093. "
  1094. />
  1095. </button>
  1096. <button
  1097. class="info_btn"
  1098. @click="addAttText(itemTaskIndex)"
  1099. >
  1100. 添加图文
  1101. </button>
  1102. <button class="info_btn" @click="openLine(itemTaskIndex)">
  1103. 添加链接
  1104. </button>
  1105. <button class="info_btn" @click="openSource(itemTaskIndex)">
  1106. 添加资源
  1107. </button>
  1108. <button class="info_btn" @click="addImg($event)">
  1109. 其他附件
  1110. <input
  1111. type="file"
  1112. accept="*"
  1113. style="display: none"
  1114. v-if="inputShow"
  1115. @change="
  1116. beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  1117. "
  1118. />
  1119. </button>
  1120. </div>
  1121. <div
  1122. v-if="
  1123. unitJson[unitIndex].chapterInfo[0].taskJson[
  1124. itemTaskIndex
  1125. ].proVisible
  1126. "
  1127. class="mask"
  1128. >
  1129. <div class="progressBox">
  1130. <!-- <div id="closePro" class="closeCss">
  1131. <img src="../../../assets/icon/close.png" alt />
  1132. </div> -->
  1133. <div class="lbox">
  1134. <img src="../../assets/loading.gif" />上传中,请稍后
  1135. </div>
  1136. <div style="margin-bottom: 10px">
  1137. <span
  1138. >{{
  1139. unitJson[unitIndex].chapterInfo[0].taskJson[
  1140. itemTaskIndex
  1141. ].isFinishSize
  1142. }}M</span
  1143. >
  1144. /
  1145. <span
  1146. >{{
  1147. unitJson[unitIndex].chapterInfo[0].taskJson[
  1148. itemTaskIndex
  1149. ].isAllSize
  1150. }}M</span
  1151. >
  1152. </div>
  1153. <el-progress
  1154. :text-inside="true"
  1155. :stroke-width="20"
  1156. :percentage="
  1157. unitJson[unitIndex].chapterInfo[0].taskJson[
  1158. itemTaskIndex
  1159. ].progress
  1160. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1161. itemTaskIndex
  1162. ].progress
  1163. : 0
  1164. "
  1165. style="width: 80%"
  1166. ></el-progress>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. <div
  1171. v-if="
  1172. unitJson[unitIndex].easy == 1 ||
  1173. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1174. "
  1175. class="basic_box"
  1176. style="
  1177. margin: 0 auto;
  1178. min-height: 0;
  1179. width: 95% !important;
  1180. padding: 20px 10px 10px;
  1181. "
  1182. >
  1183. <div>
  1184. <div
  1185. class="add_chapters_box"
  1186. v-if="
  1187. itemTask.chapterData &&
  1188. itemTask.chapterData.length == 0
  1189. "
  1190. style="height: 185px"
  1191. ></div>
  1192. <div
  1193. v-else
  1194. class="add_chapters_box"
  1195. style="display: flex; flex-direction: column"
  1196. >
  1197. <div
  1198. v-for="(item1, index1) in itemTask.chapterData"
  1199. :key="item1.id"
  1200. >
  1201. <div
  1202. class="chapter_upload"
  1203. @click="
  1204. getChapterData(
  1205. $event,
  1206. unitIndex,
  1207. index,
  1208. index1,
  1209. item1.type
  1210. )
  1211. "
  1212. >
  1213. <div
  1214. class="chapter_upload_t"
  1215. style="width: 100%"
  1216. ></div>
  1217. <div
  1218. class="chapter_upload_o"
  1219. style="
  1220. position: relative;
  1221. display: flex;
  1222. align-items: center;
  1223. "
  1224. >
  1225. <div
  1226. class="chapter_upload_l"
  1227. style="padding: 1px 0 0 10px"
  1228. >
  1229. <div
  1230. v-if="item1.type == 2"
  1231. class="chapter_upload_l_i1"
  1232. ></div>
  1233. <div
  1234. v-if="
  1235. item1.type == 3 ||
  1236. item1.type == 6 ||
  1237. item1.type == 7
  1238. "
  1239. class="chapter_upload_l_i5"
  1240. style="margin-left: 1px"
  1241. ></div>
  1242. <div
  1243. v-if="item1.type == 8"
  1244. class="chapter_upload_l_i8"
  1245. style="margin-left: 1px"
  1246. ></div>
  1247. </div>
  1248. <div
  1249. class="chapter_upload_ic"
  1250. style="
  1251. cursor: pointer;
  1252. position: absolute;
  1253. width: 45px;
  1254. right: 0;
  1255. top: 0;
  1256. "
  1257. >
  1258. <div class="chapter_upload_ic_l"></div>
  1259. <div
  1260. class="chapter_upload_ic_r"
  1261. style="position: absolute"
  1262. @click.stop="
  1263. deleteChapterData(
  1264. $event,
  1265. unitIndex,
  1266. index,
  1267. index1,
  1268. itemTaskIndex
  1269. )
  1270. "
  1271. >
  1272. <div></div>
  1273. </div>
  1274. </div>
  1275. <div class="chapter_upload_n">
  1276. <span
  1277. style="
  1278. font-size: 14px;
  1279. color: rgb(109, 109, 109);
  1280. height: 14px;
  1281. line-height: 12px;
  1282. "
  1283. v-if="
  1284. item1.type == 2 ||
  1285. item1.type == 3 ||
  1286. item1.type == 7
  1287. "
  1288. >{{ item1.text }}-</span
  1289. >
  1290. <input
  1291. v-if="
  1292. item1.type == 2 ||
  1293. item1.type == 3 ||
  1294. item1.type == 7
  1295. "
  1296. :placeholder="item1.name"
  1297. @change="
  1298. updataVideoT(
  1299. $event,
  1300. unitIndex,
  1301. chapterIndex,
  1302. index1
  1303. )
  1304. "
  1305. style="
  1306. border: none;
  1307. outline: none;
  1308. width: 80%;
  1309. minwidth: 215px;
  1310. z-index: 99;
  1311. font-size: 14px;
  1312. white-space: nowrap;
  1313. overflow: hidden;
  1314. text-overflow: ellipsis;
  1315. "
  1316. />
  1317. <input
  1318. :placeholder="item1.name"
  1319. v-if="item1.type == 6"
  1320. style="
  1321. border: none;
  1322. outline: none;
  1323. width: 80%;
  1324. white-space: nowrap;
  1325. overflow: hidden;
  1326. text-overflow: ellipsis;
  1327. "
  1328. readonly="true"
  1329. @click="selectAttText(itemTaskIndex, index1)"
  1330. />
  1331. <input
  1332. :placeholder="
  1333. item1.title ? item1.title : '链接'
  1334. "
  1335. v-if="item1.type == 8"
  1336. style="
  1337. border: none;
  1338. outline: none;
  1339. width: 80%;
  1340. white-space: nowrap;
  1341. overflow: hidden;
  1342. text-overflow: ellipsis;
  1343. "
  1344. readonly="true"
  1345. @click="selectLine(itemTaskIndex, index1)"
  1346. />
  1347. <div
  1348. class="chapter_upload_ud"
  1349. style="z-index: 99"
  1350. >
  1351. <div
  1352. class="chapter_upload_up"
  1353. @click="
  1354. upCd(
  1355. $event,
  1356. unitIndex,
  1357. index,
  1358. itemTaskIndex,
  1359. index1
  1360. )
  1361. "
  1362. ></div>
  1363. <div
  1364. class="chapter_upload_down"
  1365. @click="
  1366. downCd(
  1367. $event,
  1368. unitIndex,
  1369. index,
  1370. itemTaskIndex,
  1371. index1
  1372. )
  1373. "
  1374. ></div>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. </div>
  1381. </div>
  1382. <div class="add_info_box" style="margin: 10px 0 0">
  1383. <button class="info_btn" @click="addImg($event)">
  1384. <span style="color: red">*</span>
  1385. 教学设计
  1386. <input
  1387. type="file"
  1388. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1389. style="display: none"
  1390. v-if="inputShow"
  1391. @change="
  1392. beforeUpload3(
  1393. $event,
  1394. unitIndex,
  1395. 3,
  1396. itemTaskIndex,
  1397. '教学设计'
  1398. )
  1399. "
  1400. />
  1401. </button>
  1402. <button class="info_btn" @click="addImg($event)">
  1403. <span style="color: red">*</span>
  1404. 教学课件
  1405. <input
  1406. type="file"
  1407. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1408. style="display: none"
  1409. v-if="inputShow"
  1410. @change="
  1411. beforeUpload3(
  1412. $event,
  1413. unitIndex,
  1414. 3,
  1415. itemTaskIndex,
  1416. '教学课件'
  1417. )
  1418. "
  1419. />
  1420. </button>
  1421. <button class="info_btn" @click="addImg($event)">
  1422. 教学视频
  1423. <input
  1424. type="file"
  1425. accept="video/mp4, video/quicktime, video/x-msvideo"
  1426. style="display: none"
  1427. v-if="inputShow"
  1428. @change="
  1429. beforeUpload3(
  1430. $event,
  1431. unitIndex,
  1432. 2,
  1433. itemTaskIndex,
  1434. '教学视频'
  1435. )
  1436. "
  1437. />
  1438. </button>
  1439. <button class="info_btn" @click="addImg($event)">
  1440. 教学音频
  1441. <input
  1442. type="file"
  1443. accept="audio/*"
  1444. style="display: none"
  1445. v-if="inputShow"
  1446. @change="
  1447. beforeUpload3(
  1448. $event,
  1449. unitIndex,
  1450. 2,
  1451. itemTaskIndex,
  1452. '教学音频'
  1453. )
  1454. "
  1455. />
  1456. </button>
  1457. <button class="info_btn" @click="addImg($event)">
  1458. 学习单
  1459. <input
  1460. type="file"
  1461. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1462. style="display: none"
  1463. v-if="inputShow"
  1464. @change="
  1465. beforeUpload3(
  1466. $event,
  1467. unitIndex,
  1468. 3,
  1469. itemTaskIndex,
  1470. '学习单'
  1471. )
  1472. "
  1473. />
  1474. </button>
  1475. </div>
  1476. <div
  1477. v-if="
  1478. unitJson[unitIndex].chapterInfo[0].taskJson[
  1479. itemTaskIndex
  1480. ].proVisible
  1481. "
  1482. class="mask"
  1483. >
  1484. <div class="progressBox">
  1485. <!-- <div id="closePro" class="closeCss">
  1486. <img src="../../../assets/icon/close.png" alt />
  1487. </div> -->
  1488. <div class="lbox">
  1489. <img src="../../assets/loading.gif" />上传中,请稍后
  1490. </div>
  1491. <div style="margin-bottom: 10px">
  1492. <span
  1493. >{{
  1494. unitJson[unitIndex].chapterInfo[0].taskJson[
  1495. itemTaskIndex
  1496. ].isFinishSize
  1497. }}M</span
  1498. >
  1499. /
  1500. <span
  1501. >{{
  1502. unitJson[unitIndex].chapterInfo[0].taskJson[
  1503. itemTaskIndex
  1504. ].isAllSize
  1505. }}M</span
  1506. >
  1507. </div>
  1508. <el-progress
  1509. :text-inside="true"
  1510. :stroke-width="20"
  1511. :percentage="
  1512. unitJson[unitIndex].chapterInfo[0].taskJson[
  1513. itemTaskIndex
  1514. ].progress
  1515. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1516. itemTaskIndex
  1517. ].progress
  1518. : 0
  1519. "
  1520. style="width: 80%"
  1521. ></el-progress>
  1522. </div>
  1523. </div>
  1524. </div>
  1525. <div
  1526. v-if="
  1527. unitJson[unitIndex].easy != 3 &&
  1528. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1529. "
  1530. style="
  1531. flex-direction: row;
  1532. justify-content: flex-start;
  1533. align-items: center;
  1534. padding: 0 0 0 30px;
  1535. paddint-top: 10px !important;
  1536. "
  1537. >
  1538. <div
  1539. style="
  1540. display: flex;
  1541. flex-direction: row;
  1542. align-items: center;
  1543. margin-bottom: 20px;
  1544. "
  1545. >
  1546. <div class="lineTitle">
  1547. {{
  1548. !unitJson[unitIndex].easy ||
  1549. unitJson[unitIndex].easy == 6 ||
  1550. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1551. ? "练习内容"
  1552. : "评价内容"
  1553. }}
  1554. </div>
  1555. <div class="line" style="width: 90%"></div>
  1556. </div>
  1557. </div>
  1558. <div
  1559. v-if="
  1560. unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1561. "
  1562. class="toolChoose"
  1563. style="padding: 0 0 0 30px"
  1564. >
  1565. <div class="tools">
  1566. <div
  1567. class="leftTools"
  1568. style="
  1569. width: 95%;
  1570. padding: 0 0 15px 0;
  1571. border-bottom: 1px solid #efefef;
  1572. margin-bottom: 15px;
  1573. "
  1574. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1575. :key="toolIndex"
  1576. >
  1577. <div>
  1578. <textarea
  1579. rows="3"
  1580. type="text"
  1581. placeholder="添加工具描述"
  1582. class="binfo_input"
  1583. style="margin: 0 0 20px 0; width: 71.5% !important"
  1584. v-model="itemTool.toolDetail"
  1585. ></textarea>
  1586. </div>
  1587. <div
  1588. style="
  1589. display: flex;
  1590. flex-direction: row;
  1591. align-items: baseline;
  1592. flex-wrap: nowrap;
  1593. justify-content: flex-start;
  1594. position: relative;
  1595. "
  1596. >
  1597. <div style="margin-right: 20px; font-weight: bold">
  1598. 步骤 {{ toolIndex + 1 }} :
  1599. </div>
  1600. <div class="chooseWho">
  1601. <div
  1602. :class="
  1603. itemTool.toolType == 0 ? 'isChooseActive' : ''
  1604. "
  1605. @click="(itemTool.toolType = 0), $forceUpdate()"
  1606. >
  1607. 互动类
  1608. </div>
  1609. <div
  1610. :class="
  1611. itemTool.toolType == 1 ? 'isChooseActive' : ''
  1612. "
  1613. @click="(itemTool.toolType = 1), $forceUpdate()"
  1614. >
  1615. 思维类
  1616. </div>
  1617. <div
  1618. :class="
  1619. itemTool.toolType == 2 ? 'isChooseActive' : ''
  1620. "
  1621. @click="(itemTool.toolType = 2), $forceUpdate()"
  1622. >
  1623. 评价类
  1624. </div>
  1625. <div
  1626. :class="
  1627. itemTool.toolType == 3 ? 'isChooseActive' : ''
  1628. "
  1629. @click="(itemTool.toolType = 3), $forceUpdate()"
  1630. >
  1631. 编程类
  1632. </div>
  1633. <div
  1634. :class="
  1635. itemTool.toolType == 5 ? 'isChooseActive' : ''
  1636. "
  1637. @click="(itemTool.toolType = 5), $forceUpdate()"
  1638. >
  1639. 学科类
  1640. </div>
  1641. <div
  1642. :class="
  1643. itemTool.toolType == 4 ? 'isChooseActive' : ''
  1644. "
  1645. @click="(itemTool.toolType = 4), $forceUpdate()"
  1646. >
  1647. 其他
  1648. </div>
  1649. </div>
  1650. <div
  1651. class="remove"
  1652. @click="deleteTool(itemTaskIndex, toolIndex)"
  1653. v-if="itemTask.toolChoose.length > 1"
  1654. style="position: absolute; right: 55px"
  1655. ></div>
  1656. </div>
  1657. <div style="min-height: 163px">
  1658. <div class="toolSort" v-if="itemTool.toolType == 0">
  1659. <!-- <div class="tool">
  1660. <div
  1661. class="whiteBIcon"
  1662. @click="addTools(8, itemTaskIndex, toolIndex)"
  1663. >
  1664. <img src="../../assets/icon/secondToolList/library.png" alt />
  1665. <div style="margin: 5px 0">素材库</div>
  1666. </div>
  1667. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1668. <img
  1669. src="../../assets/icon/checkNo.png"
  1670. alt
  1671. v-if="itemTool.tool.indexOf(8) == -1"
  1672. />
  1673. <div class="checkDiv" v-else><img src="../../assets/icon/checkedIs.png"
  1674. alt /><span>已选择</span></div>
  1675. </div>
  1676. </div>-->
  1677. <!-- <div class="tool">
  1678. <div
  1679. class="whiteBIcon"
  1680. @click="addTools(17, itemTaskIndex, toolIndex)"
  1681. >
  1682. <img
  1683. src="../../assets/icon/secondToolList/library.png"
  1684. alt
  1685. />
  1686. <div style="margin: 5px 0">学习资料</div>
  1687. </div>
  1688. <div
  1689. class="check"
  1690. @click="addTools(17, itemTaskIndex, toolIndex)"
  1691. >
  1692. <img
  1693. src="../../assets/icon/checkNo.png"
  1694. alt
  1695. v-if="itemTool.tool.indexOf(17) == -1"
  1696. />
  1697. <img
  1698. src="../../assets/icon/checkedIs.png"
  1699. alt
  1700. v-else
  1701. />
  1702. </div>10
  1703. </div> -->
  1704. <div class="tool">
  1705. <div
  1706. class="whiteBIcon"
  1707. @click="openTools(itemTaskIndex, 10, toolIndex)"
  1708. >
  1709. <img
  1710. src="../../assets/icon/thirdToolList/time.png"
  1711. alt
  1712. />
  1713. <div style="margin: 5px 0">倒计时</div>
  1714. </div>
  1715. <div
  1716. class="check"
  1717. @click="addTools(10, itemTaskIndex, toolIndex)"
  1718. >
  1719. <img
  1720. src="../../assets/icon/checkNo.png"
  1721. alt
  1722. v-if="itemTool.tool.indexOf(10) == -1"
  1723. />
  1724. <div class="checkDiv" v-else>
  1725. <img
  1726. src="../../assets/icon/checkedIs.png"
  1727. alt
  1728. /><span>已选择</span>
  1729. </div>
  1730. </div>
  1731. </div>
  1732. <div class="tool">
  1733. <div
  1734. class="whiteBIcon"
  1735. @click="openTools(itemTaskIndex, 49, toolIndex)"
  1736. >
  1737. <img
  1738. src="../../assets/icon/fourthToolList/group.png"
  1739. alt
  1740. />
  1741. <div style="margin: 5px 0">学生分组</div>
  1742. </div>
  1743. <div
  1744. class="check"
  1745. @click="addTools(49, itemTaskIndex, toolIndex)"
  1746. >
  1747. <img
  1748. src="../../assets/icon/checkNo.png"
  1749. alt
  1750. v-if="itemTool.tool.indexOf(49) == -1"
  1751. />
  1752. <div class="checkDiv" v-else>
  1753. <img
  1754. src="../../assets/icon/checkedIs.png"
  1755. alt
  1756. /><span>已选择</span>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div class="toolSort" v-if="itemTool.toolType == 1">
  1762. <div class="tool">
  1763. <div
  1764. class="whiteBIcon"
  1765. @click="addTools(7, itemTaskIndex, toolIndex)"
  1766. >
  1767. <img
  1768. src="../../assets/icon/secondToolList/mindNetwork.png"
  1769. alt
  1770. />
  1771. <div style="margin: 5px 0">思维网格</div>
  1772. </div>
  1773. <div
  1774. class="check"
  1775. @click="addTools(7, itemTaskIndex, toolIndex)"
  1776. >
  1777. <img
  1778. src="../../assets/icon/checkNo.png"
  1779. alt
  1780. v-if="itemTool.tool.indexOf(7) == -1"
  1781. />
  1782. <div class="checkDiv" v-else>
  1783. <img
  1784. src="../../assets/icon/checkedIs.png"
  1785. alt
  1786. /><span>已选择</span>
  1787. </div>
  1788. </div>
  1789. </div>
  1790. <div class="tool">
  1791. <div
  1792. class="whiteBIcon"
  1793. @click="openTools(itemTaskIndex, 1, toolIndex)"
  1794. >
  1795. <img
  1796. src="../../assets/icon/secondToolList/whiteBoard.png"
  1797. alt
  1798. />
  1799. <div style="margin: 5px 0">电子白板</div>
  1800. </div>
  1801. <div
  1802. class="check"
  1803. @click="addTools(1, itemTaskIndex, toolIndex)"
  1804. >
  1805. <img
  1806. src="../../assets/icon/checkNo.png"
  1807. alt
  1808. v-if="itemTool.tool.indexOf(1) == -1"
  1809. />
  1810. <div class="checkDiv" v-else>
  1811. <img
  1812. src="../../assets/icon/checkedIs.png"
  1813. alt
  1814. /><span>已选择</span>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. <!-- <div class="tool">
  1819. <div
  1820. class="whiteBIcon"
  1821. @click="addTools(2, itemTaskIndex, toolIndex)"
  1822. >
  1823. <img
  1824. src="../../assets/icon/secondToolList/note.png"
  1825. alt
  1826. />
  1827. <div style="margin: 5px 0">便签</div>
  1828. </div>
  1829. <div
  1830. class="check"
  1831. @click="addTools(2, itemTaskIndex, toolIndex)"
  1832. >
  1833. <img
  1834. src="../../assets/icon/checkNo.png"
  1835. alt
  1836. v-if="itemTool.tool.indexOf(2) == -1"
  1837. />
  1838. <div class="checkDiv" v-else>
  1839. <img
  1840. src="../../assets/icon/checkedIs.png"
  1841. alt
  1842. /><span>已选择</span>
  1843. </div>
  1844. </div>
  1845. </div> -->
  1846. <!-- <div class="tool">
  1847. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1848. <img src="../../assets/icon/secondToolList/doc.png" alt />
  1849. <div style="margin: 5px 0">协同文档</div>
  1850. </div>
  1851. <div
  1852. class="check"
  1853. @click="addTools(6, itemTaskIndex, toolIndex)"
  1854. >
  1855. <img
  1856. src="../../assets/icon/checkNo.png"
  1857. alt
  1858. v-if="itemTool.tool.indexOf(6) == -1"
  1859. />
  1860. <div class="checkDiv" v-else>
  1861. <img
  1862. src="../../assets/icon/checkedIs.png"
  1863. alt
  1864. /><span>已选择</span>
  1865. </div>
  1866. </div>
  1867. </div> -->
  1868. <div class="tool">
  1869. <div
  1870. class="whiteBIcon"
  1871. @click="openTools(itemTaskIndex, 52, toolIndex)"
  1872. >
  1873. <img
  1874. src="../../assets/icon/fourthToolList/text.png"
  1875. alt
  1876. />
  1877. <div style="margin: 5px 0">文档</div>
  1878. </div>
  1879. <div
  1880. class="check"
  1881. @click="addTools(52, itemTaskIndex, toolIndex)"
  1882. >
  1883. <img
  1884. src="../../assets/icon/checkNo.png"
  1885. alt
  1886. v-if="itemTool.tool.indexOf(52) == -1"
  1887. />
  1888. <div class="checkDiv" v-else>
  1889. <img
  1890. src="../../assets/icon/checkedIs.png"
  1891. alt
  1892. /><span>已选择</span>
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div class="tool">
  1897. <div
  1898. class="whiteBIcon"
  1899. @click="openTools(itemTaskIndex, 3, toolIndex)"
  1900. >
  1901. <img
  1902. src="../../assets/icon/secondToolList/mindMapping.png"
  1903. alt
  1904. />
  1905. <div style="margin: 5px 0">思维导图</div>
  1906. </div>
  1907. <div
  1908. class="check"
  1909. @click="addTools(3, itemTaskIndex, toolIndex)"
  1910. >
  1911. <img
  1912. src="../../assets/icon/checkNo.png"
  1913. alt
  1914. v-if="itemTool.tool.indexOf(3) == -1"
  1915. />
  1916. <div class="checkDiv" v-else>
  1917. <img
  1918. src="../../assets/icon/checkedIs.png"
  1919. alt
  1920. /><span>已选择</span>
  1921. </div>
  1922. </div>
  1923. </div>
  1924. </div>
  1925. <div class="toolSort" v-if="itemTool.toolType == 2">
  1926. <!-- <div class="tool">
  1927. <div
  1928. class="whiteBIcon"
  1929. @click="addTools(5, itemTaskIndex, toolIndex)"
  1930. >
  1931. <img
  1932. src="../../assets/icon/thirdToolList/score.png"
  1933. alt
  1934. />
  1935. <div style="margin: 5px 0">量规评分</div>
  1936. </div>
  1937. <div
  1938. class="check"
  1939. @click="addTools(5, itemTaskIndex, toolIndex)"
  1940. >
  1941. <img
  1942. src="../../assets/icon/checkNo.png"
  1943. alt
  1944. v-if="itemTool.tool.indexOf(5) == -1"
  1945. />
  1946. <img
  1947. src="../../assets/icon/checkedIs.png"
  1948. alt
  1949. v-else
  1950. />
  1951. </div>
  1952. </div>-->
  1953. <div class="tool">
  1954. <div
  1955. class="whiteBIcon"
  1956. @click="openTools(itemTaskIndex, 4, toolIndex)"
  1957. >
  1958. <img
  1959. src="../../assets/icon/thirdToolList/ask.png"
  1960. alt
  1961. />
  1962. <div style="margin: 5px 0">问卷调查</div>
  1963. </div>
  1964. <div
  1965. class="check"
  1966. @click="addTools(4, itemTaskIndex, toolIndex)"
  1967. >
  1968. <img
  1969. src="../../assets/icon/checkNo.png"
  1970. alt
  1971. v-if="itemTool.tool.indexOf(4) == -1"
  1972. />
  1973. <div class="checkDiv" v-else>
  1974. <img
  1975. src="../../assets/icon/checkedIs.png"
  1976. alt
  1977. /><span>已选择</span>
  1978. </div>
  1979. </div>
  1980. </div>
  1981. <div class="tool">
  1982. <div
  1983. class="whiteBIcon"
  1984. @click="openTools(itemTaskIndex, 45, toolIndex)"
  1985. >
  1986. <img
  1987. src="../../assets/icon/thirdToolList/choose.png"
  1988. alt
  1989. />
  1990. <div style="margin: 5px 0">选择题</div>
  1991. </div>
  1992. <div
  1993. class="check"
  1994. @click="addTools(45, itemTaskIndex, toolIndex)"
  1995. >
  1996. <img
  1997. src="../../assets/icon/checkNo.png"
  1998. alt
  1999. v-if="itemTool.tool.indexOf(45) == -1"
  2000. />
  2001. <div class="checkDiv" v-else>
  2002. <img
  2003. src="../../assets/icon/checkedIs.png"
  2004. alt
  2005. /><span>已选择</span>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. <div class="tool">
  2010. <div
  2011. class="whiteBIcon"
  2012. @click="openTools(itemTaskIndex, 15, toolIndex)"
  2013. >
  2014. <img
  2015. src="../../assets/icon/thirdToolList/answer.png"
  2016. alt
  2017. />
  2018. <div style="margin: 5px 0">问答工具</div>
  2019. </div>
  2020. <div
  2021. class="check"
  2022. @click="addTools(15, itemTaskIndex, toolIndex)"
  2023. >
  2024. <img
  2025. src="../../assets/icon/checkNo.png"
  2026. alt
  2027. v-if="itemTool.tool.indexOf(15) == -1"
  2028. />
  2029. <div class="checkDiv" v-else>
  2030. <img
  2031. src="../../assets/icon/checkedIs.png"
  2032. alt
  2033. /><span>已选择</span>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. <div class="tool">
  2038. <div
  2039. class="whiteBIcon"
  2040. @click="addTools(16, itemTaskIndex, toolIndex)"
  2041. >
  2042. <img
  2043. src="../../assets/icon/thirdToolList/work.png"
  2044. alt
  2045. />
  2046. <div style="margin: 5px 0">作业提交</div>
  2047. </div>
  2048. <div
  2049. class="check"
  2050. @click="addTools(16, itemTaskIndex, toolIndex)"
  2051. >
  2052. <img
  2053. src="../../assets/icon/checkNo.png"
  2054. alt
  2055. v-if="itemTool.tool.indexOf(16) == -1"
  2056. />
  2057. <div class="checkDiv" v-else>
  2058. <img
  2059. src="../../assets/icon/checkedIs.png"
  2060. alt
  2061. /><span>已选择</span>
  2062. </div>
  2063. </div>
  2064. </div>
  2065. <div class="tool">
  2066. <div
  2067. class="whiteBIcon"
  2068. @click="addTools(50, itemTaskIndex, toolIndex)"
  2069. >
  2070. <img
  2071. src="../../assets/icon/thirdToolList/plwork.png"
  2072. alt
  2073. />
  2074. <div style="margin: 5px 0">批量上传</div>
  2075. </div>
  2076. <div
  2077. class="check"
  2078. @click="addTools(50, itemTaskIndex, toolIndex)"
  2079. >
  2080. <img
  2081. src="../../assets/icon/checkNo.png"
  2082. alt
  2083. v-if="itemTool.tool.indexOf(50) == -1"
  2084. />
  2085. <div class="checkDiv" v-else>
  2086. <img
  2087. src="../../assets/icon/checkedIs.png"
  2088. alt
  2089. /><span>已选择</span>
  2090. </div>
  2091. </div>
  2092. </div>
  2093. <div class="tool">
  2094. <div
  2095. class="whiteBIcon"
  2096. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2097. >
  2098. <img
  2099. src="../../assets/icon/thirdToolList/eval.png"
  2100. alt
  2101. />
  2102. <div style="margin: 5px 0">个人评价</div>
  2103. </div>
  2104. <div
  2105. class="check"
  2106. @click="addTools(40, itemTaskIndex, toolIndex)"
  2107. >
  2108. <img
  2109. src="../../assets/icon/checkNo.png"
  2110. alt
  2111. v-if="itemTool.tool.indexOf(40) == -1"
  2112. />
  2113. <div class="checkDiv" v-else>
  2114. <img
  2115. src="../../assets/icon/checkedIs.png"
  2116. alt
  2117. /><span>已选择</span>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. <div class="tool">
  2122. <div
  2123. class="whiteBIcon"
  2124. @click="openTools(itemTaskIndex, 41, toolIndex)"
  2125. >
  2126. <img
  2127. src="../../assets/icon/thirdToolList/select.png"
  2128. alt
  2129. />
  2130. <div style="margin: 5px 0">选择填空</div>
  2131. </div>
  2132. <div
  2133. class="check"
  2134. @click="addTools(41, itemTaskIndex, toolIndex)"
  2135. >
  2136. <img
  2137. src="../../assets/icon/checkNo.png"
  2138. alt
  2139. v-if="itemTool.tool.indexOf(41) == -1"
  2140. />
  2141. <div class="checkDiv" v-else>
  2142. <img
  2143. src="../../assets/icon/checkedIs.png"
  2144. alt
  2145. /><span>已选择</span>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. <div class="tool">
  2150. <div
  2151. class="whiteBIcon"
  2152. @click="openTools(itemTaskIndex, 47, toolIndex)"
  2153. >
  2154. <img
  2155. src="../../assets/icon/fourthToolList/conSentences.png"
  2156. alt
  2157. />
  2158. <div style="margin: 5px 0">连词成句</div>
  2159. </div>
  2160. <div
  2161. class="check"
  2162. @click="addTools(47, itemTaskIndex, toolIndex)"
  2163. >
  2164. <img
  2165. src="../../assets/icon/checkNo.png"
  2166. alt
  2167. v-if="itemTool.tool.indexOf(47) == -1"
  2168. />
  2169. <div class="checkDiv" v-else>
  2170. <img
  2171. src="../../assets/icon/checkedIs.png"
  2172. alt
  2173. /><span>已选择</span>
  2174. </div>
  2175. </div>
  2176. </div>
  2177. <div class="tool">
  2178. <div
  2179. class="whiteBIcon"
  2180. @click="openTools(itemTaskIndex, 48, toolIndex)"
  2181. >
  2182. <img
  2183. src="../../assets/icon/fourthToolList/table.png"
  2184. alt
  2185. />
  2186. <div style="margin: 5px 0">表格</div>
  2187. </div>
  2188. <div
  2189. class="check"
  2190. @click="addTools(48, itemTaskIndex, toolIndex)"
  2191. >
  2192. <img
  2193. src="../../assets/icon/checkNo.png"
  2194. alt
  2195. v-if="itemTool.tool.indexOf(48) == -1"
  2196. />
  2197. <div class="checkDiv" v-else>
  2198. <img
  2199. src="../../assets/icon/checkedIs.png"
  2200. alt
  2201. /><span>已选择</span>
  2202. </div>
  2203. </div>
  2204. </div>
  2205. <!-- <div class="tool">
  2206. <div
  2207. class="whiteBIcon"
  2208. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2209. >
  2210. <img
  2211. src="../../assets/icon/thirdToolList/mp3.png"
  2212. alt
  2213. />
  2214. <div style="margin: 5px 0">上传音频</div>
  2215. </div>
  2216. <div
  2217. class="check"
  2218. @click="addTools(42, itemTaskIndex, toolIndex)"
  2219. >
  2220. <img
  2221. src="../../assets/icon/checkNo.png"
  2222. alt
  2223. v-if="itemTool.tool.indexOf(42) == -1"
  2224. />
  2225. <img
  2226. src="../../assets/icon/checkedIs.png"
  2227. alt
  2228. v-else
  2229. />
  2230. </div>
  2231. </div> -->
  2232. </div>
  2233. <div class="toolSort" v-if="itemTool.toolType == 3">
  2234. <div class="tool">
  2235. <div
  2236. class="whiteBIcon"
  2237. @click="addTools(18, itemTaskIndex, toolIndex)"
  2238. >
  2239. <img
  2240. src="../../assets/icon/thirdToolList/trainPlatform.png"
  2241. alt
  2242. />
  2243. <div style="margin: 5px 0">训练平台</div>
  2244. </div>
  2245. <div
  2246. class="check"
  2247. @click="addTools(18, itemTaskIndex, toolIndex)"
  2248. >
  2249. <img
  2250. src="../../assets/icon/checkNo.png"
  2251. alt
  2252. v-if="itemTool.tool.indexOf(18) == -1"
  2253. />
  2254. <div class="checkDiv" v-else>
  2255. <img
  2256. src="../../assets/icon/checkedIs.png"
  2257. alt
  2258. /><span>已选择</span>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. <div class="tool">
  2263. <div
  2264. class="whiteBIcon"
  2265. @click="addTools(21, itemTaskIndex, toolIndex)"
  2266. >
  2267. <img
  2268. src="../../assets/icon/fourthToolList/program.png"
  2269. alt
  2270. />
  2271. <div style="margin: 5px 0">编程平台</div>
  2272. </div>
  2273. <div
  2274. class="check"
  2275. @click="addTools(21, itemTaskIndex, toolIndex)"
  2276. >
  2277. <img
  2278. src="../../assets/icon/checkNo.png"
  2279. alt
  2280. v-if="itemTool.tool.indexOf(21) == -1"
  2281. />
  2282. <div class="checkDiv" v-else>
  2283. <img
  2284. src="../../assets/icon/checkedIs.png"
  2285. alt
  2286. /><span>已选择</span>
  2287. </div>
  2288. </div>
  2289. </div>
  2290. <div class="tool">
  2291. <div
  2292. class="whiteBIcon"
  2293. @click="addTools(22, itemTaskIndex, toolIndex)"
  2294. >
  2295. <img
  2296. src="../../assets/icon/fourthToolList/AIprogram2.png"
  2297. alt
  2298. />
  2299. <div style="margin: 5px 0">AI体验</div>
  2300. </div>
  2301. <div
  2302. class="check"
  2303. @click="addTools(22, itemTaskIndex, toolIndex)"
  2304. >
  2305. <img
  2306. src="../../assets/icon/checkNo.png"
  2307. alt
  2308. v-if="itemTool.tool.indexOf(22) == -1"
  2309. />
  2310. <div class="checkDiv" v-else>
  2311. <img
  2312. src="../../assets/icon/checkedIs.png"
  2313. alt
  2314. /><span>已选择</span>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. <div class="tool">
  2319. <div
  2320. class="whiteBIcon"
  2321. @click="addTools(23, itemTaskIndex, toolIndex)"
  2322. >
  2323. <img
  2324. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  2325. alt
  2326. />
  2327. <div style="margin: 5px 0">Python</div>
  2328. </div>
  2329. <div
  2330. class="check"
  2331. @click="addTools(23, itemTaskIndex, toolIndex)"
  2332. >
  2333. <img
  2334. src="../../assets/icon/checkNo.png"
  2335. alt
  2336. v-if="itemTool.tool.indexOf(23) == -1"
  2337. />
  2338. <div class="checkDiv" v-else>
  2339. <img
  2340. src="../../assets/icon/checkedIs.png"
  2341. alt
  2342. /><span>已选择</span>
  2343. </div>
  2344. </div>
  2345. </div>
  2346. <div class="tool">
  2347. <div
  2348. class="whiteBIcon"
  2349. @click="addTools(24, itemTaskIndex, toolIndex)"
  2350. >
  2351. <img
  2352. src="../../assets/icon/fourthToolList/AIprogram.png"
  2353. alt
  2354. />
  2355. <div style="margin: 5px 0">AI平台</div>
  2356. </div>
  2357. <div
  2358. class="check"
  2359. @click="addTools(24, itemTaskIndex, toolIndex)"
  2360. >
  2361. <img
  2362. src="../../assets/icon/checkNo.png"
  2363. alt
  2364. v-if="itemTool.tool.indexOf(24) == -1"
  2365. />
  2366. <div class="checkDiv" v-else>
  2367. <img
  2368. src="../../assets/icon/checkedIs.png"
  2369. alt
  2370. /><span>已选择</span>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. <div class="tool">
  2375. <div
  2376. class="whiteBIcon"
  2377. @click="addTools(32, itemTaskIndex, toolIndex)"
  2378. >
  2379. <img
  2380. src="../../assets/icon/thirdToolList/code.png"
  2381. alt
  2382. />
  2383. <div style="margin: 5px 0">源码编辑</div>
  2384. </div>
  2385. <div
  2386. class="check"
  2387. @click="addTools(32, itemTaskIndex, toolIndex)"
  2388. >
  2389. <img
  2390. src="../../assets/icon/checkNo.png"
  2391. alt
  2392. v-if="itemTool.tool.indexOf(32) == -1"
  2393. />
  2394. <div class="checkDiv" v-else>
  2395. <img
  2396. src="../../assets/icon/checkedIs.png"
  2397. alt
  2398. /><span>已选择</span>
  2399. </div>
  2400. </div>
  2401. </div>
  2402. <div class="tool">
  2403. <div
  2404. class="whiteBIcon"
  2405. @click="addTools(57, itemTaskIndex, toolIndex)"
  2406. >
  2407. <img
  2408. src="../../assets/icon/fourthToolList/cocopi.png"
  2409. alt
  2410. />
  2411. <div style="margin: 5px 0">CocoPi</div>
  2412. </div>
  2413. <div
  2414. class="check"
  2415. @click="addTools(57, itemTaskIndex, toolIndex)"
  2416. >
  2417. <img
  2418. src="../../assets/icon/checkNo.png"
  2419. alt
  2420. v-if="itemTool.tool.indexOf(57) == -1"
  2421. />
  2422. <div class="checkDiv" v-else>
  2423. <img
  2424. src="../../assets/icon/checkedIs.png"
  2425. alt
  2426. /><span>已选择</span>
  2427. </div>
  2428. </div>
  2429. </div>
  2430. </div>
  2431. <div class="toolSort" v-if="itemTool.toolType == 5">
  2432. <div class="tool">
  2433. <div
  2434. class="whiteBIcon"
  2435. @click="addTools(28, itemTaskIndex, toolIndex)"
  2436. >
  2437. <img
  2438. src="../../assets/icon/secondToolList/translation.png"
  2439. alt
  2440. />
  2441. <div style="margin: 5px 0">翻译</div>
  2442. </div>
  2443. <div
  2444. class="check"
  2445. @click="addTools(28, itemTaskIndex, toolIndex)"
  2446. >
  2447. <img
  2448. src="../../assets/icon/checkNo.png"
  2449. alt
  2450. v-if="itemTool.tool.indexOf(28) == -1"
  2451. />
  2452. <div class="checkDiv" v-else>
  2453. <img
  2454. src="../../assets/icon/checkedIs.png"
  2455. alt
  2456. /><span>已选择</span>
  2457. </div>
  2458. </div>
  2459. </div>
  2460. <div class="tool">
  2461. <div
  2462. class="whiteBIcon"
  2463. @click="addTools(37, itemTaskIndex, toolIndex)"
  2464. >
  2465. <img
  2466. src="../../assets/icon/secondToolList/mohe.png"
  2467. alt
  2468. />
  2469. <div style="margin: 5px 0">魔盒识字</div>
  2470. </div>
  2471. <div
  2472. class="check"
  2473. @click="addTools(37, itemTaskIndex, toolIndex)"
  2474. >
  2475. <img
  2476. src="../../assets/icon/checkNo.png"
  2477. alt
  2478. v-if="itemTool.tool.indexOf(37) == -1"
  2479. />
  2480. <div class="checkDiv" v-else>
  2481. <img
  2482. src="../../assets/icon/checkedIs.png"
  2483. alt
  2484. /><span>已选择</span>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. <div class="tool">
  2489. <div
  2490. class="whiteBIcon"
  2491. @click="addTools(38, itemTaskIndex, toolIndex)"
  2492. >
  2493. <img
  2494. src="../../assets/icon/secondToolList/24game.png"
  2495. alt
  2496. />
  2497. <div style="margin: 5px 0">24点</div>
  2498. </div>
  2499. <div
  2500. class="check"
  2501. @click="addTools(38, itemTaskIndex, toolIndex)"
  2502. >
  2503. <img
  2504. src="../../assets/icon/checkNo.png"
  2505. alt
  2506. v-if="itemTool.tool.indexOf(38) == -1"
  2507. />
  2508. <div class="checkDiv" v-else>
  2509. <img
  2510. src="../../assets/icon/checkedIs.png"
  2511. alt
  2512. /><span>已选择</span>
  2513. </div>
  2514. </div>
  2515. </div>
  2516. <div class="tool">
  2517. <div
  2518. class="whiteBIcon"
  2519. @click="addTools(31, itemTaskIndex, toolIndex)"
  2520. >
  2521. <img
  2522. src="../../assets/icon/secondToolList/networkPanel.png"
  2523. alt
  2524. />
  2525. <div style="margin: 5px 0">数学画板</div>
  2526. </div>
  2527. <div
  2528. class="check"
  2529. @click="addTools(31, itemTaskIndex, toolIndex)"
  2530. >
  2531. <img
  2532. src="../../assets/icon/checkNo.png"
  2533. alt
  2534. v-if="itemTool.tool.indexOf(31) == -1"
  2535. />
  2536. <div class="checkDiv" v-else>
  2537. <img
  2538. src="../../assets/icon/checkedIs.png"
  2539. alt
  2540. /><span>已选择</span>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. <div class="tool">
  2545. <div
  2546. class="whiteBIcon"
  2547. @click="addTools(39, itemTaskIndex, toolIndex)"
  2548. >
  2549. <img
  2550. src="../../assets/icon/secondToolList/GeoGebra.png"
  2551. alt
  2552. />
  2553. <div style="margin: 5px 0">GeoGebra</div>
  2554. </div>
  2555. <div
  2556. class="check"
  2557. @click="addTools(39, itemTaskIndex, toolIndex)"
  2558. >
  2559. <img
  2560. src="../../assets/icon/checkNo.png"
  2561. alt
  2562. v-if="itemTool.tool.indexOf(39) == -1"
  2563. />
  2564. <div class="checkDiv" v-else>
  2565. <img
  2566. src="../../assets/icon/checkedIs.png"
  2567. alt
  2568. /><span>已选择</span>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. <div class="tool">
  2573. <div
  2574. class="whiteBIcon"
  2575. @click="addTools(58, itemTaskIndex, toolIndex)"
  2576. >
  2577. <img
  2578. src="../../assets/icon/fourthToolList/car.png"
  2579. alt
  2580. />
  2581. <div style="margin: 5px 0">模拟驾驶</div>
  2582. </div>
  2583. <div
  2584. class="check"
  2585. @click="addTools(58, itemTaskIndex, toolIndex)"
  2586. >
  2587. <img
  2588. src="../../assets/icon/checkNo.png"
  2589. alt
  2590. v-if="itemTool.tool.indexOf(58) == -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
  2602. class="whiteBIcon"
  2603. @click="addTools(59, itemTaskIndex, toolIndex)"
  2604. >
  2605. <img
  2606. src="../../assets/icon/fourthToolList/lineSearch.png"
  2607. alt
  2608. />
  2609. <div style="margin: 5px 0">路径搜索</div>
  2610. </div>
  2611. <div
  2612. class="check"
  2613. @click="addTools(59, itemTaskIndex, toolIndex)"
  2614. >
  2615. <img
  2616. src="../../assets/icon/checkNo.png"
  2617. alt
  2618. v-if="itemTool.tool.indexOf(59) == -1"
  2619. />
  2620. <div class="checkDiv" v-else>
  2621. <img
  2622. src="../../assets/icon/checkedIs.png"
  2623. alt
  2624. /><span>已选择</span>
  2625. </div>
  2626. </div>
  2627. </div>
  2628. <div class="tool">
  2629. <div
  2630. class="whiteBIcon"
  2631. @click="addTools(60, itemTaskIndex, toolIndex)"
  2632. >
  2633. <img
  2634. src="../../assets/icon/fourthToolList/deepLearning.png"
  2635. alt
  2636. />
  2637. <div style="margin: 5px 0">深度学习</div>
  2638. </div>
  2639. <div
  2640. class="check"
  2641. @click="addTools(60, itemTaskIndex, toolIndex)"
  2642. >
  2643. <img
  2644. src="../../assets/icon/checkNo.png"
  2645. alt
  2646. v-if="itemTool.tool.indexOf(60) == -1"
  2647. />
  2648. <div class="checkDiv" v-else>
  2649. <img
  2650. src="../../assets/icon/checkedIs.png"
  2651. alt
  2652. /><span>已选择</span>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. <div class="tool">
  2657. <div
  2658. class="whiteBIcon"
  2659. @click="addTools(61, itemTaskIndex, toolIndex)"
  2660. >
  2661. <img
  2662. src="../../assets/icon/fourthToolList/allHistory.png"
  2663. alt
  2664. />
  2665. <div style="margin: 5px 0">全历史</div>
  2666. </div>
  2667. <div
  2668. class="check"
  2669. @click="addTools(61, itemTaskIndex, toolIndex)"
  2670. >
  2671. <img
  2672. src="../../assets/icon/checkNo.png"
  2673. alt
  2674. v-if="itemTool.tool.indexOf(61) == -1"
  2675. />
  2676. <div class="checkDiv" v-else>
  2677. <img
  2678. src="../../assets/icon/checkedIs.png"
  2679. alt
  2680. /><span>已选择</span>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. <div class="toolSort" v-if="itemTool.toolType == 4">
  2686. <div class="tool">
  2687. <div
  2688. class="whiteBIcon"
  2689. @click="addTools(26, itemTaskIndex, toolIndex)"
  2690. >
  2691. <img
  2692. src="../../assets/icon/thirdToolList/courseDesign.png"
  2693. alt
  2694. />
  2695. <div style="margin: 5px 0">课程设计</div>
  2696. </div>
  2697. <div
  2698. class="check"
  2699. @click="addTools(26, itemTaskIndex, toolIndex)"
  2700. >
  2701. <img
  2702. src="../../assets/icon/checkNo.png"
  2703. alt
  2704. v-if="itemTool.tool.indexOf(26) == -1"
  2705. />
  2706. <div class="checkDiv" v-else>
  2707. <img
  2708. src="../../assets/icon/checkedIs.png"
  2709. alt
  2710. /><span>已选择</span>
  2711. </div>
  2712. </div>
  2713. </div>
  2714. <div class="tool">
  2715. <div
  2716. class="whiteBIcon"
  2717. @click="addTools(25, itemTaskIndex, toolIndex)"
  2718. >
  2719. <img
  2720. src="../../assets/icon/thirdToolList/evalua.png"
  2721. alt
  2722. />
  2723. <div style="margin: 5px 0">目标管理</div>
  2724. </div>
  2725. <div
  2726. class="check"
  2727. @click="addTools(25, itemTaskIndex, toolIndex)"
  2728. >
  2729. <img
  2730. src="../../assets/icon/checkNo.png"
  2731. alt
  2732. v-if="itemTool.tool.indexOf(25) == -1"
  2733. />
  2734. <div class="checkDiv" v-else>
  2735. <img
  2736. src="../../assets/icon/checkedIs.png"
  2737. alt
  2738. /><span>已选择</span>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <!-- <div class="tool">
  2743. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2744. <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
  2745. <div style="margin: 5px 0">汉字宫</div>
  2746. </div>
  2747. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2748. <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2749. <div class="checkDiv" v-else>
  2750. <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2751. </div>
  2752. </div>
  2753. </div> -->
  2754. </div>
  2755. </div>
  2756. </div>
  2757. <div
  2758. class="addToolFun"
  2759. @click="addToolFun(itemTaskIndex)"
  2760. >
  2761. <div class="addToolImg">
  2762. <img src="../../assets/icon/add.png" alt />
  2763. </div>
  2764. <div>添加工具</div>
  2765. </div>
  2766. </div>
  2767. </div>
  2768. <div
  2769. v-else-if="
  2770. unitJson[unitIndex].easy == 2 ||
  2771. unitJson[unitIndex].easy == 4
  2772. "
  2773. class="toolChoose"
  2774. style="padding: 0 0 0 30px"
  2775. >
  2776. <div class="tools">
  2777. <div
  2778. class="leftTools"
  2779. style="width: 95%"
  2780. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  2781. :key="toolIndex"
  2782. >
  2783. <div>
  2784. <textarea
  2785. rows="3"
  2786. type="text"
  2787. placeholder="添加工具描述"
  2788. class="binfo_input"
  2789. style="margin: 0 0 20px 0; width: 71.5% !important"
  2790. v-model="itemTool.toolDetail"
  2791. ></textarea>
  2792. </div>
  2793. <div
  2794. style="
  2795. display: flex;
  2796. flex-direction: row;
  2797. align-items: baseline;
  2798. flex-wrap: nowrap;
  2799. justify-content: flex-start;
  2800. position: relative;
  2801. "
  2802. >
  2803. <div style="margin-right: 20px; font-weight: bold">
  2804. 步骤 {{ toolIndex + 1 }} :
  2805. </div>
  2806. <div
  2807. class="remove"
  2808. @click="deleteTool(itemTaskIndex, toolIndex)"
  2809. v-if="itemTask.toolChoose.length > 1"
  2810. style="position: absolute; right: 55px"
  2811. ></div>
  2812. </div>
  2813. <div style="min-height: 163px">
  2814. <div class="toolSort">
  2815. <div class="tool">
  2816. <div
  2817. class="whiteBIcon"
  2818. @click="openTools(itemTaskIndex, 1, toolIndex)"
  2819. >
  2820. <img
  2821. src="../../assets/icon/secondToolList/whiteBoard.png"
  2822. alt
  2823. />
  2824. <div style="margin: 5px 0">电子白板</div>
  2825. </div>
  2826. <div
  2827. class="check"
  2828. @click="addTools(1, itemTaskIndex, toolIndex)"
  2829. >
  2830. <img
  2831. src="../../assets/icon/checkNo.png"
  2832. alt
  2833. v-if="itemTool.tool.indexOf(1) == -1"
  2834. />
  2835. <div class="checkDiv" v-else>
  2836. <img
  2837. src="../../assets/icon/checkedIs.png"
  2838. alt
  2839. /><span>已选择</span>
  2840. </div>
  2841. </div>
  2842. </div>
  2843. <div class="tool">
  2844. <div
  2845. class="whiteBIcon"
  2846. @click="openTools(itemTaskIndex, 52, toolIndex)"
  2847. >
  2848. <img
  2849. src="../../assets/icon/fourthToolList/text.png"
  2850. alt
  2851. />
  2852. <div style="margin: 5px 0">文档</div>
  2853. </div>
  2854. <div
  2855. class="check"
  2856. @click="addTools(52, itemTaskIndex, toolIndex)"
  2857. >
  2858. <img
  2859. src="../../assets/icon/checkNo.png"
  2860. alt
  2861. v-if="itemTool.tool.indexOf(52) == -1"
  2862. />
  2863. <div class="checkDiv" v-else>
  2864. <img
  2865. src="../../assets/icon/checkedIs.png"
  2866. alt
  2867. /><span>已选择</span>
  2868. </div>
  2869. </div>
  2870. </div>
  2871. <div class="tool">
  2872. <div
  2873. class="whiteBIcon"
  2874. @click="openTools(itemTaskIndex, 3, toolIndex)"
  2875. >
  2876. <img
  2877. src="../../assets/icon/secondToolList/mindMapping.png"
  2878. alt
  2879. />
  2880. <div style="margin: 5px 0">思维导图</div>
  2881. </div>
  2882. <div
  2883. class="check"
  2884. @click="addTools(3, itemTaskIndex, toolIndex)"
  2885. >
  2886. <img
  2887. src="../../assets/icon/checkNo.png"
  2888. alt
  2889. v-if="itemTool.tool.indexOf(3) == -1"
  2890. />
  2891. <div class="checkDiv" v-else>
  2892. <img
  2893. src="../../assets/icon/checkedIs.png"
  2894. alt
  2895. /><span>已选择</span>
  2896. </div>
  2897. </div>
  2898. </div>
  2899. <div class="tool">
  2900. <div
  2901. class="whiteBIcon"
  2902. @click="openTools(itemTaskIndex, 4, toolIndex)"
  2903. >
  2904. <img
  2905. src="../../assets/icon/thirdToolList/ask.png"
  2906. alt
  2907. />
  2908. <div style="margin: 5px 0">问卷调查</div>
  2909. </div>
  2910. <div
  2911. class="check"
  2912. @click="addTools(4, itemTaskIndex, toolIndex)"
  2913. >
  2914. <img
  2915. src="../../assets/icon/checkNo.png"
  2916. alt
  2917. v-if="itemTool.tool.indexOf(4) == -1"
  2918. />
  2919. <div class="checkDiv" v-else>
  2920. <img
  2921. src="../../assets/icon/checkedIs.png"
  2922. alt
  2923. /><span>已选择</span>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. <div class="tool">
  2928. <div
  2929. class="whiteBIcon"
  2930. @click="openTools(itemTaskIndex, 45, toolIndex)"
  2931. >
  2932. <img
  2933. src="../../assets/icon/thirdToolList/choose.png"
  2934. alt
  2935. />
  2936. <div style="margin: 5px 0">选择题</div>
  2937. </div>
  2938. <div
  2939. class="check"
  2940. @click="addTools(45, itemTaskIndex, toolIndex)"
  2941. >
  2942. <img
  2943. src="../../assets/icon/checkNo.png"
  2944. alt
  2945. v-if="itemTool.tool.indexOf(45) == -1"
  2946. />
  2947. <div class="checkDiv" v-else>
  2948. <img
  2949. src="../../assets/icon/checkedIs.png"
  2950. alt
  2951. /><span>已选择</span>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. <div class="tool">
  2956. <div
  2957. class="whiteBIcon"
  2958. @click="openTools(itemTaskIndex, 15, toolIndex)"
  2959. >
  2960. <img
  2961. src="../../assets/icon/thirdToolList/answer.png"
  2962. alt
  2963. />
  2964. <div style="margin: 5px 0">问答工具</div>
  2965. </div>
  2966. <div
  2967. class="check"
  2968. @click="addTools(15, itemTaskIndex, toolIndex)"
  2969. >
  2970. <img
  2971. src="../../assets/icon/checkNo.png"
  2972. alt
  2973. v-if="itemTool.tool.indexOf(15) == -1"
  2974. />
  2975. <div class="checkDiv" v-else>
  2976. <img
  2977. src="../../assets/icon/checkedIs.png"
  2978. alt
  2979. /><span>已选择</span>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. <div class="tool">
  2984. <div
  2985. class="whiteBIcon"
  2986. @click="addTools(16, itemTaskIndex, toolIndex)"
  2987. >
  2988. <img
  2989. src="../../assets/icon/thirdToolList/work.png"
  2990. alt
  2991. />
  2992. <div style="margin: 5px 0">作业提交</div>
  2993. </div>
  2994. <div
  2995. class="check"
  2996. @click="addTools(16, itemTaskIndex, toolIndex)"
  2997. >
  2998. <img
  2999. src="../../assets/icon/checkNo.png"
  3000. alt
  3001. v-if="itemTool.tool.indexOf(16) == -1"
  3002. />
  3003. <div class="checkDiv" v-else>
  3004. <img
  3005. src="../../assets/icon/checkedIs.png"
  3006. alt
  3007. /><span>已选择</span>
  3008. </div>
  3009. </div>
  3010. </div>
  3011. <div class="tool">
  3012. <div
  3013. class="whiteBIcon"
  3014. @click="openTools(itemTaskIndex, 50, toolIndex)"
  3015. >
  3016. <img
  3017. src="../../assets/icon/thirdToolList/plwork.png"
  3018. alt
  3019. />
  3020. <div style="margin: 5px 0">批量上传</div>
  3021. </div>
  3022. <div
  3023. class="check"
  3024. @click="addTools(50, itemTaskIndex, toolIndex)"
  3025. >
  3026. <img
  3027. src="../../assets/icon/checkNo.png"
  3028. alt
  3029. v-if="itemTool.tool.indexOf(50) == -1"
  3030. />
  3031. <div class="checkDiv" v-else>
  3032. <img
  3033. src="../../assets/icon/checkedIs.png"
  3034. alt
  3035. /><span>已选择</span>
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div class="tool">
  3040. <div
  3041. class="whiteBIcon"
  3042. @click="openTools(itemTaskIndex, 41, toolIndex)"
  3043. >
  3044. <img
  3045. src="../../assets/icon/thirdToolList/select.png"
  3046. alt
  3047. />
  3048. <div style="margin: 5px 0">选择填空</div>
  3049. </div>
  3050. <div
  3051. class="check"
  3052. @click="addTools(41, itemTaskIndex, toolIndex)"
  3053. >
  3054. <img
  3055. src="../../assets/icon/checkNo.png"
  3056. alt
  3057. v-if="itemTool.tool.indexOf(41) == -1"
  3058. />
  3059. <div class="checkDiv" v-else>
  3060. <img
  3061. src="../../assets/icon/checkedIs.png"
  3062. alt
  3063. /><span>已选择</span>
  3064. </div>
  3065. </div>
  3066. </div>
  3067. <div class="tool">
  3068. <div
  3069. class="whiteBIcon"
  3070. @click="openTools(itemTaskIndex, 47, toolIndex)"
  3071. >
  3072. <img
  3073. src="../../assets/icon/fourthToolList/conSentences.png"
  3074. alt
  3075. />
  3076. <div style="margin: 5px 0">连词成句</div>
  3077. </div>
  3078. <div
  3079. class="check"
  3080. @click="addTools(47, itemTaskIndex, toolIndex)"
  3081. >
  3082. <img
  3083. src="../../assets/icon/checkNo.png"
  3084. alt
  3085. v-if="itemTool.tool.indexOf(47) == -1"
  3086. />
  3087. <div class="checkDiv" v-else>
  3088. <img
  3089. src="../../assets/icon/checkedIs.png"
  3090. alt
  3091. /><span>已选择</span>
  3092. </div>
  3093. </div>
  3094. </div>
  3095. <div class="tool">
  3096. <div
  3097. class="whiteBIcon"
  3098. @click="openTools(itemTaskIndex, 48, toolIndex)"
  3099. >
  3100. <img
  3101. src="../../assets/icon/fourthToolList/table.png"
  3102. alt
  3103. />
  3104. <div style="margin: 5px 0">表格</div>
  3105. </div>
  3106. <div
  3107. class="check"
  3108. @click="addTools(48, itemTaskIndex, toolIndex)"
  3109. >
  3110. <img
  3111. src="../../assets/icon/checkNo.png"
  3112. alt
  3113. v-if="itemTool.tool.indexOf(48) == -1"
  3114. />
  3115. <div class="checkDiv" v-else>
  3116. <img
  3117. src="../../assets/icon/checkedIs.png"
  3118. alt
  3119. /><span>已选择</span>
  3120. </div>
  3121. </div>
  3122. </div>
  3123. </div>
  3124. </div>
  3125. </div>
  3126. <div
  3127. class="addToolFun"
  3128. style="margin-bottom: 20px"
  3129. @click="addToolFun(itemTaskIndex)"
  3130. >
  3131. <div class="addToolImg">
  3132. <img src="../../assets/icon/add.png" alt />
  3133. </div>
  3134. <div>添加工具</div>
  3135. </div>
  3136. </div>
  3137. </div>
  3138. <div
  3139. v-else-if="
  3140. unitJson[unitIndex].easy == 1 ||
  3141. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  3142. "
  3143. class="toolChoose"
  3144. style="padding: 0 0 0 30px"
  3145. >
  3146. <div class="tools">
  3147. <div
  3148. class="leftTools"
  3149. style="
  3150. width: 95%;
  3151. padding: 0 0 15px 0;
  3152. margin-bottom: 15px;
  3153. "
  3154. v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  3155. :key="toolIndex"
  3156. >
  3157. <div style="min-height: 163px">
  3158. <div class="toolSort">
  3159. <div class="tool">
  3160. <div
  3161. class="whiteBIcon"
  3162. @click="openTools(itemTaskIndex, 50, toolIndex)"
  3163. >
  3164. <img
  3165. src="../../assets/icon/thirdToolList/plwork.png"
  3166. alt
  3167. />
  3168. <div style="margin: 5px 0">批量上传</div>
  3169. </div>
  3170. <div
  3171. class="check"
  3172. @click="addTools(50, itemTaskIndex, toolIndex)"
  3173. >
  3174. <img
  3175. src="../../assets/icon/checkNo.png"
  3176. alt
  3177. v-if="itemTool.tool.indexOf(50) == -1"
  3178. />
  3179. <div class="checkDiv" v-else>
  3180. <img
  3181. src="../../assets/icon/checkedIs.png"
  3182. alt
  3183. /><span>已选择</span>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. </div>
  3188. </div>
  3189. </div>
  3190. </div>
  3191. </div>
  3192. <div
  3193. class="elist_css"
  3194. v-if="!(unitJson[unitJson.length - 1].easy == 4)"
  3195. >
  3196. <div class="elist_title">
  3197. <div
  3198. style="
  3199. display: flex;
  3200. flex-direction: row;
  3201. align-items: center;
  3202. margin-bottom: 20px;
  3203. "
  3204. >
  3205. <div class="lineTitle">评价设置</div>
  3206. <div class="line" style="width: 90%"></div>
  3207. </div>
  3208. </div>
  3209. <div class="mbCss">
  3210. <div class="pjCss">
  3211. <div
  3212. v-if="itemTask.eList && itemTask.eList.length"
  3213. class="elist_input"
  3214. >
  3215. <div
  3216. v-for="(eItem, eIndex) in itemTask.eList"
  3217. :key="eIndex"
  3218. class="elist_input_box"
  3219. >
  3220. <span>评价名称:</span>
  3221. <input
  3222. type="input"
  3223. v-model="itemTask.eList[eIndex].value"
  3224. placeholder="填写评价名称"
  3225. />
  3226. <span>评星等级:</span>
  3227. <el-rate
  3228. v-model="itemTask.eList[eIndex].score"
  3229. @change="setEListStar()"
  3230. disabled
  3231. ></el-rate>
  3232. <div
  3233. class="remove"
  3234. @click="
  3235. deletEList(unitIndex, itemTaskIndex, eIndex)
  3236. "
  3237. ></div>
  3238. <div class="elist_inptu_text">
  3239. <span>评价描述:</span>
  3240. <input
  3241. type="input"
  3242. v-model="itemTask.eList[eIndex].detail"
  3243. placeholder="填写评价描述"
  3244. />
  3245. </div>
  3246. <div class="elist_inptu_text" v-if="evalua">
  3247. <span>目标:</span>
  3248. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  3249. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  3250. @change="forceUpdate()">
  3251. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  3252. :value="e.name">
  3253. </el-option>
  3254. </el-select> -->
  3255. <el-cascader
  3256. :options="targetArray"
  3257. v-model="itemTask.eList[eIndex].target"
  3258. :props="{ checkStrictly: true }"
  3259. :show-all-levels="false"
  3260. clearable
  3261. ></el-cascader>
  3262. </div>
  3263. </div>
  3264. </div>
  3265. <div
  3266. class="addToolFun"
  3267. @click="addEList(unitIndex, itemTaskIndex)"
  3268. style="margin: 35px 35px 0 0"
  3269. >
  3270. <div class="addToolImg">
  3271. <img src="../../assets/icon/add.png" alt />
  3272. </div>
  3273. <div>添加</div>
  3274. </div>
  3275. </div>
  3276. <div
  3277. v-if="evalua"
  3278. style="
  3279. border: 1px solid #e5e5e5;
  3280. width: 55%;
  3281. margin-top: 20px;
  3282. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3283. "
  3284. class="evaCss"
  3285. >
  3286. <div class="e_add_top">
  3287. <div class="e_add_title">
  3288. <span>当前使用目标管理</span>
  3289. <span>{{ eTitle }}</span>
  3290. <img
  3291. src="../../assets/line.png"
  3292. class="cru_line"
  3293. style="
  3294. width: 125px;
  3295. height: 20px;
  3296. bottom: -10px;
  3297. left: 155px;
  3298. "
  3299. />
  3300. </div>
  3301. </div>
  3302. <div class="e_add_content" style="width: 100%">
  3303. <div class="e_add_list_pbox" style="width: 100%">
  3304. <div class="e_add_list_pbox_title">
  3305. <span class="type_title">切换模式</span>
  3306. <div class="type_content">
  3307. <span
  3308. :class="{ active: typeMode == 1 }"
  3309. @click="OtherMb(1)"
  3310. >目标树</span
  3311. >
  3312. <span
  3313. :class="{ active: typeMode == 2 }"
  3314. @click="OtherMb(2)"
  3315. >目标罗盘</span
  3316. >
  3317. <span
  3318. :class="{ active: typeMode == 3 }"
  3319. @click="OtherMb(3)"
  3320. >目标看板</span
  3321. >
  3322. </div>
  3323. </div>
  3324. <div class="e_add_list_pbox_content">
  3325. <Mind
  3326. :showBar="false"
  3327. :mindData="data"
  3328. style="width: 100%"
  3329. :jsmindId="
  3330. unitIndex + '-' + itemTaskIndex + 'mind'
  3331. "
  3332. v-if="typeMode == 1"
  3333. ></Mind>
  3334. <Sunburst
  3335. :Josn="eJson"
  3336. :num="eJSONNum"
  3337. style="width: 100%"
  3338. v-if="typeMode == 2"
  3339. >
  3340. </Sunburst>
  3341. <SeeBoard
  3342. :Josn="eJson"
  3343. :num="eJSONNum"
  3344. :ename="eTitle"
  3345. style="width: 100%"
  3346. v-if="typeMode == 3"
  3347. ></SeeBoard>
  3348. </div>
  3349. </div>
  3350. </div>
  3351. </div>
  3352. </div>
  3353. </div>
  3354. <div class="funBlock" style="padding: 0">
  3355. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3356. <div>折叠</div>
  3357. <div class="arrow">
  3358. <img src="../../assets/icon/fold.png" alt />
  3359. </div>
  3360. </div>
  3361. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3362. <div>展开</div>
  3363. <div class="arrow">
  3364. <img src="../../assets/icon/expand.png" alt />
  3365. </div>
  3366. </div>
  3367. </div>
  3368. </div>
  3369. <div
  3370. class="addTaskBorder"
  3371. @click="addTaskBorder"
  3372. v-if="!unitJson[unitIndex].easy"
  3373. >
  3374. <div>
  3375. <img src="../../assets/icon/addHw.png" alt />
  3376. <span>添加任务</span>
  3377. </div>
  3378. </div>
  3379. </div>
  3380. </div>
  3381. </div>
  3382. <div
  3383. style="
  3384. width: calc(100% - 20px);
  3385. background: rgb(255, 255, 255);
  3386. border-radius: 10px;
  3387. "
  3388. v-if="this.steps == 4"
  3389. >
  3390. <div class="basic_box_success">
  3391. <div class="right_img">
  3392. <img src="../../assets/icon/right.png" alt />
  3393. </div>
  3394. <div style="font-weight: bold">成功</div>
  3395. <!-- <div>您的课程编号</div>
  3396. <div class="number">{{ number }}</div>-->
  3397. <!-- <div class="success_button">
  3398. <div class="look_course" @click="isNoFinsh">
  3399. 邀请老师协同编辑
  3400. </div>
  3401. <div class="attend_others" @click="goCourse">预览课程</div>
  3402. </div> -->
  3403. </div>
  3404. </div>
  3405. <div class="info_btnBox">
  3406. <button
  3407. class="info_btn"
  3408. v-if="steps == 1"
  3409. @click="
  3410. goTo(
  3411. '/course?userid=' +
  3412. userid +
  3413. '&oid=' +
  3414. oid +
  3415. '&org=' +
  3416. org +
  3417. '&role=' +
  3418. role
  3419. )
  3420. "
  3421. >
  3422. 返回课程
  3423. </button>
  3424. <button
  3425. class="info_btn"
  3426. v-if="steps > 1 && steps != 5"
  3427. @click="lastSteps"
  3428. >
  3429. {{ steps == 4 ? "返回首页" : "上一步" }}
  3430. </button>
  3431. <button class="info_btn" v-if="steps < 4" @click="nextSteps">
  3432. {{ steps == 3 ? "确认上传" : "下一步" }}
  3433. </button>
  3434. </div>
  3435. </div>
  3436. </div>
  3437. </div>
  3438. <el-dialog
  3439. title="提示"
  3440. :visible.sync="dialogVisible"
  3441. :append-to-body="true"
  3442. width="25%"
  3443. :before-close="handleClose"
  3444. class="dialog_diy2 customWidth"
  3445. >
  3446. <div>请复制该链接邀请协同编辑</div>
  3447. <div>http://www.boomyon.com/index-zhang.com</div>
  3448. <span slot="footer" class="dialog-footer">
  3449. <el-button type="primary">复制链接分享</el-button>
  3450. <el-button @click="dialogVisible = false">取消</el-button>
  3451. </span>
  3452. </el-dialog>
  3453. <el-dialog
  3454. :title="updateBoolean2 ? '查看文档' : '添加文档'"
  3455. :visible.sync="dialogVisible1"
  3456. :append-to-body="true"
  3457. width="25%"
  3458. :before-close="handleClose"
  3459. class="dialog_diy2 customWidth"
  3460. >
  3461. <el-form>
  3462. <el-form-item label="文档标题">
  3463. <el-input
  3464. v-model="tTitle"
  3465. auto-complete="off"
  3466. placeholder="请输入文档标题名..."
  3467. ></el-input>
  3468. </el-form-item>
  3469. <div>文档简介</div>
  3470. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3471. </el-form>
  3472. <span slot="footer" class="dialog-footer">
  3473. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3474. <el-button type="primary" @click="addWord" v-if="!updateBoolean2"
  3475. >添加</el-button
  3476. >
  3477. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3478. </span>
  3479. </el-dialog>
  3480. <el-dialog
  3481. title="添加文档"
  3482. :visible.sync="dialogVisible2"
  3483. :append-to-body="true"
  3484. width="500px"
  3485. :before-close="handleClose"
  3486. class="dialog_diy"
  3487. >
  3488. <el-form>
  3489. <el-form-item label="文档标题">
  3490. <el-input
  3491. v-model="templateC.title"
  3492. auto-complete="off"
  3493. placeholder="请输入文档标题名..."
  3494. ></el-input>
  3495. </el-form-item>
  3496. <div>文档内容</div>
  3497. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3498. </el-form>
  3499. <span slot="footer" class="dialog-footer">
  3500. <el-button @click="clearChoose">取 消</el-button>
  3501. <el-button type="primary" @click="wordNext()">确定</el-button>
  3502. </span>
  3503. </el-dialog>
  3504. <el-dialog
  3505. title="添加富文本"
  3506. :visible.sync="dialogVisible6"
  3507. :append-to-body="true"
  3508. width="500px"
  3509. :before-close="handleClose"
  3510. class="dialog_diy"
  3511. >
  3512. <el-form>
  3513. <el-form-item label="文本标题">
  3514. <el-input
  3515. v-model="AttText.title"
  3516. auto-complete="off"
  3517. @input="change2"
  3518. placeholder="请输入文本标题..."
  3519. ></el-input>
  3520. </el-form-item>
  3521. <div>富文本内容</div>
  3522. <editor-bar v-model="AttText.text" @change="change"></editor-bar>
  3523. </el-form>
  3524. <span slot="footer" class="dialog-footer">
  3525. <el-button @click="clearAttText">取 消</el-button>
  3526. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3527. </span>
  3528. </el-dialog>
  3529. <el-dialog
  3530. title="添加链接"
  3531. :visible.sync="dialogVisible7"
  3532. :append-to-body="true"
  3533. width="500px"
  3534. :before-close="handleClose"
  3535. class="dialog_diy lineCss"
  3536. >
  3537. <el-form>
  3538. <el-form-item label="标题" :label-width="formLabelWidth">
  3539. <span>
  3540. <el-input
  3541. placeholder="请输入链接标题"
  3542. clearable
  3543. v-model="lineTitle"
  3544. class="add_input"
  3545. ></el-input>
  3546. </span>
  3547. </el-form-item>
  3548. <el-form-item label="链接" :label-width="formLabelWidth">
  3549. <span>
  3550. <el-input
  3551. placeholder="请输入链接"
  3552. clearable
  3553. v-model="line"
  3554. class="add_input"
  3555. ></el-input>
  3556. </span>
  3557. </el-form-item>
  3558. </el-form>
  3559. <span slot="footer" class="dialog-footer">
  3560. <el-button @click="clearLine">取 消</el-button>
  3561. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3562. </span>
  3563. </el-dialog>
  3564. <el-dialog
  3565. title="添加资源"
  3566. :visible.sync="dialogVisibleSource"
  3567. :append-to-body="true"
  3568. width="100%"
  3569. :before-close="handleClose"
  3570. class="dialog_diy source_diy"
  3571. >
  3572. <div>
  3573. <sourceDialog :sourceData="sourceData"></sourceDialog>
  3574. </div>
  3575. <span slot="footer" class="dialog-footer">
  3576. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3577. <el-button type="primary" @click="addSource">确定</el-button>
  3578. </span>
  3579. </el-dialog>
  3580. <el-dialog
  3581. title="添加课程成员"
  3582. :visible.sync="dialogVisible3"
  3583. :append-to-body="true"
  3584. width="25%"
  3585. height="80%"
  3586. :before-close="handleClose"
  3587. class="addNewPP customWidth"
  3588. >
  3589. <div class="people">
  3590. <div class="people_top">
  3591. <div class="people_nav">选择成员</div>
  3592. <div class="people_top_right">
  3593. <div class="people_search">
  3594. <el-input
  3595. style="height: 100%"
  3596. placeholder="搜索成员名称"
  3597. v-model="searchPeople"
  3598. ></el-input>
  3599. <div class="search_img" @click="searchStudent">
  3600. <img src="../../assets/icon/search.png" alt />
  3601. </div>
  3602. </div>
  3603. </div>
  3604. </div>
  3605. <el-checkbox-group v-model="checkboxList" class="people_name">
  3606. <el-checkbox
  3607. v-for="item in studentJuri"
  3608. :key="item.userid"
  3609. :label="item.userid"
  3610. >{{ item.name ? item.name : "暂无学生可选" }}</el-checkbox
  3611. >
  3612. </el-checkbox-group>
  3613. </div>
  3614. <span slot="footer" class="dialog-footer">
  3615. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3616. <el-button type="primary" @click="isAddPP">确定</el-button>
  3617. </span>
  3618. </el-dialog>
  3619. <el-dialog
  3620. title="添加班级"
  3621. :visible.sync="dialogVisibleClass"
  3622. :append-to-body="true"
  3623. width="400px"
  3624. height="80%"
  3625. :before-close="handleClose"
  3626. class="addNewPP"
  3627. >
  3628. <div class="people" style="height: 300px">
  3629. <div class="people_top">
  3630. <div class="people_top_right">
  3631. <div class="people_search">
  3632. <el-input
  3633. placeholder="搜索班级名称"
  3634. v-model="classSearch"
  3635. @input="getClass()"
  3636. ></el-input>
  3637. <!-- @click="getClass()"
  3638. @keyup.enter.native="getClass()"
  3639. -->
  3640. <div class="search_img">
  3641. <img src="../../assets/icon/search.png" alt />
  3642. </div>
  3643. </div>
  3644. </div>
  3645. <div class="people_nav">选择班级</div>
  3646. </div>
  3647. <el-checkbox-group
  3648. v-model="checkboxList2"
  3649. class="people_name people_name2"
  3650. @change="InviteChange"
  3651. >
  3652. <div v-for="item in grade2" :key="item.id" class="p_box">
  3653. <el-checkbox :label="item.id">
  3654. {{ item.name }}
  3655. </el-checkbox>
  3656. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  3657. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  3658. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  3659. @click="OpenInviteD(item.id)">随机码设置</div>
  3660. <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  3661. </div>
  3662. </el-checkbox-group>
  3663. </div>
  3664. <span slot="footer" class="dialog-footer">
  3665. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3666. <el-button type="primary" @click="isAddClass">确定</el-button>
  3667. </span>
  3668. </el-dialog>
  3669. <el-dialog
  3670. title="添加协同成员"
  3671. :visible.sync="dialogVisibleMember"
  3672. :append-to-body="true"
  3673. width="25%"
  3674. height="80%"
  3675. :before-close="handleClose"
  3676. class="addNewPP customWidth"
  3677. >
  3678. <div class="people">
  3679. <div class="people_top">
  3680. <div class="people_top_right">
  3681. <div class="people_search">
  3682. <el-input
  3683. placeholder="搜索成员名称"
  3684. v-model="searchTN"
  3685. @keyup.enter.native="getTeacher"
  3686. ></el-input>
  3687. <div class="search_img" @click="getTeacher">
  3688. <img src="../../assets/icon/search.png" alt />
  3689. </div>
  3690. </div>
  3691. </div>
  3692. <div class="people_nav">选择成员</div>
  3693. </div>
  3694. <el-checkbox-group
  3695. v-model="checkboxList3"
  3696. class="people_name"
  3697. v-if="teacherJuri.length"
  3698. >
  3699. <el-checkbox
  3700. v-for="item in teacherJuri"
  3701. :key="item.userid"
  3702. :label="item.userid"
  3703. >
  3704. <div class="t_j_box">
  3705. <el-tooltip
  3706. placement="top"
  3707. :content="item.name ? item.name : '暂无姓名'"
  3708. >
  3709. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3710. </el-tooltip>
  3711. <el-tooltip placement="top" :content="item.username">
  3712. <span>{{ item.username }}</span>
  3713. </el-tooltip>
  3714. <el-tooltip placement="top" :content="item.school">
  3715. <span>{{ item.school }}</span>
  3716. </el-tooltip>
  3717. </div>
  3718. </el-checkbox>
  3719. </el-checkbox-group>
  3720. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3721. </div>
  3722. <span slot="footer" class="dialog-footer">
  3723. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3724. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3725. </span>
  3726. </el-dialog>
  3727. <el-dialog
  3728. title="创建问卷"
  3729. :visible.sync="dialogVisible5"
  3730. :append-to-body="true"
  3731. width="800px"
  3732. :before-close="handleClose"
  3733. class="dialog_diy"
  3734. >
  3735. <div>
  3736. <div
  3737. class="a_add_title"
  3738. style="
  3739. display: flex;
  3740. flex-direction: row;
  3741. align-items: center;
  3742. justify-content: center;
  3743. "
  3744. >
  3745. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3746. <el-input
  3747. v-model="askJson.askTitle"
  3748. placeholder="请输入标题"
  3749. style="width: 400px"
  3750. ></el-input>
  3751. </div>
  3752. <div class="a_addBox">
  3753. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  3754. <div
  3755. class="a_add_box"
  3756. v-for="(item1, index1) in askJson.askCount"
  3757. :key="index1"
  3758. >
  3759. <div class="a_add_checkType">
  3760. <span
  3761. :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  3762. @click="checkAskType('1', askJson.askJson[index1])"
  3763. >单选题</span
  3764. >
  3765. <span
  3766. :class="{ active: askJson.askJson[index1].type == '2' }"
  3767. @click="checkAskType('2', askJson.askJson[index1])"
  3768. >多选题</span
  3769. >
  3770. </div>
  3771. <div class="a_add_head">
  3772. <div>
  3773. {{ index1 + 1 + "、" }}
  3774. <el-input
  3775. class="a_add_head_input"
  3776. v-model="askJson.askJson[index1].askstitle"
  3777. placeholder="请输入题目..."
  3778. >
  3779. </el-input>
  3780. </div>
  3781. <div class="a_add_head_div">
  3782. <el-button type="primary" size="small" @click="addAskList()"
  3783. >添加</el-button
  3784. >
  3785. <el-button
  3786. type="primary"
  3787. size="small"
  3788. @click="deleteAskList(index1)"
  3789. v-if="askJson.askCount != 1"
  3790. >删除
  3791. </el-button>
  3792. </div>
  3793. </div>
  3794. <div class="a_add_body">
  3795. <div class="a_add_input">
  3796. <el-input
  3797. v-for="(item2, checkIndex) in askJson.askJson[index1].askItem"
  3798. :key="checkIndex"
  3799. v-model="askJson.askJson[index1].checkList[checkIndex]"
  3800. placeholder="请输入选项..."
  3801. style="width: 150px; margin: 10px 10px 0 0"
  3802. ></el-input>
  3803. </div>
  3804. <div class="a_add_body_div">
  3805. <el-button
  3806. style="margin: 10px 0px 0 0"
  3807. type="primary"
  3808. size="small"
  3809. @click="addcheckList(askJson.askJson[index1])"
  3810. >添加</el-button
  3811. >
  3812. <el-button
  3813. type="primary"
  3814. size="small"
  3815. style="margin: 10px 0 0 10px"
  3816. @click="deletecheckList(askJson.askJson[index1])"
  3817. v-if="askJson.askJson[index1].askItem != 1"
  3818. >删除
  3819. </el-button>
  3820. </div>
  3821. </div>
  3822. </div>
  3823. </div>
  3824. </div>
  3825. <span slot="footer" class="dialog-footer">
  3826. <el-button @click="dialogVisible5 = false">取 消</el-button>
  3827. <el-button type="primary" @click="addAsk">确 定</el-button>
  3828. </span>
  3829. </el-dialog>
  3830. <el-dialog
  3831. title="创建选择题"
  3832. :visible.sync="dialogVisibleChoice"
  3833. :append-to-body="true"
  3834. width="800px"
  3835. :before-close="handleClose"
  3836. class="dialog_diy"
  3837. >
  3838. <div>
  3839. <!-- <div class="a_add_title" style="
  3840. display: flex;
  3841. flex-direction: row;
  3842. align-items: center;
  3843. justify-content: center;
  3844. ">
  3845. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3846. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3847. </div> -->
  3848. <div class="a_addBox">
  3849. <div style="font-size: 16px; color: #c7c7c7">
  3850. 请输入题目内容
  3851. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  3852. </div>
  3853. <div
  3854. class="a_add_box"
  3855. v-for="(item1, index1) in testJson.testCount"
  3856. :key="index1"
  3857. >
  3858. <div class="a_add_checkType">
  3859. <span
  3860. :class="{ active: testJson.testJson[index1].type == '1' }"
  3861. @click="checkTestType('1', testJson.testJson[index1])"
  3862. >单选题</span
  3863. >
  3864. <span
  3865. :class="{ active: testJson.testJson[index1].type == '2' }"
  3866. @click="checkTestType('2', testJson.testJson[index1])"
  3867. >多选题</span
  3868. >
  3869. </div>
  3870. <div class="a_add_head">
  3871. <div class="timuUpImg">
  3872. <div>
  3873. {{ index1 + 1 + "、" }}
  3874. <el-input
  3875. class="a_add_head_input"
  3876. v-model="testJson.testJson[index1].teststitle"
  3877. placeholder="请输入题目..."
  3878. >
  3879. </el-input>
  3880. </div>
  3881. <div class="xzUpImg" @click.stop="addImg($event)">
  3882. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3883. <input
  3884. type="file"
  3885. accept="image/*"
  3886. style="display: none"
  3887. @change="beforeUploadTiMu($event, index1)"
  3888. />
  3889. </div>
  3890. </div>
  3891. <div class="a_add_head_div">
  3892. <el-button type="primary" size="small" @click="addTestList()"
  3893. >添加</el-button
  3894. >
  3895. <el-button
  3896. type="primary"
  3897. size="small"
  3898. @click="deleteTestList(index1)"
  3899. v-if="testJson.testCount != 1"
  3900. >删除
  3901. </el-button>
  3902. </div>
  3903. </div>
  3904. <div
  3905. class="timuImgBox"
  3906. v-if="
  3907. testJson.testJson[index1].timuList &&
  3908. testJson.testJson[index1].timuList.length
  3909. "
  3910. >
  3911. <div
  3912. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  3913. :key="tIndex"
  3914. class="timuImg"
  3915. @click.stop="previewImg(timg.src)"
  3916. >
  3917. <img :src="timg.src" alt="" />
  3918. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3919. <img src="../../assets/icon/delete.png" alt="" />
  3920. </div>
  3921. </div>
  3922. </div>
  3923. <div class="a_add_body">
  3924. <div class="a_add_input a_add_input_choice">
  3925. <el-radio-group
  3926. v-model="testJson.testJson[index1].answer"
  3927. v-if="testJson.testJson[index1].type == 1"
  3928. >
  3929. <div class="radioBox">
  3930. <el-radio
  3931. v-for="(item2, checkIndex) in testJson.testJson[index1]
  3932. .testItem"
  3933. :key="checkIndex"
  3934. :label="checkIndex"
  3935. >
  3936. <div style="margin-right: 10px">
  3937. 选项{{ checkIndex + 1 }}
  3938. </div>
  3939. <div
  3940. style="margin-right: 10px; width: 300px"
  3941. v-if="
  3942. testJson.testJson[index1].checkList[checkIndex] &&
  3943. testJson.testJson[index1].checkList[checkIndex]
  3944. .imgType &&
  3945. testJson.testJson[index1].checkList[checkIndex]
  3946. .imgType == 1
  3947. "
  3948. >
  3949. <div
  3950. class="inImg"
  3951. @click.stop="
  3952. previewImg(
  3953. testJson.testJson[index1].checkList[checkIndex]
  3954. .src
  3955. )
  3956. "
  3957. >
  3958. <el-image
  3959. :src="
  3960. testJson.testJson[index1].checkList[checkIndex]
  3961. .src
  3962. "
  3963. lazy
  3964. />
  3965. <!-- <img :src="
  3966. testJson.testJson[index1].checkList[checkIndex]
  3967. .src
  3968. " alt="" /> -->
  3969. </div>
  3970. </div>
  3971. <el-input
  3972. v-else
  3973. v-model="
  3974. testJson.testJson[index1].checkList[checkIndex]
  3975. "
  3976. placeholder="请输入选项..."
  3977. style="width: 300px; margin-right: 10px"
  3978. ></el-input>
  3979. <div class="xzUpImg" @click.stop="addImg($event)">
  3980. <img src="../../assets/icon/xzUpImg.png" alt="" />
  3981. <input
  3982. type="file"
  3983. accept="image/*"
  3984. style="display: none"
  3985. @change="beforeUploadTi($event, index1, checkIndex)"
  3986. />
  3987. </div>
  3988. </el-radio>
  3989. </div>
  3990. </el-radio-group>
  3991. <el-checkbox-group
  3992. v-model="testJson.testJson[index1].answer"
  3993. v-if="testJson.testJson[index1].type == '2'"
  3994. >
  3995. <div class="radioBox">
  3996. <el-checkbox
  3997. v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3998. .testItem"
  3999. :key="checkIndex1"
  4000. :label="checkIndex1"
  4001. >
  4002. <div style="margin-right: 10px">
  4003. 选项{{ checkIndex1 + 1 }}
  4004. </div>
  4005. <div
  4006. style="margin-right: 10px; width: 300px"
  4007. v-if="
  4008. testJson.testJson[index1].checkList[checkIndex1] &&
  4009. testJson.testJson[index1].checkList[checkIndex1]
  4010. .imgType &&
  4011. testJson.testJson[index1].checkList[checkIndex1]
  4012. .imgType == 1
  4013. "
  4014. >
  4015. <div
  4016. class="inImg"
  4017. @click.stop="
  4018. previewImg(
  4019. testJson.testJson[index1].checkList[checkIndex1]
  4020. .src
  4021. )
  4022. "
  4023. >
  4024. <el-image
  4025. :src="
  4026. testJson.testJson[index1].checkList[checkIndex1]
  4027. .src
  4028. "
  4029. lazy
  4030. />
  4031. <!-- <img :src="
  4032. testJson.testJson[index1].checkList[checkIndex1]
  4033. .src
  4034. " alt="" /> -->
  4035. </div>
  4036. </div>
  4037. <el-input
  4038. v-else
  4039. v-model="
  4040. testJson.testJson[index1].checkList[checkIndex1]
  4041. "
  4042. placeholder="请输入选项..."
  4043. style="width: 300px; margin-right: 10px"
  4044. ></el-input>
  4045. <div class="xzUpImg" @click.stop="addImg($event)">
  4046. <img src="../../assets/icon/xzUpImg.png" alt="" />
  4047. <input
  4048. type="file"
  4049. accept="image/*"
  4050. style="display: none"
  4051. @change="beforeUploadTi($event, index1, checkIndex1)"
  4052. />
  4053. </div>
  4054. </el-checkbox>
  4055. </div>
  4056. </el-checkbox-group>
  4057. </div>
  4058. <div class="a_add_body_div" style="margin-bottom: 3px">
  4059. <el-button
  4060. type="primary"
  4061. size="small"
  4062. @click="addTcheckList(testJson.testJson[index1])"
  4063. >添加</el-button
  4064. >
  4065. <el-button
  4066. type="primary"
  4067. size="small"
  4068. @click="deleteTcheckList(testJson.testJson[index1])"
  4069. v-if="testJson.testJson[index1].testItem != 1"
  4070. >删除
  4071. </el-button>
  4072. </div>
  4073. </div>
  4074. </div>
  4075. </div>
  4076. </div>
  4077. <span slot="footer" class="dialog-footer">
  4078. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  4079. <el-button type="primary" @click="addTest">确 定</el-button>
  4080. </span>
  4081. </el-dialog>
  4082. <el-dialog
  4083. title="添加工具"
  4084. :visible.sync="dialogVisible4"
  4085. :append-to-body="true"
  4086. width="600px"
  4087. :before-close="handleClose"
  4088. class="dialog_diy addToolsDia"
  4089. >
  4090. <div class="toolChoose" style="padding: 0 0 0 30px">
  4091. <div class="tools">
  4092. <div
  4093. class="leftTools"
  4094. style="
  4095. width: 95%;
  4096. padding: 0 0 15px 0;
  4097. border-bottom: 1px solid #efefef;
  4098. margin-bottom: 15px;
  4099. "
  4100. v-for="(itemTools, itemToolsIndex) in chapTools"
  4101. :key="itemToolsIndex"
  4102. >
  4103. <div
  4104. style="
  4105. display: flex;
  4106. flex-direction: row;
  4107. align-items: baseline;
  4108. flex-wrap: nowrap;
  4109. justify-content: flex-start;
  4110. position: relative;
  4111. "
  4112. >
  4113. <div class="chooseWho">
  4114. <div
  4115. :class="chapToolsType == 0 ? 'isChooseActive' : ''"
  4116. @click="chapToolsType = 0"
  4117. >
  4118. 互动类
  4119. </div>
  4120. <div
  4121. :class="chapToolsType == 1 ? 'isChooseActive' : ''"
  4122. @click="chapToolsType = 1"
  4123. >
  4124. 思维类
  4125. </div>
  4126. <div
  4127. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  4128. @click="chapToolsType = 2"
  4129. >
  4130. 评价类
  4131. </div>
  4132. <div
  4133. :class="chapToolsType == 2 ? 'isChooseActive' : ''"
  4134. @click="chapToolsType = 2"
  4135. >
  4136. 其他
  4137. </div>
  4138. </div>
  4139. </div>
  4140. <div style="min-height: 163px">
  4141. <div class="toolSort" v-if="chapToolsType == 0">
  4142. <div class="tool">
  4143. <div class="whiteBIcon" @click="chapAddTools(8)">
  4144. <img
  4145. src="../../assets/icon/secondToolList/library.png"
  4146. alt
  4147. />
  4148. <div style="margin: 5px 0">素材库</div>
  4149. </div>
  4150. <div class="check" @click="chapAddTools(8)">
  4151. <img
  4152. src="../../assets/icon/checkNo.png"
  4153. alt
  4154. v-if="itemTools.tools.indexOf(8) == -1"
  4155. />
  4156. <div class="checkDiv" v-else>
  4157. <img src="../../assets/icon/checkedIs.png" alt /><span
  4158. >已选择</span
  4159. >
  4160. </div>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. <div class="toolSort" v-if="chapToolsType == 1">
  4165. <div class="tool">
  4166. <div class="whiteBIcon" @click="chapAddTools(7)">
  4167. <img
  4168. src="../../assets/icon/secondToolList/mindNetwork.png"
  4169. alt
  4170. />
  4171. <div style="margin: 5px 0">思维网格</div>
  4172. </div>
  4173. <div class="check" @click="chapAddTools(7)">
  4174. <img
  4175. src="../../assets/icon/checkNo.png"
  4176. alt
  4177. v-if="itemTools.tools.indexOf(7) == -1"
  4178. />
  4179. <div class="checkDiv" v-else>
  4180. <img src="../../assets/icon/checkedIs.png" alt /><span
  4181. >已选择</span
  4182. >
  4183. </div>
  4184. </div>
  4185. </div>
  4186. <div class="tool">
  4187. <div class="whiteBIcon" @click="chapAddTools(1)">
  4188. <img
  4189. src="../../assets/icon/secondToolList/whiteBoard.png"
  4190. alt
  4191. />
  4192. <div style="margin: 5px 0">电子白板</div>
  4193. </div>
  4194. <div class="check" @click="chapAddTools(1)">
  4195. <img
  4196. src="../../assets/icon/checkNo.png"
  4197. alt
  4198. v-if="itemTools.tools.indexOf(1) == -1"
  4199. />
  4200. <div class="checkDiv" v-else>
  4201. <img src="../../assets/icon/checkedIs.png" alt /><span
  4202. >已选择</span
  4203. >
  4204. </div>
  4205. </div>
  4206. </div>
  4207. <div class="tool">
  4208. <div class="whiteBIcon" @click="chapAddTools(2)">
  4209. <img src="../../assets/icon/secondToolList/note.png" alt />
  4210. <div style="margin: 5px 0">便签</div>
  4211. </div>
  4212. <div class="check" @click="chapAddTools(2)">
  4213. <img
  4214. src="../../assets/icon/checkNo.png"
  4215. alt
  4216. v-if="itemTools.tools.indexOf(2) == -1"
  4217. />
  4218. <div class="checkDiv" v-else>
  4219. <img src="../../assets/icon/checkedIs.png" alt /><span
  4220. >已选择</span
  4221. >
  4222. </div>
  4223. </div>
  4224. </div>
  4225. <div class="tool">
  4226. <div class="whiteBIcon" @click="chapAddTools(6)">
  4227. <img src="../../assets/icon/secondToolList/doc.png" alt />
  4228. <div style="margin: 5px 0">协同文档</div>
  4229. </div>
  4230. <div class="check" @click="chapAddTools(6)">
  4231. <img
  4232. src="../../assets/icon/checkNo.png"
  4233. alt
  4234. v-if="itemTools.tools.indexOf(6) == -1"
  4235. />
  4236. <div class="checkDiv" v-else>
  4237. <img src="../../assets/icon/checkedIs.png" alt /><span
  4238. >已选择</span
  4239. >
  4240. </div>
  4241. </div>
  4242. </div>
  4243. <div class="tool">
  4244. <div class="whiteBIcon" @click="chapAddTools(3)">
  4245. <img
  4246. src="../../assets/icon/secondToolList/mindMapping.png"
  4247. alt
  4248. />
  4249. <div style="margin: 5px 0">思维导图</div>
  4250. </div>
  4251. <div class="check" @click="chapAddTools(3)">
  4252. <img
  4253. src="../../assets/icon/checkNo.png"
  4254. alt
  4255. v-if="itemTools.tools.indexOf(3) == -1"
  4256. />
  4257. <div class="checkDiv" v-else>
  4258. <img src="../../assets/icon/checkedIs.png" alt /><span
  4259. >已选择</span
  4260. >
  4261. </div>
  4262. </div>
  4263. </div>
  4264. <div class="tool">
  4265. <div class="whiteBIcon" @click="chapAddTools(31)">
  4266. <img
  4267. src="../../assets/icon/secondToolList/networkPanel.png"
  4268. alt
  4269. />
  4270. <div style="margin: 5px 0">数学画板</div>
  4271. </div>
  4272. <div class="check" @click="chapAddTools(31)">
  4273. <img
  4274. src="../../assets/icon/checkNo.png"
  4275. alt
  4276. v-if="itemTools.tools.indexOf(31) == -1"
  4277. />
  4278. <div class="checkDiv" v-else>
  4279. <img src="../../assets/icon/checkedIs.png" alt /><span
  4280. >已选择</span
  4281. >
  4282. </div>
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div class="toolSort" v-if="chapToolsType == 2">
  4287. <div class="tool">
  4288. <div class="whiteBIcon" @click="chapAddTools(5)">
  4289. <img src="../../assets/icon/thirdToolList/score.png" alt />
  4290. <div style="margin: 5px 0">量规评分</div>
  4291. </div>
  4292. <div class="check" @click="chapAddTools(5)">
  4293. <img
  4294. src="../../assets/icon/checkNo.png"
  4295. alt
  4296. v-if="itemTools.tools.indexOf(5) == -1"
  4297. />
  4298. <div class="checkDiv" v-else>
  4299. <img src="../../assets/icon/checkedIs.png" alt /><span
  4300. >已选择</span
  4301. >
  4302. </div>
  4303. </div>
  4304. </div>
  4305. <div class="tool">
  4306. <div
  4307. class="whiteBIcon"
  4308. @click="openTools(chapCount, 4, null)"
  4309. >
  4310. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  4311. <div style="margin: 5px 0">问卷调查</div>
  4312. </div>
  4313. <div class="check" @click="chapAddTools(4)">
  4314. <img
  4315. src="../../assets/icon/checkNo.png"
  4316. alt
  4317. v-if="itemTools.tools.indexOf(4) == -1"
  4318. />
  4319. <div class="checkDiv" v-else>
  4320. <img src="../../assets/icon/checkedIs.png" alt /><span
  4321. >已选择</span
  4322. >
  4323. </div>
  4324. </div>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. <div>
  4329. <input
  4330. type="text"
  4331. placeholder="添加工具描述"
  4332. class="binfo_input"
  4333. style="margin: 20px 0; width: 71.5% !important"
  4334. v-model="itemTools.toolDetail"
  4335. />
  4336. </div>
  4337. </div>
  4338. </div>
  4339. </div>
  4340. <span slot="footer" class="dialog-footer">
  4341. <el-button @click="dialogVisible4 = false">取 消</el-button>
  4342. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  4343. </span>
  4344. </el-dialog>
  4345. <el-dialog
  4346. title="添加问答"
  4347. :visible.sync="dialogVisible8"
  4348. :append-to-body="true"
  4349. width="500px"
  4350. :before-close="handleClose"
  4351. class="dialog_diy"
  4352. >
  4353. <div>
  4354. <div
  4355. class="a_add_title"
  4356. style="
  4357. display: flex;
  4358. flex-direction: column;
  4359. align-items: flex-start;
  4360. justify-content: center;
  4361. "
  4362. >
  4363. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4364. <el-input
  4365. v-model="answerQ"
  4366. placeholder="请输入您要问的问题"
  4367. ></el-input>
  4368. </div>
  4369. </div>
  4370. <span slot="footer" class="dialog-footer">
  4371. <el-button @click="dialogVisible8 = false">取 消</el-button>
  4372. <el-button type="primary" @click="addAnswer">确 定</el-button>
  4373. </span>
  4374. </el-dialog>
  4375. <el-dialog
  4376. title="添加问题"
  4377. :visible.sync="dialogVisibleMp3"
  4378. :append-to-body="true"
  4379. width="500px"
  4380. :before-close="handleClose"
  4381. class="dialog_diy"
  4382. >
  4383. <div>
  4384. <div
  4385. class="a_add_title"
  4386. style="
  4387. display: flex;
  4388. flex-direction: column;
  4389. align-items: flex-start;
  4390. justify-content: center;
  4391. "
  4392. >
  4393. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  4394. <el-input
  4395. v-model="answerQ"
  4396. placeholder="请输入您想要回答的问题"
  4397. ></el-input>
  4398. </div>
  4399. </div>
  4400. <span slot="footer" class="dialog-footer">
  4401. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  4402. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  4403. </span>
  4404. </el-dialog>
  4405. <el-dialog
  4406. title="上传图片"
  4407. :visible.sync="choosePicVisible"
  4408. :append-to-body="true"
  4409. width="500px"
  4410. :before-close="handleClose"
  4411. class="dialog_diy"
  4412. >
  4413. <div>
  4414. <div class="fileCss" style="padding-top: 20px">
  4415. <div>
  4416. <button class="info_btn" @click="addImg($event)">
  4417. 选择本地文件
  4418. <input
  4419. type="file"
  4420. accept="image/*"
  4421. style="display: none"
  4422. @change="beforeUpload1"
  4423. />
  4424. </button>
  4425. </div>
  4426. <div>
  4427. <el-button
  4428. @click="getAllBanner"
  4429. v-if="isSysPic == false && cover.length == 0"
  4430. >选择系统文件</el-button
  4431. >
  4432. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  4433. <img :src="cover[0].url" alt="" />
  4434. <div class="deletePic" @click="deleteSysPic">
  4435. <img src="../../assets/icon/delete.png" alt="" />
  4436. </div>
  4437. </div>
  4438. </div>
  4439. </div>
  4440. <div class="fileCss">
  4441. <div>选择本地文件</div>
  4442. <div>选择系统文件</div>
  4443. </div>
  4444. </div>
  4445. <span slot="footer" class="dialog-footer">
  4446. <el-button @click="choosePicVisible = false">取 消</el-button>
  4447. <el-button type="primary" @click="choosePicVisible = false"
  4448. >确 定</el-button
  4449. >
  4450. </span>
  4451. </el-dialog>
  4452. <el-dialog
  4453. title="选择系统文件"
  4454. :visible.sync="sysPicVisible"
  4455. :append-to-body="true"
  4456. width="710px"
  4457. :before-close="handleClose"
  4458. class="dialog_diy"
  4459. >
  4460. <div class="cru_selectBox" style="margin: 0">
  4461. <div
  4462. @click="getChoosePic(1)"
  4463. class="cru_select"
  4464. :class="chooseType == 1 ? 'cru_selected' : ''"
  4465. >
  4466. 绘画
  4467. </div>
  4468. <div
  4469. @click="getChoosePic(2)"
  4470. class="cru_select"
  4471. :class="chooseType == 2 ? 'cru_selected' : ''"
  4472. >
  4473. 科技
  4474. </div>
  4475. <div
  4476. @click="getChoosePic(3)"
  4477. class="cru_select"
  4478. :class="chooseType == 3 ? 'cru_selected' : ''"
  4479. >
  4480. 人文
  4481. </div>
  4482. <div
  4483. @click="getChoosePic(4)"
  4484. class="cru_select"
  4485. :class="chooseType == 4 ? 'cru_selected' : ''"
  4486. >
  4487. 艺术
  4488. </div>
  4489. </div>
  4490. <div class="sysPicBox">
  4491. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  4492. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  4493. </div>
  4494. </div>
  4495. <span slot="footer" class="dialog-footer">
  4496. <el-button @click="sysPicVisible = false">取 消</el-button>
  4497. <el-button type="primary">确 定</el-button>
  4498. </span>
  4499. </el-dialog>
  4500. <el-dialog
  4501. title="选择填空"
  4502. :visible.sync="dialogVisibleSelect"
  4503. :append-to-body="true"
  4504. width="800px"
  4505. :before-close="handleClose"
  4506. class="dialog_diy dialog_diy3"
  4507. >
  4508. <div v-if="selectJson">
  4509. <div class="select_box1" v-if="selectSteps == 1">
  4510. <div class="select_box1_img">
  4511. <div class="select_box1_title">
  4512. <span>上传题目图片</span
  4513. ><span>提示:请将题目以图片的方式上传</span>
  4514. </div>
  4515. <div class="select_box1_add_img">
  4516. <div
  4517. class="uploadFm"
  4518. @click="addImg($event)"
  4519. v-if="!selectJson.url"
  4520. >
  4521. <input
  4522. type="file"
  4523. accept="image/*"
  4524. style="display: none"
  4525. @change="beforeUploadSelect"
  4526. />
  4527. <img src="../../assets/icon/addPoster.png" alt="" />
  4528. </div>
  4529. <div class="isSysPic" v-else>
  4530. <img :src="selectJson.url" alt="" />
  4531. <div class="deletePic" @click="deleteSelectPic">
  4532. <img src="../../assets/icon/delete.png" alt="" />
  4533. </div>
  4534. </div>
  4535. </div>
  4536. </div>
  4537. <div class="select_box1_select">
  4538. <div class="select_box1_title">
  4539. <span>添加选项</span><span>提示:请输入题目选项</span>
  4540. </div>
  4541. <div class="select_box1_select_box">
  4542. <el-input
  4543. v-for="(item2, checkIndex) in selectJson.select"
  4544. :key="checkIndex"
  4545. v-model="selectJson.select[checkIndex]"
  4546. placeholder="请输入选项..."
  4547. style="width: 150px; margin: 10px 10px 0 0"
  4548. ></el-input>
  4549. <div class="select_box1_select_box_add">
  4550. <el-button
  4551. style="margin: 10px 0px 0 0"
  4552. type="primary"
  4553. size="small"
  4554. @click="addSelectList(selectJson)"
  4555. >
  4556. 添加</el-button
  4557. >
  4558. <el-button
  4559. type="primary"
  4560. size="small"
  4561. style="margin: 10px 0 0 0"
  4562. @click="deleteSelectList(selectJson)"
  4563. v-if="selectJson.select && selectJson.select.length > 0"
  4564. >删除</el-button
  4565. >
  4566. </div>
  4567. </div>
  4568. </div>
  4569. </div>
  4570. <div v-if="selectSteps == 2">
  4571. <div class="select_box2">
  4572. <div class="select_box2_title">设置答案</div>
  4573. <div class="select_box2_box">
  4574. <div class="select_box2_img">
  4575. <img :src="selectJson.url" alt="" />
  4576. </div>
  4577. <div class="select_box2_answer">
  4578. <div class="select_answer_title">根据题目选择对应答案</div>
  4579. <div
  4580. class="select_box2_answer_box"
  4581. v-for="(item2, checkIndex) in selectJson.select"
  4582. :key="checkIndex"
  4583. >
  4584. <span>{{ checkIndex + 1 }}、</span>
  4585. <el-select
  4586. v-model="selectJson.answer[checkIndex]"
  4587. placeholder="请选择正确答案"
  4588. >
  4589. <el-option
  4590. v-for="(e, eIndex) in selectJson.select"
  4591. :key="eIndex"
  4592. :label="e"
  4593. :value="eIndex"
  4594. >
  4595. </el-option>
  4596. </el-select>
  4597. </div>
  4598. </div>
  4599. </div>
  4600. </div>
  4601. </div>
  4602. </div>
  4603. <span slot="footer" class="dialog-footer">
  4604. <el-button
  4605. type="primary"
  4606. @click="nextSelectSteps()"
  4607. v-if="selectSteps == 1"
  4608. >下一步</el-button
  4609. >
  4610. <el-button @click="selectSteps--" v-if="selectSteps == 2"
  4611. >上一步</el-button
  4612. >
  4613. <el-button
  4614. type="primary"
  4615. @click="addSelectAnswer"
  4616. v-if="selectSteps == 2"
  4617. >确 定</el-button
  4618. >
  4619. </span>
  4620. </el-dialog>
  4621. <el-dialog
  4622. title="添加评价"
  4623. :visible.sync="dialogVisibleRate"
  4624. :append-to-body="true"
  4625. width="650px"
  4626. :before-close="handleClose"
  4627. class="dialog_diy"
  4628. >
  4629. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  4630. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  4631. <div class="pjCss" style="width: 100%">
  4632. <div
  4633. v-if="rateJson.length"
  4634. class="elist_input"
  4635. style="height: 360px; overflow: auto"
  4636. >
  4637. <div
  4638. v-for="(eItem, eIndex) in rateJson"
  4639. :key="eIndex"
  4640. class="elist_input_box"
  4641. >
  4642. <span style="min-width: 100px; text-align: right"
  4643. >个人评价指标:</span
  4644. >
  4645. <input
  4646. type="input"
  4647. v-model="eItem.value"
  4648. placeholder="填写评价名称"
  4649. />
  4650. <div class="remove" @click="deletRateList(eIndex)"></div>
  4651. <div style="width: 100%; display: flex">
  4652. <span style="min-width: 100px; text-align: right"
  4653. >评星等级:</span
  4654. >
  4655. <el-rate v-model="eItem.score" disabled></el-rate>
  4656. </div>
  4657. <div class="elist_inptu_text" style="align-items: flex-start">
  4658. <span style="min-width: 100px; text-align: right">描述:</span>
  4659. <textarea
  4660. class="rate_textarea"
  4661. :rows="3"
  4662. v-model="eItem.detail"
  4663. placeholder="填写评价描述"
  4664. ></textarea>
  4665. </div>
  4666. </div>
  4667. </div>
  4668. <div class="addToolFun" @click="addRateList()">
  4669. <div class="addToolImg">
  4670. <img src="../../assets/icon/add.png" alt />
  4671. </div>
  4672. <div>添加</div>
  4673. </div>
  4674. </div>
  4675. </div>
  4676. <span slot="footer" class="dialog-footer">
  4677. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  4678. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  4679. </span>
  4680. </el-dialog>
  4681. <el-dialog
  4682. title="连词成句设置"
  4683. :visible.sync="dialogVisibleSentence"
  4684. :append-to-body="true"
  4685. width="1000px"
  4686. :before-close="handleClose"
  4687. class="dialog_diy dialog_diy3"
  4688. >
  4689. <div>
  4690. <div class="sentenBox">
  4691. <div class="addSen" @click="addSt">添加题目</div>
  4692. <div
  4693. v-for="(st, stIndex) in sentenceList"
  4694. :key="stIndex"
  4695. style="padding-bottom: 20px"
  4696. >
  4697. <div class="sentenTopBox">
  4698. <div class="sentenTop">
  4699. <div>题目设置</div>
  4700. <div>
  4701. <el-input
  4702. placeholder="请输入卡片内容"
  4703. v-model="st.sentenceTitle"
  4704. ></el-input>
  4705. </div>
  4706. <div @click="addSen(stIndex)">添加</div>
  4707. </div>
  4708. <div
  4709. class="remove1"
  4710. v-if="sentenceList.length > 1"
  4711. @click="deleteSentence(stIndex)"
  4712. ></div>
  4713. </div>
  4714. <div class="cardList">
  4715. <div v-if="st.addSentence.length > 0" class="cardBox">
  4716. <div
  4717. class="isCard"
  4718. v-for="(s, sIndex) in st.addSentence"
  4719. :key="sIndex"
  4720. @click="setRightAnswer(s, stIndex, sIndex)"
  4721. >
  4722. <el-tooltip
  4723. class="item"
  4724. effect="light"
  4725. :content="s"
  4726. placement="top"
  4727. >
  4728. <div>{{ s }}</div>
  4729. </el-tooltip>
  4730. <div
  4731. class="deleteWord"
  4732. @click.stop="deleteS(s, stIndex, sIndex)"
  4733. >
  4734. <img src="../../assets/icon/delete.png" alt="" />
  4735. </div>
  4736. </div>
  4737. </div>
  4738. <div class="card">
  4739. <img src="../../assets/icon/conSentences/noTitle.png" alt="" />
  4740. </div>
  4741. </div>
  4742. <div class="rightCardBox">
  4743. <div>正确顺序</div>
  4744. <div class="rightCardList">
  4745. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  4746. <div
  4747. v-for="(r, rIndex) in st.rightAnswer"
  4748. :key="rIndex"
  4749. class="cardCss"
  4750. >
  4751. <div
  4752. class="isCard1"
  4753. @click="returnCard(r, stIndex, rIndex)"
  4754. >
  4755. <el-tooltip
  4756. class="item"
  4757. effect="light"
  4758. :content="r"
  4759. placement="top"
  4760. >
  4761. <div>{{ r }}</div>
  4762. </el-tooltip>
  4763. </div>
  4764. <div>{{ rIndex + 1 }}</div>
  4765. </div>
  4766. </div>
  4767. <div class="card" v-if="st.rightAnswer.length == 0">
  4768. <img
  4769. src="../../assets/icon/conSentences/noAnswer.png"
  4770. alt=""
  4771. />
  4772. </div>
  4773. </div>
  4774. </div>
  4775. </div>
  4776. </div>
  4777. </div>
  4778. <span slot="footer" class="dialog-footer">
  4779. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4780. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  4781. </span>
  4782. </el-dialog>
  4783. <el-dialog
  4784. title="添加表格"
  4785. :visible.sync="dialogVisibleTable"
  4786. :append-to-body="true"
  4787. width="95%"
  4788. :before-close="handleClose"
  4789. class="dialog_diy"
  4790. >
  4791. <el-form>
  4792. <!-- <el-form-item label="文本标题">
  4793. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4794. </el-form-item> -->
  4795. <div>表格内容</div>
  4796. <Table v-model="tableJson.text" @change="change"></Table>
  4797. </el-form>
  4798. <span slot="footer" class="dialog-footer">
  4799. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4800. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  4801. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  4802. </span>
  4803. </el-dialog>
  4804. <el-dialog
  4805. title="添加文档"
  4806. :visible.sync="dialogVisibleWord"
  4807. :append-to-body="true"
  4808. width="800px"
  4809. :before-close="handleClose"
  4810. class="dialog_diy"
  4811. >
  4812. <el-form>
  4813. <!-- <el-form-item label="文本标题">
  4814. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  4815. </el-form-item> -->
  4816. <div>文档内容</div>
  4817. <editor-bar v-model="wordJson.text"></editor-bar>
  4818. </el-form>
  4819. <span slot="footer" class="dialog-footer">
  4820. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  4821. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  4822. </span>
  4823. </el-dialog>
  4824. <el-dialog
  4825. title="添加班级"
  4826. :visible.sync="dialogVisibleMoreUpload"
  4827. :append-to-body="true"
  4828. width="30%"
  4829. :before-close="handleClose"
  4830. class="dialog_diy"
  4831. >
  4832. <div
  4833. style="
  4834. width: 100%;
  4835. display: flex;
  4836. flex-direction: row;
  4837. flex-wrap: nowrap;
  4838. align-items: center;
  4839. justify-content: center;
  4840. "
  4841. >
  4842. <div>班级:</div>
  4843. <el-select multiple v-model="uploadJson" placeholder="请选择">
  4844. <el-option
  4845. v-for="item in classJuri"
  4846. :key="item.id"
  4847. :label="item.name"
  4848. :value="item.id"
  4849. >
  4850. </el-option>
  4851. </el-select>
  4852. </div>
  4853. <span slot="footer" class="dialog-footer">
  4854. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  4855. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  4856. </span>
  4857. </el-dialog>
  4858. <el-dialog
  4859. title="设置随机码"
  4860. :visible.sync="dialogVisibleInvite"
  4861. :append-to-body="true"
  4862. width="360px"
  4863. :before-close="handleClose"
  4864. class="dialog_diy"
  4865. >
  4866. <div
  4867. style="
  4868. width: 100%;
  4869. display: flex;
  4870. flex-direction: row;
  4871. flex-wrap: nowrap;
  4872. align-items: center;
  4873. justify-content: center;
  4874. "
  4875. >
  4876. <div>随机码:</div>
  4877. <el-input
  4878. v-model="icode"
  4879. style="width: 240px"
  4880. placeholder="请输入随机码"
  4881. ></el-input>
  4882. </div>
  4883. <span slot="footer" class="dialog-footer">
  4884. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  4885. <el-button type="primary" @click="addInvite">确定</el-button>
  4886. </span>
  4887. </el-dialog>
  4888. <el-dialog
  4889. title="添加预设时间"
  4890. :visible.sync="dialogVisiblePreTime"
  4891. :append-to-body="true"
  4892. width="30%"
  4893. :before-close="handleClose"
  4894. class="dialog_diy"
  4895. >
  4896. <div>
  4897. <Time
  4898. :preTime="preTime"
  4899. @updateTimeNum="updateTime"
  4900. v-if="dialogVisiblePreTime"
  4901. ></Time>
  4902. </div>
  4903. <span slot="footer" class="dialog-footer">
  4904. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  4905. <el-button type="primary" @click="addPreTime">确定</el-button>
  4906. </span>
  4907. </el-dialog>
  4908. <el-dialog
  4909. title="导入目标"
  4910. :visible.sync="dialogVisiblemb"
  4911. :append-to-body="true"
  4912. width="70%"
  4913. :before-close="handleClose"
  4914. class="dialog_diy"
  4915. >
  4916. <div>
  4917. <div
  4918. style="
  4919. width: 100%;
  4920. display: flex;
  4921. flex-direction: row;
  4922. flex-wrap: nowrap;
  4923. align-content: center;
  4924. align-items: center;
  4925. justify-content: space-between;
  4926. "
  4927. >
  4928. <div
  4929. style="
  4930. display: flex;
  4931. flex-flow: row nowrap;
  4932. align-items: flex-start;
  4933. width: 100%;
  4934. flex-direction: column;
  4935. flex-wrap: nowrap;
  4936. position: relative;
  4937. "
  4938. >
  4939. <div class="e_box">
  4940. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  4941. <div class="e_card_picture">
  4942. <img src="../../assets/e_picture.png" />
  4943. </div>
  4944. <div class="e_card_name">
  4945. <span>{{ item.title }}</span>
  4946. </div>
  4947. <div class="e_card_btn">
  4948. <span @click="checkEva(item.id, 2)">导入</span>
  4949. </div>
  4950. </div>
  4951. <div class="addEva" @click="openT">
  4952. <img src="../../assets/icon/addEva.png" alt="" />
  4953. </div>
  4954. <div
  4955. v-if="evaJuri.length === 0"
  4956. style="margin: 0 auto; color: #6e6e6e"
  4957. >
  4958. 暂无数据
  4959. </div>
  4960. </div>
  4961. </div>
  4962. </div>
  4963. </div>
  4964. <span slot="footer" class="dialog-footer">
  4965. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4966. </span>
  4967. </el-dialog>
  4968. <el-dialog
  4969. title="分组设置"
  4970. :visible.sync="dialogVisibleGroup"
  4971. :append-to-body="true"
  4972. width="650px"
  4973. :before-close="handleClose"
  4974. class="dialog_diy"
  4975. >
  4976. <div class="groupBox">
  4977. <div v-if="groupJson.group" class="groupContent">
  4978. <div class="groupTitle">请设置小组数量</div>
  4979. <div
  4980. v-for="(item, index) in groupJson.group"
  4981. :key="index"
  4982. class="groupName"
  4983. >
  4984. <span class="groupn">组{{ index + 1 }}名称:</span>
  4985. <el-input
  4986. v-model="item.name"
  4987. placeholder="请输入名称..."
  4988. style="width: 250px"
  4989. ></el-input>
  4990. <div class="groupBtn">
  4991. <el-button type="primary" size="small" @click="addGroup(index)">
  4992. 添加</el-button
  4993. >
  4994. <el-button
  4995. type="primary"
  4996. size="small"
  4997. @click="deleteGroup(index)"
  4998. v-if="groupJson.group && groupJson.group.length > 1"
  4999. >删除</el-button
  5000. >
  5001. </div>
  5002. </div>
  5003. </div>
  5004. <div class="groupContent">
  5005. <div class="groupTitle">请设置每组人数数量</div>
  5006. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  5007. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  5008. <el-input-number
  5009. v-model="groupJson.number"
  5010. :controls="false"
  5011. :min="2"
  5012. :max="10"
  5013. placeholder="2-10人以内"
  5014. ></el-input-number>
  5015. </div>
  5016. </div>
  5017. <span slot="footer" class="dialog-footer">
  5018. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  5019. <el-button type="primary" @click="addGroupJson">确定</el-button>
  5020. </span>
  5021. </el-dialog>
  5022. </div>
  5023. </template>
  5024. <script>
  5025. import "../../common/aws-sdk-2.235.1.min.js";
  5026. // import "../../common/aws-sdk-2.99.0.min.js";
  5027. import $ from "jquery";
  5028. import EditorBar from "../../components/tools/wangEnduit";
  5029. import Table from "../../components/tools/table";
  5030. import Mind from "../tools/jsmind2";
  5031. import Time from "../tools/time.vue";
  5032. import Sunburst from "../tools/sunburst";
  5033. import SeeBoard from "../tools/seeBoard";
  5034. import weilaiData from "./components/weilai.js";
  5035. import sourceDialog from "./teacherSource/dialog.vue";
  5036. export default {
  5037. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table,sourceDialog },
  5038. data() {
  5039. return {
  5040. checkAll: false,
  5041. chooseType: 1,
  5042. checkedCities: [],
  5043. isIndeterminate: true,
  5044. isSysPic: false,
  5045. steps: 1,
  5046. nbOrder: 0,
  5047. courseId: "",
  5048. chapToolsType: 0,
  5049. chapTools: [
  5050. {
  5051. tools: [],
  5052. toolDetail: "",
  5053. },
  5054. ],
  5055. line: "",
  5056. lineTitle: "",
  5057. sysPic: [],
  5058. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5059. isPushTitleList: [],
  5060. lineCount: 0,
  5061. lineType: 0,
  5062. chapCount: 0,
  5063. courseName: "",
  5064. isTeacherSee: true,
  5065. courseText: "",
  5066. preTime: 0,
  5067. formLabelWidth: "100px",
  5068. choosePicVisible: false,
  5069. sysPicVisible: false,
  5070. uploadLoading1: false,
  5071. noneBtnImg: false,
  5072. updateBoolean2: false,
  5073. unitIndex: 0,
  5074. taskCount: 0,
  5075. dialogVisible: false,
  5076. dialogVisible1: false,
  5077. dialogVisible2: false,
  5078. dialogVisible3: false,
  5079. dialogVisible4: false,
  5080. dialogVisible5: false,
  5081. dialogVisible6: false,
  5082. dialogVisible7: false,
  5083. dialogVisible8: false,
  5084. dialogVisible9: false,
  5085. dialogVisibleClass: false,
  5086. dialogVisibleMember: false,
  5087. dialogVisibleMp3: false,
  5088. dialogVisibleSelect: false,
  5089. dialogVisibleSentence: false,
  5090. dialogVisibleRate: false,
  5091. dialogVisibleChoice: false,
  5092. dialogVisiblemb: false,
  5093. dialogVisibleInvite: false,
  5094. dialogVisibleSource: false,
  5095. isClickColor: 0,
  5096. publicTool: 0,
  5097. searchPeople: "",
  5098. searchTN: "",
  5099. userid: this.$route.query.userid,
  5100. oid: this.$route.query.oid,
  5101. org: this.$route.query.org,
  5102. role: this.$route.query.role,
  5103. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  5104. dialogVisibleTable: false,
  5105. dialogVisibleWord: false,
  5106. tableJson: { text: "" },
  5107. wordJson: { text: "" },
  5108. dialogVisibleMoreUpload: false,
  5109. dialogVisiblePreTime: false,
  5110. uploadJson: [],
  5111. classJuri: [],
  5112. cover: [], //课程封面
  5113. myWord: [],
  5114. evaJuri: [],
  5115. evalua: "",
  5116. targetArray: [],
  5117. eTitle: "",
  5118. eJson: {},
  5119. fid: "", //一级
  5120. sid: "", //二级
  5121. tid: "", //二级
  5122. typeMode: 1,
  5123. eJSONNum: 0,
  5124. data: {
  5125. meta: {
  5126. name: "example",
  5127. author: "dd@163.com",
  5128. version: "0.2",
  5129. },
  5130. format: "node_array",
  5131. data: [{ id: "root", isroot: true, topic: "" }],
  5132. },
  5133. askJson: {
  5134. askCount: 1,
  5135. askTitle: "",
  5136. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5137. },
  5138. testJson: {},
  5139. selectJson: {},
  5140. rateJson: [],
  5141. unitJson2: [],
  5142. unitJson: [
  5143. {
  5144. dyName: "", //单元标题
  5145. chapterInfo: [
  5146. {
  5147. isread: false,
  5148. chapterid: this.guid(),
  5149. title: "",
  5150. courseName: "",
  5151. taskJson: [
  5152. {
  5153. task: "",
  5154. taskDetail: "",
  5155. chapterData: [],
  5156. toolText: "",
  5157. toolChoose: [
  5158. {
  5159. tool: [],
  5160. toolDetail: "",
  5161. toolType: 0,
  5162. askCount: 1,
  5163. askTitle: "",
  5164. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5165. },
  5166. ],
  5167. isShowTools: false,
  5168. askCount: 1,
  5169. isFold: 0,
  5170. askTitle: "",
  5171. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5172. checkJson: [{ checkCount: [], checkPerent: [] }],
  5173. homeworkList: [],
  5174. },
  5175. ],
  5176. itemCount: 1,
  5177. fileList1: [],
  5178. video: [],
  5179. testData: [],
  5180. pData: [],
  5181. templateArray: [],
  5182. },
  5183. ],
  5184. },
  5185. ],
  5186. studentJuri: [],
  5187. teacherJuri: [],
  5188. checkboxList: [],
  5189. checkboxList2: [],
  5190. checkboxList3: [],
  5191. classSearch: "",
  5192. number: "",
  5193. tTitle: "",
  5194. tdetail: "",
  5195. templateC: {},
  5196. AttText: {},
  5197. AttTextType: 0,
  5198. AttTextIndex: 0,
  5199. cTemplate: "",
  5200. CourseType: [],
  5201. CourseType2: [],
  5202. CourseTypeJson: {},
  5203. courseTypeId: [],
  5204. courseTypeSon: [],
  5205. clearArray: [],
  5206. pTypeCheck: [],
  5207. pTypeCheckName: [],
  5208. loading: false,
  5209. toolType: 0,
  5210. inputShow: true,
  5211. inputShow2: true,
  5212. toolIndex: 0,
  5213. cidType: 0,
  5214. answerQ: "",
  5215. grade: [],
  5216. grade2: [],
  5217. courseUserid: "",
  5218. timer: null,
  5219. timer2: null,
  5220. checkId: "",
  5221. isDelete: 1,
  5222. addindex: 0,
  5223. selectSteps: 1,
  5224. groupJson: {},
  5225. dialogVisibleGroup: false,
  5226. rightBoxHeight: 0,
  5227. ManAarray: [],
  5228. checkBoolean: false,
  5229. inviteCode: [],
  5230. inviteId: "",
  5231. icode: "",
  5232. easyArray: [2, 4],
  5233. sourceData:{}
  5234. };
  5235. },
  5236. computed: {
  5237. // rightBoxHeight: function () {
  5238. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  5239. // },
  5240. offsetLetfPx: function () {
  5241. //addnum可以直接在模板语法里面用,相当于data内的值
  5242. return (
  5243. $(".cru_select")[this.unitIndex] &&
  5244. $(".cru_select")[this.unitIndex].offsetLeft
  5245. );
  5246. },
  5247. getMan2() {
  5248. return function (people) {
  5249. let _people = people;
  5250. let _people2 = "";
  5251. if (this.ManAarray.length) {
  5252. for (var i = 0; i < this.ManAarray.length; i++) {
  5253. if (this.ManAarray[i].userid == people) {
  5254. _people2 = this.ManAarray[i].name;
  5255. break;
  5256. }
  5257. }
  5258. }
  5259. if (people == this.courseUserid) {
  5260. return "";
  5261. }
  5262. return this.ManAarray.length ? _people2 : "";
  5263. };
  5264. },
  5265. isInvite() {
  5266. return function (cid) {
  5267. let array = [];
  5268. for (var i = 0; i < this.inviteCode.length; i++) {
  5269. array.push(this.inviteCode[i].cid);
  5270. }
  5271. return array.indexOf(cid) != -1;
  5272. };
  5273. },
  5274. getInviteCodeC() {
  5275. return function (cid) {
  5276. let array = [];
  5277. for (var i = 0; i < this.inviteCode.length; i++) {
  5278. array.push(this.inviteCode[i].cid);
  5279. }
  5280. return this.inviteCode[array.indexOf(cid)].ic;
  5281. };
  5282. },
  5283. getClassC() {
  5284. return function (c) {
  5285. let _c2 = "";
  5286. if (this.grade.length) {
  5287. for (var i = 0; i < this.grade.length; i++) {
  5288. if (this.grade[i].id == c) {
  5289. _c2 = this.grade[i].name;
  5290. break;
  5291. }
  5292. }
  5293. }
  5294. return this.grade.length ? _c2 : "";
  5295. };
  5296. },
  5297. },
  5298. watch: {
  5299. unitIndex(newValue, oldValue) {
  5300. if (this.isDelete == 2) {
  5301. this.isDelete = 1;
  5302. return;
  5303. }
  5304. if (this.cid != "") {
  5305. let _unitIndex = oldValue;
  5306. if (
  5307. JSON.stringify(this.unitJson2[_unitIndex]) ==
  5308. JSON.stringify(this.unitJson[_unitIndex])
  5309. ) {
  5310. this.$refs.rightboxR.scrollTop = 0;
  5311. return;
  5312. }
  5313. let cPan = 1;
  5314. for (
  5315. var j = 0;
  5316. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5317. j++
  5318. ) {
  5319. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5320. j
  5321. ].proVisible = false;
  5322. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5323. j
  5324. ].proVisible2 = false;
  5325. if (
  5326. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5327. .length > 1
  5328. ) {
  5329. for (
  5330. var z = 0;
  5331. z <
  5332. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  5333. .length;
  5334. z++
  5335. ) {
  5336. if (
  5337. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  5338. .toolChoose[z].tool.length
  5339. ) {
  5340. this.$message.error("请把工具添加完整");
  5341. cPan = 2;
  5342. break;
  5343. }
  5344. }
  5345. }
  5346. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5347. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5348. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5349. (ele) => {
  5350. return ele.value != "";
  5351. }
  5352. );
  5353. }
  5354. }
  5355. if (cPan == 2) {
  5356. this.unitIndex = oldValue;
  5357. return;
  5358. }
  5359. for (var i = 0; i < this.unitJson.length; i++) {
  5360. if (this.addindex != i) {
  5361. delete this.unitJson[i].isUpdate;
  5362. }
  5363. }
  5364. this.$refs.rightboxR.scrollTop = 0;
  5365. this.addindex = -1;
  5366. let params = [
  5367. {
  5368. cid: this.cid,
  5369. chapters: JSON.stringify(this.unitJson),
  5370. uid: this.userid,
  5371. unitIndex: _unitIndex,
  5372. },
  5373. ];
  5374. this.ajax
  5375. .post(this.$store.state.api + "updateWorkNew4", params)
  5376. .then((res) => {
  5377. // this.$message({
  5378. // message: "修改成功",
  5379. // type: "success",
  5380. // });
  5381. // this.courseId = this.cid;
  5382. })
  5383. .catch((err) => {
  5384. this.$message.error("网络不佳");
  5385. console.error(err);
  5386. });
  5387. }
  5388. },
  5389. },
  5390. methods: {
  5391. setMan() {
  5392. // let teacherJuri = this.teacherJuri2;
  5393. this.ManAarray = [];
  5394. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  5395. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  5396. _user.push(this.courseUserid || this.userid);
  5397. }
  5398. let params = {
  5399. uid: _user.join(","),
  5400. };
  5401. this.ajax
  5402. .get(this.$store.state.api + "getAllUserById", params)
  5403. .then((res) => {
  5404. let teacherJuri = res.data[0];
  5405. this.ManAarray = teacherJuri;
  5406. })
  5407. .catch((err) => {
  5408. console.error(err);
  5409. });
  5410. },
  5411. previewImg(url) {
  5412. this.$hevueImgPreview(url);
  5413. },
  5414. scrollChange() {
  5415. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  5416. },
  5417. handleCheckAllChange(val) {
  5418. this.checkedCities = val ? cityOptions : [];
  5419. this.isIndeterminate = false;
  5420. },
  5421. handleCheckedCitiesChange(value) {
  5422. let checkedCount = value.length;
  5423. this.checkAll = checkedCount === this.cities.length;
  5424. this.isIndeterminate =
  5425. checkedCount > 0 && checkedCount < this.cities.length;
  5426. },
  5427. addHw(e) {
  5428. var el = e.currentTarget;
  5429. el.getElementsByTagName("input")[0].click();
  5430. },
  5431. change(val) {
  5432. console.log(val);
  5433. },
  5434. change2(val) {
  5435. console.log(val);
  5436. this.$forceUpdate();
  5437. },
  5438. handleClose(done) {
  5439. done();
  5440. },
  5441. imgChange2(i, j) {
  5442. var _tmp = this.testJson.testJson[i].checkList[j];
  5443. this.noneBtnImg = _tmp.length >= 1;
  5444. },
  5445. imgChange3(i) {
  5446. var _tmp = this.testJson.testJson[i];
  5447. this.noneBtnImg = _tmp.length >= 1;
  5448. },
  5449. imgChange1(file, fileList, type, itemTaskIndex) {
  5450. if (type == 1) {
  5451. var _tmp = this.cover;
  5452. } else if (
  5453. type == 2 ||
  5454. type == 3 ||
  5455. type == 6 ||
  5456. type == 7 ||
  5457. type == 8
  5458. ) {
  5459. var _tmp =
  5460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5461. .chapterData;
  5462. } else if (type == 4) {
  5463. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  5464. } else {
  5465. var _tmp =
  5466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5467. .homeworkList;
  5468. }
  5469. this.noneBtnImg = _tmp.length >= 1;
  5470. },
  5471. goTo(path) {
  5472. this.$router.push(path);
  5473. },
  5474. guid() {
  5475. var _num,
  5476. i,
  5477. _guid = "";
  5478. for (i = 0; i < 32; i++) {
  5479. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5480. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5481. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5482. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5483. _guid += "-";
  5484. }
  5485. }
  5486. return _guid;
  5487. },
  5488. lastSteps() {
  5489. if (this.steps == 4) {
  5490. this.goTo(
  5491. "/course?userid=" +
  5492. this.userid +
  5493. "&oid=" +
  5494. this.oid +
  5495. "&org=" +
  5496. this.org +
  5497. "&role=" +
  5498. this.role
  5499. );
  5500. } else {
  5501. if (this.cidType == 0) {
  5502. this.steps--;
  5503. if (this.steps == 1) {
  5504. setTimeout(() => {
  5505. this.checkEva(this.checkId);
  5506. }, 0);
  5507. }
  5508. } else {
  5509. if (this.steps == 3) {
  5510. this.steps = 1;
  5511. setTimeout(() => {
  5512. this.checkEva(this.checkId);
  5513. }, 0);
  5514. }
  5515. }
  5516. }
  5517. },
  5518. navSteps(s) {
  5519. if (this.courseName == "") {
  5520. this.$message.error("请将信息填写完整");
  5521. return;
  5522. }
  5523. if (this.cidType == 0) {
  5524. if (this.steps == 1) {
  5525. if (this.cid == "" || this.cid == undefined) {
  5526. this.addWork();
  5527. } else {
  5528. if (this.userid != this.courseUserid) {
  5529. // this.updateWork2();
  5530. } else {
  5531. this.updateWork();
  5532. }
  5533. }
  5534. }
  5535. if (s == 1) {
  5536. this.steps = 1;
  5537. setTimeout(() => {
  5538. this.checkEva(this.checkId);
  5539. }, 0);
  5540. }
  5541. if (s == 2) {
  5542. this.steps = 2;
  5543. }
  5544. if (s == 3) {
  5545. this.cTemplate = this.templateC.content;
  5546. this.dialogVisible2 = false;
  5547. this.steps = 3;
  5548. setTimeout(() => {
  5549. this.checkEva(this.checkId);
  5550. }, 1000);
  5551. }
  5552. } else {
  5553. if (this.steps == 1) {
  5554. if (this.cid == "" || this.cid == undefined) {
  5555. this.addWork();
  5556. } else {
  5557. if (this.userid != this.courseUserid) {
  5558. // this.updateWork2();
  5559. } else {
  5560. this.updateWork();
  5561. }
  5562. }
  5563. }
  5564. if (s == 1) {
  5565. this.steps = 1;
  5566. setTimeout(() => {
  5567. this.checkEva(this.checkId);
  5568. }, 0);
  5569. }
  5570. if (s == 3) {
  5571. this.cTemplate = this.templateC.content;
  5572. this.dialogVisible2 = false;
  5573. this.steps = 3;
  5574. setTimeout(() => {
  5575. this.checkEva(this.checkId);
  5576. }, 1000);
  5577. }
  5578. }
  5579. this.$refs.stepBox.scrollTop = 0;
  5580. },
  5581. nextSteps() {
  5582. if (this.cidType == 1) {
  5583. if (this.steps == 1) {
  5584. if (this.courseName != "") {
  5585. this.steps = 3;
  5586. setTimeout(() => {
  5587. this.checkEva(this.checkId);
  5588. }, 1000);
  5589. if (this.cid == "" || this.cid == undefined) {
  5590. this.addWork();
  5591. } else {
  5592. if (this.userid != this.courseUserid) {
  5593. // this.updateWork2();
  5594. } else {
  5595. this.updateWork();
  5596. }
  5597. }
  5598. } else {
  5599. this.$message.error("请将信息填写完整");
  5600. return;
  5601. }
  5602. } else if (this.steps == 3) {
  5603. if (this.cid == "" || this.cid == undefined) {
  5604. if (this.courseName == "") {
  5605. this.$message.error("请将信息填写完整");
  5606. return;
  5607. } else {
  5608. this.addWork();
  5609. this.steps++;
  5610. }
  5611. } else {
  5612. if (this.courseName == "") {
  5613. this.$message.error("请将信息填写完整");
  5614. return;
  5615. } else {
  5616. if (this.userid != this.courseUserid) {
  5617. this.updateWork2();
  5618. } else {
  5619. this.updateWork();
  5620. }
  5621. this.steps++;
  5622. }
  5623. }
  5624. }
  5625. } else {
  5626. if (this.steps == 1) {
  5627. if (this.courseName != "") {
  5628. if (this.cid == "" || this.cid == undefined) {
  5629. this.addWork();
  5630. } else {
  5631. if (this.userid != this.courseUserid) {
  5632. // this.updateWork2();
  5633. } else {
  5634. this.updateWork();
  5635. }
  5636. }
  5637. this.steps++;
  5638. } else {
  5639. this.$message.error("请将信息填写完整");
  5640. return;
  5641. }
  5642. } else if (this.steps == 2) {
  5643. if (this.templateC.id != "" || this.templateC.id != undefined) {
  5644. this.cTemplate = this.templateC.content;
  5645. }
  5646. this.dialogVisible2 = false;
  5647. this.steps++;
  5648. setTimeout(() => {
  5649. this.checkEva(this.checkId);
  5650. }, 1000);
  5651. } else if (this.steps == 3) {
  5652. if (this.cid == "" || this.cid == undefined) {
  5653. if (this.courseName == "") {
  5654. this.$message.error("请将信息填写完整");
  5655. return;
  5656. } else {
  5657. this.addWork();
  5658. this.steps++;
  5659. }
  5660. } else {
  5661. if (this.courseName == "") {
  5662. this.$message.error("请将信息填写完整");
  5663. return;
  5664. } else {
  5665. if (this.userid != this.courseUserid) {
  5666. this.updateWork2();
  5667. } else {
  5668. this.updateWork();
  5669. }
  5670. this.steps++;
  5671. }
  5672. }
  5673. }
  5674. }
  5675. this.$refs.stepBox.scrollTop = 0;
  5676. },
  5677. unitSet(i) {
  5678. this.unitIndex = i;
  5679. // this.$refs.rightboxR.scrollTop = 0;
  5680. },
  5681. time() {
  5682. if (!this.now) {
  5683. this.now = new Date().getTime();
  5684. return true;
  5685. } else {
  5686. let time = new Date().getTime();
  5687. if (time - this.now > 3000) {
  5688. this.now = time;
  5689. return true;
  5690. } else {
  5691. return false;
  5692. }
  5693. }
  5694. },
  5695. deleteUnit(i) {
  5696. var _this = this;
  5697. if (_this.time()) {
  5698. _this
  5699. .$confirm("确定删除此单元吗?", "提示", {
  5700. confirmButtonText: "确定",
  5701. cancelButtonText: "取消",
  5702. type: "warning",
  5703. })
  5704. .then(() => {
  5705. _this.isDelete = 2;
  5706. // _this.unitIndex = _this.unitIndex - 1;
  5707. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  5708. // _this.$message.success("删除成功");
  5709. })
  5710. .catch(() => {
  5711. return;
  5712. });
  5713. }
  5714. },
  5715. deleteWork(chapid) {
  5716. let params = [
  5717. {
  5718. cid: this.cid,
  5719. chapters: JSON.stringify(this.unitJson),
  5720. uid: this.userid,
  5721. chapid: chapid,
  5722. },
  5723. ];
  5724. this.ajax
  5725. .post(this.$store.state.api + "deleteWork", params)
  5726. .then((res) => {
  5727. this.$message({
  5728. message: "删除成功",
  5729. type: "success",
  5730. });
  5731. this.unitJson.splice(this.unitIndex, 1);
  5732. this.unitIndex = this.unitIndex - 1;
  5733. })
  5734. .catch((err) => {
  5735. this.$message.error("网络不佳");
  5736. console.error(err);
  5737. });
  5738. },
  5739. deleteTool(itemTaskIndex, i) {
  5740. var _this = this;
  5741. if (_this.time()) {
  5742. _this
  5743. .$confirm("确定删除此工具吗?", "提示", {
  5744. confirmButtonText: "确定",
  5745. cancelButtonText: "取消",
  5746. type: "warning",
  5747. })
  5748. .then(() => {
  5749. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5750. itemTaskIndex
  5751. ].toolChoose.splice(i, 1);
  5752. _this.$message.success("删除成功");
  5753. })
  5754. .catch(() => {
  5755. return;
  5756. });
  5757. }
  5758. },
  5759. deleteSentence(i) {
  5760. var _this = this;
  5761. if (_this.time()) {
  5762. _this
  5763. .$confirm("确定删除此题目吗?", "提示", {
  5764. confirmButtonText: "确定",
  5765. cancelButtonText: "取消",
  5766. type: "warning",
  5767. })
  5768. .then(() => {
  5769. _this.sentenceList.splice(i, 1);
  5770. _this.$message.success("删除成功");
  5771. })
  5772. .catch(() => {
  5773. return;
  5774. });
  5775. }
  5776. },
  5777. deleteS(s, i, j) {
  5778. this.sentenceList[i].addSentence.splice(j, 1);
  5779. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  5780. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  5781. this.sentenceList[i].rightAnswer.splice(a, 1);
  5782. }
  5783. },
  5784. openT() {
  5785. window.parent.postMessage({ tools: "25" }, "*");
  5786. },
  5787. deleteTask(i) {
  5788. var _this = this;
  5789. if (_this.time()) {
  5790. _this
  5791. .$confirm("确定删除此任务吗?", "提示", {
  5792. confirmButtonText: "确定",
  5793. cancelButtonText: "取消",
  5794. type: "warning",
  5795. })
  5796. .then(() => {
  5797. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  5798. i,
  5799. 1
  5800. );
  5801. _this.$message.success("删除成功");
  5802. })
  5803. .catch(() => {
  5804. return;
  5805. });
  5806. }
  5807. },
  5808. handlePictureCardPreview(file) {
  5809. this.dialogImageUrl = file.url;
  5810. },
  5811. clean(i, c) {
  5812. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  5813. },
  5814. handle_remove1(file, fileList, type) {
  5815. var _tmp = this.cover;
  5816. // for (var i = 0, len = _tmp.length; i < len; i++) {
  5817. // if (_tmp[i].uid == file.uid) {
  5818. // _tmp.splice(i, 1);
  5819. // break;
  5820. // }
  5821. // this.cover = _tmp;
  5822. // }
  5823. this.cover = [];
  5824. this.noneBtnImg = this.cover.length >= 1;
  5825. this.isSysPic = false;
  5826. this.$forceUpdate();
  5827. },
  5828. addImg(e) {
  5829. var el = e.currentTarget;
  5830. el.getElementsByTagName("input")[0].click();
  5831. e.target.value = "";
  5832. },
  5833. addChaptersTools(i) {
  5834. this.chapTools = [
  5835. {
  5836. tools: [],
  5837. toolDetail: "",
  5838. },
  5839. ];
  5840. this.chapCount = i;
  5841. this.dialogVisible4 = true;
  5842. },
  5843. isNoFinsh() {
  5844. this.$message.warning("功能正在开发中");
  5845. },
  5846. addAttText(i) {
  5847. this.AttText = {
  5848. title: "",
  5849. text: "",
  5850. };
  5851. this.taskCount = i;
  5852. this.AttTextType = 0;
  5853. this.$forceUpdate();
  5854. this.dialogVisible6 = true;
  5855. },
  5856. openLine(i) {
  5857. this.line = "";
  5858. this.lineCount = i;
  5859. this.lineType = 0;
  5860. this.$forceUpdate();
  5861. this.dialogVisible7 = true;
  5862. },
  5863. openSource(i){
  5864. this.lineCount = i;
  5865. this.sourceData = {}
  5866. this.dialogVisibleSource = true;
  5867. },
  5868. addSource(){
  5869. if(!Object.keys(this.sourceData).length){
  5870. this.$message.error("请选择要上传的资源")
  5871. return;
  5872. }
  5873. let keys = Object.keys(this.sourceData)
  5874. for(var i = 0;i<keys.length;i++){
  5875. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5876. this.lineCount
  5877. ].chapterData.push({
  5878. name: "链接",
  5879. title: this.sourceData[keys[i]].name,
  5880. url: this.sourceData[keys[i]].url,
  5881. type: 8,
  5882. });
  5883. }
  5884. this.$forceUpdate();
  5885. this.dialogVisibleSource = false;
  5886. },
  5887. deleteM(i, j) {
  5888. this.testJson.testJson[i].timuList.splice(j, 1);
  5889. },
  5890. beforeUploadTiMu(event, i) {
  5891. const loading = this.openLoading();
  5892. var file = event.target.files[0];
  5893. var credentials = {
  5894. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5895. secretAccessKey: "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",
  5896. }; //秘钥形式的登录上传
  5897. window.AWS.config.update(credentials);
  5898. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5899. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5900. var _this = this;
  5901. if (file) {
  5902. var params = {
  5903. Key:
  5904. file.name.split(".")[0] +
  5905. new Date().getTime() +
  5906. "." +
  5907. file.name.split(".")[file.name.split(".").length - 1],
  5908. ContentType: file.type,
  5909. Body: file,
  5910. "Access-Control-Allow-Credentials": "*",
  5911. ACL: "public-read",
  5912. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5913. var options = {
  5914. partSize: 2048 * 1024 * 1024,
  5915. queueSize: 2,
  5916. leavePartsOnError: true,
  5917. };
  5918. bucket
  5919. .upload(params, options)
  5920. .on("httpUploadProgress", function (evt) {
  5921. //这里可以写进度条
  5922. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5923. })
  5924. .send(function (err, data) {
  5925. loading.close();
  5926. if (err) {
  5927. _this.$message.error("上传失败");
  5928. } else {
  5929. if (_this.testJson.testJson[i].timuList) {
  5930. _this.testJson.testJson[i].timuList.push({
  5931. src: data.Location,
  5932. });
  5933. } else {
  5934. _this.testJson.testJson[i].timuList = [];
  5935. _this.testJson.testJson[i].timuList.push({
  5936. src: data.Location,
  5937. });
  5938. }
  5939. _this.imgChange3(i);
  5940. _this.$forceUpdate();
  5941. }
  5942. });
  5943. }
  5944. },
  5945. beforeUploadTi(event, i, j) {
  5946. const loading = this.openLoading();
  5947. var file = event.target.files[0];
  5948. var credentials = {
  5949. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5950. secretAccessKey: "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",
  5951. }; //秘钥形式的登录上传
  5952. window.AWS.config.update(credentials);
  5953. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5954. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5955. var _this = this;
  5956. if (file) {
  5957. var params = {
  5958. Key:
  5959. file.name.split(".")[0] +
  5960. new Date().getTime() +
  5961. "." +
  5962. file.name.split(".")[file.name.split(".").length - 1],
  5963. ContentType: file.type,
  5964. Body: file,
  5965. "Access-Control-Allow-Credentials": "*",
  5966. ACL: "public-read",
  5967. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5968. var options = {
  5969. partSize: 2048 * 1024 * 1024,
  5970. queueSize: 2,
  5971. leavePartsOnError: true,
  5972. };
  5973. bucket
  5974. .upload(params, options)
  5975. .on("httpUploadProgress", function (evt) {
  5976. //这里可以写进度条
  5977. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5978. })
  5979. .send(function (err, data) {
  5980. loading.close();
  5981. if (err) {
  5982. _this.$message.error("上传失败");
  5983. } else {
  5984. _this.testJson.testJson[i].checkList[j] = {};
  5985. _this.testJson.testJson[i].checkList[j].src = data.Location;
  5986. _this.testJson.testJson[i].checkList[j].imgType = 1;
  5987. _this.imgChange2(i, j);
  5988. _this.$forceUpdate();
  5989. }
  5990. });
  5991. }
  5992. },
  5993. beforeUpload1(event, type) {
  5994. // const loading = this.openLoading();
  5995. var file = event.target.files[0];
  5996. var credentials = {
  5997. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5998. secretAccessKey: "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",
  5999. }; //秘钥形式的登录上传
  6000. window.AWS.config.update(credentials);
  6001. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6002. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6003. var _this = this;
  6004. if (file) {
  6005. var params = {
  6006. Key:
  6007. file.name.split(".")[0] +
  6008. new Date().getTime() +
  6009. "." +
  6010. file.name.split(".")[file.name.split(".").length - 1],
  6011. ContentType: file.type,
  6012. Body: file,
  6013. "Access-Control-Allow-Credentials": "*",
  6014. ACL: "public-read",
  6015. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6016. var options = {
  6017. partSize: 2048 * 1024 * 1024,
  6018. queueSize: 2,
  6019. leavePartsOnError: true,
  6020. };
  6021. bucket
  6022. .upload(params, options)
  6023. .on("httpUploadProgress", function (evt) {
  6024. //这里可以写进度条
  6025. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6026. })
  6027. .send(function (err, data) {
  6028. // loading.close();
  6029. if (err) {
  6030. var a = _this.$refs.upload1.uploadFiles;
  6031. a.splice(a.length - 1, a.length);
  6032. _this.$message.error("上传失败");
  6033. } else {
  6034. _this.cover.push({
  6035. name: file.name,
  6036. url: data.Location,
  6037. uid: file.uid,
  6038. });
  6039. _this.imgChange1(null, null, 1, null);
  6040. _this.choosePicVisible = false;
  6041. console.log(data.Location);
  6042. }
  6043. });
  6044. }
  6045. },
  6046. beforeUploadSelect(event, type) {
  6047. // const loading = this.openLoading();
  6048. var file = event.target.files[0];
  6049. var credentials = {
  6050. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6051. secretAccessKey: "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",
  6052. }; //秘钥形式的登录上传
  6053. window.AWS.config.update(credentials);
  6054. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6055. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6056. var _this = this;
  6057. if (file) {
  6058. var params = {
  6059. Key:
  6060. file.name.split(".")[0] +
  6061. new Date().getTime() +
  6062. "." +
  6063. file.name.split(".")[file.name.split(".").length - 1],
  6064. ContentType: file.type,
  6065. Body: file,
  6066. "Access-Control-Allow-Credentials": "*",
  6067. ACL: "public-read",
  6068. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6069. var options = {
  6070. partSize: 2048 * 1024 * 1024,
  6071. queueSize: 2,
  6072. leavePartsOnError: true,
  6073. };
  6074. bucket
  6075. .upload(params, options)
  6076. .on("httpUploadProgress", function (evt) {
  6077. //这里可以写进度条
  6078. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6079. })
  6080. .send(function (err, data) {
  6081. // loading.close();
  6082. if (err) {
  6083. _this.$message.error("上传失败");
  6084. } else {
  6085. _this.selectJson.url = data.Location;
  6086. console.log(data.Location);
  6087. }
  6088. });
  6089. }
  6090. },
  6091. chooseSysPic(p) {
  6092. this.cover.push({
  6093. name: "系统图片.png",
  6094. url: p,
  6095. });
  6096. this.imgChange1(null, null, 1, null);
  6097. this.isSysPic = true;
  6098. this.sysPicVisible = false;
  6099. },
  6100. beforeUpload(data) {
  6101. this.$refs.upload1.uploadFiles;
  6102. this.uploadLoading1 = true;
  6103. var file = data.file;
  6104. var credentials = {
  6105. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6106. secretAccessKey: "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",
  6107. }; //秘钥形式的登录上传
  6108. window.AWS.config.update(credentials);
  6109. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6110. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6111. var _this = this;
  6112. if (file) {
  6113. var params = {
  6114. Key:
  6115. file.name.split(".")[0] +
  6116. new Date().getTime() +
  6117. "." +
  6118. file.name.split(".")[file.name.split(".").length - 1],
  6119. ContentType: file.type,
  6120. Body: file,
  6121. "Access-Control-Allow-Credentials": "*",
  6122. ACL: "public-read",
  6123. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6124. var options = {
  6125. partSize: 2048 * 1024 * 1024,
  6126. queueSize: 2,
  6127. leavePartsOnError: true,
  6128. };
  6129. bucket
  6130. .upload(params, options)
  6131. .on("httpUploadProgress", function (evt) {
  6132. //这里可以写进度条
  6133. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6134. })
  6135. .send(function (err, data) {
  6136. _this.uploadLoading1 = false;
  6137. if (err) {
  6138. var a = _this.$refs.upload1.uploadFiles;
  6139. a.splice(a.length - 1, a.length);
  6140. _this.$message.error("上传失败");
  6141. } else {
  6142. //上传成功处理
  6143. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  6144. name: file.name,
  6145. url: data.Location,
  6146. uid: file.uid,
  6147. });
  6148. _this.imgChange();
  6149. console.log(data.Location);
  6150. }
  6151. });
  6152. }
  6153. },
  6154. onExceed() {
  6155. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  6156. },
  6157. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  6158. // const loading = this.openLoading();
  6159. var file = event.target.files[0];
  6160. var credentials = {
  6161. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6162. secretAccessKey: "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",
  6163. }; //秘钥形式的登录上传
  6164. window.AWS.config.update(credentials);
  6165. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6166. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6167. var _this = this;
  6168. if (type == 3) {
  6169. var b = [
  6170. "DOC",
  6171. "DOCX",
  6172. "DOCM",
  6173. "DOTM",
  6174. "DOTX",
  6175. "PPTX",
  6176. "PPSX",
  6177. "PPT",
  6178. "PPS",
  6179. "PPTM",
  6180. "POTM",
  6181. "PPAM",
  6182. "POTX",
  6183. "PPSM",
  6184. ];
  6185. if (
  6186. b.indexOf(
  6187. file.name
  6188. .split(".")
  6189. [file.name.split(".").length - 1].toLocaleUpperCase()
  6190. ) != -1
  6191. ) {
  6192. if (file.size / 1024 / 1024 > 80) {
  6193. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6194. this.inputShow = true;
  6195. var a = _this.$refs.upload1.uploadFiles;
  6196. a.splice(a.length - 1, a.length);
  6197. // loading.close();
  6198. return;
  6199. }
  6200. } else if (
  6201. file.name
  6202. .split(".")
  6203. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6204. ) {
  6205. if (file.size / 1024 / 1024 > 80) {
  6206. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6207. this.inputShow = true;
  6208. var a = _this.$refs.upload1.uploadFiles;
  6209. a.splice(a.length - 1, a.length);
  6210. // loading.close();
  6211. return;
  6212. }
  6213. }
  6214. }
  6215. this.inputShow = false;
  6216. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6217. itemTaskIndex
  6218. ].progress = 0;
  6219. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6220. itemTaskIndex
  6221. ].proVisible = true;
  6222. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6223. itemTaskIndex
  6224. ].isFinishSize = 0;
  6225. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6226. itemTaskIndex
  6227. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6228. _this.$forceUpdate();
  6229. if (file) {
  6230. var params = {
  6231. Key:
  6232. file.name.split(".")[0] +
  6233. new Date().getTime() +
  6234. "." +
  6235. file.name.split(".")[file.name.split(".").length - 1],
  6236. ContentType: file.type,
  6237. Body: file,
  6238. "Access-Control-Allow-Credentials": "*",
  6239. ACL: "public-read",
  6240. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6241. var options = {
  6242. partSize: 2048 * 1024 * 1024,
  6243. queueSize: 2,
  6244. leavePartsOnError: true,
  6245. };
  6246. bucket
  6247. .upload(params, options)
  6248. .on("httpUploadProgress", function (evt) {
  6249. //这里可以写进度条
  6250. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6251. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6252. itemTaskIndex
  6253. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6254. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6255. itemTaskIndex
  6256. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6257. _this.$forceUpdate();
  6258. })
  6259. .send(function (err, data) {
  6260. // loading.close();
  6261. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6262. itemTaskIndex
  6263. ].progress = 100;
  6264. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6265. itemTaskIndex
  6266. ].isFinishSize =
  6267. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6268. itemTaskIndex
  6269. ].isAllSize;
  6270. _this.$forceUpdate();
  6271. setTimeout(() => {
  6272. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6273. itemTaskIndex
  6274. ].proVisible = false;
  6275. _this.$forceUpdate();
  6276. }, 1000);
  6277. _this.inputShow = true;
  6278. if (err) {
  6279. var a = _this.$refs.upload1.uploadFiles;
  6280. a.splice(a.length - 1, a.length);
  6281. _this.$message.error("上传失败");
  6282. } else {
  6283. if (type == 2 || type == 3 || type == 12) {
  6284. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6285. itemTaskIndex
  6286. ].chapterData.push({
  6287. name: file.name,
  6288. url: data.Location,
  6289. uid: file.uid,
  6290. type: type,
  6291. });
  6292. _this.imgChange1(null, null, type, itemTaskIndex);
  6293. } else if (type == 4) {
  6294. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6295. itemTaskIndex
  6296. ].fileList1.push({
  6297. name: file.name,
  6298. url: data.Location,
  6299. uid: file.uid,
  6300. });
  6301. _this.imgChange1(null, null, type, itemTaskIndex);
  6302. } else if (type == 5) {
  6303. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6304. itemTaskIndex
  6305. ].homeworkList.push({
  6306. name: file.name,
  6307. url: data.Location,
  6308. uid: file.uid,
  6309. });
  6310. _this.imgChange1(null, null, type, itemTaskIndex);
  6311. }
  6312. console.log(data.Location);
  6313. }
  6314. });
  6315. }
  6316. },
  6317. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  6318. // const loading = this.openLoading();
  6319. var file = event.target.files[0];
  6320. var credentials = {
  6321. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  6322. secretAccessKey: "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",
  6323. }; //秘钥形式的登录上传
  6324. window.AWS.config.update(credentials);
  6325. window.AWS.config.region = "cn-northwest-1"; //设置区域
  6326. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  6327. var _this = this;
  6328. if (type == 3) {
  6329. var b = [
  6330. "DOC",
  6331. "DOCX",
  6332. "DOCM",
  6333. "DOTM",
  6334. "DOTX",
  6335. "PPTX",
  6336. "PPSX",
  6337. "PPT",
  6338. "PPS",
  6339. "PPTM",
  6340. "POTM",
  6341. "PPAM",
  6342. "POTX",
  6343. "PPSM",
  6344. ];
  6345. if (
  6346. b.indexOf(
  6347. file.name
  6348. .split(".")
  6349. [file.name.split(".").length - 1].toLocaleUpperCase()
  6350. ) != -1
  6351. ) {
  6352. if (file.size / 1024 / 1024 > 80) {
  6353. this.$message.error("上传文件大于80兆,请重新选择文件!");
  6354. this.inputShow = true;
  6355. var a = _this.$refs.upload1.uploadFiles;
  6356. a.splice(a.length - 1, a.length);
  6357. // loading.close();
  6358. return;
  6359. }
  6360. } else if (
  6361. file.name
  6362. .split(".")
  6363. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  6364. ) {
  6365. if (file.size / 1024 / 1024 > 80) {
  6366. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  6367. this.inputShow = true;
  6368. var a = _this.$refs.upload1.uploadFiles;
  6369. a.splice(a.length - 1, a.length);
  6370. // loading.close();
  6371. return;
  6372. }
  6373. }
  6374. }
  6375. this.inputShow = false;
  6376. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6377. itemTaskIndex
  6378. ].progress = 0;
  6379. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6380. itemTaskIndex
  6381. ].proVisible = true;
  6382. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6383. itemTaskIndex
  6384. ].isFinishSize = 0;
  6385. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6386. itemTaskIndex
  6387. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  6388. _this.$forceUpdate();
  6389. if (file) {
  6390. var params = {
  6391. Key:
  6392. file.name.split(".")[0] +
  6393. new Date().getTime() +
  6394. "." +
  6395. file.name.split(".")[file.name.split(".").length - 1],
  6396. ContentType: file.type,
  6397. Body: file,
  6398. "Access-Control-Allow-Credentials": "*",
  6399. ACL: "public-read",
  6400. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  6401. var options = {
  6402. partSize: 2048 * 1024 * 1024,
  6403. queueSize: 2,
  6404. leavePartsOnError: true,
  6405. };
  6406. bucket
  6407. .upload(params, options)
  6408. .on("httpUploadProgress", function (evt) {
  6409. //这里可以写进度条
  6410. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  6411. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6412. itemTaskIndex
  6413. ].progress = parseInt((evt.loaded / evt.total) * 100);
  6414. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6415. itemTaskIndex
  6416. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  6417. _this.$forceUpdate();
  6418. })
  6419. .send(function (err, data) {
  6420. // loading.close();
  6421. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6422. itemTaskIndex
  6423. ].progress = 100;
  6424. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6425. itemTaskIndex
  6426. ].isFinishSize =
  6427. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6428. itemTaskIndex
  6429. ].isAllSize;
  6430. _this.$forceUpdate();
  6431. setTimeout(() => {
  6432. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6433. itemTaskIndex
  6434. ].proVisible = false;
  6435. _this.$forceUpdate();
  6436. }, 1000);
  6437. _this.inputShow = true;
  6438. if (err) {
  6439. var a = _this.$refs.upload1.uploadFiles;
  6440. a.splice(a.length - 1, a.length);
  6441. _this.$message.error("上传失败");
  6442. } else {
  6443. if (type == 2 || type == 3) {
  6444. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6445. itemTaskIndex
  6446. ].chapterData.push({
  6447. name: file.name,
  6448. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6449. // itemTaskIndex
  6450. // ].chapterData.length+1),
  6451. url: data.Location,
  6452. uid: file.uid,
  6453. type: type,
  6454. text: string,
  6455. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  6456. // itemTaskIndex
  6457. // ].chapterData.length + 1),
  6458. });
  6459. _this.imgChange1(null, null, type, itemTaskIndex);
  6460. } else if (type == 4) {
  6461. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6462. itemTaskIndex
  6463. ].fileList1.push({
  6464. name: file.name,
  6465. url: data.Location,
  6466. uid: file.uid,
  6467. });
  6468. _this.imgChange1(null, null, type, itemTaskIndex);
  6469. } else if (type == 5) {
  6470. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  6471. itemTaskIndex
  6472. ].homeworkList.push({
  6473. name: file.name,
  6474. url: data.Location,
  6475. uid: file.uid,
  6476. });
  6477. _this.imgChange1(null, null, type, itemTaskIndex);
  6478. }
  6479. console.log(data.Location);
  6480. }
  6481. });
  6482. }
  6483. },
  6484. addunit() {
  6485. this.unitJson.push({
  6486. dyName: "", //单元标题
  6487. isUpdate: 1,
  6488. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  6489. chapterInfo: [
  6490. {
  6491. isread: false,
  6492. chapterid: this.guid(),
  6493. title: "",
  6494. courseName: "",
  6495. taskJson: [
  6496. {
  6497. task: "",
  6498. taskDetail: "",
  6499. chapterData: [],
  6500. toolText: "",
  6501. toolChoose: [
  6502. {
  6503. tool: [],
  6504. toolDetail: "",
  6505. toolType: 0,
  6506. askCount: 1,
  6507. askTitle: "",
  6508. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6509. },
  6510. ],
  6511. isShowTools: false,
  6512. askCount: 1,
  6513. isFold: 0,
  6514. askTitle: "",
  6515. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6516. checkJson: [{ checkCount: [], checkPerent: [] }],
  6517. homeworkList: [],
  6518. },
  6519. ],
  6520. itemCount: 1,
  6521. fileList1: [],
  6522. video: [],
  6523. testData: [],
  6524. pData: [],
  6525. templateArray: [],
  6526. },
  6527. ],
  6528. });
  6529. this.addindex = this.unitJson.length - 1;
  6530. setTimeout(() => {
  6531. this.unitIndex = this.unitJson.length - 1;
  6532. this.unitSet(this.unitIndex);
  6533. }, 0);
  6534. },
  6535. addToolFun(itemTaskIndex) {
  6536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6537. itemTaskIndex
  6538. ].toolChoose.push({
  6539. tool: [],
  6540. toolDetail: "",
  6541. toolType: 0,
  6542. askCount: 1,
  6543. askTitle: "",
  6544. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6545. });
  6546. },
  6547. addTaskBorder() {
  6548. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  6549. task: "",
  6550. taskDetail: "",
  6551. chapterData: [],
  6552. toolText: "",
  6553. toolChoose: [
  6554. {
  6555. tool: [],
  6556. toolDetail: "",
  6557. toolType: 0,
  6558. askCount: 1,
  6559. askTitle: "",
  6560. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6561. },
  6562. ],
  6563. isShowTools: false,
  6564. askCount: 1,
  6565. isFold: 0,
  6566. askTitle: "",
  6567. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6568. checkJson: [{ checkCount: [], checkPerent: [] }],
  6569. homeworkList: [],
  6570. });
  6571. },
  6572. add(e, i) {
  6573. var el = e.currentTarget;
  6574. el.getElementsByTagName("input")[0].click();
  6575. },
  6576. fold(i, e, type) {
  6577. var a = e.currentTarget.parentElement.parentElement;
  6578. var b = e.currentTarget.parentElement;
  6579. if (type == 1) {
  6580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  6581. a.className += " smallTaskBorder";
  6582. b.className += " funBlockTop";
  6583. } else {
  6584. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  6585. a.className = "taskBorder";
  6586. b.className = "funBlock";
  6587. }
  6588. console.log(e);
  6589. },
  6590. deleteHomeworkBox(unitIndex, index, i) {
  6591. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  6592. this.taskCount
  6593. ].homeworkList.splice(i, 1);
  6594. },
  6595. getStudent() {
  6596. let params = {
  6597. oid: this.oid,
  6598. cu: "",
  6599. cn: this.searchPeople,
  6600. };
  6601. this.ajax
  6602. .get(this.$store.state.api + "selectStudentAdd", params)
  6603. .then((res) => {
  6604. this.studentJuri = res.data[0];
  6605. })
  6606. .catch((err) => {
  6607. this.isLoading = false;
  6608. console.error(err);
  6609. });
  6610. },
  6611. getTeacher() {
  6612. let params = {
  6613. oid:
  6614. this.org && this.org != "undefined" && this.org != "null"
  6615. ? this.org
  6616. : this.oid,
  6617. cu: "",
  6618. cn: this.searchTN,
  6619. };
  6620. this.ajax
  6621. .get(
  6622. this.$store.state.api +
  6623. (this.org && this.org != "undefined" && this.org != "null"
  6624. ? "selectTeacherAddOrg"
  6625. : "selectTeacherAdd"),
  6626. params
  6627. )
  6628. .then((res) => {
  6629. let teacherJuri = res.data[0];
  6630. for (var i = 0; i < teacherJuri.length; i++) {
  6631. if (teacherJuri[i].userid == this.userid) {
  6632. teacherJuri.splice(i, 1);
  6633. break;
  6634. }
  6635. }
  6636. this.teacherJuri = teacherJuri;
  6637. })
  6638. .catch((err) => {
  6639. console.error(err);
  6640. });
  6641. },
  6642. searchStudent() {
  6643. this.getStudent();
  6644. },
  6645. //获取班级列表
  6646. getClass() {
  6647. let params = {
  6648. oid: this.oid,
  6649. cn: this.classSearch,
  6650. };
  6651. this.ajax
  6652. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  6653. .then((res) => {
  6654. if (!this.grade.length) {
  6655. this.grade = res.data[0];
  6656. }
  6657. this.grade2 = res.data[0];
  6658. this.classJuri = res.data[0];
  6659. })
  6660. .catch((err) => {
  6661. this.isLoading = false;
  6662. console.error(err);
  6663. });
  6664. },
  6665. CourseType2Change(val) {
  6666. this.pTypeCheck = [];
  6667. for (var i = 0; i < this.CourseType2.length; i++) {
  6668. let typeA = this.CourseType2[i];
  6669. if (val.indexOf(typeA.name) != -1) {
  6670. this.pTypeCheck.push(...typeA.id);
  6671. }
  6672. }
  6673. },
  6674. getChapterData(e, i, j, ic, type) {
  6675. e.stopPropagation();
  6676. this.updataC = true;
  6677. this.icc = ic;
  6678. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  6679. console.log("还不能下载图片喔");
  6680. }
  6681. },
  6682. deleteChapterData(e, i, j, ic, taskI) {
  6683. e.stopPropagation();
  6684. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  6685. },
  6686. updataVideoT(e, i, j, ic) {
  6687. e.stopPropagation();
  6688. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  6689. ic
  6690. ].name = e.target.value;
  6691. },
  6692. upCd(e, i, j, taskCount, ic) {
  6693. e.stopPropagation();
  6694. if (ic == 0) {
  6695. return;
  6696. }
  6697. var a =
  6698. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  6699. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  6700. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  6701. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6702. this.$forceUpdate();
  6703. },
  6704. downCd(e, i, j, taskCount, ic) {
  6705. e.stopPropagation();
  6706. if (
  6707. ic ==
  6708. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  6709. 1
  6710. ) {
  6711. return;
  6712. }
  6713. var a =
  6714. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  6715. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  6716. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  6717. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  6718. this.$forceUpdate();
  6719. },
  6720. addWork() {
  6721. let cPan = 1;
  6722. for (var i = 0; i < this.unitJson.length; i++) {
  6723. for (
  6724. var j = 0;
  6725. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6726. j++
  6727. ) {
  6728. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6729. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6730. if (
  6731. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6732. ) {
  6733. for (
  6734. var z = 0;
  6735. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6736. z++
  6737. ) {
  6738. if (
  6739. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6740. .length
  6741. ) {
  6742. this.$message.error("请把工具添加完整");
  6743. cPan = 2;
  6744. break;
  6745. }
  6746. }
  6747. }
  6748. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6749. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6750. i
  6751. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6752. return ele.value != "";
  6753. });
  6754. }
  6755. }
  6756. }
  6757. this.inputShow = true;
  6758. if (cPan == 2) {
  6759. this.steps--;
  6760. return;
  6761. }
  6762. for (var i = 0; i < this.unitJson.length; i++) {
  6763. delete this.unitJson[i].isUpdate;
  6764. }
  6765. let params = [
  6766. {
  6767. uid: this.userid,
  6768. title: this.courseName.replace(/%/g, "%25"),
  6769. brief: this.courseText.replace(/%/g, "%25"),
  6770. cover:
  6771. this.cover.length > 0
  6772. ? JSON.stringify(this.cover)
  6773. : JSON.stringify([
  6774. {
  6775. name: "noBanner.jpg",
  6776. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6777. uid: 1656409780264,
  6778. status: "success",
  6779. },
  6780. ]),
  6781. evaId: this.evalua,
  6782. astudent:
  6783. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6784. see: this.isTeacherSee == true ? 1 : 0,
  6785. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6786. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  6787. courseType: JSON.stringify(this.courseTypeId),
  6788. ateacher:
  6789. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6790. inviteCode: JSON.stringify(this.inviteCode),
  6791. },
  6792. ];
  6793. this.ajax
  6794. .post(this.$store.state.api + "addWorkNew2", params)
  6795. .then((res) => {
  6796. console.log(this.steps);
  6797. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6798. this.$message({
  6799. message: "新增成功",
  6800. type: "success",
  6801. });
  6802. }
  6803. this.number = res.data.ordernumber;
  6804. this.courseId = res.data.courseId;
  6805. this.cid = res.data.courseId;
  6806. this.courseUserid = this.userid;
  6807. this.islogin = true;
  6808. })
  6809. .catch((err) => {
  6810. this.$message.error("网络不佳");
  6811. console.error(err);
  6812. });
  6813. },
  6814. goCourse() {
  6815. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  6816. },
  6817. updateWork2() {
  6818. let _unitIndex = this.unitIndex;
  6819. let cPan = 1;
  6820. for (
  6821. var j = 0;
  6822. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  6823. j++
  6824. ) {
  6825. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  6826. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  6827. j
  6828. ].proVisible2 = false;
  6829. if (
  6830. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6831. .length > 1
  6832. ) {
  6833. for (
  6834. var z = 0;
  6835. z <
  6836. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  6837. .length;
  6838. z++
  6839. ) {
  6840. if (
  6841. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose[
  6842. z
  6843. ].tool.length
  6844. ) {
  6845. this.$message.error("请把工具添加完整");
  6846. cPan = 2;
  6847. break;
  6848. }
  6849. }
  6850. }
  6851. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  6852. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  6853. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  6854. (ele) => {
  6855. return ele.value != "";
  6856. }
  6857. );
  6858. }
  6859. }
  6860. this.inputShow = true;
  6861. if (cPan == 2) {
  6862. this.steps--;
  6863. return;
  6864. }
  6865. let params = [
  6866. {
  6867. cid: this.cid,
  6868. chapters: JSON.stringify(this.unitJson),
  6869. uid: this.userid,
  6870. unitIndex: _unitIndex,
  6871. },
  6872. ];
  6873. this.ajax
  6874. .post(this.$store.state.api + "updateWorkNew4", params)
  6875. .then((res) => {
  6876. this.$message({
  6877. message: "修改成功",
  6878. type: "success",
  6879. });
  6880. this.courseId = this.cid;
  6881. })
  6882. .catch((err) => {
  6883. this.$message.error("网络不佳");
  6884. console.error(err);
  6885. });
  6886. },
  6887. updateWork() {
  6888. let cPan = 1;
  6889. for (var i = 0; i < this.unitJson.length; i++) {
  6890. for (
  6891. var j = 0;
  6892. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  6893. j++
  6894. ) {
  6895. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  6896. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  6897. if (
  6898. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  6899. ) {
  6900. for (
  6901. var z = 0;
  6902. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  6903. z++
  6904. ) {
  6905. if (
  6906. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  6907. .length
  6908. ) {
  6909. this.$message.error("请把工具添加完整");
  6910. cPan = 2;
  6911. break;
  6912. }
  6913. }
  6914. }
  6915. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  6916. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  6917. i
  6918. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  6919. return ele.value != "";
  6920. });
  6921. }
  6922. }
  6923. }
  6924. this.inputShow = true;
  6925. if (cPan == 2) {
  6926. this.steps--;
  6927. return;
  6928. }
  6929. for (var i = 0; i < this.unitJson.length; i++) {
  6930. delete this.unitJson[i].isUpdate;
  6931. }
  6932. let params = [
  6933. {
  6934. cid: this.cid,
  6935. title: this.courseName.replace(/%/g, "%25"),
  6936. brief: this.courseText.replace(/%/g, "%25"),
  6937. cover:
  6938. this.cover.length > 0
  6939. ? JSON.stringify(this.cover)
  6940. : JSON.stringify([
  6941. {
  6942. name: "noBanner.jpg",
  6943. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  6944. uid: 1656409780264,
  6945. status: "success",
  6946. },
  6947. ]),
  6948. evaId: this.evalua,
  6949. astudent:
  6950. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  6951. see: this.isTeacherSee == true ? 1 : 0,
  6952. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6953. template: this.myWord != "undefined" ? this.myWord : [],
  6954. uid: this.userid,
  6955. courseType: JSON.stringify(this.courseTypeId),
  6956. ateacher:
  6957. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6958. inviteCode: JSON.stringify(this.inviteCode),
  6959. },
  6960. ];
  6961. this.ajax
  6962. .post(this.$store.state.api + "updateWorkNew2", params)
  6963. .then((res) => {
  6964. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6965. if (this.cidType == 1) {
  6966. this.$message({
  6967. message: "修改成功",
  6968. type: "success",
  6969. });
  6970. } else {
  6971. this.$message({
  6972. message: "新增成功",
  6973. type: "success",
  6974. });
  6975. }
  6976. }
  6977. this.number = this.nbOrder;
  6978. this.courseId = this.cid;
  6979. })
  6980. .catch((err) => {
  6981. this.$message.error("网络不佳");
  6982. console.error(err);
  6983. });
  6984. },
  6985. guid() {
  6986. var _num,
  6987. i,
  6988. _guid = "";
  6989. for (i = 0; i < 32; i++) {
  6990. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6991. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6992. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6993. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6994. _guid += "-";
  6995. }
  6996. }
  6997. return _guid;
  6998. },
  6999. insertWord() {
  7000. this.dialogVisible1 = true;
  7001. this.updateBoolean2 = false;
  7002. this.tTitle = "";
  7003. this.tdetail = "";
  7004. },
  7005. addWord() {
  7006. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  7007. name: this.tTitle,
  7008. content: this.tdetail,
  7009. uid: this.guid(),
  7010. });
  7011. this.dialogVisible1 = false;
  7012. },
  7013. upWord() {},
  7014. selectWord(uid, i, c) {
  7015. this.dialogVisible1 = true;
  7016. this.updateBoolean2 = true;
  7017. if (
  7018. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  7019. ) {
  7020. this.tTitle =
  7021. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  7022. this.tdetail =
  7023. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  7024. }
  7025. },
  7026. isAddPP() {
  7027. if (this.checkboxList.length > 0) {
  7028. this.$message({
  7029. message: "添加成功",
  7030. type: "success",
  7031. });
  7032. this.dialogVisible3 = false;
  7033. } else {
  7034. this.$message({
  7035. message: "请添加课程成员",
  7036. type: "error",
  7037. });
  7038. }
  7039. },
  7040. isAddClass() {
  7041. this.dialogVisibleClass = false;
  7042. },
  7043. isAddPPTeacher() {
  7044. this.dialogVisibleMember = false;
  7045. this.setMan();
  7046. },
  7047. getTemplate() {
  7048. this.ajax
  7049. .get(this.$store.state.api + "getCourseTemplateT", "")
  7050. .then((res) => {
  7051. this.templateArray = res.data[0];
  7052. this.getTemplateOid();
  7053. this.$forceUpdate();
  7054. })
  7055. .catch((err) => {});
  7056. },
  7057. getTemplateOid() {
  7058. let params = {
  7059. oid: this.oid,
  7060. };
  7061. this.ajax
  7062. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7063. .then((res) => {
  7064. if (res.data[0].length) {
  7065. this.templateArray = [...res.data[0], ...this.templateArray];
  7066. }
  7067. this.getTemplateOrg();
  7068. this.$forceUpdate();
  7069. })
  7070. .catch((err) => {});
  7071. },
  7072. getTemplateOrg() {
  7073. let params = {
  7074. oid: this.org,
  7075. };
  7076. this.ajax
  7077. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  7078. .then((res) => {
  7079. if (res.data[0].length) {
  7080. this.templateArray = [...res.data[0], ...this.templateArray];
  7081. }
  7082. this.$forceUpdate();
  7083. })
  7084. .catch((err) => {});
  7085. },
  7086. clearChoose() {
  7087. this.clearArray.splice(this.templateC.id, 1);
  7088. this.dialogVisible2 = false;
  7089. },
  7090. clearAttText() {
  7091. this.AttText = {
  7092. title: "",
  7093. text: "",
  7094. };
  7095. this.dialogVisible6 = false;
  7096. },
  7097. clearLine() {
  7098. this.line = "";
  7099. this.dialogVisible7 = false;
  7100. },
  7101. checkTemplate(res) {
  7102. let _this = this;
  7103. _this
  7104. .$confirm("确定选择此模板吗?", "提示", {
  7105. confirmButtonText: "确定",
  7106. cancelButtonText: "取消",
  7107. type: "warning",
  7108. })
  7109. .then(() => {
  7110. _this.unitJson = JSON.parse(res.chapters);
  7111. _this.steps++;
  7112. setTimeout(() => {
  7113. this.checkEva(this.checkId);
  7114. }, 1000);
  7115. })
  7116. .catch(() => {
  7117. return;
  7118. });
  7119. },
  7120. checkTemplate1(w) {
  7121. this.steps++;
  7122. },
  7123. checkTemplate2() {
  7124. let _this = this;
  7125. _this
  7126. .$confirm("确定选择空模板吗?", "提示", {
  7127. confirmButtonText: "确定",
  7128. cancelButtonText: "取消",
  7129. type: "warning",
  7130. })
  7131. .then(() => {
  7132. _this.unitIndex = 0;
  7133. _this.unitJson = [
  7134. {
  7135. dyName: "", //单元标题
  7136. chapterInfo: [
  7137. {
  7138. isread: false,
  7139. chapterid: this.guid(),
  7140. title: "",
  7141. courseName: "",
  7142. taskJson: [
  7143. {
  7144. task: "",
  7145. taskDetail: "",
  7146. chapterData: [],
  7147. toolText: "",
  7148. toolChoose: [
  7149. {
  7150. tool: [],
  7151. toolDetail: "",
  7152. toolType: 0,
  7153. askCount: 1,
  7154. askTitle: "",
  7155. askJson: [
  7156. { askstitle: "", askItem: 1, checkList: [] },
  7157. ],
  7158. },
  7159. ],
  7160. isShowTools: false,
  7161. askCount: 1,
  7162. isFold: 0,
  7163. askTitle: "",
  7164. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7165. checkJson: [{ checkCount: [], checkPerent: [] }],
  7166. homeworkList: [],
  7167. },
  7168. ],
  7169. itemCount: 1,
  7170. fileList1: [],
  7171. video: [],
  7172. testData: [],
  7173. pData: [],
  7174. templateArray: [],
  7175. },
  7176. ],
  7177. },
  7178. ];
  7179. this.steps++;
  7180. this.updateWork();
  7181. })
  7182. .catch(() => {
  7183. return;
  7184. });
  7185. },
  7186. checkTemplate3() {
  7187. let _this = this;
  7188. _this
  7189. .$confirm("确定选择简易模式吗?", "提示", {
  7190. confirmButtonText: "确定",
  7191. cancelButtonText: "取消",
  7192. type: "warning",
  7193. })
  7194. .then(() => {
  7195. _this.unitIndex = 0;
  7196. _this.unitJson = [
  7197. {
  7198. dyName: "", //单元标题
  7199. easy: 1,
  7200. chapterInfo: [
  7201. {
  7202. isread: false,
  7203. chapterid: this.guid(),
  7204. title: "",
  7205. courseName: "",
  7206. taskJson: [
  7207. {
  7208. task: "",
  7209. taskDetail: "",
  7210. chapterData: [],
  7211. toolText: "",
  7212. toolChoose: [
  7213. {
  7214. tool: [],
  7215. toolDetail: "",
  7216. toolType: 0,
  7217. askCount: 1,
  7218. askTitle: "",
  7219. askJson: [
  7220. { askstitle: "", askItem: 1, checkList: [] },
  7221. ],
  7222. },
  7223. ],
  7224. isShowTools: false,
  7225. askCount: 1,
  7226. isFold: 0,
  7227. askTitle: "",
  7228. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7229. checkJson: [{ checkCount: [], checkPerent: [] }],
  7230. homeworkList: [],
  7231. },
  7232. ],
  7233. itemCount: 1,
  7234. fileList1: [],
  7235. video: [],
  7236. testData: [],
  7237. pData: [],
  7238. templateArray: [],
  7239. },
  7240. ],
  7241. },
  7242. ];
  7243. this.steps++;
  7244. this.updateWork();
  7245. })
  7246. .catch(() => {
  7247. return;
  7248. });
  7249. },
  7250. checkTemplate4() {
  7251. let _this = this;
  7252. _this
  7253. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  7254. confirmButtonText: "确定",
  7255. cancelButtonText: "取消",
  7256. type: "warning",
  7257. })
  7258. .then(() => {
  7259. _this.unitIndex = 0;
  7260. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  7261. this.steps++;
  7262. this.updateWork();
  7263. })
  7264. .catch(() => {
  7265. return;
  7266. });
  7267. },
  7268. wordNext() {
  7269. this.dialogVisible2 = false;
  7270. },
  7271. isAddOrUpdateAttText() {
  7272. if (this.AttTextType == 0) {
  7273. this.addAttTextMessage();
  7274. } else {
  7275. this.updateAttText();
  7276. }
  7277. },
  7278. isAddOrUpdateLine() {
  7279. if (!this.lineTitle) {
  7280. this.$message.error("请填写链接标题");
  7281. return;
  7282. }
  7283. if (this.lineType == 0) {
  7284. this.addLine();
  7285. } else {
  7286. this.updateLine();
  7287. }
  7288. },
  7289. addAttTextMessage() {
  7290. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7291. this.taskCount
  7292. ].chapterData.push({
  7293. name: this.AttText.title,
  7294. url: this.AttText.text,
  7295. type: 6,
  7296. });
  7297. this.imgChange1(null, null, 6, this.taskCount);
  7298. this.dialogVisible6 = false;
  7299. },
  7300. selectAttText(itemTaskIndex, i) {
  7301. this.AttText.title =
  7302. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7303. itemTaskIndex
  7304. ].chapterData[i].name;
  7305. this.AttText.text =
  7306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7307. itemTaskIndex
  7308. ].chapterData[i].url;
  7309. this.taskCount = itemTaskIndex;
  7310. this.AttTextIndex = i;
  7311. this.AttTextType = 1;
  7312. this.dialogVisible6 = true;
  7313. },
  7314. updateAttText() {
  7315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7316. this.taskCount
  7317. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  7318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7319. this.taskCount
  7320. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  7321. this.dialogVisible6 = false;
  7322. },
  7323. addLine() {
  7324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7325. this.lineCount
  7326. ].chapterData.push({
  7327. name: "链接",
  7328. title: this.lineTitle,
  7329. url: this.line,
  7330. type: 8,
  7331. });
  7332. this.imgChange1(null, null, 8, this.lineCount);
  7333. this.dialogVisible7 = false;
  7334. },
  7335. selectLine(itemTaskIndex, i) {
  7336. this.line =
  7337. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7338. itemTaskIndex
  7339. ].chapterData[i].url;
  7340. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7341. itemTaskIndex
  7342. ].chapterData[i].title
  7343. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7344. .chapterData[i].title
  7345. : "";
  7346. this.taskCount = itemTaskIndex;
  7347. this.lineCount = i;
  7348. this.lineType = 1;
  7349. this.dialogVisible7 = true;
  7350. },
  7351. updateLine() {
  7352. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7353. this.taskCount
  7354. ].chapterData[this.lineCount].url = this.line;
  7355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7356. this.taskCount
  7357. ].chapterData[this.lineCount].title = this.lineTitle;
  7358. this.dialogVisible7 = false;
  7359. },
  7360. addPP() {
  7361. this.dialogVisible3 = true;
  7362. },
  7363. goTo(path) {
  7364. this.$router.push(path);
  7365. },
  7366. openTools(itemTaskIndex, i, toolIndex) {
  7367. this.toolIndex = toolIndex;
  7368. this.taskCount = itemTaskIndex;
  7369. if (i == 4) {
  7370. if (toolIndex == null) {
  7371. var a =
  7372. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7373. .chapterData;
  7374. for (var i = 0; i < a.length; i++) {
  7375. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  7376. this.askJson =
  7377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7378. itemTaskIndex
  7379. ].chapterData[i].askJson;
  7380. }
  7381. }
  7382. } else {
  7383. this.askJson = JSON.parse(
  7384. JSON.stringify(
  7385. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7386. itemTaskIndex
  7387. ].toolChoose[toolIndex]
  7388. )
  7389. );
  7390. }
  7391. this.dialogVisible5 = true;
  7392. } else if (i == 45) {
  7393. if (
  7394. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7395. .toolChoose[toolIndex].testJson
  7396. ) {
  7397. this.testJson = JSON.parse(
  7398. JSON.stringify(
  7399. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7400. itemTaskIndex
  7401. ].toolChoose[toolIndex].testJson
  7402. )
  7403. );
  7404. } else {
  7405. var testJson = {
  7406. testCount: 1,
  7407. testTitle: "",
  7408. testJson: [
  7409. {
  7410. teststitle: "",
  7411. testItem: 1,
  7412. checkList: [],
  7413. timuList: [],
  7414. answer: [],
  7415. type: "1",
  7416. },
  7417. ],
  7418. };
  7419. this.testJson = testJson;
  7420. }
  7421. this.dialogVisibleChoice = true;
  7422. } else if (i == 47) {
  7423. if (
  7424. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7425. .toolChoose[toolIndex].sentenceList
  7426. ) {
  7427. this.sentenceList = JSON.parse(
  7428. JSON.stringify(
  7429. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7430. itemTaskIndex
  7431. ].toolChoose[toolIndex].sentenceList
  7432. )
  7433. );
  7434. } else {
  7435. var sentenceList = [
  7436. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7437. ];
  7438. this.sentenceList = sentenceList;
  7439. }
  7440. this.dialogVisibleSentence = true;
  7441. } else if (i == 48) {
  7442. if (
  7443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7444. .toolChoose[toolIndex].tableJson
  7445. ) {
  7446. this.tableJson = JSON.parse(
  7447. JSON.stringify(
  7448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7449. itemTaskIndex
  7450. ].toolChoose[toolIndex].tableJson
  7451. )
  7452. );
  7453. } else {
  7454. var tableJson = { text: "" };
  7455. this.tableJson = tableJson;
  7456. }
  7457. this.dialogVisibleTable = true;
  7458. } else if (i == 52) {
  7459. if (
  7460. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7461. .toolChoose[toolIndex].wordJson
  7462. ) {
  7463. this.wordJson = JSON.parse(
  7464. JSON.stringify(
  7465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7466. itemTaskIndex
  7467. ].toolChoose[toolIndex].wordJson
  7468. )
  7469. );
  7470. } else {
  7471. var wordJson = { text: "" };
  7472. this.wordJson = wordJson;
  7473. }
  7474. this.dialogVisibleWord = true;
  7475. // else if (i == 50) {
  7476. // if (
  7477. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7478. // .toolChoose[toolIndex].uploadJson
  7479. // ) {
  7480. // this.uploadJson = JSON.parse(
  7481. // JSON.stringify(
  7482. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7483. // itemTaskIndex
  7484. // ].toolChoose[toolIndex].uploadJson
  7485. // )
  7486. // );
  7487. // } else {
  7488. // var uploadJson = [];
  7489. // this.uploadJson = uploadJson;
  7490. // }
  7491. // this.dialogVisibleMoreUpload = true;
  7492. // }
  7493. } else if (i == 10) {
  7494. if (
  7495. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7496. .toolChoose[toolIndex].preTime
  7497. ) {
  7498. this.preTime = JSON.parse(
  7499. JSON.stringify(
  7500. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7501. itemTaskIndex
  7502. ].toolChoose[toolIndex].preTime
  7503. )
  7504. );
  7505. } else {
  7506. var preTime = 0;
  7507. this.preTime = preTime;
  7508. }
  7509. this.dialogVisiblePreTime = true;
  7510. } else if (i == 49) {
  7511. if (
  7512. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7513. .toolChoose[toolIndex].groupJson
  7514. ) {
  7515. this.groupJson = JSON.parse(
  7516. JSON.stringify(
  7517. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7518. itemTaskIndex
  7519. ].toolChoose[toolIndex].groupJson
  7520. )
  7521. );
  7522. } else {
  7523. var groupJson = {
  7524. group: [{ name: "第1组" }],
  7525. number: undefined,
  7526. islock: 1,
  7527. };
  7528. this.groupJson = groupJson;
  7529. }
  7530. this.dialogVisibleGroup = true;
  7531. } else if (i == 15) {
  7532. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7533. itemTaskIndex
  7534. ].toolChoose[toolIndex].answerQ
  7535. ? JSON.parse(
  7536. JSON.stringify(
  7537. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7538. itemTaskIndex
  7539. ].toolChoose[toolIndex].answerQ
  7540. )
  7541. )
  7542. : "";
  7543. this.dialogVisible8 = true;
  7544. } else if (i == 40) {
  7545. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7546. itemTaskIndex
  7547. ].toolChoose[toolIndex].rateJson
  7548. ? JSON.parse(
  7549. JSON.stringify(
  7550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7551. itemTaskIndex
  7552. ].toolChoose[toolIndex].rateJson
  7553. )
  7554. )
  7555. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  7556. this.selectSteps = 1;
  7557. this.dialogVisibleRate = true;
  7558. } else if (i == 42) {
  7559. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7560. itemTaskIndex
  7561. ].toolChoose[toolIndex].answerQ
  7562. ? JSON.parse(
  7563. JSON.stringify(
  7564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7565. itemTaskIndex
  7566. ].toolChoose[toolIndex].answerQ
  7567. )
  7568. )
  7569. : "";
  7570. this.dialogVisibleMp3 = true;
  7571. } else if (i == 41) {
  7572. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7573. itemTaskIndex
  7574. ].toolChoose[toolIndex].selectJson
  7575. ? JSON.parse(
  7576. JSON.stringify(
  7577. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7578. itemTaskIndex
  7579. ].toolChoose[toolIndex].selectJson
  7580. )
  7581. )
  7582. : { url: "", select: [], answer: [] };
  7583. this.selectSteps = 1;
  7584. this.dialogVisibleSelect = true;
  7585. } else if (i == 3) {
  7586. window.parent.postMessage(
  7587. {
  7588. tools: "3y",
  7589. cid: this.cid,
  7590. stage: this.unitIndex,
  7591. task: itemTaskIndex,
  7592. tool: toolIndex,
  7593. },
  7594. "*"
  7595. );
  7596. } else if (i == 1) {
  7597. window.parent.postMessage(
  7598. {
  7599. tools: "1y",
  7600. cid: this.cid,
  7601. stage: this.unitIndex,
  7602. task: itemTaskIndex,
  7603. tool: toolIndex,
  7604. },
  7605. "*"
  7606. );
  7607. }
  7608. },
  7609. chapAddTools(i) {
  7610. if (this.chapTools[0].tools.length == 0) {
  7611. this.chapTools[0].tools.push(i);
  7612. } else {
  7613. if (this.chapTools[0].tools.indexOf(i) != -1) {
  7614. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  7615. } else {
  7616. this.chapTools[0].tools.push(i);
  7617. }
  7618. }
  7619. this.$forceUpdate();
  7620. },
  7621. addChaptersDataTools() {
  7622. if (this.chapTools[0].tools.indexOf(4) != -1) {
  7623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7624. this.chapCount
  7625. ].chapterData.push({
  7626. name: this.chapTools[0].toolDetail,
  7627. url: this.chapTools[0].tools,
  7628. type: 7,
  7629. askJson: this.askJson,
  7630. });
  7631. } else {
  7632. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7633. this.chapCount
  7634. ].chapterData.push({
  7635. name: this.chapTools[0].toolDetail,
  7636. url: this.chapTools[0].tools,
  7637. type: 7,
  7638. });
  7639. }
  7640. this.imgChange1(null, null, 7, this.chapCount);
  7641. this.dialogVisible4 = false;
  7642. },
  7643. addTools(i, itemTaskIndex, toolIndex) {
  7644. // if (
  7645. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7646. // .toolChoose[toolIndex].tool.length == 0
  7647. // ) {
  7648. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7649. // itemTaskIndex
  7650. // ].toolChoose[toolIndex].tool.push(i);
  7651. // } else {
  7652. // if (
  7653. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7654. // itemTaskIndex
  7655. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7656. // ) {
  7657. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7658. // itemTaskIndex
  7659. // ].toolChoose[toolIndex].tool.splice(
  7660. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7661. // itemTaskIndex
  7662. // ].toolChoose[toolIndex].tool.indexOf(i),
  7663. // 1
  7664. // );
  7665. // } else {
  7666. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7667. // itemTaskIndex
  7668. // ].toolChoose[toolIndex].tool.push(i);
  7669. // }
  7670. // console.log(
  7671. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7672. // .toolChoose[toolIndex].tool
  7673. // );
  7674. // }
  7675. if (i == 4) {
  7676. if (
  7677. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7678. .toolChoose[toolIndex].askJson.askTitle == "" ||
  7679. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7680. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  7681. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7682. .toolChoose[toolIndex].askJson[0].checkList < 2
  7683. ) {
  7684. this.openTools(itemTaskIndex, 4, toolIndex);
  7685. // this.$message({
  7686. // message: "请填写完整问卷内容",
  7687. // type: "error",
  7688. // });
  7689. return;
  7690. }
  7691. }
  7692. if (i == 45) {
  7693. if (
  7694. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7695. .toolChoose[toolIndex].testJson ||
  7696. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7697. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  7698. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7699. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  7700. ) {
  7701. this.openTools(itemTaskIndex, 45, toolIndex);
  7702. // this.$message({
  7703. // message: "请填写完整问卷内容",
  7704. // type: "error",
  7705. // });
  7706. return;
  7707. }
  7708. }
  7709. if (i == 47) {
  7710. if (
  7711. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7712. .toolChoose[toolIndex].sentenceList ||
  7713. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7714. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  7715. ) {
  7716. this.openTools(itemTaskIndex, 47, toolIndex);
  7717. return;
  7718. }
  7719. }
  7720. // if (i == 48) {
  7721. // if (
  7722. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7723. // .toolChoose[toolIndex].tableJson
  7724. // ) {
  7725. // this.openTools(itemTaskIndex, 48, toolIndex);
  7726. // return;
  7727. // }
  7728. // }
  7729. // if (i == 50) {
  7730. // if (
  7731. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7732. // .toolChoose[toolIndex].uploadJson
  7733. // ) {
  7734. // this.openTools(itemTaskIndex, 50, toolIndex);
  7735. // return;
  7736. // }
  7737. // }
  7738. if (i == 49) {
  7739. if (
  7740. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7741. .toolChoose[toolIndex].groupJson
  7742. ) {
  7743. this.openTools(itemTaskIndex, 49, toolIndex);
  7744. return;
  7745. }
  7746. }
  7747. if (i == 15) {
  7748. if (
  7749. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7750. .toolChoose[toolIndex].answerQ ||
  7751. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7752. .toolChoose[toolIndex].answerQ == ""
  7753. ) {
  7754. this.openTools(itemTaskIndex, 15, toolIndex);
  7755. // this.$message({
  7756. // message: "请填写问答内容",
  7757. // type: "error",
  7758. // });
  7759. return;
  7760. }
  7761. }
  7762. if (i == 40) {
  7763. if (
  7764. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7765. .toolChoose[toolIndex].rateJson ||
  7766. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7767. .toolChoose[toolIndex].rateJson.length
  7768. ) {
  7769. this.openTools(itemTaskIndex, 40, toolIndex);
  7770. return;
  7771. }
  7772. }
  7773. if (i == 41) {
  7774. if (
  7775. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7776. .toolChoose[toolIndex].selectJson ||
  7777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7778. .toolChoose[toolIndex].selectJson.url == "" ||
  7779. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7780. .toolChoose[toolIndex].selectJson.select.length ||
  7781. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7782. .toolChoose[toolIndex].selectJson.answer.length
  7783. ) {
  7784. this.openTools(itemTaskIndex, 41, toolIndex);
  7785. return;
  7786. }
  7787. }
  7788. if (i == 42) {
  7789. if (
  7790. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7791. .toolChoose[toolIndex].answerQ ||
  7792. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7793. .toolChoose[toolIndex].answerQ == ""
  7794. ) {
  7795. this.openTools(itemTaskIndex, 42, toolIndex);
  7796. return;
  7797. }
  7798. }
  7799. if (
  7800. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  7801. .toolChoose[toolIndex].tool.length > 0
  7802. ) {
  7803. if (
  7804. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7805. itemTaskIndex
  7806. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  7807. ) {
  7808. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7809. itemTaskIndex
  7810. ].toolChoose[toolIndex].tool.splice(
  7811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7812. itemTaskIndex
  7813. ].toolChoose[toolIndex].tool.indexOf(i),
  7814. 1
  7815. );
  7816. } else {
  7817. // this.$message({
  7818. // message: "每个工具只能添加一个",
  7819. // type: "error",
  7820. // });
  7821. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7822. itemTaskIndex
  7823. ].toolChoose[toolIndex].tool = [];
  7824. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7825. itemTaskIndex
  7826. ].toolChoose[toolIndex].tool.push(i);
  7827. }
  7828. } else {
  7829. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7830. itemTaskIndex
  7831. ].toolChoose[toolIndex].tool.push(i);
  7832. }
  7833. this.$forceUpdate();
  7834. },
  7835. addAskList() {
  7836. this.askJson.askJson.push({
  7837. askstitle: "",
  7838. askItem: 1,
  7839. checkList: [],
  7840. });
  7841. this.askJson.askCount++;
  7842. },
  7843. addTestList() {
  7844. this.testJson.testJson.push({
  7845. teststitle: "",
  7846. testItem: 1,
  7847. checkList: [],
  7848. timuList: [],
  7849. answer: [],
  7850. type: "1",
  7851. });
  7852. this.testJson.testCount++;
  7853. },
  7854. deleteAskList(index) {
  7855. this.askJson.askJson.splice(index, 1);
  7856. this.askJson.askCount--;
  7857. },
  7858. deleteTestList(index) {
  7859. this.testJson.testJson.splice(index, 1);
  7860. this.testJson.testCount--;
  7861. },
  7862. addcheckList(json) {
  7863. json.checkList.length++;
  7864. json.askItem++;
  7865. },
  7866. deletecheckList(json) {
  7867. json.checkList.length--;
  7868. json.askItem--;
  7869. },
  7870. addTcheckList(json) {
  7871. json.checkList.length++;
  7872. json.testItem++;
  7873. },
  7874. deleteTcheckList(json) {
  7875. json.checkList.length--;
  7876. json.testItem--;
  7877. },
  7878. checkTestType(type, json) {
  7879. json.type = type;
  7880. json.answer = [];
  7881. },
  7882. checkAskType(type,json){
  7883. json.type = type;
  7884. json.checkList = [];
  7885. },
  7886. addSelectList(json) {
  7887. json.select.push("");
  7888. json.answer.push("");
  7889. },
  7890. deleteSelectList(json) {
  7891. // json.select.length--;
  7892. // json.answer.length--;
  7893. json.select.splice(json.select.length - 1, 1);
  7894. json.answer.splice(json.answer.length - 1, 1);
  7895. },
  7896. addAsk() {
  7897. if (this.askJson.askTitle === "") {
  7898. this.$message.error("标题不能为空!");
  7899. return;
  7900. }
  7901. var aj = this.askJson.askJson;
  7902. var b = 1;
  7903. for (var i = 0; i < aj.length; i++) {
  7904. if (aj[i].askstitle === "") {
  7905. var a = 1;
  7906. for (let index = 0; index < aj[i].askItem; index++) {
  7907. const element = aj[i].checkList[index]
  7908. ? aj[i].checkList[index]
  7909. : "";
  7910. if (element != "") {
  7911. b++;
  7912. this.$message.error("填写了选项,题目不能为空!");
  7913. return;
  7914. } else {
  7915. a++;
  7916. }
  7917. }
  7918. if (b == 1) {
  7919. this.$message.error("至少填写一个问题");
  7920. return;
  7921. }
  7922. } else if (aj[i].askstitle != "") {
  7923. for (let index = 0; index < aj[i].askItem; index++) {
  7924. const element = aj[i].checkList[index]
  7925. ? aj[i].checkList[index]
  7926. : "";
  7927. var index = 0;
  7928. for (var z = 0; z < aj[i].checkList.length; z++) {
  7929. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7930. if (checkC != "") {
  7931. index++;
  7932. } else {
  7933. this.$message.error("选项不能为空!");
  7934. return;
  7935. }
  7936. }
  7937. b++;
  7938. if (index < 2) {
  7939. this.$message.error("填写了的题目,选项至少要有两项!");
  7940. return;
  7941. }
  7942. }
  7943. }
  7944. }
  7945. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7946. var elc = el.checkList.filter((element) => {
  7947. return element != "";
  7948. });
  7949. return el.askstitle != "" && elc.length != 0;
  7950. });
  7951. if (!this.dialogVisible4) {
  7952. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7953. this.taskCount
  7954. ].toolChoose[this.toolIndex] = this.askJson;
  7955. }
  7956. this.dialogVisible5 = false;
  7957. if (
  7958. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7959. .toolChoose[this.toolIndex].tool != 4
  7960. ) {
  7961. this.addTools(4, this.taskCount, this.toolIndex);
  7962. }
  7963. },
  7964. addTest() {
  7965. // if (this.testJson.testTitle === "") {
  7966. // this.$message.error("标题不能为空!");
  7967. // return;
  7968. // }
  7969. var aj = this.testJson.testJson;
  7970. var b = 1;
  7971. for (var i = 0; i < aj.length; i++) {
  7972. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7973. var a = 1;
  7974. for (let index = 0; index < aj[i].testItem; index++) {
  7975. const element = aj[i].checkList[index]
  7976. ? aj[i].checkList[index]
  7977. : "";
  7978. if (element != "") {
  7979. b++;
  7980. this.$message.error("填写了选项,题目不能为空!");
  7981. return;
  7982. } else {
  7983. a++;
  7984. }
  7985. }
  7986. if (b == 1) {
  7987. this.$message.error("至少填写一个问题");
  7988. return;
  7989. }
  7990. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7991. for (let index = 0; index < aj[i].testItem; index++) {
  7992. const element = aj[i].checkList[index]
  7993. ? aj[i].checkList[index]
  7994. : "";
  7995. var index = 0;
  7996. for (var z = 0; z < aj[i].checkList.length; z++) {
  7997. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7998. if (checkC != "") {
  7999. index++;
  8000. } else {
  8001. this.$message.error("选项不能为空!");
  8002. return;
  8003. }
  8004. }
  8005. b++;
  8006. if (index < 2) {
  8007. this.$message.error("填写了的题目,选项至少要有两项!");
  8008. return;
  8009. }
  8010. if (
  8011. (aj[i].type == "2" && !aj[i].answer.length) ||
  8012. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  8013. ) {
  8014. this.$message.error("有题目未选择答案请选择答案");
  8015. return;
  8016. }
  8017. }
  8018. }
  8019. }
  8020. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  8021. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  8022. var elc = el.checkList.filter((element) => {
  8023. return element != "";
  8024. });
  8025. return (
  8026. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  8027. );
  8028. });
  8029. isTestJson.testCount = isTestJson.testJson.length;
  8030. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8031. this.taskCount
  8032. ].toolChoose[this.toolIndex].testJson = isTestJson;
  8033. this.dialogVisibleChoice = false;
  8034. if (
  8035. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8036. .toolChoose[this.toolIndex].tool != 45
  8037. ) {
  8038. this.addTools(45, this.taskCount, this.toolIndex);
  8039. }
  8040. },
  8041. //自动获取剪贴板
  8042. pasteOption() {
  8043. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  8044. let copyData = iframe.contentWindow.copyData
  8045. if(!iframe || !copyData || !copyData.selectData.length){
  8046. this.$message.error("请使用AI共创生成题目")
  8047. return;
  8048. }
  8049. let selectData = copyData.selectData;
  8050. for(var i = 0;i<selectData.length;i++){
  8051. let answer = 0
  8052. switch (selectData[i].answer[0]) {
  8053. case 'A':
  8054. answer = 0
  8055. break;
  8056. case 'B':
  8057. answer = 1
  8058. break;
  8059. case 'C':
  8060. answer = 2
  8061. break;
  8062. case 'D':
  8063. answer = 3
  8064. break;
  8065. case 'E':
  8066. answer = 4
  8067. break;
  8068. default:
  8069. break;
  8070. }
  8071. this.testJson.testJson.push({
  8072. teststitle: selectData[i].subject,
  8073. testItem: selectData[i].options.length,
  8074. checkList: selectData[i].options,
  8075. timuList: [],
  8076. answer: answer,
  8077. type: "1",
  8078. });
  8079. this.testJson.testCount++;
  8080. }
  8081. this.$forceUpdate();
  8082. },
  8083. addAnswer() {
  8084. if (this.answerQ == "") {
  8085. this.$message.error("请输入您想要问的问题");
  8086. return;
  8087. }
  8088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8089. this.taskCount
  8090. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8091. this.dialogVisible8 = false;
  8092. if (
  8093. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8094. .toolChoose[this.toolIndex].tool != 15
  8095. ) {
  8096. this.addTools(15, this.taskCount, this.toolIndex);
  8097. }
  8098. },
  8099. addMp3Answer() {
  8100. if (this.answerQ == "") {
  8101. this.$message.error("请输入您想要回答的问题");
  8102. return;
  8103. }
  8104. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8105. this.taskCount
  8106. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  8107. this.dialogVisibleMp3 = false;
  8108. },
  8109. addRateAnswer() {
  8110. var a = 1;
  8111. for (var i = 0; i < this.rateJson.length; i++) {
  8112. if (this.rateJson[i].value == "") {
  8113. a = 2;
  8114. break;
  8115. }
  8116. }
  8117. if (a == 2) {
  8118. this.$message.error("请把评价信息填写完整");
  8119. return;
  8120. }
  8121. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8122. this.taskCount
  8123. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  8124. this.dialogVisibleRate = false;
  8125. if (
  8126. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8127. .toolChoose[this.toolIndex].tool != 40
  8128. ) {
  8129. this.addTools(40, this.taskCount, this.toolIndex);
  8130. }
  8131. },
  8132. addSelectAnswer() {
  8133. if (this.selectJson.url == "") {
  8134. this.$message.error("请上传题目");
  8135. return;
  8136. }
  8137. if (!this.selectJson.select.length) {
  8138. this.$message.error("请添加选项");
  8139. return;
  8140. }
  8141. if (!this.selectJson.answer.length) {
  8142. this.$message.error("请设置答案");
  8143. return;
  8144. }
  8145. var a = 1;
  8146. for (var i = 0; i < this.selectJson.answer.length; i++) {
  8147. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  8148. a = 2;
  8149. }
  8150. }
  8151. if (a == 2) {
  8152. this.$message.error("请设置答案");
  8153. return;
  8154. }
  8155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8156. this.taskCount
  8157. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  8158. this.dialogVisibleSelect = false;
  8159. if (
  8160. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8161. .toolChoose[this.toolIndex].tool != 41
  8162. ) {
  8163. this.addTools(41, this.taskCount, this.toolIndex);
  8164. }
  8165. },
  8166. nextSelectSteps() {
  8167. if (this.selectJson.url == "") {
  8168. this.$message.error("请上传题目");
  8169. return;
  8170. }
  8171. if (!this.selectJson.select.length) {
  8172. this.$message.error("请添加选项");
  8173. return;
  8174. }
  8175. var a = 1;
  8176. for (var i = 0; i < this.selectJson.select.length; i++) {
  8177. if (!this.selectJson.select[i]) {
  8178. a = 2;
  8179. }
  8180. }
  8181. if (a == 2) {
  8182. this.$message.error("添加的选项不能为空");
  8183. return;
  8184. }
  8185. this.selectSteps++;
  8186. },
  8187. selectCourseDetail() {
  8188. if (this.cid == "" || this.cid == undefined) {
  8189. console.log("这是新增课程");
  8190. this.selectAllType();
  8191. } else {
  8192. this.cidType = 1;
  8193. let params = {
  8194. cid: this.cid,
  8195. };
  8196. this.ajax
  8197. .get(this.$store.state.api + "select_course_detail", params)
  8198. .then((res) => {
  8199. this.loading = true;
  8200. this.unitJson = JSON.parse(res.data[0][0].chapters);
  8201. for (var j = 0; j < this.unitJson.length; j++) {
  8202. for (
  8203. var k = 0;
  8204. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  8205. k++
  8206. ) {
  8207. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  8208. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8209. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  8210. : [];
  8211. let _chapterData = [];
  8212. for (
  8213. var c = 0;
  8214. c <
  8215. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  8216. .length;
  8217. c++
  8218. ) {
  8219. if (
  8220. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8221. ) {
  8222. _chapterData.push(
  8223. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  8224. );
  8225. }
  8226. }
  8227. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  8228. _chapterData;
  8229. }
  8230. }
  8231. this.$forceUpdate();
  8232. this.courseName = res.data[0][0].title;
  8233. this.courseText = res.data[0][0].brief;
  8234. this.evalua = res.data[0][0].evaId;
  8235. this.cover = JSON.parse(res.data[0][0].cover);
  8236. this.noneBtnImg = this.cover.length >= 1;
  8237. // this.checkboxList =
  8238. // res.data[0][0].course_student.length > 0
  8239. // ? JSON.parse(res.data[0][0].course_student)
  8240. // : [];
  8241. this.checkboxList2 = res.data[0][0].juri
  8242. ? res.data[0][0].juri.split(",")
  8243. : [];
  8244. this.inviteCode = [];
  8245. for (var i = 0; i < res.data[2].length; i++) {
  8246. this.inviteCode.push({
  8247. cid: res.data[2][i].classid,
  8248. ic: res.data[2][i].code,
  8249. });
  8250. }
  8251. this.checkboxList3 = res.data[0][0].course_teacher
  8252. ? res.data[0][0].course_teacher.split(",")
  8253. : [];
  8254. // this.isTeacherSee =
  8255. // res.data[0][0].is_teacher_look == 0 ? true : false;
  8256. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  8257. this.myWord = res.data[0][0].template;
  8258. this.templateC.id = "123";
  8259. this.courseUserid = res.data[0][0].userid;
  8260. // if(this.courseUserid == this.userid){
  8261. // this.InviteChange(this.checkboxList2)
  8262. // }
  8263. this.nbOrder = res.data[0][0].ordernumber;
  8264. this.courseTypeId = [];
  8265. for (var i = 0; i < res.data[1].length; i++) {
  8266. this.courseTypeId.push(res.data[1][i].typeid);
  8267. }
  8268. console.log(this.courseTypeId);
  8269. // if (this.timer) clearInterval(this.timer);
  8270. if (this.timer) clearTimeout(this.timer);
  8271. this.timer = null;
  8272. // this.timer = setInterval(() => {
  8273. this.seleteCourseUpdate();
  8274. this.setMan();
  8275. this.selectAllType();
  8276. // }, 5000);
  8277. this.$forceUpdate();
  8278. setTimeout(() => {
  8279. this.checkEva(this.evalua);
  8280. }, 0);
  8281. })
  8282. .catch((err) => {
  8283. console.error(err);
  8284. });
  8285. }
  8286. },
  8287. seleteCourseUpdate() {
  8288. let params = {
  8289. cid: this.cid,
  8290. };
  8291. this.ajax
  8292. .get(this.$store.state.api + "select_course_detail", params)
  8293. .then((res) => {
  8294. // console.log(this.unitJson);
  8295. let unitJson = JSON.parse(res.data[0][0].chapters);
  8296. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  8297. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  8298. let _unitJson = [];
  8299. let _chapAarry = [];
  8300. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  8301. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  8302. let index = 1;
  8303. let chapindex;
  8304. if (_unitJson2.length > unitJson.length) {
  8305. for (let c = 0; c < _unitJson2.length; c++) {
  8306. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  8307. }
  8308. for (let j = 0; j < unitJson.length; j++) {
  8309. let count = 0;
  8310. for (let k = 0; k < _unitJson2.length; k++) {
  8311. if (
  8312. unitJson[j].chapterInfo[0].chapterid ==
  8313. _unitJson2[k].chapterInfo[0].chapterid
  8314. ) {
  8315. count++;
  8316. _chapAarry.splice(
  8317. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8318. 1
  8319. );
  8320. _unitJson.push(unitJson[j]);
  8321. break;
  8322. }
  8323. }
  8324. // if(count === 0){
  8325. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8326. // }
  8327. }
  8328. for (let k = 0; k < _unitJson2.length; k++) {
  8329. if (_unitJson2[k].isUpdate == 1) {
  8330. _chapAarry.splice(
  8331. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  8332. 1
  8333. );
  8334. _unitJson.push(_unitJson2[k]);
  8335. }
  8336. }
  8337. console.log(_chapAarry);
  8338. for (let d = 0; d < _unitJson2.length; d++) {
  8339. if (
  8340. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  8341. ) {
  8342. if (_unitIndex == d) {
  8343. index = 2;
  8344. }
  8345. chapindex = d;
  8346. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  8347. }
  8348. }
  8349. } else {
  8350. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  8351. }
  8352. for (let i = 0; i < unitJson.length; i++) {
  8353. if (
  8354. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  8355. _unitJson[i].chapterInfo[0].chapterid !=
  8356. unitJson[i].chapterInfo[0].chapterid
  8357. ) {
  8358. if (i == _unitJson.length - 1) {
  8359. // this.unitIndex++
  8360. _unitIndex2++;
  8361. }
  8362. _unitJson.splice(i, 0, unitJson[i]);
  8363. } else if (i > _unitJson.length - 1) {
  8364. _unitJson.push(unitJson[i]);
  8365. } else if (
  8366. _unitJson[i].chapterInfo[0].chapterid ==
  8367. unitJson[i].chapterInfo[0].chapterid
  8368. ) {
  8369. _unitJson[i] = unitJson[i];
  8370. }
  8371. // if (i == _unitIndex) {
  8372. // continue;
  8373. // } else
  8374. }
  8375. if (_chapAarry.length && index != 2) {
  8376. if (chapindex < _unitIndex) {
  8377. this.isDelete = 2;
  8378. // this.unitIndex--;
  8379. _unitIndex2--;
  8380. } else if (
  8381. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  8382. _unitJson[_unitIndex].chapterInfo[0].chapterid
  8383. ) {
  8384. this.isDelete = 2;
  8385. for (let n = 0; n < _unitJson.length; n++) {
  8386. if (
  8387. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  8388. _unitJson[n].chapterInfo[0].chapterid
  8389. ) {
  8390. // this.unitIndex = n;
  8391. _unitIndex2 = n;
  8392. _unitJson[n] = _unitJson2[_unitIndex];
  8393. break;
  8394. }
  8395. }
  8396. }
  8397. } else if (index != 2) {
  8398. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  8399. _unitJson2[_unitIndex];
  8400. for (
  8401. var ci = 0;
  8402. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  8403. ci++
  8404. ) {
  8405. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  8406. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  8407. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8408. .toolChoose
  8409. : [];
  8410. let _chapterData = [];
  8411. for (
  8412. var c = 0;
  8413. c <
  8414. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  8415. .length;
  8416. c++
  8417. ) {
  8418. if (
  8419. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8420. .chapterData[c]
  8421. ) {
  8422. _chapterData.push(
  8423. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  8424. .chapterData[c]
  8425. );
  8426. }
  8427. }
  8428. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  8429. _chapterData;
  8430. }
  8431. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  8432. }
  8433. if (index == 1) {
  8434. this.unitJson = _unitJson;
  8435. this.$forceUpdate();
  8436. setTimeout(() => {
  8437. if (this.unitIndex != _unitIndex2) {
  8438. this.isDelete = 2;
  8439. this.unitIndex = _unitIndex2;
  8440. }
  8441. }, 0);
  8442. this.timer = setTimeout(() => {
  8443. this.seleteCourseUpdate();
  8444. }, 1000);
  8445. } else if (index == 2) {
  8446. let _this = this;
  8447. _this
  8448. .$confirm(
  8449. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  8450. "提示",
  8451. {
  8452. confirmButtonText: "需要",
  8453. cancelButtonText: "取消",
  8454. type: "warning",
  8455. }
  8456. )
  8457. .then(() => {
  8458. if (_this.time()) {
  8459. _this.restoreWork(
  8460. _chapAarry[0],
  8461. _unitJson,
  8462. chapindex,
  8463. _unitJson2,
  8464. _unitIndex2
  8465. );
  8466. }
  8467. })
  8468. .catch(() => {
  8469. _this.unitJson = _unitJson;
  8470. _this.$forceUpdate();
  8471. setTimeout(() => {
  8472. if (this.unitIndex != _unitIndex2) {
  8473. this.isDelete = 2;
  8474. this.unitIndex = _unitIndex2;
  8475. }
  8476. }, 0);
  8477. _this.timer = setTimeout(() => {
  8478. _this.seleteCourseUpdate();
  8479. }, 1000);
  8480. });
  8481. }
  8482. })
  8483. .catch((err) => {
  8484. console.error(err);
  8485. });
  8486. },
  8487. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  8488. let params = [
  8489. {
  8490. cid: this.cid,
  8491. chapters: JSON.stringify(this.unitJson),
  8492. uid: this.userid,
  8493. chapid: chapid,
  8494. },
  8495. ];
  8496. this.ajax
  8497. .post(this.$store.state.api + "restoreWork", params)
  8498. .then((res) => {
  8499. this.$message({
  8500. message: "恢复成功",
  8501. type: "success",
  8502. });
  8503. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  8504. this.unitJson = unitJson;
  8505. this.$forceUpdate();
  8506. setTimeout(() => {
  8507. if (this.unitIndex != unitIndex2) {
  8508. this.isDelete = 2;
  8509. this.unitIndex = unitIndex2;
  8510. }
  8511. }, 0);
  8512. this.timer = setTimeout(() => {
  8513. this.seleteCourseUpdate();
  8514. }, 1000);
  8515. })
  8516. .catch((err) => {
  8517. this.$message.error("网络不佳");
  8518. console.error(err);
  8519. });
  8520. },
  8521. getTypeName() {
  8522. console.log(this.courseTypeId);
  8523. this.$forceUpdate();
  8524. },
  8525. selectAllType() {
  8526. let params = {
  8527. org: this.org && this.org != "" ? this.org : "",
  8528. oid: this.oid && this.oid != "" ? this.oid : "",
  8529. };
  8530. this.ajax
  8531. .get(this.$store.state.api + "selectAllType", params)
  8532. .then((res) => {
  8533. this.CourseType = res.data;
  8534. this.CourseType2 = [
  8535. { name: "智见课程", id: [] },
  8536. { name: "智行课程", id: [] },
  8537. { name: "智创课程", id: [] },
  8538. ];
  8539. for (var cti = 0; cti < res.data[0].length; cti++) {
  8540. if (
  8541. res.data[0][cti].name == "年级" ||
  8542. res.data[0][cti].name == "学科"
  8543. ) {
  8544. this.CourseType2[1].id.push(res.data[0][cti].id);
  8545. this.CourseType2[0].id.push(res.data[0][cti].id);
  8546. } else if (res.data[0][cti].name == "主题") {
  8547. this.CourseType2[2].id.push(res.data[0][cti].id);
  8548. }
  8549. }
  8550. let _courseTypeId = [];
  8551. for (var i = 0; i < res.data[0].length; i++) {
  8552. if (!this.cid) {
  8553. this.courseTypeId[res.data[0][i].id] = [];
  8554. }
  8555. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  8556. // }
  8557. this.CourseTypeJson[res.data[0][i].id] = [];
  8558. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8559. if (res.data[0][i].name == "栏目") {
  8560. this.CourseType[0][i].name = "主题";
  8561. }
  8562. }
  8563. if (res.data[2].length == 0 && res.data[3].length == 0) {
  8564. for (var j = 0; j < res.data[1].length; j++) {
  8565. if (
  8566. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  8567. _courseTypeId.indexOf(res.data[1][j].id) == -1
  8568. ) {
  8569. _courseTypeId.push(res.data[1][j].id);
  8570. }
  8571. if (res.data[0][i].id == res.data[1][j].pid) {
  8572. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8573. }
  8574. }
  8575. } else {
  8576. if (res.data[2].length > 0) {
  8577. for (var j = 0; j < res.data[2].length; j++) {
  8578. if (
  8579. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  8580. _courseTypeId.indexOf(res.data[2][j].id) == -1
  8581. ) {
  8582. _courseTypeId.push(res.data[2][j].id);
  8583. }
  8584. if (res.data[0][i].id == res.data[2][j].pid) {
  8585. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  8586. }
  8587. }
  8588. }
  8589. if (res.data[3].length > 0) {
  8590. for (var j = 0; j < res.data[3].length; j++) {
  8591. if (
  8592. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  8593. _courseTypeId.indexOf(res.data[3][j].id) == -1
  8594. ) {
  8595. _courseTypeId.push(res.data[3][j].id);
  8596. }
  8597. if (res.data[0][i].id == res.data[3][j].pid) {
  8598. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  8599. }
  8600. }
  8601. }
  8602. }
  8603. }
  8604. this.courseTypeId = _courseTypeId;
  8605. })
  8606. .catch((err) => {
  8607. console.error(err);
  8608. });
  8609. },
  8610. selectType() {
  8611. this.ajax
  8612. .get(this.$store.state.api + "selectType")
  8613. .then((res) => {
  8614. this.CourseType = res.data;
  8615. for (var i = 0; i < res.data[0].length; i++) {
  8616. if (!this.cid) {
  8617. this.courseTypeId[res.data[0][i].id] = "";
  8618. }
  8619. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  8620. if (res.data[0][i].name == "栏目") {
  8621. this.CourseType[0][i].name = "主题";
  8622. }
  8623. }
  8624. for (var j = 0; j < res.data[1].length; j++) {
  8625. if (res.data[0][i].id == res.data[1][j].pid) {
  8626. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8627. this.CourseTypeJson[res.data[0][i].id] = [];
  8628. }
  8629. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  8630. }
  8631. }
  8632. }
  8633. this.selectTypeByOid();
  8634. this.selectTypeByOrg();
  8635. })
  8636. .catch((err) => {
  8637. console.error(err);
  8638. });
  8639. },
  8640. selectTypeByOid() {
  8641. let params = {
  8642. oid: this.oid,
  8643. };
  8644. this.ajax
  8645. .get(this.$store.state.api + "selectTypeByOid", params)
  8646. .then((res) => {
  8647. for (var i = 0; i < res.data[0].length; i++) {
  8648. for (var j = 0; j < res.data[1].length; j++) {
  8649. if (res.data[0][i].id == res.data[1][j].pid) {
  8650. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8651. this.CourseTypeJson[res.data[0][i].id] = [];
  8652. }
  8653. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8654. }
  8655. }
  8656. }
  8657. })
  8658. .catch((err) => {
  8659. console.error(err);
  8660. });
  8661. },
  8662. selectTypeByOrg() {
  8663. let params = {
  8664. oid: this.org,
  8665. };
  8666. this.ajax
  8667. .get(this.$store.state.api + "selectTypeByOrg", params)
  8668. .then((res) => {
  8669. for (var i = 0; i < res.data[0].length; i++) {
  8670. for (var j = 0; j < res.data[1].length; j++) {
  8671. if (res.data[0][i].id == res.data[1][j].pid) {
  8672. if (!this.CourseTypeJson[res.data[0][i].id]) {
  8673. this.CourseTypeJson[res.data[0][i].id] = [];
  8674. }
  8675. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  8676. }
  8677. }
  8678. }
  8679. this.$forceUpdate();
  8680. })
  8681. .catch((err) => {
  8682. console.error(err);
  8683. });
  8684. },
  8685. OtherMb(type) {
  8686. this.typeMode = type;
  8687. setTimeout(() => {
  8688. this.checkEva(this.checkId);
  8689. }, 0);
  8690. },
  8691. openMember() {
  8692. this.searchTN = "";
  8693. this.getTeacher();
  8694. this.dialogVisibleMember = true;
  8695. },
  8696. checkEva(id, type) {
  8697. this.dialogVisiblemb = false;
  8698. this.selectEva();
  8699. if (this.evalua != id && type == 2) {
  8700. this.$message.success("导入成功");
  8701. }
  8702. this.evalua = id;
  8703. this.checkId = id;
  8704. if (this.evalua != "") {
  8705. for (var i = 0; i < this.evaJuri.length; i++) {
  8706. if (this.evalua == this.evaJuri[i].id) {
  8707. this.eTitle = this.evaJuri[i].title;
  8708. this.eJson = JSON.parse(this.evaJuri[i].content);
  8709. }
  8710. }
  8711. this.data.data = [];
  8712. this.$forceUpdate();
  8713. setTimeout(() => {
  8714. this.setMindData();
  8715. }, 500);
  8716. }
  8717. },
  8718. deleteEva() {
  8719. let _this = this;
  8720. if (_this.evalua == "") {
  8721. this.$message.warning("内容已经清空了,请勿重复清空");
  8722. return;
  8723. }
  8724. _this
  8725. .$confirm("确定删除此目标吗?", "提示", {
  8726. confirmButtonText: "确定",
  8727. cancelButtonText: "取消",
  8728. type: "warning",
  8729. })
  8730. .then(() => {
  8731. _this.evalua = "";
  8732. _this.checkId = "";
  8733. _this.eTitle = "";
  8734. let _unitJson = _this.unitJson;
  8735. for (var i = 0; i < _unitJson.length; i++) {
  8736. let _task = _unitJson[i].chapterInfo[0].taskJson;
  8737. for (var j = 0; j < _task.length; j++) {
  8738. let _eList = _task[j].eList;
  8739. for (var k = 0; k < _eList.length; k++) {
  8740. delete _eList[k].target;
  8741. }
  8742. }
  8743. }
  8744. _this.$forceUpdate();
  8745. if (_this.cid) {
  8746. _this.updateWork();
  8747. }
  8748. })
  8749. .catch(() => {
  8750. return;
  8751. });
  8752. },
  8753. selectEva() {
  8754. let params = {
  8755. oid: this.oid,
  8756. };
  8757. this.ajax
  8758. .get(this.$store.state.api + "selectAllEvaluation", params)
  8759. .then((res) => {
  8760. this.evaJuri = res.data[0];
  8761. })
  8762. .catch((err) => {
  8763. console.error(err);
  8764. });
  8765. },
  8766. setMindData() {
  8767. let targetArray = [];
  8768. this.data.data = [];
  8769. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8770. let _eJson = Object.keys(this.eJson);
  8771. let _e = this.eJson;
  8772. for (let i = 0; i < _eJson.length; i++) {
  8773. let element = _e[_eJson[i]];
  8774. this.data.data.push({
  8775. id: element.id,
  8776. parentid: "root",
  8777. topic: element.name,
  8778. });
  8779. // targetArray.push({
  8780. // id: element.id,
  8781. // parentid: "root",
  8782. // name: element.name,
  8783. // });
  8784. targetArray.push({
  8785. value: element.name,
  8786. label: element.name,
  8787. children: [],
  8788. });
  8789. let _eJsonc = Object.keys(element.child);
  8790. let _e2 = element.child;
  8791. for (let j = 0; j < _eJsonc.length; j++) {
  8792. let _ec = _e2[_eJsonc[j]];
  8793. this.data.data.push({
  8794. id: _ec.id,
  8795. parentid: element.id,
  8796. topic: _ec.name,
  8797. });
  8798. // targetArray.push({
  8799. // id: _ec.id,
  8800. // parentid: element.id,
  8801. // name: _ec.name,
  8802. // });
  8803. targetArray[i].children.push({
  8804. value: _ec.name,
  8805. label: _ec.name,
  8806. children: [],
  8807. });
  8808. let _eJsonz = Object.keys(_ec.child);
  8809. let _e3 = _ec.child;
  8810. for (let z = 0; z < _eJsonz.length; z++) {
  8811. let _ez = _e3[_eJsonz[z]];
  8812. this.data.data.push({
  8813. id: _ez.id,
  8814. parentid: _ec.id,
  8815. topic: _ez.name,
  8816. });
  8817. // targetArray.push({
  8818. // id: _ez.id,
  8819. // parentid: _ec.id,
  8820. // name: _ez.name,
  8821. // });
  8822. targetArray[i].children[j].children.push({
  8823. value: _ez.name,
  8824. label: _ez.name,
  8825. });
  8826. }
  8827. }
  8828. }
  8829. this.targetArray = targetArray;
  8830. this.$forceUpdate();
  8831. },
  8832. /*添加评价 */
  8833. addEList(index, tIndex) {
  8834. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8835. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8836. value: "",
  8837. detail: "",
  8838. score: 5,
  8839. })
  8840. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8841. { value: "", detail: "", score: 5 },
  8842. ]);
  8843. this.$forceUpdate();
  8844. },
  8845. forceUpdate() {
  8846. this.$forceUpdate();
  8847. },
  8848. deletEList(index, tIndex, eIndex) {
  8849. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8850. eIndex,
  8851. 1
  8852. );
  8853. this.$forceUpdate();
  8854. },
  8855. getChoosePic(t) {
  8856. this.chooseType = t;
  8857. this.getAllBanner();
  8858. },
  8859. getAllBanner() {
  8860. this.sysPicVisible = true;
  8861. let params = {
  8862. t: this.chooseType,
  8863. };
  8864. this.ajax
  8865. .get(this.$store.state.api + "selectAllBanner", params)
  8866. .then((res) => {
  8867. this.sysPic = res.data[0];
  8868. })
  8869. .catch((err) => {
  8870. console.error(err);
  8871. });
  8872. },
  8873. // getClass() {
  8874. // let params = {
  8875. // oid: this.oid,
  8876. // };
  8877. // this.ajax
  8878. // .get(this.$store.state.api + "selectClassBySchool", params)
  8879. // .then((res) => {
  8880. // this.classJuri = res.data[0];
  8881. // })
  8882. // .catch((err) => {
  8883. // console.error(err);
  8884. // });
  8885. // },
  8886. deleteSysPic() {
  8887. this.cover = [];
  8888. this.isSysPic = false;
  8889. },
  8890. deleteSelectPic() {
  8891. this.selectJson.url = "";
  8892. },
  8893. setEListStar() {
  8894. this.$forceUpdate();
  8895. },
  8896. deletRateList(i) {
  8897. this.rateJson.splice(i, 1);
  8898. },
  8899. addRateList() {
  8900. this.rateJson.push({ detail: "", score: 5, value: "" });
  8901. },
  8902. addSt() {
  8903. this.sentenceList.push({
  8904. sentenceTitle: "",
  8905. addSentence: [],
  8906. rightAnswer: [],
  8907. });
  8908. },
  8909. addSen(i) {
  8910. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8911. // this.isPushTitleList.push(this.sentenceTitle);
  8912. this.sentenceList[i].sentenceTitle = "";
  8913. },
  8914. setRightAnswer(s, i, j) {
  8915. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8916. this.sentenceList[i].rightAnswer.push(s);
  8917. }
  8918. },
  8919. returnCard(r, i, j) {
  8920. this.sentenceList[i].rightAnswer.splice(j, 1);
  8921. },
  8922. addSentenceTool() {
  8923. for (var i = 0; i < this.sentenceList.length; i++) {
  8924. if (this.sentenceList[i].rightAnswer.length == 0) {
  8925. this.$message.error("请将信息填写完整!");
  8926. return;
  8927. }
  8928. if (
  8929. this.sentenceList[i].addSentence.length !=
  8930. this.sentenceList[i].rightAnswer.length
  8931. ) {
  8932. this.$message.error("请将信息填写完整!");
  8933. return;
  8934. }
  8935. }
  8936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8937. this.taskCount
  8938. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8939. this.sentenceList = [
  8940. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8941. ];
  8942. this.dialogVisibleSentence = false;
  8943. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8944. // itemTaskIndex
  8945. // ].toolChoose[toolIndex].tool = [];
  8946. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8947. // itemTaskIndex
  8948. // ].toolChoose[toolIndex].tool.push(i);
  8949. if (
  8950. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8951. .toolChoose[this.toolIndex].tool != 47
  8952. ) {
  8953. this.addTools(47, this.taskCount, this.toolIndex);
  8954. }
  8955. },
  8956. addTableJson() {
  8957. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8958. // this.$message.error("请将信息填写完整!");
  8959. // return;
  8960. // }
  8961. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8962. this.taskCount
  8963. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8964. // this.tableJson = [{ text: "" }];
  8965. // this.dialogVisibleTable = false;
  8966. this.$message.success("上传成功");
  8967. if (
  8968. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8969. .toolChoose[this.toolIndex].tool != 48
  8970. ) {
  8971. this.addTools(48, this.taskCount, this.toolIndex);
  8972. }
  8973. },
  8974. addWordJson() {
  8975. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8976. this.taskCount
  8977. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8978. // this.wordJson = [{ text: "" }];
  8979. // this.dialogVisibleWord = false;
  8980. this.$message.success("上传成功");
  8981. if (
  8982. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8983. .toolChoose[this.toolIndex].tool != 52
  8984. ) {
  8985. this.addTools(52, this.taskCount, this.toolIndex);
  8986. }
  8987. },
  8988. addMoreUpload() {
  8989. if (this.uploadJson.length == 0) {
  8990. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8991. this.taskCount
  8992. ].toolChoose[this.toolIndex].uploadJson = [];
  8993. } else {
  8994. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8995. this.taskCount
  8996. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8997. }
  8998. this.uploadJson = [];
  8999. this.dialogVisibleMoreUpload = false;
  9000. if (
  9001. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9002. .toolChoose[this.toolIndex].tool != 50
  9003. ) {
  9004. this.addTools(50, this.taskCount, this.toolIndex);
  9005. }
  9006. },
  9007. addPreTime() {
  9008. if (this.preTime == 0) {
  9009. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9010. this.taskCount
  9011. ].toolChoose[this.toolIndex].preTime = 0;
  9012. } else {
  9013. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9014. this.taskCount
  9015. ].toolChoose[this.toolIndex].preTime = this.preTime;
  9016. }
  9017. this.preTime = 0;
  9018. this.dialogVisiblePreTime = false;
  9019. if (
  9020. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9021. .toolChoose[this.toolIndex].tool != 10
  9022. ) {
  9023. this.addTools(10, this.taskCount, this.toolIndex);
  9024. }
  9025. },
  9026. goToTask(i) {
  9027. document.getElementsByClassName("rightBox")[0].scrollTop =
  9028. document.getElementsByClassName("taskBorder")[i].offsetTop - 100;
  9029. this.isClickColor = i + 1;
  9030. },
  9031. taskMove(type, index) {
  9032. if (type == 1) {
  9033. if (index > 0) {
  9034. let a = JSON.parse(
  9035. JSON.stringify(
  9036. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  9037. )
  9038. );
  9039. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  9040. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9041. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9042. }
  9043. } else {
  9044. if (
  9045. index <
  9046. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  9047. ) {
  9048. let a = JSON.parse(
  9049. JSON.stringify(
  9050. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  9051. )
  9052. );
  9053. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  9054. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  9055. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  9056. }
  9057. }
  9058. this.$forceUpdate();
  9059. },
  9060. addGroup(i) {
  9061. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  9062. this.groupJson.group.push({
  9063. name: "第" + (this.groupJson.group.length + 1) + "组",
  9064. });
  9065. },
  9066. deleteGroup(i) {
  9067. this.groupJson.group.splice(i, 1);
  9068. },
  9069. addGroupJson() {
  9070. for (var i = 0; i < this.groupJson.group.length; i++) {
  9071. if (!this.groupJson.group[i].name) {
  9072. this.$message.error("请将信息填写完整!");
  9073. return;
  9074. }
  9075. }
  9076. if (!this.groupJson.number) {
  9077. this.$message.error("请将信息填写完整!");
  9078. return;
  9079. }
  9080. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  9081. this.taskCount
  9082. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  9083. JSON.stringify(this.groupJson)
  9084. );
  9085. this.dialogVisibleGroup = false;
  9086. this.groupJson = {};
  9087. if (
  9088. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  9089. .toolChoose[this.toolIndex].tool != 49
  9090. ) {
  9091. this.addTools(49, this.taskCount, this.toolIndex);
  9092. }
  9093. },
  9094. updateTime(preTime) {
  9095. this.preTime = preTime;
  9096. },
  9097. InviteChange(val) {
  9098. console.log(val);
  9099. return;
  9100. let array = JSON.parse(JSON.stringify(val));
  9101. this.inviteCode = this.inviteCode.filter((el) => {
  9102. if (val.indexOf(el.cid) != -1) {
  9103. array.splice(array.indexOf(el.cid), 1);
  9104. return el;
  9105. }
  9106. });
  9107. for (var i = 0; i < array.length; i++) {
  9108. this.getInviteCode(array[i]);
  9109. }
  9110. },
  9111. async getInviteCode(cid) {
  9112. let code = this.randomNumber();
  9113. let params = {
  9114. code: code,
  9115. oid: this.oid,
  9116. };
  9117. let type = 1;
  9118. for (var i = 0; i < this.inviteCode.length; i++) {
  9119. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  9120. type = 2;
  9121. }
  9122. }
  9123. if (type == 2) {
  9124. this.getInviteCode(cid);
  9125. return;
  9126. }
  9127. const res = await this.ajax.get(
  9128. this.$store.state.api + "selectInviteCode2",
  9129. params
  9130. );
  9131. if (
  9132. res.data.length &&
  9133. res.data[0].length &&
  9134. res.data[0][0].courseId != this.cid
  9135. ) {
  9136. this.getInviteCode(cid);
  9137. return;
  9138. }
  9139. let array = [];
  9140. for (var i = 0; i < this.inviteCode.length; i++) {
  9141. array.push(this.inviteCode[i].cid);
  9142. }
  9143. if (array.indexOf(cid) != -1) {
  9144. this.inviteCode[array.indexOf(cid)].ic = code;
  9145. } else {
  9146. this.inviteCode.push({ cid: cid, ic: code });
  9147. }
  9148. },
  9149. OpenInviteD(cid) {
  9150. let array = [];
  9151. this.icode = "";
  9152. for (var i = 0; i < this.inviteCode.length; i++) {
  9153. array.push(this.inviteCode[i].cid);
  9154. }
  9155. if (array.indexOf(cid) != -1) {
  9156. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  9157. }
  9158. this.inviteId = cid;
  9159. this.dialogVisibleInvite = true;
  9160. },
  9161. addInvite() {
  9162. let reg = /^[A-Za-z0-9]{4,}$/;
  9163. if (!reg.test(this.icode)) {
  9164. this.$message.error("请输入至少四位数字或英文组合的随机码");
  9165. return;
  9166. }
  9167. let type = 1;
  9168. for (var i = 0; i < this.inviteCode.length; i++) {
  9169. if (
  9170. this.inviteCode[i].cid != this.inviteId &&
  9171. this.icode == this.inviteCode[i].ic
  9172. ) {
  9173. type = 2;
  9174. }
  9175. }
  9176. if (type == 2) {
  9177. this.$message.error("已有此随机码,不能重复");
  9178. return;
  9179. }
  9180. let params = {
  9181. code: this.icode,
  9182. oid: this.oid,
  9183. };
  9184. this.ajax
  9185. .get(this.$store.state.api + "selectInviteCode", params)
  9186. .then((res) => {
  9187. if (
  9188. res.data.length &&
  9189. res.data[0].length &&
  9190. res.data[0][0].courseId != this.cid
  9191. ) {
  9192. this.$message.error("已有此随机码,不能重复");
  9193. return;
  9194. }
  9195. let array = [];
  9196. for (var i = 0; i < this.inviteCode.length; i++) {
  9197. array.push(this.inviteCode[i].cid);
  9198. }
  9199. if (array.indexOf(this.inviteId) != -1) {
  9200. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  9201. } else {
  9202. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  9203. }
  9204. this.icode = "";
  9205. this.dialogVisibleInvite = false;
  9206. })
  9207. .catch((err) => {
  9208. console.error(err);
  9209. });
  9210. },
  9211. randomNumber() {
  9212. // 随机生成两位数
  9213. // let num = Math.floor(Math.random() * 900) + 100;
  9214. // 生成 0 到 99 之间的随机整数
  9215. const randomNumber = Math.floor(Math.random() * 100);
  9216. // 如果随机数小于 10,补上前导零
  9217. const num =
  9218. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  9219. // 随机生成两个大写字母
  9220. let letters = "";
  9221. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  9222. for (let i = 0; i < 3; i++) {
  9223. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  9224. }
  9225. // 随机生成两位数字和字母的组合
  9226. let mix = "";
  9227. let chars =
  9228. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  9229. for (let i = 0; i < 3; i++) {
  9230. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  9231. mix += char;
  9232. }
  9233. // 随机选择一种类型
  9234. let type = Math.floor(Math.random() * 3);
  9235. return num;
  9236. // 根据类型输出结果
  9237. switch (type) {
  9238. case 0:
  9239. console.log(num); // 输出两位数
  9240. return num;
  9241. case 1:
  9242. console.log(letters); // 输出两个大写字母
  9243. return letters;
  9244. case 2:
  9245. console.log(mix); // 输出两位数字和字母的组合
  9246. return mix;
  9247. }
  9248. },
  9249. },
  9250. beforeDestroy() {
  9251. clearTimeout(this.timer);
  9252. this.timer = null;
  9253. clearInterval(this.timer2);
  9254. this.timer2 = null;
  9255. },
  9256. beforeRouteLeave(to, from, next) {
  9257. clearTimeout(this.timer);
  9258. this.timer = null;
  9259. clearInterval(this.timer2);
  9260. this.timer2 = null;
  9261. next();
  9262. },
  9263. created() {
  9264. this.getStudent();
  9265. this.getTeacher();
  9266. this.getClass();
  9267. this.getTemplate();
  9268. // this.selectType();
  9269. this.selectEva();
  9270. this.loading = false;
  9271. this.timer2 = setInterval(() => {
  9272. this.selectEva();
  9273. }, 5000);
  9274. setTimeout(() => {
  9275. this.selectCourseDetail();
  9276. }, 500);
  9277. },
  9278. };
  9279. </script>
  9280. <style scoped>
  9281. @media screen and (max-width: 1280px) {
  9282. .mbCss {
  9283. flex-direction: column !important;
  9284. }
  9285. .pjCss {
  9286. width: 100% !important;
  9287. }
  9288. .evaCss {
  9289. width: 100% !important;
  9290. }
  9291. }
  9292. .dialog_diy >>> .el-dialog__header {
  9293. background: #3c3c3c !important;
  9294. padding: 15px 20px;
  9295. }
  9296. .dialog_diy >>> .el-dialog__title {
  9297. color: #fff;
  9298. }
  9299. .dialog_diy >>> .el-dialog__headerbtn {
  9300. top: 19px;
  9301. }
  9302. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  9303. color: #fff;
  9304. }
  9305. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  9306. color: #fff;
  9307. }
  9308. .dialog_diy >>> .el-dialog__body,
  9309. .dialog_diy >>> .el-dialog__footer {
  9310. background: #fafafa;
  9311. }
  9312. .dialog_diy3 >>> .el-dialog__body,
  9313. .dialog_diy3 >>> .el-dialog__footer {
  9314. background: #eee !important;
  9315. }
  9316. .dialog_diy3 >>> .el-dialog__body {
  9317. padding: 20px 20px;
  9318. }
  9319. .source_diy >>> .el-dialog{
  9320. height: 100% !important;
  9321. margin: 0 auto !important;
  9322. }
  9323. .source_diy >>> .el-dialog__body{
  9324. height: calc(100% - 185px);
  9325. overflow: auto;
  9326. }
  9327. .left {
  9328. border-right: 1px solid rgb(60, 94, 143);
  9329. display: flex;
  9330. flex-direction: column;
  9331. align-items: center;
  9332. min-height: 600px;
  9333. width: 385px;
  9334. height: 80%;
  9335. }
  9336. .tips {
  9337. color: rgb(128, 128, 128);
  9338. font-size: 12px;
  9339. width: 270px;
  9340. margin: 40px;
  9341. }
  9342. .pb_content {
  9343. height: 100% !important;
  9344. /* margin: 0 20px 0 20px; */
  9345. }
  9346. .pb_content_body {
  9347. width: 100% !important;
  9348. height: 100%;
  9349. }
  9350. .info_solid {
  9351. width: 270px;
  9352. height: 30px;
  9353. border-left: 1px solid #bdbdbd;
  9354. margin: 10px 0px 10px 30px;
  9355. }
  9356. .info_steps {
  9357. width: 270px;
  9358. font-size: 0.875rem;
  9359. display: flex;
  9360. align-items: center;
  9361. }
  9362. .info_steps span:nth-child(1) {
  9363. width: 30px;
  9364. height: 30px;
  9365. background: rgba(0, 0, 0, 0.38);
  9366. display: block;
  9367. color: #fff;
  9368. border-radius: 40px;
  9369. text-align: center;
  9370. line-height: 30px;
  9371. }
  9372. .steps_active {
  9373. background: #3d67bc !important;
  9374. }
  9375. .info_steps span:nth-child(2) {
  9376. margin-left: 5px;
  9377. }
  9378. .right {
  9379. height: 100%;
  9380. width: 100%;
  9381. display: flex;
  9382. overflow: hidden;
  9383. }
  9384. .basic_box {
  9385. margin: 0 auto;
  9386. position: relative;
  9387. padding: 0 20px 0 20px;
  9388. }
  9389. .basic_box_success {
  9390. width: 100%;
  9391. min-height: 455px;
  9392. padding: 50px 0;
  9393. position: relative;
  9394. text-align: center;
  9395. border-bottom: 1px solid #bfbfbf;
  9396. box-sizing: border-box;
  9397. display: flex;
  9398. align-items: center;
  9399. flex-direction: column;
  9400. justify-content: center;
  9401. }
  9402. .info_title {
  9403. font-size: 1.5em;
  9404. margin-right: 25px;
  9405. /* margin: 20px 30px 20px 30px; */
  9406. }
  9407. .bInfo_title {
  9408. text-align: left;
  9409. margin: 10px 0;
  9410. }
  9411. .small_title {
  9412. font-size: 14px;
  9413. line-height: 40px;
  9414. }
  9415. .chapter_beizhu {
  9416. font-size: 12px;
  9417. font-weight: bold;
  9418. float: right;
  9419. color: rgb(128, 128, 128);
  9420. margin-top: 5px;
  9421. }
  9422. .chapter_uploadBox1 {
  9423. text-align: left;
  9424. background-color: rgb(242, 242, 242);
  9425. width: 100%;
  9426. height: 67px;
  9427. padding: 0px 15px;
  9428. border-radius: 8px;
  9429. overflow: hidden;
  9430. font-size: 16px;
  9431. box-sizing: border-box;
  9432. position: relative;
  9433. }
  9434. .chapter_add {
  9435. width: 100%;
  9436. height: 32px;
  9437. margin-top: 15px;
  9438. cursor: pointer;
  9439. }
  9440. .chapter_add_l {
  9441. margin-left: 5px;
  9442. width: 30px;
  9443. height: 30px;
  9444. float: left;
  9445. border: 1px solid #aaa;
  9446. color: #aaa;
  9447. border-radius: 50%;
  9448. font-size: 25px;
  9449. text-align: center;
  9450. }
  9451. .chapter_add_r {
  9452. font-size: 18px;
  9453. height: 40px;
  9454. line-height: 30px;
  9455. text-indent: 10px;
  9456. color: #aaa;
  9457. }
  9458. .chapter_add_r span {
  9459. font-size: 12px;
  9460. color: rgb(204, 204, 204);
  9461. }
  9462. .chapter_add_input {
  9463. display: none;
  9464. }
  9465. .line {
  9466. width: 85%;
  9467. margin: 0 auto;
  9468. border-top: 1px solid #e5e5e5;
  9469. margin-top: 20px;
  9470. }
  9471. .info_btnBox {
  9472. width: 100%;
  9473. display: flex;
  9474. justify-content: space-evenly;
  9475. margin: 10px 0 10px 0;
  9476. }
  9477. .info_btn,
  9478. .teacherWord {
  9479. color: #fff;
  9480. background-color: #0f7eff;
  9481. padding: 8px 24px;
  9482. font-size: 0.9375rem;
  9483. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  9484. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  9485. min-width: 64px;
  9486. font-weight: 500;
  9487. border-radius: 4px;
  9488. box-sizing: border-box;
  9489. border: none;
  9490. cursor: pointer;
  9491. }
  9492. .teacherWord {
  9493. width: 105px !important;
  9494. text-align: center !important;
  9495. line-height: 36px !important;
  9496. padding: 0 !important;
  9497. font-size: 14px !important;
  9498. margin: 10px 0 !important;
  9499. }
  9500. .wordTeacher {
  9501. display: flex;
  9502. flex-direction: column;
  9503. width: 20%;
  9504. text-align: center;
  9505. font-size: 14px;
  9506. margin: 30px 30px 0 10px;
  9507. background: #fff;
  9508. position: relative;
  9509. border-radius: 5px;
  9510. padding: 25px 0px;
  9511. }
  9512. .wordPic {
  9513. margin: 0 auto;
  9514. width: 60px;
  9515. height: 60px;
  9516. cursor: pointer;
  9517. }
  9518. .deleteWord {
  9519. width: 22px;
  9520. height: 22px;
  9521. position: absolute;
  9522. right: 5px;
  9523. top: -15px;
  9524. cursor: pointer;
  9525. display: none;
  9526. z-index: 999;
  9527. }
  9528. .wordPic > img,
  9529. .deleteWord > img,
  9530. .addToolImg > img {
  9531. width: 100%;
  9532. height: 100%;
  9533. }
  9534. .info_btn:hover {
  9535. background-color: #4f7cd5 !important;
  9536. }
  9537. .cru_selectBox {
  9538. display: flex;
  9539. margin: 24px 0 10px;
  9540. flex-wrap: nowrap;
  9541. white-space: nowrap;
  9542. overflow: auto;
  9543. position: relative;
  9544. height: 47px;
  9545. }
  9546. .cru_selectBox::-webkit-scrollbar {
  9547. /*滚动条整体样式*/
  9548. width: 6px;
  9549. /*高宽分别对应横竖滚动条的尺寸*/
  9550. height: 6px;
  9551. }
  9552. /*定义滚动条轨道 内阴影+圆角*/
  9553. .cru_selectBox::-webkit-scrollbar-track {
  9554. border-radius: 10px;
  9555. background-color: #eee;
  9556. }
  9557. /*定义滑块 内阴影+圆角*/
  9558. .cru_selectBox::-webkit-scrollbar-thumb {
  9559. border-radius: 10px;
  9560. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  9561. background-color: rgba(0, 0, 0, 0.1);
  9562. }
  9563. .cru_line {
  9564. position: absolute;
  9565. bottom: 0px;
  9566. transition: all 0.5s;
  9567. left: 0px;
  9568. width: 125px;
  9569. margin-left: -25px;
  9570. }
  9571. .cru_select {
  9572. font-size: 21px;
  9573. margin-right: 37px;
  9574. margin-left: 5px;
  9575. cursor: pointer;
  9576. color: #a6a6a6;
  9577. }
  9578. .cru_selected {
  9579. color: #0b7fc2 !important;
  9580. }
  9581. .chapter_contentbox {
  9582. display: flex;
  9583. align-items: center;
  9584. margin-top: 15px;
  9585. }
  9586. .chapter_contentbox div:nth-child(1) {
  9587. /* width: 150px; */
  9588. margin: 0px;
  9589. /* font-size: 2em; */
  9590. color: black;
  9591. display: block;
  9592. white-space: nowrap;
  9593. overflow: hidden;
  9594. text-overflow: ellipsis;
  9595. /* font-weight: 600; */
  9596. margin-right: 20px;
  9597. font-size: 18px;
  9598. }
  9599. .chapter_contentbox div:nth-child(2) {
  9600. width: 380px;
  9601. }
  9602. .chapter_contentbox div:nth-child(3),
  9603. .remove {
  9604. background-image: url("../../assets/remove.png");
  9605. cursor: pointer;
  9606. opacity: 0.5;
  9607. width: 40px;
  9608. height: 50px;
  9609. background-repeat: no-repeat;
  9610. background-position: 5px 10px;
  9611. }
  9612. .remove1 {
  9613. background-image: url("../../assets/remove1.png");
  9614. background-repeat: no-repeat;
  9615. background-position: 5px 10px;
  9616. width: 40px;
  9617. height: 50px;
  9618. cursor: pointer;
  9619. }
  9620. .binfo_input {
  9621. font: inherit;
  9622. color: currentColor;
  9623. width: 100%;
  9624. margin: 0;
  9625. /* padding: 15px 14px; */
  9626. padding: 8px 14px;
  9627. display: block;
  9628. min-width: 0;
  9629. outline: none;
  9630. box-sizing: content-box;
  9631. background: none;
  9632. border: 1px solid rgba(0, 0, 0, 0.23);
  9633. border-radius: 4px;
  9634. box-sizing: border-box;
  9635. background: #fff;
  9636. font-size: 18px;
  9637. }
  9638. .binfo_input:focus-visible {
  9639. border: 1px solid rgba(61, 103, 188);
  9640. }
  9641. .time {
  9642. display: flex;
  9643. margin: 35px 0 80px 0;
  9644. }
  9645. .chapter_btnbox {
  9646. width: 160px;
  9647. border-radius: 5px;
  9648. border: 2px dashed gray;
  9649. display: flex;
  9650. padding: 8px 50px;
  9651. align-items: center;
  9652. justify-content: center;
  9653. margin: 30px auto 0;
  9654. cursor: pointer;
  9655. }
  9656. .icon_add {
  9657. position: relative;
  9658. width: 24px;
  9659. padding-top: 20px;
  9660. border-radius: 100%;
  9661. border-width: 2px;
  9662. border-style: solid;
  9663. border-color: gray;
  9664. }
  9665. .icon_add i:nth-child(1) {
  9666. position: absolute;
  9667. left: 50%;
  9668. top: 50%;
  9669. height: 60%;
  9670. transform: translate(-50%, -50%);
  9671. border-width: 1px;
  9672. border-style: solid;
  9673. border-color: inherit;
  9674. }
  9675. .icon_add i:nth-child(2) {
  9676. position: absolute;
  9677. top: 50%;
  9678. left: 50%;
  9679. width: 60%;
  9680. transform: translate(-50%, -50%);
  9681. border-width: 1px;
  9682. border-style: solid;
  9683. border-color: inherit;
  9684. }
  9685. .chapter_btn_w {
  9686. font-size: 0.9375rem;
  9687. font-weight: bold;
  9688. color: gray;
  9689. margin-left: 20px;
  9690. }
  9691. .disUoloadSty >>> .el-icon-plus {
  9692. display: none !important;
  9693. /* 上传按钮隐藏 */
  9694. }
  9695. .imgLeft {
  9696. margin: 15px 0;
  9697. }
  9698. .add_info_box {
  9699. margin: 20px 0;
  9700. }
  9701. .add_info_box button {
  9702. margin: 0 10px 10px 0;
  9703. }
  9704. .add_info_box2 {
  9705. display: flex;
  9706. align-items: center;
  9707. flex-wrap: wrap;
  9708. }
  9709. .add_info_box2::after {
  9710. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9711. color: red;
  9712. font-size: 14px;
  9713. margin-bottom: 10px;
  9714. }
  9715. .add_chapters_box {
  9716. text-align: left;
  9717. background-color: rgb(232 234 237);
  9718. width: 100%;
  9719. padding: 0px 15px;
  9720. border-radius: 15px;
  9721. font-size: 16px;
  9722. box-sizing: border-box;
  9723. position: relative;
  9724. padding: 0 10px 5px 10px;
  9725. height: 185px;
  9726. overflow-y: auto;
  9727. overflow-x: hidden;
  9728. }
  9729. .homework_box {
  9730. display: flex;
  9731. align-items: flex-start;
  9732. flex-wrap: wrap;
  9733. margin: 15px 0 0 0;
  9734. flex-direction: column;
  9735. align-content: flex-start;
  9736. }
  9737. .course_homework {
  9738. display: flex;
  9739. justify-content: center;
  9740. flex-direction: row;
  9741. align-items: center;
  9742. margin: 0 10px 0 0;
  9743. }
  9744. .course_homework >>> .el-input__inner {
  9745. width: 140px;
  9746. margin-left: 15px;
  9747. }
  9748. .chapter_upload_move {
  9749. position: relative;
  9750. background-color: #fff;
  9751. position: absolute;
  9752. width: 100%;
  9753. top: 0px;
  9754. left: 0px;
  9755. border: 1px solid #eee;
  9756. border-radius: 5px;
  9757. transition: width 2s;
  9758. -moz-transition: width 2s;
  9759. -webkit-transition: width 2s;
  9760. -o-transition: width 2s;
  9761. }
  9762. .chapter_upload_l_i {
  9763. background-image: url("../../assets/icon.png");
  9764. background-position: 3px -165px;
  9765. width: 30px;
  9766. height: 30px;
  9767. margin: 10px auto 0 auto;
  9768. }
  9769. .left_first {
  9770. display: flex;
  9771. flex-direction: column;
  9772. flex-wrap: nowrap;
  9773. }
  9774. .right_first {
  9775. width: 100%;
  9776. height: 100%;
  9777. margin-top: 15px;
  9778. }
  9779. .right_title {
  9780. height: 30px;
  9781. padding: 15px 0 15px 20px;
  9782. border-bottom: 1px solid #f2f2f2;
  9783. font-size: 1.5em;
  9784. font-weight: bold;
  9785. color: #0f7eff;
  9786. margin: 0 auto;
  9787. }
  9788. .people {
  9789. border: 1px solid rgb(229 229 229);
  9790. height: 495px;
  9791. border-radius: 5px;
  9792. width: 100%;
  9793. overflow: auto;
  9794. }
  9795. .people_top {
  9796. display: flex;
  9797. width: 100%;
  9798. /* justify-content: space-between; */
  9799. /* align-items: center; */
  9800. flex-direction: column;
  9801. padding: 10px 25px 0;
  9802. box-sizing: border-box;
  9803. }
  9804. .people_nav,
  9805. .people_top_right {
  9806. /* padding: 20px 0 0 20px; */
  9807. }
  9808. .people_top_right {
  9809. height: 40px;
  9810. margin-bottom: 10px;
  9811. }
  9812. .people_search {
  9813. display: flex;
  9814. position: relative;
  9815. }
  9816. .people_search >>> .el-input__inner {
  9817. /* height: 25px; */
  9818. width: 95%;
  9819. }
  9820. .search_img {
  9821. width: 20px;
  9822. height: 20px;
  9823. position: absolute;
  9824. right: 30px;
  9825. top: 50%;
  9826. transform: translateY(-50%);
  9827. }
  9828. .search_img > img {
  9829. width: 100%;
  9830. height: 100%;
  9831. }
  9832. .people_name {
  9833. display: flex;
  9834. justify-content: flex-start;
  9835. padding: 20px 0 0 25px;
  9836. flex-direction: column;
  9837. flex-wrap: wrap;
  9838. }
  9839. .p_box {
  9840. position: relative;
  9841. }
  9842. .people_name >>> .el-checkbox {
  9843. width: 100%;
  9844. display: flex;
  9845. align-items: center;
  9846. margin-bottom: 10px;
  9847. }
  9848. .people_name >>> .el-checkbox__label {
  9849. text-overflow: ellipsis;
  9850. overflow: hidden;
  9851. width: calc(100%);
  9852. }
  9853. .people_name2 >>> .el-checkbox__label {
  9854. width: calc(100% - 130px);
  9855. }
  9856. .inviteCode {
  9857. position: absolute;
  9858. right: 30px;
  9859. color: #237ade;
  9860. top: 0;
  9861. cursor: pointer;
  9862. font-size: 13px;
  9863. }
  9864. .noneInvite {
  9865. color: #a8a8a8;
  9866. }
  9867. .inviteImg {
  9868. position: absolute;
  9869. right: 5px;
  9870. top: 0;
  9871. width: 20px;
  9872. }
  9873. .right_img {
  9874. width: 150px;
  9875. height: 150px;
  9876. margin: 0 auto;
  9877. }
  9878. .right_img > img {
  9879. width: 100%;
  9880. height: 100%;
  9881. }
  9882. .number {
  9883. margin-top: 20px;
  9884. color: #4aa6ff;
  9885. text-decoration: underline;
  9886. }
  9887. .success_button {
  9888. display: flex;
  9889. text-align: center;
  9890. margin: 5% 0 auto;
  9891. flex-direction: row;
  9892. justify-content: center;
  9893. }
  9894. .look_course {
  9895. margin-right: 40px;
  9896. background: #3d67bc;
  9897. width: 200px;
  9898. height: 35px;
  9899. line-height: 35px;
  9900. color: #fff;
  9901. text-align: center;
  9902. font-size: 14px;
  9903. border-radius: 5px;
  9904. cursor: pointer;
  9905. }
  9906. .attend_others {
  9907. width: 250px;
  9908. background: #4fb13c;
  9909. height: 35px;
  9910. line-height: 35px;
  9911. color: #fff;
  9912. text-align: center;
  9913. font-size: 14px;
  9914. border-radius: 5px;
  9915. cursor: pointer;
  9916. }
  9917. .dialog_diy2 >>> .el-dialog__body {
  9918. text-align: center;
  9919. }
  9920. .write_togother {
  9921. position: absolute;
  9922. right: 45px;
  9923. display: flex;
  9924. top: 5%;
  9925. }
  9926. .write_people {
  9927. font-size: 14px;
  9928. line-height: 50px;
  9929. padding-right: 10px;
  9930. }
  9931. .end_write {
  9932. background: #3d67bc;
  9933. color: #fff;
  9934. width: 100px;
  9935. height: 35px;
  9936. line-height: 35px;
  9937. text-align: center;
  9938. font-size: 14px;
  9939. border-radius: 5px;
  9940. cursor: pointer;
  9941. }
  9942. .chapter_upload {
  9943. height: 50px;
  9944. margin-top: 12px;
  9945. position: relative;
  9946. display: flex;
  9947. align-items: center;
  9948. width: 100%;
  9949. min-height: 50px;
  9950. }
  9951. .chapter_upload_t {
  9952. background-color: #fff;
  9953. position: absolute;
  9954. height: 100%;
  9955. top: 0px;
  9956. left: 0px;
  9957. border-radius: 40px;
  9958. box-sizing: border-box;
  9959. box-shadow: 0 0 3px 3px #dfdfdf;
  9960. }
  9961. .chapter_upload_o {
  9962. width: 100%;
  9963. height: 100%;
  9964. position: relative;
  9965. z-index: 1;
  9966. }
  9967. .chapter_upload_ic {
  9968. height: 30px;
  9969. float: right;
  9970. }
  9971. .chapter_upload_ic_l {
  9972. width: 50px;
  9973. height: 50px;
  9974. float: left;
  9975. }
  9976. .chapter_upload_ic_l div {
  9977. width: 30px;
  9978. height: 35px;
  9979. background: url("../../assets/icon/icon.png");
  9980. }
  9981. .chapter_upload_ic_r {
  9982. width: 50px;
  9983. height: 50px;
  9984. float: left;
  9985. margin-left: 0px;
  9986. display: flex;
  9987. align-items: center;
  9988. }
  9989. .chapter_upload_ic_r div {
  9990. width: 25px;
  9991. height: 25px;
  9992. background-image: url("../../assets/delete.png");
  9993. background-size: 100% 100%;
  9994. }
  9995. .chapter_upload_n {
  9996. display: flex;
  9997. text-indent: 10px;
  9998. text-decoration: none;
  9999. text-overflow: ellipsis;
  10000. white-space: nowrap;
  10001. overflow: hidden;
  10002. width: 55%;
  10003. margin-left: 10px;
  10004. cursor: pointer;
  10005. margin-top: 2px;
  10006. align-items: center;
  10007. }
  10008. .chapter_upload_l_i1 {
  10009. background-image: url("../../assets/icon/video.png");
  10010. width: 28px;
  10011. height: 28px;
  10012. background-size: 100% 100%;
  10013. }
  10014. .chapter_upload_l_i5 {
  10015. background-image: url("../../assets/icon/word.png");
  10016. width: 24px;
  10017. height: 24px;
  10018. background-size: 100% 100%;
  10019. }
  10020. .chapter_upload_l_i8 {
  10021. background-image: url("../../assets/icon/line.png");
  10022. width: 24px;
  10023. height: 24px;
  10024. background-size: 100% 100%;
  10025. }
  10026. .chapter_upload_ud {
  10027. display: flex;
  10028. flex-direction: column;
  10029. margin-left: 5px;
  10030. justify-content: center;
  10031. }
  10032. .chapter_upload_up {
  10033. background-image: url("../../assets/icon/up.png");
  10034. width: 17px;
  10035. height: 15px;
  10036. background-size: 100% 100%;
  10037. cursor: pointer;
  10038. }
  10039. .chapter_upload_down {
  10040. background-image: url("../../assets/icon/down.png");
  10041. width: 17px;
  10042. height: 15px;
  10043. margin: 2px auto 0 auto;
  10044. background-size: 100% 100%;
  10045. cursor: pointer;
  10046. }
  10047. .addWordStyle {
  10048. display: flex;
  10049. flex-direction: row;
  10050. justify-content: flex-start;
  10051. overflow-x: auto;
  10052. white-space: nowrap;
  10053. flex-wrap: wrap;
  10054. }
  10055. /* table 样式 */
  10056. .cont >>> table {
  10057. border-top: 1px solid #ccc;
  10058. border-left: 1px solid #ccc;
  10059. }
  10060. .cont >>> table td,
  10061. .cont >>> table th {
  10062. border-bottom: 1px solid #ccc;
  10063. border-right: 1px solid #ccc;
  10064. /* padding: 20px 5px; */
  10065. padding: 5px 10px;
  10066. max-width: 0px;
  10067. height: 30px;
  10068. vertical-align: baseline;
  10069. }
  10070. .cont >>> table th {
  10071. border-bottom: 2px solid #ccc;
  10072. text-align: center;
  10073. }
  10074. /* blockquote 样式 */
  10075. .cont >>> blockquote {
  10076. display: block;
  10077. border-left: 8px solid #d0e5f2;
  10078. padding: 5px 10px;
  10079. margin: 10px 0;
  10080. line-height: 1.4;
  10081. font-size: 100%;
  10082. background-color: #f1f1f1;
  10083. }
  10084. /* code 样式 */
  10085. .cont >>> code {
  10086. display: inline-block;
  10087. *display: inline;
  10088. *zoom: 1;
  10089. background-color: #f1f1f1;
  10090. border-radius: 3px;
  10091. padding: 3px 5px;
  10092. margin: 0 3px;
  10093. }
  10094. .cont >>> pre code {
  10095. display: block;
  10096. }
  10097. /* ul ol 样式 */
  10098. .cont >>> ul,
  10099. ol {
  10100. margin: 10px 0 10px 20px;
  10101. }
  10102. .wordbox {
  10103. display: flex;
  10104. flex-wrap: wrap;
  10105. cursor: pointer;
  10106. width: 100%;
  10107. }
  10108. .checkword {
  10109. width: 22px;
  10110. height: 22px;
  10111. margin: 10px auto 0;
  10112. cursor: pointer;
  10113. }
  10114. .checkword img {
  10115. width: 100%;
  10116. }
  10117. .stepBg {
  10118. display: flex;
  10119. flex-direction: column;
  10120. justify-content: space-between;
  10121. align-items: center;
  10122. background: #fff;
  10123. width: 300px;
  10124. margin: 0 25px 0 0;
  10125. }
  10126. .stepTop {
  10127. min-width: 300px;
  10128. width: 300px;
  10129. /* border-radius: 10px; */
  10130. display: flex;
  10131. flex-direction: column;
  10132. justify-content: flex-start;
  10133. align-items: center;
  10134. flex-wrap: nowrap;
  10135. background: #fff;
  10136. /* top: 18%; */
  10137. }
  10138. .stepTop > div {
  10139. height: 80px;
  10140. width: 85%;
  10141. cursor: pointer;
  10142. margin: 10px 0;
  10143. border-radius: 10px;
  10144. }
  10145. .first,
  10146. .second,
  10147. .third,
  10148. .four {
  10149. background: #4a83d0;
  10150. height: 90px;
  10151. color: #fff;
  10152. display: flex;
  10153. flex-direction: row;
  10154. align-items: center;
  10155. justify-content: center;
  10156. }
  10157. .first > div:nth-child(1),
  10158. .second > div:nth-child(1),
  10159. .third > div:nth-child(1),
  10160. .four > div:nth-child(1) {
  10161. margin: 5px 10px 0 0;
  10162. width: 2rem;
  10163. }
  10164. .firstNo,
  10165. .secondNo,
  10166. .thirdNo,
  10167. .fourNo {
  10168. background: #e7e7e7;
  10169. color: #adadad;
  10170. display: flex;
  10171. flex-direction: row;
  10172. align-items: center;
  10173. justify-content: center;
  10174. }
  10175. .firstNo > div:nth-child(1),
  10176. .secondNo > div:nth-child(1),
  10177. .thirdNo > div:nth-child(1),
  10178. .fourNo > div:nth-child(1) {
  10179. margin: 5px 10px 0 0;
  10180. width: 2rem;
  10181. }
  10182. .uploadWidth >>> .el-upload {
  10183. width: 60px;
  10184. height: 60px;
  10185. position: relative;
  10186. }
  10187. .addPeople {
  10188. background: #fa6060;
  10189. width: 150px;
  10190. height: 40px;
  10191. color: #fff;
  10192. border-radius: 5px;
  10193. text-align: center;
  10194. line-height: 40px;
  10195. font-size: 14px;
  10196. cursor: pointer;
  10197. margin-top: 20px;
  10198. }
  10199. .kcImg {
  10200. width: 60px;
  10201. margin-left: 10px;
  10202. }
  10203. .zyImg {
  10204. width: 55px;
  10205. margin: 0 10px;
  10206. }
  10207. .deleteZy {
  10208. width: 20px;
  10209. position: absolute;
  10210. top: 5px;
  10211. right: 5px;
  10212. cursor: pointer;
  10213. }
  10214. .kcImg > img,
  10215. .zyImg > img,
  10216. .deleteZy > img {
  10217. width: 100%;
  10218. height: 100%;
  10219. }
  10220. .zyBox {
  10221. display: flex;
  10222. flex-direction: row;
  10223. align-items: center;
  10224. background: #67d37d;
  10225. color: #fff;
  10226. width: 210px;
  10227. margin: 20px 20px 0 0;
  10228. border-radius: 10px;
  10229. height: 70px;
  10230. position: relative;
  10231. }
  10232. .upCss {
  10233. display: flex;
  10234. flex-direction: row;
  10235. justify-content: flex-start;
  10236. }
  10237. .upCss >>> .el-icon-plus {
  10238. position: none !important;
  10239. width: 200px;
  10240. height: 100px;
  10241. display: flex;
  10242. flex-wrap: nowrap;
  10243. flex-direction: column;
  10244. align-items: center;
  10245. justify-content: center;
  10246. border: 1px dashed #ccc;
  10247. min-width: 78px;
  10248. min-height: 100px;
  10249. z-index: 999;
  10250. }
  10251. .upCss >>> .el-upload-list__item-name {
  10252. width: 100px;
  10253. white-space: nowrap;
  10254. overflow: hidden;
  10255. text-overflow: ellipsis;
  10256. }
  10257. .addStageImg {
  10258. min-width: 25px;
  10259. min-height: 25px;
  10260. width: 25px;
  10261. height: 25px;
  10262. cursor: pointer;
  10263. }
  10264. .addHW {
  10265. width: 28px;
  10266. height: 28px;
  10267. cursor: pointer;
  10268. }
  10269. .addStageImg > img,
  10270. .addHW > img {
  10271. width: 100%;
  10272. height: 100%;
  10273. }
  10274. .addNewPP >>> .el-dialog__body {
  10275. padding: 5px 20px;
  10276. }
  10277. .isHeight {
  10278. height: 680px;
  10279. }
  10280. .toolChoose {
  10281. display: flex;
  10282. /* width: 100%; */
  10283. flex-direction: row;
  10284. flex-wrap: wrap;
  10285. }
  10286. .tool {
  10287. display: flex;
  10288. flex-direction: column;
  10289. flex-wrap: nowrap;
  10290. width: fit-content;
  10291. margin: 10px 0 10px 0;
  10292. align-items: center;
  10293. }
  10294. .tool + .tool {
  10295. margin-right: 45px;
  10296. }
  10297. .whiteBIcon {
  10298. width: 80px;
  10299. cursor: pointer;
  10300. display: flex;
  10301. flex-direction: column;
  10302. flex-wrap: nowrap;
  10303. align-items: center;
  10304. }
  10305. .whiteBIcon > img,
  10306. .toolIcon > img,
  10307. .arrow > img {
  10308. width: 100%;
  10309. height: 100%;
  10310. }
  10311. .check img {
  10312. width: 20px;
  10313. height: 20px;
  10314. }
  10315. .whiteBIcon > img {
  10316. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10317. border-radius: 15px;
  10318. }
  10319. .check {
  10320. /* width: 20px;
  10321. height: 20px; */
  10322. cursor: pointer;
  10323. margin: 10px 0;
  10324. }
  10325. .checkDiv {
  10326. display: flex;
  10327. align-items: center;
  10328. }
  10329. .checkDiv span {
  10330. margin-left: 5px;
  10331. color: #858585;
  10332. }
  10333. .customWidth >>> .el-dialog {
  10334. min-width: 500px !important;
  10335. }
  10336. .a_addBox {
  10337. margin: 10px 0;
  10338. background: #fff;
  10339. padding: 15px;
  10340. max-height: 600px;
  10341. overflow: auto;
  10342. }
  10343. .a_add_box {
  10344. border-bottom: 2px solid #eee;
  10345. padding-bottom: 25px;
  10346. }
  10347. .a_add_head {
  10348. display: flex;
  10349. align-items: center;
  10350. justify-content: space-between;
  10351. margin: 10px 0 0 0;
  10352. font-size: 18px;
  10353. }
  10354. .a_add_checkType {
  10355. margin-top: 10px;
  10356. display: flex;
  10357. font-size: 16px;
  10358. align-items: center;
  10359. }
  10360. .a_add_checkType span {
  10361. box-sizing: border-box;
  10362. padding: 0 0 5px 0;
  10363. cursor: pointer;
  10364. }
  10365. .a_add_checkType span + span {
  10366. margin-left: 10px;
  10367. }
  10368. .a_add_checkType .active {
  10369. border-bottom: 2px solid #409eff;
  10370. color: #409eff;
  10371. }
  10372. .a_add_head .a_add_head_input {
  10373. width: 300px;
  10374. }
  10375. .a_add_head .a_add_head_div {
  10376. display: flex;
  10377. align-items: center;
  10378. justify-content: space-between;
  10379. }
  10380. .a_add_body {
  10381. display: flex;
  10382. /* align-items: center; */
  10383. align-items: flex-end;
  10384. }
  10385. .a_add_input {
  10386. display: flex;
  10387. align-items: center;
  10388. flex-wrap: wrap;
  10389. }
  10390. .a_add_input_choice {
  10391. flex-direction: column;
  10392. margin-right: 10px;
  10393. }
  10394. .a_add_input_choice >>> .el-radio {
  10395. display: flex;
  10396. align-items: center;
  10397. flex-direction: row-reverse;
  10398. margin: 30px 0 0 0;
  10399. }
  10400. .a_add_input_choice >>> .el-checkbox {
  10401. display: flex;
  10402. align-items: center;
  10403. flex-direction: row-reverse;
  10404. margin: 30px 0 0 0;
  10405. }
  10406. .width100 {
  10407. width: 100%;
  10408. }
  10409. .a_add_input .a_add_persent {
  10410. width: 100%;
  10411. }
  10412. .a_add_persent_div {
  10413. width: 100%;
  10414. display: flex;
  10415. align-items: center;
  10416. }
  10417. .a_add_persent_div span {
  10418. margin: 5px 0;
  10419. }
  10420. .a_add_persent_div span:nth-child(1) {
  10421. width: 30%;
  10422. }
  10423. .a_add_persent_div span:nth-child(2) {
  10424. width: 7%;
  10425. }
  10426. .a_add_persent_div span:nth-child(3) {
  10427. width: 40%;
  10428. }
  10429. .a_add_body_div {
  10430. display: flex;
  10431. align-items: center;
  10432. justify-content: center;
  10433. /* flex-direction: column; */
  10434. }
  10435. .all_choose {
  10436. display: flex;
  10437. flex-direction: row;
  10438. align-items: flex-start;
  10439. width: 100%;
  10440. }
  10441. .all_choose > span {
  10442. min-width: 100px;
  10443. display: block;
  10444. letter-spacing: 14px;
  10445. white-space: nowrap;
  10446. overflow: hidden;
  10447. text-overflow: ellipsis;
  10448. }
  10449. .all_choose >>> .el-checkbox-group {
  10450. display: flex;
  10451. flex-direction: row;
  10452. width: 100%;
  10453. flex-wrap: wrap;
  10454. align-content: center;
  10455. justify-content: flex-start;
  10456. align-items: center;
  10457. margin-top: 3px;
  10458. }
  10459. .all_choose > .el-checkbox-group >>> .el-checkbox {
  10460. margin-bottom: 10px;
  10461. display: flex;
  10462. flex-direction: row;
  10463. align-items: center;
  10464. }
  10465. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label {
  10466. min-width: 80px;
  10467. overflow: hidden;
  10468. width: 80px;
  10469. text-overflow: ellipsis;
  10470. white-space: nowrap;
  10471. }
  10472. .all_choose > .el-checkbox-group > .el-checkbox >>> .el-checkbox__label:hover {
  10473. width: auto;
  10474. }
  10475. .choose > div:nth-child(3) > span {
  10476. /* letter-spacing: 0 !important; */
  10477. }
  10478. .choose {
  10479. display: flex;
  10480. flex-direction: column;
  10481. flex-wrap: nowrap;
  10482. height: 100%;
  10483. justify-content: space-evenly;
  10484. align-items: flex-start;
  10485. }
  10486. .both {
  10487. display: flex;
  10488. flex-direction: row;
  10489. flex-wrap: wrap;
  10490. width: 100%;
  10491. align-items: center;
  10492. justify-content: flex-start;
  10493. margin: 15px 0;
  10494. }
  10495. .notice >>> .el-dialog {
  10496. width: 500px !important;
  10497. text-align: center;
  10498. }
  10499. .notice >>> .el-button {
  10500. margin-top: 20px;
  10501. }
  10502. .whiteBg {
  10503. background: #fff;
  10504. border-radius: 10px;
  10505. }
  10506. .chooseWho {
  10507. display: flex;
  10508. width: 380px;
  10509. flex-direction: row;
  10510. flex-wrap: nowrap;
  10511. justify-content: space-between;
  10512. padding-bottom: 10px;
  10513. }
  10514. .chooseWho > div {
  10515. cursor: pointer;
  10516. padding-bottom: 10px;
  10517. font-weight: bold;
  10518. }
  10519. .isChooseActive {
  10520. color: #3e88f4;
  10521. border-bottom: 2px solid #2f80f3;
  10522. }
  10523. .toolSort {
  10524. display: flex;
  10525. flex-direction: row;
  10526. flex-wrap: wrap;
  10527. justify-content: flex-start;
  10528. align-items: flex-start;
  10529. }
  10530. .toolSort > div {
  10531. margin-right: 45px;
  10532. }
  10533. .tools {
  10534. width: 100%;
  10535. display: flex;
  10536. flex-direction: column;
  10537. flex-wrap: nowrap;
  10538. align-items: flex-start;
  10539. }
  10540. .leftTools,
  10541. .rightTools {
  10542. width: 50%;
  10543. }
  10544. .rightTools {
  10545. display: flex;
  10546. flex-direction: row;
  10547. flex-wrap: nowrap;
  10548. justify-content: space-around;
  10549. }
  10550. .firstToolList {
  10551. display: flex;
  10552. flex-direction: column;
  10553. flex-wrap: nowrap;
  10554. align-items: center;
  10555. }
  10556. .iconList {
  10557. display: flex;
  10558. flex-direction: row;
  10559. flex-wrap: wrap;
  10560. justify-content: flex-start;
  10561. align-items: center;
  10562. margin: 20px 0 5px 0;
  10563. width: 240px;
  10564. min-width: 240px;
  10565. }
  10566. .iconTool {
  10567. display: flex;
  10568. flex-direction: column;
  10569. flex-wrap: nowrap;
  10570. align-items: center;
  10571. justify-content: flex-start;
  10572. margin: 15px 10px;
  10573. }
  10574. .toolIcon {
  10575. width: 50px;
  10576. }
  10577. .taskBorder {
  10578. border: 1px solid #e1e1e1;
  10579. border-radius: 10px;
  10580. margin-top: 20px;
  10581. min-height: 1160px;
  10582. position: relative;
  10583. background: #fbfbfb;
  10584. }
  10585. .smallTaskBorder {
  10586. height: 170px;
  10587. min-height: 170px !important;
  10588. overflow: hidden;
  10589. }
  10590. .taskBorder > div {
  10591. padding: 30px 0 10px 30px;
  10592. }
  10593. .addTaskBorder {
  10594. border: 2px solid #e1e1e1;
  10595. border-radius: 10px;
  10596. margin-top: 25px;
  10597. cursor: pointer;
  10598. }
  10599. .addTaskBorder > div {
  10600. margin: 0 auto;
  10601. display: flex;
  10602. align-items: center;
  10603. justify-content: center;
  10604. }
  10605. .addTaskBorder > div > img {
  10606. width: 100px;
  10607. }
  10608. .addTaskBorder > div > span {
  10609. font-size: 23px;
  10610. color: #dbdbdb;
  10611. }
  10612. .funBlock {
  10613. display: flex;
  10614. padding: 15px 0;
  10615. flex-direction: row;
  10616. justify-content: flex-end;
  10617. align-items: center;
  10618. position: absolute;
  10619. right: 15px;
  10620. bottom: 35px;
  10621. }
  10622. .fold {
  10623. display: flex;
  10624. margin: 0 10px;
  10625. flex-direction: row;
  10626. align-items: center;
  10627. cursor: pointer;
  10628. }
  10629. .arrow {
  10630. width: 15px;
  10631. height: 15px;
  10632. margin-left: 10px;
  10633. }
  10634. .addToolFun {
  10635. display: flex;
  10636. width: 150px;
  10637. flex-direction: row;
  10638. align-items: center;
  10639. justify-content: center;
  10640. border: 1px dashed;
  10641. border-radius: 5px;
  10642. height: 50px;
  10643. margin: 35px auto 0;
  10644. cursor: pointer;
  10645. }
  10646. .addToolImg {
  10647. width: 30px;
  10648. height: 30px;
  10649. margin-right: 20px;
  10650. }
  10651. .addToolsDia >>> .el-dialog__body {
  10652. padding: 20px;
  10653. }
  10654. .addToolsDia >>> .el-dialog__body > .toolChoose {
  10655. padding: 0;
  10656. }
  10657. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools {
  10658. padding: 0;
  10659. border-bottom: none;
  10660. margin-bottom: 0;
  10661. }
  10662. .addToolsDia >>> .el-dialog__body > .toolChoose > .leftTools > .chooseWho {
  10663. width: 100%;
  10664. }
  10665. .lineCss >>> .el-form-item__label {
  10666. width: auto !important;
  10667. }
  10668. .lineCss >>> .el-form-item__content {
  10669. margin-left: 50px !important;
  10670. }
  10671. .newSteps {
  10672. display: flex;
  10673. width: 100% !important;
  10674. height: 80px;
  10675. cursor: pointer;
  10676. margin: 10px 0;
  10677. border-radius: 10px;
  10678. flex-direction: row;
  10679. align-content: center;
  10680. justify-content: center;
  10681. align-items: center;
  10682. margin: 0 !important;
  10683. }
  10684. /* 评价样式 */
  10685. .elist_css {
  10686. padding-bottom: 60px !important;
  10687. }
  10688. .elist_title {
  10689. margin-bottom: 10px;
  10690. }
  10691. .elist_input {
  10692. }
  10693. .elist_input_box {
  10694. display: flex;
  10695. align-items: center;
  10696. flex-wrap: wrap;
  10697. }
  10698. .elist_input_box + .elist_input_box {
  10699. margin-top: 30px;
  10700. }
  10701. .elist_input .elist_input_box input {
  10702. font: inherit;
  10703. color: currentColor;
  10704. /* width: 200px; */
  10705. max-width: 200px;
  10706. padding: 8px 14px;
  10707. display: block;
  10708. min-width: 0;
  10709. outline: none;
  10710. border: 1px solid rgba(0, 0, 0, 0.23);
  10711. border-radius: 4px;
  10712. box-sizing: border-box;
  10713. background: #fff;
  10714. margin: 0 20px 0 0;
  10715. }
  10716. .elist_input .elist_input_box span {
  10717. height: 36px;
  10718. line-height: 36px;
  10719. color: rgb(82, 82, 82);
  10720. min-width: 80px;
  10721. }
  10722. .elist_input .elist_input_box .remove {
  10723. height: 20px;
  10724. width: 20px;
  10725. background-size: 100% 100%;
  10726. background-position: unset;
  10727. margin-left: 5px;
  10728. }
  10729. .elist_input_box >>> .el-rate {
  10730. display: flex;
  10731. height: 36px;
  10732. align-items: center;
  10733. }
  10734. .elist_input_box .elist_inptu_text {
  10735. width: 100%;
  10736. display: flex;
  10737. align-items: center;
  10738. margin-top: 10px;
  10739. }
  10740. .elist_input_box .elist_inptu_text input {
  10741. /* width: 500px; */
  10742. width: 100%;
  10743. max-width: unset;
  10744. }
  10745. .elist_input_box >>> .el-rate__icon {
  10746. font-size: 24px;
  10747. }
  10748. .elist_btn {
  10749. margin-top: 10px;
  10750. }
  10751. .lineTitle {
  10752. margin-top: 15px;
  10753. width: 110px;
  10754. }
  10755. .courseTop {
  10756. display: flex;
  10757. flex-direction: row;
  10758. justify-content: flex-start;
  10759. align-items: center;
  10760. /* width: 100%; */
  10761. width: calc(100% - 20px);
  10762. /* background: rgb(255, 255, 255); */
  10763. /* border-radius: 10px; */
  10764. padding: 20px 0;
  10765. }
  10766. .stepsNav {
  10767. display: flex;
  10768. flex-direction: row;
  10769. justify-content: flex-start;
  10770. align-items: center;
  10771. }
  10772. .stepsWord {
  10773. font-size: 18px;
  10774. color: #fff;
  10775. font-weight: bold;
  10776. margin-left: auto;
  10777. background: rgb(15, 126, 255);
  10778. border-radius: 5px;
  10779. padding: 3px 25px;
  10780. box-sizing: border-box;
  10781. }
  10782. .rightBox {
  10783. width: calc(100% - 20px);
  10784. background: rgb(255, 255, 255);
  10785. border-radius: 10px;
  10786. overflow: auto;
  10787. height: calc(100% - 130px);
  10788. position: relative;
  10789. }
  10790. .e_add_top {
  10791. display: flex;
  10792. justify-content: space-between;
  10793. padding: 20px 20px 0 20px;
  10794. border-radius: 3px;
  10795. background: #fff;
  10796. }
  10797. .e_add_title2 {
  10798. display: flex;
  10799. align-items: center;
  10800. }
  10801. .e_add_title2 span {
  10802. width: 40px;
  10803. }
  10804. .e_add_title {
  10805. display: flex;
  10806. align-items: center;
  10807. color: #b8b8b8;
  10808. font-size: 18px;
  10809. position: relative;
  10810. height: 40px;
  10811. }
  10812. .e_add_title span {
  10813. margin-right: 10px;
  10814. }
  10815. .e_add_title .el_input {
  10816. width: 300px;
  10817. }
  10818. .e_add_title >>> .el-input__inner {
  10819. width: 400px;
  10820. }
  10821. .e_add_btn {
  10822. }
  10823. .e_add_content {
  10824. display: flex;
  10825. width: 100%;
  10826. }
  10827. .e_add_list {
  10828. background: #fff;
  10829. height: 500px;
  10830. width: 210px;
  10831. position: relative;
  10832. margin: 15px 5px 0 0;
  10833. flex-shrink: 0;
  10834. display: flex;
  10835. flex-direction: column;
  10836. }
  10837. .e_add_list_title {
  10838. font-size: 20px;
  10839. width: 100%;
  10840. box-sizing: border-box;
  10841. padding: 15px 40px;
  10842. text-align: center;
  10843. border-bottom: 1px solid #eaeaea;
  10844. position: relative;
  10845. display: flex;
  10846. align-items: center;
  10847. justify-content: center;
  10848. height: 57px;
  10849. background: #f6f6f6;
  10850. }
  10851. .e_add_list_title span {
  10852. overflow: hidden;
  10853. white-space: nowrap;
  10854. text-overflow: ellipsis;
  10855. }
  10856. .e_add_list_title img {
  10857. position: absolute;
  10858. right: 15px;
  10859. width: 25px;
  10860. cursor: pointer;
  10861. top: 50%;
  10862. transform: translateY(-50%);
  10863. }
  10864. .e_add_list_body {
  10865. height: calc(100% - 187px);
  10866. overflow: auto;
  10867. }
  10868. .e_add_list_child {
  10869. width: 100%;
  10870. display: flex;
  10871. align-items: center;
  10872. justify-content: center;
  10873. position: relative;
  10874. box-sizing: border-box;
  10875. padding: 15px 40px;
  10876. text-align: center;
  10877. }
  10878. .e_add_list_child span {
  10879. overflow: hidden;
  10880. white-space: nowrap;
  10881. text-overflow: ellipsis;
  10882. cursor: pointer;
  10883. }
  10884. .e_add_list_child img {
  10885. position: absolute;
  10886. right: 10px;
  10887. width: 21px;
  10888. cursor: pointer;
  10889. top: 50%;
  10890. transform: translateY(-50%);
  10891. }
  10892. .e_add_list_child + .e_add_list_child {
  10893. border-top: 1px solid #eaeaea;
  10894. }
  10895. .e_add_list_child .active {
  10896. color: #409eff;
  10897. }
  10898. .e_add_list_btn {
  10899. position: absolute;
  10900. bottom: 0;
  10901. height: 50px;
  10902. background: rgb(120, 120, 254);
  10903. width: 100%;
  10904. color: #fff;
  10905. font-size: 16px;
  10906. text-align: center;
  10907. line-height: 50px;
  10908. cursor: pointer;
  10909. }
  10910. .e_add_list_detail {
  10911. position: absolute;
  10912. bottom: 0;
  10913. height: 130px;
  10914. background: rgb(120, 120, 254);
  10915. width: 100%;
  10916. color: #fff;
  10917. font-size: 16px;
  10918. display: flex;
  10919. align-items: center;
  10920. justify-content: center;
  10921. }
  10922. .e_add_list_detail textarea {
  10923. height: 90%;
  10924. width: 95%;
  10925. border: none;
  10926. resize: none;
  10927. outline: none;
  10928. padding: 5px;
  10929. box-sizing: border-box;
  10930. }
  10931. .e_add_list_pbox {
  10932. width: 100%;
  10933. }
  10934. .e_add_list_pbox_title {
  10935. height: 50px;
  10936. background: #fff;
  10937. display: flex;
  10938. align-items: center;
  10939. width: 100%;
  10940. box-sizing: border-box;
  10941. padding: 0 20px;
  10942. flex-direction: row;
  10943. flex-wrap: wrap;
  10944. }
  10945. .type_title {
  10946. font-size: 18px;
  10947. font-weight: 700;
  10948. }
  10949. .type_content {
  10950. font-size: 16px;
  10951. margin-left: 30px;
  10952. }
  10953. .type_content span + span {
  10954. margin-left: 20px;
  10955. }
  10956. .type_content span {
  10957. cursor: pointer;
  10958. padding-bottom: 5px;
  10959. box-sizing: border-box;
  10960. }
  10961. .type_content .active {
  10962. color: #409eff;
  10963. border-bottom: 2px solid #409eff;
  10964. }
  10965. .e_add_list_pbox_content {
  10966. height: calc(100% - 50px);
  10967. display: flex;
  10968. align-items: center;
  10969. width: 100%;
  10970. background: #fff;
  10971. }
  10972. .mbCss {
  10973. width: 100%;
  10974. display: flex;
  10975. flex-direction: row;
  10976. flex-wrap: nowrap;
  10977. align-content: center;
  10978. align-items: flex-start;
  10979. justify-content: flex-start;
  10980. }
  10981. .pjCss {
  10982. /* width: 42%; */
  10983. width: calc(100% - 55%);
  10984. display: flex;
  10985. flex-direction: column;
  10986. flex-wrap: nowrap;
  10987. align-items: flex-start;
  10988. margin-top: 1.5%;
  10989. }
  10990. .e_box {
  10991. display: flex;
  10992. flex-wrap: wrap;
  10993. max-height: 500px;
  10994. align-items: flex-start;
  10995. overflow: auto;
  10996. }
  10997. .e_card {
  10998. border: 1px solid #ccc;
  10999. background: #fff;
  11000. margin-right: 20px;
  11001. width: 270px;
  11002. display: flex;
  11003. flex-direction: column;
  11004. align-items: center;
  11005. border-radius: 5px;
  11006. margin-top: 10px;
  11007. text-align: center;
  11008. }
  11009. .e_card_picture {
  11010. margin: 10px 0;
  11011. }
  11012. .e_card_picture > img {
  11013. width: 50px;
  11014. }
  11015. .e_card_name {
  11016. width: 100%;
  11017. padding: 0 10px;
  11018. box-sizing: border-box;
  11019. margin-bottom: 10px;
  11020. overflow: hidden;
  11021. text-overflow: ellipsis;
  11022. white-space: nowrap;
  11023. }
  11024. .e_card_time {
  11025. width: 100%;
  11026. padding: 0 10px;
  11027. box-sizing: border-box;
  11028. font-size: 15px;
  11029. color: #c3c3c3;
  11030. margin-bottom: 10px;
  11031. }
  11032. .e_card_btn {
  11033. height: 40px;
  11034. display: flex;
  11035. align-items: center;
  11036. width: 100%;
  11037. background: rgb(244, 244, 244);
  11038. }
  11039. .e_card_btn:hover {
  11040. background: rgb(221 221 221);
  11041. }
  11042. .e_card_btn span {
  11043. flex: 1 1 auto;
  11044. text-align: center;
  11045. cursor: pointer;
  11046. }
  11047. .addEva {
  11048. border: 1px solid #ccc;
  11049. background: #fff;
  11050. margin-right: 20px;
  11051. width: 270px;
  11052. height: 149px;
  11053. display: flex;
  11054. flex-direction: column;
  11055. align-items: center;
  11056. border-radius: 5px;
  11057. margin-top: 10px;
  11058. text-align: center;
  11059. cursor: pointer;
  11060. justify-content: center;
  11061. }
  11062. .addEva > img {
  11063. width: 50px;
  11064. object-fit: cover;
  11065. }
  11066. .uploadFm {
  11067. border: 1px dashed #ccc;
  11068. width: 202px;
  11069. height: 102px;
  11070. position: relative;
  11071. cursor: pointer;
  11072. }
  11073. .uploadFm > img {
  11074. position: absolute;
  11075. top: 25px;
  11076. left: 35%;
  11077. width: 50px;
  11078. }
  11079. .fileCss {
  11080. width: 100%;
  11081. display: flex;
  11082. flex-direction: row;
  11083. flex-wrap: nowrap;
  11084. justify-content: space-around;
  11085. align-items: center;
  11086. padding-top: 15px;
  11087. }
  11088. .sysPicBox {
  11089. display: flex;
  11090. flex-direction: row;
  11091. flex-wrap: wrap;
  11092. align-content: flex-start;
  11093. height: 435px;
  11094. overflow: auto;
  11095. }
  11096. .sysPic {
  11097. width: 200px;
  11098. height: 115px;
  11099. margin: 0 20px 20px 0;
  11100. cursor: pointer;
  11101. }
  11102. .sysPic > img,
  11103. .isSysPic > img,
  11104. .deletePic > img {
  11105. width: 100%;
  11106. height: 100%;
  11107. object-fit: cover;
  11108. }
  11109. .isSysPic {
  11110. width: 200px;
  11111. height: 115px;
  11112. position: relative;
  11113. }
  11114. .deletePic {
  11115. width: 20px;
  11116. height: 20px;
  11117. position: absolute;
  11118. top: 0;
  11119. right: 0;
  11120. cursor: pointer;
  11121. }
  11122. .select_box1 {
  11123. }
  11124. .select_box1_img {
  11125. background: #fff;
  11126. border-radius: 5px;
  11127. padding: 15px;
  11128. box-sizing: border-box;
  11129. margin-bottom: 20px;
  11130. }
  11131. .select_box1_title {
  11132. padding: 0 0 15px 0;
  11133. border-bottom: 1px solid #eee;
  11134. margin-bottom: 15px;
  11135. }
  11136. .select_box1_title span:nth-child(1) {
  11137. font-size: 16px;
  11138. margin-right: 20px;
  11139. color: #000;
  11140. }
  11141. .select_box1_title span:nth-child(2) {
  11142. font-size: 14px;
  11143. color: rgb(112, 112, 112);
  11144. }
  11145. .select_box1_add_img {
  11146. }
  11147. .select_box1_select {
  11148. background: #fff;
  11149. border-radius: 5px;
  11150. padding: 15px;
  11151. box-sizing: border-box;
  11152. }
  11153. .select_box2 {
  11154. }
  11155. .select_box2_title {
  11156. background: #fff;
  11157. border-radius: 5px;
  11158. padding: 5px 10px;
  11159. box-sizing: border-box;
  11160. margin-bottom: 10px;
  11161. }
  11162. .select_box2_box {
  11163. display: flex;
  11164. height: 500px;
  11165. }
  11166. .select_box2_img {
  11167. width: calc(100% - 310px);
  11168. height: 100%;
  11169. overflow: auto;
  11170. background: #fff;
  11171. border-radius: 5px;
  11172. }
  11173. .select_box2_img img {
  11174. width: 100%;
  11175. }
  11176. .select_box2_answer {
  11177. background: #fff;
  11178. margin-left: 10px;
  11179. border-radius: 5px;
  11180. width: 300px;
  11181. overflow: auto;
  11182. height: 100%;
  11183. display: flex;
  11184. flex-direction: column;
  11185. align-items: center;
  11186. padding-top: 10px;
  11187. box-sizing: border-box;
  11188. }
  11189. .select_box2_answer_box {
  11190. margin: 0 0 10px 0;
  11191. width: 85%;
  11192. }
  11193. .rate_textarea {
  11194. font: inherit;
  11195. color: currentColor;
  11196. width: 100%;
  11197. padding: 8px 14px;
  11198. display: block;
  11199. min-width: 0;
  11200. outline: none;
  11201. border: 1px solid rgba(0, 0, 0, 0.23);
  11202. border-radius: 4px;
  11203. box-sizing: border-box;
  11204. background: #fff;
  11205. margin: 0 20px 0 0;
  11206. resize: none;
  11207. }
  11208. .select_answer_title {
  11209. text-align: left;
  11210. width: 85%;
  11211. margin-bottom: 10px;
  11212. font-size: 18px;
  11213. color: #8e8e8e;
  11214. }
  11215. .mask {
  11216. background-color: rgb(0 0 0 / 30%);
  11217. /* position: fixed; */
  11218. position: absolute;
  11219. top: 0;
  11220. left: 0;
  11221. width: 100%;
  11222. height: 100%;
  11223. z-index: 90;
  11224. display: flex;
  11225. align-items: center;
  11226. justify-content: center;
  11227. }
  11228. .progressBox {
  11229. width: 300px;
  11230. height: 150px;
  11231. background: #fff;
  11232. border-radius: 10px;
  11233. box-shadow: 0 0 6px 1px #bfbfbf;
  11234. display: flex;
  11235. align-items: center;
  11236. justify-content: center;
  11237. flex-direction: column;
  11238. position: relative;
  11239. color: #6c6c6c;
  11240. }
  11241. .progressBox >>> .el-progress-bar__outer {
  11242. background-color: #d1dfff !important;
  11243. }
  11244. .progressBox .lbox {
  11245. height: 50px;
  11246. font-size: 19px;
  11247. display: flex;
  11248. align-items: center;
  11249. color: #747474;
  11250. }
  11251. .progressBox .lbox img {
  11252. width: 40px;
  11253. margin-right: 20px;
  11254. }
  11255. .closeCss {
  11256. position: absolute;
  11257. top: 8px;
  11258. right: 8px;
  11259. cursor: pointer;
  11260. width: 20px;
  11261. height: 20px;
  11262. }
  11263. .closeCss > img {
  11264. width: 100%;
  11265. height: 100%;
  11266. }
  11267. .updateTips::after {
  11268. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  11269. font-size: 14px;
  11270. margin-left: 20px;
  11271. font-weight: 400;
  11272. color: #ff3a3a;
  11273. }
  11274. .updateMask {
  11275. width: 100%;
  11276. z-index: 3;
  11277. top: 0;
  11278. position: absolute;
  11279. /* background-color: rgba(0,0,0,.3); */
  11280. }
  11281. .t_j_box {
  11282. display: flex;
  11283. }
  11284. .t_j_box span:nth-child(1) {
  11285. width: 15%;
  11286. overflow: hidden;
  11287. margin-right: 10px;
  11288. text-overflow: ellipsis;
  11289. white-space: nowrap;
  11290. }
  11291. .t_j_box span:nth-child(2) {
  11292. width: 30%;
  11293. overflow: hidden;
  11294. text-overflow: ellipsis;
  11295. margin-right: 10px;
  11296. }
  11297. .t_j_box span:nth-child(3) {
  11298. max-width: calc(55% - 20px);
  11299. overflow: hidden;
  11300. text-overflow: ellipsis;
  11301. }
  11302. .sentenBox {
  11303. background: #fff;
  11304. height: 600px;
  11305. overflow: auto;
  11306. background-image: url("../../assets/icon/conSentences/csBg.png");
  11307. background-position: 102%;
  11308. background-repeat: no-repeat;
  11309. background-size: 60%;
  11310. }
  11311. .addSen {
  11312. background: #409efe;
  11313. width: 90px;
  11314. color: #fff;
  11315. height: 35px;
  11316. text-align: center;
  11317. line-height: 35px;
  11318. border-radius: 5px;
  11319. float: right;
  11320. margin: 10px 20px 0 0;
  11321. cursor: pointer;
  11322. }
  11323. .sentenTop {
  11324. display: flex;
  11325. flex-direction: row;
  11326. flex-wrap: nowrap;
  11327. align-items: center;
  11328. }
  11329. .sentenTop > div:nth-child(2) {
  11330. width: 300px;
  11331. margin: 0 15px;
  11332. }
  11333. .sentenTop > div:nth-child(3) {
  11334. background: #409efe;
  11335. color: #fff;
  11336. width: 65px;
  11337. height: 35px;
  11338. text-align: center;
  11339. line-height: 35px;
  11340. border-radius: 5px;
  11341. cursor: pointer;
  11342. }
  11343. .cardList {
  11344. padding: 30px 0 20px 0;
  11345. display: flex;
  11346. flex-direction: row;
  11347. flex-wrap: wrap;
  11348. align-items: center;
  11349. box-sizing: border-box;
  11350. border-bottom: 1px solid #f4f4f4;
  11351. width: 98%;
  11352. margin: 0 auto;
  11353. }
  11354. .cardBox {
  11355. display: flex;
  11356. flex-direction: row;
  11357. flex-wrap: wrap;
  11358. align-items: center;
  11359. align-content: center;
  11360. }
  11361. .isCard,
  11362. .isCard1 {
  11363. width: 140px;
  11364. height: 65px;
  11365. text-align: center;
  11366. line-height: 65px;
  11367. font-size: 20px;
  11368. cursor: pointer;
  11369. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  11370. background-size: cover;
  11371. position: relative;
  11372. z-index: 99;
  11373. }
  11374. .isCard1 {
  11375. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  11376. }
  11377. .isCard:hover .deleteWord {
  11378. display: block;
  11379. }
  11380. .isCard > div:nth-child(1),
  11381. .isCard1 > div:nth-child(1) {
  11382. white-space: nowrap;
  11383. overflow: hidden;
  11384. text-overflow: ellipsis;
  11385. width: 80%;
  11386. margin: 0 auto;
  11387. }
  11388. .card {
  11389. width: 140px;
  11390. height: 65px;
  11391. }
  11392. .card > img {
  11393. width: 100%;
  11394. height: 100%;
  11395. }
  11396. .rightCardBox {
  11397. margin: 10px 0 0 10px;
  11398. }
  11399. .rightCardBox > div:nth-child(1) {
  11400. margin-bottom: 10px;
  11401. }
  11402. .cardCss {
  11403. display: flex;
  11404. flex-direction: column;
  11405. flex-wrap: nowrap;
  11406. align-items: center;
  11407. border-bottom: 3px solid #b4c3d3;
  11408. padding: 0 0 5px 0;
  11409. margin-right: 10px;
  11410. }
  11411. .cardCss > div:nth-child(2) {
  11412. background: #5b7b9d;
  11413. color: #fff;
  11414. width: 20px;
  11415. height: 20px;
  11416. border-radius: 50%;
  11417. text-align: center;
  11418. line-height: 20px;
  11419. }
  11420. .sentenTopBox {
  11421. display: flex;
  11422. flex-direction: row;
  11423. flex-wrap: nowrap;
  11424. align-items: center;
  11425. justify-content: space-between;
  11426. padding: 55px 0 0 20px;
  11427. box-sizing: border-box;
  11428. width: 85%;
  11429. }
  11430. .stepsBottom {
  11431. width: 85%;
  11432. margin-bottom: 20px;
  11433. box-shadow: 0 0 10px 10px #f7f7f7;
  11434. background: #f7f7f7;
  11435. border-radius: 10px;
  11436. overflow: hidden;
  11437. }
  11438. .navTop {
  11439. background: #53749b;
  11440. color: #fff;
  11441. height: 40px;
  11442. line-height: 40px;
  11443. padding-left: 15px;
  11444. font-size: 18px;
  11445. }
  11446. .navBottom {
  11447. background: #6b91b7;
  11448. height: 180px;
  11449. overflow: auto;
  11450. }
  11451. .navTask {
  11452. display: flex;
  11453. flex-direction: row;
  11454. flex-wrap: nowrap;
  11455. align-items: center;
  11456. padding: 5px 5px 5px 0;
  11457. cursor: pointer;
  11458. background: #ffffff;
  11459. width: 95%;
  11460. margin: 10px auto;
  11461. box-sizing: border-box;
  11462. border-radius: 5px;
  11463. }
  11464. .isNavTask {
  11465. /* background: #7e9ebd; */
  11466. }
  11467. .navTask > div:nth-child(1) {
  11468. background: #468fe4;
  11469. color: #fff;
  11470. width: 65px;
  11471. height: 25px;
  11472. line-height: 25px;
  11473. text-align: center;
  11474. border-radius: 5px;
  11475. margin: 0 10px 0 5px;
  11476. font-size: 14px;
  11477. }
  11478. .navTask > div:nth-child(2) {
  11479. /* color: #fff; */
  11480. /* max-width: 130px; */
  11481. width: 130px;
  11482. white-space: nowrap;
  11483. overflow: hidden;
  11484. text-overflow: ellipsis;
  11485. font-size: 15px;
  11486. }
  11487. .groupBox {
  11488. }
  11489. .groupContent + .groupContent {
  11490. margin-top: 30px;
  11491. }
  11492. .groupTitle {
  11493. font-size: 24px;
  11494. color: rgb(80, 80, 80);
  11495. margin-bottom: 20px;
  11496. }
  11497. .groupName {
  11498. display: flex;
  11499. align-items: center;
  11500. }
  11501. .groupn {
  11502. font-size: 15px;
  11503. margin-right: 10px;
  11504. }
  11505. .groupName + .groupName {
  11506. margin-top: 15px;
  11507. }
  11508. .groupBtn {
  11509. margin-left: 10px;
  11510. }
  11511. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  11512. text-align: left;
  11513. }
  11514. .radioBox > div {
  11515. margin: 10px 0 0 10px;
  11516. }
  11517. .radioBox >>> .el-radio__input,
  11518. .radioBox >>> .el-checkbox__inner {
  11519. margin-left: 10px;
  11520. }
  11521. .radioBox >>> .el-radio__label,
  11522. .radioBox >>> .el-checkbox__label {
  11523. display: flex;
  11524. align-items: center;
  11525. }
  11526. .inImg {
  11527. width: 50px;
  11528. }
  11529. .inImg > img {
  11530. width: 100%;
  11531. height: 100%;
  11532. object-fit: cover;
  11533. }
  11534. .upCss >>> .el-upload-list--picture .el-upload-list__item {
  11535. height: auto;
  11536. }
  11537. .upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
  11538. width: 200px;
  11539. height: 100px;
  11540. object-fit: contain;
  11541. background: unset;
  11542. }
  11543. .upCss
  11544. >>> .el-upload-list--picture
  11545. .el-upload-list__item.is-success
  11546. .el-upload-list__item-name {
  11547. display: none;
  11548. }
  11549. .tcMember + .tcMember::before {
  11550. content: "、";
  11551. }
  11552. .xzUpImg {
  11553. width: 25px;
  11554. height: 25px;
  11555. cursor: pointer;
  11556. }
  11557. .xzUpImg > img {
  11558. width: 100%;
  11559. height: 100%;
  11560. }
  11561. .closeCss {
  11562. position: absolute;
  11563. top: 8px;
  11564. right: 8px;
  11565. cursor: pointer;
  11566. width: 20px;
  11567. height: 20px;
  11568. }
  11569. .closeCss > img {
  11570. width: 100%;
  11571. height: 100%;
  11572. }
  11573. .moveBtn {
  11574. display: flex;
  11575. flex-direction: column;
  11576. align-items: flex-end;
  11577. width: 40px;
  11578. }
  11579. .timuUpImg {
  11580. display: flex;
  11581. flex-direction: row;
  11582. align-items: center;
  11583. }
  11584. .timuUpImg > div:nth-child(1) {
  11585. margin-right: 10px;
  11586. }
  11587. .timuImgBox {
  11588. margin: 10px 0;
  11589. display: flex;
  11590. flex-direction: column;
  11591. flex-wrap: wrap;
  11592. align-items: flex-start;
  11593. }
  11594. .timuImg {
  11595. width: 100px;
  11596. margin: 5px 0;
  11597. cursor: pointer;
  11598. position: relative;
  11599. }
  11600. .timuImg:hover .deleteWord {
  11601. display: block;
  11602. }
  11603. .deleteWord {
  11604. width: 25px;
  11605. height: 25px;
  11606. position: absolute;
  11607. right: -5px;
  11608. top: -5px;
  11609. cursor: pointer;
  11610. display: none;
  11611. }
  11612. .timuImg > img,
  11613. .deleteWord > img {
  11614. width: 100%;
  11615. height: 100%;
  11616. object-fit: cover;
  11617. }
  11618. .e_add_delete {
  11619. cursor: pointer;
  11620. margin-left: 10px;
  11621. }
  11622. .pType_box {
  11623. margin-top: 30px;
  11624. }
  11625. .noneBox {
  11626. height: 100%;
  11627. width: 100%;
  11628. display: flex;
  11629. align-items: center;
  11630. justify-content: center;
  11631. margin-top: 150px;
  11632. }
  11633. .noneBox > img {
  11634. width: 300px;
  11635. }
  11636. </style>