addCourse.vue 370 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502
  1. <template>
  2. <div class="pb_content" style="background: #F0F2F5;" v-loading="isLoading2">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/synergyCourse?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">协同建构</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">创建协同建构</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. <div class="r_pub_button_retrun" @click="lastSteps()">返回</div>
  27. </div>
  28. <div class="rightBox" style="padding: 0;"
  29. :style="{ height: (!isBtnDisplay) ? 'calc(100% - 50px)' : 'calc(100% - 120px)' }" v-if="this.steps == 1">
  30. <!-- @mousewheel="scrollChange" -->
  31. <!-- <div class="updateMask" :style="{
  32. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  33. }" v-if="cid && userid != courseUserid && role != '1'"></div> -->
  34. <div class="whiteBg" style="background:unset;padding: 0;position:relative;">
  35. <div class="updateMask" :style="{
  36. height: '100%',
  37. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  38. <div>
  39. <div class="basic_box" style="padding: 0;">
  40. <div class="big_box">
  41. <div class="left_first">
  42. <div :class="{
  43. updateTips: cid && userid != courseUserid && role != '1',
  44. }">
  45. <div style="width: 100%;">
  46. <div class="course_input_box">
  47. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
  48. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  49. style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;"
  50. @change="changeName" />
  51. <!-- background: #f6f6f6; -->
  52. <!-- <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
  53. style="justify-content: center;width: 200px;"></el-switch> -->
  54. </div>
  55. </div>
  56. </div>
  57. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  58. <span>类型</span>
  59. <!-- 学科+ 主题+ 未来+ -->
  60. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  61. style="display: flex; align-items: center">
  62. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  63. <el-radio :label="item.name">{{
  64. item.name
  65. }}</el-radio>
  66. </div>
  67. </el-radio-group>
  68. </div>
  69. <div class="both">
  70. <div class="choose">
  71. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  72. <span v-if="CourseTypeJson[item.id].length > 0 &&
  73. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  74. ? pTypeCheck.indexOf(item.id) != -1
  75. : true)
  76. ">{{ item.name }}:</span>
  77. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  78. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  79. ? pTypeCheck.indexOf(item.id) != -1
  80. : true)
  81. ">
  82. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  83. item1.name }}</el-checkbox>
  84. </el-checkbox-group>
  85. <!-- <div
  86. v-else
  87. style="font-size: 14px; margin-left: -8px"
  88. >
  89. 暂无
  90. </div> -->
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="right_first">
  96. <!-- <div class="ai_box">
  97. <div class="ai_content" @click="openAI"><img src="../../assets/icon/new/ai.png"/><span>AI共创</span></div>
  98. </div> -->
  99. <div class="c_info_title" style="padding: 0 0 15px;margin: 0 auto 0 0;">上传封面</div>
  100. <div style="width: 100%;">
  101. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  102. <img src="../../../assets/icon/addPoster.png" alt="" />
  103. <div>点击添加封面</div>
  104. </div>
  105. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  106. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  107. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  108. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  109. <i class="el-icon-plus"></i>
  110. </el-upload>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="whiteBg" style="margin-top: 10px;">
  118. <div class="wb_j_box">
  119. <div class="wb_j_box_content">
  120. <div class="wb_j_box_btn" @click="openMember">
  121. <div class="wb_j_box_title">协同人员</div>
  122. <div class="wb_j_box_btn_c">
  123. <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
  124. v-if="checkboxList3.length" popper-class="text_tooltip2">
  125. <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
  126. </el-tooltip>
  127. <div v-else class="wb_j_box_span">请选择协同人员</div>
  128. <div class="wb_j_box_arrow"></div>
  129. </div>
  130. </div>
  131. </div>
  132. <div style="margin-left: auto;">
  133. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="whiteBg" style="margin-top: 10px">
  138. <groupBox :cid="cid" :people="checkboxList3" :classList="classList" :courseDetail="courseDetail"
  139. :userid="userid" :type="1" classId="" :oid="oid" v-if="cid"></groupBox>
  140. <div v-else class="tipsBox">请添加课程名称后才能设置分组</div>
  141. </div>
  142. <div class="whiteBg" style="border-radius: 0; background:#F0F2F5;" v-if="false">
  143. <div style="display: flex">
  144. <div class="course_left">
  145. <div class="stepsBottom2">
  146. <div class="navBottom" :style="{ height: heightPx }">
  147. <div v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  148. .taskJson" :key="tIndex">
  149. <div @click="goToTask(tIndex)" class="navTask" :class="{
  150. isNavTask:
  151. isClickColor > 0 && isClickColor == tIndex + 1,
  152. isNavOpen: t.toolOpen
  153. }">
  154. <div class="nt_taskBox">
  155. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  156. <div class="nt_taskName">
  157. <el-tooltip effect="light" :content="t.task" placement="top">
  158. <span>{{ t.task }}</span>
  159. </el-tooltip>
  160. </div>
  161. </div>
  162. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  163. 1
  164. ">
  165. <div class="chapter_upload_up" style="margin: 0 5px 0 0;width: 25px;height: 25px;"
  166. @click.stop="taskMove(1, tIndex)"></div>
  167. <div class="chapter_upload_down" style="width: 25px;height: 25px;"
  168. @click.stop="taskMove(2, tIndex)"></div>
  169. </div>
  170. </div>
  171. <div class="gjBox" v-if="t.toolChoose.length && t.toolOpen">
  172. <div v-for="(tool, toolIndex2) in t.toolChoose" :key="toolIndex2"
  173. @click="jumpGj(tIndex, toolIndex2)">
  174. <div class="gjCss" :class="{ isGjCss: toolIndexType == `gj${tIndex}${toolIndex2}` }">
  175. <div>工具{{ toolIndex2 + 1 }}:</div>
  176. <div>{{ toolsData[tool.tool[0]] && toolsData[tool.tool[0]].name }}</div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="basic_box2">
  185. <div style="margin: 0 0 20px 0; padding: 0 0 0 10px"
  186. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  187. <div class="taskBorder" style="padding: 20px 20px 10px;">
  188. <div class="basic_box" style="
  189. margin: 0;
  190. min-height: 0;
  191. padding: 10px 0 0 !important;
  192. ">
  193. <div style="
  194. display: flex;
  195. margin: 0 0 20px 0;
  196. flex-direction: row;
  197. justify-content: space-between;
  198. align-items: center;
  199. ">
  200. <div class="lineTitle">学习内容</div>
  201. <div v-if="!item.taskJson[0].isFoldchapter" class="show_taskD show" @click="foldC(0)"><img
  202. src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
  203. <div v-else class="show_taskD" @click="foldC(0)"><img
  204. src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div>
  205. </div>
  206. <div v-if="!item.taskJson[0].isFoldchapter">
  207. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  208. item.taskJson[0].chapterData.length == 0
  209. "><img src="../../../assets/icon/new/c_none.png" alt /><span>请添加学习内容</span></div>
  210. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  211. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  212. .chapterData" :key="item1.id" @click="
  213. getChapterData(
  214. $event,
  215. unitIndex,
  216. index,
  217. index1,
  218. item1.type
  219. )
  220. ">
  221. <div class="chapter_upload_t" style="width: 100%"></div>
  222. <div class="chapter_upload_o" style="
  223. position: relative;
  224. display: flex;
  225. align-items: center;
  226. ">
  227. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  228. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  229. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  230. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  231. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  232. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  233. <div v-if="item1.type == 14" class="chapter_upload_l_i14" style="margin-left: 1px">
  234. </div>
  235. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  236. </div>
  237. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  238. </div>
  239. </div>
  240. <div class="chapter_upload_n">
  241. <input readonly="true" v-if="item1.type == 2 ||
  242. item1.type == 3 ||
  243. item1.type == 12 ||
  244. item1.type == 13 ||
  245. item1.type == 7
  246. " :placeholder="item1.name" @click="
  247. updataVideoT(
  248. $event,
  249. unitIndex,
  250. 0,
  251. index1
  252. )
  253. " style="
  254. border: none;
  255. outline: none;
  256. width: 80%;
  257. minwidth: 215px;
  258. z-index: 99;
  259. font-size: 14px;
  260. white-space: nowrap;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. " />
  264. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  265. border: none;
  266. outline: none;
  267. width: 80%;
  268. white-space: nowrap;
  269. overflow: hidden;
  270. text-overflow: ellipsis;
  271. " readonly="true" @click="selectAttText(0, index1)" />
  272. <input :placeholder="item1.title ? item1.title : '链接'
  273. " v-if="item1.type == 8" style="
  274. border: none;
  275. outline: none;
  276. width: 80%;
  277. white-space: nowrap;
  278. overflow: hidden;
  279. text-overflow: ellipsis;
  280. " readonly="true" @click="selectLine(0, index1)" />
  281. <input :placeholder="item1.title ? item1.title : '链接'
  282. " v-if="item1.type == 14" style="
  283. border: none;
  284. outline: none;
  285. width: 80%;
  286. white-space: nowrap;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. " readonly="true" @click="openUpdateSource(0, index1)" />
  290. </div>
  291. <div class="chapter_upload_ic">
  292. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  293. </div>
  294. <div class="chapter_upload_ud" style="z-index: 99">
  295. <div class="chapter_upload_up" @click.stop="
  296. upCd(
  297. $event,
  298. unitIndex,
  299. index,
  300. 0,
  301. index1
  302. )
  303. "></div>
  304. <div class="chapter_upload_down" @click.stop="
  305. downCd(
  306. $event,
  307. unitIndex,
  308. index,
  309. 0,
  310. index1
  311. )
  312. "></div>
  313. </div>
  314. <div class="chapter_upload_ic_edit" v-if="item1.type == 2 ||
  315. item1.type == 3 ||
  316. item1.type == 12 ||
  317. item1.type == 13 ||
  318. item1.type == 7
  319. " @click.stop="
  320. updataVideoT(
  321. $event,
  322. unitIndex,
  323. 0,
  324. index1
  325. )
  326. ">
  327. <div></div>
  328. </div>
  329. <div class="chapter_upload_ic_edit" v-if="item1.type == 6"
  330. @click="selectAttText(0, index1)">
  331. <div></div>
  332. </div>
  333. <div class="chapter_upload_ic_edit" v-if="item1.type == 8"
  334. @click="selectLine(0, index1)">
  335. <div></div>
  336. </div>
  337. <div class="chapter_upload_ic_edit" v-if="item1.type == 14"
  338. @click="openUpdateSource(0, index1)">
  339. <div></div>
  340. </div>
  341. <div class="chapter_upload_ic_r" @click.stop="
  342. deleteChapterData(
  343. $event,
  344. unitIndex,
  345. index,
  346. index1,
  347. 0
  348. )
  349. ">
  350. <div></div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. <div class="add_info_box" v-if="!item.taskJson[0].isFoldchapter">
  358. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  359. 添加文件
  360. <input type="file" accept="*" style="display: none" v-if="inputShow"
  361. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  362. </button>
  363. <!-- <button class="info_btn" @click="addImg($event)">
  364. 添加视频
  365. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  366. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  367. " />
  368. </button>
  369. <button class="info_btn" @click="addImg($event)">
  370. 添加文档
  371. <input type="file"
  372. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  373. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  374. " />
  375. </button> -->
  376. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  377. 添加图文
  378. </button>
  379. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  380. 添加链接
  381. </button>
  382. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  383. 嵌入代码
  384. </button>
  385. <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  386. 添加资源
  387. </button>
  388. <!-- <button class="info_btn" @click="addImg($event)">
  389. 其他附件
  390. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  391. " />
  392. </button> -->
  393. </div>
  394. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  395. .proVisible
  396. " class="mask">
  397. <div class="progressBox">
  398. <!-- <div id="closePro" class="closeCss">
  399. <img src="../../../../assets/icon/close.png" alt />
  400. </div> -->
  401. <div class="lbox">
  402. <img src="../../../assets/loading.gif" />上传中,请稍后
  403. </div>
  404. <div style="margin-bottom: 10px">
  405. <span>{{
  406. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  407. .isFinishSize
  408. }}M</span>
  409. /
  410. <span>{{
  411. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  412. .isAllSize
  413. }}M</span>
  414. </div>
  415. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  416. .progress
  417. ? unitJson[unitIndex].chapterInfo[0]
  418. .taskJson[0].progress
  419. : 0
  420. " style="width: 80%"></el-progress>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="taskBorder" :style="{
  426. minHeight: unitJson[unitIndex].easy && 'unset',
  427. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  428. <div v-if="unitJson[unitIndex].easy != 1">
  429. <div :style="{
  430. marginBottom:
  431. unitJson[unitIndex].easy == 3 ||
  432. (unitJson[unitIndex].easy == 5 &&
  433. itemTask.taskType == 1)
  434. ? '75px'
  435. : '0',
  436. }">
  437. <div style="
  438. display: flex;
  439. margin: 0px 0 20px;
  440. flex-direction: row;
  441. justify-content: flex-start;
  442. align-items: center;
  443. ">
  444. <div class="lineTitle">任务{{ itemTaskIndex + 1 }}概述</div>
  445. </div>
  446. <div :id="'task' + itemTaskIndex" class="chapter_contentbox" style="
  447. flex-direction: row;
  448. justify-content: flex-start;
  449. align-items: center;
  450. ">
  451. <!-- <div class="cc_title">
  452. 任务{{ itemTaskIndex + 1 }}
  453. </div> -->
  454. <div class="cc_input">
  455. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  456. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  457. itemTaskIndex
  458. ].task
  459. " />
  460. <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img
  461. src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
  462. <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img
  463. src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
  464. </div>
  465. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  466. </div>
  467. </div>
  468. </div>
  469. <div style="margin: 25px 0" v-if="itemTask.isFold2">
  470. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  471. itemTaskIndex
  472. ].taskDetail
  473. " @change="change"></editor-bar> -->
  474. <textarea rows="2" v-autoHeight="70" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  475. itemTaskIndex
  476. ].taskDetail
  477. "></textarea>
  478. </div>
  479. <div class="toolChoose" style="margin: 20px 0">
  480. <div class="tools">
  481. <div class="leftTools" style="
  482. width: 100%;
  483. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  484. <div style="
  485. display: flex;
  486. flex-direction: row;
  487. align-items: baseline;
  488. flex-wrap: nowrap;
  489. justify-content: flex-start;
  490. position: relative;
  491. ">
  492. <div :id="'gj' + itemTaskIndex + '' + toolIndex"
  493. style="margin-right: 20px; font-weight: bold">
  494. 步骤 {{ toolIndex + 1 }} :
  495. </div>
  496. <div class="chooseWho">
  497. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  498. " @click="(itemTool.toolType = 0), (itemTool.isFold3 = true), $forceUpdate()">
  499. 互动类
  500. </div>
  501. <div :class="itemTool.toolType == 1
  502. ? 'isChooseActive'
  503. : ''
  504. " @click="
  505. (itemTool.toolType = 1), (itemTool.isFold3 = true), $forceUpdate()
  506. ">
  507. 思维类
  508. </div>
  509. <div :class="itemTool.toolType == 6
  510. ? 'isChooseActive'
  511. : ''
  512. " @click="
  513. (itemTool.toolType = 6), (itemTool.isFold3 = true), $forceUpdate()
  514. ">
  515. 协作类
  516. </div>
  517. <div :class="itemTool.toolType == 2
  518. ? 'isChooseActive'
  519. : ''
  520. " @click="
  521. (itemTool.toolType = 2), (itemTool.isFold3 = true), $forceUpdate()
  522. ">
  523. 测评类
  524. </div>
  525. <div :class="itemTool.toolType == 7
  526. ? 'isChooseActive'
  527. : ''
  528. " @click="
  529. (itemTool.toolType = 7), (itemTool.isFold3 = true), $forceUpdate()
  530. ">
  531. 评价类
  532. </div>
  533. <div :class="itemTool.toolType == 3
  534. ? 'isChooseActive'
  535. : ''
  536. " @click="
  537. (itemTool.toolType = 3), (itemTool.isFold3 = true), $forceUpdate()
  538. ">
  539. 编程类
  540. </div>
  541. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  542. " @click="(itemTool.toolType = 5), (itemTool.isFold3 = true), $forceUpdate()">
  543. 学科类
  544. </div>
  545. <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  546. " @click="(itemTool.toolType = 4), $forceUpdate()">
  547. 其他
  548. </div> -->
  549. </div>
  550. <div v-if="itemTool.isFold3" class="show_toolD show"
  551. @click="fold3(itemTaskIndex, toolIndex)"
  552. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  553. src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
  554. <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)"
  555. :style="{ right: itemTask.toolChoose.length > 1 ? '45px' : '0px' }"><img
  556. src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
  557. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  558. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  559. </div>
  560. <div style="min-height: 163px" v-show="itemTool.isFold3">
  561. <div class="toolSort" v-if="itemTool.toolType == 0">
  562. <!-- <div class="tool">
  563. <div
  564. class="whiteBIcon"
  565. @click="addTools(8, itemTaskIndex, toolIndex)"
  566. >
  567. <img src="../../../assets/icon/secondToolList/library.png" alt />
  568. <div style="margin: 5px 0">素材库</div>
  569. </div>
  570. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  571. <img
  572. src="../../../assets/icon/checkNo.png"
  573. alt
  574. v-if="itemTool.tool.indexOf(8) == -1"
  575. />
  576. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  577. alt /><span>已选择</span></div>
  578. </div>
  579. </div>-->
  580. <!-- <div class="tool">
  581. <div
  582. class="whiteBIcon"
  583. @click="addTools(17, itemTaskIndex, toolIndex)"
  584. >
  585. <img
  586. src="../../../assets/icon/secondToolList/library.png"
  587. alt
  588. />
  589. <div style="margin: 5px 0">学习资料</div>
  590. </div>
  591. <div
  592. class="check"
  593. @click="addTools(17, itemTaskIndex, toolIndex)"
  594. >
  595. <img
  596. src="../../../assets/icon/checkNo.png"
  597. alt
  598. v-if="itemTool.tool.indexOf(17) == -1"
  599. />
  600. <img
  601. src="../../../assets/icon/checkedIs.png"
  602. alt
  603. v-else
  604. />
  605. </div>10
  606. </div> -->
  607. <div class="tool">
  608. <div class="whiteBIcon" @click="
  609. openTools(itemTaskIndex, 10, toolIndex)
  610. ">
  611. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  612. <div style="margin: 5px 0">倒计时</div>
  613. </div>
  614. <div class="check" @click="
  615. addTools(10, itemTaskIndex, toolIndex)
  616. ">
  617. <img src="../../../assets/icon/checkNo.png" alt
  618. v-if="itemTool.tool.indexOf(10) == -1" />
  619. <div class="checkDiv" v-else>
  620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="tool">
  625. <div class="whiteBIcon" @click="addTools(65, itemTaskIndex, toolIndex)">
  626. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  627. <div style="margin: 5px 0">挑人</div>
  628. </div>
  629. <div class="check" @click="addTools(65, itemTaskIndex, toolIndex)">
  630. <img src="../../../assets/icon/checkNo.png" alt
  631. v-if="itemTool.tool.indexOf(65) == -1" />
  632. <div class="checkDiv" v-else>
  633. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  634. </div>
  635. </div>
  636. </div>
  637. <!-- <div class="tool">
  638. <div
  639. class="whiteBIcon"
  640. @click="
  641. openTools(itemTaskIndex, 49, toolIndex)
  642. "
  643. >
  644. <img
  645. src="../../../assets/icon/fourthToolList/group.png"
  646. alt
  647. />
  648. <div style="margin: 5px 0">学生分组</div>
  649. </div>
  650. <div
  651. class="check"
  652. @click="
  653. addTools(49, itemTaskIndex, toolIndex)
  654. "
  655. >
  656. <img
  657. src="../../../assets/icon/checkNo.png"
  658. alt
  659. v-if="itemTool.tool.indexOf(49) == -1"
  660. />
  661. <div class="checkDiv" v-else>
  662. <img
  663. src="../../../assets/icon/checkedIs.png"
  664. alt
  665. /><span>已选择</span>
  666. </div>
  667. </div>
  668. </div> -->
  669. <!-- <div class="tool">
  670. <div class="whiteBIcon" @click="
  671. openTools(itemTaskIndex, 62, toolIndex)
  672. ">
  673. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  674. <div style="margin: 5px 0">交互视频</div>
  675. </div>
  676. <div class="check" @click="
  677. addTools(62, itemTaskIndex, toolIndex)
  678. ">
  679. <img src="../../../assets/icon/checkNo.png" alt
  680. v-if="itemTool.tool.indexOf(62) == -1" />
  681. <div class="checkDiv" v-else>
  682. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  683. </div>
  684. </div>
  685. </div> -->
  686. </div>
  687. <div class="toolSort" v-if="itemTool.toolType == 1">
  688. <div class="tool">
  689. <div class="whiteBIcon" @click="
  690. addTools(7, itemTaskIndex, toolIndex)
  691. ">
  692. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  693. <div style="margin: 5px 0">思维网格</div>
  694. </div>
  695. <div class="check" @click="
  696. addTools(7, itemTaskIndex, toolIndex)
  697. ">
  698. <img src="../../../assets/icon/checkNo.png" alt
  699. v-if="itemTool.tool.indexOf(7) == -1" />
  700. <div class="checkDiv" v-else>
  701. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  702. </div>
  703. </div>
  704. </div>
  705. <div class="tool">
  706. <div class="whiteBIcon" @click="
  707. openTools(itemTaskIndex, 1, toolIndex)
  708. ">
  709. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  710. <div style="margin: 5px 0">电子白板</div>
  711. </div>
  712. <div class="check" @click="
  713. addTools(1, itemTaskIndex, toolIndex)
  714. ">
  715. <img src="../../../assets/icon/checkNo.png" alt
  716. v-if="itemTool.tool.indexOf(1) == -1" />
  717. <div class="checkDiv" v-else>
  718. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  719. </div>
  720. </div>
  721. </div>
  722. <!-- <div class="tool">
  723. <div
  724. class="whiteBIcon"
  725. @click="addTools(2, itemTaskIndex, toolIndex)"
  726. >
  727. <img
  728. src="../../../assets/icon/secondToolList/note.png"
  729. alt
  730. />
  731. <div style="margin: 5px 0">便签</div>
  732. </div>
  733. <div
  734. class="check"
  735. @click="addTools(2, itemTaskIndex, toolIndex)"
  736. >
  737. <img
  738. src="../../../assets/icon/checkNo.png"
  739. alt
  740. v-if="itemTool.tool.indexOf(2) == -1"
  741. />
  742. <div class="checkDiv" v-else>
  743. <img
  744. src="../../../assets/icon/checkedIs.png"
  745. alt
  746. /><span>已选择</span>
  747. </div>
  748. </div>
  749. </div> -->
  750. <!-- <div class="tool">
  751. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  752. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  753. <div style="margin: 5px 0">协同文档</div>
  754. </div>
  755. <div
  756. class="check"
  757. @click="addTools(6, itemTaskIndex, toolIndex)"
  758. >
  759. <img
  760. src="../../../assets/icon/checkNo.png"
  761. alt
  762. v-if="itemTool.tool.indexOf(6) == -1"
  763. />
  764. <div class="checkDiv" v-else>
  765. <img
  766. src="../../../assets/icon/checkedIs.png"
  767. alt
  768. /><span>已选择</span>
  769. </div>
  770. </div>
  771. </div> -->
  772. <div class="tool">
  773. <div class="whiteBIcon" @click="
  774. openTools(itemTaskIndex, 52, toolIndex)
  775. ">
  776. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  777. <div style="margin: 5px 0">文档</div>
  778. </div>
  779. <div class="check" @click="
  780. addTools(52, itemTaskIndex, toolIndex)
  781. ">
  782. <img src="../../../assets/icon/checkNo.png" alt
  783. v-if="itemTool.tool.indexOf(52) == -1" />
  784. <div class="checkDiv" v-else>
  785. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  786. </div>
  787. </div>
  788. </div>
  789. <div class="tool">
  790. <div class="whiteBIcon" @click="
  791. openTools(itemTaskIndex, 3, toolIndex)
  792. ">
  793. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  794. <div style="margin: 5px 0">思维导图</div>
  795. </div>
  796. <div class="check" @click="
  797. addTools(3, itemTaskIndex, toolIndex)
  798. ">
  799. <img src="../../../assets/icon/checkNo.png" alt
  800. v-if="itemTool.tool.indexOf(3) == -1" />
  801. <div class="checkDiv" v-else>
  802. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  803. </div>
  804. </div>
  805. </div>
  806. <div class="tool">
  807. <div class="whiteBIcon" @click="
  808. openTools(itemTaskIndex, 48, toolIndex)
  809. ">
  810. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  811. <div style="margin: 5px 0">表格</div>
  812. </div>
  813. <div class="check" @click="
  814. addTools(48, itemTaskIndex, toolIndex)
  815. ">
  816. <img src="../../../assets/icon/checkNo.png" alt
  817. v-if="itemTool.tool.indexOf(48) == -1" />
  818. <div class="checkDiv" v-else>
  819. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  820. </div>
  821. </div>
  822. </div>
  823. </div>
  824. <div class="toolSort" v-if="itemTool.toolType == 6">
  825. <div class="tool">
  826. <div class="whiteBIcon" @click="
  827. openTools(itemTaskIndex, 49, toolIndex)
  828. ">
  829. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  830. <div style="margin: 5px 0">学生分组</div>
  831. </div>
  832. <div class="check" @click="
  833. addTools(49, itemTaskIndex, toolIndex)
  834. ">
  835. <img src="../../../assets/icon/checkNo.png" alt
  836. v-if="itemTool.tool.indexOf(49) == -1" />
  837. <div class="checkDiv" v-else>
  838. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. <div class="toolSort" v-if="itemTool.toolType == 2">
  844. <!-- <div class="tool">
  845. <div
  846. class="whiteBIcon"
  847. @click="addTools(5, itemTaskIndex, toolIndex)"
  848. >
  849. <img
  850. src="../../../assets/icon/thirdToolList/score.png"
  851. alt
  852. />
  853. <div style="margin: 5px 0">量规评分</div>
  854. </div>
  855. <div
  856. class="check"
  857. @click="addTools(5, itemTaskIndex, toolIndex)"
  858. >
  859. <img
  860. src="../../../assets/icon/checkNo.png"
  861. alt
  862. v-if="itemTool.tool.indexOf(5) == -1"
  863. />
  864. <img
  865. src="../../../assets/icon/checkedIs.png"
  866. alt
  867. v-else
  868. />
  869. </div>
  870. </div>-->
  871. <div class="tool">
  872. <div class="whiteBIcon" @click="
  873. openTools(itemTaskIndex, 4, toolIndex)
  874. ">
  875. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  876. <div style="margin: 5px 0">问卷调查</div>
  877. </div>
  878. <div class="check" @click="
  879. addTools(4, itemTaskIndex, toolIndex)
  880. ">
  881. <img src="../../../assets/icon/checkNo.png" alt
  882. v-if="itemTool.tool.indexOf(4) == -1" />
  883. <div class="checkDiv" v-else>
  884. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  885. </div>
  886. </div>
  887. </div>
  888. <div class="tool">
  889. <div class="whiteBIcon" @click="
  890. openTools(itemTaskIndex, 45, toolIndex)
  891. ">
  892. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  893. <div style="margin: 5px 0">选择题</div>
  894. </div>
  895. <div class="check" @click="
  896. addTools(45, itemTaskIndex, toolIndex)
  897. ">
  898. <img src="../../../assets/icon/checkNo.png" alt
  899. v-if="itemTool.tool.indexOf(45) == -1" />
  900. <div class="checkDiv" v-else>
  901. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  902. </div>
  903. </div>
  904. </div>
  905. <div class="tool">
  906. <div class="whiteBIcon" @click="
  907. openTools(itemTaskIndex, 15, toolIndex)
  908. ">
  909. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  910. <div style="margin: 5px 0">问答</div>
  911. </div>
  912. <div class="check" @click="
  913. addTools(15, itemTaskIndex, toolIndex)
  914. ">
  915. <img src="../../../assets/icon/checkNo.png" alt
  916. v-if="itemTool.tool.indexOf(15) == -1" />
  917. <div class="checkDiv" v-else>
  918. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  919. </div>
  920. </div>
  921. </div>
  922. <div class="tool">
  923. <div class="whiteBIcon" @click="
  924. addTools(16, itemTaskIndex, toolIndex)
  925. ">
  926. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  927. <div style="margin: 5px 0">作业提交</div>
  928. </div>
  929. <div class="check" @click="
  930. addTools(16, itemTaskIndex, toolIndex)
  931. ">
  932. <img src="../../../assets/icon/checkNo.png" alt
  933. v-if="itemTool.tool.indexOf(16) == -1" />
  934. <div class="checkDiv" v-else>
  935. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  936. </div>
  937. </div>
  938. </div>
  939. <div class="tool">
  940. <div class="whiteBIcon" @click="
  941. addTools(50, itemTaskIndex, toolIndex)
  942. ">
  943. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  944. <div style="margin: 5px 0">批量上传</div>
  945. </div>
  946. <div class="check" @click="
  947. addTools(50, itemTaskIndex, toolIndex)
  948. ">
  949. <img src="../../../assets/icon/checkNo.png" alt
  950. v-if="itemTool.tool.indexOf(50) == -1" />
  951. <div class="checkDiv" v-else>
  952. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  953. </div>
  954. </div>
  955. </div>
  956. <!-- <div class="tool">
  957. <div
  958. class="whiteBIcon"
  959. @click="
  960. openTools(itemTaskIndex, 40, toolIndex)
  961. "
  962. >
  963. <img
  964. src="../../../assets/icon/thirdToolList/eval.png"
  965. alt
  966. />
  967. <div style="margin: 5px 0">个人评价</div>
  968. </div>
  969. <div
  970. class="check"
  971. @click="
  972. addTools(40, itemTaskIndex, toolIndex)
  973. "
  974. >
  975. <img
  976. src="../../../assets/icon/checkNo.png"
  977. alt
  978. v-if="itemTool.tool.indexOf(40) == -1"
  979. />
  980. <div class="checkDiv" v-else>
  981. <img
  982. src="../../../assets/icon/checkedIs.png"
  983. alt
  984. /><span>已选择</span>
  985. </div>
  986. </div>
  987. </div> -->
  988. <div class="tool">
  989. <div class="whiteBIcon" @click="
  990. openTools(itemTaskIndex, 41, toolIndex)
  991. ">
  992. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  993. <div style="margin: 5px 0">选择匹配</div>
  994. </div>
  995. <div class="check" @click="
  996. addTools(41, itemTaskIndex, toolIndex)
  997. ">
  998. <img src="../../../assets/icon/checkNo.png" alt
  999. v-if="itemTool.tool.indexOf(41) == -1" />
  1000. <div class="checkDiv" v-else>
  1001. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1002. </div>
  1003. </div>
  1004. </div>
  1005. <div class="tool">
  1006. <div class="whiteBIcon" @click="
  1007. openTools(itemTaskIndex, 47, toolIndex)
  1008. ">
  1009. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1010. <div style="margin: 5px 0">排序</div>
  1011. </div>
  1012. <div class="check" @click="
  1013. addTools(47, itemTaskIndex, toolIndex)
  1014. ">
  1015. <img src="../../../assets/icon/checkNo.png" alt
  1016. v-if="itemTool.tool.indexOf(47) == -1" />
  1017. <div class="checkDiv" v-else>
  1018. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. <!-- <div class="tool">
  1023. <div
  1024. class="whiteBIcon"
  1025. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1026. >
  1027. <img
  1028. src="../../../assets/icon/thirdToolList/mp3.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">上传音频</div>
  1032. </div>
  1033. <div
  1034. class="check"
  1035. @click="addTools(42, itemTaskIndex, toolIndex)"
  1036. >
  1037. <img
  1038. src="../../../assets/icon/checkNo.png"
  1039. alt
  1040. v-if="itemTool.tool.indexOf(42) == -1"
  1041. />
  1042. <img
  1043. src="../../../assets/icon/checkedIs.png"
  1044. alt
  1045. v-else
  1046. />
  1047. </div>
  1048. </div> -->
  1049. </div>
  1050. <div class="toolSort" v-if="itemTool.toolType == 3">
  1051. <div class="tool">
  1052. <div class="whiteBIcon" @click="
  1053. addTools(18, itemTaskIndex, toolIndex)
  1054. ">
  1055. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1056. <div style="margin: 5px 0">训练平台</div>
  1057. </div>
  1058. <div class="check" @click="
  1059. addTools(18, itemTaskIndex, toolIndex)
  1060. ">
  1061. <img src="../../../assets/icon/checkNo.png" alt
  1062. v-if="itemTool.tool.indexOf(18) == -1" />
  1063. <div class="checkDiv" v-else>
  1064. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1065. </div>
  1066. </div>
  1067. </div>
  1068. <div class="tool">
  1069. <div class="whiteBIcon" @click="
  1070. addTools(21, itemTaskIndex, toolIndex)
  1071. ">
  1072. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1073. <div style="margin: 5px 0">AIoT Blockly</div>
  1074. </div>
  1075. <div class="check" @click="
  1076. addTools(21, itemTaskIndex, toolIndex)
  1077. ">
  1078. <img src="../../../assets/icon/checkNo.png" alt
  1079. v-if="itemTool.tool.indexOf(21) == -1" />
  1080. <div class="checkDiv" v-else>
  1081. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1082. </div>
  1083. </div>
  1084. </div>
  1085. <!-- <div class="tool">
  1086. <div class="whiteBIcon" @click="
  1087. addTools(22, itemTaskIndex, toolIndex)
  1088. ">
  1089. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1090. <div style="margin: 5px 0">AI体验</div>
  1091. </div>
  1092. <div class="check" @click="
  1093. addTools(22, itemTaskIndex, toolIndex)
  1094. ">
  1095. <img src="../../../assets/icon/checkNo.png" alt
  1096. v-if="itemTool.tool.indexOf(22) == -1" />
  1097. <div class="checkDiv" v-else>
  1098. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1099. </div>
  1100. </div>
  1101. </div> -->
  1102. <div class="tool">
  1103. <div class="whiteBIcon" @click="
  1104. addTools(23, itemTaskIndex, toolIndex)
  1105. ">
  1106. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1107. <div style="margin: 5px 0">AI Python</div>
  1108. </div>
  1109. <div class="check" @click="
  1110. addTools(23, itemTaskIndex, toolIndex)
  1111. ">
  1112. <img src="../../../assets/icon/checkNo.png" alt
  1113. v-if="itemTool.tool.indexOf(23) == -1" />
  1114. <div class="checkDiv" v-else>
  1115. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <div class="tool">
  1120. <div class="whiteBIcon" @click="
  1121. addTools(24, itemTaskIndex, toolIndex)
  1122. ">
  1123. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1124. <div style="margin: 5px 0">AI Blockly</div>
  1125. </div>
  1126. <div class="check" @click="
  1127. addTools(24, itemTaskIndex, toolIndex)
  1128. ">
  1129. <img src="../../../assets/icon/checkNo.png" alt
  1130. v-if="itemTool.tool.indexOf(24) == -1" />
  1131. <div class="checkDiv" v-else>
  1132. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1133. </div>
  1134. </div>
  1135. </div>
  1136. <div class="tool">
  1137. <div class="whiteBIcon" @click="
  1138. addTools(32, itemTaskIndex, toolIndex)
  1139. ">
  1140. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1141. <div style="margin: 5px 0">源码编辑</div>
  1142. </div>
  1143. <div class="check" @click="
  1144. addTools(32, itemTaskIndex, toolIndex)
  1145. ">
  1146. <img src="../../../assets/icon/checkNo.png" alt
  1147. v-if="itemTool.tool.indexOf(32) == -1" />
  1148. <div class="checkDiv" v-else>
  1149. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1150. </div>
  1151. </div>
  1152. </div>
  1153. <div class="tool">
  1154. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1155. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1156. <div style="margin: 5px 0">CocoPi</div>
  1157. </div>
  1158. <div class="check" @click="
  1159. addTools(57, itemTaskIndex, toolIndex)
  1160. ">
  1161. <img src="../../../assets/icon/checkNo.png" alt
  1162. v-if="itemTool.tool.indexOf(57) == -1" />
  1163. <div class="checkDiv" v-else>
  1164. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1165. </div>
  1166. </div>
  1167. </div>
  1168. <div class="tool">
  1169. <div class="whiteBIcon" @click="
  1170. addTools(63, itemTaskIndex, toolIndex)
  1171. ">
  1172. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1173. <div style="margin: 5px 0">海龟编程</div>
  1174. </div>
  1175. <div class="check" @click="
  1176. addTools(63, itemTaskIndex, toolIndex)
  1177. ">
  1178. <img src="../../../assets/icon/checkNo.png" alt
  1179. v-if="itemTool.tool.indexOf(63) == -1" />
  1180. <div class="checkDiv" v-else>
  1181. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1182. </div>
  1183. </div>
  1184. </div>
  1185. </div>
  1186. <div class="toolSort" v-if="itemTool.toolType == 5">
  1187. <div class="tool">
  1188. <div class="whiteBIcon" @click="
  1189. addTools(28, itemTaskIndex, toolIndex)
  1190. ">
  1191. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1192. <div style="margin: 5px 0">翻译</div>
  1193. </div>
  1194. <div class="check" @click="
  1195. addTools(28, itemTaskIndex, toolIndex)
  1196. ">
  1197. <img src="../../../assets/icon/checkNo.png" alt
  1198. v-if="itemTool.tool.indexOf(28) == -1" />
  1199. <div class="checkDiv" v-else>
  1200. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <div class="tool">
  1205. <div class="whiteBIcon" @click="
  1206. addTools(31, itemTaskIndex, toolIndex)
  1207. ">
  1208. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1209. <div style="margin: 5px 0">数字画板</div>
  1210. </div>
  1211. <div class="check" @click="
  1212. addTools(31, itemTaskIndex, toolIndex)
  1213. ">
  1214. <img src="../../../assets/icon/checkNo.png" alt
  1215. v-if="itemTool.tool.indexOf(31) == -1" />
  1216. <div class="checkDiv" v-else>
  1217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1218. </div>
  1219. </div>
  1220. </div>
  1221. <div class="tool">
  1222. <div class="whiteBIcon" @click="
  1223. addTools(39, itemTaskIndex, toolIndex)
  1224. ">
  1225. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1226. <div style="margin: 5px 0">GeoGebra</div>
  1227. </div>
  1228. <div class="check" @click="
  1229. addTools(39, itemTaskIndex, toolIndex)
  1230. ">
  1231. <img src="../../../assets/icon/checkNo.png" alt
  1232. v-if="itemTool.tool.indexOf(39) == -1" />
  1233. <div class="checkDiv" v-else>
  1234. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. <div class="tool">
  1239. <div class="whiteBIcon" @click="
  1240. addTools(66, itemTaskIndex, toolIndex)
  1241. ">
  1242. <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
  1243. <div style="margin: 5px 0">公式编辑</div>
  1244. </div>
  1245. <div class="check" @click="
  1246. addTools(66, itemTaskIndex, toolIndex)
  1247. ">
  1248. <img src="../../../assets/icon/checkNo.png" alt
  1249. v-if="itemTool.tool.indexOf(66) == -1" />
  1250. <div class="checkDiv" v-else>
  1251. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1252. </div>
  1253. </div>
  1254. </div>
  1255. <div class="tool">
  1256. <div class="whiteBIcon" @click="
  1257. addTools(67, itemTaskIndex, toolIndex)
  1258. ">
  1259. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  1260. <div style="margin: 5px 0">分子结构</div>
  1261. </div>
  1262. <div class="check" @click="
  1263. addTools(67, itemTaskIndex, toolIndex)
  1264. ">
  1265. <img src="../../../assets/icon/checkNo.png" alt
  1266. v-if="itemTool.tool.indexOf(67) == -1" />
  1267. <div class="checkDiv" v-else>
  1268. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. <div class="tool">
  1273. <div class="whiteBIcon" @click="
  1274. addTools(68, itemTaskIndex, toolIndex)
  1275. ">
  1276. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  1277. <div style="margin: 5px 0">时间轴</div>
  1278. </div>
  1279. <div class="check" @click="
  1280. addTools(68, itemTaskIndex, toolIndex)
  1281. ">
  1282. <img src="../../../assets/icon/checkNo.png" alt
  1283. v-if="itemTool.tool.indexOf(68) == -1" />
  1284. <div class="checkDiv" v-else>
  1285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <!-- <div class="tool">
  1290. <div class="whiteBIcon" @click="
  1291. addTools(28, itemTaskIndex, toolIndex)
  1292. ">
  1293. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1294. <div style="margin: 5px 0">翻译</div>
  1295. </div>
  1296. <div class="check" @click="
  1297. addTools(28, itemTaskIndex, toolIndex)
  1298. ">
  1299. <img src="../../../assets/icon/checkNo.png" alt
  1300. v-if="itemTool.tool.indexOf(28) == -1" />
  1301. <div class="checkDiv" v-else>
  1302. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. <div class="tool">
  1307. <div class="whiteBIcon" @click="
  1308. addTools(37, itemTaskIndex, toolIndex)
  1309. ">
  1310. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1311. <div style="margin: 5px 0">魔盒识字</div>
  1312. </div>
  1313. <div class="check" @click="
  1314. addTools(37, itemTaskIndex, toolIndex)
  1315. ">
  1316. <img src="../../../assets/icon/checkNo.png" alt
  1317. v-if="itemTool.tool.indexOf(37) == -1" />
  1318. <div class="checkDiv" v-else>
  1319. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. <div class="tool">
  1324. <div class="whiteBIcon" @click="
  1325. addTools(38, itemTaskIndex, toolIndex)
  1326. ">
  1327. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1328. <div style="margin: 5px 0">24点</div>
  1329. </div>
  1330. <div class="check" @click="
  1331. addTools(38, itemTaskIndex, toolIndex)
  1332. ">
  1333. <img src="../../../assets/icon/checkNo.png" alt
  1334. v-if="itemTool.tool.indexOf(38) == -1" />
  1335. <div class="checkDiv" v-else>
  1336. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1337. </div>
  1338. </div>
  1339. </div>
  1340. <div class="tool">
  1341. <div class="whiteBIcon" @click="
  1342. addTools(31, itemTaskIndex, toolIndex)
  1343. ">
  1344. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1345. <div style="margin: 5px 0">数学画板</div>
  1346. </div>
  1347. <div class="check" @click="
  1348. addTools(31, itemTaskIndex, toolIndex)
  1349. ">
  1350. <img src="../../../assets/icon/checkNo.png" alt
  1351. v-if="itemTool.tool.indexOf(31) == -1" />
  1352. <div class="checkDiv" v-else>
  1353. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tool">
  1358. <div class="whiteBIcon" @click="
  1359. addTools(39, itemTaskIndex, toolIndex)
  1360. ">
  1361. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1362. <div style="margin: 5px 0">GeoGebra</div>
  1363. </div>
  1364. <div class="check" @click="
  1365. addTools(39, itemTaskIndex, toolIndex)
  1366. ">
  1367. <img src="../../../assets/icon/checkNo.png" alt
  1368. v-if="itemTool.tool.indexOf(39) == -1" />
  1369. <div class="checkDiv" v-else>
  1370. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. <div class="tool">
  1375. <div class="whiteBIcon" @click="
  1376. addTools(58, itemTaskIndex, toolIndex)
  1377. ">
  1378. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1379. <div style="margin: 5px 0">模拟驾驶</div>
  1380. </div>
  1381. <div class="check" @click="
  1382. addTools(58, itemTaskIndex, toolIndex)
  1383. ">
  1384. <img src="../../../assets/icon/checkNo.png" alt
  1385. v-if="itemTool.tool.indexOf(58) == -1" />
  1386. <div class="checkDiv" v-else>
  1387. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1388. </div>
  1389. </div>
  1390. </div>
  1391. <div class="tool">
  1392. <div class="whiteBIcon" @click="
  1393. addTools(59, itemTaskIndex, toolIndex)
  1394. ">
  1395. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1396. <div style="margin: 5px 0">路径搜索</div>
  1397. </div>
  1398. <div class="check" @click="
  1399. addTools(59, itemTaskIndex, toolIndex)
  1400. ">
  1401. <img src="../../../assets/icon/checkNo.png" alt
  1402. v-if="itemTool.tool.indexOf(59) == -1" />
  1403. <div class="checkDiv" v-else>
  1404. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. <div class="tool">
  1409. <div class="whiteBIcon" @click="
  1410. addTools(60, itemTaskIndex, toolIndex)
  1411. ">
  1412. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1413. <div style="margin: 5px 0">深度学习</div>
  1414. </div>
  1415. <div class="check" @click="
  1416. addTools(60, itemTaskIndex, toolIndex)
  1417. ">
  1418. <img src="../../../assets/icon/checkNo.png" alt
  1419. v-if="itemTool.tool.indexOf(60) == -1" />
  1420. <div class="checkDiv" v-else>
  1421. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. <div class="tool">
  1426. <div class="whiteBIcon" @click="
  1427. addTools(61, itemTaskIndex, toolIndex)
  1428. ">
  1429. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1430. <div style="margin: 5px 0">全历史</div>
  1431. </div>
  1432. <div class="check" @click="
  1433. addTools(61, itemTaskIndex, toolIndex)
  1434. ">
  1435. <img src="../../../assets/icon/checkNo.png" alt
  1436. v-if="itemTool.tool.indexOf(61) == -1" />
  1437. <div class="checkDiv" v-else>
  1438. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1439. </div>
  1440. </div>
  1441. </div> -->
  1442. </div>
  1443. <div class="toolSort" v-if="itemTool.toolType == 7">
  1444. <div class="tool">
  1445. <div class="whiteBIcon" @click="
  1446. openTools(itemTaskIndex, 40, toolIndex)
  1447. ">
  1448. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1449. <div style="margin: 5px 0">个人评价</div>
  1450. </div>
  1451. <div class="check" @click="
  1452. addTools(40, itemTaskIndex, toolIndex)
  1453. ">
  1454. <img src="../../../assets/icon/checkNo.png" alt
  1455. v-if="itemTool.tool.indexOf(40) == -1" />
  1456. <div class="checkDiv" v-else>
  1457. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. </div>
  1462. <div class="toolSort" v-if="itemTool.toolType == 4">
  1463. <div class="tool">
  1464. <div class="whiteBIcon" @click="
  1465. addTools(26, itemTaskIndex, toolIndex)
  1466. ">
  1467. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1468. <div style="margin: 5px 0">课程设计</div>
  1469. </div>
  1470. <div class="check" @click="
  1471. addTools(26, itemTaskIndex, toolIndex)
  1472. ">
  1473. <img src="../../../assets/icon/checkNo.png" alt
  1474. v-if="itemTool.tool.indexOf(26) == -1" />
  1475. <div class="checkDiv" v-else>
  1476. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1477. </div>
  1478. </div>
  1479. </div>
  1480. <div class="tool">
  1481. <div class="whiteBIcon" @click="
  1482. addTools(25, itemTaskIndex, toolIndex)
  1483. ">
  1484. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1485. <div style="margin: 5px 0">目标管理</div>
  1486. </div>
  1487. <div class="check" @click="
  1488. addTools(25, itemTaskIndex, toolIndex)
  1489. ">
  1490. <img src="../../../assets/icon/checkNo.png" alt
  1491. v-if="itemTool.tool.indexOf(25) == -1" />
  1492. <div class="checkDiv" v-else>
  1493. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. <!-- <div class="tool">
  1498. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1499. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1500. <div style="margin: 5px 0">汉字宫</div>
  1501. </div>
  1502. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1503. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1504. <div class="checkDiv" v-else>
  1505. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1506. </div>
  1507. </div>
  1508. </div> -->
  1509. </div>
  1510. </div>
  1511. <div v-show="itemTool.isFold3">
  1512. <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input"
  1513. style="
  1514. margin: 0 0 20px 0;
  1515. " v-model="itemTool.toolDetail"></textarea>
  1516. </div>
  1517. </div>
  1518. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1519. <div class="addToolImg">
  1520. <img src="../../../assets/icon/add.png" alt />
  1521. </div>
  1522. <div>添加工具</div>
  1523. </div>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. <div class="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1528. <!-- <div>
  1529. <img src="../../../assets/icon/new/addStage.png" alt />
  1530. <span>添加任务</span>
  1531. </div> -->
  1532. <button class="c_pub_button_confirm pub_btn_add_task_img" @click="addTaskBorder">
  1533. 添加任务
  1534. </button>
  1535. </div>
  1536. </div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. <div class="info_btnBox3">
  1541. <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
  1542. 返回首页
  1543. </button>
  1544. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps"
  1545. v-if="!(cid && userid != courseUserid && role != '1')">
  1546. 确认上传
  1547. </button>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  1554. :before-close="handleClose" class="dialog_diy2 customWidth">
  1555. <el-form>
  1556. <el-form-item label="文档标题">
  1557. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1558. </el-form-item>
  1559. <div>文档简介</div>
  1560. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  1561. </el-form>
  1562. <span slot="footer" class="dialog-footer">
  1563. <el-button @click="dialogVisible1 = false">取 消</el-button>
  1564. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  1565. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  1566. </span>
  1567. </el-dialog>
  1568. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  1569. :before-close="handleClose" class="dialog_diy">
  1570. <el-form>
  1571. <el-form-item label="文档标题">
  1572. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  1573. </el-form-item>
  1574. <div>文档内容</div>
  1575. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  1576. </el-form>
  1577. <span slot="footer" class="dialog-footer">
  1578. <el-button @click="clearChoose">取 消</el-button>
  1579. <el-button type="primary" @click="wordNext()">确定</el-button>
  1580. </span>
  1581. </el-dialog>
  1582. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  1583. :before-close="handleClose" class="dialog_diy">
  1584. <el-form>
  1585. <el-form-item label="文本标题">
  1586. <el-input ref="fuInput" v-model="AttText.title" auto-complete="off" @input="change2"
  1587. placeholder="请输入文本标题..."></el-input>
  1588. </el-form-item>
  1589. <!-- <div>富文本内容</div> -->
  1590. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  1591. </el-form>
  1592. <span slot="footer" class="dialog-footer">
  1593. <el-button @click="clearAttText">取 消</el-button>
  1594. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  1595. </span>
  1596. </el-dialog>
  1597. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  1598. :before-close="handleClose" class="dialog_diy lineCss">
  1599. <el-form>
  1600. <el-form-item label="标题" :label-width="formLabelWidth">
  1601. <span>
  1602. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  1603. </span>
  1604. </el-form-item>
  1605. <el-form-item label="链接" :label-width="formLabelWidth">
  1606. <span>
  1607. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  1608. </span>
  1609. </el-form-item>
  1610. </el-form>
  1611. <span slot="footer" class="dialog-footer">
  1612. <el-button @click="clearLine">取 消</el-button>
  1613. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  1614. </span>
  1615. </el-dialog>
  1616. <el-dialog :title="updateSourcePan ? '修改资源' : '添加资源'" :visible.sync="dialogVisibleSource" :append-to-body="true"
  1617. width="100%" :before-close="handleClose" class="dialog_diy source_diy">
  1618. <div>
  1619. <sourceDialog :sourceData.sync="sourceData" :updateSourcePan="updateSourcePan"></sourceDialog>
  1620. </div>
  1621. <span slot="footer" class="dialog-footer">
  1622. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  1623. <el-button type="primary" @click="addSource" v-if="!updateSourcePan">确定</el-button>
  1624. <el-button type="primary" @click="updateSource" v-else>确定</el-button>
  1625. </span>
  1626. </el-dialog>
  1627. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  1628. :before-close="handleClose" class="addNewPP customWidth">
  1629. <div class="people">
  1630. <div class="people_top">
  1631. <div class="people_nav">选择成员</div>
  1632. <div class="people_top_right">
  1633. <div class="people_search">
  1634. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  1635. <div class="search_img" @click="searchStudent">
  1636. <img src="../../../assets/icon/search.png" alt />
  1637. </div>
  1638. </div>
  1639. </div>
  1640. </div>
  1641. <el-checkbox-group v-model="checkboxList" class="people_name">
  1642. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  1643. "暂无学生可选" }}</el-checkbox>
  1644. </el-checkbox-group>
  1645. </div>
  1646. <span slot="footer" class="dialog-footer">
  1647. <el-button @click="dialogVisible3 = false">取 消</el-button>
  1648. <el-button type="primary" @click="isAddPP">确定</el-button>
  1649. </span>
  1650. </el-dialog>
  1651. <!-- <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  1652. :before-close="handleClose" class="addNewPP">
  1653. <div class="people" style="height: 300px">
  1654. <div class="people_top">
  1655. <div class="people_top_right">
  1656. <div class="people_search">
  1657. <el-select v-model="gradeId" placeholder="请选择年级" class="student_input" clearable @change="getClass()">
  1658. <el-option label="全部" value=""></el-option>
  1659. <el-option v-for="(item, index) in gradeList" :key="index" :label="item.name"
  1660. :value="item.id"></el-option>
  1661. </el-select>
  1662. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  1663. <div class="search_img">
  1664. <img src="../../../assets/icon/search.png" alt />
  1665. </div>
  1666. </div>
  1667. </div>
  1668. <div class="people_nav">选择班级</div>
  1669. </div>
  1670. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange"
  1671. v-if="grade2.length">
  1672. <div v-for="item in grade2" :key="item.id" class="p_box">
  1673. <el-checkbox :label="item.id">
  1674. {{ item.name }}
  1675. </el-checkbox>
  1676. </div>
  1677. </el-checkbox-group>
  1678. <div v-if="!grade2.length" style="padding:20px 10px">暂无数据</div>
  1679. </div>
  1680. <span slot="footer" class="dialog-footer">
  1681. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1682. <el-button type="primary" @click="isAddClass">确定</el-button>
  1683. </span>
  1684. </el-dialog> -->
  1685. <el-dialog title="选择授课班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="600px" height="80%"
  1686. :before-close="handleClose" class="addNewPP2">
  1687. <div class="check_classBox">
  1688. <div class="check_class_right">
  1689. <div class="check_class" :class="{ activeX: gradeId == '' }" @click="gradeId = '', getClass()">
  1690. 全部
  1691. </div>
  1692. <el-tooltip placement="top" :content="item.name" v-for="(item, index) in gradeList" :key="index">
  1693. <div class="check_class" :class="{ activeX: gradeId == item.id }" @click="gradeId = item.id, getClass()">
  1694. {{ item.name }}
  1695. </div>
  1696. </el-tooltip>
  1697. </div>
  1698. <div class="check_class_left">
  1699. <div class="check_class_left_title">选择班级</div>
  1700. <el-checkbox-group v-model="checkboxList2" class="check_class_item" @change="InviteChange" v-if="grade2.length">
  1701. <div v-for="item in grade2" :key="item.id" class="class_item">
  1702. <el-checkbox :label="item.id">
  1703. {{ item.name }}
  1704. </el-checkbox>
  1705. </div>
  1706. </el-checkbox-group>
  1707. <div v-if="!grade2.length">暂无数据</div>
  1708. </div>
  1709. </div>
  1710. <span slot="footer" class="dialog-footer">
  1711. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  1712. <el-button type="primary" @click="isAddClass">确定</el-button>
  1713. </span>
  1714. </el-dialog>
  1715. <!-- <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1716. :before-close="handleClose" class="addNewPP customWidth">
  1717. <div class="people">
  1718. <div class="people_top">
  1719. <div class="people_top_right">
  1720. <div class="people_search">
  1721. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1722. <div class="search_img" @click="getTeacher">
  1723. <img src="../../../assets/icon/search.png" alt />
  1724. </div>
  1725. </div>
  1726. </div>
  1727. <div class="people_nav">选择成员</div>
  1728. </div>
  1729. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1730. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1731. <div class="t_j_box">
  1732. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1733. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1734. </el-tooltip>
  1735. <el-tooltip placement="top" :content="item.username">
  1736. <span>{{ item.username }}</span>
  1737. </el-tooltip>
  1738. <el-tooltip placement="top" :content="item.school">
  1739. <span>{{ item.school }}</span>
  1740. </el-tooltip>
  1741. </div>
  1742. </el-checkbox>
  1743. </el-checkbox-group>
  1744. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1745. </div>
  1746. <span slot="footer" class="dialog-footer">
  1747. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1748. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1749. </span>
  1750. </el-dialog> -->
  1751. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  1752. :before-close="handleClose" class="addNewPP customWidth">
  1753. <div class="people">
  1754. <div class="people_top">
  1755. <div class="people_top_right">
  1756. <div class="people_search">
  1757. <el-input placeholder="搜索完整的姓名/账号(不含邮箱后缀)" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  1758. <div class="search_img" @click="getTeacher">
  1759. <img src="../../../assets/icon/search.png" alt />
  1760. </div>
  1761. </div>
  1762. </div>
  1763. <div class="people_nav">选择成员</div>
  1764. </div>
  1765. <div class="t_j_box" style="
  1766. padding: 20px 0 0 25px;
  1767. width: calc(100% - 55px);
  1768. margin-left: 25px;
  1769. ">
  1770. <span>姓名</span>
  1771. <span>身份</span>
  1772. <span>账号</span>
  1773. <span>学校</span>
  1774. </div>
  1775. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  1776. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  1777. <div class="t_j_box">
  1778. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  1779. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  1780. </el-tooltip>
  1781. <span>{{ item.type == "1" ? "老师" : "学生" }}</span>
  1782. <el-tooltip placement="top" :content="item.username">
  1783. <span>{{ item.username }}</span>
  1784. </el-tooltip>
  1785. <el-tooltip placement="top" :content="item.school">
  1786. <span>{{ item.school }}</span>
  1787. </el-tooltip>
  1788. </div>
  1789. </el-checkbox>
  1790. </el-checkbox-group>
  1791. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  1792. </div>
  1793. <div style="margin-top: 10px;">
  1794. <el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
  1795. v-if="page && teacherJuri.length" style="padding-bottom: 20px"
  1796. @current-change="handleCurrentChange"></el-pagination>
  1797. </div>
  1798. <span slot="footer" class="dialog-footer">
  1799. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  1800. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  1801. </span>
  1802. </el-dialog>
  1803. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  1804. :before-close="(done) => { closePan(4) }" class="dialog_diy fullStyle">
  1805. <div style="height:100%">
  1806. <div class="a_add_title" style="
  1807. display: flex;
  1808. flex-direction: row;
  1809. align-items: center;
  1810. justify-content: center;
  1811. ">
  1812. <!-- <div style="margin-right: 20px; font-size: 20px">标题:</div> -->
  1813. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1814. </div>
  1815. <div class="a_addBox" style="height:calc(100% - 50px)">
  1816. <!-- <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div> -->
  1817. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1818. <div class="a_add_checkType">
  1819. <span :class="{
  1820. active:
  1821. askJson.askJson[index1].type == '1' ||
  1822. !askJson.askJson[index1].type,
  1823. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  1824. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  1825. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  1826. </div>
  1827. <div class="a_add_head">
  1828. <div style="display: flex;align-items: center;width: 100%;margin-right: 20px;">
  1829. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1830. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].askstitle
  1831. " placeholder="请输入题目" @change="() => { $forceUpdate() }"></textarea>
  1832. </div>
  1833. <div class="moveBtn moveBtn2" style="margin: 0 20px 0 0px;" v-if="askJson.askCount != 1">
  1834. <div class="chapter_upload_up" @click.stop="askMove(1, index1)">
  1835. </div>
  1836. <div class="chapter_upload_down" @click.stop="askMove(2, index1)"></div>
  1837. </div>
  1838. <div class="a_add_head_div">
  1839. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  1840. </el-button>
  1841. <el-button type="primary" size="small" @click="addAskList(index1)">添加</el-button>
  1842. </div>
  1843. </div>
  1844. <div class="a_add_body">
  1845. <div class="a_add_input" style="flex-direction: column;">
  1846. <div v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  1847. style=" margin: 20px 10px 0 0;display: flex;align-items:center;position: relative;">
  1848. <div style="margin-right: 10px">
  1849. 选项{{ checkIndex + 1 }}
  1850. </div>
  1851. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-model="askJson.askJson[index1].checkList[checkIndex]
  1852. " placeholder="请输入选项" style="width: 300px" @change="() => { $forceUpdate() }"></textarea>
  1853. <div class="moveBtn moveBtn2" style="margin: 0 0px 0 20px" v-if="askJson.askJson[index1].askItem != 1">
  1854. <div class="chapter_upload_up" @click.stop="checkMove(1, index1, checkIndex)">
  1855. </div>
  1856. <div class="chapter_upload_down" @click.stop="checkMove(2, index1, checkIndex)"></div>
  1857. </div>
  1858. <div class="a_add_body_div">
  1859. <el-button type="primary" size="small"
  1860. @click="addcheckList(askJson.askJson[index1], checkIndex)">添加</el-button>
  1861. <el-button type="primary" size="small" @click="deletecheckList(askJson.askJson[index1], checkIndex)"
  1862. v-if="askJson.askJson[index1].askItem != 1">删除
  1863. </el-button>
  1864. </div>
  1865. </div>
  1866. </div>
  1867. <!-- <div class="a_add_body_div">
  1868. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  1869. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  1870. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  1871. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  1872. </el-button>
  1873. </div> -->
  1874. </div>
  1875. </div>
  1876. </div>
  1877. </div>
  1878. <span slot="footer" class="dialog-footer">
  1879. <el-button @click="closePan(4)">取 消</el-button>
  1880. <el-button type="primary" @click="addAsk">确 定</el-button>
  1881. </span>
  1882. </el-dialog>
  1883. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  1884. :before-close="(done) => { closePan(45) }" class="dialog_diy fullStyle">
  1885. <div style="height:100%">
  1886. <!-- <div class="a_add_title" style="
  1887. display: flex;
  1888. flex-direction: row;
  1889. align-items: center;
  1890. justify-content: center;
  1891. ">
  1892. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1893. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  1894. </div> -->
  1895. <div class="a_addBox" style="height:100%">
  1896. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  1897. <!-- 请输入题目内容 -->
  1898. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px"
  1899. v-if="isPasteChoice">智能粘贴</button>
  1900. </div>
  1901. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1902. <div class="a_add_checkType">
  1903. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  1904. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  1905. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  1906. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  1907. </div>
  1908. <div class="a_add_head">
  1909. <div class="timuUpImg">
  1910. <div style="display: flex;align-items: center;">
  1911. <span style="min-width:fit-content">{{ index1 + 1 + "、" }}</span>
  1912. <!-- <el-input class="a_add_head_input" v-autoHeight="40" resize="none" v-model="testJson.testJson[index1].teststitle" type="textarea"
  1913. placeholder="请输入题目">
  1914. </el-input> -->
  1915. <textarea class="a_add_head_input textarea_css" v-autoHeight="40"
  1916. v-model="testJson.testJson[index1].teststitle" placeholder="请输入题目"
  1917. @change="() => { $forceUpdate() }"></textarea>
  1918. </div>
  1919. <div class="moveBtn moveBtn2" v-if="testJson.testCount != 1">
  1920. <div class="chapter_upload_up" @click.stop="testMove(1, index1)">
  1921. </div>
  1922. <div class="chapter_upload_down" @click.stop="testMove(2, index1)"></div>
  1923. </div>
  1924. <div class="xzUpImg" @click.stop="addImg($event)" style="margin-right: 10px;">
  1925. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1926. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  1927. </div>
  1928. </div>
  1929. <div class="a_add_head_div">
  1930. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  1931. </el-button>
  1932. <el-button type="primary" size="small" @click="addTestList(index1)">添加</el-button>
  1933. </div>
  1934. </div>
  1935. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1936. testJson.testJson[index1].timuList.length
  1937. ">
  1938. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1939. @click.stop="previewImg(timg.src)">
  1940. <img :src="timg.src" alt="" />
  1941. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  1942. <img src="../../../assets/icon/delete.png" alt="" />
  1943. </div>
  1944. </div>
  1945. </div>
  1946. <div class="a_add_body">
  1947. <div class="a_add_input a_add_input_choice">
  1948. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1"
  1949. @change="() => { $forceUpdate() }">
  1950. <div class="radioBox">
  1951. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1952. .testItem" :key="checkIndex" :label="checkIndex">
  1953. <div style="margin-right: 10px">
  1954. 选项{{ checkIndex + 1 }}
  1955. </div>
  1956. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  1957. testJson.testJson[index1].checkList[checkIndex]
  1958. .imgType &&
  1959. testJson.testJson[index1].checkList[checkIndex]
  1960. .imgType == 1
  1961. ">
  1962. <div class="inImg" @click.stop="
  1963. previewImg(
  1964. testJson.testJson[index1].checkList[checkIndex]
  1965. .src
  1966. )
  1967. ">
  1968. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  1969. .src
  1970. " lazy />
  1971. <!-- <img :src="
  1972. testJson.testJson[index1].checkList[checkIndex]
  1973. .src
  1974. " alt="" /> -->
  1975. </div>
  1976. </div>
  1977. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  1978. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  1979. @change="() => { $forceUpdate() }"></textarea>
  1980. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  1981. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex)">
  1982. </div>
  1983. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex)"></div>
  1984. </div>
  1985. <div class="xzUpImg" @click.stop="addImg($event)">
  1986. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  1987. <input type="file" accept="image/*" style="display: none"
  1988. @change="beforeUploadTi($event, index1, checkIndex)" />
  1989. </div>
  1990. <div class="a_add_body_div">
  1991. <el-button type="primary" size="small"
  1992. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex)">添加</el-button>
  1993. <el-button type="primary" size="small"
  1994. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex)"
  1995. v-if="testJson.testJson[index1].testItem != 1">删除
  1996. </el-button>
  1997. </div>
  1998. </el-radio>
  1999. </div>
  2000. </el-radio-group>
  2001. <el-checkbox-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == '2'"
  2002. @change="() => { $forceUpdate() }">
  2003. <div class="radioBox">
  2004. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2005. .testItem" :key="checkIndex1" :label="checkIndex1">
  2006. <div style="margin-right: 10px">
  2007. 选项{{ checkIndex1 + 1 }}
  2008. </div>
  2009. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2010. testJson.testJson[index1].checkList[checkIndex1]
  2011. .imgType &&
  2012. testJson.testJson[index1].checkList[checkIndex1]
  2013. .imgType == 1
  2014. ">
  2015. <div class="inImg" @click.stop="
  2016. previewImg(
  2017. testJson.testJson[index1].checkList[checkIndex1]
  2018. .src
  2019. )
  2020. ">
  2021. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2022. .src
  2023. " lazy />
  2024. <!-- <img :src="
  2025. testJson.testJson[index1].checkList[checkIndex1]
  2026. .src
  2027. " alt="" /> -->
  2028. </div>
  2029. </div>
  2030. <textarea class="a_add_head_input textarea_css" v-autoHeight="40" v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2031. " placeholder="请输入选项" style="width: 300px; margin-right: 10px"
  2032. @change="() => { $forceUpdate() }"></textarea>
  2033. <div class="moveBtn moveBtn2" v-if="testJson.testJson[index1].testItem != 1">
  2034. <div class="chapter_upload_up" @click.stop="tcheckMove(1, index1, checkIndex1)">
  2035. </div>
  2036. <div class="chapter_upload_down" @click.stop="tcheckMove(2, index1, checkIndex1)"></div>
  2037. </div>
  2038. <div class="xzUpImg" @click.stop="addImg($event)">
  2039. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2040. <input type="file" accept="image/*" style="display: none"
  2041. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2042. </div>
  2043. <div class="a_add_body_div">
  2044. <el-button type="primary" size="small"
  2045. @click.stop="addTcheckList(testJson.testJson[index1], checkIndex1)">添加</el-button>
  2046. <el-button type="primary" size="small"
  2047. @click.stop="deleteTcheckList(testJson.testJson[index1], checkIndex1)"
  2048. v-if="testJson.testJson[index1].testItem != 1">删除
  2049. </el-button>
  2050. </div>
  2051. </el-checkbox>
  2052. </div>
  2053. </el-checkbox-group>
  2054. </div>
  2055. <!-- <div class="a_add_body_div">
  2056. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2057. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2058. v-if="testJson.testJson[index1].testItem != 1">删除
  2059. </el-button>
  2060. </div> -->
  2061. </div>
  2062. </div>
  2063. </div>
  2064. </div>
  2065. <span slot="footer" class="dialog-footer">
  2066. <el-button @click="closePan(45)">取 消</el-button>
  2067. <el-button type="primary" @click="addTest">确 定</el-button>
  2068. </span>
  2069. </el-dialog>
  2070. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2071. :before-close="handleClose" class="dialog_diy addToolsDia">
  2072. <div class="toolChoose" style="padding: 0 0 0 30px">
  2073. <div class="tools">
  2074. <div class="leftTools" style="
  2075. width: 95%;
  2076. padding: 0 0 15px 0;
  2077. margin: 15px 0;
  2078. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2079. <div style="
  2080. display: flex;
  2081. flex-direction: row;
  2082. align-items: baseline;
  2083. flex-wrap: nowrap;
  2084. justify-content: flex-start;
  2085. position: relative;
  2086. ">
  2087. <div class="chooseWho">
  2088. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2089. 互动类
  2090. </div>
  2091. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2092. 思维类
  2093. </div>
  2094. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2095. 评价类
  2096. </div>
  2097. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2098. 其他
  2099. </div>
  2100. </div>
  2101. </div>
  2102. <div style="min-height: 163px">
  2103. <div class="toolSort" v-if="chapToolsType == 0">
  2104. <div class="tool">
  2105. <div class="whiteBIcon" @click="chapAddTools(8)">
  2106. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2107. <div style="margin: 5px 0">素材库</div>
  2108. </div>
  2109. <div class="check" @click="chapAddTools(8)">
  2110. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2111. <div class="checkDiv" v-else>
  2112. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. </div>
  2117. <div class="toolSort" v-if="chapToolsType == 1">
  2118. <div class="tool">
  2119. <div class="whiteBIcon" @click="chapAddTools(7)">
  2120. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2121. <div style="margin: 5px 0">思维网格</div>
  2122. </div>
  2123. <div class="check" @click="chapAddTools(7)">
  2124. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2125. <div class="checkDiv" v-else>
  2126. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div class="tool">
  2131. <div class="whiteBIcon" @click="chapAddTools(1)">
  2132. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2133. <div style="margin: 5px 0">电子白板</div>
  2134. </div>
  2135. <div class="check" @click="chapAddTools(1)">
  2136. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2137. <div class="checkDiv" v-else>
  2138. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <div class="tool">
  2143. <div class="whiteBIcon" @click="chapAddTools(2)">
  2144. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2145. <div style="margin: 5px 0">便签</div>
  2146. </div>
  2147. <div class="check" @click="chapAddTools(2)">
  2148. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2149. <div class="checkDiv" v-else>
  2150. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. <div class="tool">
  2155. <div class="whiteBIcon" @click="chapAddTools(6)">
  2156. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2157. <div style="margin: 5px 0">协同文档</div>
  2158. </div>
  2159. <div class="check" @click="chapAddTools(6)">
  2160. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2161. <div class="checkDiv" v-else>
  2162. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2163. </div>
  2164. </div>
  2165. </div>
  2166. <div class="tool">
  2167. <div class="whiteBIcon" @click="chapAddTools(3)">
  2168. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2169. <div style="margin: 5px 0">思维导图</div>
  2170. </div>
  2171. <div class="check" @click="chapAddTools(3)">
  2172. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2173. <div class="checkDiv" v-else>
  2174. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. <div class="tool">
  2179. <div class="whiteBIcon" @click="chapAddTools(31)">
  2180. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2181. <div style="margin: 5px 0">数学画板</div>
  2182. </div>
  2183. <div class="check" @click="chapAddTools(31)">
  2184. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2185. <div class="checkDiv" v-else>
  2186. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2187. </div>
  2188. </div>
  2189. </div>
  2190. </div>
  2191. <div class="toolSort" v-if="chapToolsType == 2">
  2192. <div class="tool">
  2193. <div class="whiteBIcon" @click="chapAddTools(5)">
  2194. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2195. <div style="margin: 5px 0">量规评分</div>
  2196. </div>
  2197. <div class="check" @click="chapAddTools(5)">
  2198. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2199. <div class="checkDiv" v-else>
  2200. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2201. </div>
  2202. </div>
  2203. </div>
  2204. <div class="tool">
  2205. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2206. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2207. <div style="margin: 5px 0">问卷调查</div>
  2208. </div>
  2209. <div class="check" @click="chapAddTools(4)">
  2210. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2211. <div class="checkDiv" v-else>
  2212. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2213. </div>
  2214. </div>
  2215. </div>
  2216. </div>
  2217. </div>
  2218. <div>
  2219. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2220. v-model="itemTools.toolDetail" />
  2221. </div>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <span slot="footer" class="dialog-footer">
  2226. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2227. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2228. </span>
  2229. </el-dialog>
  2230. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2231. :before-close="(done) => { closePan(15) }" class="dialog_diy">
  2232. <div>
  2233. <div class="a_add_title" style="
  2234. display: flex;
  2235. flex-direction: column;
  2236. align-items: flex-start;
  2237. justify-content: center;
  2238. ">
  2239. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2240. <!-- <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input> -->
  2241. <textarea rows="1" v-autoHeight="40" type="text" placeholder="请输入您要问的问题" class="binfo_input"
  2242. style="width: 100% !important;border:1px solid #DCDFE6" v-model="answerQ"></textarea>
  2243. </div>
  2244. </div>
  2245. <span slot="footer" class="dialog-footer">
  2246. <el-button @click="closePan(15)">取 消</el-button>
  2247. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2248. </span>
  2249. </el-dialog>
  2250. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2251. :before-close="handleClose" class="dialog_diy">
  2252. <div>
  2253. <div class="a_add_title" style="
  2254. display: flex;
  2255. flex-direction: column;
  2256. align-items: flex-start;
  2257. justify-content: center;
  2258. ">
  2259. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2260. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2261. </div>
  2262. </div>
  2263. <span slot="footer" class="dialog-footer">
  2264. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2265. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2266. </span>
  2267. </el-dialog>
  2268. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="600px"
  2269. :before-close="handleClose" class="dialog_diy">
  2270. <div>
  2271. <div class="fileCss" style="padding-top: 20px">
  2272. <div>
  2273. <button class="info_btn" @click="addImg($event)">
  2274. 选择本地文件
  2275. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2276. </button>
  2277. <div class="spanName">选择本地文件</div>
  2278. </div>
  2279. <!-- <div>
  2280. <el-button @click="getAllBanner" v-if="isSysPic == false">选择系统文件</el-button>
  2281. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2282. <img :src="cover[0].url" alt="" />
  2283. <div class="deletePic" @click="deleteSysPic">
  2284. <img src="../../../assets/icon/delete.png" alt="" />
  2285. </div>
  2286. </div>
  2287. <div class="spanName">选择系统文件</div>
  2288. </div> -->
  2289. <div>
  2290. <el-button @click="searchImageValue = courseName, resetImage()" v-if="isSysPic2 == false">选择网络文件</el-button>
  2291. <div class="isSysPic" v-if="isSysPic2 == true && cover.length > 0">
  2292. <img :src="cover[0].url" alt="" />
  2293. <div class="deletePic" @click="deleteSysPic">
  2294. <img src="../../../assets/icon/delete.png" alt="" />
  2295. </div>
  2296. </div>
  2297. <div class="spanName">选择网络文件</div>
  2298. </div>
  2299. </div>
  2300. <!-- <div class="fileCss">
  2301. <div>选择本地文件</div>
  2302. <div>选择系统文件</div>
  2303. </div> -->
  2304. </div>
  2305. <span slot="footer" class="dialog-footer">
  2306. <el-button @click="choosePicVisible = false">取 消</el-button>
  2307. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2308. </span>
  2309. </el-dialog>
  2310. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2311. :before-close="handleClose" class="dialog_diy">
  2312. <div class="cru_selectBox" style="margin: 0">
  2313. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2314. 绘画
  2315. </div>
  2316. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2317. 科技
  2318. </div>
  2319. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2320. 人文
  2321. </div>
  2322. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2323. 艺术
  2324. </div>
  2325. </div>
  2326. <div class="sysPicBox">
  2327. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2328. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2329. </div>
  2330. </div>
  2331. </el-dialog>
  2332. <el-dialog title="选择网络文件" :visible.sync="sysPicVisible2" :append-to-body="true" width="710px"
  2333. :before-close="handleClose" class="dialog_diy">
  2334. <div>
  2335. <div class="people_top_right" style="display: flex;align-items: center;">
  2336. <div style="position: relative; width: 100%;">
  2337. <el-input style="height: 100%" placeholder="搜索图片关键字" v-model="searchImageValue"
  2338. @keyup.enter.native="resetImage()"></el-input>
  2339. <div class="search_img" @click="resetImage" style="right: 10px;">
  2340. <img src="../../../assets/icon/search.png" alt />
  2341. </div>
  2342. </div>
  2343. <el-button type="primary" size="default" style="margin-left: 10px;" @click="changePicture">换一组</el-button>
  2344. </div>
  2345. <div class="sysPicBox" v-loading="imageloading">
  2346. <div class="picNone" v-if="!imageList.length">请输入关键词搜索图片</div>
  2347. <div v-for="(sys, sysIndex) in imageList" :key="sysIndex" class="sysPic">
  2348. <img :src="sys.url" alt="" @click="chooseSysPic2(sys.url)" />
  2349. </div>
  2350. </div>
  2351. </div>
  2352. </el-dialog>
  2353. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2354. :before-close="(done) => { closePan(41) }" class="dialog_diy dialog_diy3 fullStyle">
  2355. <div v-if="selectJson" style="height:100%">
  2356. <div class="select_box1" v-if="selectSteps == 1">
  2357. <div class="select_box1_img">
  2358. <div class="select_box1_title">
  2359. <span>上传题目图片</span><span>提示:请将所有题目上传为一张图片。</span>
  2360. </div>
  2361. <div class="select_box1_add_img">
  2362. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2363. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2364. <img src="../../../assets/icon/addPoster.png" alt="" />
  2365. </div>
  2366. <div class="isSysPic" v-else>
  2367. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2368. <div class="deletePic" @click="deleteSelectPic">
  2369. <img src="../../../assets/icon/delete.png" alt="" />
  2370. </div>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. <div class="select_box1_select">
  2375. <div class="select_box1_title">
  2376. <span>添加选项</span><span>提示:请输入以上题目的选项内容,此选项为所有题目共享。</span>
  2377. </div>
  2378. <div class="select_box1_select_box">
  2379. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2380. v-model="selectJson.select[checkIndex]" placeholder="请输入选项"
  2381. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2382. <div class="select_box1_select_box_add">
  2383. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2384. 添加</el-button>
  2385. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2386. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2387. </div>
  2388. </div>
  2389. </div>
  2390. </div>
  2391. <div v-if="selectSteps == 2" style="height:100%">
  2392. <div class="select_box2">
  2393. <div class="select_box2_title">设置每道题目的正确选项</div>
  2394. <div class="select_box2_box">
  2395. <div class="select_box2_img">
  2396. <img :src="selectJson.url" alt="" @click="previewImg(selectJson.url)" />
  2397. </div>
  2398. <div class="select_box2_answer">
  2399. <div class="select_answer_title">根据题目选择对应答案</div>
  2400. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2401. <span>{{ checkIndex + 1 }}、</span>
  2402. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2403. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2404. </el-option>
  2405. </el-select>
  2406. </div>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. </div>
  2411. </div>
  2412. <span slot="footer" class="dialog-footer">
  2413. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2414. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2415. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2416. </span>
  2417. </el-dialog>
  2418. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2419. :before-close="handleClose" class="dialog_diy">
  2420. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2421. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2422. <div class="pjCss" style="width: 100%">
  2423. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2424. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2425. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2426. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2427. <div class="remove" @click="deletRateList(eIndex)"></div>
  2428. <div style="width: 100%; display: flex">
  2429. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2430. <el-rate v-model="eItem.score" disabled></el-rate>
  2431. </div>
  2432. <div class="elist_inptu_text" style="align-items: flex-start">
  2433. <span style="min-width: 100px; text-align: right">描述:</span>
  2434. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2435. </div>
  2436. </div>
  2437. </div>
  2438. <div class="addToolFun" @click="addRateList()">
  2439. <div class="addToolImg">
  2440. <img src="../../../assets/icon/add.png" alt />
  2441. </div>
  2442. <div>添加</div>
  2443. </div>
  2444. </div>
  2445. </div>
  2446. <span slot="footer" class="dialog-footer">
  2447. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2448. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2449. </span>
  2450. </el-dialog>
  2451. <el-dialog title="排序设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2452. :before-close="(done) => { closePan(47) }" class="dialog_diy dialog_diy3 fullStyle">
  2453. <div style="height: 100%;">
  2454. <div class="sentenBox" style="height: 100%;">
  2455. <div class="addSen" @click="addSt">添加题目</div>
  2456. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" class="sentenContent">
  2457. <div class="sentenTopBox">
  2458. <div class="sentenTop" :index="stIndex + 1">
  2459. <div>题目设置</div>
  2460. <div>
  2461. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle" :maxlength="10"></el-input>
  2462. </div>
  2463. <div @click="addSen(stIndex)">添加</div>
  2464. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2465. </div>
  2466. </div>
  2467. <div class="cardList">
  2468. <div v-if="st.addSentence.length > 0" class="cardBox">
  2469. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2470. @click="setRightAnswer(s, stIndex, sIndex)">
  2471. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2472. <div>{{ s }}</div>
  2473. </el-tooltip>
  2474. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2475. <img src="../../../assets/icon/delete.png" alt="" />
  2476. </div>
  2477. </div>
  2478. </div>
  2479. <div class="card">
  2480. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2481. </div>
  2482. </div>
  2483. <div class="rightCardBox">
  2484. <div>正确顺序</div>
  2485. <div class="rightCardList">
  2486. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2487. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2488. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2489. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2490. <div>{{ r }}</div>
  2491. </el-tooltip>
  2492. </div>
  2493. <div>{{ rIndex + 1 }}</div>
  2494. </div>
  2495. </div>
  2496. <div class="card" v-if="st.rightAnswer.length == 0">
  2497. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2498. </div>
  2499. <div class="card" v-else>
  2500. <img src="../../../assets/icon/conSentences/clickNo.png" alt="" />
  2501. </div>
  2502. </div>
  2503. </div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. <span slot="footer" class="dialog-footer">
  2508. <el-button @click="closePan(47)">取 消</el-button>
  2509. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2510. </span>
  2511. </el-dialog>
  2512. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2513. :before-close="handleClose" class="dialog_diy">
  2514. <el-form>
  2515. <!-- <el-form-item label="文本标题">
  2516. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2517. </el-form-item> -->
  2518. <div>表格内容</div>
  2519. <Table v-model="tableJson.text" @change="change"></Table>
  2520. </el-form>
  2521. <span slot="footer" class="dialog-footer">
  2522. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2523. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2524. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2525. </span>
  2526. </el-dialog>
  2527. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2528. :before-close="handleClose" class="dialog_diy">
  2529. <el-form>
  2530. <!-- <el-form-item label="文本标题">
  2531. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2532. </el-form-item> -->
  2533. <div>文档内容</div>
  2534. <editor-bar v-model="wordJson.text"></editor-bar>
  2535. </el-form>
  2536. <span slot="footer" class="dialog-footer">
  2537. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2538. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2539. </span>
  2540. </el-dialog>
  2541. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2542. :before-close="handleClose" class="dialog_diy">
  2543. <div style="
  2544. width: 100%;
  2545. display: flex;
  2546. flex-direction: row;
  2547. flex-wrap: nowrap;
  2548. align-items: center;
  2549. justify-content: center;
  2550. ">
  2551. <div>班级:</div>
  2552. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2553. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2554. </el-option>
  2555. </el-select>
  2556. </div>
  2557. <span slot="footer" class="dialog-footer">
  2558. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2559. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2560. </span>
  2561. </el-dialog>
  2562. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2563. :before-close="handleClose" class="dialog_diy">
  2564. <div style="
  2565. width: 100%;
  2566. display: flex;
  2567. flex-direction: row;
  2568. flex-wrap: nowrap;
  2569. align-items: center;
  2570. justify-content: center;
  2571. ">
  2572. <div>随机码:</div>
  2573. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2574. </div>
  2575. <span slot="footer" class="dialog-footer">
  2576. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2577. <el-button type="primary" @click="addInvite">确定</el-button>
  2578. </span>
  2579. </el-dialog>
  2580. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="450px"
  2581. :before-close="handleClose" class="dialog_diy">
  2582. <div>
  2583. <div style="margin-bottom: 20px;color: #999;">提示:点击“+”或“-”修改倒计时时长。</div>
  2584. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  2585. </div>
  2586. <span slot="footer" class="dialog-footer">
  2587. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  2588. <el-button type="primary" @click="addPreTime">确定</el-button>
  2589. </span>
  2590. </el-dialog>
  2591. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  2592. class="dialog_diy">
  2593. <div>
  2594. <div style="
  2595. width: 100%;
  2596. display: flex;
  2597. flex-direction: row;
  2598. flex-wrap: nowrap;
  2599. align-content: center;
  2600. align-items: center;
  2601. justify-content: space-between;
  2602. ">
  2603. <div style="
  2604. display: flex;
  2605. flex-flow: row nowrap;
  2606. align-items: flex-start;
  2607. width: 100%;
  2608. flex-direction: column;
  2609. flex-wrap: nowrap;
  2610. position: relative;
  2611. ">
  2612. <div class="e_box">
  2613. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  2614. <div class="e_card_picture">
  2615. <img src="../../../assets/e_picture.png" />
  2616. </div>
  2617. <div class="e_card_name">
  2618. <span>{{ item.title }}</span>
  2619. </div>
  2620. <div class="e_card_btn">
  2621. <span @click="checkEva(item.id, 2)">导入</span>
  2622. </div>
  2623. </div>
  2624. <div class="addEva" @click="openT">
  2625. <img src="../../../assets/icon/addEva.png" alt="" />
  2626. </div>
  2627. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  2628. 暂无数据
  2629. </div>
  2630. </div>
  2631. </div>
  2632. </div>
  2633. </div>
  2634. <span slot="footer" class="dialog-footer">
  2635. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  2636. </span>
  2637. </el-dialog>
  2638. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  2639. :before-close="handleClose" class="dialog_diy">
  2640. <div class="groupBox">
  2641. <div v-if="groupJson.group" class="groupContent">
  2642. <div class="groupTitle">请设置小组数量及名称</div>
  2643. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  2644. <span class="groupn">第{{ index + 1 }}组名称:</span>
  2645. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2646. <div class="groupBtn">
  2647. <el-button type="primary" size="small" @click="addGroup(index)" v-if="groupJson.group.length - 1 == index">
  2648. 添加</el-button>
  2649. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2650. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  2651. </div>
  2652. </div>
  2653. </div>
  2654. <div class="groupContent">
  2655. <div class="groupTitle">请设置每组人数</div>
  2656. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2657. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2658. <el-input v-model="groupJson.number" style="width:150px" placeholder="请输入2-10的数字"
  2659. @change="numberPan"></el-input>
  2660. </div>
  2661. </div>
  2662. <span slot="footer" class="dialog-footer">
  2663. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  2664. <el-button type="primary" @click="addGroupJson">确定</el-button>
  2665. </span>
  2666. </el-dialog>
  2667. <el-dialog title="修改名称" :visible.sync="dialogVisibleupdataVideoT" :append-to-body="true" width="500px"
  2668. :before-close="handleClose" class="dialog_diy">
  2669. <div style="
  2670. width: 100%;
  2671. display: flex;
  2672. flex-direction: row;
  2673. flex-wrap: nowrap;
  2674. align-items: center;
  2675. justify-content: center;
  2676. ">
  2677. <div style="min-width: fit-content;">文件名称:</div>
  2678. <el-input v-model="line" placeholder="请输入要修改的名称"></el-input>
  2679. </div>
  2680. <span slot="footer" class="dialog-footer">
  2681. <el-button @click="dialogVisibleupdataVideoT = false">取 消</el-button>
  2682. <el-button type="primary" @click="updataVideoC">确 定</el-button>
  2683. </span>
  2684. </el-dialog>
  2685. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  2686. </div>
  2687. </template>
  2688. <script>
  2689. import "../../../common/aws-sdk-2.235.1.min.js";
  2690. import { tools as toolsData } from "../../../common/tools.js";
  2691. import $ from "jquery";
  2692. import EditorBar from "../../../components/tools/wangEnduit";
  2693. import Table from "../../../components/tools/table";
  2694. import Mind from "../../tools/jsmind2";
  2695. import Time from "../../tools/time.vue";
  2696. import Sunburst from "../../tools/sunburst";
  2697. import SeeBoard from "../../tools/seeBoard";
  2698. import weilaiData from "../components/weilai.js";
  2699. import sourceDialog from "../teacherSource/dialog.vue";
  2700. import interVideo from "../interVideo/index.vue";
  2701. import groupBox from "./group/group.vue"
  2702. export default {
  2703. components: {
  2704. EditorBar,
  2705. Mind,
  2706. Time,
  2707. Sunburst,
  2708. SeeBoard,
  2709. Table,
  2710. sourceDialog,
  2711. interVideo,
  2712. groupBox
  2713. },
  2714. data() {
  2715. return {
  2716. checkAll: false,
  2717. chooseType: 1,
  2718. checkedCities: [],
  2719. isIndeterminate: true,
  2720. isSysPic: false,
  2721. isSysPic2: false,
  2722. steps: 1,
  2723. nbOrder: 0,
  2724. courseId: "",
  2725. chapToolsType: 0,
  2726. chapTools: [
  2727. {
  2728. tools: [],
  2729. toolDetail: "",
  2730. },
  2731. ],
  2732. line: "",
  2733. lineTitle: "",
  2734. sysPic: [],
  2735. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2736. sentenceList2: [],
  2737. isPushTitleList: [],
  2738. lineCount: 0,
  2739. lineType: 0,
  2740. chapCount: 0,
  2741. courseName: "",
  2742. isTeacherSee: true,
  2743. courseText: "",
  2744. preTime: 0,
  2745. formLabelWidth: "100px",
  2746. choosePicVisible: false,
  2747. sysPicVisible: false,
  2748. uploadLoading1: false,
  2749. noneBtnImg: false,
  2750. updateBoolean2: false,
  2751. unitIndex: 0,
  2752. taskCount: 0,
  2753. dialogVisible: false,
  2754. dialogVisible1: false,
  2755. dialogVisible2: false,
  2756. dialogVisible3: false,
  2757. dialogVisible4: false,
  2758. dialogVisible5: false,
  2759. dialogVisible6: false,
  2760. dialogVisible7: false,
  2761. dialogVisible8: false,
  2762. dialogVisible9: false,
  2763. dialogVisibleClass: false,
  2764. dialogVisibleMember: false,
  2765. dialogVisibleMp3: false,
  2766. dialogVisibleSelect: false,
  2767. dialogVisibleSentence: false,
  2768. dialogVisibleRate: false,
  2769. dialogVisibleChoice: false,
  2770. dialogVisiblemb: false,
  2771. dialogVisibleInvite: false,
  2772. dialogVisibleSource: false,
  2773. dialogVisibleVideo: false,
  2774. dialogVisibleupdataVideoT: false,
  2775. isClickColor: 1,
  2776. toolIndexType: "",
  2777. publicTool: 0,
  2778. searchPeople: "",
  2779. searchTN: "",
  2780. userid: this.$route.query.userid,
  2781. oid: this.$route.query.oid,
  2782. org: this.$route.query.org,
  2783. role: this.$route.query.role,
  2784. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  2785. dialogVisibleTable: false,
  2786. dialogVisibleWord: false,
  2787. tableJson: { text: "" },
  2788. wordJson: { text: "" },
  2789. dialogVisibleMoreUpload: false,
  2790. dialogVisiblePreTime: false,
  2791. uploadJson: [],
  2792. classJuri: [],
  2793. gradeList: [],
  2794. cover: [], //课程封面
  2795. myWord: [],
  2796. evaJuri: [],
  2797. evalua: "",
  2798. targetArray: [],
  2799. eTitle: "",
  2800. eJson: {},
  2801. fid: "", //一级
  2802. sid: "", //二级
  2803. tid: "", //二级
  2804. typeMode: 1,
  2805. eJSONNum: 0,
  2806. data: {
  2807. meta: {
  2808. name: "example",
  2809. author: "dd@163.com",
  2810. version: "0.2",
  2811. },
  2812. format: "node_array",
  2813. data: [{ id: "root", isroot: true, topic: "" }],
  2814. },
  2815. askJson: {
  2816. askCount: 1,
  2817. askTitle: "",
  2818. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2819. },
  2820. askJson2: {},
  2821. testJson: {},
  2822. testJson2: {},
  2823. selectJson: {},
  2824. selectJson2: {},
  2825. rateJson: [],
  2826. unitJson2: [],
  2827. unitJson: [
  2828. {
  2829. dyName: "", //单元标题
  2830. chapterInfo: [
  2831. {
  2832. isread: false,
  2833. chapterid: this.guid(),
  2834. title: "",
  2835. courseName: "",
  2836. taskJson: [
  2837. {
  2838. task: "",
  2839. taskDetail: "",
  2840. chapterData: [],
  2841. toolChoose: [
  2842. {
  2843. tool: [],
  2844. toolDetail: "",
  2845. toolType: 0,
  2846. askCount: 1,
  2847. askTitle: "",
  2848. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2849. },
  2850. ],
  2851. toolText: "",
  2852. isShowTools: false,
  2853. askCount: 1,
  2854. isFold: 0,
  2855. askTitle: "",
  2856. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2857. checkJson: [{ checkCount: [], checkPerent: [] }],
  2858. homeworkList: [],
  2859. },
  2860. ],
  2861. itemCount: 1,
  2862. fileList1: [],
  2863. video: [],
  2864. testData: [],
  2865. pData: [],
  2866. templateArray: [],
  2867. },
  2868. ],
  2869. },
  2870. ],
  2871. studentJuri: [],
  2872. teacherJuri: [],
  2873. checkboxList: [],
  2874. checkboxList2: [],
  2875. checkboxList3: [],
  2876. courseDetail: "",
  2877. classList: [],
  2878. classSearch: "",
  2879. gradeId: "",
  2880. number: "",
  2881. tTitle: "",
  2882. tdetail: "",
  2883. templateC: {},
  2884. AttText: {},
  2885. AttTextType: 0,
  2886. AttTextIndex: 0,
  2887. cTemplate: "",
  2888. CourseType: [],
  2889. CourseType2: [],
  2890. CourseTypeJson: {},
  2891. courseTypeId: [],
  2892. courseTypeSon: [],
  2893. clearArray: [],
  2894. pTypeCheck: [],
  2895. pTypeCheckName: [],
  2896. loading: false,
  2897. toolType: 0,
  2898. inputShow: true,
  2899. inputShow2: true,
  2900. toolIndex: 0,
  2901. cidType: 0,
  2902. answerQ: "",
  2903. answerQ2: "",
  2904. grade: [],
  2905. grade2: [],
  2906. courseUserid: "",
  2907. timer: null,
  2908. timer2: null,
  2909. pasteTimer: null,
  2910. checkId: "",
  2911. isDelete: 1,
  2912. addindex: 0,
  2913. selectSteps: 1,
  2914. groupJson: {},
  2915. dialogVisibleGroup: false,
  2916. rightBoxHeight: 0,
  2917. ManAarray: [],
  2918. checkBoolean: false,
  2919. inviteCode: [],
  2920. inviteId: "",
  2921. icode: "",
  2922. easyArray: [2, 4],
  2923. sourceData: {},
  2924. updateSourcePan: false,
  2925. videoJson: {},
  2926. isBtnDisplay: false,
  2927. isPasteTask: false,
  2928. isPasteChoice: false,
  2929. sysPicVisible2: false,
  2930. imageloading: false,
  2931. searchImageValue: "",
  2932. ppage: 1,
  2933. imageList: [],
  2934. heightPx: '100%',
  2935. toolsData: toolsData,
  2936. pageSize: 20,
  2937. total: 0,
  2938. page: 0,
  2939. isLoading2: false,
  2940. };
  2941. },
  2942. directives: {
  2943. autoHeight: {
  2944. update(el, binding) {
  2945. const { value } = binding
  2946. if (value && typeof value === 'number') {
  2947. el.style.height = `${value}px`
  2948. } else {
  2949. el.style.height = 'auto'
  2950. }
  2951. },
  2952. componentUpdated(el) {
  2953. el.style.height = `${el.scrollHeight + 5}px`
  2954. },
  2955. },
  2956. },
  2957. computed: {
  2958. // rightBoxHeight: function () {
  2959. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  2960. // },
  2961. offsetLetfPx: function () {
  2962. //addnum可以直接在模板语法里面用,相当于data内的值
  2963. return (
  2964. $(".cru_select")[this.unitIndex] &&
  2965. $(".cru_select")[this.unitIndex].offsetLeft
  2966. );
  2967. },
  2968. getMan2() {
  2969. return function (people) {
  2970. let _people = people;
  2971. let _people2 = "";
  2972. if (this.ManAarray.length) {
  2973. for (var i = 0; i < this.ManAarray.length; i++) {
  2974. if (this.ManAarray[i].userid == people) {
  2975. _people2 = this.ManAarray[i].name;
  2976. break;
  2977. }
  2978. }
  2979. }
  2980. if (people == this.courseUserid) {
  2981. return "";
  2982. }
  2983. return this.ManAarray.length ? _people2 : "";
  2984. };
  2985. },
  2986. getListMan2() {
  2987. return function (list) {
  2988. let _people2 = [];
  2989. if (this.ManAarray.length) {
  2990. for (var j = 0; j < list.length; j++) {
  2991. let people = list[j];
  2992. for (var i = 0; i < this.ManAarray.length; i++) {
  2993. if (this.ManAarray[i].userid == people && people != this.courseUserid) {
  2994. _people2.push(this.ManAarray[i].name);
  2995. break;
  2996. }
  2997. }
  2998. }
  2999. }
  3000. return this.ManAarray.length ? _people2.join("、") : "";
  3001. };
  3002. },
  3003. isInvite() {
  3004. return function (cid) {
  3005. let array = [];
  3006. for (var i = 0; i < this.inviteCode.length; i++) {
  3007. array.push(this.inviteCode[i].cid);
  3008. }
  3009. return array.indexOf(cid) != -1;
  3010. };
  3011. },
  3012. getInviteCodeC() {
  3013. return function (cid) {
  3014. let array = [];
  3015. for (var i = 0; i < this.inviteCode.length; i++) {
  3016. array.push(this.inviteCode[i].cid);
  3017. }
  3018. return this.inviteCode[array.indexOf(cid)].ic;
  3019. };
  3020. },
  3021. getClassC() {
  3022. return function (c) {
  3023. let _c2 = "";
  3024. if (this.grade.length) {
  3025. for (var i = 0; i < this.grade.length; i++) {
  3026. if (this.grade[i].id == c) {
  3027. _c2 = this.grade[i].name;
  3028. break;
  3029. }
  3030. }
  3031. }
  3032. return this.grade.length ? _c2 : "";
  3033. };
  3034. },
  3035. getListClassC() {
  3036. return function (list) {
  3037. let _c2 = [];
  3038. if (this.grade.length) {
  3039. for (var j = 0; j < list.length; j++) {
  3040. let c = list[j]
  3041. for (var i = 0; i < this.grade.length; i++) {
  3042. if (this.grade[i].id == c) {
  3043. _c2.push(this.grade[i].name);
  3044. break;
  3045. }
  3046. }
  3047. }
  3048. }
  3049. return this.grade.length ? _c2.join('、') : "";
  3050. };
  3051. },
  3052. },
  3053. watch: {
  3054. checkboxList2(newValue, oldValue) {
  3055. if (this.grade.length && newValue) {
  3056. this.classList = []
  3057. for (var j = 0; j < this.grade.length; j++) {
  3058. if (newValue.indexOf(this.grade[j].id) !== -1) {
  3059. this.classList.push(this.grade[j])
  3060. }
  3061. }
  3062. }
  3063. },
  3064. unitIndex(newValue, oldValue) {
  3065. if (this.isDelete == 2) {
  3066. this.isDelete = 1;
  3067. return;
  3068. }
  3069. if (this.cid != "") {
  3070. let _unitIndex = oldValue;
  3071. if (
  3072. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3073. JSON.stringify(this.unitJson[_unitIndex])
  3074. ) {
  3075. this.$refs.rightboxR.scrollTop = 0;
  3076. return;
  3077. }
  3078. let cPan = 1;
  3079. for (
  3080. var j = 0;
  3081. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3082. j++
  3083. ) {
  3084. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3085. j
  3086. ].proVisible = false;
  3087. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3088. j
  3089. ].proVisible2 = false;
  3090. if (
  3091. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3092. .length > 1
  3093. ) {
  3094. for (
  3095. var z = 0;
  3096. z <
  3097. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3098. .length;
  3099. z++
  3100. ) {
  3101. if (
  3102. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3103. .toolChoose[z].tool.length
  3104. ) {
  3105. this.$message.error("请把工具添加完整");
  3106. cPan = 2;
  3107. break;
  3108. }
  3109. }
  3110. }
  3111. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3112. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3113. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3114. (ele) => {
  3115. return ele.value != "";
  3116. }
  3117. );
  3118. }
  3119. }
  3120. if (cPan == 2) {
  3121. this.unitIndex = oldValue;
  3122. return;
  3123. }
  3124. for (var i = 0; i < this.unitJson.length; i++) {
  3125. if (this.addindex != i) {
  3126. delete this.unitJson[i].isUpdate;
  3127. }
  3128. }
  3129. this.$refs.rightboxR.scrollTop = 0;
  3130. this.addindex = -1;
  3131. let params = [
  3132. {
  3133. cid: this.cid,
  3134. chapters: JSON.stringify(this.unitJson),
  3135. uid: this.userid,
  3136. unitIndex: _unitIndex,
  3137. },
  3138. ];
  3139. this.ajax
  3140. .post(this.$store.state.api + "updateWorkNew4", params)
  3141. .then((res) => {
  3142. // this.$message({
  3143. // message: "修改成功",
  3144. // type: "success",
  3145. // });
  3146. // this.courseId = this.cid;
  3147. })
  3148. .catch((err) => {
  3149. this.$message.error("网络不佳");
  3150. console.error(err);
  3151. });
  3152. }
  3153. },
  3154. steps(newValue) {
  3155. if (newValue == 4) {
  3156. this.goTo(
  3157. "/synergyCourse?userid=" +
  3158. this.userid +
  3159. "&oid=" +
  3160. this.oid +
  3161. "&org=" +
  3162. this.org +
  3163. "&role=" +
  3164. this.role
  3165. );
  3166. }
  3167. },
  3168. },
  3169. methods: {
  3170. handleCurrentChange(val) {
  3171. // console.log(`当前页: ${val}`);
  3172. this.page = val;
  3173. this.getTeacher();
  3174. },
  3175. openAI() {
  3176. window.parent.postMessage({ tools: "64" }, "*");
  3177. },
  3178. setMan() {
  3179. // let teacherJuri = this.teacherJuri2;
  3180. this.ManAarray = [];
  3181. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3182. if (_user.indexOf(this.userid) == -1) {
  3183. _user.push(this.userid);
  3184. }
  3185. if (_user.indexOf(this.courseUserid) == -1) {
  3186. _user.push(this.courseUserid);
  3187. }
  3188. let params = {
  3189. uid: _user.join(","),
  3190. };
  3191. this.ajax
  3192. .get(this.$store.state.api + "getAllUserById", params)
  3193. .then((res) => {
  3194. let teacherJuri = res.data[0];
  3195. this.ManAarray = teacherJuri;
  3196. })
  3197. .catch((err) => {
  3198. console.error(err);
  3199. });
  3200. },
  3201. previewImg(url) {
  3202. this.$hevueImgPreview(url);
  3203. },
  3204. btnDisplay(bool) {
  3205. this.isBtnDisplay = bool
  3206. },
  3207. scrollChange() {
  3208. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3209. // document.querySelector('.course_left').scrollHeight
  3210. // document.querySelector('.stepsBottom2').scrollHeight
  3211. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  3212. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3213. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  3214. let maxheight = $('.whiteBg')[0].offsetHeight + $('.whiteBg')[1].offsetHeight + 120
  3215. let top = $(".rightBox")[0].scrollTop - maxheight;
  3216. // if (top < client) {
  3217. // $('.stepsBottom2')[0].style.position = 'absolute'
  3218. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3219. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3220. // } else
  3221. if (top > 0) {
  3222. let top = $(".rightBox")[0].offsetTop;
  3223. $(".stepsBottom2")[0].style.position = "fixed";
  3224. $(".stepsBottom2")[0].style.top = top + "px";
  3225. this.heightPx = $(".rightBox")[0].offsetHeight - 40 + 'px'
  3226. // $('.stepsBottom2')[0].style.top = top + 'px'
  3227. } else {
  3228. $(".stepsBottom2")[0].style.position = "absolute";
  3229. $(".stepsBottom2")[0].style.top = "0px";
  3230. this.heightPx = $(".basic_box2")[0].offsetHeight - 50 + 'px'
  3231. }
  3232. const clientHeight = $(".rightBox")[0].clientHeight;
  3233. const scrollTop = $(".rightBox")[0].scrollTop;
  3234. const scrollHeight = $(".rightBox")[0].scrollHeight;
  3235. if ((clientHeight + scrollTop > (scrollHeight - 10)) && (top > 0)) {
  3236. this.heightPx = $(".rightBox")[0].offsetHeight - 130 + 'px'
  3237. }
  3238. },
  3239. handleCheckAllChange(val) {
  3240. this.checkedCities = val ? cityOptions : [];
  3241. this.isIndeterminate = false;
  3242. },
  3243. handleCheckedCitiesChange(value) {
  3244. let checkedCount = value.length;
  3245. this.checkAll = checkedCount === this.cities.length;
  3246. this.isIndeterminate =
  3247. checkedCount > 0 && checkedCount < this.cities.length;
  3248. },
  3249. addHw(e) {
  3250. var el = e.currentTarget;
  3251. el.getElementsByTagName("input")[0].click();
  3252. },
  3253. change(val) {
  3254. if (this.dialogVisible1) {
  3255. this.tdetail = val
  3256. } else if (this.dialogVisible6) {
  3257. this.AttText.text = val
  3258. } else if (this.dialogVisible2) {
  3259. this.cTemplate = val
  3260. } else if (this.dialogVisibleTable) {
  3261. this.tableJson.text = val
  3262. }
  3263. this.$forceUpdate();
  3264. console.log(val);
  3265. },
  3266. change2(val) {
  3267. console.log(val);
  3268. this.$forceUpdate();
  3269. },
  3270. handleClose(done) {
  3271. done();
  3272. },
  3273. closePan(tool) {
  3274. if (tool == 15) {
  3275. if (JSON.stringify(this.answerQ) == JSON.stringify(this.answerQ2)) {
  3276. this.dialogVisible8 = false
  3277. } else {
  3278. this.closeConfirm(tool);
  3279. }
  3280. } else if (tool == 4) {
  3281. if (JSON.stringify(this.askJson) == JSON.stringify(this.askJson2)) {
  3282. this.dialogVisible5 = false
  3283. } else {
  3284. this.closeConfirm(tool);
  3285. }
  3286. } else if (tool == 45) {
  3287. if (JSON.stringify(this.testJson) == JSON.stringify(this.testJson2)) {
  3288. this.dialogVisibleChoice = false
  3289. } else {
  3290. this.closeConfirm(tool);
  3291. }
  3292. } else if (tool == 41) {
  3293. if (JSON.stringify(this.selectJson) == JSON.stringify(this.selectJson2)) {
  3294. this.dialogVisibleSelect = false
  3295. } else {
  3296. this.closeConfirm(tool);
  3297. }
  3298. } else if (tool == 47) {
  3299. if (JSON.stringify(this.sentenceList) == JSON.stringify(this.sentenceList2)) {
  3300. this.dialogVisibleSentence = false
  3301. } else {
  3302. this.closeConfirm(tool);
  3303. }
  3304. }
  3305. },
  3306. closeConfirm(tool) {
  3307. this
  3308. .$confirm("是否保存已编辑内容?", "提示", {
  3309. confirmButtonText: "保存",
  3310. cancelButtonText: "不保存",
  3311. distinguishCancelAndClose: true,
  3312. type: "warning",
  3313. })
  3314. .then(() => {
  3315. if (tool == 15) {
  3316. this.addAnswer();
  3317. } else if (tool == 4) {
  3318. this.addAsk();
  3319. } else if (tool == 45) {
  3320. this.addTest();
  3321. } else if (tool == 41) {
  3322. this.addSelectAnswer();
  3323. } else if (tool == 47) {
  3324. this.addSentenceTool();
  3325. }
  3326. })
  3327. .catch(() => {
  3328. if (tool == 15) {
  3329. this.dialogVisible8 = false;
  3330. } else if (tool == 4) {
  3331. this.dialogVisible5 = false;
  3332. } else if (tool == 45) {
  3333. this.dialogVisibleChoice = false;
  3334. } else if (tool == 41) {
  3335. this.dialogVisibleSelect = false;
  3336. } else if (tool == 47) {
  3337. this.dialogVisibleSentence = false;
  3338. }
  3339. });
  3340. },
  3341. imgChange2(i, j) {
  3342. var _tmp = this.testJson.testJson[i].checkList[j];
  3343. this.noneBtnImg = _tmp.length >= 1;
  3344. },
  3345. imgChange3(i) {
  3346. var _tmp = this.testJson.testJson[i];
  3347. this.noneBtnImg = _tmp.length >= 1;
  3348. },
  3349. imgChange1(file, fileList, type, itemTaskIndex) {
  3350. if (type == 1) {
  3351. var _tmp = this.cover;
  3352. } else if (
  3353. type == 2 ||
  3354. type == 3 ||
  3355. type == 6 ||
  3356. type == 7 ||
  3357. type == 8
  3358. ) {
  3359. var _tmp =
  3360. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3361. .chapterData;
  3362. } else if (type == 4) {
  3363. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3364. } else {
  3365. var _tmp =
  3366. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3367. .homeworkList;
  3368. }
  3369. this.noneBtnImg = _tmp.length >= 1;
  3370. },
  3371. goTo(path) {
  3372. this.$router.push(path);
  3373. },
  3374. guid() {
  3375. var _num,
  3376. i,
  3377. _guid = "";
  3378. for (i = 0; i < 32; i++) {
  3379. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3380. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3381. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3382. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3383. _guid += "-";
  3384. }
  3385. }
  3386. return _guid;
  3387. },
  3388. lastSteps() {
  3389. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  3390. this.goTo(
  3391. "/synergyCourse?userid=" +
  3392. this.userid +
  3393. "&oid=" +
  3394. this.oid +
  3395. "&org=" +
  3396. this.org +
  3397. "&role=" +
  3398. this.role
  3399. );
  3400. } else {
  3401. this
  3402. .$confirm("是否保存已编辑内容?", "提示", {
  3403. confirmButtonText: "保存",
  3404. cancelButtonText: "不保存",
  3405. distinguishCancelAndClose: true,
  3406. type: "warning",
  3407. })
  3408. .then(() => {
  3409. if (this.cid == "" || this.cid == undefined) {
  3410. if (this.courseName == "") {
  3411. this.$message.error("请补充填写课程名称");
  3412. return;
  3413. } else {
  3414. this.addWork();
  3415. }
  3416. } else {
  3417. if (this.courseName == "") {
  3418. this.$message.error("请补充填写课程名称");
  3419. return;
  3420. } else {
  3421. // if (this.userid != this.courseUserid && this.role != "1") {
  3422. // this.updateWork2();
  3423. // } else {
  3424. this.updateWork();
  3425. // }
  3426. }
  3427. }
  3428. })
  3429. .catch((v) => {
  3430. console.log(v)
  3431. if (v == "cancel") {
  3432. this.goTo(
  3433. "/synergyCourse?userid=" +
  3434. this.userid +
  3435. "&oid=" +
  3436. this.oid +
  3437. "&org=" +
  3438. this.org +
  3439. "&role=" +
  3440. this.role
  3441. );
  3442. }
  3443. });
  3444. }
  3445. },
  3446. nextSteps() {
  3447. if (this.cid == "" || this.cid == undefined) {
  3448. if (this.courseName == "") {
  3449. this.$message.error("请补充填写课程名称");
  3450. return;
  3451. } else {
  3452. this.addWork();
  3453. }
  3454. } else {
  3455. if (this.courseName == "") {
  3456. this.$message.error("请补充填写课程名称");
  3457. return;
  3458. } else {
  3459. // if (this.userid != this.courseUserid && this.role != "1") {
  3460. // this.updateWork2();
  3461. // } else {
  3462. this.updateWork();
  3463. // }
  3464. }
  3465. }
  3466. this.$refs.stepBox.scrollTop = 0;
  3467. },
  3468. changeName() {
  3469. if (this.cid == "" || this.cid == undefined) {
  3470. if (this.courseName == "") {
  3471. this.$message.error("请补充填写课程名称");
  3472. return;
  3473. } else {
  3474. this.addWork(2);
  3475. }
  3476. } else {
  3477. if (this.courseName == "") {
  3478. this.$message.error("请补充填写课程名称");
  3479. return;
  3480. } else {
  3481. this.updateWork(2);
  3482. }
  3483. }
  3484. },
  3485. unitSet(i) {
  3486. this.unitIndex = i;
  3487. // this.$refs.rightboxR.scrollTop = 0;
  3488. },
  3489. time() {
  3490. if (!this.now) {
  3491. this.now = new Date().getTime();
  3492. return true;
  3493. } else {
  3494. let time = new Date().getTime();
  3495. if (time - this.now > 3000) {
  3496. this.now = time;
  3497. return true;
  3498. } else {
  3499. return false;
  3500. }
  3501. }
  3502. },
  3503. deleteUnit(i) {
  3504. var _this = this;
  3505. if (_this.time()) {
  3506. _this
  3507. .$confirm("确定删除此单元吗?", "提示", {
  3508. confirmButtonText: "确定",
  3509. cancelButtonText: "取消",
  3510. type: "warning",
  3511. })
  3512. .then(() => {
  3513. _this.isDelete = 2;
  3514. // _this.unitIndex = _this.unitIndex - 1;
  3515. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3516. // _this.$message.success("删除成功");
  3517. })
  3518. .catch(() => {
  3519. return;
  3520. });
  3521. }
  3522. },
  3523. deleteWork(chapid) {
  3524. let params = [
  3525. {
  3526. cid: this.cid,
  3527. chapters: JSON.stringify(this.unitJson),
  3528. uid: this.userid,
  3529. chapid: chapid,
  3530. },
  3531. ];
  3532. this.ajax
  3533. .post(this.$store.state.api + "deleteWork", params)
  3534. .then((res) => {
  3535. this.$message({
  3536. message: "删除成功",
  3537. type: "success",
  3538. });
  3539. this.unitJson.splice(this.unitIndex, 1);
  3540. this.unitIndex = this.unitIndex - 1;
  3541. })
  3542. .catch((err) => {
  3543. this.$message.error("网络不佳");
  3544. console.error(err);
  3545. });
  3546. },
  3547. deleteTool(itemTaskIndex, i) {
  3548. var _this = this;
  3549. if (_this.time()) {
  3550. _this
  3551. .$confirm("确定删除此工具吗?", "提示", {
  3552. confirmButtonText: "确定",
  3553. cancelButtonText: "取消",
  3554. type: "warning",
  3555. })
  3556. .then(() => {
  3557. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3558. itemTaskIndex
  3559. ].toolChoose.splice(i, 1);
  3560. _this.$message.success("删除成功");
  3561. })
  3562. .catch(() => {
  3563. return;
  3564. });
  3565. }
  3566. },
  3567. deleteSentence(i) {
  3568. var _this = this;
  3569. _this
  3570. .$confirm("确定删除此题目吗?", "提示", {
  3571. confirmButtonText: "确定",
  3572. cancelButtonText: "取消",
  3573. type: "warning",
  3574. })
  3575. .then(() => {
  3576. _this.sentenceList.splice(i, 1);
  3577. _this.$message.success("删除成功");
  3578. })
  3579. .catch(() => {
  3580. return;
  3581. });
  3582. },
  3583. deleteS(s, i, j) {
  3584. this.sentenceList[i].addSentence.splice(j, 1);
  3585. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3586. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3587. this.sentenceList[i].rightAnswer.splice(a, 1);
  3588. }
  3589. },
  3590. openT() {
  3591. window.parent.postMessage({ tools: "25" }, "*");
  3592. },
  3593. deleteTask(i) {
  3594. var _this = this;
  3595. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3596. _this
  3597. .$confirm("确定删除此任务吗?", "提示", {
  3598. confirmButtonText: "确定",
  3599. cancelButtonText: "取消",
  3600. type: "warning",
  3601. })
  3602. .then(() => {
  3603. if (i == 0) {
  3604. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3605. i + 1
  3606. ].chapterData = JSON.parse(
  3607. JSON.stringify(
  3608. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  3609. .chapterData
  3610. )
  3611. );
  3612. }
  3613. _this.$forceUpdate();
  3614. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  3615. _this.$message.success("删除成功");
  3616. // this.$nextTick(() => {
  3617. // $('.stepsBottom2')[0].style.transition = 'unset'
  3618. // setTimeout(() => {
  3619. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3620. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3621. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3622. // if (top > client) {
  3623. // $('.stepsBottom2')[0].style.top = client + 'px'
  3624. // }
  3625. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3626. // this.$forceUpdate()
  3627. // }, 500)
  3628. // })
  3629. })
  3630. .catch(() => {
  3631. return;
  3632. });
  3633. },
  3634. handlePictureCardPreview(file) {
  3635. this.dialogImageUrl = file.url;
  3636. },
  3637. clean(i, c) {
  3638. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3639. },
  3640. handle_remove1(file, fileList, type) {
  3641. var _tmp = this.cover;
  3642. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3643. // if (_tmp[i].uid == file.uid) {
  3644. // _tmp.splice(i, 1);
  3645. // break;
  3646. // }
  3647. // this.cover = _tmp;
  3648. // }
  3649. this.cover = [];
  3650. this.noneBtnImg = this.cover.length >= 1;
  3651. this.isSysPic = false;
  3652. this.isSysPic2 = false;
  3653. this.$forceUpdate();
  3654. },
  3655. addImg(e) {
  3656. var el = e.currentTarget;
  3657. el.getElementsByTagName("input")[0].click();
  3658. e.target.value = "";
  3659. },
  3660. addChaptersTools(i) {
  3661. this.chapTools = [
  3662. {
  3663. tools: [],
  3664. toolDetail: "",
  3665. },
  3666. ];
  3667. this.chapCount = i;
  3668. this.dialogVisible4 = true;
  3669. },
  3670. isNoFinsh() {
  3671. this.$message.warning("功能正在开发中");
  3672. },
  3673. addAttText(i) {
  3674. this.AttText = {
  3675. title: "",
  3676. text: "",
  3677. };
  3678. this.taskCount = i;
  3679. this.AttTextType = 0;
  3680. this.$forceUpdate();
  3681. this.dialogVisible6 = true;
  3682. setTimeout(() => {
  3683. this.$refs['fuInput'].focus();
  3684. }, 100);
  3685. },
  3686. openLine(i) {
  3687. this.line = "";
  3688. this.lineCount = i;
  3689. this.lineType = 0;
  3690. this.$forceUpdate();
  3691. this.dialogVisible7 = true;
  3692. },
  3693. pasteLine(i) {
  3694. navigator.clipboard
  3695. .readText()
  3696. .then((v) => {
  3697. console.log("获取剪贴板成功:", v);
  3698. const html = v;
  3699. const regex = /src="(.*?)"/g;
  3700. const match = regex.exec(html);
  3701. if (match && match[1]) {
  3702. console.log(match[1]);
  3703. this.$message.success("粘贴成功");
  3704. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3705. i
  3706. ].chapterData.push({
  3707. name: "链接",
  3708. title: "嵌入代码",
  3709. url: match[1],
  3710. type: 8,
  3711. });
  3712. } else {
  3713. // console.log("未找到包含 src 属性的 iframe");
  3714. this.$message.error("系统没有找到粘贴对象,请首先复制可用于粘贴的链接。");
  3715. }
  3716. })
  3717. .catch((v) => {
  3718. console.log("获取剪贴板失败: ", v);
  3719. });
  3720. },
  3721. openSource(i) {
  3722. this.lineCount = i;
  3723. this.sourceData = {};
  3724. this.dialogVisibleSource = true;
  3725. this.updateSourcePan = false;
  3726. },
  3727. addSource() {
  3728. if (!Object.keys(this.sourceData).length) {
  3729. this.$message.error("请选择要上传的资源");
  3730. return;
  3731. }
  3732. let keys = Object.keys(this.sourceData);
  3733. for (var i = 0; i < keys.length; i++) {
  3734. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3735. this.lineCount
  3736. ].chapterData.push({
  3737. name: "链接",
  3738. title: this.sourceData[keys[i]].name,
  3739. url: this.sourceData[keys[i]].url,
  3740. type: 14,
  3741. id: keys[i]
  3742. });
  3743. }
  3744. this.$forceUpdate();
  3745. this.dialogVisibleSource = false;
  3746. },
  3747. updateSource() {
  3748. if (!Object.keys(this.sourceData).length) {
  3749. this.$message.error("请选择要上传的资源");
  3750. return;
  3751. }
  3752. let keys = Object.keys(this.sourceData);
  3753. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3754. this.taskCount
  3755. ].chapterData[this.lineCount].url = this.sourceData[keys[0]].url;
  3756. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3757. this.taskCount
  3758. ].chapterData[this.lineCount].title = this.sourceData[keys[0]].name;
  3759. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3760. this.taskCount
  3761. ].chapterData[this.lineCount].id = keys[0];
  3762. this.updateSourcePan = false;
  3763. this.$forceUpdate();
  3764. this.dialogVisibleSource = false;
  3765. },
  3766. deleteM(i, j) {
  3767. this.testJson.testJson[i].timuList.splice(j, 1);
  3768. },
  3769. beforeUploadTiMu(event, i) {
  3770. const loading = this.openLoading();
  3771. var file = event.target.files[0];
  3772. var credentials = {
  3773. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3774. secretAccessKey: "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",
  3775. }; //秘钥形式的登录上传
  3776. window.AWS.config.update(credentials);
  3777. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3778. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3779. var _this = this;
  3780. if (file) {
  3781. var params = {
  3782. Key:
  3783. file.name.split(".")[0] +
  3784. new Date().getTime() +
  3785. "." +
  3786. file.name.split(".")[file.name.split(".").length - 1],
  3787. ContentType: file.type,
  3788. Body: file,
  3789. "Access-Control-Allow-Credentials": "*",
  3790. ACL: "public-read",
  3791. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3792. var options = {
  3793. partSize: 2048 * 1024 * 1024,
  3794. queueSize: 2,
  3795. leavePartsOnError: true,
  3796. };
  3797. bucket
  3798. .upload(params, options)
  3799. .on("httpUploadProgress", function (evt) {
  3800. //这里可以写进度条
  3801. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3802. })
  3803. .send(function (err, data) {
  3804. loading.close();
  3805. if (err) {
  3806. _this.$message.error("上传失败");
  3807. } else {
  3808. if (_this.testJson.testJson[i].timuList) {
  3809. _this.testJson.testJson[i].timuList.push({
  3810. src: data.Location,
  3811. });
  3812. } else {
  3813. _this.testJson.testJson[i].timuList = [];
  3814. _this.testJson.testJson[i].timuList.push({
  3815. src: data.Location,
  3816. });
  3817. }
  3818. _this.imgChange3(i);
  3819. _this.$forceUpdate();
  3820. }
  3821. });
  3822. }
  3823. },
  3824. beforeUploadTi(event, i, j) {
  3825. const loading = this.openLoading();
  3826. var file = event.target.files[0];
  3827. var credentials = {
  3828. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3829. secretAccessKey: "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",
  3830. }; //秘钥形式的登录上传
  3831. window.AWS.config.update(credentials);
  3832. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3833. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3834. var _this = this;
  3835. if (file) {
  3836. var params = {
  3837. Key:
  3838. file.name.split(".")[0] +
  3839. new Date().getTime() +
  3840. "." +
  3841. file.name.split(".")[file.name.split(".").length - 1],
  3842. ContentType: file.type,
  3843. Body: file,
  3844. "Access-Control-Allow-Credentials": "*",
  3845. ACL: "public-read",
  3846. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3847. var options = {
  3848. partSize: 2048 * 1024 * 1024,
  3849. queueSize: 2,
  3850. leavePartsOnError: true,
  3851. };
  3852. bucket
  3853. .upload(params, options)
  3854. .on("httpUploadProgress", function (evt) {
  3855. //这里可以写进度条
  3856. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3857. })
  3858. .send(function (err, data) {
  3859. loading.close();
  3860. if (err) {
  3861. _this.$message.error("上传失败");
  3862. } else {
  3863. _this.testJson.testJson[i].checkList[j] = {};
  3864. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3865. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3866. _this.imgChange2(i, j);
  3867. _this.$forceUpdate();
  3868. }
  3869. });
  3870. }
  3871. },
  3872. beforeUpload1(event, type) {
  3873. // const loading = this.openLoading();
  3874. var file = event.target.files[0];
  3875. var credentials = {
  3876. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3877. secretAccessKey: "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",
  3878. }; //秘钥形式的登录上传
  3879. window.AWS.config.update(credentials);
  3880. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3881. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3882. var _this = this;
  3883. if (file) {
  3884. var params = {
  3885. Key:
  3886. file.name.split(".")[0] +
  3887. new Date().getTime() +
  3888. "." +
  3889. file.name.split(".")[file.name.split(".").length - 1],
  3890. ContentType: file.type,
  3891. Body: file,
  3892. "Access-Control-Allow-Credentials": "*",
  3893. ACL: "public-read",
  3894. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3895. var options = {
  3896. partSize: 2048 * 1024 * 1024,
  3897. queueSize: 2,
  3898. leavePartsOnError: true,
  3899. };
  3900. bucket
  3901. .upload(params, options)
  3902. .on("httpUploadProgress", function (evt) {
  3903. //这里可以写进度条
  3904. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3905. })
  3906. .send(function (err, data) {
  3907. // loading.close();
  3908. if (err) {
  3909. // var a = _this.$refs.upload1.uploadFiles;
  3910. // a.splice(a.length - 1, a.length);
  3911. _this.$message.error("上传失败");
  3912. } else {
  3913. _this.cover.push({
  3914. name: file.name,
  3915. url: data.Location,
  3916. uid: file.uid,
  3917. });
  3918. _this.imgChange1(null, null, 1, null);
  3919. _this.choosePicVisible = false;
  3920. console.log(data.Location);
  3921. }
  3922. });
  3923. }
  3924. },
  3925. beforeUploadSelect(event, type) {
  3926. // const loading = this.openLoading();
  3927. var file = event.target.files[0];
  3928. var credentials = {
  3929. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3930. secretAccessKey: "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",
  3931. }; //秘钥形式的登录上传
  3932. window.AWS.config.update(credentials);
  3933. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3934. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3935. var _this = this;
  3936. if (file) {
  3937. var params = {
  3938. Key:
  3939. file.name.split(".")[0] +
  3940. new Date().getTime() +
  3941. "." +
  3942. file.name.split(".")[file.name.split(".").length - 1],
  3943. ContentType: file.type,
  3944. Body: file,
  3945. "Access-Control-Allow-Credentials": "*",
  3946. ACL: "public-read",
  3947. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3948. var options = {
  3949. partSize: 2048 * 1024 * 1024,
  3950. queueSize: 2,
  3951. leavePartsOnError: true,
  3952. };
  3953. bucket
  3954. .upload(params, options)
  3955. .on("httpUploadProgress", function (evt) {
  3956. //这里可以写进度条
  3957. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3958. })
  3959. .send(function (err, data) {
  3960. // loading.close();
  3961. if (err) {
  3962. _this.$message.error("上传失败");
  3963. } else {
  3964. _this.selectJson.url = data.Location;
  3965. console.log(data.Location);
  3966. }
  3967. });
  3968. }
  3969. },
  3970. chooseSysPic(p) {
  3971. this.cover = []
  3972. setTimeout(() => {
  3973. this.cover[0] = {
  3974. name: "系统图片.png",
  3975. url: p,
  3976. };
  3977. this.imgChange1(null, null, 1, null);
  3978. this.$forceUpdate();
  3979. }, 0);
  3980. this.isSysPic = true;
  3981. this.isSysPic2 = false;
  3982. this.sysPicVisible = false;
  3983. this.$forceUpdate();
  3984. },
  3985. chooseSysPic2(p) {
  3986. this.cover = []
  3987. setTimeout(() => {
  3988. this.cover[0] = {
  3989. name: "网络图片.png",
  3990. url: p,
  3991. };
  3992. this.imgChange1(null, null, 1, null);
  3993. this.$forceUpdate();
  3994. }, 0);
  3995. this.isSysPic2 = true;
  3996. this.isSysPic = false;
  3997. this.sysPicVisible2 = false;
  3998. this.$forceUpdate();
  3999. },
  4000. beforeUpload(data) {
  4001. this.$refs.upload1.uploadFiles;
  4002. this.uploadLoading1 = true;
  4003. var file = data.file;
  4004. var credentials = {
  4005. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4006. secretAccessKey: "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",
  4007. }; //秘钥形式的登录上传
  4008. window.AWS.config.update(credentials);
  4009. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4010. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4011. var _this = this;
  4012. if (file) {
  4013. var params = {
  4014. Key:
  4015. file.name.split(".")[0] +
  4016. new Date().getTime() +
  4017. "." +
  4018. file.name.split(".")[file.name.split(".").length - 1],
  4019. ContentType: file.type,
  4020. Body: file,
  4021. "Access-Control-Allow-Credentials": "*",
  4022. ACL: "public-read",
  4023. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4024. var options = {
  4025. partSize: 2048 * 1024 * 1024,
  4026. queueSize: 2,
  4027. leavePartsOnError: true,
  4028. };
  4029. bucket
  4030. .upload(params, options)
  4031. .on("httpUploadProgress", function (evt) {
  4032. //这里可以写进度条
  4033. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4034. })
  4035. .send(function (err, data) {
  4036. _this.uploadLoading1 = false;
  4037. if (err) {
  4038. // var a = _this.$refs.upload1.uploadFiles;
  4039. // a.splice(a.length - 1, a.length);
  4040. _this.$message.error("上传失败");
  4041. } else {
  4042. //上传成功处理
  4043. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4044. name: file.name,
  4045. url: data.Location,
  4046. uid: file.uid,
  4047. });
  4048. _this.imgChange();
  4049. console.log(data.Location);
  4050. }
  4051. });
  4052. }
  4053. },
  4054. onExceed() {
  4055. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4056. },
  4057. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4058. // const loading = this.openLoading();
  4059. var file = event.target.files[0];
  4060. var credentials = {
  4061. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4062. secretAccessKey: "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",
  4063. }; //秘钥形式的登录上传
  4064. window.AWS.config.update(credentials);
  4065. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4066. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4067. var _this = this;
  4068. if (type == 3) {
  4069. var b = [
  4070. "DOC",
  4071. "DOCX",
  4072. "DOCM",
  4073. "DOTM",
  4074. "DOTX",
  4075. "PPTX",
  4076. "PPSX",
  4077. "PPT",
  4078. "PPS",
  4079. "PPTM",
  4080. "POTM",
  4081. "PPAM",
  4082. "POTX",
  4083. "PPSM",
  4084. "XLSX",
  4085. "XLS",
  4086. ];
  4087. if (
  4088. b.indexOf(
  4089. file.name
  4090. .split(".")
  4091. [file.name.split(".").length - 1].toLocaleUpperCase()
  4092. ) != -1
  4093. ) {
  4094. if (file.size / 1024 / 1024 > 80) {
  4095. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4096. this.inputShow = true;
  4097. // var a = _this.$refs.upload1.uploadFiles;
  4098. // a.splice(a.length - 1, a.length);
  4099. // loading.close();
  4100. return;
  4101. }
  4102. } else if (
  4103. file.name
  4104. .split(".")
  4105. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4106. ) {
  4107. if (file.size / 1024 / 1024 > 80) {
  4108. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4109. this.inputShow = true;
  4110. // var a = _this.$refs.upload1.uploadFiles;
  4111. // a.splice(a.length - 1, a.length);
  4112. // loading.close();
  4113. return;
  4114. }
  4115. }
  4116. }
  4117. this.inputShow = false;
  4118. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4119. itemTaskIndex
  4120. ].progress = 0;
  4121. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4122. itemTaskIndex
  4123. ].proVisible = true;
  4124. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4125. itemTaskIndex
  4126. ].isFinishSize = 0;
  4127. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4128. itemTaskIndex
  4129. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4130. _this.$forceUpdate();
  4131. if (file) {
  4132. var params = {
  4133. Key:
  4134. file.name.split(".")[0] +
  4135. new Date().getTime() +
  4136. "." +
  4137. file.name.split(".")[file.name.split(".").length - 1],
  4138. ContentType: file.type,
  4139. Body: file,
  4140. "Access-Control-Allow-Credentials": "*",
  4141. ACL: "public-read",
  4142. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4143. var options = {
  4144. partSize: 2048 * 1024 * 1024,
  4145. queueSize: 2,
  4146. leavePartsOnError: true,
  4147. };
  4148. bucket
  4149. .upload(params, options)
  4150. .on("httpUploadProgress", function (evt) {
  4151. //这里可以写进度条
  4152. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4153. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4154. itemTaskIndex
  4155. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4156. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4157. itemTaskIndex
  4158. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4159. _this.$forceUpdate();
  4160. })
  4161. .send(function (err, data) {
  4162. // loading.close();
  4163. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4164. itemTaskIndex
  4165. ].progress = 100;
  4166. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4167. itemTaskIndex
  4168. ].isFinishSize =
  4169. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4170. itemTaskIndex
  4171. ].isAllSize;
  4172. _this.$forceUpdate();
  4173. setTimeout(() => {
  4174. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4175. itemTaskIndex
  4176. ].proVisible = false;
  4177. _this.$forceUpdate();
  4178. }, 1000);
  4179. _this.inputShow = true;
  4180. if (err) {
  4181. // var a = _this.$refs.upload1.uploadFiles;
  4182. // a.splice(a.length - 1, a.length);
  4183. _this.$message.error("上传失败");
  4184. } else {
  4185. if (type == 13) {
  4186. let _type = 2;
  4187. var imgA = [
  4188. "png",
  4189. "jpg",
  4190. "jpeg",
  4191. "bmp",
  4192. "gif",
  4193. "webp",
  4194. "psd",
  4195. "svg",
  4196. "tiff",
  4197. ];
  4198. var fileA = [
  4199. "PDF",
  4200. "DOC",
  4201. "DOCX",
  4202. "DOCM",
  4203. "DOTM",
  4204. "DOTX",
  4205. "PPTX",
  4206. "PPSX",
  4207. "PPT",
  4208. "PPS",
  4209. "PPTM",
  4210. "POTM",
  4211. "PPAM",
  4212. "POTX",
  4213. "PPSM",
  4214. "XLSX",
  4215. "XLS",
  4216. ];
  4217. var videoA = [
  4218. "AVI",
  4219. "NAVI",
  4220. "MPEG",
  4221. "ASF",
  4222. "MOV",
  4223. "WMV",
  4224. "3GP",
  4225. "RM",
  4226. "RMVB",
  4227. "FLV",
  4228. "F4V",
  4229. "H.264",
  4230. "H.265",
  4231. "REAL VIDEO",
  4232. "MKV",
  4233. "WebM",
  4234. "HDDVD",
  4235. "MP4",
  4236. "MPG",
  4237. "M4V",
  4238. "MGV",
  4239. "OGV",
  4240. "QTM",
  4241. "STR",
  4242. "AMC",
  4243. "DVX",
  4244. "EVO",
  4245. "DAT",
  4246. "OGG",
  4247. "OGM",
  4248. ];
  4249. if (
  4250. fileA.indexOf(
  4251. data.Location.split(".")[
  4252. data.Location.split(".").length - 1
  4253. ].toLocaleUpperCase()
  4254. ) != -1
  4255. ) {
  4256. _type = 3;
  4257. } else if (
  4258. videoA.indexOf(
  4259. data.Location.split(".")[
  4260. data.Location.split(".").length - 1
  4261. ].toLocaleUpperCase()
  4262. ) != -1
  4263. ) {
  4264. _type = 2;
  4265. } else if (
  4266. imgA.indexOf(
  4267. data.Location.split(".")[
  4268. data.Location.split(".").length - 1
  4269. ].toLocaleLowerCase()
  4270. ) != -1
  4271. ) {
  4272. _type = 13;
  4273. } else {
  4274. _type = 12;
  4275. }
  4276. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4277. itemTaskIndex
  4278. ].chapterData.push({
  4279. name: file.name,
  4280. url: data.Location,
  4281. uid: file.uid,
  4282. type: _type,
  4283. });
  4284. _this.imgChange1(null, null, _type, itemTaskIndex);
  4285. } else if (type == 2 || type == 3 || type == 12) {
  4286. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4287. itemTaskIndex
  4288. ].chapterData.push({
  4289. name: file.name,
  4290. url: data.Location,
  4291. uid: file.uid,
  4292. type: type,
  4293. });
  4294. _this.imgChange1(null, null, type, itemTaskIndex);
  4295. } else if (type == 4) {
  4296. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4297. itemTaskIndex
  4298. ].fileList1.push({
  4299. name: file.name,
  4300. url: data.Location,
  4301. uid: file.uid,
  4302. });
  4303. _this.imgChange1(null, null, type, itemTaskIndex);
  4304. } else if (type == 5) {
  4305. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4306. itemTaskIndex
  4307. ].homeworkList.push({
  4308. name: file.name,
  4309. url: data.Location,
  4310. uid: file.uid,
  4311. });
  4312. _this.imgChange1(null, null, type, itemTaskIndex);
  4313. }
  4314. console.log(data.Location);
  4315. }
  4316. });
  4317. }
  4318. },
  4319. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4320. // const loading = this.openLoading();
  4321. var file = event.target.files[0];
  4322. var credentials = {
  4323. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4324. secretAccessKey: "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",
  4325. }; //秘钥形式的登录上传
  4326. window.AWS.config.update(credentials);
  4327. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4328. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4329. var _this = this;
  4330. if (type == 3) {
  4331. var b = [
  4332. "DOC",
  4333. "DOCX",
  4334. "DOCM",
  4335. "DOTM",
  4336. "DOTX",
  4337. "PPTX",
  4338. "PPSX",
  4339. "PPT",
  4340. "PPS",
  4341. "PPTM",
  4342. "POTM",
  4343. "PPAM",
  4344. "POTX",
  4345. "PPSM",
  4346. ];
  4347. if (
  4348. b.indexOf(
  4349. file.name
  4350. .split(".")
  4351. [file.name.split(".").length - 1].toLocaleUpperCase()
  4352. ) != -1
  4353. ) {
  4354. if (file.size / 1024 / 1024 > 80) {
  4355. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4356. this.inputShow = true;
  4357. // var a = _this.$refs.upload1.uploadFiles;
  4358. // a.splice(a.length - 1, a.length);
  4359. // loading.close();
  4360. return;
  4361. }
  4362. } else if (
  4363. file.name
  4364. .split(".")
  4365. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4366. ) {
  4367. if (file.size / 1024 / 1024 > 80) {
  4368. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4369. this.inputShow = true;
  4370. // var a = _this.$refs.upload1.uploadFiles;
  4371. // a.splice(a.length - 1, a.length);
  4372. // loading.close();
  4373. return;
  4374. }
  4375. }
  4376. }
  4377. this.inputShow = false;
  4378. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4379. itemTaskIndex
  4380. ].progress = 0;
  4381. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4382. itemTaskIndex
  4383. ].proVisible = true;
  4384. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4385. itemTaskIndex
  4386. ].isFinishSize = 0;
  4387. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4388. itemTaskIndex
  4389. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4390. _this.$forceUpdate();
  4391. if (file) {
  4392. var params = {
  4393. Key:
  4394. file.name.split(".")[0] +
  4395. new Date().getTime() +
  4396. "." +
  4397. file.name.split(".")[file.name.split(".").length - 1],
  4398. ContentType: file.type,
  4399. Body: file,
  4400. "Access-Control-Allow-Credentials": "*",
  4401. ACL: "public-read",
  4402. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4403. var options = {
  4404. partSize: 2048 * 1024 * 1024,
  4405. queueSize: 2,
  4406. leavePartsOnError: true,
  4407. };
  4408. bucket
  4409. .upload(params, options)
  4410. .on("httpUploadProgress", function (evt) {
  4411. //这里可以写进度条
  4412. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4413. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4414. itemTaskIndex
  4415. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4416. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4417. itemTaskIndex
  4418. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4419. _this.$forceUpdate();
  4420. })
  4421. .send(function (err, data) {
  4422. // loading.close();
  4423. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4424. itemTaskIndex
  4425. ].progress = 100;
  4426. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4427. itemTaskIndex
  4428. ].isFinishSize =
  4429. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4430. itemTaskIndex
  4431. ].isAllSize;
  4432. _this.$forceUpdate();
  4433. setTimeout(() => {
  4434. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4435. itemTaskIndex
  4436. ].proVisible = false;
  4437. _this.$forceUpdate();
  4438. }, 1000);
  4439. _this.inputShow = true;
  4440. if (err) {
  4441. // var a = _this.$refs.upload1.uploadFiles;
  4442. // a.splice(a.length - 1, a.length);
  4443. _this.$message.error("上传失败");
  4444. } else {
  4445. if (type == 2 || type == 3) {
  4446. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4447. itemTaskIndex
  4448. ].chapterData.push({
  4449. name: file.name,
  4450. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4451. // itemTaskIndex
  4452. // ].chapterData.length+1),
  4453. url: data.Location,
  4454. uid: file.uid,
  4455. type: type,
  4456. text: string,
  4457. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4458. // itemTaskIndex
  4459. // ].chapterData.length + 1),
  4460. });
  4461. _this.imgChange1(null, null, type, itemTaskIndex);
  4462. } else if (type == 4) {
  4463. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4464. itemTaskIndex
  4465. ].fileList1.push({
  4466. name: file.name,
  4467. url: data.Location,
  4468. uid: file.uid,
  4469. });
  4470. _this.imgChange1(null, null, type, itemTaskIndex);
  4471. } else if (type == 5) {
  4472. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4473. itemTaskIndex
  4474. ].homeworkList.push({
  4475. name: file.name,
  4476. url: data.Location,
  4477. uid: file.uid,
  4478. });
  4479. _this.imgChange1(null, null, type, itemTaskIndex);
  4480. }
  4481. console.log(data.Location);
  4482. }
  4483. });
  4484. }
  4485. },
  4486. addunit() {
  4487. this.unitJson.push({
  4488. dyName: "", //单元标题
  4489. isUpdate: 1,
  4490. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4491. chapterInfo: [
  4492. {
  4493. isread: false,
  4494. chapterid: this.guid(),
  4495. title: "",
  4496. courseName: "",
  4497. taskJson: [
  4498. {
  4499. task: "",
  4500. taskDetail: "",
  4501. chapterData: [],
  4502. toolText: "",
  4503. toolChoose: [
  4504. {
  4505. tool: [],
  4506. toolDetail: "",
  4507. toolType: 0,
  4508. askCount: 1,
  4509. askTitle: "",
  4510. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4511. },
  4512. ],
  4513. isShowTools: false,
  4514. askCount: 1,
  4515. isFold: 0,
  4516. askTitle: "",
  4517. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4518. checkJson: [{ checkCount: [], checkPerent: [] }],
  4519. homeworkList: [],
  4520. },
  4521. ],
  4522. itemCount: 1,
  4523. fileList1: [],
  4524. video: [],
  4525. testData: [],
  4526. pData: [],
  4527. templateArray: [],
  4528. },
  4529. ],
  4530. });
  4531. this.addindex = this.unitJson.length - 1;
  4532. setTimeout(() => {
  4533. this.unitIndex = this.unitJson.length - 1;
  4534. this.unitSet(this.unitIndex);
  4535. }, 0);
  4536. },
  4537. addToolFun(itemTaskIndex) {
  4538. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4539. itemTaskIndex
  4540. ].toolChoose.push({
  4541. tool: [],
  4542. toolDetail: "",
  4543. toolType: 0,
  4544. askCount: 1,
  4545. askTitle: "",
  4546. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4547. });
  4548. },
  4549. addTaskBorder() {
  4550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4551. task: "",
  4552. taskDetail: "",
  4553. chapterData: [],
  4554. toolChoose: [
  4555. {
  4556. tool: [],
  4557. toolDetail: "",
  4558. toolType: 0,
  4559. askCount: 1,
  4560. askTitle: "",
  4561. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4562. },
  4563. ],
  4564. toolText: "",
  4565. isShowTools: false,
  4566. askCount: 1,
  4567. isFold: 0,
  4568. askTitle: "",
  4569. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4570. checkJson: [{ checkCount: [], checkPerent: [] }],
  4571. homeworkList: [],
  4572. });
  4573. },
  4574. add(e, i) {
  4575. var el = e.currentTarget;
  4576. el.getElementsByTagName("input")[0].click();
  4577. },
  4578. fold(i, e, type) {
  4579. var a = e.currentTarget.parentElement.parentElement;
  4580. var b = e.currentTarget.parentElement;
  4581. if (type == 1) {
  4582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4583. a.className += " smallTaskBorder";
  4584. b.className += " funBlockTop";
  4585. } else {
  4586. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4587. a.className = "taskBorder";
  4588. b.className = "funBlock";
  4589. }
  4590. console.log(e);
  4591. },
  4592. fold2(i) {
  4593. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2) {
  4594. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = false;
  4595. } else {
  4596. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold2 = true;
  4597. }
  4598. setTimeout(() => {
  4599. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail += '*0*%*'
  4600. setTimeout(() => {
  4601. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].taskDetail.replaceAll('*0*%*', '')
  4602. }, 0);
  4603. }, 0);
  4604. this.$forceUpdate();
  4605. },
  4606. foldC(i) {
  4607. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter) {
  4608. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = false;
  4609. } else {
  4610. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFoldchapter = true;
  4611. }
  4612. this.$forceUpdate();
  4613. },
  4614. fold3(i, ti) {
  4615. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3) {
  4616. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = false;
  4617. } else {
  4618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[ti].isFold3 = true;
  4619. }
  4620. this.$forceUpdate();
  4621. },
  4622. deleteHomeworkBox(unitIndex, index, i) {
  4623. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4624. this.taskCount
  4625. ].homeworkList.splice(i, 1);
  4626. },
  4627. getStudent() {
  4628. let params = {
  4629. oid: this.oid,
  4630. cu: "",
  4631. cn: this.searchPeople,
  4632. };
  4633. this.ajax
  4634. .get(this.$store.state.api + "selectStudentAdd", params)
  4635. .then((res) => {
  4636. this.studentJuri = res.data[0];
  4637. })
  4638. .catch((err) => {
  4639. this.isLoading = false;
  4640. console.error(err);
  4641. });
  4642. },
  4643. getTeacher() {
  4644. let params = {
  4645. org:
  4646. this.org && this.org != "undefined" && this.org != "null"
  4647. ? this.org
  4648. : "",
  4649. oid: this.oid,
  4650. cu: "",
  4651. cn: this.searchTN,
  4652. page: this.page,
  4653. pageSize: this.pageSize,
  4654. };
  4655. this.ajax
  4656. .get(
  4657. this.$store.state.api +
  4658. (this.org && this.org != "undefined" && this.org != "null"
  4659. ? "selectUserByOidS2"
  4660. : "selectUserByOidS2"),
  4661. params
  4662. )
  4663. .then((res) => {
  4664. let teacherJuri = res.data[0];
  4665. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  4666. this.teacherJuri2 = JSON.parse(JSON.stringify(res.data[0]));
  4667. for (var i = 0; i < teacherJuri.length; i++) {
  4668. if (teacherJuri[i].userid == this.userid) {
  4669. teacherJuri.splice(i, 1);
  4670. break;
  4671. }
  4672. }
  4673. this.teacherJuri = teacherJuri;
  4674. })
  4675. .catch((err) => {
  4676. console.error(err);
  4677. });
  4678. },
  4679. searchStudent() {
  4680. this.getStudent();
  4681. },
  4682. selectGrage() {
  4683. let params = {
  4684. oid: this.oid,
  4685. };
  4686. this.ajax
  4687. .get(this.$store.state.api + "selectGrageBySchool", params)
  4688. .then((res) => {
  4689. this.gradeList = res.data[0];
  4690. })
  4691. .catch((err) => {
  4692. this.isLoading = false;
  4693. console.error(err);
  4694. });
  4695. },
  4696. //获取班级列表
  4697. getClass() {
  4698. let params = {
  4699. oid: this.oid,
  4700. gid: this.gradeId,
  4701. cn: this.classSearch,
  4702. };
  4703. this.ajax
  4704. .get(this.$store.state.api + "selectClassBySchoolSearch2", params)
  4705. .then((res) => {
  4706. if (!this.grade.length) {
  4707. this.grade = res.data[0];
  4708. }
  4709. this.grade2 = res.data[0];
  4710. this.classJuri = res.data[0];
  4711. })
  4712. .catch((err) => {
  4713. this.isLoading = false;
  4714. console.error(err);
  4715. });
  4716. },
  4717. CourseType2Change(val) {
  4718. this.pTypeCheck = [];
  4719. for (var i = 0; i < this.CourseType2.length; i++) {
  4720. let typeA = this.CourseType2[i];
  4721. if (val.indexOf(typeA.name) != -1) {
  4722. this.pTypeCheck.push(...typeA.id);
  4723. }
  4724. }
  4725. },
  4726. getChapterData(e, i, j, ic, type) {
  4727. e.stopPropagation();
  4728. this.updataC = true;
  4729. this.icc = ic;
  4730. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4731. console.log("还不能下载图片喔");
  4732. }
  4733. },
  4734. deleteChapterData(e, i, j, ic, taskI) {
  4735. e.stopPropagation();
  4736. let _this = this;
  4737. _this
  4738. .$confirm("确定删除此项?", "提示", {
  4739. confirmButtonText: "确定",
  4740. cancelButtonText: "取消",
  4741. type: "warning",
  4742. })
  4743. .then(() => {
  4744. _this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4745. })
  4746. .catch(() => {
  4747. return;
  4748. });
  4749. },
  4750. updataVideoT(e, i, j, ic) {
  4751. // e.stopPropagation();
  4752. // this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4753. // ic
  4754. // ].name = JSON.parse(JSON.stringify(e.target.value));
  4755. this.line = this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  4756. ic
  4757. ].name;
  4758. this.taskCount = j;
  4759. this.lineCount = ic;
  4760. this.dialogVisibleupdataVideoT = true;
  4761. this.$forceUpdate();
  4762. },
  4763. updataVideoC() {
  4764. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount].chapterData[this.lineCount].name = JSON.parse(JSON.stringify(this.line));
  4765. this.dialogVisibleupdataVideoT = false;
  4766. this.$forceUpdate();
  4767. },
  4768. upCd(e, i, j, taskCount, ic) {
  4769. e.stopPropagation();
  4770. if (ic == 0) {
  4771. return;
  4772. }
  4773. var a =
  4774. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  4775. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4776. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4777. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4778. this.$forceUpdate();
  4779. },
  4780. downCd(e, i, j, taskCount, ic) {
  4781. e.stopPropagation();
  4782. if (
  4783. ic ==
  4784. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4785. 1
  4786. ) {
  4787. return;
  4788. }
  4789. var a =
  4790. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  4791. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4792. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  4793. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4794. this.$forceUpdate();
  4795. },
  4796. addWork(type) {
  4797. let cPan = 1;
  4798. for (var i = 0; i < this.unitJson.length; i++) {
  4799. for (
  4800. var j = 0;
  4801. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4802. j++
  4803. ) {
  4804. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4805. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4806. if (
  4807. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4808. ) {
  4809. for (
  4810. var z = 0;
  4811. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4812. z++
  4813. ) {
  4814. if (
  4815. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4816. .length
  4817. ) {
  4818. this.$message.error("请把工具添加完整");
  4819. cPan = 2;
  4820. break;
  4821. }
  4822. }
  4823. }
  4824. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4825. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4826. i
  4827. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4828. return ele.value != "";
  4829. });
  4830. }
  4831. }
  4832. }
  4833. this.inputShow = true;
  4834. if (cPan == 2) {
  4835. return;
  4836. }
  4837. this.isLoading2 = true
  4838. for (var i = 0; i < this.unitJson.length; i++) {
  4839. delete this.unitJson[i].isUpdate;
  4840. }
  4841. let params = [
  4842. {
  4843. uid: this.userid,
  4844. title: this.courseName.replace(/%/g, "%25"),
  4845. brief: this.courseText.replace(/%/g, "%25"),
  4846. cover:
  4847. this.cover.length > 0
  4848. ? JSON.stringify(this.cover)
  4849. : JSON.stringify([
  4850. {
  4851. name: "noBanner.jpg",
  4852. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4853. uid: 1656409780264,
  4854. status: "success",
  4855. },
  4856. ]),
  4857. evaId: this.evalua,
  4858. astudent:
  4859. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4860. see: this.isTeacherSee == true ? 1 : 0,
  4861. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4862. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4863. courseType: JSON.stringify(this.courseTypeId),
  4864. ateacher:
  4865. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4866. inviteCode: JSON.stringify(this.inviteCode),
  4867. },
  4868. ];
  4869. this.ajax
  4870. .post(this.$store.state.api + "addSynergyCourse", params)
  4871. .then((res) => {
  4872. this.isLoading2 = false
  4873. console.log(this.steps);
  4874. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4875. this.$message({
  4876. message: "新增成功",
  4877. type: "success",
  4878. });
  4879. // }
  4880. this.number = res.data.ordernumber;
  4881. this.courseId = res.data.courseId;
  4882. this.cid = res.data.courseId;
  4883. this.courseUserid = this.userid;
  4884. this.islogin = true;
  4885. if (type != 2) {
  4886. this.steps = 4;
  4887. } else {
  4888. this.selectCourseDetail222();
  4889. }
  4890. })
  4891. .catch((err) => {
  4892. this.$message.error("网络不佳");
  4893. console.error(err);
  4894. });
  4895. },
  4896. selectCourseDetail222() {
  4897. let params = {
  4898. cid: this.cid,
  4899. };
  4900. this.ajax
  4901. .get(this.$store.state.api + "select_synergy", params)
  4902. .then((res) => {
  4903. this.courseDetail = res.data[0][0]
  4904. });
  4905. },
  4906. goCourse() {
  4907. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4908. },
  4909. updateWork2() {
  4910. let _unitIndex = this.unitIndex;
  4911. let cPan = 1;
  4912. for (
  4913. var j = 0;
  4914. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4915. j++
  4916. ) {
  4917. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4918. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4919. j
  4920. ].proVisible2 = false;
  4921. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4922. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4923. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4924. (ele) => {
  4925. return ele.value != "";
  4926. }
  4927. );
  4928. }
  4929. }
  4930. this.inputShow = true;
  4931. if (cPan == 2) {
  4932. return;
  4933. }
  4934. let params = [
  4935. {
  4936. cid: this.cid,
  4937. chapters: JSON.stringify(this.unitJson),
  4938. uid: this.userid,
  4939. unitIndex: _unitIndex,
  4940. },
  4941. ];
  4942. this.ajax
  4943. .post(this.$store.state.api + "updateWorkNew4", params)
  4944. .then((res) => {
  4945. this.$message({
  4946. message: "修改成功",
  4947. type: "success",
  4948. });
  4949. this.courseId = this.cid;
  4950. })
  4951. .catch((err) => {
  4952. this.$message.error("网络不佳");
  4953. console.error(err);
  4954. });
  4955. },
  4956. updateWork(type) {
  4957. let cPan = 1;
  4958. for (var i = 0; i < this.unitJson.length; i++) {
  4959. for (
  4960. var j = 0;
  4961. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4962. j++
  4963. ) {
  4964. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4965. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4966. if (
  4967. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  4968. ) {
  4969. for (
  4970. var z = 0;
  4971. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  4972. z++
  4973. ) {
  4974. if (
  4975. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  4976. .length
  4977. ) {
  4978. this.$message.error("请把工具添加完整");
  4979. cPan = 2;
  4980. break;
  4981. }
  4982. }
  4983. }
  4984. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4985. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4986. i
  4987. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4988. return ele.value != "";
  4989. });
  4990. }
  4991. }
  4992. }
  4993. this.inputShow = true;
  4994. if (cPan == 2) {
  4995. return;
  4996. }
  4997. for (var i = 0; i < this.unitJson.length; i++) {
  4998. delete this.unitJson[i].isUpdate;
  4999. }
  5000. let params = [
  5001. {
  5002. cid: this.cid,
  5003. title: this.courseName.replace(/%/g, "%25"),
  5004. brief: this.courseText.replace(/%/g, "%25"),
  5005. cover:
  5006. this.cover.length > 0
  5007. ? JSON.stringify(this.cover)
  5008. : JSON.stringify([
  5009. {
  5010. name: "noBanner.jpg",
  5011. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5012. uid: 1656409780264,
  5013. status: "success",
  5014. },
  5015. ]),
  5016. evaId: this.evalua,
  5017. astudent:
  5018. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5019. see: this.isTeacherSee == true ? 1 : 0,
  5020. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5021. template: this.myWord != "undefined" ? this.myWord : [],
  5022. uid: this.userid,
  5023. courseType: JSON.stringify(this.courseTypeId),
  5024. ateacher:
  5025. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5026. inviteCode: JSON.stringify(this.inviteCode),
  5027. },
  5028. ];
  5029. this.ajax
  5030. .post(this.$store.state.api + "updateSynergy", params)
  5031. .then((res) => {
  5032. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5033. if (this.cidType == 1) {
  5034. this.$message({
  5035. message: "修改成功",
  5036. type: "success",
  5037. });
  5038. } else {
  5039. this.$message({
  5040. message: "新增成功",
  5041. type: "success",
  5042. });
  5043. }
  5044. // }
  5045. this.number = this.nbOrder;
  5046. this.courseId = this.cid;
  5047. if (type != 2) {
  5048. this.steps = 4;
  5049. }
  5050. })
  5051. .catch((err) => {
  5052. this.$message.error("网络不佳");
  5053. console.error(err);
  5054. });
  5055. },
  5056. guid() {
  5057. var _num,
  5058. i,
  5059. _guid = "";
  5060. for (i = 0; i < 32; i++) {
  5061. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  5062. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  5063. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  5064. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5065. _guid += "-";
  5066. }
  5067. }
  5068. return _guid;
  5069. },
  5070. insertWord() {
  5071. this.dialogVisible1 = true;
  5072. this.updateBoolean2 = false;
  5073. this.tTitle = "";
  5074. this.tdetail = "";
  5075. },
  5076. addWord() {
  5077. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5078. name: this.tTitle,
  5079. content: this.tdetail,
  5080. uid: this.guid(),
  5081. });
  5082. this.dialogVisible1 = false;
  5083. },
  5084. upWord() { },
  5085. selectWord(uid, i, c) {
  5086. this.dialogVisible1 = true;
  5087. this.updateBoolean2 = true;
  5088. if (
  5089. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5090. ) {
  5091. this.tTitle =
  5092. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5093. this.tdetail =
  5094. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5095. }
  5096. },
  5097. isAddPP() {
  5098. if (this.checkboxList.length > 0) {
  5099. this.$message({
  5100. message: "添加成功",
  5101. type: "success",
  5102. });
  5103. this.dialogVisible3 = false;
  5104. } else {
  5105. this.$message({
  5106. message: "请添加课程成员",
  5107. type: "error",
  5108. });
  5109. }
  5110. },
  5111. isAddClass() {
  5112. this.dialogVisibleClass = false;
  5113. },
  5114. isAddPPTeacher() {
  5115. this.dialogVisibleMember = false;
  5116. this.setMan();
  5117. },
  5118. getTemplate() {
  5119. this.ajax
  5120. .get(this.$store.state.api + "getCourseTemplateT", "")
  5121. .then((res) => {
  5122. this.templateArray = res.data[0];
  5123. this.getTemplateOid();
  5124. this.$forceUpdate();
  5125. })
  5126. .catch((err) => { });
  5127. },
  5128. getTemplateOid() {
  5129. let params = {
  5130. oid: this.oid,
  5131. };
  5132. this.ajax
  5133. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5134. .then((res) => {
  5135. if (res.data[0].length) {
  5136. this.templateArray = [...res.data[0], ...this.templateArray];
  5137. }
  5138. this.getTemplateOrg();
  5139. this.$forceUpdate();
  5140. })
  5141. .catch((err) => { });
  5142. },
  5143. getTemplateOrg() {
  5144. let params = {
  5145. oid: this.org,
  5146. };
  5147. this.ajax
  5148. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5149. .then((res) => {
  5150. if (res.data[0].length) {
  5151. this.templateArray = [...res.data[0], ...this.templateArray];
  5152. }
  5153. this.$forceUpdate();
  5154. })
  5155. .catch((err) => { });
  5156. },
  5157. clearChoose() {
  5158. this.clearArray.splice(this.templateC.id, 1);
  5159. this.dialogVisible2 = false;
  5160. },
  5161. clearAttText() {
  5162. this.AttText = {
  5163. title: "",
  5164. text: "",
  5165. };
  5166. this.dialogVisible6 = false;
  5167. },
  5168. clearLine() {
  5169. this.line = "";
  5170. this.dialogVisible7 = false;
  5171. },
  5172. checkTemplate(res) {
  5173. let _this = this;
  5174. _this
  5175. .$confirm("确定选择此模板吗?", "提示", {
  5176. confirmButtonText: "确定",
  5177. cancelButtonText: "取消",
  5178. type: "warning",
  5179. })
  5180. .then(() => {
  5181. _this.unitJson = JSON.parse(res.chapters);
  5182. _this.steps++;
  5183. setTimeout(() => {
  5184. this.checkEva(this.checkId);
  5185. }, 1000);
  5186. })
  5187. .catch(() => {
  5188. return;
  5189. });
  5190. },
  5191. checkTemplate1(w) {
  5192. this.steps++;
  5193. },
  5194. checkTemplate2() {
  5195. let _this = this;
  5196. _this
  5197. .$confirm("确定选择空模板吗?", "提示", {
  5198. confirmButtonText: "确定",
  5199. cancelButtonText: "取消",
  5200. type: "warning",
  5201. })
  5202. .then(() => {
  5203. _this.unitIndex = 0;
  5204. _this.unitJson = [
  5205. {
  5206. dyName: "", //单元标题
  5207. chapterInfo: [
  5208. {
  5209. isread: false,
  5210. chapterid: this.guid(),
  5211. title: "",
  5212. courseName: "",
  5213. taskJson: [
  5214. {
  5215. task: "",
  5216. taskDetail: "",
  5217. chapterData: [],
  5218. toolText: "",
  5219. toolChoose: [
  5220. {
  5221. tool: [],
  5222. toolDetail: "",
  5223. toolType: 0,
  5224. askCount: 1,
  5225. askTitle: "",
  5226. askJson: [
  5227. { askstitle: "", askItem: 1, checkList: [] },
  5228. ],
  5229. },
  5230. ],
  5231. isShowTools: false,
  5232. askCount: 1,
  5233. isFold: 0,
  5234. askTitle: "",
  5235. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5236. checkJson: [{ checkCount: [], checkPerent: [] }],
  5237. homeworkList: [],
  5238. },
  5239. ],
  5240. itemCount: 1,
  5241. fileList1: [],
  5242. video: [],
  5243. testData: [],
  5244. pData: [],
  5245. templateArray: [],
  5246. },
  5247. ],
  5248. },
  5249. ];
  5250. this.steps++;
  5251. this.updateWork();
  5252. })
  5253. .catch(() => {
  5254. return;
  5255. });
  5256. },
  5257. checkTemplate3() {
  5258. let _this = this;
  5259. _this
  5260. .$confirm("确定选择简易模式吗?", "提示", {
  5261. confirmButtonText: "确定",
  5262. cancelButtonText: "取消",
  5263. type: "warning",
  5264. })
  5265. .then(() => {
  5266. _this.unitIndex = 0;
  5267. _this.unitJson = [
  5268. {
  5269. dyName: "", //单元标题
  5270. easy: 1,
  5271. chapterInfo: [
  5272. {
  5273. isread: false,
  5274. chapterid: this.guid(),
  5275. title: "",
  5276. courseName: "",
  5277. taskJson: [
  5278. {
  5279. task: "",
  5280. taskDetail: "",
  5281. chapterData: [],
  5282. toolText: "",
  5283. toolChoose: [
  5284. {
  5285. tool: [],
  5286. toolDetail: "",
  5287. toolType: 0,
  5288. askCount: 1,
  5289. askTitle: "",
  5290. askJson: [
  5291. { askstitle: "", askItem: 1, checkList: [] },
  5292. ],
  5293. },
  5294. ],
  5295. isShowTools: false,
  5296. askCount: 1,
  5297. isFold: 0,
  5298. askTitle: "",
  5299. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5300. checkJson: [{ checkCount: [], checkPerent: [] }],
  5301. homeworkList: [],
  5302. },
  5303. ],
  5304. itemCount: 1,
  5305. fileList1: [],
  5306. video: [],
  5307. testData: [],
  5308. pData: [],
  5309. templateArray: [],
  5310. },
  5311. ],
  5312. },
  5313. ];
  5314. this.steps++;
  5315. this.updateWork();
  5316. })
  5317. .catch(() => {
  5318. return;
  5319. });
  5320. },
  5321. checkTemplate4() {
  5322. let _this = this;
  5323. _this
  5324. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5325. confirmButtonText: "确定",
  5326. cancelButtonText: "取消",
  5327. type: "warning",
  5328. })
  5329. .then(() => {
  5330. _this.unitIndex = 0;
  5331. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5332. this.steps++;
  5333. this.updateWork();
  5334. })
  5335. .catch(() => {
  5336. return;
  5337. });
  5338. },
  5339. wordNext() {
  5340. this.dialogVisible2 = false;
  5341. },
  5342. isAddOrUpdateAttText() {
  5343. if (this.AttTextType == 0) {
  5344. this.addAttTextMessage();
  5345. } else {
  5346. this.updateAttText();
  5347. }
  5348. },
  5349. isAddOrUpdateLine() {
  5350. if (!this.lineTitle) {
  5351. this.$message.error("请填写链接标题");
  5352. return;
  5353. }
  5354. if (this.lineType == 0) {
  5355. this.addLine();
  5356. } else {
  5357. this.updateLine();
  5358. }
  5359. },
  5360. addAttTextMessage() {
  5361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5362. this.taskCount
  5363. ].chapterData.push({
  5364. name: this.AttText.title,
  5365. url: this.AttText.text,
  5366. type: 6,
  5367. });
  5368. this.imgChange1(null, null, 6, this.taskCount);
  5369. this.dialogVisible6 = false;
  5370. },
  5371. selectAttText(itemTaskIndex, i) {
  5372. this.AttText.title =
  5373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5374. itemTaskIndex
  5375. ].chapterData[i].name;
  5376. this.AttText.text =
  5377. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5378. itemTaskIndex
  5379. ].chapterData[i].url;
  5380. this.taskCount = itemTaskIndex;
  5381. this.AttTextIndex = i;
  5382. this.AttTextType = 1;
  5383. this.dialogVisible6 = true;
  5384. },
  5385. updateAttText() {
  5386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5387. this.taskCount
  5388. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5389. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5390. this.taskCount
  5391. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5392. this.dialogVisible6 = false;
  5393. },
  5394. addLine() {
  5395. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5396. this.lineCount
  5397. ].chapterData.push({
  5398. name: "链接",
  5399. title: this.lineTitle,
  5400. url: this.line,
  5401. type: 8,
  5402. });
  5403. this.imgChange1(null, null, 8, this.lineCount);
  5404. this.dialogVisible7 = false;
  5405. },
  5406. selectLine(itemTaskIndex, i) {
  5407. this.line =
  5408. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5409. itemTaskIndex
  5410. ].chapterData[i].url;
  5411. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5412. itemTaskIndex
  5413. ].chapterData[i].title
  5414. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5415. .chapterData[i].title
  5416. : "";
  5417. this.taskCount = itemTaskIndex;
  5418. this.lineCount = i;
  5419. this.lineType = 1;
  5420. this.dialogVisible7 = true;
  5421. },
  5422. openUpdateSource(itemTaskIndex, i) {
  5423. this.sourceData = {}
  5424. let source = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].chapterData[i]
  5425. this.sourceData[source.id] = {}
  5426. this.sourceData[source.id].name = source.title
  5427. this.sourceData[source.id].url = source.url
  5428. this.dialogVisibleSource = true;
  5429. this.updateSourcePan = true;
  5430. this.taskCount = itemTaskIndex;
  5431. this.lineCount = i;
  5432. },
  5433. updateLine() {
  5434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5435. this.taskCount
  5436. ].chapterData[this.lineCount].url = this.line;
  5437. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5438. this.taskCount
  5439. ].chapterData[this.lineCount].title = this.lineTitle;
  5440. this.dialogVisible7 = false;
  5441. },
  5442. addPP() {
  5443. this.dialogVisible3 = true;
  5444. },
  5445. goTo(path) {
  5446. this.$router.push(path);
  5447. },
  5448. openTools(itemTaskIndex, i, toolIndex) {
  5449. this.toolIndex = toolIndex;
  5450. this.taskCount = itemTaskIndex;
  5451. if (i == 4) {
  5452. if (toolIndex == null) {
  5453. var a =
  5454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5455. .chapterData;
  5456. for (var i = 0; i < a.length; i++) {
  5457. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5458. this.askJson =
  5459. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5460. itemTaskIndex
  5461. ].chapterData[i].askJson;
  5462. }
  5463. }
  5464. } else {
  5465. this.askJson = JSON.parse(
  5466. JSON.stringify(
  5467. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5468. itemTaskIndex
  5469. ].toolChoose[toolIndex]
  5470. )
  5471. );
  5472. }
  5473. this.askJson2 = JSON.parse(JSON.stringify(this.askJson))
  5474. this.dialogVisible5 = true;
  5475. } else if (i == 45) {
  5476. if (
  5477. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5478. .toolChoose[toolIndex].testJson
  5479. ) {
  5480. this.testJson = JSON.parse(
  5481. JSON.stringify(
  5482. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5483. itemTaskIndex
  5484. ].toolChoose[toolIndex].testJson
  5485. )
  5486. );
  5487. } else {
  5488. var testJson = {
  5489. testCount: 1,
  5490. testTitle: "",
  5491. testJson: [
  5492. {
  5493. teststitle: "",
  5494. testItem: 1,
  5495. checkList: [],
  5496. timuList: [],
  5497. answer: [],
  5498. type: "1",
  5499. },
  5500. ],
  5501. };
  5502. this.testJson = testJson;
  5503. }
  5504. this.testJson2 = JSON.parse(JSON.stringify(this.testJson));
  5505. this.dialogVisibleChoice = true;
  5506. } else if (i == 47) {
  5507. if (
  5508. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5509. .toolChoose[toolIndex].sentenceList
  5510. ) {
  5511. this.sentenceList = JSON.parse(
  5512. JSON.stringify(
  5513. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5514. itemTaskIndex
  5515. ].toolChoose[toolIndex].sentenceList
  5516. )
  5517. );
  5518. } else {
  5519. var sentenceList = [
  5520. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5521. ];
  5522. this.sentenceList = sentenceList;
  5523. }
  5524. this.sentenceList2 = JSON.parse(JSON.stringify(this.sentenceList));
  5525. this.dialogVisibleSentence = true;
  5526. } else if (i == 48) {
  5527. if (
  5528. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5529. .toolChoose[toolIndex].tableJson
  5530. ) {
  5531. this.tableJson = JSON.parse(
  5532. JSON.stringify(
  5533. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5534. itemTaskIndex
  5535. ].toolChoose[toolIndex].tableJson
  5536. )
  5537. );
  5538. } else {
  5539. var tableJson = { text: "" };
  5540. this.tableJson = tableJson;
  5541. }
  5542. this.dialogVisibleTable = true;
  5543. } else if (i == 52) {
  5544. if (
  5545. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5546. .toolChoose[toolIndex].wordJson
  5547. ) {
  5548. this.wordJson = JSON.parse(
  5549. JSON.stringify(
  5550. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5551. itemTaskIndex
  5552. ].toolChoose[toolIndex].wordJson
  5553. )
  5554. );
  5555. } else {
  5556. var wordJson = { text: "" };
  5557. this.wordJson = wordJson;
  5558. }
  5559. this.dialogVisibleWord = true;
  5560. // else if (i == 50) {
  5561. // if (
  5562. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5563. // .toolChoose[toolIndex].uploadJson
  5564. // ) {
  5565. // this.uploadJson = JSON.parse(
  5566. // JSON.stringify(
  5567. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5568. // itemTaskIndex
  5569. // ].toolChoose[toolIndex].uploadJson
  5570. // )
  5571. // );
  5572. // } else {
  5573. // var uploadJson = [];
  5574. // this.uploadJson = uploadJson;
  5575. // }
  5576. // this.dialogVisibleMoreUpload = true;
  5577. // }
  5578. } else if (i == 10) {
  5579. if (
  5580. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5581. .toolChoose[toolIndex].preTime
  5582. ) {
  5583. this.preTime = JSON.parse(
  5584. JSON.stringify(
  5585. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5586. itemTaskIndex
  5587. ].toolChoose[toolIndex].preTime
  5588. )
  5589. );
  5590. } else {
  5591. var preTime = 0;
  5592. this.preTime = preTime;
  5593. }
  5594. this.dialogVisiblePreTime = true;
  5595. } else if (i == 49) {
  5596. if (
  5597. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5598. .toolChoose[toolIndex].groupJson
  5599. ) {
  5600. this.groupJson = JSON.parse(
  5601. JSON.stringify(
  5602. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5603. itemTaskIndex
  5604. ].toolChoose[toolIndex].groupJson
  5605. )
  5606. );
  5607. } else {
  5608. var groupJson = {
  5609. group: [{ name: "第1组" }],
  5610. number: undefined,
  5611. islock: 1,
  5612. };
  5613. this.groupJson = groupJson;
  5614. }
  5615. this.dialogVisibleGroup = true;
  5616. } else if (i == 62) {
  5617. if (
  5618. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5619. .toolChoose[toolIndex].videoJson
  5620. ) {
  5621. this.videoJson = JSON.parse(
  5622. JSON.stringify(
  5623. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5624. itemTaskIndex
  5625. ].toolChoose[toolIndex].videoJson
  5626. )
  5627. );
  5628. } else {
  5629. var videoJson = {
  5630. video: "",
  5631. setting: [],
  5632. };
  5633. this.videoJson = videoJson;
  5634. }
  5635. this.dialogVisibleVideo = true;
  5636. } else if (i == 15) {
  5637. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5638. itemTaskIndex
  5639. ].toolChoose[toolIndex].answerQ
  5640. ? JSON.parse(
  5641. JSON.stringify(
  5642. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5643. itemTaskIndex
  5644. ].toolChoose[toolIndex].answerQ
  5645. )
  5646. )
  5647. : "";
  5648. this.answerQ2 = JSON.parse(JSON.stringify(this.answerQ))
  5649. this.dialogVisible8 = true;
  5650. } else if (i == 40) {
  5651. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5652. itemTaskIndex
  5653. ].toolChoose[toolIndex].rateJson
  5654. ? JSON.parse(
  5655. JSON.stringify(
  5656. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5657. itemTaskIndex
  5658. ].toolChoose[toolIndex].rateJson
  5659. )
  5660. )
  5661. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5662. this.selectSteps = 1;
  5663. this.dialogVisibleRate = true;
  5664. } else if (i == 42) {
  5665. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5666. itemTaskIndex
  5667. ].toolChoose[toolIndex].answerQ
  5668. ? JSON.parse(
  5669. JSON.stringify(
  5670. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5671. itemTaskIndex
  5672. ].toolChoose[toolIndex].answerQ
  5673. )
  5674. )
  5675. : "";
  5676. this.dialogVisibleMp3 = true;
  5677. } else if (i == 41) {
  5678. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5679. itemTaskIndex
  5680. ].toolChoose[toolIndex].selectJson
  5681. ? JSON.parse(
  5682. JSON.stringify(
  5683. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5684. itemTaskIndex
  5685. ].toolChoose[toolIndex].selectJson
  5686. )
  5687. )
  5688. : { url: "", select: [], answer: [] };
  5689. this.selectSteps = 1;
  5690. this.selectJson2 = JSON.parse(JSON.stringify(this.selectJson))
  5691. this.dialogVisibleSelect = true;
  5692. } else if (i == 3) {
  5693. if (!this.cid) {
  5694. this.$message.error(
  5695. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5696. );
  5697. return;
  5698. }
  5699. window.parent.postMessage(
  5700. {
  5701. tools: "3y",
  5702. cid: this.cid,
  5703. stage: this.unitIndex,
  5704. task: itemTaskIndex,
  5705. tool: toolIndex,
  5706. },
  5707. "*"
  5708. );
  5709. } else if (i == 1) {
  5710. if (!this.cid) {
  5711. this.$message.error(
  5712. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5713. );
  5714. return;
  5715. }
  5716. window.parent.postMessage(
  5717. {
  5718. tools: "1y",
  5719. cid: this.cid,
  5720. stage: this.unitIndex,
  5721. task: itemTaskIndex,
  5722. tool: toolIndex,
  5723. },
  5724. "*"
  5725. );
  5726. } else if (i == 57) {
  5727. if (!this.cid) {
  5728. this.$message.error(
  5729. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  5730. );
  5731. return;
  5732. }
  5733. window.parent.postMessage(
  5734. {
  5735. tools: "57y",
  5736. cid: this.cid,
  5737. stage: this.unitIndex,
  5738. task: itemTaskIndex,
  5739. tool: toolIndex,
  5740. },
  5741. "*"
  5742. );
  5743. }
  5744. },
  5745. chapAddTools(i) {
  5746. if (this.chapTools[0].tools.length == 0) {
  5747. this.chapTools[0].tools.push(i);
  5748. } else {
  5749. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5750. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5751. } else {
  5752. this.chapTools[0].tools.push(i);
  5753. }
  5754. }
  5755. this.$forceUpdate();
  5756. },
  5757. addChaptersDataTools() {
  5758. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5759. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5760. this.chapCount
  5761. ].chapterData.push({
  5762. name: this.chapTools[0].toolDetail,
  5763. url: this.chapTools[0].tools,
  5764. type: 7,
  5765. askJson: this.askJson,
  5766. });
  5767. } else {
  5768. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5769. this.chapCount
  5770. ].chapterData.push({
  5771. name: this.chapTools[0].toolDetail,
  5772. url: this.chapTools[0].tools,
  5773. type: 7,
  5774. });
  5775. }
  5776. this.imgChange1(null, null, 7, this.chapCount);
  5777. this.dialogVisible4 = false;
  5778. },
  5779. addTools(i, itemTaskIndex, toolIndex) {
  5780. // if (
  5781. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5782. // .toolChoose[toolIndex].tool.length == 0
  5783. // ) {
  5784. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5785. // itemTaskIndex
  5786. // ].toolChoose[toolIndex].tool.push(i);
  5787. // } else {
  5788. // if (
  5789. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5790. // itemTaskIndex
  5791. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5792. // ) {
  5793. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5794. // itemTaskIndex
  5795. // ].toolChoose[toolIndex].tool.splice(
  5796. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5797. // itemTaskIndex
  5798. // ].toolChoose[toolIndex].tool.indexOf(i),
  5799. // 1
  5800. // );
  5801. // } else {
  5802. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5803. // itemTaskIndex
  5804. // ].toolChoose[toolIndex].tool.push(i);
  5805. // }
  5806. // console.log(
  5807. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5808. // .toolChoose[toolIndex].tool
  5809. // );
  5810. // }
  5811. if (i == 4) {
  5812. if (
  5813. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5814. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5816. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5817. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5818. .toolChoose[toolIndex].askJson[0].checkList < 2
  5819. ) {
  5820. this.openTools(itemTaskIndex, 4, toolIndex);
  5821. // this.$message({
  5822. // message: "请填写完整问卷内容",
  5823. // type: "error",
  5824. // });
  5825. return;
  5826. }
  5827. }
  5828. if (i == 45) {
  5829. if (
  5830. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5831. .toolChoose[toolIndex].testJson ||
  5832. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5833. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5834. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5835. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5836. ) {
  5837. this.openTools(itemTaskIndex, 45, toolIndex);
  5838. // this.$message({
  5839. // message: "请填写完整问卷内容",
  5840. // type: "error",
  5841. // });
  5842. return;
  5843. }
  5844. }
  5845. if (i == 47) {
  5846. if (
  5847. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5848. .toolChoose[toolIndex].sentenceList ||
  5849. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5850. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5851. ) {
  5852. this.openTools(itemTaskIndex, 47, toolIndex);
  5853. return;
  5854. }
  5855. }
  5856. // if (i == 48) {
  5857. // if (
  5858. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5859. // .toolChoose[toolIndex].tableJson
  5860. // ) {
  5861. // this.openTools(itemTaskIndex, 48, toolIndex);
  5862. // return;
  5863. // }
  5864. // }
  5865. // if (i == 50) {
  5866. // if (
  5867. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5868. // .toolChoose[toolIndex].uploadJson
  5869. // ) {
  5870. // this.openTools(itemTaskIndex, 50, toolIndex);
  5871. // return;
  5872. // }
  5873. // }
  5874. if (i == 49) {
  5875. if (
  5876. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5877. .toolChoose[toolIndex].groupJson
  5878. ) {
  5879. this.openTools(itemTaskIndex, 49, toolIndex);
  5880. return;
  5881. }
  5882. }
  5883. if (i == 62) {
  5884. if (
  5885. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5886. .toolChoose[toolIndex].videoJson
  5887. ) {
  5888. this.openTools(itemTaskIndex, 62, toolIndex);
  5889. return;
  5890. }
  5891. }
  5892. if (i == 15) {
  5893. if (
  5894. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5895. .toolChoose[toolIndex].answerQ ||
  5896. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5897. .toolChoose[toolIndex].answerQ == ""
  5898. ) {
  5899. this.openTools(itemTaskIndex, 15, toolIndex);
  5900. // this.$message({
  5901. // message: "请填写问答内容",
  5902. // type: "error",
  5903. // });
  5904. return;
  5905. }
  5906. }
  5907. if (i == 40) {
  5908. if (
  5909. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5910. .toolChoose[toolIndex].rateJson ||
  5911. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5912. .toolChoose[toolIndex].rateJson.length
  5913. ) {
  5914. this.openTools(itemTaskIndex, 40, toolIndex);
  5915. return;
  5916. }
  5917. }
  5918. if (i == 41) {
  5919. if (
  5920. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5921. .toolChoose[toolIndex].selectJson ||
  5922. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5923. .toolChoose[toolIndex].selectJson.url == "" ||
  5924. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5925. .toolChoose[toolIndex].selectJson.select.length ||
  5926. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5927. .toolChoose[toolIndex].selectJson.answer.length
  5928. ) {
  5929. this.openTools(itemTaskIndex, 41, toolIndex);
  5930. return;
  5931. }
  5932. }
  5933. if (i == 42) {
  5934. if (
  5935. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5936. .toolChoose[toolIndex].answerQ ||
  5937. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5938. .toolChoose[toolIndex].answerQ == ""
  5939. ) {
  5940. this.openTools(itemTaskIndex, 42, toolIndex);
  5941. return;
  5942. }
  5943. }
  5944. if (
  5945. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5946. .toolChoose[toolIndex].tool.length > 0
  5947. ) {
  5948. if (
  5949. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5950. itemTaskIndex
  5951. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5952. ) {
  5953. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5954. itemTaskIndex
  5955. ].toolChoose[toolIndex].tool.splice(
  5956. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5957. itemTaskIndex
  5958. ].toolChoose[toolIndex].tool.indexOf(i),
  5959. 1
  5960. );
  5961. } else {
  5962. // this.$message({
  5963. // message: "每个工具只能添加一个",
  5964. // type: "error",
  5965. // });
  5966. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5967. itemTaskIndex
  5968. ].toolChoose[toolIndex].tool = [];
  5969. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5970. itemTaskIndex
  5971. ].toolChoose[toolIndex].tool.push(i);
  5972. }
  5973. } else {
  5974. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5975. itemTaskIndex
  5976. ].toolChoose[toolIndex].tool.push(i);
  5977. }
  5978. this.$forceUpdate();
  5979. },
  5980. addAskList(index) {
  5981. this.askJson.askJson.splice(index + 1, 0, {
  5982. askstitle: "",
  5983. askItem: 1,
  5984. checkList: [],
  5985. })
  5986. this.askJson.askCount++;
  5987. },
  5988. addTestList(index) {
  5989. this.testJson.testJson.splice(index + 1, 0, {
  5990. teststitle: "",
  5991. testItem: 1,
  5992. checkList: [],
  5993. timuList: [],
  5994. answer: [],
  5995. type: "1",
  5996. })
  5997. this.testJson.testCount++;
  5998. },
  5999. deleteAskList(index) {
  6000. if (!this.askJson.askJson[index].askstitle && this.askJson.askJson[index].askItem == 1 && !this.askJson.askJson[index].checkList[0]) {
  6001. this.askJson.askJson.splice(index, 1);
  6002. this.askJson.askCount--;
  6003. } else {
  6004. let _this = this;
  6005. _this
  6006. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6007. confirmButtonText: "确定",
  6008. cancelButtonText: "取消",
  6009. type: "warning",
  6010. })
  6011. .then(() => {
  6012. _this.askJson.askJson.splice(index, 1);
  6013. _this.askJson.askCount--;
  6014. })
  6015. .catch(() => {
  6016. return;
  6017. });
  6018. }
  6019. },
  6020. deleteTestList(index) {
  6021. if (!this.testJson.testJson[index].teststitle && this.testJson.testJson[index].testItem == 1 && !this.testJson.testJson[index].checkList[0]) {
  6022. this.testJson.testJson.splice(index, 1);
  6023. this.testJson.testCount--;
  6024. } else {
  6025. let _this = this;
  6026. _this
  6027. .$confirm("此操作不可撤销,是否继续?", "提示", {
  6028. confirmButtonText: "确定",
  6029. cancelButtonText: "取消",
  6030. type: "warning",
  6031. })
  6032. .then(() => {
  6033. _this.testJson.testJson.splice(index, 1);
  6034. _this.testJson.testCount--;
  6035. })
  6036. .catch(() => {
  6037. return;
  6038. });
  6039. }
  6040. },
  6041. askMove(type, index) {
  6042. if (type == 1) {
  6043. if (index > 0) {
  6044. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index - 1]));
  6045. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6046. this.askJson.askJson[index - 1] = b;
  6047. this.askJson.askJson[index] = a;
  6048. }
  6049. } else {
  6050. if (
  6051. index < this.askJson.askJson.length - 1
  6052. ) {
  6053. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index + 1]));
  6054. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index]));
  6055. this.askJson.askJson[index + 1] = b;
  6056. this.askJson.askJson[index] = a;
  6057. }
  6058. }
  6059. this.$forceUpdate();
  6060. },
  6061. checkMove(type, index, checkIndex) {
  6062. if (type == 1) {
  6063. if (checkIndex > 0) {
  6064. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex - 1]));
  6065. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6066. this.askJson.askJson[index].checkList[checkIndex - 1] = b;
  6067. this.askJson.askJson[index].checkList[checkIndex] = a;
  6068. }
  6069. } else {
  6070. if (
  6071. checkIndex < this.askJson.askJson[index].checkList.length - 1
  6072. ) {
  6073. let a = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex + 1]));
  6074. let b = JSON.parse(JSON.stringify(this.askJson.askJson[index].checkList[checkIndex]));
  6075. this.askJson.askJson[index].checkList[checkIndex + 1] = b;
  6076. this.askJson.askJson[index].checkList[checkIndex] = a;
  6077. }
  6078. }
  6079. this.$forceUpdate();
  6080. },
  6081. testMove(type, index) {
  6082. if (type == 1) {
  6083. if (index > 0) {
  6084. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index - 1]));
  6085. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6086. this.testJson.testJson[index - 1] = b;
  6087. this.testJson.testJson[index] = a;
  6088. }
  6089. } else {
  6090. if (
  6091. index < this.testJson.testJson.length - 1
  6092. ) {
  6093. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index + 1]));
  6094. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index]));
  6095. this.testJson.testJson[index + 1] = b;
  6096. this.testJson.testJson[index] = a;
  6097. }
  6098. }
  6099. this.$forceUpdate();
  6100. },
  6101. tcheckMove(type, index, checkIndex) {
  6102. if (type == 1) {
  6103. if (checkIndex > 0) {
  6104. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex - 1]));
  6105. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6106. this.testJson.testJson[index].checkList[checkIndex - 1] = b;
  6107. this.testJson.testJson[index].checkList[checkIndex] = a;
  6108. }
  6109. } else {
  6110. if (
  6111. checkIndex < this.testJson.testJson[index].checkList.length - 1
  6112. ) {
  6113. let a = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex + 1]));
  6114. let b = JSON.parse(JSON.stringify(this.testJson.testJson[index].checkList[checkIndex]));
  6115. this.testJson.testJson[index].checkList[checkIndex + 1] = b;
  6116. this.testJson.testJson[index].checkList[checkIndex] = a;
  6117. }
  6118. }
  6119. this.$forceUpdate();
  6120. },
  6121. addcheckList(json, index) {
  6122. // json.checkList.length++;
  6123. json.checkList.splice(index + 1, 0, '')
  6124. json.askItem++;
  6125. this.$forceUpdate();
  6126. },
  6127. deletecheckList(json, index) {
  6128. // json.checkList.length--;
  6129. json.checkList.splice(index, 1)
  6130. json.askItem--;
  6131. this.$forceUpdate();
  6132. },
  6133. addTcheckList(json, index) {
  6134. // json.checkList.length++;
  6135. json.checkList.splice(index + 1, 0, '')
  6136. json.testItem++;
  6137. this.$forceUpdate();
  6138. },
  6139. deleteTcheckList(json, index) {
  6140. // json.checkList.length--;
  6141. json.checkList.splice(index, 1)
  6142. json.testItem--;
  6143. this.$forceUpdate();
  6144. },
  6145. checkTestType(type, json) {
  6146. json.type = type;
  6147. setTimeout(() => {
  6148. json.answer = [];
  6149. }, 100)
  6150. this.$forceUpdate();
  6151. },
  6152. checkAskType(type, json) {
  6153. json.type = type;
  6154. // json.checkList = [];
  6155. this.$forceUpdate();
  6156. },
  6157. addSelectList(json) {
  6158. json.select.push("");
  6159. json.answer.push("");
  6160. },
  6161. deleteSelectList(json) {
  6162. // json.select.length--;
  6163. // json.answer.length--;
  6164. json.select.splice(json.select.length - 1, 1);
  6165. json.answer.splice(json.answer.length - 1, 1);
  6166. },
  6167. addAsk() {
  6168. if (this.askJson.askTitle === "") {
  6169. this.$message.error("标题不能为空!");
  6170. return;
  6171. }
  6172. var aj = this.askJson.askJson;
  6173. var b = 1;
  6174. for (var i = 0; i < aj.length; i++) {
  6175. if (aj[i].askstitle === "") {
  6176. var a = 1;
  6177. for (let index = 0; index < aj[i].askItem; index++) {
  6178. const element = aj[i].checkList[index]
  6179. ? aj[i].checkList[index]
  6180. : "";
  6181. if (element != "") {
  6182. b++;
  6183. this.$message.error(`请将题目${i + 1}填写完整。`);
  6184. return;
  6185. } else {
  6186. a++;
  6187. }
  6188. }
  6189. if (b == 1) {
  6190. this.$message.error("至少填写一个问题");
  6191. return;
  6192. }
  6193. } else if (aj[i].askstitle != "") {
  6194. for (let index = 0; index < aj[i].askItem; index++) {
  6195. const element = aj[i].checkList[index]
  6196. ? aj[i].checkList[index]
  6197. : "";
  6198. var index = 0;
  6199. for (var z = 0; z < aj[i].checkList.length; z++) {
  6200. let checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6201. if (checkC != "") {
  6202. index++;
  6203. } else {
  6204. this.$message.error(`题目${i + 1}选项不能为空!`);
  6205. return;
  6206. }
  6207. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6208. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6209. if (checkC == checkC2) {
  6210. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6211. return;
  6212. }
  6213. }
  6214. }
  6215. b++;
  6216. if (index < 2) {
  6217. this.$message.error("每道题目至少需要设置2个选项。");
  6218. return;
  6219. }
  6220. }
  6221. }
  6222. }
  6223. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  6224. var elc = el.checkList.filter((element) => {
  6225. return element != "";
  6226. });
  6227. return el.askstitle != "" && elc.length != 0;
  6228. });
  6229. if (!this.dialogVisible4) {
  6230. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6231. this.taskCount
  6232. ].toolChoose[this.toolIndex] = this.askJson;
  6233. }
  6234. this.dialogVisible5 = false;
  6235. if (
  6236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6237. .toolChoose[this.toolIndex].tool != 4
  6238. ) {
  6239. this.addTools(4, this.taskCount, this.toolIndex);
  6240. }
  6241. },
  6242. addTest() {
  6243. // if (this.testJson.testTitle === "") {
  6244. // this.$message.error("标题不能为空!");
  6245. // return;
  6246. // }
  6247. var aj = this.testJson.testJson;
  6248. var b = 1;
  6249. for (var i = 0; i < aj.length; i++) {
  6250. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6251. var a = 1;
  6252. for (let index = 0; index < aj[i].testItem; index++) {
  6253. const element = aj[i].checkList[index]
  6254. ? aj[i].checkList[index]
  6255. : "";
  6256. if (element != "") {
  6257. b++;
  6258. this.$message.error(`请将题目${i + 1}填写完整。`);
  6259. return;
  6260. } else {
  6261. a++;
  6262. }
  6263. }
  6264. if (b == 1) {
  6265. this.$message.error("至少填写一个问题");
  6266. return;
  6267. }
  6268. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6269. for (let index = 0; index < aj[i].testItem; index++) {
  6270. const element = aj[i].checkList[index]
  6271. ? aj[i].checkList[index]
  6272. : "";
  6273. var index = 0;
  6274. for (var z = 0; z < aj[i].checkList.length; z++) {
  6275. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6276. if (checkC != "") {
  6277. index++;
  6278. } else {
  6279. this.$message.error(`题目${i + 1}选项不能为空!`);
  6280. return;
  6281. }
  6282. for (var z2 = z + 1; z2 < aj[i].checkList.length; z2++) {
  6283. let checkC2 = aj[i].checkList[z2] ? aj[i].checkList[z2] : "";
  6284. if (checkC == checkC2) {
  6285. this.$message.error(`第${i + 1}题的选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6286. return;
  6287. }
  6288. }
  6289. }
  6290. b++;
  6291. if (index < 2) {
  6292. this.$message.error("每道题目至少需要设置2个选项。");
  6293. return;
  6294. }
  6295. if (
  6296. (aj[i].type == "2" && !aj[i].answer.length) ||
  6297. (aj[i].type == "1" && ((typeof aj[i].answer == 'object' && !aj[i].answer.length) || (aj[i].answer !== 0 && !aj[i].answer)))
  6298. ) {
  6299. this.$message.error(`请将题目${i + 1}的正确选项设置完整`);
  6300. return;
  6301. }
  6302. }
  6303. }
  6304. }
  6305. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6306. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6307. var elc = el.checkList.filter((element) => {
  6308. return element != "";
  6309. });
  6310. return (
  6311. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6312. );
  6313. });
  6314. isTestJson.testCount = isTestJson.testJson.length;
  6315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6316. this.taskCount
  6317. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6318. this.dialogVisibleChoice = false;
  6319. if (
  6320. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6321. .toolChoose[this.toolIndex].tool != 45
  6322. ) {
  6323. this.addTools(45, this.taskCount, this.toolIndex);
  6324. }
  6325. },
  6326. addVideoJson(videoJson) {
  6327. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6328. this.taskCount
  6329. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6330. this.dialogVisibleVideo = false;
  6331. if (
  6332. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6333. .toolChoose[this.toolIndex].tool != 62
  6334. ) {
  6335. this.addTools(62, this.taskCount, this.toolIndex);
  6336. }
  6337. },
  6338. //自动获取剪贴板
  6339. pasteOption() {
  6340. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6341. if (!iframe) {
  6342. this.$message.error("请使用AI共创生成题目");
  6343. return;
  6344. }
  6345. let copyData = iframe.contentWindow.copyData;
  6346. if (!copyData || !copyData.selectData.length) {
  6347. this.$message.error("请使用AI共创生成题目");
  6348. return;
  6349. }
  6350. let selectData = copyData.selectData;
  6351. for (var i = 0; i < selectData.length; i++) {
  6352. let answer = 0;
  6353. switch (selectData[i].answer[0]) {
  6354. case "A":
  6355. answer = 0;
  6356. break;
  6357. case "B":
  6358. answer = 1;
  6359. break;
  6360. case "C":
  6361. answer = 2;
  6362. break;
  6363. case "D":
  6364. answer = 3;
  6365. break;
  6366. case "E":
  6367. answer = 4;
  6368. break;
  6369. default:
  6370. break;
  6371. }
  6372. this.testJson.testJson.push({
  6373. teststitle: selectData[i].subject,
  6374. testItem: selectData[i].options.length,
  6375. checkList: selectData[i].options,
  6376. timuList: [],
  6377. answer: answer,
  6378. type: "1",
  6379. });
  6380. this.testJson.testCount++;
  6381. }
  6382. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6383. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6384. var elc = el.checkList.filter((element) => {
  6385. return element != "";
  6386. });
  6387. return (
  6388. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6389. );
  6390. });
  6391. isTestJson.testCount = isTestJson.testJson.length;
  6392. this.testJson = isTestJson;
  6393. this.$forceUpdate();
  6394. },
  6395. pasteTask() {
  6396. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6397. if (!iframe) {
  6398. this.$message.error("请使用AI共创生成");
  6399. return;
  6400. }
  6401. let copyData = iframe.contentWindow.copyData;
  6402. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6403. this.$message.error("请使用AI共创生成");
  6404. return;
  6405. }
  6406. let stageTasksData = copyData.tasksData;
  6407. let taskA = [];
  6408. let tasks = stageTasksData;
  6409. for (var j = 0; j < tasks.length; j++) {
  6410. taskA.push({
  6411. task: tasks[j].taskName,
  6412. taskDetail: tasks[j].taskDecs,
  6413. chapterData: [],
  6414. toolText: "",
  6415. toolChoose: [
  6416. {
  6417. tool: [],
  6418. toolDetail: "",
  6419. toolType: 0,
  6420. askCount: 1,
  6421. askTitle: "",
  6422. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6423. },
  6424. ],
  6425. isShowTools: false,
  6426. askCount: 1,
  6427. isFold: 0,
  6428. askTitle: "",
  6429. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6430. checkJson: [{ checkCount: [], checkPerent: [] }],
  6431. homeworkList: [],
  6432. });
  6433. }
  6434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  6435. this.$forceUpdate();
  6436. },
  6437. pasteStage() {
  6438. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  6439. if (!iframe) {
  6440. this.$message.error("请使用AI共创生成");
  6441. return;
  6442. }
  6443. let copyData = iframe.contentWindow.copyData;
  6444. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6445. this.$message.error("请使用AI共创生成");
  6446. return;
  6447. }
  6448. let stageData = copyData.stageData;
  6449. let stage = [];
  6450. for (var i = 0; i < stageData.length; i++) {
  6451. stage.push({
  6452. dyName: stageData[i], //单元标题
  6453. chapterInfo: [
  6454. {
  6455. isread: false,
  6456. chapterid: this.guid(),
  6457. title: "",
  6458. courseName: "",
  6459. taskJson: [
  6460. {
  6461. task: "",
  6462. taskDetail: "",
  6463. chapterData: [],
  6464. toolText: "",
  6465. toolChoose: [
  6466. {
  6467. tool: [],
  6468. toolDetail: "",
  6469. toolType: 0,
  6470. askCount: 1,
  6471. askTitle: "",
  6472. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6473. },
  6474. ],
  6475. isShowTools: false,
  6476. askCount: 1,
  6477. isFold: 0,
  6478. askTitle: "",
  6479. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6480. checkJson: [{ checkCount: [], checkPerent: [] }],
  6481. homeworkList: [],
  6482. },
  6483. ],
  6484. itemCount: 1,
  6485. fileList1: [],
  6486. video: [],
  6487. testData: [],
  6488. pData: [],
  6489. templateArray: [],
  6490. },
  6491. ],
  6492. });
  6493. }
  6494. let _this = this;
  6495. _this
  6496. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6497. confirmButtonText: "确定",
  6498. cancelButtonText: "取消",
  6499. type: "warning",
  6500. })
  6501. .then(() => {
  6502. _this.unitIndex = 0;
  6503. _this.unitJson = stage;
  6504. _this.steps++;
  6505. _this.updateWork();
  6506. })
  6507. .catch(() => {
  6508. return;
  6509. });
  6510. },
  6511. addAnswer() {
  6512. if (this.answerQ == "") {
  6513. this.$message.error("请输入您想要问的问题");
  6514. return;
  6515. }
  6516. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6517. this.taskCount
  6518. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6519. this.dialogVisible8 = false;
  6520. if (
  6521. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6522. .toolChoose[this.toolIndex].tool != 15
  6523. ) {
  6524. this.addTools(15, this.taskCount, this.toolIndex);
  6525. }
  6526. },
  6527. addMp3Answer() {
  6528. if (this.answerQ == "") {
  6529. this.$message.error("请输入您想要回答的问题");
  6530. return;
  6531. }
  6532. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6533. this.taskCount
  6534. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6535. this.dialogVisibleMp3 = false;
  6536. },
  6537. addRateAnswer() {
  6538. var a = 1;
  6539. for (var i = 0; i < this.rateJson.length; i++) {
  6540. if (this.rateJson[i].value == "") {
  6541. a = 2;
  6542. break;
  6543. }
  6544. }
  6545. if (a == 2) {
  6546. this.$message.error("请把评价信息填写完整");
  6547. return;
  6548. }
  6549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6550. this.taskCount
  6551. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6552. this.dialogVisibleRate = false;
  6553. if (
  6554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6555. .toolChoose[this.toolIndex].tool != 40
  6556. ) {
  6557. this.addTools(40, this.taskCount, this.toolIndex);
  6558. }
  6559. },
  6560. addSelectAnswer() {
  6561. if (this.selectJson.url == "") {
  6562. this.$message.error("请上传题目");
  6563. return;
  6564. }
  6565. if (!this.selectJson.select.length) {
  6566. this.$message.error("请添加选项");
  6567. return;
  6568. }
  6569. if (!this.selectJson.answer.length) {
  6570. this.$message.error("请设置答案");
  6571. return;
  6572. }
  6573. var a = 1;
  6574. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6575. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6576. a = 2;
  6577. }
  6578. }
  6579. if (a == 2) {
  6580. this.$message.error("请设置答案");
  6581. return;
  6582. }
  6583. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6584. this.taskCount
  6585. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6586. this.dialogVisibleSelect = false;
  6587. if (
  6588. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6589. .toolChoose[this.toolIndex].tool != 41
  6590. ) {
  6591. this.addTools(41, this.taskCount, this.toolIndex);
  6592. }
  6593. },
  6594. nextSelectSteps() {
  6595. if (this.selectJson.url == "") {
  6596. this.$message.error("请上传题目");
  6597. return;
  6598. }
  6599. if (!this.selectJson.select.length) {
  6600. this.$message.error("请添加选项");
  6601. return;
  6602. } else {
  6603. for (var z = 0; z < this.selectJson.select.length; z++) {
  6604. let checkC = this.selectJson.select[z];
  6605. for (var z2 = z + 1; z2 < this.selectJson.select.length; z2++) {
  6606. let checkC2 = this.selectJson.select[z2];
  6607. if (checkC == checkC2) {
  6608. this.$message.error(`选项${z + 1}和选项${z2 + 1}重复了,请修改!`);
  6609. return;
  6610. }
  6611. }
  6612. }
  6613. }
  6614. var a = 1;
  6615. for (var i = 0; i < this.selectJson.select.length; i++) {
  6616. if (!this.selectJson.select[i]) {
  6617. a = 2;
  6618. }
  6619. }
  6620. if (a == 2) {
  6621. this.$message.error("添加的选项不能为空");
  6622. return;
  6623. }
  6624. this.selectSteps++;
  6625. },
  6626. selectCourseDetail() {
  6627. if (this.cid == "" || this.cid == undefined) {
  6628. console.log("这是新增课程");
  6629. this.selectAllType();
  6630. } else {
  6631. this.cidType = 1;
  6632. let params = {
  6633. cid: this.cid,
  6634. };
  6635. this.ajax
  6636. .get(this.$store.state.api + "select_synergy", params)
  6637. .then((res) => {
  6638. this.loading = true;
  6639. this.courseDetail = res.data[0][0]
  6640. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6641. for (var j = 0; j < this.unitJson.length; j++) {
  6642. for (
  6643. var k = 0;
  6644. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6645. k++
  6646. ) {
  6647. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6648. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6649. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6650. : [];
  6651. let _chapterData = [];
  6652. for (
  6653. var c = 0;
  6654. c <
  6655. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6656. .length;
  6657. c++
  6658. ) {
  6659. if (
  6660. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6661. ) {
  6662. _chapterData.push(
  6663. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6664. );
  6665. }
  6666. }
  6667. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6668. _chapterData;
  6669. }
  6670. }
  6671. this.$forceUpdate();
  6672. this.courseName = res.data[0][0].title;
  6673. this.courseText = res.data[0][0].brief;
  6674. this.evalua = res.data[0][0].evaId;
  6675. this.cover = JSON.parse(res.data[0][0].cover);
  6676. this.noneBtnImg = this.cover.length >= 1;
  6677. // this.checkboxList =
  6678. // res.data[0][0].course_student.length > 0
  6679. // ? JSON.parse(res.data[0][0].course_student)
  6680. // : [];
  6681. this.checkboxList2 = res.data[0][0].juri
  6682. ? res.data[0][0].juri.split(",")
  6683. : [];
  6684. this.inviteCode = [];
  6685. for (var i = 0; i < res.data[2].length; i++) {
  6686. this.inviteCode.push({
  6687. cid: res.data[2][i].classid,
  6688. ic: res.data[2][i].code,
  6689. });
  6690. }
  6691. this.checkboxList3 = res.data[0][0].course_teacher
  6692. ? res.data[0][0].course_teacher.split(",")
  6693. : [];
  6694. // this.isTeacherSee =
  6695. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6696. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6697. this.myWord = res.data[0][0].template;
  6698. this.templateC.id = "123";
  6699. this.courseUserid = res.data[0][0].userid;
  6700. // if(this.courseUserid == this.userid){
  6701. // this.InviteChange(this.checkboxList2)
  6702. // }
  6703. this.nbOrder = res.data[0][0].ordernumber;
  6704. this.courseTypeId = [];
  6705. for (var i = 0; i < res.data[1].length; i++) {
  6706. this.courseTypeId.push(res.data[1][i].typeid);
  6707. }
  6708. console.log(this.courseTypeId);
  6709. // if (this.timer) clearInterval(this.timer);
  6710. if (this.timer) clearTimeout(this.timer);
  6711. this.timer = null;
  6712. // this.timer = setInterval(() => {
  6713. // this.seleteCourseUpdate();
  6714. this.setMan();
  6715. this.selectAllType();
  6716. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  6717. // }, 5000);
  6718. this.$forceUpdate();
  6719. setTimeout(() => {
  6720. this.checkEva(this.evalua);
  6721. }, 0);
  6722. })
  6723. .catch((err) => {
  6724. console.error(err);
  6725. });
  6726. }
  6727. },
  6728. seleteCourseUpdate() {
  6729. let params = {
  6730. cid: this.cid,
  6731. };
  6732. this.ajax
  6733. .get(this.$store.state.api + "select_synergy", params)
  6734. .then((res) => {
  6735. // console.log(this.unitJson);
  6736. let unitJson = JSON.parse(res.data[0][0].chapters);
  6737. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6738. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6739. let _unitJson = [];
  6740. let _chapAarry = [];
  6741. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6742. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6743. let index = 1;
  6744. let chapindex;
  6745. if (_unitJson2.length > unitJson.length) {
  6746. for (let c = 0; c < _unitJson2.length; c++) {
  6747. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6748. }
  6749. for (let j = 0; j < unitJson.length; j++) {
  6750. let count = 0;
  6751. for (let k = 0; k < _unitJson2.length; k++) {
  6752. if (
  6753. unitJson[j].chapterInfo[0].chapterid ==
  6754. _unitJson2[k].chapterInfo[0].chapterid
  6755. ) {
  6756. count++;
  6757. _chapAarry.splice(
  6758. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6759. 1
  6760. );
  6761. _unitJson.push(unitJson[j]);
  6762. break;
  6763. }
  6764. }
  6765. // if(count === 0){
  6766. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6767. // }
  6768. }
  6769. for (let k = 0; k < _unitJson2.length; k++) {
  6770. if (_unitJson2[k].isUpdate == 1) {
  6771. _chapAarry.splice(
  6772. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6773. 1
  6774. );
  6775. _unitJson.push(_unitJson2[k]);
  6776. }
  6777. }
  6778. console.log(_chapAarry);
  6779. for (let d = 0; d < _unitJson2.length; d++) {
  6780. if (
  6781. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6782. ) {
  6783. if (_unitIndex == d) {
  6784. index = 2;
  6785. }
  6786. chapindex = d;
  6787. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6788. }
  6789. }
  6790. } else {
  6791. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6792. }
  6793. for (let i = 0; i < unitJson.length; i++) {
  6794. if (
  6795. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6796. _unitJson[i].chapterInfo[0].chapterid !=
  6797. unitJson[i].chapterInfo[0].chapterid
  6798. ) {
  6799. if (i == _unitJson.length - 1) {
  6800. // this.unitIndex++
  6801. _unitIndex2++;
  6802. }
  6803. _unitJson.splice(i, 0, unitJson[i]);
  6804. } else if (i > _unitJson.length - 1) {
  6805. _unitJson.push(unitJson[i]);
  6806. } else if (
  6807. _unitJson[i].chapterInfo[0].chapterid ==
  6808. unitJson[i].chapterInfo[0].chapterid
  6809. ) {
  6810. _unitJson[i] = unitJson[i];
  6811. }
  6812. // if (i == _unitIndex) {
  6813. // continue;
  6814. // } else
  6815. }
  6816. if (_chapAarry.length && index != 2) {
  6817. if (chapindex < _unitIndex) {
  6818. this.isDelete = 2;
  6819. // this.unitIndex--;
  6820. _unitIndex2--;
  6821. } else if (
  6822. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6823. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6824. ) {
  6825. this.isDelete = 2;
  6826. for (let n = 0; n < _unitJson.length; n++) {
  6827. if (
  6828. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6829. _unitJson[n].chapterInfo[0].chapterid
  6830. ) {
  6831. // this.unitIndex = n;
  6832. _unitIndex2 = n;
  6833. _unitJson[n] = _unitJson2[_unitIndex];
  6834. break;
  6835. }
  6836. }
  6837. }
  6838. } else if (index != 2) {
  6839. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6840. _unitJson2[_unitIndex];
  6841. for (
  6842. var ci = 0;
  6843. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6844. ci++
  6845. ) {
  6846. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6847. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6848. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6849. .toolChoose
  6850. : [];
  6851. let _chapterData = [];
  6852. for (
  6853. var c = 0;
  6854. c <
  6855. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6856. .length;
  6857. c++
  6858. ) {
  6859. if (
  6860. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6861. .chapterData[c]
  6862. ) {
  6863. _chapterData.push(
  6864. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6865. .chapterData[c]
  6866. );
  6867. }
  6868. }
  6869. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6870. _chapterData;
  6871. }
  6872. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6873. }
  6874. if (index == 1) {
  6875. this.unitJson = _unitJson;
  6876. this.$forceUpdate();
  6877. setTimeout(() => {
  6878. if (this.unitIndex != _unitIndex2) {
  6879. this.isDelete = 2;
  6880. this.unitIndex = _unitIndex2;
  6881. }
  6882. }, 0);
  6883. this.timer = setTimeout(() => {
  6884. this.seleteCourseUpdate();
  6885. }, 1000);
  6886. } else if (index == 2) {
  6887. let _this = this;
  6888. _this
  6889. .$confirm(
  6890. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6891. "提示",
  6892. {
  6893. confirmButtonText: "需要",
  6894. cancelButtonText: "取消",
  6895. type: "warning",
  6896. }
  6897. )
  6898. .then(() => {
  6899. if (_this.time()) {
  6900. _this.restoreWork(
  6901. _chapAarry[0],
  6902. _unitJson,
  6903. chapindex,
  6904. _unitJson2,
  6905. _unitIndex2
  6906. );
  6907. }
  6908. })
  6909. .catch(() => {
  6910. _this.unitJson = _unitJson;
  6911. _this.$forceUpdate();
  6912. setTimeout(() => {
  6913. if (this.unitIndex != _unitIndex2) {
  6914. this.isDelete = 2;
  6915. this.unitIndex = _unitIndex2;
  6916. }
  6917. }, 0);
  6918. _this.timer = setTimeout(() => {
  6919. _this.seleteCourseUpdate();
  6920. }, 1000);
  6921. });
  6922. }
  6923. })
  6924. .catch((err) => {
  6925. console.error(err);
  6926. });
  6927. },
  6928. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6929. let params = [
  6930. {
  6931. cid: this.cid,
  6932. chapters: JSON.stringify(this.unitJson),
  6933. uid: this.userid,
  6934. chapid: chapid,
  6935. },
  6936. ];
  6937. this.ajax
  6938. .post(this.$store.state.api + "restoreWork", params)
  6939. .then((res) => {
  6940. this.$message({
  6941. message: "恢复成功",
  6942. type: "success",
  6943. });
  6944. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6945. this.unitJson = unitJson;
  6946. this.$forceUpdate();
  6947. setTimeout(() => {
  6948. if (this.unitIndex != unitIndex2) {
  6949. this.isDelete = 2;
  6950. this.unitIndex = unitIndex2;
  6951. }
  6952. }, 0);
  6953. this.timer = setTimeout(() => {
  6954. this.seleteCourseUpdate();
  6955. }, 1000);
  6956. })
  6957. .catch((err) => {
  6958. this.$message.error("网络不佳");
  6959. console.error(err);
  6960. });
  6961. },
  6962. getTypeName() {
  6963. console.log(this.courseTypeId);
  6964. this.$forceUpdate();
  6965. },
  6966. selectAllType() {
  6967. let params = {
  6968. org: this.org && this.org != "" ? this.org : "",
  6969. oid: this.oid && this.oid != "" ? this.oid : "",
  6970. };
  6971. this.ajax
  6972. .get(this.$store.state.api + "selectAllType", params)
  6973. .then((res) => {
  6974. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6975. res.data[0] = [...res.data[0], ...res.data[4]]
  6976. }
  6977. this.CourseType = res.data;
  6978. this.CourseType2 = [
  6979. { name: "智见课程", id: [] },
  6980. { name: "智行课程", id: [] },
  6981. { name: "智创课程", id: [] },
  6982. ];
  6983. for (var cti = 0; cti < res.data[0].length; cti++) {
  6984. if (
  6985. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  6986. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  6987. ) {
  6988. this.CourseType2[0].id.push(res.data[0][cti].id);
  6989. } else if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  6990. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  6991. this.CourseType2[1].id.push(res.data[0][cti].id);
  6992. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  6993. this.CourseType2[2].id.push(res.data[0][cti].id);
  6994. }
  6995. if (res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5") {
  6996. res.data[0][cti].name = "年级";
  6997. } else if (res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5") {
  6998. res.data[0][cti].name = "学科";
  6999. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7000. res.data[0][cti].name = "主题";
  7001. }
  7002. }
  7003. let _courseTypeId = [];
  7004. for (var i = 0; i < res.data[0].length; i++) {
  7005. if (!this.cid) {
  7006. this.courseTypeId[res.data[0][i].id] = [];
  7007. }
  7008. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7009. // }
  7010. this.CourseTypeJson[res.data[0][i].id] = [];
  7011. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7012. if (res.data[0][i].name == "栏目") {
  7013. this.CourseType[0][i].name = "主题";
  7014. }
  7015. }
  7016. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7017. for (var j = 0; j < res.data[1].length; j++) {
  7018. if (
  7019. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7020. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7021. ) {
  7022. _courseTypeId.push(res.data[1][j].id);
  7023. }
  7024. if (res.data[0][i].id == res.data[1][j].pid) {
  7025. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7026. }
  7027. }
  7028. } else {
  7029. if (res.data[2].length > 0) {
  7030. for (var j = 0; j < res.data[2].length; j++) {
  7031. if (
  7032. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7033. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7034. ) {
  7035. _courseTypeId.push(res.data[2][j].id);
  7036. }
  7037. if (res.data[0][i].id == res.data[2][j].pid) {
  7038. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7039. }
  7040. }
  7041. }
  7042. if (res.data[3].length > 0) {
  7043. for (var j = 0; j < res.data[3].length; j++) {
  7044. if (
  7045. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7046. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7047. ) {
  7048. _courseTypeId.push(res.data[3][j].id);
  7049. }
  7050. if (res.data[0][i].id == res.data[3][j].pid) {
  7051. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7052. }
  7053. }
  7054. }
  7055. }
  7056. }
  7057. this.courseTypeId = _courseTypeId;
  7058. })
  7059. .catch((err) => {
  7060. console.error(err);
  7061. });
  7062. },
  7063. selectType() {
  7064. this.ajax
  7065. .get(this.$store.state.api + "selectType")
  7066. .then((res) => {
  7067. this.CourseType = res.data;
  7068. for (var i = 0; i < res.data[0].length; i++) {
  7069. if (!this.cid) {
  7070. this.courseTypeId[res.data[0][i].id] = "";
  7071. }
  7072. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7073. if (res.data[0][i].name == "栏目") {
  7074. this.CourseType[0][i].name = "主题";
  7075. }
  7076. }
  7077. for (var j = 0; j < res.data[1].length; j++) {
  7078. if (res.data[0][i].id == res.data[1][j].pid) {
  7079. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7080. this.CourseTypeJson[res.data[0][i].id] = [];
  7081. }
  7082. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7083. }
  7084. }
  7085. }
  7086. this.selectTypeByOid();
  7087. this.selectTypeByOrg();
  7088. })
  7089. .catch((err) => {
  7090. console.error(err);
  7091. });
  7092. },
  7093. selectTypeByOid() {
  7094. let params = {
  7095. oid: this.oid,
  7096. };
  7097. this.ajax
  7098. .get(this.$store.state.api + "selectTypeByOid", params)
  7099. .then((res) => {
  7100. for (var i = 0; i < res.data[0].length; i++) {
  7101. for (var j = 0; j < res.data[1].length; j++) {
  7102. if (res.data[0][i].id == res.data[1][j].pid) {
  7103. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7104. this.CourseTypeJson[res.data[0][i].id] = [];
  7105. }
  7106. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7107. }
  7108. }
  7109. }
  7110. })
  7111. .catch((err) => {
  7112. console.error(err);
  7113. });
  7114. },
  7115. selectTypeByOrg() {
  7116. let params = {
  7117. oid: this.org,
  7118. };
  7119. this.ajax
  7120. .get(this.$store.state.api + "selectTypeByOrg", params)
  7121. .then((res) => {
  7122. for (var i = 0; i < res.data[0].length; i++) {
  7123. for (var j = 0; j < res.data[1].length; j++) {
  7124. if (res.data[0][i].id == res.data[1][j].pid) {
  7125. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7126. this.CourseTypeJson[res.data[0][i].id] = [];
  7127. }
  7128. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7129. }
  7130. }
  7131. }
  7132. this.$forceUpdate();
  7133. })
  7134. .catch((err) => {
  7135. console.error(err);
  7136. });
  7137. },
  7138. OtherMb(type) {
  7139. this.typeMode = type;
  7140. setTimeout(() => {
  7141. this.checkEva(this.checkId);
  7142. }, 0);
  7143. },
  7144. openMember() {
  7145. if (this.cid && this.userid != this.courseUserid && this.role != '1') {
  7146. this.$message.error('非管理员和创建者不可编辑')
  7147. return;
  7148. }
  7149. this.searchTN = "";
  7150. this.page = 1
  7151. this.getTeacher();
  7152. this.dialogVisibleMember = true;
  7153. },
  7154. checkEva(id, type) {
  7155. this.dialogVisiblemb = false;
  7156. this.selectEva();
  7157. if (this.evalua != id && type == 2) {
  7158. this.$message.success("导入成功");
  7159. }
  7160. this.evalua = id;
  7161. this.checkId = id;
  7162. if (this.evalua != "") {
  7163. for (var i = 0; i < this.evaJuri.length; i++) {
  7164. if (this.evalua == this.evaJuri[i].id) {
  7165. this.eTitle = this.evaJuri[i].title;
  7166. this.eJson = JSON.parse(this.evaJuri[i].content);
  7167. }
  7168. }
  7169. this.data.data = [];
  7170. this.$forceUpdate();
  7171. setTimeout(() => {
  7172. this.setMindData();
  7173. }, 500);
  7174. }
  7175. },
  7176. deleteEva() {
  7177. let _this = this;
  7178. if (_this.evalua == "") {
  7179. this.$message.warning("内容已经清空了,请勿重复清空");
  7180. return;
  7181. }
  7182. _this
  7183. .$confirm("确定删除此目标吗?", "提示", {
  7184. confirmButtonText: "确定",
  7185. cancelButtonText: "取消",
  7186. type: "warning",
  7187. })
  7188. .then(() => {
  7189. _this.evalua = "";
  7190. _this.checkId = "";
  7191. _this.eTitle = "";
  7192. let _unitJson = _this.unitJson;
  7193. for (var i = 0; i < _unitJson.length; i++) {
  7194. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7195. for (var j = 0; j < _task.length; j++) {
  7196. let _eList = _task[j].eList;
  7197. for (var k = 0; k < _eList.length; k++) {
  7198. delete _eList[k].target;
  7199. }
  7200. }
  7201. }
  7202. _this.$forceUpdate();
  7203. if (_this.cid) {
  7204. _this.updateWork();
  7205. }
  7206. })
  7207. .catch(() => {
  7208. return;
  7209. });
  7210. },
  7211. selectEva() {
  7212. let params = {
  7213. oid: this.oid,
  7214. };
  7215. this.ajax
  7216. .get(this.$store.state.api + "selectAllEvaluation", params)
  7217. .then((res) => {
  7218. this.evaJuri = res.data[0];
  7219. })
  7220. .catch((err) => {
  7221. console.error(err);
  7222. });
  7223. },
  7224. setMindData() {
  7225. let targetArray = [];
  7226. this.data.data = [];
  7227. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7228. let _eJson = Object.keys(this.eJson);
  7229. let _e = this.eJson;
  7230. for (let i = 0; i < _eJson.length; i++) {
  7231. let element = _e[_eJson[i]];
  7232. this.data.data.push({
  7233. id: element.id,
  7234. parentid: "root",
  7235. topic: element.name,
  7236. });
  7237. // targetArray.push({
  7238. // id: element.id,
  7239. // parentid: "root",
  7240. // name: element.name,
  7241. // });
  7242. targetArray.push({
  7243. value: element.name,
  7244. label: element.name,
  7245. children: [],
  7246. });
  7247. let _eJsonc = Object.keys(element.child);
  7248. let _e2 = element.child;
  7249. for (let j = 0; j < _eJsonc.length; j++) {
  7250. let _ec = _e2[_eJsonc[j]];
  7251. this.data.data.push({
  7252. id: _ec.id,
  7253. parentid: element.id,
  7254. topic: _ec.name,
  7255. });
  7256. // targetArray.push({
  7257. // id: _ec.id,
  7258. // parentid: element.id,
  7259. // name: _ec.name,
  7260. // });
  7261. targetArray[i].children.push({
  7262. value: _ec.name,
  7263. label: _ec.name,
  7264. children: [],
  7265. });
  7266. let _eJsonz = Object.keys(_ec.child);
  7267. let _e3 = _ec.child;
  7268. for (let z = 0; z < _eJsonz.length; z++) {
  7269. let _ez = _e3[_eJsonz[z]];
  7270. this.data.data.push({
  7271. id: _ez.id,
  7272. parentid: _ec.id,
  7273. topic: _ez.name,
  7274. });
  7275. // targetArray.push({
  7276. // id: _ez.id,
  7277. // parentid: _ec.id,
  7278. // name: _ez.name,
  7279. // });
  7280. targetArray[i].children[j].children.push({
  7281. value: _ez.name,
  7282. label: _ez.name,
  7283. });
  7284. }
  7285. }
  7286. }
  7287. this.targetArray = targetArray;
  7288. this.$forceUpdate();
  7289. },
  7290. /*添加评价 */
  7291. addEList(index, tIndex) {
  7292. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7293. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7294. value: "",
  7295. detail: "",
  7296. score: 5,
  7297. })
  7298. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7299. { value: "", detail: "", score: 5 },
  7300. ]);
  7301. this.$forceUpdate();
  7302. },
  7303. forceUpdate() {
  7304. this.$forceUpdate();
  7305. },
  7306. deletEList(index, tIndex, eIndex) {
  7307. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7308. eIndex,
  7309. 1
  7310. );
  7311. this.$forceUpdate();
  7312. },
  7313. getChoosePic(t) {
  7314. this.chooseType = t;
  7315. this.getAllBanner();
  7316. },
  7317. getAllBanner() {
  7318. this.sysPicVisible = true;
  7319. let params = {
  7320. t: this.chooseType,
  7321. };
  7322. this.ajax
  7323. .get(this.$store.state.api + "selectAllBanner", params)
  7324. .then((res) => {
  7325. this.sysPic = res.data[0];
  7326. })
  7327. .catch((err) => {
  7328. console.error(err);
  7329. });
  7330. },
  7331. // getClass() {
  7332. // let params = {
  7333. // oid: this.oid,
  7334. // };
  7335. // this.ajax
  7336. // .get(this.$store.state.api + "selectClassBySchool", params)
  7337. // .then((res) => {
  7338. // this.classJuri = res.data[0];
  7339. // })
  7340. // .catch((err) => {
  7341. // console.error(err);
  7342. // });
  7343. // },
  7344. deleteSysPic() {
  7345. this.cover = [];
  7346. this.isSysPic = false;
  7347. this.isSysPic2 = false;
  7348. },
  7349. deleteSelectPic() {
  7350. this.selectJson.url = "";
  7351. },
  7352. setEListStar() {
  7353. this.$forceUpdate();
  7354. },
  7355. deletRateList(i) {
  7356. this.rateJson.splice(i, 1);
  7357. },
  7358. addRateList() {
  7359. this.rateJson.push({ detail: "", score: 5, value: "" });
  7360. },
  7361. addSt() {
  7362. this.sentenceList.push({
  7363. sentenceTitle: "",
  7364. addSentence: [],
  7365. rightAnswer: [],
  7366. });
  7367. },
  7368. addSen(i) {
  7369. if (!this.sentenceList[i].sentenceTitle) {
  7370. this.$message.error("请填写卡片内容!");
  7371. return;
  7372. }
  7373. if (this.sentenceList[i].sentenceTitle.length > 10) {
  7374. this.$message.error("卡片内容字数不能超过10位");
  7375. return;
  7376. }
  7377. if (this.sentenceList[i].addSentence.indexOf(this.sentenceList[i].sentenceTitle) !== -1) {
  7378. this.$message.error("不能添加重复的卡片内容!");
  7379. return;
  7380. }
  7381. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7382. // this.isPushTitleList.push(this.sentenceTitle);
  7383. this.sentenceList[i].sentenceTitle = "";
  7384. },
  7385. setRightAnswer(s, i, j) {
  7386. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7387. this.sentenceList[i].rightAnswer.push(s);
  7388. }
  7389. },
  7390. returnCard(r, i, j) {
  7391. this.sentenceList[i].rightAnswer.splice(j, 1);
  7392. },
  7393. addSentenceTool() {
  7394. for (var i = 0; i < this.sentenceList.length; i++) {
  7395. if (this.sentenceList[i].rightAnswer.length == 0) {
  7396. this.$message.error(`请将题目${i + 1}设置完整。`);
  7397. return;
  7398. }
  7399. if (
  7400. this.sentenceList[i].addSentence.length !=
  7401. this.sentenceList[i].rightAnswer.length
  7402. ) {
  7403. this.$message.error(`请将题目${i + 1}设置完整。`);
  7404. return;
  7405. }
  7406. }
  7407. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7408. this.taskCount
  7409. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7410. this.sentenceList = [
  7411. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7412. ];
  7413. this.dialogVisibleSentence = false;
  7414. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7415. // itemTaskIndex
  7416. // ].toolChoose[toolIndex].tool = [];
  7417. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7418. // itemTaskIndex
  7419. // ].toolChoose[toolIndex].tool.push(i);
  7420. if (
  7421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7422. .toolChoose[this.toolIndex].tool != 47
  7423. ) {
  7424. this.addTools(47, this.taskCount, this.toolIndex);
  7425. }
  7426. },
  7427. addTableJson() {
  7428. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7429. // this.$message.error("请将信息填写完整!");
  7430. // return;
  7431. // }
  7432. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7433. this.taskCount
  7434. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7435. // this.tableJson = [{ text: "" }];
  7436. // this.dialogVisibleTable = false;
  7437. this.$message.success("上传成功");
  7438. if (
  7439. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7440. .toolChoose[this.toolIndex].tool != 48
  7441. ) {
  7442. this.addTools(48, this.taskCount, this.toolIndex);
  7443. }
  7444. },
  7445. addWordJson() {
  7446. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7447. this.taskCount
  7448. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7449. // this.wordJson = [{ text: "" }];
  7450. // this.dialogVisibleWord = false;
  7451. this.$message.success("上传成功");
  7452. if (
  7453. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7454. .toolChoose[this.toolIndex].tool != 52
  7455. ) {
  7456. this.addTools(52, this.taskCount, this.toolIndex);
  7457. }
  7458. },
  7459. addMoreUpload() {
  7460. if (this.uploadJson.length == 0) {
  7461. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7462. this.taskCount
  7463. ].toolChoose[this.toolIndex].uploadJson = [];
  7464. } else {
  7465. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7466. this.taskCount
  7467. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7468. }
  7469. this.uploadJson = [];
  7470. this.dialogVisibleMoreUpload = false;
  7471. if (
  7472. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7473. .toolChoose[this.toolIndex].tool != 50
  7474. ) {
  7475. this.addTools(50, this.taskCount, this.toolIndex);
  7476. }
  7477. },
  7478. addPreTime() {
  7479. if (this.preTime == 0) {
  7480. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7481. this.taskCount
  7482. ].toolChoose[this.toolIndex].preTime = 0;
  7483. } else {
  7484. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7485. this.taskCount
  7486. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7487. }
  7488. this.preTime = 0;
  7489. this.dialogVisiblePreTime = false;
  7490. if (
  7491. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7492. .toolChoose[this.toolIndex].tool != 10
  7493. ) {
  7494. this.addTools(10, this.taskCount, this.toolIndex);
  7495. }
  7496. },
  7497. goToTask(i) {
  7498. this.toolIndexType = ''
  7499. if (this.isClickColor == (i + 1)) {
  7500. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7502. } else {
  7503. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7504. }
  7505. this.$forceUpdate();
  7506. return;
  7507. }
  7508. if (this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen) {
  7509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = false
  7510. } else {
  7511. document.querySelectorAll(".rightBox")[0].scrollTop =
  7512. document.querySelectorAll(".taskBorder")[i + 1].offsetTop +
  7513. document.querySelectorAll(".taskBorder")[i + 1].parentElement.parentElement.offsetTop;
  7514. this.isClickColor = i + 1;
  7515. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolOpen = true
  7516. }
  7517. this.$forceUpdate();
  7518. },
  7519. taskMove(type, index) {
  7520. // this
  7521. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7522. // confirmButtonText: "确定",
  7523. // cancelButtonText: "取消",
  7524. // type: "warning",
  7525. // })
  7526. // .then(() => {
  7527. if (type == 1) {
  7528. if (index > 0) {
  7529. let a = JSON.parse(
  7530. JSON.stringify(
  7531. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7532. )
  7533. );
  7534. let b = JSON.parse(
  7535. JSON.stringify(
  7536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7537. )
  7538. );
  7539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7540. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7541. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7542. if (index - 1 == 0) {
  7543. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7544. index - 1
  7545. ].chapterData = a.chapterData;
  7546. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7547. index
  7548. ].chapterData = b.chapterData;
  7549. }
  7550. }
  7551. } else {
  7552. if (
  7553. index <
  7554. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7555. ) {
  7556. let a = JSON.parse(
  7557. JSON.stringify(
  7558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7559. )
  7560. );
  7561. let b = JSON.parse(
  7562. JSON.stringify(
  7563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  7564. )
  7565. );
  7566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7567. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7568. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7569. if (index == 0) {
  7570. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7571. index + 1
  7572. ].chapterData = a.chapterData;
  7573. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7574. index
  7575. ].chapterData = b.chapterData;
  7576. }
  7577. }
  7578. }
  7579. this.$forceUpdate();
  7580. // })
  7581. // .catch(() => {
  7582. // return;
  7583. // })
  7584. },
  7585. addGroup(i) {
  7586. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7587. this.groupJson.group.push({
  7588. name: "第" + (this.groupJson.group.length + 1) + "组",
  7589. });
  7590. },
  7591. deleteGroup(i) {
  7592. this.groupJson.group.splice(i, 1);
  7593. },
  7594. numberPan() {
  7595. if (/[^\d]/.test(this.groupJson.number) || this.groupJson.number < 2 || this.groupJson.number > 10) {
  7596. this.$message.error('请输入2-10的数字')
  7597. this.groupJson.number = ''
  7598. }
  7599. },
  7600. addGroupJson() {
  7601. for (var i = 0; i < this.groupJson.group.length; i++) {
  7602. if (!this.groupJson.group[i].name) {
  7603. this.$message.error("请将信息填写完整!");
  7604. return;
  7605. }
  7606. }
  7607. if (!this.groupJson.number) {
  7608. this.$message.error("请将信息填写完整!");
  7609. return;
  7610. }
  7611. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7612. this.taskCount
  7613. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7614. JSON.stringify(this.groupJson)
  7615. );
  7616. this.dialogVisibleGroup = false;
  7617. this.groupJson = {};
  7618. if (
  7619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7620. .toolChoose[this.toolIndex].tool != 49
  7621. ) {
  7622. this.addTools(49, this.taskCount, this.toolIndex);
  7623. }
  7624. },
  7625. updateTime(preTime) {
  7626. this.preTime = preTime;
  7627. },
  7628. InviteChange(val) {
  7629. console.log(val);
  7630. return;
  7631. let array = JSON.parse(JSON.stringify(val));
  7632. this.inviteCode = this.inviteCode.filter((el) => {
  7633. if (val.indexOf(el.cid) != -1) {
  7634. array.splice(array.indexOf(el.cid), 1);
  7635. return el;
  7636. }
  7637. });
  7638. for (var i = 0; i < array.length; i++) {
  7639. this.getInviteCode(array[i]);
  7640. }
  7641. },
  7642. async getInviteCode(cid) {
  7643. let code = this.randomNumber();
  7644. let params = {
  7645. code: code,
  7646. oid: this.oid,
  7647. };
  7648. let type = 1;
  7649. for (var i = 0; i < this.inviteCode.length; i++) {
  7650. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7651. type = 2;
  7652. }
  7653. }
  7654. if (type == 2) {
  7655. this.getInviteCode(cid);
  7656. return;
  7657. }
  7658. const res = await this.ajax.get(
  7659. this.$store.state.api + "selectInviteCode2",
  7660. params
  7661. );
  7662. if (
  7663. res.data.length &&
  7664. res.data[0].length &&
  7665. res.data[0][0].courseId != this.cid
  7666. ) {
  7667. this.getInviteCode(cid);
  7668. return;
  7669. }
  7670. let array = [];
  7671. for (var i = 0; i < this.inviteCode.length; i++) {
  7672. array.push(this.inviteCode[i].cid);
  7673. }
  7674. if (array.indexOf(cid) != -1) {
  7675. this.inviteCode[array.indexOf(cid)].ic = code;
  7676. } else {
  7677. this.inviteCode.push({ cid: cid, ic: code });
  7678. }
  7679. },
  7680. OpenInviteD(cid) {
  7681. let array = [];
  7682. this.icode = "";
  7683. for (var i = 0; i < this.inviteCode.length; i++) {
  7684. array.push(this.inviteCode[i].cid);
  7685. }
  7686. if (array.indexOf(cid) != -1) {
  7687. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7688. }
  7689. this.inviteId = cid;
  7690. this.dialogVisibleInvite = true;
  7691. },
  7692. addInvite() {
  7693. let reg = /^[A-Za-z0-9]{4,}$/;
  7694. if (!reg.test(this.icode)) {
  7695. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7696. return;
  7697. }
  7698. let type = 1;
  7699. for (var i = 0; i < this.inviteCode.length; i++) {
  7700. if (
  7701. this.inviteCode[i].cid != this.inviteId &&
  7702. this.icode == this.inviteCode[i].ic
  7703. ) {
  7704. type = 2;
  7705. }
  7706. }
  7707. if (type == 2) {
  7708. this.$message.error("已有此随机码,不能重复");
  7709. return;
  7710. }
  7711. let params = {
  7712. code: this.icode,
  7713. oid: this.oid,
  7714. };
  7715. this.ajax
  7716. .get(this.$store.state.api + "selectInviteCode", params)
  7717. .then((res) => {
  7718. if (
  7719. res.data.length &&
  7720. res.data[0].length &&
  7721. res.data[0][0].courseId != this.cid
  7722. ) {
  7723. this.$message.error("已有此随机码,不能重复");
  7724. return;
  7725. }
  7726. let array = [];
  7727. for (var i = 0; i < this.inviteCode.length; i++) {
  7728. array.push(this.inviteCode[i].cid);
  7729. }
  7730. if (array.indexOf(this.inviteId) != -1) {
  7731. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7732. } else {
  7733. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7734. }
  7735. this.icode = "";
  7736. this.dialogVisibleInvite = false;
  7737. })
  7738. .catch((err) => {
  7739. console.error(err);
  7740. });
  7741. },
  7742. randomNumber() {
  7743. // 随机生成两位数
  7744. // let num = Math.floor(Math.random() * 900) + 100;
  7745. // 生成 0 到 99 之间的随机整数
  7746. const randomNumber = Math.floor(Math.random() * 100);
  7747. // 如果随机数小于 10,补上前导零
  7748. const num =
  7749. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7750. // 随机生成两个大写字母
  7751. let letters = "";
  7752. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7753. for (let i = 0; i < 3; i++) {
  7754. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7755. }
  7756. // 随机生成两位数字和字母的组合
  7757. let mix = "";
  7758. let chars =
  7759. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7760. for (let i = 0; i < 3; i++) {
  7761. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7762. mix += char;
  7763. }
  7764. // 随机选择一种类型
  7765. let type = Math.floor(Math.random() * 3);
  7766. return num;
  7767. // 根据类型输出结果
  7768. switch (type) {
  7769. case 0:
  7770. console.log(num); // 输出两位数
  7771. return num;
  7772. case 1:
  7773. console.log(letters); // 输出两个大写字母
  7774. return letters;
  7775. case 2:
  7776. console.log(mix); // 输出两位数字和字母的组合
  7777. return mix;
  7778. }
  7779. },
  7780. getPaste() {
  7781. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7782. if (!iframe) {
  7783. return;
  7784. }
  7785. let copyData = iframe.contentWindow.copyData;
  7786. // if (copyData && copyData.stageData && copyData.stageData.length) {
  7787. // this.isPasteStage = true
  7788. // }
  7789. if (copyData && copyData.selectData.length) {
  7790. this.isPasteChoice = true
  7791. }
  7792. if (copyData && copyData.tasksData && copyData.tasksData.length) {
  7793. this.isPasteTask = true
  7794. }
  7795. },
  7796. searchImage() {
  7797. var _this = this;
  7798. _this.imageList = []
  7799. if (!_this.searchImageValue) {
  7800. _this.sysPicVisible2 = true
  7801. return
  7802. }
  7803. _this.imageloading = true
  7804. _this.ajax.post('https://gpt.cocorobo.cn/search_image', {
  7805. page: _this.ppage,
  7806. pagesize: 9,
  7807. query: _this.searchImageValue
  7808. }).then(function (response) {
  7809. // console.log(response.data.data);
  7810. var data = response.data.FunctionResponse.result;
  7811. for (var i = 0; i < data.length; i++) {
  7812. _this.imageList.push({ url: data[i].thumbnail })
  7813. }
  7814. _this.imageloading = false
  7815. }).catch(function (error) {
  7816. console.log(error);
  7817. });
  7818. _this.sysPicVisible2 = true
  7819. },
  7820. changePicture() {
  7821. this.ppage++
  7822. this.searchImage()
  7823. },
  7824. resetImage() {
  7825. this.ppage = 1
  7826. this.searchImage()
  7827. },
  7828. jumpGj(i, j) {
  7829. if ((i + 1) != this.isClickColor) {
  7830. this.isClickColor = (i + 1)
  7831. }
  7832. var a = document.scrollingElement;
  7833. this.toolIndexType = `gj${i}${j}`
  7834. let target = document.querySelector(`#gj${i}${j}`);
  7835. if (target) {
  7836. target.scrollIntoView(true);
  7837. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].toolChoose[j].isFold3 = true
  7838. // setTimeout(() => {
  7839. // this.$refs.rightboxR.scrollTop = this.$refs.rightboxR.scrollTop - 100;
  7840. // }, 0);
  7841. }
  7842. },
  7843. },
  7844. beforeDestroy() {
  7845. clearTimeout(this.timer);
  7846. this.timer = null;
  7847. clearInterval(this.timer2);
  7848. this.timer2 = null;
  7849. clearInterval(this.pasteTimer);
  7850. this.pasteTimer = null;
  7851. },
  7852. beforeRouteLeave(to, from, next) {
  7853. clearTimeout(this.timer);
  7854. this.timer = null;
  7855. clearInterval(this.timer2);
  7856. this.timer2 = null;
  7857. clearInterval(this.pasteTimer);
  7858. this.pasteTimer = null;
  7859. next();
  7860. },
  7861. created() {
  7862. this.getStudent();
  7863. this.getTeacher();
  7864. this.getClass();
  7865. this.selectGrage();
  7866. this.getTemplate();
  7867. // this.selectType();
  7868. this.selectEva();
  7869. this.loading = false;
  7870. this.timer2 = setInterval(() => {
  7871. this.selectEva();
  7872. }, 5000);
  7873. this.pasteTimer = setInterval(() => {
  7874. this.getPaste();
  7875. }, 1000);
  7876. setTimeout(() => {
  7877. this.selectCourseDetail();
  7878. }, 500);
  7879. },
  7880. mounted() {
  7881. this.$nextTick(() => {
  7882. //监听这个dom的scroll事件
  7883. // $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  7884. // this.heightPx = $(".rightBox")[0].offsetHeight + 'px'
  7885. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[0].toolOpen = true
  7886. this.$forceUpdate();
  7887. });
  7888. },
  7889. };
  7890. </script>
  7891. <style scoped>
  7892. @media screen and (max-width: 1280px) {
  7893. .mbCss {
  7894. flex-direction: column !important;
  7895. }
  7896. .pjCss {
  7897. width: 100% !important;
  7898. }
  7899. .evaCss {
  7900. width: 100% !important;
  7901. }
  7902. }
  7903. .dialog_diy>>>.el-dialog__header {
  7904. background: #3c3c3c !important;
  7905. padding: 15px 20px;
  7906. }
  7907. .dialog_diy>>>.el-dialog__title {
  7908. color: #fff;
  7909. }
  7910. .dialog_diy>>>.el-dialog__headerbtn {
  7911. top: 19px;
  7912. }
  7913. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7914. color: #fff;
  7915. }
  7916. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7917. color: #fff;
  7918. }
  7919. .dialog_diy>>>.el-dialog__body,
  7920. .dialog_diy>>>.el-dialog__footer {
  7921. background: #fafafa;
  7922. }
  7923. .dialog_diy3>>>.el-dialog__body,
  7924. .dialog_diy3>>>.el-dialog__footer {
  7925. background: #eee !important;
  7926. }
  7927. .dialog_diy3>>>.el-dialog__body {
  7928. padding: 20px 20px;
  7929. }
  7930. .source_diy>>>.el-dialog {
  7931. height: 100% !important;
  7932. margin: 0 auto !important;
  7933. }
  7934. .source_diy>>>.el-dialog__body {
  7935. height: calc(100% - 185px);
  7936. overflow: auto;
  7937. background: #e6eaf0;
  7938. }
  7939. .source_diy>>>.el-dialog__footer {
  7940. background: #e6eaf0 !important;
  7941. }
  7942. .left {
  7943. border-right: 1px solid rgb(60, 94, 143);
  7944. display: flex;
  7945. flex-direction: column;
  7946. align-items: center;
  7947. min-height: 600px;
  7948. width: 385px;
  7949. height: 80%;
  7950. }
  7951. .tips {
  7952. color: rgb(128, 128, 128);
  7953. font-size: 12px;
  7954. width: 270px;
  7955. margin: 40px;
  7956. }
  7957. .pb_content {
  7958. height: 100% !important;
  7959. /* margin: 0 20px 0 20px; */
  7960. }
  7961. .pb_content_body {
  7962. width: 100% !important;
  7963. height: 100%;
  7964. }
  7965. .info_solid {
  7966. width: 270px;
  7967. height: 30px;
  7968. border-left: 1px solid #bdbdbd;
  7969. margin: 10px 0px 10px 30px;
  7970. }
  7971. .info_steps {
  7972. width: 270px;
  7973. font-size: 0.875rem;
  7974. display: flex;
  7975. align-items: center;
  7976. }
  7977. .info_steps span:nth-child(1) {
  7978. width: 30px;
  7979. height: 30px;
  7980. background: rgba(0, 0, 0, 0.38);
  7981. display: block;
  7982. color: #fff;
  7983. border-radius: 40px;
  7984. text-align: center;
  7985. line-height: 30px;
  7986. }
  7987. .steps_active {
  7988. background: #3d67bc !important;
  7989. }
  7990. .info_steps span:nth-child(2) {
  7991. margin-left: 5px;
  7992. }
  7993. .right {
  7994. height: 100%;
  7995. width: calc(100% - 40px);
  7996. display: flex;
  7997. overflow: hidden;
  7998. margin: 0 auto;
  7999. }
  8000. .basic_box {
  8001. margin: 0 auto;
  8002. position: relative;
  8003. padding: 0 20px 0 20px;
  8004. }
  8005. .basic_box2 {
  8006. position: relative;
  8007. width: calc(100% - 300px);
  8008. }
  8009. .basic_box_success {
  8010. width: 100%;
  8011. height: 100%;
  8012. padding: 50px 0;
  8013. position: relative;
  8014. text-align: center;
  8015. /* border-bottom: 1px solid #bfbfbf; */
  8016. box-sizing: border-box;
  8017. display: flex;
  8018. align-items: center;
  8019. flex-direction: column;
  8020. justify-content: center;
  8021. }
  8022. .info_title {
  8023. font-size: 1.5em;
  8024. margin-right: 25px;
  8025. /* margin: 20px 30px 20px 30px; */
  8026. }
  8027. .bInfo_title {
  8028. text-align: left;
  8029. margin: 10px 0;
  8030. }
  8031. .small_title {
  8032. font-size: 14px;
  8033. line-height: 40px;
  8034. }
  8035. .chapter_beizhu {
  8036. font-size: 12px;
  8037. font-weight: bold;
  8038. float: right;
  8039. color: rgb(128, 128, 128);
  8040. margin-top: 5px;
  8041. }
  8042. .chapter_uploadBox1 {
  8043. text-align: left;
  8044. background-color: rgb(242, 242, 242);
  8045. width: 100%;
  8046. height: 67px;
  8047. padding: 0px 15px;
  8048. border-radius: 8px;
  8049. overflow: hidden;
  8050. font-size: 16px;
  8051. box-sizing: border-box;
  8052. position: relative;
  8053. }
  8054. .chapter_add {
  8055. width: 100%;
  8056. height: 32px;
  8057. margin-top: 15px;
  8058. cursor: pointer;
  8059. }
  8060. .chapter_add_l {
  8061. margin-left: 5px;
  8062. width: 30px;
  8063. height: 30px;
  8064. float: left;
  8065. border: 1px solid #aaa;
  8066. color: #aaa;
  8067. border-radius: 50%;
  8068. font-size: 25px;
  8069. text-align: center;
  8070. }
  8071. .chapter_add_r {
  8072. font-size: 18px;
  8073. height: 40px;
  8074. line-height: 30px;
  8075. text-indent: 10px;
  8076. color: #aaa;
  8077. }
  8078. .chapter_add_r span {
  8079. font-size: 12px;
  8080. color: rgb(204, 204, 204);
  8081. }
  8082. .chapter_add_input {
  8083. display: none;
  8084. }
  8085. .line {
  8086. width: 85%;
  8087. margin: 0 auto;
  8088. border-top: 1px solid #e5e5e5;
  8089. margin-top: 20px;
  8090. }
  8091. .info_btnBox {
  8092. width: calc(100%);
  8093. display: flex;
  8094. justify-content: center;
  8095. height: 70px;
  8096. align-items: center;
  8097. background: #fff;
  8098. margin: 0 auto;
  8099. border-top: 2px solid rgb(228, 232, 237);
  8100. box-sizing: border-box;
  8101. border-radius: 0px 0 5px 5px;
  8102. }
  8103. .info_btnBox2 {
  8104. width: calc(100%);
  8105. display: flex;
  8106. justify-content: center;
  8107. height: 20px;
  8108. align-items: center;
  8109. background: #fff;
  8110. margin: 0 auto;
  8111. border-top: 2px solid rgb(228, 232, 237);
  8112. box-sizing: border-box;
  8113. overflow: hidden;
  8114. cursor: pointer;
  8115. }
  8116. .info_btnBox3 {
  8117. width: calc(100%);
  8118. display: flex;
  8119. justify-content: flex-end;
  8120. padding: 0 20px;
  8121. height: 60px;
  8122. align-items: center;
  8123. background: unset;
  8124. margin: 10px auto 0;
  8125. /* border-top: 1px solid rgb(228, 232, 237); */
  8126. box-sizing: border-box;
  8127. overflow: hidden;
  8128. cursor: pointer;
  8129. background: #fff;
  8130. border-radius: 10px;
  8131. }
  8132. .info_btn+.info_btn {
  8133. margin-left: 15px;
  8134. }
  8135. .info_btn,
  8136. .teacherWord {
  8137. color: #fff;
  8138. background-color: #0f7eff;
  8139. padding: 8px 24px;
  8140. font-size: 0.9375rem;
  8141. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8142. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8143. min-width: 64px;
  8144. font-weight: 500;
  8145. border-radius: 4px;
  8146. box-sizing: border-box;
  8147. border: none;
  8148. cursor: pointer;
  8149. }
  8150. .teacherWord {
  8151. width: 105px !important;
  8152. text-align: center !important;
  8153. line-height: 36px !important;
  8154. padding: 0 !important;
  8155. font-size: 14px !important;
  8156. margin: 10px 0 !important;
  8157. }
  8158. .wordTeacher {
  8159. display: flex;
  8160. flex-direction: column;
  8161. width: 20%;
  8162. text-align: center;
  8163. font-size: 14px;
  8164. margin: 30px 30px 0 10px;
  8165. background: #fff;
  8166. position: relative;
  8167. border-radius: 5px;
  8168. padding: 25px 0px;
  8169. }
  8170. .wordPic {
  8171. margin: 0 auto;
  8172. width: 60px;
  8173. height: 60px;
  8174. cursor: pointer;
  8175. }
  8176. .deleteWord {
  8177. width: 22px;
  8178. height: 22px;
  8179. position: absolute;
  8180. right: 5px;
  8181. top: -15px;
  8182. cursor: pointer;
  8183. display: none;
  8184. z-index: 999;
  8185. }
  8186. .wordPic>img,
  8187. .deleteWord>img,
  8188. .addToolImg>img {
  8189. width: 100%;
  8190. height: 100%;
  8191. }
  8192. .info_btn:hover {
  8193. background-color: #4f7cd5 !important;
  8194. }
  8195. .cru_selectBox {
  8196. display: flex;
  8197. margin: 24px 0 10px;
  8198. flex-wrap: nowrap;
  8199. white-space: nowrap;
  8200. overflow: auto;
  8201. position: relative;
  8202. height: 47px;
  8203. }
  8204. .cru_selectBox::-webkit-scrollbar {
  8205. /*滚动条整体样式*/
  8206. width: 6px;
  8207. /*高宽分别对应横竖滚动条的尺寸*/
  8208. height: 6px;
  8209. }
  8210. /*定义滚动条轨道 内阴影+圆角*/
  8211. .cru_selectBox::-webkit-scrollbar-track {
  8212. border-radius: 10px;
  8213. background-color: #eee;
  8214. }
  8215. /*定义滑块 内阴影+圆角*/
  8216. .cru_selectBox::-webkit-scrollbar-thumb {
  8217. border-radius: 10px;
  8218. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8219. background-color: rgba(0, 0, 0, 0.1);
  8220. }
  8221. .cru_line {
  8222. position: absolute;
  8223. bottom: 0px;
  8224. transition: all 0.5s;
  8225. left: 0px;
  8226. width: 125px;
  8227. margin-left: -25px;
  8228. }
  8229. .cru_select {
  8230. font-size: 21px;
  8231. margin-right: 37px;
  8232. margin-left: 5px;
  8233. cursor: pointer;
  8234. color: #a6a6a6;
  8235. }
  8236. .cru_selected {
  8237. color: #0b7fc2 !important;
  8238. }
  8239. .chapter_contentbox {
  8240. display: flex;
  8241. align-items: center;
  8242. margin-top: 15px;
  8243. }
  8244. .chapter_contentbox .cc_title {
  8245. margin: 0px;
  8246. color: black;
  8247. display: block;
  8248. white-space: nowrap;
  8249. overflow: hidden;
  8250. text-overflow: ellipsis;
  8251. margin-right: 20px;
  8252. font-size: 18px;
  8253. height: 20px;
  8254. line-height: 22px;
  8255. min-width: fit-content;
  8256. display: flex;
  8257. }
  8258. .chapter_contentbox .cc_title::before {
  8259. content: '';
  8260. height: 100%;
  8261. width: 3px;
  8262. background: #3681FC;
  8263. border-radius: 3px;
  8264. opacity: 1;
  8265. display: block;
  8266. margin-right: 10px;
  8267. }
  8268. .chapter_contentbox .cc_input {
  8269. width: 100%;
  8270. display: flex;
  8271. }
  8272. .show_taskD {
  8273. min-width: fit-content;
  8274. margin-left: 10px;
  8275. display: flex;
  8276. align-items: center;
  8277. font-size: 14px;
  8278. cursor: pointer;
  8279. color: #717C8D;
  8280. }
  8281. .show_taskD>img {
  8282. width: 15px;
  8283. margin-right: 5px;
  8284. transition: .2s all;
  8285. transform: rotate(-90deg);
  8286. }
  8287. .show_taskD.show>img {
  8288. transform: rotate(0deg);
  8289. }
  8290. .show_toolD {
  8291. min-width: fit-content;
  8292. margin-left: 10px;
  8293. display: flex;
  8294. align-items: center;
  8295. font-size: 14px;
  8296. cursor: pointer;
  8297. color: #717C8D;
  8298. position: absolute;
  8299. right: 45px;
  8300. top: 5px;
  8301. }
  8302. .show_toolD>img {
  8303. width: 15px;
  8304. margin-right: 5px;
  8305. transition: .2s all;
  8306. transform: rotate(-90deg);
  8307. }
  8308. .show_toolD.show>img {
  8309. transform: rotate(0deg);
  8310. }
  8311. .remove {
  8312. background-image: url("../../../assets/icon/new/delete_u.png");
  8313. cursor: pointer;
  8314. opacity: 0.5;
  8315. width: 30px;
  8316. min-width: 30px;
  8317. height: 30px;
  8318. background-size: 100% 100%;
  8319. background-repeat: no-repeat;
  8320. margin-left: 10px;
  8321. }
  8322. .remove1 {
  8323. background-image: url("../../../assets/remove1.png");
  8324. background-repeat: no-repeat;
  8325. background-position: 5px 10px;
  8326. width: 40px;
  8327. height: 50px;
  8328. cursor: pointer;
  8329. margin-left: 10px;
  8330. }
  8331. .binfo_input {
  8332. width: 100%;
  8333. margin: 0;
  8334. padding: 12px 14px;
  8335. display: block;
  8336. min-width: 0;
  8337. outline: none;
  8338. box-sizing: border-box;
  8339. background: none;
  8340. border: none;
  8341. border-radius: 4px;
  8342. background: #fff;
  8343. font-size: 16px;
  8344. resize: none;
  8345. font-family: 'Microsoft YaHei';
  8346. min-height: 48px;
  8347. border: 1.5px solid #CAD1DC;
  8348. }
  8349. .binfo_textarea {
  8350. border: 1.5px solid #CAD1DC;
  8351. font-size: 16px;
  8352. resize: none;
  8353. background: #f6f6f6;
  8354. font-family: 'Microsoft YaHei';
  8355. }
  8356. .binfo_input:focus-visible {
  8357. border: 1.5px solid #3681FC !important;
  8358. }
  8359. .time {
  8360. display: flex;
  8361. margin: 35px 0 80px 0;
  8362. }
  8363. .chapter_btnbox {
  8364. width: 160px;
  8365. border-radius: 5px;
  8366. border: 2px dashed gray;
  8367. display: flex;
  8368. padding: 8px 50px;
  8369. align-items: center;
  8370. justify-content: center;
  8371. margin: 30px auto 0;
  8372. cursor: pointer;
  8373. }
  8374. .icon_add {
  8375. position: relative;
  8376. width: 24px;
  8377. padding-top: 20px;
  8378. border-radius: 100%;
  8379. border-width: 2px;
  8380. border-style: solid;
  8381. border-color: gray;
  8382. }
  8383. .icon_add i:nth-child(1) {
  8384. position: absolute;
  8385. left: 50%;
  8386. top: 50%;
  8387. height: 60%;
  8388. transform: translate(-50%, -50%);
  8389. border-width: 1px;
  8390. border-style: solid;
  8391. border-color: inherit;
  8392. }
  8393. .icon_add i:nth-child(2) {
  8394. position: absolute;
  8395. top: 50%;
  8396. left: 50%;
  8397. width: 60%;
  8398. transform: translate(-50%, -50%);
  8399. border-width: 1px;
  8400. border-style: solid;
  8401. border-color: inherit;
  8402. }
  8403. .chapter_btn_w {
  8404. font-size: 0.9375rem;
  8405. font-weight: bold;
  8406. color: gray;
  8407. margin-left: 20px;
  8408. }
  8409. .disUoloadSty>>>.el-icon-plus {
  8410. display: none !important;
  8411. /* 上传按钮隐藏 */
  8412. }
  8413. .imgLeft {
  8414. margin: 15px 0;
  8415. }
  8416. .add_info_box {
  8417. margin: 20px 0 0;
  8418. display: flex;
  8419. flex-wrap: wrap;
  8420. }
  8421. .add_info_box button {
  8422. margin: 0 20px 10px 0;
  8423. }
  8424. .add_info_box2 {
  8425. display: flex;
  8426. align-items: center;
  8427. flex-wrap: wrap;
  8428. }
  8429. .add_info_box2::after {
  8430. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  8431. color: red;
  8432. font-size: 14px;
  8433. margin-bottom: 10px;
  8434. }
  8435. .add_chapters_box {
  8436. text-align: left;
  8437. background-color: #fff;
  8438. width: 100%;
  8439. border-radius: 4px;
  8440. font-size: 16px;
  8441. box-sizing: border-box;
  8442. position: relative;
  8443. padding: 0 15px;
  8444. height: auto;
  8445. overflow-y: auto;
  8446. overflow-x: hidden;
  8447. border: 1px solid #CAD1DC;
  8448. }
  8449. .add_chapters_box.add_c_none {
  8450. display: flex;
  8451. justify-content: center;
  8452. align-items: center;
  8453. padding: 15px;
  8454. }
  8455. .add_c_none>img {
  8456. width: 25px;
  8457. }
  8458. .add_chapters_box.add_c_none>span {
  8459. font-size: 14px;
  8460. font-weight: 400;
  8461. margin: 0 0 5px 5px;
  8462. }
  8463. .homework_box {
  8464. display: flex;
  8465. align-items: flex-start;
  8466. flex-wrap: wrap;
  8467. margin: 15px 0 0 0;
  8468. flex-direction: column;
  8469. align-content: flex-start;
  8470. }
  8471. .course_homework {
  8472. display: flex;
  8473. justify-content: center;
  8474. flex-direction: row;
  8475. align-items: center;
  8476. margin: 0 10px 0 0;
  8477. }
  8478. .course_homework>>>.el-input__inner {
  8479. width: 140px;
  8480. margin-left: 15px;
  8481. }
  8482. .chapter_upload_move {
  8483. position: relative;
  8484. background-color: #fff;
  8485. position: absolute;
  8486. width: 100%;
  8487. top: 0px;
  8488. left: 0px;
  8489. border: 1px solid #eee;
  8490. border-radius: 5px;
  8491. transition: width 2s;
  8492. -moz-transition: width 2s;
  8493. -webkit-transition: width 2s;
  8494. -o-transition: width 2s;
  8495. }
  8496. .chapter_upload_l_i {
  8497. background-image: url("../../../assets/icon.png");
  8498. background-position: 3px -165px;
  8499. width: 30px;
  8500. height: 30px;
  8501. margin: 10px auto 0 auto;
  8502. }
  8503. .course_input_box {
  8504. display: flex;
  8505. margin-right: 20px;
  8506. width: 100%;
  8507. align-items: center;
  8508. position: relative;
  8509. }
  8510. .course_input_box>.binfo_input {
  8511. width: calc(100% - 0 - 200px - 20px);
  8512. margin: 0 10px;
  8513. }
  8514. .bb_courseIcon {
  8515. width: 57px;
  8516. height: 45px;
  8517. background: #F0F4FA;
  8518. border-radius: 5px 0px 0px 5px;
  8519. display: flex;
  8520. align-items: center;
  8521. justify-content: center;
  8522. border-right: 1.5px solid rgb(202, 209, 220);
  8523. box-sizing: border-box;
  8524. position: absolute;
  8525. left: 1.5px
  8526. }
  8527. .bb_courseIcon>img {
  8528. width: 25px;
  8529. height: auto
  8530. }
  8531. .big_box {
  8532. /* margin-top: 20px; */
  8533. display: flex;
  8534. justify-content: space-between;
  8535. /* border-bottom: 1px solid #E0E2ED; */
  8536. }
  8537. .left_first {
  8538. display: flex;
  8539. flex-direction: column;
  8540. flex-wrap: nowrap;
  8541. width: calc(100% - 310px);
  8542. padding: 20px;
  8543. box-sizing: border-box;
  8544. background: #fff;
  8545. border-radius: 5px;
  8546. }
  8547. .right_first {
  8548. width: 300px;
  8549. display: flex;
  8550. align-items: center;
  8551. justify-content: center;
  8552. /* border-left: 1px solid #E0E2ED; */
  8553. box-sizing: border-box;
  8554. padding: 20px;
  8555. flex-direction: column;
  8556. background: #fff;
  8557. border-radius: 5px;
  8558. }
  8559. .ai_box {
  8560. width: 204px;
  8561. display: flex;
  8562. justify-content: flex-end;
  8563. margin-bottom: 15px;
  8564. }
  8565. .ai_content {
  8566. display: flex;
  8567. align-items: center;
  8568. font-size: 14px;
  8569. padding: 7px 20px;
  8570. box-sizing: border-box;
  8571. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  8572. border-radius: 12px;
  8573. font-weight: 700;
  8574. cursor: pointer;
  8575. }
  8576. .ai_content>img {
  8577. width: 40px;
  8578. margin-right: 5px;
  8579. }
  8580. .c_info_title {
  8581. padding: 15px 0 15px 0;
  8582. font-size: 16px;
  8583. font-weight: bold;
  8584. margin: 0 0 0 20px;
  8585. box-sizing: border-box;
  8586. display: flex;
  8587. align-items: center;
  8588. line-height: 20px;
  8589. }
  8590. .c_info_title::before {
  8591. content: '';
  8592. display: block;
  8593. width: 3px;
  8594. height: 20px;
  8595. background: #0061FF;
  8596. border-radius: 3px;
  8597. margin: 0 5px 0 0;
  8598. }
  8599. .right_title {
  8600. /* height: 30px; */
  8601. padding: 0 20px;
  8602. font-size: 18px;
  8603. font-weight: bold;
  8604. /* color: #0f7eff; */
  8605. margin: 20px auto 0;
  8606. display: flex;
  8607. /* justify-content: space-between; */
  8608. align-items: center;
  8609. }
  8610. .people {
  8611. border: 1px solid rgb(229 229 229);
  8612. height: 495px;
  8613. border-radius: 5px;
  8614. width: 100%;
  8615. overflow: auto;
  8616. }
  8617. .people_top {
  8618. display: flex;
  8619. width: 100%;
  8620. /* justify-content: space-between; */
  8621. /* align-items: center; */
  8622. flex-direction: column;
  8623. padding: 10px 10px 0;
  8624. box-sizing: border-box;
  8625. }
  8626. .people_nav,
  8627. .people_top_right {
  8628. /* padding: 20px 0 0 20px; */
  8629. }
  8630. .people_top_right {
  8631. height: 40px;
  8632. margin-bottom: 10px;
  8633. }
  8634. .people_search {
  8635. display: flex;
  8636. position: relative;
  8637. }
  8638. .people_search>>>.el-input__inner {
  8639. /* height: 25px; */
  8640. width: 95%;
  8641. }
  8642. .search_img {
  8643. width: 20px;
  8644. height: 20px;
  8645. position: absolute;
  8646. right: 30px;
  8647. top: 50%;
  8648. transform: translateY(-50%);
  8649. }
  8650. .search_img>img {
  8651. width: 100%;
  8652. height: 100%;
  8653. }
  8654. .people_name {
  8655. display: flex;
  8656. justify-content: flex-start;
  8657. padding: 10px 0 0 25px;
  8658. flex-direction: column;
  8659. flex-wrap: nowrap;
  8660. height: calc(100% - 140px);
  8661. overflow-y: auto;
  8662. overflow-x: hidden;
  8663. flex-direction: column;
  8664. }
  8665. .p_box {
  8666. position: relative;
  8667. }
  8668. .people_name>>>.el-checkbox {
  8669. width: 100%;
  8670. display: flex;
  8671. align-items: center;
  8672. margin-bottom: 10px;
  8673. }
  8674. .people_name>>>.el-checkbox__label {
  8675. text-overflow: ellipsis;
  8676. overflow: hidden;
  8677. width: calc(100%);
  8678. }
  8679. .people_name2>>>.el-checkbox__label {
  8680. width: calc(100% - 130px);
  8681. }
  8682. .inviteCode {
  8683. position: absolute;
  8684. right: 30px;
  8685. color: #237ade;
  8686. top: 0;
  8687. cursor: pointer;
  8688. font-size: 13px;
  8689. }
  8690. .noneInvite {
  8691. color: #a8a8a8;
  8692. }
  8693. .inviteImg {
  8694. position: absolute;
  8695. right: 5px;
  8696. top: 0;
  8697. width: 20px;
  8698. }
  8699. .right_img {
  8700. width: 150px;
  8701. height: 150px;
  8702. margin: 20px auto;
  8703. }
  8704. .right_img>img {
  8705. width: 100%;
  8706. height: 100%;
  8707. }
  8708. .number {
  8709. margin-top: 20px;
  8710. color: #4aa6ff;
  8711. text-decoration: underline;
  8712. }
  8713. .success_button {
  8714. display: flex;
  8715. text-align: center;
  8716. margin: 5% 0 auto;
  8717. flex-direction: row;
  8718. justify-content: center;
  8719. }
  8720. .look_course {
  8721. margin-right: 40px;
  8722. background: #3d67bc;
  8723. width: 200px;
  8724. height: 35px;
  8725. line-height: 35px;
  8726. color: #fff;
  8727. text-align: center;
  8728. font-size: 14px;
  8729. border-radius: 5px;
  8730. cursor: pointer;
  8731. }
  8732. .attend_others {
  8733. width: 250px;
  8734. background: #4fb13c;
  8735. height: 35px;
  8736. line-height: 35px;
  8737. color: #fff;
  8738. text-align: center;
  8739. font-size: 14px;
  8740. border-radius: 5px;
  8741. cursor: pointer;
  8742. }
  8743. .dialog_diy2>>>.el-dialog__body {
  8744. text-align: center;
  8745. }
  8746. .write_togother {
  8747. position: absolute;
  8748. right: 45px;
  8749. display: flex;
  8750. top: 5%;
  8751. }
  8752. .write_people {
  8753. font-size: 14px;
  8754. line-height: 50px;
  8755. padding-right: 10px;
  8756. }
  8757. .end_write {
  8758. background: #3d67bc;
  8759. color: #fff;
  8760. width: 100px;
  8761. height: 35px;
  8762. line-height: 35px;
  8763. text-align: center;
  8764. font-size: 14px;
  8765. border-radius: 5px;
  8766. cursor: pointer;
  8767. }
  8768. .chapter_upload+.chapter_upload {
  8769. /* margin-top: 15px; */
  8770. border-top: 1px solid #E7EBF1;
  8771. }
  8772. .chapter_upload {
  8773. height: 45px;
  8774. position: relative;
  8775. display: flex;
  8776. align-items: center;
  8777. width: 100%;
  8778. min-height: 45px;
  8779. /* box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16); */
  8780. /* border-radius: 4px; */
  8781. overflow: hidden;
  8782. box-sizing: border-box;
  8783. }
  8784. .chapter_upload_t {
  8785. background-color: #fff;
  8786. position: absolute;
  8787. height: 100%;
  8788. top: 0px;
  8789. left: 0px;
  8790. box-sizing: border-box;
  8791. }
  8792. .chapter_upload_o {
  8793. width: 100%;
  8794. height: 100%;
  8795. position: relative;
  8796. z-index: 1;
  8797. }
  8798. .chapter_upload_ic {
  8799. margin: 0 15px 0px auto;
  8800. display: flex;
  8801. align-items: center;
  8802. }
  8803. .chapter_upload_ic_l {
  8804. width: 50px;
  8805. height: 50px;
  8806. float: left;
  8807. }
  8808. .chapter_upload_ic_l div {
  8809. width: 30px;
  8810. height: 35px;
  8811. background: url("../../../assets/icon/icon.png");
  8812. }
  8813. .chapter_upload_ic_edit {
  8814. height: 100%;
  8815. display: flex;
  8816. align-items: center;
  8817. cursor: pointer;
  8818. margin: 0 10px 0 0;
  8819. }
  8820. .chapter_upload_ic_edit div {
  8821. width: 18px;
  8822. height: 18px;
  8823. background-image: url("../../../assets/icon/new/edit_u.png");
  8824. background-size: 100% 100%;
  8825. }
  8826. .chapter_upload_ic_r {
  8827. height: 100%;
  8828. display: flex;
  8829. align-items: center;
  8830. cursor: pointer;
  8831. }
  8832. .chapter_upload_ic_r div {
  8833. width: 18px;
  8834. height: 18px;
  8835. background-image: url("../../../assets/icon/new/delete_u.png");
  8836. background-size: 100% 100%;
  8837. }
  8838. .chapter_upload_n {
  8839. display: flex;
  8840. text-indent: 10px;
  8841. text-decoration: none;
  8842. text-overflow: ellipsis;
  8843. white-space: nowrap;
  8844. overflow: hidden;
  8845. width: 55%;
  8846. margin-left: 10px;
  8847. cursor: pointer;
  8848. margin-top: 2px;
  8849. align-items: center;
  8850. }
  8851. .chapter_upload_l_i2,
  8852. .chapter_upload_l_i3,
  8853. .chapter_upload_l_i8,
  8854. .chapter_upload_l_i6,
  8855. .chapter_upload_l_i12,
  8856. .chapter_upload_l_i14,
  8857. .chapter_upload_l_i13 {
  8858. width: 15px;
  8859. height: 15px;
  8860. background-size: 100% 100%;
  8861. }
  8862. .chapter_upload_l_i2 {
  8863. background-image: url("../../../assets/icon/new/u_word.png");
  8864. }
  8865. .chapter_upload_l_i3 {
  8866. background-image: url("../../../assets/icon/new/u_video.png");
  8867. }
  8868. .chapter_upload_l_i8 {
  8869. background-image: url("../../../assets/icon/new/u_url.png");
  8870. }
  8871. .chapter_upload_l_i14 {
  8872. background-image: url("../../../assets/icon/new/u_source.png");
  8873. }
  8874. .chapter_upload_l_i6 {
  8875. background-image: url("../../../assets/icon/new/u_picture.png");
  8876. }
  8877. .chapter_upload_l_i12 {
  8878. background-image: url("../../../assets/icon/new/u_word.png");
  8879. }
  8880. .chapter_upload_l_i13 {
  8881. background-image: url("../../../assets/icon/new/u_img.png");
  8882. }
  8883. .chapter_upload_noSee {
  8884. background-image: url("../../../assets/icon/new/u_noUpload.png");
  8885. width: 18px;
  8886. height: 18px;
  8887. background-size: 100% 100%;
  8888. display: block;
  8889. margin-right: 10px;
  8890. }
  8891. .chapter_upload_ud {
  8892. display: flex;
  8893. flex-direction: row;
  8894. justify-content: center;
  8895. margin: 0 10px 0 0;
  8896. }
  8897. .chapter_upload_ud>.chapter_upload_up {
  8898. margin-bottom: 0;
  8899. margin-right: 10px;
  8900. }
  8901. .chapter_upload_down,
  8902. .chapter_upload_up {
  8903. width: 20px;
  8904. height: 20px;
  8905. background: #e4eaf2;
  8906. cursor: pointer;
  8907. margin: 0 auto;
  8908. border-radius: 5px;
  8909. display: flex;
  8910. justify-content: center;
  8911. align-items: center;
  8912. }
  8913. .chapter_upload_up::after,
  8914. .chapter_upload_down::after {
  8915. content: '';
  8916. background-image: url('../../../assets/icon/new/downBtn.png');
  8917. width: 13px;
  8918. height: 13px;
  8919. background-size: 100% 100%;
  8920. display: block;
  8921. }
  8922. .chapter_upload_up::after {
  8923. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  8924. }
  8925. .chapter_upload_up {
  8926. margin-bottom: 5px;
  8927. }
  8928. .addWordStyle {
  8929. display: flex;
  8930. flex-direction: row;
  8931. justify-content: flex-start;
  8932. overflow-x: auto;
  8933. white-space: nowrap;
  8934. flex-wrap: wrap;
  8935. }
  8936. /* table 样式 */
  8937. .cont>>>table {
  8938. border-top: 1px solid #ccc;
  8939. border-left: 1px solid #ccc;
  8940. }
  8941. .cont>>>table td,
  8942. .cont>>>table th {
  8943. border-bottom: 1px solid #ccc;
  8944. border-right: 1px solid #ccc;
  8945. /* padding: 20px 5px; */
  8946. padding: 5px 10px;
  8947. max-width: 0px;
  8948. height: 30px;
  8949. vertical-align: baseline;
  8950. }
  8951. .cont>>>table th {
  8952. border-bottom: 2px solid #ccc;
  8953. text-align: center;
  8954. }
  8955. /* blockquote 样式 */
  8956. .cont>>>blockquote {
  8957. display: block;
  8958. border-left: 8px solid #d0e5f2;
  8959. padding: 5px 10px;
  8960. margin: 10px 0;
  8961. line-height: 1.4;
  8962. font-size: 100%;
  8963. background-color: #f1f1f1;
  8964. }
  8965. /* code 样式 */
  8966. .cont>>>code {
  8967. display: inline-block;
  8968. /* *display: inline; */
  8969. zoom: 1;
  8970. background-color: #f1f1f1;
  8971. border-radius: 3px;
  8972. padding: 3px 5px;
  8973. margin: 0 3px;
  8974. }
  8975. .cont>>>pre code {
  8976. display: block;
  8977. }
  8978. /* ul ol 样式 */
  8979. .cont>>>ul,
  8980. ol {
  8981. margin: 10px 0 10px 20px;
  8982. }
  8983. .wordbox {
  8984. display: flex;
  8985. flex-wrap: wrap;
  8986. cursor: pointer;
  8987. width: 100%;
  8988. }
  8989. .checkword {
  8990. width: 22px;
  8991. height: 22px;
  8992. margin: 10px auto 0;
  8993. cursor: pointer;
  8994. }
  8995. .checkword img {
  8996. width: 100%;
  8997. }
  8998. .stepBg {
  8999. display: flex;
  9000. flex-direction: column;
  9001. justify-content: space-between;
  9002. align-items: center;
  9003. background: #fff;
  9004. width: 300px;
  9005. margin: 0 25px 0 0;
  9006. }
  9007. .stepTop {
  9008. min-width: 300px;
  9009. width: 300px;
  9010. /* border-radius: 10px; */
  9011. display: flex;
  9012. flex-direction: column;
  9013. justify-content: flex-start;
  9014. align-items: center;
  9015. flex-wrap: nowrap;
  9016. background: #fff;
  9017. /* top: 18%; */
  9018. }
  9019. .stepTop>div {
  9020. height: 80px;
  9021. width: 85%;
  9022. cursor: pointer;
  9023. margin: 10px 0;
  9024. border-radius: 10px;
  9025. }
  9026. .first,
  9027. .second,
  9028. .third,
  9029. .four {
  9030. background: #4a83d0;
  9031. height: 90px;
  9032. color: #fff;
  9033. display: flex;
  9034. flex-direction: row;
  9035. align-items: center;
  9036. justify-content: center;
  9037. }
  9038. .first>div:nth-child(1),
  9039. .second>div:nth-child(1),
  9040. .third>div:nth-child(1),
  9041. .four>div:nth-child(1) {
  9042. margin: 5px 10px 0 0;
  9043. width: 2rem;
  9044. }
  9045. .firstNo,
  9046. .secondNo,
  9047. .thirdNo,
  9048. .fourNo {
  9049. background: #e7e7e7;
  9050. color: #adadad;
  9051. display: flex;
  9052. flex-direction: row;
  9053. align-items: center;
  9054. justify-content: center;
  9055. }
  9056. .firstNo>div:nth-child(1),
  9057. .secondNo>div:nth-child(1),
  9058. .thirdNo>div:nth-child(1),
  9059. .fourNo>div:nth-child(1) {
  9060. margin: 5px 10px 0 0;
  9061. width: 2rem;
  9062. }
  9063. .uploadWidth>>>.el-upload {
  9064. width: 60px;
  9065. height: 60px;
  9066. position: relative;
  9067. }
  9068. .addPeople {
  9069. background: #fa6060;
  9070. width: 150px;
  9071. height: 40px;
  9072. color: #fff;
  9073. border-radius: 5px;
  9074. text-align: center;
  9075. line-height: 40px;
  9076. font-size: 14px;
  9077. cursor: pointer;
  9078. }
  9079. .kcImg {
  9080. width: 60px;
  9081. margin-left: 10px;
  9082. }
  9083. .zyImg {
  9084. width: 55px;
  9085. margin: 0 10px;
  9086. }
  9087. .deleteZy {
  9088. width: 20px;
  9089. position: absolute;
  9090. top: 5px;
  9091. right: 5px;
  9092. cursor: pointer;
  9093. }
  9094. .kcImg>img,
  9095. .zyImg>img,
  9096. .deleteZy>img {
  9097. width: 100%;
  9098. height: 100%;
  9099. }
  9100. .zyBox {
  9101. display: flex;
  9102. flex-direction: row;
  9103. align-items: center;
  9104. background: #67d37d;
  9105. color: #fff;
  9106. width: 210px;
  9107. margin: 20px 20px 0 0;
  9108. border-radius: 10px;
  9109. height: 70px;
  9110. position: relative;
  9111. }
  9112. .upCss {
  9113. display: flex;
  9114. flex-direction: row;
  9115. justify-content: flex-start;
  9116. }
  9117. .upCss>>>.el-icon-plus {
  9118. position: none !important;
  9119. width: 200px;
  9120. height: 100px;
  9121. display: flex;
  9122. flex-wrap: nowrap;
  9123. flex-direction: column;
  9124. align-items: center;
  9125. justify-content: center;
  9126. border: 1px dashed #ccc;
  9127. min-width: 78px;
  9128. min-height: 100px;
  9129. z-index: 999;
  9130. }
  9131. .upCss>>>.el-upload-list__item-name {
  9132. width: 100px;
  9133. white-space: nowrap;
  9134. overflow: hidden;
  9135. text-overflow: ellipsis;
  9136. }
  9137. .upCss>>>.el-upload-list__item .el-icon-close {
  9138. font-size: 20px;
  9139. z-index: 9999;
  9140. }
  9141. .addStageImg {
  9142. min-width: 25px;
  9143. min-height: 25px;
  9144. width: 25px;
  9145. height: 25px;
  9146. cursor: pointer;
  9147. }
  9148. .addHW {
  9149. width: 28px;
  9150. height: 28px;
  9151. cursor: pointer;
  9152. }
  9153. .addStageImg>img,
  9154. .addHW>img {
  9155. width: 100%;
  9156. height: 100%;
  9157. }
  9158. .addNewPP>>>.el-dialog__body {
  9159. padding: 5px 20px;
  9160. }
  9161. .addNewPP>>>.el-dialog {
  9162. margin-top: 5vh !important;
  9163. }
  9164. .addNewPP2>>>.el-dialog__body {
  9165. padding: 5px 0;
  9166. }
  9167. .addNewPP2>>>.el-dialog {
  9168. margin-top: 5vh !important;
  9169. }
  9170. .isHeight {
  9171. height: 680px;
  9172. }
  9173. .toolChoose {
  9174. display: flex;
  9175. /* width: 100%; */
  9176. flex-direction: row;
  9177. flex-wrap: wrap;
  9178. }
  9179. .tool {
  9180. display: flex;
  9181. flex-direction: column;
  9182. flex-wrap: nowrap;
  9183. width: fit-content;
  9184. margin: 10px 0 10px 0;
  9185. align-items: center;
  9186. }
  9187. .tool+.tool {
  9188. margin-right: 45px;
  9189. }
  9190. .whiteBIcon {
  9191. width: 80px;
  9192. cursor: pointer;
  9193. display: flex;
  9194. flex-direction: column;
  9195. flex-wrap: nowrap;
  9196. align-items: center;
  9197. font-size: 14px;
  9198. }
  9199. .whiteBIcon>img,
  9200. .toolIcon>img,
  9201. .arrow>img {
  9202. width: 100%;
  9203. height: 100%;
  9204. }
  9205. .check img {
  9206. width: 20px;
  9207. height: 20px;
  9208. }
  9209. .whiteBIcon>img {
  9210. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9211. border-radius: 15px;
  9212. }
  9213. .whiteBIcon>div:nth-child(2) {
  9214. height: 20px;
  9215. line-height: 20px;
  9216. }
  9217. .check {
  9218. /* width: 20px;
  9219. height: 20px; */
  9220. cursor: pointer;
  9221. margin: 10px 0 0;
  9222. }
  9223. .checkDiv {
  9224. display: flex;
  9225. align-items: center;
  9226. }
  9227. .checkDiv span {
  9228. margin-left: 5px;
  9229. color: #858585;
  9230. }
  9231. .customWidth>>>.el-dialog {
  9232. min-width: 500px !important;
  9233. }
  9234. .a_addBox {
  9235. margin: 10px 0;
  9236. background: #fff;
  9237. padding: 15px;
  9238. /* max-height: 600px; */
  9239. overflow: auto;
  9240. }
  9241. .a_add_box {
  9242. border-bottom: 2px solid #eee;
  9243. padding-bottom: 25px;
  9244. }
  9245. .a_add_head {
  9246. display: flex;
  9247. align-items: center;
  9248. justify-content: space-between;
  9249. margin: 10px 0 0 0;
  9250. font-size: 18px;
  9251. }
  9252. .a_add_checkType {
  9253. margin-top: 10px;
  9254. display: flex;
  9255. font-size: 14px;
  9256. align-items: center;
  9257. }
  9258. .a_add_checkType span {
  9259. box-sizing: border-box;
  9260. padding: 0 0 5px 0;
  9261. cursor: pointer;
  9262. }
  9263. .a_add_checkType span+span {
  9264. margin-left: 10px;
  9265. }
  9266. .a_add_checkType .active {
  9267. border-bottom: 2px solid #409eff;
  9268. color: #409eff;
  9269. }
  9270. .a_add_head .a_add_head_input {
  9271. width: 100%;
  9272. }
  9273. .a_add_head .a_add_head_div {
  9274. display: flex;
  9275. align-items: center;
  9276. justify-content: space-between;
  9277. }
  9278. .a_add_body {
  9279. display: flex;
  9280. /* align-items: center; */
  9281. align-items: flex-end;
  9282. }
  9283. .a_add_input {
  9284. display: flex;
  9285. align-items: center;
  9286. flex-wrap: wrap;
  9287. }
  9288. .a_add_input_choice {
  9289. flex-direction: column;
  9290. margin-right: 10px;
  9291. }
  9292. .a_add_input_choice>>>.el-radio {
  9293. display: flex;
  9294. align-items: center;
  9295. flex-direction: row-reverse;
  9296. margin: 30px 0 0 0;
  9297. position: relative;
  9298. }
  9299. .a_add_input_choice>>>.el-checkbox {
  9300. display: flex;
  9301. align-items: center;
  9302. flex-direction: row-reverse;
  9303. margin: 30px 0 0 0;
  9304. position: relative;
  9305. }
  9306. .width100 {
  9307. width: 100%;
  9308. }
  9309. .a_add_input .a_add_persent {
  9310. width: 100%;
  9311. }
  9312. .a_add_persent_div {
  9313. width: 100%;
  9314. display: flex;
  9315. align-items: center;
  9316. }
  9317. .a_add_persent_div span {
  9318. margin: 5px 0;
  9319. }
  9320. .a_add_persent_div span:nth-child(1) {
  9321. width: 30%;
  9322. }
  9323. .a_add_persent_div span:nth-child(2) {
  9324. width: 7%;
  9325. }
  9326. .a_add_persent_div span:nth-child(3) {
  9327. width: 40%;
  9328. }
  9329. .a_add_body_div {
  9330. display: flex;
  9331. align-items: center;
  9332. justify-content: center;
  9333. /* flex-direction: column; */
  9334. position: absolute;
  9335. right: -20px;
  9336. transform: translateX(100%);
  9337. }
  9338. .a_add_body_div>>>.el-button--primary {
  9339. background: #466b99;
  9340. border: none;
  9341. }
  9342. .all_choose {
  9343. display: flex;
  9344. flex-direction: row;
  9345. align-items: flex-start;
  9346. width: 100%;
  9347. }
  9348. .all_choose>span {
  9349. min-width: fit-content;
  9350. display: block;
  9351. white-space: nowrap;
  9352. overflow: hidden;
  9353. text-overflow: ellipsis;
  9354. margin-right: 20px;
  9355. font-weight: bold;
  9356. font-size: 14px;
  9357. }
  9358. .all_choose>>>.el-checkbox-group {
  9359. display: flex;
  9360. flex-direction: row;
  9361. width: 100%;
  9362. flex-wrap: wrap;
  9363. align-content: center;
  9364. justify-content: flex-start;
  9365. align-items: center;
  9366. margin-top: 3px;
  9367. }
  9368. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9369. margin-bottom: 10px;
  9370. display: flex;
  9371. flex-direction: row;
  9372. align-items: center;
  9373. margin-right: 10px;
  9374. }
  9375. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9376. min-width: 80px;
  9377. overflow: hidden;
  9378. width: 80px;
  9379. text-overflow: ellipsis;
  9380. white-space: nowrap;
  9381. }
  9382. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9383. width: auto;
  9384. }
  9385. .choose>div:nth-child(3)>span {
  9386. /* letter-spacing: 0 !important; */
  9387. }
  9388. .choose {
  9389. display: flex;
  9390. flex-direction: column;
  9391. flex-wrap: nowrap;
  9392. height: 100%;
  9393. justify-content: space-evenly;
  9394. align-items: flex-start;
  9395. }
  9396. .both {
  9397. display: flex;
  9398. flex-direction: row;
  9399. flex-wrap: wrap;
  9400. width: 100%;
  9401. align-items: center;
  9402. justify-content: flex-start;
  9403. margin: 15px 0;
  9404. }
  9405. .notice>>>.el-dialog {
  9406. width: 500px !important;
  9407. text-align: center;
  9408. }
  9409. .notice>>>.el-button {
  9410. margin-top: 20px;
  9411. }
  9412. .whiteBg {
  9413. background: #fff;
  9414. border-radius: 10px;
  9415. }
  9416. .wb_j_box {
  9417. display: flex;
  9418. width: 100%;
  9419. padding: 10px 20px;
  9420. box-sizing: border-box;
  9421. }
  9422. .wb_j_box_content {
  9423. width: calc(100% - 55% - 100px);
  9424. display: flex;
  9425. align-items: center;
  9426. }
  9427. .wb_j_box_p_box {
  9428. max-width: calc(100% - 200px);
  9429. word-break: break-all;
  9430. overflow: hidden;
  9431. margin: 0 0 0 10px;
  9432. font-size: 14px;
  9433. color: #6e6e6e;
  9434. }
  9435. .chooseWho {
  9436. display: flex;
  9437. width: 410px;
  9438. flex-direction: row;
  9439. flex-wrap: nowrap;
  9440. justify-content: space-between;
  9441. padding-bottom: 10px;
  9442. }
  9443. .chooseWho>div {
  9444. cursor: pointer;
  9445. padding-bottom: 10px;
  9446. font-weight: bold;
  9447. }
  9448. .isChooseActive {
  9449. color: #3e88f4;
  9450. border-bottom: 2px solid #2f80f3;
  9451. }
  9452. .toolSort {
  9453. display: flex;
  9454. flex-direction: row;
  9455. flex-wrap: wrap;
  9456. justify-content: flex-start;
  9457. align-items: flex-start;
  9458. }
  9459. .toolSort>div {
  9460. margin-right: 45px;
  9461. }
  9462. .tools {
  9463. width: 100%;
  9464. display: flex;
  9465. flex-direction: column;
  9466. flex-wrap: nowrap;
  9467. align-items: flex-start;
  9468. }
  9469. .leftTools,
  9470. .rightTools {
  9471. width: 50%;
  9472. }
  9473. .leftTools+.leftTools {
  9474. border-top: 1px solid #dbdbdb;
  9475. padding-top: 30px;
  9476. }
  9477. .rightTools {
  9478. display: flex;
  9479. flex-direction: row;
  9480. flex-wrap: nowrap;
  9481. justify-content: space-around;
  9482. }
  9483. .firstToolList {
  9484. display: flex;
  9485. flex-direction: column;
  9486. flex-wrap: nowrap;
  9487. align-items: center;
  9488. }
  9489. .iconList {
  9490. display: flex;
  9491. flex-direction: row;
  9492. flex-wrap: wrap;
  9493. justify-content: flex-start;
  9494. align-items: center;
  9495. margin: 20px 0 5px 0;
  9496. width: 240px;
  9497. min-width: 240px;
  9498. }
  9499. .iconTool {
  9500. display: flex;
  9501. flex-direction: column;
  9502. flex-wrap: nowrap;
  9503. align-items: center;
  9504. justify-content: flex-start;
  9505. margin: 15px 10px;
  9506. }
  9507. .toolIcon {
  9508. width: 50px;
  9509. }
  9510. .taskBorder {
  9511. /*border: 1px solid #e1e1e1; */
  9512. border-radius: 8px;
  9513. margin-top: 10px;
  9514. /* min-height: 1160px; */
  9515. position: relative;
  9516. background: #fff;
  9517. padding: 20px 20px 0;
  9518. overflow: hidden;
  9519. box-sizing: border-box;
  9520. }
  9521. .smallTaskBorder {
  9522. height: 170px;
  9523. min-height: 170px !important;
  9524. overflow: hidden;
  9525. }
  9526. .taskBorder>div {
  9527. /* padding: 30px 0 10px 30px; */
  9528. }
  9529. .addTaskBorder {
  9530. /* border: 2px solid #5E9AFC; */
  9531. border-radius: 8px;
  9532. margin-top: 10px;
  9533. cursor: pointer;
  9534. /* height: 50px;
  9535. line-height: 50px; */
  9536. background: #fff;
  9537. padding: 15px 0;
  9538. display: flex;
  9539. align-items: center;
  9540. justify-content: center;
  9541. }
  9542. /* .addTaskBorder>div {
  9543. margin: 0 auto;
  9544. display: flex;
  9545. align-items: center;
  9546. justify-content: center;
  9547. }
  9548. .addTaskBorder>div>img {
  9549. width: 20px;
  9550. }
  9551. .addTaskBorder>div>span {
  9552. font-size: 16px;
  9553. margin-left: 10px;
  9554. color: #5E9AFC;
  9555. } */
  9556. .funBlock {
  9557. display: flex;
  9558. padding: 15px 0;
  9559. flex-direction: row;
  9560. justify-content: flex-end;
  9561. align-items: center;
  9562. position: absolute;
  9563. right: 15px;
  9564. bottom: 35px;
  9565. }
  9566. .fold {
  9567. display: flex;
  9568. margin: 0 10px;
  9569. flex-direction: row;
  9570. align-items: center;
  9571. cursor: pointer;
  9572. }
  9573. .arrow {
  9574. width: 15px;
  9575. height: 15px;
  9576. margin-left: 10px;
  9577. }
  9578. .addToolFun {
  9579. display: flex;
  9580. width: 150px;
  9581. flex-direction: row;
  9582. align-items: center;
  9583. justify-content: center;
  9584. border: 1px dashed;
  9585. border-radius: 5px;
  9586. height: 50px;
  9587. margin: 20px auto 35px;
  9588. cursor: pointer;
  9589. }
  9590. .addToolFun2 {
  9591. display: flex;
  9592. width: 150px;
  9593. border: 2px dashed #CAD1DC;
  9594. flex-direction: row;
  9595. align-items: center;
  9596. justify-content: center;
  9597. border-radius: 5px;
  9598. height: 50px;
  9599. margin: 0 auto 0;
  9600. cursor: pointer;
  9601. }
  9602. .addToolImg {
  9603. width: 20px;
  9604. height: 20px;
  9605. margin-right: 10px;
  9606. }
  9607. .addToolsDia>>>.el-dialog__body {
  9608. padding: 20px;
  9609. }
  9610. .addToolsDia>>>.el-dialog__body>.toolChoose {
  9611. padding: 0;
  9612. }
  9613. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  9614. padding: 0;
  9615. border-bottom: none;
  9616. margin-bottom: 0;
  9617. }
  9618. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  9619. width: 100%;
  9620. }
  9621. .lineCss>>>.el-form-item__label {
  9622. width: auto !important;
  9623. }
  9624. .lineCss>>>.el-form-item__content {
  9625. margin-left: 50px !important;
  9626. }
  9627. .newSteps {
  9628. display: flex;
  9629. width: 100% !important;
  9630. height: 80px;
  9631. cursor: pointer;
  9632. margin: 10px 0;
  9633. border-radius: 10px;
  9634. flex-direction: row;
  9635. align-content: center;
  9636. justify-content: center;
  9637. align-items: center;
  9638. margin: 0 !important;
  9639. }
  9640. /* 评价样式 */
  9641. .elist_css {
  9642. padding-bottom: 60px !important;
  9643. }
  9644. .elist_title {
  9645. margin-bottom: 10px;
  9646. }
  9647. .elist_input {}
  9648. .elist_input_box {
  9649. display: flex;
  9650. align-items: center;
  9651. flex-wrap: wrap;
  9652. }
  9653. .elist_input_box+.elist_input_box {
  9654. margin-top: 30px;
  9655. }
  9656. .elist_input .elist_input_box input {
  9657. font: inherit;
  9658. color: currentColor;
  9659. /* width: 200px; */
  9660. max-width: 200px;
  9661. padding: 8px 14px;
  9662. display: block;
  9663. min-width: 0;
  9664. outline: none;
  9665. border: 1px solid rgba(0, 0, 0, 0.23);
  9666. border-radius: 4px;
  9667. box-sizing: border-box;
  9668. background: #fff;
  9669. margin: 0 5px 0 0;
  9670. }
  9671. .elist_input .elist_input_box span {
  9672. height: 36px;
  9673. line-height: 36px;
  9674. color: rgb(82, 82, 82);
  9675. min-width: 80px;
  9676. }
  9677. .elist_input .elist_input_box .remove {
  9678. height: 20px;
  9679. width: 20px;
  9680. min-width: 20px;
  9681. background-size: 100% 100%;
  9682. background-position: unset;
  9683. margin-left: 5px;
  9684. }
  9685. .elist_input_box>>>.el-rate {
  9686. display: flex;
  9687. height: 36px;
  9688. align-items: center;
  9689. }
  9690. .elist_input_box .elist_inptu_text {
  9691. width: 100%;
  9692. display: flex;
  9693. align-items: center;
  9694. margin-top: 10px;
  9695. }
  9696. .elist_input_box .elist_inptu_text input {
  9697. /* width: 500px; */
  9698. width: 100%;
  9699. max-width: unset;
  9700. }
  9701. .elist_input_box>>>.el-rate__icon {
  9702. font-size: 24px;
  9703. }
  9704. .elist_btn {
  9705. margin-top: 10px;
  9706. }
  9707. .lineTitle {
  9708. /* margin-top: 15px; */
  9709. width: 110px;
  9710. font-size: 16px;
  9711. display: flex;
  9712. align-items: center;
  9713. line-height: 20px;
  9714. }
  9715. .lineTitle::before {
  9716. content: '';
  9717. display: block;
  9718. width: 3px;
  9719. height: 20px;
  9720. background: #0061FF;
  9721. border-radius: 3px;
  9722. margin: 0 5px 0 0;
  9723. }
  9724. .courseTop {
  9725. display: flex;
  9726. flex-direction: row;
  9727. justify-content: space-between;
  9728. align-items: center;
  9729. width: calc(100%);
  9730. padding: 10px 0;
  9731. margin: 0 auto;
  9732. }
  9733. .stepsNav {
  9734. display: flex;
  9735. flex-direction: row;
  9736. justify-content: flex-start;
  9737. align-items: center;
  9738. }
  9739. .stepsWord {
  9740. font-size: 18px;
  9741. color: #fff;
  9742. font-weight: bold;
  9743. margin-left: auto;
  9744. background: rgb(15, 126, 255);
  9745. border-radius: 5px;
  9746. padding: 3px 25px;
  9747. box-sizing: border-box;
  9748. }
  9749. .rightBox {
  9750. width: calc(100%);
  9751. background: #F0F2F5;
  9752. /* border-radius: 10px; */
  9753. overflow: auto;
  9754. height: calc(100% - 120px);
  9755. margin: 0 auto;
  9756. position: relative;
  9757. box-sizing: border-box;
  9758. border-radius: 5px;
  9759. }
  9760. .e_add_top {
  9761. display: flex;
  9762. justify-content: space-between;
  9763. padding: 20px 20px 0 20px;
  9764. border-radius: 3px;
  9765. background: #fff;
  9766. }
  9767. .e_add_title2 {
  9768. display: flex;
  9769. align-items: center;
  9770. }
  9771. .e_add_title2 span {
  9772. width: 40px;
  9773. }
  9774. .e_add_title {
  9775. display: flex;
  9776. align-items: center;
  9777. color: #b8b8b8;
  9778. font-size: 18px;
  9779. position: relative;
  9780. height: 40px;
  9781. }
  9782. .e_add_title span {
  9783. margin-right: 10px;
  9784. }
  9785. .e_add_title .el_input {
  9786. width: 300px;
  9787. }
  9788. .e_add_title>>>.el-input__inner {
  9789. width: 400px;
  9790. }
  9791. .e_add_btn {}
  9792. .e_add_content {
  9793. display: flex;
  9794. width: 100%;
  9795. }
  9796. .e_add_list {
  9797. background: #fff;
  9798. height: 500px;
  9799. width: 210px;
  9800. position: relative;
  9801. margin: 15px 5px 0 0;
  9802. flex-shrink: 0;
  9803. display: flex;
  9804. flex-direction: column;
  9805. }
  9806. .e_add_list_title {
  9807. font-size: 20px;
  9808. width: 100%;
  9809. box-sizing: border-box;
  9810. padding: 15px 40px;
  9811. text-align: center;
  9812. border-bottom: 1px solid #eaeaea;
  9813. position: relative;
  9814. display: flex;
  9815. align-items: center;
  9816. justify-content: center;
  9817. height: 57px;
  9818. background: #f6f6f6;
  9819. }
  9820. .e_add_list_title span {
  9821. overflow: hidden;
  9822. white-space: nowrap;
  9823. text-overflow: ellipsis;
  9824. }
  9825. .e_add_list_title img {
  9826. position: absolute;
  9827. right: 15px;
  9828. width: 25px;
  9829. cursor: pointer;
  9830. top: 50%;
  9831. transform: translateY(-50%);
  9832. }
  9833. .e_add_list_body {
  9834. height: calc(100% - 187px);
  9835. overflow: auto;
  9836. }
  9837. .e_add_list_child {
  9838. width: 100%;
  9839. display: flex;
  9840. align-items: center;
  9841. justify-content: center;
  9842. position: relative;
  9843. box-sizing: border-box;
  9844. padding: 15px 40px;
  9845. text-align: center;
  9846. }
  9847. .e_add_list_child span {
  9848. overflow: hidden;
  9849. white-space: nowrap;
  9850. text-overflow: ellipsis;
  9851. cursor: pointer;
  9852. }
  9853. .e_add_list_child img {
  9854. position: absolute;
  9855. right: 10px;
  9856. width: 21px;
  9857. cursor: pointer;
  9858. top: 50%;
  9859. transform: translateY(-50%);
  9860. }
  9861. .e_add_list_child+.e_add_list_child {
  9862. border-top: 1px solid #eaeaea;
  9863. }
  9864. .e_add_list_child .active {
  9865. color: #409eff;
  9866. }
  9867. .e_add_list_btn {
  9868. position: absolute;
  9869. bottom: 0;
  9870. height: 50px;
  9871. background: rgb(120, 120, 254);
  9872. width: 100%;
  9873. color: #fff;
  9874. font-size: 16px;
  9875. text-align: center;
  9876. line-height: 50px;
  9877. cursor: pointer;
  9878. }
  9879. .e_add_list_detail {
  9880. position: absolute;
  9881. bottom: 0;
  9882. height: 130px;
  9883. background: rgb(120, 120, 254);
  9884. width: 100%;
  9885. color: #fff;
  9886. font-size: 16px;
  9887. display: flex;
  9888. align-items: center;
  9889. justify-content: center;
  9890. }
  9891. .e_add_list_detail textarea {
  9892. height: 90%;
  9893. width: 95%;
  9894. border: none;
  9895. resize: none;
  9896. outline: none;
  9897. padding: 5px;
  9898. box-sizing: border-box;
  9899. }
  9900. .e_add_list_pbox {
  9901. width: 100%;
  9902. }
  9903. .e_add_list_pbox_title {
  9904. height: 50px;
  9905. background: #fff;
  9906. display: flex;
  9907. align-items: center;
  9908. width: 100%;
  9909. box-sizing: border-box;
  9910. padding: 0 20px;
  9911. flex-direction: row;
  9912. flex-wrap: wrap;
  9913. }
  9914. .type_title {
  9915. font-size: 18px;
  9916. font-weight: 700;
  9917. }
  9918. .type_content {
  9919. font-size: 16px;
  9920. margin-left: 30px;
  9921. }
  9922. .type_content span+span {
  9923. margin-left: 20px;
  9924. }
  9925. .type_content span {
  9926. cursor: pointer;
  9927. padding-bottom: 5px;
  9928. box-sizing: border-box;
  9929. }
  9930. .type_content .active {
  9931. color: #409eff;
  9932. border-bottom: 2px solid #409eff;
  9933. }
  9934. .e_add_list_pbox_content {
  9935. height: calc(100% - 50px);
  9936. display: flex;
  9937. align-items: center;
  9938. width: 100%;
  9939. background: #fff;
  9940. }
  9941. .mbCss {
  9942. width: 100%;
  9943. display: flex;
  9944. flex-direction: row;
  9945. flex-wrap: nowrap;
  9946. align-content: center;
  9947. align-items: flex-start;
  9948. justify-content: flex-start;
  9949. }
  9950. .pjCss {
  9951. /* width: 42%; */
  9952. width: calc(100% - 55%);
  9953. display: flex;
  9954. flex-direction: column;
  9955. flex-wrap: nowrap;
  9956. align-items: flex-start;
  9957. margin-top: 1.5%;
  9958. }
  9959. .e_box {
  9960. display: flex;
  9961. flex-wrap: wrap;
  9962. max-height: 500px;
  9963. align-items: flex-start;
  9964. overflow: auto;
  9965. }
  9966. .e_card {
  9967. border: 1px solid #ccc;
  9968. background: #fff;
  9969. margin-right: 20px;
  9970. width: 270px;
  9971. display: flex;
  9972. flex-direction: column;
  9973. align-items: center;
  9974. border-radius: 5px;
  9975. margin-top: 10px;
  9976. text-align: center;
  9977. }
  9978. .e_card_picture {
  9979. margin: 10px 0;
  9980. }
  9981. .e_card_picture>img {
  9982. width: 50px;
  9983. }
  9984. .e_card_name {
  9985. width: 100%;
  9986. padding: 0 10px;
  9987. box-sizing: border-box;
  9988. margin-bottom: 10px;
  9989. overflow: hidden;
  9990. text-overflow: ellipsis;
  9991. white-space: nowrap;
  9992. }
  9993. .e_card_time {
  9994. width: 100%;
  9995. padding: 0 10px;
  9996. box-sizing: border-box;
  9997. font-size: 15px;
  9998. color: #c3c3c3;
  9999. margin-bottom: 10px;
  10000. }
  10001. .e_card_btn {
  10002. height: 40px;
  10003. display: flex;
  10004. align-items: center;
  10005. width: 100%;
  10006. background: rgb(244, 244, 244);
  10007. }
  10008. .e_card_btn:hover {
  10009. background: rgb(221 221 221);
  10010. }
  10011. .e_card_btn span {
  10012. flex: 1 1 auto;
  10013. text-align: center;
  10014. cursor: pointer;
  10015. }
  10016. .addEva {
  10017. border: 1px solid #ccc;
  10018. background: #fff;
  10019. margin-right: 20px;
  10020. width: 270px;
  10021. height: 149px;
  10022. display: flex;
  10023. flex-direction: column;
  10024. align-items: center;
  10025. border-radius: 5px;
  10026. margin-top: 10px;
  10027. text-align: center;
  10028. cursor: pointer;
  10029. justify-content: center;
  10030. }
  10031. .addEva>img {
  10032. width: 50px;
  10033. object-fit: cover;
  10034. }
  10035. .uploadFm {
  10036. border: 1px dashed #ccc;
  10037. width: 100%;
  10038. height: 140px;
  10039. position: relative;
  10040. cursor: pointer;
  10041. display: flex;
  10042. flex-direction: column;
  10043. justify-content: center;
  10044. align-items: center;
  10045. font-size: 14px;
  10046. color: #6e6e6e;
  10047. }
  10048. .uploadFm>img {
  10049. width: 50px;
  10050. }
  10051. .fileCss {
  10052. width: 100%;
  10053. display: flex;
  10054. flex-direction: row;
  10055. flex-wrap: nowrap;
  10056. justify-content: space-around;
  10057. align-items: center;
  10058. padding-top: 15px;
  10059. }
  10060. .fileCss>div {
  10061. display: flex;
  10062. flex-direction: column;
  10063. align-items: center;
  10064. }
  10065. .fileCss .spanName {
  10066. margin-top: 10px
  10067. }
  10068. .sysPicBox {
  10069. display: flex;
  10070. flex-direction: row;
  10071. flex-wrap: wrap;
  10072. align-content: flex-start;
  10073. height: 435px;
  10074. overflow: auto;
  10075. position: relative;
  10076. }
  10077. .picNone {
  10078. position: absolute;
  10079. left: 50%;
  10080. top: 45%;
  10081. transform: translate(-50%, -50%);
  10082. width: fit-content;
  10083. color: #9c9c9c;
  10084. }
  10085. .sysPic {
  10086. width: 200px;
  10087. height: 115px;
  10088. margin: 0 20px 20px 0;
  10089. cursor: pointer;
  10090. }
  10091. .sysPic>img,
  10092. .isSysPic>img,
  10093. .deletePic>img {
  10094. width: 100%;
  10095. height: 100%;
  10096. object-fit: cover;
  10097. }
  10098. .isSysPic {
  10099. width: 200px;
  10100. height: 115px;
  10101. position: relative;
  10102. }
  10103. .deletePic {
  10104. width: 20px;
  10105. height: 20px;
  10106. position: absolute;
  10107. top: 0;
  10108. right: 0;
  10109. cursor: pointer;
  10110. }
  10111. .select_box1 {
  10112. height: 100%;
  10113. }
  10114. .select_box1_img {
  10115. background: #fff;
  10116. border-radius: 5px;
  10117. padding: 15px;
  10118. box-sizing: border-box;
  10119. margin-bottom: 20px;
  10120. }
  10121. .select_box1_title {
  10122. padding: 0 0 15px 0;
  10123. border-bottom: 1px solid #eee;
  10124. margin-bottom: 15px;
  10125. }
  10126. .select_box1_title span:nth-child(1) {
  10127. font-size: 16px;
  10128. margin-right: 20px;
  10129. color: #000;
  10130. }
  10131. .select_box1_title span:nth-child(2) {
  10132. font-size: 14px;
  10133. color: rgb(112, 112, 112);
  10134. }
  10135. .select_box1_add_img {}
  10136. .select_box1_select {
  10137. background: #fff;
  10138. border-radius: 5px;
  10139. padding: 15px;
  10140. box-sizing: border-box;
  10141. height: calc(100% - 200px);
  10142. overflow: auto;
  10143. }
  10144. .select_box2 {
  10145. height: 100%;
  10146. }
  10147. .select_box2_title {
  10148. background: #fff;
  10149. border-radius: 5px;
  10150. padding: 5px 10px;
  10151. box-sizing: border-box;
  10152. margin-bottom: 10px;
  10153. }
  10154. .select_box2_box {
  10155. display: flex;
  10156. height: calc(100% - 30px);
  10157. }
  10158. .select_box2_img {
  10159. width: calc(100% - 310px);
  10160. height: 100%;
  10161. overflow: auto;
  10162. background: #fff;
  10163. border-radius: 5px;
  10164. }
  10165. .select_box2_img img {
  10166. width: 100%;
  10167. }
  10168. .select_box2_answer {
  10169. background: #fff;
  10170. margin-left: 10px;
  10171. border-radius: 5px;
  10172. width: 300px;
  10173. overflow: auto;
  10174. height: 100%;
  10175. display: flex;
  10176. flex-direction: column;
  10177. align-items: center;
  10178. padding-top: 10px;
  10179. box-sizing: border-box;
  10180. }
  10181. .select_box2_answer_box {
  10182. margin: 0 0 10px 0;
  10183. width: 85%;
  10184. }
  10185. .rate_textarea {
  10186. font: inherit;
  10187. color: currentColor;
  10188. width: 100%;
  10189. padding: 8px 14px;
  10190. display: block;
  10191. min-width: 0;
  10192. outline: none;
  10193. border: 1px solid rgba(0, 0, 0, 0.23);
  10194. border-radius: 4px;
  10195. box-sizing: border-box;
  10196. background: #fff;
  10197. margin: 0 20px 0 0;
  10198. resize: none;
  10199. }
  10200. .select_answer_title {
  10201. text-align: left;
  10202. width: 85%;
  10203. margin-bottom: 10px;
  10204. font-size: 18px;
  10205. color: #8e8e8e;
  10206. }
  10207. .mask {
  10208. background-color: rgb(0 0 0 / 30%);
  10209. /* position: fixed; */
  10210. position: absolute;
  10211. top: 0;
  10212. left: 0;
  10213. width: 100%;
  10214. height: 100%;
  10215. z-index: 90;
  10216. display: flex;
  10217. align-items: center;
  10218. justify-content: center;
  10219. }
  10220. .progressBox {
  10221. width: 300px;
  10222. height: 150px;
  10223. background: #fff;
  10224. border-radius: 10px;
  10225. box-shadow: 0 0 6px 1px #bfbfbf;
  10226. display: flex;
  10227. align-items: center;
  10228. justify-content: center;
  10229. flex-direction: column;
  10230. position: relative;
  10231. color: #6c6c6c;
  10232. }
  10233. .progressBox>>>.el-progress-bar__outer {
  10234. background-color: #d1dfff !important;
  10235. }
  10236. .progressBox .lbox {
  10237. height: 50px;
  10238. font-size: 19px;
  10239. display: flex;
  10240. align-items: center;
  10241. color: #747474;
  10242. }
  10243. .progressBox .lbox img {
  10244. width: 40px;
  10245. margin-right: 20px;
  10246. }
  10247. .closeCss {
  10248. position: absolute;
  10249. top: 8px;
  10250. right: 8px;
  10251. cursor: pointer;
  10252. width: 20px;
  10253. height: 20px;
  10254. }
  10255. .closeCss>img {
  10256. width: 100%;
  10257. height: 100%;
  10258. }
  10259. .updateTips::after {
  10260. content: "协同建构不支持修改基本信息,只支持加入分组。";
  10261. font-size: 14px;
  10262. margin-left: 20px;
  10263. font-weight: 400;
  10264. color: #ff3a3a;
  10265. }
  10266. .updateMask {
  10267. width: 100%;
  10268. z-index: 3;
  10269. top: 0;
  10270. position: absolute;
  10271. /* background-color: rgba(0,0,0,.3); */
  10272. }
  10273. .t_j_box {
  10274. display: flex;
  10275. }
  10276. .t_j_box span:nth-child(1) {
  10277. width: 15%;
  10278. overflow: hidden;
  10279. margin-right: 10px;
  10280. text-overflow: ellipsis;
  10281. white-space: nowrap;
  10282. }
  10283. .t_j_box span:nth-child(2) {
  10284. min-width: 30px;
  10285. margin-right: 10px;
  10286. }
  10287. .t_j_box span:nth-child(3) {
  10288. width: 38%;
  10289. overflow: hidden;
  10290. text-overflow: ellipsis;
  10291. margin-right: 10px;
  10292. }
  10293. .t_j_box span:nth-child(4) {
  10294. max-width: calc(45% - 60px);
  10295. overflow: hidden;
  10296. text-overflow: ellipsis;
  10297. }
  10298. .sentenBox {
  10299. background: #fff;
  10300. height: 600px;
  10301. overflow: auto;
  10302. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10303. background-position: 102%;
  10304. background-repeat: no-repeat;
  10305. background-size: 60%;
  10306. }
  10307. .sentenBox>.sentenContent {
  10308. padding-bottom: 10px;
  10309. width: 97%;
  10310. margin: 0 auto;
  10311. }
  10312. .sentenBox>.sentenContent+.sentenContent {
  10313. border-top: 1px solid #cbcbcb;
  10314. }
  10315. .addSen {
  10316. background: #409efe;
  10317. width: 90px;
  10318. color: #fff;
  10319. height: 35px;
  10320. text-align: center;
  10321. line-height: 35px;
  10322. border-radius: 5px;
  10323. float: right;
  10324. margin: 10px 20px 0 0;
  10325. cursor: pointer;
  10326. }
  10327. .sentenTop {
  10328. display: flex;
  10329. flex-direction: row;
  10330. flex-wrap: nowrap;
  10331. align-items: center;
  10332. }
  10333. .sentenTop::before {
  10334. content: attr(index);
  10335. background: #3681fc;
  10336. border-radius: 50%;
  10337. color: #fff;
  10338. width: 25px;
  10339. height: 25px;
  10340. min-width: 25px;
  10341. min-height: 25px;
  10342. text-align: center;
  10343. line-height: 25px;
  10344. margin-right: 5px;
  10345. }
  10346. .sentenTop>div:nth-child(2) {
  10347. width: 300px;
  10348. margin: 0 15px;
  10349. }
  10350. .sentenTop>div:nth-child(3) {
  10351. background: #409efe;
  10352. color: #fff;
  10353. width: 65px;
  10354. height: 35px;
  10355. text-align: center;
  10356. line-height: 35px;
  10357. border-radius: 5px;
  10358. cursor: pointer;
  10359. }
  10360. .cardList {
  10361. padding: 20px 0 20px 0;
  10362. display: flex;
  10363. flex-direction: row;
  10364. flex-wrap: wrap;
  10365. align-items: center;
  10366. box-sizing: border-box;
  10367. border-bottom: 1px solid #f4f4f4;
  10368. width: 98%;
  10369. margin: 0 auto;
  10370. }
  10371. .rightCardList {
  10372. display: flex;
  10373. flex-wrap: wrap;
  10374. }
  10375. .cardBox {
  10376. display: flex;
  10377. flex-direction: row;
  10378. flex-wrap: wrap;
  10379. align-items: center;
  10380. align-content: center;
  10381. }
  10382. .isCard,
  10383. .isCard1 {
  10384. width: auto;
  10385. padding: 0 20px;
  10386. height: 65px;
  10387. text-align: center;
  10388. line-height: 65px;
  10389. font-size: 14px;
  10390. cursor: pointer;
  10391. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10392. background-size: 100% 100%;
  10393. position: relative;
  10394. z-index: 99;
  10395. }
  10396. .isCard1 {
  10397. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10398. }
  10399. .isCard:hover .deleteWord {
  10400. display: block;
  10401. }
  10402. .isCard>div:nth-child(1),
  10403. .isCard1>div:nth-child(1) {
  10404. white-space: nowrap;
  10405. overflow: hidden;
  10406. text-overflow: ellipsis;
  10407. width: 100%;
  10408. margin: 0 auto;
  10409. }
  10410. .card {
  10411. width: 140px;
  10412. height: 65px;
  10413. }
  10414. .card>img {
  10415. width: 100%;
  10416. height: 100%;
  10417. }
  10418. .rightCardBox {
  10419. width: 98%;
  10420. margin: 10px auto 0;
  10421. }
  10422. .rightCardBox>div:nth-child(1) {
  10423. margin-bottom: 10px;
  10424. }
  10425. .cardCss {
  10426. display: flex;
  10427. flex-direction: column;
  10428. flex-wrap: nowrap;
  10429. align-items: center;
  10430. border-bottom: 3px solid #b4c3d3;
  10431. padding: 0 0 5px 0;
  10432. /* margin-right: 10px; */
  10433. }
  10434. .cardCss>div:nth-child(2) {
  10435. background: #5b7b9d;
  10436. color: #fff;
  10437. width: 20px;
  10438. height: 20px;
  10439. border-radius: 50%;
  10440. text-align: center;
  10441. line-height: 20px;
  10442. }
  10443. .sentenTopBox {
  10444. display: flex;
  10445. flex-direction: row;
  10446. flex-wrap: nowrap;
  10447. align-items: center;
  10448. justify-content: space-between;
  10449. padding: 55px 0 0 20px;
  10450. box-sizing: border-box;
  10451. width: 85%;
  10452. }
  10453. .stepsBottom {
  10454. width: 85%;
  10455. margin-bottom: 20px;
  10456. box-shadow: 0 0 10px 10px #f7f7f7;
  10457. background: #f7f7f7;
  10458. border-radius: 10px;
  10459. overflow: hidden;
  10460. }
  10461. .course_left {
  10462. width: 300px;
  10463. height: auto;
  10464. position: relative;
  10465. }
  10466. .stepsBottom2 {
  10467. width: 300px;
  10468. margin: 10px 0;
  10469. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10470. /* background: #f7f7f7; */
  10471. border-radius: 8px;
  10472. overflow: hidden;
  10473. height: fit-content;
  10474. position: relative;
  10475. /* transition: all .5s; */
  10476. }
  10477. .navTop {
  10478. background: #53749b;
  10479. color: #fff;
  10480. height: 40px;
  10481. line-height: 40px;
  10482. padding-left: 15px;
  10483. font-size: 18px;
  10484. }
  10485. .navBottom {
  10486. background: #fff;
  10487. height: calc(100vh - 210px);
  10488. overflow: auto;
  10489. }
  10490. .navTask {
  10491. display: flex;
  10492. flex-direction: row;
  10493. flex-wrap: nowrap;
  10494. align-items: center;
  10495. padding: 10px 10px 10px 0;
  10496. cursor: pointer;
  10497. background: #ffffff;
  10498. width: 95%;
  10499. margin: 10px auto 0;
  10500. box-sizing: border-box;
  10501. border-radius: 5px;
  10502. flex-wrap: wrap;
  10503. }
  10504. .navTask::before {
  10505. content: '';
  10506. display: block;
  10507. width: 16px;
  10508. height: 16px;
  10509. background-image: url(../../../assets/icon/new/icon_arrow.png);
  10510. background-size: 100%;
  10511. margin-left: 10px;
  10512. }
  10513. .isNavOpen::before {
  10514. background-image: url(../../../assets/icon/new/icon_arrow_a.png) !important;
  10515. }
  10516. .isNavTask {
  10517. /* background: #3681FC; */
  10518. background: #EEF3FB;
  10519. }
  10520. .isNavTask .nt_taskName {
  10521. /* color: #fff !important; */
  10522. font-weight: bold !important;
  10523. color: #0061FF !important;
  10524. }
  10525. .isNavTask .nt_taskTitle {
  10526. /* color: #AECCFE !important; */
  10527. font-weight: bold !important;
  10528. color: #0061FF !important;
  10529. }
  10530. .navTask .nt_taskBox {
  10531. width: calc(100% - 85px);
  10532. padding: 0 10px 0 5px;
  10533. box-sizing: border-box;
  10534. box-sizing: border-box;
  10535. display: flex;
  10536. flex-direction: row;
  10537. flex-wrap: nowrap;
  10538. align-items: baseline;
  10539. }
  10540. .navTask .nt_taskTitle {
  10541. /* color: #717C8D; */
  10542. color: #060E17;
  10543. line-height: 25px;
  10544. font-size: 16px;
  10545. min-width: 45px;
  10546. }
  10547. .navTask .nt_taskName {
  10548. /* color: #fff; */
  10549. /* max-width: 130px; */
  10550. /* width: 100%; */
  10551. max-width: calc(100% - 50px);
  10552. white-space: nowrap;
  10553. overflow: hidden;
  10554. text-overflow: ellipsis;
  10555. font-size: 16px;
  10556. color: #060E17;
  10557. /* color: #0E1E33; */
  10558. }
  10559. .gjBox {
  10560. width: calc(100% - 25px);
  10561. padding: 0 0 0 0;
  10562. box-sizing: border-box;
  10563. border-left: 1px solid #CAD1DC;
  10564. margin-left: 25px;
  10565. }
  10566. .gjBox>div {
  10567. display: flex;
  10568. align-items: center;
  10569. }
  10570. .gjBox>div::before {
  10571. content: '';
  10572. height: 1px;
  10573. width: 10px;
  10574. background: #CAD1DC;
  10575. display: block;
  10576. margin-right: 5px;
  10577. }
  10578. .gjCss {
  10579. display: flex;
  10580. flex-direction: row;
  10581. flex-wrap: nowrap;
  10582. align-items: center;
  10583. padding: 15px 0;
  10584. box-sizing: border-box;
  10585. font-size: 14px;
  10586. cursor: pointer;
  10587. }
  10588. .isGjCss {
  10589. color: #0061ff;
  10590. }
  10591. .groupBox {}
  10592. .groupContent+.groupContent {
  10593. margin-top: 30px;
  10594. }
  10595. .groupTitle {
  10596. font-size: 24px;
  10597. color: rgb(80, 80, 80);
  10598. margin-bottom: 20px;
  10599. }
  10600. .groupName {
  10601. display: flex;
  10602. align-items: center;
  10603. }
  10604. .groupn {
  10605. font-size: 15px;
  10606. margin-right: 10px;
  10607. }
  10608. .groupName+.groupName {
  10609. margin-top: 15px;
  10610. }
  10611. .groupBtn {
  10612. margin-left: 10px;
  10613. }
  10614. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10615. text-align: left;
  10616. }
  10617. .radioBox>div {
  10618. margin: 10px 0 0 10px;
  10619. }
  10620. .radioBox>>>.el-radio__input,
  10621. .radioBox>>>.el-checkbox__inner {
  10622. margin-left: 10px;
  10623. }
  10624. .radioBox>>>.el-radio__label,
  10625. .radioBox>>>.el-checkbox__label {
  10626. display: flex;
  10627. align-items: center;
  10628. }
  10629. .inImg {
  10630. width: 50px;
  10631. }
  10632. .inImg>img {
  10633. width: 100%;
  10634. height: 100%;
  10635. object-fit: cover;
  10636. }
  10637. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  10638. height: auto;
  10639. padding: 10px;
  10640. margin: 0;
  10641. }
  10642. .upCss>>>.el-upload-list {
  10643. width: 100%;
  10644. }
  10645. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  10646. width: 100%;
  10647. height: 120px;
  10648. object-fit: contain;
  10649. background: unset;
  10650. margin-left: 0;
  10651. }
  10652. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  10653. display: none;
  10654. }
  10655. .tcMember+.tcMember::before {
  10656. content: "、";
  10657. }
  10658. .xzUpImg {
  10659. width: 25px;
  10660. height: 25px;
  10661. min-width: 25px;
  10662. min-height: 25px;
  10663. cursor: pointer;
  10664. margin: 0 10px;
  10665. }
  10666. .xzUpImg>img {
  10667. width: 100%;
  10668. height: 100%;
  10669. }
  10670. .closeCss {
  10671. position: absolute;
  10672. top: 8px;
  10673. right: 8px;
  10674. cursor: pointer;
  10675. width: 20px;
  10676. height: 20px;
  10677. }
  10678. .closeCss>img {
  10679. width: 100%;
  10680. height: 100%;
  10681. }
  10682. .moveBtn {
  10683. display: flex;
  10684. flex-direction: row;
  10685. flex-wrap: nowrap;
  10686. align-items: center;
  10687. width: 55px;
  10688. }
  10689. .timuUpImg {
  10690. display: flex;
  10691. flex-direction: row;
  10692. align-items: center;
  10693. width: 100%;
  10694. margin-right: 10px;
  10695. }
  10696. .timuUpImg>div:nth-child(1) {
  10697. margin-right: 10px;
  10698. display: flex;
  10699. align-items: center;
  10700. width: 100%;
  10701. }
  10702. .timuImgBox {
  10703. margin: 10px 0;
  10704. display: flex;
  10705. flex-direction: column;
  10706. flex-wrap: wrap;
  10707. align-items: flex-start;
  10708. }
  10709. .timuImg {
  10710. width: 100px;
  10711. margin: 5px 0;
  10712. cursor: pointer;
  10713. position: relative;
  10714. }
  10715. .timuImg:hover .deleteWord {
  10716. display: block;
  10717. }
  10718. .deleteWord {
  10719. width: 25px;
  10720. height: 25px;
  10721. position: absolute;
  10722. right: -5px;
  10723. top: -5px;
  10724. cursor: pointer;
  10725. display: none;
  10726. }
  10727. .timuImg>img,
  10728. .deleteWord>img {
  10729. width: 100%;
  10730. height: 100%;
  10731. object-fit: cover;
  10732. }
  10733. .e_add_delete {
  10734. cursor: pointer;
  10735. margin-left: 10px;
  10736. }
  10737. .pType_box {
  10738. margin-top: 30px;
  10739. align-items: flex-end;
  10740. }
  10741. .noneBox {
  10742. height: 100%;
  10743. width: 100%;
  10744. display: flex;
  10745. align-items: center;
  10746. justify-content: center;
  10747. margin-top: 150px;
  10748. }
  10749. .noneBox>img {
  10750. width: 300px;
  10751. }
  10752. .textarea_css {
  10753. display: block;
  10754. resize: none;
  10755. padding: 10px 15px;
  10756. line-height: 1.5;
  10757. box-sizing: border-box;
  10758. width: 100%;
  10759. font-size: 14px;
  10760. color: #606266;
  10761. background-color: #FFF;
  10762. background-image: none;
  10763. border: 1px solid #DCDFE6;
  10764. border-radius: 4px;
  10765. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  10766. outline: none;
  10767. overflow: hidden;
  10768. height: 46px;
  10769. font-family: 'Microsoft YaHei';
  10770. }
  10771. .textarea_css::-webkit-input-placeholder {
  10772. color: #C0C4CC
  10773. }
  10774. .textarea_css:focus {
  10775. border-color: #409EFF;
  10776. outline: 0;
  10777. }
  10778. .moveBtn2 {
  10779. flex-direction: column;
  10780. width: fit-content;
  10781. margin: 0 10px 0 10px;
  10782. }
  10783. .moveBtn2 .chapter_upload_down,
  10784. .moveBtn2 .chapter_upload_up {
  10785. width: 16px;
  10786. height: 16px;
  10787. }
  10788. .moveBtn2 .chapter_upload_up::after,
  10789. .moveBtn2 .chapter_upload_down::after {
  10790. width: 10px;
  10791. height: 10px;
  10792. }
  10793. .fullStyle>>>.el-dialog__body {
  10794. height: calc(100% - 125px) !important;
  10795. box-sizing: border-box;
  10796. }
  10797. .fullStyle>>>.el-dialog {
  10798. width: 100% !important;
  10799. max-width: 100% !important;
  10800. height: 100% !important;
  10801. margin: 0 !important;
  10802. }
  10803. .fullStyle {
  10804. width: 100% !important;
  10805. max-width: 100% !important;
  10806. height: 100% !important;
  10807. margin: 0 auto !important;
  10808. }
  10809. .wb_j_box_btn {
  10810. width: calc(100% - 30px);
  10811. display: flex;
  10812. height: 40px;
  10813. border: 1.5px solid #CAD1DC;
  10814. border-radius: 4px;
  10815. box-sizing: border-box;
  10816. align-items: center;
  10817. font-size: 14px;
  10818. cursor: pointer;
  10819. overflow: hidden;
  10820. }
  10821. .wb_j_box_btn:hover {
  10822. border: 1.5px solid #0061FF;
  10823. }
  10824. .wb_j_box_title {
  10825. background: #F0F4FA;
  10826. height: 100%;
  10827. line-height: 40px;
  10828. width: 90px;
  10829. text-align: center;
  10830. color: #060E17;
  10831. border-right: 1.5px solid #CAD1DC;
  10832. box-sizing: border-box;
  10833. }
  10834. .wb_j_box_btn_c {
  10835. width: calc(100% - 90px);
  10836. padding: 0 35px 0 10px;
  10837. box-sizing: border-box;
  10838. position: relative;
  10839. }
  10840. .wb_j_box_span {
  10841. width: 100%;
  10842. overflow: hidden;
  10843. white-space: nowrap;
  10844. text-overflow: ellipsis;
  10845. word-wrap: break-word;
  10846. color: #717C8D;
  10847. }
  10848. .wb_j_box_arrow {
  10849. content: '';
  10850. width: 14px;
  10851. height: 14px;
  10852. background: url(../../../assets/icon/new/u_arrow.png);
  10853. background-size: 100% 100%;
  10854. position: absolute;
  10855. right: 12px;
  10856. top: 50%;
  10857. transform: translateY(-50%);
  10858. }
  10859. .check_classBox {
  10860. height: 400px;
  10861. display: flex;
  10862. border-top: 1.5px solid #E7EBF1;
  10863. border-bottom: 1.5px solid #E7EBF1;
  10864. }
  10865. .check_class_right {
  10866. width: 130px;
  10867. border-right: 1px solid #E7EBF1;
  10868. display: flex;
  10869. align-items: center;
  10870. flex-direction: column;
  10871. height: 100%;
  10872. overflow: auto;
  10873. padding: 15px 0;
  10874. box-sizing: border-box;
  10875. }
  10876. .check_class {
  10877. width: 85%;
  10878. border-radius: 5px;
  10879. height: 30px;
  10880. line-height: 30px;
  10881. text-align: center;
  10882. padding: 0 10px;
  10883. box-sizing: border-box;
  10884. cursor: pointer;
  10885. white-space: nowrap;
  10886. overflow: hidden;
  10887. text-overflow: ellipsis;
  10888. }
  10889. .check_class.activeX {
  10890. background: #E0EAFB;
  10891. color: #3681FC;
  10892. font-weight: 700;
  10893. }
  10894. .check_class+.check_class {
  10895. margin-top: 15px;
  10896. }
  10897. .check_class_left {
  10898. background: #FAFAFA;
  10899. width: calc(100% - 130px);
  10900. padding: 15px;
  10901. box-sizing: border-box;
  10902. }
  10903. .check_class_left_title {
  10904. font-size: 16px;
  10905. font-weight: 700;
  10906. margin-bottom: 10px;
  10907. }
  10908. .check_class_item {
  10909. display: flex;
  10910. flex-wrap: wrap;
  10911. height: calc(100% - 45px);
  10912. overflow: auto;
  10913. justify-content: flex-start;
  10914. align-items: flex-start;
  10915. align-content: flex-start;
  10916. }
  10917. .class_item {
  10918. margin: 0 15px 15px 0;
  10919. }
  10920. .class_item:hover>>>.el-checkbox__label {
  10921. color: #409EFF;
  10922. }
  10923. .class_item>>>.el-checkbox__label {
  10924. color: #0E1E33;
  10925. }
  10926. .class_item:hover>>>.el-checkbox__inner {
  10927. border-color: #409EFF;
  10928. }
  10929. .class_item>>>.el-checkbox,
  10930. .class_item>>>.el-checkbox__input {
  10931. display: flex;
  10932. align-items: center;
  10933. }
  10934. .tipsBox {
  10935. text-align: center;
  10936. line-height: 200px;
  10937. font-size: 20px;
  10938. }</style>